Distance compensation correction method for temperature measurement result of infrared sensor

By constructing a polynomial fitting curve for two-stage correction, the temperature error problem caused by distance factors in infrared sensor temperature measurement is solved, achieving more efficient and accurate temperature monitoring, and improving the temperature monitoring capabilities of industrial equipment.

CN118670543APending Publication Date: 2024-09-20HANGZHOU DIANZI UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410907058.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing infrared sensor temperature measurement methods suffer from temperature errors caused by distance factors and lack universality and efficiency, which affects the accuracy of temperature measurement and the correctness of abnormal monitoring results.

Method used

A distance compensation correction method of infrared sensor temperature measurement results is adopted. By obtaining the temperature observation data under the real temperature value and spatial distance value, a polynomial fitting curve is constructed, and two-stage correction is performed: rough calibration and fine calibration, using the least squares method. and nonlinear fitting to improve calibration accuracy.

Benefits of technology

It effectively improves the accuracy of infrared sensor temperature measurement, solves the problems of large error and small applicable temperature range in traditional methods, and provides more accurate and reliable temperature monitoring results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118670543A
    Figure CN118670543A
Patent Text Reader

Abstract

The invention discloses a distance compensation correction method for a temperature measurement result of an infrared sensor, and the method mainly comprises the steps: collecting temperature observation data at different temperatures and different spatial distances through an infrared sensor, carrying out the nonlinear fitting of the temperature observation data at different temperatures, solving an average fitting curve, and carrying out the correction of the temperature measurement result of the infrared sensor; a parameter value to be solved is solved by a least square method, a temperature value is predicted by a solved average fitting curve, an error between the predicted temperature value and a respective corresponding real temperature value is calculated, and a constant coefficient value to be determined is solved by the least square method in a minimization manner; and taking the solved constant coefficient value and the parameter value as parameters of a temperature measurement correction formula based on the distance, and compensating the temperature observed at any distance by using the temperature measurement correction formula to obtain the accurate temperature of the object. The invention aims to solve the problem of temperature attenuation caused by distance during infrared temperature measurement, and has important significance for improving the accuracy of equipment temperature monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of industrial application, and in particular relates to a distance compensation correction method for temperature measurement results of an infrared sensor. Background Art

[0002] Compared with other sensors, infrared sensors have the advantages of non-contact, real-time, and the ability to obtain temperature data. Therefore, infrared sensors are often used in industrial equipment to provide timely warning and monitoring of possible abnormal conditions. However, due to the influence of factors such as shooting distance, ambient temperature, and dust in the air, there is a certain error between the temperature obtained by the infrared sensor and the actual temperature of the equipment surface. These errors will affect the accuracy of temperature measurement, and thus hinder the correctness of subsequent abnormal monitoring results.

[0003] At present, there are many temperature compensation correction methods that can correct temperature measurement errors caused by various factors. However, one of the drawbacks of these methods is that they are often only applicable to specific types of sensors and lack sufficient universality. Therefore, there is an urgent need for more complete infrared temperature measurement compensation correction method research to meet the efficiency and intelligence requirements of industrial applications. In-depth research on infrared temperature measurement compensation correction methods is of great significance, aiming to provide more accurate and reliable temperature monitoring and early warning means for industrial equipment. Summary of the invention

[0004] The purpose of the present invention is to solve the defect problem in the prior art that temperature attenuation caused by distance factors leads to errors in temperature obtained at a long distance, and to provide a distance compensation correction method for the temperature measurement result of an infrared sensor.

[0005] In order to achieve the above-mentioned invention object, the present invention specifically adopts the following technical solutions:

[0006] A distance compensation correction method for infrared sensor temperature measurement results includes the following steps:

[0007] S1. Obtain the real temperature value set for the heatable black body and the spatial distance value between the infrared sensor and the heatable black body, obtain the temperature observation data of the heatable black body under different real temperature values ​​and different spatial distance values, take the real temperature value and a set of temperature observation data under the same real temperature value as a set of distance temperature data samples, and construct a distance temperature data set from all the distance temperature data samples;

