A water level measurement method, device and system for water conservancy projects
By analyzing the backhaul signal characteristics of the liquid level and bottom, and combining with the neural network to calculate the backhaul time correction coefficient, the problem of external environmental interference in ultrasonic water level measurement is solved, and the accuracy of water level measurement is improved.
Patent Information
- Application Number
- CN202411112264.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-14
AI Technical Summary
In water conservancy projects, ultrasonic water level measurement methods cause inaccurate ultrasonic signal propagation time due to external environmental factors (such as wind and waves, water flow velocity, and floating objects on the water surface), which affects the measurement accuracy.
By collecting the ultrasonic signal current signals from the liquid level and bottom back, analyzing the liquid level and frequency domain characteristics to obtain the disturbed factor, combining the neural network to calculate the back-pass time correction coefficient, and performing ultrasonic signal time correction to improve measurement accuracy.
Effectively reduce external environmental interference, improve the accuracy of water level measurement results, and ensure the accuracy of water level measurement in water conservancy projects.
Smart Images

Figure CN118670481B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water level measurement, and in particular to a water level measurement method, equipment and system for water conservancy projects. Background Art
[0002] Water level measurement in water conservancy projects is one of the key technologies for monitoring water resources and is crucial to the design and construction of water conservancy projects. By monitoring the water level changes of water conservancy projects such as reservoirs and dams, a scientific basis can be provided for the rational use and management of water resources; at the same time, water level data is an important basis for hydrological intelligence and hydrological forecasts. By monitoring water level changes, flood warnings can be issued in a timely manner, providing scientific guidance for the implementation of flood control measures.
[0003] In the process of measuring the water level of a hydraulic project using an ultrasonic water level meter, the external environment, such as wind and waves, water flow velocity, or floating objects on the water surface in a harsh environment, may affect the propagation behavior of ultrasonic waves in the water, thereby changing the propagation time of ultrasonic waves in the water, resulting in inaccurate water level measurement of hydraulic projects. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of this application is to provide a water level measurement method, equipment and system for water conservancy projects. The technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present application provides a water level measurement method for a water conservancy project, the method comprising the following steps:
[0006] Collect the current signals corresponding to the ultrasonic signal emitted during the water level measurement, the ultrasonic signal returned from the liquid surface, and the ultrasonic signal returned from the liquid bottom, and record them as the initial current signal, the liquid surface current signal, and the liquid bottom current signal respectively;
[0007] The liquid surface disturbance factor of each water level detection period is obtained according to the amplitude difference between the liquid surface current signal and the initial current signal in each water level detection period and the data distribution characteristics of the liquid surface current signal amplitude;
[0008] The frequency domain disturbance factor of each water level detection period is obtained according to the frequency domain characteristics of the liquid bottom current signal of each water level detection period;
[0009] Multiple adjacent water level detection cycles are taken as a water level detection interval, and the signal disturbance coefficient of each water level detection interval is obtained based on the liquid surface disturbance factor and the frequency domain disturbance factor. The return time correction coefficient of the ultrasonic signal of each water level detection interval is obtained by combining the neural network.
[0010] The return time is corrected according to the return time correction coefficient of the water level detection interval, and the water level measurement result is calculated based on the corrected return time.
[0011] In one embodiment, the process of obtaining the liquid level disturbance factor of each water level detection cycle is as follows:
[0012] The sequence composed of all amplitude values of the liquid surface current signal in each water level detection cycle is used as the liquid surface current amplitude sequence of each water level detection cycle; each amplitude peak and amplitude trough of each liquid surface current amplitude sequence is obtained by a peak detection algorithm;
[0013] The signal amplitude attenuation degree of each water level detection cycle is obtained based on the difference between the amplitude peak of each liquid surface current amplitude sequence and the amplitude of the initial current signal; the signal amplitude fluctuation degree of each water level detection cycle is calculated based on the element distribution characteristics in each liquid surface current amplitude sequence;
[0014] The liquid surface disturbance factor of each water level detection period is obtained based on the signal amplitude attenuation degree and the signal amplitude fluctuation degree, wherein the liquid surface disturbance factor of each water level detection period is positively correlated with the signal amplitude attenuation degree and the signal amplitude fluctuation degree, respectively.
[0015] In one embodiment, the process of obtaining the signal amplitude attenuation degree of each water level detection cycle is as follows:
[0016] Calculate the difference between the amplitude of the initial current signal and each amplitude peak, and record it as the first amplitude difference; take the fusion value of the first amplitude difference of all amplitude peaks in the liquid surface current amplitude sequence of each water level detection cycle as the signal amplitude attenuation degree of each water level detection cycle.
[0017] In one embodiment, the process of obtaining the signal amplitude fluctuation degree of each water level detection cycle is as follows:
[0018] Calculate the amplitude difference between each amplitude peak and the amplitude troughs adjacent to the left and right, take the sequence composed of all the amplitude differences of the liquid surface current amplitude sequence of each water level detection period as each amplitude difference sequence, and obtain the interquartile range of the amplitude difference sequence;
[0019] The discreteness of all elements in the liquid surface current amplitude sequence of each water level detection cycle is calculated; the signal amplitude fluctuation degree of each water level detection cycle is positively correlated with the discreteness and negatively correlated with the interquartile range.
[0020] In one embodiment, the process of obtaining the frequency domain disturbance factor of each water level detection period is as follows:
[0021] Obtain the spectrum of the liquid bottom current signal in each water level detection cycle, record the maximum energy in each signal envelope of each frequency component in the spectrum as the first maximum energy; and take the sequence composed of the first maximum energies of all signal envelopes of each frequency component as the spectrum energy sequence of each frequency component;
[0022] Calculate the similarity between the spectrum energy sequences of any two frequency components, and use the fusion value of all the similarities in the spectrum graph as the spectrum offset intensity of each water level detection cycle; obtain the spectrum bandwidth expansion degree of each water level detection cycle based on the bandwidth of all signal envelopes in the spectrum graph;
[0023] The frequency domain disturbance factor of each water level detection period is obtained based on the spectrum offset strength and the spectrum bandwidth expansion degree, wherein the frequency domain disturbance factor of each water level detection period is positively correlated with the spectrum offset strength and the spectrum bandwidth expansion degree, respectively.
[0024] In one embodiment, the process of obtaining the spectrum bandwidth expansion degree of each water level detection cycle is as follows:
[0025] A sequence of preset decibel bandwidths of all signal envelopes of each frequency component is used as a spectrum bandwidth sequence of each frequency component; the mean of all elements in the spectrum bandwidth sequence of each frequency component is obtained and recorded as a first mean; and a spectrum bandwidth sequence corresponding to the minimum value of the first mean of all frequency components in the spectrum graph is recorded as a characteristic bandwidth sequence;
[0026] The distance between the spectrum bandwidth sequence of each frequency component and the characteristic bandwidth sequence is calculated, and the fusion value of the distance of all frequency components in the spectrum diagram is used as the spectrum bandwidth expansion degree of each water level detection cycle.
[0027] In one embodiment, the process of obtaining the return time correction coefficient is as follows:
[0028] The fusion value of the liquid surface disturbance factor and the frequency domain disturbance factor of all water level detection cycles in each water level detection interval is used as the signal disturbance coefficient of each water level detection interval;
[0029] The liquid surface current signal, liquid bottom current signal and signal disturbance coefficient of each water level detection interval are used as the input of the neural network, and the output is the return time correction coefficient of the ultrasonic signal.
[0030] In one embodiment, the return time correction is performed according to the return time correction coefficient of the water level detection interval, and the water level measurement result is calculated based on the corrected return time, specifically:
[0031] The corrected ultrasonic signal return time of the x-th water level detection interval is recorded as , The expression is: , where is the return time of the ultrasonic signal from the bottom of the liquid in the x-th water level detection interval, is the return time correction coefficient of the ultrasonic signal in the x-th water level detection interval;
[0032] The water level measurement result of the x-th water level detection interval is recorded as , The expression is: , where , are the corrected ultrasonic signal return time and ultrasonic signal emission time of the x-th water level detection interval, and v is the sound propagation speed.
[0033] In a second aspect, an embodiment of the present application provides a water level measurement device for a water conservancy project, including:
[0034] Water level measurement signal acquisition module: collects the ultrasonic signal emitted during the water level measurement process, the ultrasonic signal returned from the liquid surface, and the current signal corresponding to the ultrasonic signal returned from the liquid bottom, and records them as the initial current signal, the liquid surface current signal, and the liquid bottom current signal respectively;
[0035] Signal return time correction module: obtains the liquid surface disturbance factor of each water level detection period according to the amplitude difference between the liquid surface current signal and the initial current signal in each water level detection period and the data distribution characteristics of the liquid surface current signal amplitude;
[0036] The frequency domain disturbance factor of each water level detection period is obtained according to the frequency domain characteristics of the liquid bottom current signal of each water level detection period;
[0037] Multiple adjacent water level detection cycles are taken as a water level detection interval, and the signal disturbance coefficient of each water level detection interval is obtained based on the liquid surface disturbance factor and the frequency domain disturbance factor. The return time correction coefficient of the ultrasonic signal of each water level detection interval is obtained by combining the neural network.
[0038] Water level measurement module: performs feedback time correction according to the feedback time correction coefficient of the water level detection interval, and calculates the water level measurement result based on the corrected feedback time.
[0039] In a third aspect, an embodiment of the present application also provides a water level measurement system for water conservancy projects, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.
[0040] The embodiments of the present application have at least the following beneficial effects:
[0041] The present application obtains the liquid surface disturbance factor according to the time domain amplitude characteristics of the liquid surface current signal, comprehensively considers the signal amplitude attenuation characteristics and signal amplitude fluctuation characteristics of the liquid surface current signal, and more accurately reflects the interference of wind and waves, and floating objects on the water surface on the water level measurement result; obtains the signal disturbance coefficient according to the liquid surface disturbance factor and the frequency domain characteristics of the liquid bottom current signal, and obtains the ultrasonic signal return time correction coefficient based on this, and further analyzes the interference degree of water flow velocity on the water level measurement result on the basis of analyzing the interference degree of wind and waves, and floating objects on the water surface on the ultrasonic signal; corrects the return time according to the ultrasonic return time correction coefficient to obtain accurate water level measurement results, avoids the problem that the ultrasonic return time is inaccurate and the water level of the water conservancy project cannot be accurately measured due to the large degree of interference from the external environment affecting the propagation of the ultrasonic wave in the water, thereby improving the accuracy of the water level measurement results. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A flow chart of the steps of a water level measurement method for a water conservancy project provided in one embodiment of the present application;
[0044] Figure 2 It is a schematic diagram of the time domain waveform of part of the liquid surface current signal;
[0045] Figure 3 It is a schematic diagram of the time domain waveform of part of the liquid bottom current signal;
[0046] Figure 4 This is a schematic diagram of the AMPD peak detection output of part of the liquid level current signal;
[0047] Figure 5 Schematic diagram of the process of obtaining the liquid surface disturbance factor;
[0048] Figure 6 The figure is a schematic diagram of the structure of a water level measuring device for water conservancy projects. DETAILED DESCRIPTION
[0049] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of a water level measurement method, device and system for water conservancy projects proposed in accordance with the present application, its specific implementation method, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0050] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0051] The following is a detailed description of a specific solution of a water level measurement method, device and system for water conservancy projects provided by the present application in conjunction with the accompanying drawings.
[0052] See also Figure 1 , which shows a flow chart of a water level measurement method for a water conservancy project provided by an embodiment of the present application, the method comprising the following steps:
[0053] Step S1, collecting current signals corresponding to the ultrasonic signal emitted during the water level measurement, the ultrasonic signal returned from the liquid surface, and the ultrasonic signal returned from the liquid bottom, and recording them as the initial current signal, the liquid surface current signal, and the liquid bottom current signal, respectively.
[0054] An ultrasonic level meter is used to obtain the current signals corresponding to the ultrasonic signals transmitted back from the liquid surface and the ultrasonic signals transmitted back from the liquid bottom during the water level measurement process of the hydraulic project. The specific process is: the ultrasonic level meter is placed at a preset height above the liquid level of the hydraulic project. The ultrasonic level meter transmits ultrasonic signals through ultrasonic transducers. The ultrasonic signals are mainly transmitted back twice at the liquid surface and the liquid bottom. The ultrasonic level meter receives the reflected ultrasonic signals through the built-in receiving sensor and converts them into current signals.
[0055] The ultrasonic signal (high-frequency pulse sound wave) emitted by the ultrasonic level meter is converted into a current signal through a sensor and recorded as the initial current signal. The amplitude of the initial current signal is recorded as the initial emission amplitude. The current signal converted from the ultrasonic signal that is transmitted back first in the timing sequence is recorded as the liquid surface current signal, and the current signal converted from the ultrasonic signal that is transmitted back later in the timing sequence is recorded as the liquid bottom current signal.
[0056] Ultrasonic signals with higher transmission frequencies have stronger penetration but lower resolution; ultrasonic signals with lower transmission frequencies have weaker penetration but higher resolution and are easily affected by the water medium and environment. Preferably, in one embodiment of the present application, the frequency of the ultrasonic signal emitted by the ultrasonic level meter is 40KHz, and the ultrasonic level meter is placed 50cm above the liquid level of the water conservancy project. As other implementation methods, the implementer can decide the ultrasonic signal frequency and the placement of the ultrasonic level meter according to actual conditions. A schematic diagram of the time domain waveform of a partial liquid surface current signal is shown in the figure. Figure 2 As shown, the horizontal axis is time, the unit is milliseconds, and the vertical axis is amplitude, the unit is milliamperes. The schematic diagram of the time domain waveform of part of the liquid bottom current signal is shown in Figure 3 As shown, the horizontal axis is time, the unit is milliseconds, and the vertical axis is amplitude, the unit is milliamperes.
[0057] Step S2, obtaining the liquid surface disturbance factor of each water level detection period according to the fluctuation characteristics of the amplitude of the liquid surface current signal in each water level detection period and the data distribution characteristics of the amplitude.
[0058] During the water level measurement process of water conservancy projects, the water surface fluctuations caused by wind and waves and floating objects on the water surface in harsh environments will absorb and scatter ultrasonic energy, making the return time of the ultrasonic signal inaccurate; and the interference of the external environment on the ultrasonic signal is specifically manifested as the attenuation of the ultrasonic signal during the propagation process, which is reflected in the converted current signal as a reduction in amplitude and fluctuations in the signal amplitude; and the change in water flow velocity will affect the propagation direction of the ultrasonic wave in the water, resulting in a multipath effect, causing the frequency spectrum of the converted current signal to expand and offset.
[0059] (1) In the embodiment of the present application, the water level detection period is set to 2s. In other embodiments of the present application, the implementer of the water level detection period can set it according to the actual situation, and the present application does not make specific restrictions. In each water level detection period, the sequence of all amplitude values of the liquid surface current signal in time order is used as the liquid surface current amplitude sequence of the water level detection period; the liquid surface current amplitude sequence is used as the input of the AMPD (Automatic multiscale-based peak detection) peak detection algorithm to obtain all amplitude peaks and amplitude troughs of the liquid surface current amplitude sequence; the amplitude difference between each amplitude peak and the amplitude troughs adjacent to the left and right is calculated, and the sequence of all the amplitude differences of the liquid surface current amplitude sequence in time order is used as the amplitude difference sequence of the water level detection period. The AMPD peak detection algorithm is a well-known technology, and the specific acquisition process will not be repeated. It can be understood that for the peak detection of the liquid surface current amplitude sequence, this embodiment only provides a peak detection method. There are many existing peak detection algorithms, and the implementer can also use other peak detection algorithms to perform peak detection on the liquid surface current amplitude sequence. Schematic diagram of AMPD peak detection output of partial liquid level current signal is as follows Figure 4 shown.
[0060] (2) The signal amplitude attenuation degree of each water level detection cycle is calculated based on the change of the amplitude peak in the liquid surface current amplitude sequence of each water level detection cycle:
[0061] The difference between the initial emission amplitude and the amplitude of each amplitude peak in the liquid surface current amplitude sequence of each water level detection cycle is calculated and recorded as the first amplitude difference; the fusion value of all the first amplitude differences in the liquid surface current amplitude sequence of each water level detection cycle is used as the signal amplitude attenuation degree of each water level detection cycle.
[0062] It should be understood that the fusion described in this application is to combine multiple variables, which may be specifically addition, multiplication, etc. The specific fusion process can be determined according to actual conditions, and this application does not impose any special restrictions.
[0063] Preferably, as an embodiment of the present application, the first amplitude difference may be: the difference between the initial emission amplitude and the amplitude of each amplitude peak in the liquid surface current amplitude sequence of each water level detection cycle, and the calculation result of an exponential function with a natural constant as the base and the difference as the exponent is taken as the first amplitude difference; the signal amplitude attenuation degree of each water level detection cycle may be the average value of all the first amplitude differences in the liquid surface current amplitude sequence of each water level detection cycle;
[0064] In other embodiments of the present application, the first amplitude difference can be the absolute value of the difference between the initial emission amplitude and the amplitude of each amplitude peak in the liquid surface current amplitude sequence of each water level detection cycle; the signal amplitude attenuation degree of each water level detection cycle can be the sum of all the first amplitude differences in the liquid surface current amplitude sequence of each water level detection cycle.
[0065] When the absorption or scattering of ultrasonic energy caused by water surface fluctuations caused by wind and waves or floating objects on the water surface during water level measurement is more significant, the signal amplitude attenuation of the liquid surface current signal is more significant, and the degree of signal amplitude attenuation is greater. Specifically, in the water level detection cycle, the greater the cumulative result of the difference between the initial emission amplitude and all amplitude peaks in the liquid surface current amplitude sequence corresponding to the water level detection cycle.
[0066] (3) Based on the element distribution characteristics in the liquid surface current amplitude sequence of each water level detection cycle, the signal amplitude fluctuation degree of each water level detection cycle is calculated:
[0067] The discreteness of all elements in the liquid surface current amplitude sequence of each water level detection cycle is calculated; the interquartile range of the amplitude difference sequence of each water level detection cycle is calculated; the signal amplitude fluctuation degree of each water level detection cycle is positively correlated with the discreteness and negatively correlated with the interquartile range.
[0068] It can be understood that the positive correlation and negative correlation in this application refer to the relationship between the independent variable and the dependent variable. The positive correlation means that the independent variable increases (decreases) as the dependent variable increases (decreases); the negative correlation means that the independent variable decreases (increases) as the dependent variable increases (decreases). The specific positive correlation and negative correlation can be determined according to actual conditions during the application process, and this application does not impose any special restrictions.
[0069] Preferably, as an embodiment of the present application, the discrete degree may be the standard deviation of all elements in the liquid surface current amplitude sequence of each water level detection cycle; the signal amplitude fluctuation degree of each water level detection cycle may be: the sum of the interquartile range and a preset positive number is used as the denominator, wherein the purpose of the preset positive number is to prevent the denominator from being 0, and the preset positive number is set to 0.1 in this embodiment. In other embodiments of the present application, the implementer may also set the preset positive number to other values, and use the ratio of the discrete degree to the denominator as the signal amplitude fluctuation degree of each water level detection cycle;
[0070] In other embodiments of the present application, the degree of discreteness may be the variance of all elements in the liquid surface current amplitude sequence of each water level detection cycle; the degree of signal amplitude fluctuation of each water level detection cycle may be: the difference between the degree of discreteness and the interquartile range.
[0071] When the water surface fluctuations caused by wind and waves or the absorption or scattering of ultrasonic energy caused by floating objects on the water surface during the water level measurement process are more significant, the signal amplitude fluctuation of the liquid surface current signal is more significant, the greater the degree of signal amplitude fluctuation, and the more stable the difference change between all amplitude peaks and amplitude troughs of the liquid surface signal in the time domain; specifically, in the water level detection cycle, the larger the standard deviation of the liquid surface current amplitude sequence, the smaller the interquartile range of the amplitude difference sequence.
[0072] (4) Based on the signal amplitude attenuation degree and signal amplitude fluctuation degree of each water level detection cycle, the liquid surface disturbance factor of each water level detection cycle is obtained:
[0073] The liquid surface disturbance factor of each water level detection cycle is positively correlated with the signal amplitude attenuation degree and signal amplitude fluctuation degree of each water level detection cycle.
[0074] Preferably, as an embodiment of the present application, the liquid surface disturbance factor of each water level detection cycle may be a normalized value of the product of the signal amplitude attenuation degree and the signal amplitude fluctuation degree of each water level detection cycle;
[0075] In other embodiments of the present application, the liquid surface disturbance factor of each water level detection period may be the sum of a normalized value of the signal amplitude attenuation degree and a normalized value of the signal amplitude fluctuation degree of each water level detection period.
[0076] When the water level is measured, the more significant the absorption or scattering of ultrasonic energy caused by water surface fluctuations caused by wind and waves or floating objects on the water surface, the more interference the liquid surface current signal receives, the greater the signal amplitude attenuation, and the greater the signal amplitude fluctuation.
[0077] Step S3, obtaining the frequency domain disturbance factor of each water level detection period according to the frequency domain characteristics of the liquid bottom current signal of each water level detection period.
[0078] When using an ultrasonic level meter to measure water level, wind and waves or floating objects on the water surface may increase the absorption and scattering of ultrasonic signals, resulting in a longer return time for ultrasonic signals. Changes in water flow velocity will also cause multipath effects on ultrasonic signals in the water, resulting in a longer return time for ultrasonic signals.
[0079] (1) The liquid bottom current signal of each water level detection cycle is taken as input, and converted into the frequency domain by Fourier transform to obtain the liquid bottom current signal spectrum of each water level detection cycle. Each spectrum contains multiple frequency components, and each frequency component contains multiple signal envelopes. The maximum energy in each signal envelope is obtained and recorded as the first maximum energy;
[0080] In the spectrum diagram of the liquid bottom current signal in any water level detection cycle, the sequence of the first maximum energy of all signal envelopes of each frequency component in ascending order of the center frequency of the signal envelope is used as the spectrum energy sequence of each frequency component. Among them, Fourier transform is a well-known technology, and the specific acquisition process will not be described in detail.
[0081] It should be understood that, as an embodiment of the present application, the above merely provides a method for obtaining a spectrum diagram of the liquid bottom current signal. As other implementation methods, on the premise of achieving the purpose of obtaining a spectrum diagram of the liquid bottom current signal, other frequency domain conversion algorithms in the prior art can be used to obtain a spectrum diagram of the liquid bottom current signal.
[0082] (2) Based on the spectrum energy sequence of all frequency components in the spectrum diagram of the liquid bottom current signal of each water level detection cycle, the spectrum offset intensity of each water level detection cycle is obtained:
[0083] In the spectrum diagram of the liquid bottom current signal of each water level detection cycle, the JS divergence between the spectrum energy sequences of any two frequency components is calculated, and the fusion value of all the JS divergences in the spectrum diagram is used as the spectrum offset intensity of the water level detection cycle. Among them, JS divergence is a well-known technology, and the specific process is not repeated here.
[0084] It should be noted that, for the calculation of the similarity between spectrum energy sequences, this application only provides one similarity calculation method. There are many existing similarity calculation methods, and implementers may also use other similarity calculation methods to calculate the similarity between spectrum energy sequences.
[0085] Preferably, as an embodiment of the present application, the spectrum shift intensity of each water level detection cycle may be the sum of all the JS divergences in the corresponding spectrum graph;
[0086] In other embodiments of the present application, the spectrum shift intensity of each water level detection cycle may be an average value of all the JS divergences in the corresponding spectrum diagram.
[0087] When the liquid bottom current signal is greatly disturbed due to water flow changes during water level measurement, the more significant the spectrum offset of the liquid bottom current signal is, the greater the JS divergence accumulation result between the spectrum energy sequences corresponding to all frequency components in the spectrum diagram of the liquid bottom current signal within the water level detection period.
[0088] (3) Based on the bandwidth of all signal envelopes in the spectrum diagram of the liquid bottom current signal of each water level detection cycle, the spectrum bandwidth expansion degree of each water level detection cycle is obtained:
[0089] In the spectrum diagram of the liquid bottom current signal in each water level detection cycle, the sequence of the 3db bandwidth of all signal envelopes of each frequency component in ascending order of the center frequency of the signal envelope is used as the spectrum bandwidth sequence of each frequency component;
[0090] Obtain the mean of all elements in the spectrum bandwidth sequence of each frequency component, recorded as the first mean; record the spectrum bandwidth sequence corresponding to the minimum value of the first mean in the spectrum bandwidth sequence of all frequency components in the spectrum diagram as the characteristic bandwidth sequence of the water level detection period; if there are multiple equal and minimum first means, record the spectrum bandwidth sequence corresponding to the minimum center frequency signal envelope in the signal envelopes corresponding to all minimum first means as the characteristic bandwidth sequence;
[0091] The Euclidean distance between the spectrum bandwidth sequence and the characteristic bandwidth sequence of each frequency component is calculated, and the fusion value of the Euclidean distance of all frequency components in the spectrum graph is used as the spectrum bandwidth expansion degree of the water level detection period.
[0092] When the liquid bottom current signal is greatly disturbed due to water flow changes during water level measurement, the more significant the spectrum bandwidth expansion of the liquid bottom current signal is, the greater the spectrum bandwidth expansion is, and the greater the cumulative Euclidean distance between the spectrum bandwidth sequence corresponding to all frequency components in the water level detection period and the characteristic bandwidth sequence is.
[0093] (4) Based on the spectrum offset intensity and spectrum bandwidth expansion degree of each water level detection period, the frequency domain disturbance factor of each water level detection period is obtained:
[0094] The frequency domain disturbance factor of each water level detection period is positively correlated with the spectrum offset intensity and spectrum bandwidth expansion degree of each water level detection period.
[0095] Preferably, as an embodiment of the present application, the frequency domain disturbance factor of each water level detection period may be the product of the spectrum offset intensity and the spectrum bandwidth expansion degree of each water level detection period;
[0096] In other embodiments of the present application, the frequency domain disturbance factor of each water level detection period may be the sum of the spectrum offset intensity and the spectrum bandwidth expansion degree of each water level detection period.
[0097] When the water level measurement process is carried out, the ultrasonic wave produces a multipath effect in the water due to the change of water flow, resulting in a greater degree of interference to the converted liquid bottom current signal, a larger frequency domain interference factor, a more significant spectrum offset and spectrum expansion phenomenon of the liquid bottom current signal, a greater spectrum offset intensity, and a stronger spectrum bandwidth expansion.
[0098] Step S4, obtaining the signal disturbance coefficient of each water level detection interval based on the liquid surface disturbance factor and the frequency domain disturbance factor of all water level detection cycles in each water level detection interval, and obtaining the return time correction coefficient of the ultrasonic signal of each water level detection interval according to the liquid surface current signal, liquid bottom current signal and signal disturbance coefficient of each water level detection interval.
[0099] In the embodiment of the present application, 10s is set as a water level detection interval. In other embodiments of the present application, the implementer of the water level detection interval can set it according to the actual situation, and the present application does not make any specific restrictions. The fusion value of the liquid surface disturbance factor and the frequency domain disturbance factor of all water level detection cycles in each water level detection interval is used as the signal disturbance coefficient of each water level detection interval.
[0100] Preferably, as an embodiment of the present application, the calculation expression of the signal interference coefficient of each water level detection interval can be:
[0101] , where is the signal disturbance coefficient of the x-th water level detection interval, is the number of water level detection cycles in any water level detection interval, , are respectively the liquid surface disturbance factor and frequency domain disturbance factor of the i-th water level detection cycle in the x-th water level detection interval, is the normalization function;
[0102] In other embodiments of the present application, the calculation expression of the signal interference coefficient of each water level detection interval can be: .
[0103] When the absorption or scattering of ultrasonic waves caused by water surface fluctuations caused by wind and waves or floating objects on the water surface during water level measurement is more significant, and the multipath effect caused by changes in water flow velocity is more serious, the water level measurement results are more seriously disturbed by the external environment, and the return time of the ultrasonic signal may be longer. At this time, it is more necessary to calibrate the return time of the ultrasonic wave received by the ultrasonic level meter. Specifically, the larger the liquid surface disturbance factor, the larger the frequency domain disturbance factor.
[0104] At this point, the signal interference coefficient of any water level detection interval can be obtained according to the above method.
[0105] The liquid surface current signal, liquid bottom current signal and signal disturbance coefficient of each water level detection interval are used as the input of the DNN neural network input layer, and the output layer of the DNN neural network outputs the return time correction coefficient of the ultrasonic signal, wherein the mean square error MSE is used as the loss function and Adam is used as the optimization algorithm. Since the DNN deep neural network is a well-known technology, the specific acquisition process will not be described in detail.
[0106] At this point, the return time correction coefficient of the ultrasonic signal in each water level detection interval can be obtained according to the above method.
[0107] Step S5, correcting the return time according to the ultrasonic signal return time correction coefficient in the water level detection interval to obtain an accurate water level measurement result.
[0108] The ultrasonic signal return time is corrected by the ultrasonic signal return time correction coefficient in the water level detection interval. The expression is: , where is the corrected ultrasonic signal return time of the xth water level detection interval, is the return time of the original ultrasonic signal in the x-th water level detection interval (i.e., the return time of the ultrasonic signal from the liquid bottom), It is the correction coefficient of the return time of the ultrasonic signal in the x-th water level detection interval.
[0109] Then, the water level measurement results of each water level detection interval are obtained according to the corrected ultrasonic signal return time, and the expression is: , where is the water level measurement result of the x-th water level detection interval, , are the corrected ultrasonic signal return time and ultrasonic signal emission time of the x-th water level detection interval, respectively, and v is the sound propagation speed. The sound propagation speed is affected by temperature and needs to be corrected according to the temperature. This process is a well-known technology and the specific sound propagation speed correction process will not be repeated.
[0110] The schematic diagram of the process of obtaining the liquid surface disturbance factor is as follows: Figure 5 shown.
[0111] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a water level measurement device for water conservancy projects provided in an embodiment of the present application. In this embodiment, each unit included in the terminal is used to execute each step in an embodiment corresponding to a water level measurement method for water conservancy projects. Figure 6 , water level measurement equipment includes:
[0112] Water level measurement signal acquisition module: collects the ultrasonic signal emitted during the water level measurement process, the ultrasonic signal returned from the liquid surface, and the current signal corresponding to the ultrasonic signal returned from the liquid bottom, and records them as the initial current signal, the liquid surface current signal, and the liquid bottom current signal respectively;
[0113] Signal return time correction module: obtains the liquid surface disturbance factor of each water level detection period according to the amplitude difference between the liquid surface current signal and the initial current signal in each water level detection period and the data distribution characteristics of the liquid surface current signal amplitude;
[0114] The frequency domain disturbance factor of each water level detection period is obtained according to the frequency domain characteristics of the liquid bottom current signal of each water level detection period;
[0115] Multiple adjacent water level detection cycles are taken as a water level detection interval, and the signal disturbance coefficient of each water level detection interval is obtained based on the liquid surface disturbance factor and the frequency domain disturbance factor. The return time correction coefficient of the ultrasonic signal of each water level detection interval is obtained by combining the neural network.
[0116] Water level measurement module: performs feedback time correction according to the feedback time correction coefficient of the water level detection interval, and calculates the water level measurement result based on the corrected feedback time.
[0117] Based on the same inventive concept as the above method, an embodiment of the present application also provides a water level measurement system for water conservancy projects, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the steps of any one of the above-mentioned water level measurement methods for water conservancy projects are implemented.
[0118] In summary, the embodiment of the present application provides a water level measurement method for water conservancy projects, which obtains a liquid surface disturbance factor according to the time domain amplitude characteristics of the liquid surface current signal, comprehensively considers the signal amplitude attenuation characteristics and signal amplitude fluctuation characteristics of the liquid surface current signal, and more accurately reflects the interference of wind and waves and floating objects on the water surface to the water level measurement result; obtains the signal disturbance coefficient according to the liquid surface disturbance factor and the frequency domain characteristics of the liquid bottom current signal, and obtains the ultrasonic signal return time correction coefficient based on this, and further analyzes the interference degree of water flow velocity on the water level measurement result based on the analysis of the interference degree of wind and waves and floating objects on the water surface; corrects the return time according to the ultrasonic return time correction coefficient to obtain an accurate water level measurement result, avoids the problem that the ultrasonic return time is inaccurate and the water level of the water conservancy project cannot be accurately measured due to the large degree of interference from the external environment affecting the propagation of the ultrasonic wave in the water, thereby improving the accuracy of the water level measurement result.
[0119] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of the present application are described. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0120] The various embodiments in the present application are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0121] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope of the present application.
Claims
1. A water level measurement method for water conservancy projects. It is characterized in that The method comprises the following steps: Collect the current signals corresponding to the ultrasonic signal emitted during the water level measurement, the ultrasonic signal returned from the liquid surface, and the ultrasonic signal returned from the liquid bottom, and record them as the initial current signal, the liquid surface current signal, and the liquid bottom current signal respectively; According to the amplitude difference between the liquid surface current signal and the initial current signal in each water level detection period, and the data distribution characteristics of the liquid surface current signal amplitude, the liquid surface disturbance factor of each water level detection period is obtained; The frequency domain disturbance factor of each water level detection period is obtained according to the frequency domain characteristics of the liquid bottom current signal of each water level detection period; Multiple adjacent water level detection cycles are taken as a water level detection interval, and the signal disturbance coefficient of each water level detection interval is obtained based on the liquid surface disturbance factor and the frequency domain disturbance factor. The return time correction coefficient of the ultrasonic signal of each water level detection interval is obtained by combining the neural network. Correcting the return time according to the return time correction coefficient of the water level detection interval, and calculating the water level measurement result based on the corrected return time; The process of obtaining the liquid surface disturbance factor of each water level detection cycle is as follows: The sequence composed of all amplitude values of the liquid surface current signal in each water level detection cycle is used as the liquid surface current amplitude sequence of each water level detection cycle; each amplitude peak and amplitude trough of each liquid surface current amplitude sequence is obtained by a peak detection algorithm; The difference between each amplitude peak of each liquid surface current amplitude sequence and the amplitude of the initial current signal is fused to obtain the signal amplitude attenuation degree of each water level detection cycle; the amplitude difference between each amplitude peak and the amplitude troughs adjacent to the left and right are calculated, and the signal amplitude fluctuation degree of each water level detection cycle is obtained according to the interquartile range of all amplitude differences and the discrete degree of all elements in the liquid surface current amplitude sequence; Based on the signal amplitude attenuation degree and the signal amplitude fluctuation degree, a liquid surface disturbance factor of each water level detection period is obtained, wherein the liquid surface disturbance factor of each water level detection period is positively correlated with the signal amplitude attenuation degree and the signal amplitude fluctuation degree respectively; The process of obtaining the frequency domain disturbance factor of each water level detection cycle is as follows: Obtain the spectrum of the liquid bottom current signal in each water level detection cycle, record the maximum energy in each signal envelope of each frequency component in the spectrum as the first maximum energy; and take the sequence composed of the first maximum energies of all signal envelopes of each frequency component as the spectrum energy sequence of each frequency component; Calculate the similarity between the spectrum energy sequences of any two frequency components, and use the fusion value of all the similarities in the spectrum graph as the spectrum offset intensity of each water level detection cycle; obtain the spectrum bandwidth expansion degree of each water level detection cycle based on the bandwidth of all signal envelopes in the spectrum graph; Based on the spectrum shift intensity and the spectrum bandwidth expansion degree, a frequency domain disturbance factor of each water level detection period is obtained, wherein the frequency domain disturbance factor of each water level detection period is positively correlated with the spectrum shift intensity and the spectrum bandwidth expansion degree respectively; The step of correcting the return time according to the return time correction coefficient of the water level detection interval and calculating the water level measurement result based on the corrected return time is specifically as follows: The corrected ultrasonic signal return time of the x-th water level detection interval is recorded as , The expression is: , where is the return time of the ultrasonic signal from the bottom of the liquid in the x-th water level detection interval, is the return time correction coefficient of the ultrasonic signal in the x-th water level detection interval; The water level measurement result of the x-th water level detection interval is recorded as , The expression is: , where , are the corrected ultrasonic signal return time and ultrasonic signal emission time of the x-th water level detection interval, and v is the sound propagation speed.
2. A water level measurement method for water conservancy projects as claimed in claim 1, It is characterized in that The process of obtaining the signal amplitude attenuation degree of each water level detection cycle is as follows: Calculate the difference between the amplitude of the initial current signal and each amplitude peak, and record it as the first amplitude difference; take the fusion value of the first amplitude difference of all amplitude peaks in the liquid surface current amplitude sequence of each water level detection cycle as the signal amplitude attenuation degree of each water level detection cycle.
3. A water level measurement method for water conservancy projects as claimed in claim 1, It is characterized in that The process of obtaining the signal amplitude fluctuation degree of each water level detection cycle is as follows: Calculate the amplitude difference between each amplitude peak and the amplitude troughs adjacent to the left and right, take the sequence composed of all the amplitude differences of the liquid surface current amplitude sequence of each water level detection period as each amplitude difference sequence, and obtain the interquartile range of the amplitude difference sequence; The discreteness of all elements in the liquid surface current amplitude sequence of each water level detection cycle is calculated; the signal amplitude fluctuation degree of each water level detection cycle is positively correlated with the discreteness and negatively correlated with the interquartile range.
4. A water level measurement method for water conservancy projects as claimed in claim 1, It is characterized in that The process of obtaining the spectrum bandwidth expansion degree of each water level detection cycle is as follows: A sequence of preset decibel bandwidths of all signal envelopes of each frequency component is used as a spectrum bandwidth sequence of each frequency component; the mean of all elements in the spectrum bandwidth sequence of each frequency component is obtained and recorded as a first mean; and a spectrum bandwidth sequence corresponding to the minimum value of the first mean of all frequency components in the spectrum graph is recorded as a characteristic bandwidth sequence; The distance between the spectrum bandwidth sequence of each frequency component and the characteristic bandwidth sequence is calculated, and the fusion value of the distance of all frequency components in the spectrum diagram is used as the spectrum bandwidth expansion degree of each water level detection cycle.
5. A water level measurement method for water conservancy projects as claimed in claim 1, It is characterized in that The acquisition process of the return time correction coefficient is as follows: The fusion value of the liquid surface disturbance factor and the frequency domain disturbance factor of all water level detection cycles in each water level detection interval is used as the signal disturbance coefficient of each water level detection interval; The liquid surface current signal, liquid bottom current signal and signal disturbance coefficient of each water level detection interval are used as the input of the neural network, and the output is the return time correction coefficient of the ultrasonic signal.
6. A water level measuring device for water conservancy projects, implementing the method as claimed in claim 1, It is characterized in that The water level measuring device comprises: Water level measurement signal acquisition module: collects the ultrasonic signal emitted during the water level measurement process, the ultrasonic signal returned from the liquid surface, and the current signal corresponding to the ultrasonic signal returned from the liquid bottom, and records them as the initial current signal, the liquid surface current signal, and the liquid bottom current signal respectively; Signal return time correction module: obtains the liquid surface disturbance factor of each water level detection period according to the amplitude difference between the liquid surface current signal and the initial current signal in each water level detection period and the data distribution characteristics of the liquid surface current signal amplitude; The frequency domain disturbance factor of each water level detection period is obtained according to the frequency domain characteristics of the liquid bottom current signal of each water level detection period; Multiple adjacent water level detection cycles are taken as a water level detection interval, and the signal disturbance coefficient of each water level detection interval is obtained based on the liquid surface disturbance factor and the frequency domain disturbance factor. The return time correction coefficient of the ultrasonic signal of each water level detection interval is obtained by combining the neural network. Water level measurement module: performs feedback time correction according to the feedback time correction coefficient of the water level detection interval, and calculates the water level measurement result based on the corrected feedback time.
7. A water level measurement system for a water conservancy project, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
