Gas concentration detection method and device and storage medium

By obtaining standard gas parameters to calculate the calibration coefficient X, combined with spectral data filtering and harmonic processing, the problem of insufficient sensitivity of existing methane monitoring equipment is solved, and fast and accurate gas concentration detection is achieved.

CN120404623APending Publication Date: 2025-08-01HAINA CLOUD IOT TECH CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410921197.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The existing methane monitoring equipment is insufficient in sensitivity, it is difficult to capture low-concentration methane gas, and the detection results are low reliability and are susceptible to noise and interference.

Method used

By obtaining multiple key parameters of standard gas, calculating the calibration coefficient X, and combining the filtering and harmonic processing of spectral data, gas concentration detection methods and devices are used, including acquisition modules, processing modules, temperature and pressure monitoring modules, to achieve accurate detection of gas concentration.

Benefits of technology

It improves the accuracy and efficiency of gas concentration detection, can quickly and real-time monitoring of gas concentration, reduce manual intervention, and is suitable for a variety of gas types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120404623A_ABST
    Figure CN120404623A_ABST
Patent Text Reader

Abstract

The invention discloses a gas concentration detection method and device and a storage medium. The method comprises the following steps: acquiring the concentration C0, spectral line intensity S0, optical path L, peak-to-peak value A0 and environment pressure intensity P of standard gas, and acquiring a calibration coefficient X according to C = A / X * (S * P * L); acquiring spectral data and spectral line intensity S1 of the to-be-detected gas; carrying out filtering processing on the obtained spectral data; carrying out harmonic processing on the filtered spectrum data, and calculating a peak-to-peak value A1 in harmonic data; if it is judged that the effective absorption peak exists, the concentration value of the gas to be detected is calculated according to the spectral line intensity S1, the optical path L, the peak-to-peak value A1, the environment pressure intensity P, the calibration coefficient X and C = A / X * (S * P * L). The detection method is implemented through the gas concentration detection device, a plurality of key parameters of the standard gas are obtained, the calibration coefficient X is calculated by using the parameters, and the calibration coefficient is combined with filtering and harmonic processing of spectral data of the detected gas, so that the accuracy of a detection result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of gas detection. Specifically, it relates to a method and device for detecting gas concentration and a storage medium. Background Art

[0002] Methane is a colorless, odorless, flammable and explosive gas, and its importance cannot be ignored, especially in the fields of environmental protection, human health and energy supply. As the main component of natural gas, methane is an important energy resource. However, in all aspects of coal mining, natural gas transportation, storage and use, the potential danger of methane gas leakage is difficult to detect with the naked eye. Once the methane concentration in the air reaches 5%-16%, any heat source or open flame may trigger an explosion accident, causing serious life and property losses.

[0003] In view of this, it is particularly important to develop a device that can detect the methane gas concentration in real time and accurately and monitor methane leakage. However, the current methane monitoring devices on the market are still insufficient in sensitivity and difficult to capture low-concentration methane gas. Moreover, some devices have a relatively high false alarm rate, and the reliability of the detection results needs to be improved. Therefore, we need to continuously develop more advanced and accurate methane monitoring technologies to ensure the safety of production and life.

[0004] Chinese Patent with Application No. 202111485694.9 discloses a method and device for detecting gas concentration. The method includes: obtaining an optical signal of an absorption spectrum through a laser and a gas with a known concentration, converting the optical signal into an electrical signal, removing the low-frequency sawtooth wave in the electrical signal, amplifying the high-frequency component in the electrical signal again, sampling the high-frequency signal in the electrical signal starting from zero phase, and the sampling length is one sawtooth wave period; performing a detection operation on the sampled signal at the speed of twice the frequency of the sine wave to obtain a co-directional component; obtaining a second harmonic by low-pass filtering the co-directional component; based on the relationship between the maximum value in the second harmonic and a preset threshold, determining the peak value and valley value from the second harmonic, calculating the absorption peak intensity according to the peak value and valley value, and determining a calibration coefficient according to different gas concentrations and the corresponding absorption peak intensities. And detecting the gas concentration based on the calibration coefficient. The detection method and processing stage of this application are complex, increasing the difficulty of design and implementation, and are easily affected by noise and interference, resulting in a reduction in measurement accuracy.

