An electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence

By constructing an anti-noise generative adversarial network, a deep-sea ecological simulation optimization algorithm and an extreme learning machine model, the problem of data accuracy and model stability in electromagnetic ultrasonic detection of pressure pipelines is solved, more efficient feature extraction and classification are achieved, and the accuracy of detection is improved. performance and reliability.

CN118129088BActive Publication Date: 2024-09-06CHINA MERCHANTS XINJIANG SPECIAL EQUIPMENT INSPECTION TECHNOLOGY RESEARCH INSTITUTE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410286417.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2024-09-06
Estimated Expiration
2044-03-13

AI Technical Summary

Technical Problem

The existing technology has problems in the electromagnetic ultrasonic detection of pressure pipelines, such as insufficient accuracy in data collection and processing, insufficient amount of training data, low feature extraction efficiency, poor model stability, and high computational complexity in the face of high-dimensional data, resulting in detection accuracy and reliability. sexual decline.

Method used

Methods based on artificial intelligence are adopted, including constructing a generative adversarial network model with anti-noise enhancement learning for data expansion, a neural network model with a deep-sea ecological simulation optimization algorithm for feature extraction, and an autoencoder with random mapping and distance metric learning for data dimensionality reduction. And use the extreme learning machine classification algorithm model for classification to improve the quality and accuracy of detection data.

Benefits of technology

By generating real data samples, the stability and robustness of the model in noisy environments are enhanced, feature extraction efficiency and classification accuracy are improved, especially maintaining high classification performance when dealing with abnormal data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118129088B
    Figure CN118129088B
Patent Text Reader

Abstract

The present invention discloses an electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence, comprising: step S1, collecting and labeling electromagnetic ultrasonic detection data for pressure pipelines; step S2, constructing and training a generative adversarial network model of noise-resistant enhanced learning to expand electromagnetic ultrasonic detection data for pressure pipelines; step S3, constructing and training a neural network model of a deep-sea ecological simulation optimization algorithm to extract features of electromagnetic ultrasonic detection data for pressure pipelines; step S4, constructing and training an autoencoder of random mapping and distance metric learning to reduce the dimension of data after feature extraction of electromagnetic ultrasonic detection data for pressure pipelines; step S5, constructing and training an extreme learning machine classification algorithm model to classify electromagnetic ultrasonic detection data for pressure pipelines after dimension reduction; step S6, inputting new electromagnetic ultrasonic detection data for pressure pipelines into the trained model to identify and classify potential defects in the pipeline. The present invention improves the quality and accuracy of detection data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence. Background Art

[0002] In the field of electromagnetic ultrasonic testing of pressure pipelines, existing technologies face a series of challenges, which mainly come from the quality of test data, the efficiency of data processing, and the limitations of the accuracy and stability of the test model. With the continuous development of industrial applications and the improvement of safety requirements, it is particularly important to monitor the health status of pressure pipelines efficiently and accurately. As an important facility for transporting liquids and gases, pressure pipelines will have various defects such as cracks, corrosion, and wall thickness reduction during long-term use. If these defects are not detected and handled in time, they may cause serious safety accidents.

[0003] The Chinese invention patent with application number CN201711163780.1 proposes a pipeline leakage detection device with good automatic movement effect, good swing angle, convenient detection, reduced labor intensity and improved efficiency.

[0004] The Chinese invention patent with application number CN201721463018.0 proposes an acoustic positioning C-scan imaging device for pipeline corrosion detection. During the pipeline corrosion detection process, an acoustic positioning transmitting sensor and an acoustic positioning receiving sensor are used to locate the detection position information, so that the corrosion condition of the pipeline is displayed in a regionalized manner on the C-scan color image, which very intuitively reflects the degree of corrosion of the inspected pipeline, improves the detection rate of corrosion defects, and provides strong evidence for engineering quality assessment.

[0005] The Chinese invention patent with application number CN201721467244.6 proposes a high-frequency waveguide rapid detection device for process pipeline defects. The high-frequency waveguide probe is clamped on the above-mentioned scanning frame, and the high-frequency waveguide probe is moved along the circumference of the pipeline by moving the scanning frame, thereby improving the scanning speed and the rate of pipeline defect inspection.

[0006] However, the prior art still has the following problems:

[0007] 1. Existing technologies may lack sufficient accuracy in data collection and processing, resulting in low quality data and making subsequent analysis and identification difficult.

[0008] 2. Existing technologies may not be able to effectively solve the problem of insufficient training data or insufficient data diversity, which limits the generalization ability and accuracy of the model.

[0009] 3. Existing technologies may not be efficient in feature extraction and may not be able to fully mine the useful information in the data, or the extracted features may not accurately reflect the essential attributes of the data.

[0010] 4. Faced with complex data environments and various noise interferences, existing technology models may lack sufficient stability and robustness and be easily affected by abnormal data, resulting in reduced detection accuracy and reliability.

[0011] 5. When processing high-dimensional data, existing technologies may face the curse of dimensionality, resulting in high computational complexity and low processing efficiency. Summary of the invention

[0012] The purpose of the present invention is to overcome the existing defects and provide an electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence, thereby improving the quality and accuracy of detection data.

[0013] The technical solution to achieve the above purpose is:

[0014] An electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence, comprising:

[0015] Step S1, collecting and marking electromagnetic ultrasonic testing data of pressure pipelines;

[0016] Step S2, constructing and training a generative adversarial network model for noise-resistant enhanced learning to expand pressure pipeline electromagnetic ultrasonic testing data;

[0017] Step S3, constructing and training a neural network model of a deep-sea ecological simulation optimization algorithm to extract features from electromagnetic ultrasonic testing data of pressure pipelines;

[0018] Step S4, constructing and training an autoencoder for random mapping and distance metric learning to perform dimensionality reduction on the data after feature extraction of electromagnetic ultrasonic testing data of pressure pipelines;

[0019] Step S5, constructing and training an extreme learning machine classification algorithm model to classify the electromagnetic ultrasonic detection data of the pressure pipeline after dimensionality reduction;

