A container fumigation gas concentration detection method, system and infrared sensing device

By using a patch infrared sensor device in the container to obtain infrared spectra and perform image preprocessing and environmental impact formula correction, the accuracy of fumigation gas concentration detection is solved, and accurate detection of fumigation gas concentration is achieved.

CN120177405BActive Publication Date: 2025-09-02ANIMAL & PLANT & FOOD INSPECTION CENT OF TIANJIN ENTRY EXIT INSPECTION & QUARANTINE BUREAU +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510640836.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2025-09-02
Estimated Expiration
2045-05-19

AI Technical Summary

Technical Problem

In the prior art, the fumigation gas concentration detection method cannot accurately detect the concentration of methane bromine, which is disturbed by other gas absorption spectrums, and the detection process is harmful to the human body.

Method used

The infrared spectrum in the container is obtained through a patch infrared sensing device, which eliminates the influence of other gases and ambient temperatures, and uses image preprocessing and environmental impact formulas to improve detection accuracy.

Benefits of technology

Accurate detection of fumigation gas concentration is achieved, eliminating the impact of other gases and temperature on the detection results, and improving detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120177405B_ABST
    Figure CN120177405B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, and infrared sensing device for detecting container fumigation gas concentration. The method includes: obtaining a detection spectrum; determining one or more first impact values ​​of a mixed gas based on the detection spectrum; calculating a gas concentration fluctuation value of the first impact value and a gas concentration sampling value of the first impact value; inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine a gas concentration output value of the first impact value; when the first impact value is another gas, updating the detection spectrum based on the gas concentration output value of the first impact value; calculating a gas concentration output value of the next first impact value based on the updated detection spectrum; and when the first impact value is fumigation gas, determining the gas concentration output value of the first impact value as the gas concentration of the fumigation gas. The present invention improves the accuracy of fumigation gas concentration detection by eliminating the influence of other gases and ambient temperature on the detection results.
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 concentration detection, and more specifically, to a method, system and infrared sensing device for detecting container fumigation gas concentration. Background Art

[0002] Port quarantine can diagnose foreign pests immediately, and quarantine treatment is a crucial measure to mitigate the invasion of foreign pests. Currently, fumigation remains the most economical and effective plant quarantine method, quickly eliminating live insects, pathogens, and other pests carried in cargo. However, the effectiveness of the quarantine treatment process (i.e., whether the fumigant concentration meets the required standards) and the safe dispersal of the poison after treatment require quarantine supervisors to wear gas masks and repeatedly approach the fumigation target after administering the fumigant. Fumigants can be extremely toxic to humans under certain conditions.

[0003] Existing methods for detecting fumigant gas concentrations (using methyl bromide as an example) typically utilize methyl bromide's absorption of light in the mid-infrared region (6.82-9μm). When a constant beam of infrared light at 6.82-9μm passes through a medium containing methyl bromide, the light energy is absorbed by the gas, attenuating the light flux. The attenuated light energy is then measured to determine the methyl bromide concentration. This method is widely used, but the absorption spectra of other gases in the mid-infrared region, such as moisture and carbon dioxide, interfere with the detection accuracy and lower limit of methyl bromide, making it inaccurate for methyl bromide concentration.

[0004] Therefore, the prior art has defects and is in urgent need of improvement. Summary of the Invention

[0005] In light of the above issues, the present invention aims to provide a method, system, and infrared sensor device for detecting container fumigation gas concentration. This method, using a patch-type infrared sensor, obtains infrared spectra of the gases within the container, improving detection efficiency. Furthermore, by eliminating the influence of other gases and ambient temperature on the detection results, the accuracy of fumigation gas concentration detection is improved.

[0006] A first aspect of the present invention provides a method for detecting the concentration of fumigant gas in a container, comprising:

[0007] Obtaining a detection spectrum;

[0008] Analyze the detection spectrum to determine one or more first impact values ​​of the mixed gas; the first impact values ​​include fumigant gas and other gases;

[0009] Calculating the gas concentration fluctuation value of each first impact value, sorting all the first impact values ​​in ascending order according to the gas concentration fluctuation value, and calculating the gas concentration sampling value of each first impact value in sequence according to the sorting order;

[0010] Inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value;

[0011] When the first impact value is other gases, updating the detection spectrum according to the gas concentration output value of the first impact value;

[0012] recalculating the gas concentration fluctuation value of each remaining first impact value based on the updated detection spectrum, updating the sorting order of the remaining first impact values, and calculating the gas concentration output value of the next first impact value;

[0013] When the first impact value is fumigant gas, the gas concentration output value of the first impact value is determined as the gas concentration of the fumigant gas.

[0014] This plan also includes:

[0015] The detection spectrum is subjected to image preprocessing; the image preprocessing includes noise smoothing and baseline correction.

[0016] In this solution, analyzing the detection spectrum to determine one or more first impact values ​​of the mixed gas includes:

[0017] Analyze the detected spectrum, extract the wavelength interval of each characteristic peak in the detected spectrum, and determine one or more first wavelength intervals;

[0018] Obtain a sample spectrum of a preset gas;

