A method, system, electronic device and storage medium for detecting multiple kinds of gases

By using segmented sample cells and infrared spectroscopy analysis technology, the problems of multiple devices and inconsistent results in the detection of various gases have been solved, achieving efficient and accurate detection of various gases, reducing costs and improving system adaptability.

CN119086477BActive Publication Date: 2025-12-19ANHUI YOUNG HEARTY MEDICAL APPLIANCE & EQUIP
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies require multiple independent devices to detect multiple types of gases simultaneously, resulting in high costs and inconsistent detection results, which cannot meet the needs of a single measurement module.

Method used

By employing segmented sample cells and infrared spectroscopy analysis technology, the target absorption area of ​​gas types is determined through comparison of infrared spectra. Combined with normalization methods and optimal sample cell length adjustment, accurate detection of multiple types of gases can be achieved.

Benefits of technology

It improves detection efficiency and accuracy, reduces inter-gas interference, supports flexible detection of multiple types of gases, reduces reliance on high-cost equipment, and optimizes resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119086477B_ABST
    Figure CN119086477B_ABST
Patent Text Reader

Abstract

A method and system for detecting multiple types of gas, an electronic device and a storage medium are provided, and relate to the field of gas detection. In the method, the absorption area of other gas types in the total to-be-detected gas types is normalized according to the target absorption area of the first to-be-detected gas type to obtain a proportionality coefficient of the other gas types and the first to-be-detected gas type; the second optimal sample cell length of the other gas types is determined according to the proportionality coefficient and the first optimal sample cell length of the first to-be-detected gas type, the total to-be-detected gas types are input into the adjusted segmented sample cell to obtain a standard curve model of each to-be-detected gas type; when receiving a second to-be-detected gas type input by a user, the gas flow path is adjusted to input the to-be-detected gas into the corresponding sample cell, and the real-time concentration of the to-be-detected gas is calculated and displayed through the standard curve model. The technical scheme provided by the present application can detect multiple types of gas.
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 multi-species gas detection method and system, an electronic device and a storage medium. BACKGROUND

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

[0003] At present, there are various gas detection technologies and devices on the market, but they often have limitations when detecting multiple types of gases simultaneously. Traditional gas detection methods usually require the use of multiple independent detection devices and sensors, which not only increases cost and complexity, but also may lead to inconsistencies in detection results due to differences between devices, making it difficult to meet the demand for simultaneous measurement of multiple types of gases using a single measurement module.

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

[0005] The present application provides a multi-species gas detection method, system, electronic device and storage medium, which uses a segmented sample cell and infrared spectral analysis technology to detect multiple types of gases through a single measurement module, improving detection efficiency; uses a normalization method to determine the proportion 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 multi-species gas detection method is provided, applied to a segmented sample cell, the segmented sample cell comprising a filter and a plurality of sample cells, the method comprising:

[0007] performing infrared spectral analysis on a standard sample of a first to-be-detected gas species 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 to-be-detected gas species, the first to-be-detected gas species being any one of a plurality of to-be-detected gas species;

[0008] normalizing the absorption areas of other gas species in the plurality of to-be-detected gas species according to the target absorption area to obtain a proportion coefficient of the other gas species and the first to-be-detected gas species, the proportion coefficient being greater than a preset value;

[0009] determining a first optimal sample cell length of the first to-be-detected gas species, determining a second optimal sample cell length of the other gas species according to the proportion coefficient and the first optimal sample cell length, adjusting the segmented sample cell according to the first optimal sample cell length and the second optimal sample cell length, and inputting the total to-be-detected gas species into the adjusted segmented sample cell to obtain a standard curve model of each to-be-detected gas species;

[0010] when receiving a second to-be-detected gas species input by a user, adjusting a gas flow path to input the to-be-detected gas into a corresponding sample cell, and calculating and displaying a real-time concentration of the to-be-detected gas through the standard curve model.

[0011] By adopting the above technical solution, the standard samples of each to-be-detected gas species are subjected to infrared spectrum analysis, and are compared with the infrared absorption spectrum of the filter, so that the target absorption area of each gas under specific conditions can be accurately determined. This step provides a solid foundation for subsequent normalization and proportion coefficient calculation, thereby ensuring the accuracy of the detection result. According to the target absorption area and the proportion coefficient, the optimal sample cell length is determined for different gas species, and the individual customization of the sample cell length is realized. This design optimization not only improves the detection sensitivity, but also reduces the mutual interference between gases, further improving the detection accuracy. The design of the segmented sample cell enables the system to be flexibly adjusted according to the needs of different to-be-detected gas species. By adjusting the gas flow path, the to-be-detected gas is guided into the corresponding sample cell, realizing rapid and accurate detection of multiple gases. This flexibility enables the system to adapt to different application scenarios and detection requirements. Through processing of the detection data of each to-be-detected gas species under the optimal sample cell length, a standard curve model is established. This model provides a reliable basis for subsequent real-time concentration calculation, ensuring the stability and reliability of the detection result. The system can receive the second to-be-detected gas species information input by the user, and automatically adjust the gas flow path and detection parameters, realizing the automation and intelligentization of detection. At the same time, by displaying the concentration information of the to-be-detected gas in real time, an intuitive and convenient detection result viewing method is provided for the user, improving the user experience. By optimizing the sample cell design and improving the detection accuracy, the embodiments of the present application ensure the accuracy of the detection result while reducing the dependence on high-cost detection equipment. In addition, the design of the segmented sample cell also facilitates maintenance and replacement, further reducing the long-term use cost.

[0012] Optionally, the comparison of the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of the first to-be-detected gas species comprises:

[0013] The filter is tested by using an infrared spectrophotometer to obtain an infrared absorption spectrum from high wave number to low wave number, and the center wavelength and half-peak width range of the filter are obtained according to the infrared absorption spectrum;

[0014] The infrared spectrum is compared with the infrared absorption spectrum of the filter to determine the absorption peak of the first to-be-detected gas species, the absorption peak is fitted to obtain a fitting formula, and the fitting formula is integrated to obtain the absorption area of the first to-be-detected gas species.

