[go: up one dir, main page]

CN120778980B - Gas concentration correction method, gas detection apparatus, and computer-readable storage medium - Google Patents

Gas concentration correction method, gas detection apparatus, and computer-readable storage medium

Info

Publication number
CN120778980B
CN120778980B CN202511294841.2A CN202511294841A CN120778980B CN 120778980 B CN120778980 B CN 120778980B CN 202511294841 A CN202511294841 A CN 202511294841A CN 120778980 B CN120778980 B CN 120778980B
Authority
CN
China
Prior art keywords
value
temperature
gas sensor
humidity
gas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202511294841.2A
Other languages
Chinese (zh)
Other versions
CN120778980A (en
Inventor
卿笃安
肖成
许磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Noan Intelligent Co ltd
Shenyang Fire Research Institute of MEM
Original Assignee
Shenzhen Noan Intelligent Co ltd
Shenyang Fire Research Institute of MEM
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Noan Intelligent Co ltd, Shenyang Fire Research Institute of MEM filed Critical Shenzhen Noan Intelligent Co ltd
Priority to CN202511294841.2A priority Critical patent/CN120778980B/en
Publication of CN120778980A publication Critical patent/CN120778980A/en
Application granted granted Critical
Publication of CN120778980B publication Critical patent/CN120778980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0006Calibrating gas analysers

Landscapes

  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Medicinal Chemistry (AREA)
  • Food Science & Technology (AREA)
  • Combustion & Propulsion (AREA)
  • Physics & Mathematics (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)

Abstract

The application provides a gas concentration correction method, a gas detection apparatus and a computer-readable storage medium. The method comprises the steps of obtaining a real-time temperature value, a real-time humidity value and a real-time signal value which are output by a gas sensor aiming at gas to be detected, determining a temperature zero point correction value of the gas sensor according to the real-time temperature value and a temperature zero point fitting strategy of the gas sensor, determining a humidity zero point correction value of the gas sensor according to the real-time humidity value and the humidity zero point fitting strategy of the gas sensor, determining a target zero point correction value of the gas sensor based on the temperature zero point correction value and the humidity zero point correction value, and determining a correction concentration value of the gas to be detected based on the target zero point correction value and the real-time signal value. The application can improve the gas concentration correction accuracy to a certain extent, and reduce the gas concentration correction cost and the preparation workload.

Description

Gas concentration correction method, gas detection apparatus, and computer-readable storage medium
Technical Field
The application relates to the technical field of gas detection, in particular to a gas concentration correction method, gas detection equipment and a computer readable storage medium.
Background
The gas sensor is widely applied in production and life, is used for monitoring inflammable and explosive and toxic and harmful gases (such as CO, H2S and the like) in industrial production, guaranteeing safe production, detecting air quality (PM 2.5, VOCs and the like) in real time in the field of environmental monitoring, assisting in pollution prevention and control, is integrated in intelligent home (formaldehyde detection), vehicle-mounted systems (vehicle air quality early warning) and wearable equipment (alcohol detection) in daily life, and is used for regulating and controlling greenhouse gas concentration in agriculture to optimize crop growth and assisting in diagnosis (expiration analysis) in the medical field. The high sensitivity and real-time characteristics of the system provide key technical support for health protection and intelligent management.
In order to ensure the performance of the gas sensor, the output concentration of the sensor needs to be corrected, and the problem of signal drift of the sensor caused by long-term use, environmental interference (temperature, humidity and pressure) or material aging is mainly solved. By periodically calibrating with standard gas or reference equipment, the sensitivity deviation and zero drift of the sensor can be corrected so that the output of the sensor and the actual concentration maintain a linear corresponding relationship. This process is particularly important in the fields of industrial safety (e.g., combustible gas alarm), environmental monitoring (e.g., pollutant analysis), medical diagnostics (e.g., breath alcohol detection), etc., where personal safety, data compliance, and long-term stability of the device are directly related.
In the related art, there are two common gas concentration correction modes, the first mode is based on the relationship correction between temperature and humidity and concentration, and the second mode is based on neural network model correction. However, the inventor finds that the first mode is that the influence of default humidity and temperature on concentration is equal, and the influence of temperature and humidity on the zero point signal value of the sensor is not considered, so that the concentration correction precision of the gas sensor is low, and the second mode needs to be embedded into a model chip, so that the concentration correction cost is high and the preparation workload is high.
Disclosure of Invention
The application provides a gas concentration correction method, a gas detection device and a computer readable storage medium, which can improve the gas concentration correction accuracy and reduce the gas concentration correction cost and the preparation workload.
In a first aspect, the present application provides a gas concentration correction method, the method comprising:
Acquiring a real-time temperature value, a real-time humidity value and a real-time signal value which are output by a gas sensor aiming at gas to be detected;
Determining a temperature zero correction value of the gas sensor according to the real-time temperature value and a temperature zero fitting strategy of the gas sensor;
Determining a humidity zero correction value of the gas sensor according to the real-time humidity value and a humidity zero fitting strategy of the gas sensor;
Determining a target zero correction value of the gas sensor based on the temperature zero correction value and the humidity zero correction value;
And determining a corrected concentration value of the gas to be detected based on the target zero correction value and the real-time signal value.
In a second aspect, the present application also provides a gas detection apparatus comprising a gas sensor, a processor and a memory, the memory having a computer program stored therein, the processor executing any one of the gas concentration correction methods provided by the present application when calling the computer program in the memory.
In a third aspect, the present application also provides a computer readable storage medium having stored thereon a computer program, the computer program being loaded by a processor to perform the gas concentration correction method.
According to the application, in the first aspect, the temperature zero correction value of the gas sensor is determined in real time according to the real-time temperature value output by the gas sensor for the gas to be detected, the zero signal value of the gas sensor can be corrected by utilizing the real-time temperature value, so that gas concentration correction is carried out by adopting different zero signal values at different temperatures, the problem of low gas concentration correction accuracy caused by unstable zero signal values of the gas sensor due to temperature change is solved, and the gas concentration correction accuracy is improved to a certain extent. According to the second aspect, the zero point signal value of the gas sensor can be corrected by utilizing the real-time humidity value by determining the zero point correction value of the gas sensor in real time according to the real-time humidity value output by the gas sensor for the gas to be detected, so that the gas concentration correction is carried out by adopting different zero point signal values under different humidities, the problem of low gas concentration correction precision caused by unstable zero point signal values of the gas sensor due to humidity change is solved, and the gas concentration correction precision is improved to a certain extent. In the third aspect, by determining the target zero correction value of the gas sensor by combining the temperature zero correction value and the humidity zero correction value, the zero signal value of the gas sensor can be corrected by using the humidity and the temperature, so that the problem that the concentration correction accuracy of the gas sensor is low due to the fact that the influence of the temperature and the humidity on the zero signal value of the sensor is not considered is solved, and the gas concentration correction accuracy is improved to a certain extent. In the fourth aspect, the target zero point correction value of the gas sensor is determined by combining the temperature zero point correction value and the humidity zero point correction value, and then the corrected concentration value of the gas to be measured is determined by using the target zero point correction value, instead of mechanically subtracting the temperature influence value and the humidity influence value from the concentration value output from the gas sensor, so that the problem of low concentration correction accuracy of the gas sensor due to the fact that the influence of humidity and temperature on the concentration is regarded as an arithmetic difference can be reduced. In the fifth aspect, since the concentration correction for the gas sensor does not require embedding of a model chip, the gas concentration correction cost and the preparation workload can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic block diagram of a gas detection apparatus according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a gas concentration correction method according to an embodiment of the present application;
FIG. 3 is a flow chart of one embodiment of step 205 provided in an embodiment of the present application;
FIG. 4 is a flow chart of another embodiment of step 205 provided in an embodiment of the present application;
FIG. 5 is a schematic illustration of the effect of temperature on sensor zero signal values provided in an embodiment of the present application;
Fig. 6 is a schematic diagram illustrating the effect of humidity on the sensor zero signal value provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations. Any process or method description in a flowchart or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the described embodiments of the application includes additional implementations in which functions may be performed in a substantially simultaneous manner or in an order other than that shown or discussed, including in accordance with the functions involved, as would be understood by one of ordinary skill in the art to which embodiments of the application pertain.
The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known processes have not been described in detail in order to avoid unnecessarily obscuring the description of the embodiments of the application. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The embodiment of the application provides a gas concentration correction method, a gas concentration correction device, gas detection equipment and a computer readable storage medium. The main body of execution of the gas concentration correction method according to the embodiment of the present application may be a gas sensor according to the embodiment of the present application, or a gas detection apparatus incorporating the gas sensor.
Some embodiments of the application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Fig. 1 is a schematic block diagram of a gas detection apparatus according to an embodiment of the present application.
As shown in fig. 1, the gas detection apparatus 100 includes a gas sensor 101, a processor 102, and a memory 103, the processor 102 and the memory 103 being connected by a bus 104, such as an I2C (Inter-INTEGRATED CIRCUIT) bus.
In particular, the processor 102 is configured to provide computing and control capabilities to support the operation of the overall gas detection apparatus 100. The Processor 102 may be a general purpose Processor, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application SPECIFIC INTEGRATED Circuit (ASIC), a Field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 103 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely a block diagram of a portion of the structure associated with an embodiment of the present application and is not intended to limit the gas detection apparatus to which an embodiment of the present application is applied, and that a particular gas detection apparatus may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
The processor 102 is configured to run a computer program stored in the memory 103, and implement any one of the gas concentration correction methods provided in the embodiments of the present application when the computer program is executed. For example, the processor 102 is configured to run a computer program stored in the memory 103, and when the computer program is executed, the following steps may be implemented:
The method comprises the steps of obtaining a real-time temperature value, a real-time humidity value and a real-time signal value which are output by a gas sensor aiming at gas to be detected, determining a temperature zero point correction value of the gas sensor according to the real-time temperature value and a temperature zero point fitting strategy of the gas sensor, determining a humidity zero point correction value of the gas sensor according to the real-time humidity value and the humidity zero point fitting strategy of the gas sensor, determining a target zero point correction value of the gas sensor based on the temperature zero point correction value and the humidity zero point correction value, and determining a correction concentration value of the gas to be detected based on the target zero point correction value and the real-time signal value.
It should be noted that, for convenience and brevity of description, specific working processes of the above-described gas detection apparatus may refer to corresponding processes in the following embodiments of the gas concentration correction method, which are not described herein.
Hereinafter, a gas concentration correction method provided in an embodiment of the present application will be described in detail taking the gas detection apparatus shown in fig. 1 as an execution subject of the gas concentration correction method, which is omitted in the following method embodiments for simplicity and convenience of description.
Referring to fig. 2, fig. 2 is a flow chart of a gas concentration correction method according to an embodiment of the application. The gas concentration correction method comprises the following steps 201-205, wherein:
201. And acquiring a real-time temperature value, a real-time humidity value and a real-time signal value which are output by the gas sensor aiming at the gas to be detected.
The specific form of the gas to be measured can be set according to the actual service scene requirement, and the specific form of the gas to be measured is not limited in the embodiment of the application, for example, the gas to be measured can be harmful gas such as chlorine, carbon monoxide, sulfur dioxide, carbon dioxide and the like, and flammable and explosive gas such as difluoromethane and the like.
The real-time temperature value (marked as T) refers to the temperature of the gas sensor measured and output for the gas to be measured, and the real-time temperature value T is used for indicating the temperature of the gas sensor when the gas sensor detects the concentration of the gas to be measured.
The real-time humidity value (denoted as H) is a humidity value measured and output by the gas sensor for the gas to be measured, and the real-time humidity value H is used for indicating the humidity of the gas sensor when the gas sensor detects the concentration of the gas to be measured.
The real-time signal value (denoted as ADV) refers to a signal value measured and output by the gas sensor for the gas to be measured.
The method comprises the steps of firstly, introducing gas to be detected, then, detecting the gas to be detected through a gas sensor, and obtaining a real-time temperature value T, a real-time humidity value H and a real-time signal value ADV which are output by the gas sensor aiming at the gas to be detected.
202. And determining a temperature zero correction value of the gas sensor according to the real-time temperature value and a temperature zero fitting strategy of the gas sensor.
The zero point signal value refers to a signal value, that is, a reference signal, which is output from the gas sensor when it is not being measured (i.e., zero point state).
The temperature zero fitting strategy is used for indicating the relation between the temperature and the zero signal value. The temperature zero fitting strategy is obtained based on fitting a plurality of temperature test data sets, and each temperature test data set can be obtained by carrying out zero signal value test on the gas sensor based on a preset test temperature value. Taking the example that the plurality of temperature test data sets includes a first temperature test data set and a second temperature test data set, in some embodiments, the temperature zero fitting strategy may be obtained by the following steps A1 to A3:
A1, after the temperature of the environment where the gas sensor is controlled to be switched to a first temperature value, acquiring a first temperature test data set output by the gas sensor.
The temperature test data set comprises a test temperature value and a test zero signal value which are output by the gas sensor.
In some embodiments, the gas sensor may be placed in a high-low temperature box, and the program is set, where the temperature of the high-low temperature box is set to a first temperature value (e.g., 70 ℃), the high-low temperature box is set to the first temperature value (e.g., 70 ℃) and then kept for a first preset period (e.g., 1 h) so that the temperature of the environment where the gas sensor is located is switched to the first temperature value, and then the temperature value output by the gas sensor at this time is collected as a test temperature value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a first temperature test data set corresponding to the first temperature value. Therefore, the matching degree of the simulation test environment of the gas sensor and the real environment of the corresponding temperature is ensured by setting the environment temperature of the gas sensor as the first temperature value and then keeping the first preset time length, the reliability of the actual relationship between the simulation zero signal value of the first temperature test data set and the temperature is improved, and the fitting accuracy of the temperature zero fitting strategy is further improved.
In some embodiments, the temperature of the environment where the gas sensor is located may be controlled to be switched to a first temperature value according to a first temperature change rate, and after the temperature of the environment where the gas sensor is controlled to be switched to the first temperature value, a first temperature test data set output by the gas sensor is acquired. At this time, the gas sensor may be placed in a high-low temperature box, and a program is set, in which the temperature of the high-low temperature box is adjusted to a first temperature value according to a first temperature change rate (e.g. a rate less than or equal to 2 ℃) and then kept for a first preset period of time (e.g. the high-low temperature box is controlled to be heated to 70 ℃ at a rate less than or equal to 2 ℃) and kept for 1 hour, so that the ambient temperature where the gas sensor is located is switched to the first temperature value, and then the temperature value output by the gas sensor at this time is collected as a test temperature value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a first temperature test data set corresponding to the first temperature value. Therefore, the environment temperature of the gas sensor is controlled to be switched to the first temperature value according to the first temperature change rate, so that the matching degree of the simulation test environment of the gas sensor and the real environment of the corresponding temperature is ensured, the reliability of the actual relationship between the simulation zero signal value of the first temperature test data set and the temperature is improved, and the fitting accuracy of a temperature zero fitting strategy is further improved.
A2, after the temperature of the environment where the gas sensor is controlled to be switched to a second temperature value, acquiring a second temperature test data set output by the gas sensor.
In some embodiments, the gas sensor may be placed in a high-low temperature box, and the program is set to directly set the temperature of the high-low temperature box to a second temperature value (e.g., -40 ℃), and after the high-low temperature box is set to the second temperature value (e.g., -40 ℃) for a second preset period of time (e.g., 1 h), so that the temperature of the environment where the gas sensor is located is switched to the second temperature value, and then the temperature value output by the gas sensor at this time is collected as a test temperature value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a second temperature test data set corresponding to the second temperature value. Therefore, the matching degree of the simulation test environment of the gas sensor and the real environment of the corresponding temperature is ensured by setting the environment temperature of the gas sensor to be a second temperature value and then keeping the second preset time length, the reliability of the actual relationship between the simulation zero signal value of the second temperature test data set and the temperature is improved, and the fitting accuracy of a temperature zero fitting strategy is further improved.
In some embodiments, the temperature of the environment where the gas sensor is located may be controlled to switch to a second temperature value at a second rate of change of temperature, and the second temperature test data set output by the gas sensor is obtained after the temperature of the environment where the gas sensor is located is controlled to switch to the second temperature value. At this time, the gas sensor may be placed in a high-low temperature box, and a program is set, in which the temperature of the high-low temperature box is adjusted to a second temperature value according to a second temperature change rate (e.g. a rate less than or equal to 2 ℃) and then kept for a second preset period of time (e.g. the high-low temperature box is controlled to be cooled to-40 ℃ at a rate less than or equal to 2 ℃) and kept for 1 hour, so that the temperature of the gas sensor is switched to the second temperature value, and then the temperature value output by the gas sensor at this time is collected as a test temperature value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a second temperature test data set corresponding to the second temperature value. Therefore, the matching degree of the simulation test environment of the gas sensor and the real environment of the corresponding temperature is ensured by controlling the temperature of the environment where the gas sensor is positioned to be switched to the second temperature value according to the second temperature change rate, the reliability of the actual relationship between the simulation zero signal value of the second temperature test data set and the temperature is improved, and the fitting accuracy of a temperature zero fitting strategy is further improved.
Similarly, for a plurality of preset test temperature values (such as a first temperature value, a second temperature value, and a third temperature value), a temperature test data set corresponding to each preset test temperature value may be collected.
The specific values of the first temperature value and the second temperature value can be set according to the actual service scene requirement, and the specific values of the first temperature value and the second temperature value are not limited.
The specific values of the first preset duration and the second preset duration can be set according to actual service scene requirements, and the specific values of the first preset duration and the second preset duration are not limited.
And A3, fitting according to the first temperature test data set and the second temperature test data set to obtain the temperature zero fitting strategy.
The temperature zero fitting strategy is used for indicating the relation between the output temperature of the gas sensor and the zero signal value of the gas sensor.
The fitting process in step A3 may obtain a temperature zero fitting strategy in various manners, which illustratively includes:
(1) And constructing a preset temperature zero relation, substituting a plurality of temperature test data sets (wherein each temperature test data set comprises a corresponding test temperature value and a corresponding test zero signal value) into the preset temperature zero relation, and obtaining a solved temperature zero relation to be used as a temperature zero fitting strategy. At this time, the step A3 may specifically include obtaining a preset temperature zero relation, substituting the first temperature test data set and the second temperature test data set into the preset temperature zero relation to solve, obtaining a solved temperature zero relation, and using the solved temperature zero relation as a temperature zero fitting strategy.
For example, taking a preset temperature zero relation as shown in formula 1 as an example, formula 1 is used to represent the relation between the temperature value output by the gas sensor and the zero signal value of the gas sensor, m temperature test data sets (including a first temperature test data set, a second temperature test data set, a third temperature test data set, and a fourth temperature test data set) may be collected and substituted into the preset temperature zero relation as shown in formula 1, where m is the total number of temperature test data sets obtained by testing, to calculate a coefficientAnd obtaining a solved temperature zero relation as a temperature zero fitting strategy.
Equation 1
In the formula 1 of the present invention,For the coefficients, T represents the temperature,Representing the zero signal value.
(2) Fitting zero signal values of the gas sensor by using a mathematical tool by using a plurality of temperature test data setsAnd the corresponding relation between the temperature T and the temperature T is obtained through fitting, and the corresponding relation shown in the formula 1 is used as a temperature zero fitting strategy.
For example, taking the temperature zero fitting strategy as formula 1 as an example, in some embodiments, the temperature zero fitting strategy obtained in the pre-test stage may be written into the program of the gas sensor, and in step 202, the real-time temperature value T may be substituted into formula 1, and the temperature zero correction value of the gas sensor may be calculated
203. And determining a humidity zero correction value of the gas sensor according to the real-time humidity value and a humidity zero fitting strategy of the gas sensor.
The humidity zero fitting strategy is used for indicating the relation between humidity and zero signal values. The humidity zero fitting strategy is obtained by fitting a plurality of humidity test data sets, and each humidity test data set can be obtained by carrying out zero signal value test on the gas sensor based on a preset humidity value. Taking the example that the plurality of humidity test data sets includes the first humidity test data set and the second humidity test data set, in some embodiments, the humidity zero fitting strategy may be obtained by the following steps B1 to B3:
and B1, after the environment humidity of the gas sensor is controlled to be switched to a first humidity value, acquiring a first humidity test data set output by the gas sensor.
The humidity test data set comprises a test humidity value and a test zero signal value which are output by the gas sensor.
In some embodiments, the gas sensor may be placed in a high-low temperature box, and the program is set, where the humidity of the high-low temperature box is directly set to a first humidity value (e.g. 100% rh), the high-low temperature box is set to the first humidity value (e.g. 100% rh), and then a third preset period (e.g. 1 h) is maintained, so that the ambient humidity of the gas sensor is switched to the first humidity value, and then the humidity value output by the gas sensor at this time is collected as a test humidity value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a first humidity test data set corresponding to the first humidity value. Therefore, the environment humidity where the gas sensor is located is set to be the first humidity value, and then the third preset time period is kept, so that the matching degree of the simulation test environment of the gas sensor and the real environment corresponding to the humidity is ensured, the reliability of the actual relation between the simulation zero signal value of the first humidity test data set and the humidity is improved, and the fitting accuracy of the humidity zero fitting strategy is further improved.
In some embodiments, the first humidity test data set output by the gas sensor may be obtained after controlling the ambient humidity of the gas sensor to switch to the first humidity value according to the first humidity change rate. At this time, the gas sensor may be placed in a high-low temperature box, and a program is set, in which the humidity of the high-low temperature box is adjusted to a first humidity value according to a first humidity change rate (e.g. a rate less than or equal to 3% RH/min), then the high-low temperature box is kept for a third preset period of time (e.g. the high-low temperature box is controlled to adjust to 100% RH humidity at a rate less than or equal to 3% RH/min, and the temperature is kept at 40 ℃ and then the temperature is kept for 1 h) so that the ambient humidity where the gas sensor is located is switched to the first humidity value, and then the humidity value output by the gas sensor at this time is collected as a test humidity value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a first humidity test data set corresponding to the first humidity value. Therefore, the environment humidity where the gas sensor is located is controlled to be switched to the first humidity value according to the first humidity change rate, so that the matching degree of the simulation test environment of the gas sensor and the real environment of the corresponding humidity is ensured, the reliability of the actual relationship between the simulation zero signal value of the first humidity test data set and the humidity is improved, and the fitting accuracy of a humidity zero fitting strategy is further improved.
And B2, after the environment humidity of the gas sensor is controlled to be switched to a second humidity value, acquiring a second humidity test data set output by the gas sensor.
In some embodiments, the gas sensor may be placed in a high-low temperature box, and the program is set, where the humidity of the high-low temperature box is directly set to a second humidity value (e.g., 0% rh), the high-low temperature box is set to the second humidity value (e.g., 0% rh), and then a fourth preset period (e.g., 1 h) is maintained, so that the ambient humidity of the gas sensor is switched to the second humidity value, and then the humidity value output by the gas sensor at this time is collected as a test humidity value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a second humidity test data set corresponding to the second humidity value. Therefore, the environment humidity where the gas sensor is located is set to be the second humidity value, and then the fourth preset time period is kept, so that the matching degree of the simulation test environment of the gas sensor and the real environment of the corresponding humidity is ensured, the reliability of the actual relation between the simulation zero signal value of the second humidity test data set and the humidity is improved, and the fitting accuracy of the humidity zero fitting strategy is further improved.
In some embodiments, the second humidity test data set output by the gas sensor may be obtained after controlling the ambient humidity of the gas sensor to switch to the second humidity value according to the second humidity change rate. At this time, the gas sensor may be placed in a high-low temperature box, and a program is set, in which the humidity of the high-low temperature box is adjusted to a second humidity value according to a second humidity change rate (e.g. a rate less than or equal to 3% RH/min), then the high-low temperature box is kept for a fourth preset period of time (e.g. the high-low temperature box is controlled to adjust to 0% RH humidity at a rate less than or equal to 3% RH/min, and the temperature is kept at 40 ℃ and then the temperature is kept for 1 h) so that the ambient humidity where the gas sensor is located is switched to the second humidity value, and then the humidity value output by the gas sensor at this time is collected as a test humidity value, and the zero signal value output by the gas sensor at this time is collected as a test zero signal value, so as to obtain a second humidity test data set corresponding to the second humidity value. Therefore, the environment humidity where the gas sensor is located is controlled to be switched to the second humidity value according to the second humidity change rate, so that the matching degree of the simulation test environment of the gas sensor and the real environment of the corresponding humidity is ensured, the reliability of the actual relationship between the simulation zero signal value of the second humidity test data set and the humidity is improved, and the fitting accuracy of a humidity zero fitting strategy is further improved.
Similarly, for a plurality of preset humidity values (such as a first humidity value, a second humidity value, and a third humidity value), a humidity test data set corresponding to each preset humidity value may be collected.
The specific values of the first humidity value and the second humidity value can be set according to actual business scene requirements, and the specific values of the first humidity value and the second humidity value are not limited.
The specific values of the third preset duration and the fourth preset duration can be set according to the actual service scene requirement, and the specific values of the third preset duration and the fourth preset duration are not limited.
And B3, fitting according to the first humidity test data set and the second humidity test data set to obtain the humidity zero fitting strategy.
The humidity zero fitting strategy is used for indicating the relation between the humidity value output by the gas sensor and the zero signal value of the gas sensor.
The fitting process in step B3 may obtain a humidity zero fitting strategy in various manners, which illustratively includes:
(1) And constructing a preset humidity zero relation, substituting a plurality of humidity test data sets (wherein each humidity test data set comprises a corresponding test humidity value and a corresponding test zero signal value) into the preset humidity zero relation, and obtaining a solved humidity zero relation to be used as a humidity zero fitting strategy. At this time, the step B3 may specifically include obtaining a preset humidity zero relation, substituting the first humidity test data set and the second humidity test data set into the preset humidity zero relation to solve, obtaining a solved humidity zero relation, and using the solved humidity zero relation as a humidity zero fitting strategy.
For example, taking a preset humidity zero relation shown in formula 2 as an example, formula 2 is used to represent a relation between a humidity value output by the gas sensor and a zero signal value of the gas sensor, a plurality of humidity test data sets (including a first humidity test data set, a second humidity test data set, a third humidity test data set, and an..third..x-th humidity test data set, where x is the total number of humidity test data sets obtained by testing) may be collected and substituted into the preset humidity zero relation shown in formula 2, and a coefficient is calculatedAnd d, obtaining a solved humidity zero relation as a humidity zero fitting strategy.
Equation 2
In the formula 2 of the present invention,D is a coefficient, H represents humidity,Representing the zero signal value.
(2) Fitting zero signal values of the gas sensor by using a mathematical tool by using a plurality of humidity test data setsAnd the corresponding relation between the humidity and the humidity T is obtained through fitting, and the corresponding relation shown in the formula 2 is used as a humidity zero fitting strategy.
For example, taking the humidity zero fitting strategy as formula 2 as an example, in some embodiments, the humidity zero fitting strategy obtained in the pre-test stage may be written into the program of the gas sensor, and in step 203, the real-time humidity value H may be substituted into formula 2, and the humidity zero correction value of the gas sensor may be calculated
204. And determining a target zero point correction value of the gas sensor based on the temperature zero point correction value and the humidity zero point correction value.
For example, the temperature zero correction value may be calculated as in the following equation 3Zero correction value of humidityAs a target zero point correction value for a gas sensor
Equation 3
In equation 3, k1 and k2 respectively represent the temperature zero correction valueWeighting coefficient and humidity zero point correction value of (2)The specific values of k1 and k2 may be set according to the actual traffic scene requirement, where the specific values of k1 and k2 are not limited, for example, k1=k2=0.5 may be set.
205. And determining a corrected concentration value of the gas to be detected based on the target zero correction value and the real-time signal value.
The implementation of step 205 is various and illustratively includes:
(1) And correcting the gas concentration by using the target zero correction value. For example, at this time, as shown in fig. 3, step 205 may specifically include the following steps 2051a to 2053a:
2051A, determining a real-time normalized signal value of the gas sensor according to the target zero correction value, the real-time signal value and a preset normalized function of the gas sensor.
For example, the target zero correction value may beAnd substituting the real-time signal value ADV into a preset normalization function shown in the following formula 4, and calculating to obtain the real-time normalized signal value NAD of the gas sensor.
Equation 4
2052A, obtaining a normalized fitting strategy of the gas sensor.
The normalization fitting strategy is used for indicating the relation between the gas concentration value and the normalized signal value of the gas sensor.
In some embodiments, the normalized fitting strategy may be obtained by the following steps C1-C2:
And C1, carrying out ventilation test on the gas sensor based on a plurality of preset gas concentration values to obtain a plurality of normalized test arrays of the gas sensor.
Wherein, each normalized test array corresponds to a preset gas concentration value.
The preset zero signal value of the gas sensor can be specifically a zero signal value of the gas sensor measured under the conditions of normal temperature and normal humidity (such as 18-25 ℃ and 40-60% RH).
The method comprises the steps of firstly, respectively obtaining signal values ADVi output by the gas sensors under the preset gas concentration values Ci, then, calculating to obtain normalized signal values NADi of the gas sensors under the preset gas concentration values Ci according to signal values ADVi output by the gas sensors under the preset gas concentration values Ci and preset zero signal values of the gas sensors, and finally, taking a test array (ADVi, NADi) formed by signal values ADVi output by the gas sensors under each preset gas concentration value Ci and normalized signal values NADi of the gas sensors under each preset gas concentration value Ci as a normalized test array corresponding to the preset gas concentration value Ci. Thus, multiple normalized test arrays of gas sensors can be derived for multiple preset gas concentration values, forming a two-dimensional array { (ADV 1, NAD 1), (ADV 2, NAD 2),. The term, (ADVk, NADk) }.
For example, the gas of the preset gas concentration values C1, C2 and Ck is introduced at normal temperature, the signal value ADV1 outputted by the gas sensor at the preset gas concentration value C1, the signal value ADV2 outputted by the gas sensor at the preset gas concentration value C2 and the signal value ADVk outputted by the gas sensor at the preset gas concentration value Ck are obtained, then the normalized signal value NAD1 of the gas sensor at the preset gas concentration value C1 is calculated by referring to the mode of the formula 4 by using the signal value ADV1 outputted by the gas sensor at the preset gas concentration value C1 and the preset zero point signal value of the gas sensor, and the normalized signal values NAD2, NADk of the gas sensor at the preset gas concentration value Ck are calculated by analogy.
And C2, fitting treatment is carried out based on a plurality of normalized test arrays, and a normalized fitting strategy of the gas sensor is obtained.
In some embodiments, a mathematical tool such as Origin may be used to perform a fitting process based on a plurality of the normalized test arrays, so as to obtain a functional relation between the gas concentration value and the normalized signal value of the gas sensor, as a normalized fitting strategy of the gas sensor.
In some embodiments, a preset normalization relation may be constructed, for example, the normalization relation may be calculated by substituting a plurality of normalization test arrays into the preset normalization relation as shown in the following formula 5, so as to obtain a solved normalization relation, which is used as a normalization fitting policy.
Equation 5
In equation 5, a 1、A2、t1、t2、y0 is a constant, NAD is a normalized signal value of the gas sensor, and C is a gas concentration value.
2053A, determining the concentration value of the gas to be detected according to the real-time normalized signal value and the normalized fitting strategy, and taking the concentration value as the corrected concentration value of the gas to be detected.
Specifically, the real-time normalized signal value NAD is substituted into the normalized fitting strategy of the formula 5, and the concentration value C of the gas to be measured is calculated and obtained and is used as the corrected concentration value of the gas to be measured.
(2) And simultaneously, carrying out gas concentration correction by utilizing a target zero correction value and a target ventilation slope corresponding to the real-time temperature value. At this time, as shown in fig. 4, step 205 may specifically include the following steps 2051b to 2053b:
2051B, determining a preliminary gas concentration value of the gas to be measured based on the target zero correction value and the real-time signal value.
The step 2015B may specifically include determining a real-time normalized signal value of the gas sensor according to the target zero correction value and the real-time signal value, obtaining a normalized fitting strategy of the gas sensor, where the normalized fitting strategy is used to indicate a relationship between a gas concentration value and the normalized signal value of the gas sensor, determining a concentration value of the gas to be measured according to the real-time normalized signal value and the normalized fitting strategy, as a preliminary concentration value of the gas to be measured, for example, substituting a real-time normalized signal value NAD into the normalized fitting strategy of formula 5, and calculating a concentration value C of the gas to be measured as a preliminary concentration value of the gas to be measured. The detailed implementation of step 2015B is similar to the implementation of steps 2051 a-2053 a, and the detailed description may be referred to above, which is not repeated here.
2052B, obtaining a target ventilation slope corresponding to the real-time temperature value according to a ventilation slope reference strategy of the gas sensor.
The ventilation slope reference strategy is used for indicating the corresponding relation between the temperature and the ventilation slope. The ventilation slope reference strategy may specifically be a plurality of slope test sets { (T1, S1), (T2, S2)..the term "(Tn, sn) }. The slope test arrays are obtained by conducting ventilation slope tests on the gas sensor under standard concentration value gas based on a plurality of preset test temperature values, and each slope test array (such as (Ti, si)) comprises a preset test temperature value Ti and a ventilation slope Si for indicating the ventilation slope of a preset test temperature value. Output concentration value based on gas sensor at each preset test temperature value TiStandard concentration valueAnd a preset concentration slope relation, the ventilation slope in each slope test array can be calculated. In some embodiments, the ventilation slope reference strategy may be obtained by the following steps D1-D3:
And D1, after the environmental temperature of the gas sensor is controlled to be switched to each preset test temperature value, acquiring a gas concentration value output by the gas sensor under standard gas with a standard concentration value, and taking the gas concentration value as an output concentration value of each preset test temperature value.
And D2, determining the ventilation slope of each preset test temperature value according to the output concentration value of each preset test temperature value and the standard concentration value.
For example, a number of temperature points (T1, T2,) are selected within (-40, 70) ° C, raised/lowered to the corresponding temperature at a rate of +.2 ℃/min and maintained for 1h or more, and standard concentration values are introducedReading the gas concentration value output by the gas sensorAnd referring to the preset concentration slope relation of the following formula 6 to calculate to obtain the ventilation slope of the gas sensor at the corresponding temperature Ti
Equation 6
And D3, obtaining a plurality of slope test arrays according to the ventilation slope of each preset test temperature value, and taking the slope test arrays as the ventilation slope reference strategy.
Illustratively, the above-described process is repeated sequentially to obtain the ventilation slope of the gas sensor at n preset test temperature valuesThus, n slope test arrays (T1, S1), (T2, S2) & gt (Tn, sn) are obtained, n slope test arrays, i.e., two-dimensional arrays { (T1, S1), (T2, S2) & gt (Tn, sn) }, and two-dimensional arrays { (T1, S1), (T2, S2) & gt (Tn, sn) }, as ventilation slope reference strategies.
In some embodiments, the ventilation slope reference strategy obtained during the pre-test phase may be directly written to the gas sensor program, step 2052B directly reads the ventilation slope reference strategy, and finds a target ventilation slope corresponding to the real-time temperature value T based on the ventilation slope reference strategy, i.e., a plurality of slope test arrays (e.g., { (T1, S1), (T2, S2.) (Tn, sn) })
In some embodiments, the target ventilation slope corresponding to the real-time temperature value T may be calculated in a linear relationship using a slope test array corresponding to temperature values (e.g., T1 and T2) near the real-time temperature value T of the gas sensor with reference to a ventilation slope reference strategy
2053B, determining a corrected concentration value of the gas to be measured according to the target ventilation slope and the preliminary gas concentration value.
Illustratively, the target ventilation slope for the real-time temperature value T may be mappedSubstituting the preliminary gas concentration value C into the following formula 7 to calculate, and taking the calculated concentration value as a corrected concentration value of the gas to be measured. The preliminary gas concentration C can be calculated by a normalized fitting strategy of the formula 5, and a target ventilation slope corresponding to the real-time temperature value T is obtainedThe results may be read from a ventilation slope reference strategy, i.e., from n slope test arrays (T1, S1), (T2, S2).
Equation 7
In order to increase the determination speed of the temperature zero correction value, the humidity zero correction value, the target ventilation slope, the correction concentration value and other information, a pre-test can be performed first before formally executing the steps 201-205, wherein the pre-test stage comprises <1> fitting based on a plurality of normalization test data sets to obtain a normalization fitting strategy, and the reference formula 5 is detailed, wherein the steps C1-C2 are not repeated, and <2> fitting based on a plurality of temperature test data sets to obtain the temperature zero fitting strategy, wherein the plurality of temperature test data sets are based on a plurality of preset test temperature values (such as four preset test temperature values), the zero signal value test is performed on the gas sensor, the reference formula 1 is detailed, the steps A1-A3 are not repeated, the step <3> fitting based on a plurality of humidity test data sets to obtain the humidity zero fitting strategy, wherein the plurality of humidity test data sets are based on a plurality of humidity values (such as three preset humidity values), the reference formula 2 is performed on a plurality of preset humidity values (such as three preset humidity values), the reference formula 1-S4 is performed on the gas sensor, and the reference gradient value is not repeated, and the reference formula 1 is included, the reference formula 1 is not repeated, and the slope value is set based on the ventilation slope value is satisfied, each slope test array is obtained by conducting ventilation slope test on the gas sensor under the standard concentration value gas based on a preset test temperature value, and detailed implementation can refer to steps D1-D3, and details are not repeated here. And writing at least one of a preset normalization function, a normalization fitting strategy, a temperature zero fitting strategy, a humidity zero fitting strategy and a ventilation slope reference strategy of the gas sensor into a program of the gas sensor.
It should be noted that, unless otherwise specified, the plurality herein refers to two or more, for example, the plurality of preset temperature values may be two preset test temperature values, or three preset test temperature values, or the like, and the plurality of preset humidity values may be two preset humidity values, or three preset humidity values, or the like.
The zero drift of the sensor is corrected by the formula 3 by acquiring a real-time temperature value and a real-time humidity value to obtain a sensor temperature-related zero point (namely, a temperature zero point correction value ADV 0T) and a humidity-related zero point signal value (namely, a humidity zero point correction value ADV 0H), and the corrected concentration value of the sensor is calculated by a plurality of slope test arrays (namely, two-dimensional arrays (T1, S1) and (T2, S2) and the like (Tn, sn) and the ventilation slope S T under the real-time temperature value is calculated and substituted into formula 7. The zero point and the ventilation slope of the gas sensor are corrected by synchronization, rather than mechanically subtracting the temperature influence value f (T) and the humidity influence value f (H 2 O) from the concentration value (i.e., the real-time signal value) output from the gas sensor. Referring to fig. 5 and 6, fig. 5 is a schematic diagram illustrating an effect of temperature on a sensor zero signal value provided in an embodiment of the present application, fig. 6 is a schematic diagram illustrating an effect of humidity on a sensor zero signal value provided in an embodiment of the present application, curve 1 in fig. 5 is represented by a left-hand coordinate system data magnitude, and curve 2 in fig. 5 is represented by a right-hand coordinate system data magnitude. The graph 1 in fig. 5 shows the effect of temperature measured by the gas sensor a on the sensor zero-point signal value, the graph 2 in fig. 5 shows the effect of temperature measured by the gas sensor b on the sensor zero-point signal value, the graph 1 in fig. 6 shows the effect of humidity measured by the gas sensor a on the sensor zero-point signal value, and the graph 2 in fig. 6 shows the effect of humidity measured by the gas sensor b on the sensor zero-point signal value, and the rules of larger effect of temperature on the output concentration of the sensor, smaller effect of humidity, higher deviation value of concentration and smaller deviation value of concentration are met. The embodiment of the application uses the ventilation slope to correct the concentration value, which is obviously superior to the mode of directly subtracting the humidity and temperature related influence quantity in the related technology. Meanwhile, the embodiment of the application does not need to collect a large amount of data, the implementation workload of the gas concentration correction scheme is smaller, and the embodiment does not need to adopt a high-performance chip with high price, thereby having more cost advantages.
In the embodiment of the application, the concentration value is corrected by using ventilation slope, wherein the normalization fitting strategy (refer to formula 5) is the correspondence between normalized NAD value and concentration, the correspondence is obtained based on the preset zero signal value (the preset zero signal value can be specifically obtained by measuring the zero signal value of the gas sensor under the conditions of normal temperature and normal humidity (such as 18-25 ℃ and 40-60% RH)) of the gas sensor, the preset concentration slope relation (refer to formula 6) shows the concentration value calculated according to the normalization fitting strategy (refer to formula 5) under the high-low temperature environmentAnd the actual gas concentrationMultiplying power relation of (2),Directly related to temperature, thus if the zero signal value of the normalization function (refer to equation 4) is preset at all temperaturesAll are regarded as the same value to calculate, and the gas concentration value C calculated by using a normalized fitting strategy (refer to formula 5) has error problem, wherein formula 7 is the ventilation slope of the gas sensor at a certain temperatureCompensating the concentration value calculated by the normalized fitting strategy (refer to formula 5) to obtain a corrected concentration valueThis is a ventilation slope correction using temperature correspondence.
For a better understanding of the embodiments of the present application, the following describes a gas concentration correction scheme by way of a specific example in conjunction with a pre-test (as shown in the following sections <1> to <4 >) and a correction procedure at the time of actual application (as shown in the following section <5 >):
<1> a ventilation test is performed on a gas sensor (hereinafter simply referred to as a sensor) at normal temperature to obtain two-dimensional arrays { (C1, NAD 1), (C2, NAD 2) & gt (Ck, NADk) & gt, wherein each set of data in the two-dimensional arrays, such as (C1, NAD 1), is a normalized test array, and a normalized fitting strategy of the sensor is obtained by means of mathematical tools such as Origin, as shown in formula 5:
Equation 4
Equation 5
In equations 4 and 5, ADV represents a signal value output from the gas sensor at the gas concentration value C,The zero signal value is NAD, the normalized signal value of the gas sensor, and the gas concentration value is C.
In the pre-test phase, the gas concentration value C is the test value C1, C2...once again, the normalized signal value NAD is the test value NAD1, NAD 2..once again, NADk, ADV is the test value ADV1, ADV 2..once again, ADVk,The zero signal value is preset (specifically, the zero signal value of the gas sensor under the normal temperature and normal humidity condition). In the pre-test phase, when the test values C1, C2...the test values ADV1, ADV 2..the test values corresponding to Ck are known, and the zero point signal value is presetWhen known, the test values C1, C2. in equation 5 may be calculated using equation 4 as test values NAD1, NAD2. Where k is the total number of normalized test arrays obtained by the test.
In the practical application of the sequence number <5>, in the formulas 4 and 5, C is an unknown value to be solved, ADV is a reading value (namely, a real-time signal value output by the gas sensor for the gas to be solved),For the target zero correction value calculated according to formulas 1, 2 and 3, the read real-time signal value ADV and the target zero correction value calculated according to formula 3 are calculatedSubstituting the calculated NAD value into the formula 4 to serve as a real-time normalized signal value, substituting the calculated NAD value into the formula 5 to serve as a C value to serve as a preliminary gas concentration value.
<2> Placing the sensor in a high-low temperature box, setting a program of raising the temperature to 70 ℃ at a rate of less than or equal to 2 ℃ per minute and maintaining for 1h, lowering the temperature to-40 ℃ at a rate of less than or equal to 2 ℃ per minute and maintaining for 1h, and collecting a temperature value T and a corresponding zero signal value output by the sensorThus, a two-dimensional array { (T1),)、(T2,)......(Tm,) Each set of data in the two-dimensional array, such as (T1,) Is a temperature test data set. Fitting out the sensor zero point using a mathematical toolThe correspondence with the temperature T is used as a temperature zero fitting strategy, as shown in formula 1:
Equation 1
Zero signal value in pre-test phaseFor the test value......The temperature value T is the test value T1, T2. M is the total number of temperature test data sets obtained by the test.
At the time of the actual application of sequence number <5>,For the unknown value to be solved, T is the read real-time temperature value (i.e. the real-time temperature value output by the gas sensor for the gas to be measured), and the read real-time temperature value T is substituted into the formula 1 to calculateThe value is taken as a temperature zero correction value.
<3> Several preset test temperature values (T1, T2,) were selected within (-40, 70) °c, raised/lowered to the corresponding temperature at a rate of less than or equal to 2 ℃ per minute and maintained for 1h or more, and a standard concentration value was introducedReading the gas concentration value output by the sensorGas concentration valueAnd standard concentration valueSubstituting the preset concentration slope relation of formula 6 to calculate to obtain the ventilation slope of the sensor at the corresponding temperature:
Equation 6
The above process is repeated in turn to obtain the ventilation slope of the sensor at n preset test temperature valuesMultiple slope test arrays, i.e., two-dimensional arrays { (T1, S1), (T2, S2) &..the (Tn, sn) }, can be obtained as ventilation slope reference strategies.
In the pre-test phase of the test,In order to test the value of the test value,At the level of the known value of the value,To correspond to the preset test temperature values T1, T2Test value and known valueCalculating to obtain a test value S1S 2....sn..sn, wherein, the n is the total number of slope test arrays obtained by the test.
At the time of the actual application of sequence number <5>,For unknown values to be queried or to be solved, the values may be determined from the ventilation slope reference policies { (T1, S1), (T2, S2.) the target ventilation slope corresponding to the real-time temperature value T is found in (Tn, sn) }. Because the test process is difficult to exhaust all the temperature T conditions, the number of slope test arrays is limited, when the slope test array corresponding to the real-time temperature value T of the sensor does not exist in the ventilation slope reference strategy, the target ventilation slope corresponding to the real-time temperature value T can be calculated according to the linear relation by utilizing the slope test array corresponding to the temperature value (such as T1 and T2) nearby the real-time temperature value T of the sensor
<4> Placing the sensor in a high-low temperature box, setting a program of raising the temperature to 40 ℃ at a rate of less than or equal to 3% RH/min, maintaining the humidity at 100% RH for 1H, changing the humidity to 40 ℃ at a rate of less than or equal to 3% RH/min, maintaining the humidity at 0% RH for 1H, and collecting the humidity value H and the corresponding zero signal value output by the sensorThus, a two-dimensional array { (H1),)、(H2,)......(Hx,) Each set of data in the two-dimensional array, such as (H1,) Is a humidity test data set. Fitting out the sensor zero point using a mathematical toolThe corresponding relation with the humidity H is used as a humidity zero fitting strategy, as shown in formula 2:
Equation 2
Zero signal value in pre-test phaseFor the test value......The H humidity values are test values H1, H2. X is the total number of humidity test data sets obtained from the test.
At the time of the actual application of sequence number <5>,For the unknown value to be solved, H is the read real-time humidity value (i.e. the real-time humidity value output by the gas sensor for the gas to be measured), and the read real-time humidity value H is substituted into the formula 2 to calculateThe value is taken as a humidity zero point correction value.
<5> The equations 1, 2, 4 and 5, and the plurality of slope test arrays corresponding to the ventilation slope reference strategy, i.e., two-dimensional arrays { (T1, S1), (T2, S2) &..the sensor program is written with (Tn, sn) }, after which the sensor dynamic correction concentration includes the following steps S1 to S4:
S1, acquiring a real-time temperature value T, a real-time humidity value H and a real-time signal value ADV output by a sensor in real time, and calculating by using a formula 1 and a formula 2 AndAs shown in formula 3AndAs a real-time zero signal value of the sensor:
Equation 3
S2, utilizing the formula 4 to calculate the real-time signal value ADV and the real-time zero signal valueAnd calculating a real-time normalized signal value NAD, and calculating a C value according to the real-time normalized signal value NAD by using a formula 5 to serve as a preliminary gas concentration value, wherein the influence correction of temperature and humidity on the zero point signal value is utilized.
S3, judging the interval of the real-time temperature value T in (T1, T2, & gt..Tn.) and reading or calculating a target ventilation slope corresponding to the real-time temperature value T according to the two-dimensional array { (T1, S1), (T2, S2. & gt.& gt(Tn, sn) };
S4, calculating and obtaining a preliminary gas concentration value C according to the step S1 and a target ventilation slope corresponding to the real-time temperature value T determined in the step S3 by utilizing a formula 7Calculated outThe value is taken as the corrected concentration value of the sensor:
Equation 7
Considering that the normalized fitting strategy of formula 5 is obtained by testing at normal temperature, that is, the correspondence between the normalized signal value NAD fitted by formula 5 and the gas concentration value C is in normal temperature, and the zero signal values of different temperatures as proposed in the embodiment of the application are different, the normalized signal value NAD of formula 5 is determined by relying on the zero signal value under normal temperature, in order to reduce the zero signal value of formula 4 at all temperaturesAll are regarded as the same value to calculate, and the gas concentration value C calculated by the formula 5 has an error problem, so the gas concentration value C calculated by the formula 5 under the high and low temperature environment is constructed based on the formula 6 (corresponding to the formula 6) And the actual gas concentration (corresponding to equation 6) Multiplying power relation between. When knowing the target ventilation slope corresponding to the real-time temperature TSubstituting the gas concentration value C calculated by the formula 5 into the formula 7 for calculationThereby compensating the gas concentration value C calculated by the formula 5, that is, the ventilation slope correction corresponding to the temperature.
From the foregoing, it can be seen that, in the first aspect, by determining, in real time, the temperature zero correction value of the gas sensor according to the real-time temperature value output by the gas sensor for the gas to be measured, the zero signal value of the gas sensor can be corrected by using the real-time temperature value, so that the gas concentration correction is performed by using different zero signal values at different temperatures, the problem of low gas concentration correction accuracy caused by unstable zero signal values of the gas sensor due to temperature change is reduced, and the gas concentration correction accuracy is improved to a certain extent. According to the second aspect, the zero point signal value of the gas sensor can be corrected by utilizing the real-time humidity value by determining the zero point correction value of the gas sensor in real time according to the real-time humidity value output by the gas sensor for the gas to be detected, so that the gas concentration correction is carried out by adopting different zero point signal values under different humidities, the problem of low gas concentration correction precision caused by unstable zero point signal values of the gas sensor due to humidity change is solved, and the gas concentration correction precision is improved to a certain extent. In the third aspect, by determining the target zero correction value of the gas sensor by combining the temperature zero correction value and the humidity zero correction value, the zero signal value of the gas sensor can be corrected by using the humidity and the temperature, so that the problem that the concentration correction accuracy of the gas sensor is low due to the fact that the influence of the temperature and the humidity on the zero signal value of the sensor is not considered is solved, and the gas concentration correction accuracy is improved to a certain extent. In the fourth aspect, the target zero point correction value of the gas sensor is determined by combining the temperature zero point correction value and the humidity zero point correction value, and then the corrected concentration value of the gas to be measured is determined by using the target zero point correction value, instead of mechanically subtracting the temperature influence value and the humidity influence value from the concentration value output from the gas sensor, so that the problem of low concentration correction accuracy of the gas sensor due to the fact that the influence of humidity and temperature on the concentration is regarded as an arithmetic difference can be reduced. In the fifth aspect, since the concentration correction for the gas sensor does not require embedding of a model chip, the gas concentration correction cost and the preparation workload can be reduced. Therefore, the zero signal value and the output concentration of the gas sensor can be corrected in real time, the problem of signal drift of the gas sensor caused by temperature and humidity is solved, the implementation workload of the gas concentration correction scheme is small, the implementation can be realized without a high-performance chip, and the cost is lower.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the gas concentration correction method described above may be performed by instructions or by controlling associated hardware by instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform any of the gas concentration correction methods provided by the embodiment of the present application. For example, the computer program can be loaded by a processor to perform the steps of:
The method comprises the steps of obtaining a real-time temperature value, a real-time humidity value and a real-time signal value which are output by a gas sensor aiming at gas to be detected, determining a temperature zero point correction value of the gas sensor according to the real-time temperature value and a temperature zero point fitting strategy of the gas sensor, determining a humidity zero point correction value of the gas sensor according to the real-time humidity value and the humidity zero point fitting strategy of the gas sensor, determining a target zero point correction value of the gas sensor based on the temperature zero point correction value and the humidity zero point correction value, and determining a correction concentration value of the gas to be detected based on the target zero point correction value and the real-time signal value.
The computer readable storage medium may include, among others, read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disks, and the like.
In the embodiments of the gas concentration correction method, the computer readable storage medium and the gas detection apparatus, the description of each embodiment has emphasis, and for the part of an embodiment that is not described in detail, reference may be made to the related description of other embodiments. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and the beneficial effects of the computer readable storage medium and the gas detection apparatus described above may refer to the description of the gas concentration correction method in the above embodiment, which is not repeated herein.
The foregoing describes the principles and embodiments of the present application in detail, and the above embodiments are merely illustrative for aiding in understanding the method and core ideas of the present application, and meanwhile, according to the ideas of the present application, the person skilled in the art may change the aspects of the present application in specific embodiments and application ranges, for example, various technical features in the above embodiments may be arbitrarily combined, so long as there is no conflict or contradiction between the features, so any combination of the technical features in the above embodiments is also within the scope of disclosure of the present specification. In view of the foregoing, this description should not be construed as limiting the application.

Claims (8)

1. A gas concentration correction method, characterized in that the method comprises:
Acquiring a real-time temperature value, a real-time humidity value and a real-time signal value which are output by a gas sensor aiming at gas to be detected;
Determining a temperature zero correction value of the gas sensor according to the real-time temperature value and a temperature zero fitting strategy of the gas sensor;
Determining a humidity zero correction value of the gas sensor according to the real-time humidity value and a humidity zero fitting strategy of the gas sensor;
Determining a target zero correction value of the gas sensor based on the temperature zero correction value and the humidity zero correction value;
determining a corrected concentration value of the gas to be measured based on the target zero correction value and the real-time signal value;
the temperature zero fitting strategy of the gas sensor is determined by the following steps:
after controlling the temperature of the environment where the gas sensor is located to be switched to a first temperature value, acquiring a first temperature test data set output by the gas sensor, wherein the first temperature test data set comprises a test temperature value and a test zero signal value output by the gas sensor;
After controlling the temperature of the environment where the gas sensor is located to be switched to a second temperature value, acquiring a second temperature test data set output by the gas sensor;
fitting according to the first temperature test data set and the second temperature test data set to obtain the temperature zero fitting strategy, wherein the temperature zero fitting strategy is used for indicating the relation between the temperature value output by the gas sensor and the zero signal value of the gas sensor;
the humidity zero fitting strategy of the gas sensor is determined by the following steps:
after controlling the ambient humidity of the gas sensor to be switched to a first humidity value, acquiring a first humidity test data set output by the gas sensor, wherein the first humidity test data set comprises a test humidity value and a test zero signal value output by the gas sensor;
after the environment humidity of the gas sensor is controlled to be switched to a second humidity value, a second humidity test data set output by the gas sensor is obtained;
And fitting according to the first humidity test data set and the second humidity test data set to obtain the humidity zero fitting strategy, wherein the humidity zero fitting strategy is used for indicating the relation between the humidity value output by the gas sensor and the zero signal value of the gas sensor.
2. The gas concentration correction method according to claim 1, wherein the determining the corrected concentration value of the gas to be measured based on the target zero point correction value and the real-time signal value includes:
determining a real-time normalized signal value of the gas sensor according to the target zero correction value and the real-time signal value;
Acquiring a normalized fitting strategy of the gas sensor, wherein the normalized fitting strategy is used for indicating the relation between a gas concentration value and a normalized signal value of the gas sensor;
And determining the concentration value of the gas to be measured according to the real-time normalized signal value and the normalized fitting strategy to serve as a corrected concentration value of the gas to be measured.
3. The gas concentration correction method according to claim 2, wherein the normalized fitting strategy is determined by:
Performing ventilation test on the gas sensor based on a plurality of preset gas concentration values to obtain a plurality of normalized test arrays of the gas sensor, wherein each normalized test array corresponds to one preset gas concentration value;
And carrying out fitting treatment based on the plurality of normalized test arrays to obtain a normalized fitting strategy of the gas sensor.
4. The gas concentration correction method according to claim 1, wherein the determining the corrected concentration value of the gas to be measured based on the target zero point correction value and the real-time signal value includes:
Determining a preliminary gas concentration value of the gas to be measured based on the target zero correction value and the real-time signal value;
Acquiring a target ventilation slope corresponding to the real-time temperature value according to a ventilation slope reference strategy of the gas sensor;
and determining a corrected concentration value of the gas to be detected according to the target ventilation slope and the preliminary gas concentration value.
5. The gas concentration correction method according to claim 4, wherein the ventilation slope reference strategy is determined by:
after controlling the ambient temperature of the gas sensor to be switched to each preset test temperature value, acquiring a gas concentration value output by the gas sensor under standard gas with a standard concentration value as an output concentration value of each preset test temperature value;
Determining the ventilation slope of each preset test temperature value according to the output concentration value of each preset test temperature value and the standard concentration value;
And obtaining a plurality of slope test arrays according to the ventilation slope of each preset test temperature value to serve as the ventilation slope reference strategy, wherein each slope test array comprises one preset test temperature value and one ventilation slope, and the ventilation slope reference strategy is used for indicating the corresponding relation between the temperature and the ventilation slope.
6. The gas concentration correction method according to claim 1, characterized in that the method further comprises:
A program for writing at least one of a preset normalization function, a normalization fitting strategy, a temperature zero fitting strategy, a humidity zero fitting strategy, and a ventilation slope reference strategy of the gas sensor into the gas sensor;
The normalization fitting strategy is obtained by fitting based on a plurality of normalization test arrays;
The temperature zero fitting strategy is obtained by fitting a plurality of temperature test data sets, and the plurality of temperature test data sets are obtained by performing zero signal value test on the gas sensor based on a plurality of preset test temperature values;
The humidity zero fitting strategy is obtained by fitting a plurality of humidity test data sets, and the plurality of humidity test data sets are obtained by performing zero signal value test on the gas sensor based on a plurality of preset humidity values;
The ventilation slope reference strategy is determined based on a plurality of preset test temperature values and a preset concentration slope relation, and comprises a plurality of slope test arrays, each slope test array comprises a preset test temperature value and a ventilation slope, and each slope test array is obtained by conducting ventilation slope test on the gas sensor under standard concentration value gas based on a preset test temperature value.
7. A gas detection apparatus comprising a gas sensor, a processor and a memory, the memory having stored therein a computer program, the processor executing the gas concentration correction method according to any one of claims 1 to 6 when calling the computer program in the memory.
8. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program is loaded by a processor to perform the gas concentration correction method according to any one of claims 1 to 6.
CN202511294841.2A 2025-09-11 2025-09-11 Gas concentration correction method, gas detection apparatus, and computer-readable storage medium Active CN120778980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202511294841.2A CN120778980B (en) 2025-09-11 2025-09-11 Gas concentration correction method, gas detection apparatus, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202511294841.2A CN120778980B (en) 2025-09-11 2025-09-11 Gas concentration correction method, gas detection apparatus, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN120778980A CN120778980A (en) 2025-10-14
CN120778980B true CN120778980B (en) 2025-11-14

Family

ID=97289505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202511294841.2A Active CN120778980B (en) 2025-09-11 2025-09-11 Gas concentration correction method, gas detection apparatus, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN120778980B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114965867A (en) * 2021-02-26 2022-08-30 杭州三花研究院有限公司 Gas concentration detection method, gas detection device and control method thereof
CN119619423A (en) * 2025-02-13 2025-03-14 深圳市瑞达同生科技发展有限公司 A gas sensing compensation method, device and computer equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004198396A (en) * 2002-10-23 2004-07-15 Cosmo Instruments Co Ltd Method for obtaining drift value of leak detector, method for obtaining zero-point fluctuation value, method for obtaining humidity correction coefficient, and method for calibrating leakage detector and the leakage detector
CN120254170A (en) * 2025-02-26 2025-07-04 海纳云物联科技有限公司 Zero drift calibration method and device for sensor, and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114965867A (en) * 2021-02-26 2022-08-30 杭州三花研究院有限公司 Gas concentration detection method, gas detection device and control method thereof
CN119619423A (en) * 2025-02-13 2025-03-14 深圳市瑞达同生科技发展有限公司 A gas sensing compensation method, device and computer equipment

Also Published As

Publication number Publication date
CN120778980A (en) 2025-10-14

Similar Documents

Publication Publication Date Title
CN114216938B (en) Gas concentration detection compensation method and device
JP4927639B2 (en) Gas alarm
CN112462005B (en) Temperature compensation method and related product
CN112710375A (en) Method for adjusting zero point parameters of equipment with weighing sensor and storage medium
JP5416055B2 (en) TVOC detection method, detection apparatus, and outside air introduction amount control system
CN115952700B (en) Temperature-related data compensation method, system, computer and storage medium
CN119619423A (en) A gas sensing compensation method, device and computer equipment
CN117368424A (en) Gas concentration detection compensation method and device, gas detection equipment and storage medium
WO2025230688A1 (en) Calibration of humidity and methane inside gas sensor housing
CN120778980B (en) Gas concentration correction method, gas detection apparatus, and computer-readable storage medium
CN108138678B (en) Method for determining a gas concentration in a measurement gas using a gas sensor
CN112650740B (en) Method and system for reducing uncertainty of online monitoring carbon emission data
CN115407017A (en) Calibration method for gas detection device and gas detection device
CN115290831B (en) An air quality detection method
CN115267084A (en) Method for improving measurement accuracy of gas detector
CN118641841B (en) A method and system for detecting capacitance attenuation of flexible capacitor
CN118758441B (en) Gearbox temperature detection method and system based on historical temperature of temperature sensor
CN113189272A (en) Method for correcting monitoring data of gas sensor and cooking equipment
CN116859034B (en) Temperature abnormality judging method and data correcting method for blood gas biochemical analyzer
CN118816305A (en) Negative pressure detection method and system for operating rooms
JP2021000461A (en) System and program
CN101762718B (en) Method and device for measuring wind speed
CN117725559A (en) A numerical correction method and system for formaldehyde sensors
CN117740706A (en) Control method and device of gas monitoring device, electronic equipment and storage medium
CN117490876A (en) A temperature rise induction alarm method based on the first-order and second-order change rate of temperature

Legal Events

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