[0019] Extracting the wavelength range of each characteristic peak in the sample spectrum of the preset gas to determine one or more second wavelength ranges;

[0020] Calculate the interval overlap rate p of each second wavelength interval and each first wavelength interval a , determine the maximum interval overlap rate p of each second wavelength interval b ;

[0021] According to the maximum interval overlap rate p of each second wavelength interval b Calculating a presence score P of the preset gas;

[0022] ;

[0023] Among them, k b(1) 、k b(2) and k b(n)are the influence coefficients of the 1st, 2nd and nth characteristic peaks of the preset gas, p b(1) 、p b(2) and p b(n) are the maximum interval overlap rates of the first, second and nth characteristic peaks of the preset gas corresponding to the second wavelength interval, respectively, and N is the total number of characteristic peaks of the preset gas;

[0024] When the presence score P is greater than a preset presence score threshold, the preset gas is determined as a first impact value.

[0025] In this solution, the calculation of the gas concentration fluctuation value of each first impact value includes:

[0026] Based on the wavelength interval corresponding to the characteristic peak of the first impact value, corresponding characteristic peak images are intercepted from the detection spectrum to determine one or more first characteristic peak images;

[0027] When there is only one first characteristic peak image for the first influence value, filtering the first influence value;

[0028] Determine the first gas concentration x of the first influencing value according to the peak value and wavelength range of the first characteristic peak image i 1(i) ;

[0029] According to the first gas concentration x 1(i) Calculate the gas concentration fluctuation value G of the first impact value;

[0030] ;

[0031] in, is the average first gas concentration of the first influencing value, and m is the total number of first gas concentrations of the first influencing value.

[0032] In this solution, the gas concentration sampling value of each first impact value is calculated in sequence according to the sorting order, including:

[0033] Select the first impact value with the smallest gas concentration fluctuation value, and determine whether the gas concentration fluctuation value G of the first impact value is less than the preset minimum gas concentration fluctuation value threshold G min ;

[0034] If so, the average first gas concentration of the first impact value is Determine the gas concentration sampling value A as the first impact value;

[0035] If not, calculate the second gas concentration x2 of the first impact value, and determine the second gas concentration x2 as the gas concentration sampling value A of the first impact value.

[0036] In this solution, the calculation of the second gas concentration x2 of the first impact value includes:

[0037] When the gas concentration fluctuation value G of the first impact value is within the preset minimum gas concentration fluctuation value threshold G min and the preset maximum gas concentration fluctuation threshold G max When the average first gas concentration of the first impact value is A third gas concentration x3 is determined as the first impact value;

[0038] determining a plurality of second characteristic peak images according to a third gas concentration x3 of the first influencing value;

[0039] Calculating a characteristic peak fluctuation value of a characteristic peak corresponding to the first influence value according to the second characteristic peak image and the first characteristic peak image of the first influence value;

[0040] Filtering characteristic peaks whose characteristic peak fluctuation values ​​are greater than a preset characteristic peak fluctuation threshold, calculating an average value of the first gas concentration corresponding to the remaining characteristic peaks, and determining the second gas concentration x2 of the first impact value;

[0041] When the gas concentration fluctuation value G of the first impact value is greater than the preset maximum gas concentration fluctuation value threshold G max , select to analyze the next first impact value.

[0042] In this solution, inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value includes:

[0043] Get the ambient temperature T;

[0044] Inputting the gas concentration sampling value of the first impact value and the ambient temperature T into a preset environmental impact formula, correcting the gas concentration sampling value A using the preset environmental impact formula, and determining the gas concentration output value Q(TA) of the first impact value;

[0045] ;

[0046] Wherein, Q(TA) is the gas concentration output value, T is the ambient temperature, A is the gas concentration sampling value, and k1, k2, k3, k4, k5, k6, k7 and k8 are all regression coefficients.

[0047] In this solution, when the first impact value is other gases, updating the detection spectrum according to the gas concentration output value of the first impact value includes:

[0048] Determine the first molecular concentration corresponding to each characteristic peak according to the gas concentration output value Q(TA) of the first impact value;

[0049] determining a second molecule concentration corresponding to each characteristic peak according to the first characteristic peak image;

[0050] Calculating the concentration difference between the second molecule concentration corresponding to each characteristic peak and the first molecule concentration to determine the third molecule concentration corresponding to each characteristic peak;

[0051] The peak value of the corresponding characteristic peak is adjusted based on the concentration of the third molecule, and the detection spectrum is updated.

[0052] A second aspect of the present invention provides a container fumigation gas concentration detection system, comprising:

[0053] A data acquisition module, used for acquiring a detection spectrum;

[0054] a gas type analysis module, configured to analyze the detection spectrum to determine one or more first impact values ​​of the mixed gas; the first impact values ​​include fumigant gas and other gases;

[0055] a gas concentration fluctuation calculation module, configured to calculate the gas concentration fluctuation value of each first impact value, sort all first impact values ​​in ascending order of the gas concentration fluctuation value, and calculate the gas concentration sampling value of each first impact value in sequence according to the sorting order;

[0056] A gas concentration calculation module, configured to input the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value;

