Fluid-pipeline leakage detection method based on improved fuzzy twin support vector machine

Through the improved fuzzy twin support vector machine model, the relative distance ratio and the fuzzy membership function are used for regional division and weighting processing, and the model is transformed into the least square form, which solves the low leakage identification efficiency and noise discrimination in large-scale data sets. Difficult problem to achieve efficient and accurate fluid pipeline leakage detection.

WO2024221977A1PCT designated stage expired Publication Date: 2024-10-31CHONGQING UNIV OF POSTS & TELECOMM

Patent Information

Application Number
PCT/CN2023/139359
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-24
Filing Date
2023-12-18
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When faced with large-scale fluid pipeline data sets, the existing technology has low leakage identification efficiency and cannot effectively distinguish between noise and normal leakage signals, resulting in a decrease in the timeliness and accuracy of leakage detection.

Method used

An improved fuzzy twin support vector machine model is used to divide regions by calculating the relative distance ratio of samples, introducing fuzzy membership functions for weighting processing, and transforming the model into least squares form to solve quadratic programming problems and improve calculation efficiency and robustness.

Benefits of technology

The computational efficiency and robustness of fluid pipeline leakage detection are improved, and efficient and accurate leakage identification can be achieved under severe noise conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023139359_31102024_PF_FP_ABST
    Figure CN2023139359_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of fluid-pipeline leakage detection, and relates to a fluid-pipeline leakage detection method based on an improved fuzzy twin support vector machine (FTSVM). The method comprises: acquiring acoustic vibration signals of a fluid pipeline under different degrees of leakage; performing feature extraction on the acoustic vibration signals indicating different degrees of leakage, and performing normalization processing on extracted feature data; and inputting normalized data into an improved FTSVM model, so as to obtain a pipeline leakage detection result. In the present invention, regional division is performed on a sample space by using the ratio of relative spatial distances of different samples, a theory of fuzzy data set is introduced into a noise and support vector aliasing region to perform distinguishing, and degree-of-membership assignment is also performed on a normal data region and a noise data region again, such that the present invention reduces the impact of noise data on an identification model, and also solves the defect of the robustness of the model being poor due to an FTSVM being unable to distinguish a support vector from noise data.
Need to check novelty before this filing date? Find Prior Art

Description

A fluid pipeline leakage detection method based on improved fuzzy twin support vector machine Technical Field

[0001] The present invention belongs to the field of fluid pipeline leakage detection and relates to a fluid pipeline leakage detection method based on an improved fuzzy twin support vector machine. Background Art

[0002] Pipelines are essential transportation vehicles for fluids such as natural gas, oil, and tap water, and are also crucial urban infrastructure. However, due to corrosion, cracks, dents in pipeline materials, vandalism, and environmental factors, pipeline leakage accidents are common. This not only impacts people's daily lives but can also lead to significant economic losses and environmental disasters. Therefore, real-time monitoring of pipeline operating conditions is crucial for maintaining safe pipeline network operation, avoiding resource waste, and achieving sustainable production. Currently, leak detection in fluid pipelines faces two major challenges. First, as pipelines continue to expand in size, the amount of data generated by pipeline detection systems is rapidly increasing. Traditional identification models, when faced with such large datasets, have low leak identification efficiency, impacting the timeliness of leak detection. Second, when collecting pipeline leakage signals, noise is often present due to environmental and human factors. However, due to their poor robustness, conventional identification models are unable to accurately distinguish between noise and normal leakage signals, resulting in reduced leak identification accuracy.

[0003] Currently, in the field of fluid pipeline leakage identification, researchers usually use data-driven intelligent diagnosis methods to classify and identify the fault characteristics after leakage signal processing, and often use machine learning methods such as support vector machine (SVM), artificial neural network (ANN), k-nearest neighbor (KNN), etc. Among them, SVM and its improved version are an intelligent diagnosis method based on statistical theory, with a solid theoretical foundation and excellent performance, and have significant advantages in nonlinear and high-dimensional pattern recognition. Fuzzy twin support vector machine (FTSVM) is an effective machine learning model. By introducing fuzzy membership functions, it can overcome the influence of abnormal data on identification results. Moreover, because the model solves two smaller-scale quadratic programming problems, its computational efficiency is significantly improved compared to SVM, which is about 4 times faster than SVM. However, FTSVM still has the following two problems when facing large data volumes and noisy data sets:

[0004] (1) Although the FTSVM recognition model improves computational efficiency by generating two classification hyperplanes, the model itself still needs to solve two quadratic programming problems, and its computational efficiency needs to be further improved.

[0005] (2) In FTSVM, the membership function in the sample space describes the space between the input data and the class center, ignoring the position of the sample data in the feature space, and simply misclassifying the marginal support vectors as noise data, which limits the robustness of the model.

[0006] Summary of the Invention

[0007] In order to solve the problems existing in the above-mentioned prior art, the present invention proposes a fluid pipeline leakage detection method based on an improved fuzzy twin support vector machine, which includes: obtaining vibration and sound signals of the fluid pipeline at different leakage degrees; performing feature extraction on the vibration and sound signals of different leakage degrees, and normalizing the extracted feature data; aggregating the normalized feature data, and dividing the set into a training set and a test set; constructing an improved fuzzy twin support vector machine model, inputting the data in the training set into the improved fuzzy twin support vector machine model for training, and using the data in the test set to test the trained improved fuzzy twin support vector machine model to obtain the optimal improved fuzzy twin support vector machine model; obtaining the vibration and sound signal to be detected, and inputting the vibration and sound signal to be detected into the trained improved fuzzy twin support vector machine model to obtain the pipeline leakage detection result.

[0008] Preferably, the training process of the improved fuzzy twin support vector machine model includes:

[0009] Step 1: Obtain sample features of vibration-generated acoustic signals of different leakage levels; calculate the relative distance ratio of two samples;

[0010] Step 2: Divide the samples into regions according to the relative distance ratio;

[0011] Step 3: Based on the divided areas, the improved fuzzy membership function is used to weight the sample features to obtain a weight matrix with different leakage states;

[0012] Step 4: Use the least squares method and weight moments to construct the objective function of the least squares FTSVM identification model;

[0013] Step 5: Solve the objective function to obtain the optimal hyperplane parameters corresponding to each type of sample;

[0014] Step 6: Construct a decision function based on the optimal hyperplane parameters;

[0015] Step 7: Input the test sample data into the decision function to obtain the pipeline leakage identification result and complete the model training.

[0016] Preferably, the formula for calculating the relative distance ratio of two samples is:

[0017] Among them, x c+ represents the center of the positive sample class, l + represents the number of positive samples, x i represents the sample data set, x c- represents the center of the negative sample class, l - represents the number of negative samples, α + Represents the relative distance ratio of positive samples, δ represents a constant greater than 0 to prevent the denominator from being 0, α - Represents the relative distance ratio of negative samples.

[0018] Preferably, the improved fuzzy membership function expression is:

[0019] When the sample is in the normal data area, the fuzzy membership function is: s i =(1-q)(1-||x i -x c+ || / r + +δ)

[0020] When the sample is a noise data area, the fuzzy membership function is:

[0021] When the sample is a mixture of noise and support vector, the fuzzy membership function is:

[0022] Among them, s i Indicates the specific fuzzy membership value of a single sample; x i is the i-th sample data; q is a constant value, x c+ is the sample center of the positive sample; r + =max{||x i -x c+ |||y i = +1} is the maximum radius of the positive sample; α i is the relative distance between different classes constructed based on the centers of positive and negative samples; μ i is the membership calculation value; v i Calculated value for non-membership.

[0023] The objective function expression of the least squares FTSVM identification model is: st-(K(X2,A t )w1+e2b1)+ξ=e2 st-(K(X1,A t )w2+e1b2)+η=e1

[0024] Among them, X1, X2 correspond to positive and negative sample data respectively; w i and bi are weights and biases respectively; A t =[X1;X2]; ξ and η represent slack variables; C1, C2, C3, C4 are penalty coefficients; K is the RBF kernel function; e1 and e2 are unit vectors.

[0025] Preferably, solving the objective function includes: substituting the constraint conditions into the objective function to obtain the objective function to be solved; and respectively calculating w according to the objective function to be solved. i and b i The parameters are differentiated to obtain the parameters of the hyperplane.

[0026] Furthermore, the hyperplane parameter expression is:

[0027] Among them, C1, C2, C3, C4 are penalty coefficients, T=[s2K(X2,A t ) s2e2] is the intermediate parameter matrix, T t Represents the transposed matrix of T, R=[K(X1,A t ) e1] is the intermediate parameter matrix, R t represents the transposed matrix of R, s2 represents the specific fuzzy membership value of the first sample, I is the identity matrix, s1 represents the specific fuzzy membership value of the second sample, e1 and e2 are unit vectors, and K is the RBF kernel function.

[0028] Preferably, the expression of the decision function is:

[0029] in, represents weight, K represents RBF kernel function, x represents the leakage sample data to be tested, A t =[X1;X2] t , b i Indicates deviation.

[0030] Beneficial effects of the present invention:

[0031] The present invention improves the fuzzy twin support vector machine in two aspects. On the one hand, the sample space is divided into regions by using the spatial relative distance ratio of different samples, and the fuzzy data set theory is introduced in the noise and support vector aliasing regions to distinguish them. The membership of the normal and noise data regions is also re-assigned. While reducing the influence of noise data on the identification model, it also solves the shortcoming of FTSVM's inability to distinguish between support vectors and noise data, resulting in poor model robustness. On the other hand, by extending FTSVM to the least squares form, the two quadratic programming problems that the original model needs to solve are transformed into problems that solve two linear equations, thereby improving the computational efficiency of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] FIG1 is an overall flow chart of the present invention in a specific implementation;

[0033] FIG2 is a flow chart of the ImF-LSTSVM algorithm of the present invention. DETAILED DESCRIPTION

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0035] A specific implementation of a fluid pipeline leakage detection method based on an improved fuzzy twin support vector machine is shown in Figure 1. The method includes: obtaining vibration and acoustic signals of the fluid pipeline at different leakage degrees; performing feature extraction on the vibration and acoustic signals of different leakage degrees, and normalizing the extracted feature data; aggregating the normalized feature data, and dividing the set into a training set and a test set; constructing an improved fuzzy twin support vector machine model, inputting the data in the training set into the improved fuzzy twin support vector machine model for training, and testing the trained improved fuzzy twin support vector machine model using the data in the test set to obtain the optimal improved fuzzy twin support vector machine model; obtaining the vibration and acoustic signal to be detected, and inputting the vibration and acoustic signal to be detected into the trained improved fuzzy twin support vector machine model to obtain the pipeline leakage detection result.

[0036] As shown in Figure 2, the training process of the improved fuzzy twin support vector machine model includes:

[0037] Step 1: Obtain the sample features of vibration-generated acoustic signals of different leakage levels; calculate the relative distance ratio of the two samples; that is, input the training sample data set X + ,X - , if it is a multi-classification task, two sample data sets of different classes are used as X + ,X - , to construct k(k-1) / 2 sub-classifiers.

[0038] The formula for calculating the sample center of a two-sample data set is:

[0039] Among them, x c+ represents the center of the positive sample class, l + represents the number of positive samples, x i represents the sample data set, xc- represents the center of the negative sample class, l - represents the number of negative samples, α + Represents the relative distance ratio of positive samples, δ represents a constant greater than 0 to prevent the denominator from being 0, α - Represents the relative distance ratio of negative samples.

[0040] Step 2: Divide the samples into regions according to the relative distance ratio. The results of the region division include normal data, noise data, and noise and support vector aliasing data. The expression is:

[0041] Step 3: Based on the divided areas, the improved fuzzy membership function is used to weight the sample features to obtain a weight matrix with different leakage states;

[0042] According to the division of the sample space, the fuzzy membership of the sample is reconstructed, and the improved fuzzy membership function is used to perform weighted processing on the sample features under different leakage states. The specific formula is expressed as follows:

[0043] When the sample is in the normal data region, s i =(1-q)(1-||x i -x c+ || / r + +δ)

[0044] When the sample is in the noisy data region,

[0045] When the sample is located in the aliasing area of ​​noise and support vector, the fuzzy dataset theory is introduced to distinguish the noise and support vector, and the s i The value is reassigned and the expression is:

