Method and system for detecting various gases, electronic equipment and storage medium

Through segmented sample pool and infrared spectroscopy analysis technology, the problem of difficulty in detecting multiple types of gases in the existing technology is solved, efficient and accurate gas detection is achieved, cost and complexity is reduced, and a variety of application scenarios are adapted to.

CN119086477AActive Publication Date: 2024-12-06ANHUI YOUNG HEARTY MEDICAL APPLIANCE & EQUIP

Patent Information

Application Number
CN202411211039.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

Existing gas detection technologies are difficult to accurately detect multiple types of gases at the same time, and multiple independent equipment increases cost and complexity, resulting in inconsistent detection results.

Method used

Using segmented sample pool and infrared spectroscopy analysis technology, a variety of gases are detected through a single measurement module, a normalized method is used to determine the gas proportional coefficient, and the sample pool is adjusted according to the optimal sample pool length to achieve accurate detection of various gases. .

Benefits of technology

It improves detection efficiency and accuracy, reduces mutual interference between gases, reduces dependence on high-cost equipment, has high system flexibility, adapts to different application scenarios, and reduces maintenance and use costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119086477A_ABST
    Figure CN119086477A_ABST
Patent Text Reader

Abstract

The invention discloses a method and system for detecting various gases, electronic equipment and a storage medium, and relates to the field of gas detection. The method comprises the following steps: according to a target absorption area of a first to-be-detected gas type, normalizing absorption areas of other gas types in a total to-be-detected gas type to obtain a proportionality coefficient of the other gas types and the first to-be-detected gas type; determining a second optimal sample cell length of other gas types according to the proportionality coefficient and a first optimal sample cell length of the first to-be-detected gas type, and introducing the total to-be-detected gas type into the adjusted segmented sample cells to obtain a standard curve model of each to-be-detected gas type; when a second to-be-detected gas type input by the user is received, the gas circulation path is adjusted to input the to-be-detected gas into the corresponding sample pool, and the real-time concentration of the to-be-detected gas is calculated and displayed through the standard curve model. By implementing the technical scheme provided by the invention, various gases can be detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of gas detection, and in particular to a method, system, electronic device and storage medium for detecting multiple types of gases. Background Art

[0002] With the progress of society and the development of science and technology, the application of spectral detection technology has had a huge impact on human production and life. Rapid and accurate detection of gas concentration has become an indispensable key technology in environmental monitoring, safe production, industrial processes and medical fields.

[0003] Currently, there are many gas detection technologies and devices on the market, but they often have limitations when detecting multiple types of gases at the same time. Traditional gas detection methods usually require the use of multiple independent detection devices and sensors, which not only increases cost and complexity, but may also lead to inconsistent detection results due to differences between devices, and cannot meet the needs of using a single measurement module to measure multiple types of gases at the same time.

[0004] Therefore, how to accurately and efficiently detect multiple types of gases through a single measurement module has become a technical problem that urgently needs to be solved in the current field of gas detection technology. Summary of the invention

[0005] The present application provides a method, system, electronic device and storage medium for detecting multiple types of gases. It adopts a segmented sample cell and infrared spectroscopy analysis technology, and can detect multiple types of gases through a single measurement module, thereby improving detection efficiency. It adopts a normalization method to determine the proportional coefficient of each gas type, and combines the determination of the optimal sample cell length to achieve accurate detection of multiple types of gases.

[0006] In a first aspect of the present application, a method for detecting multiple types of gases is provided, which is applied to a segmented sample pool, wherein the segmented sample pool includes a filter and multiple sample pools, and the method includes: Performing infrared spectroscopy analysis on a standard sample of a first gas type to be measured to obtain an infrared spectrum, and comparing the infrared spectrum with an infrared absorption spectrum of the filter to determine a target absorption area of ​​the first gas type to be measured, wherein the first gas type to be measured is any one of the total gas types to be measured; Normalizing the absorption areas of other gas types in the total gas types to be measured according to the target absorption area to obtain a proportional coefficient between the other gas types and the first gas type to be measured, wherein the proportional coefficient is greater than a preset value; Determine a first optimal sample pool length for the first gas type to be tested, determine a second optimal sample pool length for the other gas types according to the proportional coefficient and the first optimal sample pool length, adjust the segmented sample pool according to the first optimal sample pool length and the second optimal sample pool length, and pass the total gas types to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas type to be tested; When receiving the second gas type to be measured input by the user, the gas flow path is adjusted according to the second gas type to input the gas to be measured into the corresponding sample pool, and the real-time concentration of the gas to be measured is calculated and displayed through the standard curve model.

[0007] By adopting the above technical solution, the infrared spectrum analysis of the standard sample of each gas type to be tested is carried out, and the infrared absorption spectrum of the filter is compared, so that the target absorption area of ​​each gas under specific conditions can be accurately determined. This step provides a solid foundation for the subsequent normalization and proportional coefficient calculation, thereby ensuring the accuracy of the test results. According to the target absorption area and the proportional coefficient, the optimal sample cell length is determined for different gas types, and the personalized customization of the sample cell length is realized. This design optimization not only improves the sensitivity of detection, but also reduces the mutual interference between gases, further improving the accuracy of detection. The design of the segmented sample cell enables the system to be flexibly adjusted according to the needs of different gas types to be tested. By adjusting the gas flow path, the gas to be tested is guided to the corresponding sample cell, and rapid and accurate detection of multiple gases is achieved. This flexibility enables the system to adapt to different application scenarios and detection needs. By processing the detection data of each gas type to be tested at the optimal sample cell length, a standard curve model is established. This model provides a reliable basis for subsequent real-time concentration calculations, ensuring the stability and reliability of the test results. The system can receive the second gas type information to be tested input by the user, and automatically adjust the gas flow path and detection parameters, thereby realizing the automation and intelligence of the detection. At the same time, by displaying the concentration information of the gas to be tested in real time, it provides users with an intuitive and convenient way to view the test results, thereby improving the user experience. By optimizing the sample pool design and improving the detection accuracy, the embodiment of the present application reduces the reliance on high-cost detection equipment while ensuring the accuracy of the test results. In addition, the design of the segmented sample pool is also easy to maintain and replace, further reducing the cost of long-term use.

[0008] Optionally, comparing the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of ​​the first gas type to be measured includes: Using an infrared spectrophotometer to test the filter to obtain an infrared absorption spectrum from high wavenumber to low wavenumber, and obtaining the central wavelength and half-peak width range of the filter according to the infrared absorption spectrum; The infrared spectrum is compared with the central wavelength and the half-peak width range to determine the absorption peak of the first gas type to be measured, the absorption peak is fitted to obtain a fitting formula, and the fitting formula is integrated to obtain the absorption area of ​​the first gas type to be measured.