[0057] a data adjustment module, configured to update the detection spectrum according to the gas concentration output value of the first impact value when the first impact value is other gases; recalculate the gas concentration fluctuation value of each remaining first impact value based on the updated detection spectrum, update the sorting order of the remaining first impact values, and calculate the gas concentration output value of the next first impact value;

[0058] The data output module is configured to determine the gas concentration output value of the first impact value as the gas concentration of the fumigant gas when the first impact value is fumigant gas.

[0059] A third aspect of the present invention provides an infrared sensor device, which is a patch-type infrared sensor device and includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the container fumigation gas concentration detection method described above are implemented.

[0060] The present invention discloses a method, system, and infrared sensing device for detecting container fumigation gas concentration. The method includes: obtaining a detection spectrum; determining one or more first impact values ​​of a mixed gas based on the detection spectrum; calculating a gas concentration fluctuation value of the first impact value and a gas concentration sampling value of the first impact value; inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine a gas concentration output value of the first impact value; when the first impact value is another gas, updating the detection spectrum based on the gas concentration output value of the first impact value; calculating a gas concentration output value of the next first impact value based on the updated detection spectrum; and when the first impact value is fumigation gas, determining the gas concentration output value of the first impact value as the gas concentration of the fumigation gas. The present invention improves the accuracy of fumigation gas concentration detection by eliminating the influence of other gases and ambient temperature on the detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A flow chart of a method for detecting container fumigation gas concentration provided by the present invention is shown;

[0062] Figure 2 A flow chart showing a first impact value determination method provided by the present invention is shown;

[0063] Figure 3 A flow chart showing a method for calculating a gas concentration fluctuation value of a first impact value provided by the present invention;

[0064] Figure 4 A block diagram of a container fumigation gas concentration detection system provided by the present invention is shown. DETAILED DESCRIPTION

[0065] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.

[0066] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present invention is not limited to the specific embodiments disclosed below.

[0067] Figure 1 A flow chart of a container fumigation gas concentration detection method provided by the present invention is shown.

[0068] like Figure 1 As shown, the present invention discloses a method for detecting the concentration of fumigation gas in a container, comprising:

[0069] S102, obtaining a detection spectrum;

[0070] S104, analyzing the detected spectrum to determine one or more first impact values ​​of the mixed gas; the first impact values ​​include fumigant gas and other gases;

[0071] S106, calculating the gas concentration fluctuation value of each first impact value, sorting all the first impact values ​​in ascending order of the gas concentration fluctuation value, and calculating the gas concentration sampling value of each first impact value in sequence according to the sorting order;

[0072] S108, inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value;

[0073] S110, when the first impact value is other gases, updating the detection spectrum according to the gas concentration output value of the first impact value;

[0074] S112, recalculating the gas concentration fluctuation value of each remaining first impact value based on the updated detection spectrum, updating the sorting order of the remaining first impact values, and calculating the gas concentration output value of the next first impact value;

[0075] S114 , when the first impact value is fumigant gas, determining the gas concentration output value of the first impact value as the gas concentration of the fumigant gas.

[0076] According to an embodiment of the present invention, a database is established by collecting infrared spectrum samples of various gases at different concentrations and different ambient temperatures.

[0077] A patch-type infrared sensor installed on the container detects gases within the container and acquires a detection spectrum. The patch-type infrared sensor is equipped with a receiving and transmitting module. The microprocessor acquires signals and can be remotely controlled. Data is transmitted to an analytical instrument, which analyzes the acquired detection spectrum to determine the concentration of the fumigant gas within the container. A mixture of multiple gases is typically present within a container, including the fumigant gas used and other gases present in the air, such as nitrogen, oxygen, and carbon dioxide. The detection spectrum is first preprocessed through image preprocessing, including noise smoothing and baseline correction. The preprocessed detection spectrum is analyzed to extract the wavelength ranges of each characteristic peak and determine a first wavelength range. The type of the predetermined gas is determined based on the fumigant gas type. A second wavelength range is determined based on the sample spectrum of the predetermined gas. The overlap ratio between each second wavelength range and each first wavelength range is calculated, and the maximum overlap ratio for each second wavelength range is determined. A presence score for the predetermined gas is then calculated. The presence score is used to determine the presence of the predetermined gas within the container and determine a first impact value (including fumigant gas and other gases) within the container. A first characteristic peak image corresponding to the characteristic peak of the first influencing value is captured from the detection spectrum, and the gas concentration fluctuation value of the first influencing value is calculated. The first influencing value with the smallest gas concentration fluctuation value is selected and compared with the corresponding preset minimum gas concentration fluctuation value threshold to determine the gas concentration sampling value of the first influencing value. The gas concentration sampling value of the first influencing value is corrected using a preset environmental impact formula based on the current ambient temperature (which can be obtained from a temperature sensor) to determine the gas concentration output value of the first influencing value. If the first influencing value is another gas, the portion of the first influencing value that affects it is removed from the detection spectrum. The detection spectrum is updated, and the gas concentration fluctuation values ​​of the remaining first influencing values ​​are recalculated based on the updated detection spectrum. The sorting order of the first influencing values ​​is updated. This process is repeated until the gas concentration output value of the fumigant gas is determined, which is then determined as the fumigant gas concentration. The fumigant gas concentration is then visualized on a preset terminal such as a monitor or mobile phone, as needed.

