1 Introduction

Tunable diode laser spectroscopy (TDLS) is a method where the absorption or transmission spectrum of a substance (usually a gas) is measured with a tunable diode laser for the purpose of analysis of the specific substance. The emission frequency of a spectrally single-mode laser is tuned, and the power of the light that passes through the sample is determined with a photodetector. The characteristics of the measured transmission spectrum are analyzed to determine the physical parameters, for example, concentration of specific gas components (volume mixing ratio), pressure, or temperature.

For technical reasons a special method called wavelength modulation spectroscopy (WMS) [1] is frequently utilized to realize the TDLS measurement. Due to the additional sinusoidal wavelength or frequency modulation with repetition rates in the kHz range, harmonic spectra are obtained—instead of the transmission spectrum—which also contain the relevant information. It is a method for implementing an effective noise suppression and partially removing the influence of the laser power variation during frequency scanning. The light passes through the sample with transmission T(ν) and is detected, and the photocurrent is fed to a lock-in amplifier. The n-th harmonic component of the lock-in amplifier of the relative light power variation is called the harmonic coefficient H n =H n (ν;ν a ) (Fig. 1). If these harmonic components are plotted against the slow sweep frequency ν, the harmonic spectra H n (ν) are obtained (Fig. 2). The definition of the harmonic spectrum does not include system parameters (except for modulation amplitude). More details, mathematical definitions, and properties of WMS are outlined in Appendix A.

Fig. 1
figure 1

Generation of the harmonic components in wavelength modulation spectroscopy. ν is the emission frequency of the slow sweep (not illustrated here) and ν A the frequency modulation amplitude

Fig. 2
figure 2

The first four harmonic spectra (i.e., H n (ν) with n=0,…,3) (blue, solid) for a Lorentzian absorption line (red, dashed) computed with theory from [2]. The wavelength modulation amplitude is ν A , the absorption line center position is ν C , and the half-width is ν A /3

Obviously, in a WMS system the harmonic spectra have to be analyzed instead of the absorption spectrum itself. This is done either by curve fitting to an appropriate spectral model or a heuristic evaluation of the spectrum at a single frequency point. The single point evaluation is, however, only suitable for spectral models with a single parameter. Nevertheless, it is employed as detection of the maximum value of the second harmonic in a frequent number of applications due to its simple signal processing. For more realistic spectral models that include, e.g., a variable spectral baseline or laser emission frequency drift this is not suitable, and such drifts can not be compensated, which is the reason for employing curve fitting to measured spectra [3].

As mentioned before, there are (theoretically) infinitely many harmonic spectra or harmonic components which all could be utilized to extract the wanted and extractable information or at least combined into one signal before data evaluation. For single-harmonic detection the signal energy that arrives at the photodetector is not fully utilized, whereas theoretically complete utilization of the signal energy should enable an improved sensing [4, Sect. 10.4]. Furthermore, there is no or only very little additional effort to detect the higher harmonic components if a digital lock-in technique is utilized. This multi-harmonic detection should therefore be a simple way to increase sensitivity or versatility for the WMS technique. However, it is not a standard approach in the literature. The analysis of suitable approaches will be the scope of this paper. Note that this multi-harmonic detection assumes a sufficiently wideband detection, which standard photodetectors always provide. But systems with an inherent resonant detection method like photoacoustic spectroscopy may not benefit from multi-harmonic detection [5]. Also, optical systems like integrated cavity output spectroscopy (ICOS) [6] have limited bandwidth since the light buildup and decay in the optical cavity is not arbitrarily fast. This sets limits on the maximum number of harmonics that can be detected and/or the maximum modulation frequency.

Two different multi-harmonic detection methods have to be distinguished: the simultaneous curve fitting of harmonic spectra, or the evaluation of several harmonic components at a single spectral frequency. The harmonics H n (ν 0) at a single frequency ν 0 contain all information about the shape of the absorption line (see Fig. 1), so in principle these should allow for extraction of all extractable parameters and not only for the peak absorbance with single-harmonic detection. This multi-harmonic detection at a single frequency was first proposed in Ref. [7], where an empirical approach that relates the ratios of the n-th harmonic components to the absorption line parameters, like half-width, center wavelength, or peak absorbance, is proposed. This method has the drawback that it requires an empirical calibration. This will be improved by the authors of this paper to an exact method where the full absorption line profile can be recovered. This method is exact and therefore allows for curve fitting to an arbitrary spectral model which is used for direct spectroscopy. Both methods are also suitable for saturated lines, i.e., thick optical sample conditions where the linearization of the Lambert-Beer law does not hold anymore. These methods will be presented, analyzed, and compared.

