Convenient home-entry sensor precision calibration method, device and equipment and storage medium

By simulating gas concentration environment and temperature and humidity compensation through a portable calibration box, the sensor threshold is dynamically corrected, solving the problem of high-frequency and low-cost calibration of small in-home sensors, and realizing high-precision on-site calibration.

CN121829630APending Publication Date: 2026-04-10SHENZHEN HEIMAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing technologies make it difficult to perform high-frequency, low-cost precision calibration of small in-home sensors without disassembly or return to the factory, resulting in decreased equipment detection accuracy and affecting system reliability and security.

Method used

By constructing a portable calibration box, different gas concentration environments are simulated, sensor data is acquired in real time, and combined with temperature and humidity compensation, the sensor threshold is dynamically corrected to achieve accuracy calibration.

Benefits of technology

Performing sensor calibration on-site significantly reduces costs, improves detection accuracy and reliability, and ensures long-term stable operation of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121829630A_ABST
    Figure CN121829630A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of sensor calibration, in particular to a convenient home-entry type sensor precision calibration method and device, equipment and a storage medium. Comprising the following steps: placing equipment to be calibrated in a target calibration box to establish data interaction connection; acquiring an original preset threshold value of the corresponding acquired data pair and the corresponding concentration environment in each concentration environment; calculating drift data corresponding to each concentration environment according to the equipment collection concentration in the same concentration environment and an original preset threshold value of the corresponding concentration environment; collecting temperature and humidity data in each concentration environment, and combining with a preset compensation coefficient of the corresponding concentration environment to obtain a temperature and humidity compensation value corresponding to each concentration environment; and according to the temperature and humidity compensation value and the drift data in the same concentration environment, updating an original preset threshold value of the corresponding concentration environment, and realizing precision calibration of the to-be-calibrated equipment. According to the invention, the portable home-entry calibration box is constructed, so that the precision calibration process can be completed on site by a user, and the calibration cost is remarkably reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of sensor calibration, and in particular to a convenient in-home sensor accuracy calibration method, apparatus, equipment, and storage medium. Background Technology

[0002] In smart home, security systems, and environmental monitoring applications, various sensors (such as gas sensors, temperature and humidity sensors, and infrared sensors) are widely deployed in homes or small spaces to collect key environmental parameters in real time and trigger corresponding control logic. To ensure the reliability and safety of the system, the detection accuracy of the sensors is crucial. However, due to long-term use, environmental interference (such as dust accumulation and drastic temperature and humidity changes), and component aging, the output characteristics of sensors gradually drift, causing measurement results to deviate from the true values, which may lead to false alarms, missed alarms, or even system failure.

[0003] Currently, accuracy calibration for such sensors mainly relies on returning them to the factory or sending them to a third-party testing organization. This method typically requires disassembling the entire device and transporting it to a location with a standard testing environment and professional calibration instruments (such as high-precision standard gas generators and constant temperature and humidity chambers), where technicians perform calibration using laboratory-grade equipment. For large-scale integrated sensing systems, although the process is cumbersome, time-consuming, and involves certain human and material costs, it is still economically acceptable. However, for numerous distributed, low-priced small-scale in-home security or environmental monitoring products (such as stand-alone smoke detectors and household carbon monoxide detectors), the value of a single device is often far lower than the labor, logistics, and downtime costs required for factory calibration, making regular calibration difficult to implement in practice.

[0004] This exposes significant shortcomings of the current calibration model: on the one hand, centralized calibration mechanisms cannot meet the high-frequency, low-cost, and low-interruption maintenance needs of a large number of small terminal devices; on the other hand, existing technologies rely excessively on post-compensation algorithms (such as dust compensation algorithms, temperature and humidity change compensation algorithms, etc.) to delay accuracy degradation, but such software-level corrections can only alleviate the impact of some known interference factors and cannot fundamentally restore the original metrological characteristics of the sensor. Summary of the Invention

[0005] To overcome the shortcomings of the prior art, this application provides a convenient in-home sensor accuracy calibration method, apparatus, equipment and storage medium. By constructing a portable in-home calibration box, the accuracy calibration process can be completed on-site by the user without the need for inspection, significantly reducing calibration costs.

[0006] The technical solution adopted by this application to solve its technical problem is: Firstly, this application provides a convenient method for calibrating the accuracy of an in-home sensor, the method comprising: The device to be calibrated is placed inside the target calibration chamber to establish a data interaction connection; the target calibration chamber is configured to sequentially generate multiple preset concentration environments to simulate different gas concentration conditions; Obtain the corresponding data pairs and the original preset threshold values ​​for each concentration environment; the data pairs include the baseline concentration and the concentration collected by the device under the current concentration environment. Based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment, the drift data corresponding to each concentration environment is calculated. Temperature and humidity data are collected under various concentration environments, and the corresponding temperature and humidity compensation values ​​are obtained by combining the preset compensation coefficients for each concentration environment. Based on the temperature and humidity compensation values ​​and drift data under the same concentration environment, the original preset threshold for the corresponding concentration environment is updated to achieve the accuracy calibration of the device to be calibrated.

[0007] Optionally, after the step of obtaining the corresponding collected data pairs and the original preset thresholds for each concentration environment, the method further includes: Based on the baseline collection concentration and the original preset threshold of the corresponding concentration environment, determine the baseline verification deviation corresponding to each concentration environment, and determine whether there is a baseline verification deviation in any concentration environment that exceeds the preset tolerance threshold. If the benchmark calibration deviation exceeds the preset tolerance threshold in any concentration environment, the calibration process will be terminated and an error message for the corresponding concentration environment will be generated.

[0008] Optionally, the step of determining the benchmark calibration deviation corresponding to each concentration environment and judging whether the benchmark calibration deviation in any concentration environment exceeds the preset tolerance range includes: Calculate the absolute difference between the original preset threshold and the benchmark collection concentration under each concentration environment, and use it as the benchmark verification deviation for each concentration environment; If the benchmark verification deviation in any concentration environment exceeds the preset tolerance threshold, the target calibration box is determined to be abnormal; when the target calibration box is abnormal, the calibration process is terminated and the error message corresponding to the concentration environment is generated.

