A device and method for detecting hydrogen sulfide gas

By designing devices and methods for detecting hydrogen sulfide gas, and using infrared spectrum analysis and nonlinear resonance models, the detection signal recovery problem caused by incomplete desorption of gas-sensitive materials is solved, and rapid and accurate detection of hydrogen sulfide gas concentration is achieved. , improving the stability and repeatability of detection.

CN114839154BActive Publication Date: 2024-09-06HANGZHOU UNIV OF ELECTRONIC SCI & TECH PINGHU DIGITAL TECH INNOVATION RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210490007.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-09-06
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the existing technology, gas-sensitive materials require an "adsorption-desorption" process when detecting hydrogen sulfide gas. Incomplete desorption causes the detection signal to fail to return to the baseline, affecting the accuracy and repeatability of detection.

Method used

A device including a controller, detection chamber, air pump, infrared light source and infrared detection module is designed. Through cleaning, air extraction and infrared spectrum analysis, the nonlinear resonance model is used to calculate the characteristic signal-to-noise ratio and determine the area of ​​the envelope area. Determine the gas concentration to achieve fast and accurate hydrogen sulfide gas detection.

Benefits of technology

It achieves rapid and accurate detection of hydrogen sulfide gas concentration, with good detection repeatability and high stability, and avoids detection signal recovery problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114839154B
    Figure CN114839154B
Patent Text Reader

Abstract

The present invention discloses a device and method for detecting hydrogen sulfide gas. The device includes a controller, a detection chamber, a first air pump and a second air pump. Infrared light sources and infrared detection devices are symmetrically arranged on the left and right sides of the detection chamber. The infrared detection device includes a first infrared detection module and a second infrared detection module. A reference optical fiber is also arranged in the detection chamber. The two ends of the reference optical fiber are respectively connected to the infrared light source and the second infrared detection module. An air inlet and an air outlet are arranged on the detection chamber. A first electromagnetic valve is arranged on the air inlet, and a second electromagnetic valve is arranged on the air outlet. The air inlet is connected to the first air pump and the second air pump through a connecting pipeline. A pressure sensor is also arranged in the detection chamber. The present invention can quickly and accurately detect the concentration of hydrogen sulfide gas, and has good detection repeatability and high stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of poisonous gas detection, and in particular to a device and method for detecting hydrogen sulfide gas. Background Art

[0002] The chemical formula of hydrogen sulfide is H2S. It is colorless and has the smell of rotten eggs. Hydrogen sulfide is toxic, corrosive and flammable. It is usually produced by microorganisms when they decompose organic matter under anaerobic conditions. This process is usually called anaerobic digestion and is completed by sulfate-reducing bacteria. Under standard conditions, it is a flammable acidic gas.

[0003] At present, gas sensing elements are generally made of highly sensitive gas-sensitive materials to detect hydrogen sulfide gas. However, gas-sensitive materials usually require an "adsorption-desorption" process. If the desorption is not thorough, the sensing element cannot be restored to its initial state, that is, the detection signal cannot return to the baseline position, which results in poor detection repeatability and affects the accuracy of hydrogen sulfide gas detection. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a device and method for detecting hydrogen sulfide gas, which can quickly and accurately detect the concentration of hydrogen sulfide gas, and has good detection repeatability and high stability.

[0005] In order to solve the above problems, the present invention adopts the following technical solutions:

[0006] The present invention provides a device for detecting hydrogen sulfide gas, comprising a controller, a detection chamber, a first air pump and a second air pump, wherein infrared light sources and infrared detection devices are symmetrically arranged on left and right sides of the detection chamber, wherein the infrared detection device comprises a first infrared detection module and a second infrared detection module, wherein a reference optical fiber is also arranged in the detection chamber, wherein both ends of the reference optical fiber are respectively connected to the infrared light source and the second infrared detection module, wherein an air inlet and an air outlet are arranged in the detection chamber, wherein a first solenoid valve is arranged in the air inlet, and a second solenoid valve is arranged in the air outlet, wherein the air inlet is connected to the first air pump and the second air pump through a connecting pipeline, wherein an air pressure sensor is also arranged in the detection chamber, and wherein the controller is respectively electrically connected to the first air pump, the second air pump, the infrared light source, the first infrared detection module, the second infrared detection module, the first solenoid valve, the second solenoid valve and the air pressure sensor.

