Method and equipment for simultaneous determination of multiple components in ammonia escape and storage medium

Through ultraviolet differential absorption spectroscopy and multivariate correction model, combined with wavelength drift adaptive correction, the problem of multi-component concentration determination in the prior art is solved, and real-time and online rapid detection of NH3, SO2 and NO concentrations is achieved. Enhanced the anti-interference ability and robustness of the method.

CN119198602AActive Publication Date: 2024-12-27WUHAN GANWEI TECH CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

The prior art cannot simultaneously and quickly determine the multi-component concentration during ammonia escape monitoring, especially in real-time, online and on-site applications, and there is a problem of great interference and influence.

Method used

Using a multi-component simultaneous determination method based on UV differential absorption spectrometry, the concentration detection of NH3, SO2 and NO is realized through data preprocessing, multivariate correction model training, and wavelength drift adaptive correction model, which weakens the impact of interference and enhances robustness. .

Benefits of technology

Real-time and online rapid detection of multi-component concentrations is achieved, and interference such as water, CO, CO2, O2 and CH4 is avoided, which enhances the anti-interference ability and robustness of the method, and provides accurate concentration prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119198602A_ABST
    Figure CN119198602A_ABST
Patent Text Reader

Abstract

The invention relates to the field of gas measurement, and discloses an ammonia escape multi-component simultaneous determination method and device and a storage medium, and the method comprises the following steps: carrying out data preprocessing on an original absorbance spectrum of a modeling sample; constructing a multivariate correction basic concentration prediction model, and training the model by using the preprocessed data; utilizing the model to obtain the initial predicted concentration of each component of a to-be-detected sample; a reference absorbance spectrum is obtained through inversion according to the preliminarily predicted concentration and the basic absorbance spectrum of the target gas; constructing a wavelength drift adaptive correction model, and inputting the original absorbance spectrum into the wavelength drift adaptive correction model to obtain a corrected absorbance spectrum; adjusting parameters of the wavelength drift self-adaptive correction model; obtaining a corrected spectrum; inputting the corrected spectrum into the trained model to obtain multi-component concentration output; the method has the beneficial effects that the influence of cross interference and wavelength drift in the concentration prediction process is eliminated, and the concentration prediction accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of gas measurement, and in particular to a method, a device and a storage medium for simultaneously measuring multiple components of ammonia escape. Background Art

[0002] At present, the mainstream ammonia escape monitoring methods include the national standard method "HJ533-2009 Determination of Ammonia in Ambient Air and Exhaust Gas by Nessler Reagent Spectrophotometry", tunable semiconductor laser absorption spectroscopy (TDLAS), catalytic conversion, chemiluminescence, Fourier transform infrared, chemical colorimetry, FFT-based ultraviolet spectroscopy, etc. The following are some of the methods: The national standard method HJ533-2009 uses a dilute sulfuric acid solution to absorb NH3 in the flue gas to form ammonium ions, which then react with Nessler's reagent to form a yellow-brown complex. The substance has a maximum absorption peak at 420nm, and a measurement method is constructed using spectrophotometry. This method is fast and convenient for determining ammonia escape, but its accuracy is greatly affected by temperature and color development time, and a complete waste liquid recovery and treatment mechanism needs to be established to avoid environmental pollution.

[0003] The TDLAS method uses the monochromaticity of laser to measure the ammonia in the flue gas components by the absorption characteristics of specific gases. It has the advantages of wide measurement range, non-contact measurement, fast response speed and simple installation. However, its measurement results are greatly affected by the on-site flue gas conditions, installation location and other conditions, and it is difficult to calibrate online and has high maintenance costs.

[0004] The Fourier infrared method completes the measurement based on the absorption of light energy by molecular vibration and rotational energy level transitions. Different chemical bonds or functional groups absorb different energies when undergoing energy level transitions, resulting in characteristic absorption peaks at different wavelengths. The absorption spectrum signal is processed using Fourier transform to ultimately obtain an infrared absorption spectrum of transmittance or absorbance versus wave number or wavelength, and finally establish an inversion relationship with concentration. This method has high measurement accuracy, but the equipment is complex and expensive, and is mostly used for laboratory analysis and testing.

