Prediction Model of Stress Intensity Factor of Circumferential Through Crack in Elbow Based on Neural Network

Using ANSYS software to establish the finite element model of crack bending tube, the SIF at the tip of the crack is calculated for the difference in the diameter of the pipe, the outer diameter of the elbow, and the bending angle of the bend pipe, and it is used as a neural network to calculate the sample. By using three layers of BP network to establish the prediction model of the SIF of cracked pipe, the simulation of 39 sets of samples proves that the relative error of the BP network model is 0.19% and the mean square error of the network output is 0.0102. The prediction model has high prediction precision and generalization ability and can be used in engineering design and calculation.


Introduction
Elbows are widely used in engineering structural parts such as building structures, mechanical equipment, and vehicle manufacturing. Defects and cracks are usually inevitable. Tension and bending moment are the load types that pipes bear more. erefore, it is of great significance to study the fracture parameters of circumferential cracks on the inner wall of elbows under tension and bending moment for the safety assessment of defective structures [1].
Stress intensity factor is an important parameter to control the fracture structure. It is a necessary theoretical basis to determine the service life of crack structure and design crack prevention measures. Fett and Noda [2,3] used the analytical method to solve the strength factor, but it is only suitable for the relatively simple crack model. Rong et al. [4] recorded a variety of typical crack strength factor calculation formulas, but their mechanical models are infinite and semi-infinite plate structures and bear a single load. For more complex cracks, the classical theory is difficult to give the calculation method of stress intensity factor, which is often solved by numerical methods such as the finite element method, finite difference method, and boundary element method [5]. e finite element method [6] is simple and accurate and has been proved to be an effective method for calculating the stress intensity factor of structures with cracks [7,8]. Many parameters need to be considered in the strength factor of cracked elbow.
Due to the high complexity and professionalism of the operation of the finite element method, the calculator cannot complete all the calculations of a large number of variables. In this paper, the strength factor training samples are collected by the finite element method, and the artificial neural network method is used. e artificial neural network has strong memory and prediction ability to establish the calculation model of the stress intensity factor of the circumferential through crack of the elbow, so as to realize the calculation of the stress intensity factor of the circumferential through crack of the elbow in a certain range. e results show that the accuracy of the calculation network meets the engineering requirements.

Calculation of Stress Intensity Factor
e relationship between the stress intensity factor near the crack tip and stress, displacement, and strain is shown in formulas (1)- (3): where σ ij (i, j � 1, 2, 3) represents the stress component, u i (i �1, 2, 3) represents the displacement component, N � I, II, III represents the type of fracture crack, and r and θ are distributed as the polar radius and rotation angle of the plastic zone at the crack tip. K I is used to represent the intensity factor of the stress field at the tip of I crack. Generally, it is considered that the calculation formula of I crack intensity factor is It can be seen that the stress distribution near the crack tip is a function of r and θ, which is independent of the load borne by the material or structure and the crack length. e general expression of stress intensity factor is where σ is the nominal stress; a is the crack size; and Y is the shape factor. Literature review shows that the influencing factors of crack bend shape coefficient Y mainly include bend inner diameter, bend outer diameter, bend angle, and so on [9,10].

Structure and Geometric Parameters of Circumferential rough Crack
Elbow. e common through elliptical crack elbow is selected as the analysis object. e geometric configuration and load of the crack in the elbow area are shown in Figure 1. Figure 2 shows the structural dimension diagram of the elbow, in which a is the inner diameter of the elbow, b is the outer diameter of the elbow, x is the center angle of the crack, xx is the bending angle of the elbow, t is the wall thickness of the elbow, and D is the diameter of the elbow orifice.

Finite Element Modeling.
To solve the crack stress intensity factor K by the finite element method, the threedimensional model with crack must be established first. According to the characteristics of ANSYS finite element analysis [11], this paper establishes a symmetrical half bend model and completes the finite element meshing, as shown in Figure 3. e selected element is the shell element shell36 with 6 degrees of freedom, and the elastic modulus E � 2.1 × 10 −11 and Poisson's ratio μ � 0.3. With the help of KSCON command, the crack tip meshing is established to generate the singular element of stress singularity at the crack tip [12], as shown in Figure 4.

