Crack detection and identification is of great significance to the safety issues of engineering structures. In this paper, an intelligent crack identification scheme based on extended finite element and neural network surrogate model is proposed to realize the accurate identification of crack parameters. The method firstly employs extended finite element forward analysis to obtain the displacement data of measurement points on geometric models with different crack lengths, and inputs them as sample data to train the agent model, establishes a neural network-based inverse analysis model for crack identification, and automatically updates the threshold and weight of the neural network by using the Gray Wolf optimization algorithm to finally compute the globally optimal results. In the screening of the surrogate model, this paper verifies the advantages of the neural network surrogate model in data fitting and crack information extraction by comparing and analyzing the characteristics of neural network, support vector machine and other surrogate models, and optimizing the neural network surrogate model by adopting the Gray Wolf optimization algorithm. Finally, several numerical examples of different types of cracks are given to verify the validity of the proposed method, and the results show that the proposed method can accurately invert the geometric information of cracks.