[0007] In this scheme, during detection, the first vacuum pump is first started to pass clean air from the air inlet of the detection chamber to clean the detection chamber. After t1 seconds of cleaning, the first vacuum pump is controlled to stop working, and the second vacuum pump is started to draw the gas to be tested into the detection chamber to exhaust the air in the detection chamber. After t2 seconds, the second solenoid valve is controlled to close, and the second vacuum pump continues to draw the gas to be tested into the detection chamber until the air pressure sensor detects that the air pressure in the detection chamber reaches 2 atmospheres, and then the first solenoid valve is controlled to close and the second vacuum pump is stopped. Then, the infrared light source is started to emit infrared light, the first infrared detection module detects the spectral data of the infrared light passing through the gas to be tested and sends it to the controller, the second infrared detection module detects the spectral data of the infrared light passing through the reference optical fiber and sends it to the controller, and the controller processes the spectral data detected by the first infrared detection module and the second infrared detection module to determine whether the gas to be tested is hydrogen sulfide gas. If it is hydrogen sulfide gas, the concentration of hydrogen sulfide gas is calculated.

[0008] Preferably, the device for detecting hydrogen sulfide gas further comprises a display, which is electrically connected to the controller and is used to display the detection result.

[0009] Preferably, the device for detecting hydrogen sulfide gas further comprises a wireless communication module, which is electrically connected to the controller and is used to send the detection result to cloud storage.

[0010] Preferably, the device for detecting hydrogen sulfide gas further comprises an exhaust gas treatment device for absorbing hydrogen sulfide gas, and the exhaust gas treatment device is connected to the gas outlet via a connecting pipeline to prevent the detected hydrogen sulfide gas from being discharged into the air.

[0011] A method for detecting hydrogen sulfide gas of the present invention is used in the above-mentioned device for detecting hydrogen sulfide gas, comprising the following steps:

[0012] S1: The first vacuum pump draws clean air into the detection chamber from the air inlet, and the air flows out from the air outlet of the detection chamber to clean the detection chamber for t1 seconds. After t1 seconds, the first vacuum pump stops working. The second vacuum pump draws the gas to be tested into the detection chamber to exhaust the air in the detection chamber for t2 seconds. After t2 seconds, the second solenoid valve is closed. When the air pressure sensor detects that the air pressure in the detection chamber reaches 2 atmospheres, the first solenoid valve is closed and the second vacuum pump stops working;

[0013] S2: Start the infrared light source to emit infrared light. After the infrared light passes through the gas to be tested, it is detected by the first infrared detection module. The first infrared detection module sends the detected spectrum data set D1 to the controller. The spectrum data set D1 includes n spectrum data. After the infrared light passes through the reference optical fiber, it is detected by the second infrared detection module. The second infrared detection module sends the detected spectrum data set D2 to the controller. The spectrum data set D2 includes n spectrum data. Each spectrum data consists of a wave number sp and a corresponding spectrum intensity wn.

[0014] S3: The controller arranges the spectral data in the spectral data set D1 from large to small according to the wave number to obtain a spectral data set L1, L1 = {G1(1), G1(2) ... G1(n)}, the i-th spectral data G1(i) in the spectral data set L1 = (wn1(i), sp1(i)), 1≤i≤n, sp1(i) is the spectral intensity in the spectral data G1(i), wn1(i) is the wave number in the spectral data G1(i);

[0015] The controller arranges the spectral data in the spectral data set D2 from large to small according to the wave number to obtain a spectral data set L2, L2 = {G2(1), G2(2) ... G2(n)}, the i-th spectral data G2(i) in the spectral data set L2 = (wn2(i), sp2(i)), sp2(i) is the spectral intensity in the spectral data G2(i), wn2(i) is the wave number in the spectral data G2(i);

[0016] The controller subtracts the spectral intensity of the spectral data in the spectral data set L2 from the spectral intensity of the spectral data in the spectral data set L1 to obtain the spectral data set L3, L3 = {G3(1), G3(2) ... G3(n)}, the i-th spectral data G3(i) in the spectral data set L3 = (wn3(i), sp3(i)),

[0017] Wherein, wn3(i)=wn2(i)-wn1(i), sp3(i)=sp1(i)=sp2(i), sp3(i) is the spectral intensity in the spectral data G3(i), wn3(i) is the wave number in the spectral data G3(i);

