You are on page 1of 11

Proceedings of the ASME 2023

Pressure Vessels & Piping Conference


PVP2023
July 16-21, 2023, Atlanta, Georgia

PVP2023-106300

Prediction of Depth Defects During Pipeline Magnetic Flux Leakage Detection Based on the AVOA-BPNN
Lushuai Xu1,3,4, Shaohua Dong1,2,3,4*, Donghua Peng5, Haotian Wei2,3,4, Yundong Ma2,3,4

1
College of Artificial Intelligence, China University of Petroleum, Beijing, China
2
College of Safety and Ocean Engineering, China University of Petroleum, Beijing, China
3
Pipeline Research Center, China University of Petroleum, Beijing, China
4
Key Laboratory of Oil and Gas Safety and Emergency Technology, Ministry of Emergency Management, Beijing, China
5
PipeChina Beijing Pipeline Co.,Ltd., Beijing, China

Abstract: algorithm easily falling into the local optimum. The magnetic
The complex operational conditions of in-service pipelines triaxial leakage signals of the internal and external pipeline
and the extended service time make them susceptible to metal loss, defects collected via 60 sets of drafting experiments were used as
which can lead to pipeline failure. However, quantifying the examples, while a particle swarm optimized BPNN (PSO-BPNN),
defect depth presents a challenge to current research. The depth genetic algorithm optimized BPNN (GA-BPNN), and an
quantification accuracy of pipeline defects can be improved, and unoptimized BPNN were used as models for comparative analysis.
the defect state of long-distance pipelines can be accurately The results showed that optimizing the BPNN using AVOA
controlled by building a model based on the internal magnetic substantially improved the prediction accuracy of the BPNN
flux signal. This study performed a pulling experiment for model. The AVOA-BPNN model predicted 12 sets of pipe defect
internal magnetic flux leakage detection in pipelines and depths with an average relative error (MRE) of only 2.67% and a
extracted the triaxial leakage signals of 60 internal and external determination coefficient (R2) of 0.99800, which exceeded the
pipeline defects. Firstly, Pearson correlation coefficient is used to values of the BPNN, PSO-BPNN, and GA-BPNN models. The
extract the seven main influencing factors affecting the depth of AVOA-BPNN uses the internal leakage detection signal to predict
pipeline leakage defects, namely axial signal peak-valley value, the depth of pipe defects, supporting effective decision-making
axial signal waveform area, axial signal waveform energy, regarding pipe inspection and maintenance.
circumferential signal peak-valley value, radial signal Keywords: Africans Vultures Optimization Algorithm; MFL;
peak-valley value, axial integral signal peak-valley value, and BP Neural Network; Pipeline Defects Inversion; Size Prediction
radial integral signal peak-valley value. Secondly, the initial
weights and thresholds of the backpropagation neural network 1 Introduction
(BPNN) were optimized using the African Vulture Optimization
Magnetic flux leakage detection is a commonly used
Algorithm (AVOA). Furthermore, an AVOA-BPNN-based defect
nondestructive method for defect identification [1]. Compared
depth prediction model for pipe leakage detection was
with ultrasonic [2] and eddy current detection [3], magnetic flux
established to address the problem challenge of the BPNN
leakage detection is widely used for identifying oil and gas
1
pipeline defects due to advantages such as high reliability, Vulture Optimization Algorithm (AVOA) [20] to improve its
excellent detection accuracy, and a high degree of automation global optimization capacity and its ability to approximate
[4-6]. complex nonlinear functions, enhancing the prediction accuracy
The inverse evaluation of defect magnetic flux leakage of the pipeline body defect depth.
detection signals provides essential guidance for the operation This study is based on the established magnetic flux leakage
and maintenance of tested components or facilities. Inversion signal analysis model to predict the depth of pipeline body
methods can be roughly divided into two categories according to defects. The specific structure is as follows: Chapter 2 establishes
the presence of an iterative loop structure during the signal the inversion model of the magnetic flux leakage detection defect
inversion process, including open-loop and closed-loop depth based on the AVOA-BPNN, Chapter 3 introduces the
pseudo-inversion. Open-loop inversion involves nonlinear evaluation indexes of the model, and Chapter 4 verifies the
mapping between the defect signal and size by extracting defect accuracy and robustness of the defect inversion model established
data to estimate the defect size [7-8]. YU [9] proposed a complex in this paper.
defect inversion algorithm based on WT-STACK and constructed
an adaptive iterative stacking learning model with dynamic 2 Models and methods
multi-axis time-frequency domain features as input by studying
2.1 Pearson correlation coefficient
the nonlinear relationship between the features and the defect size.
Although the pipeline leakage signal contains a large amount
WU [10] proposed a defect depth contour reconstruction
of information, many of these features have a negligible impact
algorithm based on reinforcement learning. The iterative strategy
on the defect depth quantification. Entering the information into
design challenge can be avoided by embedding the iterative
the BP neural network can lead to overfitting, causing it to fall
process into the reinforcement learning process to generate
into the local optimum. Therefore, the Pearson correlation
learning approaches. Although open-loop inversion offers rapid
coefficient was used to extract the indicators with the most
calculation, its defect depth inversion accuracy is low [11-12].
significant impact on the defect depth quantification from this
Closed-loop pseudo-inversion simulates defect signals based on
data. This reduces the number of input nodes to the BP neural
physical mechanisms, such as the magnetic dipole [13] and finite
network and improves the defect depth quantification accuracy.
element models [14], and reconstructs defect profiles by
The Pearson correlation coefficient is based on statistical
constantly enhancing the parameters via optimization algorithms.
principles and evaluates the relationship between variables. It is
KANDROODI M R [15] estimated defect lengths and depths
used to calculate the relationship between the characteristics of
based on magnetic flux. LI [16] proposed an improved MHS
the magnetic leakage signal and the pipeline body defects to
algorithm to reconstruct the defect profile. The solution process
extract the main influencing factors. The Pearson correlation
of the closed-loop pseudo-inverse method is highly complex and
coefficient is represented by ��,� , an index calculated via actual
presents disadvantages like extensive calculations and poor
sample data [22] according to Formula (1).
model universality. Therefore, it is unsuitable for evaluating
��−� ��−�
large-scale magnetic leakage detection signals [17-19]. ��,� =
��−� 2 �� −� 2
(1)
This paper proposes a defect depth inversion method
where, �� , �� is a group of (�, �) sample values, while �
involving internal magnetic leakage detection data based on
and � represent the sample average.
triaxial information fusion to address the challenges of low defect
The ��,� interval is [ − 1, 1] . ��,� ∈ [ − 1, 0) indicates a
inversion accuracy and poor model universality. First, 60 groups
negative correlation, while ��,� ∈ (0,1] denotes a positive
of defect magnetic flux leakage signals are extracted via magnetic
correlation. A larger ��,� signifies a stronger correlation.
pipeline leakage drafting experiments. Second, the main features
When ��,� = 1 , � and � display a complete linear
of the magnetic flux leakage signals affecting the depth inversion
correlation.
of pipeline defects are extracted using the Pearson correlation
When ��,� > 0, � and � are positively correlated.
coefficient method. Finally, since the backpropagation neural
When ��,� <0, � and � are negatively correlated.
network (BPNN) tends to fall into the local optimum, its initial
When ��,� = 0, there is no correlation between � and �.
weights and thresholds [21] are optimized using the African
When ��,� < 0.2 , � and � display a relatively weak
2
correlation. N

