Next Article in Journal
Interaction Mechanisms in «Portland Cement—Functional Polymer Mineral Additives» Binder Produced by Different Methods
Previous Article in Journal
Thin-Film Encapsulation for OLEDs and Its Advances: Toward Engineering
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Failure Pressure of Sulfur-Corrosion-Defective Pipelines Based on GABP Neural Networks

1
School of Civil Engineering and Architecture, Southwest University of Science and Technology, Mianyang 621010, China
2
China Electronic System Engineering Co., Ltd., Beijing 100071, China
*
Author to whom correspondence should be addressed.
Materials 2025, 18(13), 3177; https://doi.org/10.3390/ma18133177
Submission received: 9 June 2025 / Revised: 27 June 2025 / Accepted: 2 July 2025 / Published: 4 July 2025
(This article belongs to the Section Materials Simulation and Design)

Abstract

This study systematically investigates the degradation and failure prediction of pipeline materials in sulfur-containing environments, with a particular focus on X52 pipeline steel exposed to high-sulfur environments. Through uniaxial tensile tests to assess mechanical properties, it was found that despite surface corrosion and a reduction in overall structural load-bearing capacity, the intrinsic mechanical properties of X52 steel did not exhibit significant degradation and remained within standard ranges. The Johnson–Cook constitutive model was developed to accurately capture the material’s plastic behavior. Subsequently, a genetic algorithm-optimized backpropagation (GABP) neural network was employed to predict the failure pressure of defective pipelines and the corrosion rate in acidic environments, with prediction errors controlled within 5%. By integrating the GABP model with NACE standard methods, a framework for predicting the remaining service life for in-service pipelines operating in sour environments was established. This method provides a novel and reliable approach for pipeline integrity assessment, demonstrating significantly higher accuracy than traditional empirical models and finite element analysis.

1. Introduction

With the ongoing advancement of global oil and gas exploration into deeper and more acidic reservoirs, sour natural gas has emerged as a significant unconventional resource [1]. However, corrosion issues arising during its extraction and transportation have become increasingly severe. In particular, under the combined effects of H2S and CO2, metallic pipelines are highly susceptible to electrochemical corrosion, leading to wall thinning, defect propagation, and a consequent reduction in internal pressure-bearing capacity. In extreme cases, this may result in perforation, leakage, or even catastrophic explosions [2]. Due to the specific environmental conditions and transported media, sour gathering and transportation pipelines are highly susceptible to various forms of degradation, including material corrosion, hydrogen-induced cracking (HIC), and sulfide stress cracking (SSC). The primary form of corrosion arises from electrochemical reactions involving sulfides and carbon dioxide dissolved in water. This leads to widespread metal thinning as well as the formation of corrosion pits and groove-like defects. These corrosion defects result in local stress concentrations under internal pressure, significantly reducing the pipeline’s load-bearing capacity.
HIC and SSC represent more insidious degradation mechanisms, as they do not produce apparent macroscopic defects. Their underlying mechanism involves the dissolution of molecular H2S in water, which generates a large amount of atomic hydrogen. This atomic hydrogen diffuses into the metallic microstructure and accumulates at stress concentrators such as crack tips or voids, where it recombines to form molecular hydrogen. The accumulation of hydrogen molecules generates high internal pressures, initiating cracks or hydrogen blisters [3,4,5,6]. Moreover, the presence of hydrogen reduces the cohesive forces between metal atoms, thereby embrittling the material. When the applied tensile stress exceeds a critical threshold, the structure may undergo sudden brittle fracture.
While macroscopic corrosion defects inevitably compromise structural integrity, the intrinsic material strength of the pipeline plays a critical role in integrity assessments under sour service conditions. Therefore, it is essential to investigate the evolution of the material properties of pipelines after long-term exposure to sour environments in order to ensure accurate and reliable evaluations of their remaining structural performance [7,8,9].
At present, failure pressure prediction methods for corroded pipelines primarily fall into two categories: empirical engineering formulas and numerical simulations. Among them, standard assessment models such as DNV RP-F101 and ASME B31G provide practical guidance but are often limited by conservative estimations and narrow applicability [10,11,12]. Finite element analysis (FEA), as a high-precision method, requires extensive parameter input and computational resources, posing challenges in terms of real-time application and cost-effectiveness in engineering practice [11,13]. With the advancement of artificial intelligence, neural networks have demonstrated significant potential in pipeline failure prediction, leakage identification, and design optimization due to their excellent nonlinear mapping capabilities [14,15,16,17]. Compared to traditional assessment standards and empirical formulas, BP neural networks offer notable advantages in pipeline failure prediction due to their strong nonlinear mapping ability and adaptability. While conventional methods often rely on simplified assumptions and limited parameters, BP networks can integrate multiple complex factors and learn directly from data, enabling more accurate and flexible predictions. Additionally, when optimized with algorithms such as genetic algorithms, BP networks can overcome local minima issues and significantly improve predictive performance, making them more suitable for evaluating pipeline integrity under varied and complex conditions [18,19].
To improve the accuracy and reliability of pipeline integrity assessments, a comprehensive investigation was conducted in this study. First, tensile tests were carried out to examine the material degradation of pipeline steel after seven years of service in a high-sulfur environment. Based on the experimental results, a Johnson–Cook constitutive model was developed to characterize the mechanical behavior of the degraded material, providing a foundation for subsequent numerical simulations. Second, the backpropagation (BP) neural network was optimized using a genetic algorithm (GA), resulting in the development of a hybrid GABP (GABP) model with enhanced prediction capability. Finally, by integrating the optimized neural network with the remaining life evaluation methodology proposed in the NACE standard, an intelligent evaluation framework was established to assess the safety of in-service pipelines operating in sour environments.

2. The Effect of Sulfur-Containing Corrosion on the Performance of Pipeline Materials

2.1. Materials and Methods

To investigate the effect of sulfur-containing corrosion on material properties, mechanical tests were conducted on pipeline materials that had been in service in a sour environment. The subject of this study was a steel pipeline made of X52 material, which had been operational for seven years in a major sour gas field. The extracted natural gas from this field contained hydrogen sulfide (H2S), with a volume fraction ranging from 14.6% to 15.66%, and carbon dioxide (CO2), with a volume fraction between 8.57% and 14.1%. The operating temperature of the gas was 50 °C, with a flow velocity of 4 m/s, and an internal pressure ranging from 5.2 to 8.2 MPa.
Samples were extracted from the pipeline and subjected to tensile testing to determine the material’s mechanical strength. The dimensions of the tensile specimens are shown in Figure 1a,b. During specimen preparation, electrical discharge machining was first employed to cut raw material billets from the pipeline. Subsequent machining was then performed to remove the 2 millimeter-thick corroded layer from the outer surface, preserving the central portion along the pipe thickness to eliminate the influence of corrosion products and surface morphology on the test results. Throughout the machining process, circulating water was used to cool the specimens, thereby minimizing the thermal effects on the mechanical properties. Ultimately, cylindrical tensile specimens were obtained.
To ensure reliability and comparability, three pipelines of the same material and service conditions but with different diameters and wall thicknesses were tested. The dimensions of these pipelines are listed in Table 1. For each pipeline, three standard tensile specimens were fabricated and tested. The final geometry of the finished specimens is shown in Figure 1c. The tensile tests were conducted as illustrated in Figure 1d using a CMT5150 universal testing machine with a maximum load capacity of 100 kN, and the equipment was sourced from Shenzhen Wance Testing Machine Co., Ltd., Shenzhen, China. The extensometer had a gauge length of 50 mm and a precision class of grade 1. All tests were performed under ambient conditions, with a loading rate of 0.5 mm/min. Strain gauges were attached to the specimens to record strain data, facilitating the accurate determination of the elastic modulus.

2.2. Test Results and Analysis

During tensile testing, the cross-sectional area of the specimen continuously changes under load. If conventional engineering stress–strain calculations are used—where engineering stress is defined as the applied load divided by the initial cross-sectional area, and engineering strain is defined as the elongation divided by the initial gauge length—the resulting stress values may be underestimated, which can compromise the accuracy of subsequent modeling. Therefore, to more accurately characterize the material’s mechanical behavior, true stress and true strain should be employed [20]. The corresponding calculation formulas are provided in Equations (1) and (2) below:
σ T ure = F L A 0 L 0
ε T ure = ln L L 0
where F is the applied load at the current time; L is the specimen length at the current time; L0 is the initial gauge length of the specimen; and A0 is the initial cross-sectional area of the specimen.
The true stress–strain curves of X52 pipeline steel were obtained by processing the displacement and load data, as shown in Figure 2. The yield strength, tensile strength, and elastic modulus of each specimen are listed in Table 2. A noncorroded control group was not included in this study, as the mechanical properties of X52 steel are already specified in the API pipeline steel standard, which defines a wide range of values: a yield strength between 360 and 530 MPa and a tensile strength between 460 and 755 MPa. Due to the broadness of this range, it was impractical to establish a control group based on other batches of the same grade. However, it can be confirmed that the strength values obtained from the three corroded pipelines tested in this study fall within the standard limits.
According to the existing literature [21], the yield strength and tensile strength of unused X52 pipeline steel from the same gas field are 476.6 MPa and 555.4 MPa, respectively. Compared to the results obtained in this study, the maximum deviation is approximately 10%.
Comprehensive analysis showed that there was no significant degradation in intrinsic mechanical properties. Although corrosion causes a decrease in geometric stability, the test results still meet standard requirements. This indicates that the impact of sulfur corrosion on the load-bearing capacity of X52 pipeline steel is mainly manifested as a decrease in geometric stability rather than a degradation of the material’s inherent properties.

