Carbon monoxide concentration determination method, apparatus, electronic device, and storage medium

CN122545635BActive Publication Date: 2026-10-27X-SENSE INNOVATIONS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611055582.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-07-16
Publication Date
2026-10-27
Estimated Expiration
2046-07-16

AI Technical Summary

Technical Problem

一氧化碳传感器长期使用之后,会出现电极催化活性衰减、电解液挥发损耗等老化问题,导致一氧化碳气体传感器的检测结果会出现误差,同时,由于现场工作环境中气流扰动、周边设备电磁干扰、短时高浓度气体冲击等外部干扰因素,也会进一步干扰一氧化碳传感器的检测结果

Benefits of technology

可以看出,本发明实施方式中所描述的一氧化碳浓度确定方法,应用于一氧化碳传感器,当所述一氧化碳传感器位于目标区域内时,获取所述一氧化碳传感器在预设时间段内的动态响应电流,其中,所述动态响应电流为所述一氧化碳传感器在所述目标区域内的一氧化碳气体激励下产生的实时变化的电流信号,所述动态响应电流包括非稳态响应电流和稳态响应电流,然后确定与所述稳态响应电流对应的稳态电流值,并基于所述稳态电流值确定参考一氧化碳浓度值,接着确定与所述非稳态响应电流对应的响应特征参数,并基于所述响应特征参数确定目标浓度补偿系数,最后基于所述目标浓度补偿系数调整所述参考一氧化碳浓度值,得到目标一氧化碳浓度值,从而提升了一氧化碳浓度检测的准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122545635B_ABST
    Figure CN122545635B_ABST
Patent Text Reader

Abstract

The application discloses a carbon monoxide concentration determination method and device, electronic equipment and storage medium. The method comprises the following steps: when the carbon monoxide sensor is located in the target area, the dynamic response current of the carbon monoxide sensor in the preset time period is obtained, wherein the dynamic response current is the real-time change current signal of the carbon monoxide sensor under the excitation of the carbon monoxide gas in the target area, the dynamic response current comprises the non-steady-state response current and the steady-state response current, then the steady-state current value corresponding to the steady-state response current is determined, the reference carbon monoxide concentration value is determined based on the steady-state current value, then the response characteristic parameter corresponding to the non-steady-state response current is determined, the target concentration compensation coefficient is determined based on the response characteristic parameter, finally, the reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient, and the target carbon monoxide concentration value is obtained. The accuracy of the carbon monoxide concentration detection is improved by adopting the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of sensor diagnostic technology, and in particular to a method, apparatus, electronic device, and storage medium for determining carbon monoxide concentration. Background Technology

[0002] Electrochemical carbon monoxide sensors, as the core detection element of gas monitoring equipment, can capture the carbon monoxide content in the environment in real time, making them a crucial monitoring component for preventing poisoning and avoiding explosions. After prolonged use, carbon monoxide sensors experience aging issues such as electrode catalytic activity decay and electrolyte evaporation, leading to errors in detection results. Furthermore, external interference factors in the working environment, such as airflow disturbances, electromagnetic interference from surrounding equipment, and short-term high-concentration gas impacts, can further interfere with the sensor's detection results. Therefore, improving the accuracy of carbon monoxide concentration detection is an urgent problem to be solved. Summary of the Invention

[0003] This application provides a method, apparatus, electronic device, and storage medium for determining carbon monoxide concentration, which improves the accuracy of carbon monoxide concentration detection.

[0004] In a first aspect, embodiments of this application provide a method for determining carbon monoxide concentration, applied to a carbon monoxide sensor, the method comprising: When the carbon monoxide sensor is located in the target area, the dynamic response current of the carbon monoxide sensor within a preset time period is acquired; the dynamic response current is the real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area, and the dynamic response current includes non-steady-state response current and steady-state response current. Determine the steady-state current value corresponding to the steady-state response current; The reference carbon monoxide concentration value is determined based on the steady-state current value; Determine the response characteristic parameters corresponding to the unsteady-state response current; The target concentration compensation coefficient is determined based on the aforementioned response characteristic parameters; The reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value.

[0005] Secondly, embodiments of this application provide a carbon monoxide concentration determination device, applied to a carbon monoxide sensor, the device comprising: an acquisition unit and a processing unit; The acquisition unit is used to acquire the dynamic response current of the carbon monoxide sensor within a preset time period when the carbon monoxide sensor is located in the target area; the dynamic response current is the real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area, and the dynamic response current includes non-steady-state response current and steady-state response current. The processing unit is used to determine the steady-state current value corresponding to the steady-state response current; The reference carbon monoxide concentration value is determined based on the steady-state current value; Determine the response characteristic parameters corresponding to the unsteady-state response current; The target concentration compensation coefficient is determined based on the aforementioned response characteristic parameters; The reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value.

[0006] Thirdly, embodiments of the present invention provide an electronic device, including: a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor to cause the electronic device to perform the method as described in the first aspect.

[0007] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that is executed by a processor to implement the method as described in the first aspect.

[0008] Fifthly, embodiments of the present invention provide a computer program product including a non-transitory computer-readable storage medium storing a computer program, such that a computer performs the method as described in the first aspect.

[0009] Implementing the embodiments of the present invention has the following beneficial effects: As can be seen, the carbon monoxide concentration determination method described in the embodiments of the present invention is applied to a carbon monoxide sensor. When the carbon monoxide sensor is located in a target area, the dynamic response current of the carbon monoxide sensor within a preset time period is acquired. The dynamic response current is a real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area. The dynamic response current includes a non-steady-state response current and a steady-state response current. Then, the steady-state current value corresponding to the steady-state response current is determined, and a reference carbon monoxide concentration value is determined based on the steady-state current value. Next, the response characteristic parameter corresponding to the non-steady-state response current is determined, and a target concentration compensation coefficient is determined based on the response characteristic parameter. Finally, the reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value, thereby improving the accuracy of carbon monoxide concentration detection. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.

[0011] Figure 1 This is an application scenario diagram of a carbon monoxide sensor provided in the embodiments of this application; Figure 2 This is a flowchart of a method for determining carbon monoxide concentration provided in an embodiment of this application; Figure 3 This is a flowchart of a method for determining response characteristic parameters provided in an embodiment of this application; Figure 4 This is a schematic diagram of a dynamic current change curve provided in an embodiment of this application; Figure 5 This is a flowchart of a method for determining a target concentration compensation coefficient provided in an embodiment of this application; Figure 6 This is a flowchart provided by an embodiment of the present application for determining the remaining service life of a carbon monoxide sensor; Figure 7 This is a schematic diagram of a carbon monoxide concentration determination device provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0012] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.

[0013] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0014] In this document, the term "implementation" means that a specific feature, structure, or characteristic described in connection with an implementation may be included in at least one implementation of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same implementation, nor is it a separate or alternative implementation mutually exclusive with other implementations. It will be explicitly and implicitly understood by those skilled in the art that the implementations described herein can be combined with other implementations.

[0015] Please see Figure 1 , Figure 1 This is an application scenario diagram of a carbon monoxide sensor provided in the embodiments of this application.

[0016] In this embodiment, the target area is the kitchen area. When the carbon monoxide sensor is located in the kitchen area, gas combustion equipment such as gas stoves are installed. Incomplete combustion and gas leaks will produce carbon monoxide gas. Moreover, kitchens are mostly relatively enclosed and small spaces, where carbon monoxide can easily accumulate, posing a significant risk of poisoning. The carbon monoxide sensor placed in the kitchen area will be in constant contact with the carbon monoxide gas in the environment. When the carbon monoxide sensor is excited by the carbon monoxide gas in the kitchen area, it will generate a real-time changing current signal, namely, a non-steady-state response current and a steady-state response current. The steady-state response current can reflect the carbon monoxide levels in the current kitchen area. Since the basic carbon content is known, the reference carbon monoxide concentration value can be determined based on the steady-state response current. The response characteristic parameters corresponding to the non-steady-state response current can reflect the detection deviation caused by the gas concentration change process. The target concentration compensation coefficient can be determined based on the response characteristic parameters corresponding to the non-steady-state response current. Then, the reference carbon monoxide concentration value is corrected using this target concentration compensation coefficient, and finally, the accurate target carbon monoxide concentration value is obtained. After that, the accurate target carbon monoxide concentration value can be sent to the maintenance mobile terminal, so that maintenance personnel can check the carbon monoxide concentration in the kitchen area in real time, detect safety hazards such as gas leaks and incomplete combustion in a timely manner, and avoid carbon monoxide poisoning incidents.

[0017] Please see Figure 2 , Figure 2 This is a flowchart of a method for determining carbon monoxide concentration according to an embodiment of this application. The method is applied to a carbon monoxide sensor and includes, but is not limited to, the following steps: S201: When the carbon monoxide sensor is located within the target area, acquire the dynamic response current of the carbon monoxide sensor within a preset time period.

[0018] In this embodiment, the dynamic response current is a real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area, and the dynamic response current includes non-steady-state response current and steady-state response current.

[0019] In this embodiment, the target area refers to a closed or semi-closed indoor space where gas combustion, fuel oil equipment, or charcoal fire devices are present, which easily generate carbon monoxide and where the gas can easily accumulate. Specifically, it can be a residential gas kitchen, a closed garage, a gas-heated bedroom, a basement storage room, a shop kitchen gas operation room, an underground parking lot, a boiler room, a charcoal fire restaurant private room, an internal combustion engine room, a metallurgical heat treatment workshop, an underground pipe gallery, or an underground closed working tunnel. These areas are equipped with equipment that easily generates carbon monoxide, such as gas stoves, fuel oil vehicles, diesel generators, charcoal fire devices, and combustion heat treatment devices. If combustion is incomplete, pipelines leak, or exhaust gas cannot be released, carbon monoxide will accumulate, posing a risk of poisoning and explosion. Carbon monoxide sensors can be placed inside the target area, allowing direct and full contact with the air in the area to continuously sense the concentration of carbon monoxide in the air.

[0020] It should be explained that carbon monoxide sensors can be deployed and installed according to the diffusion and accumulation characteristics of carbon monoxide gas in different target areas. Specifically, in residential kitchens and heated rooms, carbon monoxide sensors can be fixed on the wall above the gas stove and heating equipment, away from strong airflow interference such as exhaust fans, doors, and windows. In commercial enclosed spaces such as underground garages, boiler rooms, and diesel engine rooms, they can be deployed at equal intervals along the walls, prioritizing low-lying areas where exhaust gas tends to accumulate. In industrial tunnels, heat treatment workshops, underground pipe corridors, and other working areas, they can be fixed in sections around combustion equipment and personnel work areas. When deploying carbon monoxide sensors, they should not be completely enclosed by cabinets or obstructions; the sensors must be in full contact with the air in the area. After being powered on, the carbon monoxide sensors remain in standby monitoring mode for an extended period, continuously sensing the concentration of carbon monoxide gas in the environment for a preset time period.

[0021] In this embodiment, the dynamic response current is a real-time variable electrical signal generated by the electrochemical reaction that occurs when the gas-sensitive element inside the carbon monoxide sensor comes into contact with carbon monoxide gas in the target area. The entire process of carbon monoxide concentration gradually increasing from an initial gas-free state to eventually stabilizing corresponds to two completely different current waveforms. One is the non-steady-state response current generated during the rapid concentration fluctuation stage when carbon monoxide gas first comes into contact with the carbon monoxide sensor. The non-steady-state response current can reflect the current fluctuation characteristics caused by rapid changes in gas concentration. The other is the steady-state response current, where the carbon monoxide concentration in the target area remains stable and the output value of the carbon monoxide sensor remains constant. This steady-state response current can correspond to the basic carbon monoxide content under stable environmental conditions. These two current waveforms, the non-steady-state response current and the steady-state response current, can fully reflect the current change data of carbon monoxide from its appearance to its stable concentration.

[0022] S202: Determine the steady-state current value corresponding to the steady-state response current.

[0023] In this embodiment, continuous sampling data with fluctuation amplitude less than a preset current threshold can be selected from the steady-state response current. The fluctuation amplitude is the difference between the sampling current and the adjacent sampling current, which is used to characterize the degree of instantaneous fluctuation of the current signal. Then, the average current value corresponding to the continuous sampling data can be used as the steady-state current value. The steady-state current value can characterize the basic output electrical signal of the carbon monoxide sensor under the stable state of carbon monoxide concentration in the target area.

[0024] S203: Determine the reference carbon monoxide concentration value based on the steady-state current value.

[0025] In this embodiment, the mapping relationship can be a preset relationship between a steady-state current value and a carbon monoxide concentration value. Based on this mapping relationship, a reference carbon monoxide concentration value can be determined based on the steady-state current value. It should be explained that this mapping relationship can be obtained in advance through multiple training fits using carbon monoxide gas samples.

[0026] S204: Determine the response characteristic parameters corresponding to the unsteady-state response current.

[0027] In this embodiment, the response characteristic parameters may include time-domain characteristic parameters and frequency-domain characteristic parameters. First, the unsteady current change curve corresponding to the unsteady response current can be determined, and then the characteristic parameters corresponding to the unsteady current change curve can be determined to obtain the time-domain characteristic parameters. Alternatively, a Fourier transform can be performed based on the unsteady response current to obtain spectral data, and then the characteristic parameters corresponding to the spectral data can be determined to obtain the frequency-domain characteristic parameters.

[0028] S205: Determine the target concentration compensation coefficient based on the response characteristic parameters.

[0029] In this embodiment, when the carbon monoxide concentration in the target area increases or decreases rapidly, the gas-sensitive element in the carbon monoxide sensor may experience problems such as response lag and signal waveform distortion. The carbon monoxide concentration value determined solely by the steady-state current may result in detection deviation. Since the time-domain and frequency-domain characteristic parameters corresponding to the non-steady-state response current can fully characterize the dynamic operating conditions of the carbon monoxide sensor, such as the signal fluctuation amplitude, response speed, and spectral distortion degree, during the dynamic change of concentration, the target concentration compensation coefficient should be determined based on the response characteristic parameters corresponding to the non-steady-state response current to facilitate the correction of the carbon monoxide concentration value and make the final carbon monoxide concentration detection result more accurate.

[0030] S206: Adjust the reference carbon monoxide concentration value based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value.

[0031] In this embodiment, the target carbon monoxide concentration value can be determined in the following manner: Target carbon monoxide concentration = Reference carbon monoxide concentration × (1 + Target concentration compensation coefficient); The reference carbon monoxide concentration value can be adjusted based on the target concentration compensation coefficient in the manner described above to obtain the target carbon monoxide concentration value.

[0032] The response characteristic parameters corresponding to the unsteady-state response current can quantify the response delay, current waveform distortion, and signal fluctuations of the carbon monoxide sensor during rapid changes in carbon monoxide concentration. When the time-domain characteristic parameters corresponding to the unsteady-state response current show a larger current rise slope, a higher response peak, and a longer signal fluctuation duration, and the frequency-domain characteristic parameters show a higher degree of spectral amplitude deviation and harmonic distortion, it indicates a faster rate of change in carbon monoxide concentration in the target area and a more severe degree of dynamic response distortion of the carbon monoxide sensor. A larger target concentration compensation coefficient is then determined. After using this target concentration compensation coefficient to correct the reference carbon monoxide concentration value, the difference between the final carbon monoxide concentration detection result and the reference carbon monoxide concentration value will be greater. If the current rise slope, response peak, and signal fluctuation duration corresponding to the time-domain characteristic parameters are smaller, and the spectral amplitude deviation and harmonic distortion degree corresponding to the frequency-domain characteristic parameters are lower, it indicates that the carbon monoxide concentration in the target area changes gently, the signal distortion generated by the dynamic response of the carbon monoxide sensor is weak, the determined target concentration compensation coefficient is smaller, the correction amplitude of the reference carbon monoxide concentration value is correspondingly reduced, and the difference between the final carbon monoxide concentration detection result and the reference carbon monoxide concentration value is smaller. Therefore, by matching the target concentration compensation coefficient of the corresponding size in real time with the response characteristic parameters, the carbon monoxide detection result can be adjusted according to the degree of dynamic signal distortion of the carbon monoxide sensor, making the final output carbon monoxide concentration value more accurate.

[0033] As can be seen, by splitting the dynamic response current output by the carbon monoxide sensor into a non-steady-state response current and a steady-state response current, a reference carbon monoxide concentration value is first determined based on the steady-state current value corresponding to the steady-state response current. Then, a target concentration compensation coefficient is determined based on the response characteristic parameters corresponding to the non-steady-state response current. Finally, the reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value. In the past, relying solely on steady-state current to calculate the concentration would ignore detection deviations caused by sudden changes in gas concentration and environmental interference, easily leading to inaccurate values ​​and false alarms. However, this implementation method uses current change data in the non-steady-state stage for compensation, which can improve the accuracy of concentration detection in both stable environments and scenarios with rapid changes in carbon monoxide concentration, effectively improving the accuracy of carbon monoxide concentration detection.

[0034] When the response characteristic parameters include time-domain characteristic parameters and frequency-domain characteristic parameters, please refer to Figure 3 , Figure 3 This is a flowchart of a method for determining response characteristic parameters provided in an embodiment of this application, including but not limited to the following steps: S301: Determine the unsteady current change curve corresponding to the unsteady response current.

[0035] In this embodiment, the dynamic response current includes both the unsteady-state response current and the steady-state response current. The dynamic current variation curve can be determined based on the dynamic response current, the unsteady-state current variation curve can be determined based on the unsteady-state response current, and the steady-state current variation curve can be determined based on the steady-state response current. Therefore, the dynamic current variation curve includes both the unsteady-state current variation curve and the steady-state current variation curve. Please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram of a dynamic current change curve provided in an embodiment of this application. The horizontal axis of the dynamic current change curve represents time, and the vertical axis represents current. The dynamic current change curve includes a non-steady-state current change curve and a steady-state current change curve, which are composed of two consecutive parts: the non-steady-state current change curve and the steady-state current change curve. The non-steady-state current change curve corresponds to the non-steady-state response current output by the carbon monoxide sensor during the stage of rapid rise and fall of carbon monoxide concentration in the target area. During this stage, the gas-sensitive element of the carbon monoxide sensor is affected by the sudden change in concentration, and the output current exhibits obvious oscillations, fluctuations, and rises and falls. The current value changes irregularly over time, which can intuitively reflect the signal distortion and response delay characteristics of the carbon monoxide sensor during the dynamic response process. The steady-state current change curve corresponds to the steady-state response current output by the carbon monoxide sensor during the stage when the carbon monoxide concentration in the target area tends to be constant. During this stage, the carbon monoxide concentration in the target area does not fluctuate significantly, the gas-sensitive element of the carbon monoxide sensor fully reacts and reaches an equilibrium state, and the output current value remains basically stable with only a very small fluctuation.

[0036] The dynamic current change curve reflects the entire response process of the carbon monoxide sensor from contact with carbon monoxide gas to outputting a stable current. The first fluctuating section is the non-steady-state current change curve corresponding to the non-steady-state response current, and the latter flat and constant section is the steady-state current change curve corresponding to the steady-state response current.

[0037] S302: Determine the characteristic parameters corresponding to the unsteady current change curve to obtain the time-domain characteristic parameters.

[0038] In this embodiment, based on the unsteady current change curve, time-domain characteristic parameters such as the unsteady current response duration and the peak current duration can be determined. The unsteady current response duration is used to characterize the duration of the unsteady response current response, and the peak current duration is the duration during which the unsteady response current maintains a constant peak current value.

[0039] S303: Perform a Fourier transform based on the unsteady-state response current to obtain the spectrum data.

[0040] In this embodiment, a Fourier transform mathematical operation is performed on the unsteady-state response current. The operation process decomposes the current fluctuation signal with time as the variable into a superposition of sinusoidal fundamental wave components with different frequencies and amplitudes. Finally, the output is spectrum data containing the amplitude and phase information of each frequency component. The spectrum data is a visualized quantized spectrum generated after performing a Fourier transform on the time-domain signal of the unsteady-state response current. The horizontal axis of the spectrum data is the frequency, which is used to characterize the vibration speed of each sinusoidal wave component constituting the unsteady-state response current signal. The larger the value of the horizontal axis coordinate, the higher the fluctuation frequency of the corresponding signal component. The vertical axis of the spectrum data is the amplitude, which is used to characterize the intensity of each frequency component in the overall unsteady-state response current signal. The higher the value of the vertical axis coordinate, the greater the amplitude.

[0041] S304: Determine the characteristic parameters corresponding to the spectrum data to obtain the frequency domain characteristic parameters.

[0042] In this embodiment, frequency domain characteristic parameters such as the dominant frequency and spectral entropy can be determined based on the spectral data. The dominant frequency is the frequency value corresponding to the peak frequency energy in the spectral data, and the spectral entropy characterizes the dispersion of frequency domain energy distribution in the spectral data. Specifically, the energy value of each frequency component is obtained by squaring the amplitude corresponding to each frequency point in the spectral data. Then, the energy of all frequency components is summed to obtain the total frequency domain energy. The ratio of the energy of each frequency component to the total frequency domain energy is used as the energy probability of that frequency. Based on the energy probabilities corresponding to all frequencies, the information entropy calculation formula is substituted to perform calculations, ultimately yielding the spectral entropy. The spectral entropy characterizes the dispersion state of all frequency domain energy in different frequency intervals. If the energy distribution of each frequency component is relatively balanced, the spectral entropy value is relatively large; if most of the energy is concentrated near a single dominant frequency, the spectral entropy value is relatively small.

[0043] It can be seen that time-domain and frequency-domain feature parameters complement each other, fully covering all signal deviation characteristics of the carbon monoxide sensor under conditions of rapid changes in carbon monoxide concentration. This allows for accurate quantification of detection errors caused by dynamic response, thereby improving the final detection results of carbon monoxide concentration in scenarios with drastic fluctuations. Extracting only time-domain feature parameters can only capture the trend of slow current changes over time, making it difficult to identify high-frequency signal distortion caused by instantaneous concentration fluctuations and easily losing key interference information. However, this implementation method combines time-domain and frequency-domain feature parameters to determine the complete variation law of the non-steady-state response current. Time-domain feature parameters can reflect the hysteresis changes caused by gas diffusion and slow sensor response, while frequency-domain feature parameters can capture high-frequency fluctuation signals generated by instantaneous airflow disturbances and sudden concentration changes. The effective combination of time-domain and frequency-domain feature parameters can effectively improve the accuracy of carbon monoxide concentration detection.

[0044] Please see Figure 5 , Figure 5 This is a flowchart of determining a target concentration compensation coefficient provided in an embodiment of this application, including but not limited to the following steps: S501: Determine the time-domain compensation coefficient based on the time-domain characteristic parameters.

[0045] In this embodiment, when the time-domain characteristic parameters include the unsteady-state current response duration and the peak current duration, the unsteady-state current response duration is used to characterize the duration of the unsteady-state response current response, and the peak current duration is the duration during which the unsteady-state response current maintains a constant peak current value. First, a first time-domain compensation coefficient corresponding to the unsteady-state current response duration and a second time-domain compensation coefficient corresponding to the peak current duration can be determined. Then, a reference time-domain compensation coefficient is determined based on the first and second time-domain compensation coefficients. Next, the current difference between the steady-state current value and the peak current value is determined, and then a first adjustment factor corresponding to the current difference is determined. Finally, the reference time-domain compensation coefficient is adjusted based on the first adjustment factor to obtain the time-domain compensation coefficient.

[0046] For example, a first time-domain compensation coefficient corresponding to the duration of the unsteady-state current response and a second time-domain compensation coefficient corresponding to the duration of the peak current are determined. Specifically, this can be a preset first mapping relationship between the unsteady-state current response duration and the time-domain compensation coefficient, based on which the first time-domain compensation coefficient corresponding to the duration of the unsteady-state current response can be determined. Alternatively, it can be a preset second mapping relationship between the duration of the peak current and the time-domain compensation coefficient, based on which the second time-domain compensation coefficient corresponding to the duration of the peak current can be determined.

[0047] For example, a reference time-domain compensation coefficient is determined based on the first time-domain compensation coefficient and the second time-domain compensation coefficient. Specifically, a first weight corresponding to the first time-domain compensation coefficient and a second weight corresponding to the second time-domain compensation coefficient can be determined first, wherein the sum of the first weight and the second weight is 1. Then, the reference time-domain compensation coefficient can be determined based on the first weight, the second weight, the first time-domain compensation coefficient, and the second time-domain compensation coefficient. Specifically, the reference time-domain compensation coefficient can be calculated as follows: Reference time-domain compensation coefficient = first time-domain compensation coefficient × first weight + second time-domain compensation coefficient × second weight; The reference time-domain compensation coefficient can be determined based on the first weight, the second weight, the first time-domain compensation coefficient, and the second time-domain compensation coefficient in the manner described above.

[0048] For example, the current difference between the steady-state current value and the peak current value is determined. Specifically, the current difference between the steady-state current value and the peak current value can intuitively reflect the maximum fluctuation amplitude of the current signal of the carbon monoxide sensor during the dynamic change of carbon monoxide concentration. The larger the current difference between the steady-state current value and the peak current value, the higher the oscillation amplitude of the gas-sensitive element of the carbon monoxide sensor and the more significant the dynamic signal distortion. The corresponding time-domain compensation coefficient value also needs to be increased accordingly.

[0049] For example, a first adjustment factor corresponding to the current difference is determined. Specifically, it can be a mapping relationship between the current difference between the preset steady-state current value and the peak current value and the adjustment factor. Based on this mapping relationship, the first adjustment factor corresponding to the current difference can be determined.

[0050] For example, the reference time-domain compensation coefficient is adjusted based on the first adjustment factor to obtain the time-domain compensation coefficient. Specifically, the time-domain compensation coefficient can be determined in the following manner: Time-domain compensation coefficient = Reference time-domain compensation coefficient × (1 + First adjustment factor); The reference time-domain compensation coefficient can be adjusted based on the first adjustment factor in the manner described above to obtain the time-domain compensation coefficient.

[0051] It can be seen that when the time-domain characteristic parameters include the unsteady-state current response duration and the peak current duration, firstly, a first time-domain compensation coefficient corresponding to the unsteady-state current response duration and a second time-domain compensation coefficient corresponding to the peak current duration are determined. Then, a reference time-domain compensation coefficient is determined based on the first and second time-domain compensation coefficients. Next, the current difference between the steady-state current value and the peak current value is determined, and a first adjustment factor corresponding to the current difference is determined. Finally, the reference time-domain compensation coefficient is adjusted based on the first adjustment factor to obtain the time-domain compensation coefficient. By comprehensively considering the unsteady-state current response duration, the peak current duration, and the current difference between the steady-state current value and the peak current value to determine the time-domain compensation coefficient, the time-domain compensation coefficient can be made to closely match the true distortion degree of the current unsteady-state response current.

[0052] S502: Determine the frequency domain compensation coefficient based on the frequency domain characteristic parameters.

[0053] In this embodiment, when the frequency domain feature parameters include the dominant frequency and the spectral entropy, the dominant frequency is the frequency value corresponding to the peak frequency energy in the frequency domain data, and the spectral entropy is used to characterize the dispersion of the frequency domain energy distribution in the frequency domain data. First, a first frequency domain compensation coefficient corresponding to the dominant frequency and a second frequency domain compensation coefficient corresponding to the spectral entropy are determined. Then, a reference frequency domain compensation coefficient is determined based on the first and second frequency domain compensation coefficients. Next, the total frequency domain energy value in the high-frequency range of the frequency data is determined to obtain the total frequency domain energy value in the high-frequency range. Then, the total frequency domain energy value in the low-frequency range is determined to obtain the total frequency domain energy value in the low-frequency range. Then, the difference between the total frequency domain energy value in the high-frequency range and the total frequency domain energy value in the low-frequency range is determined to obtain the frequency domain energy difference. Then, a second adjustment factor corresponding to the frequency domain energy difference is determined. Finally, the reference frequency domain compensation coefficient is adjusted based on the second adjustment factor to obtain the frequency domain compensation coefficient.

[0054] For example, a first frequency domain compensation coefficient corresponding to the dominant frequency of the spectrum and a second frequency domain compensation coefficient corresponding to the spectral entropy are determined. Specifically, this can be a preset third mapping relationship between the dominant frequency of the spectrum and the frequency domain compensation coefficients. Based on this third mapping relationship, the first frequency domain compensation coefficient corresponding to the dominant frequency of the spectrum can be determined. Alternatively, this can be a preset fourth mapping relationship between the spectral entropy and the frequency domain compensation coefficients. Based on this fourth mapping relationship, the second frequency domain compensation coefficient corresponding to the spectral entropy can be determined.

[0055] For example, a reference frequency domain compensation coefficient is determined based on the first frequency domain compensation coefficient and the second frequency domain compensation coefficient. Specifically, a third weight corresponding to the first frequency domain compensation coefficient and a fourth weight corresponding to the second frequency domain compensation coefficient can be determined first, wherein the sum of the third weight and the fourth weight is 1. Then, the reference frequency domain compensation coefficient can be determined based on the third weight, the fourth weight, the first frequency domain compensation coefficient, and the second frequency domain compensation coefficient. Specifically, the reference frequency domain compensation coefficient can be calculated as follows: Reference frequency domain compensation coefficient = first frequency domain compensation coefficient × third weight + second frequency domain compensation coefficient × fourth weight; The reference frequency domain compensation coefficient can be determined based on the third weight, the fourth weight, the first frequency domain compensation coefficient, and the second frequency domain compensation coefficient in the manner described above.

[0056] For example, the total frequency domain energy value in the high-frequency range of the spectrum data is determined to obtain the total frequency domain energy value of the high-frequency range, and the total frequency domain energy value in the low-frequency range is determined to obtain the total frequency domain energy value of the low-frequency range. Specifically, the high-frequency range and the low-frequency range are obtained by dividing the spectrum data by a preset boundary frequency. The frequency domain energy corresponding to all frequency components in the high-frequency range is counted and accumulated to obtain the total frequency domain energy value of the high-frequency range. The frequency domain energy corresponding to all frequency components in the low-frequency range is counted and accumulated to obtain the total frequency domain energy value of the low-frequency range.

[0057] For example, the difference between the total frequency domain energy value of the high-frequency range and the total frequency domain energy value of the low-frequency range is determined to obtain the frequency domain energy difference value. Specifically, the frequency domain energy difference value between the total frequency domain energy value of the high-frequency range and the total frequency domain energy value of the low-frequency range can intuitively reflect the difference in energy distribution between high-frequency distortion harmonics and low-frequency fundamental signals in the unsteady-state response current signal. The larger the frequency domain energy difference value, the higher the degree of harmonic distortion inside the unsteady-state response current signal and the more serious the distortion of the dynamic signal of the carbon monoxide sensor. The adjustment range corresponding to the frequency domain compensation coefficient also needs to be increased accordingly.

[0058] For example, determining the second adjustment factor corresponding to the frequency domain energy difference can specifically be a mapping relationship between the frequency domain energy difference and the adjustment factor between the total frequency domain energy value in the high-frequency range and the total frequency domain energy value in the low-frequency range, and the second adjustment factor corresponding to the frequency domain energy difference can be determined based on this mapping relationship.

[0059] For example, the reference frequency domain compensation coefficient is adjusted based on the second adjustment factor to obtain the frequency domain compensation coefficient. Specifically, the frequency domain compensation coefficient can be determined in the following manner: Frequency domain compensation coefficient = Reference frequency domain compensation coefficient × (1 + Second adjustment factor); The reference frequency domain compensation coefficient can be adjusted based on the second adjustment factor in the manner described above to obtain the frequency domain compensation coefficient.

[0060] As can be seen, based on the two parameters of spectral dominant frequency and spectral entropy in the frequency domain characteristic parameters, the first frequency domain compensation coefficient corresponding to the spectral dominant frequency and the second frequency domain compensation coefficient corresponding to the spectral entropy are first determined. Then, a reference frequency domain compensation coefficient is determined based on the first and second frequency domain compensation coefficients. Next, the total frequency domain energy value in the high-frequency range of the spectrum data is determined, thus obtaining the total frequency domain energy value in the high-frequency range. Then, the total frequency domain energy value in the low-frequency range is determined, thus obtaining the total frequency domain energy value in the low-frequency range. Finally, the total frequency domain energy value in the high-frequency range and the total frequency domain energy value in the low-frequency range are determined. The difference between the total frequency domain energy values ​​in the interval is used to obtain the frequency domain energy difference. A second adjustment factor corresponding to the frequency domain energy difference is determined. Finally, the reference frequency domain compensation coefficient is adjusted based on the second adjustment factor to obtain the frequency domain compensation coefficient. This method can comprehensively reflect the signal fluctuation frequency and energy dispersion state by combining the main frequency and spectral entropy. By relying on the high and low frequency energy difference to determine the adjustment factor to adjust the frequency domain compensation coefficient, it can accurately distinguish the signal distortion caused by two different types of interference: high-frequency airflow disturbance and low-frequency concentration gradual change. This makes the frequency domain compensation coefficient more consistent with the actual distortion of the current unsteady current.

[0061] S503: Determine the reference concentration compensation coefficient based on the time-domain compensation coefficient and the frequency-domain compensation coefficient.

[0062] In this embodiment, the fifth weight corresponding to the time-domain compensation coefficient and the sixth weight corresponding to the frequency-domain compensation coefficient can be determined first, wherein the sum of the fifth weight and the sixth weight is 1. It should be explained that when the carbon monoxide concentration in the target area changes rapidly and the current time-domain fluctuations are severe, a larger fifth weight and a smaller sixth weight are configured. When the non-steady-state response current harmonic distortion is prominent and the frequency-domain distortion is more significant, a smaller fifth weight and a larger sixth weight are configured. Alternatively, the fifth and sixth weights can be determined according to a preset fixed weight ratio.

[0063] Then, the reference concentration compensation coefficient can be determined based on the fifth weight, the sixth weight, the time-domain compensation coefficient, and the frequency-domain compensation coefficient. Specifically, the reference concentration compensation coefficient can be calculated as follows: Reference concentration compensation coefficient = time domain compensation coefficient × fifth weight + frequency domain compensation coefficient × sixth weight; The reference concentration compensation coefficient can be determined based on the fifth weight, the sixth weight, the time-domain compensation coefficient, and the frequency-domain compensation coefficient in the manner described above.

[0064] S504: Obtain the usage time of the carbon monoxide sensor.

[0065] In this embodiment, the usage time of the carbon monoxide sensor can characterize the degree of aging and wear of the gas-sensitive element of the carbon monoxide sensor. The longer the usage time, the greater the inherent detection offset caused by the aging of the gas-sensitive element, and the corresponding failure probability of the carbon monoxide sensor will also increase.

[0066] S505: Determine the optimization factor corresponding to the usage duration.

[0067] In this embodiment, it can be a preset mapping relationship between the usage time of the carbon monoxide sensor and the optimization factor. Based on this mapping relationship, the optimization factor corresponding to the current usage time of the carbon monoxide sensor can be determined. Specifically, the longer the usage time of the carbon monoxide sensor, the more obvious the aging distortion of the gas-sensitive element, and the larger the value of the matched optimization factor.

[0068] S506: Optimize the reference concentration compensation coefficient based on the optimization factor to obtain the target concentration compensation coefficient.

[0069] In this embodiment, the target concentration compensation coefficient can be determined as follows: Target concentration compensation coefficient = Reference concentration compensation coefficient × (1 + optimization factor); The reference concentration compensation coefficient can be optimized based on the optimization factor in the above manner to obtain the target concentration compensation coefficient that is adapted to the aging and loss conditions of the carbon monoxide sensor.

[0070] As can be seen, the time-domain compensation coefficient is first calculated based on the time-domain characteristic parameters, and then the frequency-domain compensation coefficient is calculated based on the frequency-domain characteristic parameters. The reference concentration compensation coefficient is obtained by combining the two types of compensation coefficients. Then, the reference concentration compensation coefficient is adjusted according to the optimization factor corresponding to the usage time of the carbon monoxide sensor to obtain the target concentration compensation coefficient. The time-domain compensation coefficient can correct the detection deviation caused by slow gas diffusion and slow temperature and humidity changes. The frequency-domain compensation coefficient can offset the high-frequency signal distortion caused by instantaneous airflow impact and sudden concentration changes. The optimization factor can also compensate for the attenuation of response capability caused by sensor aging. This allows the final target concentration compensation coefficient to be adapted to the instantaneous operating interference of the sensor and the long-term aging loss of the sensor, reducing the calculation error of carbon monoxide concentration and thus improving the accuracy of carbon monoxide concentration detection.

[0071] Please see Figure 6 , Figure 6 This application provides a flowchart for determining the remaining lifespan of a carbon monoxide sensor, including but not limited to the following steps: S601: Determine the difference in concentration compensation coefficient between the target concentration compensation coefficient and the preset concentration compensation coefficient.

[0072] In this embodiment, the preset concentration compensation coefficient can be the standard benchmark compensation parameter of the carbon monoxide sensor when there is no performance degradation. The target concentration compensation coefficient is the compensation parameter calculated in real time under the current working state of the carbon monoxide sensor. By determining the difference between the target concentration compensation coefficient and the preset concentration compensation coefficient, the performance degradation and detection deviation of the carbon monoxide sensor caused by long-term use can be reflected according to the difference in concentration compensation coefficient.

[0073] S602: Determine the health degradation level value corresponding to the carbon monoxide sensor based on the difference in the concentration compensation coefficient.

[0074] In this embodiment, the health degradation degree value corresponding to the difference of the concentration compensation coefficient can be determined first to obtain a reference health degradation degree value. Then, a first fine-tuning factor corresponding to the time-domain compensation coefficient and a second fine-tuning factor corresponding to the frequency-domain compensation coefficient can be determined. Finally, the reference health degradation degree value can be adjusted based on the first fine-tuning factor and the second fine-tuning factor to obtain the health degradation degree value corresponding to the carbon monoxide sensor.

[0075] For example, a health degradation value corresponding to the concentration compensation coefficient difference is determined to obtain a reference health degradation value. Specifically, this can be a preset mapping relationship between the concentration compensation coefficient difference and the health degradation value. The mapping relationship between the concentration compensation coefficient difference and the health degradation value is used to characterize the correspondence between the offset of the carbon monoxide sensor concentration compensation coefficient and the aging and degradation degree of its own gas-sensitive element. It should be explained that the larger the concentration compensation coefficient difference, the more serious the performance degradation problem of the carbon monoxide sensor, and the higher the corresponding health degradation value. Conversely, the smaller the concentration compensation coefficient difference, the closer the working performance of the carbon monoxide sensor is to the factory standard state, and the lower the corresponding health degradation value.

[0076] For example, a first fine-tuning factor corresponding to the time-domain compensation coefficient and a second fine-tuning factor corresponding to the frequency-domain compensation coefficient are determined. Specifically, this can be a preset fifth mapping relationship between the time-domain compensation coefficient and the fine-tuning factor. Based on this fifth mapping relationship, the first fine-tuning factor corresponding to the time-domain compensation coefficient can be determined.

[0077] It can be a sixth mapping relationship between preset frequency domain compensation coefficients and fine-tuning factors, and a second fine-tuning factor corresponding to the frequency domain compensation coefficients can be determined based on this sixth mapping relationship.

[0078] If the degree of health degradation is determined solely by the difference in concentration compensation coefficients, the aging state of the carbon monoxide sensor can only be judged from the perspective of the overall compensation offset. It is impossible to distinguish whether the source of signal distortion is time-domain dynamic fluctuation distortion or frequency-domain harmonic energy distortion. However, the time-domain compensation coefficient can reflect the degree of oscillation offset of the current over time during the response of the carbon monoxide sensor, and the frequency-domain compensation coefficient can reflect the degree of signal distortion caused by the imbalance of frequency energy distribution within the non-steady-state response current. Therefore, by determining the first fine-tuning factor corresponding to the time-domain compensation coefficient and the second fine-tuning factor corresponding to the frequency-domain compensation coefficient, the interference of time-domain distortion and frequency-domain distortion on the degree of performance degradation of the carbon monoxide sensor can be quantified, making the final value of health degradation more accurate and improving the accuracy of determining the degree of health degradation of the carbon monoxide sensor.

[0079] For example, the reference health degradation value is adjusted based on the first fine-tuning factor and the second fine-tuning factor to obtain the health degradation value corresponding to the carbon monoxide sensor. Specifically, the health degradation value corresponding to the carbon monoxide sensor can be determined in the following manner: The health degradation value corresponding to the carbon monoxide sensor = reference health degradation value × (1 + first fine-tuning factor) × (1 + second fine-tuning factor); The reference health degradation value can be adjusted based on the first fine-tuning factor and the second fine-tuning factor in the manner described above to obtain the health degradation value corresponding to the carbon monoxide sensor.

[0080] S603: Determine the remaining service life of the carbon monoxide sensor based on the health degradation value.

[0081] In this embodiment, it can be a mapping relationship between a preset health degradation level value and the remaining service life of the carbon monoxide sensor. Based on this mapping relationship, the remaining service life of the carbon monoxide sensor can be directly determined based on the health degradation level value.

[0082] Alternatively, you can first determine the preset lifespan calibrated at the factory for the carbon monoxide sensor. The preset lifespan is the complete working time of the carbon monoxide sensor. Obtain the pre-established correspondence between the health degradation level value and the lifespan loss ratio. The higher the health degradation level value, the more severe the aging and loss of the gas-sensitive element of the carbon monoxide sensor, and the larger the corresponding lifespan loss ratio. Then, match the currently calculated health degradation level value to obtain the corresponding lifespan loss ratio. Multiply the preset lifespan by this loss ratio to calculate the current equivalent lost working time of the carbon monoxide sensor. Finally, subtract the equivalent lost working time from the preset lifespan to calculate the remaining lifespan of the carbon monoxide sensor.

[0083] It can be seen that, firstly, the difference between the target concentration compensation coefficient and the preset concentration compensation coefficient is determined; then, the health degradation degree value corresponding to the concentration compensation coefficient difference is determined to obtain a reference health degradation degree value; next, a first fine-tuning factor corresponding to the time-domain compensation coefficient and a second fine-tuning factor corresponding to the frequency-domain compensation coefficient are determined; then, the reference health degradation degree value is adjusted based on the first fine-tuning factor and the second fine-tuning factor to obtain the health degradation degree value corresponding to the carbon monoxide sensor; then, the health degradation degree value corresponding to the carbon monoxide sensor is determined based on the concentration compensation coefficient difference; finally, the health degradation degree value is determined based on the health degradation degree value. The remaining lifespan of the carbon monoxide sensor is determined by using the difference in compensation coefficients obtained from each test as the basic data for judging sensor aging. This is then combined with two fine-tuning factors corresponding to the time-domain and frequency-domain compensation coefficients to correct the reference health degradation value. This process also considers two types of losses: numerical deviations during stable sensor testing and signal distortion due to changes in gas concentration. This ensures that the final determined health degradation value accurately reflects the aging status of the carbon monoxide sensor, allowing for a more precise assessment of its remaining lifespan. This enables maintenance personnel to inspect or replace the carbon monoxide sensor in advance based on its remaining lifespan.

[0084] In summary, implementing the embodiments of the present invention has the following beneficial effects: As can be seen, the carbon monoxide concentration determination method described in the embodiments of the present invention is applied to a carbon monoxide sensor. When the carbon monoxide sensor is located in a target area, the dynamic response current of the carbon monoxide sensor within a preset time period is acquired. The dynamic response current is a real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area. The dynamic response current includes a non-steady-state response current and a steady-state response current. Then, the steady-state current value corresponding to the steady-state response current is determined, and a reference carbon monoxide concentration value is determined based on the steady-state current value. Next, the response characteristic parameter corresponding to the non-steady-state response current is determined, and a target concentration compensation coefficient is determined based on the response characteristic parameter. Finally, the reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value, thereby improving the accuracy of carbon monoxide concentration detection. By relying on real-time detection data from carbon monoxide sensors to calculate the accurate remaining lifespan, the current performance degradation rate of carbon monoxide sensors can be intuitively reflected. Staff can arrange maintenance and replacement work according to the actual wear and tear of each carbon monoxide sensor. This not only avoids the safety risks of misjudging carbon monoxide concentration or failing to provide timely warnings of leaks due to aging and failure of carbon monoxide sensors, but also makes full use of the usable working time of carbon monoxide sensors, reducing unnecessary replacement costs and avoiding inaccurate carbon monoxide concentration detection, thereby improving the accuracy of carbon monoxide concentration detection.

[0085] Please see Figure 7 , Figure 7 This is a schematic diagram of a carbon monoxide concentration determination device provided in an embodiment of this application. The carbon monoxide concentration determination device 700 is applied to a carbon monoxide sensor. The carbon monoxide concentration determination device 700 includes: an acquisition unit 701 and a processing unit 702. The acquisition unit 701 is used to acquire the dynamic response current of the carbon monoxide sensor within a preset time period when the carbon monoxide sensor is located in the target area; the dynamic response current is the real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area, and the dynamic response current includes non-steady-state response current and steady-state response current. The processing unit 702 is used to determine the steady-state current value corresponding to the steady-state response current; The reference carbon monoxide concentration value is determined based on the steady-state current value; Determine the response characteristic parameters corresponding to the unsteady-state response current; The target concentration compensation coefficient is determined based on the aforementioned response characteristic parameters; The reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value.

[0086] In some possible implementations, when the response characteristic parameters include time-domain characteristic parameters and frequency-domain characteristic parameters, the processing unit 702 is specifically used for determining the response characteristic parameters corresponding to the unsteady-state response current in the following ways: Determine the unsteady current variation curve corresponding to the unsteady response current; The characteristic parameters corresponding to the unsteady current change curve are determined to obtain the time-domain characteristic parameters; Fourier transform is performed on the unsteady-state response current to obtain the spectrum data; The characteristic parameters corresponding to the spectral data are determined to obtain the frequency domain characteristic parameters.

[0087] In some possible implementations, in determining the target concentration compensation coefficient based on the response characteristic parameters, the processing unit 702 is specifically used for: The time-domain compensation coefficient is determined based on the aforementioned time-domain characteristic parameters; The frequency domain compensation coefficients are determined based on the frequency domain characteristic parameters. The reference concentration compensation coefficient is determined based on the time-domain compensation coefficient and the frequency-domain compensation coefficient. The usage time of the carbon monoxide sensor was obtained; Determine the optimization factor corresponding to the usage duration; The reference concentration compensation coefficient is optimized based on the optimization factor to obtain the target concentration compensation coefficient.

[0088] In some possible implementations, when the time-domain characteristic parameters include the duration of the unsteady-state current response and the duration of the peak current, the duration of the unsteady-state current response is used to characterize the duration of the unsteady-state response current, and the duration of the peak current is the duration during which the unsteady-state response current maintains a constant peak current value. In determining the time-domain compensation coefficient based on the time-domain characteristic parameters, the processing unit 702 is specifically used for: Determine a first time-domain compensation coefficient corresponding to the duration of the unsteady current response, and a second time-domain compensation coefficient corresponding to the duration of the peak current; A reference time-domain compensation coefficient is determined based on the first time-domain compensation coefficient and the second time-domain compensation coefficient. Determine the current difference between the steady-state current value and the peak current value; Determine the first adjustment factor corresponding to the current difference; The reference time-domain compensation coefficient is adjusted based on the first adjustment factor to obtain the time-domain compensation coefficient.

[0089] In some possible implementations, when the frequency domain feature parameters include the dominant frequency and the spectral entropy, the dominant frequency is the frequency value corresponding to the peak frequency energy in the frequency domain data, and the spectral entropy is used to characterize the dispersion of the frequency domain energy distribution in the frequency domain data. In determining the frequency domain compensation coefficient based on the frequency domain feature parameters, the processing unit 702 is specifically used for: Determine the first frequency domain compensation coefficient corresponding to the dominant frequency of the spectrum, and the second frequency domain compensation coefficient corresponding to the spectrum entropy; The reference frequency domain compensation coefficient is determined based on the first frequency domain compensation coefficient and the second frequency domain compensation coefficient. The total frequency domain energy value in the high-frequency range of the spectrum data is determined to obtain the total frequency domain energy value in the high-frequency range, and the total frequency domain energy value in the low-frequency range is determined to obtain the total frequency domain energy value in the low-frequency range; the high-frequency range and the low-frequency range are obtained by dividing the spectrum data by a preset boundary frequency; The difference between the total frequency domain energy value in the high-frequency range and the total frequency domain energy value in the low-frequency range is determined to obtain the frequency domain energy difference. Determine the second adjustment factor corresponding to the frequency domain energy difference; The reference frequency domain compensation coefficient is adjusted based on the second adjustment factor to obtain the frequency domain compensation coefficient.

[0090] In some possible implementations, the processing unit 702 is further specifically used for: Determine the difference in concentration compensation coefficient between the target concentration compensation coefficient and the preset concentration compensation coefficient; The health degradation level value corresponding to the carbon monoxide sensor is determined based on the concentration compensation coefficient difference. The remaining lifespan of the carbon monoxide sensor is determined based on the health degradation level value.

[0091] In some possible implementations, in determining the degree of health degradation corresponding to the carbon monoxide sensor based on the concentration compensation coefficient difference, the processing unit 702 is specifically used for: Determine the degree of health degradation corresponding to the difference in concentration compensation coefficient to obtain a reference degree of health degradation; Determine a first fine-tuning factor corresponding to the time-domain compensation coefficient and a second fine-tuning factor corresponding to the frequency-domain compensation coefficient; The reference health degradation value is adjusted based on the first fine-tuning factor and the second fine-tuning factor to obtain the health degradation value corresponding to the carbon monoxide sensor.

[0092] Please see Figure 8 , Figure 8This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 800 is used in a carbon monoxide sensor. Figure 8 As shown, the electronic device 800 includes a transceiver 801, a processor 802, and a memory 803. These are connected via a bus 804. The memory 803 stores computer programs and data, and the transceiver 801 can transmit data stored in the memory 803 to the processor 802. The program includes instructions for performing the following steps: When the carbon monoxide sensor is located in the target area, the dynamic response current of the carbon monoxide sensor within a preset time period is acquired; the dynamic response current is the real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area, and the dynamic response current includes non-steady-state response current and steady-state response current. Determine the steady-state current value corresponding to the steady-state response current; The reference carbon monoxide concentration value is determined based on the steady-state current value; Determine the response characteristic parameters corresponding to the unsteady-state response current; The target concentration compensation coefficient is determined based on the aforementioned response characteristic parameters; The reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value.

[0093] In some possible implementations, when the response characteristic parameters include time-domain characteristic parameters and frequency-domain characteristic parameters, the above procedure includes instructions for performing the following steps in determining the response characteristic parameters corresponding to the unsteady-state response current: Determine the unsteady current variation curve corresponding to the unsteady response current; The characteristic parameters corresponding to the unsteady current change curve are determined to obtain the time-domain characteristic parameters; Fourier transform is performed on the unsteady-state response current to obtain the spectrum data; The characteristic parameters corresponding to the spectral data are determined to obtain the frequency domain characteristic parameters.

[0094] In some possible implementations, the above procedure includes instructions for performing the following steps in determining the target concentration compensation coefficient based on the response characteristic parameters: The time-domain compensation coefficient is determined based on the aforementioned time-domain characteristic parameters; The frequency domain compensation coefficients are determined based on the frequency domain characteristic parameters. The reference concentration compensation coefficient is determined based on the time-domain compensation coefficient and the frequency-domain compensation coefficient. The usage time of the carbon monoxide sensor was obtained; Determine the optimization factor corresponding to the usage duration; The reference concentration compensation coefficient is optimized based on the optimization factor to obtain the target concentration compensation coefficient.

[0095] In some possible implementations, when the time-domain characteristic parameters include the duration of the unsteady-state current response and the duration of the peak current, the duration of the unsteady-state current response is used to characterize the duration of the unsteady-state response current, and the duration of the peak current is the duration during which the unsteady-state response current maintains a constant peak current value. Regarding determining the time-domain compensation coefficient based on the time-domain characteristic parameters, the above procedure includes instructions for performing the following steps: Determine a first time-domain compensation coefficient corresponding to the duration of the unsteady current response, and a second time-domain compensation coefficient corresponding to the duration of the peak current; A reference time-domain compensation coefficient is determined based on the first time-domain compensation coefficient and the second time-domain compensation coefficient. Determine the current difference between the steady-state current value and the peak current value; Determine the first adjustment factor corresponding to the current difference; The reference time-domain compensation coefficient is adjusted based on the first adjustment factor to obtain the time-domain compensation coefficient.

[0096] In some possible implementations, when the frequency domain feature parameters include the dominant frequency and the spectral entropy, the dominant frequency is the frequency value corresponding to the peak frequency energy in the frequency domain data, and the spectral entropy is used to characterize the dispersion of the frequency domain energy distribution in the frequency domain data. Regarding determining the frequency domain compensation coefficient based on the frequency domain feature parameters, the above procedure includes instructions for performing the following steps: Determine the first frequency domain compensation coefficient corresponding to the dominant frequency of the spectrum, and the second frequency domain compensation coefficient corresponding to the spectrum entropy; The reference frequency domain compensation coefficient is determined based on the first frequency domain compensation coefficient and the second frequency domain compensation coefficient. The total frequency domain energy value in the high-frequency range of the spectrum data is determined to obtain the total frequency domain energy value in the high-frequency range, and the total frequency domain energy value in the low-frequency range is determined to obtain the total frequency domain energy value in the low-frequency range; the high-frequency range and the low-frequency range are obtained by dividing the spectrum data by a preset boundary frequency; The difference between the total frequency domain energy value in the high-frequency range and the total frequency domain energy value in the low-frequency range is determined to obtain the frequency domain energy difference. Determine the second adjustment factor corresponding to the frequency domain energy difference; The reference frequency domain compensation coefficient is adjusted based on the second adjustment factor to obtain the frequency domain compensation coefficient.

[0097] In some possible implementations, the above procedure includes instructions for performing the following steps: Determine the difference in concentration compensation coefficient between the target concentration compensation coefficient and the preset concentration compensation coefficient; The health degradation level value corresponding to the carbon monoxide sensor is determined based on the concentration compensation coefficient difference. The remaining lifespan of the carbon monoxide sensor is determined based on the health degradation level value.

[0098] In some possible implementations, the above procedure includes instructions for performing the following steps in determining the degree of health degradation corresponding to the carbon monoxide sensor based on the concentration compensation coefficient difference: Determine the degree of health degradation corresponding to the difference in concentration compensation coefficient to obtain a reference degree of health degradation; Determine a first fine-tuning factor corresponding to the time-domain compensation coefficient and a second fine-tuning factor corresponding to the frequency-domain compensation coefficient; The reference health degradation value is adjusted based on the first fine-tuning factor and the second fine-tuning factor to obtain the health degradation value corresponding to the carbon monoxide sensor.

[0099] It should be understood that the electronic devices mentioned in this application may include smartphones (such as Android phones, iOS phones, Windows Phones, etc.), tablets, PDAs, laptops, mobile internet devices (MIDs) or wearable devices, servers, edge computing nodes, etc. The above-mentioned electronic devices are merely examples and not exhaustive, and include, but are not limited to, the electronic devices described above.

[0100] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement some or all of the steps of any of the methods described in the above method embodiments.

[0101] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments.

[0102] It should be noted that, for the sake of simplicity, the aforementioned methods are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are optional, and the actions and modules involved are not necessarily essential to this application.

[0103] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0104] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0105] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software program module.

[0107] If the integrated unit is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0108] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0109] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The above description of the embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for determining carbon monoxide concentration, characterized in that, Applied to a carbon monoxide sensor, the method includes: When the carbon monoxide sensor is located in the target area, the dynamic response current of the carbon monoxide sensor within a preset time period is acquired; the dynamic response current is the real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area, and the dynamic response current includes non-steady-state response current and steady-state response current. Determine the steady-state current value corresponding to the steady-state response current; The reference carbon monoxide concentration value is determined based on the steady-state current value; Determine the response characteristic parameters corresponding to the unsteady-state response current; The target concentration compensation coefficient is determined based on the aforementioned response characteristic parameters; The reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value; Wherein, when the response characteristic parameters include time-domain characteristic parameters and frequency-domain characteristic parameters, determining the response characteristic parameters corresponding to the unsteady-state response current includes: Determine the unsteady current variation curve corresponding to the unsteady response current; The characteristic parameters corresponding to the unsteady current change curve are determined to obtain the time-domain characteristic parameters; Fourier transform is performed on the unsteady-state response current to obtain the spectrum data; The characteristic parameters corresponding to the spectrum data are determined to obtain the frequency domain characteristic parameters; The step of determining the target concentration compensation coefficient based on the response feature parameters includes: When the time-domain characteristic parameters include the unsteady current response duration and the peak current duration, the unsteady current response duration is used to characterize the duration of the unsteady current response, and the peak current duration is the duration during which the unsteady current response maintains a constant peak current value. The time-domain compensation coefficient is determined based on the time-domain characteristic parameters. When the frequency domain feature parameters include the dominant frequency and the spectral entropy, the dominant frequency is the frequency value corresponding to the peak frequency energy in the frequency domain data, and the spectral entropy is used to characterize the degree of dispersion of the frequency domain energy in the frequency domain data. The frequency domain compensation coefficient is determined based on the frequency domain feature parameters. The reference concentration compensation coefficient is determined based on the time-domain compensation coefficient and the frequency-domain compensation coefficient. The usage time of the carbon monoxide sensor was obtained; Determine the optimization factor corresponding to the usage duration; The reference concentration compensation coefficient is optimized based on the optimization factor to obtain the target concentration compensation coefficient; the target concentration compensation coefficient = reference concentration compensation coefficient × (1 + optimization factor).

2. The method as described in claim 1, characterized in that, The determination of the time-domain compensation coefficient based on the time-domain feature parameters includes: Determine a first time-domain compensation coefficient corresponding to the duration of the unsteady current response, and a second time-domain compensation coefficient corresponding to the duration of the peak current; A reference time-domain compensation coefficient is determined based on the first time-domain compensation coefficient and the second time-domain compensation coefficient. Determine the current difference between the steady-state current value and the peak current value; Determine the first adjustment factor corresponding to the current difference; The reference time-domain compensation coefficient is adjusted based on the first adjustment factor to obtain the time-domain compensation coefficient.

3. The method as described in claim 2, characterized in that, The step of determining the frequency domain compensation coefficient based on the frequency domain feature parameters includes: Determine the first frequency domain compensation coefficient corresponding to the dominant frequency of the spectrum, and the second frequency domain compensation coefficient corresponding to the spectrum entropy; The reference frequency domain compensation coefficient is determined based on the first frequency domain compensation coefficient and the second frequency domain compensation coefficient. The total frequency domain energy value in the high-frequency range of the spectrum data is determined to obtain the total frequency domain energy value in the high-frequency range, and the total frequency domain energy value in the low-frequency range is determined to obtain the total frequency domain energy value in the low-frequency range; the high-frequency range and the low-frequency range are obtained by dividing the spectrum data by a preset boundary frequency; The difference between the total frequency domain energy value in the high-frequency range and the total frequency domain energy value in the low-frequency range is determined to obtain the frequency domain energy difference. Determine the second adjustment factor corresponding to the frequency domain energy difference; The reference frequency domain compensation coefficient is adjusted based on the second adjustment factor to obtain the frequency domain compensation coefficient.

4. The method as described in claim 3, characterized in that, The method further includes: Determine the difference in concentration compensation coefficient between the target concentration compensation coefficient and the preset concentration compensation coefficient; The health degradation level value corresponding to the carbon monoxide sensor is determined based on the concentration compensation coefficient difference. The remaining lifespan of the carbon monoxide sensor is determined based on the health degradation level value.

5. The method as described in claim 4, characterized in that, The step of determining the health degradation level value corresponding to the carbon monoxide sensor based on the concentration compensation coefficient difference includes: Determine the degree of health degradation corresponding to the difference in concentration compensation coefficient to obtain a reference degree of health degradation; Determine the first fine-tuning factor corresponding to the time-domain compensation coefficient and the second fine-tuning factor corresponding to the frequency-domain compensation coefficient; The reference health degradation value is adjusted based on the first fine-tuning factor and the second fine-tuning factor to obtain the health degradation value corresponding to the carbon monoxide sensor.

6. A device for determining carbon monoxide concentration, characterized in that, The device, used in a carbon monoxide sensor, includes: an acquisition unit and a processing unit; The acquisition unit is used to acquire the dynamic response current of the carbon monoxide sensor within a preset time period when the carbon monoxide sensor is located in the target area; the dynamic response current is the real-time changing current signal generated by the carbon monoxide sensor under the excitation of carbon monoxide gas in the target area, and the dynamic response current includes non-steady-state response current and steady-state response current. The processing unit is used to determine the steady-state current value corresponding to the steady-state response current; The reference carbon monoxide concentration value is determined based on the steady-state current value; Determine the response characteristic parameters corresponding to the unsteady-state response current; The target concentration compensation coefficient is determined based on the aforementioned response characteristic parameters; The reference carbon monoxide concentration value is adjusted based on the target concentration compensation coefficient to obtain the target carbon monoxide concentration value; Wherein, when the response characteristic parameters include time-domain characteristic parameters and frequency-domain characteristic parameters, determining the response characteristic parameters corresponding to the unsteady-state response current includes: Determine the unsteady current variation curve corresponding to the unsteady response current; The characteristic parameters corresponding to the unsteady current change curve are determined to obtain the time-domain characteristic parameters; Fourier transform is performed on the unsteady-state response current to obtain the spectrum data; The characteristic parameters corresponding to the spectrum data are determined to obtain the frequency domain characteristic parameters; The step of determining the target concentration compensation coefficient based on the response feature parameters includes: When the time-domain characteristic parameters include the unsteady current response duration and the peak current duration, the unsteady current response duration is used to characterize the duration of the unsteady current response, and the peak current duration is the duration during which the unsteady current response maintains a constant peak current value. The time-domain compensation coefficient is determined based on the time-domain characteristic parameters. When the frequency domain feature parameters include the dominant frequency and the spectral entropy, the dominant frequency is the frequency value corresponding to the peak frequency energy in the frequency domain data, and the spectral entropy is used to characterize the degree of dispersion of the frequency domain energy in the frequency domain data. The frequency domain compensation coefficient is determined based on the frequency domain feature parameters. The reference concentration compensation coefficient is determined based on the time-domain compensation coefficient and the frequency-domain compensation coefficient. The usage time of the carbon monoxide sensor was obtained; Determine the optimization factor corresponding to the usage duration; The reference concentration compensation coefficient is optimized based on the optimization factor to obtain the target concentration compensation coefficient; the target concentration compensation coefficient = reference concentration compensation coefficient × (1 + optimization factor).

7. An electronic device, characterized in that, The method includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for performing the steps of the method according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Dynamic compensation method and equipment of semiconductor gas sensor

    CN121347630A

  • Ethylene oxide gas sensor and method thereof

    CN122084721A