[0005] In view of this, the present invention is specifically proposed. Summary of the Invention

[0006] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a method and device for detecting gas concentration and a storage medium. By using this detection method to detect gas concentration, the accuracy of gas concentration detection can be improved.

[0007] To solve the above technical problems, the basic concept of the technical solution adopted by the present invention is as follows:

[0008] In a first aspect of the present invention, a method for detecting gas concentration is provided, including:

[0009] S10. Obtain the concentration C0, spectral line intensity S0, optical path L, peak-to-peak value A0 of a standard gas, and ambient pressure P, and obtain a calibration coefficient X according to C = A / X * (S * P * L);

[0010] S20. Obtain the spectral data and spectral line intensity S1 of the gas to be measured;

[0011] S30. Perform filtering processing on the obtained spectral data;

[0012] S40. Perform harmonic processing on the filtered spectral data, and calculate the peak-to-peak value A1 in the harmonic data;

[0013] S50. If it is determined that there is an effective absorption peak, calculate the concentration value of the gas to be measured according to the spectral line intensity S1, optical path L, peak-to-peak value A1, ambient pressure P, calibration coefficient X, and C = A / X * (S * P * L).

[0014] Optionally, in S10, calculating the calibration coefficient X includes:

[0015] S11. Obtain the concentration C0, spectral line intensity S0, optical path L, and ambient pressure P of the standard gas;

[0016] S12. Obtain the spectral data of the standard gas;

[0017] S13. Perform filtering and harmonic processing on the obtained spectral data, and calculate the peak-to-peak value A0 in the harmonic data;

[0018] S14. If it is determined that there is an effective absorption peak, calculate the value of the calibration coefficient X according to the concentration C0, spectral line intensity S0, optical path L, ambient pressure P, and the formula X = A0 / C0 * (S0 * P * L).

[0019] Optionally, before S50, determining that there is an effective absorption peak in the harmonic data includes:

[0020] S41. Determine the magnitude relationship between the peak-to-peak value A1 in the harmonic data and a preset threshold. If the peak-to-peak value A1 is greater than the preset threshold, it is determined that there is an effective absorption peak in the harmonic data, and then calculate the concentration value of the gas to be measured according to the formula.

[0021] Optionally, in S41, if it is determined that the peak-to-peak value A1 is less than or equal to the preset threshold, it is determined that there is no effective absorption peak in the harmonic data, and then the gas concentration detection process is exited.

[0022] Optionally, calculate the peak-to-peak value in the harmonic data, including:

[0023] Obtain the peak value a of the highest peak in the harmonic data;

[0024] Obtain the peak value b of the lowest peak connected to the highest peak;

[0025] Calculate the difference between a and b, and the absolute value of the difference between the two is the peak-to-peak value.

[0026] Optionally, after filtering the obtained spectral data of the gas, perform linear fitting on the spectral data by the least squares method to convert the spectral data into harmonic data.

[0027] Optionally, calculate the spectral line intensity, including:

[0028] Obtain the temperature value of the detection environment where the gas is located;

[0029] Substitute the obtained temperature value into the relationship formula between the spectral line intensity and the temperature to calculate the spectral line intensity.

[0030] In the second aspect of the present invention, there is provided a gas concentration detection device, which adopts the above gas concentration detection method, including:

[0031] A collection module for collecting spectral data of the gas;

[0032] A processing module for processing the spectral data to obtain harmonic data;

[0033] A first determination module for obtaining the peak-to-peak value and determining whether there is an absorption peak in the harmonic data according to the peak-to-peak value;

[0034] A second determination module for determining the concentration value of the gas according to the set formula.

[0035] Further, it further includes: a temperature monitoring module for monitoring the ambient temperature where the gas is located;

