Pipeline leakage signal processing method and device
Through variational modal decomposition and improved AOK-TFR method, the kernel function calculation in pipeline leakage signal processing is optimized, signal accuracy and resolution problems are solved, and the recognition effect of leaked signals is significantly improved.
Patent Information
- Application Number
- CN202411023900.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-12-06
AI Technical Summary
In the processing of pipeline leakage signal, the existing AOK-TFR method has reduced signal accuracy due to local problems of the kernel function, high calculation complexity and many iterations, and the value of the extension function σ(Ψ) depends on human experience, resulting in the effect of cross-interference suppression. The poor and time-frequency resolutions are low, which affects the leakage recognition effect.
The original signal is decomposed into IMF components using the variational modal decomposition algorithm (VMD), and the multi-scale arrangement entropy is calculated to identify noise and reconstruct the signal. Combined with the improved AOK-TFR, the radial Gaussian kernel low pass is optimized using the convex hull estimation method. The extended function σ(Ψ) in the function performs two-dimensional Fourier transform through the rectangular time window and the optimal kernel function to improve the time and frequency resolution of the signal.
The value of the extended function σ(Ψ) in the radial Gaussian kernel low-pass function is simple and accurate, which significantly improves the signal's cross-interference suppression effect and time-frequency resolution, and improves the recognition effect of pipeline leakage signals.
Smart Images