[0005] Based on the FFT ultraviolet spectroscopy, a quantitative prediction method for escaped ammonia is established by processing the characteristic absorption spectrum of substances at different ultraviolet wavelengths through Fourier transform. This method has fast analysis speed, simple sampling pretreatment, less sample damage, non-contact, and is suitable for real-time online analysis and on-site rapid inspection. In addition, in the ultraviolet band, the interference of water, CO, CO2, O2, CH4, etc. can be ignored. However, NH3, SO2, NO xThe characteristic absorbance spectra in the ultraviolet band overlap seriously and there is cross-interference. It is difficult to find the independent pure component absorption regions of the above gases from the spectrum after FFT transformation (there is only characteristic absorption of one gas in this region). It may be difficult to completely eliminate this influence by relying solely on FFT. In addition, when the wavelength drift occurs in the spectrum, it will also have a serious impact on the accuracy of the prediction results. Summary of the invention

[0006] The purpose of the present invention is to propose a method, device and storage medium for simultaneous determination of multiple components of ammonia escape, so as to solve the technical problem that the prior art cannot simultaneously and quickly determine the concentrations of multiple components during ammonia escape monitoring.

[0007] Specifically, the present invention comprehensively considers the requirements of real-time, online, on-site application, cost, measurement accuracy, convenience, and pollution-free, and provides a method for simultaneously determining multiple components of ammonia escape based on ultraviolet differential absorption spectroscopy, comprising the following steps: S1, performing data preprocessing on the original absorbance spectrum of the modeling sample to obtain preprocessed data; S2. construct a multivariate correction basic concentration prediction model, and train the model using the preprocessed data to obtain a trained model; S3, inputting the original absorbance spectrum of the sample to be tested into the trained model to obtain the preliminary predicted concentration of each component of the sample to be tested; S4, obtaining a reference absorbance spectrum by inverting the initial predicted concentration and the basic absorbance spectrum of the target gas; S5, constructing a wavelength drift adaptive correction model, inputting the original absorbance spectrum of the sample to be tested into the wavelength drift adaptive correction model, and obtaining a corrected absorbance spectrum; S6, comparing the reference absorbance spectrum and the corrected absorbance spectrum, adjusting the wavelength drift adaptive correction model parameters, and obtaining a trained wavelength drift adaptive correction model; S7, inputting the original absorbance spectrum of the sample to be tested into the trained wavelength drift adaptive correction model to obtain a corrected spectrum; S8. Input the corrected spectrum into the trained model to obtain multi-component concentration output.

[0008] A storage medium stores instructions and data for being executed by a processor to implement a method for simultaneously determining multiple components of ammonia escape.

[0009] A device for simultaneously measuring multiple components of ammonia escape comprises: a processor and a storage medium; the processor loads and executes instructions and data in the storage medium to implement a method for simultaneously measuring multiple components of ammonia escape.

[0010] The beneficial effects provided by the present invention are: providing a method for real-time, online rapid detection of ammonia escape, which can simultaneously detect the concentrations of NH3, SO2 and NO based on the same ultraviolet analyzer. By selecting an ultraviolet spectrum band spectrometer, the interference effects of water, CO, CO2, O2 and CH4 are directly avoided. By selecting variables for each gas characteristic and selective multivariate correction model modeling, the influence of cross-interference is weakened, and the anti-interference ability of the method is enhanced. The robustness of the method is enhanced by designing a two-stage prediction process based on wavelength drift adaptive correction. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a schematic flow chart of the method of the present invention; Figure 2 It is a schematic diagram of the feature variable selection results; Figure 3 It is a schematic diagram of the process of modeling the basic concentration prediction model; Figure 4 It is a wavelength drift adaptive correction model prediction flow chart; Figure 5 It is a working schematic diagram of the hardware device of the present invention. DETAILED DESCRIPTION