[0036] A pressure monitoring module for monitoring the ambient pressure where the gas is located;

[0037] A third determination module for obtaining the temperature value and determining the spectral line intensity of the gas according to the temperature value.

[0038] In the third aspect of the present invention, there is provided a computer-readable storage medium, on which a gas concentration detection program is stored, and when the gas concentration detection program is executed by a processor, the above gas concentration detection method is implemented.

[0039] According to the computer-readable storage medium of the embodiment of the present invention, by executing the above gas concentration detection method, the actual concentration of the gas can be calculated quickly and in real time, the detection result has high accuracy, and the consumed computing resources are small.

[0040] After adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art.

[0041] 1. For the gas concentration detection method of the present invention, by obtaining multiple key parameters of the standard gas and using these parameters to calculate the calibration coefficient X, through the introduction of the calibration coefficient X and the filtering and harmonic processing of the spectral data of the detected gas, the accuracy of gas concentration detection can be improved.

[0042] 2. For the gas concentration detection method of the present invention, the entire detection process, including data acquisition, preprocessing, peak-to-peak value calculation, absorption peak judgment, and concentration calculation, can be automatically completed through a preset algorithm, reducing manual intervention and improving detection efficiency.

[0043] 3. For the gas concentration detection method of the present invention, through fast data processing and analysis, real-time gas concentration monitoring can be achieved; and it is not limited to specific types of gases, and only the corresponding parameters need to be adjusted according to the spectral characteristics of the gas.

[0044] The following further describes in detail the specific implementation manners of the present invention with reference to the accompanying drawings. Description of the Drawings

[0045] The accompanying drawings, as a part of the present invention, are used to provide a further understanding of the present invention. The schematic embodiments and descriptions thereof of the present invention are used to explain the present invention, but do not constitute an improper limitation to the present invention. Obviously, the accompanying drawings in the following description are only some embodiments, and those of ordinary skill in the art can also obtain other accompanying drawings based on these drawings without creative efforts. In the accompanying drawings:

[0046] Figure 1 is a schematic flowchart of the gas concentration detection method of the present invention Figure 1 ;

[0047] Figure 2 is a schematic flowchart of obtaining the calibration coefficient X in the gas concentration detection method of the present invention;

[0048] Figure 3 is a schematic flowchart of peak-to-peak value calculation in the gas concentration detection method of the present invention;

[0049] Figure 4 is a schematic flowchart of the gas concentration detection method of the present invention Figure 2 ;

[0050] Figure 5 is a schematic diagram of the comparison of spectral lines before and after filtering the spectral data of the gas to be detected obtained by the gas concentration detection method of the present invention;

[0051] Figure 6It is a schematic diagram of harmonic data after the gas concentration detection method of the present invention performs first-harmonic processing on the spectral data of the gas to be measured.

[0052] It should be noted that these drawings and textual descriptions are not intended to limit the scope of the concept of the present invention in any way, but to illustrate the concept of the present invention to those skilled in the art by referring to specific embodiments. Detailed implementation manners

[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. The following embodiments are used to illustrate the present invention, but are not used to limit the scope of the present invention.

[0054] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present invention.

[0055] In the description of the present invention, it should be noted that unless otherwise clearly specified and limited, the terms "installation", "connection", and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0056] As Figures 1 to 4 shown, in the first aspect of the present invention, a method for detecting the gas concentration is provided, including steps S10 to S50.

[0057] In step S10, the concentration C0, spectral line intensity S0, optical path L, peak-to-peak value A0, and ambient pressure P of the standard gas are obtained, and the calibration coefficient X is obtained according to C = A / X * (S * P * L).

[0058] In step S20, the spectral data and spectral line intensity S1 of the gas to be measured are obtained.

[0059] In step S30, the obtained spectral data is subjected to filtering processing.

[0060] In step S40, the filtered spectral data is subjected to harmonic processing, and the peak-to-peak value A1 in the harmonic data is calculated;

