CN114441469A - Calibration method and device of moisture meter and computer equipment - Google Patents

Calibration method and device of moisture meter and computer equipment Download PDF

Info

Publication number
CN114441469A
CN114441469A CN202210174765.1A CN202210174765A CN114441469A CN 114441469 A CN114441469 A CN 114441469A CN 202210174765 A CN202210174765 A CN 202210174765A CN 114441469 A CN114441469 A CN 114441469A
Authority
CN
China
Prior art keywords
value
moisture
deviation
determining
calibration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210174765.1A
Other languages
Chinese (zh)
Inventor
姜志珊
李珮珺
张炜
林豫璋
张祖铭
沈钦伟
詹露
林苗俏
陈满金
陈叶辉
林鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Longyan Tobacco Industry Co Ltd
Original Assignee
Longyan Tobacco Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Longyan Tobacco Industry Co Ltd filed Critical Longyan Tobacco Industry Co Ltd
Priority to CN202210174765.1A priority Critical patent/CN114441469A/en
Publication of CN114441469A publication Critical patent/CN114441469A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/3554Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light for determining moisture content
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/3563Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light for analysing solids; Preparation of samples therefor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N2201/00Features of devices classified in G01N21/00
    • G01N2201/12Circuits of general importance; Signal processing
    • G01N2201/127Calibration; base line adjustment; drift compensation
    • G01N2201/12715Zero adjustment, i.e. to verify calibration

Abstract

The application relates to a calibration method and device of a moisture meter and computer equipment. The method comprises the following steps: acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter; acquiring a first moisture value obtained by using an oven to perform moisture detection on a detection sample; determining a first deviation value based on the first initial moisture value and the first moisture value; determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value; and carrying out zero calibration on the target moisture meter by using the first correction value. The first correction value determined in the method is in accordance with the linear function rule, so that the adjustment proportion of the first correction value is relatively low, the target moisture meter is subjected to zero calibration by using the first correction value, the probability of over-adjustment of the target moisture meter can be reduced, the accuracy of zero calibration of the target moisture meter is relatively improved, and the accuracy of measurement by using the target moisture meter is improved.

Description