[0015] By adopting the technical scheme, the filter is tested by using an infrared spectrophotometer to obtain an infrared absorption spectrum from high wave number to low wave number, and the center wavelength and half-peak width range of the filter are obtained according to the infrared absorption spectrum. This step provides an accurate reference range for subsequent comparison with the gas infrared spectrum, which helps to accurately identify the absorption peak of the first to-be-detected gas species in 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 to-be-detected gas species. This mathematical processing method can effectively reduce the influence 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 result, the detection system can have stronger adaptability to different gas species and filters. By accurately determining the target absorption area of the first to-be-detected gas species, an accurate reference can be provided for the subsequent detection process. This helps to optimize the sensitivity of the detection system, so that the system can more accurately respond to changes in gas concentration, improving the accuracy and reliability of detection. The accurate determination of the target absorption area provides an important basis for subsequent gas species normalization and proportionality coefficient calculation. These calculation steps are crucial for determining the optimal sample cell length of other gas species and establishing a standard curve model, thereby ensuring the scientificity and accuracy of the entire detection process.

[0016] Optionally, the comparison of the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of the first to-be-detected gas species further comprises:

[0017] When the infrared spectrum has multiple absorption peaks, an edge detection algorithm is used to identify the boundaries of the multiple absorption peaks in the infrared spectrum;

[0018] According to the boundaries, the infrared spectrum is divided into multiple regions, each region corresponding to one or more absorption peaks;

[0019] The value of a pixel point in the target region is extracted, and the value is integrated to obtain a sub-area of the target region, and a plurality of sub-areas are added to obtain the target absorption area, and the target region is any one of the plurality of regions.

[0020] By adopting the above technical solution, when there are multiple absorption peaks in the infrared spectrum, directly integrating the entire spectral region 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 a single or multiple absorption peaks, complex spectral data can be processed more accurately. This method improves the system's ability to analyze complex spectra. After dividing into multiple regions, the value of the pixel point in the target region is extracted and integrated to obtain the sub-area of each region. These sub-areas represent the absorption intensity of the corresponding absorption peak to infrared light. Adding multiple sub-areas to obtain the target absorption area can more accurately reflect the total absorption intensity of the first gas species in the infrared spectrum. This method reduces errors caused by spectral overlap or noise interference. By dividing the regions and calculating the sub-areas respectively, the system can selectively focus on certain specific absorption peaks or regions as needed. This flexibility enables the system to adapt to different types and concentrations of gas detection requirements, improving the system's adaptability and application range.

[0021] Optionally, the determining the first optimal sample cell length of the first gas species to be measured includes:

[0022] The standard gas corresponding to the first gas species to be measured is filled into a first sample cell, the length of the sample cell is adjusted step by step, the absorbance value corresponding to each length is measured and recorded, and the first sample cell is any one of the plurality of sample cells.

[0023] 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 maximum change rate in the curve graph.

[0024] By gradually adjusting the length of the sample cell and measuring the corresponding absorbance value, the trend of absorbance change with the length of the sample cell can be observed. By selecting the point with the maximum absorbance value or the maximum change rate as the optimal sample cell length, it can be ensured that at this length, the absorption of infrared light by the gas is the most significant, thereby improving the sensitivity of detection. Different gas species and concentrations have different absorption characteristics of infrared light, so the optimal sample cell length will also be different. By determining the optimal sample cell length for each type of gas to be tested through experiments, the detection conditions can be optimized for specific gas species and concentrations, making the detection results more accurate and reliable. By plotting the curve of absorbance value corresponding to different sample cell lengths, the law of absorbance change with the length of the sample cell can be observed intuitively. This method not only simplifies the experimental process, but also improves the experimental efficiency, enabling researchers to quickly and accurately find the optimal sample cell length. Determining the optimal sample cell length is an important basis for establishing the standard curve model and subsequent detection 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.

[0025] Optionally, the 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:

[0026] calculating the product of the proportionality coefficient and the first optimal sample cell length to obtain a total length, and calculating the difference between the total length and the first optimal sample cell length, taking the difference as the second optimal sample cell length.

[0027] By adopting the technical scheme, the product of the proportional coefficient and the first optimal sample cell length is directly calculated, and the difference between the product and the first optimal sample cell length is obtained, so that the second optimal sample cell length of other gas species can be quickly obtained. This method avoids complex iterative calculation or optimization algorithm, simplifies the calculation process, and improves the calculation efficiency. Since the proportional coefficient is determined based on the absorption area proportion between different gas species, the second optimal sample cell length determined by this method can maintain similar detection sensitivity to the first optimal sample cell length to a certain extent. This helps to ensure that the detection sensitivity of different gas species in the entire detection system is relatively consistent, thereby improving the reliability of the detection result. Different gas species have different absorption characteristics in the infrared spectrum, so their optimal sample cell lengths are also different. By introducing the proportional coefficient and adjusting according to the first optimal sample cell length, the characteristics of different gas species can be flexibly adapted, so that the detection system can more accurately detect various gases. Determining the second optimal sample cell length is an important step for establishing a multi-species gas detection standard curve model and subsequent detection 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.

[0028] Optionally, the method further comprises:

[0029] controlling the opening and closing of different control valves to introduce the third to-be-detected gas species into the corresponding sample cell, establishing an absorbance curve according to the known concentration points of the standard gas of the third to-be-detected gas species and the absorbance values corresponding to the known concentration points, and using the least square method to fit the absorbance curve to obtain a standard curve model, the third to-be-detected gas species being any one of the total to-be-detected gas species.

[0030] By adopting the above technical solutions, the opening and closing of different control valves can accurately introduce a specific type of to-be-detected gas into the corresponding sample cell, avoiding cross interference between gases. At the same time, based on the known concentration of the standard gas, the absorbance curve is established and fitted using the least square method, which can obtain a more accurate and reliable standard curve model. This helps to improve the accuracy of subsequent gas concentration detection. The design of the segmented sample cell allows simultaneous or separate detection of multiple gases, with each gas having its own independent sample cell 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 cell to match the optimal detection conditions of different gas types, resource utilization can be optimized. In a limited sample cell space, the accuracy and sensitivity of detection are as high as possible, reducing detection costs. In multi-gas detection, it is often necessary to analyze multiple components simultaneously. The above method can establish an independent standard curve model for each to-be-detected gas type, providing a basis for subsequent multi-component gas analysis. By simultaneously detecting multiple gases and applying their respective standard curve models, accurate analysis of complex gas mixtures can be achieved. As detection requirements increase or change, the system can easily add new sample cells and detection channels to expand detection capabilities. This scalability allows the system to adapt to different application scenarios and detection requirements.

[0031] Optionally, the control of the opening and closing of different control valves to introduce the third to-be-detected gas type into the corresponding sample cell comprises:

[0032] When the third to-be-detected gas type corresponds to the first sample cell, 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 cell, the second control valve is arranged between the main pipeline and the outlet of the first sample cell, the third control valve is arranged between the outlet of the first sample cell and the inlet of the second sample cell, and the distance between the first sample cell and the optical filter is shorter than the distance between the second sample cell and the optical filter.

[0033] When the third to-be-detected gas type corresponds to the second sample cell, the first control valve, the third control valve, and the fourth control valve are controlled to be opened, and the second control valve is controlled to be closed, the fourth control valve is arranged between the outlet of the second sample cell and the main pipeline.

[0034] By adopting the above technical solutions, the opening and closing states of each control valve are accurately controlled, which can ensure that only the target gas species is introduced 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, detection errors caused by mismatched sample cell lengths 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 species, limited sample cell resources can be used more efficiently. This helps to reduce detection costs and improve the overall performance of the system. By accurately controlling the flow direction and flow rate of the gas, the system can reduce the safety risks caused by gas leakage or misoperation to some extent. This is particularly important for application scenarios involving flammable, explosive, or toxic gases.

[0035] In a second aspect of the present application, a multi-species gas detection system is provided, comprising an analysis module, a proportion module, an adjustment module, and an execution module, wherein:

[0036] The analysis module is configured to perform infrared spectrum analysis on a standard sample of a first to-be-detected gas species to obtain an infrared spectrum graph, and compare the infrared spectrum graph with an infrared absorption spectrum graph of a filter to determine a target absorption area of the first to-be-detected gas species, the first to-be-detected gas species being any one of total to-be-detected gas species;

[0037] The proportion module is configured to normalize absorption areas of other gas species in the total to-be-detected gas species according to the target absorption area to obtain a proportion coefficient of the other gas species and the first to-be-detected gas species, the proportion coefficient being greater than a preset value;

[0038] The adjustment module is configured to determine a first optimal sample cell length of the first to-be-detected gas species, determine a second optimal sample cell length of the other gas species according to the proportion coefficient and the first optimal sample cell length, adjust a segmented sample cell according to the first optimal sample cell length and the second optimal sample cell length, and introduce the total to-be-detected gas species into the adjusted segmented sample cell to obtain a standard curve model of each to-be-detected gas species;

[0039] The execution module is configured to, when receiving a second to-be-detected gas species input by a user, adjust a gas flow path according to the second to-be-detected gas species to input a to-be-detected gas into a corresponding sample cell, and calculate and display a real-time concentration of the to-be-detected gas through the standard curve model.

[0040] In a third aspect of the present application, an electronic device is provided, comprising a processor, a memory, a user interface and a network interface, the memory is configured to store instructions, the user interface and the network interface are configured to communicate with other devices, and the processor is configured to execute the instructions stored in the memory to enable the electronic device to perform the method according to any one of the preceding aspects.

[0041] In a fourth aspect of the present application, a computer readable storage medium is provided, which stores instructions, when the instructions are executed, the method according to any one of the preceding aspects is performed.

[0042] In summary, the one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0043] 1. The target absorption area of each type of gas to be detected is determined by infrared spectrum analysis, and the length of the sample cell is optimized and adjusted accordingly, which can ensure that each gas is detected under optimal conditions, thereby improving the precision and accuracy of detection;

[0044] 2. The detection of multiple types of gas is supported, and the gas flow path and the length of the sample cell can be adjusted to flexibly adapt to different detection requirements. This flexibility enables the system to be widely used in various gas detection scenarios;

[0045] 3. The proportional coefficient between different gas types is obtained through normalization processing, and the optimal sample cell length of each type is determined accordingly, which can optimize resource utilization and avoid unnecessary waste. At the same time, the design of the segmented sample cell also improves the space utilization;

[0046] 4. The user can input the type of gas to be detected, and the gas flow path and the sample cell are automatically adjusted according to the input, making the operation more convenient. At the same time, the real-time concentration display function also provides an intuitive display of the detection results, enhancing the user experience. BRIEF DESCRIPTION OF DRAWINGS

[0047] Figure 1 is a flowchart of the method for detecting multiple types of gas disclosed in the embodiments of the present application;

[0048] Figure 2 is an architectural diagram of the segmented sample cell disclosed in the embodiments of the present application;

[0049] Figure 3 is a module diagram of the system for detecting multiple types of gas disclosed in the embodiments of the present application;

[0050] Figure 4 is a structural diagram of an electronic device disclosed in the embodiments of the present application.

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

[0052] In order for those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the specification will be clearly and completely described below in combination with the drawings in the specification. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.

[0053] In the description of the embodiments of the present application, the words such as "for example" or "for instance" are used to represent an example, illustration or description. Any embodiment or design scheme described as "for example" or "for instance" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "for example" or "for instance" are intended to present the relevant concept in a specific manner.

[0054] In the description of the embodiments of the present application, the term "a plurality of" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. In addition, the terms "first" and "second" are used for description purposes only and should not be interpreted as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more features. The terms "include", "contain", "have" and their variants mean "include but are not limited to", unless otherwise specifically emphasized.

[0055] The embodiment discloses a method for detecting multiple types of gases, which is applied to a segmented sample cell, the segmented sample cell comprising a filter and a plurality of sample cells, Figure 1 is a flowchart of the method for detecting multiple types of gases disclosed by the embodiments of the present application, as shown in Figure 1 The method comprises the following steps:

[0056] S110, performing infrared spectrum analysis on a standard sample of a first to-be-detected gas type to obtain an infrared spectrum graph, and comparing the infrared spectrum graph with an infrared absorption spectrum graph of the filter to determine a target absorption area of the first to-be-detected gas type, the first to-be-detected gas type being any one of total to-be-detected gas types;

[0057] Figure 2 is an architecture schematic diagram of the segmented sample cell disclosed by the embodiments of the present application, as shown in Figure 2As shown, the segmented sample cell includes an adjustable light source 201, a first sample cell 202, a second sample cell 203, a third sample cell 204, a filter 205, a gray scale 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. In combination Figure 2 The embodiments of the present application are described.

[0058] The standard sample is scanned using an infrared spectrometer, and its infrared spectrum is recorded. The infrared spectrum shows the absorption of the sample under different wavelengths of infrared light, i.e., the position, intensity, and shape of the absorption peak, etc. These information is the basis for subsequent comparison and identification. The filter is a device for selectively transmitting or absorbing light of a specific wavelength. The infrared spectrum of the standard sample is compared with the infrared absorption spectrum of the filter. The purpose of the comparison is to find the characteristic absorption peak of the first gas species in the standard sample spectrum, i.e., the "target absorption area". The size of this area can reflect the concentration or amount of the gas in the sample. Through comparison, the specific position and area of the absorption peak corresponding to the target gas species in the standard sample spectrum can be determined. This area will be used as a reference 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 test sample in the same wavelength range and finding the corresponding absorption peak area, the concentration or amount of the first gas species in the test sample can be calculated.