[0061] In step S50, if it is determined that there is an effective absorption peak, the concentration value of the gas to be measured is calculated according to the spectral line intensity S1, optical path L, peak-to-peak value A1, ambient pressure P, calibration coefficient X, and C = A / X * (S * P * L).

[0062] In this embodiment, turn on the detection device and ensure that the device has reached a stable working state. Obtain the concentration C0, spectral line intensity S0, optical path L, peak-to-peak value A0, and ambient pressure P of the standard gas. According to the obtained values above, combine with the formula C = A / X * (S * P * L) to obtain the calibration coefficient X. Introduce the gas to be measured into the detection chamber of the spectral detection device, and ensure that the gas flow is stable and there is no leakage; use the detection device to detect the gas to be measured, and obtain the spectral data and spectral line intensity S1 of the gas to be measured, and save the obtained data. Perform filtering and harmonic processing on the saved spectral data to eliminate background noise and interference factors, and extract the fitted harmonic data for subsequent analysis.

[0063] After filtering the spectral data of the gas to be measured, convert it into harmonic data to further improve the accuracy of the data. Specifically, the obtained spectral data is processed using a filtering algorithm to eliminate high-frequency noise and interference signals, and improve the signal-to-noise ratio of the data. After data filtering, it is necessary to detect the quality of the filtered data to ensure that the data is smooth and retains key spectral features. It should be noted that the filtering algorithms here cover various types, including but not limited to low-pass filtering, high-pass filtering, band-pass filtering, etc. In practical applications, the most suitable filtering method should be flexibly selected based on specific requirements.

[0064] Continue to check the harmonic data to find out if there is an obvious absorption peak. If there is, record its position and peak-to-peak value A1 for subsequent calculation; calculate the concentration value of the gas to be measured according to the formula C = A / X * (S * P * L).

[0065] It should be noted that before detecting the gas to be measured, detect the standard gas. The ambient pressure P where the two gases are located is the same, which can be measured by a barometer; the optical path L is the same, that is, the distance from the detector to the laser. Record the calculated gas concentration value and check whether it is within a reasonable range. During the detection process, it is worth noting that before performing spectral detection, please ensure that the device is correctly installed and calibrated; in the space where the gas to be measured is located, please ensure that the gas flow is stable and there is no leakage; when selecting the wavelength range, please ensure that it includes the characteristic absorption peak of the gas to be measured; when calculating the concentration value, please ensure that all parameters are accurate and reliable.

[0066] Optionally, in step S10, calculating the calibration coefficient X includes steps S11 to S14.

[0067] In step S11, obtain the concentration C0, spectral line intensity S0, optical path L, and ambient pressure P of the standard gas.

[0068] In step S12, obtain the spectral data of the standard gas.

[0069] In step S13, filter and perform harmonic processing on the obtained spectral data, and calculate the peak-to-peak value A0 in the harmonic data.

[0070] In step S14, if it is determined that there is an effective absorption peak, according to the concentration C0, spectral line intensity S0, optical path L, ambient pressure P, and the formula X = A0 / C0 * (S0 * P * L), calculate the value of the calibration coefficient X.

[0071] In this embodiment, use a standard gas sample with a preset concentration of C0. Introduce the standard gas into the sample chamber of the spectral detection device to ensure stable gas flow and no leakage; operate the spectral detection device, obtain the spectral data of the standard gas, and save the obtained spectral data to a computer. Select an appropriate wavelength range to ensure that it contains the characteristic absorption peak of the standard gas; perform filtering and harmonic processing on the spectral data to eliminate background noise and interference factors, extract the fitted harmonic data for subsequent analysis; analyze the fitted harmonic data to find the peak-to-peak value A0 corresponding to the characteristic absorption peak of the standard gas.

[0072] According to the known formula C0 = A0 / X * (S * P * L), we can derive the calculation formula for the calibration coefficient X: X = A0 / (C0 * S * P * L); where, A0: is the peak-to-peak value in the harmonic data of the standard gas; C0: is the known concentration of the standard gas; S: is the spectral line intensity of the standard gas, which needs to be obtained in advance or measured; P: is the pressure of the detection environment, which can be measured by a barometer; L: is the optical path, which can be obtained from device parameters or measured; substitute the above values into the formula to calculate the value of the calibration coefficient X.

[0073] The spectral line intensity of the standard gas is related to the ambient temperature when detecting the standard gas. Specifically, use a thermometer or other temperature measurement device to measure and record the temperature value of the environment where the standard gas is located. According to known physical principles or consult relevant literature to obtain the relationship formula or table between the spectral line intensity and temperature of the gas to be measured, and substitute the detected temperature value into the relationship formula or query the table to calculate the spectral line intensity S at the corresponding temperature.

[0074] Optionally, before step S50, determine whether there is an effective absorption peak in the harmonic data, specifically including: step S41.

[0075] In step S41, determine the magnitude relationship between the peak-to-peak value A1 in the harmonic data and the preset threshold. If the peak-to-peak value A1 is greater than the preset threshold, it is determined that there is an absorption peak in the harmonic data, and then calculate the concentration value of the gas to be measured according to the formula.

[0076] In step S41, it also includes determining that the peak-to-peak value A1 is less than or equal to the preset threshold, and if it is determined that there is no absorption peak in the harmonic data, then exit the gas concentration detection process.

[0077] In this embodiment, after processing the spectral data of the gas to be detected, the peak-to-peak value A1 in the harmonic data of the gas to be detected is obtained. By comparing the magnitude of A1 with the preset threshold, it is judged whether there is an effective absorption peak in the harmonic data. If A1 is greater than the preset threshold, it is determined that there is a characteristic absorption peak of the gas to be measured in the harmonic data, and the subsequent concentration calculation can be continued; if the peak-to-peak value A1 is less than or equal to the preset threshold, it is determined that there is no characteristic absorption peak of the gas to be measured in the harmonic data, which may indicate that the concentration of the gas to be measured is too low or no effective signal is detected in the spectral data. At this time, the experimental conditions should be checked or the spectral data should be obtained again.

[0078] In this embodiment, after processing the spectral data of the gas to be detected, the peak-to-peak value A1 in the harmonic data of the gas to be detected is obtained. By comparing the magnitude of A1 with the preset threshold, it is judged whether there is an effective absorption peak in the harmonic data. If A1 is greater than the preset threshold, it is determined that there is a characteristic absorption peak of the gas to be measured in the harmonic data, and the subsequent concentration calculation can be continued; if the peak-to-peak value A1 is less than or equal to the preset threshold, it is determined that there is no characteristic absorption peak of the gas to be measured in the harmonic data, which may indicate that the concentration of the gas to be measured is too low or no effective signal is detected in the spectral data. At this time, the experimental conditions should be checked or the spectral data should be obtained again. On this basis, since no absorption peak is detected and the gas concentration cannot be accurately calculated, the current detection process should be exited, and further retrieval or adjustment of the experimental conditions may be required.

[0079] Optionally, calculating the peak-to-peak value in the harmonic data includes the following steps.

[0080] Obtain the peak value a of the highest peak in the harmonic data;

[0081] Obtain the peak value b of the lowest peak connected to the highest peak;

[0082] Calculate the difference between a and b, and the absolute value of the difference between the two is the peak-to-peak value.

[0083] In this embodiment, through the description of the above embodiment, harmonic data is obtained. The highest peak is searched for and located in the obtained harmonic data, and the peak value data at the highest peak is read and recorded, denoted as a. Then, continue to search for the lowest peak connected to the highest peak in the harmonic data, and read and record the peak value data at the lowest peak, denoted as b. Calculate the difference between a and b, that is, A = |a - b|; The peak-to-peak value is one of the parameters for calculating the subsequent concentration value.

