Figures
Abstract
A demodulation method for tunable diode laser absorption spectroscopy (TDLAS) second harmonic based on the Hilbert transform is proposed in this paper. The second harmonic of the TDLAS signal can be easily obtained without a reference signal. The TDLAS signal is firstly processed by band-pass filtering, then the envelope of the processed signal is obtained with Hilbert transform. And finally, the second harmonic is extracted from the 1f component of the envelope. The validity of the proposed method is confirmed by simulation and verified by experiment, and the result shows that the error is acceptable under the cases of weak absorbance, which indicates that the proposed method is applicable to practical trace gas detection.
Citation: Wu J, Chen H, Kang G, Li X (2022) TDLAS second harmonic demodulation based on Hilbert transform. PLoS ONE 17(12): e0278724. https://doi.org/10.1371/journal.pone.0278724
Editor: Xuejian Wu, Rutgers University Newark, UNITED STATES
Received: August 16, 2022; Accepted: November 21, 2022; Published: December 5, 2022
Copyright: © 2022 Wu et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The data underlying the results presented in the study are available from the github (https://github.com/awublack/Hbt-TDLAS-secondHarmonic).
Funding: Funder: Wuhan National Laboratory for Optoelectronics Award Number: 2019WNLOKF011 Grant Recipient: Guohua Kang, Doctor's degree The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
Characterized by high sensitivity, high resolution, and fast response, tunable diode laser absorption spectroscopy (TDLAS) is extensively employed in industrial process gas analysis [1, 2], environmental monitoring [3, 4], and biomedical science [5–7]. TDLAS technology can be roughly divided into direct absorption spectroscopy (DAS) and wavelength modulation spectroscopy (WMS). In WMS, the output wavelength of laser diode is simultaneously modulated by a slowly varying scanning signal and a high frequency modulation signal. As the absorption signal is transferred to high frequency, away from the interference of low frequency noise, WMS obtain a higher signal-to-noise ratio and stronger robustness than DAS [8, 9]. In practical applications, WMS is widely used, and the second harmonic of the transmitted light intensity signal is of critical importance in the calibration of gas concentration [10, 11].
Conventionally, the second harmonic is obtained by lock-in amplifier. However, analog lock-in amplifier requires reference signal that in phase with the harmonic signal. Accordingly, complex phase shifting circuits is required, and high-precision multiplier is complicated in structure and difficult to design. Besides, electronic noise and DC shift may affect the precision of analog systems [10]. Digital lock-in amplifier also requires reference signal that generated according to the frequency and phase of harmonics. To obtain the complete harmonic signal, the most common methods are to manually adjust the reference signal phase [12] or use two orthogonal signals [13–16]. The latter method is less cumbersome and is widely used in practical measurement, but the reference signals are still essential.
In this paper, a TDLAS second harmonic signal demodulation method based on double Hilbert transform (HT) is proposed. And the second harmonic of the TDLAS signal can be easily obtained without reference signal. The proposed method needs no information about TDLAS signal except modulation frequency to set the passband of the filter.
2. Methodology
2.1 Theory of TDLAS
The theory of TDLAS will facilitate the derivation of the proposed method which will be presented in the next subsection. In WMS, the output wavelength of laser diode is simultaneously modulated by a slowly varying scanning signal and a high frequency modulation signal. The wavenumber of the light emitted by the diode laser can be expressed as (1)
Where vc(t) is the center light wavenumber and it is modulated by a sawtooth. Δv is the modulation depth of the frequency modulation.
The relationship between the transmitted light intensity after passing through the gas and the emitted light intensity is (2)
Where α(v) is the absorbance; It and Io are the transmitted and emitted light intensity; P (in atm) is the total gas pressure; S(T) (in cm-2/atm) is the line strength at temperature of T (in K); ϕ(v) (in cm) is the line profile; C (in ppm) and L (in cm) are the concentration of gas and the length of light path, respectively; and Ak is the k-th order Fourier component of transmittance.
The modulation of laser emission frequency is achieved by changing the injection current, which actually modulates the laser frequency and light intensity simultaneously, and this produce a gas independent background signal called residual amplitude modulation (RAM). And there is a phase delay between the frequency modulation and the intensity modulation [17–19]. The intensity of the light emitted by the diode laser can be expressed as: (3)
Where is the average light intensity; i1 is the linear intensity modulation depth, and it is proportional to Δv; ϕ1 is the phase shift between frequency modulation and the intensity modulation. The nonlinearity of laser intensity modulation is considered negligible here.
In conclusion, the transmitted light intensity contains many harmonic components and can be expressed as: (4)
Where ; φk is the phase of k-th order harmonic; Hk denote the amplitude of k-th order harmonic component of the transmitted light intensity, which is a function of t. Since its frequency is much smaller than ω, and to simplify the expression, it is not written as Hk(t) here.
As a result of RAM, there is a strong background signal in the signal H1 [17]. Generally, the magnitude of H1 is much larger than other high order harmonics, and the magnitude of Hk diminishes quickly as the order goes up.
2.2 Hilbert transform
The Hilbert transform of the signal g(t), denoted as , is the convolution of g(t) with the signal 1/πt. That is: (5)
Here are properties of the Hilbert transform that will be used later in the derivation.
The orthogonality of Hilbert transform: after Hilbert transform, the amplitudes of the signal remain unchanged and the phases of the spectral components are shifted by -π/2. For example, the Hilbert transform of cos(t) is sin(t).
Bedrosian theorem [20]: Consider two signals g(t) and h(t) with nonoverlapping spectral in the frequency domain, and the Fourier transform of g(t) and h(t), denoted as G(f) and H(f) satisfy the following conditions: When | f |>W, G(f) = 0; and | f |<W, H(f) = 0. Then (6)
To put it another way, if a signal s(t) can be expressed as the product of a low-pass signal and a high-pass signal with nonoverlapping spectra, the Hilbert transform of s(t) is the product of the low-pass signal and the Hilbert transform of the high-pass signal [21].
2.3 Principle of TDLAS second harmonic demodulation based on Hilbert transform
The process of second harmonic demodulation method based on Hilbert transform is shown in Fig 1. The demodulated signal is actually an approximate of the second harmonic. The third step “1f component extraction” in Fig 1 is actually implemented by bandpass filtering as well.
Envelope extraction processes are based on the Hilbert transform.
It is given by the Eq (4) that the transmitted light intensity It(t) is as follows: (7)
IDC(t) is the low-frequency component in the transmitted light intensity signal. Before the processing of signal, the low-frequency component (frequency < ω) and high-order harmonic (frequency ≥ 3ω) in It(t) is removed by a band-pass filter. The remaining signal can be expressed as: (8)
Apply Hilbert transform to I(t), and get . According to the properties of Hilbert transform mentioned above, the effect of Hilbert transform is to produce a π/2 phase delay in cos(kωt+φk), and the expression of is as follows: (9)
I(t) and form the real and imaginary parts of an analytic signal z1(t) over the complex filed. The envelope of I(t) is: (10)
Where and is expressed as follows: (11)
Substituting and into |z1(t)|, we obtain: (12) Where Δφ = φ2−φ1.
It is to be noted that in the case of weak absorbance, H2<<H1. We have: (13)
Replacing with its Taylor expansion, we obtain: (14)
The signal with frequency ω in |z1(t)| is easy to obtain by band-pass filtering. It is given as follows: (15)
When H2<<H1, Eq (15) can be approximated as: (16)
Hence, Eq (14) indicates that for the second harmonic, the effect of the envelope extraction based on Hilbert transform is equivalent to a frequency reduction. It reduces the frequency of the second harmonic signal from 2ω to ω and maintains its intensity.
As shown above, the amplitude of |z1(t)|1f is approximately equal to H2. The envelope of |z1(t)|1f, denoted by |z2(t)|, can be expressed as: (17)
The above approximation holds under the assumption that H2<<H1. Due to the strong RAM background signal in the first harmonic, in the weak absorbance condition, it is reasonable to assume that H2<<H1 [22]. The approximation in Eq (16) is satisfied well in weak absorbance conditions (α(v0)<<10%). This will be verified in later simulations.
3. Numerical simulations
3.1 Simulation setup
The line shape function is described by the Lorentzian profile in the simulations: (18)
Where v0 (in cm-1) is the central wavenumber and γ (in cm-1) is the half width at half maximum (HWHM) of the gas absorption line.
The simulation is based on the CO2 absorption line at 2003.3 nm (4992.516 cm-1), because the intensity of the absorption line of CO2 is high here, we use this line to detect carbon dioxide in our experiments. The modulation index m = Δv/γ is set to 2.2 to maximize the amplitude of second harmonic [23]. The parameters of the absorption line at 2003.3 nm are set according to the HITRAN database under the atmospheric pressure of 1 atm and temperature of 296 K. The line strength is 0.0306 cm-2/atm, the γ is set as 0.0692 cm-1. The length of the optical path in the simulation is set as 11mm according to the optical path length of the device used in the actual experiment.
3.2 Signal processing and result
Global average atmospheric carbon dioxide is about 400 ppm. Therefore, the carbon dioxide concentration in this simulation is set to 400 ppm (α(v0) = 0.0062%). The second harmonic is demodulated by the proposed Hilbert transform based method. Fig 2 shows the signals in the signal processing of the proposed method.
Signals in the signal processing of the proposed method: (a) It (t), the transmitted light intensity signal; (b) I(t), the band-pass filtered signal of I(t); (c) |z1(t)|, the envelope of I(t); (d) |z1(t)|1f, the 1f component of |z1(t)|.
The transmitted light signal in Fig 2(A) is firstly processed by band-pass filtering, and the result is presented in Fig 2(B); secondly, the envelop of processed signal, denoted as |z1(t)|, is extracted in Fig 2(C); then, the 1f component of |z1(t)| is obtained by band-pass filtering the |z1(t)| and presented in Fig 2(D).
The transmitted light signal in Fig 2(A) consists of low-frequency sawtooth wave and high-frequency harmonics (the figure shows the signal for only half of the scanning period), which are the common results of the intensity modulation of injection current and nonlinear absorption; In Fig 2(B), all signals except the first harmonic (1f) and second harmonic (2f) are filtered out, corresponding to Eq (8); Fig 2(C) is the envelope of the signal in Fig 2(B). Since the intensity modulation leads to a strong gas-independent RAM signal in the first harmonic, the envelope change in the figure is not obvious, the gas related signal can be seen by zooming on the vertical axis and looks like a lying “S” plus some high-frequency component. These high-frequency component is the second harmonic signal that is transformed to 1f, corresponding to Eq (16); Then the 1f component of |z1(t)| is obtained by band-pass filtering and presented in Fig 2(D).
As shown in Fig 2(D), |z1(t)|1f presents a profile highly similar to the second harmonic. Finally, the demodulated signal, that is, the envelop of |z1(t)|1f is extracted by performing Hilbert transform to |z1(t)|1f, and the result is presented in Fig 3.
Subsequently, the second harmonic demodulated by the proposed method is compared to that of lock-in amplification in Fig 4. Fig 4(A) presents the second harmonic demodulated by Hilbert transform based method and lock-in amplifier in red and blue, respectively, and the two signals are highly coincident and almost overlap. Fig 4(B) shows the relative error curve with a relative error of almost 0% at the center of the second harmonic. The lock-in amplifier demodulated signal is taken as the true value.
Simulation results at 400 ppm of CO2: (a) Second harmonic demodulated by the two methods; (b) The relative error.
What stands out in Fig 4(B) is that the relative error increases gradually as the laser scans away from the center of the spectral line. This is due to the brick-wall bandpass filtering used in this simulation, which introduces a ringing artifacts error between the two signals. Fig 5 shows the error between the second harmonic demodulated by the two methods.
Therefore, the relative error increases gradually on both sides of the spectrum where the amplitude of the second harmonic gradually approaches zero. In spite of this, the data there is less important in practical applications. And satisfactory results have been obtained near the center of the spectral line.
3.3 Error under different absorbance
Furthermore, the Hilbert transform based method under different absorbance conditions has been tested. Fig 6 shows the relationship curve for the relative error at the center of the second harmonic and α(v0) (the absorbance at the line center). In Fig 6, the absorbance at the line center varies from 0% to 5% with the concentration of CO2 ascend to 32.29%. And other parameters are same with Fig 4.
As shown in Fig 6, the relative error increases as the absorbance at the line center rises. The main reason is that with the increase of absorbance, the intensity of high order harmonics is increasing relative to the first harmonic, and the approximation of Eq (16) is no longer satisfied. Nevertheless, the absolute relative error stay within 1% when the absorbance is no more than 3%, which indicated the proposed method is applicable to most trace gas detection cases.
4. Experiment
To verify the accuracy and validity of the proposed method, the second harmonic in a TDLAS signal obtained from an experiment is demodulated by the proposed method, and the result is compared with that of the lock-in amplification.
A DFB diode laser (nanoplus DFB TOP WL 2004.0 nm) is employed as the spectroscopic light source in the experiment. Its operating temperature is maintained at 40°C by a temperature controller. A laser driver provides the injection current of the DFB diode laser: a sawtooth current (10 Hz) with an amplitude of 5 mA and a sinusoidal current (21 kHz) with an amplitude of 3.5 mA are added to a DC injection current of 70 mA to produce the scanning signal and the modulation signal. The output frequency of the laser scans from 4992.19 cm-1 to 4992.84 cm-1, near the CO2 absorption line at 4992.516 cm-1 (wavelength of 2002.998 nm).
The length of the light path between the laser and the detector is 11mm. In the experiment, the gas in a bottle containing a little coke was detected, and the concentration of the carbon dioxide is uncertain, probably around 15%.
The TDLAS signal is detected by an InGaAs photodiode (LSIPD26-1) and collected by a digital oscilloscope (Rigol DS1102Z-E) with a sampling frequency of 25 MHz. Then, the transmitted light intensity signal shown in Fig 7 is processed by the proposed method and lock-in amplification on a computer.
The modulation frequency f in this experiment was 21 kHz, and in the program the cutoff frequency of the first band-pass filtering was set as [0.5*f, 2.5*f], which is [10500 Hz, 52500 Hz], and the cutoff frequency of the second band-pass filtering was set as [0.8*f, 1.2*f], which is [16800 Hz, 25200 Hz]. The stability of the proposed algorithm mainly depends on the SNR of the second harmonic signal. In the case of low SNR, the passband bandwidth of bandpass filtering should be set narrower.
The results of both methods are compared in Fig 8(A) and 8(B) shows the relative error of the proposed method versus lock-in amplification. The relative errors at the center of the spectral line are all marked out in blue in Fig 8(B). The results are similar to those of simulation and the signals demodulated by the two methods are almost overlap. Except near the local minimum of the second harmonic, the relative error of other positions is less than 2%, and the relative error at the center of the second harmonic is 0.6 ~ 0.7%.
Experiment results: (a) Second harmonic demodulated by the two methods; (b) The relative error.
5. Conclusion
A Hilbert based demodulation method for second harmonic in TDLAS technology is proposed. As no reference signal is required, the proposed method benefits second harmonic demodulation with convenient operation and efficiency. Theoretical analysis of this method shows that the error of this method is positively correlated with the intensity of the higher harmonics relative to the first harmonics, and this is verified by simulations. The errors under different absorbance are analyzed by simulation, and the absolute relative error stay within 1% when the absorbance is below 3%, which shows that the peak value of the second harmonic is approximately linear with the gas concentration at weak absorbance conditions, and the proposed method is applicable to most trace gas detection cases. The accuracy of this method under low absorbance was verified by experiments and the codes and experiment data in this paper are all freely available as open source on GitHub (https://github.com/awublack/Hbt-TDLAS-secondHarmonic).
References
- 1. Frish MB, Wainner RT, Laderer MC, Green BD, Allen MG. Standoff and miniature chemical vapor detectors based on tunable diode laser absorption spectroscopy. IEEE Sensors Journal. 2010;10(3):639–46. WOS:000274996900010.
- 2. Zhang L, Zhang Z, Wang Q, Sun P, Wu B, Pang T, et al. A sensitive carbon monoxide sensor for industrial process control based on laser absorption spectroscopy with a 2.3 mu m distributed feedback laser. Optics and Lasers in Engineering. 2022;152. WOS:000767937200014.
- 3. Lan L, Chen J, Zhao X, Ghasemifard H. VCSEL-based atmospheric trace gas sensor using first harmonic detection. IEEE Sensors Journal. 2019;19(13):4923–31. WOS:000471023000023.
- 4. Weng WB, Alden M, Li ZS. Simultaneous quantitative detection of HCN and C2H2 in combustion environment using TDLAS. Processes. 2021;9(11). WOS:000724509500001.
- 5. Kireev SV, Kondrashov AA, Shnyrev SL, Safagaraev AP. Use of pump current modulation of diode laser for increased sensitivity of detection of (CO2)-C-13 in human exhaled breath. Laser Physics Letters. 2018;15(3). WOS:000424673200001.
- 6. Zhou T, Wu T, Zhang HL, Wu Q, Chen WD, Ye CW, et al. Influence of Light Coupling Configuration and Alignment on the Stability of HWG-Based Gas Sensor System for Real-Time Detection of Exhaled Carbon Dioxide. Ieee Sensors Journal. 2019;19(24):11972–9. WOS:000506895500032.
- 7. Chu HW, Ma YJ, Yang L, editors. Wavelength Modulation Spectrometer using Interband Cascade Laser for Exhaled Breath Carbon Monoxide Measurement. Conference on AOPC—Infrared Device and Infrared Technology; 2021 Jun 20–22; Beijing, PEOPLES R CHINA2021.
- 8. Yang C, Mei L, Deng H, Xu Z, Chen B, Kan R. Wavelength modulation spectroscopy by employing the first harmonic phase angle method. Optics Express. 2019;27(9):12137–46. WOS:000466160900021. pmid:31052758
- 9. Wang Z, Fu P, Chao X. Laser absorption sensing systems: challenges, modeling, and design optimization. Applied Sciences-Basel. 2019;9(13). WOS:000477031900142.
- 10. Jiang C, Liu Y, Yu B, Yin S, Chen P. TDLAS-WMS second harmonic detection based on spectral analysis. Review of Scientific Instruments. 2018;89(8). WOS:000443720400007. pmid:30184698
- 11. Yang TH, Chen WG, Zhang ZX, Lei JL, Wan F, Song RM. Multiple reflections enhanced fiber-optic photoacoustic sensor for gas micro-leakage. Optics Express. 2021;29(2):2142–52. WOS:000609227300127. pmid:33726415
- 12. Humayun F, Khan R, Saadman S, Haque R, Ieee, editors. Design of a Cost-Effective Analog Lock-In Amplifier Using Phase Sensitive Detector. International Applied Computational Electromagnetics Society Symposium (ACES); 2018 Mar 25–29; Denver, CO2018.
- 13. Bhattacharyya S, Ahmed RN, Purkayastha BB, Bhattacharyya K, Iop, editors. Implementation of digital lock-in amplifier. 27th IUPAP Conference on Computational Physics (CCP); 2015 Dec 02–05; Guwahati, INDIA2016.
- 14. Sun C, Chen YP, Zhang G, Wang F, Liu GS, Ding JJ, editors. Multipoint weak signal acquisition based on orthogonal vector of the lock-in amplifier. 2nd Annual International Conference on Electronics, Electrical Engineering and Information Science (EEEIS); 2016 Dec 02–04; Xian, PEOPLES R CHINA2016.
- 15. Zhang K, Zhang L, Zhao Q, Liu S, Chen S, Wu Y, et al., editors. Application of digital quadrature lock-in amplifier in TDLAS humidity detection. Annual Conference of the Chinese-Society-for-Optical-Engineering (CSOE) on Applied Optics and Photonics China (AOPC)—Optical Spectroscopy and Imaging; 2017 2017 Jun 04–06; Beijing, PEOPLES R CHINA2017.
- 16. Chen X, Chang J, Wang FP, Wang ZL, Wei W, Liu YY, et al. A portable analog lock-in amplifier for accurate phase measurement and application in high-precision optical oxygen concentration detection. Photonic Sensors. 2017;7(1):27–36. WOS:000400302600004.
- 17. Zhu C, Wang P, Chu T, Peng F, Sun Y. Second harmonic phase angle method based on WMS for background-free gas detection. IEEE Photonics Journal. 2021;13(5):1–6. WOS:000708936700001.
- 18. Pan Y, Li Y, Yan C, Yuan J, Ren Y. Improvement of concentration inversion model based on second harmonic valley spacing in wavelength modulation spectroscopy. IEEE Access. 2020;8:227857–65. WOS:000604511400001.
- 19. Xu C, Wang S, Chen H, Wei B, Ju Y, Han L, editors. Method for eliminating second harmonic distortion based on modulation phase difference in TDLAS technology. 6th Symposium on Novel Optoelectronic Detection Technology and Applications; 2019 2020 Dec 03–05; Beijing, PEOPLES R CHINA2020.
- 20. Bedrosian E. A product theorem for Hilbert transforms. Proceedings of the IEEE. 1963;51(5):868–9.
- 21.
Feldman M. Hilbert transforms. In: Braun S, editor. Encyclopedia of Vibration. Oxford: Elsevier; 2001. p. 642–8.
- 22. Wang F, Chang J, Wang Q, Wei W, Qin Z. TDLAS gas sensing system utilizing fiber reflector based round-trip structure: Double absorption path-length, residual amplitude modulation removal. Sensors and Actuators a-Physical. 2017;259:152–9. WOS:000401391600017.
- 23. Chen H, Ju Y, Han L. Research on the relationship between modulation depth and center of high order harmonic in TDLAS wavelength modulation method. Spectroscopy and Spectral Analysis. 2021;41(12):3676–81. CSCD:7102998.