A new method for dynamic correction of pipeline pressure drop calculation algorithm parameters

By collecting and cleaning data in the water supply pipeline network, and using neural networks to correct parameters, the problem of low parameter correction efficiency in water supply pipeline network pressure drop measurement in the existing technology is solved, and rapid and accurate pipeline pressure measurement is achieved.

CN112818495BActive Publication Date: 2024-09-06CHENGDU SYSWARE ELECTRONICS INFORMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110199380.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-22
Publication Date
2024-09-06
Estimated Expiration
2041-02-22

AI Technical Summary

Technical Problem

The existing water supply pipeline network cannot dynamically perform rapid and accurate correction of pressure drop measurement parameters in actual production environments, resulting in low efficiency and long time-consuming pressure measurement.

Method used

By collecting pipeline water supply data, performing data cleaning and using neural networks for parameter correction, a pipeline pressure drop measurement model is established, pipeline pressure drop parameters are dynamically corrected, and actual pipeline pressure measurement parameters are output.

Benefits of technology

It improves the accuracy of data calculation and the efficiency of parameter correction, significantly reduces the time for parameter correction, and achieves fast and accurate pipeline pressure measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112818495B
    Figure CN112818495B
Patent Text Reader

Abstract

The present invention discloses a method for dynamically correcting parameters of a pipeline pressure drop calculation algorithm, comprising the following steps: collecting pipeline water supply data, recording the instantaneous flow of each water-using node at the same time point in multiple groups of water supply networks and the pressure at the beginning and end of the network, and using the recorded data as the pipeline water supply data of the same time section; cleaning the pressure drop data, defining data cleaning rules, and cleaning the collected pipeline water supply data according to the defined data cleaning rules to obtain available pipeline pressure drop calculation data; dynamic parameter correction, training and parameter correction using a neural network based on the available pipeline pressure drop calculation data, and outputting actual pipeline pressure calculation parameters. The present invention can perform pipeline pressure measurement in an actual production environment, dynamically perform pipeline pressure drop measurement parameter fitting correction, and can quickly and accurately calculate the true pipe resistance coefficient and flow index of each pipeline in the water supply network.
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 pressure measurement, and in particular to a novel method for dynamically correcting parameters of a pipeline pressure drop measurement algorithm. Background Art

[0002] With the growth of population and the development of urbanization, the structure of urban water supply network in my country is becoming increasingly complex, which leads to difficulties in the operation and management of water supply network, low operation efficiency, serious leakage, frequent pipe bursts, and high water supply energy consumption. Before the existing water supply network is put into use, a water discharge experiment will be carried out according to the pressure drop equation to calculate the parameters in the equation, namely, the pipe resistance coefficient α and the flow exponent n. The pressure drop equation is: In the formula, H i , H j Respectively represent the water pressure elevation of nodes i and j at both ends of the pipe segment; h ij The pressure drop at nodes i and j at both ends of the pipe segment; s ij Pipe friction; q ij Pipe flow rate (m3 / s); α ij Indicates specific resistance; -----l ij Pipe section length (m3 / s). Since the parameters α and n are related to the material and diameter of the pipeline, it is necessary to conduct water discharge experiments in sections before putting it into use to calculate the actual parameters α and n of each pipeline.

[0003] However, in the actual production environment, due to various reasons, the water release experiment is impossible to implement, which results in the inability to determine the parameters α and n, thus affecting the pressure measurement of the pipeline.

[0004] For example, the patent with application number 201710667800.2 provides a method for rapid correction of water supply network model by adjusting node flow and pipeline resistance coefficient simultaneously. Its technical solution realizes online real-time simulation of pipeline network by grouping and initializing pipeline resistance coefficient, grouping and initializing node flow, calculating residuals between observation value and calculation value of monitoring point, calculating sensitivity matrix of pipeline network monitoring point, calculating parameter adjustment value, and updating parameter value, thereby realizing intelligent management of pipeline network operation. It can be seen that the application scheme adopts numerical calculation method to adjust node flow and pipeline resistance coefficient simultaneously to realize online correction of water supply network, but the parameter correction efficiency of the technical scheme is not high enough and it takes a long time. Therefore, there is a need for a method that can dynamically fit and calculate the parameters of pressure drop measurement algorithm in an actual production environment. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a new method for dynamic correction of pipeline pressure drop measurement algorithm parameters, which can perform pipeline pressure measurement in an actual production environment, dynamically perform pipeline pressure drop measurement parameter fitting correction, and quickly and accurately calculate the true pipe resistance coefficient and flow index of each pipeline in the water supply network.

[0006] The objective of the present invention is achieved through the following technical solutions:

[0007] A new method for dynamically correcting parameters of a pipeline pressure drop calculation algorithm includes the following steps:

[0008] Step 1: Collect pipeline water supply data, record the instantaneous flow rate of each water node and the pressure at the beginning and end of the pipeline network at the same time point in multiple groups of water supply pipelines, and use the recorded data as the pipeline water supply data of the same time section;

[0009] Step 2: Cleaning the pressure drop data: define data cleaning rules, and clean the collected pipeline water supply data according to the defined data cleaning rules to obtain usable pipeline pressure drop measurement data;

[0010] Step 3: Dynamic parameter correction: Based on the available pipeline pressure drop measurement data, the neural network is used for training and parameter correction, and the actual pipeline pressure measurement parameters are output.

[0011] Specifically, the step 1 specifically includes the following sub-steps:

[0012] S101, respectively arranging pressure and flow sensors at the inlets and outlets of water pipelines in multiple groups of water supply networks, and arranging pressure sensors at water consumption nodes along the water supply networks;

[0013] S102, using the water supply monitoring platform to obtain the pressure and flow monitoring data of each sensor in real time, and recording the instantaneous flow of each water use node and the pressure at the beginning and end of the pipe network according to the time point to form the pipeline water supply data of the section at the corresponding time point.

[0014] Specifically, the step 2 specifically includes the following steps: pre-define the cleaning rules of the pipeline water supply data, and clean the dirty data or unchanged data in the pipeline water supply network; the specific cleaning rules include:

[0015] A, judging whether the total instantaneous inflow and total instantaneous outflow in the water supply network at the current time point exceeds the preset judgment standard, and if it exceeds the judgment standard, removing the pipeline water supply data at the current time point;

[0016] B. Select a water-using node X at random in the water supply network, and determine whether the pressure of the water-using node X at the current time point and the pressure of the water-using node X at the previous time point meet the preset pressure judgment condition. If the pressure judgment condition is not met, remove the pipeline water supply data at the current time point;

[0017] The pipeline water supply data that satisfies both the above cleaning rules A and B will be used as available pipeline pressure drop calculation data.

[0018] Specifically, the judgment criteria include: total instantaneous water inflow flow rate ≥ total instantaneous water outflow flow rate; total instantaneous water outflow flow rate / total instantaneous water inflow flow rate>98%.

[0019] Specifically, the pressure judgment condition is: |pressure value t1-pressure value t2|>0.005MPa, where pressure value t1 is the pressure of the water-using node X of the section at the current time point, and pressure value t2 is the pressure of the water-using node X of the section at the previous time point.

[0020] Specifically, the step three specifically includes the following sub-steps:

[0021] S301, first extract available pipeline pressure drop measurement data, establish input samples and output sample sets, the input samples are available pipeline pressure drop measurement data, and the output sample set is actual pipeline pressure measurement parameters;

[0022] S302, using a neural network to train available pipeline pressure drop measurement data to establish a pipeline pressure drop measurement neural network model;

[0023] S303, input the pipeline pressure drop measurement data available for each pipe section in the water supply network into the pipeline pressure drop measurement neural network model, and the model performs fitting calculation on the predicted pipeline pressure measurement parameters according to the fitting calculation formula least square method, and outputs the final actual pipeline pressure measurement parameters.

[0024] Specifically, the fitting calculation formula is as shown below:

[0025] P=h1(q1)+h2(q2)+..+hn(qn);

[0026] Among them, P is the pressure difference between the inlet and outlet of the water pipeline in the water supply network, h is the calculation formula for the pressure drop of each section of the pipeline network, and q is the comfortable flow rate of water in each section of the pipeline network.

[0027] Beneficial effects of the present invention:

[0028] 1. By setting corresponding data cleaning rules, the water supply network data is cleaned to eliminate dirty data and unchanged data, thereby improving the accuracy of data measurement.

[0029] 2. Use neural networks to train the cleaned data and establish a network model. At the same time, use the least squares method to correct the training results and update the network model parameters to further improve the efficiency of data measurement and correction and greatly reduce the time spent on parameter correction. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0031] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described with reference to the accompanying drawings.

[0032] In this embodiment, Figure 1 As shown, a new method for dynamically correcting parameters of a pipeline pressure drop calculation algorithm includes the following steps:

[0033] Step 1: Collect pipeline water supply data, record the instantaneous flow rate of each water node and the pressure at the beginning and end of the pipeline network at the same time point in multiple groups of water supply pipelines, and use the recorded data as the pipeline water supply data of the same time section;

[0034] Step 2: Cleaning the pressure drop data: define data cleaning rules, and clean the collected pipeline water supply data according to the defined data cleaning rules to obtain usable pipeline pressure drop measurement data;