[0009] By adopting the above technical solution, the filter is tested by an infrared spectrophotometer to obtain its infrared absorption spectrum from high wavenumber to low wavenumber, and the central wavelength and half-peak width range of the filter are determined accordingly. This step provides an accurate reference range for the subsequent comparison with the infrared spectrum of the gas, which helps to accurately identify the absorption peak of the first gas type to be measured within the transmission range of the filter. The identified absorption peak is fitted to obtain a fitting formula, and the formula is integrated to obtain the absorption area of ​​the first gas type to be measured. This mathematical processing method can effectively reduce the impact of noise and interference on the measurement results and improve the accuracy and reliability of data processing. Since the absorption characteristics of different gases in the infrared spectrum are different, and the transmission characteristics of the filter may also vary due to manufacturing differences. Therefore, by comparing the infrared spectrum and the infrared absorption spectrum of the filter, and determining the target absorption area according to the comparison results, the detection system can have a stronger adaptability to different gas types and filters. By accurately determining the target absorption area of ​​the first gas type to be measured, an accurate benchmark can be provided for the subsequent detection process. This helps optimize the sensitivity of the detection system, allowing the system to respond more accurately to changes in gas concentration and improve the accuracy and reliability of detection. Accurate determination of the target absorption area provides an important basis for subsequent gas type normalization and proportional coefficient calculation. These calculation steps are crucial for determining the optimal sample cell length for other gas types and establishing a standard curve model, thereby ensuring the scientificity and accuracy of the entire detection process.

[0010] Optionally, comparing the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of ​​the first gas type to be measured further includes: When there are multiple absorption peaks in the infrared spectrum, using an edge detection algorithm to identify the boundaries of the multiple absorption peaks in the infrared spectrum; Dividing the infrared spectrum into a plurality of regions according to the boundaries, each region corresponding to one or more absorption peaks; The values ​​of the pixels in the target area are extracted, and the values ​​are integrated to obtain a sub-area of ​​the target area, and a plurality of sub-areas are added together to obtain the target absorption area, wherein the target area is any one of the plurality of areas.

[0011] By adopting the above technical solution, when there are multiple absorption peaks in the infrared spectrum, directly integrating the entire spectral area may introduce unnecessary errors. By using the edge detection algorithm to identify the boundaries of each absorption peak and dividing the spectrum into multiple regions corresponding to single or multiple absorption peaks, complex spectral data can be processed more accurately. This method improves the system's ability to resolve complex spectra. After dividing multiple regions, the sub-areas of each region can be obtained by extracting the values ​​of the pixel points in the target region and integrating them. These sub-areas represent the absorption intensity of infrared light by the corresponding absorption peak. Adding multiple sub-areas to obtain the target absorption area can more accurately reflect the total absorption intensity of the first gas type to be measured in the infrared spectrum. This method reduces errors caused by spectral overlap or noise interference. By dividing the region and calculating the sub-areas separately, the system can selectively focus on certain specific absorption peaks or regions as needed. This flexibility enables the system to adapt to the detection needs of different types and concentrations of gases, improving the adaptability and application range of the system.

[0012] Optionally, determining a first optimal sample pool length for the first gas type to be measured includes: Filling a first sample pool with a standard gas corresponding to the first gas type to be tested, gradually adjusting the length of the sample pool, measuring and recording the absorbance value corresponding to each length, the first sample pool being any one of the plurality of sample pools; The absorbance values ​​corresponding to different sample cell lengths are plotted into a curve graph, and the first optimal sample cell length is determined according to the maximum value or the maximum change rate in the curve graph.

[0013] By adopting the above technical solution, gradually adjusting the length of the sample cell and measuring the corresponding absorbance value, the trend of the absorbance changing with the length of the sample cell can be observed. Selecting the point with the maximum absorbance value or the largest rate of change as the optimal sample cell length can ensure that the gas absorbs infrared light most significantly at this length, thereby improving the sensitivity of the detection. Different gas types and concentrations have different absorption characteristics of infrared light, so the optimal sample cell length will also be different. By experimentally determining the optimal sample cell length for each type of gas to be tested, the detection conditions can be optimized for specific gas types and concentrations, making the detection results more accurate and reliable. By drawing a curve of absorbance values ​​corresponding to different sample cell lengths, the law of absorbance changing with the length of the sample cell can be intuitively observed. This method not only simplifies the experimental process, but also improves the experimental efficiency, allowing researchers to quickly and accurately find the optimal sample cell length. Determining the optimal sample cell length is an important basis for establishing a standard curve model and conducting subsequent detection and analysis. By optimizing the sample cell length, the accuracy and reliability of the standard curve model can be ensured, thereby providing strong support for subsequent gas concentration detection and data analysis.

[0014] Optionally, determining the second optimal sample pool length for the other gas species according to the proportionality coefficient and the first optimal sample pool length includes: The product of the proportionality coefficient and the first optimal sample pool length is calculated to obtain a total length, and a difference between the total length and the first optimal sample pool length is calculated, and the difference is used as the second optimal sample pool length.

[0015] By adopting the above technical solution, the product of the proportional coefficient and the first optimal sample cell length is directly calculated, and the difference between the proportional coefficient and the first optimal sample cell length is calculated, so that the second optimal sample cell length of other gas types can be quickly obtained. This method avoids complex iterative calculations or optimization algorithms, simplifies the calculation process, and improves the calculation efficiency. Since the proportional coefficient is determined based on the absorption area ratio between different gas types, the second optimal sample cell length determined by this method can maintain a detection sensitivity similar to the first optimal sample cell length to a certain extent. This helps to ensure that the detection sensitivity of different gas types in the entire detection system is relatively consistent, and improves the reliability of the detection results. Different gas types have different absorption characteristics in the infrared spectrum, so their optimal sample cell lengths will also be different. By introducing the proportional coefficient and adjusting it according to the first optimal sample cell length, it can flexibly adapt to the characteristics of different gas types, so that the detection system can detect various gases more accurately. Determining the second optimal sample cell length is an important step in establishing a standard curve model for multi-type gas detection and conducting subsequent detection and analysis. The sample cell length determined by this method can ensure the accuracy and reliability of the standard curve model, thereby providing strong support for subsequent gas concentration detection and data analysis.

[0016] Optionally, the step of passing the total gas species to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas species to be tested includes: Control the opening and closing of different control valves to pass the third gas type to be tested into the corresponding sample pool, establish an absorbance curve according to the known concentration points of the standard gas of the third gas type to be tested and the absorbance values ​​corresponding to the known concentration points, and use the least squares method to fit the absorbance curve to obtain a standard curve model, the third gas type to be tested is any one of the total gas types to be tested.