[0008] S2. After dividing the distance temperature data set into a training set and a test set, polynomial fitting is performed on the distance temperature data samples in the training set, and each distance temperature data sample corresponds to a polynomial fitting curve to be solved, and the independent variable of each polynomial fitting curve to be solved is the spatial distance value between the infrared sensor and the heatable black body, and the dependent variable of each polynomial fitting curve to be solved is the relative value of the temperature difference between the true temperature value and the temperature observation data;

[0009] S3. taking the average value of all relative temperature difference values ​​belonging to the same spatial distance value as the average relative temperature difference value, performing polynomial fitting on the average relative temperature difference values ​​obtained under each spatial distance value, and obtaining the average fitting curve to be solved, wherein the independent variable of the average fitting curve to be solved is the spatial distance value between the infrared sensor and the heatable black body, and the dependent variable of the average fitting curve to be solved is the average relative temperature difference value;

[0010] S4. Substituting each spatial distance value into the average fitting curve to be solved for temperature estimation, each spatial distance value corresponds to a temperature value of the average fitting curve estimated to contain the parameter to be solved;

[0011] S5. Calculate the mean square error between the temperature value containing the parameter to be solved estimated by the average fitting curve and the temperature observation data in the training set, obtain a first mean square error expression, minimize the first mean square error expression by the least square method, solve the parameter value to be solved in the average fitting curve, and obtain the average fitting curve after solving;

[0012] S6. predicting the temperature values ​​of each true temperature value contained in the training set by the solved average fitting curve at any spatial distance, and obtaining a set of compensated temperature values, each temperature value in the set of compensated temperature values ​​having a constant coefficient to be determined;

[0013] S7. Calculate the error between each temperature value in a set of compensated temperature values ​​and the corresponding true temperature value, obtain a second mean square error expression, minimize the second mean square error expression by the least square method, and solve the constant coefficient value to be determined;

[0014] S8. The solved constant coefficient value and the parameter value in the solved average fitting curve are used as parameters of the distance-based temperature measurement correction formula, the spatial distance value between the infrared sensor and the heatable black body and the temperature observation data observed by the infrared sensor are used as input, and the temperature measurement correction formula outputs the compensated temperature.

[0015] Based on the above scheme, each step can be implemented in the following preferred specific manner.

[0016] Preferably, the specific process of step S1 is:

[0017] S11. After the infrared sensor and the heatable black body are pre-deployed, the real temperature value is pre-set, and a set of spatial distance values ​​is generated at equal intervals within the preset spatial distance range, and the temperature value observed by the infrared sensor at each spatial distance value is used as the temperature observation data of the heatable black body, and the real temperature value and a set of temperature observation data corresponding to the real temperature value are used as a set of distance temperature data samples; wherein, one distance temperature data sample in a set of distance temperature data samples consists of the real temperature value and one temperature observation data corresponding to the real temperature value;

[0018] S12. Change the real temperature value, reacquire new temperature observation data at each spatial distance value, generate new distance temperature data samples, and all distance temperature data samples constitute a distance temperature data set.

[0019] Preferably, in step S2, the relative value p of the temperature difference between the real temperature value and the temperature observation data is calculated as follows:

[0020]

[0021] Among them, T real Indicates the true temperature value, T measure Represents temperature observation data.

[0022] Preferably, in step S2, two groups of distance temperature data samples corresponding to real temperatures of 45°C and 55°C are used as test sets, and five groups of distance temperature data samples corresponding to real temperatures of 30°C, 40°C, 50°C, 60°C and 70°C are used as training sets.

[0023] Preferably, in step S4, when the spatial distance value is d, the temperature value t containing the parameter to be solved estimated by the average fitting curve is d for:

[0024] t d =(1-y avg (d))*γ avg