Figure CN119084843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of pipeline leakage identification, and in particular to a pipeline leakage signal processing method and device. Background Art
[0002] Pipeline leakage incidents are difficult to prevent due to pipeline corrosion, aging, cathodic protection failure, natural disasters, production construction, theft and other human damage. The use of appropriate pipeline leakage detection technology to monitor the pipeline, prevent leakage, detect leakage in time and accurately locate the leakage can effectively prevent pipeline leakage accidents and their secondary disasters to reduce environmental pollution and economic losses.
[0003] Considering the wide application of AOK-TFR time-frequency analysis method, the kernel function of the adaptive kernel time-frequency analysis method can not only adapt to different types of signals, but more importantly, it can change with the time of the signal to achieve adaptation to the local characteristics of the signal. It is also very suitable for real-time and online processing of signals, and is adaptable to signals of any length and any nature without requiring any prior knowledge of the signal. However, in the application of AOK-TFR, the accuracy of its leakage signal decreases due to the local problem of its kernel function. The calculation complexity of the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in its restriction condition is large and the number of iterations is large. At the same time, the value of the expansion function σ(Ψ) is mostly determined by human experience, and is usually taken in the range of 0<σ(Ψ)≤1, which makes the calculation result inaccurate, and then leads to poor suppression effect of signal cross-interference and poor time-frequency resolution of the signal, thereby affecting the identification effect of pipeline leakage.
[0004] Therefore, a new pipeline leakage signal processing method is urgently needed to solve the above technical problems. Summary of the invention
[0005] In order to solve the problem that the calculation results of the prior art are inaccurate, which leads to poor suppression effect of signal cross-interference and poor time-frequency resolution of the signal, thereby affecting the identification effect of pipeline leakage, the present application provides a pipeline leakage signal processing method and device.
[0006] The embodiment of the present application is implemented as follows:
[0007] In a first aspect, the present application provides a pipeline leakage signal processing method and device, comprising:
[0008] Collect the original infrasound signal of pipeline leakage x (t) ;
[0009] The original signal x is transformed into (t) Decompose into several IMF components;
[0010] Calculate the multi-scale permutation entropy (MPE) of the decomposed IMF components, identify and remove the noise components according to the permutation entropy value, take the remaining effective components to reconstruct the signal, and obtain the effective infrasound leakage characteristic signal x′ by fitting (t) And the corresponding effective time domain waveform of the infrasound leakage signal;
[0011] The improved AOK-TFR is used to identify effective infrasound leakage characteristic signals;
[0012] A time-frequency spectrum diagram of the acoustic wave signal is obtained by moving the rectangular time window, and the time-frequency spectrum diagram is processed to obtain a leakage signal.
[0013] In one possible implementation, the working process of the improved AOK-TFR is: setting the volume of the rectangular window function and the kernel function, and calculating the fuzzy function of the signal in the rectangular time window according to the size of the rectangular time window, and then using the convex hull estimation method to optimize the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in the constraint conditions, and calculating the optimal kernel function of the signal in the rectangular time window function, and performing a two-dimensional Fourier transform after multiplying the optimal kernel function and the fuzzy function.
[0014] In a possible implementation, the variational mode decomposition algorithm includes:
[0015] The collected pipeline leakage infrasound original signal x (t) Decompose into k intrinsic mode function components using VMD;
[0016] Solving variational problems.
[0017] In a possible implementation, the collected pipeline leakage infrasound wave original signal x (t) Decomposing into k intrinsic mode function components using VMD further includes:
[0018] By solving the constrained variational problem, the original signal X (t) Decomposed into a series of IMF components;
[0019] The quadratic penalty factor and Lagrangian multiplication operator are introduced to transform the constrained variational problem into an unconstrained variational problem and construct an extended Lagrangian expression.
[0020] The multiplier exchange direction algorithm is used to alternately update and seek the "saddle point" of the extended Lagrangian expression. When the judgment accuracy θ>0, the final saddle point is the optimal solution, and k modal components are obtained.
[0021] In a possible implementation, the calculating the multi-scale permutation entropy (MPE) of the decomposed IMF components, identifying and removing noise components according to the values of the permutation entropy, taking the remaining effective components to reconstruct the signal, and obtaining an effective infrasound leakage characteristic signal and a corresponding effective time domain waveform of the infrasound leakage signal by fitting, further comprises:
[0022] The new analytical signals of k modes are processed by multi-scale coarse-graining;
[0023] Reconstruct time series;
[0024] Sort the time reconstruction sequence in ascending order;
[0025] Calculate the permutation entropy of the scale factor;
[0026] The permutation entropy calculated above is normalized.
[0027] In a possible implementation, each effective characteristic component is fitted into an effective infrasound leakage characteristic signal by the following formula:
[0028] x′ (t) =[IMF1,IMF2,...,IMF m ];
[0029] Among them, x' (t) IMF is an effective infrasound leakage characteristic signal. m is the effective characteristic component.
[0030] In a possible implementation, the fuzzy function of the signal in the rectangular time window is calculated as follows:
[0031] Let the effective signal x' (t) Use S (t) Indicates that the instantaneous correlation function is defined as:
[0032]
[0033] Where t is the instantaneous time in seconds; τ is the signal S (t) A time delay of S (t) is the signal function to be analyzed; For S (t) The conjugate function of S; R(t, τ) is (t) The instantaneous correlation function of .
[0034] In a possible implementation, the optimal kernel function expression for calculating the rectangular time window function is:
[0035]
[0036] Where: t is the instantaneous time, in seconds; r is the radius variable in polar coordinates, Ψ is the polar coordinate variable in the signal fuzzy function domain, (θ is the angle between the radial and horizontal directions); A(t:r,Ψ) is the short-time ambiguity function of the signal; Φ(t:r,Ψ) is the kernel function in polar coordinates.
[0037] In a possible implementation, the processing of the time-frequency spectrum diagram is processing the time-frequency spectrum diagram using MATLAB software, which further includes:
[0038] Perform grayscale transformation on the time-frequency spectrum diagram using MATLAB software to obtain a grayscale diagram;
[0039] Obtaining a gray level co-occurrence matrix of the gray level image;
[0040] The characteristic value of the natural gas pipeline leakage acoustic wave signal is extracted based on the gray level co-occurrence matrix.
[0041] In a second aspect, the present application provides a pipeline leakage signal processing device, comprising:
[0042] Signal acquisition module, used to collect the original signal of pipeline leakage infrasound x (t) ;
[0043] The modal decomposition module is used to transform the original signal x into (t) Decompose into several IMF components;
[0044] A calculation fitting module is used to calculate the multi-scale permutation entropy (MPE) of the decomposed IMF components, identify and remove the noise components according to the permutation entropy value, reconstruct the signal by taking the remaining effective components, and obtain the effective infrasound leakage characteristic signal x′ by fitting. (t) And the corresponding effective time domain waveform of the infrasound leakage signal;
[0045] A signal recognition module, used to recognize effective infrasound leakage characteristic signals using the improved AOK-TFR;
[0046] The signal output module is used to obtain a time-frequency spectrum of the acoustic wave signal by moving the rectangular time window, and process the time-frequency spectrum to obtain a leakage signal.
[0047] The technical solution provided by this application can at least achieve the following beneficial effects:
[0048] The pipeline leakage signal processing method provided in the present application can avoid solving the optimization problem by directly calculating the minimum radius and the maximum interval according to the convex hull estimation method. The increase of sample points will not significantly affect the efficiency of the calculation. Finally, the value of the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function can be simply and accurately calculated.
[0049] At the same time, different from the previous signal time-frequency representation and time-adaptive optimal kernel time-frequency representation, this method has the ability to more clearly characterize signal details than the time-adaptive optimal kernel time-frequency representation. At the same time, it can well suppress the cross terms in the time-frequency distribution of multi-component signals and has a higher resolution. It is an improvement and enhancement of the pipeline leakage signal identification and analysis method. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0051] Figure 1 It is a flow chart of a pipeline leakage signal processing method shown in an exemplary embodiment of the present application;
[0052] Figure 2 It is a structural schematic diagram of a pipeline leakage signal processing device shown in an exemplary embodiment of the present application;
[0053] Figure 3 is a schematic diagram of an experimental site shown in an exemplary embodiment of the present application;
[0054] Figure 4 is a schematic diagram of a pipeline leakage simulation test shown in an exemplary embodiment of the present application;
[0055] Figure 5 It is a flowchart of a specific method for processing a pipeline leakage signal according to an exemplary embodiment of the present application;
[0056] Figure 6 is the original infrasound signal x in the case of pipeline leakage (t) The time domain waveform diagram of
[0057] Figure 7 is the original infrasound signal x (t) Waveform diagram of each IMF component obtained by VMD decomposition;
[0058] Figure 8 is the effective infrasound signal x′ in the case of pipeline leakage (t)The time domain waveform diagram of
[0059] Fig. 9 R for 1mm leak hole diameter 2 / Δ 2 The relationship diagram with the change of σ(Ψ);
[0060] Fig.10 This is the time-frequency spectrum of the infrasound signal obtained before the method was improved (when σ(Ψ)=0.1);
[0061] Fig.11 Time-frequency spectrum of the infrasound signal obtained after the improved method (σ(Ψ)=0.7).
[0062] Reference numerals:
[0063] 1. Signal acquisition module; 2. Modal decomposition module; 3. Calculation and fitting module; 4. Signal identification module; 5. Signal output module. DETAILED DESCRIPTION
[0064] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
[0065] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0066] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0067] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0068] Before explaining the pipeline leakage signal processing method provided in the embodiment of the present application, the application scenario and implementation environment of the embodiment of the present application are first introduced.
[0069] Pipeline leakage incidents are difficult to prevent due to pipeline corrosion, aging, cathodic protection failure, natural disasters, production construction, theft and other human damage. The use of appropriate pipeline leakage detection technology to monitor the pipeline, prevent leakage, detect leakage in time and accurately locate the leakage can effectively prevent pipeline leakage accidents and their secondary disasters to reduce environmental pollution and economic losses.
[0070] Considering the wide application of AOK-TFR time-frequency analysis method, the kernel function of the adaptive kernel time-frequency analysis method can not only adapt to different types of signals, but more importantly, it can change with the time of the signal to achieve adaptation to the local characteristics of the signal. It is also very suitable for real-time and online processing of signals, and is adaptable to signals of any length and any nature without requiring any prior knowledge of the signal. However, in the application of AOK-TFR, the accuracy of its leakage signal decreases due to the local problem of its kernel function. The calculation complexity of the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in its restriction condition is large and the number of iterations is large. At the same time, the value of the expansion function σ(Ψ) is mostly determined by human experience, and is usually taken in the range of 0<σ(Ψ)≤1, which makes the calculation result inaccurate, and then leads to poor suppression effect of signal cross-interference and poor time-frequency resolution of the signal, thereby affecting the identification effect of pipeline leakage.
[0071] Therefore, a new pipeline leakage signal processing method is urgently needed to solve the above technical problems.
[0072] Based on this, the present application provides a pipeline leakage signal processing method and device, which can effectively suppress the cross terms in the time-frequency distribution of multi-component signals and have a higher resolution, thereby improving the recognition effect of pipeline leakage.
[0073] Next, the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems will be described in detail through embodiments and in combination with the accompanying drawings. The embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of them.
[0074] Figure 1 It is a flow chart of a pipeline leakage signal processing method shown in an exemplary embodiment of the present application.
[0075] In an exemplary embodiment, Figure 1 As shown, in this embodiment, the method may include the following steps:
[0076] Step 100: Collect the original infrasound signal x of pipeline leakage (t) .
[0077] Step 200: Using the variational mode decomposition (VMD) algorithm to transform the original signal x (t) Decomposed into several IMF components.
[0078] Step 300: Calculate the multi-scale permutation entropy (MPE) of the decomposed IMF components, identify and remove the noise components according to the permutation entropy value, reconstruct the signal by taking the remaining effective components, and obtain the effective infrasound leakage characteristic signal x′ by fitting. (t) And the corresponding effective time domain waveform of the infrasound leakage signal.
[0079] Step 400: Use the improved AOK-TFR to identify effective infrasound leakage characteristic signals.
[0080] Step 500: obtaining a time-frequency spectrum of an acoustic wave signal by moving the rectangular time window, and processing the time-frequency spectrum to obtain a leakage signal.
[0081] In a possible implementation, the specific steps of the pipeline leakage signal processing method based on VMD combined with AOK-TFR analysis include:
[0082] S1: Collect the original infrasound signal x of pipeline leakage (t) ;
[0083] S2: Use the variational mode decomposition algorithm (VMD) to transform the original signal x (t) Decompose into several IMF components;
[0084] S3: Calculate the multi-scale permutation entropy (MPE) of the decomposed IMF components, identify and remove the noise components according to the permutation entropy value, take the remaining effective components to reconstruct the signal, and obtain the effective infrasound leakage characteristic signal x′ through fitting (t) And the corresponding effective time domain waveform of the infrasound leakage signal;
[0085] S4: Using the improved AOK-TFR to detect the effective infrasound leakage characteristic signal x′ (t) Identification; wherein the working process of the improved AOK-TFR is: setting the volume of the rectangular window function and the kernel function, and calculating the fuzzy function of the signal in the rectangular time window according to the size of the rectangular time window, and then using the convex hull estimation method to optimize the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in the constraint condition, and calculating the optimal kernel function of the signal in the rectangular time window function, and multiplying the optimal kernel function and the fuzzy function to perform a two-dimensional Fourier transform;
[0086] S5: The time-frequency spectrum diagram of the acoustic wave signal obtained by moving the rectangular time window is processed by using MATLAB software to obtain a processed leakage signal.
[0087] In a possible implementation, the variational mode decomposition method in step S2 is:
[0088] S2.1: First, collect the original signal x of pipeline leakage infrasound (t) VMD is used to decompose the model into k intrinsic mode function components, as shown in the following formula:
[0089]
[0090] Where: X (t) is the original signal of infrasound; uk (t) is the kth intrinsic mode function component, k = 1, 2, ..., n (n is a positive integer); r (t) is the residual component after VMD decomposition; t is the time in seconds.
[0091] S2.1.1: VMD decomposition solves the constrained variational problem to transform the original signal X (t) Decomposed into a series of IMF components, the constrained variational problem is described as:
[0092]
[0093] s,t∑ k u k =X(t) (3)
[0094] Where: {u k}={u1,u2,...,u k} are the k IMF components obtained by decomposition, {ω k}={ω1,ω2,...,ω k} is the center frequency of each modal component, in Hz; To find the partial derivative of the function with respect to time t; δ (t) is the unit pulse function; j is the imaginary number symbol; t is the time in seconds; uk (t) is the kth intrinsic mode function component, k=1,2,…,n (n is a positive integer); s, t are the English abbreviations of the constraint conditions; X (t) is the original signal of infrasound.
[0095] S2.1.2: To solve the above constrained variational problem, we introduce the quadratic penalty factor γ and the Lagrange multiplication operator λ (t) , transform the constrained variational problem into an unconstrained variational problem, and construct the extended Lagrangian expression as follows:
[0096]
[0097] Where: {u k}={u1,u2,...,u k} are the k IMF components obtained by decomposition, {ω k}={ω1,ω2,...,ω k} is the center frequency of each modal component, in Hz; λ (t) is the Lagrange multiplication operator, which is used to ensure the strictness of the constraints; γ is the optimal quadratic penalty factor; To find the partial derivative of the function with respect to time t; δ (t) is the unit pulse function; j is the imaginary number symbol; t is the time in seconds; uk (t) is the kth intrinsic mode function component, k=1,2,…,n (n is a positive integer); X (t) is the original infrasound signal.
[0098] S2.1.3: Update alternately by using the multiplier exchange direction algorithm and To find the "saddle point" of the extended Lagrangian expression, The specific iterative algorithm is:
[0099]
[0100] in: is the modal component at the n+1th iteration; is the input signal; γ is the optimal quadratic penalty factor; is the modal component at the nth iteration; is the "saddle point" of the augmented Lagrangian function at the nth iteration; ω is the frequency value, in Hz; is the center frequency at the nth iteration.
[0101] Iterative Updateω k The specific iterative algorithm is:
[0102]
[0103] in: is the center frequency at the n+1th iteration; is the modal component at the n+1th iteration; ω is the frequency value in Hz.
[0104] Iteratively update the value of λ. The specific iterative algorithm is:
[0105]
[0106] in: is the “saddle point” of the augmented Lagrangian function at the n+1th iteration; is the "saddle point" of the augmented Lagrangian function at the nth iteration; ε is the noise tolerance (update coefficient of the Lagrangian multiplier), which meets the fidelity requirements of signal decomposition; is the input signal; is the modal component at the n+1th iteration.
[0107] Until the following iteration stop conditions are met:
[0108]
[0109] Where: u k is the kth intrinsic mode function component, k = 1, 2, …, n (n is a positive integer); θ is the iterative convergence value.
[0110] When the judgment accuracy θ>0, the saddle point finally obtained is the optimal solution, and k modal components {u k}.
[0111] S2.2: The essence of the VMD algorithm is to solve the variational problem. The process is as follows:
[0112] For each IMF component signal u k (t) Hilbert transform can obtain its analytical signal u′k (t) for:
[0113]
[0114] Where: u′ k (t) is the analytical signal of each mode; δ(t) is the unit pulse function; j is the imaginary number symbol; t is the time, in seconds; u k (t) is the kth intrinsic mode function component, k = 1, 2, ..., n (n is a positive integer).
[0115] Estimate a center frequency ω for each mode’s analytical signal k And mix them, modulate the spectrum of each mode to the corresponding baseband, and construct a new analytical signal, denoted as u″ k (t) is as follows:
[0116]
[0117] Where: u″ k (t) is the new analytical signal of each mode; δ(t) is the unit pulse function; j is the imaginary number symbol; t is the time, in seconds; u k (t) is the kth intrinsic mode function component, k = 1, 2, ..., n (n is a positive integer); ω k is the center frequency of each modal component, in Hz.
[0118] In a possible implementation, in step S3, multi-scale permutation entropy (MPE) is used as a criterion for determining the noise component, and the decomposed IMF component u″ is calculated. k (t) to filter out the noise component and remove it. The specific steps are as follows:
[0119] S3.1: Let u″ k (t) = X, for the k modal new analytical signals {u″ k (t)}={u″1, u″2,...,u″ k (t)}, that is, X={x1,x2,…,x L}Perform multi-scale coarse-graining processing:
[0120]
[0121] Where: s is the scale factor; is a multi-scale time series; x i is the i-th modal component. When the scale factor s is 1, its time series is the original time series, and the calculated result is the permutation entropy value.
[0122] S3.2: Time series Refactoring, we get:
[0123]
[0124] in: is the multi-scale time reconstruction sequence; τ is the time delay; m is the embedding dimension.
[0125] S3.3: Reconstructing the time series Sorted in ascending order, there are m! permutations of the sequence, each type of permutation appears N1 times, and the corresponding probability of occurrence is
[0126]
[0127] in: is the multi-scale time reconstruction sequence; τ is the time delay; m is the embedding dimension.
[0128]
[0129] in: is the probability of each type of arrangement; N l is the number of occurrences of each arrangement type; s is the scale factor; and m is the embedding dimension.
[0130] S3.4: Calculate the signal when the scale factor is s The permutation entropy of
[0131]
[0132] in: is the multi-scale permutation entropy; m is the embedding dimension; is the probability of each type of arrangement occurring.
[0133] S3.5: Normalize the permutation entropy calculated above.
[0134]
[0135] in: is the normalized multi-scale permutation entropy; is the multi-scale permutation entropy; m is the embedding dimension.
[0136] The randomness of each IMF component is detected by multi-scale permutation entropy, and the MPE average value of each component signal is calculated. When the MPE average value is greater than the set entropy value, it is considered to be an abnormal or noise component, and these components are removed from the original signal to achieve the purpose of noise reduction.
[0137] In a possible implementation, each effective characteristic component is fitted into an effective infrasound leakage characteristic signal by the following formula:
[0138] x′ (t) =[IMF1,IMF2,...,IMF m ] (17)
[0139] Where: x′ (t) IMF is an effective infrasound leakage characteristic signal. m is the effective characteristic component.
[0140] The corresponding ripples in the time domain waveform are extracted according to the effective infrasound leakage characteristic signal to obtain the effective time domain waveform of the infrasound leakage signal.
[0141] In a possible implementation, the fuzzy function of the signal in the rectangular time window is calculated as follows:
[0142] Let the effective signal x′ (t) Use S (t) Indicates that the instantaneous correlation function is defined as:
[0143]
[0144] Where: t is the instantaneous time, in seconds; τ is the signal S (t) A time delay of S (t) is the signal function to be analyzed; For S (t)The conjugate function of S; R(t, τ) is (t) The instantaneous correlation function of ; then the short-time fuzzy function expression is:
[0145]
[0146] Where t is the instantaneous time in seconds; τ is the signal S (t) is a time delay, and is also a signal fuzzy domain variable; θ is the signal fuzzy city variable; A(t:θ,τ) is the short-time fuzzy function; u is the time variable of the instantaneous correlation function; R(u,τ) is S (t) The instantaneous correlation function of (u) is a rectangular time window function; w (u) The conjugate function of ;
[0147]
[0148] Where t is the instantaneous time in seconds; τ is the signal S (t) is a time delay, and is also a signal fuzzy domain variable; θ is the signal fuzzy city variable; A(t:θ,τ) is a short-time fuzzy function; u is the time variable of the instantaneous correlation function; w (u) is a rectangular time window function; w* (u) w (u ) is the conjugate function of (t) is the signal function to be analyzed; For S (t) The conjugate function of ;
[0149] In the process of calculating the short-term fuzzy function of the signal in the rectangular time window, according to the relationship A(t:θ,τ)=A * (t: -θ, -τ), the short-time fuzzy function that has been calculated can be used to calculate other short-time fuzzy functions without repeated calculation.
[0150] In a possible implementation, the optimal kernel function expression for calculating the rectangular time window function is:
[0151]
[0152] Where: t is the instantaneous time, in seconds; r is the radius variable in polar coordinates, Ψ is the polar coordinate variable in the signal fuzzy function domain, (θ is the angle between the radial and horizontal directions); A(t:r,Ψ) is the short-time ambiguity function of the signal; A(t:r,Ψ) is the kernel function in polar coordinates;
[0153] The two constraints of formula (21) are:
[0154] Constraints a.
[0155] Where: t is the instantaneous time, in seconds; r is the radius variable in polar coordinates, Ψ is the polar coordinate variable in the signal fuzzy function domain, (θ is the angle between the radial direction and the horizontal direction); Φ(t:r,Ψ) is the kernel function in polar coordinates; σ(Ψ) is the expansion function, which is used to control the expansion of the radial Gaussian kernel function in the radial angle Ψ direction;
[0156] Constraint a limits the range in the optimization problem to a radial Gaussian kernel-like low-pass function;
[0157] Constraints b.
[0158] Where: t is the instantaneous time, in seconds; r is the radius variable in polar coordinates, Ψ is the polar coordinate variable in the signal fuzzy function domain, (θ is the angle between the radial and horizontal directions); φ(t:r, Ψ) is the kernel function in polar coordinates; σ(Ψ) is the expansion function, which is used to control the expansion of the radial Gaussian kernel function in the radial angle Ψ direction; α is the volume of the kernel function.
[0159] The constraint b limits the value of the volume α of the optimal kernel function.
[0160] In the application of AOK-TFR, the accuracy of its leakage signal decreases due to the local problem of its kernel function. The calculation complexity of the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in its restriction condition is large and the number of iterations is large. At the same time, the value of the expansion function σ(Ψ) is mostly determined by human experience, and usually takes a value in the range of 0<σ(Ψ)≤1, which makes the calculation result inaccurate, and further leads to poor suppression effect of signal cross-interference and poor time-frequency resolution of the signal, thereby affecting the identification effect of pipeline leakage.
[0161] Therefore, when using the AOK-TRF method, the present invention uses the convex hull estimation method to calculate the value of the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in the restriction condition to improve the suppression effect of the cross-interference of the signal and the time-frequency resolution, thereby improving the recognition effect of pipeline leakage.
[0162] In a possible implementation, the specific process of quantitatively calculating the value of the optimal expansion function σ(Ψ) in the constraint condition a is as follows:
[0163] First, assume that covA and covB are the convex hulls of class A and class B samples respectively. It can be seen that the smallest hypersphere radius R is the two convex hull points x that are farthest apart in covA and covB. i and i half the distance, that is
[0164]
[0165] Where: R is the smallest hypersphere radius; x i and i are two convex hull points respectively; cov A and cov B are the convex hulls of sample A and sample B respectively.
[0166] The maximum interval Δ is half the distance between the two closest convex hull points in cov A and cov B, that is,
[0167]
[0168] Where: Δ is the maximum interval; x i and i are two convex hull points respectively; cov A and cov B are the convex hulls of sample A and sample B respectively.
[0169] Therefore, if we can find the convex hull of the two types of sample points, we can get a more accurate R 2 / Δ 2 This paper adopts the method of angle cutting sample set to find the approximate convex hull. The main idea is: let Then the center of gravity of the corresponding sample point in the high-dimensional feature space is:
[0170]
[0171] Where: O is the center of gravity of the sample point in the high-dimensional feature space; is the sample point; k = 1,…,l; l is the number of samples.
[0172] Sample points The distance from the center of gravity is:
[0173]
[0174] Where: d is the distance between the sample point and the centroid; and are all sample points; k = 1, ..., l; l is the number of samples; K(x i , x k ) is the i-th and k-th kernel functions.
[0175]
[0176] Where: R is the smallest hypersphere radius; Δ is the maximum interval; x i and i are two convex hull points respectively; cov A and covB are the convex hulls of sample A and sample B respectively.
[0177] Selecting a radial Gaussian kernel low-pass function expansion function σ(Ψ) can make R 2 / Δ 2 The value of is the smallest, then it is the optimal expansion function σ(Ψ), in other words, find the corresponding R 2 / Δ 2 The kernel parameter with the smallest value is taken as the optimal parameter value.
[0178] Let the expansion function σ(Ψ) represent the origin of the centroid and Ψ represent the sample point x i The angle between the center of gravity and the
[0179]
[0180] Where: σ(Ψ) is the expansion function, which is used to control the expansion of the radial Gaussian kernel function in the radial angle Ψ direction; and are all sample points; k = 1, ..., l; l is the number of samples; K(x i , x k ) is the i-th and k-th kernel functions.
[0181] Finally, the convex hull estimation method is used to optimize and determine the value of the expansion function in the radial Gaussian kernel low-pass function.
[0182] In one possible implementation, the optimal kernel function and the blur function are multiplied and then a two-dimensional Fourier transform is performed, specifically:
[0183] because The fuzzy functions (19) and (20) are weighted using the optimal kernel function (21) and its constraints (22) and (23). After the two functions are multiplied, a two-dimensional Fourier transform is performed to obtain the expression for the entire signal extraction:
[0184]
[0185] Where: t is the instantaneous time, in seconds; ω is the frequency variable of the time-frequency spectrum function of the signal; r is the radius variable in polar coordinates, Ψ is the polar coordinate variable in the signal fuzzy function domain, (t is the angle between the radial direction and the horizontal direction); P AOk (t, ω) is the time spectrum of the signal; A(t:r, Ψ) is the short-time ambiguity function of the signal; is the optimal kernel function for calculation.
[0186] In a possible implementation, the time-frequency spectrum diagram is processed using MATLAB software, specifically:
[0187] The time-frequency spectrum is subjected to grayscale transformation processing by using MATLAB software to obtain a grayscale image; a grayscale co-occurrence matrix of the grayscale image is obtained, and then the characteristic value of the natural gas pipeline leakage acoustic wave signal is extracted based on the grayscale co-occurrence matrix.
[0188] It can be seen that some embodiments of the present application provide a pipeline leakage signal processing method based on VMD combined with AOK-TFR analysis. If R is calculated in a conventional way to solve the optimization problem, 2 / Δ 2 As the number of sample points increases, the constraints also increase, and the efficiency of calculation also decreases significantly. However, directly calculating the minimum radius and maximum interval according to the convex hull estimation method can avoid solving the optimization problem. The increase in sample points does not significantly affect the efficiency of calculation. Finally, the value of the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function can be easily and accurately calculated.
[0189] At the same time, different from the previous signal time-frequency representation and time-adaptive optimal kernel time-frequency representation, this method has the ability to more clearly characterize signal details than the time-adaptive optimal kernel time-frequency representation. At the same time, it can well suppress the cross terms in the time-frequency distribution of multi-component signals and has a higher resolution. It is an improvement and enhancement of the pipeline leakage signal identification and analysis method.
[0190] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the instructions, these steps are not necessarily executed in sequence according to the order of the instructions. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the above-mentioned embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
[0191] Corresponding to the above-mentioned embodiment of the pipeline leakage signal processing method and adopting the same technical concept, the present application also provides an embodiment of the pipeline leakage signal processing device.
[0192] Figure 2 It is a structural schematic diagram of a pipeline leakage signal processing device shown in an exemplary embodiment of the present application.
[0193] In an exemplary embodiment, Figure 2 As shown, the pipeline leakage signal processing device includes:
[0194] Signal acquisition module 1, used to collect the original signal x of pipeline leakage infrasound(t) ;
[0195] The modal decomposition module 2 is used to use the variational modal decomposition algorithm (VMD) to transform the original signal x (t) Decompose into several IMF components;
[0196] The calculation fitting module 3 is used to calculate the multi-scale permutation entropy (MPE) of the decomposed IMF component, identify and remove the noise component according to the value of the permutation entropy, take the remaining effective component to reconstruct the signal, and obtain the effective infrasound leakage characteristic signal x′ through fitting. (t) And the corresponding effective time domain waveform of the infrasound leakage signal;
[0197] A signal recognition module 4 is used to recognize effective infrasound leakage characteristic signals by using the improved AOK-TFR;
[0198] The signal output module 5 is used to obtain a time-frequency spectrum of the acoustic wave signal by moving the rectangular time window, and process the time-frequency spectrum to obtain a leakage signal.
[0199] The specific definition of the pipeline leakage signal processing device can be found in the definition of the pipeline leakage signal processing method above, which will not be repeated here. Each module in the above pipeline leakage signal processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0200] In order to verify the pipeline leakage signal processing method and device based on VMD combined with AOK-TFR analysis proposed in this application, the following experiments were designed:
[0201] Figure 3 is a schematic diagram of an experimental site shown in an exemplary embodiment of the present application, Figure 4 is a schematic diagram of a pipeline leakage simulation test shown in an exemplary embodiment of the present application, Figure 5 is a flow chart of a specific method for processing a pipeline leakage signal according to an exemplary embodiment of the present application. Figure 6 is the original infrasound signal x in the case of pipeline leakage (t) The time domain waveform of Figure 7 is the original infrasound signal x (t) The waveform diagram of each IMF component obtained by VMD decomposition, Figure 8 is the effective infrasound signal x′ in the case of pipeline leakage (t) The time domain waveform of Fig. 9 R for 1mm leak hole diameter 2 / Δ2 The relationship diagram with the change of σ(Ψ), Fig.10 This is the time-frequency spectrum of the infrasound signal obtained before the method was improved (σ(Ψ) = 0.1). Fig.11 Time-frequency spectrum of the infrasound signal obtained after the improved method (σ(Ψ)=0.7).
[0202] The experimental parameters are as follows: The test pipeline system is a U-shaped PE pipe, the pipe is Φ110×10mm, the total length is 3599cm, the air pressure is 0.1MPa, the flow rate is 16m / s, Figure 3 As shown; in the straight section on the left side of the pipeline, an inlet ball valve, an upstream infrasonic sensor, a pressure sensor, and a turbine flowmeter are arranged in sequence from the pipeline inlet end; in the straight section on the right side of the pipeline, an outlet ball valve, a downstream infrasonic sensor, a pressure sensor, a turbine flowmeter, and a leakage port A are arranged in sequence from the pipeline outlet end; in the curved section of the pipeline, a pressure sensor and a leakage port B are arranged in sequence; adjustable leakage ports A and B with leakage apertures of 1mm, 2mm, and 3mm are used to simulate small leakages in urban pipelines, and an air compressor is used to simulate the operation process of urban gas pipelines. Upstream and downstream infrasonic sensors are installed at both ends of the pipeline, respectively, and connected to the digital network transmission instrument through cables, and then transmitted to the analysis software on the PC through the network cable, see Figure 4 , pipeline leakage signal processing method based on VMD combined with AOK-TFR analysis, such as Figure 5 As shown, the following steps are included:
[0203] S1: First, the infrasonic wave sensor is used to collect the original leakage data of the pipeline at the leakage apertures of 1mm, 2mm and 3mm, and a total of 3 groups of tests are conducted, each group of tests is conducted 17 times; the original infrasonic wave signal data of one group of leakage cases at the leakage aperture of 1mm is taken as an example to analyze its waveform. Figure 6 shown.
[0204] S2: Adopt the variational mode decomposition (VMD) algorithm to adaptively decompose the original infrasound signal x(t) in step S1 to obtain several IMF component signals of the corresponding signal. The VMD decomposition results of a set of data in the case of PE pipeline leakage are as follows: Figure 7 shown.
[0205] S3: Calculate the multi-scale permutation entropy (MPE) of the decomposed IMF components, identify and remove the noise components according to the permutation entropy value, take the remaining effective components to reconstruct the signal, and obtain the effective infrasound leakage characteristic signal x′ through fitting (t) And the corresponding effective time domain waveform of the infrasound leakage signal.
[0206] Table 1 shows the multi-scale permutation entropy of each IMF component after the leakage signal is decomposed.
[0207] IMF Components <![CDATA[IMF1]]> <![CDATA[IMF2]]> <![CDATA[IMF3]]> <![CDATA[IMF4]]> <![CDATA[IMF5]]> <![CDATA[IMF6]]> MPE 1.5065 1.3720 0.6247 0.5958 0.2364 0.2209
[0208] It can be seen from Table 1 that the multi-scale permutation entropy values of IMF1, IMF2, IMF3, and IMF4 are relatively large, while the multi-scale permutation entropy values of IMF5 and IMF6 are relatively small; therefore, among the IMF components obtained after the signal is decomposed by VMD, IMF1, IMF2, IMF3, and IMF4 contain a large amount of characteristic information of the leakage signal, and other components contain almost no effective leakage information. Therefore, IMF1, IMF2, IMF3, and IMF4 are selected as effective characteristic components for reconstruction, and the effective infrasound leakage characteristic signal x′ is obtained by fitting. (t) =[IMF1, IMF2, IMF3, IMF4] and the corresponding effective time domain waveform of the infrasound leakage signal is as follows Figure 8 This can significantly reduce the impact of background noise and residual components on leakage signals.
[0209] S4: Improvements to adaptive optimal kernel time-frequency analysis
[0210] By using the improved AOK-TFR to effectively identify the infrasound leakage characteristic signal x′ (t) For identification; wherein, the working process of the improved AOK-TFR is: setting the volume of the rectangular window function and the kernel function, and calculating the fuzzy function of the signal in the rectangular time window according to the size of the rectangular time window, and then using the convex hull estimation method to optimize the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in the constraint condition, and calculating the optimal kernel function of the signal in the rectangular time window function, and performing a two-dimensional Fourier transform after multiplying the optimal kernel function and the fuzzy function.
[0211] Step S4 specifically includes: the size of the expansion function σ(Ψ) is usually within the range of 0<σ(Ψ)≤1, and the size of the expansion function σ(Ψ) is calculated according to actual conditions.
[0212] After calculation, Fig. 9 Get R 2 / Δ 2 The relationship with the change of σ(Ψ) can be seen.
[0213] Table 2 shows the R in case of PE pipe leakage. 2 / Δ 2 Table of changes with σ(Ψ)
[0214]
[0215] Due to R 2 / Δ 2The smaller it is, the better the value of the corresponding expansion function σ(Ψ), so the value of the optimal expansion function σ(Ψ) is determined to be σ(Ψ)=0.7. At the same time, the size of σ(Ψ) has an important influence on the final signal processing result.
[0216] The expression of signal extraction from equation (30) is calculated to obtain P when σ(Ψ)=0.1 and σ(Ψ)=0.7. AOK The values of (t, ω) are shown in the following table:
[0217] Table 3 shows the signal time-frequency spectrum P corresponding to σ(Ψ)=0.1 and σ(Ψ)=0.7 respectively. AOK (t, ω) value
[0218] The value of the expansion function σ(Ψ) σ(Ψ)=0.1 σ(Ψ)=0.7 <![CDATA[Signal time-frequency spectrum P AOK (t, ω) value]]> 175 148
[0219] The improved clarity of the spectrum of the leakage signal corresponding to the improved expansion function σ(Ψ) value is:
[0220] ε=|(148.0-175.0) / 148.0|×100%=18.243%
[0221] It can be seen from the above calculation that the clarity of the leakage signal time-frequency spectrum corresponding to the improved expansion function σ(Ψ) value is improved by 18.243%. Therefore, the method in the present invention improves the suppression effect of cross-interference of the signal and the time-frequency resolution, and provides a new method and approach for pipeline leakage signal identification.
[0222] S5: Get the processed signal
[0223] The time-frequency spectrum of the infrasound signal obtained by moving the rectangular time window (such as Fig.11 The time-frequency spectrum of the infrasound signal obtained before the method was improved (when the expansion function σ(Ψ) = 0.1) (as shown in Fig.10 The grayscale transformation of the time-frequency spectrum is performed using MATLAB software to obtain a grayscale image, and the grayscale co-occurrence matrix of the grayscale image is obtained. Then, the eigenvalues of the infrasonic wave signal of the PE pipeline leakage are extracted, and each eigenvalue is identified. Finally, a more real and higher-resolution leakage signal is identified, thereby obtaining a more accurate leakage situation.
[0224] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0225] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A pipeline leakage signal processing method, characterized in that: include: Collect the original infrasound signal of pipeline leakage x (t) ; The original signal x is transformed into (t) Decompose into several IMF components; Calculate the multi-scale permutation entropy (MPE) of the decomposed IMF components, identify and remove the noise components according to the permutation entropy value, take the remaining effective components to reconstruct the signal, and obtain the effective infrasound leakage characteristic signal x' by fitting (t) And the corresponding effective time domain waveform of the infrasound leakage signal; The improved AOK-TFR is used to identify effective infrasound leakage characteristic signals; A time-frequency spectrum diagram of the acoustic wave signal is obtained by moving the rectangular time window, and the time-frequency spectrum diagram is processed to obtain a leakage signal.
2. The pipeline leakage signal processing method according to claim 1, characterized in that: The working process of the improved AOK-TFR is as follows: setting the volume of the rectangular window function and the kernel function, and calculating the fuzzy function of the signal in the rectangular time window according to the size of the rectangular time window, and then using the convex hull estimation method to optimize the expansion function σ(Ψ) in the radial Gaussian kernel low-pass function in the constraint condition, and calculating the optimal kernel function of the signal in the rectangular time window function, and performing a two-dimensional Fourier transform after multiplying the optimal kernel function and the fuzzy function.
3. The pipeline leakage signal processing method according to claim 1, characterized in that: The variational mode decomposition algorithm comprises: The collected pipeline leakage infrasound original signal x (t) Decompose into k intrinsic mode function components using VMD; Solving variational problems.
4. The pipeline leakage signal processing method according to claim 3, characterized in that: The collected pipeline leakage infrasound original signal x (t) Decomposing into k intrinsic mode function components using VMD further includes: By solving the constrained variational problem, the original signal X(t) is decomposed into a series of IMF components; The quadratic penalty factor and Lagrangian multiplication operator are introduced to transform the constrained variational problem into an unconstrained variational problem and construct an extended Lagrangian expression. The multiplier exchange direction algorithm is used to alternately update and seek the "saddle point" of the extended Lagrangian expression. When the judgment accuracy θ>0, the final saddle point is the optimal solution, and k modal components are obtained.
5. The pipeline leakage signal processing method according to claim 4, characterized in that: The calculating of the multi-scale permutation entropy (MPE) of the decomposed IMF components, identifying and removing noise components according to the permutation entropy value, taking the remaining effective components to reconstruct the signal, and obtaining an effective infrasound leakage characteristic signal and a corresponding effective time domain waveform of the infrasound leakage signal by fitting, further comprises: The new analytical signals of k modes are processed by multi-scale coarse-graining; Reconstruct time series; Sort the time reconstruction sequence in ascending order; Calculate the permutation entropy of the scale factor; The permutation entropy calculated above is normalized.
6. The pipeline leakage signal processing method according to claim 5, characterized in that: Each effective characteristic component is fitted into an effective infrasound leakage characteristic signal by the following formula: x’ (t) =[IMF1,IMF2,......,IMF m ]; Among them, x' (t) IMF is an effective infrasound leakage characteristic signal. m is the effective characteristic component.
7. The pipeline leakage signal processing method according to claim 6, characterized in that: Calculate the fuzzy function of the signal in the rectangular time window, specifically: Let the effective signal x' (t) Use S (t) Indicates that the instantaneous correlation function is defined as: Where t is the instantaneous time in seconds; τ is the signal S (t) A time delay of S (t) is the signal function to be analyzed; For S (t) The conjugate function of S; R(t, τ) is (t) The instantaneous correlation function of .
8. The pipeline leakage signal processing method according to claim 7, characterized in that: The optimal kernel function expression for calculating the rectangular time window function is: Where: t is the instantaneous time, in seconds; r is the radius variable in polar coordinates, Ψ is the polar coordinate variable in the signal fuzzy function domain, (θ is the angle between the radial and horizontal directions); A(t:r,Ψ) is the short-time ambiguity function of the signal; Φ(t:r,Ψ) is the kernel function in polar coordinates.
9. The pipeline leakage signal processing method according to claim 1, characterized in that: The processing of the time-frequency spectrum diagram is processing the time-frequency spectrum diagram using MATLAB software, which further includes: Perform grayscale conversion processing on the time-frequency spectrum diagram using MATLAB software to obtain a grayscale diagram; Obtaining a gray level co-occurrence matrix of the gray level image; The characteristic value of the natural gas pipeline leakage acoustic wave signal is extracted based on the gray level co-occurrence matrix.
10. A pipeline leakage signal processing device, characterized in that: include: Signal acquisition module, used to collect the original signal of pipeline leakage infrasound x (t) ; The modal decomposition module is used to transform the original signal x into (t) Decompose into several IMF components; A calculation fitting module is used to calculate the multi-scale permutation entropy (MPE) of the decomposed IMF components, identify and remove the noise components according to the permutation entropy value, reconstruct the signal by taking the remaining effective components, and obtain the effective infrasound leakage characteristic signal x' by fitting. (t) And the corresponding effective time domain waveform of the infrasound leakage signal; A signal recognition module, used to recognize effective infrasound leakage characteristic signals using the improved AOK-TFR; The signal output module is used to obtain a time-frequency spectrum of the acoustic wave signal by moving the rectangular time window, and process the time-frequency spectrum to obtain a leakage signal.
Citation Information
Patent Citations
De-noising method for electric vibration signal of wind driven generator and storage medium
CN110135293A
Rolling bearing fault diagnosis method based on probability output elastic convex hull
CN111044287A
Pipeline leakage infrasonic wave signal analysis method and system
CN114441111A
Fluid pipeline leakage detection method based on parameter optimization variational mode decomposition
CN115628863A
RPCA moving target detection method based on data reconstruction
CN115856892A
Cited By
Distributed optical fiber measuring method and measuring system for water leakage of long-distance fire-fighting pipeline
CN119860505A