Calibration method and device of moisture meter and computer equipment
Technical Field
The application relates to the technical field of instrument calibration, in particular to a calibration method and device of a moisture meter and computer equipment.
Background
In the cigarette processing technology, the online moisture meter measuring instrument for the tobacco processing line is a key detection control instrument for controlling the quality stability of the processing process and improving the precision of the processing process, and the accuracy of measured data of the online moisture meter measuring instrument is related to the quality control precision and the stability of the tobacco processing process. The moisture meter used in the wire drying section of the conventional wire making line is an infrared moisture meter. The infrared moisture meter is a non-contact on-line detecting instrument, is convenient to use and simple to maintain, and is widely applied to tobacco product processing production lines.
The infrared moisture meter is used as a measuring instrument for the moisture of tobacco products, and the measuring accuracy is particularly important. In the actual production process, the zero value of the infrared moisture meter needs to be calibrated along with the change of factors such as production process, environmental conditions and the like. In the current stage, an oven method (moisture content detection method) is generally adopted for calibrating the infrared moisture meter, namely, a moisture value detected by an oven for 2 hours is taken as a standard value for calculating the measurement error of the infrared moisture meter, and the zero value of the infrared moisture meter is directly corrected by comparing a deviation value between the moisture detection value of the infrared moisture meter and the moisture detection value of the oven method, so that the detection value of the infrared moisture meter is consistent with the detection value of the oven method. However, in an actual production environment, the deviation value and the required correction value are not necessarily completely equal, so according to the conventional technical scheme, the infrared moisture meter is excessively adjusted, that is, the zero value of the infrared moisture meter cannot be correctly calibrated to eliminate the measurement error of the infrared moisture meter, and the measurement result of the infrared moisture meter is still inaccurate.
Therefore, how to avoid the over-adjustment of the infrared moisture meter and improve the measurement accuracy of the infrared moisture meter is a technical problem to be solved by the technicians in the field at present.
Disclosure of Invention
In view of the above, it is necessary to provide a calibration method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for a moisture meter, which can avoid over-adjustment of the infrared moisture meter and improve the measurement accuracy of the infrared moisture meter.
In a first aspect, the present application provides a method of calibrating a moisture meter. The method comprises the following steps:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by performing moisture detection on the detection sample by using an oven;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to a first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
In one embodiment, the manner in which the first calibration linear function is determined comprises:
acquiring a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively;
obtaining an initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target; the first historical calculation correction value is a correction value determined according to the first historical deviation value and the initial linear function;
determining the first calibrated linear function based on the initial linear function and the first linear parameter.
In one embodiment, after obtaining a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values, the method further includes:
determining correlation coefficients of deviation values and correction values according to the plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively;
and if the correlation coefficient is larger than a preset coefficient threshold value, returning to the step of obtaining the initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target.
In one embodiment, before acquiring the first initial moisture value obtained by moisture detection of the detection sample by using the target moisture meter, the method further includes:
acquiring a second initial moisture value obtained by utilizing the target moisture meter to perform moisture detection on the detection sample;
acquiring a second moisture value obtained by moisture detection of the detection sample through a halogen moisture meter;
determining a second deviation value according to the second initial moisture value and the second moisture value;
determining a second correction value of the target moisture meter according to a second calibration linear function and the second deviation value;
and carrying out zero calibration on the target moisture meter by utilizing the second correction value.
In one embodiment, after determining the first deviation value based on the first initial moisture value and the first moisture value, the method further comprises:
determining whether a zero calibration condition is reached currently according to the first deviation value;
and if the zero point calibration condition is determined to be reached currently, returning to the step of determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value.
In one embodiment, determining whether the zero calibration condition is currently met comprises:
determining whether the first deviation value is greater than a first difference threshold;
if the first deviation value is larger than the first difference threshold value, determining that the zero calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
In one embodiment, determining whether the zero calibration condition is currently met comprises:
determining whether the deviation times of the continuous equidirectional deviation of the first deviation value and a first difference threshold value are larger than a first time threshold value;
if the deviation times is larger than or equal to the first time threshold value, determining that the zero calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
In one embodiment, the method further comprises: if the calibration triggering condition is met, entering the step of acquiring a first initial moisture value obtained by performing moisture detection on the detection sample by using the target moisture meter;
the calibration trigger condition includes any one of:
the first item: the target moisture meter reaches a zero calibration period;
the second term is: the current environment temperature or the current environment humidity is larger than the temperature variation or the humidity variation of the historical environment temperature or the historical environment humidity at the last detection time by a corresponding variation threshold;
the third item: the product formula corresponding to the detection sample is changed;
the fourth item: and the production process corresponding to the detection sample is changed.
In a second aspect, the application further provides a calibration device for a moisture meter. The device comprises:
the first detection module is used for acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
the second detection module is used for acquiring a first moisture value obtained by performing moisture detection on the detection sample by using the oven;
a first determining module for determining a first deviation value based on the first initial moisture value and the first moisture value;
the second determining module is used for determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value;
and the first calibration module is used for carrying out zero calibration on the target moisture meter by utilizing the first correction value.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by performing moisture detection on the detection sample by using an oven;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to a first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by using an oven to detect moisture of the detection sample;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to a first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by performing moisture detection on the detection sample by using an oven;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to a first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
The calibration method, the calibration device, the calibration computer equipment, the calibration storage medium and the calibration computer program product are characterized in that a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter is obtained, a first moisture value obtained by performing moisture detection on the detection sample by using an oven is obtained, a first deviation value is determined according to the first initial moisture value and the first moisture value, then a first correction value of the target moisture meter is determined according to a first calibration linear function and the first deviation value, and zero calibration is performed on the target moisture meter by using the first correction value; the first correction value determined in the method is in accordance with the linear function rule, so that the adjustment proportion of the first correction value is relatively low, the target moisture meter is subjected to zero calibration by using the first correction value, the probability of over-adjustment of the target moisture meter can be reduced, the accuracy of zero calibration of the target moisture meter is relatively improved, and the accuracy of measurement by using the target moisture meter is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating a method for calibrating a moisture meter according to one embodiment;
FIG. 2 is a diagram illustrating the results of determining a fit of a first calibration linear function in one embodiment;
FIG. 3 is a schematic flow chart of a method for calibrating a moisture meter in another embodiment;
FIG. 4 is a block diagram of a calibration device for a moisture meter in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The calibration method of the moisture meter provided by the embodiment of the application can be applied to a terminal, namely the calibration method of the moisture meter is executed by the terminal, a first correction value for zero calibration of a target moisture meter is determined, and the terminal is used for performing zero calibration on the target moisture meter according to the first correction value; the method can also be applied to a system comprising a terminal and a server, and is realized through interaction of the terminal and the server, for example, the server is used for determining a first correction value, the server sends the first correction value to the terminal, and the terminal performs zero calibration on the target moisture meter according to the first correction value. The terminal can be but not limited to various personal computers, notebook computers, smart phones, tablet computers and industrial production equipment, and can also be a target moisture meter; the server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In one embodiment, as shown in fig. 1, a calibration method for a moisture meter is provided, which is described by taking the method as an example for a terminal, and includes the following steps:
step 102, acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter.
The target moisture meter refers to a moisture meter which needs to be calibrated at a zero point, and the target moisture meter in the embodiment refers to an infrared moisture meter. It should be noted that the infrared moisture meter is an online non-contact material moisture detector, and the principle of moisture detection by the infrared moisture meter is that water shows strong absorption characteristics to some specific wavelengths of infrared light, when the material is irradiated by the specific wavelengths of infrared light, the water contained in the material absorbs part of the energy of the infrared light, and the more the water is contained, the more the absorption is, so the moisture of the material can be calculated by calculating and measuring the reduction of the reflected light. In actual operation, when moisture detection is performed on tobacco by using an infrared moisture meter, due to the characteristics of infrared light, the detection result of the infrared moisture meter is easily affected by the color, shape, material formula and temperature and humidity of the environment of the material surface, so that a large error exists between the moisture value obtained by performing moisture detection by using the infrared moisture meter and the moisture value obtained by performing moisture detection by using an oven method, and the moisture value of the tobacco determined by performing moisture detection by using the oven method is generally considered to be the actual moisture value of the tobacco. Therefore, in order to conveniently and quickly determine the moisture value of the tobacco by using the infrared moisture meter, zero calibration needs to be carried out on the infrared moisture meter. In the step, after the detection sample is determined, the target moisture meter is used for detecting moisture of the detection sample to obtain a first initial moisture value.
When the target moisture meter is used to determine the first initial moisture value of the detection sample, the target moisture meter may be used to detect one detection sample, and the moisture value of the one detection sample may be determined as the first initial moisture value; in order to avoid the situation that the first initial moisture value determined by a single detection sample is deviated, a plurality of detection samples are obtained, the moisture values corresponding to the detection samples are determined, the average value of the moisture values of the plurality of detection samples is calculated, and the calculated average value is used as the first initial moisture value of the detection sample. In actual operation, after a sample of a target product is obtained, the sample is averagely divided into preset parts, and then a detection sample with preset parts is obtained; and for each detection sample, respectively carrying out moisture detection by using the target moisture meter and acquiring a corresponding moisture value, calculating an average value of a plurality of moisture values, and determining the average value as a first initial moisture value obtained by carrying out moisture detection on the detection sample by using the target moisture meter.
And 104, acquiring a first moisture value obtained by performing moisture detection on the detection sample by using the oven.
Specifically, when the moisture detection is performed on the detection sample by using the oven, the weight (g) of the sample before drying and the weight (g) of the sample after drying of the detection sample are obtained, and the moisture content of the detection sample is calculated according to the weight (g) of the sample before drying and the weight (g) of the sample after drying, so that a first moisture value is obtained, wherein the calculation mode is as follows:
Figure BDA0003518678720000071
wherein W represents a first moisture value of the test sample, m1Represents the weight (g) of the sample before baking of the test sample, m2Represents the weight (g) of the sample after baking of the test sample.
When the oven is used to determine the first moisture value of the detection sample, one detection sample may be detected by the oven, and the moisture value of the one detection sample may be determined as the first moisture value; in order to avoid the case where the first moisture value determined for a single detection sample is different, a plurality of detection samples may be obtained, the moisture values corresponding to the respective detection samples may be determined, the average value of the moisture values of the plurality of detection samples may be calculated, and the calculated average value may be used as the first moisture value of the detection sample. In practical operation, the oven may be used to perform moisture detection on the detection samples in the previous step, so as to determine corresponding moisture values, and then an average value of the moisture values is calculated, and the average value is determined as a first moisture value obtained by performing moisture detection on the detection samples in the oven.
Step 106, determining a first deviation value based on the first initial moisture value and the first moisture value.
It should be noted that, in actual operation, the target moisture meter and the oven may be respectively connected to the terminal, and the terminal sends an instruction to the target moisture meter and the oven, so as to obtain a first initial moisture value and a first moisture value determined by moisture detection performed by the target moisture meter and the oven, respectively; in addition, after the target moisture meter and the oven are used for respectively detecting moisture of the detection sample to obtain a corresponding first initial moisture value and a corresponding first moisture value, the terminal receives the first initial moisture value and the first moisture value input by the user, or the terminal reads the first initial moisture value and the first moisture value from a preset storage position; the present embodiment does not limit the specific manner of obtaining the first initial moisture value and the first moisture value. Specifically, after the first initial moisture value and the first moisture value are acquired, the first deviation value is obtained by calculating the difference between the first initial moisture value and the first moisture value.
And step 108, determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value.
Specifically, the first calibration linear function refers to a linear function for calibrating the first deviation value, and the specific type of the linear function is not limited in this embodiment. In practical operation, generally, when a first correction value corresponding to the first deviation value needs to be determined under the condition that the first calibration linear function is determined in advance, the predetermined first calibration linear function is obtained, and then the first deviation value is substituted into the first calibration linear function for calculation, so as to obtain the corresponding first correction value.
And step 110, carrying out zero calibration on the target moisture meter by using the first correction value.
Specifically, after the first correction value is determined, the zero calibration is performed on the target moisture meter by using the first correction value. It is understood that the calculated first correction value may be a positive value or a negative value; and (3) performing a zero calibration process on the target moisture meter, namely increasing or decreasing the value corresponding to the first correction value on the basis of the zero display value of the target moisture meter. For example, if the zero-point display value of the target moisture meter is E and the first correction value is y1, the zero-point display value E is zero-point calibrated by using the first correction value y1, and the calibrated zero-point display value is E + y 1.
In the calibration method of the moisture meter, after a first initial moisture value obtained by moisture detection of a detection sample by using a target moisture meter is obtained, and a first moisture value obtained by moisture detection of the detection sample by using an oven is obtained, and a first deviation value is determined according to the first initial moisture value and the first moisture value, a first correction value of the target moisture meter is determined according to a first calibration linear function and the first deviation value, and zero calibration is performed on the target moisture meter by using the first correction value; the first correction value determined in the method is in accordance with the linear function rule, so that the adjustment proportion of the first correction value is relatively low, the target moisture meter is subjected to zero calibration by using the first correction value, the probability of over-adjustment of the target moisture meter can be reduced, the accuracy of zero calibration of the target moisture meter is relatively improved, and the accuracy of measurement by using the target moisture meter is improved.
On the basis of the above embodiments, the present embodiment further describes and optimizes the technical solution, and specifically, in the present embodiment, the determining the first calibration linear function includes:
acquiring a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively;
acquiring an initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target; the first historical calculation correction value is determined according to the first historical deviation value and the initial linear function;
a first calibrated linear function is determined based on the initial linear function and the first linear parameter.
Specifically, the first historical deviation value refers to a deviation value determined when moisture detection is performed on a detection sample by using an oven historically, and the first historical actual correction value refers to a correction value corresponding to each first historical deviation value set in actual operation. The initial linear function is a preset linear function, and the specific type of the linear function is not limited in this embodiment.
The method comprises the steps of obtaining a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively, obtaining an initial linear function, and calculating a first linear parameter of the initial linear function by using a least square method to calculate the least square sum of the deviation of the first historical actual correction values and the first historical calculation correction values, so that the first calibration linear function is determined according to the initial linear function and the first linear parameter. Specifically, assume that the initial linear function is y ═ ax + b; obtaining a first historical deviation value xi(i ═ 1,2,3.. n), first history actual correction values y corresponding to the respective first history deviation values are acquiredi(i ═ 1,2,3.. n); obtaining first history calculation correction values (ax) corresponding to the first history deviation values according to the initial linear function y ═ ax + bi+ b) (i ═ 1,2,3.. n); and calculating an objective function by using a least square method and taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target:
Figure BDA0003518678720000091
wherein x isiAnd yiRepresenting any one group of corresponding first historical deviation value and first historical actual correction value; (ax)i+ b) is a first history calculation correction value calculated from the first history bias value and the initial linear function, and n represents the number of first history bias values.
According to the objective function, a first linear parameter in the initial linear function is determined, so that a first calibration linear function can be determined according to the initial linear function and the first linear parameter.
In a specific embodiment, a first initial moisture value and a first moisture value are obtained according to a preset data acquisition range; selecting the process points and the marks with higher zero values of the first and second zones of the silk making during the 03 months in 2017 and 2019, wherein the process points and the marks comprise:
(1) a wolf before charging a community wire;
(2) a white wolf before baking the cut tobacco with big thread in the first area;
(3) a first area of the first area is the grade A cut stems before the cut stems are dried;
(4) second zone B line after baking tobacco-red wolf;
(5) second zone B line after drying wire _ soft ash;
(6) second zone C line after drying wire _ red wolf;
(7) and (5) after the line C in the second area is dried, softening ash.
Taking a first wolf area charging inlet as an example, acquiring a plurality of first historical deviation values, and acquiring first historical actual correction values corresponding to the first historical deviation values respectively; and the obtained data information is subjected to data cleaning, incomplete data and data which are not subjected to zero value adjustment in daily sampling inspection are removed, and the data format is obtained as shown in the following table 1:
TABLE 1 data information for the first Langerhans section charging inlet
Figure BDA0003518678720000101
Figure BDA0003518678720000111
Determining an initial linear function as y ═ ax + b; with the objective of calculating the first historical actual correction value and the first historical calculated correction value with the minimum sum of squared deviations, an objective function is defined as follows:
Figure BDA0003518678720000112
wherein x isiAnd yiRepresenting any one group of corresponding first historical deviation value and first historical actual correction value; (ax)i+ b) is a first history calculation correction value calculated from the first history bias value and the initial linear function, and n represents the number of first history bias values.
Determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target; and respectively solving partial derivatives of the objective function about a and b, wherein if the partial derivatives have a zero point, the function values on both sides of the zero point are positive and negative, a resident point is inevitably existed, the resident point corresponds to the objective function value and is increased after being reduced, and the resident point is the optimal minimum value point, namely the first linear parameter in the initial linear function.
As shown in fig. 2, the fitting result of the first calibration linear function is determined, where a is 0.6922 and b is 0.0046 according to the above steps, that is, the first calibration linear function may be determined according to the initial linear function and the first linear parameter as follows:
y=0.6922x+0.0046。
it can be seen that, in the embodiment, the first linear parameter of the initial linear function is determined by taking the calculation of the first historical actual correction value and the minimum sum of squares of deviations of the first historical calculation correction value as a target, and then the first calibration linear function is determined according to the first linear parameter.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, after acquiring a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values, the method further includes:
determining correlation coefficients of the deviation values and the correction values according to the plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively;
and if the correlation coefficient is larger than the preset coefficient threshold value, returning to the step of obtaining the initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target.
Specifically, the correlation coefficient is a coefficient for determining the correlation between the deviation value and the correction value. In this embodiment, assume that the first history deviation value is xi(i=1,2,3...n), the first history actual correction value is yi( i 1,2,3.. n), calculating a correlation coefficient | r | of the deviation value and the correction value as:
Figure BDA0003518678720000121
wherein x isiAnd yiRepresenting any one group of corresponding first historical deviation value and first historical actual correction value; n represents the number of first historical deviation values,
Figure BDA0003518678720000122
represents the average of the n first historical deviation values,
Figure BDA0003518678720000123
an average value of the n first historical actual correction values is represented.
After the correlation coefficient | r | is calculated, judging the size relation between the correlation coefficient and a preset coefficient threshold value; generally speaking, when the correlation coefficient is larger than the preset coefficient threshold value, the two variables representing the deviation value and the correction value have strong linear correlation, otherwise, the two variables representing the deviation value and the correction value have weak linear correlation. In this embodiment, the first linear parameter is further determined according to the initial linear function when it is determined that the two variables, i.e., the offset value and the correction value, have strong linear correlation.
It can be seen that, in this embodiment, the correlation coefficient of the deviation value and the correction value is further calculated, and the first linear parameter is further determined according to the initial linear function when it is determined that there is a strong linear correlation between the deviation value and the correction value according to the correlation coefficient, so as to avoid the waste of processing resources due to the execution of subsequent operations when the linear correlation between the deviation value and the correction value is not strong.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, before acquiring the first initial moisture value obtained by performing moisture detection on the detection sample by using the target moisture meter, the method further includes:
acquiring a second initial moisture value obtained by performing moisture detection on the detection sample by using the target moisture meter;
acquiring a second moisture value obtained by moisture detection of the detection sample through the halogen moisture meter;
determining a second deviation value according to the second initial moisture value and the second moisture value;
determining a second correction value of the target moisture meter according to the second calibration linear function and the second deviation value;
and carrying out zero calibration on the target moisture meter by using the second correction value.
Specifically, the halogen moisture meter is also called a halogen moisture meter, and is a novel rapid moisture detection instrument. In actual operation, carrying out moisture detection on the detection sample through a halogen moisture meter to obtain a corresponding second moisture value; and then calculating the difference value between the second initial moisture value and the second moisture value to obtain a corresponding second deviation value.
It should be noted that the operation steps of performing moisture detection on the detection sample by using the target moisture meter to obtain the second initial moisture value in this step are the same as the operation steps of performing moisture detection on the detection sample by using the target moisture meter to obtain the first initial moisture value in the foregoing embodiment, and details are not repeated here.
In practical operation, when the halogen moisture meter is used to determine the second moisture value of the detection sample, one detection sample may be detected by the halogen moisture meter, and the moisture value of the one detection sample may be determined as the second moisture value; in order to avoid the case where the second moisture value determined by a single detection sample is different, a plurality of detection samples may be obtained, the moisture values corresponding to the respective detection samples may be determined, the average value of the moisture values of the plurality of detection samples may be calculated, and the calculated average value may be used as the second moisture value of the detection sample.
And determining a second deviation value according to the second initial moisture value and the second moisture value on the basis of the second initial moisture value and the second moisture value.
Then, by acquiring a plurality of second historical deviation values and second historical actual correction values corresponding to the second historical deviation values, and acquiring an initial linear function, a second linear parameter of the initial linear function is calculated by using a least square method with the objective of calculating the minimum sum of squares of deviations of the second historical actual correction values and the second historical calculation correction values, thereby determining a second calibration linear function from the initial linear function and the second linear parameter. It should be noted that the second calibration linear function refers to a linear function for calibrating the second offset value, and the manner of determining the second calibration linear function is substantially the same as the process of determining the first calibration linear function, which is different from the data for calculation, and therefore, the details are not described here.
On the basis of determining the second calibration linear function, substituting the second deviation value into the second calibration linear function for calculation according to the second calibration linear function and the second deviation value, and determining a second correction value of the target moisture meter; and then, carrying out zero calibration on the target moisture meter by using the second correction value.
In this embodiment, a second correction value is determined according to the second initial moisture value and the second moisture value, and the second correction value is used to perform zero calibration on the target moisture meter, that is, to perform coarse adjustment on the target moisture meter; and then determining a first correction value according to the first initial moisture value and the first moisture value, and continuously performing zero calibration on the target moisture meter by using the first correction value, namely performing fine adjustment on the target moisture meter, so that the zero calibration accuracy of the target moisture meter can be improved.
On the basis of the above embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, in the present embodiment, after determining the first deviation value according to the first initial moisture value and the first moisture value, the method further includes:
determining whether the zero calibration condition is reached currently or not according to the first deviation value;
and if the current zero point calibration condition is determined to be reached, returning to the step of determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value.
The zero calibration condition refers to a condition that the zero calibration of the target moisture meter is required; in this embodiment, after the first deviation value is obtained, whether the zero calibration condition is currently reached is judged according to the first deviation value; if the current zero point calibration condition is determined to be reached according to the first deviation value, continuing to execute the step of determining the first correction value of the target moisture meter; if it is determined that the zero calibration condition is not currently reached according to the first deviation value, the step of determining the first correction value of the target moisture meter does not need to be performed.
In practical operations, there are various ways of determining whether the zero calibration condition is currently achieved according to the first deviation value, for example, the first deviation value may be directly compared with a preset first difference threshold, or the zero calibration condition may be determined according to a deviation condition of the first deviation value, which is not limited in this embodiment.
Therefore, the embodiment further determines whether the zero calibration condition is currently reached by using the first deviation value, and performs the zero calibration operation on the target moisture meter only when the zero calibration condition is currently reached, so as to avoid invalid operation and save processing resources.
It should be noted that, in actual operation, if the target moisture meter is calibrated according to the second correction value obtained according to the second moisture value determined by the halogen moisture meter, in actual operation, it may be determined whether the zero calibration condition is currently reached by using the second deviation value, and if it is determined that the zero calibration condition is currently reached, the second correction value of the target moisture meter is determined according to the second calibration linear function and the second deviation value, so as to perform zero calibration on the target moisture meter by using the second correction value. The operation procedure of determining whether the current zero calibration condition is reached by using the second deviation value is similar to the operation procedure of determining whether the current zero calibration condition is reached by using the first deviation value, and details are not repeated here.
Similarly, whether the zero calibration condition is currently reached is determined by further utilizing the second deviation value, and the zero calibration operation of the target moisture meter is performed only when the zero calibration condition is currently reached, so that invalid operation can be avoided, and processing resources are saved.
As a specific implementation, determining whether the zero calibration condition is currently reached includes:
determining whether the first deviation value is greater than a first difference threshold;
if the first deviation value is larger than the first difference threshold value, determining that the zero calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
Specifically, the first interpolation threshold refers to a critical value for comparison with the first deviation value to determine whether the zero calibration condition is currently reached. After the first deviation value is obtained, judging whether the first deviation value is larger than a first difference threshold value, and if the first deviation value is larger than the first difference threshold value, determining that a zero point calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
In the embodiment, whether the current zero calibration condition is reached is judged by utilizing the first difference threshold, and the judgment mode is convenient and quick.
As a specific embodiment, determining whether the zero calibration condition is currently reached includes:
determining whether the deviation times of the continuous equidirectional deviation of the first deviation value and the first difference threshold value is greater than a first time threshold value;
if the deviation times are larger than or equal to the first time threshold value, determining that the zero point calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
Specifically, in this step, after the first deviation value is obtained each time, the deviation condition of the first deviation value and the first difference threshold value is determined, and the deviation times of the continuous equidirectional deviation of the first deviation value is counted; the deviation condition refers to that the first deviation value is larger than or smaller than a first difference threshold value; the continuous equidirectional deviation of the first deviation value and the first difference threshold value means that the first deviation values are all larger than or all smaller than the first difference threshold value in continuous detection for several times; when the times of continuous detection for several times are the first time threshold value, namely the deviation times of continuous equidirectional deviation is greater than or equal to the first time threshold value, determining that the zero point calibration condition is currently reached; otherwise, determining that the zero calibration condition is not reached currently. For example, if the number of consecutive positive deviations in the same direction or the number of consecutive negative deviations in the same direction is greater than or equal to three times, it indicates that the zero calibration condition is currently reached; otherwise, determining that the zero calibration condition is not reached currently.
As can be seen, in the embodiment, whether the zero calibration condition is currently achieved is determined according to the deviation frequency of the continuous equidirectional deviation between the first deviation value and the first difference threshold, so that whether the zero calibration condition is currently achieved can be comprehensively and accurately determined.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, in the present embodiment, the method further includes: if the calibration triggering condition is met, entering a step of acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
the calibration trigger condition includes any one of:
the first item: the target moisture meter reaches a zero calibration period.
Specifically, the zero calibration period refers to a preset period for performing zero calibration on the target moisture meter; the specific period duration of the zero calibration period is not limited in this embodiment, and may be determined according to actual requirements. For example, assuming that the period duration of the zero calibration period is 24 hours, which means that the calibration trigger condition is reached every 24 hours, the target moisture meter needs to be zero calibrated.
The second term is: the temperature variation or the humidity variation of the current ambient temperature or the current ambient humidity compared with the historical ambient temperature or the historical ambient humidity at the last detection time is larger than the corresponding variation threshold.
Specifically, a variation threshold is preset, and the variation threshold includes a temperature variation threshold corresponding to the ambient temperature and a humidity variation threshold corresponding to the ambient humidity. When the moisture value of the target product needs to be detected, the current environment temperature or the current environment humidity is obtained, and the historical environment temperature or the historical environment humidity at the last detection time is obtained. In addition, the historical environmental temperature and the historical environmental humidity respectively corresponding to the detection of the plurality of detection samples at the previous detection time may be acquired, the average value of the plurality of historical environmental temperatures may be used as the historical environmental temperature for comparison and determination, and the average value of the plurality of historical environmental humidities may be used as the historical environmental humidity for comparison and determination. The method comprises the steps of obtaining current environment temperature and current environment humidity respectively corresponding to a plurality of current detection samples when the detection samples are detected respectively, taking the average value of the current environment temperatures as the current environment temperature for comparison and judgment, and taking the average value of the current environment humidity as the current environment humidity for comparison and judgment. Then, calculating the temperature variation corresponding to the ambient temperature by using the current ambient temperature and the historical ambient temperature, and judging whether the temperature variation is greater than a temperature variation threshold value or not; or calculating the humidity variation corresponding to the environmental humidity by using the current environmental humidity and the historical environmental humidity, and judging whether the humidity variation is greater than a humidity variation threshold value. If the temperature variation is larger than the temperature variation threshold and/or the humidity variation is larger than the humidity variation threshold, it indicates that the calibration triggering condition is currently reached, and zero calibration needs to be performed on the target moisture meter.
The third item: and detecting the product formula change corresponding to the sample.
It should be noted that, the product formulas corresponding to different products may be different, and the detected moisture value may be different for different products; therefore, in this embodiment, whether the product formula corresponding to the detection sample is changed is determined by determining whether the detection target product is changed; and if the product formula corresponding to the detection sample is changed, indicating that the current calibration triggering condition is reached, and carrying out zero calibration on the target moisture meter.
The fourth item: and detecting the corresponding production process change of the sample.
The production process refers to the work, method and technique of a production worker for processing or treating various raw materials, materials and semi-finished products by using production tools and equipment to finally form finished products. In actual operation, if the production process for producing the target product changes, the moisture value of the target product may also change, so that the production process change corresponding to the target product is determined, that is, when the production process change corresponding to the detection sample is determined, it indicates that the calibration trigger condition is currently reached, and zero calibration needs to be performed on the target moisture meter.
It can be seen that this embodiment is through detecting multiple calibration trigger condition to carry out zero calibration to the target moisture meter when reaching calibration trigger condition, can carry out comprehensive accurate zero calibration to the target moisture meter to multiple condition.
In order to make those skilled in the art better understand the technical solutions in the present application, the following describes the technical solutions in the embodiments of the present application in detail with reference to practical application scenarios. With reference to the schematic flow chart of the calibration method for a moisture meter shown in fig. 3, the calibration method for a moisture meter provided in the embodiment of the present application includes the following specific steps:
first, it is determined whether there is currently any one of the following four cases:
the first item: the target moisture meter reaches a zero calibration period;
the second term is: the current environment temperature or the current environment humidity is larger than the temperature variation or the humidity variation of the historical environment temperature or the historical environment humidity at the last detection time by a corresponding variation threshold;
the third item: detecting a product formula change corresponding to the sample;
the fourth item: and detecting the corresponding production process change of the sample.
If any of the above cases exists, it indicates that the calibration trigger condition is currently reached, and then the zero calibration operation needs to be performed on the target moisture meter.
Under a normal production state, 100g of target product is obtained and divided into preset portions, and a preset portion of detection sample is obtained; for each detection sample, respectively carrying out moisture detection by using a target moisture meter and acquiring a corresponding moisture value, calculating an average value of a plurality of moisture values, and determining the average value as a second initial moisture value obtained by carrying out moisture detection on the detection sample by using the target moisture meter;
for each detection sample, respectively utilizing a halogen moisture meter to detect moisture and obtain a corresponding moisture value, calculating an average value of a plurality of moisture values, and determining the average value as a second moisture value corresponding to the moisture detection of the detection sample by utilizing the halogen moisture meter;
calculating a second deviation value according to the difference value between the second initial moisture value and the second moisture value;
determining correlation coefficients of the deviation values and the correction values according to the plurality of second historical deviation values and second historical actual correction values corresponding to the second historical deviation values respectively; if the correlation coefficient is greater than the preset coefficient threshold, determining whether the second deviation value is greater than a second difference threshold; if the second deviation value is larger than the second difference threshold value, determining that the zero calibration condition is reached currently; otherwise, determining whether the deviation times of the continuous equidirectional deviation of the second deviation value and the second difference threshold value is greater than a second time threshold value; if the deviation times is larger than or equal to the second time threshold value, determining that the zero point calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently;
under the condition that the zero point calibration condition is achieved currently, determining a second correction value of the target moisture meter according to the second calibration linear function and the second deviation value; wherein the determination process to calculate the second calibration curve function is as follows:
acquiring a plurality of second historical deviation values and second historical actual correction values corresponding to the second historical deviation values respectively; acquiring an initial linear function, and determining a second linear parameter of the initial linear function by taking the minimum deviation square sum of the calculated second historical actual correction value and the calculated second historical correction value as a target; the second historical calculation correction value is determined according to the second historical deviation value and the initial linear function; a second calibration linear function is determined based on the initial linear function and the second linear parameter.
Carrying out zero calibration on the target moisture meter by using the second correction value; assuming that the zero point display value of the target moisture meter is E0Determining the second correction value as k1Using the second correction value k1To zero point display value E0Zero point calibration is carried out, and the zero point display value after calibration is E0+k1
Additionally obtaining 100g of target product, and dividing into preset portions to obtain detection samples of the preset portions; for each test sampleRespectively detecting moisture by target moisture meter and obtaining corresponding moisture value (zero point display value of target moisture meter is E at this time)0+k1) Calculating an average value of the moisture values, and determining the average value as a first initial moisture value corresponding to the moisture detection of the detection sample by using the target moisture meter;
for each detection sample, determining the moisture value corresponding to each detection sample by using the oven respectively, calculating the average value of the moisture values of a plurality of detection samples, and taking the calculated average value as the first moisture value of the detection sample;
calculating a first deviation value according to the difference value between the first initial moisture value and the first moisture value;
determining correlation coefficients of the deviation values and the correction values according to the plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively; if the correlation coefficient is greater than the preset coefficient threshold, determining whether the first deviation value is greater than a first difference threshold; if the first deviation value is larger than the first difference threshold value, determining that the zero calibration condition is reached currently; otherwise, determining whether the deviation times of the continuous homodromous deviation of the first deviation value and the first difference threshold value is greater than a first time threshold value; if the deviation times are larger than or equal to the first time threshold value, determining that the zero calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently;
under the condition that the zero point calibration condition is achieved currently, determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value; wherein the determination process to calculate the first calibration curve function is as follows:
acquiring a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively; acquiring an initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target; the first historical calculation correction value is determined according to the first historical deviation value and the initial linear function; a first calibrated linear function is determined based on the initial linear function and the first linear parameter.
Carrying out zero calibration on the target moisture meter by using the first correction value; zero point display value of target moisture meter is E0+k1Determining a first correction value as k2Using the first correction value k2To zero point display value E0+k1Zero point calibration is carried out, and the zero point display value after calibration is E0+k1+k2
The calibration method of the moisture meter comprises the steps of obtaining a first initial moisture value obtained by moisture detection of a detection sample by using a target moisture meter, obtaining a first moisture value obtained by moisture detection of the detection sample by using an oven, determining a first deviation value according to the first initial moisture value and the first moisture value, then determining a first correction value of the target moisture meter according to a first calibration linear function and the first deviation value, and performing zero calibration on the target moisture meter by using the first correction value; the first correction value determined in the method accords with the linear function rule, so that the adjustment proportion of the first correction value is relatively low, the target moisture meter is subjected to zero calibration by using the first correction value, the probability of over-adjustment of the target moisture meter can be reduced, the accuracy of zero calibration of the target moisture meter is relatively improved, and the accuracy of measurement by using the target moisture meter is improved; determining a second correction value according to the second initial moisture value and the second moisture value, and performing zero calibration on the target moisture meter by using the second correction value, namely performing coarse adjustment on the target moisture meter; and then determining a first correction value according to the first initial moisture value and the first moisture value, and continuously performing zero calibration on the target moisture meter by using the first correction value, namely performing fine adjustment on the target moisture meter, so that the zero calibration accuracy of the target moisture meter can be improved.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a calibration device of the moisture meter, which is used for realizing the calibration method of the moisture meter. The implementation scheme of the device for solving the problem is similar to the implementation scheme described in the above method, so specific limitations in the embodiment of the calibration device for one or more moisture meters provided below can be referred to the limitations of the calibration method for the moisture meters above, and details are not repeated here.
In one embodiment, as shown in fig. 4, there is provided a calibration device for a moisture meter, comprising: a first detection module 402, a second detection module 404, a first determination module 406, a second determination module 408, and a first calibration module 410, wherein:
a first detection module 402, configured to obtain a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
a second detection module 404, configured to obtain a first moisture value obtained by performing moisture detection on the detection sample by using the oven;
a first determination module 406 to determine a first deviation value based on the first initial moisture value and the first moisture value;
a second determining module 408, configured to determine a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value;
the first calibration module 410 is configured to perform zero calibration on the target moisture meter by using the first correction value.
The calibration device of the moisture meter provided by the embodiment of the application has the same beneficial effects as the calibration method of the moisture meter.
As a preferred embodiment, the second determining module includes:
the first obtaining submodule is used for obtaining a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively;
the second obtaining submodule is used for obtaining an initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target; the first historical calculation correction value is determined according to the first historical deviation value and the initial linear function;
a first determining sub-module for determining a first calibrated linear function based on the initial linear function and the first linear parameter.
As a preferred embodiment, a calibration apparatus for a moisture meter further includes:
the correlation coefficient calculation module is used for determining correlation coefficients of the deviation values and the correction values according to the plurality of first historical deviation values and the first historical actual correction values corresponding to the first historical deviation values respectively;
and the correlation coefficient judgment module is used for returning to the second acquisition submodule if the correlation coefficient is greater than a preset coefficient threshold.
As a preferred embodiment, a calibration apparatus for a moisture meter further includes:
the third detection module is used for acquiring a second initial moisture value obtained by performing moisture detection on the detection sample by using the target moisture meter;
the fourth detection module is used for acquiring a second moisture value obtained by performing moisture detection on the detection sample through the halogen moisture meter;
the third determining module is used for determining a second deviation value according to the second initial moisture value and the second moisture value;
the fourth determining module is used for determining a second correction value of the target moisture meter according to the second calibration linear function and the second deviation value;
and the second calibration module is used for carrying out zero calibration on the target moisture meter by utilizing the second correction value.
As a preferred embodiment, a calibration apparatus for a moisture meter further includes:
the condition judgment module is used for determining whether the zero calibration condition is met currently according to the first deviation value; and if the current zero point calibration condition is determined to be reached, returning to the second determination module.
As a preferred embodiment, the condition determining module includes:
the first condition judgment submodule is used for determining whether the first deviation value is larger than a first difference threshold value; if the first deviation value is larger than the first difference threshold value, determining that the zero calibration condition is reached currently; otherwise, determining that the zero calibration condition is not currently reached.
As a preferred embodiment, the condition determining module includes:
the second condition judgment submodule is used for determining whether the deviation times of continuous equidirectional deviation of the first deviation value and the first difference threshold value is greater than a first time threshold value or not; if the deviation times are larger than or equal to the first time threshold value, determining that the zero point calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
As a preferred embodiment, a calibration apparatus for a moisture meter further includes:
the calibration triggering module is used for calling the first detection module if the calibration triggering condition is met;
the calibration trigger condition includes any one of:
the first item: the target moisture meter reaches a zero calibration period;
the second term is: the current environment temperature or the current environment humidity is larger than the temperature variation or the humidity variation of the historical environment temperature or the historical environment humidity at the last detection time by a corresponding variation threshold;
the third item: detecting a product formula change corresponding to the sample;
the fourth item: and detecting the corresponding production process change of the sample.
The modules in the calibration device of the moisture meter can be realized in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of calibrating a moisture meter. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by using an oven to perform moisture detection on a detection sample;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
The computer equipment provided by the embodiment of the application has the same beneficial effects as the calibration method of the moisture meter.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by using an oven to perform moisture detection on a detection sample;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
The computer-readable storage medium provided by the embodiment of the application has the same beneficial effects as the calibration method of the moisture meter.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by using an oven to perform moisture detection on a detection sample;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
The computer program product provided by the embodiment of the application has the same beneficial effects as the calibration method of the moisture meter.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method of calibrating a moisture meter, the method comprising:
acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
acquiring a first moisture value obtained by performing moisture detection on the detection sample by using an oven;
determining a first deviation value based on the first initial moisture value and the first moisture value;
determining a first correction value of the target moisture meter according to a first calibration linear function and the first deviation value;
and carrying out zero calibration on the target moisture meter by using the first correction value.
2. The method of claim 1, wherein determining the manner in which the first calibration linear function is determined comprises:
acquiring a plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively;
obtaining an initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target; the first historical calculation correction value is a correction value determined according to the first historical deviation value and the initial linear function;
determining the first calibrated linear function based on the initial linear function and the first linear parameter.
3. The method of claim 2, wherein after obtaining a plurality of first historical offset values and first historical actual correction values corresponding to the respective first historical offset values, the method further comprises:
determining correlation coefficients of deviation values and correction values according to the plurality of first historical deviation values and first historical actual correction values corresponding to the first historical deviation values respectively;
and if the correlation coefficient is larger than a preset coefficient threshold value, returning to the step of obtaining the initial linear function, and determining a first linear parameter of the initial linear function by taking the minimum deviation square sum of the first historical actual correction value and the first historical calculation correction value as a target.
4. The method of claim 1, wherein prior to said obtaining a first initial moisture value obtained from moisture testing a test sample with a target moisture meter, the method further comprises:
acquiring a second initial moisture value obtained by utilizing the target moisture meter to perform moisture detection on the detection sample;
acquiring a second moisture value obtained by moisture detection of the detection sample through a halogen moisture meter;
determining a second deviation value according to the second initial moisture value and the second moisture value;
determining a second correction value of the target moisture meter according to a second calibration linear function and the second deviation value;
and carrying out zero calibration on the target moisture meter by using the second correction value.
5. The method of any of claims 1 to 4, wherein after said determining a first deviation value based on said first initial moisture value and said first moisture value, said method further comprises:
determining whether a zero calibration condition is reached currently according to the first deviation value;
and if the zero point calibration condition is determined to be reached currently, returning to the step of determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value.
6. The method of claim 5, wherein determining whether the zero calibration condition is currently met comprises:
determining whether the first deviation value is greater than a first difference threshold;
if the first deviation value is larger than the first difference threshold value, determining that the zero calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
7. The method of claim 5, wherein determining whether the zero calibration condition is currently met comprises:
determining whether the deviation times of the continuous equidirectional deviation of the first deviation value and a first difference threshold value are larger than a first time threshold value;
if the deviation times is larger than or equal to the first time threshold value, determining that the zero calibration condition is reached currently; otherwise, determining that the zero calibration condition is not reached currently.
8. The method of claim 5, further comprising: if the calibration triggering condition is met, entering the step of acquiring a first initial moisture value obtained by performing moisture detection on the detection sample by using the target moisture meter;
the calibration trigger condition includes any one of:
the first item: the target moisture meter reaches a zero calibration period;
the second term is: the current environment temperature or the current environment humidity is larger than the temperature variation or the humidity variation of the historical environment temperature or the historical environment humidity at the last detection time by a corresponding variation threshold;
the third item: the product formula corresponding to the detection sample is changed;
the fourth item: and the production process corresponding to the detection sample is changed.
9. A calibration device for a moisture meter, the device comprising:
the first detection module is used for acquiring a first initial moisture value obtained by performing moisture detection on a detection sample by using a target moisture meter;
the second detection module is used for acquiring a first moisture value obtained by performing moisture detection on the detection sample by using the oven;
a first determining module for determining a first deviation value based on the first initial moisture value and the first moisture value;
the second determining module is used for determining a first correction value of the target moisture meter according to the first calibration linear function and the first deviation value;
and the first calibration module is used for carrying out zero calibration on the target moisture meter by utilizing the first correction value.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.
CN202210174765.1A 2022-02-24 2022-02-24 Calibration method and device of moisture meter and computer equipment Pending CN114441469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210174765.1A CN114441469A (en) 2022-02-24 2022-02-24 Calibration method and device of moisture meter and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210174765.1A CN114441469A (en) 2022-02-24 2022-02-24 Calibration method and device of moisture meter and computer equipment