[0059] Optionally, the comparison of the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of the first gas species includes:

[0060] The filter is tested using an infrared spectrophotometer to obtain an infrared absorption spectrum from high to low wave number, and the center wavelength and half-peak width range of the filter are obtained according to the infrared absorption spectrum;

[0061] The infrared spectrum is compared with the center wavelength and half-peak width range to determine the absorption peak of the first gas species, 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 species.

[0062] 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, thereby generating an infrared spectrum. During the test, the infrared spectrophotometer will scan the entire infrared spectrum range from high frequency (short wavelength) to low frequency (long wavelength), record the absorption of the filter at each wavelength point, and finally generate an infrared absorption spectrum from high frequency to low frequency. 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. Through the analysis of the spectrum, the center wavelength of the filter and the corresponding half peak width range can be determined. The infrared spectrum of the gas to be tested is compared 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 range of the filter. This absorption peak represents the characteristic absorption of the first gas species to be tested in the infrared spectrum. Through comparison, the absorption peak corresponding to the first gas species to be tested in the spectrum of the gas to be tested can be determined. The position, shape and intensity of this absorption peak 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.) are adjusted so that the fitted curve matches the actual shape of the absorption peak as much as possible. After fitting, a fitting formula describing the shape of the absorption peak is obtained. This formula can be used for subsequent calculations and analyses. Integrating the fitting formula can calculate the absorption area of the first gas species to be tested in the infrared spectrum. There is a certain relationship between this absorption area and the concentration of the gas, so it can be used for quantitative analysis of the concentration of the first gas species to be tested in the gas to be tested.

[0063] The filter is tested using an infrared spectrophotometer, which can obtain a complete infrared absorption spectrum from high to low frequencies. This not only reveals the absorption characteristics of the filter at different wavelengths, but also allows accurate determination of the center wavelength (i.e., the wavelength with the strongest absorption) and the half-peak width range (i.e., the wavelength range corresponding to half the absorption intensity at the center wavelength). This information is crucial for subsequent spectral comparison. By comparing the infrared spectrum of the gas to be tested with the center 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 false positives due to spectral noise, instrument errors, and other factors, improving the accuracy and reliability of the comparison. After fitting the located absorption peak and obtaining the fitting formula, the absorption area of the gas to be tested under the absorption peak can be obtained by integrating the fitting formula. This absorption area is proportional to the concentration or amount of the gas, and can therefore 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 a computer program, including steps such as spectral data acquisition, processing, comparison, and quantitative analysis. This not only improves analysis efficiency, but also reduces human error and promotes the intelligent development of analysis technology.

[0064] Optionally, the comparing the infrared spectrum with the infrared absorption spectrum of the filter to determine the target absorption area of the first gas species to be tested further comprises:

[0065] When the infrared spectrum has multiple absorption peaks, an edge detection algorithm is used to identify the boundaries of the multiple absorption peaks in the infrared spectrum.

[0066] The infrared spectrum is divided into multiple regions according to the boundaries, with each region corresponding to one or more absorption peaks.

[0067] The values of the pixels in the target region are extracted, and the values are integrated to obtain the sub-area of the target region. The target absorption area is obtained by adding multiple sub-areas, and the target region is any one of the multiple regions.

[0068] In an infrared spectrum, an absorption peak usually appears as a local maximum region on the spectral curve, with both sides being gradually decreasing parts of the spectral intensity. Edge detection algorithms (such as Canny edge detector, Sobel operator, etc.) can identify points in an image where the brightness or color changes significantly, i.e., 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 subsequent steps to analyze specific absorption peaks. After determining the target region (i.e., the region containing the absorption peaks of the gas species to be detected), the values of all pixel points in this region need to be extracted. These values represent the intensity or transmittance of the spectrum at the corresponding wavelength. Since the spectrum is usually digitized, each pixel point corresponds to a specific numerical value. To quantify the area of the absorption peak in the target region, the values of all pixel points in the region need to be integrated. 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 certain 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 region contains multiple absorption peaks (for example, due to the complexity of molecular vibration modes or the presence of isotopic effects in the gas), the absorption peaks need to be integrated separately, and the resulting multiple sub-areas are added to obtain the final target absorption area. This area represents the overall contribution of all relevant absorption peaks in the entire target region to the spectral intensity.

[0069] When there are multiple absorption peaks in the infrared spectrum, the traditional comparison method may not be able to accurately distinguish the components corresponding to each peak. By identifying the boundary of each absorption peak through an edge detection algorithm, a complex spectrum can be divided into multiple clear regions, each region corresponding to one or more absorption peaks, thereby improving the ability to analyze complex spectra. After determining the boundary of each absorption peak, the specific area of gas absorption in the target region can be obtained by extracting the pixel values in the target region and integrating them. This method avoids the errors that may be caused by integrating the entire spectrum as a whole, improving the accuracy of absorption area calculation. Since it can accurately identify and calculate the area corresponding to each absorption peak, this method supports the simultaneous analysis of multiple components in a mixed gas. By calculating the absorption area of each component, their relative concentration or content in the mixed gas can be further calculated. The entire processing process, including edge detection, region division, pixel value extraction and integration, can be automatically completed by a computer program without human intervention. This greatly improves the automation of the analysis, reduces human error, and improves the analysis efficiency. During the processing, the target region can be selected for integration calculation as needed. This means that users can flexibly select specific absorption peaks or regions of interest according to experimental purposes or data analysis needs, thereby obtaining more accurate and useful results.

[0070] S120, normalizing the absorption areas of other gas species in the total to-be-detected gas species according to the target absorption area of the first to-be-detected gas species to obtain a proportionality coefficient of the other gas species and the first to-be-detected gas species, the proportionality coefficient being greater than a preset value;

[0071] The target absorption area of the first to-be-detected gas species is used as a reference. This reference represents the absorption intensity or area of the first to-be-detected gas species detected by the infrared spectrometer under this detection condition. The absorption areas of all other gas species in the total to-be-detected gas species are measured. These areas also represent their respective absorption intensities in the infrared spectrum. Divide the absorption area of each other gas species by the target absorption area of the first to-be-detected gas species to obtain a series of proportionality coefficients. These proportionality coefficients reflect the relative absorption intensity or area between the other gas species and the first to-be-detected gas species under the same detection condition. According to the need for subsequent adjustment of the sample cell length, a preset value can be set as a threshold, for example, the preset value can be one. When the proportionality coefficient is less than one, the first to-be-detected gas species can be adjusted.