2.3. Constitutive Model

The plastic behavior of X52 pipeline steel is described using the conventional J2 flow theory, and the corresponding flow rule is expressed as follows [22]:
f σ , ε p ¯ = σ ¯ σ ¯ ε p ¯ = 0
The Johnson–Cook constitutive model was employed to characterize the plastic hardening behavior of X52 steel under quasi-static conditions. This model is widely used due to its computational efficiency and the ease of parameter determination. The constitutive equation is given as follows [23]:
σ ¯ = A + B ( ε ¯ p ) n
The stress–strain data prior to necking were selected for analysis. The elastic strain was calculated by dividing the yield strength by the elastic modulus, and the plastic strain was then obtained by subtracting the elastic strain from the total strain. Based on this, the strain hardening curve during the strengthening stage was established. An initial fitting of the Johnson–Cook model parameters A, B, and n was performed using the pre-necking hardening curve. However, these preliminarily fitted parameters could only provide a rough description of the plastic hardening behavior of X52 steel and were associated with significant errors.
Therefore, the initially fitted parameters were imported into a finite element (FE) software to simulate the tensile test. The simulated stress–strain data were extracted and compared with the experimental results. If a significant discrepancy existed between the two curves, so the constitutive parameters were iteratively adjusted. This process was repeated until the maximum agreement between the experimental and simulated curves was achieved. The finite element model is shown in Figure 3.
After multiple iterations of computation and parameter adjustment, the final Johnson–Cook constitutive model for X52 pipeline steel was obtained, as expressed in Equation (5). The corresponding strain hardening curve is illustrated in Figure 4.
The comparison between the finite element (FE) simulated stress–strain curve based on the Johnson–Cook constitutive model and the experimental stress–strain curve is shown in Figure 5. Before the material reached its ultimate tensile strength and necking occurred, the FE simulation exhibited a high degree of agreement with the experimental data. The maximum deviation between the finite element results and the experimental data curves in the elastic stage, yield plateau, and strain hardening phase came out to less than 2%.
σ ¯ = 450 + 660.92 ( ε ¯ p ) 0.4482

3. Prediction of Failure Pressure

3.1. Finite Element Model

In this study, a finite element model of a defective pipeline was developed using ANSYS software R2 (v. 22.2.0). The model employed SOLID186 hexahedral elements as the basic computational units. Internal corrosion of the pipeline is primarily caused by electrochemical reactions, with pitting and localized corrosion being the most common forms. Based on this, the geometry of the corroded surface was simplified to a regular rectangular shape, and the corrosion depth was assumed to be a uniform reduction in wall thickness. This simplification served as the foundation for building the 3D finite element model of the corroded pipeline. According to existing studies [24], the geometric shape of the defect edges has a negligible effect on the pipeline’s burst pressure; therefore, sharp-edge treatment was adopted in this study.
During normal operation, the pipeline is mainly subjected to internal pressure, which generates hoop stress, causing radial expansion. Given that the pipeline length is much greater than its diameter and both ends are open, the effect of axial displacement is negligible. Therefore, axial displacement constraints were applied at both ends of the pipeline model to restrict axial movement. To minimize the influence of Poisson’s effect on the simulation results, the model length was set to five times the outer diameter [25], and mesh refinement was applied in the defect region. The finite element model of the corroded pipeline is shown in Figure 6.
A plastic failure criterion was adopted to evaluate pipeline failure. That is, when the Von Mises equivalent stress in the corroded region reaches the ultimate tensile strength of the pipe material, the pipeline is considered to have failed [25]. The corresponding internal pressure at this point is defined as the failure pressure.
Ensuring the accuracy of the finite element model is a prerequisite for reliable numerical analysis. To validate the model, three representative pipelines with external surface defects from the literature [26] were selected. These pipelines were all made of X80-grade steel, with an outer diameter of 458.8 mm and a wall thickness of 8.1 mm. The geometric parameters of the corrosion defects for each pipeline are listed in Table 3.
The finite element validation results are presented in Table 4. The relative error between the calculated results of the present model and the experimental data ranged from 3.6% to 8.6%, with an average error of 5.6%. As shown in Figure 7, a comparison of the equivalent stress distribution at failure and the actual rupture locations observed in the burst tests indicates a high degree of agreement, verifying the rationality of the model’s boundary conditions and loading setup. In addition, the simulated failure pressures closely match the experimental values, demonstrating that the model can accurately predict the burst pressure of corroded pipelines. Therefore, the validated finite element approach was employed in this study to construct a failure pressure dataset for pipelines with varying defect sizes and diameters, serving as the foundation for predictive modeling of corrosion-defected pipeline failure.

3.2. GABP Neural Network Model

The architecture of the BP neural network, as illustrated in Figure 8, consists of an input layer, one or more hidden layers, and an output layer. The layers are interconnected through weight matrices and threshold vectors, with each node in the hidden and output layers assigned a specific threshold value. The learning process of the network primarily involves forward signal propagation, backward error propagation, and iterative optimization of weights and thresholds to minimize the prediction error.
However, in practical applications, the BP neural network model often suffers from poor prediction performance due to improper initialization of weights and biases, which may cause the model to fall into a local optimum. To enhance the predictive accuracy of the BP neural network, this study employed a genetic algorithm (GA) to optimize the network [27,28], thereby achieving more accurate predictions of burst pressure and residual service life.
The core mechanism of genetic optimization lies in the selection, crossover, and mutation operations performed on individuals based on a defined fitness function, allowing high-fitness offspring to be retained. These offspring inherit the primary characteristics of their parents while introducing new variations. During the evolutionary process, beneficial traits that better adapt to the environment are preserved, while less suitable traits are gradually eliminated. Through this iterative optimization process, the population ultimately converges toward the optimal solution.
In the context of BP neural network optimization, the objective is to refine the connection weights and biases between the input layer and hidden layer, as well as between the hidden layer and output layer. Initially, the network’s weights and thresholds are encoded as chromosomes in the genetic algorithm, and a population is randomly initialized. The mean squared error (MSE) of the BP network is used as the fitness function. Individual fitness values are then calculated to guide the evolutionary process. If the current parameter set has not reached optimal performance, iterative genetic operations—selection, crossover, and mutation—are applied to evolve the population until an optimal parameter combination is obtained. These optimized parameters are then imported into the BP network, completing the GA-based optimization. The optimization flow is illustrated in Figure 9.
The training data for the BP neural network in this study were obtained from two sources: experimental burst test data of defective pipelines reported in the literature [26,29,30,31,32,33,34,35] and the dataset established in Section 3.1 of this study. A total of 270 data samples were compiled, as detailed in Appendix A. Fifteen representative models were selected and retained as comparative samples for evaluating failure pressure prediction between the GABP neural network and existing assessment methods and were not included in the neural network training process. The remaining 255 data samples were randomly divided into a training set (70%), a validation set (20%), and a testing set (10%).
The defect parameters were used as input variables, with a total of ten inputs that includes the defect length (L), width (w), depth (d), axial spacing (SL), circumferential spacing (SC), internal or external position (P), pipe diameter (D), wall thickness (t), yield strength (σy), and ultimate tensile strength (σu). The failure pressure (Pf) was taken as the output variable. For the hidden layer, the number of neurons plays a critical role. An insufficient number of neurons may result in underfitting, failing to capture the complex nonlinear relationships, while an excessive number can lead to overfitting. Therefore, an empirical formula (6) was initially adopted to estimate the number of neurons, which was subsequently fine-tuned based on the training performance to determine the optimal network configuration [36].
h = p + q + a
where h denotes the number of neurons in the hidden layer; p represents the number of nodes in the input layer; q is the number of nodes in the output layer; and a is an integer ranging from 1 to 10.
The training performance of the neural network can be evaluated using the mean squared error (MSE). A smaller MSE indicates higher prediction accuracy. The expression for MSE is given as [37]
M S E = 1 n i = 1 n Y i Y i 2
where n denotes the number of input samples, Y1 represents the actual value, and Y i refers to the predicted value generated by the model.
The structure of the BP neural network for predicting the failure pressure of defective pipelines is shown in Figure 10. The training process of the GABP neural network for predicting the failure pressure of corroded pipelines included the following steps: numerical initialization, preliminary training of the BP neural network, optimization of the network weights and thresholds using a genetic algorithm, retraining of the BP neural network with the optimized parameters, and finally, the construction of the GABP neural network model. The genetic algorithm parameters for predicting the failure pressure of defective pipes are shown in Table 5. The entire optimization and training process was implemented using the MATLAB (R2022b) numerical simulation platform. The training dataset was fed into the GABP algorithm module, where the genetic algorithm iteratively optimized the BP neural network. During the construction of the BP neural network model, different numbers of hidden layer neurons were tested to identify the optimal configuration based on the minimum mean squared error (MSE). As shown in Figure 11, the MSE reached its lowest value when the number of hidden neurons was set to 11, indicating that this configuration yielded the best prediction performance.
The convergence curve of the genetic algorithm optimization is shown in Figure 12. The horizontal axis represents the number of iterations, while the vertical axis represents the fitness function value, i.e., the mean squared error (MSE). As observed in the figure, the MSE value stabilized after approximately 53 generations, indicating that the genetic algorithm had converged to the optimal solution. At this point, the minimum MSE no longer changed and remained stable at a value of 5.19, confirming the effectiveness of the GA-based optimization process.