[0078] According to an embodiment of the present invention, the further embodiment includes:

[0079] Perform image preprocessing on the detection spectrum; image preprocessing includes noise smoothing and baseline correction.

[0080] It should be noted that before analyzing the detected spectra, image preprocessing is performed to eliminate interfering signals, enhance the effective signal, and optimize feature extraction. Noise smoothing is achieved using methods such as Savitzky-Golay filtering, moving averages, and wavelet transforms. The goal is to reduce random noise, eliminate interfering signals, and preserve signal characteristics. Baseline correction is achieved using methods such as first-order and second-order derivatives, polynomial fitting (ModPoly, IModPoly), and adaptive iterative reweighting (AirPLS).

[0081] Figure 2 A flow chart of a first impact value determination method provided by the present invention is shown.

[0082] like Figure 2 As shown, according to an embodiment of the present invention, analyzing the detection spectrum to determine one or more first impact values ​​of the mixed gas includes:

[0083] S202, analyzing the detection spectrum, extracting the wavelength intervals of each characteristic peak in the detection spectrum, and determining one or more first wavelength intervals;

[0084] S204, obtaining a sample spectrum of a preset gas;

[0085] S206, extracting the wavelength range of each characteristic peak in the sample spectrum of the preset gas, and determining one or more second wavelength ranges;

[0086] S208, calculating the interval overlap rate p of each second wavelength interval and each first wavelength interval a , determine the maximum interval overlap rate p of each second wavelength interval b ;

[0087] S210, according to the maximum interval overlap rate p of each second wavelength interval, b Calculate the presence score P of the preset gas;

[0088] ;

[0089] Among them, k b(1) 、k b(2) and k b(n) are the influence coefficients of the 1st, 2nd and nth characteristic peaks of the preset gas, p b(1) 、p b(2) and p b(n) are the maximum interval overlap rates of the first, second and nth characteristic peaks of the preset gas corresponding to the second wavelength interval, respectively, and N is the total number of characteristic peaks of the preset gas;

[0090] S212: When the presence score P is greater than a preset presence score threshold, the preset gas is determined as a first impact value.

[0091] It should be noted that the wavelength range corresponding to each single or continuous characteristic peak in the detected spectrum is determined as the first wavelength range. The type of preset gas is determined by the type of fumigant gas used, including gases that may be generated during fumigation (for example, methane (CH4) and carbon dioxide (CO2) when using methyl bromide (CH3Br)) and gases present in air (such as nitrogen (N2) and oxygen (O2)). Based on the type of preset gas and the current ambient temperature, infrared spectrum samples of the preset gas that display each wavelength corresponding to the characteristic peak are retrieved from the database and determined as the sample spectrum of the preset gas. The wavelength range corresponding to each single or continuous characteristic peak in the sample spectrum of the preset gas is determined as the second wavelength range. The overlap ratio of the second wavelength range with the first wavelength range is determined based on the overlapping wavelength range of the second wavelength range and the second wavelength range. The maximum overlap ratio is determined as the maximum overlap ratio of the second wavelength range. The maximum overlap ratio of each second wavelength range is input into the preset gas presence score calculation formula to determine the presence score of the preset gas.

[0092] Among them, the influence coefficients k of the 1st, 2nd and nth characteristic peaks of the preset gas are b(1) 、k b(2) and k b(n) The specific value of is determined by the peak height ratio of the first, second and nth characteristic peaks of the preset gas in the sample spectrum. The preset existence score threshold is set by those skilled in the art according to actual needs.

[0093] Figure 3 A flow chart of the method for calculating the gas concentration fluctuation value of the first impact value provided by the present invention is shown.

[0094] like Figure 3 As shown, according to an embodiment of the present invention, calculating the gas concentration fluctuation value of each first impact value includes:

[0095] S302, intercepting corresponding characteristic peak images from the detection spectrum based on the wavelength interval corresponding to the characteristic peak of the first influence value to determine one or more first characteristic peak images;

[0096] S304, when there is only one first characteristic peak image for the first influence value, filtering the first influence value;

[0097] S306: Determine the first gas concentration x of the first impact value according to the peak value and wavelength range of the first characteristic peak image i. 1(i) ;

[0098] S308, according to the first gas concentration x 1(i) Calculate the gas concentration fluctuation value G of the first impact value;

[0099] ;

[0100] in, is the average first gas concentration of the first influencing value, and m is the total number of first gas concentrations of the first influencing value.

[0101] It should be noted that when only one first characteristic peak image exists for the first impact value, the gas concentration fluctuation value of the first impact value cannot be calculated using the first gas concentration of the first impact value, and thus filtering is preferred. Infrared spectrum samples of different gas concentrations of the first impact value at the current ambient temperature are selected from the database. Based on the peak value and wavelength range of the first characteristic peak image i, the first characteristic peak image i is compared with the infrared spectrum sample to determine the first gas concentration corresponding to the peak value and wavelength range of the first characteristic peak image i, thereby determining the first gas concentration of the first impact value. Each first characteristic peak image corresponds to a first gas concentration. After determining the first gas concentrations corresponding to all first characteristic peak images, all of them are input into the preset gas concentration fluctuation value calculation formula to determine the gas concentration fluctuation value of the first impact value.