[0025] Among them, γ avg represents the parameter to be solved in the average fitting curve; y avg (d) represents the average fitting curve to be solved; d represents the spatial distance value.

[0026] Preferably, in step S5, the function form of the first mean square error expression Error1 is as follows:

[0027]

[0028] in, It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 30 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 40 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 50 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 60 degrees; Represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 70 degrees.

[0029] Preferably, in step S6, a set of compensated temperature values ​​is composed of compensated temperature values ​​at actual temperature values ​​of 30°C, 40°C, 50°C, 60°C and 70°C, which are obtained as follows:

[0030]

[0031] Among them, T 30 , T 40 , T 50 , T 60 and T 70 They represent the compensated temperature values ​​at the actual temperatures of 30°C, 40°C, 50°C, 60°C and 70°C respectively; t 30 ,t 40 ,t 50 ,t 60 and t 70 Respectively represent the observed temperature data at any spatial distance and the true temperature values ​​are 30℃, 40℃, 50℃, 60℃ and 70℃; as well as They respectively represent the temperature values ​​obtained by substituting the real temperature values ​​of 30°C, 40°C, 50°C, 60°C and 70°C into the solved average fitting curve; β is the constant coefficient to be determined.

[0032] Preferably, in step S7, the function form of the second mean square error expression Error2 is as follows: Error2=(T 30 -30) 2 +(T 40 -40) 2 +(T 50 -50) 2 +(T 60 -60) 2 +(T 70 -70) 2 .

[0033] Preferably, in step S8, the function form of the temperature measurement correction formula is:

[0034] T(x cam )=(1+y avg (x cam ))*t cam +β*(t cam -γ avg )

[0035] Among them, T(x cam ) represents the compensated temperature output by the temperature measurement correction formula; y avg (x cam ) means that the spatial distance value x cam Substitute the result obtained by the average fitting curve after solving; t cam Represents the temperature observation data observed by the infrared sensor.

[0036] Preferably, after obtaining the temperature measurement correction formula, the spatial distance value of the distance temperature data sample in the test set and the temperature observation data are substituted into the temperature measurement correction formula, the compensated temperature output by the temperature measurement correction formula is used as the corrected temperature, and the difference between the corrected temperature and the true temperature value of the distance temperature data sample in the test set is calculated to obtain the correction error, which is used to evaluate the effect of the temperature measurement correction formula.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] The present invention proposes a distance compensation correction method for the temperature measurement results of an infrared sensor. The present invention solves the problems of lack of data and low fitting accuracy in traditional compensation methods, collects temperature data with a larger range, and uses a two-stage correction method including a coarse calibration stage and a precise calibration stage. In the coarse calibration stage, based on the least squares fitting idea, the average fitting curve of all temperatures is first estimated, and then a nonlinear fitting method is used to obtain a rough correction result. In the precise calibration stage, coefficients are added to fine-tune the coarse correction results to further improve the calibration accuracy. Compared with the traditional linear fitting correction method, the two-stage nonlinear fitting correction method can effectively improve the accuracy of temperature measurement and solve the shortcomings of large errors and small applicable temperature range in the traditional method. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flow chart of the method of the present invention;

[0040] Figure 2 A schematic diagram of a scenario when collecting data in an embodiment of the present invention;

[0041] Figure 3 Schematic diagram of the curve relationship between the relative value of the distance and the temperature difference fitted at different blackbody temperatures in an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.

[0043] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0044] like Figure 1 As shown, in a preferred implementation of the present invention, the distance compensation correction method of the infrared sensor temperature measurement result comprises the following steps S1 to S8. The specific implementation process is described in detail below.

[0045] S1. Obtain the real temperature value set for the heatable black body and the spatial distance value between the infrared sensor and the heatable black body, obtain the temperature observation data of the heatable black body at different real temperature values ​​and different spatial distance values, take the real temperature value and a group of temperature observation data at the same real temperature value as a group of distance temperature data samples, and construct a distance temperature data set from all distance temperature data samples.

