Abstract

To study vibration fatigue damage localization of offshore oil and gas pipelines, aiming at the location error caused by uncertainty of the initial parameters in backpropagation (BP) neural network training, an improved BP neural network based on the genetic algorithm (GA) is proposed to locate pipeline damage. This approach was verified by experiments and simulations. First, a BP neural network for structural damage location was constructed, and a method to optimize the BP neural network parameters based on the GA was established. Then, a finite element model was established based on the measured data from modal tests of a physical pipeline model, and a large number of vibration neural network training samples were obtained using the finite element model. Finally, to show that the improved BP neural network based on the GA had a better damage location accuracy, the location results of the original BP and GA BP methods were compared for cases with no noise and with 5% noise. The results show that the average error of the BP neural network based on the GA was less than 3%, which was 11.6% lower than that of the original BP neural network.

1. Introduction

Offshore oil and gas production platforms need to be in service for long periods. Once stress beyond a critical level accumulates for a long period, it will induce the initiation of pipeline fatigue cracks, as shown in Figure 1 [1]. Therefore, it is very necessary to conduct damage detection on offshore platform pipelines.

The design of traditional pipelines is based on static analysis, and the vibration of pipelines is rarely considered. Long-term vibration will cause the risk of vibration fatigue damage. For the structure of offshore platform oil and gas pipeline systems in a real environment, the structure of pipeline systems is huge, the pipeline direction is complex, the working environment is complex, and damage detection often needs to be carried out in the working state. Therefore, this paper carries out research on vibration fatigue damage identification of process pipelines and takes vibration-based damage identification as the main route.

For vibration-based damage identification, some scholars have carried out related research and proposed the application scheme. Contursi et al. [2] proposed a new method for locating multiple damaged areas in elastic structures. With truss structures as an example, the locations and degrees of multiple damaged areas could still be correctly predicted when the structural damage level was low. In addition, some scholars proposed a damage prediction method based on the “natural frequency change square ratio,” which achieved better results than using the frequency alone. Guo et al. [3] used a BP neural network combined with a modulated broadband mode decomposition (MBMD) method to monitor crane-bearing parts and concluded that the BP neural network has good performance in feature extraction and fault recognition. Rastin et al. [4] presented a novel two-stage technique based on generative adversarial networks (GANs) for unsupervised structural health monitoring and damage identification. Existing methods to detect structural damage based on the change in structural natural frequency show certain reliability in predicting the location and degree of multiple damage [57]. The change in the natural frequency is a function of the damage degree and location of the structure. Some researchers have used this method to identify the damaged structure, and the identification results are very intuitive [8, 9]. However, the problem with this method was that different inducements may lead to the same frequency change, which will be difficult to identify, and this approach is not sensitive enough in the case of small stiffness damage [10]. Others have used neural networks for control and recognition. Tian et al. [11] proposed an improved genetic algorithm (IGA) combined with the global optimization characteristics of the genetic algorithm (GA) and the local optimal solution of the simulated annealing (SA) algorithm in this paper, which adopts SA in the process of selecting subpopulations. Some scholars have found that the neural network has good performance in feature extraction and damage recognition [12, 13].

The main content of this paper is summarized as follows: Section 2 introduces the principle of damage location of BP neural networks. In cases where the training sample size is low, slow learning speeds and convergence to local optimal solutions can occur [14]. In order to improve this problem, this paper proposes an offshore platform pipeline damage location method based on the GA-improved BP neural network. Section 3 explains the design and data source of the experiment. Section 4 is a comparative analysis of the results. Through the analysis of the positioning results of two kinds of neural networks, it is found that the GA-improved BP neural network can effectively improve the positioning accuracy and reduce the average positioning error.

2. Principle of Damage Localization Based on BP and GA BP Neural Networks

2.1. Basic Principle of Structural Damage Identification Based on Modal Parameters

The equation of structural motion in the finite element method iswhere represent the discrete mass, damping, and stiffness matrices, respectively, represent the acceleration, velocity, and displacement vectors, respectively, and represents the external load vector. If the damping term is ignored, then

The solution of this equation iswhere is the th-order eigenvalue and is the corresponding eigenvector of the th-order eigenvalue. The relation between and can be obtained by substituting equations (3) into (2) as follows:

We can see that are functions of of the structure. Any change in of the structure will be reflected in the measured value of . When the measured modal parameters of the structure are significantly different from those of the reference model (beyond the measured error range), it can be judged that the structure has been damaged. Therefore, the structural damage can be determined by comparing the modal parameters before and after the structural damage [15].

2.2. Backpropagation (BP) Neural Network
2.2.1. Overview of the BP Neural Network

The BP neural network is the most widely used neural network structure at present, and it is composed of an input layer, hidden layer, and output layer. It can realize complex mappings from an input to an output [16]. BP is error backpropagation. It adjusts the weights and thresholds between neurons at each layer through the error of the actual output compared with the expected output such that the output of the neural network is constantly approaching the expected output.

Its basic structure is shown in Figure 2. The number of nodes in the network input layer, hidden layer, and output layer is , , and , respectively. is the input training sample, is the hidden layer output, and is the network output. Signal forward propagation and error backpropagation are repeated until the training error is small enough, and neural network training is completed.

2.2.2. Structural Damage Location Method Based on the BP Neural Network

The selection of the input and output vectors in the BP neural network has a significant influence on network performance. For offshore oil and gas pipelines, it is difficult to obtain accurate modal information in the complex environment. The natural frequency and structure are relatively easy to obtain. Furthermore, based on previous research, the change in the natural frequency and the structural damage location are correlated [17].

The change rate of the structure’s natural frequency of the order, , iswhere is the natural frequency of the nondestructive structure and is the natural frequency of the structure after damage. By introducing equations (4) and (5), we obtainwhere is the vector of the structural damage position and is related to the damage degree and damage location of the structure.

The Taylor expansion of about and , ignoring higher order terms, can be obtained as follows:

Since in this formula,

The partial derivatives of the function, , at and is constant, so

In general, structural damage is mainly the change in structural stiffness, so by assuming , the following can be obtained:

The normalized frequency change rate iswhere is the frequency order considered in the analysis.

It can be found that is only related to the damage position of the structure, so the neural network input vector is constructed as follows:

The network output vector is the damage position, and the structure damage location process based on the BP neural network is shown in Figure 3.

2.3. Genetic Algorithm (GA)-Improved BP Neural Network Method

The GA is a computational model that simulates natural selection and the genetic mechanism in biological evolution, and it searches for optimal solutions randomly in parallel. The repeated cyclic iteration of the parameters is performed until individuals emerge, which meet the specified requirements [18]. The main advantages of the GA are as follows: The GA has a large search coverage and high efficiency. It can also avoid the problem of falling into the local optimal solutions in the iterative search of a single solution to a certain extent, which is conducive to global optimization. At the same time, selection, crossover, mutation, and other operations in the genetic algorithm have certain randomness, and the search process is more flexible.

The basic idea of using the GA to improve the BP neural network is to search for the optimal initial weights and initial thresholds of the BP neural network through the GA, and the BP neural network with optimized initial parameters can make better predictions [19]. The process is divided into three parts: the determination of the basic structure of the BP neural network, the optimization of the BP neural network parameters by the GA, and the prediction of the optimized BP neural network model, as shown in Figure 4.

The specific process details of the GA-BP approach used in this study are as follows.

2.3.1. Encoding Mode

Real number encoding is adopted. Individual encoding is a real number string composed of all the weights and thresholds of the network. The advantage is that the encoding mode is simple and that no encoding or decoding operation is needed.

2.3.2. Fitness Function

 The weight and threshold information about the neural network contained in the individual is passed to the network structure, and then, the BP neural network is trained with the training data for prediction. The sum of the absolute values of the error between the neural network output and the expected output is taken as the individual’s fitness, , which can be calculated as follows: where is the number of nodes in the output layer of the neural network, is the expected output of the th node of the neural network, and is the actual output of the th node of the neural network.

2.3.3. Initialization Process

 After the network structure is determined, the coding length is also determined, and a random number in the range of is selected as the coding of the initial individual to initialize and generate individuals with a specified population size.

2.3.4. Selection Method

 The roulette method is adopted; that is, the probability of being selected is allocated according to the fitness value. The selection probability, , of each individual is where is the fitness value of the individual, , which is the sum of the errors, and is the number of individuals in the population. Based on this equation, the smaller the fitness, the higher the probability of being selected.