3.3. Optimized Results

A total of 50 independent training sessions were conducted for both the BP and GABP neural networks. The performance of these models was evaluated using the Pearson Correlation Coefficient (R), where a value closer to 1 indicates a better fit between predicted and actual values. The Pearson coefficients for all 50 training instances are shown in Figure 13. The BP neural network yielded an average R value of 0.7689 with a standard deviation of 0.0478, whereas the GABP network achieved a significantly higher mean of 0.9824 and a lower standard deviation of 0.0196. These results suggest that the GA-BP model not only provides greater predictive accuracy but also demonstrates enhanced stability, as indicated by the narrower distribution range and higher proximity to R = 1. The Wilcoxon signed-rank test yielded a p-value of 0.0012, indicating that the difference in prediction performance between the two models is statistically significant at the 95% confidence level.
Figure 14 and Figure 15 present the regression plots corresponding to the best-performing models (in terms of R value) for the training, testing, and validation datasets of the BP and GABP networks, respectively. All data were normalized prior to plotting. In these figures, the diagonal “Ideal Line” represents the condition where R = 1, indicating perfect agreement between the predicted and actual values. The closer the regression curve is to this line, the better the fitting performance of the network.
A comparison of the regression results reveals that the BP network exhibited relatively low correlation across the training (R = 0.85426), validation (R = 0.81085), and testing (R = 0.82248) sets, resulting in an overall correlation coefficient of R = 0.83993. These values reflect a less reliable predictive performance, with substantial discrepancies between the measured and predicted outcomes. In contrast, the GA-BP network—optimized by adjusting the weights and thresholds between the input and hidden layers—achieved significantly higher correlation coefficients of 0.99671 (training), 0.98098 (validation), and 0.97949 (testing), with an overall R value of 0.99251. These results are nearly ideal (R = 1), and as shown in the figures, the data points are closely clustered around the diagonal line, indicating minimal deviation and superior fitting performance. This outcome demonstrates that the GABP neural network offers a more accurate and reliable method for predicting the failure pressure of corroded pipelines.
The optimization results of the BP neural network using the genetic algorithm are represented by weight and bias matrices. By fixing these matrices during retraining, the BP neural network can consistently converge to a stable optimal solution, thereby ensuring high prediction accuracy and reproducibility. The optimized matrices corresponding to the best-performing model among the 50 training sessions are shown below.
The weight matrix wij from the hidden layer to the output layer is given as follows:
1.145 2.981 0.718 0.302 0.261 1.825 0.526 0.307 0.847 0.130 0.310 1.070 0.254 1.746 1.661 0.401 0.541 0.527 1.184 2.191 1.375 0.683 1.587 1938 0.113 0.119 2.454 0.730 0.063 1.367 0.260 0.376 1.873 0.065 0.223 1.128 1.089 1.007 1.097 0.256 0.862 0.507 1.143 3.142 0.666 0.913 2.532 0.252 2.671 1.219 0.734 1.938 0.362 1.170 1.383 0.368 1.401 0.274 1.533 0.592 1.193 1.157 0.236 0.448 0.438 2.626 0.956 0.032 0.136 1.391 0.384 0.578 2.016 0.221 1.905 0.251 0.210 1.765 1.136 0.145 1.404 0.473 2.493 0.513 1.291 0.237 0.651 1.936 0.311 0.348 0.088 0.146 0.788 1.574 0.936 0.936 0.413 0.881 0.329 1.459 0.155 0.038 0.270 0.692 1.750 0.145 1.660 0.311 1.70 0.955
The weight matrix wjk from the hidden layer to the output layer is given as follows:
[ 0.667   0.5765   0.303   0.502   0.127   0.131   0.748   0.658   0.137   0.068   0.362 ] T
The bias matrix bj for the hidden layer neurons is given as follows:
[ 2.938   0.281   0.432   0.061   0.845   0.425   0.955   2.638   0.251   1.049   0.830   ]
The bias matrix bk for the output layer neurons is given as follows:
b k = 1.152
In the BP neural network, the weighted sum of input parameters plays a crucial role in feature extraction, importance evaluation, nonlinear mapping, and error propagation. This value indicates the degree of influence each input parameter has on the output within the GABP neural network. A larger value signifies that the activation function primarily adjusts the output based on that particular feature. The calculation formula for the weighted sum of input parameters is given by [38]
z = i = 1 n w i x i + b
where z represents the weighted sum; xi denotes the value of the i-th input feature; wi is the corresponding weight; b is the bias term; and n is the total number of input parameters.
The weighted sums of the input parameters in the GABP neural network are shown in Figure 16. Among these parameters, defect depth d was found to have the greatest influence on failure pressure, while circumferential spacing Sc had the least. This result indicates that the defect depth is the most critical parameter in predicting the failure pressure of defective pipelines using the neural network, and accurately determining the defect depth is essential for the reliability of the assessment.

3.4. Model Validation

During the training and optimization processes of both the BP and GABP neural networks, the trends of the measured values, BP-predicted values, and GABP-predicted values for each sample in the testing set are illustrated in Figure 17. It can be observed that the BP neural network exhibits significant fluctuations in its predictions, with error distributions lacking clear regularity.
In contrast, the GABP neural network demonstrated a substantial improvement in prediction accuracy. The maximum deviation between the predicted and actual failure pressures by the GABP model was 2.3 MPa, corresponding to a relative error of 9%. Furthermore, as shown in the error comparison plot in Figure 18, the prediction deviations of the GABP neural network consistently fluctuated around zero, indicating that the BP neural network optimized via a genetic algorithm achieved superior accuracy in predicting the failure pressure of corroded pipelines. In this context, the prediction error was defined as the neural network output minus the experimentally measured value.
The 15 sets of burst test data for defective pipelines retained in Section 3.2, which were not involved in the training process of the neural network, were selected to validate the accuracy and generalization capability of the GABP neural network model. The defect parameters of these pipelines are summarized in Table 6. These parameters were input into the trained GABP network to generate predicted failure pressures. In parallel, failure pressures were also calculated using conventional standards, including DNV RP-F101, PCORRC, ASME B31G, ASME B31G/RSTRENG, and C-FER, for comparison. As illustrated in Figure 19, the results indicate that the failure pressures estimated by traditional assessment methods were generally lower than the actual measured values, reflecting a conservative bias. In contrast, the predictions produced by the GA-BP neural network showed strong agreement with the experimental results, demonstrating high prediction accuracy. The maximum deviation between predicted and actual failure pressures was only 4.08%.

4. Prediction of Remaining Life of Pipelines

4.1. Corrosion Rate Prediction Model

