Next Article in Journal
Editorial for the Special Issue on Flash Memory Devices
Next Article in Special Issue
Research on the High Temperature and High Pressure Gold-Plated Fiber Grating Dual-Parameter Sensing Measurement System
Previous Article in Journal
Contact Engineering Approach to Improve the Linearity of Multilevel Memristive Devices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Prognostics Method Based on Back Propagation Neural Network for Corroded Pipelines

School of Mechanical Engineering, Southeast University, Nanjing 211189, China
*
Author to whom correspondence should be addressed.
Micromachines 2021, 12(12), 1568; https://doi.org/10.3390/mi12121568
Submission received: 19 November 2021 / Revised: 12 December 2021 / Accepted: 15 December 2021 / Published: 16 December 2021
(This article belongs to the Special Issue Advanced Manufacturing Technology and Systems)

Abstract

:
A method that employs the back propagation (BP) neural network is used to predict the growth of corrosion defect in pipelines. This method considers more diversified parameters that affect the pipeline’s corrosion rate, including pipe parameters, service life, corrosion type, corrosion location, corrosion direction, and corrosion amount in a three-dimensional direction. The initial corrosion time is also considered, and, on this basis, the uncertainties of the initial corrosion time and the corrosion size are added to the BP neural network model. In this paper, three kinds of pipeline corrosion growth models are constructed: the traditional corrosion model, the corrosion model considering the uncertainties of initial corrosion time and corrosion depth, and corrosion model also considering the uncertainties of corrosion size (length, width, depth). The rationality and effectiveness of the proposed prediction models are verified by three case studies: the uniform model, the exponential model, and the gamma process model. The proposed models can be widely used in the prediction and management of pipeline corrosion.

1. Introduction

With the global economy and industrialization developing rapidly, the demand for oil and natural gas gradually increases. The primary transportation method for the above two resources is pipeline transportation. However, because of the long-distance transportation of oil and gas pipelines, natural corrosion, third party damage, and other reasons, the pipeline’s wall thickness will attenuate, thus affecting the service life of the pipelines [1,2,3,4]. Among many failure types, pipeline failure caused by corrosion defects accounts for a large proportion. Many pipelines have been in service for more than ten years, and some of their structures are seriously corroded. Pipeline accidents caused by corrosion defects occur from time to time, becoming a significant threat of the pipeline. These pipeline failures could potentially pollute the environment, waste energy, and threaten public lives and property safety.
To ensure the integrity of corroded pipelines, it is necessary to take corresponding measures to predict the remaining useful life (RUL) of the pipelines [3,5,6]. With the exploration and research of many scientific experts, pipeline corrosion detection and life prediction have been studied a lot. In recent years, breakthroughs have been made in data acquisition, machine learning, and other fields, providing new theoretical support and prognostics methods for the degradation of corrosion defects in pipelines. Continuously improving the accuracy of pipeline corrosion depth prediction and RUL prediction can provide additional benefits to the arrangement of inspection and maintenance actions of pipelines, and further reduce life-cycle costs.
Inline inspection (ILI) tools are widely used to detect and inspect the location and size of pipeline corrosion defects [7,8,9,10]. The accuracy of the ILI tool has a great impact on the prediction results. Simple and improved Monte Carlo simulations (MCS) [11,12,13] are used to calculate the failure probability of a section of corroded pipeline considering the uncertainty of corrosion process. The first-order reliability method (FORM) is also used to evaluate the reliability of pipelines by linearizing the relationship between reliability and parameters of pipelines [14,15]. With the increasing number of variables, MCS and FORM methods can be relatively time-consuming. Aiming at the complex nonlinear relationship between pipeline parameters and corrosion, Ozan [16] utilized artificial neural networks (ANNs) to predict the remaining useful life. Tian [17] took the pipeline’s service life and state detection value as the input of the neural network and the life percentage as the output. The neural network model has the key advantage of dealing with nonlinear relationship between pipeline parameters and corrosion growth.
Back propagation (BP) neural network is one kind of artificial neural network that has high prediction accuracy and has been applied to predict the life of pipelines [18,19]. In this paper, a method based on BP neural network is used to simulate and predict corrosion defect growth. The related application of this method has been studied in some literature. Kai et al. [20] used the artificial neural network method to simulate the growth of corrosion defect, and evaluated the structural safety and reliability of pipeline. However, to simplify the structure of the neural networks, they only consider the internal pressure of the corroded pipeline. To assess the risk of the pipeline, Raeihagh et al. [21] established a fuzzy inference system (FIS), and applied the selected factors to the artificial neural networks (ANNs). Ben et al. [22] applied six artificial intelligence models, such as ANN, multivariate adaptive regression splines (MARS), and M5 tree (M5Tree) to study the relationship between the depth of corrosion and probable factors. These studies rarely consider the uncertainty of corrosion size and mostly ignore the initial corrosion time of the pipeline, which may produce inaccurate estimations. What is more, different manufacturing processes at different positions of the pipeline will also affect the corrosion growth of the pipeline. For example, high-speed particles will impact welded nodes [23], which have a relatively high risk. Similarly, only a few pieces of literature have made research on these factors. In this paper, we consider more diversified corrosion parameters, including pipe parameters, corrosion type, service life, corrosion location, corrosion direction, and corrosion size in a three-dimensional direction. In addition, considering the uncertainties of inspection data and initial corrosion time of pipeline, we build an ANN model for the degradation of corroded pipelines and consider the influence of other uncertainty sources to verify the effectiveness of the methodology.
The rest of the paper is organized as follows. Section 2 describes the structure, the modeling process, and the performance assessment of the BP neural network model. Section 3 presents data preprocessing and three prognostics models based on the BP neural network. In Section 4, three case studies with different corrosion growth models are used to demonstrate the effectiveness of the proposed models. Conclusions are presented in Section 5.