In the sections below the following questions will be answered:

  • How should one implement multi-harmonic detection?

  • How many harmonics are needed?

  • Performance difference to single-harmonic detection?

  • Performance difference to direct spectroscopy?

2 Multi-harmonic detection: reconstruction of the transmission

A reconstruction method that combines the harmonics at a single frequency ν 0 (i.e., no spectral scanning) can be derived as follows.

2.1 Theoretical background

After renaming ν to ν 0 and then substituting 2πft with arccos((νν 0)/ν A ) on both sides of Eq. (6), we obtain a reconstruction formula for the transmission function from harmonic coefficients,

(1)

with T n (x)=cos(narccos(x)) the n-th Chebyshev polynomial [8, Chap. 22]. This reconstruction formula will serve as a multi-harmonic detection scheme. Practically, the right-hand side of Eq. (1) is evaluated with a finite number of measured harmonic coefficients H n (ν 0) at the central laser emission frequency ν 0 (mostly close to the absorption line center). Equation (1) predicts that the obtained reconstructed data T(ν) must be the same as the transmission function, as if it had been measured by direct spectroscopy. This is also true if the laser changes its intensity during tuning. The signal model for the reconstruction method then has to include the proper baseline due to varying laser intensity.

Because the substitution made to derive Eq. (1) is only valid for |νν 0|≤ν A , this determines the range in which the reconstruction can be done. This is also clear from a physical point of view: since the frequency modulation only covers the range ν 0ν A to ν 0+ν A , actually no measurement is performed outside this spectral interval, and it cannot be expected to obtain information that is not measured. Practically, the method can be seen as an implementation of direct spectroscopy with sinusoidal frequency scanning instead of linear scanning.

2.2 Fitting model for reconstructed transmission and implementation

Since the frequency offset ν 0 and frequency modulation amplitude ν A are generally unknown, it is convenient to use the normalized emission frequency coordinate x=(νν 0)/ν A for evaluation of the right-hand side of Eq. (1) and spectral fitting. For this the spectral model does not need to be changed; all determined frequency parameters like Gaussian or Lorentzian absorption line half-width or line position will be obtained in these normalized units (relative to scanning range, multiples of ν A with a zero point at ν 0). Only if these obtained frequency parameters are compared with an absolute frequency, do the quantities ν A and ν 0 need to be determined with a frequency calibration scheme (e.g., with a reference etalon or using the method described in Ref. [9]). If only a single Lorentzian line and a linear laser power characteristic are considered, the model has the following form:

(2)

The five unknown fit parameters are line position x C , line half-width x γ , both in normalized frequency coordinates (x=(νν 0)/ν A ), peak absorbance a and y o and y s for the y-offset and y-slope representing the laser amplitude modulation, respectively. The normalized frequency variable x lies between −1 to 1 and ϵ is a random variable that represents the noise on the reconstructed spectrum. The numerically stable evaluation of the sum of the left-hand side of Eq. (2) is preferably done using the Clenshaw algorithm [10, Sect. 3.11], and then the least-squares curve fit to the given model is carried out (for both see Fig. 3(bottom)). For the reconstruction and subsequent fit the variable x was discretized with 64 equidistant values from −1 to 1. The actual number of points is irrelevant if it is high enough so that the reconstructed spectrum is adequately sampled.

Fig. 3
figure 3

The upper plot shows the harmonic coefficients H n (ν 0) for the O2 detection (different symbols for positive and negative values) and the corresponding noise level (black). The bottom plot shows the corresponding reconstructed transmission (using H 0,…,H 20 with Eq. (2)) (blue) and the corresponding Lorentz fit (green) with residual (red)

2.3 Required number of harmonics