[0046] It should be noted that, in the present invention, the specific process of step S1 is:

[0047] S11. After the infrared sensor and the heatable black body are pre-deployed, the real temperature value is pre-set, and a set of spatial distance values ​​is generated at equal intervals within the preset spatial distance range, and the temperature value observed by the infrared sensor at each spatial distance value is used as the temperature observation data of the heatable black body, and the real temperature value and a set of temperature observation data corresponding to the real temperature value are used as a set of distance temperature data samples; wherein, one distance temperature data sample in a set of distance temperature data samples consists of the real temperature value and one temperature observation data corresponding to the real temperature value;

[0048] S12. Change the real temperature value, reacquire new temperature observation data at each spatial distance value, generate new distance temperature data samples, and all distance temperature data samples constitute a distance temperature data set.

[0049] In this embodiment, the scene schematic diagram of collecting temperature observation data is as follows Figure 2 As shown in the figure, the plane where the infrared sensor is located is parallel to the plane where the heatable black body is located, and the entire heatable black body can be seen in the screen interface of the infrared sensor. After the infrared sensor and the heatable black body are deployed in advance, the actual temperature value T set for the heatable black body real =30℃, the preset spatial distance range is 0.1m-2m, and 20 spatial distance values ​​are generated within 0.1m-2m with d=0.1m as the starting point and 0.1m as the interval. First, place the infrared sensor at a distance of d=0.1m from the heatable black body and record the temperature T observed by the infrared sensor. measure And use it as temperature observation data. Then place the infrared sensor at a distance of d=0.2m from the heatable black body, reacquire the temperature observation data, so that each spatial distance value corresponds to a temperature observation data, until the distance between the infrared sensor and the heatable black body exceeds 2m, at this time, 20 temperature observation data with a spatial distance range of 0.1m-2m are obtained when the real temperature is 30℃. The real temperature of 30℃ and the 20 temperature observation data corresponding to the real temperature of 30℃ are taken as a set of distance temperature data samples and added to the distance temperature data set. Change the real temperature, repeat the above process when the real temperature is 40℃, 45℃, 50℃, 55℃, 60℃ and 70℃, and finally obtain 7 sets of distance temperature data samples under 7 real temperatures (30℃, 40℃, 45℃, 50℃, 55℃, 60℃ and 70℃), each set of distance temperature data samples contains 20 temperature observation data, and generate the distance temperature data set from these temperature observation data under different real temperatures and different spatial distances.

[0050] S2. After dividing the distance temperature data set into a training set and a test set, a polynomial fitting is performed on the distance temperature data samples in the training set. Each distance temperature data sample corresponds to a polynomial fitting curve to be solved. The independent variable of each polynomial fitting curve to be solved is the spatial distance value between the infrared sensor and the heatable black body, and the dependent variable of each polynomial fitting curve to be solved is the relative value of the temperature difference between the true temperature value and the temperature observation data.

[0051] Furthermore, the relative value p of the temperature difference between the actual temperature value and the temperature observation data is calculated as follows:

[0052]

[0053] Among them, T real Indicates the true temperature value, T measure Represents temperature observation data.

[0054] It should be noted that in the present invention, it is necessary to select a part of the data in the distance temperature data set as a training set and another part of the data as a test set. The training set is used to fit the curve, and the test set is used to evaluate the performance of the fitting curve. The division method of this distance temperature data set is arbitrary. In this embodiment, two groups of distance temperature data samples corresponding to the real temperatures of 45°C and 55°C are used as test sets, and five groups of distance temperature data samples corresponding to the real temperatures of 30°C, 40°C, 50°C, 60°C and 70°C are used as training sets.

