Pipeline leakage positioning method and device, electronic equipment and storage medium

The pipeline leakage point time delay positioning model is constructed through Weibull M transform minimum mean square algorithm, which solves the problem of low positioning accuracy in traditional methods, and achieves higher pipeline leakage point positioning accuracy and signal processing robustness.

CN118912394APending Publication Date: 2024-11-08SEVNCE ROBOTICS CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

The existing pipeline leakage positioning methods are relatively backward in sound signal processing. The traditional minimum mean square algorithm is not robust to highly interfered error signals, resulting in low accuracy of pipeline leakage points positioning.

Method used

The Weibull M transform minimum mean square algorithm is used to process the signal acquisition data, build a time delay positioning model for pipeline leakage point, update the model weight through error signals, improve the robustness and convergence speed of signal processing, thereby improving the accuracy of pipeline leakage point positioning Spend.

Benefits of technology

Through the use of Weibull M transform minimum mean square algorithm, the accuracy of pipeline leakage point positioning is effectively improved, the stable processing and rapid convergence of signal acquisition data is ensured, and the positioning accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118912394A_ABST
    Figure CN118912394A_ABST
Patent Text Reader

Abstract

The invention relates to a pipeline leakage positioning technology, and discloses a pipeline leakage positioning method which comprises the following steps: acquiring signal acquisition data of a sensor node of a leaked pipeline, and acquiring an expected signal in the signal acquisition data; constructing a pipeline leakage point time delay positioning model, and performing signal processing on the signal acquisition data by using a Weibull M transform least mean square algorithm to obtain signal output data; calculating an error signal by using the signal output data and the expected signal, and updating the weight of the pipeline leakage point time delay positioning model according to the error signal to obtain a standard pipeline leakage point time delay positioning model; and performing time delay calculation on the signal acquisition data by using a standard pipeline leakage point time delay positioning model to obtain signal time delay, and positioning a pipeline leakage point according to the signal time delay. The invention further provides a pipeline leakage positioning device, electronic equipment and a storage medium. According to the invention, the accuracy of pipeline leakage positioning can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pipeline leakage locating, and in particular to a pipeline leakage locating method, device, electronic equipment and storage medium. Background Art

[0002] Pipeline leak location refers to the use of technical means to detect and determine the location of pipeline leaks. The location of the leak is usually calculated using the sensor position and the sound signal collected by the sensor. For example, two sensor nodes are set on both sides of the pipeline leak, and the pipeline leak is located based on the sound signals collected by the two sensors. Pipeline leak location is of great significance for ensuring the safe operation of the pipeline system, reducing economic losses and preventing environmental pollution.

[0003] The existing pipeline leakage location is relatively backward in the processing of sound signals. It usually uses the traditional least mean square (LMS) algorithm for signal processing. However, the cost function used in the traditional least mean square (LMS) algorithm based on adaptive signal processing is the mean square error (MSE) function, and its gradient is linearly related to the amplitude of the error signal, which leads to the traditional least mean square (LMS) algorithm being not robust to error signals with strong interference, resulting in low accuracy in locating pipeline leakage points. Summary of the invention

[0004] The present invention provides a pipeline leakage locating method, device, electronic equipment and storage medium, which can improve the accuracy of pipeline leakage locating.

[0005] To achieve the above object, the present invention provides a pipeline leakage locating method, comprising:

[0006] Acquire signal acquisition data of sensor nodes of the leaking pipeline, and acquire expected signals from the signal acquisition data;

[0007] Constructing a pipeline leakage point time delay positioning model, and using the Weibull M transform least mean square algorithm to perform signal processing on the signal acquisition data to obtain signal output data;

[0008] Calculating an error signal using the signal output data and the expected signal, and updating the weight of the pipeline leakage point time delay location model according to the error signal to obtain a standard pipeline leakage point time delay location model;

[0009] The standard pipeline leakage point time delay positioning model is used to perform time delay calculation on the signal acquisition data to obtain a signal time delay, and the pipeline leakage point is positioned according to the signal time delay.

[0010] Optionally, the step of constructing a pipeline leakage point time delay positioning model includes:

[0011] Acquire the signal acquisition data of the sensor nodes and the sensor distance between the sensor nodes;

[0012] The pipeline leakage point time delay positioning model is constructed according to the propagation speed of the signal acquisition data and the sensor distance.

[0013] Optionally, the signal processing of the signal acquisition data using the Weibull M transform least mean square algorithm includes:

[0014] The signal acquisition data is processed in sections according to the filter order in the Weibull M transform least mean square algorithm to obtain sectioned signal acquisition data;

[0015] The weight vector of the filter in the Weibull M transform least mean square algorithm is obtained, and the signal output data is calculated according to the weight vector and the segmented signal acquisition number.

[0016] Optionally, the acquiring the expected signal in the signal acquisition data includes:

[0017] A noise signal in the signal acquisition data is acquired, and the expected signal is calculated according to the signal acquisition data and the noise signal.

[0018] Optionally, updating the weight of the pipeline leakage point time delay positioning model according to the error signal includes:

[0019] updating the cost function of the pipeline leakage point time delay location model according to the error signal;

[0020] The weights are updated using a gradient descent method according to the cost function.

[0021] Optionally, the updating of the cost function of the pipeline leakage point time delay positioning model according to the error signal includes:

[0022] The cost function ξ(n) of the pipeline leakage point time delay location model is updated using the following formula:

[0023]

[0024] Among them, λ is the scale parameter, α is the shape parameter, usually α>0, and e(n) is the error signal.

[0025] Optionally, the pipeline leakage point time delay positioning model is used to perform time delay calculation on the signal acquisition data to obtain the signal time delay, using the following formula:

[0026]

[0027] Where argmax[·] represents the parameter corresponding to the maximum value of the function, Sinc(·) represents sinc interpolation, M is the order of the filter, w(i) is the i-th weight vector of the filter, and n is the time interval of the signal acquisition data collected by the sensor node.

[0028] In order to solve the above problems, the present invention also provides a pipeline leakage locating device, the device comprising:

[0029] A signal processing module, used to obtain signal acquisition data of sensor nodes of the leaking pipeline, and obtain a desired signal from the signal acquisition data;

[0030] A model building module is used to build a pipeline leakage point time delay positioning model, and use the Weibull M transform least mean square algorithm to perform signal processing on the signal acquisition data to obtain signal output data; use the signal output data and the expected signal to calculate an error signal, and update the weight of the pipeline leakage point time delay positioning model according to the error signal to obtain a standard pipeline leakage point time delay positioning model;

[0031] The pipeline leakage point positioning calculation module is used to use the standard pipeline leakage point time delay positioning model to perform time delay calculation on the signal acquisition data to obtain the signal time delay, and locate the pipeline leakage point according to the signal time delay.

[0032] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0033] at least one processor; and,

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the pipeline leakage locating method described above.

[0036] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above pipeline leakage locating method.

[0037] The present invention can facilitate the location calculation of the leakage point of the leaking pipeline by acquiring the expected signal in the signal acquisition data. By constructing a pipeline leakage point time delay location model, the calculation of the pipeline leakage point can be converted into a time delay problem, simplifying the calculation process of the pipeline leakage point. In addition, the signal acquisition data is processed by using the Weibull M transform least mean square algorithm, and the error signal is calculated by using the signal output data and the expected signal, and the weight of the pipeline leakage point time delay location model is updated according to the error signal. The cost function set in the Weibull M transform least mean square algorithm can effectively ensure the stability of the weight update and can achieve the robustness and convergence speed of processing the collected signal acquisition data, thereby improving the accuracy of pipeline leakage point location. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a pipeline leakage locating method provided by an embodiment of the present invention;

[0039] Figure 2 A pipeline leakage point time delay positioning model diagram of a pipeline leakage positioning method provided by an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of the time delay estimation principle of a pipeline leakage location method provided by an embodiment of the present invention;

[0041] Figure 4 A functional module diagram of a pipeline leakage locating device provided by one embodiment of the present invention;

[0042] Figure 5 A schematic diagram of the structure of an electronic device for implementing a pipeline leakage locating method provided in an embodiment of the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] The embodiment of the present application provides a pipeline leakage location method. The execution subject of the pipeline leakage location method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the pipeline leakage location method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0046] Reference Figure 1 , which is a flow chart of a pipeline leakage locating method provided by an embodiment of the present invention.

[0047] In this embodiment, the pipeline leakage locating method includes:

[0048] S1. Acquire signal acquisition data of sensor nodes of a leaking pipeline, and acquire an expected signal from the signal acquisition data.

[0049] In the embodiment of the present invention, the sensor node refers to a device installed on the surface of a pipeline for collecting leakage signals generated by a leakage point of the pipeline, including but not limited to a sound wave sensor.