[0018] S4: The controller calculates the intensity wavenumber ratio tr corresponding to each spectral data in the spectral data set L3, and obtains the intensity wavenumber ratio data set T, where T = {tr(1), tr(2) ... tr(n)}, tr(i) is the intensity wavenumber ratio corresponding to the i-th spectral data G3(i) in the spectral data set L3, 1≤i≤n,

[0019] S5: The controller inputs the data in the intensity wavenumber ratio data set T into the nonlinear resonance model, calculates the characteristic signal-to-noise ratio SNR using the nonlinear resonance model. The controller takes the excitation noise intensity as the X-axis and the signal-to-noise ratio value as the Y-axis to establish a first rectangular coordinate system, and plots the characteristic signal-to-noise ratio curve in the first rectangular coordinate system;

[0020] S6: Draw an auxiliary line perpendicular to the Y-axis from the point with the maximum signal-to-noise ratio value on the characteristic signal-to-noise ratio curve;

[0021] Number the troughs on the characteristic signal-to-noise ratio curve as 1, 2... m from left to right in sequence, where m is the number of troughs on the characteristic signal-to-noise ratio curve. Select the first m - 1 troughs on the characteristic signal-to-noise ratio curve. Starting from each trough, draw a first connecting line passing through the adjacent wave peak on its left and a second connecting line passing through the adjacent wave peak on its right. Both the first connecting line and the second connecting line intersect with the auxiliary line. The first connecting line and the second connecting line starting from each trough enclose an envelope area corresponding to each trough, and calculate the area of the envelope area corresponding to each trough;

[0022] S7: The controller establishes a second rectangular coordinate system with the trough number as the x-axis and the envelope area as the y-axis, marks the points formed by each trough number and its corresponding envelope area in the second rectangular coordinate system, and performs linear fitting to obtain the formula y = kx + D. If g1 ≤ k ≤ g2, it indicates that the gas to be measured is hydrogen sulfide gas, and the concentration of hydrogen sulfide gas is If k < g1 or k > g2, it indicates that the gas to be measured is not hydrogen sulfide gas.

[0023] This solution uses a continuous "trough + adjacent wave peak" to determine the envelope area, calculates the area of the envelope area, performs linear fitting on the vector formed by the envelope areas, determines whether the gas to be measured is hydrogen sulfide gas according to the slope of the linear fitting straight line, and calculates the concentration of hydrogen sulfide gas according to the intercept, which has better stability than the direct infrared spectroscopy analysis method. This solution can quickly and accurately detect hydrogen sulfide gas and its concentration, with good detection repeatability and high stability.

[0024] Preferably, the step S5 includes the following steps:

[0025] The controller inputs the data in the intensity wavenumber ratio data set T into the nonlinear resonance model:

[0026]

[0027]

[0028] where x is the position of the virtual particle in the nonlinear resonance model, V(x) is the nonlinear symmetric potential function, A is the input signal intensity, and f0 is the modulation signal frequency. is the initial phase, D is the excitation noise intensity, a and b are coefficients, ξ(i) is the i-th Gaussian white noise, and its autocorrelation function is: E[ξ(i)ξ(0)]=2Dδ(i), δ(i) is the impulse function;

[0029] When D=D1, the nonlinear resonance model generates resonance and obtains the characteristic signal-to-noise ratio SNR.

[0030]

[0031] Where V0 is the potential barrier height;

[0032] The controller establishes a first rectangular coordinate system with the excitation noise intensity as the X-axis and the signal-to-noise ratio value as the Y-axis, and draws a characteristic signal-to-noise ratio curve in the first rectangular coordinate system.

[0033] Preferably, the step S7 also includes the following steps: the controller sends the detection result to the cloud server via the wireless communication module.

[0034] The beneficial effects of the present invention are: the concentration of hydrogen sulfide gas can be detected quickly and accurately, and the detection repeatability is good and the stability is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a structural schematic diagram of an embodiment;

[0036] Figure 2 It is a circuit principle connection block diagram of an embodiment;

[0037] Figure 3 is a schematic diagram of the characteristic signal-to-noise ratio curve;

[0038] Figure 4 It is a schematic diagram of linear fitting.

