Pipeline crack positioning method based on fuzzy digital twinning

By combining the fuzzy digital twin method with fuzzy algorithm, Gaussian process regression and inverse step method, the problem of insufficient accuracy and reliability in pipeline crack detection in traditional digital twin method is solved, achieving more efficient crack positioning and pipeline safety improvement.

CN118965643APending Publication Date: 2024-11-15PEKING UNIV SHENZHEN GRADUATE SCHOOL
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410976468.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-20
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the detection and positioning of pipeline cracks, traditional digital twin methods have too many data and computing resources required for model establishment and update, especially in complex structures and fluid flow, which are insufficient accuracy and reliability, making it difficult to achieve real-time monitoring and early warning.

Method used

The fuzzy digital twin method is adopted, combined with fuzzy algorithm, Gaussian process regression and inverse stepping method to establish a digital twin model of the pipeline. The fuzzy Gaussian regression algorithm is used to model the traffic under normal state, and the inverse stepping method and support vector machine algorithm are used for real-time estimation. and classification, generate residual data to improve positioning accuracy.

Benefits of technology

It improves the accuracy and stability of pipeline crack detection and positioning, reduces the possibility of false alarms and missed reports, improves the accuracy and efficiency of crack positioning, and enhances the safety and operating efficiency of pipelines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965643A_ABST
    Figure CN118965643A_ABST
Patent Text Reader

Abstract

The invention discloses a pipeline crack detecting and positioning method based on a fuzzy digital twinborn model, and belongs to the technical field of pipeline health monitoring. The method comprises the following steps: firstly, establishing a fuzzy digital twinning (FDT) model, combining fuzzy Gaussian process regression (FGR), a backstepping technology (BS) and a fuzzy algorithm, carrying out comprehensive modeling and estimation on pipeline flow in normal and abnormal states, and generating residual data to improve the accuracy of crack positioning; and then, analyzing the residual data by virtue of the synergistic effect of a support vector machine (SVM) and an FDT model so as to judge whether the pipeline has cracks or not. And finally, accurately calculating the position of the pipeline crack according to the change of residual data through the cooperation of an FDT model and a backstepping algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a pipeline crack positioning method based on fuzzy digital twins, and belongs to the technical field of oil and gas pipelines. Background Art

[0002] Pipelines are equipment used to transport liquids and gases between different locations. In recent years, identifying the location and size of cracks in pipelines has received widespread attention, as cracks can lead to serious consequences such as pipeline leakage, explosion, and environmental pollution. Therefore, it is of great significance to develop effective pipeline crack detection and location methods.

[0003] At present, the digital twin method plays a key role in pipeline crack detection and positioning. This method mainly uses digital twin technology to establish a virtual model of the pipeline, and realizes the prediction and detection of cracks by simulating the operating status of the pipeline and the fluid flow. The advantage of this method is that it can realize real-time monitoring and early warning of the pipeline. However, traditional digital twins have some shortcomings, such as the establishment and update of digital twin models require a large amount of data and computing resources. Especially in the face of complex pipeline structures and fluid flow conditions, the accuracy and reliability of digital twin models still need to be further improved. Therefore, the present invention proposes a fuzzy digital twin method combining fuzzy algorithm, Gaussian process regression and backstepping method to improve the efficiency and accuracy of pipeline crack detection and positioning, which not only helps to solve the shortcomings of traditional models, but also provides a more reliable solution for improving pipeline safety and operational efficiency. Summary of the invention

[0004] The present invention relates to a pipeline crack positioning method based on fuzzy digital twin, which can effectively detect and locate cracks in a pipeline for conveying liquid or gas, thereby improving the safety and reliability of the pipeline.

[0005] The technical solution of the present invention is: a pipeline crack location method based on fuzzy digital twin, comprising the following steps:

[0006] a) Establish a digital twin model of the pipeline. The model uses the fuzzy Gaussian regression algorithm to model the flow rate of the pipeline under normal conditions according to the geometric parameters of the pipeline, working conditions and measurement data of the flow sensor (Formula 1). The algorithm combines the Gaussian regression algorithm and the fuzzy algorithm and can handle uncertainty and noise;

[0007]

