Ultrasonic flowmeter data correction method, system, device and electronic equipment

By obtaining the propagation time of the ultrasonic flow meter in both the upstream and downstream directions, calculating the average value, and finding the zero-point correction value, the zero-point drift problem was solved, achieving high-precision measurement and structural simplification.

CN116182967BActive Publication Date: 2026-07-14ZHEJIANG TIANXIN INSTR TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG TIANXIN INSTR TECH CO LTD
Filing Date
2021-11-26
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Existing ultrasonic flow meters suffer from zero-point drift in measurement accuracy under different media temperatures, requiring the installation of temperature sensors for correction. This process is costly, complex, and results in low measurement accuracy.

Method used

By obtaining the propagation time of the ultrasonic flow meter in both the upstream and downstream directions, calculating the average value, and searching for the zero-point correction value in a preset lookup table or a trained neural network model, the zero point is corrected in real time, and the fluid velocity is calculated.

Benefits of technology

It improves the measurement accuracy of ultrasonic flow meters, simplifies the structure, reduces costs, and eliminates the need for temperature sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116182967B_ABST
    Figure CN116182967B_ABST
Patent Text Reader

Abstract

The application provides an ultrasonic flowmeter data correction method, system, device and electronic equipment. The method comprises the following steps: acquiring at least one corresponding forward flow propagation time and reverse flow propagation time of an ultrasonic flowmeter, wherein the forward flow propagation time is the time difference of emitting and receiving ultrasonic waves in the forward flow direction, and the reverse flow propagation time is the time difference of emitting and receiving ultrasonic waves in the reverse flow direction; calculating the mean value of the forward flow propagation time and the reverse flow propagation time respectively according to the forward flow propagation time and the reverse flow propagation time; searching for a zero-point correction value corresponding to the mean value in a preset lookup table; and correcting the zero point based on the zero-point correction value, wherein the corrected zero point is used to calculate the flow rate of the fluid in the pipeline. In this way, the accuracy of the ultrasonic flowmeter measurement can be improved, the structure can be simplified, and the cost can be reduced by correcting the zero point in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of ultrasonic metering technology, and in particular to an ultrasonic flow meter data correction method, system, device and electronic equipment. Background Technology

[0002] With the development of ultrasonic metering technology, smart water meters are gradually replacing traditional mechanical water meters. Ultrasonic flow meters are a particularly noteworthy product among smart water meters. An ultrasonic flow meter is a new type of water meter that calculates the flow rate by detecting the time difference caused by the change in velocity of an ultrasonic beam as it propagates upstream and downstream in water. The time difference measured when the medium is stationary is called the zero point. However, the zero point changes under different medium temperatures, and this temperature variation affects the measurement accuracy of the ultrasonic flow meter.

[0003] In existing technologies, a temperature sensor is typically installed on the ultrasonic flow meter to obtain the current temperature of the medium. Furthermore, after determining the zero point at the current medium temperature, the zero point is corrected using the temperature.

[0004] However, when the above method corrects the zero point using the current medium temperature, a temperature sensor needs to be installed on the ultrasonic flow meter to obtain the current medium temperature, which is costly, complex in structure, and has low measurement accuracy. Summary of the Invention

[0005] This application provides a method, system, device, and electronic device for correcting data of an ultrasonic flow meter. It can correct the zero point in real time without installing a temperature sensor on the ultrasonic flow meter, which simplifies the product structure, reduces costs, and improves the accuracy of ultrasonic flow meter measurements.

[0006] In a first aspect, this application provides a method for correcting data of an ultrasonic flow meter, the method comprising:

[0007] The downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter are obtained at least once, wherein the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the upstream direction.

[0008] Based on the downstream propagation time and the upstream propagation time, calculate the average of the downstream propagation time and the upstream propagation time respectively;

[0009] Find the zero-point correction value corresponding to the mean in the preset lookup table;

[0010] Based on the zero-point correction value, the zero point is corrected, and the corrected zero point is used to calculate the flow velocity of the fluid in the pipeline.

[0011] Optionally, the zero-point correction value corresponding to the mean is looked up in a preset lookup table, including:

[0012] If a zero-point correction value corresponding to the mean is found in the preset lookup table, then the zero-point correction value corresponding to the mean is determined.

[0013] If the mean and the corresponding zero-point correction value cannot be found in the preset lookup table, the mean is input into the pre-trained neural network model to obtain the zero-point correction value corresponding to the mean.

[0014] Optionally, the method further includes:

[0015] Obtain a training dataset, which includes multiple samples, each of which includes the mean of the downstream propagation time and the upstream propagation time, as well as its corresponding zero-point correction value;

[0016] The neural network model is trained based on the training dataset.

[0017] Accordingly, the mean is input into a pre-trained neural network model to obtain the zero-point correction value corresponding to the mean, including:

[0018] The mean is input into the neural network model trained using the training dataset to detect the zero-point correction value corresponding to the mean.

[0019] Optionally, the ultrasonic flow meter includes at least one pair of ultrasonic transducers; obtaining the downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter includes:

[0020] The upstream and / or downstream ultrasonic transducers are excited to emit ultrasonic signals multiple times, and the corresponding downstream and / or upstream ultrasonic transducers receive the ultrasonic signals respectively.

[0021] Calculate the first average of the time it takes for an upstream ultrasonic transducer to emit an ultrasonic signal to an opposite downstream ultrasonic transducer to receive the ultrasonic signal, where the first average is the downstream propagation time corresponding to the ultrasonic flow meter.

