Intelligent analysis system using magnetic flux leakage data in pipeline inner inspection
11488010 · 2022-11-01
Assignee
Inventors
- Jin hai Liu (Shenyang, CN)
- Ming rui Fu (Shenyang, CN)
- Sen xiang Lu (Shenyang, CN)
- Hua guang Zhang (Shenyang, CN)
- Da zhong Ma (Shenyang, CN)
- Gang Wang (Shenyang, CN)
- Jian Feng (Shenyang, CN)
- Xin bo Zhang (Shenyang, CN)
- Ge Yu (Shenyang, CN)
- Hong qiu Wei (Shenyang, CN)
Cpc classification
G06N5/01
PHYSICS
International classification
Abstract
Provided is an intelligent analysis system for inner detecting magnetic flux leakage (MFL) data in pipelines, including a complete data set building module, a discovery module, a quantization module and a solution module, wherein: a complete data set building method is adopted in the complete data set building module to obtain a complete magnetic flux leakage data set; a pipeline connecting component discovery method is adopted in the discovery module to obtain the precise position of a weld; an anomaly candidate region search and identification method is adopted in the discovery model to find out magnetic flux leakage signals with defects; a defect quantization method based on a random forest is adopted in the quantization module to obtain a defect size; and a pipeline solution based on an improved ASME B31G standard is adopted in the solution module to output an evaluation result.
Claims
1. An intelligent analysis method for inner detecting magnetic flux leakage (MFL) data in pipelines, comprising the steps of: connecting originally-sampled MFL data collected directly from a MFL detection tool of submarine pipelines with a complete data set building module, connecting the complete data set building module with a discovery module through a complete MFL data set, connecting the discovery module with a quantization module, and connecting the quantization module with a solution module; using the complete data set building module for data missing reconstruction and noise reduction operation on original MFL data for inner detection, and adopting a complete data set building method based on a time-domain-like sparse sampling and KNN-softmax to build the complete MFL data set by the complete data set building module; using the originally-sampled MFL data in the complete data set building module as multi-source data information, specifically comprising: axial data, radial data, circumferential data and α-direction data; using the discovery module for defect detection that comprises component detection and anomaly detection, wherein the component detection completes detection of welds and flanges of pipeline connecting components; for the discovery module, adopting a pipeline connecting component discovery method based on a combination of a selective search and a convolutional neural network (CNN) to obtain a precise position of a weld; dividing whole MFL signals into patches according to the precise position of the weld, and taking one patch of MFL signals to find out MFL signals with defects by an abnormal candidate region search and identification method based on a Lagrange multiplication framework and a multi-source MFL data fusion, wherein the anomaly detection comprises: detection of defects, valves, meters and metal increment, and finally obtaining defect signals; completing mapping from the defect signals to physical characteristics by the quantization module, and finally giving a defect size, namely length, width and depth, by a defect quantization method based on a random forest; and extracting all defect length columns, depth columns and pipeline property parameters in defect information from the complete MFL data set by the solution module, and finally giving evaluation results including maintenance indexes and recommendations for a single defect position, by using a pipeline solution improved based on the standard ASME B31G through a maintenance decision model; and performing maintenance on the pipeline based on the evaluation results.
2. The intelligent analysis method according to claim 1, wherein the pipeline property parameters comprise minimum yield strength SMYS, minimum tensile strength SMTS, nominal outside diameter D.sub.d, wall thickness t.sub.a and maximum allowable operating pressure MAOP.
3. The intelligent analysis method according to claim 1, wherein the complete data set building method based on the time-domain-like sparse sampling and KNN-softmax is adopted in the complete data set building module to obtain the complete MFL data set, specifically comprises the following steps of: Step 1.1: collecting original MFL detection data directly from the MFL detection tool of submarine pipelines, and performing a secondary baseline correction on data, wherein the originally-sampled MFL data is used as multi-source data information, specifically comprising: the axial data, the radial data, the circumferential data and the α-direction data; Step 1.1.1: performing a primary baseline correction on the original MFL detection data, which is expressed as:
x′.sub.i.sub.
f(t)′=p(t)′*sin(2πnft) wherein
4. The intelligent analysis method according to claim 1, wherein the discovery module adopts the pipeline connecting component discovery method based on the combination of the selective search and the convolutional neural network (CNN) to obtain the precise position of a weld, specifically comprising the following steps of: Step 2.1: extracting the MFL signal data of a pipeline: from a complete MFL data set, dividing a whole MFL signal matrix D into n.sub.g patches of the pipeline MFL signal matrix D.sub.1, D.sub.2, . . . , D.sub.n.sub.
Sim=Sim∪sim(r.sub.ka,r.sub.kb) Step 2.3.5: finding a maximum similarity sim{r.sub.kc, r.sub.kd}=max(Sim) from Sim, and obtaining a merged region accordingly:
r.sub.ke=r.sub.kc∪r.sub.kd removing sim{r.sub.kc, r.sub.kd} from Sim; Step 2.3.6: repeating the Step 2.3.5 until Sim is empty so as to obtain me merged regions r.sub.k1, r.sub.k2, . . . r.sub.km.sub.
5. The intelligent analysis method according to claim 1, wherein according to the precise position of the weld, the whole MFL signals are divided into patches, one patch of MFL signals is taken, the discovery module adopts the abnormal candidate region search and identification method based on the Lagrange multiplication framework and the multi-source MFL data fusion to find out MFL signals with defects, specifically comprising the following steps: Step 3.1: establishing a data reconstruction framework based on Lagrange multiplication; Step 3.1.1: establishing a data reconstruction model
l(A,E,Y,μ)=∥A∥.sub.*+λ∥E∥.sub.1+Y,P−A−E
+μ/2∥P−A−E∥.sub.F.sup.2 wherein l represents an Lagrange function,
●
represents an inner product of the matrix, μ is a penalty factor, Y is a Lagrange multiplication matrix, and the unconstrained model minimization problem is solved through an iterative process as follows:
min(O.sub.X∪O.sub.Y∪O.sub.Z), subject to O.sub.Xi∪O.sub.Yj∪O.sub.Zk≠Ø Step 3.2.3: eliminating overlapping by a non-maximum suppression algorithm while considering the diversity of generation of candidate regions, merging windows which are close with each other, and using a maximum outer boundary of two windows as an outer boundary of a new form, wherein the merging criterion is that: if a transverse center distance of adjacent windows is less than a minimum transverse length of the adjacent windows; Step 3.3: anomaly identification of MFL in pipelines based on an evolvable model; Step 3.3.1: extracting abnormal samples from a complete MFL data set, and establishing an anomaly identification model based on the convolutional neural network (CNN); and Step 3.3.2: for incorrectly-identified samples, adding new labels as new classification, going to the Step 3.3.1, re-establishing the anomaly identification model, performing reclassification, and finding out the MFL signals with defects.
6. The intelligent analysis method according to claim 1, wherein the quantization module adopts the defect quantization method based on the random forest to obtain the defect size, specifically comprising the following steps: Step 4.1: collecting data: detecting the defect MFL signals, and extracting features of the MFL signals to obtain the feature values of the defect MFL signals, specifically as follows: finding out a peak-valley position and a peak-valley value of an MFL signal of an axial maximum channel according to a minimum point on the MFL signal of the axial maximum channel; and after judging and determining as single-peak and double-peak defects, extracting 10 waveform-related features, namely a peak value of the single-peak defect, a maximum peak-valley difference of the single-peak defect, a valley width of the double-peak defect, a left peak-valley difference and a right peak-valley difference of double-peak defect signals, a peak-to-peak distance of the double-peak defect signals, an axial spacing between special points, an area feature, a surface energy feature, a defect volume, and a defect body energy, the 10 features are specifically described as follows: A. the peak value of the single-peak defect: Y.sub.ν is a minimum valley value of defects, and Y.sub.p-ν is a maximum peak-valley difference, since the defect MFL signals are affected by various factors including detection environments of the inner detection tool, a baseline of data fluctuates greatly, the peak-valley difference of defect data is taken as a feature quantity, influence of the signal baseline can be removed well and the reliability of quantitative analysis of defects can be improved; B. the maximum peak-valley difference of the single-peak defect: expression is: Y.sub.p-ν=Y.sub.p−Y.sub.ν, wherein Y.sub.p is the peak value of the single-peak defect, Y.sub.ν is the minimum valley value of defects, and Y.sub.p-ν is the maximum peak-valley difference, since the defect MFL signals are affected by various factors including detection environments of the inner detection tool, the baseline of data fluctuates greatly, the peak-valley difference of defect data is taken as a feature quantity, influence of the signal baseline can be removed well and the reliability of quantitative analysis of defects can be improved; C. the valley width of the double-peak defect: formulated as: X.sub.ν-ν=X.sub.νr−X.sub.νl, wherein X.sub.ν-ν represents a valley width of an axial signal of defects, X.sub.νr is a right valley position of the defects, and X.sub.νl is a left valley position of the defects, the valley width of defect signals can reflect an axial distribution of the defect signals; D. the left peak-valley difference and the right peak-valley difference of the double-peak defect signals: formulated as: Y.sub.lp-lν=Y.sub.lp−Y.sub.lν, Y.sub.rp-rν=Y.sub.rp−Y.sub.rν, wherein Y.sub.lν is a left valley value of MFL signals, Y.sub.rν is a right valley value of the MFL signals, Y.sub.lp is a left peak value of double-peak signals, Y.sub.rp is a right peak value of the double-peak signals, Y.sub.lp-lν is a left peak-valley difference, and Y.sub.rp-rν is a right peak-valley difference; E. the peak-to-peak distance of the double-peak defect signals: formulated as: X.sub.p-p=X.sub.pr−X.sub.pl, wherein X.sub.pr is a right-peak position, X.sub.pl is a left-peak position, and X.sub.p-p is a peak-to-peak distance of signals, and a combination of the peak-to-peak distance and the peak-valley value of defect signals can roughly determine the shape of an abnormal data curve, which is contribute to quantitative analysis of defect length and depth; F. the axial spacing between the special points: in order to obtain a key feature quantity of the defect length, an extraction method of the special points comprises: setting a proportion m_RateA of rectification, and calculating the threshold according to X+(Y−X)*m_RateA, wherein X is a mean value of valley values, Y is a maximum peak value, two points closest to the threshold in the MFL signal of the axial maximum channel are the special points, and the spacing between the special points is the key feature quantity for obtaining the defect length; G. the area feature: a valley value with a lower value is taken as a baseline, an area covered between data curves of two valleys and the baseline is taken and formulated as:
7. The intelligent analysis method according to claim 1, wherein the solution module adopts the pipeline solution improved based on the standard ASME B31G, imports the maintenance decision model and outputs the evaluation results, specifically comprising the following steps of: Step 5.1: extracting all defect length columns, depth columns and pipeline property parameters in defect information from a complete MFL data set, wherein the pipeline property parameters comprise minimum yield strength SMYS, minimum tensile strength SMTS, nominal outside diameter D.sub.d, wall thickness t.sub.a and maximum allowable operating pressure MAOP; Step 5.2: calculating a value
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
(15) The invention will be further described below in combination with the drawings and embodiments.
(16) The invention provides an intelligent analysis software system for inner detecting MFL data in pipelines, proposes an analysis system for inner detecting MFL data from the overall perspective of non-destructive testing evaluation, and invents a complete data set building method based on time-domain-like sparse sampling and KNN-softmax from the perspective of intelligence, a pipeline connecting component discovery method based on a combination of a selective search and a convolutional neural network (CNN), an abnormal candidate region search and identification method based on a Lagrange multiplication framework and multi-source MFL data fusion, a defect quantization method based on a random forest and a pipeline solution improved based on standard ASME B31G. The safe operation and maintenance of pipelines are realized.
(17) The block diagram of the intelligent analysis software system of MFL data of the invention is as shown in
(18) The intelligent analysis system for inner detecting MFL data in pipelines proposed by the invention, as shown in
(19) The flow chart of data preprocessing based on time-domain-like sparse sampling and KNN-softmax is as shown in
(20) Step 1.1: collecting the original MFL detection data directly from a MFL detection tool of submarine pipelines, and performing secondary baseline correction on data, wherein the originally-sampled MFL data is used as multi-source data information, specifically comprising: axial data, radial data, circumferential data and α-direction data.
(21) Step 1.1.1: performing primary baseline correction on the original MFL detection data, which is expressed as:
(22)
wherein, k.sub.c is the number of mileage count points; x.sub.i.sub.
(23) Step 1.1.2: removing an over-limit value ±T.sub.a in the data, and assigning the position value of the over-limit value to the median value s of all channels, which is expressed as:
x′.sub.i.sub.
(24) Step 1.1.3: performing secondary baseline correction on data with the over-limit value removed:
(25)
wherein, k.sub.c is the number of mileage count points; x′.sub.i.sub.
(26) Step 1.2: performing time-domain-like sparse sampling anomaly detection treatment on data after secondary baseline correction.
(27) Step 1.2.1: performing abnormal signal time-domain-like modeling on data after secondary baseline correction, namely corresponding the sampling points to time information.
(28) Step 1.2.1.1: performing mathematical modeling on anomaly parts, wherein the modeling result is represented as:
f(t)′=p(t)′*sin(2πnft)
wherein
(29)
wherein p(t)′ represents a voltage swell compensating signal of MFL detection in pipelines, f represents a signal sampling rate, t represents sampling time, t.sub.1, t.sub.2 represents sampling intervals, a represents power pipelines, n is a system fluctuation amplitude coefficient, and f(t)′ is voltage waveform change frequency.
(30) Step 1.2.1.2: setting the variation of abnormal data of MFL detection by using the range as a collection unit, regarding the variance of pipeline system voltage data collected in each range as the data variation by using k.sub.e=100 collected data as a range, and judging the degree of voltage signal fluctuation of MFL data. The specific calculation method comprises the steps:
(31)
wherein f.sub.i.sub.
(32) Step 1.2.1.3: calculating the voltage state variation Δf.sub.i.sub.
(33)
(34) Step 1.2.2: judging abnormal signals, if Δf.sub.i.sub.
(35) Step 1.2.3: manually extracting the training sample features T=(X.sub.1, X.sub.2, . . . X.sub.7, X.sub.8), wherein a total of 8 features are extracted, which are left valley value, right valley value, valley width value, peak value, left peak-valley difference, right peak-valley difference, differential left peak value and differential right peak value.
(36) Manually extracting the testing sample features T′=(X′.sub.1, X′.sub.2, . . . , X′.sub.7, X′.sub.8), wherein a total of 8 features are extracted, which are left valley value, right valley value, valley width, peak value, left peak-valley difference, right peak-valley difference, differential left peak value and differential right peak value.
(37) Manually extracting the features T″=(X″.sub.1, X″.sub.2, . . . , X″.sub.7, X″.sub.8) of data to be interpolated, wherein a total of 8 features are extracted, which are left valley value, right valley value, valley width, peak value, left peak-valley difference, right peak-valley difference, differential left peak value and differential right peak value.
(38) Step 1.3: performing missing interpolation treatment based on KNN-logistic regression on the MFL data of submarine pipelines.
(39) Step 1.3.1: training and testing the KNN and softmax regression models.
(40) Step 1.3.1.1: dividing the feature sample data T into two parts, wherein one part of the feature sample data X.sub.Train is used for training the KNN model, and the other part of the feature sample data T.sub.Test is used for testing the KNN model.
(41) Step 1.3.1.2: inputting X.sub.Train into the KNN model, setting the initial value of K to 5, and training the KNN model.
(42) Step 1.3.1.3: inputting T.sub.Test into the trained KNN model for classification, calculating the discrimination error rate, if the error rate is less than a threshold, changing the training and testing samples by a V-fold cross-validation method, and continuing performing training; else, making K=K+1, continuing training the model, and stopping training when K is greater than the threshold M.
(43) Step 1.3.1.4: (for the feature sample data T.sub.i.sub.
(44)
(45) Step 1.3.1.5: adding a softmax regression model at a node of each class, wherein a hypothesis function is expressed in the formula:
(46)
wherein, x is the sample input value, y is the sample output value, θ is the training model parameter, k.sub.f is the vector dimension, i.sub.e is category i.sub.e in the classification and p(y=i.sub.e|x) represents the estimated probability value for category i.sub.e.
(47) Step 1.3.1.6: inputting the training sample set D′.sub.i.sub.
(48)
x is the sample input value; y is the sample output value; θ is the training model parameter; k.sub.f is the vector dimension; i.sub.e is category i.sub.e in the classification; j.sub.e is sample input j.sub.e in the classification; m.sub.d is the number of samples; 1{⋅} is the indicative function, and if value in braces is the true value, the expression value is 1.
(49) Step 1.3.2: calculating the loss function of the predicted result, and setting the threshold P to be 0.5, if J(θ)>P, returning to Step 1.3.2.2, making K=K+1, and continuing training the model until J(θ)≤P, when K is greater than the threshold M, stopping training, and outputting the output value y.sup.(i)′ after interpolation.
(50) Step 1.3.3: inputting the data features and data sets to be interpolated into the trained model to realize interpolation of missing data so as to obtain the complete MFL data set, wherein because the originally-sampled MFL data is used as the multi-source data information, a complete multi-source MFL data set is obtained.
(51) Simulation results of Step 1:
(52)
(53) The discovery module adopts the pipeline connecting component discovery method based on a combination of a selective search and a convolutional neural network (CNN) to obtain the precise position of a weld, specifically comprising the following steps that a detection flow of pipeline connecting components based on the combination of the selective search and the convolutional neural network (CNN) of the invention is as shown in
(54) Step 2.1: extracting the MFL signal data of a pipeline: from a complete MFL data set, dividing a whole MFL signal matrix D into n.sub.g patches of the pipeline MFL signal matrix D.sub.1, D.sub.2, . . . , D.sub.n.sub.
(55) Step 2.2: color diagram of MFL signal conversion: setting the upper limit A.sub.top of a signal amplitude and the lower limit A.sub.floor of the signal amplitude, and converting the pipeline MFL signal matrices D.sub.1, D.sub.2, . . . , D.sub.n.sub.
(56) Step 2.2.1: setting the upper limit A.sub.top of the signal amplitude and the lower limit A.sub.floor of the signal amplitude.
(57) Step 2.2.2: converting the pipeline MFL signal matrices D.sub.1, D.sub.2, . . . , D.sub.n.sub.
(58)
wherein i∈M.sub.n.sub.
(59) Step 2.2.3: converting the gray matrices Gray.sub.1, Gray.sub.2, . . . , Gray.sub.n.sub.
(60)
wherein c=255, r.sub.ij is a component element of matrix R; g.sub.ij is a component element of matrix G; b.sub.ij is a component element of matrix B.
(61) Step 2.3: selective search: for the color diagram C.sub.k of each segment of pipeline, extracting m.sub.c candidate regions r.sub.k1, r.sub.k2, . . . r.sub.km.sub.
(62) Step 2.3.1: for the color diagram C.sub.k of each segment of pipeline, using a division method to obtain a candidate region set R.sub.k={r.sub.k1, r.sub.k2, . . . , r.sub.kw}.
(63) Step 2.3.2: initializing a similarity set Sim=ϕ.
(64) Step 2.3.3: calculating the similarities sim{r.sub.ka, r.sub.kb} of all adjacent regions r.sub.ka, r.sub.kb according to the following formula.
(65)
(66) Step 2.3.4: repeating Step 2.3.3 until the similarities of all adjacent regions are calculated, and updating the similarity set Sim according to the following formula:
Sim=Sim∪sim(r.sub.ka,r.sub.kb)
(67) Step 2.3.5: finding the maximum similarity sim{r.sub.kc, r.sub.kd}=max(Sim) from Sim, and obtaining a merged region r.sub.ke=r.sub.kc∪r.sub.kd accordingly; removing sim{r.sub.kc, r.sub.kd} from Sim.
(68) Step 2.3.6: repeating Step 2.3.5 until Sim is empty so as to obtain mc merged regions r.sub.k1, r.sub.k2, . . . r.sub.km.sub.
(69) Step 2.4: convolution neural network: candidate region identification.
(70) Step 2.4.1: building a convolutional neural network (CNN) with input of 72×72, and an intermediate layer of the convolutional neural network (CNN) comprises 4 convolutional layers, 4 down-sampling layers and 1 fully connected layer, wherein each convolutional layer is followed by a down-sampling layer used to evaluate local weighted mean as secondary feature extraction.
(71) Step 2.4.2: extracting weld color diagrams of P N.sub.1×N.sub.1 from historical data as samples of the convolutional neural network (CNN), wherein 80% of random samples are used as training samples, and the remaining 20% are used as testing samples.
(72) Step 2.4.3: repeatedly training the network for 500 times, wherein the one with the highest success rate of testing is used as the final network Net.
(73) Step 2.4.4: inputting the candidate regions r.sub.k1, r.sub.k2, . . . r.sub.km into the trained convolutional neural network (CNN) respectively for discrimination, for the region which is judged to be the weld, recording the position Loc and the network score Soc of the region, and finally, obtaining w positions Loc.sub.1, Loc.sub.2, . . . , Loc.sub.w and scores Soc.sub.1, Soc.sub.2, . . . , Soc.sub.w.
(74) Step 2.5: Non-maximum suppression: obtaining the precise position L.sub.1, L.sub.2, . . . , L.sub.u of the weld according to the position Loc.sub.1, Loc.sub.2, . . . , Loc.sub.w and the score Soc.sub.1, Soc.sub.2, . . . , Soc.sub.w of the weld seam based on the non-maximum suppression algorithm, wherein simulation results of Step 2 are as shown in
(75) According to the precise position of the weld, the whole MFL signals are divided into u+1 patches, one patch of MFL signals is taken, the discovery module adopts an abnormal candidate region search and identification method based on a Lagrange multiplication framework and multi-source MFL data fusion to find out MFL signals with defects, as shown in
(76) Step 3.1: establishing a data reconstruction framework based on Lagrange multiplication, wherein the search flow of abnormal regions based on Lagrange multiplication of the invention is as shown in
(77) Step 3.1.1: establishing a data reconstruction model:
(78)
(79) Step 3.1.2: changing a constrained optimization model into an unconstrained optimization model,
(80)
wherein the unconstrained model minimization problem can be solved through an iterative process as follows:
(81)
(82) Step 3.1.3: iterative optimization, wherein the optimization model of matrix A is:
(83)
for the convenience of calculation, the nuclear norm minimization problem can be solved by a soft threshold operator, the calculation formula of the soft threshold is (x, τ)=sgn(x)(|x|−τ).sub.+, wherein y.sub.+=max(y,0), the operator can be used in the optimization process as follows:
(84)
therefore, the optimization problem of the matrix A is transformed into
(85)
and similarly, the optimization problem of the matrix E is transformed into
(86)
(87) Step 3.1.4: setting an iteration cut-off condition, wherein the cut-off condition is
(88)
wherein S is the weight matrix, and the application of the S weight matrix can greatly reduce the iteration time, so that the detection speed can be increased; the matrix S of the invention is set as follows:
(89)
(90) Step 3.2: abnormal candidate region search in pipelines based on multi-data fusion, wherein the recommendation and identification framework for abnormal candidate regions based on multi-source MFL data fusion is as shown in
(91) Step 3.2.1: performing abnormal region research on uniaxial data respectively under the data reconstruction framework based on Lagrange multiplication so as to obtain triaxial abnormal regions, which are respectively O.sub.X, O.sub.Y, O.sub.Z.
(92) Step 3.2.2: establishing a triaxial fusion optimization framework:
min(O.sub.X∪O.sub.Y∪O.sub.Z), subject to O.sub.Xi∪O.sub.Yj∪O.sub.Zk≠Ø
(93) Step 3.2.3: eliminating overlapping by a non-maximum suppression algorithm while considering the diversity of generation of candidate regions, merging windows which are close with each other, and using the maximum outer boundary of two windows as the outer boundary of a new form, wherein the merging criterion is that: if the transverse center distance of adjacent windows is less than the minimum transverse length of the adjacent windows.
(94) Step 3.3: anomaly identification of MFL in pipelines based on an evolvable model.
(95) Step 3.3.1: extracting abnormal samples from a complete MFL data set, and establishing an anomaly identification model based on the convolutional neural network (CNN).
(96) Step 3.3.2: For those incorrectly-identified samples, adding new labels, and reinputting the new labels into the model for training, wherein along with the increase of transition data, the identification model is evolving gradually, the simulation results in Step 3, as shown in
(97) The quantization module adopts a defect quantization method based on a random forest to obtain the defect size, specifically comprising the following steps.
(98) Step 4.1: collecting data; detecting the defect MFL signals, and extracting features of the MFL signals to obtain the feature values of the defect MFL signals, specifically as follows.
(99) Finding out the peak-valley position and peak-valley value of an MFL signal of axial maximum channel according to the minimum point on the MFL signal of axial maximum channel; after judging and determining as single-peak and double-peak defects, extracting 10 waveform-related features, namely peak value of single-peak defect, Maximum peak-valley difference of single-peak defect, valley width of double-peak defect, left peak-valley difference and right peak-valley difference of double-peak defect signals, peak-to-peak distance of double-peak defect signals, axial spacing between special points, area feature, surface energy feature, defect volume, and defect body energy.
(100) The 10 features are specifically described as follows.
(101) A. peak value of single-peak defect: Y.sub.ν is the defect minimum valley value, and Y.sub.p-ν is the maximum peak-valley difference. Since the defect MFL signals are affected by various factors such as detection environments of the inner detection tool, the baseline of data fluctuates greatly. Taking the peak-valley difference of defect data as a feature quantity can eliminate the influence of the signal baseline well and improve the reliability of quantitative analysis of defects.
(102) B. maximum peak-valley difference of single-peak defect: expression is: Y.sub.p-ν=Y.sub.p−Y.sub.ν, wherein Y.sub.p is the peak value of single-peak defect, Y.sub.ν is the minimum valley value of defects, and Y.sub.p-ν is the maximum peak-valley difference. Since the defect MFL signals are affected by various factors such as detection environments of the inner detection tool, the baseline of data fluctuates greatly. Taking the peak-valley difference of defect data as a feature quantity can eliminate the influence of the signal baseline well and improve the reliability of quantitative analysis of defects.
(103) C. valley width of double-peak defect: formulated as: X.sub.ν-ν=X.sub.νr−X.sub.νl, wherein X.sub.ν-ν represents the valley width of an axial signal of defects, X.sub.νr is the right valley position of the defects, and X.sub.νl is the left valley position of the defects. The valley width of defect signals can reflect the axial distribution of the defect signals.
(104) D. left peak-valley difference and right peak-valley difference of double-peak defect signals: formulated as: Y.sub.lp-lν=Y.sub.lp−Y.sub.lν, Y.sub.rp-rν=Y.sub.rp−Y.sub.rν, wherein Y.sub.lν is the left valley value of MFL signals, Y.sub.rν is the right valley value of the MFL signals, Y.sub.lp is the left peak value of double-peak signals, Y.sub.rp is the right peak value of the double-peak signals, Y.sub.lp-lν is the left peak-valley difference, and Y.sub.rp-rν is the right peak-valley difference.
(105) E. peak-to-peak distance of double-peak defect signals: formulated as: X.sub.p-p=X.sub.pr−X.sub.pl, wherein X.sub.pr is the right-peak position, X.sub.pl is the left-peak position, and X.sub.p-p is the peak-to-peak distance of signals. A combination of the peak-to-peak distance and the peak-valley value of defect signals can roughly determine the shape of an abnormal data curve, which is contribute to quantitative analysis of defect length and depth.
(106) F. axial spacing between special points: in order to obtain the key feature quantity of defect length, the extraction method of special points comprises: setting the proportion m_RateA of rectification, and calculating the threshold according to X+(Y−X)*m_RateA, wherein X is the mean value of valley values, Y is the maximum peak value, two points closest to the threshold in the MFL signal of axial maximum channel s are the special points, and the spacing between special points is the key feature quantity for obtaining the defect length.
(107) G. area feature: A valley value with a lower value is taken as the baseline, the area covered between data curves of two valleys and the baseline is taken and formulated as:
(108)
wherein S.sub.a represents the waveform area of defects; x(t) represents the signal data point of defects; min[x(t)] represents the minimum valley value of defects; N.sub.1 represents the left valley position of defects; N.sub.2 represents the right valley position of defects.
(109) H. surface energy feature: the energy of a data curve between two valleys is obtained and formulated as:
(110)
wherein, S.sub.e is the defect waveform surface energy.
(111) I. defect volume: The defect volume is obtained by summing the defect areas within a defect channel range, and formulated as:
(112)
wherein V.sub.a represents the defect volume; n.sub.1 represents the starting channel determined by the position of a direction signal at a special point; n.sub.2 represents the termination channel determined by the position of a circumferential signal at a special point; and S.sub.a(t) represents the single-channel axial defect area.
(113) J. defect body energy: The defect body energy is obtained by summing the defect surface energy within the defect range, and formulated as:
(114)
wherein, V.sub.e represents the defect body energy; and S.sub.e(t) represents the surface energy of single-channel axial defect signals.
(115) Step 4.2: using the feature value of the defect MFL signal as a sample; using the manually-measured defect size as a label, wherein the defect size includes the depth, width and length of a defect; manually selecting the initial training set and the testing set.
(116) Step 4.3: training the network; inputting the training set into an initial random forest network.
(117) Step 4.4: adjusting the network; inspecting the results of the random forest regression network through the testing set, and obtaining a final network by adjusting parameters, wherein the specific practice is: inputting M.sub.h=666, N.sub.h=6, setting the parameters m.sub.f=sgrt( ), T.sub.f=56, specifically, initially setting the parameter to n.sub.f=n.sub.f/3, and setting the maximum feature number, max_features, to be None.
(118) Step 4.4.1: selecting m.sub.e defect samples by a Bootstrapping method by random sampling with replacement from the M.sub.h×N.sub.h dimension of original MFL signal feature defect samples, with m.sub.e≤M.sub.h, performing samplings for T.sub.c times in total, and generating T.sub.c training sets.
(119) Step 4.4.2: for the T.sub.c training sets, training T.sub.c regression tree models, respectively.
(120) Step 4.4.3: for a single regression tree model, selecting n.sub.e features from a MFL defect signal feature set, wherein n.sub.e≤N; then performing division each time based on the information gain ratio
(121)
wherein H.sub.A(D) in the formula represents the entropy of feature A, and g(D, A) represents information gain; selecting the feature with the maximum information gain ratio for division; initially, setting the maximum feature number, max_features, of the parameters as None, that is, without limiting the feature number selected in the network.
(122) Step 4.4.4: every tree keeps division like this, in order to prevent overfitting in the process of division, pruning the regression tree through consideration of the complexity of the regression tree. Pruning is performed by minimizing the loss function C.sub.α(T)=C(T)+α|T|, wherein C(T) represents the model's prediction error for the defect size, namely, the degree of fitting, |T| represents model complexity, and α is used to regulate the complexity of the regression tree. The prediction error of the loss function is taken as the value at POF 90% position by using the international POF standards for sea oil transportation. Initially, setting the maximum tree depth, max_depth to be 5.
(123) Step 4.4.5: for model parameter tuning optimization, finding out the optimal parameters by CVGridSearch and K-fold cross-validation, wherein the optimal parameters comprise random forest framework parameter, out-of-bag sample evaluation score e.sub.oob and maximum number of iterations, as well as maximum feature number of tree model parameter, i.e. max_features, maximum depth, minimum number of samples required for inner node subdivision and minimum number of samples of leaf nodes.
(124) Step 4.4.6: forming the random forest by a plurality of generated decision trees, for the regression problem network established from defect feature samples, the finally-predicted defect size is determined by the mean value of the predicted values of a plurality of trees.
(125) Step 4.5: inputting the data to be tested into the random forest network adjusted according to Step 4.4, and outputting the predicted defect size, wherein at this time, if the data to be tested is the depth in the defect size, the output size is the depth of the predicted defect size; if the data to be tested is the width in the defect size, the output size is the width of the predicted defect size; if the data to be tested is the length in the defect size, the output size is the length of the predicted defect size, wherein, predicted depth reflects the value at position 80% ranked by the absolute value of error according to the international POF standards for oil pipelines, the formula is: POF.sub.80=sort(|(y.sub.c−{tilde over (y)}.sub.c)|)×80%, wherein y.sub.c and {tilde over (y)}.sub.c are design depth and predicted depth, respectively. The condition that an intergenerational loss function in iteration n.sub.p is no longer reduced is used as the termination condition of seeking optimum parameters, and the maximum number of iterations n_estimators in the final output of the network is 172.
(126) The simulation results of Step 4 and a performance comparison of the invention with the traditional defect inversion algorithm are as shown in Table 1:
(127) TABLE-US-00001 TABLE 1 Performance of defect inversion algorithm: Confidence Level Length Width Depth (80%) (mm) (mm) (mm) Traditional random 9.26 ± 0.56 14.56 ± 0.41 0.88 ± 0.25 forest algorithm Inversion algorithm 7.52 ± 0.49 10.31 ± 0.35 0.76 ± 0.11 proposed by the invention
(128) Table 1 and
(129) It can be seen from
(130) Step 5.1: extracting all defect length columns, depth columns and pipeline property parameters in defect information from a complete MFL data set, wherein the pipeline property parameters comprise minimum yield strength SMYS, minimum tensile strength SMTS, nominal outside diameter D.sub.d, wall thickness t.sub.a and maximum allowable operating pressure MAOP.
(131) Step 5.2: calculating the value
(132)
of rheological stress, wherein SMYS is the minimum yield strength of the pipe in Mpa, and SMTS is the minimum tensile strength in Mpa.
(133) Step 5.3: calculating the predicted failure pressure
(134)
of pipelines, when z≤20, the length expansion coefficient
(135)
when z>20, the length expansion coefficient L.sub.0=(ηz+λ.sub.a),
(136)
the metal loss area
(137)
in a corrosion area, and the original area A.sub.area0=t.sub.aL, wherein d is the defect depth in mm; t.sub.a is the pipeline wall thickness in mm; D.sub.d is the nominal outside diameter in mm.
(138) Step 5.4: calculating the maximum failure pressure
(139)
of the pipeline, reorganizing and getting:
(140)
when z≤20, θ.sub.a=⅔ when z>20, θ.sub.a=1.
(141) Step 5.5: calculating the maintenance index
(142)
wherein
(143)
P is the maximum allowable design pressure; if the maintenance index ERF is less than 1, it indicates that the defect is acceptable; if ERF is greater than or equal to 1, the defect is unacceptable, and then the pipe should be maintained or replaced.
(144) Step 5.6: importing the maintenance decision model, conducting qualitative and quantitative analysis based on expert experiences and a life prediction model, then evaluating the severity of pipeline corrosion, formulating maintenance rules, and outputting the evaluation results according to the maintenance rules, comprising: maintenance index and maintenance recommendations; wherein rule 1: the maximum depth of wall thickness loss at the defect, which is greater than or equal to 80%, is considered as major corrosion, and maintenance is recommended: the pipe needs to be maintained or replaced immediately, rule 2: the ERF at the defect is greater than or equal to 1, which is considered as severe corrosion, maintenance is recommended: the pipe needs to be maintained immediately, rule 3: the ERF at the defect is greater than or equal to 0.95 and less than 1.0, which is considered as general corrosion, maintenance is recommended: the defect can be observed for 1-3 months, rule 4: the maximum depth at the defect is greater than or equal to 20% and less than 40%, which is considered as minor corrosion, maintenance is recommended: the defect can be observed regularly without treatment.
(145) For simulation results of Step 5, the curve as shown in