Temperature metering method suitable for ultrasonic water meter
By collecting data in ultrasonic water meters and establishing a temperature calculation model, the problem of insufficient temperature acquisition accuracy is solved, the flow measurement accuracy is improved, high-precision temperature values are obtained without increasing costs, and the influence of temperature on flow measurement results is reduced. influence.
Patent Information
- Application Number
- CN202410448129.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-08-23
AI Technical Summary
During the flow measurement process of ultrasonic water meters, temperature changes affect the flow measurement accuracy. The temperature acquisition accuracy in the existing technology is insufficient, resulting in inaccurate flow measurement results, and there are deficiencies in solutions with high cost or low accuracy.
By collecting data at different temperature points and dividing it into a test set and a training set, a temperature calculation model is established, and the corrected water temperature is calculated using the absolute flight time and sound path length correction values to reduce the impact of temperature on flow measurement.
The flow measurement accuracy of the ultrasonic water meter is improved, a more accurate temperature value is obtained, the cost is reduced, and the impact of temperature on the flow measurement results is reduced.
Smart Images

Figure CN118533246A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of ultrasonic water meters, and in particular to a temperature measurement method suitable for ultrasonic water meters. Background Art
[0002] In the process of ultrasonic water meter flow measurement, when the temperature of the medium to be tested changes, the meter measurement result will also change, that is, the temperature change will affect the flow measurement accuracy. In order to ensure the accuracy of flow measurement, the flow calibration scheme often needs to consider the influence of temperature, which also puts forward higher requirements on the accuracy of temperature measurement.
[0003] In this regard, the current solutions mostly adopt two methods: one is to add a temperature sensor. This solution obtains temperature data with high accuracy, but the cost of the temperature sensor is relatively high; the second is to calculate the intermediate quantity (such as water flow density or sound speed in water), and then obtain the temperature by converting between variables. This method does not require the use of temperature sensors and reduces costs, but the temperature calculation accuracy is not high and the correction effect on flow is limited. Summary of the invention
[0004] In view of the shortcomings and defects of the prior art, the present invention provides a temperature measurement method suitable for ultrasonic water meters, which solves the problem of insufficient temperature acquisition accuracy in the ultrasonic water meter measurement process, reduces the influence of insufficient temperature accuracy on the flow measurement results of the ultrasonic water meter, and thus improves the flow measurement accuracy of the ultrasonic water meter.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A temperature measurement method applicable to an ultrasonic water meter comprises the following steps:
[0007] S1, under the premise that the ultrasonic water meter signal is normal, collect data of no less than 1 minute at different temperature points and flow points to obtain the upstream absolute flight time, downstream absolute flight time, measured water temperature and measured flow rate;
[0008] The temperature point value range is 5 to 50 degrees Celsius, and the temperature difference between adjacent temperature points does not exceed 10 degrees Celsius; the flow points are no less than 10, and are set according to the water meter verification flow points in the national standard;
[0009] S2, after classifying the obtained data according to the flow points, the obtained data is divided into a test set and a training set;
[0010] S3, obtain the temperature calculation model from the training set data, and verify the model through the test set data;
[0011] S4, inputting the data collected by the ultrasonic water meter into the temperature calculation model to obtain the corrected water temperature.
[0012] Preferably, the upstream absolute flight time, downstream absolute flight time, measured water temperature and measured flow rate obtained by S1 are all average values of the collected data.
[0013] Preferably, the input of the temperature calculation model is the absolute flight time, and the output is the corrected water temperature;
[0014] The model is divided into the following 2 layers:
[0015] The first layer, according to the absolute flight time, obtains the corresponding absolute flight time correction value and sound path length correction coefficient from the correction table;
[0016] The second layer calculates the speed of sound in water based on the absolute flight time correction value and the sound path length correction coefficient, looks up the water temperature-sound speed comparison table, and obtains the water temperature correction value;
[0017] The specific steps to obtain the correction table based on the training set data are as follows:
[0018] Step 1, calculate the absolute flight time correction value, Where i represents the serial number of the temperature point, v(T i ) indicates that the measured water temperature T i The speed of sound under i For [T i , T i+1 ] The mean absolute flight time of the upstream and downstream of the temperature range, Δt i For [T i , T i+1 ] Absolute flight time correction value for the temperature range;
[0019] Step 2: According to Δt i With v(T i ) to obtain the actual sound path length. The ratio of the actual sound path length to the designed sound path length is the sound path length correction coefficient k. i ;
[0020] Step 3, with t i -Δt i -k i In the form of, the above values are organized into a correction table and stored.
[0021] The beneficial technical effects of the present invention are as follows: a method for obtaining relatively accurate temperature values using existing data is provided, which solves the problem of insufficient temperature acquisition accuracy of ultrasonic water meters. A relatively high-precision temperature value can be obtained without increasing the cost of ultrasonic water meters. The influence of temperature on flow rate can be reduced through temperature calibration, thereby improving the metering accuracy of ultrasonic water meters. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is the overall flow chart of the present invention.
[0023] Figure 2 This is a comparison chart of the results before and after the improved temperature calculation scheme in the embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not limit the present invention.
[0025] Example: Figure 1 As shown, a temperature measurement method applicable to an ultrasonic water meter comprises the following steps:
[0026] S1, under the premise that the ultrasonic water meter signal is normal, collect data of no less than 1 minute at different temperature points and flow points to obtain the upstream absolute flight time, downstream absolute flight time, measured water temperature and measured flow rate;
[0027] The temperature point value range is 5 to 50 degrees Celsius, and the temperature difference between adjacent temperature points does not exceed 10 degrees Celsius; the flow points are no less than 10, and are set according to the water meter verification flow points in the national standard;
[0028] In the embodiment: the number of temperature points is selected to be 3, and the values are 10, 20, and 30 degrees Celsius respectively; the number of flow points is selected to be 30, and there are 10 flow points under each temperature point.
[0029] S2, after classifying the obtained data according to the flow points, the obtained data is divided into a test set and a training set;
[0030] S3. During the actual test, it was found that the absolute flight time at each temperature point was different from the theoretical calculated value, so the input absolute flight time needs to be corrected. The correction formula is as follows: Where i represents the serial number of the temperature point, t i For [T i , T i+1 ] The mean absolute flight time of the upstream and downstream of the temperature range, Δt i For [T i , T i+1 ] absolute flight time correction value for the temperature range, v(T i ) indicates that the measured water temperature T i The speed of sound under can be obtained by looking up the table;
[0031] S4, by Δt i With v(T i ), calculate [T i , T i+1 The actual sound path length value in the temperature range, the ratio of the actual sound path length value to the designed sound path length value is the correction coefficient ki ;
[0032] S5, with t i -Δt i -k i The correction table is combined into a correction table and stored in the ultrasonic water meter;
[0033] S6, when actually performing temperature calculation, after obtaining the absolute flight time, first determine whether the absolute flight time is within the interval of the correction table. The determination condition is that the absolute flight time of the upstream and downstream is within [t i ,t i+1 ], select t i The absolute flight time and the acoustic path length are corrected with the corresponding correction values, and the temperature is calculated based on the corrected absolute flight time and the acoustic path length to obtain a more accurate temperature calculation value.
[0034] The test results are as attached Figure 2 As shown in the figure, the corrected water temperature value is closer to the tested water temperature value, and the temperature calculation accuracy is improved by about 2°C.
[0035] The above embodiments are descriptions of specific implementation methods of the present invention rather than limitations of the present invention. Technical personnel in the relevant technical field may make various changes and modifications to obtain corresponding equivalent technical solutions without departing from the spirit and scope of the present invention. Therefore, all equivalent technical solutions should be included in the patent protection scope of the present invention.
Claims
1. A temperature measurement method suitable for ultrasonic water meters, It is characterized in that The following steps are involved: S1, under the premise that the ultrasonic water meter signal is normal, collect data of no less than 1 minute at different temperature points and flow points to obtain the upstream absolute flight time, downstream absolute flight time, measured water temperature and measured flow rate; The temperature point value range is 5 to 50 degrees Celsius, and the temperature difference between adjacent temperature points does not exceed 10 degrees Celsius; The number of flow points shall be no less than 10, and shall be set in accordance with the water meter verification flow points in the national standards; S2, after classifying the obtained data according to the flow points, the obtained data is divided into a test set and a training set; S3, obtain the temperature calculation model from the training set data, and verify the model through the test set data; S4, inputting the data collected by the ultrasonic water meter into the temperature calculation model to obtain the corrected water temperature.
2. A temperature measurement method suitable for ultrasonic water meter according to claim 1, It is characterized in that The upstream absolute flight time, downstream absolute flight time, measured water temperature and measured flow rate obtained by S1 are all the average values of the collected data.
3. A method for improving temperature measurement accuracy of an ultrasonic water meter according to claim 1, It is characterized in that The input of the temperature calculation model is the absolute flight time, and the output is the corrected water temperature; The model is divided into the following 2 layers: The first layer, according to the absolute flight time, obtains the corresponding absolute flight time correction value and sound path length correction coefficient from the correction table; The second layer calculates the speed of sound in water based on the absolute flight time correction value and the sound path length correction coefficient, looks up the water temperature-sound speed comparison table, and obtains the water temperature correction value; The specific steps to obtain the correction table based on the training set data are as follows: Step 1, calculate the absolute flight time correction value, Where i represents the serial number of the temperature point, v(T i ) indicates that the measured water temperature T i The speed of sound under i For [T i , T i+1 ] The mean absolute flight time of the upstream and downstream of the temperature range, Δt i For [T i , T i+1 ] Absolute flight time correction value for the temperature range; Step 2: According to Δt i With v(T i ) to obtain the actual sound path length. The ratio of the actual sound path length to the designed sound path length is the sound path length correction coefficient k. i ; Step 3, with t i -Δt i -k i In the form of, the above values are organized into a correction table and stored.