[0072] S130, determining a first optimal cell length of the first to-be-detected gas species, determining a second optimal cell length of the other gas species according to the proportion coefficient and the first optimal cell length, adjusting the segmented cell according to the first optimal cell length and the second optimal cell length, and introducing the total to-be-detected gas species into the adjusted segmented cell to obtain a standard curve model of each to-be-detected gas species;

[0073] determining a first optimal cell length of the first to-be-detected gas species: This step is usually based on experimental data or theoretical calculation, and the purpose is to find the sample cell length that can produce the best detection signal (such as the maximum absorption peak intensity) for the first to-be-detected gas species. This length may vary due to factors such as gas species, detector sensitivity, light source intensity, etc. After determining the optimal sample cell length of the first to-be-detected gas species, the proportion coefficient calculated previously can be used to calculate the sample cell length required by other gas species to achieve similar detection effects under the same detection conditions. This length is called the second optimal cell length, which may vary due to different gas species. The segmented cell is a device designed with multiple independently adjustable cell segments, allowing users to adjust the length of different segments as needed. In this step, according to the first and second optimal cell lengths calculated earlier, the segments of the segmented cell are precisely adjusted to ensure that each to-be-detected gas species can be detected under optimal conditions. After the segmented cell is adjusted, each to-be-detected gas is introduced into the sample cell, and the detection signal (such as the absorption peak intensity) of each gas species under different conditions is recorded, and the standard curve model of each to-be-detected gas species can be drawn. These models describe the quantitative relationship between gas concentration and detection signal, which is an important basis for subsequent quantitative analysis and comparison.

[0074] Optionally, the determination of the first optimal cell length of the first to-be-detected gas species comprises:

[0075] filling the standard gas corresponding to the first to-be-detected gas species into the first sample cell, adjusting the length of the sample cell step by step, measuring and recording the absorbance value corresponding to each length, and the first sample cell is any one of the plurality of sample cells;

[0076] drawing a curve graph of the absorbance values corresponding to different sample cell lengths, and determining the first optimal cell length according to the maximum value or maximum change rate in the curve graph.

[0077] A standard gas is a gas with known concentration and composition, used to calibrate and verify the accuracy and reliability of the detection system. The standard gas is filled into the first sample cell, and the gas distribution is ensured to be uniform. The length of the sample cell is adjusted step by step, and after each adjustment, the absorbance value at the corresponding length is measured and recorded using the infrared spectrometer or other appropriate detection equipment. The absorbance value is an indicator of the degree of absorption of infrared light by the gas, related to the gas concentration and the sample cell length. The absorbance values corresponding to different sample cell lengths are plotted into a curve graph. This curve graph reflects the trend of the absorbance value changing with the sample cell length. The curve graph is analyzed to find the maximum value point or the maximum change rate point. Both points can represent the first optimal sample cell length, but the specific choice depends on the experimental purpose and detection requirements. The maximum value point usually indicates that at this length, the absorption of infrared light by the gas reaches the maximum, which can produce the strongest detection signal. The maximum change rate point may indicate that near this length, the absorbance value is most sensitive to changes in the sample cell length, which is beneficial to improve the resolution or dynamic range of the detection. According to the experimental purpose and detection requirements, the most appropriate point is selected as the first optimal sample cell length. After determining the first optimal sample cell length, further experimental verification may be needed to ensure that the detection performance at this length meets the expectations. If necessary, the detection system can also be optimized based on the experimental results, such as adjusting the light source intensity, detector sensitivity, and other parameters, to further improve the detection performance.

[0078] By adjusting the length of the sample cell step by step and measuring the corresponding absorbance value, the length of the sample cell that maximizes the absorbance of the first gas species to be detected or has the maximum change rate can be accurately found. This length is considered the optimal sample cell length because it maximizes the detection signal, thereby improving the sensitivity of the detection. Different gas species may exhibit different absorption characteristics under the same detection conditions, so the optimal sample cell length may also be different. By determining the optimal sample cell length for each gas species to be detected 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 plotting the absorbance value curve corresponding to different sample cell lengths and determining the optimal sample cell length based on the maximum value or maximum change rate in the curve, errors 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 detecting under optimal conditions, more accurate and reliable detection data can be obtained, and a more precise standard curve model can be constructed. This is of great significance for subsequent quantitative analysis and comparison.

[0079] Optionally, determining the second optimal sample cell length of the other gas species according to the proportionality coefficient and the first optimal sample cell length includes:

[0080] The product of the proportionality coefficient and the first optimal sample cell length is calculated to obtain a total length, and the difference between the total length and the first optimal sample cell length is calculated as the second optimal sample cell length.

[0081] Three types of gases to be tested (A, B, and C) are used as examples in the embodiments of the present application. Assume that the optimal sample cell length L1 of the A-type standard gas is determined to be 10 cm, which is obtained by testing and observing the absorbance curve. The optimal sample cell length of the B-type gas is determined using the proportionality coefficient S B / S A = 1.5 of the B-type gas to the A-type gas. Specifically, this total length is the product of L1 and the proportionality coefficient, i.e., 10 cm * 1.5 = 15 cm. However, since it is a segmented sample cell, and the first segment (L1) has been determined to be 10 cm, the second segment length L2 is the difference between the total length and L1, i.e., 15 cm - 10 cm = 5 cm. In this way, the total length of L1 and L2 is 15 cm, corresponding to the detection of the B-type gas. Similarly, the optimal sample cell length of the C-type gas is determined by its proportionality coefficient S C / S A = 1.9. However, since the detection of the C-type gas needs to further extend the sample cell based on the B-type gas, and the second segment has already been reserved for the B-type gas, the detection length of the C-type gas is an additional segment based on L1 and L2. The total length calculated by the proportionality coefficient is 10 cm * 1.9 = 19 cm, but since the first two segments (L1 and L2) have occupied 15 cm, the length of the third segment L3 is 19 cm - 15 cm = 4 cm. In this way, the total length of L1, L2, and L3 is 19 cm, corresponding to the detection of the C-type gas.

