Bubble detection method, system and equipment based on ultrasonic measurement, medium and product

By calculating the sound speed range, we can determine whether the sound speed of the ultrasonic water meter is abnormal, and the problem that bubbles in the ultrasonic water meter affect the metering accuracy is solved, achieving efficient and low-cost bubble detection and metering accuracy improvement.

CN120213145AActive Publication Date: 2025-06-27QINGDAO ITECHENE TECH CO LTD

Patent Information

Application Number
CN202510685362.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-06-27
Estimated Expiration
2045-05-27

AI Technical Summary

Technical Problem

The presence of air bubbles in the ultrasonic water meter in the pipeline leads to poor measurement accuracy, resulting in accumulating measurement value deviation and error, affecting the water fee trade settlement between the water supply unit and the user.

Method used

By obtaining the temperature difference between the measured temperature value of the ultrasonic water meter and the calculated temperature value △Tem, calculate the calculated sound speed value range, and determine whether the sound speed C is within the calculated sound speed range. If it is not, the marking measurement data is abnormal, indicating that there is a bubble.

Benefits of technology

It realizes efficient detection of the presence or absence of bubbles in the pipeline, improves the metering accuracy of ultrasonic water meter, reduces power consumption, and is suitable for low-cost and low-power application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120213145A_ABST
    Figure CN120213145A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of ultrasonic measurement, and particularly discloses a bubble detection method, system and equipment based on ultrasonic measurement, a medium and a product, the bubble detection method comprises the following steps: firstly, determining a temperature difference value Tem, according to a calculated temperature value range [T-Tem, T + Tem], obtaining a corresponding calculated sound velocity value range [C1, C2] by adopting a table look-up method, and calculating the sound velocity value range [C1, C2] according to a calculated sound velocity value range [T-Tem, T + Tem]; and further judging whether the uplink time and the downlink time of the ultrasonic wave working under the condition of the temperature T and the calculated sound velocity C are within the calculated sound velocity value range [C1, C2] or not, and if not, marking the sound velocity C as abnormal. The method has the advantages of reasonable design, convenience in detection of bubbles in the metering pipe section, simplicity, high practicability, low cost and low power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ultrasonic metering, and specifically to an ultrasonic metering bubble detection method, system, device, medium and product. Background Art

[0002] Ultrasonic water meters have outstanding advantages such as small pressure loss, high accuracy, low power consumption, and long service life, and have received extensive attention and are regarded as good alternatives for the replacement and upgrade of traditional mechanical water meters. The working principle of ultrasonic water meters mostly adopts the time difference method, and the linear flow velocity is converted into the surface flow velocity through a certain relationship conversion, and the flow rate is calculated according to the time difference of the forward and reverse flow propagation times of the signal. In the specific application process, the use environment is required to be in a closed full-pipe state. Due to the influence of the installation environment sealing and pressure factors, there is often a certain proportion of bubbles mixed in the pipeline. When ultrasonic waves pass through the reflection surface of liquid and gas, reflection will occur, resulting in a decrease in the received acoustic wave amplitude and distortion of the received waveform. In the case of a decrease in the ultrasonic received amplitude and distortion of the received waveform, ultrasonic metering often experiences a skipping phenomenon, resulting in a deviation between the measured value of the ultrasonic water meter and the actual value, causing water meter reading errors or even incorrect counting. In some special cases, the daily cumulative error value even reaches more than 10 cubic meters, and disputes are likely to occur in the water fee trade settlement between water supply units and users, which is extremely likely to cause adverse social impacts and seriously affect the wide application of ultrasonic water meters.

