Hydrogen sulfide gas concentration measurement compensation method, system and device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-28
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]为此,本发明所要解决的技术问题在于克服现有技术中硫化氢检测方法存在的成本高、操作复杂、准确度和重复性差,以及现有补偿方法未能综合考虑压力和传感器老化因素导致检测数据误差大、测量准确性低的缺陷
(1)本发明所述的一种硫化氢气体浓度测量补偿方法、系统及装置,通过零点补偿和参数补偿,剔除了温度、湿度、流速、压力等环境因素对测量结果的干扰,从而提升了硫化氢气体浓度测量的准确性。此外,本发明还充分考虑了硫化氢传感器老化对测量结果的潜在影响,并构建老化补偿关系式进行校正,进一步优化了测量精度。在测量稳定性方面,本发明通过控制变量分析和建立补偿关系式,使得本方法能够在各种复杂工况下保持稳定运行。与此同时,老化补偿机制的引入不仅有效减少了因传感器性能衰退而引发的测量误差,还降低了设备的维护成本。
Smart Images

Figure CN121145175B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of gas concentration detection technology, and in particular to a method, system and device for measuring and compensating for hydrogen sulfide gas concentration. Background Technology
[0002] Hydrogen sulfide is a colorless, flammable, acidic gas that smells like rotten eggs at low concentrations and like sulfur at high concentrations. It is also highly toxic. As a hazardous chemical, hydrogen sulfide can form explosive mixtures with air and is extremely prone to combustion and explosion upon contact with open flames or high heat; therefore, extremely high purity is required for its detection. However, existing methods for detecting hydrogen sulfide have many shortcomings.
[0003] While gas chromatography offers high detection accuracy, it requires re-calibrating the curve before each analysis, and multi-point calibration necessitates multiple standard gas cylinders, leading to high costs. Rapid detection methods, despite their simpler equipment, suffer from long sampling times and cumbersome preprocessing, making them prone to errors and resulting in poor accuracy and repeatability. Furthermore, hydrogen sulfide gas sensors are highly sensitive to environmental changes, and their detection performance is easily affected by various external factors. Currently, common compensation methods primarily focus on temperature and humidity, neglecting pressure and sensor aging. Under specific environmental conditions, relying solely on temperature or humidity compensation has significant drawbacks, increasing detection data errors and reducing measurement accuracy. Summary of the Invention
[0004] Therefore, the technical problem to be solved by the present invention is to overcome the shortcomings of existing hydrogen sulfide detection methods, such as high cost, complex operation, poor accuracy and repeatability, as well as the large error and low measurement accuracy caused by the failure of existing compensation methods to comprehensively consider pressure and sensor aging factors.
[0005] In a first aspect, to solve the above-mentioned technical problems, the present invention provides a method for measuring and compensating for hydrogen sulfide gas concentration, comprising: Obtain key data on hydrogen sulfide gas in its initial state; Control variable analysis is performed on the key data to obtain zero-point data; the relationship between the zero-point data and the key data is determined, and a zero-point compensation formula is established. Obtain the aging coefficient of the hydrogen sulfide sensor, and establish an aging compensation formula based on the aging coefficient; First, second, third, and fourth data points of hydrogen sulfide gas were obtained under different temperatures, humidity, flow rates, and pressures; parameter compensation relationships were established based on the first, second, third, and fourth data points. Obtain the current value of the hydrogen sulfide sensor and, according to the zero-point compensation formula, obtain the zero-point compensation value; obtain the current key parameter values of the hydrogen sulfide gas to be measured and, according to the parameter compensation formula, perform concentration compensation to obtain the concentration compensation value; obtain the running time of the hydrogen sulfide sensor and, according to the aging compensation formula, perform aging compensation to obtain the aging compensation value. The concentration value of the hydrogen sulfide gas to be measured is obtained based on the zero-point compensation value, the concentration compensation value, and the aging compensation value.
[0006] In one embodiment of the present invention, the step of performing control variable analysis on the key data to obtain zero-point data is as follows: The key data includes data on temperature, humidity, pressure, and flow rate; The humidity, pressure, and flow rate are kept constant; a temperature range is set, and the temperature is gradually increased within the temperature range according to a preset temperature step value to obtain the first hydrogen sulfide gas data at each temperature point; The temperature, pressure, and flow rate are kept constant; a humidity range is set, and the humidity is adjusted step by step according to a preset humidity step value within the humidity range to obtain the second hydrogen sulfide gas data at each humidity point; The temperature, humidity, and flow rate are kept constant; a pressure range is set, and the pressure is adjusted step by step within the pressure range according to a preset pressure step value to obtain the third hydrogen sulfide gas data at each pressure point; The temperature, humidity, and pressure are kept constant; a flow rate range is set, and the flow rate is adjusted step by step within the range according to a preset flow rate step value to obtain the fourth hydrogen sulfide gas data at each flow rate point; Zero-point data are obtained based on the first hydrogen sulfide gas data, the second hydrogen sulfide gas data, the third hydrogen sulfide gas data, and the fourth hydrogen sulfide gas data.
[0007] In one embodiment of the present invention, the relationship between the zero-point data and the key data is determined, and a zero-point compensation formula is established, wherein the zero-point compensation formula is: ; in, Represents the zero-point compensation coefficient. and Indicates numerical values at different temperature points. The temperature point value is indicated as The hydrogen sulfide sensor reading at that time, The temperature point value is indicated as The value of the hydrogen sulfide sensor at that time. , This indicates the actual temperature of the current environment.
[0008] In one embodiment of the present invention, the aging compensation relationship is as follows: ; in, The cumulative usage time of the hydrogen sulfide sensor. This represents the long-term attenuation coefficient of the hydrogen sulfide sensor.
[0009] In one embodiment of the present invention, the steps of obtaining first data, second data, third data, and fourth data of hydrogen sulfide gas under different temperatures, humidity, flow rates, and pressures are as follows: By keeping the temperature, humidity, and pressure constant and controlling the flow rate within a set range, hydrogen sulfide gas of different concentrations is introduced at each flow rate point to obtain the first data. By keeping the temperature, humidity, and flow rate constant and the pressure within a set range, hydrogen sulfide gas of different concentrations is introduced at each pressure point to obtain the second data. By keeping the temperature, flow rate, and pressure constant and the humidity within a set range, hydrogen sulfide gas of different concentrations is introduced at each humidity point to obtain the third data. By keeping the flow rate, humidity, and pressure constant and the temperature within a set range, different concentrations of hydrogen sulfide gas were introduced at each temperature point to obtain the fourth data.
[0010] In one embodiment of the present invention, the step of establishing a parameter compensation relationship based on the first data, the second data, the third data, and the fourth data is as follows: Perform a binary quadratic regression analysis on the first data and the second data, and a univariate quadratic regression analysis on the third data and the fourth data; Based on the results of the binary quadratic regression analysis and the univariate quadratic regression analysis, a parameter compensation relationship is established; the parameter compensation relationship is: ; in, This represents the concentration compensation coefficient. and Represents positive integers. This represents the value collected by the temperature sensor. This indicates the value collected by the humidity sensor. This represents the value collected by the pressure sensor. This is the hydrogen sulfide gas flow rate value; , , These are the fitting parameters.
[0011] In one embodiment of the present invention, the expression for the concentration value of the hydrogen sulfide gas to be measured, based on the zero-point compensation value, the concentration compensation value, and the aging compensation value, is as follows: ; in, This indicates the concentration value of hydrogen sulfide gas. This indicates the reading from the hydrogen sulfide sensor. This represents the zero-point compensation coefficient of the hydrogen sulfide sensor. This represents the concentration compensation coefficient. This indicates the aging coefficient of the hydrogen sulfide sensor.
[0012] In one embodiment of the present invention, key data for obtaining hydrogen sulfide gas in its initial state includes data on hydrogen sulfide gas at different concentrations, temperatures, humidity, pressures, and flow rates; wherein the concentration range is 0–30 ppm, the temperature range is -40°C–85°C, the humidity range is 10%–90%RH, the pressure range is 75 kPa–130 kPa, and the flow rate control range is 0–500 sccm.
[0013] Secondly, to solve the above-mentioned technical problems, the present invention provides a hydrogen sulfide gas concentration measurement and compensation system, comprising: The acquisition module is used to acquire key data on hydrogen sulfide gas in its initial state. The zero-point compensation construction module is used to perform control variable analysis on the key data to obtain zero-point data; determine the relationship between the zero-point data and the key data, and construct the zero-point compensation formula. An aging compensation construction module is used to obtain the aging coefficient of the hydrogen sulfide sensor and construct an aging compensation formula based on the aging coefficient. The parameter compensation construction module is used to obtain first data, second data, third data, and fourth data of hydrogen sulfide gas under different temperatures, humidity, flow rates, and pressures; and to construct parameter compensation formulas based on the first data, second data, third data, and fourth data. The compensation value acquisition module is used to acquire the current value of the hydrogen sulfide sensor and obtain the zero-point compensation value according to the zero-point compensation formula; acquire the current key parameter values of the hydrogen sulfide gas to be measured and perform concentration compensation according to the parameter compensation formula to obtain the concentration compensation value; acquire the running time of the hydrogen sulfide sensor and perform aging compensation according to the aging compensation formula to obtain the aging compensation value. The output module is used to output the concentration value of the hydrogen sulfide gas to be measured based on the zero-point compensation value, the concentration compensation value, and the aging compensation value.
[0014] Thirdly, to solve the above-mentioned technical problems, the present invention provides a hydrogen sulfide gas concentration measurement and compensation device, including the above-mentioned hydrogen sulfide gas concentration measurement and compensation system.
[0015] Compared with the prior art, the above-described technical solution of the present invention has the following advantages: (1) The hydrogen sulfide gas concentration measurement compensation method, system, and device described in this invention, through zero-point compensation and parameter compensation, eliminates the interference of environmental factors such as temperature, humidity, flow rate, and pressure on the measurement results, thereby improving the accuracy of hydrogen sulfide gas concentration measurement. Furthermore, this invention fully considers the potential impact of hydrogen sulfide sensor aging on the measurement results and constructs an aging compensation formula for correction, further optimizing the measurement accuracy. Regarding measurement stability, this invention, through control variable analysis and the establishment of a compensation formula, enables the method to maintain stable operation under various complex working conditions. At the same time, the introduction of the aging compensation mechanism not only effectively reduces measurement errors caused by sensor performance degradation but also reduces equipment maintenance costs.
[0016] (2) The present invention adopts a systematic compensation strategy, which greatly reduces the number of repeated measurements and calibrations and improves measurement efficiency. In addition, the automated compensation process greatly reduces human error and further enhances the reliability and efficiency of measurement results. Attached Figure Description
[0017] To make the content of this invention easier to understand, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings, wherein: Figure 1 This is a flowchart of a hydrogen sulfide gas concentration measurement and compensation method in a preferred embodiment of the present invention; Figure 2 This is a graph showing the measurement error curve of hydrogen sulfide concentration before zero-point compensation in a preferred embodiment of the present invention. Figure 3 This is a graph showing the measurement error of hydrogen sulfide concentration after zero-point compensation in a preferred embodiment of the present invention. Detailed Implementation
[0018] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, so that those skilled in the art can better understand and implement the present invention. However, the embodiments described are not intended to limit the present invention.
[0019] Example 1: Refer to Figure 1 As shown, this embodiment of the invention provides a method for measuring and compensating for hydrogen sulfide gas concentration, including but not limited to the following steps: S1. Obtain key data on hydrogen sulfide gas in its initial state; S2. Perform controlled variable analysis on key data to obtain zero-point data; determine the relationship between zero-point data and key data, and establish zero-point compensation formula; S3. Obtain the aging coefficient of the hydrogen sulfide sensor and establish the aging compensation formula based on the aging coefficient. S4. Obtain the first, second, third, and fourth data points of hydrogen sulfide gas under different temperatures, humidity, flow rates, and pressures; establish parameter compensation relationships based on the first, second, third, and fourth data points. S5. Obtain the current value of the hydrogen sulfide sensor and obtain the zero-point compensation value according to the zero-point compensation formula; obtain the current key parameter values of the hydrogen sulfide gas to be measured and perform concentration compensation according to the parameter compensation formula to obtain the concentration compensation value; obtain the running time of the hydrogen sulfide sensor and perform aging compensation according to the aging compensation formula to obtain the aging compensation value. S6. Based on the zero-point compensation value, concentration compensation value, and aging compensation value, obtain the concentration value of the hydrogen sulfide gas to be measured.
[0020] This invention provides a compensation method for hydrogen sulfide gas concentration measurement. Through zero-point compensation and parameter compensation, it effectively eliminates the influence of environmental factors (such as temperature, humidity, flow rate, and pressure) on the measurement results, improving the accuracy of hydrogen sulfide gas concentration measurement compensation. Simultaneously, it considers the impact of hydrogen sulfide sensor aging on the measurement results and corrects them through aging compensation formulas, further improving measurement accuracy. Secondly, this method enhances measurement stability. Through control variable analysis and the establishment of compensation formulas, the measurement can adapt to different environmental conditions, ensuring stable operation under various working conditions. The aging compensation mechanism also extends the sensor's lifespan and reduces measurement errors caused by sensor performance degradation. Furthermore, this method improves measurement efficiency. Through a systematic compensation method, it reduces the need for repeated measurements and calibrations, improving measurement efficiency. The automated compensation process reduces human error, further improving measurement reliability and efficiency. At the same time, this method enhances adaptability, is applicable to various environmental conditions, and can be widely used in industrial, environmental protection, and medical fields, exhibiting strong versatility and adaptability. By establishing parameter compensation formulas, it can flexibly address different types of hydrogen sulfide gas measurement needs, enhancing flexibility and scalability. In summary, the embodiments of the present invention effectively eliminate offset errors in the measurement of hydrogen sulfide gas concentration through zero-point compensation, temperature and humidity compensation, flow rate compensation, pressure compensation, and aging compensation, thereby significantly improving the accuracy and precision of concentration measurement.
[0021] Specifically, in step S1, key data of hydrogen sulfide gas in the initial state are acquired. This key data includes sample data of hydrogen sulfide gas at different concentrations, temperatures, humidity levels, pressures, and flow rates. The specific parameters acquired are: humidity sensor readings. R Temperature sensor readings T Pressure sensor data acquisition values PHydrogen sulfide gas flow rate V Hydrogen sulfide sensor readings C and hydrogen sulfide gas concentration value It should be noted that the humidity levels described in the embodiments of the present invention are all relative humidity levels.
[0022] Furthermore, the specific data acquisition range is determined based on the range and usage characteristics of the gas sensor.
[0023] For example, the concentration acquisition range is 0–30 ppm, the temperature acquisition range is -40°C–85°C, the humidity acquisition range is 10%–90%RH, the pressure acquisition range is 75 kPa–130 kPa, and the gas flow rate control range is 0–500 sccm. Within these ranges, a large number of readings from each sensor are collected and summarized. The acquisition range described above in this embodiment of the invention comprehensively covers practical application scenarios, improving measurement accuracy, stability, and efficiency, while reducing maintenance costs and enhancing the flexibility and scalability of the method. This makes the present invention highly practical and widely applicable in real-world applications.
[0024] Specifically, in step S2, the zero-point data and the parameters that have the greatest impact on the zero-point data are obtained using the controlled variable method. The gas used to verify the zero point is 100% dry air. The specific steps for zero-point compensation of the hydrogen sulfide sensor are as follows: S210. By setting a temperature range, starting from the initial value, the temperature is gradually increased step by step according to a preset temperature increment, while keeping other test conditions unchanged, and the data of the hydrogen sulfide sensor at each temperature point (i.e., the first hydrogen sulfide gas data) is obtained. To ensure data accuracy, the temperature must be completely balanced at each step.
[0025] For example, a temperature range T∈[-40℃, 85℃] is set, and the experiment is conducted in increments of 5℃ starting from -40℃, with other test conditions remaining unchanged, to obtain data from the hydrogen sulfide sensor at each temperature point.
[0026] S220. By setting a humidity range, starting from the initial value, the humidity is gradually adjusted step by step according to a preset humidity increment value. All other test conditions remain unchanged. Data from the hydrogen sulfide sensor at each humidity point (i.e., the second hydrogen sulfide gas data) is obtained. To ensure data accuracy, the humidity must be completely balanced at each step.
[0027] For example, by setting the humidity range R∈[10%,90%], starting from 10% and taking steps of 10%, the experiment was conducted while keeping the other test conditions unchanged, and the data of the hydrogen sulfide sensor at each humidity point was obtained.
[0028] S230. By setting a pressure range, starting from the initial value, the pressure is adjusted step by step according to a preset pressure step value, and the test is carried out while keeping other test conditions unchanged. Data from the hydrogen sulfide sensor at each pressure point (i.e., the third hydrogen sulfide gas data) is obtained. To ensure data accuracy, the pressure at each step must be completely balanced.
[0029] For example, by setting the pressure P∈[75kPa,130kPa], starting from 75kPa, and taking steps of 10kPa, the experiment was conducted, with the other test conditions remaining unchanged, to obtain data from the hydrogen sulfide sensor at each pressure point.
[0030] S240. By setting the flow rate range, starting from the initial value, adjust the flow rate step by step according to the preset flow rate increments and conduct the test, keeping other test conditions unchanged, and acquire the data of the hydrogen sulfide sensor at each flow rate point (i.e., the fourth hydrogen sulfide gas data). To ensure data accuracy, the flow rate must reach a stable state at each step.
[0031] For example, by setting the flow rate V∈[0sccm,500sccm], starting from 0sccm, and taking a step of 50sccm, the experiment is conducted while keeping the other test conditions unchanged, and the data of the hydrogen sulfide sensor at each flow rate point is obtained.
[0032] S250. Based on the aforementioned first, second, third, and fourth hydrogen sulfide gas data, the zero-point data is obtained. Furthermore, through the above data acquisition experiments, it was found that the zero-point of the hydrogen sulfide sensor is most significantly related to temperature, while its relationship with parameters such as humidity, pressure, and flow rate is relatively weak, or even almost negligible. Therefore, a zero-point compensation formula for the sensor is established for the temperature parameter. The zero-point compensation formula for the hydrogen sulfide sensor is expressed as: (1) in, This represents the zero-point compensation coefficient (also known as the zero-point compensation offset), which is typically used to describe the magnitude of the zero-point offset at different temperatures, and is expressed in ppm. and Indicates numerical values at different temperature points. The temperature at which the system is powered on; The temperature point value is indicated as The hydrogen sulfide sensor reading at that time, The temperature point value is indicated as The value of the hydrogen sulfide sensor at that time; ; The value collected by the temperature sensor represents the actual temperature of the current environment.
[0033] This invention, through a controlled variable approach, tests the effects of temperature, humidity, pressure, and flow rate on the zero point of a hydrogen sulfide sensor, accurately determining that temperature is the most significant factor affecting the zero point. This scientific analysis method avoids blind compensation, improving the targeting and effectiveness of compensation. By establishing a temperature-based zero-point compensation formula, the influence of temperature changes on the hydrogen sulfide sensor's zero point can be effectively eliminated, thereby improving measurement accuracy. In practical applications, even if the ambient temperature changes, the sensor's zero point remains stable, ensuring the accuracy of the measurement results. Furthermore, step S2 compensates for temperature, the primary influencing factor, avoiding complex compensation processing for other parameters, thus reducing testing costs and time. Simultaneously, by acquiring data and establishing the compensation formula over a wide temperature range, this invention can adapt to temperature changes in various practical application scenarios, exhibiting strong versatility and practicality.
[0034] Specifically, in step S3, the hydrogen sulfide sensor undergoes aging calibration. Because the hydrogen sulfide sensor is exposed to the external environment for extended periods, although its performance is not significantly affected in the short term, long-term use will inevitably lead to a decline in output performance. The aging coefficient of the hydrogen sulfide sensor... k ( t It is closely related to time, and its aging calibration relationship is expressed as: (2) in, The cumulative usage time of the hydrogen sulfide sensor. This represents the long-term degradation coefficient of the hydrogen sulfide sensor. It should be noted that the unit of the long-term degradation coefficient of the hydrogen sulfide sensor is the cumulative usage time of the sensor. The units are inversely proportional. For example, if the unit of usage time is hours (h), then the long-term attenuation coefficient of the hydrogen sulfide sensor... The unit is h. -1 When the hydrogen sulfide sensor's long-term attenuation coefficient... Cumulative usage time with hydrogen sulfide sensor When multiplied, the time dimensions completely cancel each other out, and the aging coefficient... k ( t The parameter is dimensionless. Furthermore, the aging coefficient of the hydrogen sulfide sensor... k ( t This information can also be obtained from the sensor manual.
[0035] Specifically, in step S4, compensation formulas for temperature, humidity, pressure, and flow rate are established. The controlled variable method is used to obtain relevant data sequentially; the specific steps are as follows: S410, at temperature T ,humidity R and pressure P Under the condition of keeping the flow rate constant,V The flow rate is controlled within a set range, starting from an initial value and gradually adjusted in preset increments. At each flow rate point, hydrogen sulfide gas of different concentrations is introduced, and the corresponding initial data is recorded.
[0036] For example, temperature T Unchanged, humidity R Unchanged, pressure P Keep the flow rate constant. V ∈[0sccm,500sccm], starting from 0sccm, in increments of 50sccm, at each flow rate point, hydrogen sulfide gas is passed through at 0ppm, 10ppm, 20ppm, and 30ppm respectively, and the data is recorded.
[0037] S420, Temperature T Unchanged, humidity R Unchanged, flow rate V Unchanged, control pressure P Within the set range, starting from the initial value, the pressure is adjusted step by step with preset pressure increments. At each pressure point, hydrogen sulfide gas of different concentrations is introduced, and the corresponding second data is recorded.
[0038] For example, temperature T Unchanged, humidity R Unchanged, flow rate V Unchanged, control pressure P ∈[75kPa,130kPa], starting from 75kPa, in increments of 10kPa, hydrogen sulfide gas was passed through at each pressure point at 0ppm, 10ppm, 20ppm, and 30ppm, and the data was recorded.
[0039] S430, Temperature T Unchanged, pressure P Unchanged, flow rate V Keep it unchanged, control humidity R Within the set range, starting from the initial value, the humidity is adjusted step by step according to the preset humidity step value. At each humidity point, hydrogen sulfide gas of different concentrations is introduced and the corresponding third data is recorded.
[0040] For example, temperature T Unchanged, pressure P Unchanged, flow rate V Keep it unchanged, control humidity R ∈[10%,90%], starting from 10%, in increments of 10%, at each humidity point, hydrogen sulfide gas is passed through at 0ppm, 10ppm, 20ppm, and 30ppm respectively, and the data is recorded.
[0041] S440, Humidity R Unchanged, pressureP Unchanged, flow rate V Keep the temperature unchanged. T Within the set range, starting from the initial value, the temperature is adjusted step by step according to the preset temperature step value. At each temperature point, hydrogen sulfide gas of different concentrations is introduced and the corresponding fourth data is recorded.
[0042] For example, humidity R Unchanged, pressure P Unchanged, flow rate V Keep the temperature unchanged. T ∈[-40℃, 85℃], starting from -40℃, in 5℃ increments, at each temperature point, hydrogen sulfide gas at 0ppm, 10ppm, 20ppm, and 30ppm is passed through, and the data is recorded.
[0043] S450. A bivariate quadratic regression analysis is performed on the first and second data points, and a univariate quadratic regression analysis is performed on the third and fourth data points. Finally, a compensation relationship is established, the specific expression of which is: (3) (4) in, and Represents a positive integer, and ; This indicates the concentration value of hydrogen sulfide gas. This indicates the reading from the hydrogen sulfide sensor. This represents the zero-point compensation coefficient of the hydrogen sulfide sensor. This represents the concentration compensation coefficient. Indicates the aging coefficient of the hydrogen sulfide sensor. This indicates the value collected by the humidity sensor. This represents the value collected by the temperature sensor. This represents the value collected by the pressure sensor. This is the hydrogen sulfide gas flow rate value; , , These are the fitting parameters. Fitting parameters ( , , The determination of the parameters was based on laboratory sample data. By using MATLAB software to analyze the sample data, the data trend curve equation was accurately fitted, and the corresponding fitting parameters were obtained.
[0044] Furthermore, the concentration compensation coefficient The expanded expression is: ; in, , , , , , These are the coefficients of a univariate second-order regression. , , , , , These are the coefficients of a second-order binary regression.
[0045] In step S450, a bivariate quadratic regression analysis is used for the first and second data, while a univariate quadratic regression analysis is used for the third and fourth data. This differentiated analysis design fully considers the error characteristics caused by different influencing factors. By deeply analyzing the changing trends of each error, the corresponding curve equation is fitted, thereby achieving a more accurate compensation effect.
[0046] Furthermore, considering the potential nonlinear changes in the response of the hydrogen sulfide sensor under high temperature and humidity conditions, the concentration compensation coefficient... Higher-order interaction terms can also be introduced to establish a coupling compensation relation, the expression of which is: (5) in, Represents a positive integer, and ; and Indicates the fitted parameters; and These represent the activation energy coefficient and the hydrodynamic coefficient, respectively, and their units are inversely matched with the units of the physical quantities they are multiplied by. This represents the activation energy constant, which can be set to 25. This represents the universal gas constant, which is usually set to 8.314.
[0047] It should be noted that, in the technical scenarios involved in the embodiments of the present invention, As a correction factor, it is a dimensionless coefficient used to proportionally adjust the original measurement value to more accurately reflect the actual concentration. For fitting parameters (such as...) , , , and The units of ) form a strict inverse matching relationship with the units of their respective physical quantities. For example, for The terms, fitting parameters The unit is set as unit The power. Through this design, each product term consisting of the fitted parameter and the corresponding physical quantity is dimensionless, and the sum of these terms yields... It naturally retains its dimensionless properties.
[0048] Specifically, in step S6, based on the zero-point compensation value The zero-point offset of the hydrogen sulfide sensor is corrected to obtain the corrected concentration value; then, this corrected value is multiplied by a compensation coefficient determined by temperature, humidity, flow rate, and pressure. The compensated concentration is obtained; finally, considering the impact of the hydrogen sulfide sensor's operating time on measurement accuracy, it is multiplied by an aging coefficient that dynamically changes with operating time. Finally, the concentration value of the hydrogen sulfide gas to be measured was obtained. Among them, the concentration value of hydrogen sulfide gas to be measured The expression is shown in formula (4).
[0049] To verify the effectiveness of the method described in this embodiment of the invention, actual experimental test data was used to analyze the results before and after zero-point compensation. The analysis results are as follows: Figures 2 to 3 As shown. Among them, Figure 2 This demonstrates the measurement error of hydrogen sulfide concentration before zero-point compensation. Figure 3 This demonstrates the measurement error of hydrogen sulfide concentration after zero-point compensation. In Figures 2 and 3, the points represent the actual data points collected, while the curves are obtained through modeling and fitting, used to clearly present the overall trend of the data.
[0050] A comparison of Figures 2 and 3 clearly shows that after zero-point compensation, the measurement error is significantly reduced, almost approaching zero. This result fully demonstrates the significant effect of the method described in this invention in improving measurement accuracy.
[0051] This invention employs a comprehensive method combining temperature compensation, humidity compensation, pressure compensation, and aging compensation to effectively reduce the interference of external physical quantities on the detection results. Through precise compensation for the influence of multiple physical quantities, accurate correction of the collected hydrogen sulfide gas concentration value is achieved, thereby improving the reliability, accuracy, and precision of the hydrogen sulfide gas detection data, and establishing a more accurate mapping relationship between gas concentration and sensor output data.
[0052] Example 2: Based on the same inventive concept, this example provides a hydrogen sulfide gas concentration measurement and compensation system. The principle of solving the problem is similar to the hydrogen sulfide gas concentration measurement and compensation method provided in Example 1, and the repeated parts will not be described again.
[0053] This embodiment provides a hydrogen sulfide gas concentration measurement and compensation system, including: The acquisition module is used to acquire key data on hydrogen sulfide gas in its initial state. The zero-point compensation construction module is used to perform controlled variable analysis on key data to obtain zero-point data; determine the relationship between zero-point data and key data, and construct the zero-point compensation formula. An aging compensation construction module is used to obtain the aging coefficient of the hydrogen sulfide sensor and construct an aging compensation formula based on the aging coefficient. The parameter compensation construction module is used to obtain first, second, third, and fourth data of hydrogen sulfide gas under different temperatures, humidity, flow rates, and pressures; and to construct parameter compensation formulas based on the first, second, third, and fourth data. The compensation value acquisition module is used to acquire the current value of the hydrogen sulfide sensor and obtain the zero-point compensation value according to the zero-point compensation formula; acquire the current key parameter values of the hydrogen sulfide gas to be measured and perform concentration compensation according to the parameter compensation formula to obtain the concentration compensation value; acquire the running time of the hydrogen sulfide sensor and perform aging compensation according to the aging compensation formula to obtain the aging compensation value. The output module is used to output the concentration value of the hydrogen sulfide gas to be measured based on the zero-point compensation value, concentration compensation value, and aging compensation value.
[0054] Example 3: This example provides a hydrogen sulfide gas concentration measurement and compensation device, including the hydrogen sulfide gas concentration measurement and compensation system provided in Example 2.
[0055] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0056] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0057] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0058] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0059] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
Claims
1. A hydrogen sulfide gas concentration measurement compensation method characterized by, include: Obtain key data on hydrogen sulfide gas in its initial state; Control variable analysis was performed on the key data to obtain zero-point data; Determine the relationship between the zero-point data and the key data, and establish a zero-point compensation formula; Obtain the aging coefficient of the hydrogen sulfide sensor, and establish an aging compensation formula based on the aging coefficient; First, second, third, and fourth data points for hydrogen sulfide gas were obtained under different temperatures, humidity levels, flow rates, and pressures. Specifically: By keeping the temperature, humidity, and pressure constant and controlling the flow rate within a set range, hydrogen sulfide gas of different concentrations is introduced at each flow rate point to obtain the first data. By keeping the temperature, humidity, and flow rate constant and the pressure within a set range, hydrogen sulfide gas of different concentrations is introduced at each pressure point to obtain the second data. By keeping the temperature, flow rate, and pressure constant and the humidity within a set range, hydrogen sulfide gas of different concentrations is introduced at each humidity point to obtain the third data. By keeping the flow rate, humidity, and pressure constant and the temperature within a set range, hydrogen sulfide gas of different concentrations was introduced at each temperature point to obtain the fourth data. A parameter compensation relationship is established based on the first data, the second data, the third data, and the fourth data, specifically as follows: Perform a binary quadratic regression analysis on the first data and the second data, and a univariate quadratic regression analysis on the third data and the fourth data; Based on the results of the binary quadratic regression analysis and the univariate quadratic regression analysis, a parameter compensation relationship is established. Obtain the current value of the hydrogen sulfide sensor and, according to the zero-point compensation formula, obtain the zero-point compensation value; obtain the current key parameter values of the hydrogen sulfide gas to be measured and, according to the parameter compensation formula, perform concentration compensation to obtain the concentration compensation value; obtain the running time of the hydrogen sulfide sensor and, according to the aging compensation formula, perform aging compensation to obtain the aging compensation value. The concentration value of the hydrogen sulfide gas to be measured is obtained based on the zero-point compensation value, the concentration compensation value, and the aging compensation value; wherein, the expression for the concentration value of the hydrogen sulfide gas to be measured is: ; in, This indicates the concentration value of hydrogen sulfide gas. This indicates the reading from the hydrogen sulfide sensor. This represents the zero-point compensation coefficient of the hydrogen sulfide sensor. This represents the concentration compensation coefficient. This indicates the aging coefficient of the hydrogen sulfide sensor.
2. The hydrogen sulfide gas concentration measurement and compensation method according to claim 1, characterized in that, The steps for performing controlled variable analysis on the key data to obtain zero-point data are as follows: The key data includes data on temperature, humidity, pressure, and flow rate; The humidity, pressure, and flow rate are kept constant; a temperature range is set, and the temperature is gradually increased within the temperature range according to a preset temperature step value to obtain the first hydrogen sulfide gas data at each temperature point; The temperature, pressure, and flow rate are kept constant; a humidity range is set, and the humidity is adjusted step by step according to a preset humidity step value within the humidity range to obtain the second hydrogen sulfide gas data at each humidity point; The temperature, humidity, and flow rate are kept constant; a pressure range is set, and the pressure is adjusted step by step within the pressure range according to a preset pressure step value to obtain the third hydrogen sulfide gas data at each pressure point; The temperature, humidity, and pressure are kept constant; a flow rate range is set, and the flow rate is adjusted step by step within the range according to a preset flow rate step value to obtain the fourth hydrogen sulfide gas data at each flow rate point; Zero-point data are obtained based on the first hydrogen sulfide gas data, the second hydrogen sulfide gas data, the third hydrogen sulfide gas data, and the fourth hydrogen sulfide gas data.
3. The hydrogen sulfide gas concentration measurement and compensation method according to claim 1, characterized in that... Determine the relationship between the zero-point data and the key data, and establish a zero-point compensation formula, wherein the zero-point compensation formula is: ; in, Represents the zero-point compensation coefficient. and Indicates numerical values at different temperature points. The temperature point value is indicated as The hydrogen sulfide sensor reading at that time, The temperature point value is indicated as The value of the hydrogen sulfide sensor at that time. , This indicates the actual temperature of the current environment.
4. The hydrogen sulfide gas concentration measurement and compensation method according to claim 1, characterized in that, The aging compensation relationship is as follows: ; in, The cumulative usage time of the hydrogen sulfide sensor. This represents the long-term attenuation coefficient of the hydrogen sulfide sensor.
5. The hydrogen sulfide gas concentration measurement and compensation method according to claim 1, characterized in that, The parameter compensation relationship is as follows: ; in, This represents the concentration compensation coefficient. and Represents positive integers. This represents the value collected by the temperature sensor. This indicates the value collected by the humidity sensor. This represents the value collected by the pressure sensor. This is the hydrogen sulfide gas flow rate value; , , These are the fitting parameters.
6. The hydrogen sulfide gas concentration measurement and compensation method according to claim 1, characterized in that, Key data for obtaining hydrogen sulfide gas in its initial state include data on hydrogen sulfide gas at different concentrations, temperatures, humidity, pressures, and flow rates; wherein the concentration range is 0–30 ppm, the temperature range is -40℃–85℃, the humidity range is 10%–90%RH, the pressure range is 75 kPa–130 kPa, and the flow rate range is 0–500 sccm.
7. A hydrogen sulfide gas concentration measurement and compensation system, used to implement the hydrogen sulfide gas concentration measurement and compensation method according to any one of claims 1 to 6, characterized in that, include: The acquisition module is used to acquire key data on hydrogen sulfide gas in its initial state. The zero-point compensation construction module is used to perform control variable analysis on the key data to obtain zero-point data; determine the relationship between the zero-point data and the key data, and construct the zero-point compensation formula. An aging compensation construction module is used to obtain the aging coefficient of the hydrogen sulfide sensor and construct an aging compensation formula based on the aging coefficient. The parameter compensation construction module is used to obtain first data, second data, third data, and fourth data of hydrogen sulfide gas under different temperatures, humidity, flow rates, and pressures; and to construct parameter compensation formulas based on the first data, second data, third data, and fourth data. The compensation value acquisition module is used to acquire the current value of the hydrogen sulfide sensor and obtain the zero-point compensation value according to the zero-point compensation formula; acquire the current key parameter values of the hydrogen sulfide gas to be measured and perform concentration compensation according to the parameter compensation formula to obtain the concentration compensation value; acquire the running time of the hydrogen sulfide sensor and perform aging compensation according to the aging compensation formula to obtain the aging compensation value. The output module is used to output the concentration value of the hydrogen sulfide gas to be measured based on the zero-point compensation value, the concentration compensation value, and the aging compensation value.
8. A hydrogen sulfide gas concentration measurement and compensation device, characterized in that, Includes the hydrogen sulfide gas concentration measurement and compensation system as described in claim 7.
Citation Information
Patent Citations
Method for correcting measurement value of hydrogen sensor
CN110988272A
Calibration method of gas detection device and gas detection device
CN115407017A