2. BP Neural Network Model

Since the relationship between input variables (including pipe properties, corrosion location, corrosion size, corrosion type, etc.) and the corrosion growth is very complex, finding a formula to describe the relationship is difficult. Considering that the BP neural network has strong ability to deal with nonlinear problems, as well as strong self-learning and self-adaptive abilities, a BP neural network is used to predict the corrosion growth of the pipeline. In this section, the structure, the modeling process, and the performance assessment of the BP neural network model will be described.

2.1. Structure of the BP Neural Network

Being composed of many neurons with operation functions, the structure of the BP neural network includes the input layer, hidden layer, and output layer [19], which is shown in Figure 1. The input layer consists of p neurons represented by xi, i = 1, 2, 3, ..., p, where p is the number of input variables. The output layer consists of q neurons represented by yj, j = 1, 2, 3, ..., q, where q is the number of output variables. Each node of the input layer is connected to all the nodes of the first hidden layer. Each node of the previous hidden layer is connected with all the nodes of the next hidden layer. Similarly, each node of the last hidden layer is connected to the all the nodes of the output layer. Each connection has a weight associated with it. In this paper, 11 input variables (service life, pipe segment length, pipe wall thickness, corrosion type, corrosion location (distance to upstream/downstream girth weld, inner/outer, clock direction), and corrosion size (length, width, depth)) and 3 output variables (corrosion growth coefficients (length, width, depth)) are used to construct the BP neural network. Thus, the BP neural network has 11 input neurons and 3 output neurons, which means p = 11, q = 3.
The output of the neuron in the first hidden layer, u k 1 , k = 1, 2, … H1, where H1 is the number of neurons in the first hidden layer, is expressed as follows.
p k 1 = i = 1 p x i z i k 1
u k 1 = f p k 1
where f is a monotonically increasing function, whose value is within (0, 1). z 1 = z 11 1 ,   z 21 1 ,   ,   z p 1 1 ,   z 12 1 ,   z 22 1 ,   ,   z p 2 1 ,   ,   z 1 H 1 1 ,   z 2 H 1 1 ,   ,   z p H 1 1 is a vector of weights, and the initial values of these weights are all within [−1, 1]. Similarly, the output of the neuron in the i-th (i > 1) hidden layer, u k i , k = 1, 2, … Hi, where Hi is the number of neurons in the i-th hidden layer, is expressed as follows,
p k i = t = 1 H i 1 u t i 1 z t k i
u k i = f p k i
where z i = z 11 i ,   z 21 i ,   ,   z H i 1 1 i ,   z 12 i ,   z 22 i ,   ,   z H i 1 2 i ,   ,   z 1 H i i ,   z 2 H i i ,   ,   z H i 1 H i i is also a vector of weights whose initial values are within [−1,1]. The output of the model yj, namely the output of the output neurons, is,
l j = s = 1 H l a s t u s H l a s t v s j
y j = f l j
where v = v 11 ,   v 21 ,   ,   v H l a s t 1 ,   v 12 ,   v 22 ,   ,   v H l a s t 2 ,   ,   v 1 q ,   v 2 q ,   ,   v H l a s t q is a vector of weights within [−1,1], and Hlast is the number of neurons in the last hidden layer. In this paper, the sigmoid function is selected as the activation functions that can be used in (2), (4), and (6). This function is expressed as follows.
f ( x ) = 1 1 + e ( x )
The construction of a BP neural network is essentially the process of determining the weights of these connections. When a BP neural network works, it mainly transmits two kinds of data: the forward propagating signal and the back-propagating error. After the input data are obtained, its flow direction is taken from the input layer to the hidden layer, and then to the output layer. Then, the BP algorithm compares the actual outputs with the target outputs and the error is propagated in the opposite direction. The error is shared with each node of each layer, and the weight of each connection is adjusted until the objective function reaches the minimum value by using the back propagation learning rule. Then, the process of establishing the BP neural network is finished.

2.2. Modeling Process