[0003] In the prior art, there are also related studies. For example, in Zhou Min. Research and Development of a Gas-Liquid Two-Phase Flow Measuring Device Based on the Combination Method of Ultrasonic Correlation and Differential Pressure [D]. China Jiliang University, 2016, a combined gas-liquid two-phase flow rate measurement is carried out through a differential pressure flowmeter and an ultrasonic flowmeter to solve the problem of measuring the separated phase flow rate of gas-liquid two-phase flow. When measuring in combination, the ultrasonic flowmeter uses the correlation method to be responsible for measuring the volume flow rate of gas-liquid two-phase flow, and the differential pressure double-cone flowmeter is responsible for measuring the differential pressure signal in front of the pipeline, and the existing gas-liquid two-phase flow rate measurement model is used to analyze the combined measurement method to realize the measurement of the gas phase volume fraction of gas-liquid two-phase flow and the measurement of each separated phase flow rate. In the foregoing solution, a differential pressure flowmeter is added, and the measurement is carried out by combining a differential pressure flowmeter and an ultrasonic flowmeter. Due to the high sensitivity of ultrasonic water meters to cost, this method is only applicable to high-value industrial instruments and is not applicable to civilian ultrasonic water meters.

[0004] Another example is Chen Long. Research on the Optical Field PTV Measurement Method of Bubble Characteristic Parameters in Gas-Liquid Two-Phase Flow [D]. Southeast University, 2023. DOI: 10.27014 / d.cnki.gdnau.2023.000148. A method for three-dimensional reconstruction of bubbles through optical field imaging was proposed. This method can accurately obtain the size of bubbles and can realize the three-dimensional reconstruction of bubbles in the flow field. However, in the application process of ultrasonic water meters, this method is relatively complex to implement and cannot meet the requirements of low-power measurement of ultrasonic water meters. Therefore, there is an urgent need for a method and system that are simple, practical, low-cost, and low-energy-consuming for detecting and evaluating bubbles in pipelines. Summary of the Invention

[0005] The present invention discloses a method, system, device, medium, and product for bubble detection based on ultrasonic metering, which solves the technical problem in the prior art that the metering accuracy of ultrasonic water meters is poor or even affects the use due to the influence of bubbles in the ultrasonic metering pipe section, and has the technical effects of reasonable design, convenient detection of bubbles in the metering pipe section, simple and practical method, and low cost and low power consumption. The technical solutions adopted are as follows: A method for bubble detection based on ultrasonic metering, applied to an ultrasonic water meter, includes the steps: 1) Obtain the temperature difference △Tem between the measured temperature value and the calculated temperature value during the metering of the ultrasonic water meter; preferably, obtain the temperature difference △Tem under experimental conditions, where the experimental conditions are that the measuring pipe section of the ultrasonic water meter is placed in a static water environment, ensuring no electromagnetic wave interference around, and the water body in the measuring pipe section is in a full-pipe state.

[0006] 2) Read the measured temperature T of the ultrasonic water meter; preferably, collect the measured temperature T of the ultrasonic water meter using a temperature sensor, and the measurement accuracy of the temperature sensor is at least 0.1 °C. Further preferably, the temperature sensor can be an NTC thermistor, a PT1000 platinum resistance thermometer, etc.

[0007] 3) Call the measured temperature T to calculate and obtain the range of the calculated temperature value of the ultrasonic water meter [T - △Tem, T + △Tem]; 4) Call the range of the calculated temperature value [T - △Tem, T + △Tem] and use the look-up table method to obtain the corresponding range of the calculated sound velocity value [C1, C2]; 5) Obtain the sum SUM of the ultrasonic up-travel time and the down-travel time between the transmitting end and the receiving end of a group of transducers in the ultrasonic water meter TOF , call the sum SUM of the ultrasonic up-travel time and the down-travel time TOF , and calculate the corresponding sound velocity C; 6) Determine whether the sound velocity C is within the calculated sound velocity range [C1, C2]. If the sound velocity C does not fall within the calculated sound velocity range [C1, C2], mark the measurement data of the ultrasonic water meter at this time as abnormal, that is, it is determined that there are bubbles in the measurement pipe section.

[0008] Based on the above technical solution, the temperature difference △Tem between the measured temperature value and the calculated temperature value is the maximum temperature difference between the measured temperature value and the calculated temperature value during the measurement of the ultrasonic water meter under the aforementioned experimental conditions.

[0009] Based on the above technical solution, under the aforementioned experimental conditions, when multiple ultrasonic water meters of the same specification are used for measurement, the temperature difference △Tem between the measured temperature value and the calculated temperature value is the average value of the maximum temperature differences between the measured temperature values and the calculated temperature values when multiple ultrasonic water meters are used for measurement.