[0017] By adopting the above technical solution and controlling the opening and closing of different control valves, a specific type of gas to be tested can be accurately introduced into the corresponding sample pool, avoiding cross-interference between gases. At the same time, by establishing an absorbance curve based on a standard gas of known concentration and fitting it using the least squares method, a more accurate and reliable standard curve model can be obtained. This helps to improve the accuracy of subsequent gas concentration detection. The design of the segmented sample pool allows multiple gases to be detected simultaneously or separately, and each gas has its own independent sample pool and detection channel. This design enhances the flexibility of the system, allowing the system to be configured and adjusted according to different detection requirements. By adjusting the length of the sample pool to match the optimal detection conditions for different types of gases, resource utilization can be optimized. In the limited sample pool space, the accuracy and sensitivity of the detection are improved as much as possible, reducing the detection cost. In the detection of multiple types of gases, it is often necessary to analyze multiple components at the same time. The above method can establish an independent standard curve model for each type of gas to be tested, providing a basis for subsequent multi-component gas analysis. By detecting multiple gases at the same time and applying their respective standard curve models, accurate analysis of complex gas mixtures can be achieved. As the detection requirements increase or change, the system can easily add new sample pools and detection channels to expand the detection capabilities. This scalability enables the system to adapt to different application scenarios and detection requirements.

[0018] Optionally, controlling the opening and closing of different control valves to pass the third gas type to be tested into the corresponding sample pool includes: When the third gas type to be measured corresponds to the first sample pool, the first control valve and the second control valve are controlled to be opened, and the third control valve is controlled to be closed, the first control valve is arranged between the main pipeline and the inlet of the first sample pool, the second control valve is arranged between the main pipeline and the outlet of the first sample pool, the third control valve is arranged between the outlet of the first sample pool and the inlet of the second sample pool, and the distance between the first sample pool and the optical filter is closer than the distance between the second sample pool and the optical filter; When the third gas type to be tested corresponds to the second sample pool, the first control valve, the third control valve and the fourth control valve are controlled to open, and the second control valve is controlled to close. The fourth control valve is arranged between the outlet of the second sample pool and the main pipeline.

[0019] By adopting the above technical solution, by precisely controlling the opening and closing state of each control valve, it can be ensured that only the target gas type is passed into the corresponding sample cell, thereby avoiding cross-contamination between different gases. This is particularly important for application scenarios that require high-purity gas detection. Since each gas is detected in its corresponding, optimized sample cell, the detection error caused by sample cell length mismatch or gas mixing can be minimized. This helps to improve the accuracy and reliability of detection. Since each sample cell is optimized for a specific gas type, limited sample cell resources can be used more efficiently. This helps to reduce detection costs and improve the overall performance of the system. By precisely controlling the flow direction and flow rate of the gas, the system can reduce the safety risks caused by gas leakage or misoperation to a certain extent. This is particularly important for application scenarios involving flammable, explosive or toxic gases.

[0020] In a second aspect of the present application, a system for detecting multiple types of gases is provided, including an analysis module, a ratio module, an adjustment module, and an execution module, wherein: an analysis module, configured to perform infrared spectroscopy analysis on a standard sample of a first gas type to be measured to obtain an infrared spectrum, and compare the infrared spectrum with an infrared absorption spectrum of the filter to determine a target absorption area of ​​the first gas type to be measured, wherein the first gas type to be measured is any one of the total gas types to be measured; a proportional module, configured to normalize the absorption areas of other gas types in the total gas types to be measured according to the target absorption area to obtain a proportional coefficient between the other gas types and the first gas type to be measured, wherein the proportional coefficient is greater than a preset value; an adjustment module, configured to determine a first optimal sample pool length for the first gas type to be tested, determine a second optimal sample pool length for the other gas types according to the proportionality coefficient and the first optimal sample pool length, adjust the segmented sample pool according to the first optimal sample pool length and the second optimal sample pool length, and pass the total gas types to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas type to be tested; The execution module is configured to adjust the gas flow path according to the second gas type to be tested to input the gas to be tested into the corresponding sample pool when receiving the second gas type to be tested input by the user, and calculate and display the real-time concentration of the gas to be tested through the standard curve model.

[0021] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.

[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The target absorption area of ​​each gas type to be tested is determined by infrared spectroscopy analysis, and the length of the sample cell is optimized and adjusted accordingly, which can ensure that each gas is tested under the best conditions, thereby improving the precision and accuracy of the detection; 2. Supports the detection of multiple types of gases. By adjusting the gas flow path and the length of the sample pool, it can flexibly adapt to different detection needs. This flexibility enables the system to be widely used in various gas detection scenarios; 3. The proportional coefficients between different gas types are obtained through normalization processing, and the optimal sample pool lengths are determined accordingly, which can optimize resource utilization and avoid unnecessary waste. At the same time, the design of the segmented sample pool also improves space utilization; 4. It supports users to input the type of gas to be tested, and automatically adjusts the gas flow path and sample pool according to the input, making user operation more convenient. At the same time, the real-time concentration display function also provides an intuitive display of test results, enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a flow chart of a method for detecting multiple types of gases disclosed in an embodiment of the present application; Figure 2 It is a schematic diagram of the structure of the segmented sample pool disclosed in the embodiment of the present application; Figure 3 It is a module schematic diagram of a system for detecting multiple types of gases disclosed in an embodiment of the present application; Figure 4 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.

[0025] Explanation of the reference numerals: 301, analysis module; 302, ratio module; 303, adjustment module; 304, execution module; 401, processor; 402, communication bus; 403, user interface; 404, network interface; 405, memory. DETAILED DESCRIPTION

[0026] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0027] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0028] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0029] This embodiment discloses a method for detecting multiple types of gases, which is applied to a segmented sample pool, wherein the segmented sample pool includes a filter and multiple sample pools. Figure 1 is a flow chart of a method for detecting multiple types of gases disclosed in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps: S110, performing infrared spectroscopy analysis on a standard sample of a first gas type to be measured to obtain an infrared spectrum, and comparing the infrared spectrum with an infrared absorption spectrum of the filter to determine a target absorption area of ​​the first gas type to be measured, wherein the first gas type to be measured is any one of the total gas types to be measured; Figure 2 Schematic diagram of the structure of the segmented sample pool disclosed in the embodiment of the present application, such as Figure 2 As shown, the segmented sample pool includes an adjustable light source 201, a first sample pool 202, a second sample pool 203, a third sample pool 204, a filter 205, a gray filter 206, a detector 207, a first control valve 208, a second control valve 209, a third control valve 210, a fourth control valve 211, a fifth control valve 212, and a sixth control valve 213. Figure 2 The embodiments of the present application are described.

[0030] Use an infrared spectrometer to scan the standard sample and record its infrared spectrum. The infrared spectrum shows the absorption of the sample under different wavelengths of infrared light, that is, the position, intensity and shape of the absorption peak. This information is the basis for subsequent comparison and identification. The filter is a device used to selectively transmit or absorb light of a specific wavelength. Compare the infrared spectrum of the standard sample with the infrared absorption spectrum of the filter. The purpose of the comparison is to find the characteristic absorption peak corresponding to the first gas type to be tested in the spectrum of the standard sample, that is, the "target absorption area". The size of this area can reflect the concentration or amount of gas in the sample. Through comparison, the specific position and area of ​​the absorption peak corresponding to the target gas type in the spectrum of the standard sample can be determined. This area will serve as a benchmark for subsequent measurement and quantitative analysis. When the target absorption area of ​​the standard sample is determined, this information can be applied to actual gas detection. By measuring the infrared absorption spectrum of the sample to be tested within the same wavelength range and finding the corresponding absorption peak area, the concentration or amount of the first gas type to be tested in the sample to be tested can be calculated.