[0022] The second average of the time it takes for the downstream ultrasonic transducer to emit an ultrasonic signal to the upstream ultrasonic transducer to receive the ultrasonic signal is calculated, and the second average is the reverse propagation time corresponding to the ultrasonic flow meter.

[0023] Optionally, the signal emitted by the ultrasonic transducer is adjusted by an amplifier connected to a digital potentiometer; the method further includes:

[0024] The gain of the amplifiers connected to the upstream and downstream ultrasonic transducers is adjusted by separately adjusting the resistance of the digital potentiometers.

[0025] Secondly, this application provides an ultrasonic flow meter data correction system, including: a pulse transmission module, an upstream ultrasonic transducer, a downstream ultrasonic transducer, a signal processing module, a time measurement module, a data storage module, and a main control module;

[0026] The pulse transmitting module is connected to the main control module and is used to transmit excitation pulse signals to the upstream ultrasonic transducer and the downstream ultrasonic transducer.

[0027] The upstream ultrasonic transducer is connected to the signal processing module and is used to receive the excitation pulse signal emitted by the pulse emission module and emit ultrasonic signals to the downstream ultrasonic transducer according to the excitation pulse signal, as well as receive the ultrasonic signals emitted by the downstream ultrasonic transducer.

[0028] The downstream ultrasonic transducer is connected to the signal processing module and is used to receive the excitation pulse signal emitted by the pulse emission module and convert the excitation pulse signal into an ultrasonic signal to be emitted to the upstream ultrasonic transducer, and to receive the ultrasonic signal emitted by the upstream ultrasonic transducer.

[0029] The signal processing module is connected to the upstream ultrasonic transducer and the downstream ultrasonic transducer, and is used to filter and amplify the ultrasonic signal.

[0030] The time measurement module is connected to the signal processing module and is used to determine the downstream propagation time and the upstream propagation time based on the filtered and amplified signal.

[0031] The data storage module is connected to the main control module and is used to store a lookup table, which includes the average of the downstream propagation time and the upstream propagation time and their corresponding zero-point correction values.

[0032] The main control module is connected to the time measurement module and the data storage module, and is used to execute the ultrasonic flow meter data correction method as described in any of the first aspects.

[0033] Thirdly, this application provides an ultrasonic flow meter data correction device, comprising:

[0034] The acquisition module is used to acquire at least one downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter, wherein the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the upstream direction;

[0035] The calculation module is used to calculate the average of the downstream propagation time and the upstream propagation time based on the downstream propagation time and the upstream propagation time, respectively.

[0036] The lookup module is used to find the zero-point correction value corresponding to the mean in a preset lookup table;

[0037] The correction module is used to correct the zero point based on the zero point correction value. The corrected zero point is used to calculate the flow rate of the fluid in the pipeline.

[0038] Fourthly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0039] The memory stores computer-executed instructions;

[0040] The processor executes computer execution instructions stored in the memory to implement the method as described in any one of the first aspects.

[0041] Fifthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the ultrasonic flow meter data correction method as described in any of the first aspects.

[0042] Sixthly, this application provides a computer program including program code, which, when a computer runs the computer program, performs the method as described in any of the first aspects.

[0043] In summary, this application provides a method, system, apparatus, and electronic device for correcting data from an ultrasonic flow meter. The method obtains at least one downstream and upstream propagation time corresponding to the ultrasonic flow meter, where the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the upstream direction. Further, the average values ​​of these downstream and upstream propagation times are calculated. A zero-point correction value corresponding to the average value is found in a preset lookup table, and the zero point is corrected based on this value. The corrected zero point is used to calculate the flow velocity of the fluid in the pipeline. This allows for real-time zero-point correction, improving the accuracy of the ultrasonic flow meter measurement, simplifying the structure, and reducing costs. Attached Figure Description

[0044] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0045] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;

[0046] Figure 2 A flowchart illustrating an ultrasonic flow meter data correction method provided in this application embodiment;

[0047] Figure 3 A schematic diagram of the architecture of an ultrasonic flow meter data correction system provided in this application embodiment;

[0048] Figure 4 A flowchart illustrating a specific ultrasonic flow meter data correction method provided in this application embodiment;

[0049] Figure 5 This is a schematic diagram of the structure of an ultrasonic flow meter data correction device provided in an embodiment of this application;

[0050] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0051] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the present invention in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0052] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0053] The term "multiple" in this application refers to two or more. The term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this application generally indicates an "or" relationship between the preceding and following related objects; in formulas, the character " / " indicates a "division" relationship between the preceding and following related objects. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0054] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and purpose. For example, "first device" and "second device" are merely used to distinguish different devices and do not limit their order of execution. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0055] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0056] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application.

[0057] It is understood that, in the embodiments of this application, the order of the following processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0058] The embodiments of this application will now be described in conjunction with the accompanying drawings. Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. The ultrasonic flowmeter data correction method provided in this application can be applied to, for example... Figure 1In the application scenario shown, the scenario includes an ultrasonic flow meter 101 and a measurement channel 104. The ultrasonic flow meter 101 includes an upstream ultrasonic transducer 103 and a downstream ultrasonic transducer 102. The ultrasonic flow meter 101 uses the time-of-flight method to measure the flow rate, that is, the upstream ultrasonic transducer 103 and the downstream ultrasonic transducer 102 are installed upstream and downstream of the measurement channel 104 (i.e., the pipe section) respectively for the mutual transmission and reception of ultrasonic signals. Specifically, the upstream ultrasonic transducer 103 transmits an ultrasonic signal (downstream) to the downstream ultrasonic transducer 102, and the downstream ultrasonic transducer 102 receives the ultrasonic signal transmitted by the upstream ultrasonic transducer 103. Furthermore, the downstream ultrasonic transducer 102 transmits an ultrasonic signal (upstream) to the upstream ultrasonic transducer 103, and the upstream ultrasonic transducer 103 receives the ultrasonic signal transmitted by the downstream ultrasonic transducer 102. In this way, the downstream and upstream ultrasonic signals form a certain time difference during transmission, which can be used to calculate the fluid velocity and, consequently, the fluid flow rate. However, under different medium temperatures, the zero point will change with temperature, further affecting the measurement accuracy of the ultrasonic flow meter.