[0020] Step S6, inputting new pressure pipeline electromagnetic ultrasonic inspection data into the trained model to identify and classify potential defects in the pipeline.

[0021] Preferably, in step S1, ultrasonic waves are generated in the pressure pipeline material by an electromagnetic ultrasonic transducer, and reflected wave signals are captured to obtain electromagnetic ultrasonic detection data of the pressure pipeline, wherein the electromagnetic ultrasonic detection data of the pressure pipeline is recorded in the form of digital signals, and each data point reflects the specific properties of the ultrasonic wave when it propagates in the material.

[0022] Preferably, in step S1, the attributes of the pressure pipeline electromagnetic ultrasonic detection data include:

[0023] ax: ultrasonic frequency, the number of ultrasonic pulses emitted per unit time;

[0024] ay: Amplitude, which refers to the amplitude of the ultrasonic wave when it propagates in the pipe material;

[0025] aw: attenuation coefficient, which describes the degree of energy loss when ultrasound propagates in a material;

[0026] a v : Reflection intensity, the amount of energy reflected back by the ultrasonic wave at the defect;

[0027] a u : Signal-to-noise ratio, a measure of signal quality;

[0028] a t : Waveform characteristics, such as period, frequency and peak value, are used to describe the specific shape of the ultrasonic waveform;

[0029] a s : Defect location, the spatial location information of the position where the maximum reflected wave signal appears;

[0030] a r : Indicated length, the defect length measured by the moving electromagnetic ultrasonic transducer;

[0031] a q : Defect amplitude, the amplitude of the position where the defect has the maximum reflected wave signal;

[0032] a v : The height of the defect itself, the vertical distance between the surfaces of the defect area.

[0033] Preferably, in step S1, the electromagnetic ultrasonic testing data of the pressure pipeline is annotated by manual annotation, and the annotated categories include: 6 categories: pores, slag inclusions, cracks, lack of fusion, lack of penetration and wall thickness reduction.

[0034] Preferably, in step S2, training a generative adversarial network model for noise-resistant enhanced learning includes:

[0035] Suppose the parameters of the generator G are The parameters of the discriminator D are Initialize the network parameters of the generator G and the discriminator D. The generator G is used to generate samples that are close to the real electromagnetic ultrasonic testing data from random noise, and the discriminator D is used to distinguish the generated samples from the real samples.

[0036] Using an iterative training method, in each round of training, the generator G receives random noise as input and generates data samples. The discriminator D evaluates these generated samples and real samples and distinguishes them. Through this adversarial process, the generator G learns to generate more and more real data samples, that is:

[0037] The generator G receives random noise b z , output generated samples

[0038] Discriminator D evaluates the generated sample b g With the real sample b x , whose goal is to maximize the ability to distinguish between real samples and generated samples. The objective function of the discriminator D is It can be expressed as:

[0039]

[0040] And, the objective function of the generator G is for:

[0041]

[0042] in, represents the expectation, the real sample b x Subject to a specific data distribution, represents the expectation, random noise b z The input follows a specific distribution;

[0043] The noise resistance mechanism is achieved by introducing a noise resistance term b into the input of the generator G. nr , the noise resistance term is a processing function for input noise, expressed as b nr (b z ), then generate sample b g The process can be expressed as:

[0044]

[0045] Noise resistance term b nr (b z ) by input noise b z After processing, the calculation method can be expressed as:

[0046]

[0047] in, represents the weight matrix of the noise-resistant transformation, is the bias term, Re() is the ReLU activation function;

[0048] An improved loss function is used to consider the difference between generated samples and real samples and the model complexity. The structural risk is minimized by introducing a regularization term in the loss function to balance the model complexity and the degree of fitting, which can be expressed as:

[0049]

[0050] in, is the regularization term, λ is the regularization coefficient, which controls the influence of model complexity on the loss function;

[0051] Then the regularization term The calculation method can be expressed as:

[0052]

[0053] in, and Calculate the sum of squares of the parameters of the generator G and the discriminator D respectively to penalize excessive weight values ​​and avoid overfitting;

[0054] According to the feedback of the loss function, the parameters of the generator G and the discriminator D are gradually adjusted. Through multiple rounds of iterations, the generator G can generate samples that are closer and closer to the real electromagnetic ultrasonic detection data. That is, the back propagation and gradient descent algorithm is used to update and can be expressed as:

[0055]

[0056]

[0057] Among them, α is the learning rate, and α is set to 0.01;

[0058] Then, for the generator G, the gradient The calculation method can be expressed as:

[0059]

[0060] in, represents the partial derivative of the loss with respect to the generated sample, It is the partial derivative of the generated sample to the parameters of the generator G;

[0061] For the discriminator D, the gradient The calculation method can be expressed as:

[0062]

[0063] in, Represents the partial derivative of the loss on the discriminant result, It is the partial derivative of the discriminant result to the discriminator D parameter;

[0064] By iterating a preset number of iterations, the generator G can independently generate new data samples, and the final generated data samples bg are added to the original data set as an expanded sample data set.

[0065] Preferably, in step S3, training a neural network model of a deep-sea ecological simulation optimization algorithm comprises:

[0066] The parameters of the neural network, including weights and biases, are randomly initialized. Let cX be the input electromagnetic ultrasonic detection data, cW(l) be the weight matrix of the lth layer, cb(l) be the bias vector of the lth layer, cA(l) be the activation value of the lth layer, and cZ( l ) is the linear transformation value of the lth layer, L is the loss function, and η is the learning rate;

[0067] When the neural network is initialized, the weights and biases are initialized by a random function finit, which can be expressed as:

[0068] wxya (l) =f init ();

[0069] cb (l) =f init ();

[0070] Among them, f init () indicates the initialization function used;

[0071] Then, the weight matrix cW of the lth layer is (l) It can be expressed as:

[0072]

[0073] Among them, n (l-1) is the number of nodes in the l-1th layer, represents a normal distribution with a mean of 0 and a standard deviation of 1;