Due to the increasing oscillating behavior it is clear that each term in Eq. (1) adds more detail to the result with a magnitude corresponding to the amplitude of the harmonic coefficient H n . This happens because the values of the Chebyshev polynomials all lie in the range of −1 to 1. Since the harmonic coefficients typically show an exponential decay with order n, the sum in Eq. (1) can indeed be truncated when the desired accuracy is reached. The first few Chebyshev polynomials are shown in Fig. 4. The minimum number N of harmonics depends on the system noise level. The error by including the harmonic in the reconstruction is higher than the error by its omission if the noise amplitude in the harmonic is higher than the signal amplitude. The reconstruction thus should include all harmonics with a signal-to-noise ratio higher than one. Using a typical modulation amplitude ν A =3γ (γ: half-width at half-maximum of the absorption line) and a system noise level of 1×10−5 to 1×10−6 a full reconstruction can be obtained with N=20 to N=25 harmonics, when the peak absorbance is around 1 %. This can be seen in Fig. 3(top), where the signal level of the harmonics drops below the noise level at approximately n=20. Note that using more harmonics than necessary should not affect the overall precision of the parameters that the curve fits extract. The reason is that the contribution of the higher harmonics to the reconstructed transmission is of increasing detail (this is a property of the Chebyshev polynomials, cf. Fig. 4), so the fit will filter the added high frequency noise on the reconstructed transmission.

Fig. 4
figure 4

The Chebyshev polynomials T 0(x) to T 3(x), T 10(x), and T 20(x)

3 Multi-harmonic detection: fitting multiple spectra

As mentioned earlier, simultaneous curve fitting of multiple harmonic spectra is the other alternative to multi-harmonic detection.

3.1 Fitting model and implementation

Since the different harmonics all originate from a measurement of the same physical system (gas transmission, laser, and detector), a curve fit with a shared set of parameters to all harmonics has to be carried out. Note that this is different from the approach in Ref. [11], where several higher harmonics have been fitted, but separately with individual parameter sets and subsequent averaging. Note that this approach cannot be expected to have the highest precision, because a least-squares curve fit is the optimum method for estimation of parameters from noisy data. This holds exactly for linear models and is asymptotically true (for low noise) for nonlinear models.

The model used for fitting the unsaturated O2 absorption line around 763 nm is the following:

(3)

The H n (ν i ) represent the measured harmonic spectra at frequency ν i with i=1,…,N points per scan. The actual frequency points ν i are unknown but assumed to be linearly increasing. The variable \(x = \frac{\nu-(\nu_{N}+\nu_{1})/2}{(\nu_{N}-\nu_{1})/2}\) is defined as the normalized frequency scale. It runs from −1 to 1 and covers exactly one spectral scan. If the slow laser tuning is carried out linearly, the N spectral samplings correspond to the points \(x_{i} = \frac{2(i-1)}{N-1}-1\). The line center x C is the index of the absorption line center, x γ the line half-width, and x A the frequency modulation amplitude, all in the relative units. y o,1 and y o,2 model the laser AM induced offset on the first and second harmonic spectrum. The laser AM effects are modeled in the same way as for single-harmonic detection. For a vertical-cavity surface-emitting laser (VCSEL) the simple approximation by variable offsets is sufficient (as the experiment shows). The exact model without approximations is described in Ref. [4].

The parameter a is the desired peak absorbance value and S n (x,m) the formula by Arndt [2, Eq. (12)], which is the harmonic spectrum of a peak normalized unsaturated Lorentzian function. The ϵ n are random variables representing the measurement noise. The parameters describing the relationship between index x and ν (i.e., offset and proportionality factor) cannot be determined from the fit when only a single absorption line with unknown line width is scanned.

In the curve fit the six parameters a, x C , x γ , x A , y o,1, and y o,2 are determined. Note that although the frequency parameters x C , x γ , and x A are in nonstandard units, the model is formally the same as for absolute units. Ratios are independent of the units, i.e.,

(4)

Hence, (νν C )/ν A can be chosen as the plot x-axis. In Fig. 5 the simultaneous fit of the first four harmonic spectra is shown.

Fig. 5
figure 5

Measurement (blue) and simultaneous curve fit to the first four harmonic spectra (green) and the residual (red)

3.2 Required number of harmonics

Since the amplitude of the harmonic spectra decreases with increasing order, it is expected that there is an optimum number of harmonics for simultaneous curve fitting. Then using more harmonics than this optimum value will not further improve the noise on the extracted parameters.

It turned out experimentally that fitting of the first four harmonic spectra is optimum in the sense that using more does not give any further improvement (Fig. 6). This is also independent of the system noise level and peak absorbance value, as the relative improvement becomes negligible. This number will, however, depend on the modulation index ν A /γ, because for higher modulation indices the signal energy is shifted to higher orders of the harmonic spectra. The same is true if a thick optical sample (i.e., absorbance >0.1) is measured.