When 0.2 ≤ ��,� < 0.4 , � and � display a weak


pk  w
k 1
jk a j  bk (4)

correlation. t k  f ( pk ) (5)
When 0.4 ≤ ��,� < 0.6 , � and � display a moderate where xi is the BPNN input value, wij is the weight
correlation.
value from the input to the hidden layer, b j and bk are the
When 0.6 ≤ ��,� < 0.8 , � and � display a strong
thresholds of the hidden and output layers, s j and a j are the
correlation.
input and output values of the hidden layer, w jk is the weight
When 0.8 ≤ ��,� < 1.0 , � and � display a very strong
between the hidden and output layers, p k and t k are the input
correlation.
and output values of the output layer, and
f (x)
is the transfer
2.2 The BPNN and optimization algorithm
function of the neural network.
Although the BPNN model exhibits a strong nonlinear
The error function formula of the backpropagation error and
function fitting ability, the model often falls into the local optimal
the formula for the weight threshold correction coefficient are as
due to improper establishment of the initial weight and threshold,
follows [9] :
resulting in poor prediction results. To improve the deficiencies 2
N
of BPNN ontology, this paper proposed AVOA to optimize the f i   ( yk  yk ) (6)
initial BPNN value, while the GA and PSO were used as k 1

comparative optimization algorithms for testing and analysis to E p