[0059] In existing technologies, a temperature sensor is typically installed on an ultrasonic flow meter to obtain the temperature of the current medium. Further, after determining the zero point at the current medium temperature, the zero point is corrected by the temperature, and then the fluid velocity is calculated, thereby calculating the fluid flow rate.

[0060] However, when the above method corrects the zero point using the current medium temperature, a temperature sensor needs to be installed on the ultrasonic flow meter to obtain the current medium temperature, which is costly, complex in structure, and has low measurement accuracy.

[0061] Therefore, this application provides a data correction method for ultrasonic flow meters. This method involves acquiring at least one downstream and upstream propagation time corresponding to the ultrasonic flow meter, where the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the upstream direction. Further, the average values ​​of these downstream and upstream propagation times are calculated. A zero-point correction value corresponding to the average value is then found in a preset lookup table. Based on this zero-point correction value, the zero point is corrected, and the corrected zero point is used to calculate the flow velocity of the fluid in the pipe. This method improves the accuracy of ultrasonic flow meter measurements, simplifies the structure, and reduces costs by correcting the zero point in real time.

[0062] For example, Figure 2 This is a flowchart illustrating an ultrasonic flow meter data correction method provided in an embodiment of this application, as shown below. Figure 2 As shown, the method in this application embodiment includes:

[0063] S201. Obtain at least one downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter, wherein the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves along the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves along the upstream direction.

[0064] In this embodiment of the application, the ultrasonic flow meter includes at least one pair of ultrasonic transducers. Taking one pair as an example, one is arranged upstream of the pipe as the upstream ultrasonic transducer, and the other is arranged downstream of the pipe as the downstream ultrasonic transducer. The upstream ultrasonic transducer is used to transmit ultrasonic signals to the downstream ultrasonic transducer, and the downstream ultrasonic transducer receives them. The downstream ultrasonic transducer transmits ultrasonic signals to the upstream ultrasonic transducer, and the upstream ultrasonic transducer receives them.

[0065] Optionally, the upstream ultrasonic transducer transmits an ultrasonic signal to the downstream ultrasonic transducer. Correspondingly, after the downstream ultrasonic transducer receives the ultrasonic signal, it can directly obtain the time difference between the transmission and reception of the ultrasonic wave, i.e., the downstream propagation time. The execution entity for obtaining this time difference is the time measurement module. The process of obtaining the upstream propagation time is similar to that of the downstream propagation time, and will not be described in detail here.

[0066] Optionally, when the upstream ultrasonic transducer transmits an ultrasonic signal to the downstream ultrasonic transducer, the transmission time can be obtained. Correspondingly, when the downstream ultrasonic transducer receives the ultrasonic signal, the reception time can be obtained. The difference between the reception time and the transmission time is the downstream propagation time. The main control module is responsible for obtaining this time difference. The process of obtaining the upstream propagation time is similar to that of obtaining the downstream propagation time, and will not be described in detail here.

[0067] It should be noted that, in this embodiment, the downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter can be obtained at preset intervals, i.e., the downstream propagation time and upstream propagation time can be obtained in real time, or only the downstream propagation time and upstream propagation time can be obtained once and calculated accordingly. Therefore, this embodiment does not specifically limit the method and process of obtaining the downstream propagation time and upstream propagation time. The method can refer to obtaining multiple downstream propagation times and multiple upstream propagation times, or it can refer to obtaining one downstream propagation time and one upstream propagation time.

[0068] For example, in Figure 1 In the application scenario, the downstream propagation time and upstream propagation time of the ultrasonic flowmeter 101 can be obtained at least once by the time when the upstream ultrasonic transducer 103 and the downstream ultrasonic transducer 102 transmit and receive ultrasonic signals respectively.

[0069] S202. Calculate the average of the downstream propagation time and the upstream propagation time based on the downstream propagation time and the upstream propagation time, respectively.

[0070] Specifically, at the same temperature, if the fluid velocity is higher in the downstream situation, the measured downstream propagation time is shorter, and correspondingly, the upstream propagation time is longer. Conversely, if the fluid velocity is higher in the upstream situation, the measured upstream propagation time is shorter, and correspondingly, the downstream propagation time is longer. Therefore, this application reduces calculation errors by calculating the average of the downstream and upstream propagation times separately, so that the corresponding values ​​at the same temperature are the average of the downstream and upstream propagation times, thereby improving the accuracy of the calculation.

[0071] For example, in Figure 1 In the application scenario, if the downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter 101 are obtained at least once, the average value of the downstream propagation time and upstream propagation time can be calculated respectively.

[0072] S203. Search for the zero-point correction value corresponding to the mean in the preset lookup table.

