A method and system for calibrating and outputting measurement results of a liquid level meter

Error capture and statistical value calculation of the liquid level meter are carried out through multiple standard liquid levels, and the error compensation and reading output model are constructed, which solves the problem of poor sample representativeness in the liquid level meter calibration and achieves higher calibration accuracy and reliability. .

CN118467988BActive Publication Date: 2024-09-20广东中拓华盛信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410922533.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-20
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Due to the inconsistent length of sample data in existing liquid level gauge calibration technology, the representativeness of model training is poor, which affects the accuracy and reliability of calibration results.

Method used

Capture the errors of the liquid level meter to be tested through multiple standard liquid levels, obtain the reading error, and build an error compensation model and a reading output model. Combined with statistical value calculation, a result calibration model is constructed to ensure the representativeness and accuracy of the model training samples.

Benefits of technology

It improves the accuracy and reliability of the calibration of liquid level meter measurement results, reduces the waste of sample data, and enhances the representativeness and calibration effect of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467988B
    Figure CN118467988B
Patent Text Reader

Abstract

The present application discloses a method and system for calibrating and outputting the measurement results of a liquid level meter, and relates to the field of measuring tool calibration technology. The method comprises: using multiple standard liquid levels to capture errors of the liquid level meter to be measured, and obtaining multiple reading errors; using multiple reading errors as learning parameters to perform machine learning, and obtaining an error compensation model; collecting the reading data of the liquid level meter to be measured within several cycles, and performing statistical value calculation on all the reading data; using the calculated statistical values ​​as learning parameters to perform machine learning, and obtaining a reading output model corresponding to the liquid level meter to be measured; using the error compensation model and the reading output model to obtain a result calibration model; when using the liquid level meter to be measured to measure the liquid level, after the reading result corresponding to the liquid level measurement is input into the result calibration model, the result calibration model outputs the calibrated measurement result. The system corresponds to the method. By adopting the present application, the calibration effect of the liquid level meter measurement result can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of measuring tool calibration, and more particularly to the technical field of industrial liquid level meter calibration, and specifically to a method and system for calibrating and outputting measurement results of a liquid level meter. Background Art

[0002] Due to the influence of product quality and usage time, the reading results of the level meter may have large errors. Therefore, in order to ensure the accuracy of measurement, the reading of the level meter needs to be calibrated. The existing method of calibrating the level meter is to collect reading samples of the level meter, then use the conventional machine learning in the industry to build a model, and then calibrate the level meter by predicting the readings through the model. However, since the collected reading samples are usually not of the same sample length (the data collection cycle is not equal), when performing machine learning, only the shortest length sample in a batch of reading samples can be used as a benchmark to intercept other samples, which leads to a waste of sample data. At the same time, it will also affect the authenticity and reliability of the sample data used, thereby ensuring the accuracy of the obtained model.

[0003] Therefore, a more reliable level gauge calibration technology is urgently needed. Summary of the invention

[0004] The purpose of the present application is to provide a method and system for calibrating and outputting measurement results of a liquid level meter, so as to solve the technical problems raised in the above-mentioned background technology.

[0005] To achieve the above objectives, this application discloses the following technical solutions:

[0006] In a first aspect, the present application discloses a method for calibrating the output of measurement results of a liquid level meter, the method comprising the following steps:

[0007] Use multiple standard liquid levels to capture errors of the liquid level meter to be tested, and obtain multiple reading errors accordingly;

[0008] Using a plurality of the reading errors as learning parameters to perform machine learning to obtain an error compensation model;

[0009] Collect the reading data of the liquid level meter to be tested within several cycles, and calculate the statistical values ​​of all the reading data;

[0010] The calculated statistical value is used as a learning parameter for machine learning to obtain a reading output model corresponding to the liquid level meter to be tested;

[0011] Any standard liquid level is input as an input parameter to the reading output model, and the reading output model outputs the corresponding measurement reading. , and obtain the actual reading of the liquid level meter to be tested at the standard liquid level And the corresponding reading error ;

[0012] Calculate reference error , ;

[0013] The reference error is compared with the reading error of the liquid level meter to be measured at the standard liquid level. For comparison, When the reference error , the liquid level value corresponding to the standard liquid level and the measurement readings As learning parameters, machine learning is performed to obtain the result calibration model corresponding to the liquid level meter to be tested; When the reading error , the liquid level value corresponding to the standard liquid level and the measurement readings Perform machine learning as learning parameters to obtain a result calibration model corresponding to the liquid level meter to be tested;