w jk  
verify the effect of the AVOA-BPNN model. The next sections w jk
(7)
introduce BPNN, GA, PSO, and AVOA. E p
wij  
2.2.1 The BPNN wij
(8)
The BPNN, proposed in 1986, is currently one of the most E p
widely used neural network models and can achieve excellent bk  
bk
(9)
nonlinear approximation via a three-layer network structure
E p
[23-24]. Each BPNN layer is connected by weight, while each b j  
b j
node of the hidden and output layers is set with a threshold. The (10)
where f i is the error function formula, N is the number
BPNN network topology is shown in Figure 1.
of sample groups, y k is the true value, y k is the BPNN
output value,  is the learning rate, wij and w jk represent
the correction coefficient, and b j and bk denote the
correction coefficient of the threshold value.
2.2.2 The GA algorithm
The GA was established by Holland and his students in 1975.
It is based on Darwin's evolution theory and Mendel's theory of
inheritance and is mainly divided into three parts: selection,
crossover, and variation [25-26].
1) Choose. This paper employed the roulette method for
selection using Formula (11), in which the fi calculation formula
was the same as in Formula 5:
m
FIGURE 1: THE BPNN MODEL
The forward transmission process of the BPNN model is
Pi  f i / f
i 1
i (11)

calculated according to Formula (2-5) [9]: where m is the total number of chromosomes, f i is the
L fitness of the ith individual, N is the total number of samples,
sj  w x b
j 1
ij i j (2) and Pi is the probability of the i th individual being selected.
2) Cross. This paper employed the crossover method of real
a j  f (s j ) (3) numbers using Formula (12):
3
x tA 1  αx t
 1  α  x tA
n
where pi = fi / i=1  fi .

x Bt  1  αx
B
t
 1  α  x Bt
} (12) Ri (t) is the position of the other vultures except for the
A
optimal and suboptimal vultures, while Best V1 and BestV2 are
where x tA and x Bt represent the cross of two
chromosomes, A and B , at the tth position, while a is the the optimal and suboptimal vulture positions, respectively.
random number between [0,1]. L1 and L2 are the parameters to be measured between 0 and 1,
3) Variation. The mutation operation was represented by with a sum of 1, pi is the probability of selecting the best vulture,
Formula (13): fi is the fitness of the other vultures, and t is the current iteration
xk  xmin  β xmax  xmin  (13) number.
where xmin and xmax represent the lower and upper bounds (2) Vulture satiation rate
of the gene, β is the random number on [0,1], and xk is the Since vultures forage extensively, they can cover a wider
new gene after mutation. area when they are satiated, which provides them with more
2.2.3 The PSO method
energy. If they are hungry, they do not have enough energy to fly
The PSO algorithm principle involves randomly initializing
and forage near stronger vultures. Satiety is mathematically
a group of particles and updating the particle swarm by tracking
described as:
extreme individual and group values. The particle velocity and
� = 2����1 + 1 �(1 − �/�) + ℎ ����  (��/(2�)) +
position were updated according to Formulas (14) and (15)
��� (��/(2�)) − 1] (18)
[27-28]:
where F is the satiety rate of the vultures, rand1 is a
vi, j (t 1)  wvi, j (t)  c1r1[ pi, j  xi, j (t)]
(14) random number between 0 and 1, T is the maximum number of
c2r2[ pg, j  xi, j (t)]
iterations, z is a random number between -1 and 1, h is a random
xi , j (t  1)  xi , j (t )  vi , j (t  1) (15)
number between -2 and 2, and w is the parameter controlling the
where vi , j (t  1) is the particle velocity, xi , j (t  1) is the investigation process. A higher w value increases the probability
of the algorithm entering the investigation stage, and vice versa,
particle position, c1 and c2 are learning factors, r1 and r2 the probability decreases.
are two random numbers in the interval [0,1], and w is the (3) Exploration stage
inertial weight. Vultures have excellent visual and foraging abilities. In
The inertial weight decreased linearly [24] and was AVOA, vultures randomly search different areas via the
calculated using Formula (16): following formula:
w  wmin
w  wmax  max t (16)
t max �� (�) − ��� (�) − �� (�) � �1⩾�����1
where t and t max represent the initial current and �� (� + 1) = �� (�) − � + ����2   �� − �� ����3 + �� (19)
�1 < �����1
maximum iteration numbers, and wmax and wmin are the
initial and final values of the inertial weight. where Pi t + 1 and Pi t are the positions of vultures in
2.2.4 AVOA the t + 1 and t iterations, respectively, X is the area where
AVOA is a meta-heuristic optimization algorithm inspired vultures move randomly to protect food from other vultures, X =
by the foraging and navigation behavior of African vultures. The 2rand (a rand is a random number between 0 and 1), P1 selects
principle of the AVOA algorithm [20] involves the following: parameters for the exploration stage, rand2, rand3 and randP1 are
(1) Determine the best vulture random numbers between 0 and 1, and ub and lb are the upper
By calculating the fitness of all vultures in the population, and lower limits of the search space, respectively.
AVOA selects the vultures corresponding to the optimal and (4) Development stage
suboptimal fitness as the optimal and suboptimal positions, while In AVOA, the development stage is divided into two
other vultures move to the optimal and suboptimal vultures using strategies: development stage I and development stage II.
the following formula: Parameters P2 and P3 are selected during the development stage
���� �1 �� = �1 to determine the updated position of the strategy. The vulture
�� (�) = (17)
���� �2 �� = �2 position updates during development stages I and II are described

