Heat diffusion equation in inhomogeneous media: study of the inverse problem