[0010] Based on the above technical solution, obtain the systematic error compensation value △T of the temperature difference during the measurement of the ultrasonic water meter, and call the compensation value △T to calculate and obtain the calculated temperature value range of the ultrasonic water meter as [T - △Tem - △T, T + △Tem + △T].

[0011] Based on the above technical solution, call the calculated temperature value range [T - △Tem, T + △Tem], and use the look-up table method to calculate and obtain the corresponding calculated sound velocity value range [C1 水 , C2 水 to replace the calculated sound velocity value range [C1, C2]. In this way, the operation can be simplified, the amount of operation for look-up table can be reduced, which is beneficial to simplifying the operation, improving the operation efficiency, and further beneficial to reducing power consumption.

[0012] Based on the above technical solution, when a group of transducers in the ultrasonic water meter receive ultrasonic signals, a signal adaptive adjustment and capture technology is adopted to locate the ultrasonic first wave and reduce the probability of the ultrasonic signals received in the case of bubbles skipping. Among them, the signal adaptive adjustment and capture technology is an existing technology used to locate the ultrasonic first wave received by the transducer.

[0013] Based on the above technical solution, the ultrasonic water meter is designed to collect the sound velocity C at a set period. If the sound velocity C obtained in a continuous plurality of sampling periods does not fall within the calculated sound velocity range [C1, C2], shorten the sampling period to increase the collection frequency. Preferably, the set period is 0.25 - 1 s; preferably, the set sampling period is 1 s. If the sound velocity C obtained in three consecutive sampling periods does not fall within the calculated sound velocity range [C1, C2], shorten the sampling period to increase the collection frequency.

[0014] On the basis of the above technical solution, if the measured sound speed C obtained within a plurality of consecutive sampling periods does not fall within the calculated sound speed range [C1, C2], the acquisition frequency is increased to at least more than 8 times per second.

[0015] On the basis of the above technical solution, after increasing the acquisition frequency, among the N measured sound speeds C obtained and recorded within a set time period, M are marked as abnormal, and the influence degree of bubbles in the measurement section of the ultrasonic water meter on the measurement accuracy of the ultrasonic water meter is reflected as F. 。

[0016] An ultrasonic measurement bubble detection module includes a temperature difference △Tem acquisition module, a measured temperature module, a calculated temperature module, a calculated sound speed module, a deduced sound speed module, and a judgment and marking module. The temperature difference △Tem acquisition module is used to obtain the temperature difference △Tem between the measured temperature value and the calculated temperature value during the measurement of the ultrasonic water meter under experimental conditions. The measured temperature module is used to read the measured temperature T of the ultrasonic water meter. The calculated temperature module is used to call the measured temperature T and deduce the calculated temperature value range [T - △Tem, T + △Tem] of the ultrasonic water meter. The calculated sound speed module is used to obtain the corresponding calculated sound speed value range [C1, C2] by using the look-up table method after calling the calculated temperature value range [T - △Tem, T + △Tem]. The deduced sound speed module is used to obtain the time sum SUM of the ultrasonic wave upward travel time and the downward travel time between the transmitting end and the receiving end of a group of transducers in the ultrasonic water meter. TOF Call the time sum SUM of the ultrasonic wave upward travel time and the downward travel time. TOF To deduce the corresponding sound speed C. The judgment and marking module is used to judge whether the sound speed C is within the calculated sound speed range [C1, C2]. If the sound speed C does not fall within the calculated sound speed range [C1, C2], the measurement data of the ultrasonic water meter at this time is marked as abnormal.

[0017] An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. The characteristic is that when the processor executes the computer program, the above-mentioned ultrasonic measurement bubble detection method can be realized.

[0018] A storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned ultrasonic measurement bubble detection method can be realized.

[0019] A computer program product, when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the ultrasonic metering bubble detection method as described above.

[0020] Beneficial effects In the bubble detection method of the present invention, the design is ingenious. First, the temperature difference △Tem is determined. According to the calculated temperature value range [T - △Tem, T + △Tem], the corresponding calculated sound speed value range [C1, C2] is obtained by using the look-up table method. Then, it is judged whether the sound speed C deduced from the ultrasonic upward travel time and downward travel time under the condition of temperature T falls within the calculated sound speed value range [C1, C2]. If it does not fall within, the sound speed C is marked as abnormal. In this way, the presence or absence of bubbles can be efficiently detected. The method is simple, does not increase additional hardware costs, and has low cost and strong practicability. In addition, the judgment process is simple and reliable, which is beneficial to reducing the power consumption of the ultrasonic water meter metering module and is conducive to popularization and application.

[0021] The bubble detection method in the present invention is reasonable. By recording that among the N obtained sound speeds C within a set time period, M are marked as abnormal, and reflecting the influence degree of bubbles in the ultrasonic water meter measurement section on the metering accuracy of the ultrasonic water meter as F = M / N, the influence degree of bubbles on the metering accuracy of the ultrasonic water meter in the case of bubbles in the measurement pipe section is reflected. The method is simple and has strong practicability, filling the algorithm blank that the current ultrasonic water meter cannot judge the influence degree of bubbles in the pipeline on the metering accuracy of the ultrasonic water meter. Description of the drawings

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only one embodiment of the present invention. For those of ordinary skill in the art, without creative efforts, other implementation drawings can be obtained according to the provided drawings.

[0023] Figure 1 : Schematic diagram of the bubble detection method in the present invention; Figure 2 : Flow chart of the bubble detection method in the present invention; Detailed implementation manners In this article, unless otherwise specified, the term "a plurality" means two or more.

[0024] In this article, the character " / " means that the objects before and after are in an "or" relationship. For example, A / B means: A or B.

[0025] In this text, the term "and / or" describes the relationship between objects and indicates that three relationships can exist. For example, A and / or B means: A or B, or the three relationships of A and B.

[0026] As Figure 1 and 2 shown, a method for detecting bubbles based on ultrasonic measurement is applied to an ultrasonic water meter. The ultrasonic water meter includes at least one set of transducers 1, a measurement pipe section 3 corresponding to the position of the transducers 1, and a metering circuit. During the metering process, the ultrasonic water meter realizes the metering of the instantaneous flow rate through the data of the upstream time and the downstream time difference of the ultrasonic wave flight in one set of transducers 1. This is the prior art. Then, the instantaneous flow rate obtained is integrated over the sampling time to obtain the cumulative water consumption flow rate.

[0027] Among them, the designed sound path of the ultrasonic water meter is L. When there are bubbles, the designed sound path L of the ultrasonic water meter is divided into an effective sound path L1 and ineffective sound paths L2 and L3.

[0028] As an example, when there are bubbles, the effective sound path L1 and the ineffective sound paths L2 and L3 in the metering of the ultrasonic water meter are as Figure 1 shown.

[0029] Among them, in one set of transducers 1, the upstream time T of the ultrasonic wave flowing against the current UP is: (1) The downstream time T of the ultrasonic wave flowing along the current DOWN is: (2) C0 is the speed of sound of ultrasonic waves in still water at the current temperature; v is the flow velocity of the water flow in the measurement pipe section 3 of the ultrasonic water meter; τ is the time compensation value to compensate for the time accumulation due to circuit delay, transducer 1 startup delay, and ultrasonic waveform timing delay; The difference △ between the upstream time and the downstream time of the ultrasonic wave flight t is: (3) Among them, because C0 ≫ v, the above formula (3) is simplified and deformed to: (4) Furthermore, integrating over time gives the instantaneous flow rate.

[0030] Among them, in this set of transducers 1, the sum SUM of the upstream time and the downstream time of the ultrasonic wave TOF is: (5); Since C0≫v, and L = L1 + L2 + L3, the above formula (5) is simplified to: (6); An ultrasonic metering bubble detection method, applied to an ultrasonic water meter, includes the steps: 1) Obtain the temperature difference △Tem between the measured temperature value and the calculated temperature value during the metering of the ultrasonic water meter; specifically, obtain the temperature difference △Tem under experimental conditions, and the experimental conditions include placing the measuring pipe section 3 of the ultrasonic water meter in a static water environment, and the measuring pipe section 3 of the ultrasonic water meter is in a full-pipe state, and in addition, avoid electromagnetic wave interference around the environment.