[0031] Optionally, comparing the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of ​​the first gas type to be measured includes: Using an infrared spectrophotometer to test the filter to obtain an infrared absorption spectrum from high wavenumber to low wavenumber, and obtaining the central wavelength and half-peak width range of the filter according to the infrared absorption spectrum; The infrared spectrum is compared with the central wavelength and the half-peak width range to determine the absorption peak of the first gas type to be measured, the absorption peak is fitted to obtain a fitting formula, and the fitting formula is integrated to obtain the absorption area of ​​the first gas type to be measured.

[0032] The filter is tested using a high-precision infrared spectrophotometer. The infrared spectrophotometer can measure the transmittance or absorbance of the sample under different wavelengths of infrared light to generate an infrared spectrum. During the test, the infrared spectrophotometer scans the entire infrared spectrum range from high wavenumber (short wavelength) to low wavenumber (long wavelength), records the absorption of the filter at each wavelength point, and finally generates an infrared absorption spectrum from high wavenumber to low wavenumber. In the infrared absorption spectrum, the filter usually has one or more obvious absorption peaks. The center position (i.e., center wavelength) and width (half-peak width) of these absorption peaks are important parameters for identifying the characteristics of the filter. By analyzing the spectrum, the center wavelength of the filter and the corresponding half-peak width range can be determined. Compare the infrared spectrum of the gas to be tested with the infrared absorption spectrum of the filter. The purpose of this comparison is to find an absorption peak in the spectrum of the gas to be tested that matches the center wavelength and half-peak width of the filter. This absorption peak represents the characteristic absorption of the first gas type to be tested in the infrared spectrum. By comparison, the absorption peak corresponding to the first gas type to be measured in the gas spectrum to be measured can be determined. The position, shape and intensity of this absorption peak and other information will be used for subsequent quantitative analysis. In order to more accurately describe the shape and size of the absorption peak, it is usually necessary to mathematically fit the absorption peak. This can be achieved by selecting a suitable fitting function (such as Gaussian function, Lorentz function, etc.). During the fitting process, the parameters of the fitting function (such as peak position, peak intensity, half-peak width, etc.) will be adjusted to make the fitting curve as consistent as possible with the actual absorption peak shape. After the fitting is completed, a fitting formula describing the shape of the absorption peak will be obtained. This formula can be used for subsequent calculations and analysis. By integrating the fitting formula, the absorption area of ​​the first gas type to be measured in the infrared spectrum can be calculated. There is a certain relationship between this absorption area and the gas concentration, so it can be used to quantitatively analyze the concentration of the first gas type to be measured in the gas to be measured.

[0033] By testing the filter with an infrared spectrophotometer, a complete infrared absorption spectrum from high wavenumber to low wavenumber can be obtained. This not only reveals the absorption characteristics of the filter at different wavelengths, but also allows the precise determination of its central wavelength (i.e. the wavelength with the strongest absorption) and half-peak width range (i.e. the wavelength range corresponding to half the absorption intensity at the central wavelength). This information is crucial for subsequent spectral comparison. By comparing the infrared spectrum of the gas to be tested with the central wavelength and half-peak width range of the filter, the absorption peak of the gas to be tested in the spectrum can be more accurately located. This method reduces misjudgment caused by factors such as spectral noise and instrument errors, and improves the accuracy and reliability of the comparison. After fitting the located absorption peak and obtaining the fitting formula, the fitting formula is integrated to obtain the absorption area of ​​the gas to be tested under the absorption peak. This absorption area is proportional to the concentration or amount of the gas, so it can be used for quantitative analysis. This method not only provides qualitative information about the presence of the gas, but also provides quantitative information about its concentration. The entire analysis process can be automatically controlled by computer programs, including the steps of spectral data collection, processing, comparison and quantitative analysis. This not only improves the analysis efficiency, but also reduces human errors and promotes the intelligent development of analysis technology.

[0034] Optionally, comparing the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of ​​the first gas type to be measured further includes: When there are multiple absorption peaks in the infrared spectrum, using an edge detection algorithm to identify the boundaries of the multiple absorption peaks in the infrared spectrum; Dividing the infrared spectrum into a plurality of regions according to the boundaries, each region corresponding to one or more absorption peaks; The values ​​of the pixels in the target area are extracted, and the values ​​are integrated to obtain a sub-area of ​​the target area, and a plurality of sub-areas are added together to obtain the target absorption area, wherein the target area is any one of the plurality of areas.

[0035] In infrared spectra, absorption peaks are usually shown as local maximum areas on the spectrum curve, with the spectrum intensity gradually decreasing on both sides. Edge detection algorithms (such as Canny edge detector, Sobel operator, etc.) can identify points in the image where the brightness or color changes significantly, that is, edges. Here, the algorithm is applied to the spectrum to identify the starting and ending boundary points of each absorption peak. These boundary points divide the spectrum into different regions, each corresponding to one or more absorption peaks. According to the boundary points identified by the edge detection algorithm, the infrared spectrum is divided into multiple regions. Each region contains one or more complete absorption peaks and the spectral background between them. This division helps to analyze specific absorption peaks in subsequent steps. After determining the target area (that is, the area containing the absorption peak of the gas type to be tested), it is necessary to extract the values ​​of all pixels in the area. These values ​​represent the intensity or transmittance of the spectrum at the corresponding wavelength. Since the spectrum is usually digitized, each pixel corresponds to a specific value. In order to quantify the absorption peak area in the target area, it is necessary to integrate the values ​​of all pixels in the area. The integration operation can be regarded as calculating the area enclosed by the spectral curve and the baseline (usually the lowest point of the spectrum or a set reference line) in the region. This area reflects the intensity and width of the absorption peak and is an important basis for quantifying gas concentration. If the target area contains multiple absorption peaks (for example, due to the complexity of molecular vibration modes or the presence of isotope effects in the gas), these absorption peaks need to be integrated separately, and the multiple sub-areas obtained are added together to obtain the final target absorption area. This area represents the overall contribution of all relevant absorption peaks in the entire target area to the spectral intensity.