[0074] Input the electromagnetic ultrasonic inspection data of the pressure pipeline, perform forward propagation through the neural network, calculate the activation value of each layer and the final output feature, that is, for the forward propagation of each layer, use the following formula to calculate the linear transformation value cZ (l) and activation value cA (l) :

[0075] cZ (l) =cW (l) ·cA (l-1) +cb (l) ;

[0076] cA (l) =factivation (cZ (l) );

[0077] Among them, f activation represents the activation function;

[0078] The loss function L used calculates the difference between the output features and the expected features, and the calculation method is expressed as:

[0079]

[0080] Where n is the number of samples, cY i is the true label of the i-th sample, is the predicted output of the model, f loss is the adaptive loss calculation function;

[0081] Then, the adaptive loss calculation function f loss The calculation method can be expressed as:

[0082]

[0083] Where M is the number of categories, cY ij is the one-hot encoding of the true label, is the probability distribution predicted by the model;

[0084] Using the random function optimization method and adaptive adjustment mechanism, the parameters of the neural network are updated according to the gradient of the loss function. The parameter update is adjusted using the stochastic gradient descent method. For each layer, the update formula of the weight and bias is:

[0085]

[0086]

[0087] Where η is the learning rate, and They are the gradients of the loss function with respect to weights and biases respectively;

[0088] Then, the weight cW (l) and bias cb (l) The gradient calculation of is obtained by the chain rule and can be expressed as:

[0089]

[0090] in, is the gradient of the loss function with respect to the activation value of layer l, is the derivative of the activation function, Depends on the activation value cA of the previous layer (l-1) ;

[0091] Repeat the above steps until the maximum number of iterations is reached, completing the training of the neural network model of the deep-sea ecological simulation optimization algorithm.

[0092] Preferably, in step S4, training the autoencoder for random mapping and distance metric learning includes:

[0093] Let the i-th data feature input to the model be eX i , let the random mapping matrix Where d is the data dimension after feature extraction, and k is the dimension after mapping;

[0094] Initialize the autoencoder model and use a random mapping matrix to the standardized data to enhance the expression of data features, which can be expressed as:

[0095]

[0096] in, To enhance data features;

[0097] The encoder receives the mapped data and converts it into a low-dimensional feature representation. Let eEnc be the encoder function, eW e and eb e are the weight and bias of the encoder respectively. The encoding process can be expressed as:

[0098]

[0099] Among them, Re() is the ReLU activation function;

[0100] The decoder reconstructs the original data from the low-dimensional feature representation. Let eDec be the decoder function, eW d and eb d are the weight and bias of the decoder respectively, then the decoding process can be expressed as:

[0101] eX″ i =eDec(eF i ;eW d ,eb d )=Re(eW d ×eF i +eb d );

[0102] Among them, eX″i is the enhanced data feature after decoding;

[0103] The parameters of the encoder and decoder are adjusted through distance metric learning to minimize the distance between the reconstruction error and the feature representation, the reconstruction error eL recon The calculation method can be expressed as:

[0104]

[0105] Where N represents the number of data features;

[0106] Feature distance optimization eL dist can be expressed as:

[0107]

[0108] Among them, y ij Indicates eD i and eD j Whether they belong to the same category is obtained by the preset softmax classification function;

[0109] Then, the calculation method of the total loss function can be expressed as:

[0110] eLtotal=eLrecon+λeLdist;

[0111] Among them, λ is the regularization parameter used to balance the two losses;

[0112] Use the gradient descent method to update eWe, ebe, eWd, ebd and eM. The update method can be expressed as:

[0113]

[0114]

[0115]

[0116]

[0117]

[0118] Wherein, eWe,new is the updated encoder weight parameter, ebe,new is the updated encoder bias parameter, eWd,new is the updated decoder weight parameter, ebd,new is the updated decoder bias parameter, eMnew is the updated random mapping matrix, and η is the learning rate of the encoder;

[0119] The above steps are repeated until the maximum number of iterations is reached, completing the training of the autoencoder for random mapping and distance metric learning.

[0120] Preferably, in step S5, training the extreme learning machine classification algorithm model includes:

[0121] Randomly initialize the input weights and biases of the extreme learning machine, set the initial value of the output layer weight, and the way to initialize the input weights Wi and bias bi can be expressed as:

[0122] Wi~U(-r,r);

[0123] bi~U(-r,r);

[0124] Among them, U(-r,r) represents the uniform distribution in the range of [-r,r], r is a constant selected according to the dimension of the input data, and r is set to 1;

[0125] The electromagnetic ultrasonic detection data of the pressure pipeline after feature dimension reduction is used as input, and the hidden layer of the extreme learning machine is transformed nonlinearly to obtain the output of the hidden layer. The calculation method of the hidden layer output H can be expressed as:

[0126] H = sig(Wi·X+bi);

[0127] Among them, X is the input data, sig() is the sigmoid activation function;

[0128] The hidden layer output H is calculated by input data X, input weight Wi and bias bi, and the calculation method can be expressed as:

[0129] H = Sig(Wi·X+bi);

[0130] The calculation method of the Sigmoid activation function can be expressed as:

[0131]

[0132] A robust optimization strategy is used to calculate the output weights to minimize the newly defined loss function and introduce a penalty term for outliers, that is, the output weight W under the robust optimization strategy o During the calculation process, the following optimization problem is solved to obtain W o :

[0133]

[0134] Among them, Y is the target output, λ and γ are the weight coefficients of the regularization term and the robust term, ρ(HiW o ,Yi) is the robust loss function for the i-th sample;

[0135] Using the Huber loss function, the calculation method can be expressed as:

[0136]

[0137] Among them, δ is the threshold parameter of Huber loss, which is used to control the transition of the loss function from square loss to absolute loss;

[0138] The weights from the hidden layer to the output layer are adaptively adjusted according to the actual distribution of the data. λ and γ are adjusted based on the error feedback dynamic adaptive mechanism during the training process to optimize the model performance. The adjustment method can be expressed as:

[0139]

[0140]

[0141] Among them, α λ and α γ is an adjustment factor based on the error change ΔE, which determines the adjustment amplitude of the parameter;

