A temperature compensation method and device for ultrasonic measurement
By monitoring the temperature of the transducer and cavity circuit board of the ultrasonic measurement equipment, combined with temperature difference calculation, and cyclically update the compensation value, the problem of low accuracy of ultrasonic measurement results in the prior art is solved, and a more accurate temperature compensation effect is achieved.
Patent Information
- Application Number
- CN202510726363.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2045-06-03
AI Technical Summary
In the existing ultrasonic measurement technology, when temperature compensation is only based on the transducer temperature, the ultrasonic working environment temperature cannot be accurately reflected, resulting in a decrease in the accuracy of the measurement results.
By monitoring the transducer temperature and cavity circuit board temperature of the ultrasonic measurement device, combining the target temperature difference and calculation factors, the expected compensation value is determined, and the current compensation value is updated by cycles, the transducer temperature is corrected for temperature compensation.
The accuracy of ultrasonic measurement results is improved, and the ultrasonic working environment temperature is accurately characterized by comprehensively considering the temperature changes of the transducer and cavity circuit board, thus improving the accuracy of the measurement results.
Smart Images

Figure CN120232994B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of ultrasonic measurement, and in particular to a temperature compensation method and device for ultrasonic measurement. Background Art
[0002] Ultrasonic measurement uses the propagation properties of ultrasound waves through matter to obtain information about the material. For example, in material testing, ultrasonic measurement technology can be used to determine properties such as density and elastic modulus.
[0003] In ultrasonic measurement, it's necessary to determine the propagation velocity and attenuation coefficient of ultrasound in a material in order to accurately calculate the properties and parameters of the object being measured. The propagation velocity refers to the distance ultrasound travels per unit time within a material, while the attenuation coefficient indicates the degree of energy attenuation as the ultrasound propagates through the material. Due to temperature, the propagation velocity and attenuation coefficient of ultrasound are susceptible to variations. Therefore, when using an ultrasonic transducer for ultrasonic measurement, temperature compensation is generally required for the measurement results.
[0004] The principle of temperature compensation is to correct measurement results based on the effect of temperature on ultrasonic velocity and attenuation coefficient, resulting in more accurate results. Accurately determining the ultrasonic operating environment temperature for temperature compensation is crucial for optimizing ultrasonic measurement solutions in various practical applications. Summary of the Invention
[0005] In view of this, one or more embodiments of the present disclosure provide a temperature compensation method and device for ultrasonic measurement, which can accurately determine the ultrasonic working environment temperature for temperature compensation, optimize the ultrasonic measurement scheme, and improve the accuracy of ultrasonic measurement results.
[0006] In a first aspect, the present disclosure provides a temperature compensation method for ultrasonic measurement, the method comprising: obtaining transducer temperature data and cavity temperature data of an ultrasonic measuring device, the transducer temperature data being obtained by monitoring an ultrasonic transducer included in the ultrasonic measuring device, and the cavity temperature data being obtained by monitoring a cavity circuit board of the ultrasonic measuring device; determining an expected compensation value based on a target temperature difference between a current cavity temperature and a current transducer temperature; obtaining a current compensation value, and updating the current compensation value based on a comparison result between the expected compensation value and the current compensation value; correcting the current transducer temperature based on the updated current compensation value, and performing temperature compensation on the measurement result of the ultrasonic measuring device using the corrected temperature of the current transducer temperature.
[0007] In a second aspect, the present disclosure provides a temperature compensation device for ultrasonic measurement, the device comprising: a data acquisition unit, for acquiring transducer temperature data and cavity temperature data of an ultrasonic measuring device, the transducer temperature data being acquired by monitoring an ultrasonic transducer included in the ultrasonic measuring device, and the cavity temperature data being acquired by monitoring a cavity circuit board of the ultrasonic measuring device; a first calculation unit, for determining an expected compensation value based on a target temperature difference between a current cavity temperature and a current transducer temperature; a second calculation unit, for acquiring a current compensation value, and updating the current compensation value based on a comparison result between the expected compensation value and the current compensation value; a temperature compensation unit, for correcting the current transducer temperature based on the updated current compensation value, and performing temperature compensation on the measurement result of the ultrasonic measuring device using the corrected temperature of the current transducer temperature.
[0008] The technical solutions provided by one or more embodiments of the present disclosure monitor not only the temperature of the ultrasonic transducer included in an ultrasonic measuring device, but also the temperature of the circuit board within the cavity of the ultrasonic measuring device. This allows for determining a temperature compensation value and correcting the transducer temperature. This corrected temperature can more accurately characterize the ultrasonic operating environment temperature, enabling more precise temperature compensation of the ultrasonic measuring device's measurement results. Compared to existing solutions that perform temperature compensation based solely on transducer temperature, the ultrasonic measurement results obtained with the disclosed technical solutions significantly improve accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The features and advantages of the various embodiments of the present disclosure will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present disclosure in any way. In the accompanying drawings:
[0010] Figure 1 A schematic diagram showing the steps of a temperature compensation method for ultrasonic measurement in one embodiment of the present disclosure is shown;
[0011] Figure 2 A schematic diagram showing the time variation of the target temperature difference in one embodiment of the present disclosure is shown;
[0012] Figure 3 A schematic diagram showing the application effect of a temperature compensation method for ultrasonic measurement in one embodiment of the present disclosure is shown;
[0013] Figure 4 A schematic diagram of the working process of a temperature compensation system for ultrasonic measurement in one embodiment of the present disclosure is shown;
[0014] Figure 5 A schematic diagram of the functional modules of a temperature compensation device for ultrasonic measurement in one embodiment of the present disclosure is shown;
[0015] Figure 6 A schematic structural diagram of an electronic device in one embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0016] To make the purpose, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0017] Related technologies: Temperature is one of the main factors affecting the propagation speed and attenuation coefficient of ultrasound. When the temperature changes, the propagation speed of ultrasound in a substance will change. Specifically, as the temperature increases, the thermal motion of the molecules in the substance intensifies, and the interaction forces between the molecules weaken, thereby increasing the propagation speed of ultrasound in the substance. Conversely, as the temperature decreases, the thermal motion of the molecules in the substance weakens, and the interaction forces between the molecules strengthen, thereby slowing the propagation speed of ultrasound in the substance. In addition, as the temperature increases, the movement of the molecules in the substance causes the sound wave energy to be converted into heat energy, thereby increasing the degree of ultrasound attenuation, that is, the attenuation coefficient increases.
[0018] Related technologies: Some temperature compensation schemes for ultrasonic measurement use a temperature sensor installed at the ultrasonic transducer to detect and obtain the transducer temperature (equivalent to the air temperature), and regard the transducer temperature as the ultrasonic working environment temperature to perform temperature compensation on the ultrasonic measurement results. However, in actual use, various types of ultrasonic measurement equipment usually include hardware electronic circuits in addition to ultrasonic transducers. This hardware electronic circuit can be responsible for controlling the transmission and reception of the ultrasonic transducer and processing the received signals. The hardware electronic circuit may have components that heat up, causing the ultrasonic working environment temperature to change accordingly. In this scenario, if temperature compensation is performed only based on the transducer temperature, the obtained ultrasonic measurement results are prone to reduced accuracy.
[0019] In view of this, the temperature compensation method for ultrasonic measurement provided in one or more embodiments of the present disclosure can accurately determine the ultrasonic working environment temperature used for temperature compensation, optimize the ultrasonic measurement scheme, and improve the accuracy of the ultrasonic measurement results.
[0020] See also Figure 1 , a temperature compensation method for ultrasonic measurement provided by one embodiment of the present disclosure may include the following steps.
[0021] S1: Acquire transducer temperature data and cavity temperature data of an ultrasonic measuring device, wherein the transducer temperature data is obtained by monitoring an ultrasonic transducer included in the ultrasonic measuring device, and the cavity temperature data is obtained by monitoring a cavity circuit board of the ultrasonic measuring device.
[0022] In this implementation, after acquiring transducer and cavity temperature data over a specific historical period (e.g., five minutes, ten minutes, or one hour), a comprehensive calculation can be performed to accurately reflect the current ultrasonic operating environment temperature. This takes into account both the overall impact of transducer temperature (equivalent to air temperature) on the ultrasonic operating environment temperature and the impact of temperature changes caused by heating of the cavity circuit board.
[0023] In this embodiment, the ultrasonic measuring equipment may include but is not limited to ultrasonic liquid level meter, ultrasonic level gauge, etc.
[0024] S2: Determine an expected compensation value based on a target temperature difference between the current cavity temperature and the current transducer temperature.
[0025] In this embodiment, if the target temperature difference is less than the first temperature, the expected compensation value is set to zero; if the target temperature difference is greater than the first temperature and less than the second temperature, the expected compensation value is determined based on the product of the target temperature difference and a first calculation factor; if the target temperature difference is greater than the second temperature, the expected compensation value is determined based on the product of the target temperature difference and a second calculation factor.
[0026] Preferably, the first temperature may be 4 degrees Celsius, the second temperature may be 7.2 degrees Celsius, the first calculation factor may be 0.625, and the second calculation factor may be 1 / 3.6.
[0027] In an actual application example, the expected compensation value is determined based on the product of the target temperature difference and the first calculation factor. The specific formula may be: expected compensation value = 0.625 * target temperature difference - 2.5.
[0028] In an actual application example, the expected compensation value is determined based on the product of the target temperature difference and the second calculation factor. The specific formula may be: expected compensation value=target temperature difference / 3.6.
[0029] It should be noted that the current cavity temperature is usually higher than the current transducer temperature, and the target temperature difference is obtained by subtracting the current transducer temperature from the current cavity temperature, so the value of the target temperature difference is generally a positive number.
[0030] In some embodiments, after determining the expected compensation value, it may be further determined whether the expected compensation value exceeds a limit. If the expected compensation value exceeds a limit, it may be limited to a preset compensation interval to prevent overcompensation or error accumulation, thereby avoiding reducing the accuracy of the ultrasonic measurement result.
[0031] Specifically, if the expected compensation value is greater than the expected compensation upper limit, the expected compensation value is set to the expected compensation upper limit; if the expected compensation value is less than the expected compensation lower limit, the expected compensation value is set to the expected compensation lower limit. A preferred value for the expected compensation upper limit is 2.5, and a preferred value for the expected compensation lower limit is 0.
[0032] S3: Acquire a current compensation value, and update the current compensation value according to a comparison result between the expected compensation value and the current compensation value.
[0033] In this embodiment, the current compensation value is an iteratively updated value as the steps are repeated. The current compensation value obtained at the end of the previous cycle can be used as the initial current compensation value in the current cycle. At the beginning of the first cycle, the initial value of the current compensation value can be set to 0.
[0034] In this embodiment, if the target difference between the expected compensation value and the current compensation value falls within a preset difference interval, the expected compensation value is determined as the current compensation value; if the target difference exceeds the preset difference interval and the current compensation value is less than the expected compensation value, then based on the first change value of the transducer temperature data within the target reference period, it is judged whether the ultrasonic transducer is in a temperature rising state, and based on the first rising judgment result, the current compensation value is updated; if the target difference exceeds the preset difference interval and the current compensation value is greater than the expected compensation value, then based on the first change value of the transducer temperature data within the target reference period, it is judged whether the ultrasonic transducer is in a temperature falling state, and based on the first falling judgment result, the current compensation value is updated.
[0035] Specifically, if the target difference falls within a preset difference range (for example, the target difference is between -0.02 and 0.02, which means the absolute difference between the expected compensation value and the current compensation value is less than 0.02), it indicates that the expected compensation value and the current compensation value are substantially consistent. In this case, the expected compensation value can be determined as the current compensation value.
[0036] If the target difference exceeds the preset difference range, it means that there is a significant difference between the expected compensation value and the current compensation value. In this case, further classification and discussion is required based on the relationship between the current compensation value and the expected compensation value.
[0037] When the current compensation value is less than the expected compensation value, the current compensation value may require incremental processing. Whether the current compensation value requires incremental processing, as well as the incremental value of the incremental processing, can be determined based on whether the ultrasonic transducer is experiencing a temperature rise. Whether the change in transducer temperature data (i.e., the first change value) within a target reference period (e.g., three minutes) exceeds a critical rise value (e.g., 0.05) can be used to determine whether the ultrasonic transducer is experiencing a temperature rise.
[0038] If the current compensation value is greater than the expected compensation value, the current compensation value may need to be reduced. Whether the current compensation value should be reduced, and the reduction value, can be determined based on whether the ultrasonic transducer is experiencing a temperature drop. Whether the change in transducer temperature data (i.e., the first change value) within the target reference period is below a critical drop value (e.g., -0.05) can be used to determine whether the ultrasonic transducer is experiencing a temperature drop.
[0039] In some practical application examples, the target reference period is preferably five minutes, the rising threshold is preferably 0.1, and the falling threshold is preferably -0.1.
[0040] In some embodiments, updating the current compensation value based on the first rising judgment result includes: if the ultrasonic transducer is in a temperature rising state, increasing the current compensation value by the transducer temperature rising rate value; if the ultrasonic transducer is not in a temperature rising state, judging whether the cavity circuit board is in a rapid temperature rising state according to the second change value of the cavity temperature data within the target reference period, and updating the current compensation value based on the second rising judgment result.
[0041] Specifically, if the ultrasonic transducer is experiencing a temperature rise, the current compensation value is increased by the transducer temperature rise rate. This rate is calculated by calculating the transducer temperature change per unit time (e.g., average per minute) within a target reference period. If the ultrasonic transducer is not experiencing a temperature rise, the current compensation value update rule can be further categorized and discussed based on whether the cavity circuit board is experiencing a rapid temperature rise.
[0042] Whether the cavity circuit board is in a rapid temperature rise state can be determined based on whether the change value of the cavity temperature data within the target reference period (i.e., the second change value) is higher than a rapid temperature rise threshold value (e.g., 0.25). The rapid temperature rise threshold value can preferably be 0.3.
[0043] In some embodiments, updating the current compensation value based on the second rising determination result includes:
[0044] If the cavity circuit board is in a state of rapid temperature rise, determining whether the first change value is greater than zero; if the first change value is greater than zero, increasing the current compensation value by the transducer temperature rise rate value; if the first change value is not greater than zero, maintaining the current compensation value unchanged;
[0045] If the cavity circuit board is not in a state of rapid temperature rise, determining whether the first compensation reference value is less than a first reference threshold; if the first compensation reference value is less than the first reference threshold, increasing the first compensation reference value to the first reference threshold, and increasing the current compensation value by the first compensation reference value; if the first compensation reference value is not less than the first reference threshold, increasing the current compensation value by the first compensation reference value;
[0046] The first compensation reference value is determined based on a product of the target difference and a first coefficient.
[0047] In a practical application example, the first coefficient is preferably 1 / 30, the first compensation reference value is one thirtieth of the target difference, and the first reference threshold is preferably 0.02.
[0048] In some embodiments, updating the current compensation value based on the first decrease judgment result includes: if the ultrasonic transducer is in a temperature decrease state, reducing the current compensation value by the transducer temperature decrease rate value; if the ultrasonic transducer is not in a temperature decrease state, judging whether the cavity circuit board is in a rapid temperature decrease state according to the second change value of the cavity temperature data within the target reference period, and updating the current compensation value based on the second decrease judgment result.
[0049] Specifically, if the ultrasonic transducer is experiencing a temperature drop, the current compensation value can be reduced by the transducer temperature drop rate. This rate is calculated by calculating the transducer temperature change per unit time (e.g., average per minute) within a target reference period. If the ultrasonic transducer is not experiencing a temperature drop, the current compensation value update rule can be further categorized and discussed based on whether the cavity circuit board is experiencing a rapid temperature drop.
[0050] Whether the cavity circuit board is in a rapid temperature drop state can be determined based on whether the change value of the cavity temperature data within the target reference period (i.e., the second change value) is lower than a rapid drop threshold value (e.g., -0.25). The rapid drop threshold value can preferably be -0.3.
[0051] In some embodiments, updating the current compensation value based on the second decrease determination result includes:
[0052] If the cavity circuit board is in a state of rapid temperature drop, determining whether the first change value is less than zero; if the first change value is less than zero, reducing the current compensation value by the transducer temperature drop rate value; if the second change value is not less than zero, maintaining the current compensation value unchanged;
[0053] If the cavity circuit board is not in a state of rapid temperature drop, determining whether the second compensation reference value is greater than a second reference threshold; if the second compensation reference value is greater than the second reference threshold, reducing the second compensation reference value to the second reference threshold and increasing the current compensation value by the second compensation reference value; if the second compensation reference value is not less than the second reference threshold, increasing the current compensation value by the second compensation reference value;
[0054] The second compensation reference value is determined based on a product of the target difference and a second coefficient.
[0055] In a practical application example, the second coefficient is preferably 1 / 30, the second compensation reference value is one thirtieth of the target difference value, and the second reference threshold is preferably -0.02.
[0056] In some embodiments, after updating the current compensation value, it can be determined whether the current compensation value is greater than the expected compensation value. If the current compensation value is greater than the expected compensation value, indicating that the current compensation value exceeds the limit, the expected compensation value can be used as the current compensation value to implement compensation value calibration, prevent overcompensation or error accumulation, and avoid reducing the accuracy of the ultrasonic measurement results.
[0057] S4: Based on the updated current compensation value, correct the current transducer temperature, and use the corrected temperature of the current transducer temperature to perform temperature compensation on the measurement result of the ultrasonic measuring device.
[0058] In this embodiment, the transducer temperature data is corrected using the cyclically updated current compensation value to obtain corrected temperature data. This corrected temperature data is now closer to the actual operating temperature of the ultrasonic wave. By using this corrected temperature data, the ultrasonic measurement results are temperature compensated, resulting in more accurate final ultrasonic measurement results.
[0059] In a practical application example, the implementation effect of a temperature compensation method for ultrasonic measurement can be seen in Figure 2 and Figure 3 .
[0060] Figure 2 It represents the time variation curve of the target temperature difference in the actual application scenario. Figure 3The blue curve in the figure represents the change of transducer temperature data over time, the green curve represents the change of corrected temperature data over time, and the yellow curve represents the change of the actual working environment temperature of the ultrasonic wave over time. The corrected temperature data can be obtained by correcting and calculating the transducer temperature data using the current compensation value of step S4. It can be seen that the time curve trend of the corrected temperature data is closer to the time curve trend of the actual working environment temperature of the ultrasonic wave, and the deviation between the two is more stable. The deviation can be further reduced by subsequent instrument calibration and other methods. By performing temperature compensation calculations on the corrected temperature data, the obtained ultrasonic measurement results can be more accurate.
[0061] In some embodiments, the updated current compensation value can be directly used as a parameter to perform temperature compensation on the measurement results of the ultrasonic measurement device. For example, the ultrasonic measurement results can be first temperature compensated using the transducer temperature data, and then the ultrasonic measurement results can be secondarily temperature compensated using the current compensation value. This second temperature compensation can further optimize the ultrasonic measurement results after the first temperature compensation, resulting in a more accurate final ultrasonic measurement result.
[0062] See also Figure 4 , a temperature compensation system for an ultrasonic transducer provided in one embodiment of the present disclosure may include the following process steps.
[0063] Step 1: Obtain the transducer temperature data and cavity temperature data for the past five minutes.
[0064] Step 2: Determine the expected compensation value based on the target temperature difference between the current cavity temperature and the current transducer temperature;
[0065] Step 2.1: Calculate the target temperature difference between the current cavity temperature and the current transducer temperature, and set the expected compensation value to zero;
[0066] Step 2.1.1: If the target temperature difference is less than 4 degrees, the expected compensation value is 0;
[0067] Step 2.1.2: If the target temperature difference is greater than 4 degrees and less than 7.2 degrees, the expected compensation value is equal to 0.625 times the target temperature difference minus 2.5;
[0068] Step 2.1.3: If the target temperature difference is greater than 7.2 degrees, the expected compensation value is equal to the target temperature difference divided by 3.6;
[0069] Step 2.2: Determine whether the expected compensation value is greater than 2.5. If so, set the expected compensation value to 2.5.
[0070] Step 2.3: Determine whether the expected compensation value is less than 0. If so, set the expected compensation value to 0.
[0071] Step 3: Determine the relationship between the current compensation value and the expected compensation value;
[0072] Step 3.1: If the two values are essentially consistent (for example, the absolute value of the difference between the two values is less than 0.02), the expected compensation value is used as the current compensation value;
[0073] Step 3.2: If there is a significant difference between the current compensation value and the expected compensation value (for example, the absolute value of the difference between the two values is greater than or equal to 0.02), and the current compensation value is less than the expected compensation value, then 1 / 30 of the difference between the expected compensation value and the current compensation value is used as the first compensation reference value;
[0074] Step 3.2.1: Determine whether the transducer temperature is rising (for example, determine whether the transducer temperature change value in the past five minutes is greater than 0.1);
[0075] Step 3.2.1.1: If yes, increase the current compensation value by the transducer temperature rise rate value;
[0076] Step 3.2.1.2: If not, determine whether the cavity temperature is rising rapidly (for example, determine whether the cavity temperature change value in the past five minutes is greater than 0.3);
[0077] Step 3.2.1.2.1: If yes, determine whether the transducer temperature change value is greater than 0;
[0078] Step 3.2.1.2.1.1: If yes, increase the current compensation value by the transducer temperature rise rate value;
[0079] Step 3.2.1.2.1.2: If not, keep the current compensation value unchanged;
[0080] Step 3.2.1.2.2: If not, determine whether the first compensation reference value is less than 0.02;
[0081] Step 3.2.1.2.2.1: If yes, increase the compensation reference value to 0.02 and increase the current compensation value by the compensation reference value;
[0082] Step 3.2.1.2.2.2: If not, directly increase the current compensation value by the first compensation reference value;
[0083] Step 3.2.2: Determine whether compensation exceeds the limit (i.e., determine whether the current compensation value is greater than the expected compensation value);
[0084] Step 3.2.2.1: If yes, use the expected compensation value as the current compensation value;
[0085] Step 3.3: If there is a significant difference between the current compensation value and the expected compensation value (for example, the absolute value of the difference between the two values is greater than or equal to 0.02), and the current compensation value is greater than the expected compensation value, then 1 / 30 of the difference between the expected compensation value and the current compensation value is used as the second compensation reference value;
[0086] Step 3.3.1: Determine whether the transducer temperature is decreasing (for example, determine whether the transducer temperature change value in the past five minutes is less than -0.1);
[0087] Step 3.3.1.1: If yes, reduce the current compensation value by the transducer temperature drop rate value;
[0088] Step 3.3.1.2: If not, determine whether the cavity temperature is rapidly decreasing (for example, determine whether the cavity temperature change value in the past five minutes is less than -0.3);
[0089] Step 3.3.1.2.1: If yes, determine whether the transducer temperature change value is less than 0;
[0090] Step 3.3.1.2.1.1: If yes, reduce the current compensation value by the transducer temperature drop rate value;
[0091] Step 3.3.1.2.1.2: If not, keep the current compensation value unchanged;
[0092] Step 3.3.1.2.2: If not, determine whether the second compensation reference value is greater than -0.02;
[0093] Step 3.3.1.2.2.1: If yes, reduce the second compensation reference value to -0.02 and increase the current compensation value by the second compensation reference value;
[0094] Step 3.3.1.2.2.2: If not, directly increase the current compensation value by the second compensation reference value;
[0095] Step 3.3.2: Determine whether compensation exceeds the limit (i.e., determine whether the current compensation value is greater than the expected compensation value);
[0096] Step 3.3.2.1: If yes, use the expected compensation value as the current compensation value.
[0097] Step 4: Use the current compensation value as the temperature parameter for temperature compensation.
[0098] During steps 1 through 4 above, the current temperature compensation value remains constant throughout the loop. The current compensation value from the previous loop will also be used as the current compensation value for the next loop. When starting the first loop, the initial value of the current temperature compensation value can be set to 0.
[0099] The technical solutions provided by one or more embodiments of the present disclosure monitor not only the temperature of the ultrasonic transducer included in an ultrasonic measuring device, but also the temperature of the circuit board within the cavity of the ultrasonic measuring device. This allows for determining a temperature compensation value and correcting the transducer temperature. This corrected temperature can more accurately characterize the ultrasonic operating environment temperature, enabling more precise temperature compensation of the ultrasonic measuring device's measurement results. Compared to existing solutions that perform temperature compensation based solely on transducer temperature, the ultrasonic measurement results obtained with the disclosed technical solutions significantly improve accuracy.
[0100] See also Figure 5 The present disclosure further provides a temperature compensation device for ultrasonic measurement, the device comprising:
[0101] A data acquisition unit 100 is configured to acquire transducer temperature data and cavity temperature data of an ultrasonic measuring device, wherein the transducer temperature data is acquired by monitoring an ultrasonic transducer included in the ultrasonic measuring device, and the cavity temperature data is acquired by monitoring a cavity circuit board of the ultrasonic measuring device;
[0102] a first calculation unit 200 for determining an expected compensation value according to a target temperature difference between a current cavity temperature and a current transducer temperature;
[0103] a second calculation unit 300, configured to obtain a current compensation value and update the current compensation value according to a comparison result between the expected compensation value and the current compensation value;
[0104] The temperature compensation unit 400 is configured to correct the current transducer temperature based on the updated current compensation value, and perform temperature compensation on the measurement result of the ultrasonic measuring device using the corrected temperature of the current transducer temperature.
[0105] In one embodiment, the first calculation unit 200 is specifically used to, if the target temperature difference is less than the first temperature, set the expected compensation value to zero; if the target temperature difference is greater than the first temperature and less than the second temperature, determine the expected compensation value based on the product of the target temperature difference and a first calculation factor; if the target temperature difference is greater than the second temperature, determine the expected compensation value based on the product of the target temperature difference and a second calculation factor.
[0106] In one embodiment, after determining the expected compensation value, the first calculation unit 200 is further used to set the expected compensation value to the expected compensation upper limit if the expected compensation value is greater than the expected compensation upper limit; and set the expected compensation value to the expected compensation lower limit if the expected compensation value is less than the expected compensation lower limit.
[0107] In one embodiment, the second calculation unit 300 is specifically used to, if the target difference between the expected compensation value and the current compensation value falls within a preset difference interval, determine the expected compensation value as the current compensation value; if the target difference exceeds the preset difference interval and the current compensation value is less than the expected compensation value, judge whether the ultrasonic transducer is in a temperature rising state based on the first change value of the transducer temperature data within the target reference period, and update the current compensation value based on the first rise judgment result; if the target difference exceeds the preset difference interval and the current compensation value is greater than the expected compensation value, judge whether the ultrasonic transducer is in a temperature falling state based on the first change value, and update the current compensation value based on the first fall judgment result.
[0108] In one embodiment, updating the current compensation value based on the first rising judgment result includes: if the ultrasonic transducer is in a temperature rising state, increasing the current compensation value by the transducer temperature rising rate value; if the ultrasonic transducer is not in a temperature rising state, judging whether the cavity circuit board is in a rapid temperature rising state according to the second change value of the cavity temperature data within the target reference period, and updating the current compensation value based on the second rising judgment result.
[0109] In one embodiment, updating the current compensation value based on the second rise judgment result includes: if the cavity circuit board is in a rapidly rising temperature state, determining whether the first change value is greater than zero; if the first change value is greater than zero, increasing the current compensation value by the transducer temperature rise rate value; if the first change value is not greater than zero, maintaining the current compensation value unchanged;
[0110] If the cavity circuit board is not in a state of rapid temperature rise, determining whether the first compensation reference value is less than a first reference threshold; if the first compensation reference value is less than the first reference threshold, increasing the first compensation reference value to the first reference threshold, and increasing the current compensation value by the first compensation reference value; if the first compensation reference value is not less than the first reference threshold, increasing the current compensation value by the first compensation reference value;
[0111] The first compensation reference value is determined based on a product of the target difference and a first coefficient.
[0112] In one embodiment, updating the current compensation value based on the first decrease judgment result includes: if the ultrasonic transducer is in a temperature decrease state, reducing the current compensation value by the transducer temperature decrease rate value; if the ultrasonic transducer is not in a temperature decrease state, judging whether the cavity circuit board is in a rapid temperature decrease state according to the second change value of the cavity temperature data within the target reference period, and updating the current compensation value based on the second decrease judgment result.
[0113] In one embodiment, if the cavity circuit board is in a state of rapid temperature drop, it is determined whether the first change value is less than zero; if the first change value is less than zero, the current compensation value is reduced by the transducer temperature drop rate value; if the first change value is not less than zero, the current compensation value is maintained unchanged;
[0114] If the cavity circuit board is not in a state of rapid temperature drop, determining whether the second compensation reference value is greater than a second reference threshold; if the second compensation reference value is greater than the second reference threshold, reducing the second compensation reference value to the second reference threshold and increasing the current compensation value by the second compensation reference value; if the second compensation reference value is not less than the second reference threshold, increasing the current compensation value by the second compensation reference value;
[0115] The second compensation reference value is determined based on a product of the target difference and a second coefficient.
[0116] In one embodiment, after the current compensation value is updated, the second calculation unit 300 is further used to determine whether the current compensation value is greater than the expected compensation value; if the current compensation value is greater than the expected compensation value, the expected compensation value is used as the current compensation value.
[0117] The various units described in the above embodiments can be implemented by computer chips or products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0118] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0119] See also Figure 6The present disclosure also provides an electronic device, which includes a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above-mentioned temperature compensation method for ultrasonic measurement is implemented.
[0120] The present disclosure also provides a computer-readable storage medium for storing a computer program. When the computer program is executed by a processor, the temperature compensation method for ultrasonic measurement is implemented.
[0121] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0122] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as the program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor executes the non-transitory software programs, instructions, and modules stored in the memory to perform various processor functions and data processing, thereby implementing the methods in the aforementioned method embodiments.
[0123] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely located relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD). The storage medium can also include a combination of the above-mentioned types of memory.
[0125] The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the device, equipment, and storage medium embodiments are generally similar to the method embodiments, so their descriptions are relatively simplified. For relevant portions, refer to the descriptions of the method embodiments.
[0126] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
[0127] Although the embodiments of the present disclosure have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A temperature compensation method for ultrasonic measurement, characterized in that: The method comprises: Acquiring transducer temperature data and cavity temperature data of an ultrasonic measuring device, wherein the transducer temperature data is obtained by monitoring an ultrasonic transducer included in the ultrasonic measuring device, and the cavity temperature data is obtained by monitoring a cavity circuit board of the ultrasonic measuring device; determining an expected compensation value based on a target temperature difference between a current cavity temperature and a current transducer temperature; Acquiring a current compensation value, and updating the current compensation value according to a comparison result between the expected compensation value and the current compensation value; Correcting the current transducer temperature based on the updated current compensation value, and performing temperature compensation on a measurement result of the ultrasonic measuring device using the corrected temperature of the current transducer temperature; The updating of the current compensation value according to the comparison result between the expected compensation value and the current compensation value includes: If a target difference between the expected compensation value and the current compensation value falls within a preset difference interval, determining the expected compensation value as the current compensation value; If the target difference exceeds the preset difference interval and the current compensation value is less than the expected compensation value, determining whether the ultrasonic transducer is in a temperature rising state according to a first change value of the transducer temperature data within a target reference period, and updating the current compensation value based on the first rising determination result; If the target difference exceeds the preset difference range and the current compensation value is greater than the expected compensation value, it is determined whether the ultrasonic transducer is in a temperature drop state according to the first change value, and the current compensation value is updated based on the first drop judgment result.
2. The method according to claim 1, characterized in that The determining of the expected compensation value according to the target temperature difference between the current cavity temperature and the current transducer temperature includes: If the target temperature difference is less than the first temperature, setting the expected compensation value to zero; If the target temperature difference is greater than the first temperature and less than the second temperature, determining the expected compensation value based on a product of the target temperature difference and a first calculation factor; If the target temperature difference is greater than the second temperature, the expected compensation value is determined based on a product of the target temperature difference and a second calculation factor.
3. The method according to claim 2, characterized in that After determining the expected compensation value, the method further includes: If the expected compensation value is greater than the expected compensation upper limit, setting the expected compensation value as the expected compensation upper limit; If the expected compensation value is less than the expected compensation lower limit, the expected compensation value is set as the expected compensation lower limit.
4. The method according to claim 1, wherein The updating of the current compensation value based on the first rising judgment result includes: If the ultrasonic transducer is in a temperature rising state, the current compensation value is increased by the transducer temperature rising rate value; If the ultrasonic transducer is not in a temperature rising state, whether the cavity circuit board is in a rapid temperature rising state is judged according to the second change value of the cavity temperature data within the target reference period, and the current compensation value is updated based on the second rise judgment result.
5. The method according to claim 4, characterized in that The updating of the current compensation value based on the second rising judgment result includes: If the cavity circuit board is in a state of rapid temperature rise, determining whether the first change value is greater than zero; if the first change value is greater than zero, increasing the current compensation value by the transducer temperature rise rate value; if the first change value is not greater than zero, maintaining the current compensation value unchanged; If the cavity circuit board is not in a state of rapid temperature rise, determining whether the first compensation reference value is less than a first reference threshold; if the first compensation reference value is less than the first reference threshold, increasing the first compensation reference value to the first reference threshold, and increasing the current compensation value by the first compensation reference value; if the first compensation reference value is not less than the first reference threshold, increasing the current compensation value by the first compensation reference value; The first compensation reference value is determined based on a product of the target difference and a first coefficient.
6. The method according to claim 1, characterized in that The updating of the current compensation value based on the first drop determination result includes: If the ultrasonic transducer is in a temperature-decreasing state, reducing the current compensation value by the transducer temperature-decreasing rate value; If the ultrasonic transducer is not in a temperature drop state, it is determined whether the cavity circuit board is in a rapid temperature drop state according to a second change value of the cavity temperature data within the target reference period, and the current compensation value is updated based on the second drop determination result.
7. The method according to claim 6, characterized in that The updating of the current compensation value based on the second decrease judgment result includes: If the cavity circuit board is in a state of rapid temperature drop, determining whether the first change value is less than zero; if the first change value is less than zero, reducing the current compensation value by the transducer temperature drop rate value; if the first change value is not less than zero, maintaining the current compensation value unchanged; If the cavity circuit board is not in a state of rapid temperature drop, determining whether the second compensation reference value is greater than a second reference threshold; if the second compensation reference value is greater than the second reference threshold, reducing the second compensation reference value to the second reference threshold and increasing the current compensation value by the second compensation reference value; if the second compensation reference value is not less than the second reference threshold, increasing the current compensation value by the second compensation reference value; The second compensation reference value is determined based on a product of the target difference and a second coefficient.
8. The method according to any one of claims 4 or 6, characterized in that: After updating the current compensation value, the method further includes: Determining whether the current compensation value is greater than the expected compensation value; If the current compensation value is greater than the expected compensation value, the expected compensation value is used as the current compensation value.
9. A temperature compensation device for ultrasonic measurement, characterized in that: The device comprises: a data acquisition unit, configured to acquire transducer temperature data and cavity temperature data of an ultrasonic measuring device, wherein the transducer temperature data is acquired by monitoring an ultrasonic transducer included in the ultrasonic measuring device, and the cavity temperature data is acquired by monitoring a cavity circuit board of the ultrasonic measuring device; a first calculation unit, configured to determine an expected compensation value according to a target temperature difference between a current cavity temperature and a current transducer temperature; a second calculation unit, configured to obtain a current compensation value and update the current compensation value according to a comparison result between the expected compensation value and the current compensation value; a temperature compensation unit, configured to correct the current transducer temperature based on the updated current compensation value, and perform temperature compensation on a measurement result of the ultrasonic measuring device using the corrected temperature of the current transducer temperature; Wherein, updating the current compensation value according to the comparison result between the expected compensation value and the current compensation value includes: If a target difference between the expected compensation value and the current compensation value falls within a preset difference interval, determining the expected compensation value as the current compensation value; If the target difference exceeds the preset difference interval and the current compensation value is less than the expected compensation value, determining whether the ultrasonic transducer is in a temperature rising state according to a first change value of the transducer temperature data within a target reference period, and updating the current compensation value based on the first rising determination result; If the target difference exceeds the preset difference range and the current compensation value is greater than the expected compensation value, it is determined whether the ultrasonic transducer is in a temperature drop state according to the first change value, and the current compensation value is updated based on the first drop judgment result.
Citation Information
Patent Citations
Ultrasonic sensor temperature confirmation method
CN119291661A
Ultrasonic sensor gain compensation method
CN119471653A