Fig. 6
figure 6

The Allan plots for multi-harmonic detection with a variable number of spectra that are simultaneously fitted. The measurement data is the same for all curves. Fitting more than four harmonic spectra gives a saturation behavior, whereas including the third harmonic gives the highest improvement

4 Experimental results and comparison of methods

4.1 Experimental setup and system noise analysis

For experimental verification both methods were tested using an O2 absorption line probed with a 763 nm VCSEL. A 20 cm double pass gas cell exposed to laboratory air was used with neither temperature nor pressure stabilization. The line generates a peak absorbance of around 9×10−3. A custom built electronics for laser and detector control as well as data processing served as a platform to record the harmonic spectra or harmonic coefficients, whereas the curve fitting was done off-line on a PC. The modulation frequency was set to 3 kHz and the sinusoidal laser modulation amplitude was set close to three times the absorption line width, so that the typical modulation index of around 3 was realized.

Regarding the ideality of the realization of the electronics, the noise on the harmonic spectra or harmonic coefficients is a factor 1.2 to 2 higher than the noise that would be expected from the intrinsic noise by the laser diode (Fig. 7(bottom)). This is a technical issue attributed to strong receiver noise above 55 kHz (Fig. 7(top)) and the frequency response of the applied filtering during detection of the harmonics. It indicates that in a better realization of the electronics the absolute noise performance could be a factor of 1.2 to 2.0 lower with the same laser. Comparison of the methods is, however, not affected.

Fig. 7
figure 7

Top: The total noise spectral density of the measurement system (blue) and the contribution of receiver (black) and intrinsic laser intensity noise (blue dashed). Bottom: the noise level (standard deviation) on the harmonic components for spectral scanning (blue) and single-point detection (red). The dashed lines indicate the noise level from the intrinsic laser noise

In Fig. 8 the Allan plot of the two multi-harmonic detection methods, the corresponding single-harmonic detection, and the extrapolated direct spectroscopy detection are shown. For the latter a spectral noise density of \(1.2\times 3.5\times 10^{-7} / \sqrt{\mathrm{Hz}}\) was assumed (this is the receiver noise density at 3 kHz times a non-ideality factor 1.2). For conversion to noise density on the fitted absorbance a conversion factor of 3.4 was computed. It is obtained from the covariance matrix calculated with linearization of the spectral model for direct spectroscopy (right-hand side of Eq. (2)) [12].

Fig. 8
figure 8

Comparison between single-harmonic detection (single-point and spectral fitting) and the corresponding multi-harmonic detection (single-point reconstruction and simultaneous spectral fitting). The multi-harmonic detection methods lie close to what direct absorption spectroscopy could theoretically achieve (white noise only, no drifts)

These results are also summarized in Table 1 together with relevant system parameters. The column “scanning range” specifies the range of the slow frequency sweep of ν and hence is zero for the single spectral frequency detection.

Table 1 Overview and comparison of WMS detection methods. All measurements were taken with an identical experimental setup and identical settings

4.2 Comparing both multi-harmonic detection methods

It can be seen that the reconstruction method has a slightly better noise performance than multi-harmonic curve fitting but is more sensitive to drift, as the relatively worse minimum of the Allan deviation shows. However, the behavior with respect to noise and drift performance of the reconstruction method is better than that for second-harmonic single-point detection. Although second-harmonic curve fitting shows a slightly better performance in terms of drift sensitivity than multi-harmonic detection, this is probably not a generic property of multi-harmonic curve fitting, because it is seemingly caused by the more drift affected contribution of the first harmonic in the multi-harmonic detection. This can be seen in Fig. 6 where the minimum of the Allan plot for second-harmonic detection is better compared to first-harmonic detection.

4.3 Comparing single- and multi-harmonic detection

If only white noise performance is considered (the region of the Allan plot with low averaging times where the slope is −1/2), both multi-harmonic detection methods give a factor of approximately 3 performance increase (2.7 for simultaneous curve fitting) to second-harmonic curve fitting.