[0039] In the figure: 1. controller, 2. detection chamber, 3. first air pump, 4. second air pump, 5. infrared light source, 6. infrared detection device, 7. first infrared detection module, 8. second infrared detection module, 9. air inlet, 10. air outlet, 11. first solenoid valve, 12. second solenoid valve, 13. air pressure sensor, 14. display, 15. wireless communication module, 16. exhaust gas treatment device, 17. reference optical fiber. DETAILED DESCRIPTION

[0040] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.

[0041] Embodiment: A device for detecting hydrogen sulfide gas in this embodiment, such as Figure 1 , Figure 2As shown, it includes a controller 1, a detection chamber 2, a first air pump 3, a second air pump 4, a display 14, a wireless communication module 15, and an exhaust gas treatment device 16 for absorbing hydrogen sulfide gas. Infrared light sources 5 and infrared detection devices 6 are symmetrically arranged on the left and right sides of the detection chamber 2. The infrared detection device 6 includes a first infrared detection module 7 and a second infrared detection module 8. A reference optical fiber 17 is also arranged in the detection chamber 2. Both ends of the reference optical fiber 17 are connected to the infrared light source 5 and the second infrared detection module 8 respectively. An air inlet 9 and an air outlet 10 are arranged on the detection chamber 2. The air inlet 9 is provided with a first solenoid valve 11, and the air outlet 10 is provided with a second solenoid valve 12. The air inlet 9 is connected to the first air pump 3 and the second air pump 4 through a connecting pipeline. The exhaust gas treatment device 16 is connected to the air outlet 10 through a connecting pipeline. An air pressure sensor 13 is also provided in the detection chamber 2. The controller 1 is electrically connected to the first air pump 3, the second air pump 4, the infrared light source 5, the first infrared detection module 7, the second infrared detection module 8, the first solenoid valve 11, the second solenoid valve 12, the air pressure sensor 13, the display 14, and the wireless communication module 15 respectively.

[0042] In this scheme, during detection, the first vacuum pump is first started to pass clean air from the air inlet of the detection chamber to clean the detection chamber. After t1 seconds of cleaning, the first vacuum pump is controlled to stop working, and the second vacuum pump is started to draw the gas to be tested into the detection chamber to exhaust the air in the detection chamber. After t2 seconds, the second solenoid valve is controlled to close, and the second vacuum pump continues to draw the gas to be tested into the detection chamber until the air pressure sensor detects that the air pressure in the detection chamber reaches 2 atmospheres, and then the first solenoid valve is controlled to close and the second vacuum pump is stopped. Then, the infrared light source is started to emit infrared light, the first infrared detection module detects the spectral data of the infrared light passing through the gas to be tested and sends it to the controller, the second infrared detection module detects the spectral data of the infrared light passing through the reference optical fiber and sends it to the controller, the controller processes the spectral data detected by the first infrared detection module and the second infrared detection module, and determines whether the gas to be tested is hydrogen sulfide gas. If it is hydrogen sulfide gas, the concentration of hydrogen sulfide gas is calculated, the display shows the detection result, and the wireless communication module sends the detection result to the cloud storage. The tail gas treatment device absorbs hydrogen sulfide gas to prevent the detected hydrogen sulfide gas from being discharged into the air.

[0043] A method for detecting hydrogen sulfide gas in this embodiment, used in the above-mentioned device for detecting hydrogen sulfide gas, comprises the following steps:

[0044] S1: The first vacuum pump draws clean air into the detection chamber from the air inlet, and the air flows out from the air outlet of the detection chamber to clean the detection chamber for t1 seconds. After t1 seconds, the first vacuum pump stops working. The second vacuum pump draws the gas to be tested into the detection chamber to exhaust the air in the detection chamber for t2 seconds. After t2 seconds, the second solenoid valve is closed. When the air pressure sensor detects that the air pressure in the detection chamber reaches 2 atmospheres, the first solenoid valve is closed and the second vacuum pump stops working;

[0045] S2: Start the infrared light source to emit infrared light. After the infrared light passes through the gas to be tested, it is detected by the first infrared detection module. The first infrared detection module sends the detected spectrum data set D1 to the controller. The spectrum data set D1 includes n spectrum data. After the infrared light passes through the reference optical fiber, it is detected by the second infrared detection module. The second infrared detection module sends the detected spectrum data set D2 to the controller. The spectrum data set D2 includes n spectrum data. Each spectrum data consists of a wave number sp and a corresponding spectrum intensity wn.