[0012] To make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0013] Before formally explaining the present invention, the relevant technical terms in the present invention are explained, and the scheme of the present invention is also generally explained first for easy understanding.

[0014] Please refer to Figure 1 , Figure 1 It is a schematic diagram of the process of the present invention.

[0015] The present invention provides a method for simultaneously determining multiple components of ammonia escape, comprising the following steps: S1, performing data preprocessing on the original absorbance spectrum of the modeling sample to obtain preprocessed data; It should be noted that the preprocessing in step S1 includes: truncation, differentiation, feature variable selection and smoothing.

[0016] The truncation process is actually to take the union of the characteristic absorption band intervals of each component, that is, to ensure that all components have relatively obvious absorption within the truncation interval.

[0017] The process of differentiation is actually to eliminate the influence of "slow-changing" signals caused by various light scattering, thereby improving the robustness of the component absorption signal.

[0018] Characteristic variable selection is actually to select characteristic variables that are conducive to building a robust prediction model for each component.

[0019] The purpose of smoothing is to eliminate the influence of noise signals in spectral signals.

[0020] It should be noted that characteristic variable selection is one of the key steps to extract the specific characteristics of each target gas and eliminate cross-interference.

[0021] In the present invention, the feature variable selection is divided into two steps, wherein the first step is the elimination of abnormal samples, and the second step is the selection of feature variables.

[0022] Specifically, the feature variable selection includes the following steps: S11, removing abnormal samples of each target gas in the modeling samples to obtain a sample set after removing the abnormalities; Step S11 is specifically as follows: S11a: Use Monte Carlo resampling method to sample the modeling samples into K sub-sample spaces; For the same sample space, the number of samples is fixed, and K Monte Carlo random samplings are performed. Each sampling obtains a sub-sample space, thus obtaining K sub-sample spaces.

[0023] S11b: Establish a separate multivariate correction model for each sub-sample space, perform predictions, count the residuals of each sample prediction, and calculate the mean or standard deviation of the residuals. When the mean or standard deviation of the sample residuals exceeds the preset value, remove the sample from the corresponding sub-sample space to obtain a sample set after abnormality removal.

[0024] It should be noted that the multivariate correction model adopts the PLS model. The process of establishing the model and predicting the subspace is as follows: The processing of each sub-sample space is basically the same. The processing of one sub-sample space is taken as an example to illustrate as follows: The samples in the subsample space are used as the training set to build a PLS model, and the samples in the non-subsample space in the same sample space are used as the test set, and the residual of each sample is predicted and calculated through the trained PLS model.

[0025] Summarize and count the PLS model prediction residuals of each sample in the K sub-sample spaces, and calculate their mean or standard deviation. According to the T-test method, set the confidence level to 0.05, screen and eliminate samples that bring significant differences, and obtain the sample set after abnormal elimination. S12, perform wavelength variable selection in the sample set after elimination, and obtain the final selected wavelength variable.

[0026] It should be noted that step S12 is specifically as follows: S12a: After the samples after the abnormalities are eliminated are combined, the Monte Carlo sampling method is used again to obtain K sub-sample spaces; S12b: After optimizing the wavelength variable combination for each sub-sample space using the genetic algorithm, the number of times each wavelength variable in the optimal population takes the value of 1 is counted. After the statistics are sorted, the wavelength variables with values ​​above the median are retained as the final selected wavelength variables.

[0027] The processing of each sub-sample space is basically the same. The processing of one sub-sample space is taken as an example to illustrate as follows: The binary value array (1 and 0) of the wavelength variable size is a coded chromosome, and several chromosomes form a population. The meaning of the binary value is that when the value is 1, it means that the variable at the corresponding position is selected, otherwise it will not be used.