[0073] In this embodiment of the application, the preset lookup table may refer to a lookup table that is stored in advance in the data storage module of the ultrasonic flow meter. The lookup table may include different temperatures, multiple averages, and zero-point correction values ​​corresponding to each pair of averages. The corresponding zero-point correction value can be found in the preset lookup table for each pair of averages.

[0074] For example, in an embodiment of this application, the average of the downstream propagation time can be obtained by acquiring multiple downstream propagation times; the average of the upstream propagation time can be calculated by acquiring multiple upstream propagation times; and further, a zero-point correction value can be found in a preset lookup table based on the two averages.

[0075] It is understood that the mean in the lookup table can be a specific value or a range. For example, if the calculated mean is 5 minutes, the lookup table will find that 5 minutes falls within the range of 5-10 minutes. The zero-point correction value corresponding to this 5-10 minute range is 0.5. Therefore, it can be determined that the zero-point correction value corresponding to the mean of 5 minutes is 0.5. Thus, this application does not specifically limit the representation of the mean in the lookup table. However, the corresponding zero-point correction value can be found in the lookup table based on the calculated mean.

[0076] For example, the zero-point correction value corresponding to the mean of the downstream propagation time and the upstream propagation time can be found in a preset lookup table by calculating the mean of the downstream propagation time and the upstream propagation time respectively.

[0077] It should be noted that before the ultrasonic flow meter leaves the factory, it undergoes factory testing. The testing equipment is equipped with a temperature sensor to perform multiple measurements at different temperatures. This allows for the acquisition of measurement results from the ultrasonic flow meter, such as the downstream propagation time and the upstream propagation time. Furthermore, these measurement results are compared with the test results of a standard instrument (known) to obtain the corresponding downstream and upstream propagation times of the ultrasonic flow meter at different temperatures, as well as the zero-point correction values ​​that need to be corrected. The measurement data is then compiled into a table containing the downstream and upstream propagation times and the corresponding zero-point correction values ​​at different propagation times, and stored in the ultrasonic flow meter, thus obtaining a preset lookup table.

[0078] It is understandable that the data in the preset lookup table may be different for different meters (i.e., different types of ultrasonic flow meters), because the slight differences between each meter may also lead to different zero-point correction values. Therefore, the lookup table varies according to the type of ultrasonic flow meter.

[0079] S204. Based on the zero-point correction value, the zero point is corrected, and the corrected zero point is used to calculate the flow rate of the fluid in the pipeline.

[0080] In this embodiment, zero point can refer to the time difference measured when the medium is stationary. The zero point is different under different medium temperatures. However, the zero point will drift with the change of temperature.

[0081] For example, after finding the zero-point correction value corresponding to the calculated mean in the preset lookup table, the zero point is corrected. Furthermore, the corrected zero point can be used to calculate the flow velocity of the fluid in the pipeline, that is, the zero-point correction value is subtracted from the time difference formed during the transmission of the ultrasonic signals in the forward and reverse directions, and then the distance that the fluid travels in a certain flow direction in the remaining time is calculated, that is, the flow velocity of the fluid.

[0082] It should be noted that the ultrasonic flow meter data correction method provided in this application is applicable not only to ultrasonic gas meters, but also to ultrasonic water meters and any instrument that uses ultrasound to measure fluids. The embodiments of this application do not specifically limit the type of instrument.

[0083] Therefore, this application can improve the accuracy of ultrasonic flow meter measurement by real-time dynamic correction of the zero point, eliminate the need for a temperature sensor, simplify the product structure, save costs, and make the process of calculating the flow velocity of fluid in the pipeline simple and convenient.

[0084] Optionally, the zero-point correction value corresponding to the mean is looked up in a preset lookup table, including:

[0085] If a zero-point correction value corresponding to the mean is found in the preset lookup table, then the zero-point correction value corresponding to the mean is determined.

[0086] If the mean and the corresponding zero-point correction value cannot be found in the preset lookup table, the mean is input into the pre-trained neural network model to obtain the zero-point correction value corresponding to the mean.

[0087] In this embodiment, neural networks are an important machine learning technique. Their network structure includes an input layer, hidden layers, and an output layer, and the number of hidden layers is configurable. The training process of a neural network model mainly utilizes backpropagation to perform gradient descent optimization to find the optimal model parameters.

[0088] This neural network model can be trained to learn. For example, it can be repeatedly applied to a known mean and its corresponding zero-point correction value, and the model's results can be compared with these known results. Furthermore, the information derived from these comparisons is fed back into the model, gradually adjusting the weights. As training progresses, the model's reproduction of known results becomes increasingly accurate. After training, the model can be applied to predict the zero-point correction values ​​corresponding to different means.

[0089] For example, in Figure 1 In the application scenario, after calculating the average of the downstream propagation time and the upstream propagation time, the zero-point correction value corresponding to the average is found in the preset lookup table, and the zero-point correction value corresponding to the average is determined; however, if it is not found, the average can be input into the pre-trained neural network model to obtain the zero-point correction value corresponding to the average for our use, and the zero-point correction value corresponding to the average can be stored in the lookup table for future use.

[0090] Therefore, this application can directly look up the zero-point correction value corresponding to the existing mean in a preset lookup table for use in ultrasonic flow meter calculations, which reduces the amount of calculation and is convenient and fast. Alternatively, the mean of the calculated downstream propagation time and upstream propagation time can be directly input into a pre-trained neural network model to obtain the zero-point correction value corresponding to the mean for use in ultrasonic flow meter calculations. This can improve the accuracy of the calculation. Alternatively, the zero-point correction value corresponding to the mean can be found in a preset lookup table. If it cannot be found, the mean can be input into a pre-trained neural network model to obtain the zero-point correction value corresponding to the mean. This approach improves accuracy and flexibility. The embodiments of this application do not specifically limit the method of obtaining the zero-point correction value.