[0046] where s i Indicates the specific fuzzy membership value of a single sample; x i is the i-th sample data; q is a constant value, the specific value is 0.1; x c+ is the sample center of the positive sample; r + =max{||x i -x c+ |||y i = +1}, is the maximum radius of the positive sample; α i is the relative distance between different classes constructed based on the centers of positive and negative samples; μ i is the membership calculation value; v i The new membership value gives different weights to normal data, noise data, and support vector data samples, thereby reducing the impact of noise data on model performance.

[0047] Step 4: Use the least squares method and weight moments to construct the objective function of the least squares FTSVM identification model; its expression is: st-(K(X2,A t )w1+e2b1)+ξ=e2 st-(K(X1,A t )w2+e1b2)+η=e1

[0048] Where X1 and X2 correspond to positive and negative sample data respectively; w i and b i are weights and biases respectively; A t =[X1;X2]; ξ and η represent slack variables; C1, C2, C3, C4 are penalty coefficients; K is the RBF kernel function, K(X,A t )=exp(-||XC t || 2 / 2γ 2 ), where γ is the kernel parameter.

[0049] Step 5: Solve the objective function to obtain the optimal hyperplane parameters corresponding to each class of samples; specifically, solve the optimal hyperplane of ImF-LSTSVM by substituting the equality constraint into the objective function:

[0050] Solving the above equations, we can get the parameter expressions of the two hyperplanes:

[0051] Where R=[K(X1,A t ) e1],T=[s2K(X2,A t ) s2e2]

[0052] Among them, C1, C2, C3, C4 are penalty coefficients, T=[s2K(X2,A t ) s2e2],T t Represents the transposed matrix of T, R=[K(X1,A t ) e1],R t represents the transposed matrix of R, s2 represents the specific fuzzy membership value of the first sample, I is the identity matrix, s1 represents the specific fuzzy membership value of the second sample, e1 and e2 are unit vectors, and K is the RBF kernel function.

[0053] Step 6: Construct a decision function based on the optimal hyperplane parameters; the expression of the decision function is:

[0054] in, represents weight, K represents RBF kernel function, x represents test sample, A t =[X1;X2] t , b i Indicates deviation.

[0055] Step 7: Input the test sample data into the decision function to obtain the pipeline leakage identification result and complete the model training.

[0056] In practical applications, it is necessary to collect various leakage conditions (e.g., no leakage, minor leakage, moderate leakage, and severe leakage) from fluid pipelines and extract corresponding features from the leakage acoustic signals to form a feature dataset. After feature extraction, an improved membership assignment method is used to calculate the fuzzy membership of each data point and construct a weight matrix. This feature data is then fed into the ImF-LSTSVM model, where it is trained and optimized using a one-to-one multi-classification strategy. After training and optimization, the ImF-LSTSVM model is now capable of identifying fluid pipeline leakage conditions. When leak detection and analysis is required, the pipeline's vibration acoustic signal is collected, features are extracted from the signal, and the data is fed into the ImF-LSTSVM to determine the current leakage condition. Because this model improves upon the FTSVM by utilizing the least squares method and an improved fuzzy membership function, the ImF-LSTSVM identification model exhibits higher computational efficiency and improved robustness, enabling efficient and accurate leakage identification even in the presence of severe noise.

[0057] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation plans of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A fluid pipeline leakage detection method based on an improved fuzzy twin support vector machine, characterized in that: include: Obtain vibration and acoustic signals of fluid pipelines at different leakage levels; The features of the vibration and sound signals with different leakage degrees are extracted, and the extracted feature data are normalized; the normalized feature data are aggregated and divided into a training set and a test set; an improved fuzzy twin support vector machine model is constructed, and the data in the training set are input into the improved fuzzy twin support vector machine model for training, and the trained improved fuzzy twin support vector machine model is tested with the data in the test set to obtain the optimal improved fuzzy twin support vector machine model; the vibration and sound signal to be detected is obtained, and the vibration and sound signal to be detected is input into the trained improved fuzzy twin support vector machine model to obtain the pipeline leakage detection result.