[0031] In this embodiment, the process of obtaining the temperature difference △Tem between the measured temperature value and the calculated temperature value is specifically as follows: First, the temperature sensor 2 collects and obtains the temperature T1 at the measuring pipe section 3 during the operation of the water meter. Using the look-up table method, which is an existing technology and will not be elaborated here, obtain the sound speed value C under this temperature condition 01 :

[0032] Obtain the time compensation value τ through formula (6) and save it.

[0033] After that, the ultrasonic water meter operates normally within the working temperature range, reads the sum SUM of the ultrasonic up-travel time and down-travel time TOF , deduce the calculated sound speed at this time through formula (6), obtain the calculated temperature value corresponding to this calculated sound speed according to the look-up table, and compare the calculated temperature value with the obtained measured temperature value to obtain the temperature difference △Tem between the measured temperature value and the calculated temperature value.

[0034] Among them, the temperature difference △Tem is the maximum temperature difference between the measured temperature value and the calculated temperature value during multiple metering operations of an ultrasonic water meter of the same specification as this ultrasonic water meter under experimental conditions.

[0035] In other embodiments of the present invention, multiple ultrasonic water meters of the same specification are used for metering under experimental conditions, and each ultrasonic water meter performs multiple metering operations. Record the maximum temperature difference between the measured temperature value and the calculated temperature value measured during the metering of each ultrasonic water meter. Among them, the temperature difference △Tem between the measured temperature value and the calculated temperature value is the average value of the maximum temperature differences between the measured temperature values and the calculated temperature values during the metering of multiple ultrasonic water meters.