[0142] Then, the way in which the adaptive mechanism adjusts the parameters λ and γ can be expressed as:

[0143]

[0144] α λ and α γ The adjustment factor is specifically expressed as:

[0145]

[0146]

[0147] Among them, k λ and k γ is the adjustment rate parameter, ΔE is the incremental change in model accuracy;

[0148] Repeat the above steps until the maximum number of iterations is reached, completing the training of the extreme learning machine classification algorithm model.

[0149] Preferably, in step S6, the new electromagnetic ultrasonic detection data of the pressure pipeline is input into the trained model to identify and classify potential defects in the pipeline, including:

[0150] Step S61, inputting the newly collected electromagnetic ultrasonic detection data of the pressure pipeline into the trained model;

[0151] Step S62, converting the feature into a highly abstract feature representation through feature extraction of the neural network model of the deep-sea ecological simulation optimization algorithm and dimensionality reduction processing of the autoencoder of random mapping and distance metric learning;

[0152] In step S63, the feature representation is sent to the trained extreme learning machine classification algorithm model, and the defect type is classified according to the different performances of the features.

[0153] The beneficial effects of the present invention are as follows: the present invention adopts a generative adversarial network model of noise-resistant enhanced learning to expand training data, which can not only generate more realistic data samples, but also reduce the negative impact of noise data on training effects; the neural network model of the deep-sea ecological simulation optimization algorithm is used to extract the features of the electromagnetic ultrasonic detection data of the pressure pipeline, which improves the algorithm performance while also enhancing the stability of the model when processing complex data; the data after the feature extraction of the electromagnetic ultrasonic detection data of the pressure pipeline is reduced in dimension by an autoencoder of random mapping and distance metric learning, so that the dimension reduction process is more stable and effective, and the key information of the original data can be better retained; the electromagnetic ultrasonic detection data of the pressure pipeline after dimension reduction is classified by the extreme learning machine classification algorithm model, which improves the stability and accuracy of the classification model when processing data, especially the ability to handle outliers, so that the model can still maintain a high classification performance when facing data anomalies. BRIEF DESCRIPTION OF THE DRAWINGS

[0154] Figure 1 It is a flow chart of an electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence of the present invention;

[0155] Figure 2 It is a specific flow chart of identifying and classifying potential defects in pipelines in the present invention. DETAILED DESCRIPTION

[0156] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0157] The present invention will be further described below in conjunction with the accompanying drawings.

[0158] like Figure 1 As shown, an electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence includes:

[0159] Step S1, collecting and marking electromagnetic ultrasonic testing data of pressure pipelines.

[0160] In an embodiment, ultrasonic waves are generated in the pressure pipeline material by an electromagnetic ultrasonic transducer, and reflected wave signals are captured to obtain electromagnetic ultrasonic detection data of the pressure pipeline, wherein the electromagnetic ultrasonic detection data of the pressure pipeline is recorded in the form of digital signals, and each data point reflects the specific properties of the ultrasonic wave when it propagates in the material.

[0161] In the embodiment, the attributes of the electromagnetic ultrasonic detection data of the pressure pipeline include:

[0162] a x : Ultrasonic frequency, the number of ultrasonic pulses emitted per unit time;

[0163] a y : Amplitude refers to the amplitude of the ultrasonic wave when it propagates in the pipe material;

[0164] a w : Attenuation coefficient, which describes the degree of energy loss when ultrasound propagates in a material;

[0165] a v : Reflection intensity, the amount of energy reflected back by the ultrasonic wave at the defect;

[0166] a u : Signal-to-noise ratio, a measure of signal quality;

[0167] a t : Waveform characteristics, such as period, frequency and peak value, are used to describe the specific shape of the ultrasonic waveform;

[0168] a s : Defect location, the spatial location information of the position where the maximum reflected wave signal appears;

[0169] a r : Indicated length, the defect length measured by the moving electromagnetic ultrasonic transducer;

[0170] a q : Defect amplitude, the amplitude of the position where the defect has the maximum reflected wave signal;

[0171] a v : The height of the defect itself, the vertical distance between the surfaces of the defect area.

[0172] In the embodiment, electromagnetic ultrasonic testing data of pressure pipelines are annotated by manual annotation, and the annotated categories include six categories: pores, slag inclusions, cracks, lack of fusion, lack of penetration and wall thickness reduction.

[0173] Step S2, construct and train a generative adversarial network model for noise-resistant enhanced learning to expand the electromagnetic ultrasonic detection data of pressure pipelines; adopt anti-noise capability and structural risk minimization strategy, the model can be more robust when generating data, and reduce the negative impact of noise data on training results. The loss function proposed in the present invention takes into account the balance between model complexity and the degree of fit of training data, effectively avoiding the overfitting problem.

[0174] In an embodiment, training a generative adversarial network model for noise-resistant enhanced learning includes:

[0175] Suppose the parameters of the generator G are The parameters of the discriminator D are Initialize the network parameters of the generator G and the discriminator D. The generator G is used to generate samples that are close to the real electromagnetic ultrasonic testing data from random noise, and the discriminator D is used to distinguish the generated samples from the real samples.

[0176] Using an iterative training method, in each round of training, the generator G receives random noise as input and generates data samples. The discriminator D evaluates these generated samples and real samples and distinguishes them. Through this adversarial process, the generator G learns to generate more and more real data samples, that is:

[0177] The generator G receives random noise b z , output generated samples

[0178] Discriminator D evaluates the generated sample b g With the real sample b x , whose goal is to maximize the ability to distinguish between real samples and generated samples. The objective function of the discriminator D is It can be expressed as:

[0179]

[0180] And, the objective function of the generator G is for:

[0181]

[0182] in, represents the expectation, the real sample b x Subject to a specific data distribution, represents the expectation, random noise b z The input follows a specific distribution;

[0183] The noise resistance mechanism is achieved by introducing a noise resistance term b into the input of the generator G. nr , the noise resistance term is a processing function for input noise, expressed as b nr (bz ), then generate sample b g The process can be expressed as:

[0184]

[0185] Noise resistance term b nr (b z ) by input noise b z After processing, the calculation method can be expressed as:

[0186]

[0187] in, represents the weight matrix of the noise-resistant transformation, is the bias term, Re() is the ReLU activation function;

[0188] An improved loss function is used to consider the difference between generated samples and real samples and the model complexity. The structural risk is minimized by introducing a regularization term in the loss function to balance the model complexity and the degree of fitting, which can be expressed as:

[0189]

[0190] in, is the regularization term, λ is the regularization coefficient, which controls the influence of model complexity on the loss function;

[0191] Then the regularization term The calculation method can be expressed as:

[0192]

[0193] in, and Calculate the sum of squares of the parameters of the generator G and the discriminator D respectively to penalize excessive weight values ​​and avoid overfitting;

[0194] According to the feedback of the loss function, the parameters of the generator G and the discriminator D are gradually adjusted. Through multiple rounds of iterations, the generator G can generate samples that are closer and closer to the real electromagnetic ultrasonic detection data. That is, the back propagation and gradient descent algorithm is used to update and can be expressed as:

[0195]

[0196]

[0197] Among them, α is the learning rate, and α is set to 0.01;

[0198] Then, for the generator G, the gradient The calculation method can be expressed as:

[0199]

[0200] in, represents the partial derivative of the loss with respect to the generated sample, It is the partial derivative of the generated sample to the parameters of the generator G;

[0201] For the discriminator D, the gradient The calculation method can be expressed as:

[0202]

[0203] in, Represents the partial derivative of the loss on the discriminant result, It is the partial derivative of the discriminant result to the discriminator D parameter;

[0204] By iterating the preset number of iterations, the generator G can independently generate new data samples, and the final generated data sample b g Added to the original dataset as an expanded sample dataset.

[0205] By generating data expansion of the adversarial network, the present invention can improve the generalization ability of the model when the amount of data is limited, so that the model can more accurately identify and classify unknown data samples.

[0206] Step S3, constructing and training a neural network model of a deep-sea ecological simulation optimization algorithm to extract features from electromagnetic ultrasonic detection data of pressure pipelines; for defect detection of pressure pipelines, the efficiency of feature extraction can be effectively improved. Inspired by the biological behavior and environmental adaptability in deep-sea ecosystems, the parameters of the neural network are adjusted to imitate the adaptation and evolution strategies of deep-sea organisms by adopting a deep-sea ecological simulation optimization mechanism to improve the adaptability and robustness of the algorithm in a complex data environment; in addition, the present invention adopts a random function optimization method to adjust the weights and biases of the neural network. By introducing randomness, the algorithm can effectively avoid falling into a local optimal solution and enhance the global search capability.

[0207] In the embodiment, the neural network model for training the deep-sea ecological simulation optimization algorithm includes:

[0208] Randomly initialize the parameters of the neural network, including weights and biases, and set cX as the input electromagnetic ultrasonic detection data, cW (l) is the weight matrix of the lth layer, cb (l) is the bias vector of the lth layer, cA (l) is the activation value of the lth layer, cZ (l)is the linear transformation value of the lth layer, L is the loss function, and η is the learning rate;

[0209] When the neural network is initialized, a random function f is used init Initializing weights and biases can be expressed as:

[0210] wxya (l) =f init ();

[0211] cb (l) =f init ();

[0212] Among them, f init () indicates the initialization function used;

[0213] Then, the weight matrix cW of the lth layer is (l) It can be expressed as:

[0214]

[0215] Among them, n (l-1) is the number of nodes in the l-1th layer, represents a normal distribution with a mean of 0 and a standard deviation of 1;

[0216] Input the electromagnetic ultrasonic inspection data of the pressure pipeline, perform forward propagation through the neural network, calculate the activation value of each layer and the final output feature, that is, for the forward propagation of each layer, use the following formula to calculate the linear transformation value cZ (l) and activation value cA (l) :

[0217] cZ (l) =cW (l) ·cA (l-1) +cb (l) ;

[0218] cA (l) =f activation (cZ (l) );

[0219] Among them, f activation represents the activation function;

[0220] The loss function L used calculates the difference between the output features and the expected features, and the calculation method is expressed as:

[0221]

[0222] Where n is the number of samples, cY i is the true label of the i-th sample, is the predicted output of the model, f lossis the adaptive loss calculation function;

[0223] Then, the adaptive loss calculation function f loss The calculation method can be expressed as:

[0224]

[0225] Where M is the number of categories, cY ij is the one-hot encoding of the true label, is the probability distribution predicted by the model;

[0226] Using the random function optimization method and adaptive adjustment mechanism, the parameters of the neural network are updated according to the gradient of the loss function. The parameter update is adjusted using the stochastic gradient descent method. For each layer, the update formula of the weight and bias is:

[0227]

[0228]

[0229] Where η is the learning rate, and They are the gradients of the loss function with respect to weights and biases respectively;

[0230] Then, the weight cW (l) and bias cb (l) The gradient calculation of is obtained by the chain rule and can be expressed as:

[0231]

[0232] in, is the gradient of the loss function with respect to the activation value of layer l, is the derivative of the activation function, Depends on the activation value cA of the previous layer (l-1) ;

[0233] Repeat the above steps until the maximum number of iterations is reached, completing the training of the neural network model of the deep-sea ecological simulation optimization algorithm.

[0234] The feature extraction model based on the deep-sea ecological simulation optimization algorithm can more effectively extract useful information from complex data and improve the accuracy of detection and classification.

[0235] Step S4, construct and train an autoencoder of random mapping and distance metric learning to reduce the dimension of the data after the feature extraction of the electromagnetic ultrasonic detection data of the pressure pipeline; the autoencoder includes two parts: an encoder and a decoder, the encoder converts the input data into a low-dimensional feature representation, and the decoder attempts to reconstruct the original data from the low-dimensional representation. On the basis of the traditional autoencoder, the present invention introduces random mapping. Before the input data is passed to the encoder, the data is first processed by a randomly generated mapping matrix, which can increase the model's understanding and expression capabilities of the data and make the feature dimensionality reduction process more stable and effective. In addition, by combining distance metric learning to optimize the loss function, the features after dimensionality reduction can better retain the key information of the original data.