[0102] Among them, the average first gas concentration of the first impact value The first impact value is determined by calculating the average value of all first gas concentrations.

[0103] According to an embodiment of the present invention, calculating the gas concentration sampling value of each first impact value in sequence according to the sorting order includes:

[0104] Select the first impact value with the smallest gas concentration fluctuation value, and determine whether the gas concentration fluctuation value G of the first impact value is less than the preset minimum gas concentration fluctuation value threshold G min ;

[0105] If so, the average first gas concentration of the first impact value is A gas concentration sampling value A is determined as a first impact value;

[0106] If not, the second gas concentration x2 of the first influencing value is calculated, and the second gas concentration x2 is determined as the gas concentration sampling value A of the first influencing value.

[0107] It should be noted that the preset minimum gas concentration fluctuation threshold G min It is set by those skilled in the art according to actual needs to determine the maximum gas concentration fluctuation value of the infrared spectrum of the first impact value without being interfered with by other gas concentrations. When the gas concentration fluctuation value G of the first impact value is less than the preset minimum gas concentration fluctuation value threshold G min When it is determined that the fluctuation value of the first gas concentration corresponding to each characteristic peak of the first impact value is small, the average first gas concentration of the first impact value is directly converted to The gas concentration sampling value A of the first impact value is determined. Conversely, by filtering out characteristic peaks with larger characteristic peak fluctuation values ​​in the first impact value, and calculating the average value of the remaining characteristic peaks corresponding to the first impact value, the second gas concentration x2 of the first impact value is determined, and the second gas concentration x2 of the first impact value is determined as the gas concentration sampling value A of the first impact value.

[0108] According to an embodiment of the present invention, calculating the second gas concentration x2 of the first impact value includes:

[0109] When the gas concentration fluctuation value G of the first impact value is within the preset minimum gas concentration fluctuation value threshold G min and the preset maximum gas concentration fluctuation threshold G max When the average first gas concentration of the first impact value is A third gas concentration x3 is determined as the first impact value;

[0110] determining a plurality of second characteristic peak images according to the third gas concentration x3 of the first influencing value;

[0111] Calculating a characteristic peak fluctuation value of a characteristic peak corresponding to the first influence value according to the second characteristic peak image and the first characteristic peak image of the first influence value;

[0112] Filtering characteristic peaks whose characteristic peak fluctuation values ​​are greater than a preset characteristic peak fluctuation threshold, calculating an average value of the first gas concentration corresponding to the remaining characteristic peaks, and determining the second gas concentration x2 of the first influencing value;

[0113] When the gas concentration fluctuation value G of the first impact value is greater than the preset maximum gas concentration fluctuation value threshold G max , select to analyze the next first impact value.

[0114] It should be noted that the preset maximum gas concentration fluctuation threshold G max It is set by those skilled in the art according to actual needs. In order to determine the minimum gas concentration fluctuation value of the infrared spectrum of the first impact value being interfered by other gas concentrations, G max >G min When G min <G<G max When the infrared spectrum of the first impact value is affected by the concentration of other gases, the average first gas concentration of the first impact value is The third gas concentration x3 is determined as the first impact value. Based on the third gas concentration x3 of the first impact value, a corresponding infrared spectrum sample is retrieved from the database. Multiple second characteristic peak images are intercepted from the infrared spectrum sample according to the wavelength range corresponding to the characteristic peak of the first impact value. Each second characteristic peak image is compared with the corresponding first characteristic peak image according to the wavelength range corresponding to the characteristic peak of the first impact value. The characteristic peak fluctuation value of the corresponding characteristic peak is determined based on the peak difference between the two and the ratio of the second characteristic peak image. The characteristic peak fluctuation value of each characteristic peak is compared with the corresponding preset characteristic peak fluctuation threshold value. Some characteristic peaks are filtered out, and the second gas concentration x2 of the first impact value is determined by calculating the average value of the first gas concentration corresponding to the remaining characteristic peaks.

[0115] The size of the preset characteristic peak fluctuation threshold is affected by the peak height of the characteristic peak, and its specific value is set by those skilled in the art according to actual needs.

[0116] According to an embodiment of the present invention, inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value includes:

[0117] Get the ambient temperature T;

[0118] The gas concentration sampling value of the first impact value and the ambient temperature T are input into a preset environmental impact formula, and the gas concentration sampling value A is corrected by the preset environmental impact formula to determine the gas concentration output value Q(TA) of the first impact value;

[0119] ;

[0120] Wherein, Q(TA) is the gas concentration output value, T is the ambient temperature, A is the gas concentration sampling value, and k1, k2, k3, k4, k5, k6, k7 and k8 are all regression coefficients.