The BP neural network is a data-driven model, and the modeling process is as follows:
  • Obtain the database and determine the number of neurons in the input layer and output layer of the BP neural network;
  • Randomly sort the collected data (data size = 11,103), and select = 70% of the samples (viz. 7772 data points) as the training samples. Then, the remaining samples are used as the testing samples;
  • Train the BP neural network with the training samples and evaluate the performance of the model on the testing samples.
The BP model has two main limitations. The first one is the overfitting problem, which means the trained BP model has pretty high fitting precision on the training set, but has a relatively large prediction error on the testing set. In the proposed method, the target error of the BP model is not set too small, and the redundant samples are deleted. Then, this limitation is avoided. The second limitation is the inherent defect of the BP model and cannot be avoided. In the flat region of the gradient error surface, the variation of the weight is quite small, which makes the convergence of the BP model relatively slow. It spends more time in the training process.
In the process of establishing a BP neural network, the main content is to determine the neural network parameters, including the number of hidden layers, the number of nodes in each hidden layer, the learning rate, the learning objectives, and the frequency of training.
As for the determination of network parameters, we need to determine the number of hidden layers firstly. Then, we can get the number of nodes in each hidden layer according to the empirical formula, where H i represents the number of neurons in the i-th hidden layer.
H i = 2 × i + 3
In theory, the BP neural network of three hidden layers has a good fitting result. In this paper, using the collected data and a simple linear growth model, the BP neural network with one, two, three, four, five hidden layers are tested, respectively. The simulation result is the best when the BP neural network has four hidden layers. When the number of hidden layers is too large, such as five, the overfitting problem occurs. So, the number of hidden layers is set as four in this paper. Then, the number of neurons in these four hidden layers are 5, 7, 9, and 11.
Meanwhile, the other parameters of the BP neural network are proposed to use the default value [24]. The parameter selection of the BP neural network is shown in Table 1.
Based on the chosen parameters, the initial BP neural network model is built. After training the BP neural network with the training samples, the weights of the connections between neurons are optimized and the final BP neural network structure is determined. Then, the BP neural network is evaluated on the testing samples to verify its validity. After that, the established BP neural network can be used to predict the corrosion growth of the pipeline.

2.3. Performance Assessment

During the BP neural network training and testing process, a measure is needed to be determined to represent the applicability of the model. Expected value and variance are usually adopted in many papers. In this paper, using the corrosion depth of the pipeline in a year as the contrast quantity, we draw the predicted value x ^ i and the actual value x i on the same picture, and estimate the proximity between the predicted value and the expected actual value by analyzing the shape and trend of the curve. The mean square error (MSE) is selected to represent the performance of the model. The definition of MSE is as follows. The smaller this value is, the better the model is.
MSE = 1 n   i = 1 n ( x ^ i x i ) 2

3. The Proposed Models Based on BP Neural Network

In this work, three kinds of pipeline corrosion growth models are constructed and compared. The model 1 is a traditional corrosion model using ANN. The model 2 is a proposed model considering the uncertainties of initial corrosion time and corrosion growth rates. In addition, model 3 is a proposed model which also considers the uncertainties of corrosion length, width, and depth. The traditional corrosion model is set up directly by ANN which is introduced in Section 2. The other two proposed models are introduced in this section.

3.1. Data Preprocessing

The data in this paper mainly come from the inspection and evaluation results of major pipelines by Sinopec pipeline storage and Transportation Co., Ltd. from 2015 to 2017. It records the corrosion type, service life, length of pipe segment, distance to upstream girth weld, size and clock direction of the corrosion, and other information, which is shown in Table 2.
Before data processing, some field data, such as the corrosion type and the location of the corrosion, cannot be quantified, so they are classified and numbered before processing. Specifically, we classify four types of corrosion, pit corrosion is recorded as 1, general corrosion is recorded as 2, and the circumferential groove is recorded as 3. The corrosion position is marked as 1 for the inner wall and 2 for the outer wall. In industry, defect direction is denoted by clock, namely hour (h) and minute (m). In our model, the clock direction is converted to angle according to Equation (10).
θ = 720 × h × 60 + m 24 × 60
where θ is the angle of the corrosion defect. The corrosion depth d of the pipeline can also be calculated by using the corrosion percentage a% multiplied by wall thickness t, as shown in Equation (11).
d = t × a %
After preprocessing the collected field data, we can use these data as input random variables to construct the neural network model.

3.2. BP Neural Network Model Considering the Uncertainties of Initial Corrosion Time and Corrosion Depth