2.3.5. Crossover Mode

 As individuals are encoded by real numbers, the real number crossing method is adopted to select random locations for single-point crossings. The crossing operation of the th chromosome and th chromosome at position is as follows: where is a random number in the range of .

2.3.6. Variation Mode

Mutation occurs randomly with a mutation probability, and basic bit mutation is adopted. The mutation location is randomly selected for the mutation operation in the coding string of the mutation individual, and the th gene of the th individual is selected as follows:where is the upper limit of the gene, , is the lower limit of the gene, , is the current iteration number, is the maximum evolution number, and are the random numbers in the range of .

2.3.7. Termination Conditions

Eventually, the average error no longer significantly decreases, or it reaches the upper limit of the number of iterations. At this point, the initial network parameters decoded by the optimal individual are sufficiently close to the optimal initial parameters. On this basis, the neural network is trained to predict damage locations.

3. Pipeline Model Test and Data Processing

3.1. Test Model
3.1.1. Real-Scale Piping System Structure Model

Because the simplified model has some defects, it is difficult to reflect the true situation, so the pipeline adopts the real-scale model. The test model included 4–20 inches of pipes commonly used on offshore platforms, which were made of seamless steel pipes for conveying high-pressure fluid, as stipulated in GB/T 8163-2008 [20]. After consulting relevant pipeline vibration fatigue data [1], three views of the design pipeline are shown in Figures 5(a)5(c).

3.1.2. Real-Scale Pipe Prefabrication Crack

Because it is very difficult to carry out a fatigue test on real-scale pipelines under laboratory conditions, prefabricated cracks are selected at key locations where fatigue cracks will occur. The purpose of the test is to obtain the modal shapes of the pipeline before and after damage under different damage conditions.

The accuracy of damage locations is the key problem in this paper. The crack is made by cutting the pipeline. In order to ensure the consistency of the damage degree, the cracks on the main pipe and branch pipe were cut along the circumference of 1/3, as shown in Figures 6(a)6(c) [21], and the locations were selected at the typical locations of fatigue cracks: (1) the bend of the main pipe, (2) the joint of the mass block pipe and large pipe, and (3) the connection between the vertical bend and the big pipe. For the lossless pipeline models included, a total of 4 test models were obtained, as shown in Table 1. The damage location is represented by the distance from the starting point of the positioning route, as shown in Figure 7 [21].

3.2. Modal Tests and Numerical Simulations of the Pipeline Model
3.2.1. Modal Tests

Some parameters of the vibration signal acquisition equipment (equipment model DH5981) are as follows: The number of channels is 8. The sampling frequency is 2000 Hz. Seven vertically mounted one-way acceleration sensors were used in the test. The installation method was magnetic seat, and the contact surface should be smooth and clean during installation. The installation position of the sensor is selected in the place where vibration is obvious, and these positions are obtained through the finite element simulation and preliminary experiment, as shown in Figure 8 [21]. The vibration characteristic test of the pipeline system model is simulated by force hammer knocking. The average value of each measuring point should be struck 5 times in three directions. When the force hammer strikes the vibration point, the impact speed should be increased appropriately and the combination phenomenon should be avoided to ensure that the force pulse signal peak value is large and that the waveform is smooth, as shown in Figure 9. Each measurement model has 8 channels: 1 force hammer signal channel and 7 acceleration signal channels. Table 2 [21] shows the first ten modal frequencies measured in the modal test of no. 1–4 pipeline systems after modal parameter identification.

3.2.2. Finite Element Numerical Simulation

Four finite element models of pipeline system structures with different damage conditions were established. The model material was no. 20 steel. ANSYS Workbench 2020 R1 was selected for finite element software. The material parameters are shown in Table 3 [21].

Since the test model is simply supported by three ties, in order to more accurately reflect the structural characteristics of the pipeline system model, the displacements in three directions of all nodes on the straight line at the contact point between the pipeline and the ties are restricted; that is, the translational displacement of the pipeline system structure at the boundary is restricted, and the rotational displacement is retained, so as to simulate the simply supported boundary conditions, as shown in Figure 10. Solid tetrahedral elements are used for the finite element model meshes of pipeline systems. The default type of the solid element in ANSYS Workbench is Solid186 (3D20N), and the element size is set to 6 mm.