[0091] Optionally, the method further includes:

[0092] Obtain a training dataset, which includes multiple samples, each of which includes the mean of the downstream propagation time and the upstream propagation time, as well as its corresponding zero-point correction value;

[0093] The neural network model is trained based on the training dataset.

[0094] Accordingly, the mean is input into a pre-trained neural network model to obtain the zero-point correction value corresponding to the mean, including:

[0095] The mean is input into the neural network model trained using the training dataset to detect the zero-point correction value corresponding to the mean.

[0096] In this embodiment, a large training dataset previously collected is obtained. This training dataset includes multiple samples, each of which may include the mean of the downstream propagation time and the upstream propagation time, as well as its corresponding zero-point correction value. The mean of the downstream propagation time can be the mean of multiple downstream propagation times, and the mean of the upstream propagation time is the mean of multiple upstream propagation times. This embodiment does not limit the specific number of downstream and upstream propagation times.

[0097] It should be noted that the training dataset only needs to be obtained once to train the neural network model. After that, the trained neural network model can be used directly to detect the obtained mean.

[0098] For example, an ultrasonic flow meter can train a neural network model by acquiring a training dataset, which may include the mean of the downstream propagation time and the upstream propagation time, as well as their corresponding zero-point correction values. Furthermore, the neural network model is trained based on the training dataset. For instance, the system can acquire a large amount of data, such as the mean of the downstream propagation time and the upstream propagation time, as well as their corresponding zero-point correction values, and then train the neural network model based on this data.

[0099] Correspondingly, in Figure 1 In the application scenario, the ultrasonic flow meter 101 can obtain the average of at least one downstream propagation time and upstream propagation time, and input the above average value into the neural network model trained by the above training dataset for prediction. Furthermore, it can detect the zero-point correction value corresponding to the average of the above two values.

[0100] Therefore, by using a pre-trained neural network model to detect the zero-point correction value corresponding to the mean, the accuracy of detection can be improved, and the problem of not being able to find the corresponding zero-point correction value based on the mean can be solved, making it widely applicable.

[0101] Optionally, the ultrasonic flow meter includes at least one pair of ultrasonic transducers; obtaining the downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter includes:

[0102] The upstream and / or downstream ultrasonic transducers are excited to emit ultrasonic signals multiple times, and the corresponding downstream and / or upstream ultrasonic transducers receive the ultrasonic signals respectively.

[0103] Calculate the first average of the time it takes for an upstream ultrasonic transducer to emit an ultrasonic signal to an opposite downstream ultrasonic transducer to receive the ultrasonic signal, where the first average is the downstream propagation time corresponding to the ultrasonic flow meter.

[0104] The second average of the time it takes for the downstream ultrasonic transducer to emit an ultrasonic signal to the upstream ultrasonic transducer to receive the ultrasonic signal is calculated, and the second average is the reverse propagation time corresponding to the ultrasonic flow meter.

[0105] For example, this application requires at least a pair of ultrasonic transducers, one arranged upstream of the pipe and the other downstream of the pipe. The two ultrasonic transducers are respectively excited to emit signals and receive signals at opposite ultrasonic transducers. For instance, the ultrasonic flow meter excites the upstream ultrasonic transducer to emit ultrasonic signals multiple times, and correspondingly, the opposite downstream ultrasonic transducer receives the ultrasonic signals. The average time from the upstream ultrasonic transducer emitting the ultrasonic signals to the opposite downstream ultrasonic transducer receiving the ultrasonic signals is calculated, and this average time is the downstream propagation time. Simultaneously, the downstream ultrasonic transducer is also excited to emit ultrasonic signals multiple times, and correspondingly, the opposite upstream ultrasonic transducer receives the ultrasonic signals. The average time from the downstream ultrasonic transducer emitting the ultrasonic signals to the opposite upstream ultrasonic transducer receiving the ultrasonic signals is calculated, and this average time is the upstream propagation time. Furthermore, the downstream and upstream propagation times corresponding to the ultrasonic flow meter can be obtained.

[0106] It should be noted that when the ultrasonic flow meter has only one pair of ultrasonic transducers, the upstream and downstream ultrasonic transducers cannot transmit or receive signals simultaneously. Instead, one ultrasonic transducer transmits the signal while the other receives it. Preferably, the ultrasonic flow meter can have two pairs of ultrasonic transducers, allowing the upstream and downstream ultrasonic transducers to transmit signals simultaneously, while the downstream and upstream ultrasonic transducers receive the signals, saving time and improving processing efficiency.

[0107] It is understood that when the ultrasonic flow meter calculates the average of multiple propagation times (i.e., downstream propagation time and upstream propagation time), it can be the average of multiple sets of data measured by the same pair of ultrasonic transducers, or it can be the average of multiple sets of data measured by different pairs of ultrasonic transducers. This application does not specifically limit this.

[0108] Therefore, the downstream and upstream propagation times of the ultrasonic flowmeter obtained by averaging can improve the accuracy of the calculation.

[0109] Optionally, the signal emitted by the ultrasonic transducer is adjusted by an amplifier connected to a digital potentiometer; the method further includes:

[0110] The gain of the amplifiers connected to the upstream and downstream ultrasonic transducers is adjusted by separately adjusting the resistance of the digital potentiometers.