[0009] Optionally, the step of calculating the drift data corresponding to each concentration environment based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment includes: The difference between the original preset threshold and the concentration collected by the device is calculated for each concentration environment to obtain the drift amount and drift direction corresponding to each concentration environment; The drift amount and drift direction corresponding to the same concentration environment are integrated into the drift data for the corresponding concentration environment.

[0010] Optionally, the temperature and humidity data includes temperature data and humidity data, and the compensation coefficient includes a temperature compensation coefficient and a humidity compensation coefficient; The step of collecting temperature and humidity data under various concentration environments and combining them with a preset compensation coefficient for each concentration environment to obtain the corresponding temperature and humidity compensation value includes: Collect the current temperature and humidity values ​​under the current concentration environment, and call the pre-stored temperature compensation coefficient and humidity compensation coefficient for the corresponding concentration environment; Based on the temperature compensation coefficient, the humidity compensation coefficient, the current temperature value, and the current humidity value, the temperature and humidity compensation value corresponding to the current concentration environment is calculated.

[0011] Optionally, after the step of updating the original preset threshold corresponding to the concentration environment, the method further includes: The target calibration box is configured sequentially to multiple preset verification concentration environments, and the device acquisition concentration and reference acquisition concentration corresponding to each verification concentration environment are obtained. Based on the device-collected concentration and the baseline collected concentration corresponding to the same verification concentration environment, the verification deviation of the corresponding verification concentration environment is calculated. If any of the verification deviations exceeds the preset acceptance tolerance range, the process returns to the step of calculating the drift data corresponding to each concentration environment to re-execute the calibration process until all the verification deviations are within the preset acceptance tolerance range.

[0012] Optionally, the step of placing the device to be calibrated inside the target calibration chamber to establish a data interaction connection includes: The device to be calibrated is placed in a preset installation position inside the target calibration box, and a probe set in the preset installation position is electrically connected to the reserved serial port test point of the device to be calibrated to establish a data interaction connection. The target calibration chamber is sealed, and a standard gas corresponding to the current concentration environment is injected into the target calibration chamber. The built-in fan is then activated to distribute the gas evenly, thus creating the current concentration environment.

[0013] Secondly, this application provides a convenient in-home sensor accuracy calibration device, comprising: An environment adjustment module is used to place the device to be calibrated inside a target calibration chamber to establish a data interaction connection; the target calibration chamber is configured to sequentially generate multiple preset concentration environments to simulate different gas concentration conditions. The data acquisition module is used to obtain the corresponding data pairs and the original preset threshold values ​​of each concentration environment; the data pairs include the baseline acquisition concentration and the device acquisition concentration under the current concentration environment. The drift calculation module is used to calculate the drift data corresponding to each concentration environment based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment. The compensation calculation module is used to collect temperature and humidity data under various concentration environments and, in combination with the preset compensation coefficients for the corresponding concentration environments, obtain the temperature and humidity compensation values ​​for each concentration environment. The environmental compensation module is used to update the original preset threshold of the corresponding concentration environment based on the temperature and humidity compensation value and drift data under the same concentration environment, so as to realize the accuracy calibration of the device to be calibrated.

[0014] Thirdly, this application provides an electronic device, comprising: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to perform the methods described above.

[0015] Fourthly, this application provides a computer-readable storage medium storing a program or instructions that, when executed, implement the above-described method.

[0016] The working principle of this application is to place the device to be calibrated directly into a field-deployable target calibration chamber. This chamber sequentially generates multiple preset gas environments, thereby simulating the sensor's response at different concentrations under realistic and controllable conditions. During this process, the system simultaneously acquires the benchmark concentration measured by the high-precision benchmark sensor built into the calibration chamber and the device-acquired concentration output by the device to be calibrated for each concentration environment, forming corresponding data pairs; at the same time, it retrieves the original preset threshold value set for that concentration environment.

[0017] Based on the difference between the concentration collected by the device and the original preset threshold, the sensor drift data at the current concentration can be calculated, reflecting the direction and magnitude of its detection deviation. In addition, the system also collects temperature and humidity data in real time for each concentration environment, and combines this with preset temperature and humidity compensation coefficients to calculate the additional error caused by environmental factors, i.e., the temperature and humidity compensation value. Finally, the drift data and the temperature and humidity compensation value are fused to dynamically correct the original preset threshold, thereby completing the accurate calibration of the device to be calibrated.

[0018] The beneficial effects of this application are: by constructing a portable, enclosed calibration chamber with standard gas generation capabilities, the high-precision calibration process can be completed on-site by the user, without disassembling the entire device or sending it for inspection, significantly reducing manpower, logistics, and downtime costs. Furthermore, the calibration process does not rely solely on post-hoc estimation or model fitting, but is based on actual measurement comparisons under real standard gas environments, combined with environmental parameters to perform physical-level threshold corrections, thereby truly restoring the sensor's original detection accuracy.

[0019] Based on this, high-frequency, low-cost, and highly reliable on-site calibration of in-home sensors has been achieved, providing a practical and feasible technical guarantee for the long-term stable operation of a large number of small security and environmental monitoring devices. Attached Figure Description

[0020] Figure 1 This is a flowchart illustrating the typical product sensor accuracy calibration method provided in this application; Figure 2 This is a flowchart illustrating the convenient in-home sensor accuracy calibration method provided in the embodiments of this application; Figure 3 This is an application diagram illustrating the convenient in-home sensor accuracy calibration method provided in this application embodiment; Figure 4 This is a virtual structural diagram of the convenient in-home sensor accuracy calibration device provided in this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0021] The present application will be further described below with reference to the accompanying drawings and embodiments.

[0022] The following will clearly and completely describe the concept, specific structure, and resulting technical effects of this application in conjunction with embodiments and accompanying drawings, so as to fully understand the purpose, features, and effects of this application. Obviously, the described embodiments are only a part of the embodiments of this application, not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are all within the scope of protection of this application. Furthermore, all connections / linkages involved in the patent do not simply refer to direct contact between components, but rather to the ability to form a better connection structure by adding or reducing connecting accessories according to specific implementation conditions. The various technical features in this application can be combined interactively without contradicting each other.

[0023] With the rapid development of Internet of Things (IoT) technologies such as smart homes and smart security, various in-home security and environmental monitoring products widely integrate multiple sensors, such as smoke sensors, carbon monoxide (CO) sensors, and temperature and humidity sensors. Over long-term use, these sensors are affected by environmental factors (such as dust accumulation, temperature and humidity fluctuations, and gas cross-interference), which gradually reduces their detection accuracy, thus affecting the reliability and safety of the entire product. Therefore, regular sensor accuracy calibration has become a crucial step in ensuring product performance.

[0024] Currently, the calibration of such in-home small-scale sensing devices refers to... Figure 1 , Figure 1 This is a flowchart illustrating the typical product sensor accuracy calibration method provided in this application, combined with... Figure 1 It can be seen that the current common practice is to disassemble the device and send it back to the manufacturer or a third-party testing institution for offline calibration using standard gases or a high-precision calibration platform. While this method can achieve high-precision calibration results, it has significant operational obstacles: firstly, for devices already installed in users' homes, the disassembly process is cumbersome and prone to causing secondary damage; secondly, the testing period is long, and logistics and labor costs are high, especially when the device itself is inexpensive, the calibration cost may even exceed the device's value. Furthermore, during the device testing period, the user's home security system will be interrupted, posing a potential security risk.

[0025] While some manufacturers have incorporated adaptive software strategies, such as dust compensation algorithms and temperature / humidity abrupt change compensation mechanisms, into their product designs to slow down sensor performance degradation, these methods only alleviate, but cannot fundamentally address, the systematic biases caused by sensor aging or contamination. More importantly, existing calibration systems lack a technical pathway to effectively verify and correct sensor accuracy without disrupting the device's installation or relying on return-to-factory procedures. This deficiency makes it difficult for many low-cost, high-volume in-home sensor products to maintain long-term reliable detection performance in practical use, and also hinders their widespread application in high-security scenarios.

[0026] To address the aforementioned technical deficiencies, refer to Figure 2 , Figure 2 This is a flowchart illustrating the convenient in-home sensor accuracy calibration method provided in this application embodiment. Figure 2 This paper demonstrates several key steps involved in the method of creating a sealed environment using a calibration box for convenient in-home sensor accuracy calibration, which are described in detail below: In step S1, the device to be calibrated is placed inside the target calibration box to establish a data interaction connection.

[0027] Among them, the equipment to be calibrated refers to the in-home gas sensor device that needs to be calibrated for accuracy, such as a household methane or carbon monoxide detector, which contains a gas sensing module and a data processing unit. The target calibration chamber is a closed standard gas generator with gas injection, mixing, concentration control and data communication capabilities. It is used to contain the equipment to be calibrated and provide a controllable test environment during the calibration process. The preset concentration environment is a stable test atmosphere with a specific gas concentration value generated by the target calibration chamber according to the program. It is used to simulate different concentration conditions that the sensor may encounter in actual use.

[0028] Specifically, using the target calibration box as a carrier, a controlled and programmable calibration physical space is constructed. After the disassembled device to be calibrated is placed in the predetermined position of the target calibration box, data interaction is established. Subsequently, the target calibration box injects standard gases of different concentrations into the sealed cavity in sequence according to the preset program, such as methane gas at 1000ppm, 2000ppm, and 3000ppm in sequence, thereby constructing multiple preset concentration environments. Subsequent acquisition, compensation, and other steps are performed under each preset concentration environment.

[0029] More specifically, to improve the automation, repeatability, and environmental reliability of calibration operations, this application further proposes specific implementation steps for the step of placing the device to be calibrated inside the target calibration box to establish a data interaction connection, referring to... Figure 3 , Figure 3 This is an application diagram illustrating the convenient in-home sensor accuracy calibration method provided in this application embodiment. Figure 3 The gas inlet is the entrance for external standard gas to enter the calibration box, and it is connected to the internal space of the box; the exhaust port is the gas discharge channel, which is connected to the waste gas collection bag (10) for safely exporting and centrally processing the used gas. A valve is provided at the exhaust port to control the opening and closing of gas discharge.

[0030] In addition, a product placement platform (4) is set in the central area inside the target calibration box, which provides a fixed preset installation position for the device to be calibrated, ensuring that it maintains a stable posture during the test and avoiding the sensor response from movement or tilting; an LCD columnar screen display (1) is configured above the placement platform to display key parameters such as gas concentration, temperature, and humidity inside the box in real time, so that operators can intuitively monitor the status of the calibration process. In addition, the target calibration box is equipped with a microcontroller (MCU) (2) as the control core of the entire system, which is responsible for receiving data from the concentration detection module, controlling the start and stop of the fan, managing the communication protocol, and coordinating the collaborative work of each module. The MCU is connected to the concentration detection module (3) via a data cable, which is used to monitor the gas concentration in the box in real time and obtain the concentration collected by the device; the target calibration box is also equipped with a miniature gas concentration sensing substrate module (5) to verify the effectiveness of the calibration system or to perform synchronous calibration of multiple types of sensors to obtain the reference collection concentration.

[0031] It is worth noting that the chamber is equipped with two built-in fans (6) and (7), located on the left and right sides of the chamber respectively, to drive the airflow inside the chamber, promote the uniform diffusion of the standard gas, eliminate concentration gradients, and thus improve environmental consistency. The built-in fans are controlled by the MCU and start automatically after gas injection until the concentration detection module reports that the gas distribution is uniform. In addition, the outer shell (9) of the chamber is a completely sealed structure to ensure that the calibration process is not affected by the external environment.

[0032] Based on this application illustration, the step of placing the device to be calibrated inside the target calibration chamber to establish a data interaction connection includes: The device to be calibrated is placed in a preset installation position inside the target calibration box, and a probe located at the preset installation position is electrically connected to the reserved serial port test point of the device to be calibrated to establish a data interaction connection.

[0033] Specifically, the device to be calibrated is first placed into the preset installation position inside the target calibration box. This position not only mechanically limits the device body but also integrates several precision probes. When the device is fully in place, the probes are automatically pressed to the reserved serial port test points on the bottom or side of the device under the action of spring force, forming a low-impedance electrical connection, thereby establishing a stable data interaction connection, enabling the calibration system to read the raw sensing data output by the device in real time.

[0034] Subsequently, the target calibration chamber is sealed, a standard gas corresponding to the current concentration environment is injected into the target calibration chamber, and the built-in fan is activated to make the gas evenly distributed, thus forming the current concentration environment after the gas is evenly distributed.

[0035] Specifically, the chamber is closed and sealed to form a closed chamber to prevent gas leakage. Then, according to the concentration level required for the current calibration stage, the control system drives the solenoid valve to inject the standard gas of the corresponding concentration (such as 1000 ppm methane) into the chamber. At the same time, the built-in fan is immediately started to force convection, accelerating the diffusion and mixing of gas molecules in the limited space. After a short mixing time, the gas concentration in the chamber tends to be uniform, thus forming a stable and homogeneous current concentration environment, providing reliable and repeatable test conditions for subsequent synchronous data acquisition.

[0036] In step S2, the collected data pairs corresponding to each concentration environment and the original preset threshold values ​​of the corresponding concentration environment are obtained.

[0037] The acquired data refers to a set of paired measurements synchronously obtained during the calibration process for the same concentration environment, including the baseline acquisition concentration and the device acquisition concentration under the current concentration environment. The baseline acquisition concentration is the gas concentration value under the current concentration environment measured by the highly stable miniature gas sensing module integrated inside the target calibration box, serving as a reference standard during the calibration process; while the device acquisition concentration is the gas concentration value measured and output by the device to be calibrated through its own sensing unit under the same concentration environment, representing its current detection performance.

[0038] In addition, the original preset threshold is the theoretical output threshold set by the device to be calibrated at the factory or during the last calibration for a specific concentration environment. It is used to compare with the actual measured value to determine the degree of drift.

[0039] Specifically, in the calibration process, whenever the target calibration chamber completes the establishment of a preset concentration environment (i.e., after the gas is uniformly distributed), the system simultaneously triggers two data acquisitions: one reads the concentration value output by the high-precision miniature gas sensor module built into the target calibration chamber, which serves as the baseline acquisition concentration; the other, through an established data interaction connection, obtains the concentration value reported by the device to be calibrated, i.e., the device acquisition concentration. These two data points strictly correspond to the same concentration environment in both time and space, forming a single acquisition data pair. Simultaneously, the system calls the original preset threshold associated with this concentration environment, which represents the value the device should output under ideal conditions. By juxtaposing the acquisition data pair with the original preset threshold, a complete data foundation is provided for subsequent calculations of drift and deviation assessment.

[0040] More specifically, by synchronously acquiring the output of the reference and the device, measurement misalignment caused by time delay or environmental fluctuations is avoided; the two are organized into data acquisition pairs, which clearly express the logical binding relationship between the data, making it easier for subsequent algorithm processing; at the same time, the original preset threshold is introduced as a theoretical benchmark, so that the system can not only identify the relative deviation between the device and the reference source, but also determine its absolute drift relative to the factory standard.

[0041] It is worth noting that before performing step S3, this application proposes to perform a preliminary verification of the reliability of the calibration system itself. Specifically, after the step of obtaining the corresponding collected data pairs and the original preset thresholds of the corresponding concentration environments, the method further includes: Based on the baseline collection concentration and the original preset threshold of the corresponding concentration environment, determine the baseline verification deviation for each concentration environment, and determine whether the baseline verification deviation in any concentration environment exceeds the preset tolerance threshold.

[0042] The reference calibration deviation refers to the absolute difference between the reference collection concentration measured by the high-stability sensing module inside the target calibration box and the original preset threshold corresponding to that concentration environment under a certain concentration environment. It is used to characterize the accuracy of the calibration device's output. The preset tolerance threshold is the upper limit of the allowable error set in advance by the system. It is usually expressed in concentration units (such as ppm) or relative percentages (such as ±0.1%LEL) and is used to determine whether the reference calibration deviation is within an acceptable range.

[0043] Furthermore, if the benchmark verification deviation exceeds the preset tolerance threshold in any concentration environment, the calibration process will be terminated and an error message for the corresponding concentration environment will be generated.

[0044] The error message is information generated by the system to identify the type and location of the fault when the calibration process is terminated due to an abnormality, such as "1000ppm concentration point calibration chamber reference abnormality".

[0045] Specifically, after completing data acquisition under various concentration environments, and obtaining the acquired data pairs and original preset thresholds for each concentration environment, the system first extracts the baseline acquisition concentration (i.e., the measured value from the high-precision sensor built into the calibration chamber) and the corresponding original preset threshold (i.e., the theoretical standard value) for that concentration point. The baseline verification deviation under that concentration environment is then calculated using both. Subsequently, this deviation is compared with the preset tolerance threshold to determine whether it exceeds the allowable range.

[0046] If the reference calibration deviation of all concentration points is within the tolerance range, it indicates that the target calibration box is currently working normally and the reference data is reliable, and subsequent calibration operations can continue. However, if the reference calibration deviation in any concentration environment exceeds the preset tolerance threshold, it indicates that the calibration device itself may have problems such as inaccurate gas concentration, reference sensor module drift, or uneven gas mixing. At this time, the system will immediately terminate the entire calibration process and generate an error message pointing to the specific concentration environment to prevent miscalibration of the equipment based on unreliable references.

[0047] More specifically, in the specific verification operation of the calibration device itself, the step of determining the reference calibration deviation corresponding to each concentration environment and judging whether the reference calibration deviation in any concentration environment exceeds the preset tolerance range includes: Calculate the absolute difference between the original preset threshold and the benchmark collection concentration under each concentration environment, and use it as the benchmark verification deviation for each concentration environment; If the benchmark verification deviation in any concentration environment exceeds the preset tolerance threshold, the target calibration box is determined to be abnormal; when the target calibration box is abnormal, the calibration process is terminated and the error message corresponding to the concentration environment is generated.

[0048] Specifically, in the calibration process, the system iterates through all generated concentration environments. For each concentration point, it calculates the absolute difference between its original preset threshold (i.e., the theoretical standard value of that concentration point) and the benchmark acquisition concentration (i.e., the measured value of the high-precision sensor built into the calibration chamber). This difference is defined as the benchmark verification deviation for that concentration environment. Subsequently, the system compares each benchmark verification deviation with a uniformly set preset tolerance threshold. If all deviations do not exceed the threshold, the target calibration chamber is considered to be working normally. However, if the benchmark verification deviation in any concentration environment exceeds the preset tolerance threshold, the system determines that the target calibration chamber is abnormal and immediately performs two actions: first, it terminates the current calibration process to prevent subsequent erroneous corrections to the device to be calibrated based on unreliable benchmarks; second, it generates an error message for the corresponding concentration environment, clearly indicating the concentration point where the abnormality occurred, facilitating rapid problem localization.

[0049] In one specific embodiment, after the target calibration chamber generates a methane concentration environment of 1000 ppm, the system reads the output of its built-in reference sensor as 1025 ppm. The original preset threshold for this concentration point is 1000 ppm, so the calculated reference calibration deviation is |1025−1000|=25 ppm. If the system's preset tolerance threshold is ±20 ppm (i.e., the maximum allowable deviation is 20 ppm), then 25 ppm exceeds the tolerance range. At this point, the system immediately terminates the calibration process and displays "Error: 1000 ppm concentration point calibration chamber reference abnormal" on the operation interface.

[0050] Because this judgment occurs before any parameter updates are made to the equipment to be calibrated, it effectively prevents the possibility of correcting the equipment output based on an incorrect benchmark (1025ppm). Therefore, even if the benchmark sensor of the calibration chamber experiences slight drift due to long-term use, the system can identify and refuse to perform calibration on the equipment, thus ensuring the authenticity and security of the final calibration results. This pre-checking mechanism is a key guarantee for achieving high-reliability on-site calibration.

[0051] In step S3, the drift data corresponding to each concentration environment is calculated based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment.

[0052] Among them, drift data characterizes the quantitative result of the deviation between the actual output and the ideal output of the device under calibration in a specific concentration environment, including drift direction (positive and negative values) and drift amount, which is used to describe the system performance deviation caused by factors such as aging, contamination or environmental stress of the sensor.

[0053] Specifically, during the calibration process, once the target calibration chamber establishes a stable concentration environment, the system acquires the device-collected concentration output by the device to be calibrated under that environment and compares it with the original preset threshold corresponding to that concentration point to obtain a numerical deviation, i.e., drift data. This calculation is performed independently under each preset concentration environment, thereby generating a set of drift data corresponding one-to-one with each concentration point. Since each set of data is based on measured and theoretical values ​​under the same physical concentration environment, it can truly reflect the degree of deviation of the device at that operating point, providing a direct basis for subsequent compensation and threshold updates.

[0054] More specifically, this application embodiment uses decomposition and reconstruction to structurally represent the performance deviation of the sensor at various concentration points. Specifically, the step of calculating the drift data corresponding to each concentration environment based on the device-collected concentration under the same concentration environment and the original preset threshold of the corresponding concentration environment includes: The difference between the original preset threshold and the concentration collected by the device is calculated for each concentration environment to obtain the drift amount and drift direction corresponding to each concentration environment.

[0055] Among them, drift amount refers to the absolute value of the difference between the original preset threshold and the concentration collected by the device under a certain concentration environment. It is used to quantify the degree to which the sensor output deviates from the ideal value. Drift direction refers to the deviation trend represented by the positive or negative sign of the above difference. If the concentration collected by the device is lower than the original preset threshold, the drift direction is "too low"; otherwise, it is "too high".

[0056] Furthermore, the drift amount and drift direction corresponding to the same concentration environment are integrated into the drift data for the corresponding concentration environment.

[0057] Specifically, under each concentration environment, the system first calculates the algebraic difference between the original preset threshold and the concentration collected by the device (usually defined as: original preset threshold − device collected concentration). The absolute value of this difference is the drift amount, reflecting the magnitude of the deviation; its sign determines the direction of the drift, with a positive value indicating that the device output is too low and a negative value indicating that the output is too high.

[0058] Subsequently, the system logically integrates the drift amount and drift direction obtained under the same concentration environment to form a unified data unit containing numerical and trend information, namely drift data. This process is independently repeated under all preset concentration environments, ultimately generating a set of drift data corresponding one-to-one with the concentration point.

[0059] In one specific embodiment, when calibrating a home methane detector, the system acquires a concentration of 940 ppm at a concentration of 1000 ppm, while the original preset threshold is 1000 ppm. The difference is calculated as: 1000ppm − 940ppm = +60ppm. This results in a drift of 60 ppm, with the drift direction being "too low" (because the difference is positive, it indicates the device output is lower than the theoretical value). At a concentration of 2000 ppm, the device acquires a concentration of 2050 ppm, with a difference of 2000ppm − 2050ppm = −50ppm, corresponding to a drift of 50 ppm, with the drift direction being "too high". The system integrates each set of drift amount and direction into complete drift data, for example, "1000ppm point: +60ppm (too low)" and "2000ppm point: −50ppm (too high)".

[0060] Because the quantity and direction are clearly distinguished, the subsequent compensation module can adjust the equipment response upwards at 1000 ppm and downwards at 2000 ppm, achieving precise bidirectional correction. If only the absolute deviation is used without distinguishing the direction, it may incorrectly adjust upwards or downwards uniformly, exacerbating the error at high concentration points. Therefore, this structured drift data generation mechanism is a key technical support for achieving high-precision, multi-point adaptive calibration.

[0061] In step S4, temperature and humidity data for each concentration environment are collected, and the temperature and humidity compensation values ​​for each concentration environment are obtained by combining the preset compensation coefficients for the corresponding concentration environments.

[0062] Among them, temperature and humidity data refer to the ambient temperature and humidity values ​​collected synchronously under each concentration environment during the calibration process, which are used to characterize the thermal and humidity state of the current test conditions; while compensation coefficient: a set of parameters pre-calibrated for a specific concentration environment, including temperature compensation coefficient and humidity compensation coefficient, which respectively characterize the error ratio caused by a unit temperature or humidity change to the sensor output, usually in % / ℃ or % / RH (relative humidity).

[0063] Specifically, once the target calibration chamber establishes a stable concentration environment, the system synchronously collects temperature and humidity data under that environment, i.e., the current temperature and humidity values. Then, it calls upon preset compensation coefficients associated with that concentration environment. These coefficients, obtained through extensive experimental calibration during product development, reflect the sensor's sensitivity to temperature and humidity changes at that concentration. The system multiplies the temperature value by the temperature compensation coefficient and the humidity value by the humidity compensation coefficient, then performs linear or approximately linear calculations based on a reference standard to obtain a comprehensive temperature and humidity compensation value. This value represents the equivalent concentration error introduced under the current environmental conditions due to temperature and humidity deviations from standard conditions, and must be deducted during calibration.

[0064] More specifically, in order to achieve concentration adaptability and calculation accuracy of environmental compensation, this application proposes to configure compensation coefficients independently for each concentration environment and collect real-time temperature and humidity data in that environment, so that the compensation model can accurately reflect the sensor’s sensitivity differences to the environment at different operating points. Specifically, the temperature and humidity data includes temperature data and humidity data, and the compensation coefficients include temperature compensation coefficients and humidity compensation coefficients. The step of collecting temperature and humidity data under various concentration environments and combining them with a preset compensation coefficient for each concentration environment to obtain the corresponding temperature and humidity compensation value includes: Collect the current temperature and humidity values ​​under the current concentration environment, and call the pre-stored temperature compensation coefficient and humidity compensation coefficient for the corresponding concentration environment; Based on the temperature compensation coefficient, the humidity compensation coefficient, the current temperature value, and the current humidity value, the temperature and humidity compensation value corresponding to the current concentration environment is calculated.

[0065] Specifically, the system first collects the current temperature and humidity values ​​under the given environment as the actual environmental input. Then, the system retrieves pre-stored temperature and humidity compensation coefficients corresponding to this concentration environment from the storage unit. Next, based on a linear compensation model, the system multiplies the temperature deviation (current temperature - reference temperature) by the temperature compensation coefficient, and the humidity deviation (current humidity - reference humidity) by the humidity compensation coefficient. These two values ​​are then summed to calculate the final temperature and humidity compensation value for this concentration environment. The temperature and humidity compensation value represents the equivalent concentration error introduced under the current environmental conditions due to deviations from standard conditions in temperature and humidity, and must be deducted during calibration.

[0066] In one specific embodiment, when calibrating a methane detector, after the target calibration chamber generates an environment with a concentration of 1000 ppm, the system collects the current temperature value as 30°C and the current humidity value as 70%RH. The system then calls the temperature compensation coefficient of 0.04% / °C and the humidity compensation coefficient of 0.015% / RH corresponding to this 1000 ppm concentration point (reference conditions are 25°C and 50%RH). The calculation process is as follows: The percentage of error caused by temperature = (30−25)×0.04% = +0.20%; The percentage of error caused by humidity = (70−50)×0.015% = +0.30%; Total error percentage = 0.50%.

[0067] If the equipment's measurement range is 0–5000ppm, then the temperature and humidity compensation value = 5000ppm × 0.50% = 25ppm. This 25ppm is the amount of environmental interference that needs to be deducted from the equipment's original output.

[0068] In step S5, the original preset threshold of the corresponding concentration environment is updated based on the temperature and humidity compensation value and drift data under the same concentration environment, so as to achieve the accuracy calibration of the device to be calibrated.

[0069] Specifically, under each concentration environment, the system has obtained two key correction bases: first, drift data, which characterizes the inherent output deviation of the equipment due to factors such as aging and contamination; and second, temperature and humidity compensation values, which characterize the additional errors caused by the current environmental conditions. The system algebraically synthesizes these two data points, superimposing the drift data and temperature and humidity compensation values ​​to obtain a comprehensive correction amount. Subsequently, this comprehensive correction amount is applied to the original preset threshold to generate updated threshold parameters, which are then written to the storage unit of the equipment to be calibrated.

[0070] More specifically, by quantifying and integrating temperature and humidity compensation values ​​with drift data separately, the system avoids misinterpreting environmental errors as device drift, or vice versa, thereby significantly improving the accuracy and physical rationality of calibration. The updated threshold not only compensates for the sensor's own performance degradation but also incorporates adaptability to typical indoor environments, enabling the device to maintain high accuracy after calibration without relying on constant temperature and humidity conditions.

[0071] In one specific embodiment, when calibrating a household methane detector, the device measured a concentration of 960 ppm in an environment with a concentration of 1000 ppm. The original preset threshold was 1000 ppm, resulting in a calculated drift of +40 ppm (the device reading was too low). Simultaneously, the ambient temperature was 32°C and the humidity was 68%RH. Using the compensation coefficient corresponding to this concentration point, the calculated temperature and humidity compensation value was -15 ppm (meaning environmental factors caused the device reading to be 15 ppm too high, requiring downward correction). The system combined the two: Overall correction = +40 ppm (drift) - 15 ppm (ambient) = +25 ppm. Therefore, the original preset threshold of 1000 ppm was updated to 1025 ppm. After calibration, when the device is again placed in a 1000 ppm methane environment, even if the ambient temperature and humidity are the same as during calibration, its output will be closer to the true value.