[0082] By calculating the optimal sample cell length for each gas type separately, it can be ensured that each gas achieves the best absorption effect during detection, thereby improving the sensitivity of the detection. This is because different gas types may have different absorption characteristics under the same conditions, and therefore require different sample cell lengths to maximize their absorption signals. Using the proportionality coefficient to determine the sample cell length of other gases ensures consistency in detection conditions and reduces errors caused by improper sample cell length. This method is based on scientific calculations and experimental data, and therefore has high accuracy and reliability. In the design of segmented sample cells, by assigning different sample cell lengths to each gas, it can flexibly adapt to the detection needs of multi-component gases. This method not only applies to known proportionality coefficients of gas combinations, but also can further verify and optimize the proportionality relationship between different gas types through experiments.

[0083] Optionally, the step of introducing the total to-be-tested gas species into the adjusted segmented sample cell to obtain a standard curve model for each to-be-tested gas species comprises:

[0084] controlling the opening and closing of different control valves to introduce a third to-be-tested gas species into the corresponding sample cell, establishing an absorbance curve according to the known concentration points of the standard gas of the third to-be-tested gas species and the absorbance values corresponding to the known concentration points, and using the least squares method to fit the absorbance curve to obtain a standard curve model, the third to-be-tested gas species being any one of the total to-be-tested gas species.

[0085] The design of the segmented sample cell allows precise introduction of specific gas species into the corresponding sample cell by controlling different control valves. This is the key to simultaneous detection of multi-component gases. In this process, the opening and closing time and sequence of each control valve need to be precisely controlled to ensure that each to-be-tested gas 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 needed. These standard gases have known and accurate concentration values, which are the basis for establishing the standard curve. For each to-be-tested gas species (such as the third to-be-tested gas species), a series of standard gas samples with different concentrations need to be prepared. Each concentration of standard gas sample is introduced into the corresponding sample cell in turn, and the absorbance value is measured using a spectrometer or other detection equipment. 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, i.e. 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 to-be-tested gas species, the above steps need to be repeated to establish its corresponding standard curve model.

[0086] By controlling the opening and closing of different control valves, each type of gas to be tested can be accurately introduced into its corresponding sample cell. This avoids interference between gases and ensures that each gas can obtain accurate and independent absorbance data during detection. Based on these accurate data, the standard curve model established will have higher precision, thereby improving the accuracy of subsequent detection. Using the least squares method to fit the absorbance curve can obtain a more smooth and accurate standard curve model. This method can reduce random errors and noise in the data, improve the accuracy and reliability of data processing. At the same time, the standard curve model can also be used for subsequent gas concentration quantitative analysis, providing a reliable basis for the detection results. By establishing independent standard curve models 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 detection results. The entire detection process can be realized through automatic opening and closing of control valves and automatic processing of data processing software, reducing the possibility of human intervention and errors. This improves the degree of automation of detection, reduces the difficulty and cost of operation.

[0087] Optionally, the controlling the opening and closing of different control valves to introduce the third type of gas to be tested into the corresponding sample cell comprises:

[0088] When the third type of gas to be tested corresponds to the first sample cell, 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 cell, the second control valve is arranged between the main pipeline and the outlet of the first sample cell, the third control valve is arranged between the outlet of the first sample cell and the inlet of the second sample cell, and the distance between the first sample cell and the filter is shorter than the distance between the second sample cell and the filter.

[0089] When the third type of gas to be tested corresponds to the second sample cell, the first control valve, the third control valve and the fourth control valve are controlled to be opened, and the second control valve is controlled to be closed, the fourth control valve is arranged between the outlet of the second sample cell and the main pipeline.

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

[0091] Firstly, air is used for washing, the first control valve 208, the third control valve 210, the fifth control valve 212 and the sixth control valve 213 are opened under the control of the microcontroller, and the second control valve 209 and the fourth control valve 211 are closed, so that air is driven into the first sample cell 202, the second sample cell 203 and the third sample cell 204 by the air pump. When testing the A-type gas, that is, inputting the A-type gas into the first sample cell 202, the first control valve 208 and the second control valve 209 are controlled to be opened, the third control valve 210 is closed, and the A-type gas is driven into the L1 sample cell, that is, the first sample cell 202 by the air pump. When testing the B-type gas, that is, inputting the B-type gas into the first sample cell 202 and the second sample cell 203, the first control valve 208, the third control valve 210 and the fourth control valve 211 are controlled to be opened, the second control valve 209 and the fifth control valve 212 are closed, and the B-type gas is driven into the first sample cell 202 and the second sample cell 203 by the air pump. When testing the C-type gas, that is, inputting the C-type gas into the first sample cell 202, the second sample cell 203 and the third sample cell 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, the second control valve 209 and the fourth control valve 211 are closed, and the C-type gas is driven into the first sample cell 202, the second sample cell 203 and the third sample cell 204 by the air pump.

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

[0093] The user selects the type of the second gas to be measured through the display screen or other input devices (such as touch screen, keys, etc.). The system identifies and confirms the gas type selected by the user, and prepares for subsequent measurement operations. After the microcontroller receives the instruction to change the gas type, it first checks the current gas flow path setting. According to the second gas to be measured, the corresponding valve opening and closing state is adjusted to change the gas flow path, ensuring that the gas can be smoothly and accurately guided into the sample cell matched with 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 cell. 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 cell. After the gas to be measured enters the sample cell, 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 the 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 is 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.).

[0094] The embodiment also discloses a multi-type gas detection system, Figure 3 is a module schematic diagram of the multi-type gas detection system disclosed by the embodiment of the application, as Figure 3 shown, the system comprises an analysis module 301, a proportion module 302, an adjustment module 303 and an execution module 304, wherein:

[0095] The analysis module 301 is configured to perform infrared spectrum analysis on the standard sample of the first gas to be measured to obtain an infrared spectrum graph, and compare the infrared spectrum graph with an infrared absorption spectrum graph of a filter to determine a target absorption area of the first gas to be measured, the first gas to be measured being any one of total gas types;

[0096] The proportion module 302 is configured to normalize absorption areas of other gas types in the total gas types according to the target absorption area to obtain a proportion coefficient of the other gas types and the first gas to be measured, the proportion coefficient being greater than a preset value;

[0097] The adjusting module 303 is configured to determine a first optimal sample cell length of the first to-be-detected gas species, determine a second optimal sample cell length of the other gas species according to the proportion coefficient and the first optimal sample cell length, adjust the segmented sample cell according to the first optimal sample cell length and the second optimal sample cell length, and input the total to-be-detected gas species into the adjusted segmented sample cell to obtain a standard curve model of each to-be-detected gas species.