[0014] When the liquid level meter to be measured is used to measure the liquid level, the reading result corresponding to the liquid level measurement is input into the result calibration model, and the result calibration model outputs the calibrated measurement result.

[0015] Preferably, the statistical values ​​include the maximum value, minimum value, mean value, variance, standard deviation, one-quarter median and three-quarter median of all reading data.

[0016] Preferably, the method of using multiple standard liquid levels to capture the error of the liquid level meter to be measured and correspondingly obtaining multiple reading errors specifically includes:

[0017] The liquid level value is measured by using the liquid level meter to be measured Measure the first standard liquid level and obtain the first reading result , get the first reading error , , where the liquid level value Close to the minimum range of the liquid level meter to be measured;

[0018] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the i-th standard liquid level and obtain the i-th reading result , get the error of the i-th reading , ;

[0019] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the Nth standard liquid level and obtain the Nth reading result , get the Nth reading error , , where the liquid level value Close to the maximum range of the liquid level meter to be measured, .

[0020] Preferably, any standard liquid level is input as an input parameter into the reading output model, and the reading output model outputs the corresponding measurement reading. middle, .

[0021] Preferably, the method of using the plurality of reading errors as learning parameters to perform machine learning to obtain an error compensation model specifically includes:

[0022] The errors of the 1st to Nth readings are used as learning parameters for machine learning to obtain an error compensation model.

[0023] Preferably, the method of using the plurality of reading errors as learning parameters to perform machine learning to obtain an error compensation model further comprises:

[0024] The statistical value results of the 1st to Nth reading errors are used as learning parameters for machine learning to optimize the error compensation model.

[0025] Preferably, the statistical value results include the mean, variance, standard deviation, one-quarter median and three-quarter median corresponding to the 1st to Nth reading errors.

[0026] In a second aspect, the present application discloses a system for calibrating and outputting measurement results of a liquid level meter, comprising:

[0027] The first model training module is configured to: use a plurality of reading errors as learning parameters to perform machine learning to obtain an error compensation model, wherein the reading errors are obtained by measuring a plurality of standard liquid levels using a liquid level meter to be measured and correspondingly obtained;

[0028] The second model training module is configured to: use the reading training samples as learning parameters to perform machine learning, and obtain the reading output model corresponding to the liquid level meter to be tested, wherein the reading training samples are obtained by collecting the reading data of the liquid level meter to be tested within a plurality of cycles and performing statistical value calculation on all the reading data;

[0029] The third model training module is configured as follows: using the error compensation model and the reading output model to obtain calibration training samples and then using them as learning parameters for machine learning to obtain a result calibration model corresponding to the liquid level meter to be tested; when using the liquid level meter to be tested to measure the liquid level, after the reading result corresponding to the liquid level measurement is input into the result calibration model, the result calibration model outputs the calibrated measurement result; wherein, the method for obtaining the calibration training samples includes: inputting any standard liquid level as an input parameter into the reading output model, and the reading output model outputs the corresponding measurement reading , and obtain the actual reading of the liquid level meter to be tested at the standard liquid level And the corresponding reading error ; Calculate reference error , ; The reference error is compared with the reading error corresponding to the level gauge to be measured at the standard liquid level For comparison, When the reference error , the liquid level value corresponding to the standard liquid level and the measurement readings As the actual reading The corresponding calibration training samples; when When the reading error , the liquid level value corresponding to the standard liquid level and the measurement readings As the actual reading The corresponding calibration training samples.

[0030] Preferably, the step of obtaining the reading error specifically includes:

[0031] The liquid level value is measured by using the liquid level meter to be measured Measure the first standard liquid level and obtain the first reading result , get the first reading error , , where the liquid level value Close to the minimum range of the liquid level meter to be measured;

[0032] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the i-th standard liquid level and obtain the i-th reading result , get the error of the i-th reading , ;

[0033] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the Nth standard liquid level and obtain the Nth reading result , get the Nth reading error , , where the liquid level value Close to the maximum range of the liquid level meter to be measured, .

[0034] Preferably, the acquisition of the error compensation model further includes:

[0035] The statistical value results of the 1st to Nth reading errors are used as learning parameters for machine learning to optimize the error compensation model.