[0055] It should be noted that after the training set and the test set are divided, a polynomial fitting is performed on the distance temperature data samples in the training set. In this embodiment, a polynomial fitting curve to be solved is obtained for each true temperature value, and the relative value p of the temperature difference between the true temperature value and the 20 temperature observation data corresponding to the true temperature value is obtained respectively. The relative value p of the temperature difference corresponding to the same true temperature value is used as a dependent variable of the polynomial fitting curve to be solved, and the independent variable is the spatial distance value d between the infrared sensor and the heatable black body. When fitting, the polynomial selected is a fifth-order polynomial.

[0056] It should also be noted that the polynomial fitting curve obtained by the present invention is parameter-containing, and it is a fifth-order polynomial curve. The parameters to be solved are the coefficients before each polynomial in the polynomial fitting curve. These parameters are to be solved by the least square method, so that the specific expression of the polynomial fitting curve is obtained. S3. The average value of all relative values ​​of temperature difference belonging to the same spatial distance value is taken as the average relative value of temperature difference, and the average relative value of temperature difference obtained under each spatial distance value is subjected to polynomial fitting to obtain the average fitting curve to be solved. The independent variable of the average fitting curve to be solved is the spatial distance value between the infrared sensor and the heatable black body, and the dependent variable of the average fitting curve to be solved is the average relative value of temperature difference.

[0057] In the polynomial fitting curves obtained at five different temperatures in this embodiment, the dependent variables with the same spatial distance value are averaged to obtain the average temperature difference relative value. One average temperature difference relative value is obtained for each spatial distance value, so a total of 20 average temperature difference relative values ​​are obtained. The average temperature difference relative value is used as the dependent variable, and the spatial distance value is used as the independent variable. A fifth-order polynomial is used for fitting, and finally an average fitting curve y to be solved is obtained. avg (d).

[0058] S4. Substituting each spatial distance value into the average fitting curve to be solved for temperature estimation, each spatial distance value corresponds to a temperature value of the average fitting curve estimated to contain the parameter to be solved;

[0059] In this embodiment, when the spatial distance value is d, the temperature value containing the parameter to be solved estimated by the average fitting curve is:

[0060] t d =(1-y avg (d))*γ avg

[0061] Among them, γ avg Represents the parameters to be solved in the average fitted curve.

[0062] S5. Calculate the mean square error between the temperature value containing the parameter to be solved estimated by the average fitting curve and the temperature observation data in the training set to obtain a first mean square error expression, minimize the first mean square error expression by the least squares method, solve the parameter value to be solved in the average fitting curve, and obtain the average fitting curve after solution.

[0063] In step S5, the function form of the first mean square error expression Error1 is as follows:

[0064]

[0065] in, It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 30 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 40 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 50 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 60 degrees; Represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 70 degrees.

[0066] It should be noted that after obtaining the first mean square error expression, the least square method is used to solve it. In the calculation, only the parameter γ to be solved in the average fitting curve is avg is an unknown quantity. avg =30 to γ avg =70 to traverse and find that when γ avg =49.7, the first mean square error result is the smallest, so the parameter γ avg =49.7.

[0067] S6. At any spatial distance, the temperature values ​​of each true temperature value contained in the training set are predicted by the solved average fitting curve to obtain a set of compensated temperature values, each of which has a constant coefficient to be determined.

[0068] It should be noted that in step S6, a set of compensated temperature values ​​is composed of compensated temperature values ​​at actual temperature values ​​of 30°C, 40°C, 50°C, 60°C and 70°C, which are obtained as follows:

[0069]

[0070]

[0071] Among them, T 30 、T 40 、T 50 、T 60 and T 70 They represent the compensated temperature values ​​at the actual temperatures of 30°C, 40°C, 50°C, 60°C and 70°C respectively; t 30 ,t 40 ,t 50 ,t 60 and t 70 Respectively represent the observed temperature data at any spatial distance and the true temperature values ​​are 30℃, 40℃, 50℃, 60℃ and 70℃; as well as They respectively represent the temperature values ​​obtained by substituting the real temperature values ​​of 30°C, 40°C, 50°C, 60°C and 70°C into the solved average fitting curve; β is the constant coefficient to be determined.