[0236] In an embodiment, training an autoencoder for random mapping and distance metric learning includes:

[0237] Let the i-th data feature input to the model be eX i , let the random mapping matrix Where d is the data dimension after feature extraction, and k is the dimension after mapping;

[0238] Initialize the autoencoder model and use a random mapping matrix to the standardized data to enhance the expression of data features, which can be expressed as:

[0239]

[0240] in, To enhance data features;

[0241] The encoder receives the mapped data and converts it into a low-dimensional feature representation. Let eEnc be the encoder function, eW e and eb e are the weight and bias of the encoder respectively. The encoding process can be expressed as:

[0242]

[0243] Among them, Re() is the ReLU activation function;

[0244] The decoder reconstructs the original data from the low-dimensional feature representation. Let eDec be the decoder function, eW d and eb d are the weight and bias of the decoder respectively, then the decoding process can be expressed as:

[0245] eX″ i =eDec(eF i ;eW d ,eb d )=Re(eW d ×eFi +eb d );

[0246] Among them, eX″ i is the enhanced data feature after decoding;

[0247] The parameters of the encoder and decoder are adjusted through distance metric learning to minimize the distance between the reconstruction error and the feature representation, the reconstruction error eL recon The calculation method can be expressed as:

[0248]

[0249] Where N represents the number of data features;

[0250] Feature distance optimization eL dist can be expressed as:

[0251]

[0252] Among them, y ij Indicates eD i and eD j Whether they belong to the same category is obtained by the preset softmax classification function;

[0253] Then, the calculation method of the total loss function can be expressed as:

[0254] eL total =eL recon +λeL dist ;

[0255] Among them, λ is the regularization parameter used to balance the two losses;

[0256] Update eW using gradient descent e ,eb e , eW d ,eb d and eM, the update method can be expressed as:

[0257]

[0258]

[0259]

[0260]

[0261]

[0262] Wherein, eWe,new is the updated encoder weight parameter, ebe,new is the updated encoder bias parameter, eWd,new is the updated decoder weight parameter, ebd,new is the updated decoder bias parameter, eMnew is the updated random mapping matrix, and η is the learning rate of the encoder;

[0263] The above steps are repeated until the maximum number of iterations is reached, completing the training of the autoencoder for random mapping and distance metric learning.

[0264] Through innovative feature dimensionality reduction methods, the present invention can reduce the complexity of data processing while ensuring the retention of key information, providing high-quality data representation for subsequent classification and identification.

[0265] Step S5, constructing and training an extreme learning machine classification algorithm model to classify the pressure pipeline electromagnetic ultrasonic detection data after dimensionality reduction; adopting a robust optimization strategy to improve the stability and accuracy of the classification model when processing data.

[0266] In the embodiment, training the extreme learning machine classification algorithm model includes:

[0267] Randomly initialize the input weights and biases of the extreme learning machine, set the initial value of the output layer weight, and the way to initialize the input weights Wi and bias bi can be expressed as:

[0268] Wi~U(-r,r);

[0269] bi~U(-r,r);

[0270] Among them, U(-r,r) represents the uniform distribution in the range of [-r,r], r is a constant selected according to the dimension of the input data, and r is set to 1;

[0271] The electromagnetic ultrasonic detection data of the pressure pipeline after feature dimension reduction is used as input, and the hidden layer of the extreme learning machine is transformed nonlinearly to obtain the output of the hidden layer. The calculation method of the hidden layer output H can be expressed as:

[0272] H = sig(Wi·X+bi);

[0273] Among them, X is the input data, sig() is the sigmoid activation function;

[0274] The hidden layer output H is calculated by input data X, input weight Wi and bias bi, and the calculation method can be expressed as:

[0275] H = Sig(Wi·X+bi);

[0276] The calculation method of the Sigmoid activation function can be expressed as:

[0277]

[0278] A robust optimization strategy is used to calculate the output weights to minimize the newly defined loss function and introduce a penalty term for outliers, that is, the output weight W under the robust optimization strategy o During the calculation process, the following optimization problem is solved to obtain W o :

[0279]

[0280] Among them, Y is the target output, λ and γ are the weight coefficients of the regularization term and the robust term, ρ(HiW o ,Yi) is the robust loss function for the i-th sample;

[0281] Using the Huber loss function, the calculation method can be expressed as:

[0282]

[0283] Among them, δ is the threshold parameter of Huber loss, which is used to control the transition of the loss function from square loss to absolute loss;

[0284] The weights from the hidden layer to the output layer are adaptively adjusted according to the actual distribution of the data. λ and γ are adjusted based on the error feedback dynamic adaptive mechanism during the training process to optimize the model performance. The adjustment method can be expressed as:

[0285]

[0286]

[0287] Among them, α λ and α γ is an adjustment factor based on the error change ΔE, which determines the adjustment amplitude of the parameter;

[0288] Then, the way in which the adaptive mechanism adjusts the parameters λ and γ can be expressed as:

[0289]

[0290] α λ and α γ The adjustment factor is specifically expressed as:

[0291]

[0292]

[0293] Among them, k λ and k γis the adjustment rate parameter, ΔE is the incremental change in model accuracy;

[0294] Repeat the above steps until the maximum number of iterations is reached, completing the training of the extreme learning machine classification algorithm model.

[0295] The robustly optimized extreme learning machine classification algorithm model not only improves the classification accuracy, but also has a good ability to handle outliers in the data, enhancing the stability and reliability of the model in practical applications.

[0296] Step S6, inputting new pressure pipeline electromagnetic ultrasonic inspection data into the trained model to identify and classify potential defects in the pipeline.

[0297] like Figure 2 As shown in the figure, the new pressure pipeline electromagnetic ultrasonic inspection data is input into the trained model to identify and classify potential defects in the pipeline, including:

[0298] Step S61: input the newly collected electromagnetic ultrasonic detection data of the pressure pipeline into the trained model.

[0299] Step S62, after feature extraction of the neural network model of the deep-sea ecological simulation optimization algorithm and dimensionality reduction processing of the autoencoder of random mapping and distance metric learning, it is converted into a highly abstract feature representation.

[0300] In step S63, the feature representation is sent to the trained extreme learning machine classification algorithm model, and the defect type is classified according to the different performances of the features; the output category is one of the six categories of pores, slag inclusions, cracks, lack of fusion, lack of penetration, and wall thickness reduction.

[0301] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments may still be modified, or some or all of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence, characterized in that: include: Step S1, collecting and marking electromagnetic ultrasonic testing data of pressure pipelines; Step S2, constructing and training a generative adversarial network model for noise-resistant enhanced learning to expand pressure pipeline electromagnetic ultrasonic testing data; Step S3, constructing and training a neural network model of a deep-sea ecological simulation optimization algorithm to extract features from electromagnetic ultrasonic testing data of pressure pipelines; Step S4, constructing and training an autoencoder for random mapping and distance metric learning to perform dimensionality reduction on the data after feature extraction of electromagnetic ultrasonic testing data of pressure pipelines; Step S5, constructing and training an extreme learning machine classification algorithm model to classify the electromagnetic ultrasonic detection data of the pressure pipeline after dimensionality reduction; Step S6, inputting new electromagnetic ultrasonic testing data of the pressure pipeline into the trained model to identify and classify potential defects in the pipeline; In step S2, training a generative adversarial network model for noise-resistant enhanced learning includes: Set the generator The parameters are , discriminator The parameters are , initialize the generator and the discriminator The network parameters of the generator Used to generate samples similar to real electromagnetic ultrasonic testing data from random noise, discriminator Used to distinguish generated samples from real samples; Using iterative training, in each round of training, the generator Receive random noise as input, generate data samples, and discriminator Evaluate these generated samples and real samples and distinguish them. Through this adversarial process, the generator Learn to generate increasingly realistic data samples, namely: Generator Receive random noise , output generated samples ; Discriminator Evaluate generated samples With real samples , whose goal is to maximize the ability to distinguish between real samples and generated samples. The objective function It can be expressed as: ; And, the generator The objective function for: ; in, Expressing expectations, real samples Subject to a specific data distribution, represents expectation, random noise The input follows a specific distribution; The anti-noise mechanism is achieved by The noise resistance term is introduced into the input , the noise resistance term is a processing function for input noise, expressed as , then generate samples The process can be expressed as: ; Noise immunity By input noise After processing, the calculation method can be expressed as: ; in, represents the weight matrix of the noise-resistant transformation, is the bias term, yes Activation function; An improved loss function is used to consider the difference between generated samples and real samples and the model complexity. The structural risk is minimized by introducing a regularization term in the loss function to balance the model complexity and the degree of fitting, which can be expressed as: ; in, is the regularization term, is the regularization coefficient, which controls the influence of model complexity on the loss function; Then the regularization term The calculation method can be expressed as: ; in, and Calculate the generator separately and the discriminator The sum of squares of the parameters is used to penalize excessive weight values ​​to avoid overfitting; According to the feedback of the loss function, the generator is gradually adjusted and the discriminator Parameters, through multiple rounds of iterations, the generator It is able to generate samples that are closer and closer to the real electromagnetic ultrasonic detection data, that is, update the and can be expressed as: ; ; in, is the learning rate, Set to 0.01; Then, for the generator ,gradient The calculation method can be expressed as: ; in, represents the partial derivative of the loss with respect to the generated sample, is a generator for generating sample pairs Partial derivatives of parameters; For the discriminator ,gradient The calculation method can be expressed as: ; in, Represents the partial derivative of the loss on the discrimination result, is the result of the discrimination on the discriminator Partial derivatives of parameters; By iterating the preset number of iterations, the generator Able to independently generate new data samples, and the final generated data samples Add to the original data set as an expanded sample data set; In step S3, training the neural network model of the deep-sea ecological simulation optimization algorithm includes: Randomly initialize the parameters of the neural network, including weights and biases, and set is the input electromagnetic ultrasonic testing data, For the The weight matrix of the layer, For the The bias vector of the layer, For the The activation value of the layer, For the The linear transformation value of the layer, is the loss function, is the learning rate; When the neural network is initialized, a random function is used Initializing weights and biases can be expressed as: ; ; in, Indicates the initialization function used; Then, The weight matrix of the layer It can be expressed as: ; in, It is The number of nodes in the layer, represents a normal distribution with a mean of 0 and a standard deviation of 1; Input the electromagnetic ultrasonic inspection data of the pressure pipeline, perform forward propagation through the neural network, calculate the activation value of each layer and the final output feature, that is, for the forward propagation of each layer, use the following formula to calculate the linear transformation value and activation value : ; ; in, represents the activation function; The loss function used Calculate the difference between the output feature and the expected feature. The calculation method is expressed as: ; in, is the sample size, It is The true labels of samples, is the predicted output of the model, is the adaptive loss calculation function; Then, the adaptive loss calculation function The calculation method can be expressed as: ; in, is the number of categories, It is the real label coding, is the probability distribution predicted by the model; Using the random function optimization method and adaptive adjustment mechanism, the parameters of the neural network are updated according to the gradient of the loss function. The parameter update is adjusted using the stochastic gradient descent method. For each layer, the update formula of the weight and bias is: ; ; in, is the learning rate, and They are the gradients of the loss function with respect to weights and biases respectively; Then, the weight and bias The gradient calculation of is obtained by the chain rule and can be expressed as: ; in, is the loss function relative to the The gradient of the layer activation value, is the derivative of the activation function, Depends on the activation value of the previous layer ; Repeat the above steps until the maximum number of iterations is reached, completing the training of the neural network model of the deep-sea ecological simulation optimization algorithm.