The improvement is less compared to single-harmonic center point detection, which however is an unfair comparison because the numbers of determined parameters are different. For spectral scanning the noise on the harmonic spectra is higher than for single-harmonic center point detection, because a higher bandwidth around each harmonic frequency is required. Theoretically a \(\sqrt{N}\) fold increase of the noise standard deviation is expected (N: number of scanned spectral points). This is partly compensated again by the filtering of the curve fit, however, because the curve fit has to extract other parameters than absorbance, so the noise improvement is a certain factor less than \(\sqrt{N}\). The reason does not lie in the curve fit itself, but is fundamental. The information content about peak absorbance is less in a scanned spectrum than for the single spectral frequency detection [12]. This explains that second-harmonic peak detection has a better white noise performance than second-harmonic curve fitting (cf. Fig. 8). The ability to determine more than one parameter and obtain better stability or calibration-free operation is payed off by a worse white noise performance. This is also indicated in Fig. 8, where the minimum of the Allan deviation is much worse for the single-harmonic center detection than for second-harmonic curve fitting, despite the better white noise performance. This is attributed to the higher sensitivity to fringes and laser wavelength instability, which are better compensated by the curve fit.

4.4 Comparing multi-harmonic detection and ideal direct spectroscopy

Both multi-harmonic detection methods have white noise performances in the order of what an estimated (white noise limited) realization of direct absorption spectroscopy with the sensor electronics would achieve (pink curve in Fig. 8). Theoretically, multi-harmonic WMS and direct spectroscopy should achieve both the same precision, because the overall frequency scanning range and relative distribution of time the laser spends on different spectral frequency regions during one scan are (approximately) the same (see Appendix B). The slightly lower white noise performance of the multi-harmonic curve fit may be explained by the missing zeroth-harmonic spectrum in the fit. It has been excluded, because the necessary weighting to equalize noise among all harmonic spectra (cf. Fig. 7) would greatly damp the zeroth harmonic, and so the benefit of its inclusion is negligible.

4.5 Differences in receiver and transmitter bandwidth requirement

Since the multi-harmonic detection methods theoretically should achieve the same precision than direct absorption spectroscopy operated at the same modulation or repetition frequency, the question is: Are there any differences between these two methods? One difference lies in the modulation bandwidth requirement on the transmitter side, for which multi-harmonic detection is advantageous. Direct absorption spectroscopy relies on the fact that the laser is able to emit fast and precise frequency sweeps, i.e., sawtooth or triangular-shaped emission frequency variations. Therefore the laser tuning bandwidth needs to be high, i.e., higher than the basic modulation frequency or repetition rate, since many higher harmonics have to be passed unattenuated through the transmitter including the tunable laser. For WMS only a sine wave frequency modulation is needed, so the bandwidth requirement is low (only a certain bandwidth around the modulation frequency is required). This is advantageous for lasers with low tuning bandwidth or a non-flat FM response [13].

Similar considerations can be made for the receiver side. The methods are summarized in Table 2, and a selection of the proper detection scheme can be made according to the bandwidth limitations of the system. One may ask what a fourth entry to the table might be (i.e., low receiver bandwidth but high transmitter bandwidth). It is a non-sinewave single-harmonic WMS (see, e.g., Refs. [14, 15]). Since this realizes a very non-uniform emission frequency scanning coverage, the noise performance is not necessarily like direct spectroscopy with its uniform scanning; it depends on the system model.

Table 2 Comparison of bandwidth requirements for different methods. If a wide receiver bandwidth is available, either direct spectroscopy or multi-harmonic WMS should be selected, since both methods have similar and better performance than single-harmonic WMS

5 Conclusion

It is shown that multi-harmonic detection gives an approximately factor of 3 noise improvement comparable to single-harmonic curve fitting. The overall performance is close to the theoretical performance of direct spectroscopy with its typically factor of 3 or more larger spectral amplitude for the same conditions. For simultaneous curve fitting the inclusion of the first to fourth harmonic spectrum is sufficient to achieve optimum performance. For the reconstruction of the transmission all harmonics above the noise level have to be included; this was 20 in our case. For systems with spectral scanning the simultaneous curve-fitting approach is probably more promising due to its lower drift sensitivity and the lower number of required harmonics.

Finally, we conclude that multi-harmonic detection can be regarded as a technical implementation method of TDLS with similar performance which would be expected from direct spectroscopy and the advantage that no requirement on the bandwidth of the laser tuning behavior is necessary.

The first author wishes to thank C. Smith, R. Lewicki, and M. Witinski for valuable discussions and for pointing out the limitations of multi-harmonic detection with QEPAS and cavity enhanced methods.