[0028] The initial population obtains the optimal population after an iterative process of bionic steps of biological population evolution: "selection", "crossover", "mutation", "population update" and "individual fitness evaluation".

[0029] The number of times each wavelength variable takes the value of 1 in the optimal population is counted. After the statistics are sorted, the wavelength variables with values ​​above the median are retained as the final selected wavelength variables.

[0030] Please refer to Figure 2 , Figure 2 This is a schematic diagram of the feature variable selection results.

[0031] The three line graphs represent the absorbance spectra of the three components in the 190~205nm band. It can be seen that there is a serious overlap between the characteristic absorption spectra of the three components; the three scatter plots represent the characteristic selected wavelength variables obtained by variable selection for each component.

[0032] S2. construct a multivariate correction basic concentration prediction model, and train the model using the preprocessed data to obtain a trained model; It should be noted that the multivariate correction basic concentration prediction model is constructed according to the partial least squares method, which is specifically as follows:

[0033]

[0034] Among them, X is the spectral signal matrix, Y is the concentration matrix, U, Q, T, P are the factor analysis decomposition matrices, u k ,q k ,t k 、p k is the factor analysis decomposition vector, E X 、E Yis the residual matrix.

[0035] Implicit regression relationship:

[0036]

[0037] predict:

[0038] When the model is trained using the finally selected samples, the sum of the root mean square error (the sum of the corrected root mean square error RMSEC and the predicted root mean square error RMSEP) is used as the key indicator, and the model with the minimum index is used as the output trained model.

[0039] S3, inputting the original absorbance spectrum of the sample to be tested into the trained model to obtain the preliminary predicted concentration of each component of the sample to be tested; S4, obtaining a reference absorbance spectrum by inverting the initial predicted concentration and the basic absorbance spectrum of the target gas; It should be noted that step S4 is specifically as follows: S41, obtaining basic absorbance spectra of target gas at different concentrations; The basic absorbance spectrum is the concentration-removed mean spectrum, and the concentration removal method can be achieved by subtracting the concentration information from the absorbance value of each wavelength or pixel one by one.

[0040] S42. Invert the corresponding basic absorbance reference spectrum based on the preliminary concentration of each target component.

[0041] S5, constructing a wavelength drift adaptive correction model, inputting the original absorbance spectrum of the sample to be tested into the wavelength drift adaptive correction model, and obtaining a corrected absorbance spectrum; It should be noted that the correction model in the present invention is as follows:

[0042]

[0043] in, is the corrected absorbance spectrum i The correction value at each wavelength or pixel point, is the interpolation function, x is the wavelength or pixel vector of the original absorbance spectrum, y is the absorbance vector of the original absorbance spectrum, is the absorbance value at the i-th wavelength or pixel point in the original absorbance spectrum, k is the expansion correction factor, b is the translation correction factor,k , b is the initialization parameter, N is the total number of wavelengths or pixels in the absorbance spectrum; k 1, k 2, b 1, b 2 is the default value, where k 1, k 2, b 1, b 2 is set based on practical experience, which defines the established range of the translation correction factor and the telescopic correction factor. The data within this range are credible values ​​or acceptable values.

[0044] S6, comparing the reference absorbance spectrum and the corrected absorbance spectrum, adjusting the wavelength drift adaptive correction model parameters, and obtaining a trained wavelength drift adaptive correction model; It should be noted that in step S6, the reference absorbance spectrum and the corrected absorbance spectrum are compared using a similarity measurement method. If the similarity between the two exceeds a preset value, it indicates that the wavelength drift adaptive correction model parameters are appropriate.

[0045] The similarity evaluation formula is as follows:

[0046] in, R is the similarity measurement parameter, Similarity () indicates the use of multiple evaluation indicators for comprehensive voting calculation, is the basic absorbance reference spectrum, is the corrected absorbance spectrum.