[0050] In the embodiment of the present invention, the expected signal refers to an ideal signal in the case of adaptive filtering and signal processing without noise interference.

[0051] As an embodiment of the present invention, the obtaining of the expected signal in the signal acquisition data includes:

[0052] A noise signal in the signal acquisition data is acquired, and the expected signal is calculated according to the signal acquisition data and the noise signal.

[0053] In the embodiment of the present invention, the noise signal refers to a signal generated by the surrounding environment or the collection system that is additionally collected in addition to the collection signal generated at the collection pipeline leakage point.

[0054] Exemplarily, the signal acquisition data of the sensor node of the leaking pipeline obtained in the embodiment of the present invention may be as follows:

[0055]

[0056] Among them, s0(t) is the leakage source signal; s1(t) represents the signal received by sensor 1, and s2(t) represents the signal received by sensor 2; n1(t) and n2(t) represent the noise signals generated by the environmental impact and the acquisition system.

[0057] S2. Construct a pipeline leakage point time delay positioning model, and use Weibull M transform least mean square algorithm to process the signal acquisition data to obtain signal output data.

[0058] In the embodiment of the present invention, the Weibull M transform least mean square algorithm refers to the Weibull distribution least mean square error algorithm.

[0059] As an embodiment of the present invention, the construction of a pipeline leakage point time delay positioning model includes:

[0060] Acquire the signal acquisition data of the sensor nodes and the sensor distance between the sensor nodes;

[0061] The pipeline leakage point time delay positioning model is constructed according to the propagation speed of the signal acquisition data and the sensor distance.

[0062] In the embodiment of the present invention, the pipeline leakage point time delay positioning model can use the following formula to locate the position of the pipeline leakage point:

[0063]

[0064] Wherein, d1 is the distance from the first sensor node to the pipeline leakage point, D is the distance between the two sensor nodes, c is the propagation speed of sound waves, and Δt is the time delay between the signal acquisition data collected by the two sensor nodes.

[0065] Furthermore, the signal acquisition data is processed using the Weibull M transform least mean square algorithm, including:

[0066] The signal acquisition data is processed in sections according to the filter order in the Weibull M transform least mean square algorithm to obtain sectioned signal acquisition data;

[0067] The weight vector of the filter in the Weibull M transform least mean square algorithm is obtained, and the signal output data is calculated according to the weight vector and the segmented signal acquisition number.

[0068] In the embodiment of the present invention, the signal acquisition data is processed in sections according to the filter order in the Weibull M transform least mean square algorithm, and the following formula can be used:

[0069] x(n)=[u(n),u(n-1),…,u(n-M+1)] t

[0070] Where M is the filter order, u(n) is the signal acquisition data, x(n) is the signal acquisition data tap vector, [·] T Represents a transpose operation.

[0071] Exemplarily, the weight vector of the M-th order filter can be expressed as:

[0072] W(n)=[w1(n),w2(n),…,w M (n)] T

[0073] Then, the signal output data y(n) is obtained by the dot product of the tap vector and the filter weight vector W(n):

[0074]

[0075] Among them, i is the segmented signal acquisition data of the i-th filter, w i (n) is the i-th weight vector in the weight vector of the M-order filter.

[0076] S3. Calculate an error signal using the signal output data and the expected signal, and update the weight of the pipeline leakage point time delay location model according to the error signal to obtain a standard pipeline leakage point time delay location model.

[0077] As an embodiment of the present invention, the calculating the error signal using the signal output data and the expected signal includes:

[0078] The error signal is calculated using the following formula:

[0079] e(n)=d(n)-y(n); then e(n)=d(n)-W T (n)x(n)

[0080] Among them, d(n) is the desired signal and y(n) is the signal output data.

[0081] As an embodiment of the present invention, the step of updating the weight of the pipeline leakage point time delay location model according to the error signal includes:

[0082] updating the cost function of the pipeline leakage point time delay location model according to the error signal;

[0083] The weights are updated using a gradient descent method according to the cost function.

[0084] In the embodiment of the present invention, the cost function refers to a function used to adjust the weight of the filter, and the output signal can be made as close to the expected signal as possible by minimizing the cost function, thereby achieving the best filtering effect.

[0085] Further, the cost function of the pipeline leakage point time delay positioning model is updated according to the error signal, including:

[0086] The cost function ξ(n) of the pipeline leakage point time delay location model is updated using the following formula:

[0087]

[0088] Among them, λ is the scale parameter, α is the shape parameter, usually α>0, and e(n) is the error signal.

[0089] In the embodiment of the present invention, the weight is updated by using the gradient descent method according to the cost function, using the following formula:

[0090]

[0091] Among them, w(n+1) is the updated weight, w(n) is the weight value of the nth iteration, and μ is the first learning rate.

[0092] For example, the LMS (least mean square) algorithm [ξ(n) = e 2 (n)] The gradient of the cost function changes with the error to form a straight line with a fixed slope passing through the origin. The gradient is linearly related to the error. The larger the error, the greater the gradient change, which reduces the robustness of the algorithm to strong disturbances. The cost function gradient given in can be adjusted according to different shape and scale parameters. When λ is a fixed value, the cost function gradient for α=2 is linear for lower error values, similar to the LMS algorithm. However, for α=4 and α=6, the cost function gradient is approximately zero for error values ​​close to zero, reducing the learning of such error values. Therefore, when α=2 is used as the shape parameter, under this parameter, when the error is small, the relationship between GCF (gradient of the cost function) and the error is similar to the LMS algorithm, and when the error is large, the error signal has the least effect on the weight update. Where GCF is the gradient of the cost function.

[0093] Utilization Japanese style The update rule of the proposed algorithm for weight update in the range of α=2 is given.

[0094]

[0095] Where η is the second learning rate, and taking the expectation of the square of the l2 norm on both sides of the previous equation yields:

[0096]

[0097] Where, θ(n+1)=E[||w e (n+1)|| 2 ] and θ(n)=E[||w e (n)|| 2 ] In order to obtain stable convergence, θ(n+1) needs to satisfy the following conditions

[0098] θ(n+1)≤θ(n)

[0099] Therefore, it is necessary to calculate the limit of η, which is calculated using the following formula.

[0100]

[0101] When the adaptive filter converges, the optimal weight vector W(n) and signal output data y(n) can be obtained.

[0102] S4. Using the standard pipeline leakage point time delay positioning model, a time delay calculation is performed on the signal acquisition data to obtain a signal time delay, and the pipeline leakage point is positioned according to the signal time delay.

[0103] As an embodiment of the present invention, the pipeline leakage point time delay location model is used to perform time delay calculation on the signal acquisition data to obtain the signal time delay Δt, using the following formula:

[0104]

[0105] Where argmax[·] represents the parameter corresponding to the maximum value of the function, Sinc(·) represents sinc interpolation, M is the order of the filter, w(i) is the i-th weight vector of the filter, and n is the time interval of the signal acquisition data collected by the sensor node.

[0106] The embodiment of the present invention can facilitate the location calculation of the leakage point of the leaking pipeline by acquiring the expected signal in the signal acquisition data. By constructing a pipeline leakage point time delay location model, the calculation of the pipeline leakage point can be converted into a time delay problem, simplifying the calculation process of the pipeline leakage point. In addition, the signal acquisition data is processed by using the Weibull M transform least mean square algorithm, and the error signal is calculated by using the signal output data and the expected signal, and the weight of the pipeline leakage point time delay location model is updated according to the error signal, so as to achieve the robustness and convergence speed of processing the collected signal acquisition data, thereby improving the accuracy of pipeline leakage point location.

[0107] like Figure 2 , which is a pipeline leakage point time delay positioning model diagram of a pipeline leakage positioning method provided by an embodiment of the present invention.

[0108] like Figure 3 FIG. 1 is a schematic diagram showing a time delay estimation principle of a pipeline leakage location method provided by an embodiment of the present invention.

[0109] like Figure 4 , which is a functional module diagram of a pipeline leakage locating device provided by an embodiment of the present invention.

[0110] The pipeline leakage locating device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the pipeline leakage locating device 100 can include a signal processing module 101, a model building module 102 and a pipeline leakage point locating calculation module 103.

[0111] The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, and is stored in a memory of the electronic device.

[0112] In this embodiment, the functions of each module / unit are as follows:

[0113] The signal processing module 101 is used to obtain signal acquisition data of sensor nodes of the leaking pipeline, and obtain the expected signal in the signal acquisition data.

[0114] In the embodiment of the present invention, the sensor node refers to a device installed on the surface of a pipeline for collecting leakage signals generated by a leakage point of the pipeline, including but not limited to a sound wave sensor.

