1 Introduction

Tunable diode laser absorption spectroscopy (TDLAS) has been widely used to determine gas concentration [14]. The laser diodes (LDs) used in TDLAS possess the benefits of being compact and stable and allowing temperature control [5]. Compared with other conventional gas-sensing methods that involve intermittent or continuous sample extraction, in situ measurement provides real-time data without the problems of inherent time delay, blockages in the sampling tube and secondary reactions during gas transport. As lasers become cheaper and more available with the development of the optical industry, TDLAS in the near-infrared (NIR) region becomes more attractive.

Wavelength modulation spectroscopy (WMS) is based on the modulation of the light emitted by a LD that is slowly tuned across an absorption line of the species to be detected. The signal of the second harmonic is proportional to the concentration of the gas species and can be measured with a lock-in amplifier (LIA). An important advantage of this technique is that it shifts the detection to higher frequencies, where the laser excess noise (1/f noise) becomes negligible. As a result, WMS is one to two orders of magnitude more sensitive than direct detection [68].

Because it suppresses common-mode effects, signal–reference beam method has long been used for gas detection. This method uses signal and reference beams [9], subtracting, dividing and balanced ratio metric detection circuit. The signal beam propagates through the gas cell to detect gas concentration. Meanwhile, the reference beam propagates through the same optical path length. External factors such as temperature, humidity and fiber fluctuation can then be suppressed by subtraction. In particular, the effect of detected gas contained in components of the system, which could seriously influence accuracy and resolution, can be avoided.

We have developed a measurement system based on TDLAS for high-sensitivity measurement of water vapor. This optical fiber gas sensor combines signal–reference beam method and WMS and is validated using a 1,370-nm LD.

2 Experiment setup and detection theory

Our system for trace measurement of water vapor used a distributed feedback laser diode (DFB-LD; WSLS-137010C1424-20; Aoshow, CHN) with an emission wavelength of 1,370 nm as the light source. The experimental setup is shown in Fig. 1. In the NIR region, spectral line width of the DFB-LD is very narrow. It is difficult to keep the optical wavelength of the LD at line center because of the fluctuation of outside temperature and the slight drift of the oscillation current. The wavelength-sweep technique and WMS were used to detect the absorption line with a low-frequency scanning signal and high-frequency sine modulation signal, respectively, as the laser drive current. An overlapped mixed signal containing a 1.42-KHz sinusoidal modulation signal and 7.8-Hz trapezoidal scanning signal for the DFB-LD (Fig. 1a) was generated by an ARM7 processor (LTC1758, NXP, the Netherlands). To prevent phase difference generation while demodulating, a 2.84-KHz square wave reference signal (Fig. 1b) was synchronously generated by the same signal source.

Fig. 1
figure 1

Experimental configuration. a Drive signal, b reference signal, c output of signal beam, d output of reference beam, e output of subtractor and amplifier, f output of lock-in amplifier

The LD radiation was then coupled into a 3-dB coupler and split into two parts. One part, called the signal beam, passed through a gas cell with a path length of 10 cm. With the absorption information of the gas cell and light path, the signal beam irradiated onto an InGaAs photodiode (PD) with a responsivity of 0.8 A/W, as shown in Fig. 1c. The other part of the radiation, called the reference beam, which only contained information about the light path (Fig. 1d), was directly coupled with an identical InGaAs PD. After subtraction of the reference beam from the signal beam, the scanning baseline, external disturbance and the effect of gas contained in the light path was suppressed, as shown in Fig. 1e. The subtraction output was connected to a LIA as an input. With the help of the reference signal generated by the ARM7, the LIA-demodulated input signal was produced, as depicted in Fig. 1f. Finally, the result from the LIA was sent back to ARM7 or to a computer for collection and processing.

TDLAS with WMS mostly detects the 2f signal with modulation index m = 2.2 to maximize the signal-to-noise ratio (SNR). For small m (≪ 1), we usually use a simpler analysis based on the Taylor-series expansion of the absorption line [10, 11]. For large m, Fourier decomposition of the absorption line function has been applied [12, 13].

Once the monochromatic radiation of the light source overlaps with a rotation/vibration transition of a gas species, absorption will occur, resulting in the attenuation of light intensity. The transmitted intensity I out(t) at simultaneous time t associated with a rotation/vibration transition in a gas cell is given by the Beer–Lambert law:

$$ I_{\text{out}} (t) = I_{\text{in}} \cdot \exp \{ - \alpha [\nu (t)]CL\} $$
(1)

where I in is incident intensity, α[ν(t)] (cm−1) is absorption coefficient at instantaneous frequency ν(t), L(cm) is the optical path length through which the laser beam and gas molecules interact, and C is the mole fraction of the absorbing species in the mixed gas (i.e., target gas density ratio in the mixed gas) in the gas cell and light path. In the case of low-concentration detection, approximation is valid for weak absorbance, i.e., α[ν(t)]CL ≪ 1, which can be written as:

$$ I_{\text{out}} (t) = I_{\text{in}} \cdot \exp \{ - \alpha [\nu (t)]CL\} \approx I_{\text{in}} \cdot \{ 1 - \alpha [\nu (t)]CL\} $$
(2)

For a gas absorption line under regular pressure and temperature, the Lorentzian line-shape function is adopted:

$$ \alpha [\nu (t)] = \frac{{\alpha_{0} }}{{1 + \left[ {\frac{{\nu (t) - \nu_{0} }}{\gamma }} \right]^{2} }} $$
(3)

where α 0 and ν 0 are frequency and absorption coefficient at the absorption line center, respectively, and γ is half of the line width.

Other than wavelength modulation (WM) for tunable LDs, the drive current signals applied to it produce an increase in laser power as the trapezoid current level increases and its sinusoidal modulation, which is known as amplitude modulation (AM). Then, simultaneous frequency ν(t) and incident intensity can be written as [14]:

$$ \nu (t) = \overline{\nu } +\Delta \nu \cdot \cos \omega t $$
(4)
$$ I_{\text{in}} (t) = \overline{I}_{\text{in}} +\Delta I \cdot \cos \omega t $$
(5)

where average quantities \( \overline{\nu } \) and \( \overline{I}_{\text{in}} \) are varied slowly relative to angular frequency ω as the laser is scanned across the absorption features. ∆ν is the amplitude of WM, and ∆I is the amplitude of sinusoidal intensity modulation, which is determined from the slope of a plot of laser power versus current. This allows Eq. (2) to be rewritten as:

$$ I_{\text{out}} (t) = (\overline{I}_{\text{in}} +\Delta I \cdot \cos \omega t) \cdot \{ 1 - \alpha [\nu (t)]CL\} $$
(6)

Because the signal and reference beams are set and a subtraction process is applied after photoelectric conversion of the two beams, equivalent laser intensity I out(t) coupled on the PD will be:

$$ \begin{aligned} I_{\text{outdif}} (t) & & & = (\overline{I}_{\text{in}} +\Delta I \cdot \cos \omega t) \cdot \{ 1 - \alpha [\nu (t)]CL\} - (\overline{I}_{\text{in}} +\Delta I \cdot \cos \omega t) \cdot \{ 1 - \alpha [\nu (t)]C^{\prime}L\} \\ & & & = (\overline{I}_{\text{in}} +\Delta I \cdot \cos \omega t) \cdot \{ - \alpha [\nu (t)] \cdot (C - C^{{\prime }} )L\} \\ \end{aligned} $$
(7)

where C′ is the mole fraction of the absorbing species in the light path. By developing the function in a Fourier cosine series, full expression of laser intensity I outdif(t) is obtained:

$$ I_{\text{outdif}} [\nu (t)] = \left( {\overline{I}_{\text{in}} +\Delta I \cdot \cos \omega t} \right) \cdot \sum\limits_{k = 0}^{k = + \infty } {H_{k} (\overline{\nu } ,\Delta \nu )} \cos (k\omega t) $$
(8)

For convenience, ω∙t is substituted by u during the following calculations, and functions \( H_{k} (\overline{\nu } ,\Delta \nu ) \) are given by:

$$ H_{0} (\overline{\nu } ,\Delta \nu ) = \frac{1}{2\pi }\int_{ - \pi }^{ + \pi } {\left[ { - \alpha (\overline{\nu } +\Delta \nu \cdot \cos u) \cdot (C - C^{\prime } )L} \right]} \,{\text{d}}u $$
(9)
$$ H_{k} (\overline{\nu } ,\Delta \nu ) = \frac{1}{\pi }\int_{ - \pi }^{ + \pi } {\left[ {[ - \alpha (\overline{\nu } +\Delta \nu \cdot \cos u) \cdot (C - C^{\prime } )L} \right]} \cdot \cos ku{\text{d}}u\quad k > 0 $$
(10)

Then, the final expression for the second-harmonic signal (2f signal) S 2 is:

$$ S_{2} (\overline{\nu } ) = - \frac{{\Delta I}}{2}H_{3} (\overline{\nu } ,\Delta \nu ) + \overline{I}_{\text{in}} H_{2} (\overline{\nu } ,\Delta \nu ) - \frac{{\Delta I}}{2}H_{1} (\overline{\nu } ,\Delta \nu ) $$
(11)

The second Fourier component H 2 contributes the most to 2f signal S 2. However, AM is responsible for the distortion of the signal compared with the case of pure wavelength modulation, as shown by the presence of ∆I in Eq. (11). At the same time, second-harmonic signal expression of single-beam WMS [i.e., Eq. (6)] resembles that of signal–reference beam method [i.e., Eq. (7)].

3 Results

In our experiment, we used the absorption line center at 1,368.597 nm, which was the highest absorption point within the spectral range of the DFB-LD. A water meter (S8000, Integrale Precision Dewpointmeter, Michell, UK) was used to calibrate water concentration. All experiments were performed at a temperature of 24 ± 1 °C every 10 min, humidity of 23 % and concentration of water vapor between 30 and 1,100 ppmv.

Because there was large amount of water vapor in the light path, the measured results were modified using a water vapor detection system. The graphs in Fig. 2 are results after modification for the equivalent content of water vapor contained in the system, while the insets depict results before modification. The relationships between measured results and the calibration of the water meter with only the signal–reference beam method and only WMS are presented in Fig. 2a, b, respectively. Measurement accuracies in Fig. 2a, b are 18 and 10 ppmv, respectively, which were determined by comparing measured and calibration results.

Fig. 2
figure 2

Measurement linearity of three methods. a With signal–reference beam method, b with WMS, c with signal–reference beam method and WMS

Figure 2c depicts the relationship between measured results and the calibration of the water meter for the combined system using both signal–reference beam method and WMS. Because factors such as scanning baseline, target gas contained in the components and environmental influences are suppressed, the accuracy of the combined system is 1 ppmv.

3.1 Scanning baseline

The wavelength-sweep technique was used because it was difficult for the wavelength of the laser to remain at the absorption line center (1,368.597 nm), so a low-frequency scanning signal was added to the drive signal of the laser. Empirically, the frequency of a particular profile should be 0.35/τr, where τr is the rise time of the profile [15]. Considering that the frequency of the scanning signal was 7.8 Hz and that the sweep range was 280 pm, τ r was about 0.02 s and the frequency of the second-harmonic profile was 17.5 Hz. While the frequency of the profile is higher than that of the scanning signal, a low-pass filter cannot effectively filter out the scanning signal. When detecting with a scanning baseline, the profile will be distorted and the quality of the measurement will deteriorate.

The LIA used here was an AD630 (balanced modulator/demodulator, Analog Devices) and its peripheral circuit, including integrator and low-pass filter. When given a 2.84-KHz square wave reference signal, to maximize the SNR without wave distortion, the time constant of the integrator was set as 65 μs and the time constant of the low-pass filter is set as 1.85 ms, which gave a rejection ratio at 7.8 Hz of 42 dB. This resulted in insufficient suppression of low-frequency signals and the scanning baseline remained. Figure 3a shows the profile of the second harmonic with the scanning baseline when the concentration of water vapor in the gas cell is 128 ppmv. The red line is the profile of the second harmonic calculated using Eq. (11) for comparison. Figure 2b shows the relationship between the results measured by the system and the calibration of the water meter. The accuracy of the system is 10 ppmv under these conditions.

Fig. 3
figure 3

Profiles for water vapor measured. a With the scanning baseline, b with the scanning baseline suppressed

Subtraction of the signal converted from the reference beam from that converted from the signal beam is needed to increase the accuracy of the measurement. By adjusting the intensity of light signals and magnification of amplifiers in the circuit, the amplitude of two signals can be equilibrated and the scanning baseline can be suppressed when the concentration of water vapor in gas cell is 128 ppmv (Fig. 3b). The red line is the profile of the second harmonic calculated using Eq. (11) for comparison. The scanning baseline can be suppressed by 64 dB using signal–reference beam method and 42 dB using WMS. Therefore, when both signal–reference beam method and WMS are used, the scanning baseline can be suppressed by 106 dB, improving the measured results, as demonstrated above in Fig. 2c.

3.2 Target gas in the components

In trace measurements, the target object contained in the system itself always influences measurements, and this is especially the case in trace gas measurements. Firstly, target gas contained in components will reduce the measurement range of the acquisition section. For example, the ARM7 (LTC1758) used here contained a single 12-bit successive approximation analog-to-digital converter (ADC) and had a working voltage range of 0–3.0 V and resolution of 0.73 mV. When the concentration of water vapor changes between 30 and 1,100 ppmv, the theoretical resolution of the system is 0.27 ppmv. In practice, the content of water vapor in the light path, which includes the DFB-LD, PD and fiber, exceeds 1,000 ppmv when the optical path length is 10 cm. In this case, the theoretical resolution will be 0.66 ppmv. Limited by the sensitivity of the PD, the actual resolution is 1.6 ppmv. Secondly, the content of target gas in the components depends on environment [16, 17].

Signal–reference beam method can reduce the equivalent content of water vapor in the system. Equation 6 and 7 show that the equivalent water vapor contained in single-beam WMS would be C (i.e., the mole fraction of the absorbing species in the gas cell and light path), while that in a combination of signal–reference beam method and WMS would be CC′ (i.e., mole fraction of the absorbing species in the gas cell and difference of the light paths). As long as the PDs in the two paths are of the same type and in an identical environment, the difference of water vapor content in the PDs approaches zero, so equivalent content of water vapor contained in the light path would be very small. This value is about 8 ppmv in experiments. When the full working range of the ADC is used and equivalent content fluctuation caused by environmental change is minimized, the resolution of the systems is improved to 0.4 ppmv and accuracy is improved to 1 ppmv.

3.3 External influences

External influences such as temperature, humidity and fiber vibration affect the stability and accuracy of the optical measurement system. Fiber vibration will attenuate the light intensity that propagates to the PD. We can suppress this effect by modifying the measured results. By measuring second-harmonic amplitude with light intensity changes at the same concentration, we can determine the relationship between light intensity and second-harmonic amplitude. The detected results can then be modified using this relationship, especially when light intensity varies. However, suppressing light intensity attenuation by using signal–reference beam method before modification is more effective. For detection under conditions where the water vapor contained in the components of the system is about 1,000 ppmv and the actual water vapor in the gas cell is 40 ppmv, the measured errors caused by light intensity attenuation for modification and modification after signal–reference signals subtraction are listed in Table 1. The greater the intensity attenuation, the smaller the error caused by subtraction before modification compared with that for modification alone.

Table 1 Effect of light intensity loss on measured results with 40 ppmv water vapor in the gas cell and 1,000 ppmv in components

The output power of DFB-LDs increases with temperature [18]. In addition, the content of vapor in components will change with temperature. Changes in humidity also influence the concentration of vapor in the components of the system. As discussed above, the equivalent water vapor contained in the signal–reference beam method and WMS would be CC’. As long as the PDs in the two paths are of the same type and in identical environments, the influence of temperature or humidity changes on the two light paths should be very similar and the difference between them approaches zero. As a result, signal–reference beam method can effectively suppress changes induced by fluctuations in temperature and humidity.

To test the resistance of the measurement system to temperature fluctuation, the surrounding temperature was set to change within the scope of 8 °C around 24 °C every 10 min. Figure 4 shows the relationships between the results obtained using the system and the calibration of the water meter with the methods of only WMS, only signal–reference beam method and both signal–reference beam method and WMS. The effect of temperature on measured results with only WMS and only signal–reference beam method was 21 and 9 ppmv, respectively. The influence of temperature is suppressed by 4 ppmv using a combination of signal–reference beam method and WMS.

Fig. 4
figure 4

Dependence of measurement results on temperature fluctuation. a With WMS, b with signal–reference beam method, c with signal–reference beam method and WMS

To test the resistance of the measurement system to humidity fluctuation, the surrounding humidity was set to change between 25 and 21 % every half hour. Figure 5 illustrates the relationships between results measured using our system and the calibration of the water meter with the methods of only WMS, only signal–reference beam method and the combination of signal–reference beam method and WMS. The influence of humidity on measured results with only WMS and only signal–reference beam method was 12 and 7 ppmv, respectively. The effect of humidity is decreased by 3 ppmv with the combination of signal–reference beam method and WMS. Table 2 summarizes the resistance to temperature and humidity fluctuation for the system using different methods.

Fig. 5
figure 5

Effect of humidity changes on measured results. a With WMS, b with signal–reference beam method, c with signal–reference beam method and WMS

Table 2 Measurement accuracy of three methods under different conditions

4 Conclusion

The advantages of signal–reference beam method and WMS can be obtained at the same time by using a combination of these methods. Using both methods can suppress the effects of scanning baseline residues, detected gas contained in the components and external influences such as temperature and humidity, improving the accuracy of water vapor detection to 1 ppmv.

To optimize SNR without wave distortion, the time constant of the integrator and low-pass filter was set as 65 μs and 1.85 ms, respectively. Because of insufficient suppression of low-frequency signals, the scanning baseline will remain and accuracy will be affected. Compared with single-beam WMS, WMS after signal–reference beam method suppressed the scanning baseline to 106 dB, increasing the accuracy of the measured results.

Signal–reference beam method decreased the equivalent content of detected gas in the components and suppressed its influence on the system. In our experiment, water vapor contained in the laser and PD was over 1,000 ppmv for an optical path length of 10 cm. After signal–reference beam method, the equivalent content of water vapor decreases to about 8 ppmv, which improves the resolution from 1.6 to 0.4 ppmv.

Subtraction of the reference beam from the signal could suppress most changes caused by external factors. In our experiment, the effects of temperature variation, humidity variation and output power fluctuation on the measured results were suppressed markedly. When temperature fluctuated by 8 °C around 24 °C, the effect of temperature on experiment results was suppressed by 4 ppmv, and when atmospheric humidity changed between 25 and 21 %,the influence of humidity was suppressed by 3 ppmv.