In high-sulfur-containing corrosive environments, the corrosion rate of X52 steel is influenced by multiple factors, primarily including the partial pressures of CO2 and H2S, the temperature of the transported medium, and the flow velocity. These factors exhibit a highly nonlinear and complex mapping relationship with the corrosion rate rather than a simple linear correlation [39,40]. Currently, comprehensive mathematical models that consider multiple corrosion factors remain insufficiently developed. However, artificial neural networks, due to their powerful fuzzy recognition and nonlinear prediction capabilities, provide an effective approach for corrosion rate prediction. Therefore, in this study, a corrosion rate prediction model based on a genetic algorithm (GA)-optimized BP neural network was constructed to enhance prediction accuracy and adaptability, thereby enabling a more precise assessment of the corrosion behavior of X52 steel in high-sulfur environments. The genetic algorithm parameters used to predict the sulfur corrosion rate are shown in Table 7.
The existing literature [39,41,42] indicates that the primary factors affecting the corrosion rate of pipelines in CO2 and H2S coexisting environments are the partial pressures of corrosive substances, the temperature of the transported medium, and the flow velocity of the transported medium. Accordingly, these parameters were selected as the input layer of the neural network, comprising four input variables, with the corrosion rate as the output layer, having one output target. The BP neural network structure for predicting the sulfur corrosion rate is shown in Figure 20. The validation results show that with four inputs and one output, setting the number of neurons in the hidden layer to eight yielded the minimum mean squared error (MSE), and the MSE values corresponding to different numbers of hidden layer neurons are presented in Figure 21. Thirty samples of X52 steel corrosion rates related to sulfur-containing corrosion were collected from references [43,44,45,46,47] as the training data. The training results, shown in Figure 22, demonstrate that the GABP network model achieved an MSE of 0.0369 and a correlation coefficient of 0.99544.
The weighted sums of the input parameters are shown in Figure 23. The results indicate that the partial pressure of H2S had the greatest impact on the prediction outcome, with a weighted sum of 0.3906. The influences of CO2 partial pressure and the flow velocity of the transported medium were approximately equal, with weighted sums of 0.2571 and 0.2623, respectively. In contrast, temperature had the least effect on the prediction results, with a weighted sum of 0.09.
The optimized weight matrix wij from the input layer to the hidden layer is as follows:
2.153   0.170   1.826   0.198 1.499   1.611   2.231   0.337 1.427   0.240   0.061   1.354 2.154   1.255   2.042   2.025 1.720   0.634   2.620   0.693 0.655   0.631   1.678   1.979 1.266   1.731   1.450   1.335 2.480   0.402   1.201   3.017
The weight matrix wjk from the hidden layer to the output layer is as follows:
[   0.375   0.936   0.801   0.945   0.985   0.456   0.731   0.593 ] T
The bias matrix bj for the hidden layer neurons is as follows:
[ 2.511   1.847   1.249   2.216   0.910   1.623   2.738   2.636 ]
The bias matrix bk for the output layer neurons is as follows:
b k = 1.324
The correlation coefficient and mean squared error (MSE) of the network indicate a high degree of fit, demonstrating that this neural network is well suited for predicting the corrosion rate of X52 steel in sulfur-containing environments. Validation was performed using six datasets from reference [43], with the results presented in Table 8. The maximum prediction error was found to be 7.94%. These results confirm that the model can accurately predict the corrosion rate of X52 steel under the combined effects of H2S and CO2, highlighting its significant engineering applicability.

4.2. Remaining Life Prediction Method

Based on the method for determining the remaining life of corroded pipelines proposed in the American standard NACE SP 0502-2010 “Direct Assessment Method for Pipeline Corrosion” [48], the remaining life can be predicted according to the pipeline operating pressure, wall thickness, and corrosion rate. The expression is given as follows:
T R = C × S M t G R
where C represents the correction factor and is taken as 0.85; t denotes the wall thickness of the pipeline; GR stands for the corrosion rate; and SM indicates the safety margin.
Based on the GABP network model established in this study, the failure pressure of the corrosion-defected pipeline and the defect corrosion rate under its service environment were first predicted. Subsequently, the remaining service life of the defective pipeline was calculated using Equation (17). The entire process was implemented through programming on the Matlab platform, where the pre-trained GABP networks for failure pressure and corrosion rate prediction were integrated with the remaining life prediction formula. By inputting the relevant parameters, predictions and evaluations of both the failure pressure and remaining life could be achieved. The detailed procedure is illustrated in Figure 24.

4.3. Model Application Illustrative Example

Taking a segment of a sulfur-containing gas field’s gathering pipeline as an example, the pipeline material examined was X52 steel, with a diameter of 323 mm and a wall thickness of 13 mm. The design operating pressure was set to 9.6 MPa, while the actual operating pressure ranged from 5.2 to 8.2 MPa. The transported medium temperature was set to 30 °C, with partial pressures of H2S and CO2 measured at 0.116 MPa and 0.126 MPa, respectively. The gas flow velocity was set to 4 m/s. Coupon tests determined the corrosion rate of this pipeline segment to be 0.1 mm/year, while the corrosion rate predicted by the neural network was 0.098 mm/year. In-line inspection results revealed the presence of five independent corrosion defects within the pipeline segment. The corrosion defects were sufficiently spaced to ensure that their impacts on the remaining service life could be regarded as independent. Based on this assumption, the five defects were treated as independent failure sites during the remaining life evaluation. By inputting these parameters into the prediction model, the failure pressure and remaining service life of the pipeline segment were obtained. The defect parameters, failure pressures, and remaining service lives are summarized in Table 9. Without any protective measures, the minimum failure pressure of this segment was predicted to be 22.3 MPa, which satisfies the design pressure requirement of 9.6 MPa. However, the minimum remaining service life was found to be only 4.6 years, indicating a need for enhanced monitoring and timely replacement of this pipeline segment.

5. Conclusions

(1)
The mechanical properties of pipeline steel exposed to high-sulfur corrosive environments were experimentally investigated to assess the effects of such harsh service conditions on material strength degradation. The results indicated that, despite prolonged exposure to a high-sulfur environment, the material property parameters of the corroded pipeline steel exhibited no significant degradation in its intrinsic mechanical properties, although geometric stability was reduced due to corrosion.
(2)
The Johnson–Cook constitutive model for X52 pipeline steel was calibrated, with the numerical simulation results showing a high degree of agreement with the experimental curves. This constitutive model was demonstrated to accurately describe the plastic hardening characteristics of X52 steel.
(3)
A genetic algorithm-optimized backpropagation (GABP) neural network model was developed to predict the failure pressure and corrosion rate of defected pipelines. The predictive accuracy and fitting performance of the GABP model were compared with those of the conventional BP neural network. The results show that the GABP neural network achieved higher prediction accuracy for both the pipeline failure pressure and X52 sulfur corrosion rate, with maximum errors of 4.08% and 7.94%, respectively. Furthermore, based on the two neural network models, the failure pressure and service life of an in-service pipeline in a sulfur-containing gas field were predicted, demonstrating strong practical engineering guidance value.

Author Contributions

L.Z.: conceptualization, resources, supervision, writing—original draft preparation. Y.X.: software, data curation, methodology, writing—original draft preparation. B.J.: writing—review and editing, investigation. J.M.: software, translating, writing—original draft preparation, refining the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

The work was supported by the Sichuan Provincial Natural Science Foundation (Grant No. 2025ZNSFSC0091 and Grant No. 2025ZNSFSC0030).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

Author Yi Xia was employed by the China Electronic System Engineering Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Appendix A