4
as follows: number of iterations and update strategy selection parameters at
each stage were established, and the vulture population position
��� (�) − �� (�) � + ����4 −
�� (�) − �� (�) �2 ⩾�����2 was randomly initialized.

�� (� + 1) = ����5  ��(�) (20) Step 2: The fitness values of all vultures were calculated,
�� (�) − �� (�) 2�
���  �� (�) +
and the optimal and sub-optimal positions of BestV1 and BestV2
����6  ��(�)
2�
���  �� (�) < �����2 were determined.

����1  (�) −
���� �1 (�)�� (�)
+ Step 3: Formula (17) was used to calculate the position of
2 ���� �1 (�)−�� (�)2
���� �2 (�)�� (�) each vulture. Formula (18) was used to calculate the vulture feed
����2 (�) −
�����2  (�)−�� (�)2
�� (� + 1) = (21) rate. If |F|⩾1 , Formula (5) was used to update the vulture
�3⩾�����3
positions. If 0.5⩽|F| < 1 , Formula (19) was used to update the
�� (�) − �� (�) − �� (�) ����� (�)
�3 < �����3 vulture positions. If 0⩽|F| < 0.5, Formula (20) and Formula (21)
where rand 4 , rand 5, rand 6 , randP2 ��� randP3 are random were used to update the vulture positions.
numbers between 0 and 1, respectively, while Step 4: The fitness values of all the vultures were calculated
Best V1 t ��� Best2  (t) refer to migration. The direction of each after the position update and compared to determine the optimal
step is completely random and isotropic, with the step length and suboptimal positions.
displaying heavy tail distribution. Step 5: Set � = � + 1 . If the termination condition was
2.3 AVOA-BPNN satisfied, Best �1 was output, and the algorithm ended.
Based on the AOVA optimization of the initial weights and Otherwise, Step 3 was repeated.
thresholds of the BPNN, an AVOA-BPNN model was established Step 6: Best V1 was produced, representing the initial
to improve the global BPNN optimization ability. The process is weight and threshold of the BPNN. The AVOA-BPNN model was
shown in Figure 2. The main steps were as follows: used to predict the depth of metal loss in the pipeline body.
Step 1: The AVOA population size and the maximum

FIGURE 2: THE AVOA-BPNN FLOW CHART

5
3. Model evaluation index

To verify the practical application of the genetic algorithm


optimized BPNN (GA-BPNN), particle swarm optimized BPNN
(PSO-BPNN), and AVOA-BPNN models, the relative error (RE),
average relative error (MRE), and determination coefficient (R2)
were selected to evaluate the prediction ability of the models.
Smaller RE and MRE values were ideal and, at 0, verified that
the predicted value was equal to the actual value. The R2 value
could reach a maximum of 1. The fitting effect was enhanced the
closer the value was to 1. Formulas (22-24) were used for the RE,
MRE, and R2.

yi  yi0
RE  (22)
yi0

1
N yi  yi0
MRE 
N 
i 1 yi0
 100% (23)
FIGURE 3: THE PIPELINE EXPERIMENT PLATFORM
Figure 3 The pipeline drafting experiment platform
2
 N
 N N
Here, 60 groups of magnetic leakage signals of the pipeline
 N  yi yi0   yi  yi0 
R2   i 1 i 1 i 1  (24) defects were collected. Figure 4 shows the corresponding
 N 0 2  N 0 2   N  N

2
 intercepted magnetic leakage signals of some of the pipeline
 N  ( yi )    yi    N  yi    yi  
 i 1    i 1  i 1   defects. An increase in the defect depth elevated the magnetic
 i 1