The finite element model of pipeline systems is modified, and the initial parameters of the finite element model are modified, such as geometry model size, boundary conditions, and material parameters, so that the calculated results of the finite element model can be consistent with the measured values as far as possible [22]. In this paper, the finite element model of the pipeline system structure was modified based on the BP neural network and structural natural frequency. The specific process is shown in Figure 11.

In order to reduce the calculation times of the finite element simulation, the whole model correction process is divided into three steps to gradually make the simulation result close to the measured result. The natural frequency changes in the correction process are shown in Table 4.

First, by comparing the calculation results of the initial finite element model with the experimental results, it is found that there is a large difference between the first- and fourth-order natural frequencies (the two modes are mainly the vibration of the vertical bent pipe and the mass block pipe), while the difference between the other order natural frequencies is small, so the model size is basically reasonable. The error is mainly from the welding process, and the small natural frequency is due to higher stiffness at the welding process. Therefore, the weld of the large pipe and branch pipe is reinforced to increase stiffness here, and only the weld size and the thickness of the mass block are modified to achieve the purpose of revising the finite element model.

In the second step, the size of the three welds was estimated to be between 0 and 60 mm, and the finite element model was established with a step size of 20 mm for calculation. The number of samples was 64. The first ten orders of natural frequencies were taken as the input vector of the network and the size of the three welds as the output vector. After neural network training is completed, the measured natural frequency is input into the neural network, and the dimensions of the three welds are preliminarily obtained as 52 mm, 60 mm, and 1 mm, respectively. The finite element model is reconstructed with the above data, the modal analysis is carried out, and the first ten order natural frequencies of the preliminarily modified model are obtained. Compared with the calculated results of the initial finite element model, the error between the measured frequency and the measured frequency is greatly reduced. However, the fourth-order natural frequency has a large error.

In the third step, based on the weld size determined in the second step, the thickness of the mass block and the weld size of the mass block tube are modified to achieve the purpose of correcting the fourth-order natural frequency of the model. The finite element model was established with the thickness of the mass block being 18–32 mm with a step length of 2 mm and the weld size of the mass block being 0–60 mm with a step length of 10 mm. The number of samples was 48. As in the second step, the first ten orders of natural frequencies are taken as the input vector of the neural network and the thickness of the mass block and the weld size of the mass block tube are taken as the output vector. After training, the output error of the neural network reaches the predetermined target. In the third step, the thickness and weld size after modification are 29 mm and 29 mm. Compared with the frequency measured in the test, the error of the simulation results after the size modification is within an acceptable range, so the modification of the finite element model is completed.

After the modification of the finite element model was completed, the modal analysis of no. 1–4 models was carried out by using ANSYS Workbench to obtain the natural frequencies of the pipeline system structure under conditions of nondestructive and different damage locations, and the comparison analysis was made with the modal test results, as shown in Table 5 [21]. The first three modal shapes of the no. 1 model are shown in Figures 1214. Generally, the lower the natural frequency of the structure, the easier it is to be excited, and the lower order modes are not easy to miss. At the same time, the corresponding amplitude of the lower order natural frequency is larger, and the frequency response function obtained in the modal test is more accurate, so the lower order natural frequency is also more accurate. In addition, considering the complex structure of the pipeline system, the influence of different damage locations on the first several modes may be similar. Considering the feasibility of damage identification and locations, the first ten natural frequencies of the four pipeline system models were extracted for subsequent research on pipeline fatigue crack identification and locations.

After the finite element model modification, there were relative errors between the finite element simulation results of the pipeline system structure and the measured results of the modal tests. However, the first 10 order normalized frequency change rate (NFCR) results of the finite element simulation calculation and the measured results of the modal test were similar, as shown in Figures 15(a)15(c) [21].

3.2.3. Creating Damage Conditions