[0121] It should be noted that the detection equipment's components and optical path structures are affected by temperature. Hardware compensation (such as circuit adjustments) is limited in effectiveness. Due to various factors, the gas concentration samples obtained by the infrared detection device may differ from the actual value, making it impossible to accurately obtain gas concentration. Software algorithms establish a mathematical model that uses temperature and the raw gas concentration samples collected by the sensor as input to calculate a more accurate concentration value.

[0122] Since, at the same temperature, the sampling value and concentration have an approximately linear relationship; at different temperatures, the slope of the linear relationship is different. Therefore, it is necessary to establish a joint model of temperature (T) and sampling value (A), fit the concentration value with a polynomial, and establish a model that includes the ambient temperature T, the gas concentration sampling value A and its cross term (the physical meaning of the cross term is the nonlinear coupling effect of temperature and concentration, such as TA, T2 A, etc.) to determine the preset environmental impact formula. The gas concentration sample value is corrected using the system's preset environmental impact formula to determine the gas concentration output value. The ambient temperature, T, can be obtained from the temperature sensor installed in the container.

[0123] Temperature modulates concentration measurements: The absorption peak position or intensity of some gases in the infrared spectrum shifts with temperature (for example, the absorption peak wavelength of methyl bromide shifts toward longer wavelengths as temperature increases). Without correcting for temperature effects, the same gas concentration may exhibit different signal intensities at different temperatures. For example, increasing temperature may cause the absorption peak to broaden, causing the sensor to mistakenly interpret an increase in concentration. The TA term can compensate for this deviation.

[0124] Concentration has an inverse effect on temperature sensitivity: High concentrations of gas may change the local ambient temperature (e.g., exothermic reaction), thereby affecting sensor performance. For example, high concentrations of methyl bromide may absorb heat when volatilizing, causing the temperature around the sensor to drop temporarily. At this time, T 2 Item A corrects for this compounding effect.

[0125] In Python, you can use the numpy and sklearn libraries to perform multivariate linear regression. First, you'll need to explain the steps for data preparation, model training, and prediction. Next, you'll construct the feature matrix (ambient temperature T, gas concentration sampling values ​​A, and their quadratic terms, cross terms, etc.) and the target variable (gas concentration output value Q(TA)). Then, you'll use a linear regression model to fit the model and obtain the regression coefficients k1, k2, k3, k4, k5, k6, k7, and k8 for the preset environmental impact formula. Finally, you'll need to verify the model's performance. Finally, the verification step requires calculating the error between the predicted and actual values. In Python, you can use the mean squared error function from sklearn.

[0126] The values ​​of the regression coefficients k1, k2, k3, k4, k5, k6, k7 and k8 of the preset environmental impact formula for each gas are calculated based on the historical detection data collected during the historical detection process. The historical detection data includes the gas concentration output values ​​of various gases recorded in the historical detection data and the corresponding actual gas concentration values ​​(the actual gas concentration values ​​can be determined by other detection methods). The gas concentration output value Q(T u -A s ) and the actual value of gas concentration C s , calculate the gas concentration output value Q(T u -A s ) and the actual value of gas concentration C s The error L (s) :

[0127] .

[0128] According to the principle of least squares method, when the mean square error is minimum, the gas concentration output value Q(T u -A s ) and the actual value of gas concentration C s The fitting effect is the best. In Python, the [b,bint,r,rint,stats]=regress(C',INPUT) function in MATLAB is used to calculate the values ​​of the regression coefficients k1, k2, k3, k4, k5, k6, k7 and k8 of the preset environmental impact formula corresponding to gas s.

[0129] According to an embodiment of the present invention, when the first impact value is other gases, updating the detection spectrum according to the gas concentration output value of the first impact value includes:

[0130] Determine the first molecular concentration corresponding to each characteristic peak according to the gas concentration output value Q(TA) of the first impact value;

[0131] determining a second molecule concentration corresponding to each characteristic peak according to the first characteristic peak image;

[0132] Calculating the concentration difference between the second molecule concentration corresponding to each characteristic peak and the first molecule concentration to determine the third molecule concentration corresponding to each characteristic peak;

[0133] The peak value of the corresponding characteristic peak is adjusted based on the concentration of the third molecule, and the detection spectrum is updated.

[0134] It should be noted that the constituent molecules of the gas generate characteristic peak images of corresponding wavelength ranges by absorbing infrared light of different wavelengths. The corresponding infrared spectrum samples are screened from the database using the gas concentration output value of the first impact value, and the first molecular concentration corresponding to each characteristic peak is determined in combination with the absorption wavelength of infrared light by each constituent molecule of the first impact value. The second molecular concentration corresponding to each characteristic peak is determined based on the first characteristic peak image of the first impact value according to the above method, and the third molecular concentration corresponding to each characteristic peak is calculated in combination with the first molecular concentration corresponding to each characteristic peak. The peak value of each characteristic peak is adjusted according to the third molecular concentration, and the portion affected by the first impact value is removed from the detection spectrum to update the detection spectrum.

[0135] Figure 4 A block diagram of a container fumigation gas concentration detection system provided by the present invention is shown.

[0136] like Figure 4 As shown, the second aspect of the present invention provides a container fumigation gas concentration detection system, comprising:

[0137] A data acquisition module, used for acquiring a detection spectrum;

[0138] A gas type analysis module is used to analyze the detection spectrum and determine one or more first impact values ​​of the mixed gas; the first impact values ​​include fumigant gas and other gases;

[0139] a gas concentration fluctuation calculation module, configured to calculate the gas concentration fluctuation value of each first impact value, sort all first impact values ​​in ascending order of the gas concentration fluctuation value, and calculate the gas concentration sampling value of each first impact value in sequence according to the sorting order;

[0140] A gas concentration calculation module, configured to input the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value;

[0141] A data adjustment module is configured to update the detection spectrum according to the gas concentration output value of the first impact value when the first impact value is other gases; recalculate the gas concentration fluctuation value of each remaining first impact value based on the updated detection spectrum, update the sorting order of the remaining first impact values, and calculate the gas concentration output value of the next first impact value;

[0142] The data output module is configured to determine the gas concentration output value of the first impact value as the gas concentration of the fumigant gas when the first impact value is fumigant gas.

[0143] A third aspect of the present invention provides an infrared sensor device, which is a patch-type infrared sensor device and includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned container fumigation gas concentration detection method are implemented.

[0144] Among them, the patch-type infrared sensing device includes a PCB board, a packaging patch and a sensor body. A conductive electrode is provided at the end of the PCB board, and a transmitting chip is embedded in the upper left side of the PCB board, while a receiving chip is embedded in the upper right side of the PCB board. At the same time, a system-preset first packaging structure is provided on the surface of the PCB board, and a system-preset second packaging structure is provided on the outside of the first packaging structure.

[0145] The information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the "detection spectrum" and "preset gas sample spectrum" involved in this disclosure are all obtained with full authorization.

[0146] The present invention discloses a method, system, and infrared sensing device for detecting container fumigation gas concentration. The method includes: obtaining a detection spectrum; determining one or more first impact values ​​of a mixed gas based on the detection spectrum; calculating a gas concentration fluctuation value of the first impact value and a gas concentration sampling value of the first impact value; inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine a gas concentration output value of the first impact value; when the first impact value is another gas, updating the detection spectrum based on the gas concentration output value of the first impact value; calculating a gas concentration output value of the next first impact value based on the updated detection spectrum; and when the first impact value is fumigation gas, determining the gas concentration output value of the first impact value as the gas concentration of the fumigation gas. The present invention improves the accuracy of fumigation gas concentration detection by eliminating the influence of other gases and ambient temperature on the detection results.

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

[0148] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0149] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0150] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned method embodiments may be implemented by hardware associated with program instructions, and the aforementioned program may be stored in a computer-readable storage medium. When the program is executed, the program executes the steps of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0151] Alternatively, if the integrated units described above are implemented as software modules and sold or used as standalone products, they can also be stored on a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product, stored on a storage medium, includes instructions for enabling a computer device (such as a personal computer, server, or network device) to execute all or part of the methods described in various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as removable storage devices, ROM, RAM, magnetic disks, or optical disks.

Claims

1. A method for detecting the concentration of container fumigation gas, characterized in that: include: Obtaining a detection spectrum; Analyze the detection spectrum to determine one or more first impact values ​​of the mixed gas; the first impact values ​​include fumigant gas and other gases; Calculating the gas concentration fluctuation value of each first impact value, sorting all the first impact values ​​in ascending order according to the gas concentration fluctuation value, and calculating the gas concentration sampling value of each first impact value in sequence according to the sorting order; Inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value; When the first impact value is other gases, updating the detection spectrum according to the gas concentration output value of the first impact value; recalculating the gas concentration fluctuation value of each remaining first impact value based on the updated detection spectrum, updating the sorting order of the remaining first impact values, and calculating the gas concentration output value of the next first impact value; When the first impact value is fumigant gas, determining the gas concentration output value of the first impact value as the gas concentration of the fumigant gas; The calculating of the gas concentration fluctuation value of each first impact value includes: Based on the wavelength interval corresponding to the characteristic peak of the first impact value, corresponding characteristic peak images are intercepted from the detection spectrum to determine one or more first characteristic peak images; When there is only one first characteristic peak image for the first influence value, filtering the first influence value; Determine the first gas concentration x of the first influencing value according to the peak value and wavelength range of the first characteristic peak image i 1(i) ; According to the first gas concentration x 1(i) Calculate the gas concentration fluctuation value G of the first impact value; ; in, is the average first gas concentration of the first impact value, m is the total number of first gas concentrations of the first impact value; The step of calculating the gas concentration sampling value of each first impact value in sequence according to the sorting order includes: Select the first impact value with the smallest gas concentration fluctuation value, and determine whether the gas concentration fluctuation value G of the first impact value is less than the preset minimum gas concentration fluctuation value threshold G min ; If so, the average first gas concentration of the first impact value is Determine the gas concentration sampling value A as the first impact value; If not, calculating the second gas concentration x2 of the first impact value, and determining the second gas concentration x2 as the gas concentration sampling value A of the first impact value; The calculating the second gas concentration x2 of the first impact value includes: When the gas concentration fluctuation value G of the first impact value is within the preset minimum gas concentration fluctuation value threshold G min and the preset maximum gas concentration fluctuation threshold G max When the average first gas concentration of the first impact value is A third gas concentration x3 is determined as the first impact value; determining a plurality of second characteristic peak images according to a third gas concentration x3 of the first influencing value; Calculating a characteristic peak fluctuation value of a characteristic peak corresponding to the first influence value according to the second characteristic peak image and the first characteristic peak image of the first influence value; Filtering characteristic peaks whose characteristic peak fluctuation values ​​are greater than a preset characteristic peak fluctuation threshold, calculating an average value of the first gas concentration corresponding to the remaining characteristic peaks, and determining the second gas concentration x2 of the first impact value; When the gas concentration fluctuation value G of the first impact value is greater than the preset maximum gas concentration fluctuation value threshold G max , select to analyze the next first impact value.