[0098] The executing module 304 is configured to, when receiving a second to-be-detected gas species input by a user, adjust a gas flow path according to the second to-be-detected gas species to input the to-be-detected gas into a corresponding sample cell, and calculate and display a real-time concentration of the to-be-detected gas through the standard curve model.

[0099] Optionally, the analyzing module 301 is configured to:

[0100] The filter is tested by using an infrared spectrophotometer to obtain an infrared absorption spectrum from a high wave number to a low wave number, and the center wavelength and the half-peak width range of the filter are obtained according to the infrared absorption spectrum;

[0101] The infrared spectrum is compared with the center wavelength and the half-peak width range to determine an absorption peak of the first to-be-detected gas species, the absorption peak is fitted to obtain a fitting formula, and the fitting formula is integrated to obtain an absorption area of the first to-be-detected gas species.

[0102] Optionally, the analyzing module 301 is further configured to:

[0103] When the infrared spectrum has multiple absorption peaks, an edge detection algorithm is used to identify boundaries of the multiple absorption peaks in the infrared spectrum;

[0104] The infrared spectrum is divided into multiple regions according to the boundaries, and each region corresponds to one or more absorption peaks;

[0105] The values of pixel points in a target region are extracted, and the values are integrated to obtain a sub-area of the target region, multiple sub-areas are added to obtain the target absorption area, and the target region is any one of the multiple regions.

[0106] Optionally, the adjusting module 303 is configured to:

[0107] A standard gas corresponding to the first to-be-detected gas species is filled into a first sample cell, the length of the sample cell is adjusted step by step, an absorbance value corresponding to each length is measured and recorded, and the first sample cell is any one of multiple sample cells.

[0108] Plotting the absorbance values corresponding to different sample cell lengths into a curve, and determining the first optimal sample cell length according to the maximum value or maximum change rate in the curve.

[0109] Optionally, the adjusting module 303 is configured to:

[0110] Calculate the product of the proportion coefficient and the first optimal sample cell length to obtain a total length, and calculate the difference between the total length and the first optimal sample cell length, and take the difference as the second optimal sample cell length.

[0111] Optionally, the adjusting module 303 is further configured to:

[0112] Control the opening and closing of different control valves to pass a third to-be-tested gas species into a corresponding sample cell, establish an absorbance curve according to the known concentration points of the standard gas of the third to-be-tested gas species and the absorbance values corresponding to the known concentration points, and use the least square method to fit the absorbance curve to obtain a standard curve model, the third to-be-tested gas species being any one of the total to-be-tested gas species.

[0113] Optionally, the adjusting module 303 is further configured to:

[0114] When the third to-be-tested gas species corresponds to a first sample cell, control the first control valve and the second control valve to be opened, and control the third control valve to be closed, the first control valve being arranged between the main pipeline and the inlet of the first sample cell, the second control valve being arranged between the main pipeline and the outlet of the first sample cell, the third control valve being arranged between the outlet of the first sample cell and the inlet of a second sample cell, the distance between the first sample cell and the optical filter being shorter than the distance between the second sample cell and the optical filter.

[0115] When the third to-be-tested gas species corresponds to a second sample cell, control the first control valve, the third control valve and the fourth control valve to be opened, and control the second control valve to be closed, the fourth control valve being arranged between the outlet of the second sample cell and the main pipeline.

[0116] It should be noted that the apparatus provided in the above embodiments is only used as an example for the division of the above functional modules in realizing its functions, and in actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be described here.

[0117] The embodiment further discloses an electronic device, which refers to Figure 4The electronic device can 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.

[0118] The communication bus 402 is configured to realize the connection and communication between the components.

[0119] The user interface 403 can include a display, a camera, and optionally a standard wired interface and a wireless interface.

[0120] The network interface 404 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).

[0121] The processor 401 can include one or more processing cores. The processor 401 connects various parts of the server through various interfaces and lines, 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 of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 401 can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU is mainly used to process operating systems, user interfaces, and application programs. The GPU is used to render and draw the content to be displayed on the display. The modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 401, but can be realized by a separate chip.

[0122] The memory 405 can include a random access memory (RAM) and can also include a read-only memory (ROM). 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 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area can store data involved in the various method embodiments described above, etc. The memory 405 can also be at least one storage device located away from the aforementioned processor 401. As shown in Figure 4 The memory 405, as a computer storage medium, can include an operating system, a network communication module, a user interface module, and an application program of the method for detecting multiple types of gases.

[0123] In the electronic device shown in Figure 4 In the electronic device shown in the above embodiments, the user interface 403 is mainly used to provide an interface for user input and obtain data input by the user; and the processor 401 can be used to call the application program of the method for detecting multiple types of gases stored in the memory 405, and when executed by one or more processors 401, the electronic device performs the method of one or more of the above embodiments.

[0124] It should be noted that, for the above-mentioned method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0125] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0126] In several embodiments provided in the present application, it should be understood that the disclosed apparatus can be implemented in other manners. For example, the division of the apparatus embodiments is merely illustrative, and the division of units can be changed according to actual conditions, such as a combination or integration of some units, or a deletion of some features, or an addition of some features. In addition, the coupling or direct coupling or communication connection between the shown or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0127] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0128] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0129] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product, and the computer software product is stored in a storage medium 405, including a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The aforementioned storage medium 405 includes: a U disk, a mobile hard disk, a magnetic or optical disk, and various media that can store program codes.

[0130] The above is merely exemplary embodiments of the present disclosure, which cannot limit the scope of the present disclosure. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the disclosure herein, with the present application intended to cover any variations, uses, or adaptations of the present disclosure following the general principles thereof and including such modifications as come within the ordinary skill of the art. The scope of the present disclosure is defined by the claims and their equivalents, and the scope and spirit of the present disclosure are limited by the claims.

Claims