Table A1. Training dataset for neural network.
Table A1. Training dataset for neural network.
Serial NumberD/mmt/mmL/mmd/mmw/mmMaterialσy/MPaσu/MPaPf/MPa
1458.88.1039.605.3931.90X80601.00684.0022.68
2459.48.0040.053.7532.00X80589.00730.5024.20
376217.5050.008.7550.00X52495.00565.0027.50
476217.50100.008.7550.00X52495.00565.0024.30
576217.50200.008.7550.00X52495.00565.0021.80
676217.50300.008.7550.00X52495.00565.0019.80
776217.50600.008.7550.00X52495.00565.0016.50
876217.50900.008.7550.00X52495.00565.0015.00
976217.50200.004.2050.00X52474.10556.6024.11
1076217.50200.008.9050.00X52474.10556.6021.76
1176217.50200.0013.1050.00X52474.10556.6017.15
1276217.50100.008.4050.00X52474.10556.6024.30
1376217.50300.008.5050.00X52474.10556.6019.80
1476217.50200.008.40100.00X52474.10556.6023.42
1576217.50200.009.00200.00X52474.10556.6022.64
251422.419.25180.0010.400.50X100740.00774.0015.35
261422.420.10385.003.800.50X100795.00840.0020.12
27914.416.40150.009.000.50X100739.00813.0021.40
28914.416.40450.006.000.50X100739.00813.0024.02
293246.4020.703.2319.30X52382.00570.0016.64
303246.0119.353.6018.99X52382.00570.0016.22
313246.3019.803.5719.31X52373.00522.0015.95
323246.3120.133.7319.74X52373.00522.0014.16
333246.1620.123.7319.99X52356.00514.0018.85
343246.2719.913.7320.20X52356.00514.0019.13
353246.2519.933.7620.11X52356.00514.0019.27
363246.1819.923.7920.01X52421.00520.0019.44
375087.1040.001.0715.95X70485.00590.0019.02
385088.7080.002.6131.90X70485.00590.0020.78
3950810.00150.004.5047.85X70485.00590.0019.54
4050812.00300.007.2063.80X70485.00590.0016.36
4150817.50600.0013.1379.76X70485.00590.0013.79
426607.1080.003.2082.90X70485.00590.0011.75
436608.70150.005.22207.24X70485.00590.0011.13
4466010.00300.007.5020.72X70485.00590.007.55
4566012.00600.001.8041.45X70485.00590.0022.67
4666017.5040.005.2562.17X70485.00590.0034.41
477117.10150.005.3344.65X70485.00590.006.54
487118.70300.001.3166.98X70485.00590.0015.54
4971110.00600.003.0089.30X70485.00590.0014.54
5071112.0041.005.40111.63X70485.00590.0020.35
5171117.5080.0010.5022.33X70485.00590.0025.90
528137.10300.002.13127.64X70485.00590.009.41
538138.70600.003.9225.53X70485.00590.008.79
5481310.00130.006.0051.06X70485.00590.0013.72
5581312.0080.009.0076.58X70485.00590.0013.51
5681317.50150.002.63102.11X70485.00590.0028.71
5710167.10600.004.2695.71X70485.00590.004.24
5810168.7040.006.53127.61X70485.00590.008.81
59101610.0080.001.50159.51X70485.00590.0013.33
60101612.00150.003.6031.90X70485.00590.0014.18
61101617.50300.007.8863.80X70485.00590.0016.89
6276217.5010.003.50132.93X52495.00565.0031.40
6376217.5020.003.50132.93X52495.00565.0030.30
6476217.5050.003.50132.93X52495.00565.0029.50
6576217.50100.003.50132.93X52495.00565.0027.90
6676217.50200.003.50132.93X52495.00565.0027.50
6776217.50400.003.50132.93X52495.00565.0027.10
6876217.50600.003.50132.93X52495.00565.0026.80
6976217.50800.003.50132.93X52495.00565.0026.70
7076217.501000.003.50132.93X52495.00565.0026.66
7176217.501200.003.50132.93X52495.00565.0026.65
7276217.5010.008.75132.93X52495.00565.0027.90
7376217.5020.008.75132.93X52495.00565.0026.66
7476217.5050.008.75132.93X52495.00565.0025.18
7576217.50100.008.75132.93X52495.00565.0022.94
7676217.50200.008.75132.93X52495.00565.0022.42
7776217.50400.008.75132.93X52495.00565.0022.31
7876217.50600.008.75132.93X52495.00565.0021.95
7976217.50800.008.75132.93X52495.00565.0021.76
8076217.501000.008.75132.93X52495.00565.0021.73
8176217.501200.008.75132.93X52495.00565.0021.72
8276217.5010.0014.00132.93X52495.00565.0025.20
8376217.5020.0014.00132.93X52495.00565.0023.90
8476217.5050.0014.00132.93X52495.00565.0022.36
8576217.50100.0014.00132.93X52495.00565.0019.87
8676217.50200.0014.00132.93X52495.00565.0016.88
8776217.50400.0014.00132.93X52495.00565.0016.79
8876217.50600.0014.00132.93X52495.00565.0016.77
8976217.50800.0014.00132.93X52495.00565.0016.78
9076217.501000.0014.00132.93X52495.00565.0016.76
9176217.501200.0014.00132.93X52495.00565.0016.75
9276217.5050.002.00132.93X52495.00565.0030.86
9376217.5050.005.00132.93X52495.00565.0028.17
9476217.5050.009.00132.93X52495.00565.0025.30
9576217.5050.0014.00132.93X52495.00565.0022.35
9676217.50150.002.00132.93X52495.00565.0030.00
9776217.50150.005.00132.93X52495.00565.0025.75
9876217.50150.009.00132.93X52495.00565.0022.26
9976217.50150.0014.00132.93X52495.00565.0016.93
10076217.50300.002.00132.93X52495.00565.0029.40
10176217.50300.005.00132.93X52495.00565.0026.20
10276217.50300.009.00132.93X52495.00565.0022.41
10376217.50300.0014.00132.93X52495.00565.0017.22
10476217.50200.003.5020.00X52495.00565.0027.50
10576217.50200.003.5060.00X52495.00565.0027.16
10676217.50200.003.50100.00X52495.00565.0026.21
10776217.50200.003.50140.00X52495.00565.0026.04
10876217.50200.003.50180.00X52495.00565.0025.93
10976217.50200.008.7520.00X52495.00565.0022.42
11076217.50200.008.7560.00X52495.00565.0021.43
11176217.50200.008.75100.00X52495.00565.0019.77
11276217.50200.008.75140.00X52495.00565.0019.29
11376217.50200.008.75180.00X52495.00565.0019.12
11476217.50200.0014.0020.00X52495.00565.0016.88
11576217.50200.0014.0060.00X52495.00565.0015.67
11676217.50200.0014.00100.00X52495.00565.0013.97
11776217.50200.0014.00140.00X52495.00565.0013.58
11876217.50200.0014.00180.00X52495.00565.0013.31
11961012.7017.606.3547.00X52460.00555.0023.75
12061012.7035.206.3547.00X52460.00555.0022.50
12161012.7052.806.3547.00X52460.00555.0021.50
12261012.7070.406.3547.00X52460.00555.0020.80
12361012.7088.006.3547.00X52460.00555.0020.00
12461012.70132.006.3547.00X52460.00555.0018.30
12561012.70176.006.3547.00X52460.00555.0017.20
12661012.70220.006.3547.00X52460.00555.0016.00
12761012.70264.006.3547.00X52460.00555.0014.80
12861012.70308.006.3547.00X52460.00555.0014.20
12945714.0016.007.0035.00X52460.00555.0020.00
13045714.0032.007.0035.00X52460.00555.0018.40
13145714.0048.007.0035.00X52460.00555.0016.40
13245714.0064.007.0035.00X52460.00555.0016.00
13345714.0080.007.0035.00X52460.00555.0015.20
13445714.00120.007.0035.00X52460.00555.0014.10
13545714.00160.007.0035.00X52460.00555.0013.20
13645714.00200.007.0035.00X52460.00555.0012.50
13745714.00240.007.0035.00X52460.00555.0011.90
13845714.00280.007.0035.00X52460.00555.0010.20
139142214.4028.607.70112.00X80638.00739.0016.30
140142214.4057.207.70112.00X80638.00739.0015.80
141142214.4085.807.70112.00X80638.00739.0014.60
142142214.40114.407.70112.00X80638.00739.0014.30
143142214.40143.007.70112.00X80638.00739.0014.00
144142214.40214.507.70112.00X80638.00739.0011.90
145142214.40286.007.70112.00X80638.00739.0010.80
146142214.40357.507.70112.00X80638.00739.009.90
147142214.40429.007.70112.00X80638.00739.009.60
148142214.40500.507.70112.00X80638.00739.009.20
149101614.4024.207.7080.00X80638.00739.0023.80
150101614.4048.407.7080.00X80638.00739.0022.90
151101614.4072.607.7080.00X80638.00739.0021.40
152101614.4096.807.7080.00X80638.00739.0020.40
153101614.40121.007.7080.00X80638.00739.0019.10
154101614.40181.507.7080.00X80638.00739.0017.10
155101614.40242.007.7080.00X80638.00739.0016.20
156101614.40302.507.7080.00X80638.00739.0015.30
157101614.40363.007.7080.00X80638.00739.0013.80
158101614.40423.507.7080.00X80638.00739.0013.10
15945714.0080.007.0035.87X52460.00555.0016.20
16045714.0080.007.0071.75X52460.00555.0016.00
16145714.0080.007.00107.62X52460.00555.0015.90
16245714.0080.007.00143.50X52460.00555.0015.80
16345714.0080.007.00179.37X52460.00555.0015.60
16445714.0080.007.00215.25X52460.00555.0015.30
16561012.7088.006.3547.89X52460.00555.0021.20
16661012.7088.006.3595.77X52460.00555.0021.10
16761012.7088.006.35143.66X52460.00555.0021.00
16861012.7088.006.35191.54X52460.00555.0020.90
16961012.7088.006.35239.43X52460.00555.0020.70
17061012.7088.006.35287.31X52460.00555.0020.40
171101614.40121.007.7079.76X80638.00739.0019.20
172101614.40121.007.70159.51X80638.00739.0019.00
173101614.40121.007.70239.27X80638.00739.0018.80
174101614.40121.007.70319.02X80638.00739.0018.50
175101614.40121.007.70398.78X80638.00739.0018.10
176101614.40121.007.70478.54X80638.00739.0017.80
177142214.40143.007.70111.63X80638.00739.0014.00
178142214.40143.007.70223.25X80638.00739.0013.80
179142214.40143.007.70334.88X80638.00739.0013.70
180142214.40143.007.70446.51X80638.00739.0013.50
181142214.40143.007.70558.14X80638.00739.0013.20
182142214.40143.007.70669.76X80638.00739.0012.90
18345714.0080.002.8071.75X52460.00555.0022.00
18445714.0080.004.2071.75X52460.00555.0019.90
18545714.0080.005.6071.75X52460.00555.0018.20
18645714.0080.007.0071.75X52460.00555.0014.20
18745714.0080.008.4071.75X52460.00555.0010.80
18845714.0080.009.8071.75X52460.00555.007.50
18945714.0080.0011.2071.75X52460.00555.004.00
19061012.7088.002.6095.77X52460.00555.0023.80
19161012.7088.003.9095.77X52460.00555.0022.00
19261012.7088.005.2095.77X52460.00555.0021.50
19361012.7088.006.5095.77X52460.00555.0020.10
19461012.7088.007.8095.77X52460.00555.0018.20
19561012.7088.009.1095.77X52460.00555.009.50
19661012.7088.0010.4095.77X52460.00555.005.20
197101614.40121.002.88159.51X80638.00739.0024.00
198101614.40121.004.32159.51X80638.00739.0021.80
199101614.40121.005.76159.51X80638.00739.0020.80
200101614.40121.007.70159.51X80638.00739.0020.00
201101614.40121.008.64159.51X80638.00739.0018.20
202101614.40121.0010.08159.51X80638.00739.0016.40
203101614.40121.0011.52159.51X80638.00739.0013.60
204142214.40143.002.88223.25X80638.00739.0017.00
205142214.40143.004.32223.25X80638.00739.0015.80
206142214.40143.005.76223.25X80638.00739.0014.00
207142214.40143.007.70223.25X80638.00739.0013.00
208142214.40143.008.64223.25X80638.00739.0011.00
209142214.40143.0010.08223.25X80638.00739.008.80
210142214.40143.0011.52223.25X80638.00739.008.00
2116108.1039.602.4531.90X80601.00684.0019.34
2126108.1039.602.4531.90X80601.00684.0020.45
2136108.1039.602.4531.90X80601.00684.0020.76
2146108.1039.602.4531.90X80601.00684.0021.56
2156108.1039.602.4531.90X80601.00684.0022.06
2166108.1039.602.4531.90X80601.00684.0022.14
2176108.1039.602.4531.90X80601.00684.0022.18
2186108.1039.602.4531.90X80601.00684.0022.20
2196108.1039.602.4531.90X80601.00684.0022.21
2206108.1039.604.9031.90X80601.00684.0016.75
2216108.1039.604.9031.90X80601.00684.0018.57
2226108.1039.604.9031.90X80601.00684.0019.72
2236108.1039.604.9031.90X80601.00684.0020.85
2246108.1039.604.9031.90X80601.00684.0021.52
2256108.1039.604.9031.90X80601.00684.0021.31
2266108.1039.604.9031.90X80601.00684.0021.61
2276108.1039.604.9031.90X80601.00684.0021.65
2286108.1039.604.9031.90X80601.00684.0021.66
229458.88.1039.607.3531.90X80601.00684.0013.79
230458.88.1039.607.3531.90X80601.00684.0015.15
231458.88.1039.607.3531.90X80601.00684.0016.47
232458.88.1039.607.3531.90X80601.00684.0018.21
233458.88.1039.607.3531.90X80601.00684.0018.78
234458.88.1039.607.3531.90X80601.00684.0019.29
235458.88.1039.607.3531.90X80601.00684.0019.81
236458.88.1039.607.3531.90X80601.00684.0019.84
237458.88.1039.607.3531.90X80601.00684.0019.87
238458.88.1039.605.3932.10X80638.00739.0020.90
239458.88.1039.605.3932.10X80638.00739.0021.20
240458.88.1039.605.3932.10X80638.00739.0021.10
241458.88.1039.605.3932.10X80638.00739.0017.10
242458.88.1039.605.3932.10X80638.00739.0021.50
243458.88.1039.605.3932.10X80638.00739.0015.20
244458.88.1039.605.3932.10X80638.00739.0022.00
245458.88.1039.605.3932.10X80638.00739.0022.00
246458.88.1039.605.3932.10X80638.00739.0023.50
247458.88.1039.605.3932.10X80638.00739.0024.00
248458.88.1039.605.3932.10X80638.00739.0020.00
249458.88.1039.605.3932.10X80638.00739.0024.40
250458.88.1039.605.3932.10X80638.00739.0016.00
251458.88.1039.605.3932.10X80638.00739.0020.00
252458.88.1039.605.3932.10X80638.00739.0020.50
253458.88.1039.605.3932.10X80638.00739.0020.80
254458.88.1039.605.3932.10X80638.00739.0021.00
255458.88.1039.605.3932.10X80638.00739.0021.20
256458.88.1039.605.3932.10X80638.00739.0021.40
257458.88.1039.605.3932.10X80638.00739.0021.50
258458.88.1039.605.3932.10X80638.00739.0021.70
259458.88.1039.605.3932.10X80638.00739.0018.80
260458.88.1039.605.3932.10X80638.00739.0023.20
261458.88.1039.605.3932.10X80638.00739.0023.50
262458.88.1039.605.3932.10X80638.00739.0023.70
263458.88.1039.605.3932.10X80638.00739.0023.90
264458.88.1039.605.3932.10X80638.00739.0024.10
265458.88.1039.605.3932.10X80638.00739.0024.30
266458.88.1039.605.3932.10X80638.00739.0024.50
267458.88.1039.605.3932.10X80638.00739.0024.50
268458.88.1039.602.4531.90X80601.00684.0023.84
269458.88.1039.602.4531.90X80601.00684.0022.73
270458.88.1039.602.4531.90X80601.00684.0024.61