[0036] When there are multiple absorption peaks in the infrared spectrum, the traditional comparison method may be difficult to accurately distinguish the components corresponding to each peak. By identifying the boundaries of each absorption peak through the edge detection algorithm, the complex spectrum can be decomposed into multiple clear areas, each of which corresponds to one or more absorption peaks, thereby improving the ability to analyze complex spectra. After determining the boundaries of each absorption peak, the specific area of ​​gas absorption in the area can be obtained by extracting the values ​​of the pixels in the target area and integrating them. This method avoids the errors that may be caused by integrating the entire spectrum as a whole and improves the accuracy of absorption area calculation. Since the area corresponding to each absorption peak can be accurately identified and calculated, this method supports the simultaneous analysis of multiple components in the mixed gas. By calculating the absorption area of ​​each component separately, their relative concentration or content in the mixed gas can be further calculated. The entire processing process, including edge detection, area division, pixel value extraction and integration, can be automatically completed by computer programs without human intervention. This greatly improves the automation of the analysis, reduces human errors, and improves the efficiency of the analysis. During the processing, the target area can be selected for integral calculation as needed. This means that users can flexibly choose to focus on specific absorption peaks or regions according to experimental objectives or data analysis requirements, thereby obtaining more accurate and useful results.

[0037] S120, normalizing the absorption areas of other gas types in the total gas types to be measured according to the target absorption area to obtain a proportional coefficient between the other gas types and the first gas type to be measured, wherein the proportional coefficient is greater than a preset value; Take the target absorption area of ​​the first gas type to be tested as a benchmark. This benchmark represents the absorption intensity or area of ​​the first gas type to be tested detected by the infrared spectrometer under the detection conditions. Measure the absorption areas of all other gas types in the total gas types to be tested. These areas also represent their respective absorption intensities in the infrared spectrum. Divide the absorption area of ​​each other gas type by the target absorption area of ​​the first gas type to be tested to obtain a series of proportional coefficients. These proportional coefficients reflect the relative absorption intensity or area between other gas types and the first gas type to be tested under the same detection conditions. According to the need to adjust the length of the sample cell later, a preset value can be set as a threshold. For example, the preset value can be one. When the proportional coefficient is less than one, the first gas type to be tested can be adjusted.

[0038] S130, determining a first optimal sample pool length for the first gas type to be tested, determining a second optimal sample pool length for the other gas types according to the proportionality coefficient and the first optimal sample pool length, adjusting the segmented sample pool according to the first optimal sample pool length and the second optimal sample pool length, and passing the total gas types to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas type to be tested; Determine the first optimal cell length for the first gas type to be tested: This step is usually based on experimental data or theoretical calculations, and the purpose is to find the cell length that can produce the best detection signal (such as the maximum absorption peak intensity) for the first gas type to be tested. This length may vary depending on factors such as gas type, detector sensitivity, light source intensity, etc. After determining the optimal cell length for the first gas type to be tested, the proportionality coefficient calculated previously can be used to deduce the cell length required for other gas types to achieve similar detection results under the same detection conditions. This length is called the second optimal cell length, which may vary depending on the gas type. A segmented cell is a device designed with multiple independently adjustable cell segments, allowing the user to adjust the length of different segments as needed. In this step, based on the first and second optimal cell lengths calculated previously, the segments of the segmented cell are precisely adjusted to ensure that each gas type to be tested can be detected under optimal conditions. After the segmented cell is adjusted, each gas to be tested is passed into the cell, and the detection signal (such as the absorption peak intensity) of each gas type under different conditions is recorded, and a standard curve model for each gas type to be tested can be drawn. These models describe the quantitative relationship between gas concentration and detection signal, and are an important basis for subsequent quantitative analysis and comparison.

[0039] Optionally, determining a first optimal sample pool length for the first gas type to be measured includes: Filling a first sample pool with a standard gas corresponding to the first gas type to be tested, gradually adjusting the length of the sample pool, measuring and recording the absorbance value corresponding to each length, the first sample pool being any one of the plurality of sample pools; The absorbance values ​​corresponding to different sample cell lengths are plotted into a curve graph, and the first optimal sample cell length is determined according to the maximum value or the maximum change rate in the curve graph.

[0040] Standard gas is a gas of known concentration and composition, which is used to calibrate and verify the accuracy and reliability of the detection system. Fill the first sample cell with standard gas and ensure that the gas is evenly distributed. Gradually adjust the length of the sample cell, and use an infrared spectrometer or other appropriate detection equipment to measure and record the absorbance value at the corresponding length after each adjustment. The absorbance value is an indicator of the degree of infrared light absorption by the gas, which is related to the gas concentration and the length of the sample cell. Plot the absorbance values ​​corresponding to different sample cell lengths into a curve graph. This curve graph reflects the trend of absorbance values ​​changing with the length of the sample cell. Analyze the curve graph and find the maximum value point or the maximum change rate point. Both points may represent the first optimal sample cell length, but it depends on the purpose of the experiment and the detection requirements. The maximum value point usually indicates that at this length, the gas absorbs the infrared light to the maximum, which may produce the strongest detection signal. The maximum change rate point may indicate that near this length, the absorbance value is most sensitive to the change of the sample cell length, which is conducive to improving the resolution or dynamic range of the detection. According to the purpose of the experiment and the detection requirements, select the most appropriate point as the first optimal sample cell length. After determining the first optimal sample pool length, further experimental verification may be required to ensure that the detection performance at this length meets expectations. If necessary, the detection system can also be optimized based on the experimental results, such as adjusting light source intensity, detector sensitivity and other parameters to further improve the detection performance.

[0041] By gradually adjusting the length of the sample cell and measuring the corresponding absorbance value, the sample cell length that makes the absorbance of the first gas type to be tested reach the maximum or the maximum rate of change can be accurately found. This length is considered to be the optimal sample cell length because it can maximize the detection signal, thereby improving the sensitivity of the detection. Different gas types may exhibit different absorption characteristics under the same detection conditions, so the optimal sample cell length will also be different. By determining the optimal sample cell length for each gas type to be tested separately, the conditions of the entire detection system can be optimized so that each gas can be detected under its optimal conditions, thereby improving the accuracy and reliability of the detection. By drawing a curve of absorbance values ​​corresponding to different sample cell lengths and determining the optimal sample cell length based on the maximum value or maximum rate of change in the curve, the error caused by human judgment can be reduced. This method is more objective and scientific, and can ensure the accuracy and repeatability of the results. Determining the optimal sample cell length is one of the important steps in constructing a standard curve model. By performing detection under optimal conditions, more accurate and reliable detection data can be obtained, and a more accurate standard curve model can be constructed. This is of great significance for subsequent quantitative analysis and comparison.

[0042] Optionally, determining the second optimal sample pool length for the other gas species according to the proportionality coefficient and the first optimal sample pool length includes: The product of the proportionality coefficient and the first optimal sample pool length is calculated to obtain a total length, and a difference between the total length and the first optimal sample pool length is calculated, and the difference is used as the second optimal sample pool length.