[0084] The method for calculating the peak-to-peak value is applicable to both the process of monitoring the standard gas to obtain the peak-to-peak value A0 of the standard gas when calculating the calibration coefficient X, and the process of obtaining the peak-to-peak value A1 of the gas to be measured when detecting the gas to be measured.

[0085] Furthermore, after filtering the spectral data of the obtained gas, the least squares method is used to perform linear fitting on the spectral data to convert the spectral data into harmonic data.

[0086] Optionally, calculating the spectral line intensity includes the following steps.

[0087] Obtain the temperature value of the detection environment where the gas is located.

[0088] Substitute the obtained temperature value into the relationship formula between the spectral line intensity and temperature, and calculate the spectral line intensity.

[0089] In this embodiment, a thermometer or other temperature measuring device is used to measure and record the temperature value of the detection environment where the gas to be measured is located. According to the known physical principles or by referring to relevant literature, obtain the relationship formula or table between the spectral line intensity and temperature of the gas to be measured, and substitute the detected temperature value into the relationship formula or query the table to calculate the spectral line intensity at the corresponding temperature.

[0090] When performing the spectral line intensity of the gas to be measured, detect the ambient temperature of the gas to be measured. According to the relationship formula: ST = -0.00193*T - 0.0000180064*T2 + 1.08291; ST can be expressed as a compensation coefficient, and this compensation coefficient is obtained through actual measurement. Simply put, when detecting the gas to be measured, measure the concentration at 4 - 5 temperature points of the environment where the gas to be measured is located, and then perform back-calculation. Finally, fit this formula through polynomial fitting. Only a reference relationship formula is given here. In the actual detection environment, the corresponding relationship between temperature and spectral line intensity can be deduced according to the actual situation.

[0091] Similarly, when performing the spectral line intensity of the standard gas, detect the ambient temperature T0 of the standard gas. According to the relationship formula: ST0 = -0.00193*T0 - 0.0000180064*T0 2+1.08291; ST0 can be expressed as a compensation coefficient, which is obtained through actual measurement. Simply put, when detecting standard gas, the concentrations at 4 - 5 temperature points in the environment where the standard gas is located are measured, and then inversely deduced. Finally, this formula is fitted through polynomial fitting. Only a reference relationship is given here. In the actual detection environment, the corresponding relationship between temperature and spectral line intensity can be deduced according to the actual situation.

[0092] As Figures 5 to 6 shown, in the present invention, first, the standard gas concentration, spectral line intensity, optical path, peak - to - peak value, and ambient pressure are obtained, and the calibration coefficient is obtained according to the set formula; then the gas to be measured is detected to obtain the spectral data and spectral line intensity of the gas to be measured. After filtering the spectral data of the gas to be measured, a comparison diagram of spectral line data before and after filtering as Figure 5 shown is obtained; then it is converted into a harmonic data spectral line diagram as Figure 6 shown by using the least - squares method. Then, the peak - to - peak value in the harmonic data is calculated, and if it is determined that there is an effective absorption peak in the harmonic data according to the calculated peak - to - peak value, the concentration of the gas to be measured is calculated according to the set formula. The present invention determines the calibration coefficient through the calibration process, then measures and processes the spectral data of the gas to be measured, combines the processed spectral data with the calibration coefficient to obtain the concentration value of the gas, can accurately and quickly obtain the concentration value of the gas to be measured, and can improve the detection accuracy.

[0093] In the second aspect of the present invention, a gas concentration detection device is provided, which adopts the gas concentration detection method as described above.

[0094] Further, the gas concentration detection device includes:

[0095] An acquisition module, configured to acquire the spectral data of the gas;

[0096] A processing module, configured to pre - process the spectral data to obtain harmonic data;

[0097] A first determination module, configured to obtain the peak - to - peak value and determine whether there is an absorption peak in the harmonic data according to the peak - to - peak value;

[0098] A second determination module, configured to determine the concentration value of the gas according to the set formula.

[0099] Further, the gas concentration detection device further includes:

[0100] A temperature monitoring module, configured to monitor the ambient temperature of the gas;