[0115] In the embodiment of the present invention, the expected signal refers to an ideal signal in the case of adaptive filtering and signal processing without noise interference.

[0116] As an embodiment of the present invention, the obtaining of the expected signal in the signal acquisition data includes:

[0117] A noise signal in the signal acquisition data is acquired, and the expected signal is calculated according to the signal acquisition data and the noise signal.

[0118] In the embodiment of the present invention, the noise signal refers to a signal generated by the surrounding environment or the collection system that is additionally collected in addition to the collection signal generated at the collection pipeline leakage point.

[0119] Exemplarily, the signal acquisition data of the sensor node of the leaking pipeline obtained in the embodiment of the present invention may be as follows:

[0120]

[0121] Among them, s0(t) is the leakage source signal; s1(t) represents the signal received by sensor 1, and s2(t) represents the signal received by sensor 2; n1(t) and n2(t) represent the noise signals generated by the environmental impact and the acquisition system.

[0122] The model building module 102 is used to build a pipeline leakage point time delay positioning model, and use the WeibullM transform least mean square algorithm to process the signal acquisition data to obtain signal output data; use the signal output data and the expected signal to calculate the error signal, and update the weight of the pipeline leakage point time delay positioning model according to the error signal to obtain a standard pipeline leakage point time delay positioning model.

[0123] In the embodiment of the present invention, the Weibull M transform least mean square algorithm refers to the Weibull distribution least mean square error algorithm.

[0124] As an embodiment of the present invention, the construction of a pipeline leakage point time delay positioning model includes:

[0125] Acquire the signal acquisition data of the sensor nodes and the sensor distance between the sensor nodes;

[0126] The pipeline leakage point time delay positioning model is constructed according to the propagation speed of the signal acquisition data and the sensor distance.

[0127] In the embodiment of the present invention, the pipeline leakage point time delay positioning model can use the following formula to locate the position of the pipeline leakage point:

[0128]

[0129] Wherein, d1 is the distance from the first sensor node to the pipeline leakage point, D is the distance between the two sensor nodes, c is the propagation speed of sound waves, and Δt is the time delay between the signal acquisition data collected by the two sensor nodes.

[0130] Furthermore, the signal acquisition data is processed using the Weibull M transform least mean square algorithm, including:

[0131] The signal acquisition data is processed in sections according to the filter order in the Weibull M transform least mean square algorithm to obtain sectioned signal acquisition data;

[0132] The weight vector of the filter in the Weibull M transform least mean square algorithm is obtained, and the signal output data is calculated according to the weight vector and the segmented signal acquisition number.

[0133] In the embodiment of the present invention, the signal acquisition data is processed in sections according to the filter order in the Weibull M transform least mean square algorithm, and the following formula can be used:

[0134] x(n)=[u(n),u(n-1),…,u(n-M+1)] T

[0135] Where M is the filter order, u(n) is the signal acquisition data, x(n) is the signal acquisition data tap vector, [·] T Represents a transpose operation.

[0136] Exemplarily, the weight vector of the M-th order filter can be expressed as:

[0137] W(n)=[w1(n),w2(n),…,w M (n)] T

[0138] Then, the signal output data y(n) is obtained by the dot product of the tap vector and the filter weight vector W(n):

[0139]

[0140] Among them, i is the segmented signal acquisition data of the i-th filter, w i (n) is the i-th weight vector in the weight vector of the M-order filter.

[0141] S3. Calculate an error signal using the signal output data and the expected signal, and update the weight of the pipeline leakage point time delay location model according to the error signal to obtain a standard pipeline leakage point time delay location model.

[0142] As an embodiment of the present invention, the calculating the error signal using the signal output data and the expected signal includes:

[0143] The error signal is calculated using the following formula:

[0144] e(n)=d(n)-y(n); then e(n)=d(n)-W T (n)x(n)

[0145] Among them, d(n) is the desired signal and y(n) is the signal output data.

[0146] As an embodiment of the present invention, the step of updating the weight of the pipeline leakage point time delay location model according to the error signal includes:

[0147] updating the cost function of the pipeline leakage point time delay location model according to the error signal;

[0148] The weights are updated using a gradient descent method according to the cost function.

[0149] In the embodiment of the present invention, the cost function refers to a function used to adjust the weight of the filter, and the output signal can be made as close to the expected signal as possible by minimizing the cost function, thereby achieving the best filtering effect.

