Gas analyzer and calibration method thereof, and computer readable storage medium
By using a combination of multi-optical path and fiber coupler in the gas analyzer, intelligent correction of spectral drift and resolution is achieved, solving the problem of abnormal concentration calculation caused by spectral changes, and improving analysis accuracy and instrument reliability.
Patent Information
- Application Number
- CN202411026542.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In the absorption spectrum monitoring scenario, the spectral morphology is susceptible to changes caused by the structure, temperature and external force of the optical machine. The existing spectral translation analysis methods cannot be fully matched, and the spectral resolution changes cannot be corrected, resulting in abnormal concentration calculations.
A gas analyzer is designed, including a detection optical path and a calibration optical path, and enters the spectrometer through the first optical fiber coupler, uses a combination of zero gas and standard gas calibration tank, uses a solenoid valve to switch the light source, and selects the calibration optical path through a 1*M optical switch. Acquire the zero gas and standard gas spectrum, perform absorbance processing and interpolation fitting, calculate the spectral drift amount and resolution correction coefficient, and realize spectral drift correction and resolution correction.
It realizes automatic calibration of the gas analyzer, intelligently identify standard gas differences and corrects data deviations, solves the concentration changes caused by spectral resolution changes, and improves the reliability and accuracy of the analysis instrument.
Smart Images