Since neural network damage identification requires a large number of training samples, finite element software ANSYS Workbench is used to create a large number of structural damage conditions for pipeline systems based on the revised finite element model. Damage locations are distributed throughout the entire pipeline structural model, and the form is the same as the test model, which is a circumferential crack with 1/3 of the circumference cut. The crack width was 6 mm, and the damage location was indicated by the method shown in Figure 6. At the same time, artificially added samples are added into the training samples to increase the number of training samples of the neural network and enhance the generalization ability of the neural network [23]. The method of adding random white noise is as follows:where and are the first 10 orders of the standardized NFCR without noise and with added noise, respectively, is the random number from the standard normal distribution, and P is the percentage of added noise. Finally, the finite element crack conditions of the cracks in the pipeline system are shown in Table 6 [21], and these samples were used as training samples for vibration neural networks.

4. Location Results and Analysis

4.1. Results of Fatigue Crack Locations Based on the BP Neural Network

The BP neural network was used to locate the fatigue cracks of the pipeline system structure, and the first 10 orders of the under each damage condition were calculated as the feature vector of the damage location. Therefore, the input of the constructed neural network was the first 10 orders of , and the number of nodes in the input layer was 10. The output was the damage position, and the number of nodes in the output layer was 1. During training, the input and output vectors were normalized to the range of , and the output vectors were reversely normalized during positioning to obtain the fatigue crack location results. The function was used as the transfer function in the hidden layer, and its expression iswhere is the neuron output of this layer and is the neuron input of this layer.

The function was selected as the output layer, and its expression is

After repeated network testing, the hidden layer was set to 11, so the constructed BP neural network structure was . The initial weight and threshold values of each layer of the BP neural network were randomly set to values within the range of . The reason for this setting was that the BP neural network normalized data to before training and that the neural network output was also within . Therefore, the weight and threshold values were also of this magnitude. After repeated tests, the learning rate of BP neural network training was set to 0.1 and the learning target was set to 0.001.

After training, the network’s ability to locate cracks in the pipeline system was first tested. The finite element method was also used to create damage conditions for the test samples, which were not included in the training samples. The test results are shown in Table 7, where relative error = absolute error/measured pipeline length.

The crack location accuracy near vertical bend pipeconnection (2240mm), mass block pipe connection (5240mm), and pipelinestraddle position is higher than other positions. Compared with the middlesegment, the precision of crack location is poor because there are fewertraining samples near the simply supported end, and the structural naturalfrequency changes caused by damage near the end are complex.

At the same time, in order to simulate the various errors in the modal test and verify the generalization ability of the BP neural network, 5% noise was added to the test sample to verify the neural network’s crack location ability for the pipeline system under the interference of data noise. The location results are shown in Table 8. As shown in Figure 16, the noise had a certain influence on crack location predictions. With the introduction of noise, the crack positioning result error increased slightly. However, overall, the network forecast result was adequate, showing that the proposed method has the ability to resist noise.

Finally, the trained neural network was used to locate the cracks of the damaged pipes from the vibration tests. The results are shown in Table 9. Due to the vibration test errors and noise, the positioning results had large errors, and the relative error was about 10%. However, in general, this method has achieved good results, but there is still room for improvement.

Since the initial weights and thresholds of BP neural network training were randomly set, there was randomness in the final crack location result, this result is the training result of BP neural networkwith ideal damage location recognition effect. The differences in the BP neural network training results were due to some of the initial parameter settings causing convergence to local optimal solutions in the training process, which led to the low accuracy of the BP neural network in identifying the damage position of the actual pipeline structure. In order to solve this problem, the GA was adopted to optimize the initial weights and threshold values of BP neural network training for improvement.

4.2. Results of Fatigue Crack Locations Based on the GA-BP Vibration Method

The GA was used to improve the initial weights and thresholds of the BP neural network to optimize the network training results. A BP neural network with the same structure as that in Section 2 was constructed. The input vector was the first 10 orders of , the output was the damage position, the BP neural network structure to be optimized was constructed as , the transfer function of the hidden layer was , and the transfer function of the output layer was . The input and output data of the neural network were normalized to the range of . During neural network training, the learning rate was set at 0.1 and the learning target was set at 0.001. Parameters to be optimized in the BP neural network were the coding for an individual, the individual lengths of , and the fitness of individuals. The individual contained the initial weights and thresholds of the neural network. During training, the sum of the absolute values of the differences between the predicted and actual crack locations was the fitness value of the individual. The other parameters used by the genetic algorithm are shown in Table 10.