[0150] Further, the cost function of the pipeline leakage point time delay positioning model is updated according to the error signal, including:

[0151] The cost function ξ(n) of the pipeline leakage point time delay location model is updated using the following formula:

[0152]

[0153] Among them, λ is the scale parameter, α is the shape parameter, usually α>0, and e(n) is the error signal.

[0154] In the embodiment of the present invention, the weight is updated by using the gradient descent method according to the cost function, using the following formula:

[0155]

[0156] Among them, w(n+1) is the updated weight, w(n) is the weight value of the nth iteration, and μ is the first learning rate.

[0157] For example, the LMS (least mean square) algorithm [ξ(n) = e 2 (n)] The gradient of the cost function changes with the error to form a straight line with a fixed slope passing through the origin. The gradient is linearly related to the error. The larger the error, the greater the gradient change, which reduces the robustness of the algorithm to strong disturbances. The cost function gradient given in can be adjusted according to different shape and scale parameters. When λ is a fixed value, the cost function gradient for α=2 is linear for lower error values, similar to the LMS algorithm. However, for α=4 and α=6, the cost function gradient is approximately zero for error values ​​close to zero, reducing the learning of such error values. Therefore, when α=2 is used as the shape parameter, under this parameter, when the error is small, the relationship between GCF (gradient of the cost function) and the error is similar to the LMS algorithm, and when the error is large, the error signal has the least effect on the weight update. Where GCF is the gradient of the cost function.

[0158]

[0159] The update rule for weight update in the range of α=2

[0160]

[0161] Where η is the second learning rate, and taking the expectation of the square of the l2 norm on both sides of the previous equation yields:

[0162]

[0163] Where, θ(n+1)=E[||w e (n+1)|| 2 ] and θ(n)=E[||w e (n)|| 2 ] In order to obtain stable convergence, θ(n+1) needs to satisfy the following conditions

[0164] θ(n+1)≤θ(n)

[0165] Therefore, it is necessary to calculate the limit of η, which is calculated using the following formula.

[0166]

[0167] When the adaptive filter converges, the optimal weight vector W(n) and signal output data y(n) can be obtained.

[0168] The pipeline leakage point positioning calculation module 103 is used to use the standard pipeline leakage point time delay positioning model to perform time delay calculation on the signal acquisition data to obtain signal time delay, and locate the pipeline leakage point according to the signal time delay.

[0169] As an embodiment of the present invention, the pipeline leakage point time delay location model is used to perform time delay calculation on the signal acquisition data to obtain the signal time delay Δt, using the following formula:

[0170]

[0171] Where argmax[·] represents the parameter corresponding to the maximum value of the function, Sinc(·) represents sinc interpolation, M is the order of the filter, w(i) is the i-th weight vector of the filter, and n is the time interval of the signal acquisition data collected by the sensor node.

[0172] Reference Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a pipeline leakage locating method provided by an embodiment of the present invention.

[0173] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a pipeline leakage locating method program.

[0174] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a pipeline leak location method program, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.

[0175] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device, such as the code of a pipeline leakage positioning method program, but also be used to temporarily store data that has been output or is to be output.

[0176] The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0177] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0178] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0179] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0180] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0181] The pipeline leakage locating method program stored in the memory 11 of the electronic device is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0182] Acquire signal acquisition data of sensor nodes of the leaking pipeline, and acquire expected signals from the signal acquisition data;

[0183] Constructing a pipeline leakage point time delay positioning model, and using the Weibull M transform least mean square algorithm to perform signal processing on the signal acquisition data to obtain signal output data;

[0184] Calculating an error signal using the signal output data and the expected signal, and updating the weight of the pipeline leakage point time delay location model according to the error signal to obtain a standard pipeline leakage point time delay location model;

[0185] The standard pipeline leakage point time delay positioning model is used to perform time delay calculation on the signal acquisition data to obtain a signal time delay, and the pipeline leakage point is positioned according to the signal time delay.

[0186] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0187] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0188] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0189] Acquire signal acquisition data of sensor nodes of the leaking pipeline, and acquire expected signals from the signal acquisition data;

[0190] Constructing a pipeline leakage point time delay positioning model, and using the Weibull M transform least mean square algorithm to perform signal processing on the signal acquisition data to obtain signal output data;

[0191] Calculating an error signal using the signal output data and the expected signal, and updating the weight of the pipeline leakage point time delay location model according to the error signal to obtain a standard pipeline leakage point time delay location model;