[0072] S7. Calculate the error between each temperature value in a set of compensated temperature values ​​and the corresponding true temperature value to obtain a second mean square error expression, minimize the second mean square error expression by the least square method, and solve the constant coefficient value to be determined.

[0073] In step S7, the function form of the second mean square error expression Error2 is as follows:

[0074] Error2=(T 30 -30) 2 +(T 40 -40) 2 +(T 50 -50) 2 +(T 60 -60) 2 +(T 70 -70) 2

[0075] It should be noted that after obtaining the second mean square error expression, the least square method is applied to solve it. In the calculation, only the constant coefficient β to be determined is an unknown quantity. When β=0.707, the second mean square error result is the smallest, so β=0.707 is taken.

[0076] S8. The solved constant coefficient value and the parameter value in the solved average fitting curve are used as parameters of the distance-based temperature measurement correction formula, the spatial distance value between the infrared sensor and the heatable black body and the temperature observation data observed by the infrared sensor are used as input, and the temperature measurement correction formula outputs the compensated temperature.

[0077] From the above process, we can get the hyperparameter γ avg =49.7, β=0.007, and the complete expression of the average fitting curve can be obtained according to S5. Therefore, in step S8, the functional form of the temperature measurement correction formula is:

[0078] T(x cam )=(1+y avg (x cam ))*t cam +β*(t cam -γ avg )

[0079] Among them, T(x cam ) represents the compensated temperature output by the temperature measurement correction formula; y avg (x cam ) means that the spatial distance value x cam Substitute the result obtained by the average fitting curve after solving; t cam Represents the temperature observation data observed by the infrared sensor.

[0080] In the temperature measurement correction formula, (1+y avg (x cam ))*t cam It can be regarded as a basic compensation amount, which can be used to roughly compensate for the distance temperature attenuation, β*(t cam -γ avg ) can be considered as a further correction, which is used to make a fine correction to the coarsely compensated temperature.

[0081] It should be noted that after obtaining the temperature measurement correction formula, the spatial distance value of the distance temperature data sample in the test set and the temperature observation data are substituted into the temperature measurement correction formula, and the compensated temperature output by the temperature measurement correction formula is used as the corrected temperature. The difference between the corrected temperature and the true temperature value of the distance temperature data sample in the test set is calculated to obtain the correction error, which is used to evaluate the effect of the temperature measurement correction formula.

[0082] In this embodiment, the test set contains two groups of distance temperature data samples corresponding to the true temperatures of 45°C and 55°C, a total of 40 spatial distance values, and 40 temperature observation data of heatable black bodies at 45°C and 55°C. After obtaining the distance-based temperature measurement correction formula, any of these spatial distance value-temperature observation data pairs can be used and substituted into the temperature measurement correction formula to obtain the corrected temperature. The difference between this corrected temperature and the corresponding true temperature value (45 or 55) is used to obtain the corrected error, which is used to evaluate the effect of the temperature measurement correction formula. This corrected error is compared with the error that has not been corrected by the temperature measurement correction formula. If the corrected error is smaller than the original error, it means that the method of the present invention is effective.

[0083] In order to better demonstrate the specific implementation and technical effect of the present invention, a distance compensation correction method for the temperature measurement result of an infrared sensor shown in steps S1 to S8 in the above preferred implementation is applied to a specific example.

[0084] Example

[0085] The specific implementation process of the distance compensation correction method for the temperature measurement result of an infrared sensor used in this embodiment is as described above and will not be repeated here.

[0086] In this embodiment, taking the spatial distance between the infrared sensor and the heatable black body as 1.5 m and the temperature observation data observed by the infrared sensor as 28.6° C. as an example, the compensation process using the method of the present invention is given:

[0087] According to the temperature measurement correction formula:

[0088] T(x cam )=(1+y avg (x cam ))*t cam +β*(t cam -γ avg )

[0089] Among them, γ avg =49.7, β=0.007, x cam =1.5 and t cam =28.6, and we can calculate T(x cam )≈30.79, that is, the object temperature after compensation is 30.79℃.

[0090] In addition, Table 1 shows the error of the method of the present invention applied to the training set data. After calibration, the errors are reduced to a certain extent, indicating the effectiveness of the method of the present invention on the training set.

[0091] Table 1. Training set error

[0092]

[0093] Table 2 shows the error of the method of the present invention applied to the test set data. After calibration, the error is also reduced to a certain extent, indicating the effectiveness of the method of the present invention on the test set.

[0094] Table 2. Test set error

[0095]

[0096] like Figure 3 As shown, the actual temperature value T real They are 30℃, 40℃, 50℃, 60℃, and 70℃ respectively, and finally the polynomial fitting curves {y t},t∈{30,40,50,60,70},y t It represents the polynomial fitting curve when the true temperature value is t.

[0097] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims

1. A distance compensation correction method for infrared sensor temperature measurement results, characterized in that: The following steps are involved: S1. Obtain the real temperature value set for the heatable black body and the spatial distance value between the infrared sensor and the heatable black body, obtain the temperature observation data of the heatable black body under different real temperature values ​​and different spatial distance values, take the real temperature value and a set of temperature observation data under the same real temperature value as a set of distance temperature data samples, and construct a distance temperature data set from all the distance temperature data samples; S2. After dividing the distance temperature data set into a training set and a test set, polynomial fitting is performed on the distance temperature data samples in the training set, and each distance temperature data sample corresponds to a polynomial fitting curve to be solved, and the independent variable of each polynomial fitting curve to be solved is the spatial distance value between the infrared sensor and the heatable black body, and the dependent variable of each polynomial fitting curve to be solved is the relative value of the temperature difference between the true temperature value and the temperature observation data; S3. taking the average value of all relative temperature difference values ​​belonging to the same spatial distance value as the average relative temperature difference value, performing polynomial fitting on the average relative temperature difference values ​​obtained under each spatial distance value, and obtaining the average fitting curve to be solved, wherein the independent variable of the average fitting curve to be solved is the spatial distance value between the infrared sensor and the heatable black body, and the dependent variable of the average fitting curve to be solved is the average relative temperature difference value; S4. Substituting each spatial distance value into the average fitting curve to be solved for temperature estimation, each spatial distance value corresponds to a temperature value of the average fitting curve estimated to contain the parameter to be solved; S5. Calculate the mean square error between the temperature value containing the parameter to be solved estimated by the average fitting curve and the temperature observation data in the training set, obtain a first mean square error expression, minimize the first mean square error expression by the least square method, solve the parameter value to be solved in the average fitting curve, and obtain the average fitting curve after solving; S6. predicting the temperature values ​​of each true temperature value contained in the training set by the solved average fitting curve at any spatial distance, and obtaining a set of compensated temperature values, each temperature value in the set of compensated temperature values ​​having a constant coefficient to be determined; S7. Calculate the error between each temperature value in a set of compensated temperature values ​​and the corresponding true temperature value, obtain a second mean square error expression, minimize the second mean square error expression by the least square method, and solve the constant coefficient value to be determined; S8. The solved constant coefficient value and the parameter value in the solved average fitting curve are used as parameters of the distance-based temperature measurement correction formula, the spatial distance value between the infrared sensor and the heatable black body and the temperature observation data observed by the infrared sensor are used as input, and the temperature measurement correction formula outputs the compensated temperature.

2. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 1, characterized in that: The specific process of step S1 is: S11. After the infrared sensor and the heatable black body are pre-deployed, the real temperature value is pre-set, and a set of spatial distance values ​​is generated at equal intervals within the preset spatial distance range, and the temperature value observed by the infrared sensor at each spatial distance value is used as the temperature observation data of the heatable black body, and the real temperature value and a set of temperature observation data corresponding to the real temperature value are used as a set of distance temperature data samples; wherein, one distance temperature data sample in a set of distance temperature data samples consists of the real temperature value and one temperature observation data corresponding to the real temperature value; S12. Change the real temperature value, reacquire new temperature observation data at each spatial distance value, generate new distance temperature data samples, and all distance temperature data samples constitute a distance temperature data set.

3. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 1, characterized in that: In step S2, the relative value p of the temperature difference between the actual temperature value and the temperature observation data is calculated as follows: Among them, T real Indicates the true temperature value, T measure Represents temperature observation data.

4. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 1, characterized in that: In step S2, two groups of distance temperature data samples corresponding to the actual temperatures of 45°C and 55°C are used as test sets, and five groups of distance temperature data samples corresponding to the actual temperatures of 30°C, 40°C, 50°C, 60°C and 70°C are used as training sets.

5. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 4, characterized in that: In step S4, when the spatial distance value is d, the temperature value t containing the parameter to be solved estimated by the average fitting curve d for: t d =(1-y avg (d))*γ avg Among them, γ avg represents the parameter to be solved in the average fitting curve; y avg (d) represents the average fitting curve to be solved; d represents the spatial distance value.

6. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 5, characterized in that: In step S5, the function form of the first mean square error expression Error1 is as follows: in, It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 30 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 40 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 50 degrees; It represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 60 degrees; Represents the temperature observation data in the training set with a spatial distance value of d and a true temperature value of 70 degrees.

7. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 6, characterized in that: In step S6, a set of compensated temperature values ​​is composed of compensated temperature values ​​at actual temperature values ​​of 30°C, 40°C, 50°C, 60°C and 70°C, which are obtained as follows: Among them, T 30 , T 40 , T 50 , T 60 and T 70 They represent the compensated temperature values ​​at the actual temperatures of 30°C, 40°C, 50°C, 60°C and 70°C respectively; t 30 ,t 40 ,t 50 ,t 60 and t 70 Respectively represent the observed temperature data at any spatial distance and the true temperature values ​​are 30℃, 40℃, 50℃, 60℃ and 70℃; as well as They respectively represent the temperature values ​​obtained by substituting the real temperature values ​​of 30°C, 40°C, 50°C, 60°C and 70°C into the solved average fitting curve; β is the constant coefficient to be determined.

8. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 7, characterized in that: In step S7, the function form of the second mean square error expression Error2 is as follows: Error2=(T 30 -30) 2 +(T 40 -40) 2 +(T 50 -50) 2 +(T 60 -60) 2 +(T 70 -70) 2 。 9. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 8, characterized in that: In step S8, the function form of the temperature measurement correction formula is: T(x cam )=(1+y avg (x cam ))*t cam +β*(t cam -γ avg ) Among them, T(x cam ) represents the compensated temperature output by the temperature measurement correction formula; y avg (x cam ) means that the spatial distance value x cam Substitute the result obtained by the average fitting curve after solving; t cam Represents the temperature observation data observed by the infrared sensor.

10. A distance compensation correction method for infrared sensor temperature measurement results as claimed in claim 1, characterized in that: After obtaining the temperature measurement correction formula, the spatial distance value of the distance temperature data sample in the test set and the temperature observation data are substituted into the temperature measurement correction formula. The compensated temperature output by the temperature measurement correction formula is used as the corrected temperature. The difference between the corrected temperature and the true temperature value of the distance temperature data sample in the test set is calculated to obtain the correction error, which is used to evaluate the effect of the temperature measurement correction formula.

Citation Information

Cited By

  • Infrared temperature measurement value correction method and system based on distance compensation

    CN122217482A

  • An infrared temperature measurement value correction method and system based on distance compensation

    CN122217482B