[0036] In other embodiments of the present invention, to further improve the accuracy of the temperature difference △Tem, the operating temperature of the ultrasonic water meter can also be divided into multiple temperature segments. For each temperature segment, the temperature difference △Tem is obtained respectively. For example, if the operating temperature of the ultrasonic water meter is 0~60°C, it is divided into three temperature segments: 0~20°C, 21~40°C, and 41~60°C. For each temperature segment, the corresponding temperature differences △Tem1, △Tem2, and △Tem3 are obtained respectively.

[0037] In this embodiment, the temperature difference △Tem is accurate to 0.1°C, which can further improve the bubble detection accuracy.

[0038] 2) Read the measured temperature T of the ultrasonic water meter during actual operation; in this embodiment, the temperature sensor 2 is used to collect the measured temperature T of the ultrasonic water meter, and the measurement accuracy of the temperature sensor 2 is at least 0.1°C. Among them, the temperature sensor 2 can adopt an NTC thermistor or a PT1000 platinum thermal resistor.

[0039] 3) Call the above-mentioned measured temperature T and calculate the calculated temperature value range [T - △Tem, T + △Tem] of the ultrasonic water meter; in addition, considering the inevitable systematic error in ultrasonic water meters due to factors such as production and components, obtain the systematic error compensation value △T of the temperature difference during the measurement of the ultrasonic water meter. The obtaining steps are as follows: First, prepare multiple ultrasonic water meters of the same specification under the above experimental conditions; After that, record the temperature difference △Tem determined by each ultrasonic water meter under the same conditions; After that, obtain the average absolute deviation △T of the temperature differences △Tem determined by multiple ultrasonic water meters MAD , and take △T MAD as the systematic error compensation value △T.

[0040] Call the compensation value △T and calculate the calculated temperature value range of the ultrasonic water meter as [T - △Tem - △T, T + △Tem + △T]. In this embodiment, the systematic error compensation value △T is 0.5~0.6°C.