[0072] Because it considers both device drift and environmental interference, the calibration results remain highly reliable even in the real-world high-temperature and high-humidity environment of a user's kitchen. If only drift is corrected while ignoring the effects of temperature and humidity, the equipment may continue to exceed the acceptable range after calibration due to environmental effects. Conversely, if only environmental compensation is performed while ignoring device aging, the fundamental performance degradation caused by long-term use cannot be addressed. Therefore, this integrated update mechanism is key to achieving the calibration goal of "accurate upon installation and long-term reliability."

[0073] It is worth noting that this application embodiment also constructs a closed-loop feedback mechanism to verify the validity of the calibration results and ensure that they meet the accuracy requirements. Specifically, after the step of updating the original preset threshold of the corresponding concentration environment, the method further includes: The target calibration box is configured sequentially to multiple preset verification concentration environments, and the device acquisition concentration and reference acquisition concentration corresponding to each verification concentration environment are obtained.

[0074] Among them, the verification concentration environment refers to a set of preset gas concentration environments regenerated by the target calibration box after the main calibration process is completed, which are used to verify the calibration results. The concentration points are usually consistent with or cover the key operating conditions used in the calibration stage, and are used to verify the effectiveness of the calibration.

[0075] Subsequently, based on the device-collected concentration and the benchmark-collected concentration corresponding to the same verification concentration environment, the verification deviation of the corresponding verification concentration environment is calculated. Among them, the verification deviation refers to the difference between the device acquisition concentration output by the device to be calibrated and the reference acquisition concentration measured by the high-precision sensing module built into the target calibration box under a certain verification concentration environment. It is used to quantify the actual measurement error of the device after calibration.

[0076] If any of the verification deviations exceeds the preset acceptance tolerance range, the process returns to the step of calculating the drift data corresponding to each concentration environment to re-execute the calibration process until all the verification deviations are within the preset acceptance tolerance range.

[0077] Among them, the preset acceptance tolerance range is the maximum allowable error range set in advance by the system. It can be expressed by absolute concentration (e.g., ±20ppm) or relative percentage (e.g., ±5%), and serves as the final standard for determining whether the calibration is qualified.

[0078] Specifically, after the calibration process is completed and the original preset thresholds have been updated, the system controls the target calibration chamber to generate multiple preset verification concentration environments in sequence. These environments are independent of the concentration point injection operations during the calibration process, constituting a complete "post-calibration test". In each verification concentration environment, the system synchronously acquires the device-collected concentration (from the device to be calibrated that has completed the threshold update) and the reference collected concentration (from the high-stability reference sensor in the calibration chamber), and calculates the difference between the two as the verification deviation at that point.

[0079] The system then determines whether all verification deviations fall within the preset acceptance tolerance range. If all are satisfied, the calibration process ends; however, if any verification deviation exceeds this range, the system returns to the step of "calculating the drift data corresponding to each concentration environment," re-executes the complete calibration process including drift calculation, temperature and humidity compensation, and threshold update, and performs verification again until all verification deviations meet the acceptance criteria. At this point, an electronic calibration pass report containing information such as sensor model, calibration time, thresholds before and after calibration, and error values ​​can be output.

[0080] Reference Figure 4 , Figure 4 This is a virtual structural diagram of the convenient in-home sensor accuracy calibration device provided in this application. A second aspect of this application provides a convenient in-home sensor accuracy calibration device, comprising: The environment adjustment module 100 is used to place the device to be calibrated inside the target calibration chamber to establish a data interaction connection; the target calibration chamber is configured to sequentially generate multiple preset concentration environments to simulate different gas concentration conditions. The data acquisition module 200 is used to acquire the corresponding data pairs and the original preset threshold values ​​of the corresponding concentration environments under various concentration environments; the data pairs include the baseline acquisition concentration and the device acquisition concentration under the current concentration environment. The drift calculation module 300 is used to calculate the drift data corresponding to each concentration environment based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment. The compensation calculation module 400 is used to collect temperature and humidity data under various concentration environments and, in combination with the preset compensation coefficients for the corresponding concentration environments, obtain the temperature and humidity compensation values ​​for each concentration environment. The environmental compensation module 500 is used to update the original preset threshold of the corresponding concentration environment based on the temperature and humidity compensation value and drift data under the same concentration environment, so as to realize the accuracy calibration of the device to be calibrated.

[0081] The convenient in-home sensor accuracy calibration device described in this application embodiment can execute the convenient in-home sensor accuracy calibration method provided in the above embodiments. The convenient in-home sensor accuracy calibration device has the corresponding functional steps and beneficial effects of the convenient in-home sensor accuracy calibration method described in the above embodiments. For details, please refer to the embodiments of the convenient in-home sensor accuracy calibration method described above. The embodiments of this application will not be repeated here.

[0082] This application also provides an electronic device, please refer to... Figure 5 , Figure 5This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include a processor and a memory, which can be connected via a bus or other means. The processor may be a Central Processing Unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips. The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the convenient in-home sensor accuracy calibration method in the embodiments of this application. The processor executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory, thereby realizing the convenient in-home sensor accuracy calibration method in the above method embodiments.

[0083] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created by the processor, etc. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. The one or more modules are stored in the memory and, when executed by the processor, perform the convenient in-home sensor accuracy calibration method as described in the above method embodiments. Specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the above method embodiments, and will not be repeated here. Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it may include the processes of the embodiments of the above methods. The storage medium may be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above types of memory.