The initial weights and thresholds optimized by the genetic algorithm were passed to the BP neural network for retraining. After training, its ability to locate cracks in the pipeline system was first tested. The damage condition of the test samples was also created by the finite element method, and the results are shown in Table 11. As in Section 4.1, 5% noise was added to the test sample to verify the neural network’s crack location ability for the pipeline system under the interference of data noise. The location results are shown in Table 12.

The crack location accuracies near the vertical bend pipe connection (2240 mm), the mass block pipe connection (5240 mm), and the midspan position of the pipe were higher than those in other positions, and the crack location effect near the simple support was poor. With the introduction of noise, the error increased significantly, which was similar to the results of the original BP neural network. This was because the GA only optimized the initial weights and threshold values of the BP neural network and the calculation model used was the same. Under the existing conditions, better positioning results were selected. The results of the crack location in the case with and without data noise are shown in Figure 17.

The trained neural network was used to locate the cracks in the damage conditions of the vibration tests, and the results are shown in Table 13. In general, the positioning method achieved good results, and the average error was reduced by 41.4% compared with the positioning results of the original BP neural network.

4.3. Comparative Analysis of Methods

To compare the training results of the original BP neural network model and those optimized by the GA, commonly used evaluation indices were selected. The output result of the trained neural network should be highly positively correlated with the target output, which can be expressed by the correlation coefficient. The range of the correlation coefficient, , is within the range of , and the closer it is to 1, the better the training effect. The correlation coefficient, , is defined aswhere is the crack location (target output) and is the predicted location (actual output).

The mean square error was also used to evaluate network performance. A smaller mean square error value indicates that the neural network model has better accuracy in fitting training data. The mean square error () is defined as

For the original BP neural network, R = 0.999131129 and MSE = 6512.02197, and for the BP neural network optimized based on the genetic algorithm, R = 0.999339613 and MSE = 6246.65399. Compared with the network before optimization, the training results of the network at this time had smaller errors and better correlations.

The unary linear regression of the predicted results and the actual data were used to reflect the training effect of the neural network. When the output of the neural network is equal to the target, the regression line should coincide with the 45° line. The least squares method was used to carry out unary linear regression for the prediction results of the neural network using the following equations:

The regression fitting results are shown in Figures 18 and 19. The target value and the output result of the training results of the two models were basically on the same line, but there were fewer outliers in the training results based on the GA-BP method, and the fitting curve was closer to 45°.

To further verify the superiority of the GA-BP neural network, training sample sets were selected at random, and 200 consecutive training processes were conducted using the ordinary BP network and the GA-BP network. The average values of the evaluation indices and the average positioning errors were calculated. The mean values of the evaluation indices of the original BP neural network were R = 0.99872443 and MSE = 7338.384804, and the average error of the positioning results was 3.37%. The mean values of the evaluation indices of the BP neural network based on GA optimization were R = 0.998879998 and MSE = 6989.501492, and the average error of the positioning results was 2.98%. This suggested that the previous conclusions were not accidental. Compared with the original BP neural network, the BP neural network based on GA optimization had a better training effect and the average positioning error was reduced by 11.6%.

5. Conclusion

In this paper, the damage location of offshore oil and gas pipelines based on vibration tests and the use of a GA-improved BP neural network were studied. The main contributions and conclusions are summarized as follows:(1)With a real-scale model test for the piping system structure without damage and with different damage locations, the pipeline structure natural frequencies were analyzed. The results were compared with simulation values. Data from experiments of a pipeline system of fixed size were used to validate a finite element simulation model. The size of the simulation model was anastomotic, resulting in a large number of damage condition samples.(2)A BP neural network was established, and a damage location method based on vibration modal parameters and the BP neural network was used to calculate the normalized natural frequency change ratios under all working conditions. The BP neural network was trained, and damage locations were predicted.(3)The same damage condition samples were used to train the BP neural network improved by the GA to locate the damaged areas, and neural network training was evaluated by common indices. The results show that, compared with the original BP neural network, the BP neural network based on GA optimization had a better fitting effect and smaller positioning errors. Through a large number of training tests, the contingency of the optimization results was eliminated. The average positioning error is less than 3%, which is reduced by 11.6%, compared to the neural network predictions before optimization.

Data Availability

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the special fund under No. 473 Project (2018) of the Ministry of Industry and Information Technology.