[0192] The standard pipeline leakage point time delay positioning model is used to perform time delay calculation on the signal acquisition data to obtain a signal time delay, and the pipeline leakage point is positioned according to the signal time delay.

[0193] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0194] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0195] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0196] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0197] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0198] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0199] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0200] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0201] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A pipeline leakage locating method, characterized in that: The method comprises: Acquire signal acquisition data of sensor nodes of the leaking pipeline, and acquire expected signals from the signal acquisition data; Constructing a pipeline leakage point time delay positioning model, and using the Weibull M transform least mean square algorithm to perform signal processing on the signal acquisition data to obtain signal output data; Calculating an error signal using the signal output data and the expected signal, and updating the weight of the pipeline leakage point time delay location model according to the error signal to obtain a standard pipeline leakage point time delay location model; The standard pipeline leakage point time delay positioning model is used to perform time delay calculation on the signal acquisition data to obtain a signal time delay, and the pipeline leakage point is positioned according to the signal time delay.

2. The pipeline leakage locating method according to claim 1, characterized in that: The method of constructing a pipeline leakage point time delay positioning model comprises: Acquire the signal acquisition data of the sensor nodes and the sensor distance between the sensor nodes; The pipeline leakage point time delay positioning model is constructed according to the propagation speed of the signal acquisition data and the sensor distance.

3. The pipeline leakage locating method according to claim 1, characterized in that: The signal acquisition data is processed by using the Weibull M transform least mean square algorithm, including: The signal acquisition data is processed in sections according to the filter order in the Weibull M transform least mean square algorithm to obtain sectioned signal acquisition data; The weight vector of the filter in the Weibull M transform least mean square algorithm is obtained, and the signal output data is calculated according to the weight vector and the segmented signal acquisition number.

4. The pipeline leakage locating method according to claim 1, characterized in that: The obtaining of the expected signal in the signal acquisition data comprises: A noise signal in the signal acquisition data is acquired, and the expected signal is calculated according to the signal acquisition data and the noise signal.

5. The pipeline leakage locating method according to claim 1, characterized in that: The step of updating the weight of the pipeline leakage point time delay positioning model according to the error signal comprises: updating the cost function of the pipeline leakage point time delay location model according to the error signal; The weights are updated using a gradient descent method according to the cost function.

6. The pipeline leakage locating method according to claim 5, characterized in that: The cost function of the pipeline leakage point time delay positioning model is updated according to the error signal, including: The cost function ξ(n) of the pipeline leakage point time delay location model is updated using the following formula: Among them, λ is the scale parameter, α is the shape parameter, usually α>0, and e(n) is the error signal.

7. The pipeline leakage locating method according to claim 1, characterized in that: The pipeline leakage point time delay positioning model is used to calculate the time delay of the signal acquisition data to obtain the signal time delay, using the following formula: Where argmax[·] represents the parameter corresponding to the maximum value of the function, Sinc(·) represents sinc interpolation, M is the order of the filter, w(i) is the i-th weight vector of the filter, and n is the time interval of the signal acquisition data collected by the sensor node.

8. A pipeline leakage locating device, characterized in that: The device can implement the pipeline leakage locating method according to any one of claims 1 to 7, and the device comprises: A signal processing module, used to obtain signal acquisition data of sensor nodes of the leaking pipeline, and obtain a desired signal from the signal acquisition data; A model building module is used to build a pipeline leakage point time delay positioning model, and use the Weibull M transform least mean square algorithm to perform signal processing on the signal acquisition data to obtain signal output data; use the signal output data and the expected signal to calculate an error signal, and update the weight of the pipeline leakage point time delay positioning model according to the error signal to obtain a standard pipeline leakage point time delay positioning model; The pipeline leakage point positioning calculation module is used to use the standard pipeline leakage point time delay positioning model to perform time delay calculation on the signal acquisition data to obtain the signal time delay, and locate the pipeline leakage point according to the signal time delay.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the pipeline leakage locating method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the pipeline leakage locating method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Self-adaptive phase spectrum time delay estimation method

    CN110389007A

  • Apparatus for sensing leakage of pipe using distance-difference frequency analysis and method thereof

    KR102038689B1

  • Negative pressure wave monitoring based leak detection method of multipath pipeline network

    US20230408364A1

Cited By

  • Pipeline leakage monitoring method, system and equipment based on Internet of Things platform and medium

    CN119289300A