[0084] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0085] Similarly, it should be understood that, in order to streamline this disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of this application, various features of this application are sometimes grouped together in a single embodiment, figure, or description thereof. However, this approach to disclosure should not be construed as reflecting an intention that the claimed application requires more features than expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of this application.

[0086] It should be noted that the above embodiments are illustrative of this application and not restrictive of this application, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims.

Claims

1. A convenient in-home sensor accuracy calibration method, characterized in that, The method includes: The device to be calibrated is placed inside the target calibration chamber to establish a data interaction connection; the target calibration chamber is configured to sequentially generate multiple preset concentration environments to simulate different gas concentration conditions; Obtain the corresponding data pairs and the original preset threshold values ​​for each concentration environment; the data pairs include the baseline concentration and the concentration collected by the device under the current concentration environment. Based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment, the drift data corresponding to each concentration environment is calculated. Temperature and humidity data are collected under various concentration environments, and the corresponding temperature and humidity compensation values ​​are obtained by combining the preset compensation coefficients for each concentration environment. Based on the temperature and humidity compensation values ​​and drift data under the same concentration environment, the original preset threshold for the corresponding concentration environment is updated to achieve the accuracy calibration of the device to be calibrated.

2. The convenient in-home sensor accuracy calibration method according to claim 1, characterized in that, After the step of obtaining the corresponding collected data pairs and the original preset thresholds for each concentration environment, the method further includes: Based on the baseline collection concentration and the original preset threshold of the corresponding concentration environment, determine the baseline verification deviation corresponding to each concentration environment, and determine whether there is a baseline verification deviation in any concentration environment that exceeds the preset tolerance threshold. If the benchmark calibration deviation exceeds the preset tolerance threshold in any concentration environment, the calibration process will be terminated and an error message for the corresponding concentration environment will be generated.

3. The convenient in-home sensor accuracy calibration method according to claim 2, characterized in that, The step of determining the benchmark calibration deviation corresponding to each concentration environment and judging whether the benchmark calibration deviation in any concentration environment exceeds the preset tolerance range includes: Calculate the absolute difference between the original preset threshold and the benchmark collection concentration under each concentration environment, and use it as the benchmark verification deviation for each concentration environment; If the benchmark verification deviation in any concentration environment exceeds the preset tolerance threshold, the target calibration box is determined to be abnormal; when the target calibration box is abnormal, the calibration process is terminated and the error message corresponding to the concentration environment is generated.

4. The convenient in-home sensor accuracy calibration method according to claim 1, characterized in that, The step of calculating the drift data corresponding to each concentration environment based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment includes: The difference between the original preset threshold and the concentration collected by the device is calculated for each concentration environment to obtain the drift amount and drift direction corresponding to each concentration environment; The drift amount and drift direction corresponding to the same concentration environment are integrated into the drift data for the corresponding concentration environment.

5. The convenient in-home sensor accuracy calibration method according to claim 1, characterized in that, The temperature and humidity data include temperature data and humidity data, and the compensation coefficient includes a temperature compensation coefficient and a humidity compensation coefficient. The step of collecting temperature and humidity data under various concentration environments and combining them with a preset compensation coefficient for each concentration environment to obtain the corresponding temperature and humidity compensation value includes: Collect the current temperature and humidity values ​​under the current concentration environment, and call the pre-stored temperature compensation coefficient and humidity compensation coefficient for the corresponding concentration environment; Based on the temperature compensation coefficient, the humidity compensation coefficient, the current temperature value, and the current humidity value, the temperature and humidity compensation value corresponding to the current concentration environment is calculated.

6. The convenient in-home sensor accuracy calibration method according to claim 1, characterized in that, After the step of updating the original preset threshold of the corresponding concentration environment, the method further includes: The target calibration box is configured sequentially to multiple preset verification concentration environments, and the device acquisition concentration and reference acquisition concentration corresponding to each verification concentration environment are obtained. Based on the device-collected concentration and the baseline collected concentration corresponding to the same verification concentration environment, the verification deviation of the corresponding verification concentration environment is calculated. If any of the verification deviations exceeds the preset acceptance tolerance range, the process returns to the step of calculating the drift data corresponding to each concentration environment to re-execute the calibration process until all the verification deviations are within the preset acceptance tolerance range.

7. The convenient in-home sensor accuracy calibration method according to claim 1, characterized in that, The step of placing the device to be calibrated inside the target calibration box to establish a data interaction connection includes: The device to be calibrated is placed in a preset installation position inside the target calibration box, and a probe set in the preset installation position is electrically connected to the reserved serial port test point of the device to be calibrated to establish a data interaction connection. The target calibration chamber is sealed, and a standard gas corresponding to the current concentration environment is injected into the target calibration chamber. The built-in fan is then activated to distribute the gas evenly, thus creating the current concentration environment.

8. A convenient in-home sensor accuracy calibration device, characterized in that, include: The environmental adjustment module is used to place the device to be calibrated inside the target calibration chamber to establish a data interaction connection. The target calibration chamber is configured to sequentially generate multiple preset concentration environments to simulate different gas concentration conditions; The data acquisition module is used to obtain the corresponding data pairs and the original preset threshold values ​​of each concentration environment; the data pairs include the baseline acquisition concentration and the device acquisition concentration under the current concentration environment. The drift calculation module is used to calculate the drift data corresponding to each concentration environment based on the concentration collected by the device under the same concentration environment and the original preset threshold of the corresponding concentration environment. The compensation calculation module is used to collect temperature and humidity data under various concentration environments and, in combination with the preset compensation coefficients for the corresponding concentration environments, obtain the temperature and humidity compensation values ​​for each concentration environment. The environmental compensation module is used to update the original preset threshold of the corresponding concentration environment based on the temperature and humidity compensation value and drift data under the same concentration environment, so as to realize the accuracy calibration of the device to be calibrated.

9. An electronic device, characterized in that, include: One or more processors; One or more memory units; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a program or instructions that, when executed, implement the method as described in any one of claims 1 to 7.