Zero tracking method, device and equipment of gas sensor, medium and product

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.

CN119915968AActive Publication Date: 2025-05-02SHEN ZHEN ERANNTEX ELECTRONICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510323041.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-05-02
Estimated Expiration
2045-03-19

AI Technical Summary

Technical Problem

During the long-term detection process, semiconductors and thermal conductivity sensors are prone to zero-point drift, resulting in a decrease in sensor detection accuracy. The existing zero-point drift detection methods are insufficient in real time, making it difficult to achieve long-term continuous detection.

Method used

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.

Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119915968A_ABST
    Figure CN119915968A_ABST
Patent Text Reader

Abstract

The invention discloses a zero point tracking method, device and equipment of a gas sensor, a medium and a product, and relates to the technical field of zero point tracking, and the method comprises the following steps: collecting an AD value of a target gas sensor in real time; an AD value sequence with a set time length is obtained according to the AD values collected in real time for multiple times every set time period; for each set time period, calculating a signal mean value and a signal entropy value of the AD value sequence; and judging whether to update the zero point of the target gas sensor or not according to the signal mean value and the signal entropy value. According to the invention, the real-time performance and precision of zero point tracking are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of zero-point tracking technology, 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 very likely to produce zero-point drift during long-term detection, which affects the accuracy of the sensor detection equipment.

[0003] The requirements for scientific law enforcement in current environmental monitoring are gradually increasing, and detection instruments are also developing towards intelligence and universality, which puts higher requirements on 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 this scenario, gas sensor detection is inevitably accompanied by sensor drift errors. The related zero drift detection method has the problem of poor real-time performance and cannot perform long-term continuous detection. Summary of the invention

[0004] The purpose of the present 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 objectives, this application provides the following solutions: In a first aspect, the present application provides a zero-point tracking method for a gas sensor, comprising: 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; Whether to update the zero point of the target gas sensor is determined according to the signal mean value and the signal entropy value.

[0006] In a second aspect, the present application provides a zero-point tracking device for a gas sensor, the zero-point tracking device for the gas sensor comprising a host and a gas path structure, the gas path structure comprising 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 the gas concentration of the target gas is detected, the target gas enters the gas chamber through the filter and the sampling pump in sequence, and the host is used to execute any one of the above-mentioned zero-point tracking methods for the gas sensor.

[0007] In a third aspect, the present application provides 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 steps of the zero-point tracking method for a gas sensor described in any one of the above.

[0008] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the zero-point tracking method for a gas sensor as described above.

[0009] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned zero-point tracking methods for a gas sensor.

[0010] According to the specific embodiments provided by the present application, the present application discloses the following technical effects: the present application provides a zero-point tracking method, device, equipment, medium and product for a gas sensor, wherein 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 set time period, the signal mean and signal entropy value of the AD value sequence are calculated to achieve continuous detection of zero-point drift, thereby improving the real-time performance of zero-point tracking; in addition, by judging whether to update the zero point of the target gas sensor based on the signal mean combined with the signal entropy value, the degree of signal confusion of the AD value sequence can be more accurately judged, thereby improving the accuracy of zero-point tracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0012] Figure 1 A schematic flow chart of a zero-point tracking method for a gas sensor provided in one embodiment of the present application.

[0013] Figure 2 A schematic diagram of the principle flow of a zero-point tracking method for a gas sensor provided in one embodiment of the present application.

[0014] Figure 3 A schematic diagram of the gas path structure in a zero point tracking device of a gas sensor provided in one embodiment of the present application.

[0015] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0017] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0018] The present application provides a zero point tracking method for a gas sensor, such as Figure 1 and Figure 2 As shown, the zero point tracking method of the gas sensor includes steps 101 to 104.

[0019] Step 101: Collect the AD value of the target gas sensor in real time.

[0020] Step 102: 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.

[0021] Step 103: For each of the set time periods, the signal mean and signal entropy value of the AD value sequence are calculated.

[0022] 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.