References

  1. Rubaiee, S. High sour natural gas dehydration treatment through low temperature technique: Process simulation, modeling and optimization. Chemosphere 2023, 320, 138076. [Google Scholar] [CrossRef] [PubMed]
  2. Vosikovsky, O.; Macecek, M.; Ross, D.J. Allowable defect sizes in a sour crude oil pipeline for corrosion fatigue conditions. Int. J. Press. Vessel. Pip. 1983, 13, 197–226. [Google Scholar] [CrossRef]
  3. Li, X.; Ma, X.; Zhang, J.; Akiyama, E.; Wang, Y.; Song, X. Review of Hydrogen Embrittlement in Metals: Hydrogen Diffusion, Hydrogen Characterization, Hydrogen Embrittlement Mechanism and Prevention. Acta Metall. Sin. (Engl. Lett.) 2020, 33, 759–773. [Google Scholar] [CrossRef]
  4. Cai, L.; Bai, G.; Gao, X.; Li, Y.; Hou, Y. Experimental investigation on the hydrogen embrittlement characteristics and mechanism of natural gas-hydrogen transportation pipeline steels. IOP Publ. Ltd. 2022, 9, 046512. [Google Scholar] [CrossRef]
  5. Negi, A.; Barsoum, I.; Alfentanil, A. Predicting sulfide stress cracking in a sour environment: A phase-field finite element study. Theor. Appl. Fract. Mech. 2023, 127, 104084. [Google Scholar] [CrossRef]
  6. Shimamura, J.; Morikawa, T.; Yamasaki, S.; Tanaka, M. Sulfide stress cracking (ssc) of low alloy linepipe steels in low h_2s content sour environment. ISIJ Int. 2022, 62, 2095–2106. [Google Scholar] [CrossRef]
  7. Dong, S.; Zhang, L.; Zhang, H. Crack propagation rate of hydrogen-induced cracking in high sulfur-containing pipelines. Eng. Fail. Anal. 2021, 123, 105271. [Google Scholar] [CrossRef]
  8. Khaksar, L.; Shirokoff, J. Effect of elemental sulfur and sulfide on the corrosion behavior of cr-mo low alloy steel for tubing and tubular components in oil and gas industry. Materials 2017, 10, 430. [Google Scholar] [CrossRef]
  9. Cao, J. Effect of hydrogen embrittlement on the safety assessment of low-strength hydrogen transmission pipeline. Eng. Fail. Anal. 2024, 156, 107787. [Google Scholar] [CrossRef]
  10. Xu, Y. Adaptability Analysis of Residual Strength Evaluation Methods for Corroded Pipelines. Chem. Saf. Environ. Prot. 2022, 35, 9–13. [Google Scholar]
  11. Li, H.; Huang, K.; Zeng, Q.; Sun, C. Residual strength assessment and residual life prediction of corroded pipelines: A decade review. Energies 2022, 15, 726. [Google Scholar] [CrossRef]
  12. Zuo, L.; Zeng, C.; Hu, X.; Du, S.; Zhao, Y.; Fei, F. Evaluation of corrosion residual life prediction methods for metal pipelines. Materials 2022, 15, 5624. [Google Scholar] [CrossRef] [PubMed]
  13. Yuan, Y.; Deng, K.; Zhang, J.; Zeng, W.; Kong, X.; Lin, Y. Finite element study on residual internal pressure strength of corroded oil pipes and prediction method for remaining life. Anti-Corros. Methods Mater. 2021, 68, 481–488. [Google Scholar] [CrossRef]
  14. Li, Q.; Li, Z. Research on failure pressure prediction of water supply pipe based on ga-bp neural network. Water 2024, 16, 2659. [Google Scholar] [CrossRef]
  15. Zhang, L.; Luo, Y.; Shen, Z.; Ye, D.; Li, Z. Optimization design of the elbow inlet channel of a pipeline pump based on the scso-bp neural network. Water 2024, 16, 22. [Google Scholar] [CrossRef]
  16. Xin, J.; Chen, J.; Li, C.; Lu, R.-K.; Li, X.; Wang, C.; Zhu, H.; He, R. Deformation characterization of oil and gas pipeline by acm technique based on ssa-bp neural network model. Measurement 2021, 189, 110654. [Google Scholar] [CrossRef]
  17. Jia, Z.; Ren, L.; Li, H.; Sun, W. Pipeline leak localization based on fbg hoop strain sensors combined with bp neural network. Appl. Ences 2018, 8, 146. [Google Scholar] [CrossRef]
  18. Ji, H.; Zhang, X.; Wang, T.; Yang, K.; Jiang, J.; Xing, Z. Oil spill area prediction model of submarine pipeline based on bp neural network and convolutional neural network. Process. Saf. Environ. Prot. 2025, 199, 107264. [Google Scholar] [CrossRef]
  19. Li, X.; Jing, H.; Liu, X.; Chen, G.; Han, L. The prediction analysis of failure pressure of pipelines with axial double corrosion defects in cold regions based on the bp neural network. Int. J. Press. Vessel. Pip. 2023, 202, 104907. [Google Scholar] [CrossRef]
  20. Li, N.; Jia, B.; Chen, J.; Sheng, Y.; Deng, S. Phenomenological 2d and 3d models of ductile fracture for girth weld of x80 pipeline. Buildings 2023, 13, 283. [Google Scholar] [CrossRef]
  21. Fan, W.; Gao, J.; Liu, C. Effect of Localized Corrosion Depth on the Performance of L360 Pipelines under High Acidity Conditions. Oil Gas Storage Transp. 2018, 37, 162–168. [Google Scholar]
  22. Westergaard, H.M. Theory of Elasticity and Plasticity; Harvard University Press: Cambridge, MA, USA, 1952; p. 1966. [Google Scholar]
  23. Johnson, R.; Cook, W.K. A Constitutive Model and Data for Metals Subjected to Large strains High Strain Rates and High Temperatures. In Proceedings of the 7th International Symposium on Ballistics, The Hague, The Netherlands, 19–21 April 1983. [Google Scholar]
  24. Sun, M.; Zhao, H.; Li, X.; Liu, J.; Xu, Z. New evaluation method of failure pressure of steel pipeline with irregular-shaped defect. Appl. Ocean. Res. 2021, 110, 102601. [Google Scholar] [CrossRef]
  25. Mensah, A.; Sriramula, S. Estimation of burst pressure of pipelines with interacting corrosion clusters based on machine learning models. J. Loss Prev. Process Ind. 2023, 85, 105176. [Google Scholar] [CrossRef]
  26. Benjamin, A.; Freire, J.; Vieira, R. Part 6: Analysis of pipeline containing interacting corrosion defects. Exp. Tech. 2007, 31, 74–82. [Google Scholar] [CrossRef]
  27. Holland, J.H. Adaptation in Natural and Artificial Systems; University of Michigan Press: Ann Arbor, MC, USA, 1975. [Google Scholar]
  28. Aivaliotis-Apostolopoulos, P.; Loukidis, D.; Mirjalili, S. Swarming genetic algorithm: A nested fully coupled hybrid of genetic algorithm and particle swarm optimization. PLoS ONE 2022, 17, e0275094. [Google Scholar] [CrossRef]
  29. Qing, S.; Dai, Q.; Guo, H. Prediction of Ultimate Pressure of Corroded Defect Pipelines Based on BP Neural Network. Corros. Prot. 2018, 39, 634–637. [Google Scholar]
  30. Kim, W.-S.; Kim, Y.-P.; Kho, Y.-T.; Choi, J.-B. Full scale burst test and finite element analysis on corroded gas pipeline. In Proceedings of the 2002 4th International Pipeline Conference, Calgary, AB, Canada, 29 September–3 October 2002. [Google Scholar]
  31. Kim, Y.-P.; Kim, W.-S.; Lee, Y.-K.; Oh, K.-H. The evaluation of failure pressure for corrosion defects within girth or seam weld in transmission pipelines. In Proceedings of the 2004 International Pipeline Conference, Calgary, AB, Canada, 4–8 October 2004. [Google Scholar]
  32. Freire, J.; Vieira, R.; Castro, J.; Benjamin, A. Part 3: Burst tests of pipeline with extensive longitudinal metal loss. Exp. Tech. 2010, 30, 60–65. [Google Scholar] [CrossRef]
  33. Benjamin, A.C.; Freire, J.L.; Vieira, R.D.; Diniz, J.L.; de Andrade, E.Q. Burst tests on pipeline containing interacting corrosion defects. In Proceedings of the Asme International Conference on Offshore Mechanics & Arctic Engineering, Halkidiki, Greece, 12–17 June 2005. [Google Scholar]
  34. Chen, J.M.; Meng, H.M.; Li, Y.Y. Pipeline prescription analysis after corrosion and explosive test. In Proceedings of the China International Corrosion Control Conference’99, Beijing, China, 26–28 October 1998. [Google Scholar]
  35. Shuai, Y.; Shuai, J.; Liu, C.Y. Research on the reliability methods of corroded pipeline. Pet. Sci. Bull. 2017, 2, 288–297. [Google Scholar]
  36. Xiang, Y.; Zhu, L.; Jia, B.; Zhao, L.; Li, N.; Gu, Y.; Ren, P. Sensitivity analysis and failure prediction of x80 pipeline under transverse landslide. J. Constr. Steel Res. 2025, 224, 109090. [Google Scholar] [CrossRef]
  37. Wei, W.; Cong, R.; Li, Y.; Abraham, A.D.; Yang, C.; Chen, Z. Prediction of tool wear based on GA-BP neural network. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2022, 236, 1564–1573. [Google Scholar] [CrossRef]
  38. Mcculloch, W.S.; Pitts, W. A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biophys. 1943, 5, 115–133. [Google Scholar] [CrossRef]
  39. Rahmawati, S.D.; Santoso, R.K.; Tanjungsari, F. Integrated CO2-H2S corrosion-erosion modeling in gas production tubing and pipeline by considering passive layer activity. J. Pet. Explor. Prod. Technol. 2021, 11, 3129–3143. [Google Scholar] [CrossRef]
  40. Guzenkova, A.S.; Artamonova, I.V.; Guzenkov, S.A.; Ivanov, S.S. Steel Corrosion in Hydrogen Sulfide Containing Oil Field Model Media. Metallurgist 2021, 65, 517–521. [Google Scholar] [CrossRef]
  41. Kanchanomai, C.; Phiphobmongkol, V.; Muanjan, P. Fatigue failure of an orthopedic implant—A locking compression plate. Eng. Fail. Anal. 2008, 15, 521–530. [Google Scholar] [CrossRef]
  42. Okonkwo, P.C.; Shakoor, R.A.; Benamor, A.; Amer Mohamed, A.M.; Al-Marri, M.J. Corrosion behavior of api x100 steel material in a hydrogen sulfide environment. Metals 2017, 7, 109. [Google Scholar] [CrossRef]
  43. Tian, Y.; Li, S.; Xiao, J. Research on Internal Corrosion Prediction Model for Sulfur-containing Natural Gas Gathering and Transportation Pipelines. Oilfield Surf. Eng. 2020, 39, 19–23. [Google Scholar]
  44. Tian, Y.; Li, S.; Xiao, J. Application of Corrosion Prediction Software for Sulfur-containing Gas Field Gathering and Transportation Pipelines. Pet. Nat. Gas Chem. Ind. 2021, 50, 83–86. [Google Scholar]
  45. Yang, J.; Ma, G. Prediction Methods for Corrosion of Sulfur-containing Pipelines. Oil Gas Storage Transp. 2006, 25, 55–58. [Google Scholar]
  46. Liu, D.; Liang, F.; Gong, J.; Zhao, J. Prediction of Corrosion Rate of L360 Steel in High-sulfur Gas Fields Based on Neural Network. Petrochem. Corros. Prot. 2012, 29, 1–3. [Google Scholar]
  47. Wang, Z.; Lan, X. Corrosion Behavior of L360 Steel in High-pressure H2S/CO2 Gas-liquid Two-phase Environment. Corros. Prot. 2011, 32, 782–784. [Google Scholar]
  48. ANSI-NACE SP 0502-2010; Pipeline External Corrosion Direct Assessment Methodology. NACE: Houston, TX, USA, 2010.
