In this paper,the inverse problem of one dimensional parabolic equation is studied.According to the value of temperature observations at different times of space points,the inverse problem of source terms is transformed into extreme value problems by using variational and regularization methods.By solving the sensitivity equation and adjoint equation,the conjugate gradient method is used to solve the problem.Numerical simulation results show that the method is feasible and effective.