[0101] A pressure monitoring module, configured to monitor the ambient pressure of the gas;

[0102] A third determination module, configured to obtain a temperature value and determine the spectral intensity of the gas according to the temperature value.

[0103] In this embodiment, a gas concentration detection device is provided. The device adopts an advanced gas concentration detection method and can accurately and quickly detect and calculate the concentration value of the gas to be measured. By integrating multiple functional modules, the device realizes a fully automated process from spectral data acquisition to concentration value calculation, improving the detection efficiency and accuracy.

[0104] The gas concentration detection device includes: a collection module, responsible for collecting the spectral data of the gas to be measured. Through a high-precision spectral detection device, the absorption or emission spectral characteristics of gas molecules in a specific wavelength band are captured;

[0105] A processing module, which preprocesses the collected spectral data, including steps such as filtering, denoising, and baseline correction, to eliminate background noise and interference factors and obtain clearer harmonic data;

[0106] A first determination module, which analyzes the processed harmonic data, calculates the peak-to-peak value, and determines whether there is a characteristic absorption peak of the gas to be measured in the harmonic data according to the magnitude of the peak-to-peak value;

[0107] A second determination module, after confirming the existence of an absorption peak, calculates the concentration value of the gas to be measured according to a preset formula and calibration coefficient, in combination with other relevant parameters (such as spectral intensity, ambient pressure, optical path, etc.);

[0108] A temperature monitoring module, which monitors the ambient temperature of the gas to be measured in real time and transmits the temperature value to the third determination module;

[0109] A pressure monitoring module, which monitors the ambient pressure of the gas to be measured in real time and provides necessary parameters for concentration calculation;

[0110] A third determination module, which receives the temperature value transmitted by the temperature monitoring module and determines the spectral intensity of the gas to be measured at the current temperature according to the relationship between temperature and spectral intensity (such as through a lookup table or a calculation model).

[0111] Workflow: The collection module collects the spectral data of the gas to be measured; the processing module preprocesses the spectral data to obtain harmonic data; the first determination module calculates the peak-to-peak value and determines whether there is an absorption peak; if there is an absorption peak, continue to execute; otherwise, prompt that no gas is detected or the gas concentration is too low; the temperature monitoring module and the pressure monitoring module respectively monitor the ambient temperature and pressure; the third determination module determines the spectral intensity according to the temperature value; the second determination module calculates the concentration value of the gas to be measured according to a preset formula and calibration coefficient, in combination with parameters such as spectral intensity, ambient pressure, and optical path; display or output the concentration value.

[0112] The gas concentration detection device of the present invention integrates multiple functional modules, realizing a fully automated process from spectral data acquisition to concentration value calculation. Through a high-precision acquisition module, advanced processing technology, and an automated calculation process, this device can accurately and quickly detect the concentration value of the gas to be measured, providing strong support for research and applications in related fields.

[0113] Corresponding to the above embodiments, the present invention also proposes a computer-readable storage medium.

[0114] The computer-readable storage medium of the embodiments of the present invention stores a gas concentration detection program, and when the gas concentration detection program is executed by a processor, it implements the above gas concentration detection method.

[0115] According to the computer-readable storage medium of the embodiments of the present invention, by executing the above gas concentration detection method, the actual concentration of the gas can be calculated quickly and in real time, the detection result has high accuracy, and the consumed computing resources are small.

[0116] The above are only the preferred embodiments of the present invention, and do not impose any form of limitation on the present invention. Although the present invention has been disclosed above with the preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art of this patent can make some changes or modifications into equivalent embodiments by using the technical content prompted above within the scope of the technical solution of the present invention. The implementation schemes in the above embodiments can also be further combined or replaced. However, as long as it does not deviate from the content of the technical solution of the present invention, any simple modification, equivalent change, and modification made to the above embodiments according to the technical essence of the present invention still fall within the scope of the present invention's solution.

Claims