Figure 1. Uniaxial tensile test: (a) schematic diagram of specimen sampling; (b) geometry of the specimen; (c) final machined specimen; (d) tensile test setup.
Figure 1. Uniaxial tensile test: (a) schematic diagram of specimen sampling; (b) geometry of the specimen; (c) final machined specimen; (d) tensile test setup.
Materials 18 03177 g001
Figure 2. Stress–strain curve of tensile test specimen.
Figure 2. Stress–strain curve of tensile test specimen.
Materials 18 03177 g002
Figure 3. Finite element model of tensile specimen.
Figure 3. Finite element model of tensile specimen.
Materials 18 03177 g003
Figure 4. X52 hardening curve.
Figure 4. X52 hardening curve.
Materials 18 03177 g004
Figure 5. Comparison of finite element simulation results based on the Johnson–Cook constitutive model and tensile test data.
Figure 5. Comparison of finite element simulation results based on the Johnson–Cook constitutive model and tensile test data.
Materials 18 03177 g005
Figure 6. Finite element model of defective pipes.
Figure 6. Finite element model of defective pipes.
Materials 18 03177 g006
Figure 7. Comparison of blasting test results and finite element analysis results: (a) ITDS-2; (b) ITDS-5; (c) ITDS-6.
Figure 7. Comparison of blasting test results and finite element analysis results: (a) ITDS-2; (b) ITDS-5; (c) ITDS-6.
Materials 18 03177 g007
Figure 8. BP neural network structure diagram.
Figure 8. BP neural network structure diagram.
Materials 18 03177 g008
Figure 9. Flowchart of genetic algorithm optimization of BP neural network.
Figure 9. Flowchart of genetic algorithm optimization of BP neural network.
Materials 18 03177 g009
Figure 10. The BP neural network structure for predicting failure pressure of defective pipelines.
Figure 10. The BP neural network structure for predicting failure pressure of defective pipelines.
Materials 18 03177 g010
Figure 11. The MSE values associated with varying numbers of hidden layer neurons in the neural network model employed for failure pressure prediction.
Figure 11. The MSE values associated with varying numbers of hidden layer neurons in the neural network model employed for failure pressure prediction.
Materials 18 03177 g011
Figure 12. Genetic algorithm optimization of BP neural network convergence curve.
Figure 12. Genetic algorithm optimization of BP neural network convergence curve.
Materials 18 03177 g012
Figure 13. Pearson correlation coefficients corresponding to 50 independent training runs.
Figure 13. Pearson correlation coefficients corresponding to 50 independent training runs.
Materials 18 03177 g013
Figure 14. Fitting effect diagram of BP neural network: (a) training set fitting effect diagram; (b) validation set fitting effect diagram; (c) test set fitting effect diagram; (d) overall fitting effect diagram.
Figure 14. Fitting effect diagram of BP neural network: (a) training set fitting effect diagram; (b) validation set fitting effect diagram; (c) test set fitting effect diagram; (d) overall fitting effect diagram.
Materials 18 03177 g014
Figure 15. Fitting effect diagram of GABP neural network: (a) training set fitting effect diagram; (b) validation set fitting effect diagram; (c) test set fitting effect diagram; (d) overall fitting effect diagram.
Figure 15. Fitting effect diagram of GABP neural network: (a) training set fitting effect diagram; (b) validation set fitting effect diagram; (c) test set fitting effect diagram; (d) overall fitting effect diagram.
Materials 18 03177 g015
Figure 16. The impact of the weighted summation of individual parameter weights on the prediction of failure pressure in the neural network model.
Figure 16. The impact of the weighted summation of individual parameter weights on the prediction of failure pressure in the neural network model.
Materials 18 03177 g016
Figure 17. Comparison of GABP and BP neural network prediction results.
Figure 17. Comparison of GABP and BP neural network prediction results.
Materials 18 03177 g017
Figure 18. Comparison of GABP and BP neural network prediction errors.
Figure 18. Comparison of GABP and BP neural network prediction errors.
Materials 18 03177 g018
Figure 19. Comparison of failure stresses predicted by various evaluation methods and the GABP network.
Figure 19. Comparison of failure stresses predicted by various evaluation methods and the GABP network.
Materials 18 03177 g019
Figure 20. BP neural network structure diagram for predicting sulfur corrosion rates.
Figure 20. BP neural network structure diagram for predicting sulfur corrosion rates.
Materials 18 03177 g020
Figure 21. The MSE values associated with varying numbers of hidden layer neurons in the neural network model developed for predicting the sulfur corrosion rate.
Figure 21. The MSE values associated with varying numbers of hidden layer neurons in the neural network model developed for predicting the sulfur corrosion rate.
Materials 18 03177 g021
Figure 22. GABP network prediction corrosion rate fitting diagram.
Figure 22. GABP network prediction corrosion rate fitting diagram.
Materials 18 03177 g022
Figure 23. The impact of the weighted summation of individual parameter weights on the prediction of sulfur corrosion rate within the neural network model.
Figure 23. The impact of the weighted summation of individual parameter weights on the prediction of sulfur corrosion rate within the neural network model.
Materials 18 03177 g023
Figure 24. Prediction process for residual bearing capacity of pipelines with sulfur corrosion defects.
Figure 24. Prediction process for residual bearing capacity of pipelines with sulfur corrosion defects.
Materials 18 03177 g024
Table 1. Pipe dimensions and specimen numbers.
Table 1. Pipe dimensions and specimen numbers.
Pipe Number#1#2#3
Diameter (mm)323323273
Wall thickness (mm)131311
Test piece number1-1, 1-2, 1-32-1, 2-2, 2-33-1, 3-2, 3-3
Table 2. Results of material property tests on each test piece.
Table 2. Results of material property tests on each test piece.
Test Specimen Numberσy/MPaσu/MPaE/MPa
1-1432479205,216
1-2420509206,195
1-3457550205,958
Average value of pipe #1436.3512206,123
2-1490583205,598
2-2469566205,412
2-3489582206,427
Average value of pipe #2482577205,812
3-1431551206,572
3-2410511205,127
3-3427529205,457
Average value of pipe #3423530205,718
Table 3. Finite element verification model parameters.
Table 3. Finite element verification model parameters.
Model NumberDefect Depth d/mmDefect Length L/mmDefect Width w/mmDefect Axial Spacing SL/mmDefect Circumferential Spacing SC/mm
IDTS-25.3839.531.8\\
IDTS-55.4239.532.1−9.510
IDTS-65.3839.532.120.49.5
Table 4. Finite element verification results.
Table 4. Finite element verification results.
Model NumberBurst Pressure (MPa)Numerical Simulation Result (MPa)Error (%)
IDTS-222.6721.64.6
IDTS-520.8719.28.6
IDTS-618.6518.03.6
Table 5. Genetic algorithm parameters for predicting the failure pressure of defective pipes.
Table 5. Genetic algorithm parameters for predicting the failure pressure of defective pipes.
IndicatorPopulation SizeChromosome LengthMaximum GenerationCrossover RateMutation RateNumber of Neurons in the Input LayerNumber of Neurons in the Hidden LayerNumber of Neurons in the Output LayerSelection Mechanism
Value501331000.80.0510111Roulette wheel selection
Table 6. Pipe parameters for failure pressure prediction verification.
Table 6. Pipe parameters for failure pressure prediction verification.
Serial NumberD/mmt/mmL/mmd/mmw/mmTest Value/MPaGABP Predicted Value/MPaError/%
1458.88.1039.605.3931.9022.6822.50.79
2459.48.0040.053.7532.0024.224.050.62
3323.99.80255.607.0895.3027.527.290.76
4323.99.66305.606.7695.3024.323.981.32
5323.99.71350.006.9395.3021.821.571.06
6323.99.71394.506.9195.3019.819.51.52
7323.99.91433.407.3195.3016.516.741.45
8323.99.74466.707.0295.301515.432.87
9323.99.79488.706.9995.3024.1124.581.95
10323.99.79500.006.9995.3021.7622.332.62
11323.99.74527.807.1495.3017.1517.854.08
1276217.5050.008.7550.0024.323.851.85
1376217.50100.008.7550.0019.820.141.72
1476217.50200.008.7550.0023.3223.120.86
1576217.50300.008.7550.0022.6422.311.46
Table 7. Genetic algorithm parameters for predicting sulfur corrosion rates.
Table 7. Genetic algorithm parameters for predicting sulfur corrosion rates.
IndicatorPopulation SizeChromosome LengthMaximum GenerationCrossover RateMutation RateNumber of Neurons in the Input LayerNumber of Neurons in the Hidden LayerNumber of Neurons in the Output LayerSelection Mechanism
Value50371000.80.05481Roulette wheel selection
Table 8. Error in neural network prediction of corrosion rate.
Table 8. Error in neural network prediction of corrosion rate.
Serial NumberCO2 Partial Pressure
/MPa
H2S Partial Pressure
/MPa
Temperature
/°C
Flow Velocity
/(m/s)
Measured Corrosion Rate
/(mm/year)
Predicted Corrosion Rate
/(mm/year)
Error/%
1004040.008580.0086.75
200.16060.033250.03126.16
300.28080.37860.35675.78
40.106080.026180.02417.94
50.10.18040.40660.39851.99
60.10.24060.50380.49381.98
Table 9. Results of safety assessment of pipelines with sulfur corrosion defects.
Table 9. Results of safety assessment of pipelines with sulfur corrosion defects.
Serial NumberL/mmw/mmd/mmPf/MPaRemaining Life/Year
1110216.133.05.621087
295185.331.25.188696
38732728.84.612174
48024829.54.780326
570185.935.06.101522
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhu, L.; Xia, Y.; Jia, B.; Ma, J. Prediction of Failure Pressure of Sulfur-Corrosion-Defective Pipelines Based on GABP Neural Networks. Materials 2025, 18, 3177. https://doi.org/10.3390/ma18133177

AMA Style

Zhu L, Xia Y, Jia B, Ma J. Prediction of Failure Pressure of Sulfur-Corrosion-Defective Pipelines Based on GABP Neural Networks. Materials. 2025; 18(13):3177. https://doi.org/10.3390/ma18133177

Chicago/Turabian Style

Zhu, Li, Yi Xia, Bin Jia, and Jingyang Ma. 2025. "Prediction of Failure Pressure of Sulfur-Corrosion-Defective Pipelines Based on GABP Neural Networks" Materials 18, no. 13: 3177. https://doi.org/10.3390/ma18133177

APA Style

Zhu, L., Xia, Y., Jia, B., & Ma, J. (2025). Prediction of Failure Pressure of Sulfur-Corrosion-Defective Pipelines Based on GABP Neural Networks. Materials, 18(13), 3177. https://doi.org/10.3390/ma18133177

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop