With the development of artificial intelligence and computer technology, the deep neural network algorithm is applied to the intelligentization of various fields of production and life. However, from the current application status, the application of artificial intelligence technology has many shortcomings. Based on this, this paper starts with the deep neural network algorithm, takes face recognition as the research tool, and deeply studies how to use the deep neural network algorithm to demonstrate the application of intelligent face recognition in complex environments. A face recognition neural network algorithm is proposed, and the accuracy of the algorithm is checked by testing. The results show that the average accuracy of a single sample in the LFW dataset is 99.17%, and the efficiency of using a single sample is close to that of many smelting models, which can be applied to various intelligent recognition scenarios.