Construction method, detection method and device of non-dispersive infrared detection carbon dioxide concentration model
By fitting the voltage signal change rate and compensation signal within the temperature range to the infrared carbon dioxide concentration model, a high-precision non-dispersive infrared detection model is constructed, which solves the problems of low accuracy and false alarms of the traditional model and achieves higher detection accuracy. and fault tolerance.
Patent Information
- Application Number
- CN202211116614.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-09-14
Smart Images

Figure CN115468925B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of infrared sensors, and in particular to a construction method, a detection method and a device for a non-dispersive infrared carbon dioxide concentration detection model. Background Art
[0002] With the continuous development of science and technology, the improvement of people's living standards and the increasing attention paid to environmental protection, the compact quantitative monitoring and control of carbon dioxide gas has become an increasing demand. The infrared carbon dioxide sensor uses a broad-spectrum light source. The light passes through the measured gas in the optical path, through the narrow-band filter, and reaches the infrared detector. During the detection process, the measurement value of the infrared detector is recorded, and then the concentration of carbon dioxide can be calculated by using the relationship between gas concentration and absorption intensity. However, because infrared carbon dioxide sensors are prone to temperature drift and are greatly affected by time and environment, the calculation accuracy of the traditional infrared detection carbon dioxide concentration model is not high, false alarms are prone to occur, and the system requires frequent calibration.
[0003] Therefore, there is an urgent need for a method to construct a non-dispersive infrared detection model of carbon dioxide concentration that can improve calculation accuracy. Summary of the invention
[0004] Based on this, one of the purposes of this application is to provide a method for constructing a non-dispersive infrared detection model of carbon dioxide concentration that can improve calculation accuracy.
[0005] The method for constructing a non-dispersive infrared carbon dioxide concentration detection model provided in an embodiment of the present application includes the following steps:
[0006] For m known concentrations, C1, C2, ... and C m The corresponding sets of voltage signal values and detection temperatures at n different set temperatures are obtained by using carbon dioxide standard samples of different concentrations: {(AD 11 / T 11 , A.D. 21 / T 21 ...AD m1 / T m1 )、(AD 12 / T 12 , A.D. 22 / T 22 ...AD m2 / T m2 )……(AD 1n / T 1n , A.D. 2n / T 2n ...AD mn / T mn)}, where AD is the voltage signal value, T is the detected temperature, m and n are each independently a positive integer greater than 1, and “ / ” indicates a corresponding relationship;
[0007] The temperature interval is composed of adjacent set temperatures, and the voltage signal change rate K of each concentration standard sample in each temperature interval is calculated according to the following formula: pq :
[0008] K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) );
[0009] Wherein, p is a positive integer from 1 to m, and q is a positive integer from 2 to n;
[0010] K calculated with each concentration standard in each temperature range pq As the vertical axis, AD pq As the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range:
[0011] F(x)=a q *x^2+b q *x+c q ;
[0012] For the set temperature t i The concentrations of the standard samples under C p As the vertical axis, AD pi As the horizontal axis, linear fitting is performed. At least two points are selected for each linear fitting, and the equations of the j fitting lines y=e ij *x+f ij and the AD value interval used when fitting each fitting straight line equation, where i is a positive integer from 1 to n, and j is a positive integer from 1 to (m-1);
[0013] Preferably, the set temperature t i is 25℃.
[0014] In one embodiment, m is a positive integer > 2;
[0015] Preferably, j is a positive integer ≥ 2;
[0016] More preferably, j is a positive integer ≥5.
[0017] In one embodiment, the set temperature t i The AD value intervals corresponding to the different fitted straight line equations under do not overlap or have common endpoints;
[0018] Preferably, two points are selected for each linear fitting, and the vertical coordinates of the two points are adjacent.
[0019] In one embodiment, the n different set temperatures include a high temperature, a second high temperature, a second low temperature and a low temperature which are successively lowered in temperature and do not exceed the highest temperature point of the non-dispersive infrared detection device.
[0020] In one embodiment, the different concentrations of carbon dioxide standard samples do not include a blank sample with a carbon dioxide concentration of 0 ppm;
[0021] Optionally, the standard samples of carbon dioxide with different concentrations include a zero-point sample with a carbon dioxide concentration of 500 ppm.
[0022] Another object of the present application is to provide a method for detecting carbon dioxide concentration by non-dispersive infrared detection, using the model constructed by the above construction method, the detection method comprises the following steps:
[0023] Get the voltage signal value AD of the sample to be tested 待测 and the detection temperature T 待测 ;
[0024] According to the detected temperature T 待测 In the temperature range, select the temperature compensation relationship F(x) = a q *x^2+b q *x+c q , AD 待测 Substitute x into the calculation of F(x), that is, K 补偿 ;
[0025] The set temperature t is selected from the two end point set temperatures of the temperature range. i The closer the endpoint set temperature T 设定 , according to the formula K 补偿 =(AD 待测 -AD 设定 ) / (T 待测 -T 设定 ) Calculate AD 设定 ;
[0026] If T 设定 Not the set temperature t i , then continue to use the temperature compensation relationship and formula K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ) until T is obtained 设定 The set temperature t i The voltage signal value AD i ;
[0027] At the set temperature t i The AD value interval used for fitting is selected from the multiple fitting lines under AD i The fitting straight line equation is AD i Substitute x into the fitted straight line equation to calculate the measured concentration of the sample to be tested.
[0028] Another object of the present application is to provide a device for constructing a non-dispersive infrared detection model of carbon dioxide concentration, comprising:
[0029] The standard sample data acquisition module is used to obtain m known concentrations of C1, C2, ... and C m The corresponding sets of voltage signal values and detection temperatures at n different set temperatures are obtained by using carbon dioxide standard samples of different concentrations: {(AD 11 / T 11 , A.D. 21 / T 21 ...AD m1 / T m1 )、(AD 12 / T 12 , A.D. 22 / T 22 ...AD m2 / T m2 )……(AD 1n / T 1n , A.D. 2n / T 2n ...AD mn / T mn )}, where AD is the voltage signal value, T is the detected temperature, m and n are each independently a positive integer greater than 1, and “ / ” indicates a corresponding relationship;
[0030] The change rate calculation module is used to form a temperature interval with adjacent set temperatures, and calculate the voltage signal change rate K of each concentration standard sample in each temperature interval according to the following formula pq :
[0031] K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) );
[0032] Wherein, p is a positive integer from 1 to m, and q is a positive integer from 2 to n;
[0033] Temperature compensation calculation module, used to calculate K obtained by each concentration standard sample in each temperature range pq As the vertical axis, AD pqAs the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range:
[0034] F(x)=a q *x^2+b q *x+c q ;
[0035] Linear fitting module is used to set the temperature t i The concentrations of the standard samples under C p As the vertical axis, AD pi As the horizontal axis, linear fitting is performed. At least two points are selected for each linear fitting, and the equations of the j fitting lines y=e ij *x+f ij and the AD value interval used when fitting each fitting straight line equation, where i is a positive integer from 1 to n, and j is a positive integer from 1 to (m-1);
[0036] Preferably, the set temperature t i is 25℃.
[0037] Another object of the present application is to provide a non-dispersive infrared carbon dioxide concentration detection device, using the model constructed by the above construction method, the detection device comprises:
[0038] The detection data acquisition module is used to obtain the voltage signal value AD of the sample to be tested. 待测 and the detection temperature T 待测 ;
[0039] The compensation calculation module is used to calculate the temperature according to the detection temperature T 待测 In the temperature range, select the temperature compensation relationship F(x) = a q *x^2+b q *x+c q , AD 待测 Substitute x into the calculation of F(x), that is, K 补偿 ;
[0040] The voltage signal value calculation module is used to select the set temperature t between the two end set temperatures in the temperature range. i The closer the endpoint set temperature T 设定 , according to the formula K 补偿 =(AD 待测 -AD 设定 ) / (T 待测 -T 设定 ) Calculate AD 设定 ;
[0041] If T 设定 Not the set temperature ti , then continue to use the temperature compensation relationship and formula K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ) until T is obtained 设定 The set temperature t i The voltage signal value AD i ;
[0042] At the set temperature t i The AD value interval used for fitting is selected from the multiple fitting lines under AD i The fitting straight line equation is AD i Substitute x into the fitted straight line equation to calculate the measured concentration of the sample to be tested.
[0043] Another object of the present application is to provide a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements all steps of the above-mentioned construction method or the above-mentioned detection method when executing the computer program.
[0044] Another object of the present application is to provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements all steps of the above-mentioned construction method or the above-mentioned detection method when executed by a processor.
[0045] The above-mentioned method for constructing the non-dispersive infrared detection model of carbon dioxide concentration divides the temperature into multiple intervals, calculates the temperature compensation for each temperature interval, and compensates the temperature compensation to the actual measured voltage signal value in the form of a voltage signal value, and then uses the compensated voltage signal value as an input value to calculate the carbon dioxide concentration. Among them, the temperature compensation method is to fit the change rate and compensation signal value of each interval separately, and fit them into a quadratic polynomial. The R of the obtained model is 2 Compared with the traditional Lambert-Beer method linear fitting, it is closer to 1, with higher calculation accuracy and higher fault tolerance. When linearly fitting the voltage signal value and the carbon dioxide concentration value, the voltage signal value is divided into multiple intervals for segmented fitting, which is more targeted and can further reduce errors and improve accuracy.
[0046] Furthermore, when constructing a model using the above construction method, there is no need to measure the absorbance at 0 ppm. The signal AD value of 500 ppm can be used as the zero point, which is convenient for detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic diagram of a fitting curve and a temperature compensation relationship within a temperature range;
[0048] Figure 2Schematic diagram of the fitting straight line and the fitting straight line equation at 25°C. DETAILED DESCRIPTION
[0049] In order to facilitate the understanding of the present invention, the present invention will be described more comprehensively below. Preferred embodiments of the present invention are given below. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0051] The non-dispersive infrared technology described in this article, referred to as NDIR, is a spectral gas detection method based on gas absorption theory. Its principle is: after the infrared radiation emitted by the infrared light source is absorbed by the gas to be measured at a certain concentration, the light intensity at a specific wavelength will change corresponding to the gas concentration, and its change law can be described by the Lambert-Beer absorption law. Therefore, the gas concentration can be calculated based on the change in light intensity.
[0052] The principle of NDIR carbon dioxide sensor is to detect the absorption of carbon dioxide molecules to a specific wavelength, and then calculate the carbon dioxide concentration according to the Lambert-Beer absorption theorem based on the measured absorption intensity. The composition of NDIR detector includes: infrared light source, detector, air chamber and data acquisition system. The infrared light source emits infrared rays in a specific wavelength range, and the detector only receives infrared spectrum lines of a specific wavelength through a filter. The infrared light source and detector are placed in the air chamber, and the air chamber is equipped with a temperature sensor and a temperature box. The actual detection temperature is collected by the temperature sensor, and the output result of the NDIR sensor is comprehensively compensated, so that the final output value of the sensor is closer to the true value, improving the accuracy and precision of the sensor measurement data.
[0053] Residual sum of squares R 2 It is a physical quantity that measures the degree of model fit in a linear model. In statistics, the difference between a data point and its corresponding position on the regression line is called a residual, and the sum of the squares of each residual is called the residual sum of squares, which is equivalent to the sum of the squares of the difference between the actual value and the predicted value.
[0054] Temperature drift refers to the change in semiconductor device parameters caused by temperature changes. It is the main cause of zero-point drift and is referred to as temperature drift.
[0055] An embodiment of the present application provides a method for constructing a non-dispersive infrared detection model of carbon dioxide concentration, which comprises the following steps:
[0056] Step S110: For m known concentrations, C1, C2, ... and C m The corresponding sets of voltage signal values and detection temperatures at n different set temperatures are obtained by using carbon dioxide standard samples of different concentrations: {(AD 11 / T 11 , A.D. 21 / T 21 ...AD m1 / T m1 )、(AD 12 / T 12 , A.D. 22 / T 22 ...AD m2 / T m2 )……(AD 1n / T 1n , A.D. 2n / T 2n ...AD mn / T mn )}, where AD is the voltage signal value, T is the detected temperature, m and n are each independently a positive integer greater than 1, and “ / ” indicates a corresponding relationship;
[0057] Step S120: The temperature intervals are formed by adjacent set temperatures, and the voltage signal change rate K of each concentration standard sample in each temperature interval is calculated according to the following formula: pq :
[0058] K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) );
[0059] Wherein, p is a positive integer from 1 to m, and q is a positive integer from 2 to n;
[0060] Step S130: K calculated with each concentration standard sample in each temperature range pq As the vertical axis, AD pq As the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range:
[0061] F(x)=a q *x^2+b q *x+c q ;
[0062] Step S140: Set the temperature t i The concentrations of the standard samples under Cp As the vertical axis, AD pi As the horizontal axis, linear fitting is performed. At least two points are selected for each linear fitting, and the equations of the j fitting lines y=e ij *x+f ij And the AD value interval used when fitting each fitting straight line equation, where i is a positive integer from 1 to n, and j is a positive integer from 1 to (m-1).
[0063] In one example, m is a positive integer >2.
[0064] Preferably, j is a positive integer ≥2.
[0065] More preferably, j is a positive integer ≥5.
[0066] In one example, the set temperature t i is 25℃.
[0067] In one example, the set temperature t i The AD value intervals corresponding to the different fitted straight line equations do not overlap or have common endpoints.
[0068] Preferably, two points are selected for each linear fitting, and the vertical coordinates of the two points are adjacent.
[0069] In one example, the n different set temperatures include a high temperature, a second high temperature, a second low temperature, and a low temperature, which are successively lowered in temperature and do not exceed the highest temperature point of the non-dispersive infrared detection device.
[0070] In one example, the different concentrations of CO2 standards do not include a blank sample with a CO2 concentration of 0 ppm.
[0071] Optionally, the standard samples of carbon dioxide with different concentrations include a zero-point sample with a carbon dioxide concentration of 500 ppm.
[0072] The following is a specific example to further illustrate the method of constructing a non-dispersive infrared detection model of carbon dioxide concentration.
[0073] Step S210: Control the incubator temperature of the sensor at the high temperature TT1, and introduce 6 different concentrations of carbon dioxide standard samples with known concentrations of PPM1, PPM2... and PPM6 into the incubator respectively, and record the sets of sensor signal values and detection temperatures corresponding to each other, as shown in Table 1 below: AD1 / T1, AD2 / T2... and AD6 / T6.
[0074] Step S220: Control the temperature of the sensor's incubator at the sub-high temperature TT2, the sub-low temperature TT3 and the low temperature TT4 respectively, repeat step S210, and record the sets of sensor signal values and detection temperatures corresponding to each other, as shown in Table 1 below: AD7 / T7, AD8 / T8... and AD24 / T24.
[0075] Table 1
[0076]
[0077] Step S230: The three temperature intervals (TT4-TT3), (TT3-TT2) and (TT2-TT1) are formed by using adjacent set temperatures, and the voltage signal change rate K of each concentration standard sample in each temperature interval is calculated according to the following formula: pq :
[0078] K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) );
[0079] For example, in the temperature range (TT2-TT1), the voltage signal change rate K of the carbon dioxide standard with a concentration of PPM1 is PPM1-(TT2~TT1) =(AD1-AD7) / (T1-T7).
[0080] Step S240: In each temperature range, the K calculated with each concentration standard sample in step S230 is pq As the vertical axis, AD pq As the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range:
[0081] F(x)=a q *x^2+b q *x+c q ;
[0082] For example, the fitting curve and temperature compensation relationship in the temperature range (TT2~TT1) are as follows: Figure 1 As shown, the temperature compensation relationship is F(x) = a (TT2~TT1) *x^2+b (TT2~TT1) *x+c (TT2~TT1) .
[0083] Step S250: For each concentration standard sample at the temperature TT2, p As the vertical axis, AD p-TT2 As the horizontal axis, linear fitting is performed. At least two points are selected for each linear fitting. The equations of the j fitting lines y=e are obtained at the temperature TT2. TT2-j*x+f TT2-j And the AD value range used when fitting each fitting straight line equation.
[0084] For example, with signal values AD7, AD8 ... and AD12 as the horizontal coordinates and concentration values PPM1, PPM2 ... and PPM6 as the vertical coordinates, the signal values and the corresponding concentration values are divided into 5 segments, and each segment is fitted separately to obtain 5 fitting lines. The fitting lines are as follows: Figure 2 shown.
[0085] Another embodiment of the present application further provides a method for detecting carbon dioxide concentration by non-dispersive infrared detection, which uses the model constructed by the above-mentioned model construction method, and the detection method comprises the following steps:
[0086] Step S310: Obtain the voltage signal value AD of the sample to be tested 待测 and the detection temperature T 待测 .
[0087] Step S320: According to the detected temperature T 待测 In the temperature range, select the temperature compensation relationship F(x) = a q *x^2+b q *x+c q , AD 待测 Substitute x into the calculation of F(x), that is, K 补偿 .
[0088] Step S330: Select the set temperature t from the two end point set temperatures in the temperature range. i The closer the endpoint set temperature T 设定 , according to the formula K 补偿 =(AD 待测 -AD 设定 ) / (T 待测 -T 设定 ) Calculate AD 设定 ;
[0089] If T 设定 Not the set temperature t i , then continue to use the temperature compensation relationship and formula K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ) until T is obtained 设定 The set temperature t i The voltage signal value AD i .
[0090] Step S340: At the set temperature t iThe AD value interval used for fitting is selected from the multiple fitting lines under AD i The fitting straight line equation is AD i Substitute x into the fitted straight line equation to calculate the measured concentration of the sample to be tested.
[0091] Furthermore, another embodiment of the present application provides a device for constructing a non-dispersive infrared detection model of carbon dioxide concentration. The device can use a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes:
[0092] The standard sample data acquisition module is used to obtain m known concentrations of C1, C2, ... and C m The corresponding sets of voltage signal values and detection temperatures at n different set temperatures are obtained by using carbon dioxide standard samples of different concentrations: {(AD 11 / T 11 , A.D. 21 / T 21 ...AD m1 / T m1 )、(AD 12 / T 12 , A.D. 22 / T 22 ...AD m2 / T m2 )……(AD 1n / T 1n , A.D. 2n / T 2n ...AD mn / T mn )}, where AD is the voltage signal value, T is the detected temperature, m and n are each independently a positive integer greater than 1, and “ / ” indicates a corresponding relationship;
[0093] The change rate calculation module is used to form a temperature interval with adjacent set temperatures, and calculate the voltage signal change rate K of each concentration standard sample in each temperature interval according to the following formula pq :
[0094] K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) )
[0095] Wherein, p is a positive integer from 1 to m, and q is a positive integer from 2 to n;
[0096] Temperature compensation calculation module, used to calculate K obtained by each concentration standard sample in each temperature range pq As the vertical axis, AD pqAs the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range:
[0097] F(x)=a q *x^2+b q *x+c q ;
[0098] Linear fitting module is used to set the temperature t i The concentrations of the standard samples under C p As the vertical axis, AD pi As the horizontal axis, linear fitting is performed. At least two points are selected for each linear fitting, and the equations of the j fitting lines y=e ij *x+f ij and the AD value interval used when fitting each fitting straight line equation, where i is a positive integer from 1 to n, and j is a positive integer from 1 to (m-1);
[0099] Preferably, the set temperature t i is 25℃.
[0100] Furthermore, another embodiment of the present application provides a non-dispersive infrared detection device for carbon dioxide concentration detection, using the model constructed by the above-mentioned model construction method. The device can use a software module or a hardware module, or a combination of the two to become a part of a computer device. The detection device includes:
[0101] The detection data acquisition module is used to obtain the voltage signal value AD of the sample to be tested. 待测 and the detection temperature T 待测 ;
[0102] The compensation calculation module is used to calculate the temperature according to the detection temperature T 待测 In the temperature range, select the temperature compensation relationship F(x) = a q *x^2+b q *x+c q , AD 待测 Substitute x into the calculation of F(x), that is, K 补偿 ;
[0103] The voltage signal value calculation module is used to select the set temperature t between the two end set temperatures in the temperature range. i The closer the endpoint set temperature T 设定 , according to the formula K 补偿 =(AD 待测 -AD 设定 ) / (T 待测 -T 设定 ) Calculate AD 设定 ;
[0104] If T 设定 Not the set temperature t i , then continue to use the temperature compensation relationship and formula K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ) until T is obtained 设定 The set temperature t i The voltage signal value AD i ;
[0105] At the set temperature t i The AD value interval used for fitting is selected from the multiple fitting lines under AD i The fitting straight line equation is AD i Substitute x into the fitted straight line equation to calculate the measured concentration of the sample to be tested.
[0106] Regarding the specific limitations of the device for constructing a non-dispersive infrared detection carbon dioxide concentration model and the non-dispersive infrared detection carbon dioxide concentration detection device, please refer to the limitations of the method for constructing a non-dispersive infrared detection carbon dioxide concentration model and the method for detecting carbon dioxide concentration by non-dispersive infrared detection, which will not be repeated here. Each module in the above-mentioned device for constructing a non-dispersive infrared detection carbon dioxide concentration model and the non-dispersive infrared detection carbon dioxide concentration detection device can be fully or partially implemented by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
[0107] Another embodiment of the present application provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, all steps of the above-mentioned construction method or the above-mentioned detection method are implemented.
[0108] Another embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, all the steps of the above-mentioned construction method or the above-mentioned detection method are implemented.
[0109] Another embodiment of the present application provides a computer program product, including a computer program, which implements all the steps of the above-mentioned construction method or the above-mentioned detection method when executed by a processor.
[0110] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0111] The following are specific embodiments.
[0112] Step S410: The temperature of the incubator of the sensor is controlled at a maximum of 55°C, and six carbon dioxide standard samples with known concentrations of PPM1, PPM2... and PPM6 are introduced into the incubator respectively, and the sets of sensor signal values and detection temperatures corresponding to the samples are recorded respectively, as shown in Table 1 below.
[0113] Step S420: Control the temperature of the incubator of the sensor at -10°C, 5°C and 25°C respectively, repeat step S410, and record the sets of sensor signal values and detection temperatures respectively, as shown in Table 2 below.
[0114] Table 2
[0115]
[0116]
[0117] Step S430: The three temperature intervals (-10°C to 5°C), (5°C to 25°C) and (25°C to 55°C) are formed by using adjacent set temperatures. The voltage signal change rate K of each concentration standard sample in each temperature interval is calculated according to the following formula: pq , as shown in Table 3 below:
[0118] K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) );
[0119] For example, in the temperature range of (25℃~55℃), the voltage signal change rate K of the standard sample with a concentration of 500ppm of carbon dioxide is 500ppm-(25℃~55℃) =(28200-28822) / (55.5-27.3)=-22.0567375886525.
[0120] Table 3
[0121]
[0122] Step S440: In each temperature range, the K calculated with each concentration standard sample in step S430 is pq As the vertical axis, AD pq As the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range:
[0123] F(x)=a q *x^2+b q *x+c q ;
[0124] The temperature compensation relationships in the temperature ranges of (55℃~25℃), (25℃~5℃) and (5℃~-10℃) are:
[0125] K (25℃~55℃) =-0.000000061620x 2 +0.003189605033x-63.116300981062;
[0126] K (25℃~5℃) =-0.000000149919x 2 +0.008494403490x-160.330702002065;
[0127] K (5℃~-10℃) =-0.000000367292x 2 +0.022128252112x-367.578994303053.
[0128] Step S450: With the signal values 28822, 27353, 26009, 23699, 21891 and 20120 at 25°C as the abscissas, and the concentration values 500ppm, 1000ppm, 1500ppm, 2500ppm, 3500ppm and 5000ppm as the ordinates, the signal values and the corresponding concentration values are divided into 5 segments, and each segment is fitted separately to obtain 5 fitting lines:
[0129] (28822~27353) segment: y=-0.340367597005x+10310.074880871300;
[0130] (27353~26009) segment: y=-0.372023809524x+11175.967261904800;
[0131] (26009~23699) segment: y=-0.432900432900x+12759.307359307400;
[0132] (23699~21891) segment: y=-0.553097345133x+15607.853982300900;
[0133] (21891~20120) segment: y=-0.846979107849x+22041.219649915300.
[0134] Taking carbon dioxide with a concentration of 1429 ppm as the test sample, the accuracy of the non-dispersive infrared detection method of carbon dioxide concentration based on the model constructed using the above model building method was verified.
[0135] The detection method includes the following steps:
[0136] Step S510: Obtain the voltage signal value AD of the sample to be tested 待测 26877 and the detection temperature T 待测 It is 8.2℃.
[0137] Step S520: According to the temperature interval (25°C to 5°C) where the detected temperature is 8.2°C, select the temperature compensation equation:
[0138] K (25℃~5℃) =-0.000000149919x 2 +0.008494403490x-160.330702002065, AD 待测 = 26877 as x to calculate F(x), that is, K 补偿 is -40.32407653.
[0139] Step S530: Set 25°C as T 设定 , according to the formula K 补偿 =(AD 待测 -AD 设定 ) / (T 待测 -T 设定 ) Calculate AD 设定 is 26106.81014;
[0140] Step S540: Select from among the multiple fitting lines at 25°C an AD value range that covers AD 设定 The fitting straight line equation is
[0141] (27353~26009) segment: y=-0.372023809524x+11175.967261904800;
[0142] AD 设定 =26106.81014 as x is substituted into the fitting linear equation to calculate the measured concentration of the sample to be tested, y=1463.6123 ppm, which is within the range of ±(50+ppm*5%) from the actual concentration of 1429 ppm.
[0143] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0144] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for constructing a non-dispersive infrared carbon dioxide concentration detection model. It is characterized in that The steps include: For m known concentrations, C 1 , C 2 ...and C m The corresponding sets of voltage signal values and detection temperatures at n different set temperatures are obtained by using carbon dioxide standard samples of different concentrations: {(AD 11 / T 11 , A.D. 21 / T 21 ...AD m1 / T m1 )、(AD 12 / T 12 , A.D. 22 / T 22 ...AD m2 / T m2 )……(AD 1n / T 1n , A.D. 2n / T 2n ...AD mn / T mn )}, where AD is the voltage signal value, T is the detection temperature, m and n are each independently a positive integer greater than 1, " / " indicates a corresponding relationship, and the carbon dioxide standards of different concentrations do not include a blank sample with a carbon dioxide concentration of 0 ppm; The temperature interval is composed of adjacent set temperatures, and the voltage signal change rate K of each concentration standard sample in each temperature interval is calculated according to the following formula: pq : K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ) Wherein, p is a positive integer from 1 to m, and q is a positive integer from 2 to n; K calculated with each concentration standard in each temperature range pq As the vertical axis, AD pq As the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range: F(x)=a q *x^2+b q *x+c q ; For the set temperature t i The concentrations of the standard samples under C p As the vertical axis, AD pi As the horizontal axis, linear fitting is performed. At least two points are selected for each linear fitting, and the equations of the j fitting lines y=e are obtained respectively. j *x+f j And the AD value interval used when fitting each fitting straight line equation, where j is a positive integer from 1 to (m-1); The set temperature t i is 25°C; the set temperature t i The AD value intervals corresponding to different fitting straight line equations do not overlap.
2. The method for constructing a non-dispersive infrared carbon dioxide concentration detection model as claimed in claim 1, It is characterized in that m is a positive integer greater than 2; j is a positive integer greater than or equal to 2.
3. The method for constructing a non-dispersive infrared carbon dioxide concentration model as claimed in claim 1, It is characterized in that j is a positive integer ≥5.
4. The method for constructing a non-dispersive infrared carbon dioxide concentration model as claimed in claim 2, It is characterized in that Two points are selected for each linear fitting, and the vertical coordinates of the two points are adjacent.
5. The method for constructing a non-dispersive infrared carbon dioxide concentration detection model as claimed in claim 1, It is characterized in that The n different set temperatures include a high temperature, a second high temperature, a second low temperature and a low temperature which are successively decreased in temperature and do not exceed the highest temperature point of the non-dispersive infrared detection device.
6. The method for constructing a non-dispersive infrared carbon dioxide concentration detection model according to any one of claims 1 to 5, It is characterized in that The different concentrations of carbon dioxide standards include a zero-point sample with a carbon dioxide concentration of 500 ppm.
7. A method for detecting carbon dioxide concentration by non-dispersive infrared detection, It is characterized in that The model constructed using the construction method according to any one of claims 1 to 6, wherein the detection method comprises the following steps: Get the voltage signal value AD of the sample to be tested 待测 and the detection temperature T 待测 ; According to the detected temperature T 待测 In the temperature range, select the temperature compensation relationship F(x)=a q *x^2+b q *x+c q , AD 待测 Substitute x into the calculation of F(x), that is, K 补偿 ; Select the set temperature t from the two end point set temperatures in this temperature range. i The closer the endpoint set temperature T 设定 , according to the formula K 补偿 =(AD 待测 -AD 设定 ) / (T 待测 -T 设定 ) Calculate AD 设定 ; If T 设定 Not the set temperature t i , then continue to use the temperature compensation relationship and formula K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ) until T is obtained 设定 The set temperature t i The voltage signal value AD i ; At the set temperature t i The AD value interval used for fitting is selected from the multiple fitting lines under AD i The fitting straight line equation is AD i Substitute x into the fitted straight line equation to calculate the measured concentration of the sample to be tested.
8. A device for constructing a non-dispersive infrared carbon dioxide concentration model, It is characterized in that include: The standard sample data acquisition module is used to obtain m known concentrations of C 1 , C 2 ...and C m The corresponding sets of voltage signal values and detection temperatures at n different set temperatures are obtained by using carbon dioxide standard samples of different concentrations: {(AD 11 / T 11 , A.D. 21 / T 21 ...AD m1 / T m1 )、(AD 12 / T 12 , A.D. 22 / T 22 ...AD m2 / T m2 )……(AD 1n / T 1n , A.D. 2n / T 2n ...AD mn / T mn )}, where AD is the voltage signal value, T is the detection temperature, m and n are each independently a positive integer greater than 1, " / " indicates a corresponding relationship, and the carbon dioxide standards of different concentrations do not include a blank sample with a carbon dioxide concentration of 0 ppm; The change rate calculation module is used to form a temperature interval with adjacent set temperatures, and calculate the voltage signal change rate K of each concentration standard sample in each temperature interval according to the following formula pq : K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ); Wherein, p is a positive integer from 1 to m, and q is a positive integer from 2 to n; Temperature compensation calculation module, used to calculate K obtained by each concentration standard sample in each temperature range pq As the vertical axis, AD pq As the horizontal axis, a one-dimensional quadratic fitting is performed to obtain the temperature compensation relationship in each temperature range: F(x)=a q *x^2+b q *x+c q ; Linear fitting module is used to set the temperature t i The concentrations of the standard samples under C p As the vertical axis, AD pi As the horizontal axis, linear fitting is performed. At least two points are selected for each linear fitting, and the equations of the j fitting lines y=e are obtained respectively. j *x+f j And the AD value interval used when fitting each fitting straight line equation, where j is a positive integer from 1 to (m-1); The set temperature t i is 25°C; the set temperature t i The AD value intervals corresponding to different fitting straight line equations do not overlap.
9. A non-dispersive infrared carbon dioxide concentration detection device, It is characterized in that The model constructed using the construction method according to any one of claims 1 to 5, wherein the detection device comprises: The detection data acquisition module is used to obtain the voltage signal value AD of the sample to be tested. 待测 and the detection temperature T 待测 ; The compensation calculation module is used to calculate the temperature according to the detection temperature T 待测 In the temperature range, select the temperature compensation relationship F(x)=a q *x^2+b q *x+c q , AD 待测 Substitute x into the calculation of F(x), that is, K 补偿 ; The voltage signal value calculation module is used to select the set temperature t at the two end points of the temperature range. i The closer the endpoint set temperature T 设定 , according to the formula K 补偿 =(AD 待测 -AD 设定 ) / (T 待测 -T 设定 ) Calculate AD 设定 ; If T 设定 Not the set temperature t i , then continue to use the temperature compensation relationship and formula K pq =(AD pq -AD p(q-1) ) / (T pq -T p(q-1) ) calculation until T 设定 The set temperature t i The voltage signal value is AD i ; The concentration calculation module is used to calculate the concentration of i The AD value range used for fitting is selected from the multiple fitting lines under AD i The fitting straight line equation is AD i Substitute x into the fitted straight line equation to calculate the measured concentration of the sample to be tested.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, all steps of the construction method described in any one of claims 1 to 6 or the detection method described in claim 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, all steps of the construction method described in any one of claims 1 to 6 or the detection method described in claim 7 are implemented.