[0041] Call the calculated temperature value range [T - △Tem - △T, T + △Tem + △T] and obtain the corresponding calculated sound velocity value range [C11, C21] by using the look-up table method. The look-up table method is an existing technology and will not be elaborated here; In this embodiment, considering that when the ultrasonic water meter is actually operating, the difference in the propagation speed of ultrasonic waves in the water body in the measurement pipe section of the water meter and in still water can be ignored. When calling the calculated temperature value range [T - △Tem - △T, T + △Tem + △T] and using the look-up table method to calculate the corresponding calculated sound velocity value range [C1 水1 , C2水1 , replace the calculated sound speed value range [C11, C21], so as to simplify the operation, reduce the amount of operation of looking up the table, and is beneficial to reducing energy consumption.

[0042] 5) Obtain the sum SUM of the ultrasonic up - travel time and the down - travel time between the transmitting end and the receiving end of one group of transducers 1 when the ultrasonic water meter is actually working. TOF , call the sum SUM of the ultrasonic up - travel time and the down - travel time. TOF , calculate the corresponding sound speed C according to formula (6); 6) Determine whether the sound speed C is within the calculated sound speed range [C1 水1 , C2 水1 . If the sound speed C does not fall within the calculated sound speed range [C1 水1 , C2 水1 , mark the measurement data of the ultrasonic water meter at this time as abnormal.

[0043] In addition, in this embodiment, the ultrasonic water meter is designed to collect the sound speed C at a set period. If the sound speed C obtained in a continuous plurality of sampling periods does not fall within the calculated sound speed range [C1 水1 , C2 水1 , shorten the sampling period to increase the collection frequency. In this embodiment, the set period is 1 s. In other embodiments of the present invention, the set period can be 0.25 - 1 s; and if the sound speed C obtained in three consecutive sampling periods does not fall within the calculated sound speed range [C1 水1 , C2 水1 , shorten the sampling period to increase the collection frequency. In this embodiment, the collection frequency is increased to 8 times per second. In other embodiments of the present invention, the collection frequency can be increased to more than 8 times per second at this time, and the higher the collection frequency, the more accurately it can reflect the influence degree of bubbles on the measurement accuracy of the ultrasonic water meter.

[0044] After increasing the collection frequency, among the N sound speeds C obtained and recorded within the set time period, M are marked as abnormal. In this embodiment, the set time period is 1 min. In other embodiments of the present invention, the set time period can be 0.5 - 2 min. Reflect the influence degree of bubbles in the measurement section of the ultrasonic water meter on the measurement accuracy of the ultrasonic water meter as F. .

[0045] In addition, considering that when ultrasonic waves pass through the reflection surface between liquid and gas, reflection occurs, resulting in a decrease in the received amplitude of ultrasonic waves, and the amplitude of the ultrasonic wave signal received by the transducer 1 will decrease by a certain proportion. In the present invention, when a group of transducers 1 in the ultrasonic water meter receive ultrasonic wave signals, a signal adaptive adjustment and capture technique is adopted to locate the ultrasonic wave first wave, and the ultrasonic wave first wave is automatically adjusted adaptively according to the reduced proportion, reducing the probability of signal skipping of the received ultrasonic wave signals in the case of bubbles, which is beneficial to increasing the proportion of effective ultrasonic wave signals collected by the transducer 1.

[0046] Among them, the signal adaptive adjustment and capture technique is a prior art, as shown in the patent document with the application number CN202411367581.2 and the title of an ultrasonic wave first wave positioning method, device and equipment, and also as shown in the patent document with the application number CN202411932737.7 and the title of a first wave threshold voltage setting method for an ultrasonic flow measurement device.

[0047] Based on the above embodiments of the bubble detection method, the present invention correspondingly provides an ultrasonic measurement bubble detection module, including a temperature difference △Tem acquisition module, a measurement temperature module, a calculation temperature module, a calculation sound speed module, a deduced sound speed module and a judgment and marking module; The temperature difference △Tem acquisition module is used to obtain the temperature difference △Tem between the measured temperature value and the calculated temperature value during the measurement of the ultrasonic water meter under experimental conditions; The measurement temperature module is used to read the measurement temperature T of the ultrasonic water meter; The calculation temperature module is used to call the measurement temperature T and deduce the range of the calculated temperature value of the ultrasonic water meter as [T - △Tem - △T, T + △Tem + △T]; The calculation sound speed module is used to obtain the corresponding range of calculated sound speed values [C1 水1 , C2 水1 by using the look-up table method after calling the range of calculated temperature values [T - △Tem - △T, T + △Tem + △T]; The deduced sound speed module is used to obtain the sum SUM of the upstream time and the downstream time of the ultrasonic wave between the transmitting end and the receiving end of a group of transducers 1 in the ultrasonic water meter TOF , call the sum SUM of the upstream time and the downstream time of the ultrasonic wave TOF , and deduce the corresponding sound speed C; The judgment and marking module is used to judge whether the sound speed C is within the calculated sound speed range [C1 水1 , C2 水1 , if the sound speed C does not fall within the calculated sound speed range [C1 水1 , C2 水1If it is within this range, the measurement data of the ultrasonic water meter at this time is marked as abnormal, indicating the presence of bubbles.

[0048] It should be noted that the embodiments of the ultrasonic measurement bubble detection module described above correspond to the above-described bubble detection embodiments of the present invention, and can implement any of the methods described above in the present invention.

[0049] An electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-described ultrasonic measurement bubble detection method can be implemented. Exemplarily, the computer program can be divided into one or more modules. The one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device. The terminal device can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. That is, the terminal device can include, but is not limited to, a processor and a memory.

[0050] The processor can be a Central Processing Unit (CPU), or can also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor, etc. The processor is the control center of the terminal device, and connects various parts of the entire terminal device through various interfaces and lines.

[0051] The memory can be used to store the computer program and / or module. The processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and by calling the data stored in the memory.

[0052] A storage medium stores a computer program, and when the computer program is executed by a processor, the above-described ultrasonic measurement bubble detection method can be implemented.

[0053] A computer program product, when the instructions in the computer program product are executed by the processor of the electronic device, the electronic device executes the above-described ultrasonic measurement bubble detection method.

[0054] The present invention has been described above by way of example, but the present invention is not limited to the above specific embodiments. Any modification or variation based on the present invention falls within the scope of protection required by the present invention.

Claims

1. An ultrasonic-based bubble detection method for metering, characterized in that, Applied to ultrasonic water meter, including the steps: 1) Obtain the temperature difference △Tem between the measured temperature value and the calculated temperature value during ultrasonic water meter measurement; 2) Read the ultrasonic water meter to measure the temperature T; 3) Calling the measured temperature T, and calculating the ultrasonic water meter calculated temperature value range [T-△Tem, T+△Tem]; 4) calling the calculated temperature value range [T-△Tem, T+△Tem], and using the table lookup method to obtain the corresponding calculated sound speed value range [C1, C2]; 5) Obtain the time sum SUM of the ultrasonic upstream time and the downstream time between the transmitting end and the receiving end of a group of transducers (1) in the ultrasonic water meter TOF , and call the time sum SUM of the ultrasonic upstream time and the downstream time TOF , so as to calculate the corresponding sound speed C; 6) Determine whether the sound velocity C is within the calculated sound velocity range [C1, C2]. If the sound velocity C does not fall within the calculated sound velocity range [C1, C2], the measurement data of the ultrasonic water meter at this time is marked as abnormal.

2. The ultrasonic metering bubble detection method according to claim 1, wherein The temperature difference ΔTem between the measured temperature value and the calculated temperature value is the maximum temperature difference between the measured temperature value and the calculated temperature value during measurement by the ultrasonic water meter.

3. The ultrasonic metering bubble detection method according to claim 2, characterized in that, When multiple ultrasonic water meters of the same specification are used for measurement, the temperature difference △Tem between the measured temperature value and the calculated temperature value is the average value of the maximum temperature difference between the measured temperature value and the calculated temperature value when the multiple ultrasonic water meters are used for measurement.

4. The ultrasonic metering bubble detection method according to claim 1, wherein The system error compensation value △T of the temperature difference during measurement of the ultrasonic water meter is obtained, the compensation value △T is called, and the calculated temperature value range of the ultrasonic water meter is calculated to be [T-△Tem-△T, T+△Tem+△T].

5. The ultrasonic metering bubble detection method according to claim 1, characterized in that The calculated temperature range [T-△Tem, T+△Tem] is called, and the corresponding calculated sound velocity range in still water [C1 水 , C2 水 ] replaces the calculated sound speed value range [C1, C2].

6. The ultrasonic metering bubble detection method according to claim 1, wherein A group of transducers (1) in the ultrasonic water meter adopts a signal adaptive adjustment capture technology when receiving ultrasonic signals to locate the first ultrasonic wave and reduce the probability of wave jumping of the received ultrasonic signal in the case of bubbles.

7. The ultrasonic metering bubble detection method according to any one of claims 1 to 6, characterized in that The ultrasonic water meter is designed to acquire the sound velocity C at a set period. If the sound velocity C acquired in a plurality of consecutive sampling periods does not fall within the calculated sound velocity range [C1, C2], the sampling period is shortened to increase the acquisition frequency.

8. The ultrasonic metering bubble detection method according to claim 7, wherein If the sound speed C obtained in a plurality of consecutive sampling periods does not fall within the calculated sound speed range [C1, C2], the acquisition frequency is increased to at least 8 times / second.

9. The ultrasonic metering bubble detection method according to claim 8, wherein After the acquisition frequency is increased, M of the N sound velocities C recorded and acquired within a set time period are marked as abnormal, and the influence of the bubbles in the ultrasonic water meter measurement section on the ultrasonic water meter measurement accuracy is reflected as F: 。 10. An ultrasonic metering bubble detection module, characterized in that, It includes a temperature difference △Tem acquisition module, a temperature measurement module, a temperature calculation module, a sound speed calculation module, a sound speed estimation module and a judgment marking module; The temperature difference value △Tem acquisition module is used to obtain the temperature difference value △Tem between the measured temperature value and the calculated temperature value during ultrasonic water meter measurement under experimental conditions; The temperature measurement module is used to read the ultrasonic water meter measurement temperature T; The temperature calculation module is used to call the measured temperature T and calculate the ultrasonic water meter temperature value range [T-△Tem, T+△Tem]; The sound velocity calculation module is used to call the calculated temperature value range [T-△Tem, T+△Tem] and obtain the corresponding calculated sound velocity value range [C1, C2] by using a table lookup method; The estimated sound velocity module is used to obtain the sum SUM of the ultrasonic upstream time and the downstream time between the transmitting end and the receiving end of a group of transducers (1) in the ultrasonic water meter TOF , and call the sum SUM of the ultrasonic upstream time and the downstream time TOF , so as to estimate the corresponding sound velocity C; The judgment marking module is used to judge whether the sound velocity C is within the calculated sound velocity range [C1, C2]. If the sound velocity C does not fall within the calculated sound velocity range [C1, C2], the measurement data of the ultrasonic water meter at this time is marked as abnormal.

11. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. It is characterized in that when the processor executes the computer program, the ultrasonic metering bubble detection method described in any one of claims 1 to 6, 8, and 9 can be implemented.

12. A storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, the ultrasonic metering bubble detection method described in any one of claims 1 to 6, 8, and 9 can be implemented.

13. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device executes the ultrasonic metering bubble detection method described in any one of claims 1 to 6, 8, and 9.

Citation Information

Patent Citations

  • Temperature detection method for ultrasonic flow detection and ultrasonic flow metering device

    CN104729582A

  • Temperature sensor-free ultrasonic water meter temperature correction method

    CN106885609A

  • Time difference ultrasonic flow measurement method based on improved Kalman filter

    CN112484798A

  • Ultrasonic flow measurement method based on sound velocity tracking and flowmeter using method

    CN115638846A

  • Method, system and equipment for correcting wave hopping phenomenon of gas ultrasonic flowmeter and medium

    CN117782271A

Cited By

  • Ultrasonic water meter metering method, equipment and medium

    CN120846436A

  • A method and apparatus for measuring moisture flow based on multi-sensor feature fusion and a physically constrained LightGBM model.

    CN122566959A

  • A moisture flow measurement method and device based on multi-sensor feature fusion and physical constraint LightGBM model

    CN122566959B