Water level measuring method and water level measuring system
By automatically detecting the water level calibration signal and setting the compensation value range, combined with abnormal alarm detection, the error problem caused by water level sensor drift and natural factors is solved, realizing automatic calibration and compensation of water level measurement, and improving the accuracy and reliability of water level data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NINGBO XIKOU PUMPED STORAGE POWER STATION CO LTD
- Filing Date
- 2026-02-13
- Publication Date
- 2026-05-15
AI Technical Summary
Existing water level sensors suffer from error accumulation due to time drift, temperature drift, and wear. Manual calibration is inconvenient and continuous tracking and real-time compensation cannot be achieved. Furthermore, they are susceptible to false alarms or signal drift caused by strong winds, waves, and low-temperature ice surfaces, affecting the long-term reliability and accuracy of water level data.
An automatic water level calibration signal detection method is adopted, which triggers calibration by the rising edge, sets the compensation value range, and combines it with abnormal alarm detection to avoid false alarms caused by strong winds and waves, thereby achieving automatic timed calibration and compensation and ensuring the accuracy of water level measurement.
It enables automatic calibration and compensation of water level measurement, reduces false alarm rate, improves the long-term reliability and accuracy of water level data, and ensures the real-time accuracy of water level monitoring.
Smart Images

Figure CN122042014A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing, and more particularly to a water level measurement method and system. Background Technology
[0002] Reservoir water level is a core monitoring parameter, and accurate water level data is the core basis for flood control scheduling. If the water level monitoring is inaccurate, there may be fatal risks. At the same time, accurate water level can guide the units to operate in the optimal head range, maximize power generation efficiency, and improve the economic benefits of the power station. Therefore, accurate collection of reservoir water level is crucial to the operation and scheduling of the power station.
[0003] In existing technologies, reservoir water levels are detected by water level sensors and transmitted to a host computer monitoring system for real-time monitoring and scheduling. Currently, error calibration of water level data mainly relies on periodic manual calibration and standardization. However, this method has the following limitations: water level sensors experience continuous and gradual changes in characteristics due to time drift, temperature drift, and wear, while discrete, fixed-period manual calibration cannot achieve continuous tracking and real-time compensation. This results in the system being in a state of error accumulation for most of the time, and requires regular manual calibration by maintenance personnel, which is not only inconvenient but also wastes human resources. This open-loop, lagging calibration mode lacks adaptability to operating conditions, making it difficult to guarantee the long-term reliability and accuracy of water level data. In addition, during the detection process, water level sensors may experience false alarms due to fluctuations caused by strong winds and waves, or signal drift due to freezing of the water surface in winter. Therefore, further improvements to the existing technology are needed. Summary of the Invention
[0004] The first technical problem to be solved by the present invention is to provide a water level measurement method that can automatically calibrate water level acquisition values, reduce false water level alarms, and improve measurement accuracy, in contrast to the above-mentioned prior art.
[0005] The second technical problem to be solved by the present invention is to provide a water level measurement system for performing the above-described water level measurement method, in view of the prior art described above.
[0006] The technical solution adopted by the present invention to solve the first technical problem mentioned above is: a water level measurement method, characterized by comprising the following steps:
[0007] Step 1: Obtain water level data using a water level sensor;
[0008] Step 2: Detect the water level calibration signal. After obtaining the water level calibration signal, calibrate the water level acquisition value obtained in Step 1 to obtain the calibrated water level acquisition value.
[0009] Step 3: Detect any abnormalities in the calibrated water level data.
[0010] Step 4: Determine whether an alarm signal is received. If so, generate a water level disabling signal; otherwise, use the calibrated water level acquisition value as the water level measurement value.
[0011] To achieve automatic detection of the water level calibration signal, the water level calibration signal in step 2 is a rising edge. That is, water level calibration begins when a rising edge trigger signal is detected.
[0012] To avoid significant water level fluctuations caused by natural factors such as strong winds, which could lead to excessively large error compensation values and affect water level stability, the specific process of water level calibration in step 2 is as follows:
[0013] Step 2-1: Set the calibration water level value, water level compensation value, upper limit of water level compensation, and lower limit of water level compensation;
[0014] Step 2-2: Calculate the water level error value Water level error value The calculation formula is:
[0015]
[0016] in, This is a function to find the maximum value. This is a function to find the maximum value. This is the water level data collected. To calibrate the water level value, This is the upper limit of water level compensation. This is the lower limit for water level compensation.
[0017] Step 2-3: Add the water level error value obtained in Step 2-3 to the water level compensation value in Step 2-1 to obtain a new water level compensation value;
[0018] Step 2-4: Add the water level acquisition value to the water level compensation value calculated in Step 2-3 to obtain the calibrated water level acquisition value.
[0019] To effectively avoid false alarms caused by normal rapid fluctuations due to strong winds and waves, the specific process for abnormal alarm detection in step 3 is as follows:
[0020] Step 3-1: Set the upper limit and lower limit of the water level. Record the water level data collected at three adjacent times in chronological order as H1, H2 and H3. The initial values of H1, H2 and H3 are all 0.
[0021] Step 3-2: Assign the latest calibrated water level acquisition value to H3 to obtain the updated H3; assign the original H3 value to H2 to obtain the updated H2; assign the original H2 value to H1 to obtain the updated H1.
[0022] Step 3-3: Determine whether the updated H3 is greater than the upper limit of the water level or less than the lower limit of the water level. If so, an alarm signal will be generated; otherwise, proceed to step 3-4.
[0023] Steps 3-4: Calculate the rate of water level change based on the updated H1, H2, and H3;
[0024] Step 3-5: Determine whether the rate of water level change exceeds the set rate. If so, generate an alarm signal; otherwise, proceed to step 3-2.
[0025] Preferably, the water level change rate in steps 3-4 The calculation formula is:
[0026] .
[0027] In order to obtain information on water level changes, step 3-3 further includes the following operation when the updated H3 is less than or equal to the upper limit of the water level or greater than or equal to the lower limit of the water level:
[0028] The updated H1, H2, and H3 are compared in size, and a water level drop signal, a water level rise signal, or an alarm signal is generated based on the comparison results.
[0029] Specifically, if the updated H1 > H2 and the updated H2 > H3, a water level drop signal is generated.
[0030] Specifically, if the updated H1 < H2 and the updated H2 < H3, then a water level rise signal is generated.
[0031] Specifically, if no water level drop signal is generated, an alarm signal is generated.
[0032] The technical solution adopted by the present invention to solve the second technical problem mentioned above is as follows: a water level measurement system, including a water level sensor, a controller and a memory, wherein the controller is signal-connected to the water level sensor and the memory respectively, characterized in that: it further includes a water level calibration signal generator signal-connected to the controller, and the memory stores a computer program / instruction, which, when executed by the controller, implements the above-mentioned water level measurement method.
[0033] Compared with the prior art, the advantages of the present invention are as follows: by setting a water level calibration signal, the obtained water level acquisition value is calibrated after the water level calibration signal is obtained. Therefore, the water level measurement method can realize automatic timed calibration to achieve automatic compensation and ensure that the measured water level remains highly accurate. In addition, by performing abnormal alarm detection on the calibrated water level acquisition value, the problem of false alarms caused by fluctuations caused by strong winds and waves or water level signal drift caused by water surface freezing in winter can be effectively avoided, thereby improving the accuracy of water level measurement. Attached Figure Description
[0034] Figure 1 This is a flowchart of the water level measurement method in an embodiment of the present invention;
[0035] Figure 2 This is a schematic diagram of the water level measurement system in an embodiment of the present invention. Detailed Implementation
[0036] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0037] like Figure 1 As shown, the water level measurement method in this embodiment includes the following steps:
[0038] Step 1: Obtain water level data using a water level sensor;
[0039] Step 2: Detect the water level calibration signal. After obtaining the water level calibration signal, calibrate the water level acquisition value obtained in Step 1 to obtain the calibrated water level acquisition value.
[0040] In this embodiment, the water level calibration signal is the rising edge; the specific process of water level calibration is as follows:
[0041] Step 2-1: Set the calibration water level value, water level compensation value, upper limit of water level compensation, and lower limit of water level compensation; the calibration water level value and water level compensation value in this embodiment can be determined based on experimental or empirical values;
[0042] Step 2-2: Calculate the water level error value Water level error value The calculation formula is:
[0043]
[0044] in, This is a function to find the maximum value. This is a function to find the maximum value. This is the water level data collected. To calibrate the water level value, This is the upper limit of water level compensation. This is the lower limit for water level compensation.
[0045] Step 2-3: Add the water level error value obtained in Step 2-3 to the water level compensation value in Step 2-1 to obtain a new water level compensation value;
[0046] Step 2-4: Add the water level acquisition value to the water level compensation value calculated in Step 2-3 to obtain the calibrated water level acquisition value;
[0047] Step 3: Detect any abnormalities in the calibrated water level data.
[0048] The specific process of abnormal alarm detection is as follows:
[0049] Step 3-1: Set the upper limit and lower limit of the water level. Record the water level data collected at three adjacent times in chronological order as H1, H2 and H3. The initial values of H1, H2 and H3 are all 0.
[0050] Step 3-2: Assign the latest calibrated water level acquisition value to H3 to obtain the updated H3; assign the original H3 value to H2 to obtain the updated H2; assign the original H2 value to H1 to obtain the updated H1.
[0051] Step 3-3: Determine whether the updated H3 is greater than the upper limit of the water level or less than the lower limit of the water level. If so, an alarm signal will be generated, which is a water level limit alarm signal. If not, proceed to step 3-4.
[0052] Steps 3-4: Calculate the rate of water level change based on the updated H1, H2, and H3;
[0053] Rate of change of water level The calculation formula is:
[0054] ;
[0055] Step 3-5: Determine whether the rate of change of water level exceeds the set rate. If so, generate an alarm signal, which is a water level limit alarm signal. If not, proceed to step 3-2.
[0056] Step 4: Determine whether an alarm signal is received. If so, generate a water level disabling signal; otherwise, use the calibrated water level acquisition value as the water level measurement value.
[0057] Step 3-3 above, when the updated H3 is less than or equal to the upper limit of the water level or greater than or equal to the lower limit of the water level, also includes the following operations:
[0058] The updated H1, H2, and H3 are compared in size, and a water level drop signal, a water level rise signal, or an alarm signal is generated based on the comparison results.
[0059] In this embodiment, if the updated H1 > H2 and the updated H2 > H3, a water level drop signal is generated; if the updated H1 < H2 and the updated H2 < H3, a water level rise signal is generated; if neither a water level drop signal nor a water level rise signal is generated, an alarm signal is generated. This alarm signal is a water level lock alarm signal.
[0060] The aforementioned water level limit alarm signal and water level lock alarm signal are designed to accurately classify abnormal water level conditions, so that maintenance personnel can intuitively understand the corresponding abnormal conditions.
[0061] This embodiment also relates to a water level measurement system, such as... Figure 2 As shown, the water level measurement system includes a water level sensor 1, a controller 2, a memory 3, and a water level calibration signal generator 4. The controller 2 is connected to the water level sensor 1, the memory 3, and the water level calibration signal generator 4. The water level calibration signal generator 4 is used to generate water level calibration signals at regular intervals. The memory 3 stores computer programs / instructions, which are executed by the controller to implement the aforementioned water level measurement method. In this embodiment, the water level sensor 1 is a float-type water level sensor, and the controller 2 is a PLC controller, which is also communicatively connected to a monitoring system 5.
[0062] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A water level measurement method, characterized in that... Includes the following steps: Step 1: Obtain water level data using a water level sensor; Step 2: Detect the water level calibration signal. After obtaining the water level calibration signal, calibrate the water level acquisition value obtained in Step 1 to obtain the calibrated water level acquisition value. Step 3: Detect any abnormalities in the calibrated water level data. Step 4: Determine whether an alarm signal is received. If so, generate a water level disabling signal; otherwise, use the calibrated water level acquisition value as the water level measurement value.
2. The water level measurement method according to claim 1, characterized in that: The water level calibration signal in step 2 is the rising edge.
3. The water level measurement method according to claim 1, characterized in that: The specific process of water level calibration in step 2 is as follows: Step 2-1: Set the calibration water level value, water level compensation value, upper limit of water level compensation, and lower limit of water level compensation; Step 2-2: Calculate the water level error value Water level error value The calculation formula is: in, This is a function to find the maximum value. This is a function to find the maximum value. This is the water level data collected. To calibrate the water level value, This is the upper limit of water level compensation. This is the lower limit for water level compensation. Step 2-3: Add the water level error value obtained in Step 2-3 to the water level compensation value in Step 2-1 to obtain a new water level compensation value; Step 2-4: Add the water level acquisition value to the water level compensation value calculated in Step 2-3 to obtain the calibrated water level acquisition value.
4. The water level measurement method according to any one of claims 1 to 3, characterized in that: The specific process of abnormal alarm detection in step 3 is as follows: Step 3-1: Set the upper limit and lower limit of the water level. Record the water level data collected at three adjacent times in chronological order as H1, H2 and H3. The initial values of H1, H2 and H3 are all 0. Step 3-2: Assign the latest calibrated water level acquisition value to H3 to obtain the updated H3; assign the original H3 value to H2 to obtain the updated H2; assign the original H2 value to H1 to obtain the updated H1. Step 3-3: Determine whether the updated H3 is greater than the upper limit of the water level or less than the lower limit of the water level. If so, an alarm signal will be generated; otherwise, proceed to step 3-4. Steps 3-4: Calculate the rate of water level change based on the updated H1, H2, and H3; Step 3-5: Determine whether the rate of water level change exceeds the set rate. If so, generate an alarm signal; otherwise, proceed to step 3-2.
5. The water level measurement method according to claim 4, characterized in that: The rate of water level change in steps 3-4 The calculation formula is: 。 6. The water level measurement method according to claim 4, characterized in that: When the updated H3 is less than or equal to the upper limit of the water level and greater than or equal to the lower limit of the water level, step 3-3 further includes the following operation: The updated H1, H2, and H3 are compared in size, and a water level drop signal, a water level rise signal, or an alarm signal is generated based on the comparison results.
7. The water level measurement method according to claim 6, characterized in that: If the updated H1 > H2 and the updated H2 > H3, then a water level drop signal is generated.
8. The water level measurement method according to claim 7, characterized in that: If the updated H1 < H2 and the updated H2 < H3, then a water level rise signal is generated.
9. The water level measurement method according to claim 8, characterized in that: If no water level drop signal is generated, an alarm signal will be generated.
10. A water level measurement system, comprising a water level sensor, a controller, and a memory, wherein the controller is signal-connected to both the water level sensor and the memory, characterized in that: It also includes a water level calibration signal generator connected to the controller signal, and the memory stores a computer program / instruction that, when executed by the controller, implements the water level measurement method according to any one of claims 1 to 9.