leakage flux in the pipeline, as well as the waveform amplitude.
The X, Y, and Z axis eigenvalues were extracted, while only 20
Where y i is the accurate sample data, y i0 is the model
detection data groups were presented in this paper. As shown in
prediction data, and N is the total number of test samples.
Table 1, each data set contained 16 magnetic leakage signal data
items. This included the pipeline body defect depth (metal loss
4. Application example
depth/wall thickness) (DP), the axial signal peak-valley value (A),
4.1 Data collection the axial signal waveform area (B), the axial signal waveform
The pipeline defects and nicks were designed, the pipeline energy (C), the circumferential signal peak-valley value (D), the
magnetic leakage drafting experiment platform was built, and the radial signal peak-valley value (E), the axial signal peak-peak
experiment was performed. Figure 3 shows the pipeline drafting distance (F), the axial signal threshold length (G), the axial
experiment platform. The internal magnetic leakage detector of integral signal peak-valley distance (H), the axial integral signal
the pipeline was drafted by the hoist to detect defects while their peak-valley value (I), the circumferential signal threshold length
magnetic leakage signals were collected. (J), the radial signal peak-valley distance (K), the circumferential
integral signal peak-valley distance (L), the circumferential
integral signal peak-valley value (M), the radial integral signal
peak-valley distance (N), and the radial integral signal
peak-valley value (O). Furthermore, 48 groups of data were
randomly selected for each model to learn and train, while the
remaining 12 data groups were used to test and analyze each
model.

6
FIGURE 4: THE RELATION BETWEEN THE PIPELINE DEFECTS AND THE MFL SIGNALS
TABLE 1: THE CHARACTERISTIC VALVES OF THE MFL SIGNALS
No. A B C D E F G H I J K L M N O DP
1 48.75 519.25 18258.813 13.5 66.25 1 13 10 20625 28 2 9 4875 7 15000 0.15
2 68.5 535.75 21303.438 22 90.5 1 12 4 42625 31 6 8 6250 6 39250 0.2
3 139.25 2194.5 233336.5 35.25 191 2 22 15 40250 35 8 6 9125 8 28125 0.35
4 208 2222.75 347354.063 57 288.5 2 14 10 74375 29 5 10 13875 8 59875 0.5
5 14.75 425.25 4591.313 9.75 21.25 20 43 6 6125 44 19 2 5750 5 5500 0.1
6 28.75 929.25 20171.313 11.5 42 22 50 32 10625 50 16 3 5250 35 8875 0.2
7 37.25 1380 40214 19 66.75 30 59 40 12625 60 18 39 5500 5 11000 0.35
8 46.5 1460.5 55570 22.25 96.75 26 37 34 25625 49 17 2 4875 6 18500 0.5
9 42.75 524 16225.25 21.5 52.5 1 18 12 14500 31 5 7 6500 8 11250 0.05
10 48.75 519.25 18258.813 13.5 66.25 1 13 10 20625 28 2 9 4875 7 15000 0.15
4.2 The correlation of influencing factors peak-valley distance
According to the internal pipeline magnetic leakage Axial integrated signal
9 0.6197
detection data collected during the experiment, the Pearson peak-valley value
correlation coefficient method was adopted to calculate the Circumferential signal threshold
10 0.2009
correlation coefficient of the factors influencing the depth length
quantization of the signals, as shown in Table 2. 11 Radial signal peak-valley distance -0.0016
TABLE 2: THE PEARSON CORRELATION COEFFICIENT Circumferential integrated signal
12 0.0963
OF THE INFLUNCING FACTORS peak-valley distance
Pearson correlation Circumferential integral signal
No. Influencing Factors 13 0.5578
coefficient peak-valley value
1 Axial signal peak-valley value 0.6638 Radial integral signal peak-valley
14 0.0711
2 Axial signal waveform area 0.6817 distance
3 Axial signal waveform energy 0.6051 Radial integral signal peak-valley
15 0.6468
Circumferential signal value
4 0.6627
peak-valley value 4.3 Prediction model parameter settings
5 Radial signal peak-valley value 0.6891 4.3.1 The BPNN network settings
Axial signal peak-to-peak The BPNN consists of a three-layered network structure,
6 0.1395
distance namely the input, hidden, and output layers. The node numbers of
7 Axial signal threshold length 0.0141 each layer were set as follows:
8 Axial integration signal 0.1124 The node of the BPNN input layer was set as 7, with the