[0036] Beneficial effect: The present invention provides a method and system for calibrating and outputting the measurement results of a liquid level meter. The method uses a plurality of reading errors of the actual field readings of the liquid level meter to be measured as the first sample for machine learning to construct an error compensation model, and uses the statistical value of the reading data of the liquid level meter to be measured in several use cycles as the second sample for machine learning to construct a reading output model, so that the model training sample is more representative, thereby ensuring the accuracy of the model obtained by machine training. Furthermore, the present invention uses the standard liquid level as the calibration data sample of the reading output model, and cooperates with the output of the error compensation model to compensate the error of the reading output model when treating different measurement targets, and then uses the error compensation situation and the corresponding liquid level data (standard liquid level) as the third sample for machine learning to obtain the corresponding result calibration model of the liquid level meter to be measured, so as to achieve that in actual measurement, according to the input of the field reading results, the result calibration model outputs the corresponding actual measurement result after error compensation, that is, the calibrated measurement result, which has high reliability and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 A flowchart of a method for calibrating and outputting measurement results of a liquid level meter provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0040] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0041] It is known that in actual use, the level meter needs to be calibrated regularly or long-term to ensure the accuracy of the measurement results. As mentioned above, when the calibration model is used for calibration, the representativeness of the conventional training samples is poor, and for different liquid level conditions to be measured, for example, under the influence of aging of accessories and test pressure, the measurement results of the same level meter under different liquid level conditions may have different errors. Therefore, after the calibration model is obtained by using the poorly representative training samples, the reliability and accuracy of the obtained calibration model cannot be guaranteed.

[0042] In this regard, the present embodiment provides a method and system for calibrating and outputting measurement results of a liquid level meter with a more reliable calibration effect, as described in detail below.

[0043] In a first aspect, this embodiment discloses Figure 1 A method for calibrating the output of a measurement result of a liquid level meter is shown, the method comprising the following steps:

[0044] Use multiple standard liquid levels to capture errors of the liquid level meter to be tested, and obtain multiple reading errors accordingly;

[0045] Using a plurality of the reading errors as learning parameters to perform machine learning to obtain an error compensation model;

[0046] Collect the reading data of the liquid level meter to be tested within several cycles, and calculate the statistical values ​​of all the reading data;

[0047] The calculated statistical value is used as a learning parameter for machine learning to obtain a reading output model corresponding to the liquid level meter to be tested;

[0048] Any standard liquid level is input as an input parameter to the reading output model, and the reading output model outputs the corresponding measurement reading. , and obtain the actual reading of the liquid level meter to be tested at the standard liquid level And the corresponding reading error ;

[0049] Calculate reference error , ;

[0050] The reference error is compared with the reading error of the liquid level meter to be measured at the standard liquid level. For comparison, When the reference error , the liquid level value corresponding to the standard liquid level and the measurement readings As learning parameters, machine learning is performed to obtain the result calibration model corresponding to the liquid level meter to be tested; When the reading error , the liquid level value corresponding to the standard liquid level and the measurement readings Perform machine learning as learning parameters to obtain a result calibration model corresponding to the liquid level meter to be tested;

[0051] When the liquid level meter to be measured is used to measure the liquid level, the reading result corresponding to the liquid level measurement is input into the result calibration model, and the result calibration model outputs the calibrated measurement result.

[0052] Based on the above, the method for calibrating and outputting the measurement results of the liquid level meter in this embodiment uses multiple reading errors of the actual field readings of the liquid level meter to be measured as the first sample for machine learning to construct an error compensation model, and uses the statistical value of the reading data of the liquid level meter to be measured in several use cycles as the second sample for machine learning to construct a reading output model, so that the model training sample is more representative, thereby ensuring the accuracy of the model obtained by machine training. Furthermore, the present application uses the standard liquid level as the calibration data sample of the reading output model, and cooperates with the output of the error compensation model to compensate the error of the reading output model when treating different measurement targets, and then uses the error compensation situation and the corresponding liquid level data (standard liquid level) as the third sample for machine learning to obtain the corresponding result calibration model of the liquid level meter to be measured, so as to achieve that in actual measurement, according to the input of the on-site reading results, the result calibration model outputs the corresponding actual measurement result after error compensation, that is, the calibrated measurement result, which has high reliability and accuracy.