[0111] In this embodiment, the digital potentiometer can refer to a novel CMOS (Complementary Metal-Oxide-Semiconductor) digital-analog mixed-signal processing integrated circuit that replaces the traditional mechanical potentiometer (analog potentiometer). Digital potentiometers adjust resistance values ​​using a numerical control method, offering advantages such as flexible use, high adjustment precision, contactless operation, low noise, resistance to contamination, vibration resistance, interference resistance, small size, and long lifespan.

[0112] An amplifier can refer to a device that amplifies the voltage or power of an input signal. It consists of vacuum tubes or transistors, power transformers, and other electrical components, and can be used to amplify ultrasonic signals.

[0113] Preferably, a digital potentiometer can be connected to the input of the amplifier, and the gain of the amplifier can be adjusted by adjusting the resistance of the digital potentiometer.

[0114] For example, the gain of the amplifier connected to the upstream ultrasonic transducer can be adjusted by adjusting the resistance of the digital potentiometer. Furthermore, based on the adjusted amplifier gain, the ultrasonic signal generated by the upstream ultrasonic transducer is amplified and transmitted, and correspondingly, the downstream ultrasonic transducer receives the amplified ultrasonic signal. Simultaneously, the gain of the amplifier connected to the downstream ultrasonic transducer can be adjusted by adjusting the resistance of the digital potentiometer. Furthermore, based on the adjusted amplifier gain, the ultrasonic signal generated by the downstream ultrasonic transducer is amplified and transmitted, and correspondingly, the upstream ultrasonic transducer receives the amplified ultrasonic signal.

[0115] Therefore, amplifying the ultrasonic signal emitted by the ultrasonic transducer can improve the success rate of the opposing ultrasonic transducer receiving the ultrasonic signal.

[0116] In conjunction with the above embodiments, this application also provides an ultrasonic flow meter data correction system, including: a pulse emission module, an upstream ultrasonic transducer, a downstream ultrasonic transducer, a signal processing module, a time measurement module, a data storage module, and a main control module;

[0117] The pulse transmitting module is connected to the main control module and is used to transmit excitation pulse signals to the upstream ultrasonic transducer and the downstream ultrasonic transducer.

[0118] The upstream ultrasonic transducer is connected to the signal processing module and is used to receive the excitation pulse signal emitted by the pulse emission module and emit ultrasonic signals to the downstream ultrasonic transducer according to the excitation pulse signal, as well as receive the ultrasonic signals emitted by the downstream ultrasonic transducer.

[0119] The downstream ultrasonic transducer is connected to the signal processing module and is used to receive the excitation pulse signal emitted by the pulse emission module and convert the excitation pulse signal into an ultrasonic signal to be emitted to the upstream ultrasonic transducer, and to receive the ultrasonic signal emitted by the upstream ultrasonic transducer.

[0120] The signal processing module is connected to the upstream ultrasonic transducer and the downstream ultrasonic transducer, and is used to filter and amplify the ultrasonic signal.

[0121] The time measurement module is connected to the signal processing module and is used to determine the downstream propagation time and the upstream propagation time based on the filtered and amplified signal.

[0122] The data storage module is connected to the main control module and is used to store a lookup table, which includes the average of the downstream propagation time and the upstream propagation time and their corresponding zero-point correction values.

[0123] The main control module is connected to the time measurement module and the data storage module, and is used to execute the ultrasonic flow meter data correction method as described in any of the foregoing embodiments of this application.

[0124] For example, Figure 3 This application provides an embodiment of an ultrasonic flowmeter data correction system, as shown in the following schematic diagram. Figure 3 As shown, the pulse transmitting module transmits excitation pulse signals to the upstream and downstream ultrasonic transducers. The upstream and downstream ultrasonic transducers receive the excitation pulse signals and convert the electrical signals generated by the pulse transmitting module into ultrasonic signals and transmit them. That is, the upstream ultrasonic transducer transmits ultrasonic signals to the downstream ultrasonic transducer and the downstream ultrasonic transducer receives them, and the downstream ultrasonic transducer transmits ultrasonic signals to the upstream ultrasonic transducer and the upstream ultrasonic transducer receives them.

[0125] It should be noted that the upstream and downstream ultrasonic transducers are connected to the signal processing module for filtering and amplifying the ultrasonic signals. Therefore, the ultrasonic signals emitted by the upstream and downstream ultrasonic transducers are amplified, and correspondingly, the ultrasonic signals received by the downstream and upstream ultrasonic transducers are filtered to reduce noise and minimize the impact of errors.

[0126] Furthermore, the signal after filtering and amplification by the signal processing module is sent to the time measurement module, which can measure the time between the start time of the upstream and downstream transmitted signals and the time of the received signals, that is, the downstream propagation time and the upstream propagation time. The time measurement module is connected to the main control module, and can then send the measured downstream propagation time and upstream propagation time to the main control module. The main control module calculates the average of the downstream propagation time and the upstream propagation time, and can look up the zero-point correction value corresponding to the above average value from the data storage module to correct the zero point.

[0127] It should be noted that the data storage module stores the average value of temperature changes and the zero-point correction value corresponding to each pair of average values ​​before factory settings. The main control module can also be used to control the pulse transmission module to transmit excitation pulse signals at preset intervals.

[0128] Specifically, Figure 4 A flowchart illustrating a specific ultrasonic flowmeter data correction method provided in this application embodiment is shown below. Figure 4 As shown, the specific execution method steps of this application embodiment include:

[0129] Step S1: Excite the ultrasonic transducer to emit a signal, and receive the ultrasonic signal at the opposite ultrasonic transducer. Then proceed to step S2.

[0130] Step S2: After the above signal is processed by the signal processing module, it is sent to the time measurement module to measure the time between the start time of the transmitted signal and the time of the received signal, i.e., the propagation time. Then, proceed to step S3.

[0131] Step S3: Measure the downstream propagation time and the upstream propagation time, and calculate the average of the downstream and upstream propagation times respectively, then proceed to step S4.

[0132] Step S4: Locate the preset average propagation time and zero-point correction value in the data storage, find the corresponding zero-point correction value based on the average propagation time, and proceed to step S5.

[0133] Step S5: Use the zero-point correction value obtained above to perform dynamic compensation correction on the zero point.

[0134] In the foregoing embodiments, the ultrasonic flowmeter data correction method provided in this application has been described. To implement the functions of the methods provided in the embodiments of this application, the electronic device serving as the execution subject may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.

[0135] For example, Figure 5 This is a schematic diagram of the structure of an ultrasonic flowmeter data correction device provided in an embodiment of this application, as shown below. Figure 5 As shown, the device includes: an acquisition module 510, a calculation module 520, a lookup module 530, and a correction module 540. The acquisition module 510 is used to acquire at least one downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter, wherein the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the upstream direction. The calculation module 520 is used to calculate the average of the downstream propagation time and the upstream propagation time based on the downstream propagation time and the upstream propagation time, respectively. The lookup module 530 is used to look up the zero-point correction value corresponding to the average value in a preset lookup table. The correction module 540 is used to correct the zero point based on the zero-point correction value, and the corrected zero point is used to calculate the flow velocity of the fluid in the pipe.

[0136] Optionally, the search module 530 includes a determining unit and a processing unit;

[0137] Specifically, the determining unit is used to determine the zero-point correction value corresponding to the mean when a zero-point correction value corresponding to the mean is found in the preset lookup table;

[0138] The processing unit is configured to input the mean into a pre-trained neural network model to obtain the zero-point correction value corresponding to the mean when the mean and the zero-point correction value corresponding to the mean cannot be found in the preset lookup table.

[0139] Optionally, the device further includes a training module, the training module being used for:

[0140] Obtain a training dataset, which includes multiple samples, each of which includes the mean of the downstream propagation time and the upstream propagation time, as well as its corresponding zero-point correction value;

[0141] The neural network model is trained based on the training dataset.

[0142] Accordingly, the processing unit is specifically used for:

[0143] The mean is input into the neural network model trained using the training dataset to detect the zero-point correction value corresponding to the mean.

[0144] Optionally, the ultrasonic flow meter includes at least one pair of ultrasonic transducers; the acquisition module 510 includes an excitation unit and a calculation unit;

[0145] Specifically, the excitation unit is used to excite the upstream and / or downstream ultrasonic transducers to emit ultrasonic signals multiple times, and correspondingly, the ultrasonic transducers in opposite directions downstream and / or upstream receive the ultrasonic signals.

[0146] The calculation unit is used to calculate a first average of the time it takes for an upstream ultrasonic transducer to emit an ultrasonic signal to an opposite downstream ultrasonic transducer to receive the ultrasonic signal, the first average being the downstream propagation time corresponding to the ultrasonic flow meter; and to calculate a second average of the time it takes for a downstream ultrasonic transducer to emit an ultrasonic signal to an opposite upstream ultrasonic transducer to receive the ultrasonic signal, the second average being the upstream propagation time corresponding to the ultrasonic flow meter.

[0147] Optionally, the signal emitted by the ultrasonic transducer is regulated by an amplifier connected to a digital potentiometer; the device further includes an adjustment module for adjusting the gain of the amplifiers connected to the upstream and downstream ultrasonic transducers by adjusting the resistance of the digital potentiometer respectively.

[0148] The specific implementation principle and effects of the ultrasonic flowmeter data correction device provided in this application embodiment can be found in the relevant descriptions and effects of the above embodiments, and will not be elaborated further here.

[0149] For example, this application also provides a schematic diagram of the structure of an electronic device. Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 6 As shown, the electronic device may include: a processor 602 and a memory 601 communicatively connected to the processor; the memory 601 stores a computer program; the processor 602 executes the computer program stored in the memory 601, causing the processor 602 to perform the method described in any of the above embodiments.

[0150] The memory 601 and the processor 602 can be connected via a bus 603.

[0151] This application also provides a computer-readable storage medium storing computer program execution instructions, which, when executed by a processor, are used to implement the ultrasonic flow meter data correction method as described in any of the foregoing embodiments of this application.

[0152] This application also provides a chip for executing instructions, which is used to perform an ultrasonic flow meter data correction method executed by an electronic device as described in any of the foregoing embodiments of this application.

[0153] This application also provides a computer program, including program code, which, when a computer runs the computer program, executes the ultrasonic flow meter data correction method executed by an electronic device in any of the foregoing embodiments of this application.

[0154] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0155] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0156] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0157] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.

[0158] It should be understood that the aforementioned processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0159] The memory may include high-speed random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.

[0160] The bus can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0161] The aforementioned storage medium can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.