Publications (1)

Publication Number Publication Date
CN114441469A true CN114441469A (en) 2022-05-06

Family

ID=81373354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210174765.1A Pending CN114441469A (en) 2022-02-24 2022-02-24 Calibration method and device of moisture meter and computer equipment

Country Status (1)

Country Link
CN (1) CN114441469A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117129371A (en) * 2023-10-27 2023-11-28 宁德时代新能源科技股份有限公司 Calibration method and device for surface density measuring instrument and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101444325A (en) * 2008-08-26 2009-06-03 广东中烟工业有限责任公司 Method for processing cigarettes in groups
CN102095831A (en) * 2010-06-24 2011-06-15 龙岩烟草工业有限责任公司 Moisture meter management method and system
CN104697943A (en) * 2014-11-10 2015-06-10 江苏大学 Rape water stress nondestructive testing method
CN106872398A (en) * 2017-02-21 2017-06-20 西安近代化学研究所 A kind of HMX explosives moisture method for fast measuring
CN109740293A (en) * 2019-02-15 2019-05-10 河南中烟工业有限责任公司 The amendment value calculating method of moisture content of cut tobaccos after a kind of fire-cured tobacco type dries
CN113466405A (en) * 2021-06-07 2021-10-01 湖北中烟工业有限责任公司 Correction method and correction device for online moisture meter
CN113836779A (en) * 2020-06-23 2021-12-24 西北农林科技大学 CNN-based farmland surface soil moisture inversion method for Sentinel multi-source data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101444325A (en) * 2008-08-26 2009-06-03 广东中烟工业有限责任公司 Method for processing cigarettes in groups
CN102095831A (en) * 2010-06-24 2011-06-15 龙岩烟草工业有限责任公司 Moisture meter management method and system
CN104697943A (en) * 2014-11-10 2015-06-10 江苏大学 Rape water stress nondestructive testing method
CN106872398A (en) * 2017-02-21 2017-06-20 西安近代化学研究所 A kind of HMX explosives moisture method for fast measuring
CN109740293A (en) * 2019-02-15 2019-05-10 河南中烟工业有限责任公司 The amendment value calculating method of moisture content of cut tobaccos after a kind of fire-cured tobacco type dries
CN113836779A (en) * 2020-06-23 2021-12-24 西北农林科技大学 CNN-based farmland surface soil moisture inversion method for Sentinel multi-source data
CN113466405A (en) * 2021-06-07 2021-10-01 湖北中烟工业有限责任公司 Correction method and correction device for online moisture meter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117129371A (en) * 2023-10-27 2023-11-28 宁德时代新能源科技股份有限公司 Calibration method and device for surface density measuring instrument and readable storage medium
CN117129371B (en) * 2023-10-27 2024-04-09 宁德时代新能源科技股份有限公司 Calibration method and device for surface density measuring instrument and readable storage medium