[0053] In this embodiment, the statistical value includes the maximum value, minimum value, average value, variance, standard deviation, one-quarter median and three-quarter median of all reading data. The purpose of this is to use the maximum and minimum values ​​to reflect the discreteness of the sample data, and then obtain the average value, variance and standard deviation to obtain the average degree of the sample data, and then obtain the one-quarter median and three-quarter median to obtain the aggregation degree of the sample data, so as to fully reflect the discreteness, average degree and aggregation degree of the sample data through the statistical value characteristics, and to achieve a true and reliable mapping of the sample data, so that the learning parameters corresponding to the reading output model are more representative, thereby ensuring the accuracy and reliability of the calibration of the liquid level meter measurement results using the result calibration model. On the other hand, the traditional time series prediction is converted into a classic machine learning prediction, eliminating the influence of different time intervals, reducing the interpolation error and deletion value information loss in the time series, and only retaining the most core features of the data itself. On the one hand, the data model is simplified, and on the other hand, the latest artificial intelligence algorithm results can be enjoyed.

[0054] In order to detect the errors existing in different ranges of the level meter (the range here refers to the different measurement reading requirements corresponding to the level meter), in this embodiment, the error capture of the level meter to be measured using multiple standard liquid levels is performed, and multiple reading errors are obtained accordingly, specifically including:

[0055] The liquid level value is measured by using the liquid level meter to be measured Measure the first standard liquid level and obtain the first reading result , get the first reading error , , where the liquid level value Close to the minimum range of the liquid level meter to be measured. Generally, the liquid level value Equal to the minimum range of the liquid level meter to be measured;

[0056] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the i-th standard liquid level and obtain the i-th reading result , get the error of the i-th reading , ;

[0057] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the Nth standard liquid level and obtain the Nth reading result , get the Nth reading error , , where the liquid level value Close to the maximum range of the liquid level meter to be measured, , generally, liquid level value It should be noted that, by this, when any standard liquid level is input as an input parameter to the reading output model, the reading output model outputs the corresponding measurement reading. middle, .

[0058] By acquiring the above reading errors, the errors of the liquid level meter to be tested under different reading targets are fully acquired, thereby ensuring the representativeness of the training samples corresponding to the error compensation model. Furthermore, the use of multiple reading errors as learning parameters for machine learning to obtain the error compensation model specifically includes:

[0059] Perform machine learning using the 1st to Nth reading errors as learning parameters to obtain an error compensation model; and,

[0060] The statistical value results of the 1st to Nth reading errors are used as learning parameters for machine learning to optimize the error compensation model. The statistical value results include the mean, variance, standard deviation, one-quarter median and three-quarter median corresponding to the 1st to Nth reading errors.

[0061] In this way, calculating the statistical values ​​of each reading error can further improve the representativeness of the training samples corresponding to the error compensation model, as well as the representativeness of the training samples of the reading output model, ultimately making the obtained calibration model more accurate and reliable, thereby ensuring the calibration effect of the measurement results of the level meter.

[0062] In a second aspect, this embodiment further discloses a system for calibrating and outputting measurement results of a liquid level meter, comprising: a first model training module, a second model training module and a third model training module.

[0063] Specifically, the first model training module is configured to: use multiple reading errors as learning parameters to perform machine learning to obtain an error compensation model, wherein the reading errors are obtained by measuring multiple standard liquid levels using a liquid level meter to be measured and correspondingly obtained.

[0064] Specifically, the second model training module is configured to: use reading training samples as learning parameters for machine learning to obtain a reading output model corresponding to the liquid level meter to be tested, wherein the reading training samples are obtained by collecting reading data of the liquid level meter to be tested within several cycles and performing statistical value calculations on all the reading data.

[0065] Specifically, the third model training module is configured as follows: using the error compensation model and the reading output model to obtain calibration training samples and then using them as learning parameters for machine learning to obtain a result calibration model corresponding to the liquid level meter to be tested; when using the liquid level meter to be tested to measure the liquid level, after the reading result corresponding to the liquid level measurement is input into the result calibration model, the result calibration model outputs the calibrated measurement result; wherein, the method for obtaining the calibration training samples includes: inputting any standard liquid level as an input parameter into the reading output model, and the reading output model outputs the corresponding measurement reading , and obtain the actual reading of the liquid level meter to be tested at the standard liquid level And the corresponding reading error ; Calculate reference error , ; The reference error is compared with the reading error corresponding to the level gauge to be measured at the standard liquid level For comparison, When the reference error , the liquid level value corresponding to the standard liquid level and the measurement readings As the actual reading The corresponding calibration training samples; when When the reading error , the liquid level value corresponding to the standard liquid level and the measurement readings As the actual reading The corresponding calibration training samples.

