A data processing method and device

Through real-time data processing and water level correction methods, the problem of H-ADCP flow measurement data being affected by environmental factors is solved, the accuracy and stability of the data are improved, and the accuracy of flow calculation is ensured.

CN115391321BActive Publication Date: 2024-09-20广州远动信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211043603.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-29
Publication Date
2024-09-20
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

H-ADCP flow measurement data is easily affected by environmental factors, resulting in a reduced flow measurement range and large errors. The measurement accuracy of the water level sensor is affected by floating objects and air pressure changes, resulting in inaccurate data.

Method used

By acquiring H-ADCP data in real time, unreliable and out-of-range data are eliminated, the median and standard deviation are used to determine outliers, three-dimensional convolution interpolation is performed to fill in missing data, and the disturbance is corrected through the wavelet denoising algorithm; at the same time, using The difference between the ultrasonic and pressure water level sensors is used to calculate the air pressure correction value, and the built-in water level is automatically fused and calculated.

Benefits of technology

It improves the stability, reliability and accuracy of flow measurement data, reduces errors and ensures the accuracy of flow calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115391321B
    Figure CN115391321B
Patent Text Reader

Abstract

The embodiments of this specification disclose a data processing method and device. The method includes: acquiring velocity data collected by a horizontal acoustic Doppler current profiler (Horizontal-Acoustic Doppler Current Profiler, H-ADCP) in real time; judging whether the velocity data is reliable according to data quality parameters, and eliminating unreliable data; judging whether the remaining velocity data conforms to a reasonable velocity range, and eliminating data beyond the range; eliminating outliers in the data set according to a domain filtering algorithm; interpolating missing values ​​using a cubic convolution method; and correcting small disturbances from various sources in the data by wavelet denoising. The present invention automatically performs quality control on H-ADCP data, reduces interference from external factors on the data, and improves the accuracy of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computers and data processing, and in particular to a method and device for processing river water flow data. Background Art

[0002] The Horizontal-Acoustic Doppler Current Profiler (H-ADCP) is widely used in the flow measurement of lakes and rivers. Its principle is to use Doppler frequency shift to calculate the sound waves scattered back by particles in the water to calculate the flow velocity vector. However, the flow measurement data of H-ADCP is easily affected by environmental factors. For example, excessive sediment content in the water body will weaken the penetration of sound waves in the water, reduce the effective flow measurement range, and the measurement results of long-distance flow layers may be inaccurate, and even erroneous data of >10m / s may appear; passing ships or large floating objects are also easy to block or interfere with the sound wave signal, causing large flow measurement errors; the sound wave sensor and pressure sensor built into the H-ADCP also have obvious defects in monitoring the water level. Floating objects on the water surface and changes in air pressure affect the measurement accuracy of the sound wave sensor and pressure sensor respectively. Summary of the invention

[0003] In view of this, an embodiment of the present application provides a data processing method and device for improving the accuracy of flow measurement data.

[0004] To solve the above technical problems, the embodiments of this specification are implemented as follows:

[0005] A data processing method provided in an embodiment of this specification includes:

[0006] Obtain flow rate data collected by H-ADCP in real time;

[0007] Determine whether the flow rate data is reliable according to the data quality parameter, and remove unreliable data;

[0008] Determine whether the remaining flow rate data conforms to a reasonable flow rate range, and remove data that exceeds the range.

[0009] Optionally, the data quality parameter includes a standard deviation or a percentage of optimal solutions.

[0010] Optionally, the method further includes:

[0011] Get a data subset consisting of the data to be tested and the three preceding and following data;

[0012] determining the median and standard deviation of the data subset;

[0013] Determine whether the difference between the data to be tested and the median is greater than 3 times the standard deviation. If so, eliminate the data to be tested.

[0014] Optionally, the method further includes:

[0015] For the gaps left by deleted data or the gaps left by the system's short-term underreporting, cubic convolution interpolation is used for interpolation.

[0016] Optionally, the method further includes:

[0017] Small disturbances in the velocity data are corrected using a wavelet denoising algorithm.

[0018] Optionally, the data processing method performs processing on a velocity data set of a "layer number × time" grid.

[0019] Optionally, the data processing method further includes a water level data processing method, and the water level data processing method includes:

[0020] Get the pressure water level value at the current moment;

[0021] The sum of the pressure water level value and the air pressure correction value is calculated as the corrected built-in water level.

[0022] Optionally, the method for determining the air pressure correction value is as follows:

[0023] Acquire a water level data set within a preset time, wherein the water level data set includes an acoustic water level data set and a pressure water level data set;

[0024] The difference between the acoustic water level data and the pressure water level data at any time is calculated, and the median of the difference sequence is taken as the air pressure correction value.

[0025] Optionally, the H-ADCP includes an ultrasonic water level sensor and a pressure water level sensor, and the ultrasonic water level sensor and the pressure water level sensor are installed at the same position.

[0026] Optionally, the method further includes:

[0027] The flow rate is calculated based on the processed flow velocity data and the corrected built-in water level.

[0028] An embodiment of this specification provides a data processing device, including:

[0029] A data acquisition module, used to acquire the flow rate data collected by ADCP in real time;

[0030] An unreliable data elimination module, used to determine whether the flow rate data is reliable according to data quality parameters, and eliminate unreliable data;

[0031] The out-of-range data elimination module is used to determine whether the remaining flow rate data conforms to a reasonable flow rate range and eliminate the data that exceeds the range.

[0032] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0033] The present invention automatically performs quality control on H-ADCP data, removes false data and retains true data, and improves the stability, reliability and accuracy of the data.

[0034] The online flow platform takes advantage of the characteristics of the two water level sensors, avoids their weaknesses, and automatically integrates and calculates the "corrected built-in water level". BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0036] Figure 1 A flowchart of a data processing method provided in an embodiment of this specification;

[0037] Figure 2 A flowchart of a specific embodiment of a data processing method provided in an embodiment of this specification;

[0038] Figure 3 A schematic flow chart of a water level data processing method provided in an embodiment of this specification;

[0039] Figure 4 A flow chart of a flow data processing method provided in an embodiment of this specification;

[0040] Figure 5 The embodiments of this specification provide corresponding to Figure 1 A structural schematic diagram of a data processing device. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0042] The flow measurement data of H-ADCP is easily affected by environmental factors. For example, if the sediment content of the water body is too high, the penetration of sound waves in the water will be weakened, the effective flow measurement range will be reduced, and the measurement results of the long-distance flow layer may be inaccurate, and even erroneous data of >10m / s may appear; passing ships or larger floating objects can also easily block or interfere with the sound wave signal, causing large flow measurement errors. Therefore, the online flow monitoring platform has designed some algorithms to automatically control the quality of H-ADCP data, eliminate the false and retain the true, and ensure the accuracy of the final flow results. All post-processing is done on the velocity data set of the "layer number × time" grid, and then the representative velocity is calculated using the processed results.

[0043] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0044] Figure 1 The flowchart of a data processing method provided by the embodiment of this specification is as follows. From the program perspective, the execution subject of the process can be a program installed on an application server or an application client.

[0045] like Figure 1 As shown, the process may include the following steps:

[0046] Step 110: Acquire the flow rate data collected by H-ADCP in real time.

[0047] Step 120: Determine whether the flow rate data is reliable based on data quality parameters, and remove unreliable data; wherein the data quality parameters may include standard deviation or optimal solution percentage, etc., and are also adjusted and modified according to actual conditions.

[0048] Step 130: Determine whether the remaining velocity data conforms to a reasonable velocity range (such as not greater than 10 m / s), and remove the data that exceeds the range. The remaining data is reliable data that conforms to the quality parameters.

[0049] The above method can be applied to the collected data in real time to achieve real-time automatic data detection and processing. In addition, the above steps of the data processing method are processed on the velocity data set of the "layer number × time" grid, and the following steps are also the same.

[0050] In addition, in addition to real-time data processing, it is also necessary to process the data regularly and make some corrections based on the correlation of adjacent data. Specifically, the method may also include:

[0051] Get a data subset consisting of the data to be tested and the three preceding and following data;

[0052] determining the median and standard deviation of the data subset;

[0053] Determine whether the difference between the data to be tested and the median is greater than 3 times the standard deviation. If so, eliminate the data to be tested.

[0054] The above operation can be called domain filtering. The data filtered out by this method are outliers, that is, data that deviates significantly from other data and should be eliminated.

[0055] The regular time may be one day.

[0056] In addition, gap filling can also be performed, for example, gaps left by deleted data or gaps left by a short-term system failure can be interpolated through cubic convolution interpolation. This makes the interpolated data change smoothly without sudden changes, closer to the natural changes of water flow, and has higher accuracy than other interpolation methods such as linear interpolation and nearest neighbor interpolation.

[0057] In addition, data disturbances can also be corrected. Specifically, small disturbances in flow velocity data can be corrected by a wavelet denoising algorithm.

[0058] Figure 2 This is a flow chart of a specific embodiment of a data processing method provided in the embodiments of this specification. Figure 2 As shown, the process may include the following steps:

[0059] Step 210: Acquire the flow rate data collected by H-ADCP in real time.

[0060] Step 220: Determine whether the flow rate data is reliable based on data quality parameters, and remove unreliable data; wherein the data quality parameters may include standard deviation or optimal solution percentage, etc., and are also adjusted and modified according to actual conditions.

[0061] Step 230: Determine whether the remaining velocity data conforms to a reasonable velocity range (such as not greater than 10 m / s), and remove the data that exceeds the range. The remaining data is reliable data that conforms to the quality parameters.

[0062] Step 240: According to the domain filtering algorithm, each data and the three data before and after (a total of 7 data) are combined into a data subset, and the difference between each data and the median of the data subset is calculated. If the difference is greater than 3 times the standard deviation, the data is regarded as an outlier and removed;

[0063] Step 250: Perform cubic convolution interpolation on the data gaps that occur in the first three steps or the gaps left by the system's under-reporting within a short period of time.

[0064] Step 260: Correcting data outliers caused by small disturbances in the flow rate data.

[0065] The above method is used to process flow rate data. For water level data, the present invention also performs corresponding processing. The H-ADCP includes an ultrasonic water level sensor and a pressure water level sensor. The ultrasonic water level sensor and the pressure water level sensor are installed in the same position. The specific process is as follows Figure 3 As shown, the following steps are included:

[0066] Step 310: Acquire flow rate data collected by the ultrasonic water level sensor and the pressure water level in real time.

[0067] Step 320: Calculate the air pressure correction value using the acoustic water level data and the pressure water level data.

[0068] Step 330: Calculate and correct the built-in water level using the air pressure correction value.

[0069] Based on the above two water level sensors, the water level data processing method includes:

[0070] Get the pressure water level value at the current moment;

[0071] The sum of the pressure water level value and the air pressure correction value is calculated as the corrected built-in water level.

[0072] The method for determining the air pressure correction value is as follows:

[0073] Acquire a water level data set within a preset time (2 hours), wherein the water level data set includes an acoustic water level data set and a pressure water level data set;

[0074] The difference between the acoustic water level data and the pressure water level data at any time is calculated, and the median of the difference sequence is taken as the air pressure correction value.

[0075] This method uses the online flow platform to take advantage of the characteristics of the two water level sensors, avoid their weaknesses, and automatically integrate and calculate the "corrected built-in water level"

[0076] based on Figure 1 The method, the embodiments of this specification also provide some specific implementation methods of the method, which are described below.

[0077] 1. Flow rate data processing method

[0078] The flow measurement data of H-ADCP is easily affected by environmental factors. For example, if the sediment content of the water body is too high, the penetration of sound waves in the water will be weakened, the effective flow measurement range will be reduced, and the measurement results of long-distance flow layers may be inaccurate, or even erroneous data of >10m / s may appear; passing ships or larger floating objects can also easily block or interfere with the sound wave signal, causing large flow measurement errors. Therefore, the online flow monitoring platform has designed some algorithms to automatically perform quality control on the H-ADCP data, eliminate the false and retain the true, and ensure the accuracy of the final flow results. All post-processing is performed on the velocity data set of the "number of layers × time" grid, and then the processed results are used to calculate the representative flow velocity. The specific steps are as follows:

[0079] ① Data self-check: Determine whether the corresponding data is reliable based on the data quality parameters (such as standard deviation, percentage of optimal solutions, etc.) reported by H-ADCP, and delete unreliable data;

[0080] ② Eliminate over-limit values: According to the water flow characteristics of the site, set a reasonable flow velocity range and delete the data that exceeds the range; if a specific flow layer is often disturbed, the data of these flow layers can also be deleted as a whole;

[0081] ③ Domain filtering: Each data and the three data before and after (a total of 7 data) form a data subset, and examine the difference between each data and the median of the data subset. If it is greater than 3 times the standard deviation, the data is considered an outlier and removed;

[0082] ④ Missing value interpolation: The gaps left after deleting the erroneous data in the first three steps, or the gaps left by the system's short-term underreporting, are interpolated through cubic convolution interpolation; this interpolation method can ensure that the interpolation surface passes through the sample points, and the left and right limits of the connection between each interpolation surface are equal, and the left and right first-order derivatives are equal, so that the data after interpolation changes smoothly without sudden changes, which is closer to the natural changes of water flow, and has higher accuracy than other interpolation methods such as linear interpolation and nearest neighbor interpolation.

[0083] ⑤ Wavelet denoising: The small disturbances in the velocity data are corrected by the wavelet denoising algorithm. These data disturbances are usually caused by the interference of passing ships or floating objects. Wavelet denoising is based on the wavelet transform algorithm, which filters high-frequency random noise while retaining the details of signal changes to the greatest extent, thereby achieving the purpose of improving data accuracy. Compared with the Fourier transform, which can only identify the overall frequency domain characteristics of the data, the wavelet transform can extract the frequency domain information that changes with time, and can better handle the changing characteristics of non-stationary time series, ensuring that random disturbances can be effectively removed on the basis of retaining the real sudden change signal. Therefore, it is particularly suitable for data enhancement of hydrological time series (rainstorms, floods, runoff, etc. have non-stationary characteristics). Among them, ① and ② are processed in real time after each data is received; ③-⑤ use a period of data for processing and run once a day.

[0084] 2. Water level data processing method

[0085] The mainstream H-ADCP has two water level sensors, including an ultrasonic sensor and a pressure sensor. The ultrasonic sensor measures the water level by sending an ultrasonic detection probe to measure the distance from the water surface. The measurement result is easily interfered by floating objects, and data jumps often occur. The pressure sensor converts the water depth by measuring the pressure, and the measurement result is relatively stable, but the sensor does not have real-time air pressure correction. The annual change in air pressure will cause the water level result to have a system error of more than 20cm. The online flow platform takes advantage of the characteristics of the two water level sensors, takes advantage of their strengths and avoids their weaknesses, and automatically integrates and calculates the "corrected built-in water level":

[0086] Take the water level data of the last 2 hours and calculate the difference between the acoustic water level and the pressure water level; take the median of this difference sequence as the air pressure correction value, calculate the sum of the pressure water level and the air pressure correction value at the current moment, and use it as the "corrected built-in water level" at this moment.

[0087] Figure 4 A flow chart of a flow data processing method provided in an embodiment of this specification; Figure 4 As shown, the method includes:

[0088] Step 410: acquiring the flow rate and water level data collected by H-ADCP in real time, wherein the water level data includes the difference between the acoustic wave water level data and the pressure water level data; jumping to step 420 and step 421;

[0089] Step 420: judging whether the flow rate data is reliable according to the data quality parameter, and disposing unreliable data; jumping to step 430;

[0090] Step 430: determine whether the remaining flow rate data conforms to a reasonable flow rate range, and extract data that exceeds the range; jump to step 440;

[0091] Step 440: According to the domain filtering algorithm, outliers in the data set are extracted; jump to step 150;

[0092] Step 450: after removing the abnormal values ​​or the flow rate data missing in the system in a short period of time, perform three convolution differences; jump to step 460;

[0093] Step 460: revise the small disturbance of the velocity data to improve the accuracy of the final data; jump to step 470;

[0094] Step 421: Calculate the difference between the acoustic water level data and the pressure water level data at any time, and take the median of the difference sequence as the air pressure correction value; jump to step 131;

[0095] Step 431: Calculate the sum of the pressure water level value and the air pressure correction value as the correction built-in water level; jump to step 470;

[0096] Step 470: The cross-sectional area can be calculated using the corrected water level data (corrected built-in water level) and the preset riverbed topography value, and then the flow rate can be calculated using the corrected flow velocity data and the cross-sectional area.

[0097] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 5 The embodiments of this specification provide corresponding to Figure 1 A structural diagram of a data processing device. Figure 5 As shown, the device may include:

[0098] A data acquisition module 510, for acquiring flow rate data collected by H-ADCP in real time;

[0099] An unreliable data elimination module 520, used to determine whether the flow rate data is reliable according to the data quality parameter, and eliminate unreliable data;

[0100] The out-of-range data elimination module 530 is used to determine whether the remaining flow rate data conforms to a reasonable flow rate range and eliminate the data that exceeds the range.

[0101] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0102] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0103] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0104] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A data processing method, characterized in that: include: Obtain flow rate data collected by H-ADCP in real time; Determine whether the flow rate data is reliable according to the data quality parameter, and remove unreliable data; Determine whether the remaining flow rate data conforms to a reasonable flow rate range, and remove data that exceeds the range; The method further comprises: Get the pressure water level value at the current moment; Calculating the sum of the pressure water level value and the air pressure correction value as the correction built-in water level; The method for determining the air pressure correction value is as follows: Acquire a water level data set within a preset time, wherein the water level data set includes an acoustic wave water level data set and a pressure water level data set; calculate the difference between the acoustic wave water level data and the pressure water level data at any time, and take the median of the difference sequence as the air pressure correction value; The H-ADCP includes an ultrasonic water level sensor and a pressure water level sensor, and the ultrasonic water level sensor and the pressure water level sensor are installed at the same position; The method further comprises: The flow rate is calculated based on the processed flow velocity data and the corrected built-in water level.

2. The data processing method according to claim 1, characterized in that: The data quality parameters include standard deviation or percentage of optimal solutions.

3. The data processing method according to claim 1, characterized in that: Obtain a data subset consisting of the data to be tested and the three preceding and following data; determine the median and standard deviation of the data subset; determine whether the difference between the data to be tested and the median is greater than 3 times the standard deviation, and if so, eliminate the data to be tested.

4. The data processing method according to claim 1, characterized in that: The gaps left after deleting data or the gaps left by the system's short-term underreporting are filled by cubic convolution interpolation.

5. The data processing method according to claim 1, characterized in that: Small disturbances in the velocity data are corrected using a wavelet denoising algorithm.

6. The data processing method according to claim 1, characterized in that: Processing is done on a velocity dataset on a "layers × time" grid.

7. A data processing device, characterized in that: include: A data acquisition module, used to acquire the flow rate data collected by H-ADCP in real time; An unreliable data elimination module, used to determine whether the flow rate data is reliable according to data quality parameters, and eliminate unreliable data; An out-of-range data elimination module is used to determine whether the remaining flow rate data conforms to a reasonable flow rate range and eliminate the data that exceeds the range; Get the pressure water level value at the current moment; Calculating the sum of the pressure water level value and the air pressure correction value as the correction built-in water level; The method for determining the air pressure correction value is as follows: Acquire a water level data set within a preset time, wherein the water level data set includes an acoustic wave water level data set and a pressure water level data set; calculate the difference between the acoustic wave water level data and the pressure water level data at any time, and take the median of the difference sequence as the air pressure correction value; The H-ADCP includes an ultrasonic water level sensor and a pressure water level sensor, and the ultrasonic water level sensor and the pressure water level sensor are installed at the same position; The method further comprises: The flow rate is calculated based on the processed flow velocity data and the corrected built-in water level.