2. The fluid pipeline leakage detection method based on improved fuzzy twin support vector machine according to claim 1 is characterized in that: The training process of the improved fuzzy twin support vector machine model includes: Step 1: Obtain sample characteristics of vibration-generated acoustic signals of different leakage degrees; calculate the relative distance ratio of two samples; Step 2: Divide the samples into regions according to the relative distance ratio; Step 3: According to the divided areas, the improved fuzzy membership function is used to weight the sample features to obtain a weight matrix with different leakage states; Step 4: Use the least squares method and weight moment to construct the objective function of the least squares FTSVM identification model; Step 5: Solve the objective function to obtain the optimal hyperplane parameters corresponding to each type of sample; Step 6: Construct a decision function based on the optimal hyperplane parameters; Step 7: Input the test sample data into the decision function to obtain the pipeline leakage identification result and complete the model training.

3. The fluid pipeline leakage detection method based on improved fuzzy twin support vector machine according to claim 2 is characterized in that: The formula for calculating the relative distance ratio of two samples is: Among them, x c+ represents the center of the positive sample class, l + represents the number of positive samples, x i represents the sample data set, x c- represents the center of the negative sample class, l - represents the number of negative samples, α + Represents the relative distance ratio of positive samples, δ represents a constant greater than 0 to prevent the denominator from being 0, α - Represents the relative distance ratio of negative samples.

4. The fluid pipeline leakage detection method based on improved fuzzy twin support vector machine according to claim 2 is characterized in that: The improved fuzzy membership function expression is: When the sample is in the normal data area, the fuzzy membership function is: s i =(1-q)(1-||x i -x c+ || / r + +δ) When the sample is a noise data area, the fuzzy membership function is: When the sample is a mixed area of ​​noise and support vector, the fuzzy membership function is: Among them, s i Represents the specific fuzzy membership value of a single sample; x i is the i-th sample data; q is a constant value, x c+ is the sample center of the positive sample; r + =max{||x i -x c+ |||y i = +1} is the maximum radius of the positive sample; α i is the relative distance value between different classes constructed based on the centers of positive and negative samples; μ i is the membership calculation value; v i Calculates the non-membership value.

5. The fluid pipeline leakage detection method based on improved fuzzy twin support vector machine according to claim 2 is characterized in that: The expression of the objective function of the least squares FTSVM identification model is: Among them, X1 and X2 correspond to positive and negative sample data respectively; w i and b i are weights and biases respectively; A t =[X1;X2]; ξ and η represent slack variables; C1, C2, C3, C4 are penalty coefficients; K is the RBF kernel function; e1 and e2 are unit vectors.

6. The fluid pipeline leakage detection method based on improved fuzzy twin support vector machine according to claim 2 is characterized in that: Solving the objective function includes: substituting the constraint conditions into the objective function to obtain the objective function to be solved; and calculating w i and b i The parameters are differentiated to obtain the parameters of the hyperplane.

7. The fluid pipeline leakage detection method based on improved fuzzy twin support vector machine according to claim 6 is characterized in that: The hyperplane parameter expression is: Among them, C1, C2, C3, C4 are penalty coefficients, T = [s2K(X2, A t ) s2e2],T t Represents the transposed matrix of T, R = [K(X1,A t ) e1],R t represents the transposed matrix of R, s2 represents the specific fuzzy membership value of the first sample, I is the unit matrix, s1 represents the specific fuzzy membership value of the second sample, e1 and e2 are unit vectors, and K is the RBF kernel function.

8. The fluid pipeline leakage detection method based on improved fuzzy twin support vector machine according to claim 2, characterized in that: The expression of the decision function is: in, represents weight, K represents RBF kernel function, x represents the leakage sample data to be tested, A t =[X1;X2] t , b i Indicates deviation.

Citation Information

Patent Citations

  • Fluid pipeline leakage detection method based on class imbalance improved twinborn support vector machine

    CN115978466A

  • Fluid pipeline leakage detection method based on improved fuzzy twin support vector machine

    CN116467879A

  • Intelligent leakage detection system for pipelines

    US20160356666A1

Cited By

  • High-voltage transmission line non-contact electromagnetic electricity-taking energy-storage supervision system

    CN119577656A

  • Fault diagnosis method based on marble intuitionistic fuzzy twin support tensor machine

    CN119939367A

  • Manufacturing process quality diagnosis method based on adaptive multivariate control chart

    CN121115685A

  • Power pipeline identification model construction method and power pipeline identification method

    CN121144980A

  • Abnormal data processing method and device for distributed optical fiber sensor and medium

    CN121502623A