7
axial signal peak-valley value, axial signal waveform area, axial predicted by the AVOA-BPNN was the closest to the measured
signal waveform energy, circumferential signal peak-valley value, value. Compared with the unoptimized BPNN, its prediction
radial signal peak-valley value, axial integral signal peak-valley accuracy of the AVOA-BPNN was significantly improved,
value, and radial integral signal peak-valley value as the input. exceeding that of the PSO-BPNN and GA-BPNN.
The prediction accuracy was optimal at a detected hidden layer
node number of 15. Therefore, the hidden layer nodes were set as
15. Since the output of the BP neural network was represented by
the metal loss depth of the pipeline body, the output layer node
was set to 1.
The training function was set as traingd, while the tansig
function was selected as the transfer function of the hidden layer
and expressed via Formula (25). The transfer function of the
output layer was set as logsig and expressed using Equation (26).
1
y 1 (25)
(1  e 2 x )
1 FIGURE 5: THE MODEL PREDICTION RESULTS
y (26)
Figure 6 shows a diagram comparing the RE between the
(1  e  x )
where x and y represent the node input and output, prediction results. The BPNN displayed the most significant
respectively. prediction errors, followed by the GA-BPNN. The GA-BPNN
4.3.2 Model initialization settings performed better than the BPNN and PSO-BPNN, while the
The neural network portions of the GA-BPNN, PSO BPNN, AVOA-BPNN produced the smallest relative prediction error
and AVOA-BPNN were established using the method in Section with the lowest curve. This reflects the robustness of the
4.3.1, with a network topology of 7-15-1, a step size of 0.05, a AVOA-BPNN model and its excellent accuracy in predicting
MaxT of 100000, and an error target of 10-6. Table 3, Table 4, results.
and Table 5 show the initial parameter settings of the GA, PSO,
and AVOA models, respectively.
TABLE 3:THE GA INITIALIZATION PARAMETERS
Parameter Value Parameter Value
Population size 40 Crossover probability 0.6
MaxT 80 Mutation probability 0.05
Training accuracy 10 -6

TABLE 4: THE PSO INITIALIZATION PARAMETERS


Parameter Value Parameter Value
Population size 40 wmax 0.2
MaxT 80 wmin 1
Learning factor c1 2 Training accuracy 10-6 FIGURE 6: THE RELATIVE MODEL ERROR
Learning factor c 2 2 PREDICTON RESULTS
TABLE 5: THE AVOA INITIALIZATION PARAMETERS As shown in Table 6, the unoptimized BPNN performed the
Parameter Value Parameter Value worse in predicting the depth of the pipeline body metal loss,
Population size 40 P1 0.2 with a maximum RE of 34.80% and a minimum RE of 0.42%.
MaxT 80 P2 0.4 The AVOA-BPNN model yielded the most accurate prediction
Training accuracy 10-6 P3 0.6
results, with a maximum RE of 8.00% and a minimum RE of 0.18.
4.4 Prediction model parameter settings
These values exceeded those of the PSO-BPNN and GA-BPNN,
The model training results are shown in Table 6, Figure 5,
confirming that the prediction accuracy of the AVOA-BPNN was
and Figure 6.As shown in Figure 5, the pipeline metal loss depth
8
superior to the BPNN, PSO-BPNN, and GA-BPNN. To further and GA-BPNN, that of the AVOA-BPNN increased by 7.86%,
analyze and verify the effect of the AVOA-BPNN, the MRE of 5.90%, and 0.76%, respectively, further verifying that BPNN
the BPNN, PSO-BPNN, GA-BPNN, and AVOA-BPNN were optimization via AVOA effectively improved its prediction
calculated, yielding values of 10.53%, 8.57%, 3.43%, and 2.67%, accuracy.
respectively. Compared with the MRE of the BPNN, PSO-BPNN,
TABLE 6: THE STATISTICS OF THE DEFECT DEPTH PREDICTION RESULTS
Measured
BPNN GA-BPNN PSO-BPNN AVOA-BPNN
metal loss
Group depth to wall
Prediction Relative Prediction Relative Prediction Relative Prediction Relative
thickness
value/% error/% value/% error/% value/% error/% value/% error/%
ratio/%
1 15.00% 18.38% 22.53% 15.09% 0.60% 15.25% 1.67% 15.85% 5.67%
2 20.00% 21.27% 6.35% 19.41% 2.95% 17.25% 13.75% 18.70% 6.50%
3 35.00% 33.07% 5.51% 33.71% 3.69% 28.52% 18.51% 35.25% 0.71%
4 50.00% 48.23% 3.54% 49.89% 0.22% 48.77% 2.46% 50.09% 0.18%
5 30.00% 31.60% 5.33% 30.24% 0.80% 29.12% 2.93% 30.19% 0.63%
6 20.00% 23.43% 17.15% 21.98% 9.90% 22.27% 11.35% 20.22% 1.10%
7 50.00% 49.79% 0.42% 49.61% 0.78% 48.96% 2.08% 50.47% 0.94%
8 30.00% 29.61% 1.30% 29.90% 0.33% 28.97% 3.43% 29.72% 0.93%
9 20.00% 17.73% 11.35% 17.83% 10.85% 24.20% 21.00% 19.52% 2.40%
10 35.00% 37.94% 8.40% 35.02% 0.06% 30.20% 13.71% 34.28% 2.06%
11 20.00% 21.93% 9.65% 17.92% 10.40% 18.58% 7.10% 19.42% 2.90%
12 10.00% 13.48% 34.80% 10.06% 0.60% 10.48% 4.80% 9.20% 8.00%
The pipeline metal loss depth predicted by the BPNN, Y=0.00372+1.00036X and an R2 fitting result of 0.99258.
GA-BPNN, PSO-BPNN, and AVOA-BPNN models and the
actual measured value were analyzed via linear fitting. As shown
in Figure 7, the fitting equation of the BPNN model was
Y=0.03628+0.90423X, yielding an R2 fitting result of
0.97379.

FIGURE 8: THE The GA-BPNN PREDICTON RESULTS


Figure 9 shows the linear fitting diagram of the PSO-BPNN
model. The fitting equation of the GA-BPNN model was
Y=0.01476+0.91001X with an R2 fitting result of 0.95298.

FIGURE 7: THE BPNN PREDICTON RESULTS

Figure 8 shows the linear fitting diagram of the GA-BPNN


model, with a fitting equation for the predicted results of
9
globally optimize and approximate complex nonlinear
multidimensional functions.
(3) The BPNN, PSO-BPNN, GA-BPNN, and AVOA-BPNN
models are used to train and predict the pipeline magnetic
leakage signal data. The MRE in the predicted depth of the
pipeline metal loss in the AVOA-BPNN model test set is 2.67%
with an R2 of 0.99800. Both these values exceed the results
predicted by the BPNN, PSO-BPNN, and GA-BPNN, verifying
the accuracy and robustness of the AVOA-BPNN as a tool for
predicting pipeline metal loss depth.
(4) Since the method based on machine learning requires a
FIGURE 9: THE The PSO-BPNN PREDICTON RESULTS large amount of data for model training, it is easy to overfit the
As shown in Figure 10, the AVOA-BPNN model fitting model when the sample is insufficient. During the subsequent
equation was Y=0.00621+1.01599X with an R fitting result of
2
training process, more pipeline defect magnetic leakage signal
0.99800. In conclusion, the R2 of the AVOA-BPNN model fitting data should be collected to improve the generalization ability of
equation was the closest to 1, while the fitting results were the model and further improve the quantification accuracy of the
optimal, further verifying its accuracy and robustness as a tool for metal loss depth in pipelines.
calculating the pipeline metal loss depth.

ACKNOWLEDGEMENTS

This work is supported by the project "The Strategic


Cooperation Technology Projects of CNPC and CUPB
(ZLZX2020-05)".

References

[1] Peng X, Anyaoha U, Liu Z, et al. Analysis of


magnetic-flux leakage (MFL) data for pipeline corrosion
assessment[J]. IEEE Transactions on Magnetics, 2020, 56(6):
1-15.
FIGURE 10: THE The AVOA-BPNN PREDICTON RESULTS [2] Bao X, Zhou D P, Baker C, et al. Recent development in
the distributed fiber optic acoustic and ultrasonic detection[J].

5 Conclusion Journal of Lightwave Technology, 2016, 35(16): 3256-3267.


[3] AbdAlla A N, Faraj M A, Samsuri F, et al. Challenges in
(1) The Pearson correlation coefficient is used to extract
improving the performance of eddy current testing[J].
seven major magnetic leakage signal characteristics of the
Measurement and Control, 2019, 52(1-2): 46-64.
pipeline metal loss depth, namely, the axial signal peak-valley
[4] Lu S, Feng J, Zhang H, et al. An estimation method of
value, the axial signal waveform area, the axial signal waveform
defect size from MFL image using visual transformation
energy, the circumferential signal peak-valley value, the radial
convolutional neural network[J]. IEEE Transactions on Industrial
signal peak-valley value, the axial integral signal peak-valley
Informatics, 2018, 15(1): 213-224.
value, and the radial integral signal peak-valley value.
[5] Bubenik T A, Nestlroth J B, Eiber R J, et al. Magnetic
(2) A pipeline metal loss depth prediction model is
flux leakage (MFL) technology for natural gas pipeline
established based on the AVOA-BPNN to quantify the metal loss
inspection[J]. NDT and E International, 1997, 1(30): 36.
depth of internal magnetic flux leakage detection signals in
[6] Antipov A G, Markov A A. 3D simulation and
pipelines. These modules use the AVOA algorithm to enhance the
experiment on high speed rail MFL inspection[J]. Ndt & E
initial BPNN weights and thresholds and improve its ability to
10
International, 2018, 98: 177-185. 2200-2213.
[7] William M V A, Ramesh S, Cep R, et al. MFO Tunned [17] Han W, Que P. Defect reconstruction of submarine oil
SVR Models for Analyzing Dimensional Characteristics of pipeline from MFL signals using genetic simulated annealing
Cracks Developed on Steam Generator Tubes[J]. Applied algorithm[J]. Journal of the Japan Petroleum Institute, 2006,
Sciences, 2022, 12(23): 12375. 49(3): 145-150.
[8] Zhang H, Wang L, Wang J, et al. A Pipeline Defect [18] Li F, Feng J, Zhang H, et al. Quick reconstruction of
Inversion Method With Erratic MFL Signals Based on Cascading arbitrary pipeline defect profiles from MFL measurements
Abstract Features[J]. IEEE Transactions on Instrumentation and employing modified harmony search algorithm[J]. IEEE
Measurement, 2022, 71: 1-11. Transactions on Instrumentation and Measurement, 2018, 67(9):
[9] Yu G, Liu J, Zhang H, et al. An iterative stacking method 2200-2213.
for pipeline defect inversion with complex MFL signals[J]. IEEE [19] Yang L J, Sun X, Gao S W. Mfl detection defect
Transactions on Instrumentation and Measurement, 2019, 69(6): reconstruction of pipeline based on conjugate gradient
3780-3788. methods[C]//Advanced Materials Research. Trans Tech
[10] Wu Z, Deng Y, Liu J, et al. A reinforcement Publications Ltd, 2012, 490: 1066-1070.
learning-based reconstruction method for complex defect profiles [20] Abdollahzadeh B, Gharehchopogh F S, Mirjalili S.
in MFL inspection[J]. IEEE Transactions on Instrumentation and African vultures optimization algorithm: A new nature-inspired
Measurement, 2021, 70: 1-10. metaheuristic algorithm for global optimization problems[J].
[11] Aldosari H, Elfouly R, Ammar R. Optimal Artificial Computers & Industrial Engineering, 2021, 158: 107408.
Neural Network Model For Prediction of Oil and Gas Pipelines [21] Karsoliya S. Approximating number of hidden layer
Defect Length[C]//2020 International Conference on neurons in multiple hidden layer BPNN architecture[J].
Computational Science and Computational Intelligence (CSCI). International Journal of Engineering Trends and Technology,
IEEE, 2020: 1457-1462. 2012, 3(6): 714-717.
[12] Chen J, Huang S, Zhao W. Three‐dimensional defect [22] Benesty J, Chen J, Huang Y, et al. Pearson correlation
inversion from magnetic flux leakage signals using iterative coefficient[M]//Noise reduction in speech processing. Springer,
neural network[J]. IET Science, Measurement & Technology, Berlin, Heidelberg, 2009: 1-4.
2015, 9(4): 418-426. [23] Wythoff B J. Backpropagation neural networks: a
[13] Liu B, Luo N, Feng G. Quantitative Study on MFL tutorial[J]. Chemometrics and Intelligent Laboratory Systems,
Signal of Pipeline Composite Defect Based on Improved 1993, 18(2): 115-155.
Magnetic Charge Model[J]. Sensors, 2021, 21(10): 3412. [24] Hecht-Nielsen R. Theory of the backpropagation neural
[14] Li H, Liu X, Wu B, et al. Accurate 3D reconstruction of network[M]//Neural networks for perception. Academic Press,
complex defects based on combined method of MFL and 1992: 65-93.
MFDs[J]. Measurement Science and Technology, 2021, 32(7): [25] Mirjalili S. Genetic algorithm[M]//Evolutionary
075402. algorithms and neural networks. Springer, Cham, 2019: 43-55.
[15] Kandroodi M R, Araabi B N, Bassiri M M, et al. [26] Whitley D. A genetic algorithm tutorial[J]. Statistics
Estimation of depth and length of defects from magnetic flux and computing, 1994, 4(2): 65-85.
leakage measurements: verification with simulations, [27] Kennedy J, Eberhart R. Particle swarm
experiments, and pigging data[J]. IEEE Transactions on optimization[C]//Proceedings of ICNN'95-international
Magnetics, 2016, 53(3): 1-10. conference on neural networks. IEEE, 1995, 4: 1942-1948.
[16] Li F, Feng J, Zhang H, et al. Quick reconstruction of [28] Du K L, Swamy M N S. Particle swarm
arbitrary pipeline defect profiles from MFL measurements optimization[M]//Search and optimization by metaheuristics.
employing modified harmony search algorithm[J]. IEEE Birkhäuser, Cham, 2016: 153-173
Transactions on Instrumentation and Measurement, 2018, 67(9):

11

You might also like