[0047] Adjust model parameters, specifically: k , b Increase or decrease the corresponding step size Δ k , Δ b k1 and k2 define the value range of k, and b1 and b2 define the value range of b. S7, inputting the original absorbance spectrum of the sample to be tested into the trained wavelength drift adaptive correction model to obtain the corrected spectrum; S8, inputting the corrected spectrum into the trained model to obtain multi-component concentration output; Generally speaking, the concentration prediction in the present invention is divided into two levels, wherein the first level is a multivariate correction basic concentration prediction model. Figure 3 , Figure 3 It is a schematic diagram of the process of building a basic concentration prediction model.

[0048] The cross-interference effect of each target gas is eliminated by integrating characteristic variable selection and multivariate correction model building. The optimal basic concentration prediction model is output with the sum of predicted root mean square errors as the evaluation index.

[0049] Please refer to Figure 4 , Figure 4 It is the prediction flow chart of wavelength drift adaptive correction model.

[0050] Concentration prediction is performed in two levels.

[0051] The preliminary concentration is obtained from the first-level prediction. In the first-level concentration prediction, the wavelength drift adaptive correction model is integrated, which can improve the robustness of the prediction model.

[0052] In the second stage, the final prediction output still uses the basic concentration prediction model. The initial predicted concentration values ​​of each component and the corresponding stored basic spectrum are used to invert to obtain the real-time reference sum spectrum, and the correction model is optimized to obtain the corrected spectrum. The corrected spectrum is used as the input of the basic concentration prediction model to obtain the final concentration prediction result. Through the above overall steps, the present invention can achieve more accurate concentration prediction while eliminating cross interference.

[0053] As an embodiment, the present invention provides the results of simultaneous and rapid prediction of multiple components (NO, SO2 and NH3) based on ultraviolet differential absorption spectroscopy as shown in Table 1.

[0054] Table 1 Prediction table of mixed gas sample concentration

[0055] It can be seen from Table 1 that for the prediction of three mixed gas with different concentrations, the absolute error for NO is within 3.5ppm, and the absolute errors for SO2 and NH3 are within 1ppm.

[0056] See also Figure 5 , Figure 5 It is a schematic diagram of the working of the hardware device of an embodiment of the present invention, and the hardware device specifically includes: a multi-component simultaneous determination device 401 for ammonia escape, a processor 402 and a storage medium 403.

[0057] A device 401 for simultaneous determination of multiple components of ammonia escape: The device 401 for simultaneous determination of multiple components of ammonia escape implements a method for simultaneous determination of multiple components of ammonia escape.

[0058] Processor 402: The processor 402 loads and executes the instructions and data in the storage medium 403 to implement the method for simultaneously determining multiple components of ammonia escape.

[0059] Storage medium 403: The storage medium 403 stores instructions and data; the storage medium 403 stores instructions and data for being executed by the processor 402 to implement the ammonia escape multi-component simultaneous determination method.

[0060] The beneficial effects of the present invention are: providing a method for real-time, online rapid detection of ammonia escape, which can simultaneously detect the concentrations of NH3, SO2 and NO based on the same ultraviolet analyzer. By selecting an ultraviolet spectrum band spectrometer, the interference effects of water, CO, CO2, O2 and CH4 are directly avoided. By selecting variables for each gas characteristic and selective multivariate correction model modeling, the influence of cross-interference is weakened, and the anti-interference ability of the method is enhanced. The robustness of the method is enhanced by designing a two-stage prediction process based on wavelength drift adaptive correction.