[0043] In the present application, three types of gases to be tested (type A, type B and type C) are used as examples. Assume that the optimal sample pool length L1 of type A standard gas is determined to be 10 cm, which is the result obtained after testing it and observing the absorbance curve. The ratio coefficient S of type B gas to type A gas is used. B / S A =1.5 to determine the optimal sample cell length for Class B gas. Specifically, this total length is the product of L1 and the proportionality coefficient, that is, 10cm*1.5=15cm. However, since this is a segmented sample cell and the first segment (L1) has been determined to be 10cm, the length of the second segment L2 is the difference between the total length and L1, that is, 15cm-10cm=5cm. In this way, the total length of L1 and L2 is 15cm, which corresponds to the detection of Class B gas. Similarly, the optimal sample cell length for Class C gas is also determined by its proportionality coefficient S C / S A =1.9. However, since the detection of Class C gas requires further extension of the sample pool on the basis of Class B gas, and the second section has been reserved for Class B gas, the detection length of Class C gas is to add one section on the basis of L1 and L2. The total length calculated according to the proportional coefficient is 10cm*1.9=19cm, but since the first two sections (L1 and L2) have occupied 15cm, the length of the third section L3 is 19cm-15cm=4cm. In this way, the total length of L1, L2 and L3 is 19cm, which corresponds to the detection of Class C gas.

[0044] By calculating the optimal sample cell length for each gas type separately, it is possible to ensure that each gas can achieve the best absorption effect during detection, thereby improving the sensitivity of detection. This is because different gas types may have different absorption characteristics under the same conditions, so different sample cell lengths are required to maximize their absorption signals. Using the proportionality coefficient to determine the sample cell length for other gases can ensure the consistency of detection conditions and reduce errors caused by improper sample cell length. This method is based on scientific calculations and experimental data, so it has high accuracy and reliability. In the design of the segmented sample cell, by assigning different sample cell lengths to each gas, it can flexibly adapt to the detection needs of multi-component gases. This method is not only applicable to gas combinations with known proportionality coefficients, but can also be further verified and optimized through experiments. The proportional relationship between different gas types.

[0045] Optionally, the step of passing the total gas species to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas species to be tested includes: Control the opening and closing of different control valves to pass the third gas type to be tested into the corresponding sample pool, establish an absorbance curve according to the known concentration points of the standard gas of the third gas type to be tested and the absorbance values ​​corresponding to the known concentration points, and use the least squares method to fit the absorbance curve to obtain a standard curve model, the third gas type to be tested is any one of the total gas types to be tested.

[0046] The design of the segmented sample cell allows specific types of gases to be accurately introduced into the corresponding sample cell by controlling different control valves. This is the key to achieving simultaneous detection of multi-component gases. In this process, the opening and closing time and sequence of each control valve need to be accurately controlled to ensure that each gas to be tested can enter its corresponding sample cell segment individually and accurately. In order to establish an accurate standard curve model, standard gases with known concentrations are required. These standard gases have known and accurate concentration values ​​and are the basis for establishing a standard curve. For each type of gas to be tested (such as the third type of gas to be tested), a series of standard gas samples with different concentrations need to be prepared. Each concentration of standard gas sample is passed into the corresponding sample cell in turn, and its absorbance value is measured using a detection device such as a spectrometer. The absorbance value corresponding to each concentration point is recorded, and these data points are plotted into an absorbance curve. This curve reflects the relationship between gas concentration and absorbance. The absorbance curve is fitted using mathematical methods (such as the least squares method) to obtain a smooth and accurate curve model, namely the standard curve model. The standard curve model is the basis for subsequent detection of unknown concentration gases. By measuring the absorbance value of the unknown concentration gas and comparing it with the standard curve model, the concentration value of the gas can be calculated. For each gas in the total gas types to be tested, the above steps need to be repeated to establish its corresponding standard curve model.

[0047] By controlling the opening and closing of different control valves, each type of gas to be tested can be accurately passed into its corresponding sample pool. This avoids mutual interference between gases and ensures that accurate and independent absorbance data can be obtained for each gas during detection. Based on these accurate data, the established standard curve model will have higher accuracy, thereby improving the accuracy of subsequent detection. Fitting the absorbance curve using the least squares method can obtain a smoother and more accurate standard curve model. This method can reduce random errors and noise in the data and improve the accuracy and reliability of data processing. At the same time, the standard curve model can also be used in subsequent quantitative analysis of gas concentrations to provide a reliable basis for the test results. By establishing an independent standard curve model for each type of gas to be tested, this method supports the simultaneous analysis of multi-component gases. This is particularly important for gas detection in complex gas mixtures or environmental samples, and can provide more comprehensive and accurate test results. The entire detection process can be achieved through the automatic opening and closing of the control valve and the automated processing of the data processing software, reducing the possibility of manual intervention and errors. This improves the automation of the detection and reduces the difficulty and cost of operation.

[0048] Optionally, controlling the opening and closing of different control valves to pass the third gas type to be tested into the corresponding sample pool includes: When the third gas type to be measured corresponds to the first sample pool, the first control valve and the second control valve are controlled to be opened, and the third control valve is controlled to be closed, the first control valve is arranged between the main pipeline and the inlet of the first sample pool, the second control valve is arranged between the main pipeline and the outlet of the first sample pool, the third control valve is arranged between the outlet of the first sample pool and the inlet of the second sample pool, and the distance between the first sample pool and the optical filter is closer than the distance between the second sample pool and the optical filter; When the third gas type to be tested corresponds to the second sample pool, the first control valve, the third control valve and the fourth control valve are controlled to open, and the second control valve is controlled to close. The fourth control valve is arranged between the outlet of the second sample pool and the main pipeline.

[0049] The first sample pool 202, the second sample pool 203 and the third sample pool 204 are arranged in sequence according to the distance from the adjustable light source 201 from near to far, the first control valve 208 is arranged between the main pipeline L and the inlet of the first sample pool 202, the second control valve 209 is arranged between the main pipeline L and the outlet of the first sample pool 202, the third control valve 210 is arranged between the outlet of the first sample pool 202 and the inlet of the second sample pool 203, the fourth control valve 211 is arranged between the outlet of the second sample pool 203 and the main pipeline L, the fifth control valve 212 is arranged between the outlet of the second sample pool 203 and the inlet of the third sample pool 204, and the sixth control valve 213 is arranged between the outlet of the third sample pool 204 and the main pipeline L.

[0050] First, air is used for gas washing. The microcontroller controls the first control valve 208, the third control valve 210, the fifth control valve 212, and the sixth control valve 213 to be opened, and the second control valve 209 and the fourth control valve 211 to be closed, so as to ensure that the air enters the first sample pool 202, the second sample pool 203, and the third sample pool 204 under the drive of the air pump. When testing Class A gas, that is, inputting Class A gas into the first sample pool 202, the first control valve 208 and the second control valve 209 are controlled to be opened, and the third control valve 210 is closed, and Class A gas enters the L1 sample pool, that is, the first sample pool 202 under the drive of the air pump. When testing Class B gas, that is, inputting Class B gas into the first sample pool 202 and the second sample pool 203, the first control valve 208, the third control valve 210 and the fourth control valve 211 are controlled to be opened, and the second control valve 209 and the fifth control valve 212 are closed, and Class B gas enters the first sample pool 202 and the second sample pool 203 under the drive of the air pump. When testing Class C gas, that is, inputting Class C gas into the first sample pool 202, the second sample pool 203 and the third sample pool 204, the first control valve 208, the third control valve 210, the fifth control valve 212 and the sixth control valve 213 are controlled to be opened, and the second control valve 209 and the fourth control valve 211 are closed, and Class C gas enters the first sample pool 202, the second sample pool 203 and the third sample pool 204 under the drive of the air pump.

