Sensor positioning method, device, equipment and medium for underground pipe network
By installing pressure sensors at key nodes of the underground pipeline system and building and comparing the pressure difference matrix, the problem of long and high cost of leakage detection in the existing technology is solved, and rapid and accurate leakage positioning is achieved, and the safety and management efficiency of the pipeline system are improved.
Patent Information
- Application Number
- CN202510786761.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2045-06-13
AI Technical Summary
In the prior art, the underground pipeline leakage detection method consumes time, is costly and has limited accuracy, making it difficult to quickly and accurately locate the leakage points, affecting water resources and environmental safety.
Install pressure sensors at key nodes of the underground pipeline system to build a real-time pressure difference matrix, make leakage judgments by comparing with the reference pressure difference matrix, and determine the direction of fluid flow to locate the leakage point.
It realizes rapid and accurate leakage detection and positioning of underground pipeline systems, improves operational safety, reduces environmental risks and maintenance costs, and improves management efficiency.
Smart Images

Figure CN120316396B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of underground pipe network leakage positioning, and in particular to a sensor positioning method, device, equipment and medium for an underground pipe network. Background Art
[0002] Underground pipeline networks are a vital component of urban infrastructure, and their safe operation is crucial to the normal functioning of cities. However, pipeline leakage is a common and unavoidable problem that can lead to water waste, environmental pollution, and even safety hazards. Traditional pipeline leak detection methods typically rely on experience and simple physical measurements, making it difficult to accurately and quickly locate leak points.
[0003] Leaks in underground pipe networks not only waste water resources but can also lead to land subsidence, groundwater pollution, and other environmental problems. Therefore, quickly and accurately locating leaks is crucial for underground pipe network maintenance. Existing leak locating methods often rely on physical detection or empirical judgment, which are often time-consuming, costly, and have limited accuracy. Summary of the Invention
[0004] In view of the deficiencies of the prior art, the present invention provides a sensor positioning method, device, equipment and medium for an underground pipe network.
[0005] The present invention solves the above technical problems through the following technical means:
[0006] A first aspect of the present invention provides a sensor positioning method for an underground pipe network, comprising the following steps:
[0007] Step S1: Install pressure sensors in key nodes of the underground pipe network system, measure the pressure values of key nodes at the current monitoring time point, and then construct a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point;
[0008] Step S2: construct a baseline pressure difference matrix for the underground pipe network system, and compare it with the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point to determine leakage;
[0009] Step S3: If a leak is detected in the underground pipe network system, step S4 is executed; otherwise, the step loop is exited;
[0010] Step S4: Determine the flow direction of the fluid in the underground pipe network system, and locate the leakage point based on the real-time pressure difference matrix of the current monitoring time point of the underground pipe network system.
[0011] According to a preferred embodiment, a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point is constructed. The specific construction process is as follows:
[0012] The key nodes of the underground pipe network system are numbered as 1, 2, ... N in sequence; and two key nodes are randomly selected from the key nodes of the underground pipe network system, thereby obtaining the pressure values of the i-th key node and the c-th key node at the current monitoring time point, and recording them as and , i is the number of any key node, i∈{1,2,...N}, c is also the number of any key node, c∈{1,2,...N};
[0013] Get the pressure difference between the i-th key node and the c-th key node at the current monitoring time point ;
[0014] This constructs the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point .
[0015] According to a preferred embodiment, a reference pressure difference matrix of the underground pipe network system is constructed, and the specific construction logic is as follows:
[0016] Collect the pressure values of key nodes in the underground pipe network system at multiple historical normal time points , based on the construction method of the real-time pressure difference matrix of the current monitoring time point of the underground pipe network system, the historical pressure difference matrix of each historical normal time point in the underground pipe network system is constructed in the same way;
[0017] Calculate the norm of the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system , j is the number of each historical normal time point, j=1,2,...D;
[0018] The standard deviation of the historical pressure difference matrix corresponding to historical normal time points in the underground pipe network system is calculated from this , JZ is the mean value of the historical pressure difference matrix corresponding to the historical normal time point in the underground pipe network system, , D is the total number of historical normal time points;
[0019] Calculate the difference in the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system The calculated differences of the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system are arranged in ascending order, and the historical pressure difference matrix corresponding to the historical normal time point with the smallest calculated difference is selected as the benchmark pressure difference matrix of the underground pipe network system.
[0020] According to a preferred embodiment, leakage judgment is performed, and the specific judgment process is as follows:
[0021] Obtain the baseline pressure difference matrix of the underground pipe network system ;
[0022] The real-time pressure difference matrix of the underground pipe network system at the current monitoring time point is subtracted from the pressure value of the corresponding position in the reference pressure difference matrix of the underground pipe network system to obtain the pressure judgment matrix of the underground pipe network system;
[0023] According to the composition rules of the pressure judgment matrix of the underground pipe network system, the actual judgment matrix of the underground pipe network system is obtained. , the composition rules are shown as follows:
[0024] ;
[0025] The total number of 1s and -1s in the actual judgment matrix of the underground pipe network system is counted. If the total number of 1s and -1s in the actual judgment matrix of the underground pipe network system is greater than the set number threshold, it is determined that a leak occurs in the underground pipe network system; otherwise, it is determined that no leak occurs in the underground pipe network system.
[0026] According to a preferred embodiment, the flow direction of the fluid in the underground pipe network system is determined by the following logic:
[0027] According to the actual judgment matrix of the underground pipe network system, 1 and -1 in the actual judgment matrix of the underground pipe network system indicate that the pressure difference between the i-th key node and the c-th key node increases, that is, the fluid in the underground pipe network system changes; 0 indicates that the fluid in the underground pipe network system does not change;
[0028] If the pressure difference between the ith key node and the cth key node of the underground pipe network system is identified to increase, the flow change values of all other key nodes connected to the ith key node are obtained, and the cth key node is eliminated from all other key nodes, and the mean flow change value of other key nodes connected to the ith key node and excluding the cth key node is calculated;
[0029] According to the mean value of the flow rate changes of all other key nodes connected to the i-th key node except the c-th key node, the mean value of the flow rate changes of other key nodes connected to the c-th key node except the i-th key node is obtained;
[0030] Obtain the flow change value from the i-th key node to the c-th key node at the current monitoring time point from the pressure judgment matrix of the underground pipe network system And the flow change value from the cth key node to the ith key node ;
[0031] The flow fluctuation value of the i-th key node at the current monitoring time point is obtained by subtracting the flow change value from the i-th key node to the c-th key node and the mean flow change value of other key nodes connected to the i-th key node except the c-th key node;
[0032] The flow floating value of the cth key node at the current monitoring time point is calculated similarly based on the flow floating value of the i-th key node at the current monitoring time point;
[0033] If the flow floating value of the i-th key node at the current monitoring time point is positive, it is determined that the fluid flow direction in the underground pipe network system at the current monitoring time point is from the i-th key node to the c-th key node; otherwise, it is determined that the fluid flow direction in the underground pipe network system at the current monitoring time point is from the c-th key node to the i-th key node;
[0034] The flow direction of the fluid in the underground pipe network system is determined based on the above analysis method.
[0035] According to a preferred embodiment, the leakage point is located based on the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point. The specific location process is as follows:
[0036] Obtain the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point, apply the composition rules to it, and obtain the processed pressure difference matrix of the underground pipe network system at the current monitoring time point ;
[0037] Performing absolute value calculation on the pressure value of each key node in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, and counting the number of 1s in each row and column of the processing pressure difference matrix of the underground pipe network system at the current monitoring time point;
[0038] If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as upward flow, then the upward weight of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as downward flow, the downward weight of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is ;
[0039] If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as left flow, then the left direction weight of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as rightward flow, then the rightward weight of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is ;
[0040] h is the number of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, h=1,2,...H, H is the total number of rows in the processing pressure difference matrix, v is the number of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, v=1,2,...G, G is the total number of columns in the processing pressure difference matrix.
[0041] According to a preferred embodiment, leak point location is achieved, and the specific implementation logic further includes:
[0042] Obtain the flow direction of the fluid in the underground pipe network system, and then calculate the direction weights of each row and column in the processing pressure difference matrix at the current monitoring time point, which are recorded as as well as ;
[0043] Multiply the number of 1s in each row of the treatment pressure difference matrix at the current monitoring time point of the underground pipe network system by the directional weight of each row to obtain the weighted statistical value of each row in the treatment pressure difference matrix at the current monitoring time point, and filter it to obtain the row number with the largest weighted statistical value;
[0044] Multiply the number of 1s in each column of the treatment pressure difference matrix of the underground pipe network system at the current monitoring time point by the directional weight of each column to obtain the weighted statistical value of each column in the treatment pressure difference matrix at the current monitoring time point, and filter them to obtain the column number with the largest weighted statistical value;
[0045] The row number and column number with the largest weighted statistical value are summarized, and the position point where the row number and column number with the largest weighted statistical value overlap in the processing pressure difference matrix at the current monitoring time point of the underground pipe network system is recorded as the position of the leakage point.
[0046] A second aspect of the present invention provides a sensor positioning device for an underground pipe network, comprising a real-time matrix construction module, a pipe network leakage judgment module, a leakage judgment execution module, and a pipe network leakage point positioning module; the aforementioned modules are connected via wired and / or wireless connections to achieve data transmission between the modules;
[0047] Real-time matrix construction module: Install pressure sensors at key nodes of the underground pipe network system to measure the pressure value of each key node at the current monitoring time point, and then construct a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point;
[0048] Pipeline network leakage judgment module: Constructs a baseline pressure difference matrix for the underground pipeline system and compares it with the real-time pressure difference matrix of the underground pipeline system at the current monitoring time point to judge leakage;
[0049] Leakage judgment execution module: If a leak is identified in the underground pipe network system, the pipe network leak point location module will be executed;
[0050] Pipeline network leakage point location module: Determine the flow direction of the fluid in the underground pipeline system, and locate the leakage point based on the real-time pressure difference matrix of the underground pipeline system at the current monitoring time point.
[0051] A third aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0052] The processor executes the steps of implementing the sensor positioning method for an underground pipe network as described in the present invention by calling the computer program stored in the memory.
[0053] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of a sensor positioning method for an underground pipe network described in the present invention.
[0054] Beneficial effects of the present invention:
[0055] The present invention provides a sensor positioning method, device, equipment, and medium for an underground pipe network. Pressure sensors are installed in key nodes of the underground pipe network system to measure the pressure values of the key nodes at the current monitoring time point, thereby constructing a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point. A baseline pressure difference matrix of the underground pipe network system is simultaneously constructed and compared with the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point to determine leakage. The flow direction of the fluid in the underground pipe network system is determined, and based on the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point, leakage points are located. Deploying pressure sensors in the underground pipe network system and constructing the real-time pressure difference matrix can achieve continuous monitoring of the system, timely detect leakage, and quickly locate problem points. This method can significantly improve the operational safety of the pipe network system, reduce environmental risks and maintenance costs caused by leakage, and thus improve the management efficiency and service quality of the entire pipe network system. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 Schematic diagram of the connection structure of the method of the present invention.
[0057] Figure 2 Schematic diagram of the device connection structure of the present invention. DETAILED DESCRIPTION
[0058] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0059] Example 1
[0060] See also Figure 1 As shown, a sensor positioning method for an underground pipe network includes:
[0061] Step S1: Install pressure sensors in key nodes of the underground pipe network system, measure the pressure values of key nodes at the current monitoring time point, and then construct a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point;
[0062] Based on the above scheme, a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point is constructed. The specific construction process is as follows:
[0063] The key nodes of the underground pipe network system are numbered as 1, 2, ... N in sequence; and two key nodes are randomly selected from the key nodes of the underground pipe network system, thereby obtaining the pressure values of the i-th key node and the c-th key node at the current monitoring time point, and recording them as and , i is the number of any key node, i∈{1,2,...N}, c is also the number of any key node, c∈{1,2,...N};
[0064] Get the pressure difference between the i-th key node and the c-th key node at the current monitoring time point ;
[0065] This constructs the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point , is the pressure difference between the first key node and the first key node at the current monitoring time point, which is 0; The pressure difference between the first key node and the Nth key node at the current monitoring time point; The pressure difference between the first key node and the second key node at the current monitoring time point; is the pressure difference between the Nth key node and the Nth key node at the current monitoring time point, which is 0; is the pressure difference between the second key node and the second key node at the current monitoring time point, which is 0; The pressure difference between the second key node and the first key node at the current monitoring time point; is the pressure difference between the Nth key node and the first key node at the current monitoring time point, The pressure difference between the Nth key node and the second key node at the current monitoring time point; It is the pressure difference between the second key node and the Nth key node at the current monitoring time point.
[0066] Because the key nodes are arranged in sequence, N can represent both the total number of key nodes and the Nth key node.
[0067] Step S2: construct a baseline pressure difference matrix for the underground pipe network system, and compare it with the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point to determine leakage;
[0068] Based on the above scheme, a benchmark pressure difference matrix of the underground pipe network system is constructed. The specific construction logic is as follows:
[0069] Collect the pressure values of key nodes in the underground pipe network system at multiple historical normal time points , based on the construction method of the real-time pressure difference matrix of the current monitoring time point of the underground pipe network system, the historical pressure difference matrix of each historical normal time point in the underground pipe network system is constructed in the same way;
[0070] Calculate the norm of the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system , j is the number of each historical normal time point, j=1,2,...D;
[0071] The standard deviation of the historical pressure difference matrix corresponding to historical normal time points in the underground pipe network system is calculated from this , JZ is the mean value of the historical pressure difference matrix corresponding to the historical normal time point in the underground pipe network system, , D is the total number of historical normal time points;
[0072] Calculate the difference in the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system The calculated differences of the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system are arranged in ascending order, and the historical pressure difference matrix corresponding to the historical normal time point with the smallest calculated difference is selected as the benchmark pressure difference matrix of the underground pipe network system.
[0073] Based on the above scheme, leakage judgment is performed. The specific judgment process is as follows:
[0074] Obtain the baseline pressure difference matrix of the underground pipe network system:
[0075] ;
[0076] The real-time pressure difference matrix of the underground pipe network system at the current monitoring time point is subtracted from the pressure value of the corresponding position in the reference pressure difference matrix of the underground pipe network system to obtain the pressure judgment matrix of the underground pipe network system;
[0077] According to the composition rules of the pressure judgment matrix of the underground pipe network system, the actual judgment matrix of the underground pipe network system is obtained. , the composition rules are shown as follows:
[0078] ;
[0079] The total number of 1s and -1s in the actual judgment matrix of the underground pipe network system is counted. If the total number of 1s and -1s in the actual judgment matrix of the underground pipe network system is greater than the set number threshold, it is determined that a leak occurs in the underground pipe network system; otherwise, it is determined that no leak occurs in the underground pipe network system.
[0080] Step S3: If a leak is detected in the underground pipe network system, step S4 is executed; otherwise, the step loop is exited;
[0081] Step S4: Determine the flow direction of the fluid in the underground pipe network system, and locate the leakage point based on the real-time pressure difference matrix of the current monitoring time point of the underground pipe network system.
[0082] Based on the above scheme, the flow direction of the fluid in the underground pipe network system is determined. The specific determination logic is as follows:
[0083] According to the actual judgment matrix of the underground pipe network system, 1 and -1 in the actual judgment matrix of the underground pipe network system indicate that the pressure difference between the i-th key node and the c-th key node increases, that is, the fluid in the underground pipe network system changes; 0 indicates that the fluid in the underground pipe network system does not change;
[0084] The elements of matrix c can only be 1, -1, or 0. These three numbers describe the flow trends between key nodes in the underground pipe network system. 0 indicates that the fluid in the underground pipe network system has not changed, or that the fluid in the underground pipe network system has the same impact on the i-th key node and the c-th key node. For example, the distance between the leak point and the two monitoring points is equal, or the leak point is far away from the two monitoring points, making the impact on the two monitoring points too weak. Because 1 and -1 already include the leakage status value of the leaking key node, 0 does not include these situations.
[0085] If the pressure difference between the ith key node and the cth key node of the underground pipe network system is identified to increase, the flow change values of all other key nodes connected to the ith key node are obtained, and the cth key node is eliminated from all other key nodes, and the mean flow change value of other key nodes connected to the ith key node and excluding the cth key node is calculated;
[0086] According to the mean value of the flow rate changes of all other key nodes connected to the i-th key node except the c-th key node, the mean value of the flow rate changes of other key nodes connected to the c-th key node except the i-th key node is obtained;
[0087] Obtain the flow change value from the i-th key node to the c-th key node at the current monitoring time point from the pressure judgment matrix of the underground pipe network system And the flow change value from the cth key node to the ith key node ;
[0088] The flow fluctuation value of the i-th key node at the current monitoring time point is obtained by subtracting the flow change value from the i-th key node to the c-th key node and the mean flow change value of other key nodes connected to the i-th key node except the c-th key node;
[0089] The flow floating value of the cth key node at the current monitoring time point is calculated similarly based on the flow floating value of the i-th key node at the current monitoring time point;
[0090] If the flow floating value of the i-th key node at the current monitoring time point is positive, it is determined that the fluid flow direction in the underground pipe network system at the current monitoring time point is from the i-th key node to the c-th key node; otherwise, it is determined that the fluid flow direction in the underground pipe network system at the current monitoring time point is from the c-th key node to the i-th key node;
[0091] The flow direction of the fluid in the underground pipe network system is determined based on the above analysis method.
[0092] Based on the above scheme, the leak point is located based on the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point. The specific positioning process is as follows:
[0093] Obtain the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point, apply the composition rules to it, and obtain the processed pressure difference matrix of the underground pipe network system at the current monitoring time point ;
[0094] Performing absolute value calculation on the pressure value of each key node in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, and counting the number of 1s in each row and column of the processing pressure difference matrix of the underground pipe network system at the current monitoring time point;
[0095] If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as upward flow, then the upward weight of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as downward flow, the downward weight of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is ;
[0096] If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as left flow, then the left direction weight of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as rightward flow, then the rightward weight of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is ;
[0097] h is the number of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, h=1,2,...H, H is the total number of rows in the processing pressure difference matrix, v is the number of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, v=1,2,...G, G is the total number of columns in the processing pressure difference matrix.
[0098] Based on the above solution, the leak point is located. The specific implementation logic also includes:
[0099] Obtain the flow direction of the fluid in the underground pipe network system, and then calculate the direction weights of each row and column in the processing pressure difference matrix at the current monitoring time point, which are recorded as as well as ;
[0100] Multiply the number of 1s in each row of the treatment pressure difference matrix at the current monitoring time point of the underground pipe network system by the directional weight of each row to obtain the weighted statistical value of each row in the treatment pressure difference matrix at the current monitoring time point, and filter it to obtain the row number with the largest weighted statistical value;
[0101] Multiply the number of 1s in each column of the treatment pressure difference matrix of the underground pipe network system at the current monitoring time point by the directional weight of each column to obtain the weighted statistical value of each column in the treatment pressure difference matrix at the current monitoring time point, and filter them to obtain the column number with the largest weighted statistical value;
[0102] The row number and column number with the largest weighted statistical value are summarized, and the position point where the row number and column number with the largest weighted statistical value overlap in the processing pressure difference matrix at the current monitoring time point of the underground pipe network system is recorded as the position of the leakage point.
[0103] Under normal conditions, the pressure difference matrix of each acquisition channel in the system is stable and reflects the normal operation of the system. However, when a leak occurs, it causes abnormal pressure fluctuations at certain nodes, which are reflected in the real-time measurement matrix. By comparing the real-time measurement matrix with the baseline matrix to calculate a difference matrix, and binarizing the difference matrix (for example, by setting a reasonable threshold and marking any difference exceeding the threshold as 1), channels with abnormal pressure can be effectively identified. The presence of a "1" in a row or column of the difference matrix indicates that the pressure difference of that channel exceeds the normal range, providing a preliminary assessment of whether the system has a leak. By counting and analyzing the number and distribution of "1" values in the difference matrix, the possible location of the leak can be further inferred. This relies on the variation characteristics of the pressure difference matrix under normal and abnormal conditions, enabling leak detection and location through comparative analysis.
[0104] In pipeline systems, pressure is a key parameter for maintaining normal media flow. When the system is leak-free, the pressure values measured by each acquisition channel form a stable pressure distribution matrix, which serves as a baseline for normal system operation. However, if a leak occurs, the pressure near the leak point drops, resulting in a pressure difference in the real-time measurement matrix compared to the baseline matrix.
[0105] A leak causes a localized pressure drop, which manifests as a change in the values of specific rows or columns in the pressure difference matrix. Specifically, if the pressure in a channel drops significantly below the baseline, a value of 1 (or other preset threshold) will appear in the corresponding row or column of the difference matrix, indicating a possible leak. Furthermore, the number of 1s can reflect the severity of the leak or its location. The more severe the leak or the closer it is to the measurement point, the more channels it affects, and accordingly, the more 1s appear in the matrix.
[0106] This approach leverages the continuity and transmissibility of pressure in fluid dynamics. In a closed piping system, pressure changes are transmitted along the pipe. Leaks, acting as an anomaly, introduce abnormal pressure values during this transmission process. These abnormal values are reflected in the difference matrix. Therefore, by analyzing the abnormal patterns in the difference matrix, it is possible to make a preliminary assessment and locate the leak.
[0107] Example 2
[0108] See also Figure 2As shown, a sensor positioning device for an underground pipe network includes a real-time matrix construction module, a pipe network leakage judgment module, a leakage judgment execution module, and a pipe network leakage point positioning module; the above modules are connected by wired and / or wireless connections to achieve data transmission between the modules;
[0109] The pipe network leakage judgment module is connected to the real-time matrix construction module and the leakage judgment execution module respectively, and the pipe network leakage point positioning module is connected to the leakage judgment execution module;
[0110] Real-time matrix construction module: Install pressure sensors at key nodes of the underground pipe network system to measure the pressure value of each key node at the current monitoring time point, and then construct a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point;
[0111] Pipeline network leakage judgment module: Constructs a baseline pressure difference matrix for the underground pipeline system and compares it with the real-time pressure difference matrix of the underground pipeline system at the current monitoring time point to judge leakage;
[0112] Leakage judgment execution module: If a leak is identified in the underground pipe network system, the pipe network leak point location module will be executed;
[0113] Pipeline network leakage point location module: Determine the flow direction of the fluid in the underground pipeline system, and locate the leakage point based on the real-time pressure difference matrix of the underground pipeline system at the current monitoring time point.
[0114] Example 3
[0115] An electronic device comprises a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0116] The processor executes the steps of implementing the sensor positioning method for an underground pipe network as described in the present invention by calling the computer program stored in the memory.
[0117] Example 4
[0118] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a sensor positioning method for an underground pipe network described in the present invention.
[0119] The above content is merely an example and explanation of the structure of the present invention. Those skilled in the art may make various modifications or additions to the described specific embodiments or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the claims, they should all fall within the scope of protection of the present invention.
[0120] Throughout this specification, references to terms such as "one embodiment," "example," or "specific example" indicate that the specific features, structures, materials, or characteristics described in conjunction with that embodiment or example are included in at least one embodiment or example of the present invention. In this specification, schematic representations of these terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0121] The preferred embodiments of the present invention disclosed above are intended only to help illustrate the present invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the present invention to specific embodiments. Obviously, many modifications and variations are possible based on the contents of this specification. These embodiments are selected and described in detail in this specification to better explain the principles and practical applications of the present invention, thereby enabling those skilled in the art to better understand and utilize the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A sensor positioning method for an underground pipe network, characterized in that: The method comprises the following steps: Step S1: Install pressure sensors in key nodes of the underground pipe network system, measure the pressure values of key nodes at the current monitoring time point, and then construct a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point; Step S2: construct a baseline pressure difference matrix for the underground pipe network system, and compare it with the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point to determine leakage; Step S3: If a leak is detected in the underground pipe network system, step S4 is executed; otherwise, the step loop is exited; Step S4: Determine the flow direction of the fluid in the underground pipe network system, and locate the leakage point based on the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point. The specific positioning process is as follows: Obtain the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point, apply the composition rules to it, and obtain the processed pressure difference matrix of the underground pipe network system at the current monitoring time point ; Performing absolute value calculation on the pressure value of each key node in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, and counting the number of 1s in each row and column of the processing pressure difference matrix of the underground pipe network system at the current monitoring time point; If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as upward flow, then the upward weight of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as downward flow, the downward weight of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is ; If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as left flow, then the left direction weight of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is If the fluid flow direction of the i-th key node corresponding to the c-th key node is identified as rightward flow, then the rightward weight of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point is ; h is the number of each row in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, h=1,2,...H, H is the total number of rows in the processing pressure difference matrix, v is the number of each column in the processing pressure difference matrix of the underground pipe network system at the current monitoring time point, v=1,2,...G, G is the total number of columns in the processing pressure difference matrix; Obtain the flow direction of the fluid in the underground pipe network system, and then calculate the direction weights of each row and column in the processing pressure difference matrix at the current monitoring time point, which are recorded as as well as ; Multiply the number of 1s in each row of the treatment pressure difference matrix at the current monitoring time point of the underground pipe network system by the directional weight of each row to obtain the weighted statistical value of each row in the treatment pressure difference matrix at the current monitoring time point, and filter it to obtain the row number with the largest weighted statistical value; Multiply the number of 1s in each column of the treatment pressure difference matrix of the underground pipe network system at the current monitoring time point by the directional weight of each column to obtain the weighted statistical value of each column in the treatment pressure difference matrix at the current monitoring time point, and filter them to obtain the column number with the largest weighted statistical value; The row number and column number with the largest weighted statistical value are summarized, and the position point where the row number and column number with the largest weighted statistical value overlap in the processing pressure difference matrix at the current monitoring time point of the underground pipe network system is recorded as the position of the leakage point.
2. A sensor positioning method for an underground pipe network according to claim 1, characterized in that: Construct the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point. The specific construction process is as follows: The key nodes of the underground pipe network system are numbered as 1, 2, ... N in sequence; and two key nodes are randomly selected from the key nodes of the underground pipe network system, thereby obtaining the pressure values of the i-th key node and the c-th key node at the current monitoring time point, and recording them as and , i is the number of any key node, i∈{1,2,...N}, c is also the number of any key node, c∈{1,2,...N}; Get the pressure difference between the i-th key node and the c-th key node at the current monitoring time point ; This constructs the real-time pressure difference matrix of the underground pipe network system at the current monitoring time point .
3. The sensor positioning method for an underground pipe network according to claim 1, characterized in that: Construct the benchmark pressure difference matrix of the underground pipe network system. The specific construction logic is as follows: Collect the pressure values of key nodes in the underground pipe network system at multiple historical normal time points , based on the construction method of the real-time pressure difference matrix of the current monitoring time point of the underground pipe network system, the historical pressure difference matrix of each historical normal time point in the underground pipe network system is constructed in the same way; Calculate the norm of the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system , j is the number of each historical normal time point, j=1,2,...D; The standard deviation of the historical pressure difference matrix corresponding to historical normal time points in the underground pipe network system is calculated from this , JZ is the mean value of the historical pressure difference matrix corresponding to the historical normal time point in the underground pipe network system, , D is the total number of historical normal time points; Calculate the difference in the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system The calculated differences of the historical pressure difference matrix corresponding to each historical normal time point in the underground pipe network system are arranged in ascending order, and the historical pressure difference matrix corresponding to the historical normal time point with the smallest calculated difference is selected as the benchmark pressure difference matrix of the underground pipe network system.
4. The sensor positioning method for an underground pipe network according to claim 1, characterized in that: Conduct leakage judgment, the specific judgment process is as follows: Obtain the baseline pressure difference matrix of the underground pipe network system ; The real-time pressure difference matrix of the underground pipe network system at the current monitoring time point is subtracted from the pressure value of the corresponding position in the reference pressure difference matrix of the underground pipe network system to obtain the pressure judgment matrix of the underground pipe network system; According to the composition rules of the pressure judgment matrix of the underground pipe network system, the actual judgment matrix of the underground pipe network system is obtained. , the composition rules are shown as follows: ; The total number of 1s and -1s in the actual judgment matrix of the underground pipe network system is counted. If the total number of 1s and -1s in the actual judgment matrix of the underground pipe network system is greater than the set number threshold, it is determined that a leak occurs in the underground pipe network system; otherwise, it is determined that no leak occurs in the underground pipe network system.
5. The sensor positioning method for an underground pipe network according to claim 4, characterized in that: Determine the flow direction of the fluid in the underground pipe network system. The specific determination logic is: According to the actual judgment matrix of the underground pipe network system, 1 and -1 in the actual judgment matrix of the underground pipe network system indicate that the pressure difference between the i-th key node and the c-th key node increases, that is, the fluid in the underground pipe network system changes; 0 indicates that the fluid in the underground pipe network system does not change; If the pressure difference between the ith key node and the cth key node of the underground pipe network system is identified to increase, the flow change values of all other key nodes connected to the ith key node are obtained, and the cth key node is eliminated from all other key nodes, and the mean flow change value of other key nodes connected to the ith key node and excluding the cth key node is calculated; According to the mean value of the flow rate changes of all other key nodes connected to the i-th key node except the c-th key node, the mean value of the flow rate changes of other key nodes connected to the c-th key node except the i-th key node is obtained; Obtain the flow change value from the i-th key node to the c-th key node and the flow change value from the c-th key node to the i-th key node within the current monitoring time point from the pressure judgment matrix of the underground pipe network system; The flow fluctuation value of the i-th key node at the current monitoring time point is obtained by subtracting the flow change value from the i-th key node to the c-th key node and the mean flow change value of other key nodes connected to the i-th key node except the c-th key node; The flow floating value of the cth key node at the current monitoring time point is calculated similarly based on the flow floating value of the i-th key node at the current monitoring time point; If the flow floating value of the i-th key node at the current monitoring time point is positive, it is determined that the fluid flow direction in the underground pipe network system at the current monitoring time point is from the i-th key node to the c-th key node; otherwise, it is determined that the fluid flow direction in the underground pipe network system at the current monitoring time point is from the c-th key node to the i-th key node; The flow direction of the fluid in the underground pipe network system is determined based on the above analysis method.
6. A sensor positioning device for an underground pipe network, characterized in that: A sensor positioning method for an underground pipe network as claimed in any one of claims 1 to 5, comprising a real-time matrix construction module, a pipe network leakage judgment module, a leakage judgment execution module and a pipe network leakage point positioning module; wherein the above modules are connected by wired and / or wireless connections to achieve data transmission between the modules; Real-time matrix construction module: Install pressure sensors at key nodes of the underground pipe network system to measure the pressure value of each key node at the current monitoring time point, and then construct a real-time pressure difference matrix of the underground pipe network system at the current monitoring time point; Pipeline network leakage judgment module: Constructs a baseline pressure difference matrix for the underground pipeline system and compares it with the real-time pressure difference matrix of the underground pipeline system at the current monitoring time point to judge leakage; Leakage judgment execution module: If a leak is identified in the underground pipe network system, the pipe network leak point location module will be executed; Pipeline network leakage point location module: Determine the flow direction of the fluid in the underground pipeline system, and locate the leakage point based on the real-time pressure difference matrix of the underground pipeline system at the current monitoring time point.
7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the steps of implementing the sensor positioning method for an underground pipe network as described in any one of claims 1 to 5 by calling the computer program stored in the memory.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the sensor positioning method for an underground pipe network as claimed in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Pipeline leakage monitoring analysis method and system based on pressure gauge, terminal and medium
CN118088948A
Fault detection device and method for coiled tubing
CN119042543A