2. The method for detecting container fumigation gas concentration according to claim 1, wherein: Also includes: The detection spectrum is subjected to image preprocessing; the image preprocessing includes noise smoothing and baseline correction.

3. The method for detecting container fumigation gas concentration according to claim 1, wherein: The analyzing the detection spectrum to determine one or more first impact values ​​of the mixed gas includes: Analyze the detected spectrum, extract the wavelength interval of each characteristic peak in the detected spectrum, and determine one or more first wavelength intervals; Obtain a sample spectrum of a preset gas; Extracting the wavelength range of each characteristic peak in the sample spectrum of the preset gas to determine one or more second wavelength ranges; Calculate the interval overlap rate p of each second wavelength interval and each first wavelength interval a , determine the maximum interval overlap rate p of each second wavelength interval b ; According to the maximum interval overlap rate p of each second wavelength interval b Calculating a presence score P of the preset gas; ; Among them, k b(1) 、k b(2) and k b(n) are the influence coefficients of the 1st, 2nd and nth characteristic peaks of the preset gas, p b(1) 、p b(2) and p b(n) are the maximum interval overlap rates of the first, second and nth characteristic peaks of the preset gas corresponding to the second wavelength interval, respectively, and N is the total number of characteristic peaks of the preset gas; When the presence score P is greater than a preset presence score threshold, the preset gas is determined as a first impact value.

4. The method for detecting container fumigation gas concentration according to claim 1, wherein: Inputting the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value includes: Get the ambient temperature T; Inputting the gas concentration sampling value of the first impact value and the ambient temperature T into a preset environmental impact formula, correcting the gas concentration sampling value A using the preset environmental impact formula, and determining the gas concentration output value Q(TA) of the first impact value; ; Wherein, Q(TA) is the gas concentration output value, T is the ambient temperature, A is the gas concentration sampling value, and k1, k2, k3, k4, k5, k6, k7 and k8 are all regression coefficients.

5. The method for detecting container fumigation gas concentration according to claim 1, wherein: When the first impact value is other gases, updating the detection spectrum according to the gas concentration output value of the first impact value includes: Determine the first molecular concentration corresponding to each characteristic peak according to the gas concentration output value Q(TA) of the first impact value; determining a second molecule concentration corresponding to each characteristic peak according to the first characteristic peak image; Calculating the concentration difference between the second molecule concentration corresponding to each characteristic peak and the first molecule concentration to determine the third molecule concentration corresponding to each characteristic peak; The peak value of the corresponding characteristic peak is adjusted based on the concentration of the third molecule, and the detection spectrum is updated.

6. A container fumigation gas concentration detection system, used to implement the container fumigation gas concentration detection method according to any one of claims 1 to 5, characterized in that: include: A data acquisition module, used for acquiring a detection spectrum; a gas type analysis module, configured to analyze the detection spectrum to determine one or more first impact values ​​of the mixed gas; the first impact values ​​include fumigant gas and other gases; a gas concentration fluctuation calculation module, configured to calculate the gas concentration fluctuation value of each first impact value, sort all first impact values ​​in ascending order of the gas concentration fluctuation value, and calculate the gas concentration sampling value of each first impact value in sequence according to the sorting order; A gas concentration calculation module, configured to input the gas concentration sampling value of the first impact value into a preset environmental impact formula to determine the gas concentration output value of the first impact value; a data adjustment module, configured to update the detection spectrum according to the gas concentration output value of the first impact value when the first impact value is other gases; recalculate the gas concentration fluctuation value of each remaining first impact value based on the updated detection spectrum, update the sorting order of the remaining first impact values, and calculate the gas concentration output value of the next first impact value; The data output module is configured to determine the gas concentration output value of the first impact value as the gas concentration of the fumigant gas when the first impact value is fumigant gas.

7. An infrared sensing device, characterized in that: The infrared sensor device is a patch-type infrared sensor device, comprising a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the container fumigation gas concentration detection method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Detecting method based on spectroscopy detection technology

    CN102564965A

  • Fumigation gas concentration detection method, server, medium and program product

    CN118961638A

  • Gas mixed spectrum analysis method combining SSA-FastICA algorithm and EMD-KPCA-LSTM model

    CN119069028A

  • Method for detecting multi-gas concentration in exhaust gas and gas filtering system

    CN119619045A