1. A method for detecting gas concentration, characterized in that, Including: S10. Obtain the concentration C0, spectral line intensity S0, optical path L, peak-to-peak value A0, and ambient pressure P of the standard gas, and obtain the calibration coefficient X according to C = A / X * (S * P * L); S20. Obtain the spectral data and spectral line intensity S1 of the gas to be measured; S30. Perform filtering processing on the obtained spectral data; S40. Perform harmonic processing on the filtered spectral data, and calculate the peak-to-peak value A1 in the harmonic data; S50. If it is determined that there is an effective absorption peak, calculate the concentration value of the gas to be measured according to the spectral line intensity S1, optical path L, peak-to-peak value A1, ambient pressure P, calibration coefficient X, and C = A / X * (S * P * L).

2. The gas concentration detection method according to claim 1, wherein: In S10, calculating the calibration coefficient X includes: S11. Obtain the concentration C0, spectral line intensity S0, optical path L, and ambient pressure P of the standard gas; S12. Obtain the spectral data of the standard gas; S13. Perform filtering and harmonic processing on the obtained spectral data, and calculate the peak-to-peak value A0 in the harmonic data; S14. If it is determined that there is an effective absorption peak, calculate the value of the calibration coefficient X according to the concentration C0, spectral line intensity S0, optical path L, ambient pressure P, and the formula X = A0 / C0 * (S0 * P * L).

3. The gas concentration detection method according to claim 1, wherein: Before S50, determining that there is an effective absorption peak in the harmonic data includes: S41. Judge the magnitude between the peak-to-peak value A1 in the harmonic data and a preset threshold. If the peak-to-peak value A1 is greater than the preset threshold, determine that there is an effective absorption peak in the harmonic data, and then calculate the concentration value of the gas to be measured according to the formula.

4. The gas concentration detection method according to claim 3, wherein: In S41, if it is determined that the peak-to-peak value A1 is less than or equal to the preset threshold, determine that there is no effective absorption peak in the harmonic data, and then exit the gas concentration detection process.

5. The gas concentration detection method according to any one of claims 1-2, wherein: Calculating the peak-to-peak value in the harmonic data includes: Obtain the peak value a of the highest peak in the harmonic data; Obtain the peak value b of the lowest peak connected to the highest peak; Calculate the difference between a and b, and the absolute value of the difference between the two is the peak-to-peak value.

6. The gas concentration detection method according to any one of claims 1-2, wherein: After filtering the obtained spectral data of the gas, perform linear fitting on the spectral data by the least squares method to convert the spectral data into harmonic data.

7. The gas concentration detection method according to any one of claims 1-2, wherein: Calculating the spectral line intensity includes: Obtain the temperature value of the detection environment where the gas is located; Substitute the obtained temperature value into the relationship formula between spectral line intensity and temperature, and calculate the spectral line intensity.

8. A gas concentration detection device, characterized in that, Adopting the gas concentration detection method according to any one of claims 1-7 includes: A collection module for collecting the spectral data of the gas; A processing module for preprocessing the spectral data to obtain harmonic data; A first determination module for obtaining the peak-to-peak value and judging whether there is an absorption peak in the harmonic data according to the peak-to-peak value. A second determination module, configured to determine the concentration value of the gas according to a set formula.

9. The gas concentration detection device according to claim 8, wherein, It further includes: A temperature monitoring module, configured to monitor the ambient temperature of the gas; A pressure monitoring module, configured to monitor the ambient pressure of the gas; A third determination module, configured to obtain a temperature value and determine the spectral line intensity of the gas according to the temperature value.

10. A computer-readable storage medium, characterized in that, A gas concentration detection program is stored thereon, and when the gas concentration detection program is executed by a processor, it implements the gas concentration detection method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Gas concentration detection method and device

    CN103076302A

  • Error prediction compensation method based on pattern recognition technology and using device

    CN114544546A

  • Gas analysis method

    CN115753678A

  • Gas concentration detection method and device, medium and electronic equipment

    CN116559098A

  • Gas concentration inversion method and device, storage medium and electronic equipment

    CN117451671A