Similar Documents

Publication Publication Date Title
CN105300923B (en) Without measuring point model of temperature compensation modification method during a kind of near-infrared spectrometers application on site
JP6951333B2 (en) Wafer point-by-point analysis and data presentation
TW201840955A (en) Monitoring system and method for verifying measurements in patterned structures
CN115728445B (en) Sensor calibration method, device, equipment and computer readable storage medium
CN113165243A (en) Method and system for improving a physical production process
CN114441469A (en) Calibration method and device of moisture meter and computer equipment
CN116337783A (en) Multi-point calibration method and system for gas analyzer
CN109580549B (en) Method and device for calculating and calibrating material content
CN105466885B (en) Based on the near infrared online measuring method without measuring point temperature-compensating mechanism
CN116026780B (en) Method and system for online detection of coating moisture absorption rate based on series strategy wavelength selection
CN110132416B (en) Broadband remote sensor on-orbit spectrum calibration method and device
Xu et al. Temperature and humidity compensation for MOS gas sensor based on random forests
CN111579526B (en) Method for representing difference and correction of near infrared instrument
CN113267454A (en) Thin film quality detection method, thin film quality detection device, electronic device, and storage medium
CN105259135B (en) Suitable for real-time online without measuring point temperature-compensating near-infrared measuring method
TW202140847A (en) Method of process control and monitoring in dynamic plasma condition by plasma spectrum
CN113049500A (en) Water quality detection model training and water quality detection method, electronic equipment and storage medium
SE544392C2 (en) Method for determining a gas concentration from a group of sensors
CN108226082B (en) Calibration method for damping response time of moisture meter
CN114706342B (en) Oxygen concentration detection method based on nonlinear interpolation compensation algorithm
CN116609286A (en) Zero calibration method and device for moisture meter, electronic equipment and storage medium
Hajiyev Determination of optimum measurement points via A-optimality criterion for the calibration of measurement apparatus
Chunovkina et al. An approach for evaluating the results of key comparisons of standards with inconsistent data
CN111272060B (en) Method for quantifying size of opening defect in width direction of non-conductive material based on single-pair electrode capacitance imaging detection technology
CN114199814B (en) Regression coefficient-based near infrared quantitative analysis model updating method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination