In this research, Dunhuang murals is taken as the object of restoration, and the role of digital repair combined with deep learning algorithm in mural restoration is explored. First, the image restoration technology is described, as well as its advantages and disadvantages are analyzed. Second, the deep learning algorithm based on artificial neural network is described and analyzed. Finally, the deep learning algorithm is integrated into the digital repair technology, and a mural restoration method based on the generalized regression neural network is proposed. The morphological expansion method and anisotropic diffusion method are used to preprocess the image. The MATLAB software is used for the simulation analysis and evaluation of the image restoration effect. The results show that in the restoration of the original image, the accuracy of the digital image restoration technology is not high. The nontexture restoration technology is not applicable in the repair of large-scale texture areas. The predicted value of the mural restoration effect based on the generalized neural network is closer to the true value. The anisotropic diffusion method has a significant effect on the processing of image noise. In the image similarity rate, the different number of training samples and smoothing parameters are compared and analyzed. It is found that when the value of δ is small, the number of training samples should be increased to improve the accuracy of the prediction value. If the number of training samples is small, a larger value of δ is needed to get a better prediction effect, and the best restoration effect is obtained for the restored image. Through this study, it is found that this study has a good effect on the restoration model of Dunhuang murals. It provides experimental reference for the restoration of later murals.