[0046] S3: The controller arranges the spectral data in the spectral data set D1 from large to small according to the wave number to obtain a spectral data set L1, L1 = {G1(1), G1(2) ... G1(n)}, the i-th spectral data G1(i) in the spectral data set L1 = (wn1(i), sp1(i)), 1≤i≤n, sp1(i) is the spectral intensity in the spectral data G1(i), wn1(i) is the wave number in the spectral data G1(i);

[0047] The controller arranges the spectral data in the spectral data set D2 from large to small according to the wave number to obtain a spectral data set L2, L2 = {G2(1), G2(2) ... G2(n)}, the i-th spectral data G2(i) in the spectral data set L2 = (wn2(i), sp2(i)), sp2(i) is the spectral intensity in the spectral data G2(i), wn2(i) is the wave number in the spectral data G2(i);

[0048] The controller subtracts the spectral intensity of the spectral data in the spectral data set L2 from the spectral intensity of the spectral data in the spectral data set L1 to obtain the spectral data set L3, L3 = {G3(1), G3(2) ... G3(n)}, the i-th spectral data G3(i) in the spectral data set L3 = (wn3(i), sp3(i)),

[0049] Wherein, wn3(i)=wn2(i)-wn1(i), sp3(i)=sp1(i)=sp2(i), sp3(i) is the spectral intensity in the spectral data G3(i), wn3(i) is the wave number in the spectral data G3(i);

[0050] S4: The controller calculates the intensity wavenumber ratio tr corresponding to each spectral data in the spectral data set L3, and obtains the intensity wavenumber ratio data set T, where T = {tr(1), tr(2) ... tr(n)}, tr(i) is the intensity wavenumber ratio corresponding to the i-th spectral data G3(i) in the spectral data set L3, 1≤i≤n,

[0051] S5: The controller inputs the data in the intensity wavenumber ratio data set T into the nonlinear resonance model, calculates the characteristic signal-to-noise ratio SNR using the nonlinear resonance model, and establishes a first rectangular coordinate system with the excitation noise intensity as the X-axis and the signal-to-noise ratio value as the Y-axis, and draws a characteristic signal-to-noise ratio curve in the first rectangular coordinate system;

[0052] S6: Draw an auxiliary line perpendicular to the Y axis from the point with the maximum signal-to-noise ratio value on the characteristic signal-to-noise ratio curve to the Y axis;

[0053] The troughs on the characteristic signal-to-noise ratio curve are numbered 1, 2, ..., m from left to right, where m is the number of troughs on the characteristic signal-to-noise ratio curve. The first m-1 troughs on the characteristic signal-to-noise ratio curve are selected, and a first connecting line passing through the adjacent peak on the left side and a second connecting line passing through the adjacent peak on the right side are made from each trough as a starting point. Both the first connecting line and the second connecting line intersect with the auxiliary line. The first connecting line, the second connecting line and the auxiliary line starting from each trough enclose an envelope region corresponding to each trough, and the area of ​​the envelope region corresponding to each trough is calculated;

[0054] S7: The controller establishes a second rectangular coordinate system with the trough number as the x-axis and the envelope area as the y-axis. Each point consisting of the trough number and its corresponding envelope area is marked in the second rectangular coordinate system. The linear fitting formula y=kx+D is obtained. If 2.4≤k≤2.7, it means that the gas to be tested is hydrogen sulfide gas, and the concentration of hydrogen sulfide gas is If k<2.4 or k>2.7, it means the gas to be tested is not hydrogen sulfide gas;

[0055] The controller sends the detection results to the cloud server through the wireless communication module.

[0056] Step S5 includes the following steps:

[0057] The controller inputs the data in the intensity-wavenumber ratio data set T into the nonlinear resonance model:

[0058]

[0059] Where x is the position of the virtual particle in the nonlinear resonance model, V(x) is the nonlinear symmetric potential function, A is the input signal intensity, f0 is the modulation signal frequency, is the initial phase, D is the excitation noise intensity, a and b are coefficients, ξ(i) is the i-th Gaussian white noise, and its autocorrelation function is: E[ξ(i)ξ(0)]=2Dδ(i), δ(i) is the impulse function;

[0060] When D=D1, the nonlinear resonance model generates resonance and obtains the characteristic signal-to-noise ratio SNR.

[0061]

[0062] Where V0 is the potential barrier height;

[0063] The controller establishes a first rectangular coordinate system with the excitation noise intensity as the X-axis and the signal-to-noise ratio value as the Y-axis, and draws a characteristic signal-to-noise ratio curve in the first rectangular coordinate system.

[0064] This scheme uses the continuous "trough + adjacent peak" to determine the envelope area, calculates the area of ​​the envelope area, performs linear fitting on the vector formed by the area of ​​the envelope area, determines whether the gas to be tested is hydrogen sulfide gas based on the slope of the linear fitting line, and calculates the concentration of hydrogen sulfide gas based on the intercept. This scheme has better stability than the direct analysis method of infrared spectroscopy. This scheme can quickly and accurately detect hydrogen sulfide gas and its concentration, with good detection repeatability and high stability.

[0065] After detecting a gas to be tested, this embodiment marks each trough number and the point formed by the corresponding envelope area in the second rectangular coordinate system, such as Figure 4 As shown, the linear fitting formula y=2.55x+26.08 is obtained. Since k=2.55, the gas to be measured is hydrogen sulfide gas, and the concentration of hydrogen sulfide gas is 5.139 ppm.

[0066] After drawing the characteristic signal-to-noise ratio curve in the first rectangular coordinate system, draw the envelope area corresponding to each trough as follows:

[0067] Figure 3 The characteristic signal-to-noise ratio curve drawn by the controller in the first rectangular coordinate system when detecting a gas to be tested. Figure 2 The trough numbered 1 on the characteristic signal-to-noise ratio curve is point o, the adjacent peak on its left is point p, and the adjacent peak on its right is point q. A first connecting line is made from point o through point p, and a second connecting line is made from point o through point q. The first connecting line intersects with the auxiliary line at point m, and the second connecting line intersects with the auxiliary line at point n. The envelope area corresponding to the trough numbered 1 is triangle omn. Draw the envelope area corresponding to each trough from left to right in the above method until the second to last trough.

Claims

1. A method for detecting hydrogen sulfide gas, for a device for detecting hydrogen sulfide gas, the device for detecting hydrogen sulfide gas comprising a controller (1), a detection chamber (2), a first air pump (3) and a second air pump (4), an infrared light source (5) and an infrared detection device (6) are symmetrically arranged on the left and right sides of the detection chamber (2), the infrared detection device (6) comprises a first infrared detection module (7) and a second infrared detection module (8), a reference optical fiber (17) is further arranged in the detection chamber (2), two ends of the reference optical fiber (17) are respectively connected to the infrared light source (5) and the second infrared detection module (8), the detection chamber ( 2) is provided with an air inlet (9) and an air outlet (10), the air inlet (9) is provided with a first solenoid valve (11), the air outlet (10) is provided with a second solenoid valve (12), the air inlet (9) is connected to a first air pump (3) and a second air pump (4) through a connecting pipeline, an air pressure sensor (13) is also provided in the detection chamber (2), the controller (1) is respectively electrically connected to the first air pump (3), the second air pump (4), an infrared light source (5), a first infrared detection module (7), a second infrared detection module (8), the first solenoid valve (11), the second solenoid valve (12), and the air pressure sensor (13), characterized in that: The following steps are involved: S1: The first vacuum pump draws clean air into the detection chamber from the air inlet, and the air flows out from the air outlet of the detection chamber to clean the detection chamber for t1 seconds. After t1 seconds, the first vacuum pump stops working. The second vacuum pump draws the gas to be tested into the detection chamber to exhaust the air in the detection chamber for t2 seconds. After t2 seconds, the second solenoid valve is closed. When the air pressure sensor detects that the air pressure in the detection chamber reaches 2 atmospheres, the first solenoid valve is closed and the second vacuum pump stops working; S2: Start the infrared light source to emit infrared light. After the infrared light passes through the gas to be tested, it is detected by the first infrared detection module. The first infrared detection module sends the detected spectrum data set D1 to the controller. The spectrum data set D1 includes n spectrum data. After the infrared light passes through the reference optical fiber, it is detected by the second infrared detection module. The second infrared detection module sends the detected spectrum data set D2 to the controller. The spectrum data set D2 includes n spectrum data. Each spectrum data consists of a wave number sp and a corresponding spectrum intensity wn. S3: The controller arranges the spectral data in the spectral data set D1 from large to small according to the wave number to obtain a spectral data set L1, L1 = {G1(1), G1(2) ... G1(n)}, the i-th spectral data G1(i) in the spectral data set L1 = (wn1(i), sp1(i)), 1≤i≤n, sp1(i) is the spectral intensity in the spectral data G1(i), wn1(i) is the wave number in the spectral data G1(i); The controller arranges the spectral data in the spectral data set D2 from large to small according to the wave number to obtain a spectral data set L2, L2 = {G2(1), G2(2) ... G2(n)}, the i-th spectral data G2(i) in the spectral data set L2 = (wn2(i), sp2(i)), sp2(i) is the spectral intensity in the spectral data G2(i), wn2(i) is the wave number in the spectral data G2(i); The controller subtracts the spectral intensity of the spectral data in the spectral data set L2 from the spectral intensity of the spectral data in the spectral data set L1 to obtain the spectral data set L3, L3 = {G3(1), G3(2) ... G3(n)}, the i-th spectral data G3(i) in the spectral data set L3 = (wn3(i), sp3(i)), Wherein, wn3(i)=wn2(i)-wn1(i), sp3(i)=sp1(i)=sp2(i), sp3(i) is the spectral intensity in the spectral data G3(i), wn3(i) is the wave number in the spectral data G3(i); S4: The controller calculates the intensity wavenumber ratio tr corresponding to each spectral data in the spectral data set L3, and obtains the intensity wavenumber ratio data set T, where T = {tr(1), tr(2) ... tr(n)}, tr(i) is the intensity wavenumber ratio corresponding to the i-th spectral data G3(i) in the spectral data set L3, 1≤i≤n, S5: The controller inputs the data in the intensity wavenumber ratio data set T into the nonlinear resonance model, calculates the characteristic signal-to-noise ratio SNR using the nonlinear resonance model, and establishes a first rectangular coordinate system with the excitation noise intensity as the X-axis and the signal-to-noise ratio value as the Y-axis, and draws a characteristic signal-to-noise ratio curve in the first rectangular coordinate system; S6: Draw an auxiliary line perpendicular to the Y axis from the point with the maximum signal-to-noise ratio value on the characteristic signal-to-noise ratio curve to the Y axis; The troughs on the characteristic signal-to-noise ratio curve are numbered 1, 2, ..., m from left to right, where m is the number of troughs on the characteristic signal-to-noise ratio curve. The first m-1 troughs on the characteristic signal-to-noise ratio curve are selected, and a first connecting line passing through the adjacent peak on the left side and a second connecting line passing through the adjacent peak on the right side are made from each trough as a starting point. Both the first connecting line and the second connecting line intersect with the auxiliary line. The first connecting line, the second connecting line and the auxiliary line starting from each trough enclose an envelope region corresponding to each trough, and the area of ​​the envelope region corresponding to each trough is calculated; S7: The controller establishes a second rectangular coordinate system with the trough number as the x-axis and the envelope area as the y-axis. Each point consisting of the trough number and its corresponding envelope area is marked in the second rectangular coordinate system. The linear fitting formula y=kx+D is obtained. If g1≤k≤g2, it means that the gas to be tested is hydrogen sulfide gas, and the concentration of hydrogen sulfide gas is If k<g1 or k>g2, it means that the gas to be tested is not hydrogen sulfide gas.

2. A method for detecting hydrogen sulfide gas according to claim 1, characterized in that: The device for detecting hydrogen sulfide gas further comprises a display (14), and the display (14) is electrically connected to the controller (1).

3. A method for detecting hydrogen sulfide gas according to claim 1, characterized in that: The device for detecting hydrogen sulfide gas further comprises a wireless communication module (15), and the wireless communication module (15) is electrically connected to the controller (1).

4. A method for detecting hydrogen sulfide gas according to claim 1, characterized in that: The device for detecting hydrogen sulfide gas further comprises a tail gas treatment device (16) for absorbing hydrogen sulfide gas, and the tail gas treatment device (16) is connected to the gas outlet (10) via a connecting pipeline.

5. A method for detecting hydrogen sulfide gas according to claim 1, characterized in that: The step S7 also includes the following steps: the controller sends the detection result to the cloud server via the wireless communication module.