1. A method of multi-species gas detection, characterized by, Applied to a segmented sample cell comprising a filter and a plurality of sample cells, the method comprises: performing infrared spectrum analysis on a standard sample of a first to-be-tested gas species to obtain an infrared spectrum graph, comparing the infrared spectrum graph with an infrared absorption spectrum graph of the filter to determine a target absorption area of the first to-be-tested gas species, the first to-be-tested gas species being any one of total to-be-tested gas species; normalizing absorption areas of other gas species in the total to-be-tested gas species according to the target absorption area to obtain a proportionality coefficient of the other gas species and the first to-be-tested gas species, the proportionality coefficient being greater than a preset value; determining a first optimal sample cell length of the first to-be-tested gas species, determining a second optimal sample cell length of the other gas species according to the proportionality coefficient and the first optimal sample cell length, adjusting the segmented sample cell according to the first optimal sample cell length and the second optimal sample cell length, and inputting the total to-be-tested gas species into the adjusted segmented sample cell to obtain a standard curve model of each to-be-tested gas species; when receiving a second to-be-tested gas species input by a user, adjusting a gas flow path according to the second to-be-tested gas species to input a to-be-tested gas into a corresponding sample cell, and calculating and displaying a real-time concentration of the to-be-tested gas through the standard curve model, the comparison of the infrared spectrum graph with the infrared absorption spectrum graph of the filter to determine the target absorption area of the first to-be-tested gas species comprises: testing the filter using an infrared spectrophotometer to obtain an infrared absorption spectrum graph from a high wave number to a low wave number, and obtaining a center wavelength and a half-peak width range of the filter according to the infrared absorption spectrum graph; comparing the infrared spectrum graph with the center wavelength and the half-peak width range to determine an absorption peak of the first to-be-tested gas species, fitting the absorption peak to obtain a fitting formula, and integrating the fitting formula to obtain the absorption area of the first to-be-tested gas species.

2. The method of multi-species gas detection of claim 1, wherein, the comparison of the infrared spectrum graph with the infrared absorption spectrum graph of the filter to determine the target absorption area of the first to-be-tested gas species further comprises: when the infrared spectrum graph has a plurality of absorption peaks, using an edge detection algorithm to identify boundaries of the plurality of absorption peaks in the infrared spectrum graph; dividing the infrared spectrum graph into a plurality of regions according to the boundaries, each region corresponding to one or more absorption peaks; extracting values of pixel points in a target region, and integrating the values to obtain a sub-area of the target region, adding a plurality of sub-areas to obtain the target absorption area, the target region being any one of the plurality of regions.

3. The method of multi-species gas detection of claim 1, wherein, the determination of the first optimal sample cell length of the first to-be-tested gas species comprises: filling a standard gas corresponding to the first to-be-tested gas species into a first sample cell, gradually adjusting the length of the sample cell, measuring and recording an absorbance value corresponding to each length, the first sample cell being any one of a plurality of sample cells; Plotting the absorbance values corresponding to different sample cell lengths into a curve graph, and determining the first optimal sample cell length according to the maximum value or maximum change rate in the curve graph.

4. The method of multi-species gas detection of claim 1, wherein, The determining the second optimal sample cell length of the other gas species according to the proportion coefficient and the first optimal sample cell length comprises: calculating the product of the proportion coefficient and the first optimal sample cell length to obtain a total length, and calculating the difference between the total length and the first optimal sample cell length as the second optimal sample cell length.

5. The method of multi-species gas detection of claim 1, wherein, The passing the total to-be-tested gas species into the adjusted segmented sample cell to obtain a standard curve model of each to-be-tested gas species comprises: controlling the opening and closing of different control valves to pass a third to-be-tested gas species into a corresponding sample cell, establishing an absorbance curve according to the known concentration points of the standard gas of the third to-be-tested gas species and the absorbance values corresponding to the known concentration points, and using the least square method to fit the absorbance curve to obtain a standard curve model, the third to-be-tested gas species being any one of the total to-be-tested gas species.

6. The method of multi-species gas detection of claim 5, wherein, The controlling the opening and closing of different control valves to pass a third to-be-tested gas species into a corresponding sample cell comprises: when the third to-be-tested gas species corresponds to a first sample cell, controlling the first control valve and the second control valve to be opened, and controlling the third control valve to be closed, the first control valve being arranged between the main pipeline and the inlet of the first sample cell, the second control valve being arranged between the main pipeline and the outlet of the first sample cell, the third control valve being arranged between the outlet of the first sample cell and the inlet of a second sample cell, the distance between the first sample cell and the filter being shorter than the distance between the second sample cell and the filter; when the third to-be-tested gas species corresponds to a second sample cell, controlling the first control valve, the third control valve and the fourth control valve to be opened, and controlling the second control valve to be closed, the fourth control valve being arranged between the outlet of the second sample cell and the main pipeline.

7. A system for multi-species gas detection, characterized by, The method comprises an analysis module, a proportion module, an adjustment module and an execution module, wherein: the analysis module is configured to perform infrared spectrum analysis on a standard sample of a first to-be-tested gas species to obtain an infrared spectrum graph, and compare the infrared spectrum graph with an infrared absorption spectrum graph of a filter to determine a target absorption area of the first to-be-tested gas species, the first to-be-tested gas species being any one of the total to-be-tested gas species; the proportion module is configured to normalize the absorption areas of other gas species in the total to-be-tested gas species according to the target absorption area to obtain a proportion coefficient of the other gas species and the first to-be-tested gas species, the proportion coefficient being greater than a preset value; The adjusting module is configured to determine a first optimal sample cell length of the first to-be-detected gas species, determine a second optimal sample cell length of the other gas species according to the proportion coefficient and the first optimal sample cell length, adjust the segmented sample cell according to the first optimal sample cell length and the second optimal sample cell length, and introduce the total to-be-detected gas species into the adjusted segmented sample cell to obtain a standard curve model of each to-be-detected gas species; The executing module is configured to, when receiving a second to-be-detected gas species input by a user, adjust a gas flow path according to the second to-be-detected gas species to input a to-be-detected gas into a corresponding sample cell, and calculate and display a real-time concentration of the to-be-detected gas through the standard curve model. The comparing the infrared spectrum with an infrared absorption spectrum of the filter to determine a target absorption area of the first to-be-detected gas species comprises: testing the filter by using an infrared spectrophotometer to obtain an infrared absorption spectrum from a high wave number to a low wave number, and obtaining a center wavelength and a half-peak width range of the filter according to the infrared absorption spectrum; comparing the infrared spectrum with the center wavelength and the half-peak width range to determine an absorption peak of the first to-be-detected gas species, fitting the absorption peak to obtain a fitting formula, and integrating the fitting formula to obtain an absorption area of the first to-be-detected gas species.

8. An electronic device, comprising: The electronic device comprises a processor, a memory, a user interface, and a network interface, the memory is configured to store instructions, the user interface and the network interface are configured to communicate with other devices, and the processor is configured to execute the instructions stored in the memory to enable the electronic device to perform the method of any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores instructions which, when executed, perform the method of any one of claims 1-6.

Citation Information

Patent Citations

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

    CN117147475A

  • Anesthetic gas concentration calibration method and system, electronic equipment and storage medium

    CN118130403A