[0051] S140. When receiving a second gas type to be measured input by the user, adjusting the gas flow path according to the second gas type to be measured to input the gas to be measured into the corresponding sample pool, and calculating and displaying the real-time concentration of the gas to be measured through the standard curve model.

[0052] The user selects the type of the second gas to be measured through a display screen or other input device (such as a touch screen, a keypad, etc.). The system identifies and confirms the type of gas selected by the user and prepares for subsequent measurement operations. After receiving the command to change the type of gas, the microcontroller first checks the current gas flow path setting. The corresponding valve opening and closing states are adjusted according to the second gas to be measured to change the gas flow path and ensure that the gas can be smoothly and accurately guided to the sample pool that matches the gas type. This may involve the coordinated operation of multiple valves. After the gas flow path adjustment is completed, the microcontroller controls the gas pump to start to generate the necessary pressure difference or flow to suck the gas to be measured from the gas source and send it into the sample pool. The working state of the gas pump (such as speed, flow, etc.) may need to be adjusted according to the characteristics of the gas to be measured and the requirements of the sample pool. After the gas to be measured enters the sample pool, it interacts with the sensitive element in the detector to generate a measurable signal. The detector converts the detected signal into an electrical signal or other processable form and transmits it to the signal processing unit for further analysis. The signal processing unit processes the signal output by the detector using a preset standard curve model. By matching or interpolating the signal output by the detector with the standard curve model, the real-time concentration of the current gas to be measured can be obtained. The calculated real-time concentration data will be transmitted to the display screen or other display devices. The user can intuitively see the real-time concentration value of the second gas to be measured on the display screen, as well as possible other related information (such as measurement time, measurement unit, etc.).

[0053] This embodiment also discloses a system for detecting multiple types of gases. Figure 3 is a schematic diagram of a module of a system for detecting multiple types of gases disclosed in an embodiment of the present application, such as Figure 3 As shown, the system includes an analysis module 301, a ratio module 302, an adjustment module 303 and an execution module 304, wherein: The analysis module 301 is configured to perform infrared spectrum analysis on a standard sample of a first gas type to be measured to obtain an infrared spectrum graph, and compare the infrared spectrum graph with the infrared absorption spectrum graph of the filter to determine a target absorption area of ​​the first gas type to be measured, wherein the first gas type to be measured is any one of the total gas types to be measured; A ratio module 302, configured to normalize the absorption area of ​​other gas types in the total gas types to be measured according to the target absorption area to obtain a ratio coefficient between the other gas types and the first gas type to be measured, wherein the ratio coefficient is greater than a preset value; An adjustment module 303 is configured to determine a first optimal sample pool length for the first gas type to be tested, determine a second optimal sample pool length for the other gas types according to the proportionality coefficient and the first optimal sample pool length, adjust the segmented sample pool according to the first optimal sample pool length and the second optimal sample pool length, and pass the total gas types to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas type to be tested; The execution module 304 is configured to adjust the gas flow path according to the second gas type to be tested to input the gas to be tested into the corresponding sample pool when receiving the second gas type to be tested input by the user, and calculate and display the real-time concentration of the gas to be tested through the standard curve model.

[0054] Optionally, the analysis module 301 is configured to: Using an infrared spectrophotometer to test the filter to obtain an infrared absorption spectrum from high wavenumber to low wavenumber, and obtaining the central wavelength and half-peak width range of the filter according to the infrared absorption spectrum; The infrared spectrum is compared with the central wavelength and the half-peak width range to determine the absorption peak of the first gas type to be measured, the absorption peak is fitted to obtain a fitting formula, and the fitting formula is integrated to obtain the absorption area of ​​the first gas type to be measured.

[0055] Optionally, the analysis module 301 is further configured to: When there are multiple absorption peaks in the infrared spectrum, using an edge detection algorithm to identify the boundaries of the multiple absorption peaks in the infrared spectrum; Dividing the infrared spectrum into a plurality of regions according to the boundaries, each region corresponding to one or more absorption peaks; The values ​​of the pixels in the target area are extracted, and the values ​​are integrated to obtain a sub-area of ​​the target area, and a plurality of sub-areas are added together to obtain the target absorption area, wherein the target area is any one of the plurality of areas.

[0056] Optionally, the adjustment module 303 is configured to: Filling a first sample pool with a standard gas corresponding to the first gas type to be tested, gradually adjusting the length of the sample pool, measuring and recording the absorbance value corresponding to each length, the first sample pool being any one of the plurality of sample pools; The absorbance values ​​corresponding to different sample cell lengths are plotted into a curve graph, and the first optimal sample cell length is determined according to the maximum value or the maximum change rate in the curve graph.

[0057] Optionally, the adjustment module 303 is configured to: The product of the proportionality coefficient and the first optimal sample pool length is calculated to obtain a total length, and a difference between the total length and the first optimal sample pool length is calculated, and the difference is used as the second optimal sample pool length.

[0058] Optionally, the adjustment module 303 is further configured to: Control the opening and closing of different control valves to pass the third gas type to be tested into the corresponding sample pool, establish an absorbance curve according to the known concentration points of the standard gas of the third gas type to be tested and the absorbance values ​​corresponding to the known concentration points, and use the least squares method to fit the absorbance curve to obtain a standard curve model, the third gas type to be tested is any one of the total gas types to be tested.

[0059] Optionally, the adjustment module 303 is further configured to: When the third gas type to be measured corresponds to the first sample pool, the first control valve and the second control valve are controlled to be opened, and the third control valve is controlled to be closed, the first control valve is arranged between the main pipeline and the inlet of the first sample pool, the second control valve is arranged between the main pipeline and the outlet of the first sample pool, the third control valve is arranged between the outlet of the first sample pool and the inlet of the second sample pool, and the distance between the first sample pool and the optical filter is closer than the distance between the second sample pool and the optical filter; When the third gas type to be tested corresponds to the second sample pool, the first control valve, the third control valve and the fourth control valve are controlled to open, and the second control valve is controlled to close. The fourth control valve is arranged between the outlet of the second sample pool and the main pipeline.

[0060] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0061] This embodiment also discloses an electronic device, referring to Figure 4 The electronic device may include: at least one processor 401 , at least one communication bus 402 , a user interface 403 , a network interface 404 , and at least one memory 405 .

[0062] The communication bus 402 is used to realize the connection and communication between these components.

[0063] The user interface 403 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.