[0023] In an exemplary embodiment, the AD value collected in real time each time is stored in the host memory in step 101. The AD value is the value obtained by converting the analog value into a digital value.

[0024] In an exemplary embodiment, step 102 specifically includes: filtering the AD value collected each time, specifically Kalman filtering; and generating an AD value sequence of a set time length from a plurality of filtered AD values.

[0025] In an exemplary embodiment, in step 103, the formula for calculating the signal mean of the AD value sequence is: .

[0026] in, is the signal mean, L is the set time length, is the ith AD value.

[0027] The formula for calculating the signal entropy value of the AD value sequence is: .

[0028] in, is the signal entropy value, Specifically, a random variable Probability mass function The expected value of the logarithm of , L is the set time length, is the ith AD value, for probability.

[0029] In an exemplary embodiment, step 104 determines the signal disorder degree of the AD value sequence by the signal mean and the signal entropy value to determine whether to perform a zero point update, specifically including: if the signal entropy value is greater than or equal to a 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 is greater than or equal to a 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 is less than the second preset value, a zero point update and a range point update are performed, and the gas detection concentration is updated.

[0030] The 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.

[0031] The updating of the measuring point specifically includes: offsetting the measuring point according to the zero point AD value offset value.

[0032] After updating the zero point and span point, the current gas detection concentration is recalculated and output.

[0033] The gas detection concentration is determined based on the AD value.

[0034] The high precision of this application is reflected in the zero point tracking algorithm and the range point updating strategy; previous products only focused on the zero point problem, but often the change of the sensor zero point is 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.

[0035] In the judgment process of zero-point tracking of the present 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 timely updates. It has a higher characteristic of judging the zero point and can adapt to the principle characteristics of sensors such as semiconductors and thermal conductivity sensors. Therefore, the method of the present application has the advantage of strong adaptability.

[0036] Based on the same inventive concept, the embodiment of the present application also provides a zero-point tracking device for a gas sensor for implementing the zero-point tracking method for a gas sensor involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the zero-point tracking device for one or more gas sensors provided below can refer to the limitations of the zero-point tracking method for a gas sensor above, and will not be repeated here.

[0037] In an exemplary embodiment, the present application provides a zero-point tracking device for a gas sensor, the zero-point tracking device for the gas sensor comprising a host and a gas path structure, such as Figure 3 As shown, the gas path structure includes 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.

[0038] When the gas concentration of the target gas is detected, the target gas enters the gas chamber through the filter and the sampling pump in sequence, and the host is used to execute the zero point tracking method of the gas sensor.

[0039] The host controls the analog-to-digital converter (ADC) to sample the target gas sensor, collect the AD value of the target gas sensor, and store it in the memory. The target gas is air or the gas to be tested.

[0040] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to 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 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 an external device. 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, a zero-point tracking method of a gas sensor is implemented.

[0041] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0042] 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-mentioned method embodiments are implemented.

[0043] 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.

[0044] 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 used 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 must comply with relevant regulations.

[0045] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0046] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a data processing logic of a programmable logic device, etc., but is not limited thereto.

[0047] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0048] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this 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; Whether to update the zero point of the target gas sensor is determined according to the signal mean value and the signal entropy value.

2. The zero-point tracking method of a gas sensor according to claim 1, characterized in that: 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.

3. 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.

4. The zero-point tracking method of a gas sensor according to claim 2, characterized in that: Filter the AD value collected each time, including: Kalman filtering is performed on each AD value collected.

5. 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.

6. 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.

7. 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-6.

8. 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 6.

9. 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 6 is implemented.

10. 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 6 is implemented.

Citation Information

Patent Citations

  • Zero calibration for grain density sensor

    CN107121365A

  • Automatic zero point tracking algorithm against zero drift of sensor

    CN109631975A

  • Human body behavior vitality measurement method and system based on human body behavior information entropy

    CN111276249A

  • Zero drift compensation method and device, expiration measurement equipment and storage medium

    CN117310144A

  • Dynamic zero point algorithm of air quality sensor and detection method thereof

    CN118362611A