Figure CN118549371B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of analysis and detection, and in particular relates to a gas analyzer and a calibration method thereof, and a computer-readable storage medium. Background Art
[0002] At present, in the absorption spectrum monitoring scenario, the spectrum will be affected by factors such as the optical-mechanical structure, temperature, external force, and falling, causing the spectral morphology to change. When the deformed spectrum is used to calculate the concentration, it will cause concentration anomalies. The existing conventional correction method generally uses spectral shift analysis. However, the spectra of general light sources (such as xenon lamps, deuterium lamps, mercury lamps, etc.) have spectral shapes with corresponding characteristics. Due to pollution and other reasons, they cannot be corrected to a complete match after shifting. In addition, when the resolution of the spectrum changes, the problem cannot be solved after spectral shifting. Summary of the invention
[0003] Based on the above-mentioned shortcomings and deficiencies in the prior art, one of the objects of the present invention is to at least solve one or more of the above-mentioned problems in the prior art. In other words, one of the objects of the present invention is to provide a gas analyzer and its calibration method, and a computer-readable storage medium that meet one or more of the aforementioned needs.
[0004] In order to achieve the above-mentioned object of the invention, the present invention adopts the following technical solutions:
[0005] A gas analyzer comprises a detection optical path, a calibration optical path, a first optical fiber coupler and a spectrometer, wherein the detection optical path and the calibration optical path are connected in parallel and then enter the spectrometer through the first optical fiber coupler;
[0006] The detection optical path includes a detection light source and an absorption cell. The detection light signal emitted by the detection light source passes through the absorption cell and then enters the spectrometer through the first optical fiber coupler.
[0007] The calibration optical path includes a calibration light source, 1* M Optical switches and M A calibration pool; M The calibration cells include a zero gas calibration cell and N The calibration light signal emitted by the calibration light source passes through 1* M The optical switch selects to pass through the zero gas calibration cell or the standard gas calibration cell, and then enters the spectrometer through the first optical fiber coupler.
[0008] As a preferred solution, the detection light source and the calibration light source are switched by a solenoid valve and enter 1* through a second optical fiber coupler. M Optical switch.
[0009] As a preferred solution, the detection light source is a pulsed xenon lamp, and the calibration light source is a continuous deuterium lamp.
[0010] As a preferred embodiment, the absorption tank is a White tank or a Herriot tank.
[0011] The present invention also provides a calibration method for the gas analyzer as described in the above scheme, comprising the following steps:
[0012] S1, calibration light source through 1* M An optical switch controls the optical switch branch to select the path to enter the zero gas calibration pool, and then enter the spectrometer through the first optical fiber coupler to obtain the zero gas spectrum;
[0013] Control the optical switch branches to select the calibration pools of the standard gases respectively, so as to obtain the spectra of the standard gases respectively;
[0014] S2, after processing the spectra of each standard gas and the zero gas spectrum, we can get T Time 0, different sampling points h Next i Absorbance of standard gas ;in, i ∈[1, N ], h ∈[1, H ], H is the total number of sampling points;
[0015] S3. Calculate the i The standard gas is within the parameter sampling range [ P , Q ] weighted standard gas absorption sampling band [ K , L The sum of the absorbance series of ;in,[ K , L ]∈[ P , Q ];
[0016] S4. T At time 1, repeat steps S1 to S3 to obtain T 1 moment, different sampling points h Next i Absorbance of standard gas and the sum of the absorbance series ;in, T 1 and T The difference of 0 is the calibration period T An integer multiple of ;
[0017] S5, the interval between adjacent sampling points d conduct Z +1 is used as an interpolation point for absorbance Perform linear fitting interpolation , z ∈[1,Z ]; then calculate and The correlation R z ,Pick The minimum value corresponds to z * The spectral shift is calculated as ; According to the spectral drift T 1st time i The spectrum of the standard gas is drift-corrected and then recalculated After calibration, ;
[0018] S6, based on different standard gas concentrations i Standard gas and calibrated Calculating the Resolution Correction Factor K s ;
[0019] S7. Using the resolution correction factor K s Correct for concentration.
[0020] As a preferred embodiment, the sum of the absorbance series for:
[0021] ;
[0022] The sum of the absorbance series for:
[0023] ;
[0024] in, β is the fitting coefficient.
[0025] As a preferred solution, in step S5, the correlation degree R z for:
[0026] ;
[0027] ;
[0028] in, b 1. b 2 is the fitting coefficient.
[0029] As a preferred solution, in step S6, the resolution correction coefficient K s for:
[0030] ;
[0031] in, R For the i The number of types of standard gas with different concentrations, for T 0 time, r The concentration of the standard gas i The sum of the absorbance series of the standard gas, for T 1st moment, r The concentration of the standard gas i The sum of the absorbance series of the standard gas.
[0032] As a preferred solution, in step S7, the corrected concentration C 1 is:
[0033] ;
[0034] in, C 0 is the concentration before correction.
[0035] The present invention also provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the calibration method as described in any of the above schemes.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] (1) The gas analyzer of the present invention is designed with an optical-mechanical structure that can be automatically calibrated, which can intelligently switch the calibration light source, regularly calibrate the spectral drift of the spectrometer and the optical path system, intelligently identify the difference of the standard gas and correct the data deviation caused by the difference of the standard gas concentration;
[0038] (2) The calibration method of the gas analyzer of the present invention can intelligently calculate the change of spectral resolution, timely correct the concentration change caused by the spectral resolution, and restore it to the initial resolution by calculating the resolution correction coefficient, which can solve the calibration problem, greatly ensure the reliability of the instrument, and realize accurate analysis of the gas;
[0039] (3) The computer-readable storage medium of the present invention realizes intelligent calibration of the gas analyzer. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 Schematic diagram of the optical path structure of the gas analyzer according to Embodiment 1 of the present invention;
[0041] Figure 2 is a spectrum diagram before correction when the calibration method of Example 1 of the present invention is applied to nitric oxide analysis;
[0042] Figure 3This is a drift-corrected spectrum diagram of nitric oxide analysis using the calibration method of Example 1 of the present invention. DETAILED DESCRIPTION
[0043] In order to more clearly illustrate the embodiments of the present invention, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other accompanying drawings and other implementation methods can be obtained based on these accompanying drawings without creative work.
[0044] Embodiment 1:
[0045] like Figure 1 As shown, the gas analyzer of this embodiment includes a detection optical path, a calibration optical path, a first optical fiber coupler and a spectrometer. The detection optical path and the calibration optical path are connected in parallel and enter the spectrometer through the first optical fiber coupler, so as to facilitate the switching between detection and calibration.
[0046] Specifically, the detection optical path of this embodiment includes a detection light source and an absorption cell. The detection light signal emitted by the detection light source passes through the absorption cell and then enters the spectrometer through the first optical fiber coupler, so that the spectrometer can obtain the spectrum signal of the gas to be detected.
[0047] The detection light source is a pulsed xenon lamp, and the absorption cell is a long optical path absorption cell such as a White cell and a Herriot cell.
[0048] The calibration optical path of this embodiment includes a calibration light source, a 1*3 optical switch and three calibration pools; the three calibration pools include a zero gas calibration pool and two standard gas calibration pools, and the two standard gas calibration pools are respectively a standard gas 1 calibration pool and a standard gas 2 calibration pool; the calibration light signal emitted by the calibration light source is selected by the 1*3 optical switch to pass through the zero gas calibration pool, the standard gas 1 calibration pool or the standard gas 2 calibration pool, and then enters the spectrometer through the first optical fiber coupler to obtain the zero gas spectrum, the standard gas 1 spectrum and the standard gas 2 spectrum.
[0049] Wherein, the above-mentioned calibration light source uses a continuous deuterium lamp, and the zero gas uses nitrogen or clean air.
[0050] In addition, the detection light source and calibration light source of the present embodiment are switched by an electromagnetic valve and enter the 1*3 optical switch through the second optical fiber coupler; that is, the detection light source of the present embodiment can also be used as a calibration light source, and the detection light source is preferably used as the calibration light source, and the calibration light source is used as a backup.
[0051] The first optical fiber coupler of this embodiment is a four-in-one optical fiber coupler, and the second optical fiber coupler is a two-in-one optical fiber coupler.
[0052] Based on the above-mentioned gas analyzer, the calibration method of this embodiment includes the following steps:
[0053] (1) Before measuring, start the calibration mode, select the light source type through the solenoid valve control, preferably the detection light source, or disconnect the detection light source and switch to the calibration light source, then enter the 1*3 optical switch through the second optical fiber coupler, control the 1*3 optical switch branch to select to enter the zero gas calibration pool (i.e. switch the zero gas optical path), and then enter the spectrometer through the first optical fiber coupler, and the spectrometer receives the zero gas spectrum;
[0054] Control the 1*3 optical switch to select the path to enter the calibration pool of standard gas 1 (i.e. switch the optical path of standard gas 1), and then enter the spectrometer through the first optical fiber coupler, and the spectrometer receives the spectrum of standard gas 1;
[0055] Control the 1*3 optical switch to select the path to enter the calibration pool of standard gas 2 (i.e. switch the optical path of standard gas 2), and then enter the spectrometer through the first optical fiber coupler, and the spectrometer receives the spectrum of standard gas 2;
[0056] (2) After processing the above-mentioned spectra of standard gas 1, standard gas 2 and zero gas, we get T Time 0, different sampling points h Subscript gas i The absorbance ;in, i ∈[1, 2], h ∈[1, H ], H is the total number of sampling points; in addition, the absorbance is stored And build absorbance array A :
[0057] ;
[0058] The processing of the above-mentioned standard gas 1 spectrum, standard gas 2 spectrum and zero gas spectrum can refer to the existing technology and will not be repeated here;
[0059] (3) Calculate the standard gas separately i In the parameter sampling range [ P , Q ] weighted standard gas absorption sampling band [ K , L The sum of the absorbance series of ;in,[ K , L ]∈[ P , Q ];
[0060] Specifically, ;
[0061] in, β is the fitting coefficient, which can be obtained by fitting according to the actual application scenario;
[0062] (4) Start the calibration mode at a fixed time. T At time 1, repeat steps S1 to S3 to obtain T 1 moment, different sampling points h Next i Absorbance of standard gas and the sum of the absorbance series ;in, T 1 and T The difference of 0 is the calibration period T An integer multiple of ;
[0063] Specifically, ;
[0064] (5) The interval between adjacent sampling points d conduct Z +1 is used as an interpolation point for absorbance Perform linear fitting interpolation , z ∈[1, Z ], as an example, Z The value is 100; the linear fitting interpolation can be specifically referred to the prior art, which will not be described in detail here;
[0065] Then calculate and The correlation R z :
[0066] ;
[0067] ;
[0068] in, b 1. b 2 is the fitting coefficient.
[0069] Pick The minimum value corresponds to z * The spectral shift is calculated as ; According to the spectral drift T 1st time i The spectrum of the standard gas is drift corrected (i.e. shifted) and then recalculated After calibration, ;
[0070] (6) Based on different standard gas concentrations i Standard gas and calibrated Calculating the Resolution Correction Factor K s ;
[0071] Specifically, ;
[0072] in, R For the i The number of different concentrations of the standard gas, as an example, R The value is 5, which represents five concentration gradients of 100%, 80%, 50%, 20%, and 10% of the full scale of the same standard gas; for T 0 time, r The concentration of the standard gas i The sum of the absorbance series of the standard gas, for T 1st moment, r The concentration of the standard gas i The sum of the absorbance series of the standard gas.
[0073] (7) Using the resolution correction factor K s Correct for concentration.
[0074] Specifically, the corrected concentration C 1 is:
[0075] ;
[0076] in, C 0 is the concentration before correction.
[0077] The computer-readable storage medium of this embodiment stores instructions. When the instructions are executed on a computer, the computer executes the calibration method of this embodiment to realize intelligent calibration.
[0078] In order to verify the accuracy of the above calibration method of this embodiment, the analysis of nitric oxide (NO) is taken as an example for detailed description:
[0079] Start the measurement mode, start the detection light source, measure the spectrum in real time and calculate the absorbance, then correct the absorbance drift and absorbance resolution to obtain the corrected concentration.
[0080] like Figure 2 As shown, the spectra of signal 1, signal 2 and signal 3 are obtained respectively, signal 1 corresponds to the original absorbance, signal 2 corresponds to drift and 0.9 resolution, and signal 3 corresponds to drift and 0.8 resolution, that is, the spectra of signal 2 and signal 3 show changes in drift and resolution compared with the spectrum of signal 1, as shown in Table 1.
[0081] Table 1 The peak value of absorbance and the sum of absorbance series (i.e. signal value) after the spectrometer drifts
[0082]
[0083] After drift correction, the drift-corrected absorbance peak and the sum of the absorbance series (i.e., signal value) are obtained, as shown in Table 2 and Figure 3 shown.
[0084] Table 2 Drift-corrected absorbance peak and sum of absorbance series (i.e. signal value)
[0085]
[0086] However, after drift correction, there are still different resolutions leading to different absorbances, so resolution correction should also be performed. Nitric oxide (NO) has two absorption peaks, and the gas concentration is corrected by combining the peak position and resolution correction analysis method.
[0087] Table 3 Comparison of the first absorption peak drift before and after correction
[0088]
[0089] Table 4 Comparison of the second absorption peak drift before and after correction
[0090]
[0091] The analysis of the first absorption peak, as shown in Table 3, shows a comparison between the gas concentration before and after drift correction. The error between the gas concentration after correction and the evaluation gas concentration is within 0.3%. The analysis of the second absorption peak, as shown in Table 4, shows a comparison between the gas concentration before and after drift correction. The error between the gas concentration after correction and the evaluation gas concentration is within 0.82%.
[0092] In summary, the calibration method of this embodiment effectively improves the accuracy of gas analysis.
[0093] Embodiment 2:
[0094] The difference between the gas analyzer of this embodiment and that of embodiment 1 is that:
[0095] The calibration light source is omitted, and only the detection light source is retained. The detection light source is used as the calibration light source to simplify the structure and meet the needs of different applications.
[0096] For other structures, please refer to Example 1.
[0097] Embodiment 3:
[0098] The calibration method of the gas analyzer of this embodiment is different from that of Embodiment 1 in that:
[0099] The number of standard gases is not limited to two and can be increased or decreased according to actual application requirements to meet the needs of different applications;
[0100] For other calibration steps, please refer to Example 1.
[0101] The above description is only a detailed description of the preferred embodiments and principles of the present invention. For ordinary technicians in this field, according to the ideas provided by the present invention, there will be changes in the specific implementation methods, and these changes should also be regarded as the protection scope of the present invention.
Claims
1. A gas analyzer calibration method, characterized in that: The gas analyzer comprises a detection optical path, a calibration optical path, a first optical fiber coupler and a spectrometer. The detection optical path and the calibration optical path are connected in parallel and then enter the spectrometer through the first optical fiber coupler. The detection optical path includes a detection light source and an absorption cell. The detection light signal emitted by the detection light source passes through the absorption cell and then enters the spectrometer through the first optical fiber coupler. The calibration optical path includes a calibration light source, 1*M optical switches and M calibration cells; The M calibration pools include a zero gas calibration pool and N standard gas calibration pools; the calibration light signal emitted by the calibration light source is selected to pass through the zero gas calibration pool or the standard gas calibration pool through a 1*M optical switch, and then enters the spectrometer through a first optical fiber coupler; The calibration method comprises the following steps: S1, the calibration light source passes through the 1*M optical switch, controls the optical switch branch to select and enter the zero gas calibration pool, and then enters the spectrometer through the first optical fiber coupler to obtain the zero gas spectrum; Control the optical switch branches to select the calibration pools of the standard gases respectively, so as to obtain the spectra of the standard gases respectively; S2. After processing the spectra of each standard gas and the zero gas spectrum, the absorbance of the i-th standard gas at time T0 and different sampling points h is obtained. Where, i∈[1,N], h∈[1,H], H is the total number of sampling points; S3, calculate the sum of the absorbance series ASi(T0) of the i-th standard gas in the standard gas absorption sampling band [K, L] under the weight of the parameter sampling range [P, Q]; wherein, [K, L]∈[P, Q]; S4. At time T1, repeat steps S1 to S3 to obtain the absorbance of the i-th standard gas at different sampling points h at time T1. And the sum of the absorbance series AS i (T1); wherein the difference between T1 and T0 is an integer multiple of the calibration period T; S5, divide the adjacent sampling points into Z+1 equal parts according to the interval d as the interpolation point, and calculate the absorbance Perform linear fitting interpolation Then calculate AS i (T0) and AS i The correlation R of (T1) z , take 1-R z | 2 The minimum value of z * The spectral shift is calculated as The spectrum of the i-th standard gas at time T1 is drift-corrected according to the spectral drift, and then ASi(T1) is recalculated to obtain the calibrated ASi(T1); S6. Calculate the resolution correction factor K based on the ASi(T0) of the i-th standard gas with different standard gas concentrations and the calibrated ASi(T1) s ; S7. Use resolution correction factor K s Correction for concentration; The sum of the absorbance series ASi(T0) is: The sum of the absorbance series ASi(T1) is: Among them, β is the fitting coefficient; In step S5, the correlation degree R z for: Among them, b1 and b2 are fitting coefficients; In step S6, the resolution correction coefficient K s for: Where R is the number of types with different concentrations of the i-th standard gas, is the sum of the absorbance series of the ith standard gas at the rth standard gas concentration at time T0, is the sum of the absorbance series of the ith standard gas at the rth standard gas concentration at time T1; In step S7, the corrected concentration C1 is: Where C0 is the concentration before correction.
2. The calibration method according to claim 1, characterized in that: The detection light source and the calibration light source are switched by a solenoid valve and enter the 1*M optical switch through a second optical fiber coupler.
3. The calibration method according to claim 2, characterized in that: The detection light source is a pulsed xenon lamp, and the calibration light source is a continuous deuterium lamp.
4. The calibration method according to claim 1, characterized in that: The absorption pool is a White pool or a Herriot pool.
5. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instructions are executed on a computer, the computer is caused to perform the calibration method as claimed in claim 1 .