[0061] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for simultaneous determination of multiple components of ammonia escape, characterized in that: The method comprises the following steps: S1, performing data preprocessing on the original absorbance spectrum of the modeling sample to obtain preprocessed data; S2. construct a multivariate correction basic concentration prediction model, and train the model using the preprocessed data to obtain a trained model; S3, inputting the original absorbance spectrum of the sample to be tested into the trained model to obtain the preliminary predicted concentration of each component of the sample to be tested; S4, obtaining a reference absorbance spectrum by inverting the initial predicted concentration and the basic absorbance spectrum of the target gas; S5, constructing a wavelength drift adaptive correction model, wherein the wavelength drift adaptive correction model adopts translation correction and telescopic correction, inputting the original absorbance spectrum of the sample to be tested into the wavelength drift adaptive correction model, and obtaining a corrected absorbance spectrum; S6, comparing the reference absorbance spectrum and the corrected absorbance spectrum, adjusting the wavelength drift adaptive correction model parameters, and obtaining a trained wavelength drift adaptive correction model; S7, inputting the original absorbance spectrum of the sample to be tested into the trained wavelength drift adaptive correction model to obtain a corrected spectrum; S8. Input the corrected spectrum into the trained model to obtain multi-component concentration output.

2. A method for simultaneous determination of multiple components of ammonia escape as claimed in claim 1, characterized in that: The preprocessing in step S1 includes: truncation, differentiation, feature variable selection and smoothing.

3. A method for simultaneous determination of multiple components of ammonia escape as claimed in claim 2, characterized in that: The feature variable selection comprises the following steps: S11, removing abnormal samples of each target gas in the modeling samples to obtain a sample set after removing the abnormalities; S12. Select a wavelength variable in the sample set after elimination to obtain a finally selected wavelength variable.

4. A method for simultaneous determination of multiple components of ammonia escape as claimed in claim 3, characterized in that: Step S11 is specifically as follows: S11a: Use Monte Carlo resampling method to sample the modeling samples into K sub-sample spaces; S11b: Establish a separate multivariate correction model for each sub-sample space, perform predictions, count the residuals of each sample prediction, and calculate the mean or standard deviation of the residuals. When the mean or standard deviation of the sample residuals exceeds the preset value, remove the sample from the corresponding sub-sample space to obtain a sample set after abnormality removal.

5. A method for simultaneous determination of multiple components of ammonia escape as claimed in claim 4, characterized in that: Step S12 is specifically as follows: S12a: After the samples after the abnormalities are eliminated are combined, the Monte Carlo sampling method is used again to obtain K sub-sample spaces; S12b: After optimizing the wavelength variable combination for each sub-sample space using the genetic algorithm, the number of times each wavelength variable in the optimal population takes the value of 1 is counted. After the statistics are sorted, the wavelength variables with values ​​above the median are retained as the final selected wavelength variables.

6. A method for simultaneous determination of multiple components of ammonia escape as claimed in claim 1, characterized in that: In step S6, the reference absorbance spectrum and the corrected absorbance spectrum are compared using a similarity measurement method. If the similarity between the two exceeds a preset value, it indicates that the wavelength drift adaptive correction model parameters are appropriate.

7. A storage medium, characterized in that: The storage medium stores instructions and data for being executed by a processor to implement a method for simultaneously determining multiple components of ammonia escape as described in any one of claims 1 to 6.

8. An ammonia escape multi-component simultaneous determination device, characterized in that: include: A processor and a storage medium; the processor loads and executes instructions and data in the storage medium to implement a method for simultaneously determining multiple components of ammonia escape as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Wavelength variable optimization method in spectrum analysis

    CN101430276A

  • Method for simultaneously, rapidly and quantitatively analyzing multiple gas pollutants in flue gas

    CN111948166A

  • Self-adaptive spectrum drift correction method for LIBS (Laser-induced Breakdown Spectroscopy) data

    CN116448738A

  • Hybrid least squares multivariate spectral analysis methods

    WO2000052433A1

  • Biomarkers for detecting and monitoring colon cancer

    WO2015109263A2

Cited By

  • Grain multi-group decoupling prediction method, modeling method, equipment and storage medium

    CN121615512A

  • Grain multi-component decoupling prediction method, modeling method, device and storage medium

    CN121615512B

  • Vehicle ammonia escape online detection method and system based on big data

    CN122040381A

  • An ammonia slip online detection method and system for vehicle based on big data

    CN122040381B