BP Neural Network Learning
Algorithm. BP neural network is the neural network using the error backpropagation algorithm. Its algorithm is as follows: according to the negative gradient direction of the error between the actual output and the expected output of the neural network, the link weight between neurons of each layer is iteratively corrected layer by layer from back to front [13]. Figure 5 shows the three-layer BP neural network model designed in this paper. e learning steps of the neural network backpropagation algorithm are as follows [14]: (1) Initialization: set all synaptic weights and thresholds to the minimum random number.
are used as input and output samples, respectively, and select learning step η � 0.6 to adjust the speed and seismic breaking degree of neural network searching the optimal weight. For n � 1, 2, . . ., 160 groups of samples were input circularly.
(3) For the training sample n, calculate the output of neurons in each hidden layer and output layer: (4) Calculate the error signal e j (n) � o i (n) − y i (n) and the cost function ε(n) � (1/2) mL j�1 e 2 j (n). (5) Adjust synaptic weights of output layer and hidden layer: (6) Let n � n + 1 and return to step (3) until the stop criterion is met.

Topology of Prediction Intensity Factor Calculation
Network. In this paper, a three-layer BP neural network structure is established, in which there are three nodes in the input layer. e input parameters are the inner diameter a of the elbow, the outer diameter b of the elbow, and the center angle x of the crack. e output is a node, that is, the intensity factor of the cracked elbow. e number of hidden layer nodes affects the accuracy of the network model. At present, there is no theoretical rule for its determination method. e number of hidden layer nodes is related to the amount of input and output information.
e network topology is QG3-58-1, as shown in Figure 6. e "tansig" function is used as the activation function, the "purelin" function is used as the activation function in the output layer, and the "trainlm" algorithm is used for training.

Obtaining Training Samples.
According to the theory of fracture mechanics, the finite element analysis of the cracked elbow is carried out by ANSYS. e modeling size range is a � 79∼40 mm, b � 89∼50 mm; x � 2.8°; and xx � 10°∼15°. In this paper, a singular element is generated at the crack tip of the model, and the stress intensity factor is determined by the three-point displacement extrapolation method at the crack tip.
198 groups of neural network training samples were collected, 159 groups were used for neural network training, and 39 groups were used for neural network verification.

Network Training.
In this paper, two methods, adding momentum term and adjusting learning rate, are used to improve the learning speed, increase the reliability of the algorithm, and avoid falling into local minimum during neural network training. Adaptively adjusting the learning rate shortens the learning time of neural network. In order to give better play to the performance of the training function, the training samples are quantified to the range of [−1, 1], and the error variation diagram of the network training process shown in Figure 7, as well as the connection weights of each layer and the threshold of each neuron of the network model shown in Table 1, is obtained. rough comprehensive analysis of Figure 7 and Table 1, it can be seen that the network training of this method reaches very high accuracy in step 4500, the mean square deviation of network output is about 2.7902 × 10 −7 , and the maximum fitting error is 0.0018, so the network output under the model in this paper is good for target tracking and has high prediction accuracy.

Network Extension Test.
e prediction ability of the network to the samples not participating in the training is an effective method to evaluate the reliability of the model [15]. e root mean square error of the intensity factor k was 0.0102, the maximum error was 0.1544, and the average relative deviation of prediction was 0.19%. Figure 8 shows the linear regression analysis diagram of the change rate of the network output change relative to the target value, the linear correlation determination coefficient is R 2 � 0.9841, Figure 9 shows the network generalization tracking diagram, and Figure 10 shows the residual diagram of neural network model extension verification. According to the comprehensive analysis of Figures 8-10, the fitting degree between the change of network output and the change rate of target value is good, and the consistency between the predicted value of ANN model and the measured value is good. e error between the predicted value of network and the measured value is mostly distributed in the range of ±0.15, and the range of model error is appropriate. erefore, the neural network prediction model has certain generalization ability and applicability.       Computational Intelligence and Neuroscience 5

Conclusion
In order to optimize the accuracy and generalization ability of the existing prediction model of stress intensity factor of circumferential through crack in elbow, a neural network model is introduced to optimize it, and the following conclusions are obtained: (1) e training samples are obtained based on the finite element analysis software, and the neural network prediction model of stress intensity factor of cracked elbow is established by using BP neural network. e relative error distribution of fitting and prediction is 0.000027% and 0.19%, which has high fitting and prediction accuracy in a large range.
(2) Compared with the traditional method, the neural network method is used to establish the calculation model of stress intensity factor of through crack elbow structure, which can effectively avoid the difficulties of other prediction models and the errors caused by human factors. (3) BP network is used to replace the traditional calculation method, reduce the calculation difficulty, improve the calculation speed, and speed up the actual engineering structure design and structure analysis, so as to speed up the engineering process.
Data Availability e raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Conflicts of Interest
e authors declare that they have no conflicts of interest.