[0035] Step 3: Dynamic parameter correction: Based on the available pipeline pressure drop measurement data, the neural network is used for training and parameter correction, and the actual pipeline pressure measurement parameters are output.

[0036] In the present invention, the process of collecting pipeline water supply data specifically includes the following steps:

[0037] S101, firstly, respectively arrange pressure and flow sensors at the inlets and outlets of water pipelines in multiple groups of water supply networks, and arrange pressure sensors at water consumption nodes along the water supply networks;

[0038] S102, then the existing water supply monitoring platform (such as the municipal pipe network platform, etc.) can be used to obtain the pressure and flow monitoring data of each sensor in real time, and record the instantaneous flow of each water use node and the pressure at the beginning and end of the pipe network according to the time point to form the pipe water supply data of the section at the corresponding time point.

[0039] In the present invention, since dirty data and unchanged data will affect the correction accuracy and efficiency of parameters, it is necessary to clean the pipeline water supply data to remove dirty data or unchanged data. The pressure drop data cleaning process specifically includes: predefining cleaning rules for pipeline water supply data, and cleaning dirty data or unchanged data in the pipeline water supply network.

[0040] Specific cleaning rules include:

[0041] A, judging whether the total instantaneous inflow and total instantaneous outflow in the water supply network at the current time point exceeds the preset judgment standard, and if it exceeds the judgment standard, removing the pipeline water supply data at the current time point;

[0042] B. Select a water-using node X at random in the water supply network, and determine whether the pressure of the water-using node X at the current time point and the pressure of the water-using node X at the previous time point meet the preset pressure judgment condition. If the pressure judgment condition is not met, remove the pipeline water supply data at the current time point;

[0043] The pipeline water supply data that satisfies both the above cleaning rules A and B will be used as available pipeline pressure drop calculation data.

[0044] The judgment criteria include: total instantaneous water inflow flow ≥ total instantaneous water outflow flow; total instantaneous water outflow flow / total instantaneous water inflow flow>98%.

[0045] Since each pipe section has two parameters, α and n, that need to be fitted, we need to collect multiple sets of instantaneous section data of the pipe network for fitting. These data should cover different value ranges as much as possible. Therefore, when collecting data, the collected data should be variable. The pressure judgment condition is: |pressure value t1-pressure value t2|>0.005MPa, where pressure value t1 is the pressure of the water-using node X of the section at the current time point, and pressure value t2 is the pressure of the water-using node X of the section at the previous time point.

[0046] The present invention adopts a neural network model to dynamically modify the parameters, wherein the network structure of the neural network needs to be designed in advance. The neural network structure adopted in the present invention adopts a three-layer neural network structure, including an input layer, a hidden layer and an output layer.

[0047] Among them, the parameter correction process using the designed neural network specifically includes:

[0048] S301, first extract available pipeline pressure drop measurement data, establish input samples and output sample sets, the input samples are available pipeline pressure drop measurement data, and the output sample set is actual pipeline pressure measurement parameters;

[0049] S302, using a neural network to train available pipeline pressure drop measurement data to establish a pipeline pressure drop measurement neural network model;

[0050] S303, inputting the pipeline pressure drop measurement data available for each pipe section in the water supply network into the pipeline pressure drop measurement neural network model for calculation, and outputting the predicted pipeline pressure measurement parameters;

[0051] S303, input the pipeline pressure drop measurement data available for each pipe section in the water supply network into the pipeline pressure drop measurement neural network model, and the model performs fitting calculation on the predicted pipeline pressure measurement parameters according to the fitting calculation formula least square method, and outputs the final actual pipeline pressure measurement parameters.

[0052] The fitting calculation formula is as follows:

[0053] P=h1(q1)+h2(q2)+..+hn(qn);

[0054] Among them, P is the pressure difference between the inlet and outlet of the water pipeline in the water supply network, h is the calculation formula for the pressure drop of each section of the pipeline network, and q is the comfortable flow rate of water in each section of the pipeline network.

[0055] In an embodiment of the present invention, the pipe resistance system, flow rate, flow index and pipe section length of the water supply network are set as theoretical parameter values ​​by simulation. In addition, parameters such as the pressure and flow rate of the water node of the pipe section are randomly generated, and the randomly generated parameters are calculated using the method of the present invention to obtain the calculated actual pressure drop value. At the same time, the method of the present invention is used to calculate the theoretical parameter value of the water supply network to obtain the theoretical pressure drop value. The calculated pressure drop value is compared with the theoretical pressure drop value, and the difference between the two is calculated to analyze the correction accuracy of the method of the present invention.

[0056] The water supply network parameters set in this implementation are shown in Table 1 below, and the parameter values ​​calculated using the present invention are shown in Table 2 below.

