Hydrogen detection and measured value correction method based on hydrogen sensor
By analyzing the voltage data of the hydrogen sensor and building hydrogen compensation confidence, the measurement distortion problem caused by interference from coexisting gases in the hydrogen sensor is solved, and high-precision hydrogen concentration detection and long-term stability are achieved.
Patent Information
- Application Number
- CN202511208931.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-27
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-08-27
AI Technical Summary
Existing hydrogen sensors are easily interfered by coexisting gases such as carbon monoxide and methane, resulting in distorted hydrogen concentration measurements and unable to meet the requirements of high-precision safety monitoring under complex industrial conditions.
By analyzing the voltage data of the active unit and the reference unit in the hydrogen sensor, the smoothing algorithm is used to obtain the voltage trend value and correlation coefficient, the hydrogen purity responsiveness is constructed, the sensor aging trend is dynamically evaluated, the hydrogen compensation confidence is established, and the hydrogen concentration is corrected.
It significantly improves the accuracy and reliability of hydrogen concentration detection, overcomes the measurement deviation caused by sensor aging and environmental interference, and ensures long-term stability and accuracy of measurement results.
Smart Images

Figure CN120741785A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hydrogen detection, and in particular to a method for hydrogen detection and measurement value correction based on a hydrogen sensor. Background Art
[0002] Hydrogen is an important clean energy carrier. Its colorless, odorless, flammable and explosive properties, coupled with its low molecular weight and resulting leakiness, make accurate concentration monitoring essential for its safe use. Early hydrogen sensors were susceptible to interference from coexisting gases such as carbon monoxide and methane, leading to distorted hydrogen measurements and reduced reliability. These sensors were unable to meet the stringent requirements for high-precision safety monitoring in complex industrial conditions.
[0003] During hydrogen detection, existing technologies employ a paired active cell and reference cell, measuring their differential signal via a Wheatstone bridge to suppress environmental noise. The active cell responds to all combustible gases, while the reference cell responds only to common-mode interference from the environment. However, the active cell exhibits cross-sensitivity to combustible gases other than hydrogen, producing undesirable responses. Furthermore, baseline drift in the hydrogen sensor can lead to falsely high or distorted concentration measurements. Ultimately, the Wheatstone bridge differential output reflects a non-pure hydrogen concentration, influenced by the total combustible gas concentration in the environment. This causes the measured value to continuously deviate from the true value, severely impacting monitoring accuracy and reliability. Summary of the Invention
[0004] In order to solve the above technical problems, the present application provides a hydrogen detection and measurement value correction method based on a hydrogen sensor to solve the existing problems.
[0005] The hydrogen detection and measurement value correction method based on the hydrogen sensor of this application adopts the following technical solutions: One embodiment of the present application provides a method for hydrogen detection and measurement value correction based on a hydrogen sensor, the method comprising the following steps: Real-time acquisition of voltage data of the active unit and reference unit in the hydrogen sensor; Determine the voltage trend value of the active cell at each moment by analyzing the change trend of the voltage data in the active cell at each moment and at all moments before the preset time length; determine the voltage correlation at each moment based on the correlation of the voltage data between the active cell and the reference cell at all moments before the preset time length; and determine the hydrogen purity responsiveness at each moment in combination with the voltage trend value; By analyzing the changing trend of the hydrogen purity responsiveness at each moment and all moments in a previous preset time period, the hydrogen purity trend value at each moment is determined to determine the first hydrogen credibility at each moment; by analyzing the average distribution and dispersion of the hydrogen purity responsiveness at each moment and all moments in a previous preset interval, the hydrogen purity credibility at each moment is determined to determine the second hydrogen credibility at each moment, and in combination with the first hydrogen credibility, the hydrogen compensation confidence at each moment is determined; The hydrogen concentration at each moment is obtained, and the hydrogen concentration at each moment is corrected in combination with the hydrogen compensation confidence.
[0006] Preferably, the method for determining the voltage trend value of the active unit at each moment is: The voltage data of the active unit at each moment and all moments before the preset time period are used as the input of the smoothing algorithm, and the output smoothed value is used as the voltage trend value of the active unit at each moment.
[0007] Preferably, the voltage correlation at each moment is a correlation coefficient of voltage data at all moments between the active unit and the reference unit within a preset time period before and at each moment.
[0008] Preferably, the expression of the hydrogen purity responsiveness at each moment is: Where, represents the hydrogen purity responsiveness at time i; Represents the voltage trend value at time i; represents the voltage correlation at time i.
[0009] Preferably, the method for determining the hydrogen purity trend value at each moment is: The hydrogen purity response at each moment and all moments in the previous preset period is fitted to obtain a fitting straight line, and the slope of the fitting straight line is used as the hydrogen purity trend value at each moment.
[0010] Preferably, the expression of the first hydrogen credibility at each moment is: Where, represents the first hydrogen credibility at time i; represents the hydrogen purity trend value at time i; exp( ) represents the exponential function with a natural constant as the base.
[0011] Preferably, the hydrogen purity credibility at each moment is the result of dividing the average level of hydrogen purity responsiveness at each moment and all moments in a preset interval before that moment by the dispersion.
[0012] Preferably, the second hydrogen purity credibility at each moment is the cumulative sum of the hydrogen purity credibility at each moment and at all moments in a preset time period before that moment.
[0013] Preferably, the hydrogen compensation confidence at each moment is a result of forward fusion of the first hydrogen credibility and the second hydrogen credibility at each moment.
[0014] Preferably, the correction of the hydrogen concentration at each moment includes: Corrected value of hydrogen concentration at time i The expression is: Where, represents the hydrogen concentration at time i; represents the confidence level of hydrogen compensation at time i; norm( ) represents the normalization function.
[0015] This application has at least the following beneficial effects: This application obtains the voltage trend value reflecting the total concentration of combustible gas through a smoothing algorithm, and uses the Pearson correlation coefficient of the active unit and the reference unit to quantify the synchronization of their responses, and then constructs the hydrogen purity responsiveness based on the voltage trend value and voltage correlation, effectively stripping off the common interference signal, accurately capturing the specific hydrogen response, and significantly improving the accuracy and reliability of hydrogen concentration detection in complex environments; further, this application dynamically evaluates the long-term aging trend and short-term measurement stability of the sensor, and uses this to construct the first and second hydrogen credibility, and finally integrates and generates a comprehensive reflection of the sensor health status and environmental interference level. The hydrogen compensation confidence not only provides a direct basis for judging the authenticity and reliability of the measurement data, but also realizes the effective quantification and compensation of the sensor system drift error, thereby significantly improving the accuracy and reliability of hydrogen concentration monitoring under long-term and complex working conditions; Finally, this application constructs a dynamic adaptive concentration correction model by introducing hydrogen compensation confidence, which can intelligently identify and suppress measurement deviations caused by sensor aging and environmental interference, and transform the original linear correction into a nonlinear weighted correction based on confidence, thereby improving the long-term stability of hydrogen concentration monitoring and the accuracy and reliability of measurement results. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0017] Figure 1 A flowchart of a method for hydrogen detection and measurement value correction based on a hydrogen sensor provided in one embodiment of the present application; Figure 2A schematic diagram of the hydrogen compensation confidence extraction process provided in one embodiment of the present application. DETAILED DESCRIPTION
[0018] To further illustrate the technical means and effectiveness of this application to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effectiveness of the hydrogen gas detection and measurement value correction method based on a hydrogen gas sensor proposed in this application. In the following description, different references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
[0019] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
[0020] The specific scheme of the hydrogen detection and measurement value correction method based on the hydrogen sensor provided by the present application is described in detail below with reference to the accompanying drawings.
[0021] An embodiment of the present application provides a method for hydrogen detection and measurement value correction based on a hydrogen sensor. Specifically, the following method for hydrogen detection and measurement value correction based on a hydrogen sensor is provided. Figure 1 , the method comprises the following steps: Step S1: respectively acquiring voltage data of the active cell and the reference cell in the hydrogen sensor in real time.
[0022] In the process of measuring hydrogen concentration using an active cell and a reference cell, a Wheatstone bridge converts changes in gas concentration into a differential voltage output. Therefore, a high-precision voltage sensor is synchronously installed in the Wheatstone bridge circuit of the hydrogen sensor to collect voltage signals from both the active cell and the reference cell to characterize the gas concentration collected by the active cell and the reference cell. The voltage collection frequency of both the active cell and the reference cell is set to f. In this embodiment, the value of f is manually set. In this embodiment, the value of f is 10 Hz. In actual application, the implementer can also set it according to the specific situation. This embodiment does not impose any special restrictions.
[0023] Step S2: Determine the voltage trend value of the active cell at each moment by analyzing the change trend of the voltage data in the active cell at each moment and at all moments within a preset time period before it; determine the voltage correlation at each moment based on the correlation of the voltage data between the active cell and the reference cell at all moments within a preset time period before it, and determine the hydrogen purity responsiveness at each moment in combination with the voltage trend value.
[0024] In complex industrial environments, the application of hydrogen sensors faces a core challenge: coexisting combustible gases such as carbon monoxide and methane can cause severe cross-interference when hydrogen sensors measure hydrogen concentration. This causes the original measurement signal of the active unit to contain not only the response of hydrogen, but also the responses of other gases and environmental noise. This results in inflated and distorted measurement values, making it impossible to achieve specific and high-precision detection of hydrogen.
[0025] Therefore, to solve the above problem, it is first necessary to understand the overall level of combustible gas in the environment and further determine the extent to which the response of the active cell is caused by hydrogen rather than other interfering gases or common-mode noise. Therefore, this embodiment determines the voltage trend value of the active cell at each moment by analyzing the changing trend of the voltage data in the active cell at each moment and all moments before the preset time period. Based on the correlation of the voltage data between the active cell and the reference cell at all moments before the preset time period, the voltage correlation at each moment is determined. In combination with the voltage trend value, the hydrogen purity response at each moment is determined, thereby achieving high-precision detection of hydrogen concentration. Specifically, First, in this embodiment, by analyzing the change trend of the voltage data in the active cell at each moment and all moments before the preset time period, the voltage trend value of the active cell at each moment is determined to reflect the overall response strength of the hydrogen sensor to the combustible gas, specifically: In this embodiment, the voltage data of the active unit at each moment and at all moments within a preset time period before that are used as inputs of the smoothing algorithm, and the output smoothed values are used as the voltage trend values of the active unit at each moment.
[0026] It should be noted that the value of the preset time length is set manually. In this embodiment, the value of the preset time length is 1 minute. In actual application, as other implementation methods, the implementer can also set it by himself based on the specific situation. This embodiment does not impose any special restrictions.
[0027] It should be noted that there are many commonly used smoothing algorithms. In this embodiment, a moving average algorithm is used to obtain a voltage trend value. The specific process is as follows: all voltage data in the active unit at each moment and all previous moments are used as inputs to the moving average algorithm, wherein the time window size is set to 0.5s to suppress transient noise and not mask the true hydrogen response. The smoothed value is finally output as the voltage trend value at each moment, which is used to characterize the total response intensity of the hydrogen sensor to all combustible gases in the environment. The larger the voltage trend value, the higher the total concentration of combustible gases in the environment, which represents a higher level of environmental flammability risk. Conversely, the smaller the voltage trend value, the less combustible gas content in the environment, and the lower the risk of combustion.
[0028] Furthermore, this embodiment determines the voltage correlation at each moment based on the correlation of the voltage data between the active cell and the reference cell at all moments in the preset time period before each moment, so as to reflect the linear correlation of the voltage data between the active cell and the reference cell. Specifically, it is: In this embodiment, the correlation coefficient of the voltage data between the active unit and the reference unit at each moment and within a preset time period before each moment is used as the voltage correlation at each moment to measure the linear relationship between the voltage signal of the active unit and the voltage signal of the reference unit. The voltage correlation reflects the synchronization or similarity of the response of the active unit and the response of the reference unit. The closer the absolute value of the correlation coefficient is to 1, the stronger the linear relationship between the voltage change trend of the active unit and the voltage change trend of the reference unit, indicating that there is an extremely strong and predictable linear relationship between the voltage change trend of the active unit and the voltage change trend of the reference unit. If the correlation coefficient is closer to 0, it means that the possibility of a linear relationship between the voltage change of the active unit and the voltage change of the reference unit is smaller, which means that the gas will specifically affect the active unit but not the reference unit, thereby breaking the original linear relationship between the two.
[0029] It should be noted that there are many methods for calculating the correlation coefficient. In this embodiment, the Pearson correlation coefficient of the voltage data between the active unit and the reference unit at all moments in each moment and the preset time period before it is used as the correlation coefficient of the voltage data between the active unit and the reference unit at all moments in each moment and the preset time period before it. In actual application, as other implementation methods, the implementer may also select other correlation coefficient calculation methods such as the Kendall rank correlation coefficient or the Spearman correlation coefficient based on the specific circumstances. Regarding the selection of the correlation coefficient calculation method, this embodiment does not impose any special restrictions.
[0030] The calculation method of the Pearson correlation coefficient is a well-known technique, and the specific calculation process will not be described in detail.
[0031] Furthermore, this embodiment determines the hydrogen purity responsiveness at each moment based on the voltage trend value and voltage correlation obtained above, specifically: As an implementation method, in this embodiment, the hydrogen purity response at time i is The expression is: Where, Represents the voltage trend value at time i; represents the voltage correlation at time i.
[0032] According to the hydrogen purity responsiveness at each moment, it can be understood that the hydrogen purity responsiveness reflects the confidence that the signal captured by the hydrogen sensor comes from the real specific gas. If the voltage trend value at the current moment is larger and the voltage correlation is closer to 0, it means that the total concentration of combustible gas in the environment at the current moment is higher, and the gas response of the active unit is likely to come from hydrogen. Therefore, the corresponding hydrogen purity responsiveness is larger; conversely, if the voltage trend value at the current moment is smaller and the voltage correlation is closer to 1, it means that the total concentration of combustible gas in the environment at the current moment is lower, or even if the total concentration increases, the gas response of the active unit is likely to come from other interfering gases that respond synchronously with the reference unit, such as carbon monoxide and methane, rather than specific hydrogen. Therefore, the corresponding hydrogen purity responsiveness is smaller.
[0033] At this point, this embodiment obtains the voltage trend value reflecting the total concentration of combustible gas through the moving average algorithm, and uses the Pearson correlation coefficient of the active unit and the reference unit to quantify the synchronization of their responses. Then, based on the voltage trend value and voltage correlation, the hydrogen purity response is constructed, effectively stripping away common interference signals, accurately capturing specific hydrogen responses, and significantly improving the accuracy and reliability of hydrogen concentration detection in complex environments.
[0034] Step S3: By analyzing the changing trend of the hydrogen purity responsiveness at each moment and all moments in the previous preset time period, the hydrogen purity trend value at each moment is determined to determine the first hydrogen credibility at each moment; by analyzing the average distribution and discrete degree of the hydrogen purity responsiveness at each moment and all moments in the previous preset interval, the hydrogen purity credibility at each moment is determined to determine the second hydrogen credibility at each moment, and in combination with the first hydrogen credibility, the hydrogen compensation confidence at each moment is determined.
[0035] Hydrogen sensors that work for a long time are susceptible to thermal stress and environmental changes, which can cause aging of the lattice structure of the sensitive membrane in the hydrogen sensor and irreversible relaxation of the signal output by the hydrogen sensor. This can cause the hydrogen concentration measurement value to systematically shift over time, seriously affecting the accuracy of the hydrogen concentration measurement.
[0036] Therefore, based on the above analysis, this embodiment determines the hydrogen purity trend value at each moment by analyzing the changing trend of the hydrogen purity responsiveness at each moment and all moments in the previous preset time period, so as to determine the first hydrogen credibility at each moment; determines the hydrogen purity credibility at each moment by analyzing the average distribution and dispersion of the hydrogen purity responsiveness at each moment and all moments in the previous preset interval, so as to determine the second hydrogen credibility at each moment, and determines the hydrogen compensation confidence at each moment in combination with the first hydrogen credibility, so as to quantify the ability of the hydrogen sensor to overcome its own aging drift, and also reflects the stability of the measurement results in a complex environment, thereby providing a reliable criterion for accurate monitoring of hydrogen concentration and improving the accuracy of hydrogen concentration measurement by the hydrogen sensor. The specific process is as follows: In this embodiment, first, by analyzing the change trend of the hydrogen purity responsiveness at each moment and all moments in the previous preset period, the hydrogen purity trend value at each moment is determined to determine the first hydrogen credibility at each moment, specifically: In this embodiment, the hydrogen purity response at each moment and all moments in the previous preset period is fitted to obtain a fitting straight line, and the slope of the fitting straight line is used as the hydrogen purity trend value at each moment.
[0037] It should be noted that there are many commonly used fitting methods. In this embodiment, the least squares method is used to fit the hydrogen purity responsiveness at each moment and all moments within the preset time period. In actual application, as other implementation methods, the implementer may also adopt other fitting methods such as polynomial regression fitting method based on specific circumstances. Regarding the selection of fitting method, this embodiment does not impose any special restrictions.
[0038] Among them, the least square method is a well-known technology, and the specific process of fitting the hydrogen purity response using it will not be described in detail.
[0039] It should be noted that the value of the preset time period length is set manually. In this embodiment, the value of the preset time period length is 1 minute. In actual application, as other implementation methods, the implementer can also use self-setting based on specific circumstances. This embodiment does not impose any special restrictions.
[0040] Furthermore, based on the hydrogen purity trend value at each moment, it can be understood that the hydrogen purity trend value quantifies the degree of aging of the hydrogen sensor. When the hydrogen purity trend value is positive and large, it means that even if the hydrogen concentration in the environment does not change, the hydrogen purity responsivity is systematically increasing over time. This usually reflects that the baseline of the sensor is drifting upward, which may be due to the continuous deterioration of the sensitive membrane material, resulting in a stronger response to hydrogen gas. A negative and smaller hydrogen purity responsivity value means that the baseline of the hydrogen sensor is drifting downward. The activity of the sensitive material in the hydrogen sensor may be irreversibly attenuating, reflecting that the more serious the aging problem of the hydrogen sensor, the greater the systematic drift error contained in the measured hydrogen concentration, and the lower the accuracy of the hydrogen concentration measurement. On the contrary, when the hydrogen purity trend value approaches 0, it means that the change trend of the hydrogen purity response over time is very gentle, and there is almost no systematic offset over time. This usually reflects that the baseline of the sensor is very stable, the lattice structure of the sensitive membrane material is well maintained, and its aging process is extremely slow or has entered a stable period. In this case, the systematic drift error contained in the hydrogen concentration signal output by the sensor is extremely small, and the measurement accuracy is mainly determined by short-term random noise and transient interference. Overall, it has the basic premise for achieving high-precision and high-reliability hydrogen concentration measurement.
[0041] Furthermore, this embodiment determines the first hydrogen credibility at each moment based on the hydrogen purity trend value, specifically: In this embodiment, the first hydrogen reliability at time i is The expression is: Where, represents the hydrogen purity trend value at time i; exp( ) represents the exponential function with a natural constant as the base.
[0042] According to the first hydrogen credibility at each moment, it can be understood that the first hydrogen credibility directly reflects the long-term reliability of the hydrogen sensor. When the absolute value of the hydrogen purity trend value is larger, it means that the hydrogen sensor ages faster and its long-term reliability is less reliable. Therefore, the corresponding first hydrogen credibility is lower, indicating that the current hydrogen concentration data has serious systematic deviations. Conversely, when the absolute value of the hydrogen purity trend value is smaller and approaches 0, it means that the hydrogen sensor ages very slowly and its long-term reliability is very reliable. Therefore, the corresponding first hydrogen credibility is higher, indicating that the current hydrogen concentration data is stable and can more realistically reflect the hydrogen concentration level in the environment.
[0043] Furthermore, this embodiment determines the hydrogen purity credibility at each moment by analyzing the average distribution and dispersion of the hydrogen purity responsiveness at each moment and all moments in the preset interval before it, so as to determine the second hydrogen credibility at each moment, specifically: In this embodiment, the average level of hydrogen purity responsiveness at each moment and at all moments in the preset interval before it is divided by the degree of dispersion, which is used as the hydrogen purity credibility at each moment to evaluate the short-term confidence of hydrogen detection. If the average level of hydrogen purity responsiveness at the current moment and at all moments in the preset interval before it is higher, and the degree of dispersion of the hydrogen purity responsiveness is smaller, it means that there is a hydrogen signal with greater credibility in the environment, and therefore, the corresponding hydrogen purity credibility is correspondingly larger; conversely, if the average level of hydrogen purity responsiveness at the current moment and at all moments in the preset interval before it is lower, and the degree of dispersion of the hydrogen purity responsiveness is greater, it means that the hydrogen signal in the environment is weak and unstable, or there is strong instantaneous interference noise, which leads to a decrease in the credibility of the signal, and therefore, the corresponding hydrogen purity credibility is correspondingly smaller.
[0044] It should be noted that the value of the preset interval length is set manually. In this embodiment, the value of the preset interval length is 30s. In actual application, as other implementation methods, the implementer can also set it by himself based on the specific situation. This embodiment does not impose any special restrictions.
[0045] It should be noted that there are many methods for measuring the average level and dispersion of a set of data. In this embodiment, the mean of the hydrogen purity responsiveness at each moment and in the preset interval before it is used as the average level of the hydrogen purity responsiveness at each moment and in the preset interval before it, and the standard deviation of the hydrogen purity responsiveness at each moment and in the preset interval before it is used as the dispersion of the hydrogen purity responsiveness at each moment and in the preset interval before it. In actual application, as other implementation methods, the implementer may also adopt other methods for measuring the average level of data, such as the geometric mean, in combination with specific circumstances, or may adopt other methods for measuring the dispersion of data, such as the variance or dispersion coefficient, in combination with specific circumstances. This embodiment does not impose any special restrictions on the selection of methods for measuring the average level or dispersion of data.
[0046] Furthermore, this embodiment accumulates the hydrogen purity credibility at each moment and at all moments in the preset time period before it as the second hydrogen credibility at each moment, which is used to characterize the overall level and stability of hydrogen detection. The greater the second hydrogen credibility, the better the overall level and stability of hydrogen detection. Conversely, the greater the second hydrogen credibility, the worse the overall situation of hydrogen detection.
[0047] Furthermore, this embodiment determines the hydrogen compensation confidence level at each moment based on the first hydrogen credibility level at each moment and in combination with the second hydrogen credibility level, specifically: In this embodiment, the result of forward fusion of the first hydrogen credibility and the second hydrogen credibility at each moment is used as the hydrogen compensation confidence at each moment.
[0048] It should be understood that forward fusion refers to combining two or more indicators through addition or multiplication to obtain a comprehensive indicator, thereby more comprehensively and accurately evaluating a phenomenon or problem. This fusion method is not limited to simple arithmetic operations and can also include more complex statistical models and analysis methods. Implementers can choose according to their specific circumstances and this embodiment does not impose any special restrictions.
[0049] Preferably, as a specific implementation, in this embodiment, the product of the first hydrogen credibility and the second hydrogen credibility at each moment is used as the hydrogen compensation confidence at each moment.
[0050] According to the hydrogen compensation confidence at each moment, it can be understood that the hydrogen compensation confidence reflects the true credibility of the current hydrogen concentration measurement value output by the hydrogen sensor after overcoming its own long-term aging problem and short-term environmental interference. If the first hydrogen confidence at the current moment is greater, it means that the hydrogen sensor itself is in good condition and long-term drift is not a major problem, so that the final confidence can more truly reflect the short-term signal quality and will not be affected by hydrogen sensor aging. At the same time, if the second hydrogen confidence at the current moment is greater, it means that the hydrogen measurement environment has been stable in the recent period before the current moment, indicating that the current hydrogen measurement result is supported by good historical data, indicating that the hydrogen measurement result at the current moment is more reliable. Therefore, the corresponding hydrogen compensation confidence is greater. On the contrary, if the first hydrogen credibility at the current moment is smaller, it means that the hydrogen sensor itself has serious aging problems, and long-term drift is the main factor affecting the measurement accuracy. At this time, even if the short-term signal quality is acceptable, the final result is easily contaminated by the aging trend of the sensor itself, resulting in confidence distortion; at the same time, if the second hydrogen credibility at the current moment is smaller, it means that in the recent period before the current moment, there have been drastic fluctuations or strong instantaneous interference in the hydrogen measurement environment, and there is a lack of stable historical data support, indicating that the hydrogen measurement result at the current moment is an isolated or unreliable reading. Therefore, the corresponding hydrogen compensation confidence is smaller.
[0051] Thus, this embodiment dynamically evaluates the long-term aging trend and short-term measurement stability of the sensor, and uses this to construct the first and second hydrogen credibility levels, ultimately integrating them to generate a hydrogen compensation confidence level that can comprehensively reflect the health status of the sensor and the level of environmental interference. This not only provides a direct basis for judging the authenticity and reliability of the measurement data, but also achieves effective quantification and compensation of the sensor system drift error, thereby significantly improving the accuracy and reliability of hydrogen concentration monitoring under long-term and complex working conditions.
[0052] Step S4: obtaining the hydrogen concentration at each moment, and correcting the hydrogen concentration at each moment in combination with the hydrogen compensation confidence.
[0053] Due to the cross-sensitivity and baseline drift of the coexisting combustible gases analyzed in steps S2 and S3, traditional differential circuits are unable to correct for these issues, resulting in the inability to distinguish the specific response of hydrogen, causing the measured hydrogen concentration to continuously and increasingly deviate from the true value of the hydrogen concentration. Therefore, this embodiment obtains the hydrogen compensation confidence based on steps S2 and S3 and corrects the hydrogen concentration. The specific process is as follows: First, the differential voltage signal between the active cell and the reference cell in the hydrogen sensor is converted into hydrogen concentration, and the hydrogen concentration at each moment is obtained in real time. Furthermore, the hydrogen concentration at each moment is corrected based on the hydrogen compensation confidence, specifically: In this embodiment, the hydrogen concentration correction value at time i is The expression is: Where, represents the hydrogen concentration at time i; represents the confidence level of hydrogen compensation at time i; norm( ) represents the normalization function.
[0054] Preferably, the hydrogen compensation confidence extraction process diagram provided in this embodiment is as follows Figure 2 shown.
[0055] It should be noted that, in this embodiment, the normalization processing of the hydrogen compensation correction value adopts an activation function to normalize its value between [0.5, 1]. If the normalized value of the hydrogen compensation confidence at time i is closer to 1, it means that the drift rate of the hydrogen sensor is very small, indicating that the aging speed of the hydrogen sensor is very slow, the baseline drift problem is not serious, and the average level of hydrogen purity response is very high at this time, the fluctuation degree is small, and it is not affected by strong instantaneous noise interference. Therefore, the hydrogen concentration at this time is more reliable and does not need to be adjusted significantly. On the contrary, if the hydrogen at time i is The closer the normalized value of the compensation confidence is to 0.5, the greater the drift rate of the hydrogen sensor. This indicates that the hydrogen sensor is aging rapidly and has a serious baseline drift problem. In addition, the average level of hydrogen purity response is low and fluctuates greatly, likely due to strong transient noise or interfering gases. Therefore, the credibility of the hydrogen concentration is very low at this time, and the original measurement value is at a high risk of distortion. A substantial downward correction must be made to suppress the inflated concentration value caused by sensor aging and environmental interference, and to ensure the safety and reliability of the output results.
[0056] Thus, this embodiment has constructed a dynamic and adaptive concentration correction model by introducing hydrogen compensation confidence, which can intelligently identify and suppress measurement deviations caused by sensor aging and environmental interference, and transform the original linear correction into a nonlinear weighted correction based on confidence, thereby significantly improving the long-term stability of hydrogen concentration monitoring and the accuracy and reliability of measurement results.
[0057] It should be noted that the order in which the embodiments of the present application are presented is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. Furthermore, the foregoing descriptions of specific embodiments of this specification are provided. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential sequence shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0058] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.
[0059] The above-described embodiments are only used to illustrate the technical solutions of the present application, and not to limit them. Modifications to the technical solutions described in the aforementioned embodiments, or equivalent replacements of some of the technical features therein, do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for hydrogen detection and measurement value correction based on a hydrogen sensor, characterized in that: The method comprises the following steps: Real-time acquisition of voltage data of the active unit and reference unit in the hydrogen sensor; Determine the voltage trend value of the active cell at each moment by analyzing the change trend of the voltage data in the active cell at each moment and at all moments before the preset time length; determine the voltage correlation at each moment based on the correlation of the voltage data between the active cell and the reference cell at all moments before the preset time length; and determine the hydrogen purity responsiveness at each moment in combination with the voltage trend value; By analyzing the changing trend of the hydrogen purity responsiveness at each moment and all moments in a previous preset time period, the hydrogen purity trend value at each moment is determined to determine the first hydrogen credibility at each moment; by analyzing the average distribution and dispersion of the hydrogen purity responsiveness at each moment and all moments in a previous preset interval, the hydrogen purity credibility at each moment is determined to determine the second hydrogen credibility at each moment, and in combination with the first hydrogen credibility, the hydrogen compensation confidence at each moment is determined; The hydrogen concentration at each moment is obtained, and the hydrogen concentration at each moment is corrected in combination with the hydrogen compensation confidence.
2. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The method for determining the voltage trend value of the active unit at each moment is: The voltage data of the active unit at each moment and all moments before the preset time period are used as the input of the smoothing algorithm, and the output smoothed value is used as the voltage trend value of the active unit at each moment.
3. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The voltage correlation at each moment is a correlation coefficient of voltage data between the active unit and the reference unit at all moments within a preset time period before and at each moment.
4. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The expression of hydrogen purity responsiveness at each moment is: Where, represents the hydrogen purity responsiveness at time i; Represents the voltage trend value at time i; represents the voltage correlation at time i.
5. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The method for determining the hydrogen purity trend value at each moment is: The hydrogen purity response at each moment and all moments in the previous preset period is fitted to obtain a fitting straight line, and the slope of the fitting straight line is used as the hydrogen purity trend value at each moment.
6. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The expression of the first hydrogen credibility at each moment is: Where, represents the first hydrogen credibility at time i; represents the hydrogen purity trend value at time i; exp( ) represents the exponential function with a natural constant as the base.
7. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The hydrogen purity reliability at each moment is the result of dividing the average level of hydrogen purity responsiveness at each moment and all moments in a preset interval before that moment by the dispersion level.
8. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The second hydrogen purity credibility at each moment is the cumulative sum of the hydrogen purity credibility at each moment and at all moments in a preset time period before that moment.
9. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The hydrogen compensation confidence at each moment is a result of forward fusion of the first hydrogen credibility and the second hydrogen credibility at each moment.
10. The method for hydrogen detection and measurement value correction based on a hydrogen sensor according to claim 1, wherein: The correction of the hydrogen concentration at each moment includes: Corrected value of hydrogen concentration at time i The expression is: Where, represents the hydrogen concentration at time i; represents the confidence level of hydrogen compensation at time i; norm( ) represents the normalization function.
Citation Information
Patent Citations
Improving performance of an analyte monitoring device
CA2480550A1
System and method for detecting methane and other gases using a remotely deployable, off-grid system
CA3203211A1
Computer-implemented system and method for analyzing mixtures of gases
US20060155486A1
System and method for detecting methane and other gases using a remotely deployable, off-grid system
US20240053312A1
Indirect measurement of tissue analytes through tissue properties
WO2003063699A1
Cited By
Method and system for analyzing stability of measurement result of metering instrument
CN121765357A