[0162] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in application-specific integrated circuits (ASICs). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0163] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A method for correcting data from an ultrasonic flow meter, characterized in that, include: The downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter are obtained at least once, wherein the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the upstream direction; Based on the downstream propagation time and the upstream propagation time, calculate the average of the downstream propagation time and the upstream propagation time respectively; The zero-point correction value corresponding to the mean is found in a preset lookup table; wherein, the preset lookup table includes the mean of the downstream propagation time and the upstream propagation time obtained by multiple measurements at different temperatures before the ultrasonic flow meter leaves the factory, and the zero-point correction value corresponding to the mean obtained by comparing with the test results of a standard instrument; Based on the zero-point correction value, the zero point is corrected, and the corrected zero point is used to calculate the flow velocity of the fluid in the pipeline.

2. The method according to claim 1, characterized in that, The zero-point correction value corresponding to the mean is found in a preset lookup table, including: If a zero-point correction value corresponding to the mean is found in the preset lookup table, then the zero-point correction value corresponding to the mean is determined. If the mean and the corresponding zero-point correction value cannot be found in the preset lookup table, the mean is input into the pre-trained neural network model to obtain the zero-point correction value corresponding to the mean.

3. The method according to claim 2, characterized in that, Also includes: Obtain a training dataset, which includes multiple samples, each of which includes the mean of the downstream propagation time and the upstream propagation time, as well as its corresponding zero-point correction value; The neural network model is trained based on the training dataset. Accordingly, the mean is input into a pre-trained neural network model to obtain the zero-point correction value corresponding to the mean, including: The mean is input into the neural network model trained using the training dataset to detect the zero-point correction value corresponding to the mean.

4. The method according to claim 1, characterized in that, The ultrasonic flow meter includes at least one pair of ultrasonic transducers; obtaining the downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter includes: The upstream and / or downstream ultrasonic transducers are excited to emit ultrasonic signals multiple times, and the corresponding downstream and / or upstream ultrasonic transducers receive the ultrasonic signals respectively. Calculate the first average of the time it takes for an upstream ultrasonic transducer to emit an ultrasonic signal to an opposite downstream ultrasonic transducer to receive the ultrasonic signal, where the first average is the downstream propagation time corresponding to the ultrasonic flow meter. The second average of the time it takes for the downstream ultrasonic transducer to emit an ultrasonic signal to the upstream ultrasonic transducer to receive the ultrasonic signal is calculated, and the second average is the reverse propagation time corresponding to the ultrasonic flow meter.

5. The method according to claim 4, characterized in that, The signal emitted by the ultrasonic transducer is adjusted by an amplifier, which is connected to a digital potentiometer; the method further includes: The gain of the amplifiers connected to the upstream and downstream ultrasonic transducers is adjusted by separately adjusting the resistance of the digital potentiometers.

6. An ultrasonic flow meter data correction system, characterized in that, include: The system includes a pulse emission module, an upstream ultrasonic transducer, a downstream ultrasonic transducer, a signal processing module, a time measurement module, a data storage module, and a main control module. The pulse transmitting module is connected to the main control module and is used to transmit excitation pulse signals to the upstream ultrasonic transducer and the downstream ultrasonic transducer. The upstream ultrasonic transducer is connected to the signal processing module and is used to receive the excitation pulse signal emitted by the pulse emission module and emit ultrasonic signals to the downstream ultrasonic transducer according to the excitation pulse signal, as well as receive the ultrasonic signals emitted by the downstream ultrasonic transducer. The downstream ultrasonic transducer is connected to the signal processing module and is used to receive the excitation pulse signal emitted by the pulse emission module and convert the excitation pulse signal into an ultrasonic signal to be emitted to the upstream ultrasonic transducer, and to receive the ultrasonic signal emitted by the upstream ultrasonic transducer. The signal processing module is connected to the upstream ultrasonic transducer and the downstream ultrasonic transducer, and is used to filter and amplify the ultrasonic signal. The time measurement module is connected to the signal processing module and is used to determine the downstream propagation time and the upstream propagation time based on the filtered and amplified signal. The data storage module, connected to the main control module, is used to store a lookup table. The lookup table includes the average of the downstream propagation time and the upstream propagation time, as well as their corresponding zero-point correction values. The preset lookup table includes the average of the downstream propagation time and the upstream propagation time obtained by multiple measurements at different temperatures before the ultrasonic flow meter leaves the factory, and the zero-point correction value corresponding to the average value obtained by comparing it with the test results of a standard instrument. The main control module is connected to the time measurement module and the data storage module, and is used to execute the ultrasonic flow meter data correction method as described in any one of claims 1-5.

7. An ultrasonic flow meter data correction device, characterized in that, include: The acquisition module is used to acquire at least one downstream propagation time and upstream propagation time corresponding to the ultrasonic flow meter, wherein the downstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the downstream direction, and the upstream propagation time is the time difference between transmitting and receiving ultrasonic waves in the upstream direction; The calculation module is used to calculate the average of the downstream propagation time and the upstream propagation time based on the downstream propagation time and the upstream propagation time, respectively. The lookup module is used to look up the zero-point correction value corresponding to the mean in a preset lookup table; wherein, the preset lookup table includes the mean of the downstream propagation time and the upstream propagation time obtained by multiple measurements at different temperatures before the ultrasonic flow meter leaves the factory, and the zero-point correction value corresponding to the mean obtained by comparing with the test results of a standard instrument; The correction module is used to correct the zero point based on the zero point correction value. The corrected zero point is used to calculate the flow rate of the fluid in the pipeline.

8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the ultrasonic flow meter data correction method as described in any one of claims 1-5.

10. A computer program, characterized in that, Includes program code that, when the computer runs the computer program, performs the method as described in any one of claims 1-5.