Because the pipeline does not begin to corrode immediately after being put into use, but takes time to begin to corrode, it is necessary to consider the uncertainty in initial corrosion time. Here, it is assumed that the initial time T initial follows a normal distribution when the pipeline begins to corrode. The detail is as follow [25].
T initial N T 0 , s t d T 0 2
To construct this proposed ANN model, we first preprocess the input data, which are introduced in last section. Then, we calculate the actual corrosion time Tactual using Equation (13). To consider the real situation, the corrosion coefficient Oi related to corrosion rate in a short time is obtained according to the established neural network model. The corrosion amount of the pipeline is calculated and accumulated to obtain the corrosion model of the pipeline. Considering the uncertainties of measured value and actual corrosion rate, we assume that the corrosion coefficient follows the normal distribution represented by Equation (14). Then, the corrosion depth can be calculated using Equation (15).
T actual = T T initial
O ˜ i N O i , 2.5 × 10 3 O i 2
D t = D 0 + i = 1 t ϕ O ˜ i , i
where the variable T is the service time of pipeline; Oi represents the output corrosion coefficient of the ith year from the neural network; and D0 is the initial corrosion depth. The function ϕ represents the relationship between corrosion coefficient and corrosion growth rate, so the corrosion coefficient can be taken as the corrosion rate especially for linear growth corrosion. What is more, to reduce the accidental error, the neural network is trained ten times, and the average of training results is used as the prediction result.

3.3. BP Neural Network Considering the Uncertainties in Corrosion Size

Due to the limitations in inline inspection tools, there exist measurement errors in detected corrosion size. Hence, it is necessary to consider the uncertainties in corrosion size. In this proposed model, in addition to considering the uncertainties mentioned in model 2, the uncertainties in corrosion size (length, width, depth) are also added to the BP neural network model. The corrosion depth, width, and length can then be calculated by Equations (16)–(18).
D t = D 0 + i = 1 t ϕ O ˜ D , i
L t = L 0 + i = 1 t ϕ O ˜ L , i
W t = W 0 + i = 1 t ϕ O ˜ W , i
where D, L, and W represent the corrosion amount of the pipeline in the direction of depth, length, and width, respectively; and D0, L0, and W0 correspond to the initial corrosion depth, length, and width, respectively.
According to a selected sample, we calculate the corrosion coefficient in three corrosion directions firstly. We assume that there are fixed corrosion coefficients O ˜ w and O ˜ l in the width and length directions, respectively. Here, we can calculate the corresponding corrosion amounts of W ( t ) and L ( t ) . Then, the variations of corrosion amount in these two parameters are included in the input data of the BP neural network, and the corrosion coefficient in the depth direction is the output parameter. By substituting the corrosion coefficient into Equation (16), the corrosion depth can be obtained for further risk analysis. In each simulation run, the variations in the corrosion length and width of the test sample over time are added to the sample data. We use the same input data as training data to obtain this proposed model 3 for future comparisons.

4. Case Studies

4.1. General Information

In this section, examples are used to demonstrate the effectiveness of the proposed models. The comparison results for the three corrosion models can be used for the subsequent reliability evaluation and risk analysis of pipelines. Table 3 summarizes the differences among three BP neural network models. The pipeline failure caused by a corrosion defect is mainly because the corrosion depth reaches the critical value. So, in the following case studies, we mainly focus on the growth of corrosion depth rather than length and width. Based on the field data, we investigate three types of corrosion depth growth models. In the first case, the depth of corrosion increases with time linearly. In the second case, corrosion growth follows an exponential distribution. As for the third case, the growth of corrosion depth in each period conforms to the gamma growth process.

4.2. Case Study 1: Uniform Corrosion Hypothesis

The growth of the defect depth is characterized by:
d t = d 0 + g d t
where d0 represents the initial corrosion amount and gd is the growth rate of corrosion depth. gd is used as the output parameter in the neural network model. When considering the uncertainty, we assume that gd follows the normal distribution, that the actual corrosion depth growth rate conforms to the theoretical value, and that the variance is 0.05 times the theoretical value.

4.2.1. Traditional Linear Corrosion Growth Model (Model 1)

The BP neural network is used to simulate the corrosion depth of the pipeline, and the results are shown in Figure 2.
As can be seen from the figure, when the BP neural network method is used to predict pipeline corrosion, the prediction results are promising. The predicted corrosion depth growth rates are relatively close to the theoretical growth rate, which can illustrate the great potential of the BP neural network method in predicting pipeline remaining useful life.

4.2.2. Linear Corrosion Growth Model Considering the Uncertainties of Initial Corrosion Time and Corrosion Depth (Model 2)

With the uncertainties of initial corrosion time and corrosion depth in the model 2, and the prediction results of the model 2 is observed and compared with model 1 in Figure 3. The summary of comparison results is shown in Table 4.
After 20 simulation runs of the corresponding network, the service life of the pipeline is shown in Table 4.
To facilitate the comparison, take the absolute value of error for calculation. It can be obtained that the standard deviation of the error of model 2 is 1.1806, and that the standard deviation of the uniform corrosion of model 1 is 1.7084. Thus, it can be concluded that the neural network model 2 is better than the previous model 1. As can be seen from the above figure and table, the prediction results of model 2 are closer to the real values than model 1, which fully illustrates that the proposed model 2 has better performance of predicting pipeline corrosion growth and remaining useful life.

