Cavity ring-down spectroscopy wide-range detection adaptive system and method
By introducing temperature and pressure sensors, an FPGA multi-class support vector machine classifier, and a parallel full comparison algorithm into a cavity ring-down spectroscopy gas concentration detection instrument, the accuracy and range of gas concentration detection under high concentration and variable environments are expanded, solving the detection shortcomings of existing instruments under these conditions.
Patent Information
- Application Number
- CN202311419770.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-30
AI Technical Summary
Existing cavity ring-down spectroscopy gas concentration detection instruments have narrow detection range and poor accuracy in high-concentration gases and different environments, and cannot adapt to changing detection conditions.
It employs components such as a cavity temperature sensor, an air pressure sensor, and a shutdown voltage control module, combined with a multi-class support vector machine classifier and a parallel full comparison algorithm implemented by FPGA, and achieves wide-range detection by adaptively adjusting the sampling frequency and absorption cross-section correction.
It has expanded the accuracy and range of gas concentration detection under different environments, reduced economic costs, and can adapt to changing detection conditions in real time.
Smart Images

Figure CN117517225B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of accurate gas concentration detection, and in particular to an adaptive system and method for wide-range detection using cavity ring-down spectroscopy. Background Technology
[0002] Greenhouse gases contribute to the greenhouse effect, leading to global warming, sea-level rise, and other problems. With the ongoing efforts towards "carbon peaking and carbon neutrality," the demand for continuous greenhouse gas emission monitoring systems / portable monitoring instruments has garnered significant attention in China. Accurate measurement of greenhouse gas concentrations will help researchers conduct operational and power consumption analyses of equipment used in production processes, enabling corresponding optimizations and thus better managing carbon emissions.
[0003] The cavity ring-down spectroscopy gas concentration detection instrument developed based on the gas absorption spectral characteristics has the characteristics of high sensitivity, low detection limit and self-calibration. However, it is currently only well applied in the detection of trace gases and standard environments. In the detection of higher concentration gases and different environments, there are problems such as narrow detection range and poor detection precision. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide an adaptive system and method for wide-range detection of cavity ring-down spectroscopy, which addresses the problem of limited detection range and accuracy of cavity ring-down spectroscopy instruments and provides a wide-range detection method for cavity ring-down spectroscopy suitable for different environments.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is: an adaptive system and method for wide-range detection using cavity ring-down spectroscopy, comprising the following steps: Step 1: Configure the cavity temperature sensor, configure the gas path pressure sensor, configure the shutdown voltage control module, and configure the cavity ringback signal. The ADC pre-acquisition module is configured to set the pre-sampling section for the rate of change of the fading signal. Points and sampling frequency ; Step 2: Set the feature vector set: Set the cavity temperature feature vector. Set the ambient air pressure feature vector Set the laser turn-off voltage threshold feature vector and signal change rate eigenvector ; Step 3: Set up two sets of multi-class support vector machine classifiers constructed using a one-to-one classification method based on FPGA. Set up Group 1 with feature matrix matching absorption cross section. Group 2 sampling rate Look up matching values; Step 4: The FPGA drives the multiple ADCs to sample according to the number of sampling channels and the sampling clock. The four sets of feature vectors are then input into the SVM classifier to obtain the absorption cross-section correction value. and sampling coarse frequency
[0006] Step 5: Use the parallel full comparison method to locate the sampling point position at the fading time and correct the sampling frequency. Then return to step four, and determine the sampling frequency at this time when the difference between the two consecutive sorting comparisons is within the allowable fluctuation range; Step Six: Perform Frequency Correction Sample and fit the oscillation signal, and calculate the concentration using the modified absorption cross section.
[0007] Preferably, in step one, setting a cavity temperature sensor and setting a gas path pressure sensor include:
[0008]
[0009]
[0010] Ring-down spectroscopy for gas concentration With absorption cross section There exists a relationship as shown in formula (1), while the absorption cross section and temperature are related in a pure gas environment. air pressure The relationship is given by formula (2), where the optical path length L is proportional to the ring-down time, and the three factors influence each other; in the formula... The decay time of the gas to be measured. For cavity decay time, It detects light intensity after absorption. Let R be the incident light intensity, and R be the Boltzmann constant. It is the speed of light.
[0011] Preferably, the specific steps for setting the shutdown voltage control module in step one are as follows: The shutdown voltage is output by the DA chip controlled by the FPGA, and the first point acquired in the data acquisition system will be used as the shutdown voltage. Considering the turn-off voltage threshold, the discrete oscillation signal can be expressed as equation (4), where The voltage code value is numbered i (i≤n, i=1,2,3…n).
[0012] Set the pre-sampling section for the rate of change of the decaying signal. and sampling frequency Within the preset detection zone, m sampling points are selected for sampling, where m is... code value Sampling points (segment length) The sampling rate is detected by using m-1 sets of sampled voltage signal derivative values; the Gaussian noise is eliminated by averaging the m-1 sets of decaying signal derivative values, and the sampling frequency is... The overall sampling rate is formed by using piecewise phase sampling. of .
[0013]
[0014] Preferably, the feature vector in step two is based on the FPGA floating-point arithmetic IP core, and uses Z-Score dimensionless processing, as shown in equation (6), where the feature values are... It then follows a normal distribution in the interval [0,1].
[0015] Preferably, step three includes: (1) Two sets of multi-class support vector machine classifiers constructed using one-to-one classification methods, one set of samples being One set of samples is For any two classes of samples, a one-to-one binary classification SVM is needed, and a total of 10 binary classification SVMs are required; if the training set of group 1 is divided into M classes and the training set of group 2 is divided into N classes, then the SVM classification problem is the optimization problem represented by equation (7), where It is a mapping function. These are the weight vectors for the i-th and j-th classes. The corresponding threshold is given by equation (8), which is the decision function to be solved.
[0016]
[0017] (2) The FPGA implementation of SVM uses the exponentiation module in the floating-point arithmetic IP core to implement the Gaussian kernel function shown in equation (9), and implements the Lagrange multiplier shown in equation (10) to solve the inner product of eigenvectors, thus forming the decision function. To enable experimental training, constants are determined and stored in the FPGA's ROM for use in the kernel function multiplication.
[0018]
[0019]
[0020] (3) The implemented multi-SVM classifier is a combination of 10 binary SVMs. Each binary SVM is composed of an FPGA module and controlled by a synchronous clock. The result of each SVM is z, with positive being 0 and negative being 1. The statistical output sequence is... The data training process derives the correspondence between each sequence value and the result. M sets of absorption cross-section registers (reg registers) and N sets of sampling rate selectors (reg selectors) are set, with each sequence value corresponding to an enable signal in each set. Matching... and The value, matching resolution determines the number of sample categories.
[0021] Preferably, step four implements synchronous clock control for multiple sampling chips within the FPGA, enabling the division into n blocks based on the current sampling rate, according to... Selecting s-chip digital-to-analog converters solves the problem of achieving the maximum sampling rate of a single digital-to-analog converter chip. The problem is that the phase difference of the sampling clock for each of the S-chip sampling chips used should meet the phase difference requirement. Each sampling section does not overlap with the others.
[0022] Preferably, the period of the p sampling points in step four is... .
[0023] Preferably, in step five, an FPGA is used to employ a parallel full comparison algorithm to arrange all sampling points in descending order until the detection code value reaches the initial voltage. ( The sampling point number at multiples of ) is selected, and the median value q of the same code value number is chosen, according to... The sampling frequency was modified twice according to the ratio.
[0024] This invention provides a wide-range adaptive system and method for cavity ring-down spectroscopy detection, which has the following advantages: The present invention has the following advantages over the prior art: 1. The cavity ring-down spectroscopy detection system and method provided by this invention retrieves the gas concentration within the cavity by sampling electrical signals and fitting ring-down time parameters. Gas ring-down time is negatively correlated with concentration; the number of effective ring-down time fitting points determines the accuracy of concentration calculation, and also affects the resource consumption and time consumption of the fitting algorithm. Currently, most cavity ring-down spectroscopy detection instruments use a fixed sampling rate, resulting in insufficient effective fitting points for the ring-down time at high concentrations, leading to poor concentration detection performance. This invention selects the optimal number of sampling points for fitting and adaptively adjusts the sampling rate for different concentrations with limited algorithm resources, thereby widening the detection range while maintaining stable instrument accuracy.
[0025] 2. According to the relevant laws of cavity ring-down spectroscopy, the cavity temperature, ambient pressure, and ring-down time all interact and influence each other. This invention samples the feature vectors of three entities, performs two sets of one-to-one multi-SVM classifications, and then performs measurement matching based on the pre-classified absorption cross-section. This can correct the interference of environmental factors on the absorption cross-section and the sampling rate of the decay time, and solve the usage limitations of existing detection instruments that require a fixed working environment.
[0026] 3. The adaptive adjustment system and method of this invention utilizes multiple low-sampling-rate ADC chips to expand the sampling rate, saving economic costs. Simultaneously, the two sets of one-to-one multiple SVM classification algorithms employed are implemented on FPGA, allowing for FPGA hardware porting of the entire system and easy integration into detection instruments. The sampling fitting interval algorithm used is time-efficient, the number of fitting points meets the optimal fitting point count, and the concentration inversion calculation performance is excellent. Attached Figure Description
[0027] The present invention will be further described below with reference to the accompanying drawings and embodiments: Figure 1 is a flow chart of the adaptive adjustment control of the present invention. Figure 2 The adaptive sampling rate adjustment FPGA control flow diagram of the present invention Figure 3 This is a timing diagram of the cavity ring-down signal acquired by the s-group data acquisition chip of the present invention. Figure 4 This is a graph showing the effect of the sampling frequency on the accuracy over a wide concentration range according to the present invention. Detailed Implementation
[0028] like Figure 1 The diagram shows the flowchart of the wide-range adaptive system for cavity ring-down spectroscopy. The steps are as follows: First, a cavity temperature sensor is installed on the surface of the ring-down cavity; a gas pressure sensor is installed at the cavity gas path interface; a shutdown voltage control module is installed in the control circuit; and the cavity ring-down signal is set. The ADC pre-acquisition module is configured to set the pre-sampling section for the rate of change of the fading signal. The rate of change of the signal is collected. The above features are used to construct a feature vector set: cavity temperature feature vector. Environmental air pressure feature vector Laser turn-off voltage threshold feature vector and signal change rate eigenvector .
[0029] Two sets of multi-class support vector machine classifiers based on a one-to-one classification method using FPGA are configured. Set 1 uses feature matrix matching absorption cross section. Group 2 sampling rate Value matching. A multi-class support vector machine classifier is constructed using two sets of one-to-one classification methods, where one set of samples is... One set of samples is If a one-to-one binary SVM is required between any two classes of samples, then a total of 10 binary SVMs will be needed. The logic implementation diagram of the SVM classifier on the FPGA is shown below. Figure 2As shown, the Lagrange parameters for SVM can be trained in Matlab and stored in ROM. The FPGA calls the parameters through clock and enable control and uses the floating-point budget IP core for calculation. The positive output structure of SVM is stored in the counter. After synthesis, the pre-sampling frequency and absorption cross section register are selected.
[0030] The FPGA drives multiple ADCs to sample based on the number of sampling channels and the sampling clock, implementing n-block partitioning based on the current sampling rate. Selecting s-chip digital-to-analog converters solves the problem of achieving the maximum sampling rate of a single digital-to-analog converter chip. The problem is that the phase difference of the sampling clock for each of the s-chip sampling chips used should meet the phase difference requirement. Each sampling segment does not overlap. The timing diagram of multi-channel ADC sampling is shown below. Figure 3 As shown. The four sets of feature vectors are input into the SVM classifier to obtain the absorbing cross-section correction value. and sampling coarse frequency The sampling frequency is subject to code value fluctuations and noise interference, requiring secondary precise correction. The number of data sampling points is p, precisely covering the optimal fitting period. Too many points will cause the instrument's fitting algorithm to take too long, making it impossible to detect in real time or even causing the fitting to fail; too few points will result in poor fitting and will not meet the accuracy requirements. The purpose of the adaptive sampling system is to control the number of fitting points to always be p.
[0031] Using an FPGA and a parallel full comparison algorithm, all sampling points are arranged in descending order until the detected code value reaches the initial voltage. ( To eliminate Gaussian noise interference and reduce the sampling bit width limitation of the AD chip, the median value q of the same code value sequence number is selected, according to... The sampling frequency is adjusted proportionally twice. The sampling frequency is determined when the difference between two consecutive sorting comparisons is within the allowable fluctuation range (≤±3% of the total number of sampling points).
[0032] By fitting the sampling data with continuous sorting comparison differences within the allowable fluctuation range to the oscillation signal, and using the corrected absorption cross section obtained by SVM to calculate the concentration, the detection system can be adaptively adjusted under a wide range.
[0033] The temperature is controlled at 25℃, and the gas pressure is approximately 1 atm at extremely low gas flow rates. Four AD4001 chips are used. A multi-ADC synchronous acquisition system was constructed using a sampling chip with a 2MHz (2MHz) frequency. Cavity ring-down spectroscopy was used to detect H2S concentrations from 0 to 100 ppm. The 100 ppm group used theoretically predicted values based on sampling errors at low concentrations. The standard sampling point count for the adaptive sampling system was set at 512 points. A comparative experiment was conducted between a fixed 1MHz sampling system and the adaptive system. Gas concentration was selected as the evaluation criterion. Figure 4 The results demonstrate that this system has good applicability.
[0034] The above embodiments are merely preferred technical solutions of the present invention and should not be considered as limitations on the present invention. The scope of protection of the present invention should be limited to the technical solutions described in the claims, including equivalent substitutions of the technical features described in the claims. That is, equivalent substitutions and improvements within this scope are also within the scope of protection of the present invention.
Claims
1. A wide-range adaptive detection method for cavity ring-down spectroscopy, characterized in that, Includes the following steps: Step 1: Configure the cavity temperature sensor, configure the gas path pressure sensor, configure the shutdown voltage control module, and configure the cavity ringback signal. The ADC pre-acquisition module is configured to set the pre-sampling section for the rate of change of the fading signal. Points and sampling frequency ; Step 2: Set the feature vector set, and set the cavity temperature feature vector. Set the ambient air pressure feature vector Set the laser turn-off voltage threshold feature vector and signal change rate eigenvector ; Step 3: Set up two sets of multi-class support vector machine classifiers constructed using a one-to-one classification method based on FPGA. Set up Group 1 with feature matrix matching absorption cross section. Group 2 sampling rate Look up matching values; Step 4: The FPGA drives the multiple ADCs to sample according to the number of sampling channels and the sampling clock. The four sets of feature vectors are then input into the SVM classifier to obtain the absorption cross-section correction value. and sampling coarse frequency Step 5: Use the parallel full comparison method to locate the sampling point position at the fading time and correct the sampling frequency. Then return to step four, and determine the sampling frequency at this time when the difference between the two consecutive sorting comparisons is within the allowable fluctuation range; Step Six: Perform Frequency Correction Sample and fit the ringback signal, and calculate the concentration using the modified absorption cross section; Step five uses an FPGA employing a parallel full comparison algorithm to arrange all sampling points in descending order until the detected code value reaches the initial voltage. , The sampling point number at the multiple is selected, and the median value q of the same code value number is chosen, according to... The sampling frequency was modified twice according to the ratio.
2. The adaptive method for wide-range detection using cavity ringback spectroscopy according to claim 1, characterized in that, The step one, which involves setting a cavity temperature sensor and a gas path pressure sensor, includes: ; ; ; Ring-down spectroscopy for gas concentration With absorption cross section There exists a relationship as shown in formula (1), while the absorption cross section and temperature are related in a pure gas environment. air pressure The relationship is given by formula (2), where the optical path length L is proportional to the ring-down time, and the three factors influence each other; in the formula... The decay time of the gas to be measured. For cavity decay time, It detects light intensity after absorption. Let R be the incident light intensity, and R be the Boltzmann constant. It is the speed of light.
3. The adaptive method for wide-range detection using cavity ringback spectroscopy according to claim 1, characterized in that, The specific steps for setting up the shutdown voltage control module in step one are as follows: The shutdown voltage is output by the DA chip controlled by the FPGA, and the first point acquired in the data acquisition system will be used as the shutdown voltage. Considering the turn-off voltage threshold, the discrete oscillation signal can be expressed as equation (4), where For the sequence number i, i≤n, i=1,2,3…n, the voltage code value; Set the pre-sampling section for the rate of change of the decaying signal. and sampling frequency Within the preset detection zone, m sampling points are selected for sampling, where m is... code value Sampling point at the location, segment length The sampling rate is detected by using m-1 sets of sampled voltage signal derivative values; the Gaussian noise is eliminated by averaging the m-1 sets of decaying signal derivative values, and the sampling frequency is... The overall sampling rate is formed by using piecewise phase sampling. of ; 4. The adaptive method for wide-range detection using cavity ring-down spectroscopy according to claim 1, characterized in that, The feature vector in step two is based on the FPGA floating-point arithmetic IP core, using Z-Score dimensionless processing, as shown in equation (6). The feature values... It then follows a normal distribution in the interval [0,1].
5. The adaptive method for wide-range detection using cavity ringback spectroscopy according to claim 1, characterized in that, Step three includes: (1) Two sets of multi-class support vector machine classifiers constructed using one-to-one classification methods, one set of samples being One set of samples is For any two classes of samples, a one-to-one binary classification SVM is needed, requiring a total of 10 binary classification SVMs; if the training set of group 1 is divided into M classes and the training set of group 2 is divided into N classes, then the SVM classification problem is the optimization problem represented by equation (7), where... It is a mapping function. These are the weight vectors for the i-th and j-th classes. The corresponding threshold is given by equation (8), which is the decision function to be solved. ; ; (2) The FPGA implementation of SVM uses the exponentiation module in the floating-point arithmetic IP core to implement the Gaussian kernel function shown in equation (9), and implements the Lagrange multiplier shown in equation (10) to solve the inner product of eigenvectors, thus forming the decision function. To enable experimental training, constants are determined and stored in the FPGA's ROM for use by the kernel function during multiplication. ; ; (3) The implemented multi-SVM classifier is a combination of 10 binary SVMs. Each binary SVM is composed of an FPGA module and controlled by a synchronous clock. The result of each SVM is z, with positive being 0 and negative being 1. The statistical output sequence is... The data training process derives the correspondence between each sequence value and the result. M sets of absorption cross-section registers (reg registers) and N sets of sampling rate selectors (reg selectors) are set, with each sequence value corresponding to an enable signal in each set. Matching... and The value, matching resolution determines the number of sample categories.
6. The adaptive method for wide-range detection using cavity ringback spectroscopy according to claim 1, characterized in that, Step four involves implementing synchronous clock control for multiple sampling chips within the FPGA, and dividing the data into n blocks based on the current sampling rate. Selecting s-chip digital-to-analog converters solves the problem of achieving the maximum sampling rate of a single digital-to-analog converter chip. The problem is that the phase difference of the sampling clock for each of the S-chip sampling chips used should meet the phase difference requirement. Each sampling section does not overlap with the others.
7. The adaptive method for wide-range detection using cavity ringback spectroscopy according to claim 2, characterized in that, The period of the p sampling points in step four is... .
Citation Information
Patent Citations
Infrared cavity ring-down spectroscopy trace gas detection method based on quantum cascade laser
CN101644673A
Sulfur hexafluoride insulation electrical equipment decomposition product detecting device and method
CN104931456A