[0057] Table 1

[0058]

[0059] Table 2

[0060]

[0061] The theoretical pressure drop value and the calculated pressure drop value are calculated by using the pressure drop equation, and the difference between the two is calculated, and the difference is shown in Table 3. According to the difference between the theoretical pressure drop value and the calculated pressure drop value, it can be seen that the dynamic correction of the pipeline pressure drop measurement algorithm parameters by the method of the present invention is significantly improved compared with the existing parameter correction method.

[0062] Table 3

[0063] Theoretical pressure drop value total Calculate the total pressure drop value Difference 0.014529019 0.014529018 1.46122E-10 0.000256216 0.000256216 5.67096E-12 0.05044211 0.05044211 2.55121E-10 0.048531764 0.048531764 9.97249E-11 0.040903777 0.040903777 -7.17474E-11 0.017664517 0.017664517 7.09149E-12 0.000165378 0.000165378 9.87396E-13 0.001410343 0.001410343 1.66447E-11 0.024682222 0.024682221 2.51016E-10 0.00343629 0.00343629 7.06514E-11

[0064] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited by the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of the present invention to be protected is defined by the attached claims and their equivalents.

Claims

1. A method for dynamically correcting pipeline pressure drop calculation algorithm parameters, characterized in that: The following steps are involved: Step 1: Collect pipeline water supply data, record the instantaneous flow rate and the pressure at the beginning and end of each water supply node in multiple water supply networks at the same time point, and use the recorded data as the pipeline water supply data at the same time section, which specifically includes the following sub-steps: S101, respectively arranging pressure and flow sensors at the inlets and outlets of water pipelines in multiple groups of water supply networks, and arranging pressure sensors at water consumption nodes along the water supply networks; S102, using the water supply monitoring platform to obtain the pressure and flow monitoring data of each sensor in real time, and recording the instantaneous flow of each water use node and the pressure at the beginning and end of the pipe network according to the time point to form the pipe water supply data of the section at the corresponding time point; Step 2: Cleaning the pressure drop data: define data cleaning rules, and clean the collected pipeline water supply data according to the defined data cleaning rules to obtain usable pipeline pressure drop measurement data. The specific steps include: pre-define cleaning rules for pipeline water supply data, and clean dirty data or unchanged data in the pipeline water supply network; the specific cleaning rules include: A, judging whether the total instantaneous inflow and total instantaneous outflow in the water supply network at the current time point exceeds the preset judgment standard, and if it exceeds the judgment standard, removing the pipeline water supply data at the current time point; B. Select a water-using node X at random in the water supply network, and determine whether the pressure of the water-using node X at the current time point and the pressure of the water-using node X at the previous time point meet the preset pressure judgment condition. If the pressure judgment condition is not met, remove the pipeline water supply data at the current time point; The pipeline water supply data that satisfies both the above cleaning rules A and B is used as the available pipeline pressure drop calculation data; Step 3: Dynamic parameter correction: Based on the available pipeline pressure drop measurement data, neural network training and parameter correction are performed, and the actual pipeline pressure measurement parameters are output. Specifically, the following sub-steps are included: S301, first extract available pipeline pressure drop measurement data, establish input samples and output sample sets, the input samples are available pipeline pressure drop measurement data, and the output sample sets are actual pipeline pressure measurement parameters; S302, use a neural network to train the available pipeline pressure drop measurement data, and establish a pipeline pressure drop measurement neural network model; S303, inputting the pipeline pressure drop measurement data available for each pipe section in the water supply network into the pipeline pressure drop measurement neural network model, the model performs fitting calculation on the predicted pipeline pressure measurement parameters according to the fitting calculation formula least square method, and outputs the final actual pipeline pressure measurement parameters, the fitting calculation formula is as shown below: P = h1(q1)+h2(q2)+..+hn(qn); Among them, P is the pressure difference between the inlet and outlet of the water pipeline in the water supply network, h is the calculation formula for the pressure drop of each section of the pipeline network, and q is the comfortable flow rate of water in each section of the pipeline network.

2. A method for dynamically correcting pipeline pressure drop calculation algorithm parameters according to claim 1, characterized in that: The determination criteria include: total instantaneous water inflow flow ≥ total instantaneous water outflow flow; total instantaneous water outflow flow / total instantaneous water inflow flow>98%.

3. The method for dynamically correcting pipeline pressure drop calculation algorithm parameters according to claim 1, characterized in that: The pressure judgment condition is: |pressure value t1-pressure value t2|>0.005MPa, where pressure value t1 is the pressure of the water-using node X of the section at the current time point, and pressure value t2 is the pressure of the water-using node X of the section at the previous time point.