Ultrasonic flowmeter of self-adaptive measurement algorithm
By combining a 4-channel ultrasonic probe with an adaptive algorithm, the ultrasonic flow meter achieves automatic algorithm switching and self-testing in mine drainage environments, solving the measurement error problem caused by water quality changes and improving measurement accuracy and equipment adaptability.
Patent Information
- Application Number
- CN202511370760.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-24
- Publication Date
- 2025-11-18
AI Technical Summary
Existing ultrasonic flow meters cannot automatically adjust their measurement algorithms according to changes in water quality in mine drainage environments, resulting in large measurement errors. Furthermore, they lack automatic calibration and self-testing functions, and cannot effectively filter out interfering data, thus affecting the accuracy and reliability of the measurements.
A 4-channel ultrasonic probe and an adaptive algorithm are designed, combining time difference method and Doppler method to achieve automatic selection of appropriate measurement algorithm, and add self-test function and low flow automatic cut-off algorithm. The signal processor performs signal type encoding and status judgment and executes corresponding processing rules.
It improves measurement accuracy and reliability, enhances the equipment's self-testing and calibration capabilities, optimizes data processing and anti-interference capabilities, broadens the equipment's application range, and adapts to flow measurement under complex water quality conditions.
Smart Images

Figure CN120970748A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of mine water hazard monitoring technology and relates to an ultrasonic flow meter with an adaptive measurement algorithm. Background Technology
[0002] In many fields of industrial production and resource management, flow measurement is a crucial technical link. Accurate acquisition of fluid flow data has an undeniable impact on the optimized control of production processes, efficient resource utilization, and cost accounting. As an advanced flow measurement instrument, the ultrasonic flow meter has been widely used and rapidly developed in recent years due to its significant advantages such as non-contact measurement, no pressure loss, and wide measurement range. Currently, its technology is relatively mature.
[0003] Ultrasonic flow meters are primarily based on two main measurement principles: time-of-flight (TOF) and Doppler flow measurement. TOF ultrasonic flow meters work by measuring the time difference between the propagation of ultrasonic waves upstream and downstream in a fluid to calculate the fluid velocity, and thus the flow rate. This method offers high accuracy and stability for measuring clean media, performing exceptionally well in the flow measurement of pure liquids such as clean water. Because clean media have minimal impact on the propagation of ultrasonic waves, the stability and consistency of the ultrasonic signal during propagation are ensured, resulting in high accuracy of the time difference measurement and thus guaranteeing the accuracy of the flow measurement.
[0004] In contrast, Doppler ultrasonic flow meters utilize the Doppler effect to measure fluid velocity. When ultrasonic waves encounter suspended particles or bubbles in a fluid, they are scattered, causing a change in the frequency of the scattered waves. By detecting this frequency change, the fluid velocity can be calculated. Therefore, the Doppler method is particularly suitable for measuring complex media containing suspended particles or bubbles, such as wastewater. In wastewater measurement scenarios, impurities in the wastewater provide scatterers for the ultrasonic waves, allowing the Doppler effect to be fully utilized, thus achieving effective measurement of wastewater flow rate.
[0005] Ultrasonic flow meters also have important applications in the mining field. Currently, online ultrasonic flow meters for mining mainly use the time-of-flight method for flow measurement. In mine drainage systems, the water quality is relatively clear in some cases, such as when water flows in from the working face or when encountering water accumulation areas. These clear water conditions match the characteristics of clean media suitable for the time-of-flight method, allowing online ultrasonic flow meters to perform well and provide accurate flow data for mine drainage management. However, mine drainage conditions are often very complex and variable. When discharging production water, the water quality becomes turbid, containing a large amount of impurities such as silt and coal dust. In this case, online ultrasonic flow meters (using the time-of-flight method) face many problems when measuring sewage flow. Turbid water causes ultrasonic waves to be more scattered and absorbed during propagation, altering the propagation path and making it difficult to accurately measure the propagation time. This leads to larger monitoring errors and makes it impossible to provide reliable flow information for mine drainage.
[0006] On the other hand, handheld ultrasonic flow meters typically use the Doppler method for measurement. While the Doppler method has certain advantages in measuring complex media such as wastewater, handheld devices require on-site monitoring. In complex environments like mines, where workspace is limited and safety risks exist, frequently sending personnel to various monitoring points for flow measurement is not only time-consuming and labor-intensive, but also fails to provide real-time flow measurement. For scenarios like mine drainage systems, where real-time monitoring of flow changes is crucial for timely dispatch and management, the limitations of handheld ultrasonic flow meters are particularly pronounced.
[0007] From the current market perspective, most ultrasonic flow meters on the market are dual-channel devices. These devices have certain design limitations; they can only simultaneously use either the time-of-flight method or the Doppler method. In actual mine drainage monitoring environments, water quality is not static but varies significantly with time, location, and drainage source. When the water quality in the monitoring environment changes drastically, dual-channel devices, which can only use a single measurement algorithm, cannot automatically adjust the measurement method according to water quality changes, leading to increased measurement errors. For example, when the water quality gradually changes from clear to turbid, online ultrasonic flow meters for mining using the time-of-flight method cannot adapt to this change in time, resulting in significant measurement deviations. Conversely, if the device uses the Doppler method, it may not be able to guarantee measurement accuracy under clear water conditions.
[0008] Furthermore, existing ultrasonic flow meters provide only flow data and lack automatic calibration and self-testing functions. Over long-term use, due to equipment aging and environmental factors, the measurement accuracy of ultrasonic flow meters may gradually decline. The lack of automatic calibration and self-testing means that problems cannot be detected and adjusted in a timely manner, leading to the accumulation of measurement errors and affecting the accuracy of flow measurement. Moreover, because ultrasonic monitoring has high sensitivity, small flow data that is not practical can become interfering data in some situations. For example, in mine drainage systems, there may be minor leaks or transient flow fluctuations. These small flow data have little reference value for actual drainage management, but existing ultrasonic flow meters cannot effectively identify and filter this interfering data, which will interfere with the measurement results and further reduce the accuracy and reliability of the measurement.
[0009] While a few products on the market attempt to combine time-of-flight and Doppler algorithms, most are simply a patchwork solution, failing to fundamentally address the issue of the two algorithms working collaboratively under varying water quality conditions. They cannot automatically and intelligently select the appropriate measurement algorithm based on water quality changes to obtain accurate and reliable flow measurement results. Therefore, developing an ultrasonic flow meter that can adapt to the complex drainage environment of mines, possesses automatic switching capabilities between multiple measurement algorithms, can perform automatic calibration and self-testing, and effectively filter out interfering data has significant practical importance and broad market prospects. Summary of the Invention
[0010] In view of this, the purpose of this invention is to provide an ultrasonic flow meter with an adaptive measurement algorithm. By designing a 4-channel ultrasonic probe, a hardware foundation is provided for the time difference method and the Doppler adaptive algorithm; the operating logic of the time difference method and the Doppler adaptive algorithm is designed; multi-channel calculation allows for simultaneous measurement of multiple sets of data, automatic calibration can be performed to improve calculation accuracy, and a self-test function is added; and an automatic small flow cut-off algorithm is added to improve the authenticity and accuracy of the data.
[0011] To achieve the above objectives, the present invention provides the following technical solution:
[0012] An ultrasonic flow meter with an adaptive measurement algorithm includes a controller, a signal processor, an alarm, and two pairs of ultrasonic probes.
[0013] The two pairs of ultrasonic probe groups are designated as upstream probe group A and downstream probe group B. Each pair of ultrasonic probe groups includes one transmitting probe and one receiving probe. The controller controls the transmitting probe A of the two pairs of ultrasonic probe groups. 发 and B 发 Emitting ultrasonic waves;
[0014] The signal processor receives the receiver probe A of two pairs of ultrasonic probe groups. 收 and B 收 The ultrasonic signal is encoded by the signal processor according to the source and receiver of the ultrasonic signal, and four signal types are established.
[0015] At the same time, the signal processor judges the signal status of the four signal types based on all received signals, and determines the next execution rules and alarm information based on the signal status of the four signal types. The alarm information is transmitted to the alarm device. The execution rules are preset, including six execution rules, each with a different flow calculation method.
[0016] The signal processor calculates the flow rate S according to the determined execution rules, and then calculates the flow rate Q based on the actual pipeline parameters detected by the product.
[0017] Furthermore, the signal processor performs type encoding on the emitted waves of the two pairs of ultrasonic probe groups. When A 收 Received A 发 The emitted wave is denoted as signal P. AA A 收 Received B 发 The emitted wave is denoted as signal P. BA B 收 Received A 发 The emitted wave is denoted as signal P. AB B 收 Received B 发 The emitted wave is denoted as signal P. BB .
[0018] Furthermore, the signal processor divides the situation into sixteen states based on the signal states of the four signal types. The signal processor encodes the sixteen states using 0000-1111, where the first bit represents P. AA The signal state, the second bit represents P BA The signal state, the third bit represents P AB The signal state, the fourth bit represents P BB The signal state is represented by 0 indicating no signal and 1 indicating a signal.
[0019] State 1 is coded as 0000, which represents P AA P BA P AB P BB There was no signal.
[0020] State 2 is encoded as 1000, which represents P. AA There is a signal, P BA P AB P BB No signal;
[0021] State 3 is coded as 0100, which represents P. AA No signal, P BA There is a signal, P AB No signal, P BB No signal;
[0022] State 4 is coded as 0010, which represents P. AA No signal, P BA No signal, P AB There is a signal, P BB No signal;
[0023] State 5 is coded as 0001, which represents P AA No signal, P BA No signal, P AB No signal, P BB There is a signal;
[0024] State 6 is coded as 1100, which represents P. AA There is a signal, P BA There is a signal, P AB No signal, P BB No signal;
[0025] State 7 is coded as 1010, which represents P. AA There is a signal, P BA No signal, P AB There is a signal, P BB No signal;
[0026] The state 8 code is 1001, which represents P. AA There is a signal, P BA No signal, P AB No signal, P BB There is a signal;
[0027] State 9 is coded as 0110, which represents P. AA No signal, P BA There is a signal, P AB There is a signal, P BB No signal;
[0028] The state code is 0101, which represents P. AA No signal, P BA There is a signal, P AB No signal, P BB There is a signal;
[0029] State 11 is coded as 0011, which represents P AA No signal, P BA No signal, P AB There is a signal, P BBThere is a signal;
[0030] State 12 is encoded as 1110, which represents P. AA There is a signal, P BA There is a signal, P AB There is a signal, P BB No signal;
[0031] State thirteen is coded as 1101, which represents P. AA There is a signal, P BA There is a signal, P AB No signal, P BB There is a signal;
[0032] State fourteen is encoded as 1011, which represents P. AA There is a signal, P BA No signal, P AB There is a signal, P BB There is a signal;
[0033] State 15 is coded as 0111, which represents P. AA No signal, P BA There is a signal, P AB There is a signal, P BB There is a signal;
[0034] The state sixteen code is 1111, which represents P. AA There is a signal, P BA There is a signal, P AB There is a signal, P BB There is a signal.
[0035] Furthermore, when the signal state is state six 1100, state seven 1010, state ten 0101, state eleven 0011, and state sixteen 1111, the signal processor further calculates the relationship between the corresponding signal frequency and the frequency threshold to confirm the execution rule. For other states, the execution rule is directly confirmed based on the signal state.
[0036] Furthermore, the signal processor directly confirms the signal status of the execution rule, which includes:
[0037] Status 1 has no execution rules, but transmits an alarm message: No signal;
[0038] State 2 directly confirms the sixth execution rule and transmits alarm information: B 发 B 收 The probe has no signal;
[0039] State 3 directly confirms the third execution rule and transmits alarm information: A 发 B 收 The probe has no signal;
[0040] State four directly confirms the fourth execution rule and transmits alarm information: B 发 A 收 The probe has no signal;
[0041] State 5 directly confirms the fifth execution rule and transmits alarm information: A 发 A 收 The probe has no signal;
[0042] Status 8 directly confirms the second execution rule without transmitting alarm information;
[0043] In state nine, the first execution rule is directly confirmed without transmitting alarm information.
[0044] Status 12 directly confirms the first execution rule without transmitting alarm information;
[0045] State 13 directly determines the second execution rule without transmitting alarm information;
[0046] State fourteen directly determines the second execution rule without transmitting alarm information;
[0047] State 15 directly determines the first execution rule and does not transmit alarm information.
[0048] Furthermore, the signal processor further calculates the relationship between the corresponding signal frequency and the frequency threshold to confirm the status signal of the execution rule, which includes:
[0049] If the signal status is status six, the alarm message B is transmitted first. 收 The probe shows no signal; then, the signal P is calculated. AA Transmit / receive ratio H A If H A ≥T A State six confirms the sixth execution rule; if H A <T A State 6 confirms the third execution rule; T A This is the transmit / receive ratio threshold determined in the laboratory based on the minimum receiving frequency.
[0050] If the signal status is status seven, the alarm message B is transmitted first. 发 The probe shows no signal; then, the signal P is calculated. AA Transmit / receive ratio H A If H A ≥T A State 7 confirms the sixth execution rule; if H A <T A Status 7 confirms the fourth execution rule;
[0051] If the signal status is status ten, the alarm information is transmitted first: A 发 The probe shows no signal; then, the signal P is calculated.BB Transmit / receive ratio H B If H B ≥T B Status 10 confirms the fifth execution rule; if H B <T B Status 10 confirms the third execution rule; T B This is the transmit / receive ratio threshold determined in the laboratory based on the minimum receiving frequency.
[0052] If the signal status is status eleven, the alarm information is transmitted first: A 收 The probe shows no signal; then, the signal P is calculated. BB Transmit / receive ratio H B If we determine H B ≥T B State 11 confirms the fifth execution rule; if H B <T B Status 10 confirms the fourth execution rule;
[0053] If the signal state is state sixteen, no alarm information is transmitted, and signal P is calculated simultaneously. AA Transmit / receive ratio H A and signal P BB Transmit / receive ratio H B If H A ≥T A And H B ≥T B State sixteen confirms the second execution rule; if H A <T A H B ≥T B State sixteen confirms the fifth execution rule; if H A ≥T A H B <T B State sixteen confirms the sixth execution rule; if H A <T A H B <T B Status sixteen confirms the first execution rule.
[0054] Furthermore, the preset execution rules in the signal processor are as follows:
[0055] The first execution rule is: A 发 B 收 As a group, B 发 A 收 The data are divided into two groups, and the flow velocities are calculated using the time difference method, resulting in S1 and S2 respectively. The average flow velocity is then taken as S = S1 - ΔS / 2 = -(S2 - ΔS / 2), ΔS = S1 + S2.
[0056] The second execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B Then take the average flow velocity S = -(S A -△S / 2)=S B -△S / 2, △S=S A +S B ;
[0057] The third enforcement rule is: A 发 B 收 As a group, B 发 A 收 The data are divided into two groups. The flow velocities of the two groups are calculated using the time difference method, and the results are S1 and S2, respectively. S1 has no value, and the flow velocity S = S2.
[0058] The fourth execution rule is: A 发 B 收 As a group, B 发 A 收 The data are divided into two groups. The flow velocities of the two groups are calculated using the time difference method, and the results are S1 and S2, respectively. S2 has no value, and the flow velocity S = S1.
[0059] The fifth execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B S A No value, flow velocity S = S B ;
[0060] The sixth execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B S B No value, flow velocity S = S A .
[0061] Furthermore, the signal processor continuously performs automatic cut-off operations with low flow rates:
[0062] Initially, Q0 is empty and is automatically cleared upon each restart. At 00:00 on the first day, the flow velocity S data for the entire day is automatically retrieved. First, wavelet transform is used to denoise the data. Then, the processed minimum flow velocity data is retrieved, and combined with pipe parameters and a pipe diameter-velocity-flow rate comparison table, the minimum flow rate Q1 for the day is obtained. This is the minimum flow rate Q0 = Q1. The flow rate data monitored on the second day is compared with Q0. When Q ≥ Q0, the normal output value is Q; when Q < Q0, the normal output value is 0. At 00:00 on the second day, the calculation process at 00:00 on the first day is repeated to obtain the minimum flow rate Q2 for the day. This is compared with the minimum flow rate Q0. If Q2 > Q0, Q0 remains unchanged, and Q2... < When Q0 is reached, Q0 takes the value of Q2; and so on, repeating the above steps.
[0063] The beneficial effects of this invention are as follows:
[0064] First, this invention improves measurement accuracy and reliability. By designing a four-channel ultrasonic probe array, it provides the hardware foundation for the time-of-flight method and Doppler adaptive algorithm, enabling the flow meter to automatically select the appropriate measurement algorithm based on different water quality conditions. This adaptive measurement method effectively solves the problem of increased measurement error in traditional ultrasonic flow meters when facing complex water quality changes, significantly improving measurement accuracy and data reliability.
[0065] Secondly, this invention enhances the self-testing and calibration capabilities of the equipment. The invention employs a multi-channel computing mechanism capable of simultaneously measuring multiple sets of data and performing automatic calibration, promptly identifying and adjusting measurement deviations caused by aging or environmental factors. Simultaneously, the added self-testing function periodically checks the equipment's status, ensuring long-term stable operation and further improving measurement accuracy and equipment maintenance efficiency.
[0066] Furthermore, this invention optimizes data processing and anti-interference capabilities. The signal processor encodes the received ultrasonic signals by type and determines their status, executing corresponding processing rules based on different signal states, effectively filtering out invalid and interfering signals. In particular, the added automatic small-flow cutoff algorithm can automatically identify and filter out small-flow interference data that has no reference value for actual drainage management, improving the authenticity and accuracy of the data.
[0067] Finally, this invention enhances the practicality and adaptability of the equipment. This ultrasonic flow meter is not only suitable for clean media, but can also accurately measure water quality under complex conditions containing a large amount of impurities and suspended particles, greatly expanding the equipment's application range. Simultaneously, its real-time measurement and automatic adjustment functions enable the equipment to adapt to complex and variable drainage environments such as mines, providing strong technical support for mine drainage management.
[0068] Other advantages, objectives, and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination, or may be learned from practice of the invention. The objectives and other advantages of the invention can be realized and obtained through the following description. Attached Figure Description
[0069] To make the objectives, technical solutions, and advantages of the present invention clearer, the preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, wherein:
[0070] Figure 1 This is a flowchart illustrating the adaptive measurement algorithm of an ultrasonic flow meter according to an embodiment of the present invention. Detailed Implementation
[0071] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0072] The accompanying drawings are for illustrative purposes only and are schematic diagrams, not actual pictures. They should not be construed as limiting the invention. To better illustrate the embodiments of the invention, some parts in the drawings may be omitted, enlarged, or reduced, and do not represent the actual product dimensions. It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0073] In the accompanying drawings of the embodiments of the present invention, the same or similar reference numerals correspond to the same or similar components. In the description of the present invention, it should be understood that if terms such as "upper," "lower," "left," "right," "front," and "rear" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, they are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, the terms used to describe positional relationships in the drawings are only for illustrative purposes and should not be construed as limiting the present invention. For those skilled in the art, the specific meaning of the above terms can be understood according to the specific circumstances.
[0074] Please see Figure 1 This is an ultrasonic flow meter based on an adaptive measurement algorithm.
[0075] Example
[0076] This embodiment describes an ultrasonic flow meter with an adaptive measurement algorithm, which includes at least a controller, a signal processor, an alarm, and two pairs of ultrasonic probe groups. The two pairs of ultrasonic probe groups are an upstream probe group A and a downstream probe group B. Each pair of ultrasonic probe groups includes a transmitting probe and a receiving probe. The controller controls the transmitting probe A of the two pairs of ultrasonic probe groups. 发 and B 发 The ultrasonic wave is emitted, and the signal processor receives the signals from two pairs of ultrasonic probes, with probe A receiving the signal. 收 and B 收 The ultrasonic signal is encoded by the signal processor based on the source and receiver of the ultrasonic signal, establishing four signal types. Simultaneously, the signal processor determines the signal status of each of the four signal types based on all received signals, and then determines the next execution rules and alarm information based on the signal status of the four signal types. The alarm information is transmitted to the alarm device. The execution rules are pre-set, including six rules, each with a different flow calculation method. The signal processor calculates the flow velocity S based on the determined execution rules, and then calculates the flow rate Q based on the actual pipeline parameters detected by the product.
[0077] Specifically, in this embodiment, the signal processor performs type encoding on the emitted waves of the two pairs of ultrasonic probe groups. When A 收 Received A 发 The emitted wave is denoted as signal P. AA A 收 Received B 发 The emitted wave is denoted as signal P. BA B 收 Received A 发 The emitted wave is denoted as signal P. AB B 收 Received B 发 The emitted wave is denoted as signal P. BB .
[0078] In this embodiment, the signal processor divides the situation into sixteen states based on the signal states of four signal types, as follows:
[0079] State 1: P AA P BA P AB P BB There was no signal.
[0080] State 2: P AA There is a signal, P BA P AB P BB No signal;
[0081] State 3: PAA No signal, P BA There is a signal, P AB No signal, P BB No signal;
[0082] State 4: P AA No signal, P BA No signal, P AB There is a signal, P BB No signal;
[0083] State 5: P AA No signal, P BA No signal, P AB No signal, P BB There is a signal;
[0084] State 6: P AA There is a signal, P BA There is a signal, P AB No signal, P BB No signal;
[0085] State 7: P AA There is a signal, P BA No signal, P AB There is a signal, P BB No signal;
[0086] State 8: P AA There is a signal, P BA No signal, P AB No signal, P BB There is a signal;
[0087] State Nine: P AA No signal, P BA There is a signal, P AB There is a signal, P BB No signal;
[0088] State 10: P AA No signal, P BA There is a signal, P AB No signal, P BB There is a signal;
[0089] State 11: P AA No signal, P BA No signal, P AB There is a signal, P BB There is a signal;
[0090] State Twelve: P AA There is a signal, P BA There is a signal, P AB There is a signal, P BB No signal;
[0091] State Thirteen: P AA There is a signal, P BA There is a signal, P AB No signal, P BB There is a signal;
[0092] State Fourteen: P AA There is a signal, P BA No signal, P AB There is a signal, P BB There is a signal;
[0093] State 15: P AA No signal, P BA There is a signal, P AB There is a signal, P BB There is a signal;
[0094] State Sixteen: P AA There is a signal, P BA There is a signal, P AB There is a signal, P BB There is a signal.
[0095] In this embodiment, the signal processor encodes it using 0000-1111, where the first bit represents P. AA The signal state, the second bit represents P BA The signal state, the third bit represents P AB The signal state, the fourth bit represents P BB The signal states are 0 for no signal and 1 for a signal. The states from one to sixteen are encoded as follows: 0000, 1000, 0100, 0010, 0001, 1100, 1010, 1001, 0110, 0101, 0011, 1110, 1101, 1011, 0111, 1111.
[0096] Specifically, when the signal state is state six 1100, state seven 1010, state ten 0101, state eleven 0011, and state sixteen 1111, the signal processor further calculates the relationship between the corresponding signal frequency and the frequency threshold to confirm the execution rule. For other states, the execution rule is directly confirmed based on the signal state.
[0097] Specifically, in the signal state that directly confirms the execution rule, we have:
[0098] Status 1 has no execution rules, but transmits an alarm message: No signal;
[0099] State 2 directly confirms the sixth execution rule and transmits alarm information: B 发 B 收 The probe has no signal;
[0100] State 3 directly confirms the third execution rule and transmits alarm information: A 发 B 收 The probe has no signal;
[0101] State four directly confirms the fourth execution rule and transmits alarm information: B 发 A 收 The probe has no signal;
[0102] State 5 directly confirms the fifth execution rule and transmits alarm information: A 发 A 收 The probe has no signal;
[0103] Status 8 directly confirms the second execution rule without transmitting alarm information;
[0104] In state nine, the first execution rule is directly confirmed without transmitting alarm information.
[0105] Status 12 directly confirms the first execution rule without transmitting alarm information;
[0106] State 13 directly determines the second execution rule without transmitting alarm information;
[0107] State fourteen directly determines the second execution rule without transmitting alarm information;
[0108] State 15 directly determines the first execution rule and does not transmit alarm information;
[0109] In the status signals that require further calculation of the relationship between the corresponding signal frequency and the frequency threshold to confirm the execution rule, we have:
[0110] If the signal status is status six, the alarm message B is transmitted first. 收 The probe shows no signal; then, the signal P is calculated. AA Transmit / receive ratio H A :
[0111] H A =f AA / F
[0112] Among them, f AA P represents AA Signal receiving frequency, F is A 发 The probe's transmission frequency; the minimum receiving frequency of probe A installed upstream when the turbidity measured in the laboratory is in the range of 20-500 mg / L, divided by A. 发 The probe's emission frequency is used to obtain the threshold T. A If H A ≥T A State six confirms the sixth execution rule; if H A <T AStatus six confirms the third execution rule.
[0113] If the signal status is status seven, the alarm message B is transmitted first. 发 The probe shows no signal; then, the signal P is calculated. AA Transmit / receive ratio H A If H A ≥T A State 7 confirms the sixth execution rule; if H A <T A Status 7 confirms the fourth execution rule;
[0114] If the signal status is status ten, the alarm information is transmitted first: A 发 The probe shows no signal; then, the signal P is calculated. BB Transmit / receive ratio H B :
[0115] H B =f BB / F
[0116] Among them, f BB P represents BB Signal receiving frequency, F is B 发 The probe's transmission frequency; the minimum receiving frequency f when the turbidity measured in the laboratory is in the range of 20-500 mg / L, with probe B installed downstream. BB Divide by B 发 The probe's transmission frequency F is used to obtain the threshold T. B If we determine H B ≥T B Status 10 confirms the fifth execution rule; if H B <T B The third execution rule is confirmed in the tenth state.
[0117] If the signal status is status eleven, the alarm information is transmitted first: A 收 The probe shows no signal; then, the signal P is calculated. BB Transmit / receive ratio H B If we determine H B ≥T B State 11 confirms the fifth execution rule; if H B <T B Status 10 confirms the fourth execution rule.
[0118] If the signal state is state sixteen, no alarm information is transmitted, and signal P is calculated simultaneously. AA Transmit / receive ratio H A and signal P BB Transmit / receive ratio H B If H A ≥T A And H B ≥TB State sixteen confirms the second execution rule; if H A <T A H B ≥T B State sixteen confirms the fifth execution rule; if H A ≥T A H B <T B State sixteen confirms the sixth execution rule; if H A <T A H B <T B Status sixteen confirms the first execution rule.
[0119] Specifically, the first execution rule is: A 发 B 收 As a group, B 发 A 收 The data is divided into two groups. The flow velocities are calculated using the time-of-flight method, resulting in S1 and S2 respectively. Theoretically, S1 is positive and S2 is negative, and the absolute value of S1 equals the absolute value of S2, meaning the velocity difference ΔS = S1 + S2 = 0. Taking the average velocity, we know the average velocity S = S1 - ΔS / 2 = -(S2 - ΔS / 2). If interference is encountered, calculate ΔS = S1 + S2; taking the average velocity, we know the average velocity S = S1 - ΔS / 2 = -(S2 - ΔS / 2). If the probe direction is reversed, i.e., S1 is negative and S2 is positive, the method is the same.
[0120] The second execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B In the theoretical case, S B For a positive value, S A It is negative, and S A The absolute value = S B The absolute value of the velocity difference, i.e., the velocity difference ΔS = S A +S B =0, therefore the average flow velocity S = -(S A -△S / 2)=S B -△S / 2; If interference is encountered, calculate △S = S A +S B It can be known that the measured flow velocity S = -(S A -△S / 2)=S B -△S / 2.
[0121] The third enforcement rule is: A发 B 收 As a group, B 发 A 收 The data are divided into two groups. The flow velocities of the two groups are calculated using the time difference method, and the results are S1 and S2, respectively. S1 has no value, and the flow velocity S = S2.
[0122] The fourth execution rule is: A 发 B 收 As a group, B 发 A 收 The data are divided into two groups. The flow velocities of the two groups are calculated using the time difference method, and the results are S1 and S2, respectively. S2 has no value, and the flow velocity S = S1.
[0123] The fifth execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B S A No value, flow velocity S = S B ;
[0124] The sixth execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B S B No value, flow velocity S = S A .
[0125] Finally, the signal processor calculates the flow rate Q based on the calculated flow velocity S and the actual monitoring pipeline parameters of the product, and automatically cuts off low flow rates.
[0126] Specifically, in a signal processor, the process of automatically cutting off small flows is as follows:
[0127] Initially, Q0 is empty, and it is automatically cleared upon each restart. At 00:00 on the first day, the flow velocity S data for the entire day is automatically retrieved. First, wavelet transform is used to denoise the data. Then, the processed minimum flow velocity data is retrieved, and combined with pipe parameters and a pipe diameter-velocity-flow rate comparison table, the minimum flow rate Q1 for the day is obtained. This is the minimum flow rate Q0 = Q1. The flow rate data monitored on the second day is compared with Q0. When Q ≥ Q0, the normal output value is Q; when Q < Q0, the normal output value is 0. At 00:00 on the second day, the calculation process at 00:00 on the first day is repeated to obtain the minimum flow rate Q2 for the day. This is compared with the minimum flow rate Q0. If Q2 > Q0, Q0 remains unchanged, and Q2...< When Q0 is reached, Q0 takes the value of Q2; and so on, repeating the above steps.
[0128] In this embodiment, all the above processes are as follows: Figure 1 As shown, in Figure 1 In the diagram, alarm 1 indicates no signal; alarm 2 indicates A. 发 The probe has no signal; alarm 3 indicates A. 收 The probe has no signal; alarm 4 indicates B. 发 The probe has no signal; alarm 5 indicates B. 收 The probe has no signal.
[0129] In summary, the ultrasonic flow meter based on the adaptive measurement algorithm of this invention features high accuracy, no media limitations, and high practicality.
[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. An ultrasonic flow meter with an adaptive measurement algorithm, characterized in that: The ultrasonic flow meter includes a controller, a signal processor, an alarm, and two pairs of ultrasonic probes. The two pairs of ultrasonic probe groups are designated as upstream probe group A and downstream probe group B. Each pair of ultrasonic probe groups includes one transmitting probe and one receiving probe. The controller controls the transmitting probe A of the two pairs of ultrasonic probe groups. 发 and B 发 Emitting ultrasonic waves; The signal processor receives the receiver probe A of two pairs of ultrasonic probe groups. 收 and B 收 The ultrasonic signal is encoded by the signal processor according to the source and receiver of the ultrasonic signal, and four signal types are established. At the same time, the signal processor judges the signal status of the four signal types based on all received signals, and determines the next execution rules and alarm information based on the signal status of the four signal types. The alarm information is transmitted to the alarm device. The execution rules are preset, including six execution rules, each with a different flow calculation method. The signal processor calculates the flow rate S according to the determined execution rules, and then calculates the flow rate Q based on the actual pipeline parameters monitored by the product.
2. The ultrasonic flow meter with an adaptive measurement algorithm according to claim 1, characterized in that: The signal processor performs type encoding on the emitted waves of the two pairs of ultrasonic probe groups. When A 收 Received A 发 The emitted wave is denoted as signal P. AA A 收 Received B 发 The emitted wave is denoted as signal P. BA B 收 Received A 发 The emitted wave is denoted as signal P. AB B 收 Received B 发 The emitted wave is denoted as signal P. BB .
3. The ultrasonic flow meter with an adaptive measurement algorithm according to claim 2, characterized in that: The signal processor divides the situation into sixteen states based on the signal states of four signal types. The signal processor encodes the sixteen states using 0000-1111, where the first bit represents P. AA The signal state, the second bit represents P. BA The signal state, the third bit represents P AB The signal state, the fourth bit represents P BB The signal state is represented by 0 indicating no signal and 1 indicating a signal. State 1 is coded as 0000, which represents P AA P BA P AB P BB There was no signal. State 2 is encoded as 1000, which represents P. AA There is a signal, P BA P AB P BB No signal; State 3 is coded as 0100, which represents P. AA No signal, P BA There is a signal, P AB No signal, P BB No signal; State 4 is coded as 0010, which represents P. AA No signal, P BA No signal, P AB There is a signal, P BB No signal; State 5 is coded as 0001, which represents P AA No signal, P BA No signal, P AB No signal, P BB There is a signal; State 6 is coded as 1100, which represents P. AA There is a signal, P BA There is a signal, P AB No signal, P BB No signal; State 7 is coded as 1010, which represents P. AA There is a signal, P BA No signal, P AB There is a signal, P BB No signal; The state 8 code is 1001, which represents P. AA There is a signal, P BA No signal, P AB No signal, P BB There is a signal; State 9 is coded as 0110, which represents P. AA No signal, P BA There is a signal, P AB There is a signal, P BB No signal; The state code is 0101, which represents P. AA No signal, P BA There is a signal, P AB No signal, P BB There is a signal; State 11 is coded as 0011, which represents P AA No signal, P BA No signal, P AB There is a signal, P BB There is a signal; The state 12 code is 1110, which represents P. AA There is a signal, P BA There is a signal, P AB There is a signal, P BB No signal; State thirteen is coded as 1101, which represents P. AA There is a signal, P BA There is a signal, P AB No signal, P BB There is a signal; State fourteen is encoded as 1011, which represents P. AA There is a signal, P BA No signal, P AB There is a signal, P BB There is a signal; State 15 is coded as 0111, which represents P. AA No signal, P BA There is a signal, P AB There is a signal, P BB There is a signal; The state sixteen code is 1111, which represents P. AA There is a signal, P BA There is a signal, P AB There is a signal, P BB There is a signal.
4. The ultrasonic flow meter with an adaptive measurement algorithm according to claim 3, characterized in that: When the signal state is state six 1100, state seven 1010, state ten 0101, state eleven 0011, and state sixteen 1111, the signal processor further calculates the relationship between the corresponding signal frequency and the frequency threshold to confirm the execution rule. For other states, the execution rule is directly confirmed based on the signal state.
5. An ultrasonic flow meter with an adaptive measurement algorithm according to claim 4, characterized in that: The signal processor directly confirms the signal status of the execution rule, including: Status 1 has no execution rules, but transmits an alarm message: No signal; State 2 directly confirms the sixth execution rule and transmits alarm information: B 发 B 收 The probe has no signal; State 3 directly confirms the third execution rule and transmits alarm information: A 发 B 收 The probe has no signal; State four directly confirms the fourth execution rule and transmits alarm information: B 发 A 收 The probe has no signal; State 5 directly confirms the fifth execution rule and transmits alarm information: A 发 A 收 The probe has no signal; Status 8 directly confirms the second execution rule without transmitting alarm information; In state nine, the first execution rule is directly confirmed without transmitting alarm information. Status 12 directly confirms the first execution rule without transmitting alarm information; State 13 directly determines the second execution rule without transmitting alarm information; State fourteen directly determines the second execution rule without transmitting alarm information; State 15 directly determines the first execution rule and does not transmit alarm information.
6. An ultrasonic flow meter with an adaptive measurement algorithm according to claim 4, characterized in that: The signal processor further calculates the relationship between the corresponding signal frequency and the frequency threshold to confirm the status signal of the execution rule, which includes: If the signal status is status six, the alarm message B is transmitted first. 收 The probe has no signal; then, the signal P is calculated. AA Transmit / receive ratio H A If H A ≥T A State six confirms the sixth execution rule; if H A <T A State 6 confirms the third execution rule; T A This is the transmit / receive ratio threshold determined in the laboratory based on the minimum receiving frequency. If the signal status is status seven, the alarm message B is transmitted first. 发 The probe has no signal; then, the signal P is calculated. AA Transmit / receive ratio H A If H A ≥T A State 7 confirms the sixth execution rule; if H A <T A Status 7 confirms the fourth execution rule; If the signal status is status ten, the alarm information is transmitted first: A 发 The probe has no signal; then, the signal P is calculated. BB Transmit / receive ratio H B If H B ≥T B Status 10 confirms the fifth execution rule; if H B <T B Status 10 confirms the third execution rule; T B This is the transmit / receive ratio threshold determined in the laboratory based on the minimum receiving frequency. If the signal status is status eleven, the alarm information is transmitted first: A 收 The probe has no signal; then, the signal P is calculated. BB Transmit / receive ratio H B If we determine H B ≥T B State 11 confirms the fifth execution rule; if H B <T B Status 10 confirms the fourth execution rule; If the signal state is state sixteen, no alarm information is transmitted, and signal P is calculated simultaneously. AA Transmit / receive ratio H A and signal P BB Transmit / receive ratio H B If H A ≥T A And H B ≥T B State sixteen confirms the second execution rule; if H A <T A H B ≥T B State sixteen confirms the fifth execution rule; if H A ≥T A H B <T B State sixteen confirms the sixth execution rule; if H A <T A H B <T B Status sixteen confirms the first execution rule.
7. An ultrasonic flow meter with an adaptive measurement algorithm according to claim 6, characterized in that: The preset execution rules in the signal processor are as follows: The first execution rule is: A 发 B 收 As a group, B 发 A 收 The data are divided into two groups, and the flow velocities are calculated using the time difference method, resulting in S1 and S2 respectively. The average flow velocity is then taken as S = S1 - ΔS / 2 = -(S2 - ΔS / 2), ΔS = S1 + S2. The second execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B Then take the average flow velocity S = -(S A -△S / 2)=S B -△S / 2, △S=S A +S B ; The third enforcement rule is: A 发 B 收 As a group, B 发 A 收 The data are divided into two groups. The flow velocities of the two groups are calculated using the time difference method, and the results are S1 and S2, respectively. S1 has no value, and the flow velocity S = S2. The fourth execution rule is: A 发 B 收 As a group, B 发 A 收 The data are divided into two groups. The flow velocities of the two groups are calculated using the time difference method, and the results are S1 and S2, respectively. S2 has no value, and the flow velocity S = S1. The fifth execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B S A No value, flow velocity S = S B ; The sixth execution rule is: A 发 A 收 Group A, Group B 发 B 收 Group B, the two sets of data were calculated using the Doppler method, and the resulting flow velocities were S. A and S B S B No value, flow velocity S = S A .
8. An ultrasonic flow meter with an adaptive measurement algorithm according to claim 1, characterized in that: The signal processor continuously performs automatic cut-off operations with low flow rates: Initially, Q0 is empty and is automatically cleared upon each restart. At 00:00 on the first day, the flow velocity S data for the entire day is automatically retrieved. First, wavelet transform is used to denoise the data. Then, the processed minimum flow velocity data is retrieved, and combined with pipe parameters and a pipe diameter-velocity-flow rate comparison table, the minimum flow rate Q1 for the day is obtained. This is the minimum flow rate Q0 = Q1. The flow rate data monitored on the second day is compared with Q0. When Q ≥ Q0, the normal output value is Q; when Q < Q0, the normal output value is 0. At 00:00 on the second day, the calculation process at 00:00 on the first day is repeated to obtain the minimum flow rate Q2 for the day. This is compared with the minimum flow rate Q0. If Q2 > Q0, Q0 remains unchanged, and Q2... < When Q0 is reached, Q0 takes the value of Q2; and so on, repeating the above steps.