[0008] in, is the predicted value, which indicates the flow estimated by the model based on the input x, w i is the weight, indicating the contribution of each training data to the model, K(x, x i) is a Gaussian kernel function that measures the similarity between the input x and the training data xi, and b is the bias that represents the translation of the model.

[0009] b) The real-time flow of the pipeline is estimated using a fuzzy digital twin model. The model combines the fuzzy Gaussian regression algorithm, the backstepping method and the fuzzy algorithm. Based on the fuzzy digital twin model of the pipeline and the measurement data of the flow sensor, the flow of the pipeline under normal and abnormal conditions can be estimated and used for data generation;

[0010] c) Generate residual data. The model uses fuzzy algorithm to compare the actual measured flow data with the flow data estimated by the digital twin model to obtain residual data, which is used to improve the accuracy of crack location;

[0011] Residual = actual flow - model estimated flow

[0012] d) Use the support vector machine algorithm to classify the residual data to determine whether there are cracks in the pipeline. If there are cracks, proceed to the next step;

[0013] e) The fuzzy digital twin model and backstepping method are used to locate the position of the crack, and the backstepping method is used to adjust the parameters of the digital twin model so that the flow data estimated by the fuzzy digital twin model is as close as possible to the actually measured flow data, thereby determining the position of the crack.

[0014] Furthermore, the fuzzy Gaussian regression algorithm used in step a comprises the following steps:

[0015] a) Divide the flow data of the pipeline under normal conditions into a training set and a test set;

[0016] b) For each data point in the training set, calculate its fuzzy membership, that is, the probability that it belongs to a certain Gaussian function, based on its distance from other data points;

[0017] c) Using the fuzzy membership and the parameters of the Gaussian function, a fuzzy Gaussian regression model is constructed. The model is a linear combination of weighted Gaussian functions and is used to fit the traffic data in the training set;

[0018] d) Use the fuzzy Gaussian regression model to predict the traffic data in the test set, calculate the prediction error, and evaluate the performance of the model.

[0019] Furthermore, the backstepping method used in step b is a nonlinear observer that can estimate the state and parameters of the system based on the input and output of the system. Its design principle is to use the idea of ​​feedback control to make the observation error approach zero.

[0020] The backstepping method consists of two parts, namely the fuzzy digital twin and the backstepping controller. The fuzzy digital twin is used to simulate and estimate the flow signal in the pipeline, and the backstepping controller is used to generate residual data based on the estimated flow signal and the actual flow signal. The parameter selection method of the backstepping method includes the parameters of the fuzzy digital twin and the parameters of the backstepping controller. The selection of parameters is mainly based on the accuracy and stability of the model.

[0021] Furthermore, the support vector machine algorithm used in step d is a supervised learning algorithm that can perform binary or multi-classification on data. Its principle is to use a kernel function to map data to a high-dimensional space, find the optimal hyperplane or hypersurface, separate data of different categories, and maximize the interval between categories. The support vector machine algorithm is used to compare the estimated values ​​of the fuzzy digital twin model and the backstepping method to determine whether there is a crack and the size of the crack.

[0022] The specific implementation of the support vector machine algorithm includes the following steps: first, data preprocessing, using FDT to generate traffic data under normal and abnormal conditions, and then calculating the residual data as the input feature of SVM; second, SVM model training, using normal and abnormal residual data to train the SVM model to distinguish between healthy and faulty states; finally, SVM model testing, using the test data set to evaluate the performance of the SVM model, including accuracy, recall, precision and F1 value.

[0023] Furthermore, the state and parameter estimation of the backstepping method is used in combination with the physical model of the pipeline to calculate the location of the crack. Specifically, according to the continuity equation of flow and the law of conservation of mass, the geometric shape of the pipeline and the physical properties of the fluid (such as density and viscosity) are considered to determine the size of the flow loss, and the flow loss and pressure drop at the crack can be obtained. Then, according to the geometric shape of the crack and the physical properties of the fluid, the equations of flow loss and pressure drop are combined to solve the flow velocity at the crack, and the location of the crack is solved according to the geometric shape of the pipeline.

[0024] The beneficial effects of the present invention are:

[0025] (1) The present invention adopts a fuzzy digital twin model, combined with fuzzy algorithm, Gaussian process regression and backstepping method, which can effectively simulate and estimate the flow rate of the pipeline, generate residual signals, and improve the accuracy and stability of crack detection and positioning;

[0026] (2) The present invention uses a support vector machine to classify the residual signal, which can effectively distinguish the normal state and abnormal state of the pipeline and reduce the possibility of false alarms and missed alarms;

[0027] (3) The present invention uses backstepping method and fuzzy algorithm to locate cracks, which can effectively reversely solve the position and size of the cracks and improve the accuracy and efficiency of crack location. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is an implementation flow chart of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.

[0030] like Figure 1 As shown, a pipeline crack location method based on fuzzy digital twins includes the following steps:

[0031] (1) Using a flow sensor to collect the flow signal in the pipeline, and inputting it into a flow signal modeling method based on Gaussian process regression (GPR) and fuzzy logic to obtain a flow signal model under normal conditions;

[0032] (2) Using the flow signal estimation method based on backstepping (BS) and fuzzy logic, the flow signal under abnormal conditions is estimated according to the flow signal model and the actual flow signal, and compared with the actual flow signal to obtain the residual signal;

[0033] (3) Use support vector machine (SVM) to classify the residual signal to determine whether there is a crack. If so, proceed to the next step;

[0034] (4) The backstepping method is used to calculate the location of the crack based on the residual signal and flow signal model, and the result is output.

[0035] The specific implementation of the present invention may adopt the following components and parameters:

[0036] (1) Flow sensor: Any sensor that can measure the flow rate in a pipeline can be used, such as ultrasonic flowmeter, electromagnetic flowmeter, etc. Its measurement accuracy and frequency should meet the requirements of practical applications;

[0037] (2) Gaussian process regression (GPR): In the present invention, nonlinear data is modeled by Gaussian process regression, and its state space function is:

[0038]

[0039] Among them, P X-GR (k), P i (k), e GR (k), P Y-GR (k) and δ Pi They represent the state of the flow signal modeled by GPR, the measurable inlet flow, the error modeled by GPR, the normal flow signal modeled by GPR, and the coefficient of GPR. GR for:

[0040]

[0041] W=diag(φ 2 )

[0042] Among them, γ is the variance of the signal, σ is the variance of the noise, and φ is the width of the kernel function;

[0043] (3) Fuzzy logic: The present invention uses fuzzy logic to process the uncertainty and nonlinearity of data to improve the modeling effect of GPR. Its basic steps include: determining input and output variables, defining rule base and membership function, designing fuzzy reasoning engine, selecting aggregation technology and fuzzy defuzzification algorithm. In the present invention, proportional differential (PD) technology can be used as input and output variables, five different linguistic variables and linear triangular membership functions are used, Mamdani technology is used for fuzzy reasoning, maximum and minimum method is used for aggregation, and centroid method is used for fuzzy defuzzification;

[0044] (4) Fuzzy Gaussian Process Regression (FGR): The present invention combines fuzzy logic and GPR to jointly model the flow signal, and its state space function is expressed as:

[0045]

[0046] Among them, P X-FGR (k), e FGR (k), P Y-FGR (k), P f (k) and δ Pf They represent the state of the flow signal modeled by FGR, the error modeled by FGR, the normal flow signal modeled by FGR, the flow signal modeled by fuzzy logic, and the coefficient of FGR respectively;

[0047] (5) Backstepping (BS): In the implementation, a nonlinear and robust observer can be used to estimate the flow signal, and its state space function is expressed as:

[0048] P X-BS-FGR (k+1)=[C GR P X-FGR (k)+δ Pi P i (k)+δ Pf P f (k)]+δ P0 (P Y-BS-FGR (k)+ρ BS (k))+∈ BS θ BS (p)P i (k)++φ BS

[0049]

[0050] Among them, P X-BS-FGR (k),ρ BS (k), θ BS , ρ BS , P Y-BS-FGR (k) and φ BS They represent the state of the flow signal estimated by BS-FGR, the nonlinear function of BS-FGR, the parameters of the BS-FGR observer, the adjustment coefficient of BS-FGR, the abnormal flow signal estimated by BS-FGR and the uncertainty estimation parameter of BS-FGR respectively. In order to solve the uncertainty problem of BS-FGR, the following formula can be used:

[0051] φ BS (k+1)=φ BS (k)+ρ BS (k)+θ Bs (p)(P Y (k)-P Y-BS-FGR (k))

[0052] (6) Support vector machine (SVM): In the implementation, a support vector machine is used to classify the residual signal to determine whether there is a crack. In the present invention, a radial basis kernel function (RBF) can be used as the kernel function of the SVM, and the penalty parameter and kernel function parameter of the SVM are determined by using a cross-validation method and a grid search method;

[0053] (7) Crack location: The crack location is calculated based on the residual signal and flow signal model. The formula is:

[0054]

[0055] Where ψ(L) is:

[0056] ψ(L)=δ P0 (R Y-FDT (k)+δ Pf P f (k))+R FDT (k)-δ P0 ρ p (P x , L)

[0057] And p (P x , L) is:

[0058] ρ p (P x , L) = δ P0 ∫ l x Γ** (P x , L)dL

[0059] Among them, L and Γ ** Respectively represent the distance between the two flow sensors and the coefficient of crack location. In the present invention, it can be assumed that L = 2000 $mm, Γ ** =0.5.

[0060] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the scope of the technical invention disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A pipeline crack location method based on fuzzy digital twins, comprising the following steps: a) Establish a digital twin model of the pipeline, which uses the fuzzy Gaussian regression algorithm to model the flow of the pipeline under normal conditions (Formula 1). The algorithm combines the Gaussian regression algorithm and the fuzzy algorithm and can handle uncertainty and noise; in, is the predicted value, which indicates the flow estimated by the model based on the input x, w i is the weight, indicating the contribution of each training data to the model, K(x, x i ) is the Gaussian kernel function, which measures the input x and the training data x i , b is the bias, which represents the translation of the model. b) The real-time flow of the pipeline is estimated using a fuzzy digital twin model, which combines the fuzzy Gaussian regression algorithm, backstepping method and fuzzy algorithm to estimate the flow of the pipeline under normal and abnormal conditions and can be used for data generation; c) Generate residual data, that is, compare the actually measured flow data with the flow data estimated by the digital twin model to obtain residual data to improve the accuracy of crack location; Residual = actual flow - model estimated flow d) Use the support vector machine algorithm to classify the residual data to determine whether there are cracks in the pipeline. If there are cracks, proceed to the next step; e) The fuzzy digital twin model and backstepping method are used to locate the position of the crack, and the backstepping method is used to adjust the parameters of the digital twin model so that the flow data estimated by the fuzzy digital twin model is as close as possible to the actually measured flow data, thereby determining the position of the crack.

2. The method according to claim 1, characterized in that The fuzzy Gaussian regression algorithm comprises the following steps: a) Divide the flow data of the pipeline under normal conditions into a training set and a test set; b) For each data point in the training set, calculate its fuzzy membership, that is, the probability that it belongs to a certain Gaussian function, based on its distance from other data points; c) Using the fuzzy membership and the parameters of the Gaussian function, a fuzzy Gaussian regression model is constructed. The model is a linear combination of weighted Gaussian functions and is used to fit the traffic data in the training set; d) Use the fuzzy Gaussian regression model to predict the traffic data in the test set, calculate the prediction error, and evaluate the performance of the model.

3. The method according to claim 1, characterized in that The backstepping method is a nonlinear control method that can estimate the state and parameters of a system based on the input and output of the system. Its design principle is to use the idea of ​​feedback control to make the observation error approach zero.

4. The method according to claim 1, characterized in that: The support vector machine algorithm is a supervised learning algorithm that can perform binary or multi-classification on data. Its principle is to use kernel functions to map data to high-dimensional space, find the optimal hyperplane or hypersurface, separate data of different categories, and maximize the interval between categories.

Citation Information

Patent Citations

  • GPR modeling based on kernel slow feature analysis and time delay estimation

    CN107423503A

  • Elbow pneumatic conveying erosion prediction method and system based on digital twinning

    CN116894407A

  • Anomaly detection method for wireless sensor network

    WO2021243848A1