Zero-point tracking method, device, equipment, medium and product of gas sensor
By collecting and analyzing the AD value sequence of the gas sensor in real time, calculating the signal mean and entropy value, and determining whether the zero point needs to be updated, solving the problem of zero point drift during long-term detection, and improving the real-time and accuracy of zero point tracking.
Patent Information
- Application Number
- CN202510323041.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2045-03-19
AI Technical Summary
During the long-term detection process, semiconductors and thermal conductivity sensors are prone to zero-point drift, affecting the accuracy of the sensor. The existing zero-point drift detection methods are not very real-time, making it difficult to achieve long-term continuous detection.
By collecting the AD value of the gas sensor in real time, calculating the signal average and signal entropy of the AD value sequence every set time period, and determining whether the zero point needs to be updated to achieve continuous detection and accurate tracking of zero point drift.
It improves the real-time and accuracy of zero-point tracking, can more accurately judge the signal chaos of the AD value sequence, adapts to the principle characteristics of semiconductors and thermal conductivity sensors, and enhances the stability of the sensor.
Smart Images

Figure CN119915968B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of zero-point tracking, and in particular, to a zero-point tracking method, device, equipment, medium and product for a gas sensor. Background Art
[0002] Semiconductor and thermal conductivity sensors are extremely prone to zero-point drift during long-term detection, which affects the accuracy of sensor detection equipment.
[0003] In current environmental monitoring, the requirements for scientific law enforcement are gradually increasing, and detection instruments are also developing towards the trend of intelligence and generalization, putting forward higher requirements for the stability of sensors. In actual detection application scenarios, long-term continuous detection is usually required, and the gas conditions faced are very complex. In such a scenario, the detection of gas sensors inevitably involves sensor drift errors, and the related zero-point drift detection methods have the problems of weak real-time performance and inability to perform long-term continuous detection. Summary of the Invention
[0004] The purpose of this application is to provide a zero-point tracking method, device, equipment, medium and product for a gas sensor, which improves the real-time performance and accuracy of zero-point tracking.
[0005] To achieve the above purpose, this application provides the following solutions:
[0006] In the first aspect, this application provides a zero-point tracking method for a gas sensor, including:
[0007] Real-time collect the AD value of the target gas sensor;
[0008] At every set time period, obtain an AD value sequence with a set time length according to the AD values collected multiple times in real time;
[0009] For each of the set time periods, calculate the signal mean value and the signal entropy value of the AD value sequence;
[0010] Judge whether to update the zero point of the target gas sensor according to the signal mean value and the signal entropy value.
[0011] In the second aspect, this application provides a zero-point tracking device for a gas sensor. The zero-point tracking device for a gas sensor includes a main unit and a gas path structure. The gas path structure includes a filter, a sampling pump and a gas chamber connected in sequence; the gas chamber is used to place the target gas sensor, and the target gas sensor is connected to the main unit;
[0012] When detecting the gas concentration of the target gas, the target gas sequentially enters the gas chamber through the filter and the sampling pump, and the main unit is used to execute the zero-point tracking method for the gas sensor described in any one of the above.
[0013] In a third aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the zero-point tracking method of the gas sensor described in any one of the above.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the zero-point tracking method of the gas sensor described in any one of the above are implemented.
[0015] In a fifth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the zero-point tracking method of the gas sensor described in any one of the above are implemented.
[0016] According to the specific embodiments provided by the present application, the following technical effects are disclosed: The present application provides a zero-point tracking method, device, equipment, medium, and product for a gas sensor. Every set time period, an AD value sequence of a set time length is obtained based on multiple real-time collected AD values; for each set time period, the signal mean value and signal entropy value of the AD value sequence are calculated to continuously detect zero-point drift, improving the real-time performance of zero-point tracking. In addition, by combining the signal mean value with the signal entropy value to determine whether to update the zero point of the target gas sensor, the signal chaos degree of the AD value sequence can be judged more accurately, thereby improving the accuracy of zero-point tracking. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0018] Figure 1 It is a schematic flowchart of a zero-point tracking method for a gas sensor provided by an embodiment of the present application.
[0019] Figure 2 It is a schematic principle flowchart of a zero-point tracking method for a gas sensor provided by an embodiment of the present application.
[0020] Figure 3 It is a schematic diagram of the gas path structure in a zero-point tracking device for a gas sensor provided by an embodiment of the present application.
[0021] Figure 4Schematic diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0022] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0023] To make the above objects, features, and advantages of the present application more obvious and understandable, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation manners.
[0024] The present application provides a zero-point tracking method for a gas sensor, as Figure 1 and Figure 2 shown. The zero-point tracking method for the gas sensor includes steps 101 to 104.
[0025] Step 101: Real-time collect the AD value of the target gas sensor.
[0026] Step 102: Every set time period, obtain an AD value sequence with a set time length according to the AD values collected in real time multiple times.
[0027] Step 103: For each of the set time periods, calculate the signal mean value and the signal entropy value of the AD value sequence.
[0028] Step 104: Determine whether to update the zero point of the target gas sensor according to the signal mean value and the signal entropy value.
[0029] In an exemplary embodiment, in step 101, the AD value collected in real time each time is stored in the host memory. The AD value is the value after converting the analog quantity into a digital quantity.
[0030] In an exemplary embodiment, step 102 specifically includes: filtering the AD value collected each time, specifically Kalman filtering; multiple filtered AD values generate an AD value sequence with a set time length.
[0031] In an exemplary embodiment, in step 103, the formula for calculating the signal mean value of the AD value sequence is: .
[0032] Wherein, is the signal mean value, L is the set time length, is the i-th AD value.
[0033] The formula for calculating the signal entropy value of the AD value sequence is as follows: .
[0034] Wherein, is the signal entropy value, specifically, it is the expected value of the logarithm of the probability mass function of the random variable . L is the set time length, is the i-th AD value, is probability.
[0035] In an exemplary embodiment, step 104 determines the signal chaos degree of the AD value sequence through the signal mean value and the signal entropy value to determine whether to perform zero point update, specifically including: if the signal entropy value is greater than or equal to the first preset value, no zero point update is performed, and the gas detection concentration is output. If the signal entropy value is less than the first preset value, and the difference between the zero point AD value of the target gas sensor and the signal mean value is greater than or equal to the second preset value, no zero point update is performed, and the gas detection concentration is output. If the signal entropy value is less than the first preset value, and the difference between the zero point AD value of the target gas sensor and the signal mean value is less than the second preset value, zero point update and range point update are performed, and the gas detection concentration is updated.
[0036] Performing zero point update specifically includes: assigning the signal mean value to the zero point AD value and recording the zero point AD value offset value.
[0037] Range point update specifically includes: offsetting the range point according to the zero point AD value offset value.
[0038] After updating the zero point and the range point, the current gas detection concentration is recalculated and output.
[0039] The gas detection concentration is determined according to the AD value.
[0040] In terms of high precision, this application is reflected in the zero point tracking algorithm and the range point update strategy; previous products only focused on the zero point problem, but the change of the sensor zero point is actually the change of the entire sensor characteristics, accompanied by the response drift of the entire sensor; by adjusting the zero point and the range point, the overall response drift mapping of the sensor is adjusted to achieve the goal of high precision.
[0041] In the judgment process of zero point tracking in this application, the mean difference and the entropy value of the signal are combined to judge the zero point condition, which can judge the change of the zero point in real time and make updates in a timely manner. It has the characteristics of high zero point judgment and can adapt to the principle characteristics of sensors such as semiconductor and thermal conductivity sensors. Therefore, the method of this application has the advantage of strong adaptability.
[0042] Based on the same inventive concept, an embodiment of the present application further provides a zero-point tracking device for a gas sensor for implementing the zero-point tracking method of the gas sensor involved above. The solution provided by this device for solving the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the zero-point tracking device for a gas sensor provided below can refer to the limitations on the zero-point tracking method of the gas sensor in the above text, and will not be elaborated here.
[0043] In an exemplary embodiment, the present application provides a zero-point tracking device for a gas sensor. The zero-point tracking device for a gas sensor includes a main unit and a gas path structure. As Figure 3 shown, the gas path structure includes a filter, a sampling pump, and a gas chamber connected in sequence; the gas chamber is used to place the target gas sensor, and the target gas sensor is connected to the main unit.
[0044] When detecting the gas concentration of the target gas, the target gas sequentially passes through the filter and the sampling pump and enters the gas chamber, and the main unit is used to execute the zero-point tracking method of the gas sensor.
[0045] The main unit controls an analog-to-digital converter (ADC) to sample the target gas sensor, collects the AD value changed by the target gas sensor, and stores it in the memory. The target gas is air or the gas to be measured.
[0046] In an exemplary embodiment, a computer device is provided. The computer device can be a server or a terminal, and its internal structure diagram can be as Figure 4 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the zero-point tracking data of the gas sensor. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a zero-point tracking method of a gas sensor.
[0047] Those skilled in the art can understand, Figure 4The structure shown is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout. In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0048] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0049] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0050] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0051] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tapes, floppy disks, flash memories, optical memories, high-density embedded non-volatile memories, resistive random access memories (ReRAM), magnetoresistive random access memories (MRAM), ferroelectric random access memories (FRAM), phase change memories (PCM), graphene memories, etc. Volatile memories can include random access memory (RAM) or external cache memories, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0052] The databases involved in the various embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the various embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, data processing logics of programmable logics, etc., without limitation.
[0053] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0054] Specific examples are used in this article to elaborate on the principles and implementation manners of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A zero-point tracking method for a gas sensor, characterized in that: The zero point tracking method of the gas sensor comprises: Collect the AD value of the target gas sensor in real time; At every set time period, an AD value sequence of a set time length is obtained based on multiple AD values collected in real time; For each of the set time periods, calculating the signal mean and signal entropy value of the AD value sequence; Determining whether to update the zero point of the target gas sensor according to the signal mean value and the signal entropy value; Determining whether to update the zero point of the target gas sensor according to the signal mean value and the signal entropy value specifically includes: If the signal entropy value is greater than or equal to the first preset value, no zero point update is performed; If the signal entropy value is less than the first preset value, and the difference between the zero-point AD value of the target gas sensor and the signal mean value is greater than or equal to the second preset value, no zero-point update is performed; If the signal entropy value is less than the first preset value, and the difference between the zero-point AD value of the target gas sensor and the signal mean value is less than a second preset value, a zero-point update is performed.
2. The zero-point tracking method of a gas sensor according to claim 1, characterized in that: Based on multiple real-time collected AD values, an AD value sequence of a set time length is obtained, including: Filter the AD value collected each time; A plurality of filtered AD values generate an AD value sequence of a set time length.
3. The zero-point tracking method of a gas sensor according to claim 1, characterized in that: Filter the AD value collected each time, including: Kalman filtering is performed on each AD value collected.
4. The zero-point tracking method of a gas sensor according to claim 1, characterized in that: The formula for calculating the signal mean of the AD value sequence is: ; in, is the signal mean, L is the set time length, is the ith AD value.
5. The zero-point tracking method of a gas sensor according to claim 1, characterized in that: The formula for calculating the signal entropy value of the AD value sequence is: ; in, is the signal entropy value, L is the set time length, is the ith AD value, for probability.
6. A zero-point tracking device for a gas sensor, characterized in that: The zero-point tracking device of the gas sensor comprises a host and an air circuit structure, wherein the air circuit structure comprises a filter, a sampling pump and an air chamber connected in sequence; the air chamber is used to place a target gas sensor, and the target gas sensor is connected to the host; When performing gas concentration detection of a target gas, the target gas sequentially passes through the filter and the sampling pump into the gas chamber, and the host is used to execute the zero-point tracking method of the gas sensor according to any one of claims 1-5.
7. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the zero-point tracking method for the gas sensor according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the zero-point tracking method of the gas sensor according to any one of claims 1 to 5 is implemented.
9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the zero-point tracking method of the gas sensor according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Zero calibration for grain density sensor
CN107121365A
Automatic zero point tracking algorithm against zero drift of sensor
CN109631975A