[0066] In this system, the step of obtaining the reading error specifically includes:

[0067] The liquid level value is measured by using the liquid level meter to be measured Measure the first standard liquid level and obtain the first reading result , get the first reading error , , where the liquid level value Close to the minimum range of the liquid level meter to be measured;

[0068] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the i-th standard liquid level and obtain the i-th reading result , get the error of the i-th reading , ;

[0069] The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the Nth standard liquid level and obtain the Nth reading result , get the Nth reading error , , where the liquid level value Close to the maximum range of the liquid level meter to be measured, .

[0070] Furthermore, the acquisition of the error compensation model further includes:

[0071] The statistical value results of the 1st to Nth reading errors are used as learning parameters for machine learning to optimize the error compensation model.

[0072] It should be noted that the system for calibrating and outputting the measurement results of a liquid level meter provided in this embodiment corresponds to the aforementioned method for calibrating and outputting the measurement results of a liquid level meter. Therefore, the parts that are not specifically described in the system for calibrating and outputting the measurement results of a liquid level meter in this embodiment (including but not limited to technical effects, introduction to technical principles and specific technical contents) can be correspondingly referred to the description in the aforementioned method for calibrating and outputting the measurement results of a liquid level meter, and this text will not go into details here.

[0073] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code, or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a processor, a controller, a microcontroller, a microprocessor, other electronic units designed to implement the functions described herein, or a combination thereof. For software implementation, part or all of the processes of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that can be accessed by a computer. Computer-readable storage media can include, but are not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.

[0074] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A system for calibrating and outputting measurement results of a liquid level meter, characterized in that: include: The first model training module is configured to: use a plurality of reading errors as learning parameters to perform machine learning to obtain an error compensation model, wherein the reading errors are obtained by measuring a plurality of standard liquid levels using a liquid level meter to be measured and correspondingly obtained; The second model training module is configured to: use the reading training samples as learning parameters to perform machine learning, and obtain the reading output model corresponding to the liquid level meter to be tested, wherein the reading training samples are obtained by collecting the reading data of the liquid level meter to be tested within a plurality of cycles and performing statistical value calculation on all the reading data; The third model training module is configured as follows: using the error compensation model and the reading output model to obtain calibration training samples and then using them as learning parameters for machine learning to obtain a result calibration model corresponding to the liquid level meter to be tested; when using the liquid level meter to be tested to measure the liquid level, after the reading result corresponding to the liquid level measurement is input into the result calibration model, the result calibration model outputs the calibrated measurement result; wherein, the method for obtaining the calibration training samples includes: inputting any standard liquid level as an input parameter into the reading output model, and the reading output model outputs the corresponding measurement reading , and obtain the actual reading of the liquid level meter to be tested at the standard liquid level And the corresponding reading error ; Calculate reference error , ; The reference error is compared with the reading error corresponding to the level gauge to be measured at the standard liquid level For comparison, When the reference error , the liquid level value corresponding to the standard liquid level and the measurement readings As the actual reading The corresponding calibration training samples; when When the reading error , the liquid level value corresponding to the standard liquid level and the measurement readings As the actual reading The corresponding calibration training samples; The step of obtaining the reading error specifically includes: The liquid level value is measured by using the liquid level meter to be measured Measure the first standard liquid level and obtain the first reading result , get the first reading error , , where the liquid level value Close to the minimum range of the liquid level meter to be measured; The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the i-th standard liquid level and obtain the i-th reading result , get the error of the i-th reading , ; The liquid level value is measured by using the liquid level meter to be measured Measure the measuring liquid pair for the Nth standard liquid level and obtain the Nth reading result , get the Nth reading error , , where the liquid level value Close to the maximum range of the liquid level meter to be measured, .

2. The system for calibrating and outputting the measurement results of a liquid level meter according to claim 1, characterized in that: The acquisition of the error compensation model further includes: The statistical value results of the 1st to Nth reading errors are used as learning parameters for machine learning to optimize the error compensation model.