2. The electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence according to claim 1 is characterized in that: In step S1, ultrasonic waves are generated in the pressure pipeline material by an electromagnetic ultrasonic transducer, and reflected wave signals are captured, thereby obtaining electromagnetic ultrasonic detection data of the pressure pipeline, wherein the electromagnetic ultrasonic detection data of the pressure pipeline is recorded in the form of digital signals, and each data point reflects the specific properties of the ultrasonic wave when it propagates in the material.

3. The electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence according to claim 2 is characterized in that: In step S1, the attributes of the pressure pipeline electromagnetic ultrasonic detection data include: : Ultrasonic frequency, the number of ultrasonic pulses emitted per unit time; : Amplitude refers to the amplitude of the ultrasonic wave when it propagates in the pipe material; : Attenuation coefficient, which describes the degree of energy loss when ultrasound propagates in a material; : Signal-to-noise ratio, an indicator of signal quality; : Waveform characteristics, such as period, frequency and peak value, are used to describe the specific shape of the ultrasonic waveform; : Defect location, the spatial location information of the position where the maximum reflected wave signal appears; : Indicated length, the defect length measured by the moving electromagnetic ultrasonic transducer; : Defect amplitude, the amplitude of the position where the defect has the maximum reflected wave signal; : The height of the defect itself, the vertical distance between the surfaces of the defect area.

4. The electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence according to claim 3 is characterized in that: In the step S1, the electromagnetic ultrasonic testing data of the pressure pipeline is annotated by manual annotation, and the annotated categories include: pores, slag inclusions, cracks, lack of fusion, lack of penetration and wall thickness reduction.

5. The electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence according to claim 1 is characterized in that: In step S4, training the autoencoder for random mapping and distance metric learning includes: Assume that the first The data features are , let the random mapping matrix ,in is the data dimension after feature extraction, is the dimension after mapping; Initialize the autoencoder model and use a random mapping matrix to the standardized data to enhance the expression of data features, which can be expressed as: ; in, To enhance data features; The encoder receives the mapped data and converts it into a low-dimensional feature representation. is the encoder function, and are the weight and bias of the encoder respectively. The encoding process can be expressed as: ; in, yes Activation function; The decoder reconstructs the original data from the low-dimensional feature representation. is the decoder function, and are the weight and bias of the decoder respectively, then the decoding process can be expressed as: ; in, is the enhanced data feature after decoding; The parameters of the encoder and decoder are adjusted by distance metric learning to minimize the distance between the reconstruction error and the feature representation. The calculation method can be expressed as: ; in, Indicates the number of data features; Feature distance optimization can be expressed as: ; in, express and Whether they belong to the same category is determined by the preset The classification function is obtained; Then, the calculation method of the total loss function can be expressed as: ; in, is a regularization parameter used to balance the two losses; Update using gradient descent , , , and , the update method can be expressed as: ; ; ; ; ; in, is the updated encoder weight parameter, is the updated encoder bias parameter, is the updated decoder weight parameter, is the updated decoder bias parameter, is the updated random mapping matrix, is the learning rate of the encoder; The above steps are repeated until the maximum number of iterations is reached, completing the training of the autoencoder for random mapping and distance metric learning.

6. The electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence according to claim 1 is characterized in that: In step S5, training the extreme learning machine classification algorithm model includes: Randomly initialize the input weights and biases of the extreme learning machine, set the initial value of the output layer weights, and input weights and bias The initialization method can be expressed as: ; ; in, Indicated in Uniform distribution within the range, is a constant selected according to the dimension of the input data. Set to 1; The electromagnetic ultrasonic detection data of the pressure pipeline after feature dimension reduction is used as input, and the hidden layer of the extreme learning machine is transformed nonlinearly to obtain the output of the hidden layer. The calculation method can be expressed as: ; in, is the input data, yes Activation function; The calculation method of the activation function can be expressed as: ; A robust optimization strategy is used to calculate the output weights to minimize the newly defined loss function and introduce a penalty term for outliers, that is, the output weights under the robust optimization strategy are During the calculation process, the following optimization problem is solved to obtain : ; in, is the target output, and is the weight coefficient of the regularization term and the robust term, It is for Robust loss function for samples; use The loss function can be calculated as: ; in, yes The loss threshold parameter is used to control the transition of the loss function from square loss to absolute loss; The weights from the hidden layer to the output layer are adaptively adjusted according to the actual distribution of the data, and the dynamic adaptive mechanism is adjusted based on the error feedback during the training process. and , in order to optimize the model performance, the adjustment method can be expressed as: ; ; in, and Based on the error change The adjustment factor, which determines the adjustment range of the parameter; Then, the adaptive mechanism adjusts the parameters and can be expressed as: ; and The adjustment factor is specifically expressed as: ; ; in, and is the adjustment rate parameter, is the incremental change in model accuracy; Repeat the above steps until the maximum number of iterations is reached, completing the training of the extreme learning machine classification algorithm model.

7. The electromagnetic ultrasonic detection method for pressure pipelines based on artificial intelligence according to claim 1 is characterized in that: In step S6, the new electromagnetic ultrasonic inspection data of the pressure pipeline is input into the trained model to identify and classify potential defects in the pipeline, including: Step S61, inputting the newly collected electromagnetic ultrasonic detection data of the pressure pipeline into the trained model; Step S62, converting the feature into a highly abstract feature representation through feature extraction of the neural network model of the deep-sea ecological simulation optimization algorithm and dimensionality reduction processing of the autoencoder of random mapping and distance metric learning; In step S63, the feature representation is sent to the trained extreme learning machine classification algorithm model, and the defect type is classified according to the different performances of the features.

Citation Information

Patent Citations

  • Pipeline leakage detection device

    CN108071940A

  • A acoustic fix ranging C sweeps image device for pipeline corrosion detection

    CN207396410U

  • Quick detection device of technology pipeline defect high frequency guided wave

    CN207396411U

  • SAR Target Recognition Method Based on Incomplete Training Set of Twin Neural Networks

    CN109508655A

  • Bearing sub-health identification method of relevance vector machine optimized strong reconstruction edge noise reduction automatic encoder

    CN110348468A