Graded lightweight correction method for cross sensitivity of electrochemical gas sensor
By employing a hierarchical lightweight calibration method, and utilizing polynomial fitting and matrix operations, the cross-sensitivity problem of electrochemical gas sensors in complex environments was solved. This enabled real-time calibration with high precision, low latency, and low power consumption on resource-constrained devices, thereby improving the reliability and accuracy of the sensors.
Patent Information
- Application Number
- CN202511708495.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-03-17
- Estimated Expiration
- 2045-11-20
AI Technical Summary
Existing electrochemical gas sensors suffer from cross-sensitivity issues in complex multi-component gas environments, leading to decreased detection accuracy. Current calibration methods are computationally complex and resource-intensive on resource-constrained edge devices, making it difficult to achieve high-precision, low-latency, and low-power real-time calibration.
A hierarchical lightweight calibration method is adopted, which constructs a calibration model for the sensor through first-order, second-order, and third-order calibration steps, using polynomial fitting and matrix operations. This reduces computational complexity and resource requirements, making it suitable for resource-constrained edge devices.
It achieves high-precision, low-latency, and low-power real-time cross-sensitivity correction on resource-constrained edge devices, improving the reliability and practicality of electrochemical gas sensors in complex environments.
Smart Images

Figure CN121678802A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of measurement test technology, and in particular to a hierarchical lightweight correction method for cross-sensitivity of electrochemical gas sensors. BACKGROUND
[0002] Electrochemical gas sensors have the characteristics of low cost and power consumption, high sensitivity, and fast response, and can effectively detect specific target gases (such as CO, H2S, SO2, NO2, O3, Cl2), and have been widely used in many fields of gas detection, such as environmental air quality monitoring, industrial process control, safety protection, and medical diagnosis.
[0003] When an electrochemical sensor contacts a to-be-detected substance, an electrochemical reaction occurs on the electrode, resulting in changes in current, electric quantity, etc. By detecting the changes in the above electrical quantities in the electrochemical reaction, the composition and content of the substance can be measured. However, electrochemical gas sensors are not only responsive to target gases, but also have the property of electrochemical reaction to produce changes in electrical quantities for non-target gases, which is cross-sensitivity. Cross-sensitivity causes the output signal of the sensor to not respond to the concentration information of the target gas in a simple linear manner, affecting the detection accuracy of the target gas concentration, and even possibly leading to false reporting of the concentration. In the scenario of coexistence of complex multi-component gases, the influence of cross-sensitivity of electrochemical sensors is more serious. Therefore, in order to improve the reliability, measurement accuracy and application range of electrochemical sensors, the influence of cross-sensitivity must be overcome.
[0004] The industry has proposed many solutions to the problem of cross-sensitivity, focusing on the sensing end and processing end of electrochemical sensors, mainly divided into hardware improvement and optimization, algorithm identification, and concentration inversion. The solution at the sensing end is hardware improvement and optimization, including adding physical or chemical filter membranes at the contact between the sensor and the to-be-detected substance, or optimizing the electrode material and electrolyte to improve the selectivity to the target detection substance. The solution at the processing end is algorithm identification and concentration inversion, such as forming an array of sensors for detecting different target gases, using traditional algorithms (including principal component analysis, partial least squares regression algorithm, support vector machine) to realize target gas concentration inversion with certain anti-interference ability; intelligent algorithms such as deep neural network, convolutional neural network, and recurrent neural network can also be used to realize accurate concentration inversion of target gases; in addition, there is a solution that uploads the sensor detection results to a cloud server, which is processed by a complex algorithm in the background and returns the results.
[0005] The above method has limitations and application scene restrictions. For example, the solution at the sensing end has limited elimination effect on cross-sensitivity, which may reduce the response speed or sensitivity of the sensor, and increases hardware complexity and cost. The solution at the processing end also increases system cost and power consumption, and algorithm optimization requires a large amount of calibration data, a complex process, high cost, and traditional algorithms have problems of insufficient accuracy and robustness. Intelligent algorithms have high requirements for computing power due to the complexity of the model, and are not suitable for embedded devices and situations with high real-time requirements; the method of uploading server background calculation and returning requires reliable networking of the device, which increases operation and maintenance costs, and is not suitable for situations with poor network conditions, data security sensitivity, etc.
[0006] In summary, the core contradiction of the existing cross-sensitivity correction method of the electrochemical gas sensor is that high-precision correction algorithms (such as deep learning) often have high computational complexity and high resource consumption, and cannot be run in real time on resource-constrained edge devices; and lightweight algorithms (such as simple filtering or traditional models) are difficult to effectively handle complex cross-interference and are prone to false positives. How to significantly reduce the computational complexity, memory requirements and power consumption of the algorithm while ensuring correction accuracy and eliminating false positives, so that it can be efficiently and in real time run on embedded systems or portable devices with limited computing power, storage space and battery life, has become a key technical problem in the field of electrochemical gas sensor technology that needs to be solved urgently.
[0007] Therefore, there is an urgent need for an electrochemical gas sensor cross-sensitivity correction method that can solve the contradiction between the difficulty of deploying complex models on the edge and the real-time and lightweight requirements. SUMMARY
[0008] The present application is to solve the problem of effective correction of cross-sensitivity of electrochemical gas sensors in resource-sensitive situations and fast application requirements, and provides a hierarchical lightweight correction method for cross-sensitivity of electrochemical gas sensors. The core idea of hierarchical processing and model lightweight design is to realize real-time correction of cross-sensitivity with high precision, low delay and low power consumption on resource-constrained edge devices, effectively improve the reliability and practicality of electrochemical gas sensors in complex environments, and meet the reliable measurement requirements of electrochemical gas sensors in edge applications.
[0009] The present application provides a hierarchical lightweight correction method for cross-sensitivity of electrochemical gas sensors, comprising the following steps: S1, obtaining an electrochemical sensor in a standard environment for a target gas output voltage at different concentration points, wherein, ; S2, calculating the first-order polynomial of the output voltage and the concentration of each electrochemical sensor for all gases; S3. Extract the coefficients of the first-order polynomials for output voltage and concentration, respectively. ,intercept Obtain the coefficient matrix and intercept matrix Intercept matrix Each element value is from an electrochemical sensor. Zero-point voltage ( ) and intercept sum; S4. Calculate the coefficient matrix The inverse matrix yields the concentration coefficient matrix. Calculate the values of each electrochemical sensor Output voltage and intercept matrix The concentration intercept matrix is obtained by the difference between corresponding element values. ; S5. Concentration coefficient matrix and concentration intercept matrix By constructing a new first-order polynomial, the individual electrochemical sensors can be calculated. The initial concentration was obtained by measuring the concentration. ; S6. Extracting electrochemical sensors at different concentrations of non-target gases. With a non-zero initial concentration, an electrochemical sensor is constructed using a polynomial of order no higher than second order. Corrected concentration With electrochemical sensors Initial concentration of non-target gas Relationship; S7, according to and The quadratic correction concentration polynomial of the false alarm sensor is obtained and the quadratic correction concentration is obtained. ; S8. Determine the secondary correction concentration based on the false alarm threshold. If there is a false alarm, proceed to step S9; otherwise, proceed to step S11. S9. Construct a polynomial of order no higher than first order to establish the relationship between the secondary correction concentration of the false alarm sensor for non-target gases and the secondary correction concentration of other sensors, thus obtaining the relationship between the non-target gas and the second-order correction concentration of ... third-order correction concentration of the second The correction amount of the secondary correction concentration of the support sensor ; S10. Based on the secondary correction concentration of the false alarm sensor. and Three corrected concentrations were obtained polynomials; S11, Based on the secondary correction concentration Or three-fold correction concentration To obtain the final concentration .
[0010] The present invention provides a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors. In a preferred embodiment, steps S1 to S5 constitute the first level of the algorithm, namely, cross-sensitivity primary calibration; steps S6 to S7 constitute the second level of the algorithm, namely, secondary calibration; and steps S8 to S10 constitute the third level of the algorithm, namely, tertiary calibration. In step S1, the target gas For electrochemical sensors The gas to be measured should be a single type, and the standard environment should be a standard atmospheric pressure, standard temperature, and standard humidity environment, with corresponding values of 101.325 kPa, 25℃, and 60%RH, respectively. There should be at least three different concentration points, and one of the concentration points should be zero, which is the sensor response caused by pure nitrogen or synthetic air.
[0011] The present invention provides a graded lightweight calibration method for cross-sensitivity electrochemical gas sensors. In a preferred embodiment, step S2, the first-order polynomial of the output voltage and concentration can be expressed as: ; in, For the number The electrochemical sensor detection number is The output voltage of the sensor is measured in volts (V). When the target gas is used, the output voltage remains unchanged. For other gases, the output voltage of each sensor needs to be reduced by the zero-point voltage. ; The number used for calibration is The standard gas concentration is expressed in ppm.
[0012] The present invention provides a graded lightweight calibration method for cross-sensitivity electrochemical gas sensors. In a preferred embodiment, step S3 includes... ; ; in, For sensors Zero-point voltage, symbol This is a transpose.
[0013] The present invention provides a graded lightweight calibration method for cross-sensitivity electrochemical gas sensors. As a preferred embodiment, in step S4, if the coefficient matrix... If the coefficient matrix is a singular matrix, first optimize the first-order polynomial of output voltage and concentration in step S2, and repeat step S3. If the coefficient matrix in step S3 is still a singular matrix, return to step S1, reselect points, and repeat steps S2 and S3. If the coefficient matrix in step S3 is still a singular matrix, then use numerical methods to approximate its inverse matrix. Numerical methods include Moore-Penrose pseudo-inverse, singular value decomposition, least squares method, and regularization method. In step S4, ; in, For sensors ; output voltage; These are the elements in the intercept matrix obtained in step S3.
[0014] The present invention provides a graded lightweight calibration method for cross-sensitivity electrochemical gas sensors. As a preferred embodiment, the initial concentration in step S5... for: ; in, For column arrangement The initial concentration of the sensor, .
[0015] The present invention provides a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors. In a preferred embodiment, in step S6, sensors that have non-zero measurement concentration results for gases other than the target gas are sensors that need further de-cross-sensitivity resolution. Polynomials of order no higher than 2 are: ; in, , , The coefficients are, in order, the coefficients of the quadratic term, the linear term, and the constant term, and their values are real numbers. The polynomial for the calibration concentration of the sensor and the concentration of other gases can be constructed by using mathematical calculation software to perform multiple fittings, including first-order fitting and second-order fitting, with the minimum average deviation serving as the basis for the final selection of a certain polynomial. Sensors that produce non-zero measured concentrations for gases other than the target gas require further de-cross-sensitivity analysis. The goal is to construct the relationship using polynomials of order no higher than second, achieving a balance between cross-sensitivity compensation and the needs of resource-sensitive and rapid application scenarios.
[0016] The polynomial for constructing the sensor's calibration concentration and other gas concentrations, as described in step S6, can be achieved through multiple fitting operations using mathematical calculation software. Multiple fitting operations include first-order fitting and second-order fitting, with the minimum average deviation serving as the basis for finally selecting a particular polynomial.
[0017] In step S7, .
[0018] The present invention provides a graded lightweight calibration method for cross-sensitivity electrochemical gas sensors. In a preferred embodiment, in step S8, the standard for determining whether the calculated concentration has a false alarm needs to be determined according to specific industry standards. When the electrochemical sensor is a portable consumer-grade air detection device, the false alarm threshold is 10% to 20% of the measurement range. When it is determined that there are no false alarms in the secondary correction concentration.
[0019] The present invention provides a graded lightweight calibration method for cross-sensitivity electrochemical gas sensors. In a preferred embodiment, in step S9, the relationship between the secondary calibration concentration correction of the false alarm sensor for non-target gases and the secondary calibration concentrations of other sensors is as follows: ; in, and The coefficients of the first term and constant term of the secondary correction concentration of the false alarm sensor and the secondary correction gas concentration of other sensors are real numbers. Multiple fitting can be performed using mathematical calculation software to construct the relationship between the secondary correction concentration of the false alarm sensor for non-target gases and the secondary correction concentration of other sensors. Multiple fitting is mainly based on the first fitting, and the minimum average deviation is used as the basis for the final selection of a certain polynomial. In step S10, ; In step S11, .
[0020] The present invention provides a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors, which, as a preferred embodiment, further includes step S12. S12, Calculate the first The sensor is for the first Relative deviation of calculated concentration results for each gas Determine the relative deviation based on the false alarm threshold. Has the target been achieved? If yes, the correction method is complete; if no, return to step S1 to recalibrate. ; in, For the first The true concentration of the gas, For the first The full-scale concentration of a gas.
[0021] This invention provides a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors, which mainly consists of a three-level algorithm. The first-level algorithm, called cross-sensitivity primary calibration, determines the cross-sensitivity coefficient of each gas sensor to non-target gases through experiments, and obtains a first-order polynomial for calculating the initial concentration of each sensor. This method includes five steps: First, obtain the output voltage of the electrochemical sensor at different concentration points of the target gas under standard conditions; second, calculate the first-order polynomial of the output voltage and concentration of each sensor for all gases; then, extract the coefficients and intercepts of the first-order polynomial obtained in the previous step, and construct a coefficient matrix and an intercept matrix, where each element in the intercept matrix is the sum of the zero-point voltage of the sensor and the intercept of the first-order polynomial; then, calculate the inverse matrix of the coefficient matrix from the previous step, denoted as the concentration coefficient matrix, and calculate the difference between the output voltage of each sensor and the corresponding element value in the intercept matrix from the previous step, denoted as the concentration intercept matrix; finally, combine the concentration coefficient matrix and the concentration intercept matrix from the previous step to form a new first-order polynomial, and substitute the output voltage of each sensor into it to obtain the corresponding measured concentration, denoted as the initial concentration. The second-level algorithm, called cross-sensitivity secondary correction, further corrects cross-sensitivity by establishing a concentration correction formula. It includes two steps: first, extracting the non-zero initial concentrations of each sensor at different concentrations of non-target gases, and constructing a relationship between the corrected concentration of the sensor and the concentration of the non-target gas using a polynomial of order no higher than second order; then, fusing the polynomial of order no higher than second order from the previous step with the first-order polynomial of the initial concentration obtained from the first-level algorithm to construct a polynomial for the secondary correction concentration of the false alarm sensor. The third level determines whether the sensor's secondary correction concentration is falsely reported. If so, it constructs a relationship between the secondary correction concentration of the false alarm sensor and the secondary correction gas concentrations of other sensors using a polynomial of order no higher than first order; then, it constructs a polynomial for the cubic correction concentration of the false alarm sensor; finally, it constructs the final concentration calculation formula for the false alarm sensor; if the above secondary correction concentrations are not falsely reported, the final concentration of the sensor is the secondary correction concentration; finally, it calculates the relative deviation and evaluates the algorithm's performance. This invention aims to solve the problem of effective correction of cross-sensitivity in electrochemical gas sensors in resource-sensitive applications and rapid application requirements, providing a hierarchical lightweight correction method for cross-sensitivity in electrochemical gas sensors, meeting the reliable measurement requirements of electrochemical gas sensors.
[0022] This invention proposes a hierarchical lightweight calibration method for cross-sensitivity of electrochemical gas sensors. It aims to achieve high-precision, low-latency, and low-power real-time cross-sensitivity calibration on resource-constrained edge devices by using the core ideas of hierarchical processing and lightweight model design, thereby effectively improving the reliability and practicality of electrochemical gas sensors in complex environments.
[0023] The present invention has the following advantages: The advantages of this invention compared to the prior art are: The hierarchical processing method proposed in this invention, namely cross-sensitivity primary correction, secondary correction and tertiary correction, is a progressive and complementary correction system that can reliably identify and process cross-sensitivity effects throughout the entire life cycle of the sensor.
[0024] The cross-sensitive three-level calibration method proposed in this invention adopts a lightweight model design concept. Based on the response mechanism of electrochemical sensors, namely, the sensor response and the gas concentration within a certain range are approximately linearly related, the polynomial used is no higher than the second order, which satisfies the slight nonlinearity requirement of capturing the response and prevents the introduction of overfitting risk. It is beneficial to improve the generalization ability of the model and is very suitable for implementation on resource-constrained edge devices.
[0025] The cross-sensitivity correction method proposed in this invention, which uses hierarchical processing and lightweight model design, can quickly determine the form of each level of the model according to industry needs, and can achieve high-precision, low-latency, and low-power real-time cross-sensitivity correction on resource-constrained edge devices. Attached Figure Description
[0026] Figure 1 A flowchart of a graded lightweight calibration method for cross-sensitivity electrochemical gas sensors; Figure 2 This is a graded lightweight calibration method for the cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration result of an NH3 sensor for NH3. Figure 3 This is a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration result of an SO2 sensor for SO2. Figure 4 This is a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration result of an H2S sensor for H2S. Figure 5 This is a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration result of the H2 sensor for H2; Figure 6This is a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration result of a C2H4 sensor for C2H4; Figure 7 This is a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration result of a CO sensor for CO.
[0027] Figure 8 This is a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration results of an H2S sensor for H2S and CO. Figure 9 This is a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors—the cross-sensitivity calibration results of a CO sensor for H2S and CO. Detailed Implementation
[0028] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Example 1
[0029] like Figure 1 As shown, a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors includes the following steps: S1. Obtain the output voltage of the electrochemical sensor at different concentration points of the target gas under standard conditions; S2. Calculate the first-order polynomial of the output voltage and concentration of each sensor for all gases; S3. Extract the coefficients and intercepts of the first-order polynomial obtained in the previous step, and construct the coefficient matrix and intercept matrix. The value of each element in the intercept matrix is the sum of the zero-point voltage of the sensor and the intercept of the first-order polynomial. S4. Calculate the inverse matrix of the coefficient matrix in the previous step, denoted as the concentration coefficient matrix, and calculate the difference between the output voltage of each sensor and the corresponding element value in the intercept matrix in the previous step, denoted as the concentration intercept matrix. S5. Combine the concentration coefficient matrix and concentration intercept matrix from the previous step to form a new first-order polynomial, and calculate the measured concentration of each sensor, which is recorded as the initial concentration. S6. Extract the non-zero initial concentration of each sensor at different concentrations of non-target gas, and construct the relationship between the sensor's calibration concentration and the concentration of non-target gas using a polynomial of no higher than second order. S7. Construct polynomials for the output voltage of each sensor and the correction concentration; S8. Determine if there is a false alarm for the calibration concentration. If there is a false alarm, proceed to step S9; otherwise, proceed to step S11. S9. Construct the relationship between the correction concentration of the false alarm sensor and the correction concentration of other sensors using a polynomial of no higher than first order. S10. Construct the polynomial for the third correction concentration of the false alarm sensor; S11. Construct the final concentration calculation formula; S12. Calculate the relative deviation and evaluate the algorithm performance. Example 2
[0030] like Figure 1 As shown, a graded lightweight calibration method for cross-sensitivity of electrochemical gas sensors includes the following steps: S1. Build an experimental platform and obtain the output voltage of several electrochemical sensors at at least three different concentration points of their respective target gases when the atmospheric pressure is 101.325 kPa, the temperature is 25℃, and the humidity is 60%RH. One of the concentration points is zero (the sensor response caused by pure nitrogen or synthetic air). S2. Calculate the first-order polynomial for the output voltage and concentration of each sensor for all gases. The first-order polynomial is expressed as: ; In the formula, Number the electrochemical gas sensors (1 to ); Number the gases to be tested (1 to...) ,generally and equal); For the number The electrochemical sensor detection number is The output voltage (in volts (V)) of the sensor is given when the target gas is used. The output voltage remains unchanged when the target gas is used; for other gases, the output voltage of each sensor needs to be reduced by the zero-point voltage. ( ); The coefficients to be determined; The intercept is to be determined; The number used for calibration is Standard gas concentration (unit: ppm, i.e., parts per million).
[0031] S3. Extract the coefficients of the first-order polynomial obtained in the previous step. and intercept Construct the coefficient matrix and intercept matrix Each element in the intercept matrix represents the zero-point voltage of the sensor. ( Intercept of the first-order polynomial sum; coefficient matrix Represented as: ; Intercept matrix Represented as: ; S4. Calculate the coefficient matrix from the previous step. The inverse matrix is denoted as the concentration coefficient matrix. And calculate the output voltage of each sensor and the intercept matrix from the previous step. The difference between corresponding element values is denoted as the concentration intercept matrix. ; Find the coefficient matrix When calculating the inverse matrix, the coefficient matrix must first be determined. If the matrix is singular, find its inverse directly. That's sufficient; otherwise, new experimental data or repeated experiments are needed to reconstruct the coefficient matrix. If it is still a singular matrix, then methods such as Moore-Penrose pseudoinverse, singular value decomposition, least squares method, or regularization should be used to approximate its inverse matrix.
[0032] Concentration intercept matrix Represented as: ; S5. The concentration coefficient matrix from the previous step... and concentration intercept matrix A new first-order polynomial is constructed, and the measured concentration of each sensor is calculated and denoted as the initial concentration. ; The method for determining the initial concentration is as follows: ; S6. Extract the non-zero initial concentration of each sensor under different concentrations of non-target gas, and construct the relationship between the sensor's calibration concentration and the concentration of non-target gas using a polynomial of no higher than second order. This is achieved through multiple fitting operations using mathematical calculation software. Multiple fitting operations include single-step and double-step fitting, with the minimum average deviation used as the criterion for selecting a specific polynomial. Polynomials of order no higher than two take the form: ; In the formula, For non-target gas to the first The correction amount of the calibration concentration of the support sensor. For the first The initial concentration of the sensor in response to non-target gases. , , The coefficients are, in order, the quadratic term, the linear term, and the constant term, and their values are real numbers.
[0033] S7. Construct the polynomial for the quadratic correction concentration of the false alarm sensor; In the form of: ; In the formula, For the first Secondary calibration concentration of the support sensor For the first The initial concentration of the sensor, For non-target gas to the first The correction amount of the calibration concentration of the support sensor.
[0034] S8. Determine if there is a false alarm for the calibration concentration. If there is a false alarm, proceed to step S9; otherwise, proceed to step S11. In portable consumer-grade air quality monitoring devices, a false alarm is considered to occur when the false alarm value exceeds 10% to 20% of the measurement range.
[0035] Determine if there are any false alarms in the secondary calibration concentration. If there are no false alarms, then the sensor's final concentration... The calculation formula is in the form of: ; If there is a false alarm, proceed to step S9.
[0036] S9. Construct a formula relating the secondary correction concentration of the false alarm sensor to the secondary correction gas concentration of other sensors using a polynomial of order no higher than first order. This is achieved through multiple fitting operations using mathematical calculation software. The multiple fitting primarily uses the first-order fitting, with the minimum average deviation serving as the criterion for selecting a specific polynomial. The relational expression is as follows: ; In the formula, For non-target gas to the first The correction amount of the secondary correction concentration of the sensor. For the first The secondary correction concentration of the sensor for gases other than the target gas. and The coefficients of the primary term and constant term of the secondary correction concentration of the false alarm sensor and the secondary correction gas concentration of other sensors are real numbers.
[0037] S10. Constructing the three-stage calibration concentration for the false alarm sensor. A polynomial of the form: ; S11, Constructing the final concentration A polynomial of the form: ; S12, Calculate the first The sensor is for the first The relative deviation of the calculated concentration results for each gas is used to evaluate the algorithm's performance.
[0038] ; In the formula, For the first The sensor is for the first The relative deviation of the calculated concentration results for the gas. For the first The sensor is for the first The final concentration of the gas, For the first The true concentration of the gas, For the first The full-scale concentration of a gas.
[0039] Example 3 like Figures 1-9 As shown, a hierarchical lightweight calibration method for cross-sensitivity of electrochemical gas sensors is implemented through the following steps: S1. Obtain the output voltage of the electrochemical sensor at different concentration points of the target gas under standard conditions; At atmospheric pressure of 101.325 kPa, temperature of 25°C, and humidity of 60%RH, the output voltage of NH3, SO2, H2S, H2, C2H4, and CO electrochemical sensors (a total of 6 types) was acquired for at least 3 different concentration points of their respective target gases, one of which was the sensor response caused by zero point (pure nitrogen or synthetic air).
[0040] Table 1 shows the correspondence between various sensor types and symbols.
[0041] Table 1. Correspondence between sensor types and symbols
[0042] The concentration points measured by each sensor for its respective target gas are summarized below: (1) The NH3 sensor measures the NH3 concentration at zero point (pure nitrogen), 5.0197 ppm, 10.0397 ppm, and 20.0808 ppm; (2) The SO2 sensor measures SO2 concentration at zero point (synthetic air), 4.9990 ppm, 9.9995 ppm, and 20.0000 ppm; (3) The H2S sensor measured the H2S concentration at zero point (pure nitrogen), 1.4897 ppm, 2.9798 ppm, and 11.9202 ppm; (4) The H2 sensor measured the H2 concentration at zero point (pure nitrogen), 994.7726 ppm, and 3979.7891 ppm; (5) The C2H4 sensor measured the C2H4 concentration at zero point (synthetic air), 25.2500 ppm, 50.5000 ppm, and 100.8155 ppm; (6) The CO sensor measures CO concentration at zero point (synthetic air), 4.9990ppm, 9.9982ppm, 19.9990ppm, and 100ppm.
[0043] S2. Calculate the first-order polynomial of the output voltage and concentration of each sensor for all gases; Taking the relationship between the output voltage and concentration of an NH3 sensor for NH3, SO2, H2S, H2, C2H4, and CO gases as an example, the following is an example: ; The zero-point voltage is 0.020561V.
[0044] S3. Extract the coefficients and intercepts of the first-order polynomial obtained in the previous step, and construct the coefficient matrix and intercept matrix. The value of each element in the intercept matrix is the sum of the zero-point voltage of the sensor and the intercept of the first-order polynomial. coefficient matrix for: ; Intercept matrix Represented as: ; S4. Calculate the inverse matrix of the coefficient matrix in the previous step, denoted as the concentration coefficient matrix, and calculate the difference between the output voltage of each sensor and the corresponding element value in the intercept matrix in the previous step, denoted as the concentration intercept matrix. coefficient matrix inverse matrix —The concentration coefficient matrix is as follows: ; Concentration intercept matrix for: ; S5. Combine the concentration coefficient matrix and concentration intercept matrix from the previous step to form a new first-order polynomial, and calculate the measured concentration for each sensor. This is recorded as the initial concentration; initial concentration The solution method is as follows: ; Taking the initial concentration calculation results of NH3, SO2, H2S, H2, C2H4 and CO gases of a certain concentration by each sensor as an example, the results are shown in Tables 2 to 7.
[0045] Table 2 Calculation results of initial concentration of NH3 sensor
[0046] Table 3 Calculation results of initial concentration of SO2 sensor
[0047] Table 4 Calculation results of initial concentration of H2S sensor
[0048] Table 5 Calculation results of initial concentration of H2 sensor
[0049] Table 6 Calculation results of initial concentration of C2H4 sensor
[0050] Table 7 Initial concentration calculation results from CO sensor
[0051] S6. Extract the non-zero initial concentration of each sensor under different concentrations of non-target gas, and construct the relationship between the sensor's calibration concentration and the concentration of non-target gas using a polynomial of no higher than second order. The constructed relation is as follows: ; S7. Construct the polynomial for the quadratic correction concentration of the false alarm sensor; The constructed polynomial is: ; S8. Determine if there is a false alarm for the secondary correction concentration. If there is a false alarm, proceed to step S9; otherwise, proceed to step S11. Based on the examples in Tables 2-7, the secondary correction concentration was calculated to determine whether there were any false alarms. The results are shown in Tables 8-13.
[0052] Table 8 Calculation results of secondary calibration concentration of NH3 sensor
[0053] Table 9 Calculation results of SO2 sensor secondary calibration concentration
[0054] Table 10 Calculation results of secondary calibration concentration for H2S sensor
[0055] Table 11 Calculation results of H2 sensor secondary calibration concentration
[0056] Table 12 Calculation results of secondary calibration concentration of C2H4 sensor
[0057] Table 13 Calculation results of CO sensor secondary calibration concentration
[0058] The NH3 sensor is the one that has false alarms and positive values. Therefore, S9 performs a third correction on the secondary correction concentration of the NH3 sensor. The gases that have residual cross-sensitivity with it are SO2 and H2S.
[0059] S9. Construct a formula relating the secondary correction concentration of the false alarm sensor to the secondary correction concentration of other sensors using a polynomial of order no higher than first order. The relationship between the secondary correction concentration of the NH3 sensor and the secondary correction concentrations of the SO2 and H2S sensors is constructed as follows: ; S10. Construct the polynomial for the third correction concentration of the false alarm sensor; The polynomial for constructing the cubic correction concentration of the NH3 sensor is as follows: ; S11. Construct the final concentration calculation formula; The constructed relation is as follows: ; S12. Calculate the relative deviation and evaluate the algorithm performance.
[0060] The formula for calculating relative deviation is: ; In the formula, For the first The sensor is for the first The relative deviation of the calculated concentration results for the gas. For the first The sensor is for the first The final concentration of the gas, For the first The true concentration of the gas, For the first The full-scale concentration of a gas.
[0061] Calculate the output concentrations and relative deviations of the electrochemical sensors for NH3, SO2, H2S, H2, C2H4, and CO when their respective target gases are introduced, as well as when a mixture of H2S and CO is introduced. Figures 2-9 As shown, the maximum relative deviation occurred when the SO2 sensor measured 20 ppm of pure SO2 gas, at -6.94%.
[0062] Based on the examples in Tables 8-13, the final correction concentration was calculated to determine whether there were any false alarms. The results are shown in Tables 14-19.
[0063] Table 14 Calculation results of the final calibration concentration of the NH3 sensor
[0064] Table 15 Calculation results of final calibration concentration of SO2 sensor
[0065] Table 16 Calculation results of final calibration concentration of H2S sensor
[0066] Table 17 Calculation results of the final calibration concentration of the H2 sensor
[0067] Table 18 Calculation results of the final calibration concentration of the C2H4 sensor
[0068] Table 19 Calculation results of final calibration concentration of CO sensor
[0069] In the above measurements, none of the sensors gave false alarms for gases other than their target gases, and there was no cross-interference. At the same time, the maximum absolute value of the relative deviation for each target gas was 5.16%, which meets the requirements for false alarm values in portable consumer-grade air detection devices (a false alarm is considered to occur when the value exceeds 10% to 20% of the measurement range). Therefore, there were no false alarms.
[0070] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A hierarchical light-weight correction method for cross-sensitivity of an electrochemical gas sensor, characterized by: The method comprises the following steps: S1, obtaining an electrochemical sensor under a standard environment to a target gas Output voltage at different concentration points, wherein ; S2, calculate the output voltage of each electrochemical sensor The output voltage of all gases is a first-order polynomial with concentration. S3, extracting coefficients of the first order polynomial of the output voltage and the concentration, respectively , intercept , obtaining a coefficient matrix , and an intercept matrix , each element value of the intercept matrix is the zero point voltage of the electrochemical sensor , the sum of the zero point voltage and the intercept S4, calculating the inverse matrix of the coefficient matrix to obtain a concentration coefficient matrix S5, calculating the difference between the output voltages of each electrochemical sensor and the corresponding element values in the intercept matrix to obtain a concentration intercept matrix ; S5、calculate the concentration coefficient matrix and the concentration intercept matrix to form a new first-order polynomial, and calculate the initial concentration of each branch electrochemical sensor from the measured concentration ; S6、extracting non-target gas under different concentrations of each electrochemical sensor non-zero initial concentration, to not more than the second order polynomial electrochemical sensor calibration concentration with electrochemical sensor non-target gas initial concentration relationship; S7. The method of any one of S1-S6, and obtaining a secondary correction concentration polynomial for the false positive sensor and obtaining a secondary correction concentration ; S8, judging the secondary correction concentration according to the false alarm threshold whether there is a false alarm, if yes, entering step S9, if no, entering step S11; S9, constructing the false alarm sensor to the non-target gas of the second correction concentration correction amount of the relationship with other sensors second correction concentration with the polynomial of no more than one order, get the non-target gas to the second correction concentration of the branch sensor correction amount of the correction ; S10, obtaining a third correction concentration from the polynomial and obtaining a third correction concentration from the polynomial S11. Obtain the final concentration from the secondary calibration concentration or tertiary calibration concentration . 2. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: Steps S1-S5 are a first correction for cross-sensitivity, steps S6-S7 are a second correction, and steps S8-S10 are a third correction; In step S1, the target gas is an electrochemical sensor The single kind of gas to be measured, the standard environment is a standard atmospheric pressure, standard temperature and standard humidity environment, and the corresponding values are 101.325 kPa, 25℃ and 60%RH respectively; the different concentration points are at least three, and one of the concentration points is zero, which is the sensor response caused by pure nitrogen or synthetic air.
3. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: In step S2, the output voltage and the first-order polynomial of the concentration can be expressed as: ; in, For the number The electrochemical sensor detection number is The output voltage of the sensor is measured in volts (V). When the target gas is used, the output voltage remains unchanged. For other gases, the output voltage of each sensor needs to be reduced by the zero-point voltage. ; The number used for calibration is The standard gas concentration is expressed in ppm.
4. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: In step S3, ; ; wherein the zero voltage of the sensor , the sign is transposed.
5. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: In step S4, if the coefficient matrix is singular, the first-order polynomial of the output voltage and the concentration in step S2 is optimized, and step S3 is repeated. When the coefficient matrix in step S3 is still singular, return to step S1 to select points again, and repeat steps S2 and S3. When the coefficient matrix in step S3 is still singular at this time, the inverse matrix thereof is approximately solved by using a numerical method, and the numerical method includes Moore-Penrose pseudo-inverse, singular value decomposition, least square method, and regularization method. In step S4, ; wherein is the output voltage of the sensor is the output voltage of the sensor is an element of the intercept matrix obtained in step S3.
6. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: The initial concentration in step S5 is: ; wherein are arranged in columns initial concentration of the branch sensor, .
7. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: In step S6, the sensors with non-zero measurement concentration results of non-target gases are sensors that need to be further decoupled for cross-sensitivity; The polynomial of the correction concentration of the sensor and the concentration of other gases is constructed by means of mathematical calculation software for multiple fittings, and the multiple fittings include first-order fitting and second-order fitting, and the average deviation is taken as the basis for finally selecting a certain polynomial; ; wherein , , are, in order, the quadratic term coefficient, the linear term coefficient, and the constant term coefficient, the numerical range being real numbers; In step S7, In step S8, when the electrochemical sensor is a portable consumer-level air detection device, the false alarm threshold is 10%-20% of the range; 。 8. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: When it is judged that the second correction concentration has no false alarm, In step S9, the relationship between the second correction concentration correction amount of the false alarm sensor for non-target gases and the second correction concentration of other sensors is: 。 9. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, characterized in that: The relationship between the second correction concentration correction amount of the false alarm sensor for non-target gases and the second correction concentration of other sensors is constructed by first-order fitting, and the average deviation is taken as the basis for finally selecting a certain polynomial; ; wherein, and is a coefficient of a linear term of the false-positive sensor's secondary correction concentration and a coefficient of a constant term of the secondary correction gas concentration of the other sensor, the numerical range being a real number; In step S10, In step S11, ; Further comprising step S12; 。 10. The hierarchical lightweight correction method for cross-sensitivity of an electrochemical gas sensor according to claim 1, wherein: S12, calculate the first branch sensor pair of the first concentration results of the relative deviation , according to the false alarm threshold to determine whether the relative deviation achieve the goal, if yes, the correction method is completed, if not, return to step S1 to correct again; ; wherein, is the true concentration of the th gas, is the full scale concentration of the th gas.
Citation Information
Patent Citations
Atmospheric gaseous pollutant detection method and device and electronic equipment
CN114814091A
Malodorous gas detection device and gas detection and cross interference correction method
CN118688399A
Gas detection method and device based on MEMS gas sensor array
CN119691628A
Sensor correction device, sensor correction air-quality measurement device, and correction method therefor
WO2023210933A1