4.2.3. Linear Corrosion Growth Model Considering the Uncertainties of Corrosion Size (Model 3)

We build the model 3 based on the previous model 2 and add the uncertainties in corrosion length and width in the BP neural network. The results are shown in Figure 4. Furthermore, to compare the prediction results of the three models more clearly, the mean of squared errors (MSE) between the predicted value and real values is calculated in Table 5.
From the comparison results in the above figures, it can be seen that, after considering the variations in the length and width of corrosion over time, the results of model 3 are closer to the true values compared with model 1 and model 2. At the same time, the above table shows that the MSEs of model 3 are smaller than model 2 and model 1. What is more, the results of model 2 are better than model 1. Considering multiple uncertainty sources, it can be explained that the simulated effects of the above three neural network models are gradually getting closer to reality. Consequently, the proposed BP neural network models produce better results and can make a more accurate pipeline remaining useful life prediction than the traditional BP neural network model (model 1).

4.3. Case Study 2: Exponential Model Hypothesis

The three BP neural network models can also be used to predict the exponential corrosion growth model of the pipeline. The growth of the defect depth is characterized by:
d t = d 0 + k t γ
where d0 is the initial corrosion depth, and k and γ are the parameters of the exponential corrosion growth model. Because the variability of k is usually large, and the variability of γ is usually small [26], the value of γ is selected as 0.5. Then, the model parameter k is used as the output of neural network models.

4.3.1. Traditional Exponential Growth Model (Model 1)

No uncertainty is considered in model 1. When constructing the exponential growth model of the pipeline, it is assumed that the time index of the real corrosion rate obeys a normal distribution with a mean value of 0.5 and a variance of 0.05. At the same time, a proportional coefficient is constructed using real corrosion data. We obtain the simulation results every five years. The corresponding results are shown in Figure 5. The simulated results accord with the trend of actual value, but there are big differences as useful life increases.

4.3.2. Exponential Corrosion Growth Model Considering the Uncertainties in Initial Corrosion Time, Corrosion Index, and Scale Factor (Model 2)

In the proposed model 2, we consider the uncertainties of the initial corrosion time, the corrosion index, and the scale factor in the BP neural network. The simulation results are evaluated every five years, and the results are compared and analyzed, as shown in Figure 6 and Table 6.
It can be seen from the figures that, among the above four samples, the simulated results of the four figures show that the prediction results generated by model 2 are closer to the true value than model 1. In addition, from Table 6, the standard deviations of model 2 are smaller than model 1, which indicates that model 2 performs better than model 1 in the pipeline corrosion depth growth prediction. However, the prediction results are still not accurate enough for the pipeline remaining useful life prediction.

4.3.3. Exponential Corrosion Growth Model Considering the Uncertainties of Corrosion Size (Model 3)

In addition to considering the uncertainties of initial corrosion time and relevant corrosion depth parameters, the variations in length and width over time are also added to the BP neural network model. Then we compare the results of this new model (model 3) with model 1 and model 2. The results are shown in Figure 7. The differences between the predicted value and real values are also summarized in Table 7.
It also clearly shows that, after considering the changes in the length and width of corrosion over time, the results of model 3 are closer to the true values. In other words, from model 1 to model 3, accuracy and stability are gradually enhanced. Furthermore, compared with model 1 and model 2, the prediction accuracy for model 3 increase a lot, which concludes the uncertainties in corrosion length and width do affect the growth of corrosion depth a lot.

4.4. Case Study 3: Gamma Distribution Hypothesis

4.4.1. Traditional Gamma Corrosion Growth Model (Model 1)

In this gamma growth model, it is assumed that the amount of corrosion per year obeys a gamma distribution. The growth of the defect depth is characterized by:
d t = d 0 + d g t
F ( d g t | α , β , t ) = β α t d g ) α t 1 exp ( β d g / Γ α t
where dg(t) denotes the homogeneous gamma process. The probability density function of dg(t) is given by Equation (22), where α and β are shape and scale parameters of gammar process, respectively. Moreover, in our paper, the scale parameter β is assumed to be 48 according to the specific value. We use the shape parameter α as the main output parameter of the BP neural network. According to this notion, we establish a BP neural network model, and the results are shown in Figure 8. Furthermore, the prediction results have the same trend with the actual values, but there still are some prediction errors.

4.4.2. Gamma Process Corrosion Growth Model Considering the Uncertainties of Initial Corrosion Time and the Shape Parameters (Model 2)

In this model, the uncertainties of the initial corrosion time and the shape parameters are considered in the BP neural network. We compare this model 2 with model 1 and the actual value. These results are shown in Figure 9.
The tendency of the results is the same as the uniform corrosion model and exponential model. The model which considers uncertainties of initial corrosion time and shape parameters has better prediction results.

4.4.3. Gamma Corrosion Growth Model Considering the Uncertainties of Corrosion Size (Model 3)

The steps are the same as linear and exponential growth models, and we also consider the uncertainties in corrosion size over time in the proposed BP neural network. The comparison results for models 1, 2, and 3 are shown in Figure 10. The differences between the predicted value and real values are also summarized in Table 8.
After considering the uncertainties in the length and width of corrosion over time, the results of model 3 are closer to the actual values. Additionally, from model 1 to model 2 to model 3, accuracy and stability are gradually enhanced. As linear, exponential and Gamma corrosion growth models can be used to describe most corroded the pipelines’ degradation working cases. So, we take these three hypothetical growth models as examples, and our proposed BP neural network models’ rationality, effectiveness, and universal applicability are verified.

5. Conclusions

This paper proposed BP neural network models for pipeline useful life prediction considering the uncertainties in initial corrosion time and corrosion size. Furthermore, we use the field data from the Sinopec Pipeline Storage and Transportation Co., Ltd. to demonstrate the effectiveness of the proposed model. We first preprocess the collected field data, and we can use these data (pipe parameters, corrosion location, corrosion size, etc.) as input random variables to construct the neural network model. Three gradually improved models are considered in the pipeline RUL prediction, and the uncertainties are added to each model to make the hypothetical pipeline corrosion situation closer to reality. At the same time, by comparing the results of the neural network with the real values, it can be seen that the results are relatively close, which fully illustrates the effectiveness and the rationality of the BP neural network method in predicting the corrosion degree of pipelines. Three proposed BP neural network models are compared with actual values, a corresponding comparative analysis of the results shows that the model 3 which considers the uncertainties from corrosion initial time and corrosion size produce more accurate prediction results. Lastly, we use three case studies to demonstrate the effectiveness of the proposed models. Three types of corrosion growth models, namely uniform, exponential model, and gamma process models, are applied to the proposed models mentioned above. The comparison results prove that the proposed models have universal applicability to different working conditions.

Author Contributions

Conceptualization, Z.L. and J.Z.; methodology, M.X.; software, Z.L. and M.X.; validation, Z.L., J.Z. and M.X.; formal analysis, M.X. and X.P.; investigation, M.X.; resources, M.X.; data curation, M.X.; writing—original draft preparation, Z.L. and J.Z.; writing—review and editing, M.X.; visualization, M.X. and X.P.; supervision, M.X. and X.P.; project administration, M.X. and X.P.; funding acquisition, M.X. and X.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 72001039, 71671035, 12102090.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chio, L.; Wenxing, Z. Statistical Analyses of Incidents on Onshore Gas Transmission Pipelines Based on PHMSA Database. Int. J. Press. Vessel. Pip. 2016, 145, 29–40. [Google Scholar]
  2. Nessim, M.; Zhou, W.; Zhou, J.; Rothwell, B. Target Reliability Levels for Design and Assessment of Onshore Natural Gas Pipelines. J. Press. Vessel Technol. 2009, 131, 061701. [Google Scholar] [CrossRef]
  3. Xie, M.; Tian, Z. A Review on Pipeline Integrity Management Utilizing In-Line Inspection Data. Eng. Fail. Anal. 2018, 92, 222–239. [Google Scholar] [CrossRef]
  4. Askari, M.; Aliofkhazraei, M.; Afroukhteh, S. A Comprehensive Review on Internal Corrosion and Cracking of Oil and Gas Pipelines. J. Nat. Gas Sci. Eng. 2019, 71, 102971. [Google Scholar] [CrossRef]
  5. Young-Do, J.; Bum, J.A. A Method of Quantitative Risk Assessment for Transmission Pipeline Carrying Natural Gas. J. Hazard. Mater. 2005, 123, 1–12. [Google Scholar]
  6. Wang, Z.-Q.; Hu, C.-H.; Si, X.-S.; Zio, E. Remaining Useful Life Prediction of Degrading Systems Subjected to Imperfect Maintenance: Application to Draught Fans. Mech. Syst. Signal Process. 2018, 100, 802–813. [Google Scholar] [CrossRef]
  7. Moon, J.K.; Lee, S.H.; Lee, I.W.; Park, G.S.; Lee, M.H. Defect Depth Estimation Using Magnetic Flux Leakage Measurement for In-Line Inspection of Pipelines. J. Sens. Sci. Technol. 2006, 15, 328–333. [Google Scholar]
  8. Hector, H.D.; Caspar, G.; Rutger, K.; Richard, L.; Doekle, Y.; Tiedo, T.; Remko, A. Ultrasonic Inline Inspection of a Cement-Based Drinking Water Pipeline. Eng. Struct. 2020, 210, 110413. [Google Scholar]
  9. Xie, M.; Sutherland, J.; Fang, B.; Gu, B.; Tian, Z. Impact Analysis of Inline Inspection Accuracy on Pipeline Integrity Planning. J. Press. Vessel Technol. 2020, 142, 061801. [Google Scholar] [CrossRef]
  10. Siraj, T.; Zhou, W. Quantification of Measurement Errors in the Lengths of Metal-Loss Corrosion Defects Reported by Inline Inspection Tools. J. Press. Vessel Technol. 2019, 141, 061402. [Google Scholar] [CrossRef]
  11. Wenxing, Z. System Reliability of Corroding Pipelines. Int. J. Press. Vessel. Pip. 2010, 87, 587–595. [Google Scholar]
  12. Bernt, J.L.; Arvid, N.; Ole, E.B.N. Reliability Analysis of Corroding Pipelines by Enhanced Monte Carlo Simulation. Int. J. Press. Vessel. Pip. 2016, 144, 11–17. [Google Scholar]
  13. Arun, K.C.; Vijay, K. A Bayesian Analysis of Perks Distribution via Markov Chain Monte Carlo Simulation. Nepal J. Sci. Technol. 2013, 14, 153–166. [Google Scholar]
  14. Changqing, G.; Wenxing, Z. First-Order Reliability Method-Based System Reliability Analyses of Corroding Pipelines Considering Multiple Defects and Failure Modes. Struct. Infrastruct. Eng. 2017, 13, 1451–1461. [Google Scholar]
  15. Zhou, W.; Gong, C.; Hong, H.P. New Perspective on Application of First-Order Reliability Method for Estimating System Reliability. J. Eng. Mech. 2017, 143, 04017074. [Google Scholar] [CrossRef]
  16. Ozan, K. Bayesian Learning Based Gaussian Approximation for Artificial Neural Networks. Turk. J. Forecast. 2017, 1, 54–65. [Google Scholar]
  17. Zhigang, T. An Artificial Neural Network Method for Remaining Useful Life Prediction of Equipment Subject to Condition Monitoring. J. Intell. Manuf. 2012, 23, 227–237. [Google Scholar]
  18. Weikuan, J.; Dean, Z.; Tian, S.; Shifei, D.; Yuyan, Z.; Chanli, H. An Optimized Classification Algorithm by BP Neural Network Based on PLS and HCA. Appl. Intell. 2015, 43, 176–191. [Google Scholar]
  19. Zhu, H.; Qi, Y.; Zhang, F.; Song, Y.; Lin, L.; Zhang, J. Calculation Method of Production Pressure Drop Based on BP Neural Network Velocity Pipe String Production in CBM Wells. IOP Conf. Ser. Earth Environ. Sci. 2020, 619, 012044. [Google Scholar] [CrossRef]
  20. Kai, W.; Lei, H.; Jing, L.; Jing, G. An Optimization of Artificial Neural Network Modeling Methodology for the Reliability Assessment of Corroding Natural Gas Pipelines. J. Loss Prev. Process Ind. 2019, 60, 1–8. [Google Scholar]
  21. Raeihagh, H.; Behbahaninia, A.; Macki, A.M. Risk Assessment of Sour Gas Inter-Phase Onshore Pipeline Using ANN and Fuzzy Inference System–Case Study: The South Pars Gas Field. J. Loss Prev. Process Ind. 2020, 68, 104238. [Google Scholar] [CrossRef]
  22. Ben, S.M.E.A.; Keshtegar, B.; Taleb-Berrouane, M.; Abbassi, R.; Trung, N.-T. Advanced Intelligence Frameworks for Predicting Maximum Pitting Corrosion Depth in Oil and Gas Pipelines. Process Saf. Environ. Prot. 2021, 147, 818–833. [Google Scholar]
  23. Qiao, Q.; Guangxu, C.; Yun, L.; Wei, W.; Haijun, H.; Hui, H. Corrosion Failure Analyses of an Elbow and an Elbow-to-Pipe Weld in a Natural Gas Gathering Pipeline. Eng. Fail. Anal. 2017, 82, 599–616. [Google Scholar] [CrossRef]
  24. Tawee, C. Investigation Internal Parameters of Neural Network Model for Flood Forecasting at Upper River Ping, Chiang Mai. KSCE J. Civ. Eng. 2016, 20, 478–484. [Google Scholar]
  25. Mehdi, R.; Hamid, R.M.; Sareh, G. Divergence Instability of Pipes Conveying Fluid with Uncertain Flow Velocity. Phys. A Stat. Mech. Its Appl. 2018, 491, 650–665. [Google Scholar]
  26. Bruce, R.E.; Yasuhiro, M. Reliability-Based Service Life Assessment of Concrete Structures in Nuclear Power Plants: Optimum Inspection and Repair. Nucl. Eng. Des. 1997, 175, 247–258. [Google Scholar]
Figure 1. The structure of neural networks.
Figure 1. The structure of neural networks.
Micromachines 12 01568 g001
Figure 2. Comparison results of pipeline life prediction: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 2. Comparison results of pipeline life prediction: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g002
Figure 3. Comparison results of real value, model 1 and model 2: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 3. Comparison results of real value, model 1 and model 2: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g003
Figure 4. Comparison results of the three models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 4. Comparison results of the three models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g004
Figure 5. Comparison results of model 1 and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 5. Comparison results of model 1 and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g005
Figure 6. Comparison results of the two models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 6. Comparison results of the two models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g006
Figure 7. Comparison results of the three models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 7. Comparison results of the three models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g007
Figure 8. Comparison results of model 1 and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 8. Comparison results of model 1 and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g008
Figure 9. Comparison results of the two models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 9. Comparison results of the two models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g009
Figure 10. Comparison results of the three models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Figure 10. Comparison results of the three models and the real results: (a) sample 1; (b) sample 2; (c) sample 3; (d) sample 4.
Micromachines 12 01568 g010
Table 1. Parameter selection of back propagation (BP) neural network.
Table 1. Parameter selection of back propagation (BP) neural network.
TypeParameterValue
1Number of hidden layer nodes5,7,9,11
2Learning rate0.1
3Learning objectives10-7
4Frequency of training1000
Table 2. Sample of field data.
Table 2. Sample of field data.
Sample12345
Corrosion typeCircumferentialGeneralCircumferentialCircumferentialGeneral
Service life (year)8891218
Length of a pipe segment (m)12.05.711.011.011.9
Distance to upstream girth weld (m)11.42.58.31.511.2
Distance to downstream girth weld (m)0.63.22.79.50.7
Corrosion length (mm)18.080.018.021.030.0
Corrosion width (mm)87.068.062.075.0106.0
Clock direction of corrosion11:002:436:341:543:52
Pipe wall thickness (mm)10.310.37.17.18.7
inner or outerouterouterouterinnerinner
Corrosion percentage47454
Table 3. Three gradually improved models.
Table 3. Three gradually improved models.
UncertaintyModel 1Model 2Model 3
The initial time of corrosionnoyesyes
Corrosion depthnoyesyes
Corrosion length and widthnonoyes
Table 4. Analysis of the results of pipeline service life.
Table 4. Analysis of the results of pipeline service life.
No.Real Service LifeThe Outcome of Model 2The Outcome of Model 1The Error of Model 2The Error of Model 1
123.924825.424826.82481.51.4
230.986930.586932.28690.41.7
320.558621.358621.95860.80.6
437.453736.753739.25370.72.5
527.094528.894529.59451.80.7
625.810222.610228.61023.26
726.627326.027328.32730.62.3
835.569840.009838.06984.43021.9302
937.135635.735638.43561.42.7
1019.603918.603921.303912.7
1132.959732.159734.05970.81.9
1239.09538.49540.10.61.605
1325.686926.686926.886910.2
1425.013226.013227.013211
1530.833230.033231.63320.81.6
1633.948233.048235.04820.92
1721.483920.638923.78390.8453.145
1826.314123.114129.81413.26.7
1921.033823.333823.63382.30.3
2033.49932.909933.10990.58910.2
Table 5. Mean of squared errors (MSE) between the predicted value and real value.
Table 5. Mean of squared errors (MSE) between the predicted value and real value.
NoThe Outcome of Model 1The Outcome of Model 2The Outcome of Model 3
10.35930.25040.2026
20.21310.08460.0424
30.71620.15270.1077
40.77990.68480.3004
Table 6. Variance of the difference between the predicted value and real value.
Table 6. Variance of the difference between the predicted value and real value.
Sample 1Sample 2Sample 3Sample 4
Model 10.29630.36890.29570.4914
Model 20.20620.34160.27700.4319
Table 7. Variance of the difference between the predicted value and real value.
Table 7. Variance of the difference between the predicted value and real value.
Sample 1Sample 2Sample 3Sample 4
Model 10.29630.36890.29570.4914
Model 20.20620.34160.27700.4319
Model 30.16640.30140.26640.2429
Table 8. Variance of the difference between the predicted value and real value.
Table 8. Variance of the difference between the predicted value and real value.
Sample 1Sample 2Sample 3Sample 4
Model 10.11200.16810.11720.3019
Model 20.10570.11210.10280.1324
Model 30.08800.08580.06870.0754
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Xie, M.; Li, Z.; Zhao, J.; Pei, X. A Prognostics Method Based on Back Propagation Neural Network for Corroded Pipelines. Micromachines 2021, 12, 1568. https://doi.org/10.3390/mi12121568

AMA Style

Xie M, Li Z, Zhao J, Pei X. A Prognostics Method Based on Back Propagation Neural Network for Corroded Pipelines. Micromachines. 2021; 12(12):1568. https://doi.org/10.3390/mi12121568

Chicago/Turabian Style

Xie, Mingjiang, Zishuo Li, Jianli Zhao, and Xianjun Pei. 2021. "A Prognostics Method Based on Back Propagation Neural Network for Corroded Pipelines" Micromachines 12, no. 12: 1568. https://doi.org/10.3390/mi12121568

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