[0064] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0065] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0066] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be optionally at least one storage device located away from the aforementioned processor 401. As Figure 4As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and application programs for various types of gas detection methods.

[0067] exist Figure 4 In the electronic device shown, the user interface 403 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 401 can be used to call the application program storing various gas detection methods in the memory 405. When executed by one or more processors 401, the electronic device executes one or more methods in the above-mentioned embodiments.

[0068] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0069] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0070] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

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

[0072] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0073] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory 405, including a number of instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory 405 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.

[0074] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for detecting multiple types of gases, characterized in that: Applied to a segmented sample pool, the segmented sample pool includes a filter and a plurality of sample pools, the method includes: Performing infrared spectroscopy analysis on a standard sample of a first gas type to be measured to obtain an infrared spectrum, and comparing the infrared spectrum with an infrared absorption spectrum of the filter to determine a target absorption area of ​​the first gas type to be measured, wherein the first gas type to be measured is any one of the total gas types to be measured; Normalizing the absorption areas of other gas types in the total gas types to be measured according to the target absorption area to obtain a proportional coefficient between the other gas types and the first gas type to be measured, wherein the proportional coefficient is greater than a preset value; Determine a first optimal sample pool length for the first gas type to be tested, determine a second optimal sample pool length for the other gas types according to the proportional coefficient and the first optimal sample pool length, adjust the segmented sample pool according to the first optimal sample pool length and the second optimal sample pool length, and pass the total gas types to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas type to be tested; When receiving the second gas type to be measured input by the user, the gas flow path is adjusted according to the second gas type to input the gas to be measured into the corresponding sample pool, and the real-time concentration of the gas to be measured is calculated and displayed through the standard curve model.

2. The method for detecting multiple types of gases according to claim 1, characterized in that: The step of comparing the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of ​​the first gas type to be detected includes: Using an infrared spectrophotometer to test the filter to obtain an infrared absorption spectrum from high wavenumber to low wavenumber, and obtaining the central wavelength and half-peak width range of the filter according to the infrared absorption spectrum; The infrared spectrum is compared with the central wavelength and the half-peak width range to determine the absorption peak of the first gas type to be measured, the absorption peak is fitted to obtain a fitting formula, and the fitting formula is integrated to obtain the absorption area of ​​the first gas type to be measured.

3. The method for detecting multiple types of gases according to claim 1, characterized in that: The step of comparing the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of ​​the first gas type to be detected further includes: When there are multiple absorption peaks in the infrared spectrum, using an edge detection algorithm to identify the boundaries of the multiple absorption peaks in the infrared spectrum; Dividing the infrared spectrum into a plurality of regions according to the boundaries, each region corresponding to one or more absorption peaks; The values ​​of the pixels in the target area are extracted, and the values ​​are integrated to obtain a sub-area of ​​the target area, and a plurality of sub-areas are added together to obtain the target absorption area, wherein the target area is any one of the plurality of areas.

4. The method for detecting multiple types of gases according to claim 1, characterized in that: Determining the first optimal sample pool length of the first gas type to be detected includes: Filling a first sample pool with a standard gas corresponding to the first gas type to be tested, gradually adjusting the length of the sample pool, measuring and recording the absorbance value corresponding to each length, the first sample pool being any one of the plurality of sample pools; The absorbance values ​​corresponding to different sample cell lengths are plotted into a curve graph, and the first optimal sample cell length is determined according to the maximum value or the maximum change rate in the curve graph.

5. The method for detecting multiple types of gases according to claim 1, characterized in that: Determining the second optimal sample cell length of the other gas species according to the proportionality coefficient and the first optimal sample cell length comprises: The product of the proportionality coefficient and the first optimal sample pool length is calculated to obtain a total length, and a difference between the total length and the first optimal sample pool length is calculated, and the difference is used as the second optimal sample pool length.

6. The method for detecting multiple types of gases according to claim 1, characterized in that: The step of passing the total gas species to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas species to be tested comprises: Control the opening and closing of different control valves to pass the third gas type to be tested into the corresponding sample pool, establish an absorbance curve according to the known concentration points of the standard gas of the third gas type to be tested and the absorbance values ​​corresponding to the known concentration points, and use the least squares method to fit the absorbance curve to obtain a standard curve model, the third gas type to be tested is any one of the total gas types to be tested.

7. The method for detecting multiple types of gases according to claim 6, characterized in that: The controlling the opening and closing of different control valves to pass the third gas type to be tested into the corresponding sample pool includes: When the third gas type to be measured corresponds to the first sample pool, the first control valve and the second control valve are controlled to be opened, and the third control valve is controlled to be closed, the first control valve is arranged between the main pipeline and the inlet of the first sample pool, the second control valve is arranged between the main pipeline and the outlet of the first sample pool, the third control valve is arranged between the outlet of the first sample pool and the inlet of the second sample pool, and the distance between the first sample pool and the optical filter is closer than the distance between the second sample pool and the optical filter; When the third gas type to be tested corresponds to the second sample pool, the first control valve, the third control valve and the fourth control valve are controlled to open, and the second control valve is controlled to close. The fourth control valve is arranged between the outlet of the second sample pool and the main pipeline.

8. A system for detecting multiple types of gases, characterized in that: It includes analysis module, ratio module, adjustment module and execution module, among which: an analysis module, configured to perform infrared spectroscopy analysis on a standard sample of a first gas type to be measured to obtain an infrared spectrum, and compare the infrared spectrum with an infrared absorption spectrum of the filter to determine a target absorption area of ​​the first gas type to be measured, wherein the first gas type to be measured is any one of the total gas types to be measured; a proportional module, configured to normalize the absorption areas of other gas types in the total gas types to be measured according to the target absorption area to obtain a proportional coefficient between the other gas types and the first gas type to be measured, wherein the proportional coefficient is greater than a preset value; an adjustment module, configured to determine a first optimal sample pool length for the first gas type to be tested, determine a second optimal sample pool length for the other gas types according to the proportionality coefficient and the first optimal sample pool length, adjust the segmented sample pool according to the first optimal sample pool length and the second optimal sample pool length, and pass the total gas types to be tested into the adjusted segmented sample pool to obtain a standard curve model for each gas type to be tested; The execution module is configured to adjust the gas flow path according to the second gas type to be tested to input the gas to be tested into the corresponding sample pool when receiving the second gas type to be tested input by the user, and calculate and display the real-time concentration of the gas to be tested through the standard curve model.

9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Multigas monitoring and detection system

    CN101389948A

  • Multi-component gas synchronous correction-free detection device and method based on single detector

    CN114965358A

  • Multi-target gas analysis method and system of gas analyzer and readable medium

    CN117147475A

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

    CN117451671A

  • Multi-component small molecule gas detection method based on infrared spectrum and porous material

    CN117890319A

Cited By

  • Method and system for extracting characteristic absorption peak of mine multi-component polar gas

    CN119619043A

  • Process for producing insoluble sulfur with high thermal stability by gasification method

    CN119637811A