Abstract
Wavelength modulation spectroscopy (WMS) is a representative implementation of tunable diode laser absorption spectroscopy (TDLAS), enabling reliable gas component analysis with concentration-related information derived from harmonic component extraction, while offering enhanced noise immunity for trace gas sensing in open environments. However, due to the strong coupling between laser wavelength and intensity, wavelength modulation inevitably introduces residual amplitude modulation (RAM), which significantly degrades measurement accuracy. To address this issue, this study introduces a RAM suppression algorithm based on multiple harmonic component decoupling (MHCD), using the second-harmonic lateral peak inclination angle (LPIA) as a characteristic indicator. Unit harmonic operators for the first, second, and third harmonics are designed, and an original harmonic reconstruction model is established via linear superposition of harmonic components. The optimal harmonic component ratio is determined at the composite operator with the maximum cross-correlation coefficient, and RAM noise is eliminated through a multi-harmonic decoupling matrix. Repetitive measurements on 22 mm pharmaceutical vials with 4% oxygen concentration demonstrate that MHCD reduces the second-harmonic LPIA from 18.07° to 8.56°. Concentration discrimination experiments conducted on seven groups of 22 mm vials with 2% concentration steps (0–12%) show that MHCD increases the true positive rate by 6–11% and decreases the false positive rate by 4–9%, confirming its effectiveness for pharmaceutical online inspection applications.
Keywords: residual amplitude modulation, lateral peak inclination angle, multiple harmonic component decoupling
1. Introduction
Tunable diode laser absorption spectroscopy (TDLAS) is a widely adopted gas-sensing technique known for its high sensitivity [1], rapid response [2], and non-contact measurement capability [3]. These advantages have enabled its extensive application in pharmaceutical manufacturing equipment, steel and metallurgical processes, as well as energy and environmental monitoring systems [4,5,6]. As a representative application, for evaluating the sealing integrity of pharmaceutical vials, an ultra-narrowband laser operating near the strong oxygen absorption feature at 760.88 nm can be used to probe the headspace of glass containers. This approach enables nondestructive, in situ, and rapid quantification of residual oxygen content, offering significant potential for high-speed and flexible sterile-product manufacturing lines [7,8,9].
TDLAS techniques generally include direct absorption spectroscopy (DAS) and wavelength-modulation spectroscopy (WMS). Owing to its ability to shift the laser frequency into a higher and narrower modulation band, WMS exhibits enhanced suppression of environmental disturbances and therefore holds greater potential for trace-gas measurements in open and complex industrial settings [10,11,12]. In a typical WMS system, the laser driving current is modulated by superimposing a low-frequency sawtooth waveform with a high-frequency sinusoidal signal. This current modulation not only induces wavelength modulation but also inevitably alters the output intensity of the laser, leading to undesired intensity modulation. When this intensity modulation is not fully eliminated or interacts with the wavelength modulation, a residual amplitude modulation component arises [13,14,15]. RAM distorts the spectral line shape of the detected signal, causing the amplitude and morphology of harmonic components—such as the second harmonic—to deviate from their ideal forms. This distortion degrades the accuracy of absorption-line analysis and ultimately compromises concentration inversion [16,17]. Furthermore, RAM introduces additional noise and reduces the system’s signal-to-noise ratio, thereby impairing sensitivity and measurement precision. The issue becomes particularly critical in trace-gas detection, where the inherently weak absorption features may be completely masked by RAM-induced noise, making it difficult to reliably identify or quantify the target species [18,19,20].
Existing studies on residual amplitude modulation noise suppression can be broadly categorized into two approaches. The first focuses on hardware optimization within the detection system, including optical paths and electronic circuits. For example, Chang et al. [21] compared subtraction and division pre-processing circuits, showing that division circuits are more effective in RAM suppression. Chakraborty et al. [22] employed fiber delay lines to maintain a 180° phase difference between dual optical paths, balancing amplitudes to cancel RAM. Upadhyay et al. [23] further integrated fiber ring resonators to monitor the phase difference between amplitude and frequency modulation, compensating for phase variations. Bao et al. [24] used adjustable optical attenuators to stabilize intensity variations, effectively suppressing modulation amplitude; however, their method is limited by the attenuator response time and is only effective at low modulation frequencies. Wei et al. [25] dynamically adjusted laser modulation coefficients to iteratively shape RAM-contaminated second-harmonic signals toward ideal waveforms, though the point-by-point adjustment is laborious and unstable. Zhang et al. [26] proposed a dual-channel lock-in amplifier architecture to monitor and eliminate RAM by tuning the reference phase difference, which significantly improves SNR but at increased hardware cost. These hardware-based approaches generally suffer from poor reproducibility, high cost, and limited applicability in short optical paths or spatially constrained scenarios. The second category includes algorithmic noise suppression and environmental calibration methods. Musialek et al. [27] applied genetic algorithms to optimize TDLAS/WMS modulation and harmonic detection parameters, reducing RAM and background noise at the system level and enhancing SNR. Chui et al. [28] applied the Gabor time–frequency transform to denoise second-harmonic signals, thereby reducing the coupling between RAM and other noise components and improving demodulation stability. Sun et al. [29] proposed a laser linewidth analysis combined with an adaptive variational mode decomposition–Savitzky–Golay (VMD–SG) filtering algorithm to suppress baseline noise fluctuations in raw detection signals. Zhao et al. [30] developed a hybrid denoising approach based on long short-term memory (LSTM) networks and denoising autoencoders (DAE), specifically designed for noise reduction in TDLAS second-harmonic signals. Lan et al. [31] introduced a logarithm-based background noise suppression method, which can theoretically mitigate RAM noise to a certain extent. While these algorithmic approaches avoid additional hardware cost, they typically target spectral signals directly without explicitly addressing the generation mechanisms of RAM, and thus may offer suboptimal suppression performance.
Building upon the aforementioned studies, this work proposes a residual amplitude modulation suppression approach based on the decoupling of multi-order harmonic components. The method constructs a composite harmonic operator from theoretically derived harmonic bases, which is then used to learn and estimate the proportional contributions of different harmonic orders under the influence of RAM. These estimated amplitude ratios are subsequently applied to decouple the multi-order harmonic contributions embedded in the distorted second-harmonic signal, thereby enabling the purification of the second harmonic. Compared with prior studies, the proposed strategy requires only post-processing of the measured spectral signal and does not necessitate any modifications to the existing optical or electronic hardware. This advantage provides greater system compactness and enhances engineering applicability. Moreover, the method is inherently independent of the frequency-modulation parameters and maintains stable compensation performance under arbitrary variations in intensity-modulation amplitude or phase. Consequently, the approach offers a flexible and low-cost RAM mitigation solution that is particularly well suited for space-constrained residual oxygen detection in pharmaceutical vials. Finally, a system for residual oxygen measurement in sealed vials was established, employing the oxygen absorption line centered at 760.884 nm for seal-integrity assessment. Using a standard test vial containing 0% oxygen as an example, the true-positive detection rate (TPR) improved from 86.5% to 94% after applying the proposed method, thereby validating its effectiveness and practical feasibility.
2. Background and Methodology
2.1. Principle of TDLAS-WMS
The detection principle of wavelength-modulation spectroscopy (WMS) is based on modulating the injection current of a tunable diode laser with a composite signal formed by superimposing a high-frequency sinusoidal waveform onto a low-frequency sawtooth waveform. Due to the approximately linear relationship between the injection current and the laser’s output optical frequency, this modulation scheme enables the laser frequency to be scanned over a predefined spectral range. The temporal response and the transfer characteristics between the laser drive current and the resulting output frequency can be described as follows [32,33]:
| (1) |
| (2) |
| (3) |
In this formulation, denotes the mean value of the sawtooth-modulated injection current; is the amplitude of the sinusoidal current-modulation component; represents the angular frequency of the sinusoidal modulation; denotes the center optical frequency corresponding to the sawtooth scanning range; is the amplitude of the frequency-modulation term; and denotes the linear current-to-frequency conversion coefficient of the laser.
It should be noted that the modulation of the injection current simultaneously induces not only frequency modulation but also accompanying variations in the emitted optical intensity. As a result, the instantaneous output intensity of the laser, denoted as W/m2, can be expressed as:
| (4) |
In this context, denotes the mean value of the laser-intensity scanning component, represents the amplitude of the intensity-modulation term, and is the phase offset between the frequency-modulation signal and the corresponding intensity-modulation response. When the modulated laser beam propagates through the target gas, the transmitted intensity can be described according to the Beer–Lambert law. Accordingly, the instantaneous transmitted optical power is given by:
| (5) |
where denotes the spectral absorbance per unit concentration and unit path length at temperature and frequency; is the total gas pressure; represents the line strength of the absorption transition at temperature; is the corresponding line-shape function; is the concentration of the target species; and is the effective absorption path length. Since the magnitude of is sufficiently small in conventional experimental environments such that higher-order absorption contributions can be neglected, Equation (5) may be asymptotically approximated as [34]:
| (6) |
The absorption line shape in this paper is confined as Lorentzian profile, which Fourier-series expansion can be expressed as:
| (7) |
where denotes the N-th Fourier coefficient. Reid et al. [35] provided the general analytical form of , which can be written as:
| (8) |
| (9) |
| (10) |
In this expression, denotes the normalized wavenumber, is the instantaneous optical frequency of the laser, represents the half width at half maximum (HWHM) of the Lorentzian line shape. The parameter denotes the normalized frequency-modulation amplitude, commonly referred to as the modulation depth, indicates the complex conjugate term.
Combine Equations (6) and (7), let , Equation (6) can be shown as:
| (11) |
This equation can be further expressed as:
| (12) |
By applying the product-to-sum identities, the infinite-series term in Equation (11) is further expanded and regrouped according to the N-th order frequency components into a Fourier-series representation. The instantaneous transmitted laser intensity is thereby expressed as follows:
| (13) |
| (14) |
The Fourier coefficients in Equations (13) and (14) are directly proportional to the concentration of the gas and the effective absorption path length [35].
2.2. Harmonic Extraction and LPIA
In practical measurements, the harmonic components are typically extracted and recorded using a quadrature demodulation approach. The principle of quadrature demodulation involves multiplying the measured signal by a reference signal generated within the system itself, followed by low-pass filtering to obtain the orthogonal harmonic components. The N-th order reference signal used in quadrature demodulation can be expressed as [36]:
| (15) |
where and denote the amplitude and phase of the reference signal, respectively. Based on the aforementioned principles, the expressions for the N-th order harmonic components can be derived. Taking the n-th harmonic as an example, the transmitted optical intensity is multiplied by the in-phase (I) and quadrature (Q) reference signals, yielding [37]:
| (16) |
| (17) |
Here, and denotes the high-frequency components resulting from the multiplication. After passing the I- and Q-channel signals through low-pass filters, the high-frequency components are removed, leaving only the zero-frequency (DC) terms. Consequently, the final acquired signals can be expressed as follows:
| (18) |
To eliminate the influence of the on the demodulated signals, it is common practice to compute the root of the sum of squares of the I- and Q-channel harmonic components. This procedure yields the absolute magnitude of the n-th harmonic, which can be calculated as follows:
| (19) |
In practical measurements, the quadrature-demodulated signal at twice the modulation frequency is typically employed as the basis for concentration retrieval, corresponding to the extraction of the second harmonic. The expression for this component is given as follows:
| (20) |
The waveform of is illustrated in Figure 1. When , reaches its maximum value, corresponding to the peak of the second-harmonic signal. As indicated by Equations (8) and (20), the presence of amplitude and phase discrepancies between the intensity modulation and frequency modulation introduces additional harmonic components and their cross-terms into the quadrature-demodulated second harmonic. Consequently, the resulting waveform becomes distorted and no longer preserves the symmetry predicted by the theoretical WMS model.
Figure 1.
Lateral Peak Inclination Angle on Second harmonic.
As shown in Figure 1, two local maxima—referred to as lateral peaks—appear on both sides of the principal peak. Let and denote the amplitudes of the left and right lateral peaks, respectively, and let represent the normalized wave-number difference between these two extrema. The degree of asymmetry induced by intensity-modulation effects can be quantified using the Lateral Peak Inclination Angle (LPIA), denoted as , which is defined as follows:
| (21) |
Evidently, in the conventional theoretical analysis, the second-harmonic component exhibits perfect centro-symmetry, yielding . However, in the presence of intensity modulation, the quadrature-demodulated signal is jointly influenced by the intensity-modulation amplitude and the phase offset . When , the two lateral peaks of the second-harmonic waveform become asymmetric, with the left peak lower than the right; conversely, when , the left peak exceeds the right in amplitude. The absolute magnitude characterizes the severity of the distortion in the second-harmonic lineshape.
2.3. Harmonic Component Fitting and Decoupling Method Based on Maximum Cross-Correlation Coefficient
To address the waveform asymmetry of the second-harmonic signal induced by residual amplitude modulation, this study proposes a RAM-suppression method based on multiple harmonic component decoupling (MHCD). The first step of the algorithm is to construct a fitting model based on the linear superposition of harmonic components, which is used to estimate the amplitude ratios of the odd-order harmonics embedded in the measured signal. As discussed in the previous section, the numerical value of can be expressed as a sum of products of the first, second, and third harmonics in specific proportions. When the amplitude and phase of the intensity modulation are uniquely defined, these product ratios are uniquely determined. However, it is difficult to measure the modulation amplitude and phase in real time with any practical sensing device. Moreover, due to the long-term instability between the laser driving current and the output optical power, the amplitude and phase of the residual intensity modulation can be regarded as time-varying parameters. Therefore, the proposed fitting approach numerically models the final demodulated signal under uncertain modulation amplitude and phase , enabling the estimation of the amplitude ratios between the odd-order harmonics and the second harmonic from the fitted model.
As indicated by Equation (13), the frequency components of the demodulated signal at twice the modulation frequency of the sinusoidal drive are primarily composed of a linear superposition of the first (), second (), and third () harmonics. By treating the linear coefficients preceding each harmonic component as undetermined parameters , , and , a linear superposition fitting model—referred to as the harmonic composite operator—can be constructed, which is expressed as follows:
| (22) |
Here, , , and correspond to the coefficients associated with the first-, second-, and third-harmonic components, respectively. After performing lock-in demodulation, the resulting signal can be expressed as follows:
| (23) |
To minimize the discrepancy between the reconstructed signal and the actual demodulated signal, the following optimization objective is defined for the aforementioned reconstruction model:
| (24) |
To achieve minimal error between the measured signal and the reconstructed signal, this study employs the waveform cross-correlation coefficient as the optimization criterion for waveform reconstruction. The cross-correlation function between the two signals is expressed as follows in Equation (25):
| (25) |
Here, denotes the frequency offset between the two signals. The harmonic composite operator contains three known harmonic components. When a linear convolution operation is performed, the similarity between the signal and each of the three harmonic components is effectively evaluated. At the frequency corresponding to the maximum of the cross-correlation function, the similarity between and is maximized, and the normalized error between the two signals is minimized.
This study is based on the assumption that, for different combinations of , , and , the larger the cross-correlation function between the reconstructed harmonic composite operator and the measured signal, the smaller the error between the actual and reconstructed signals. Among the harmonic composite operators corresponding to a given set of harmonic ratios, the operator with the maximum cross-correlation coefficient achieves the minimum error as defined in Equation (23). Under this condition, the optimization objective can be expressed as follows:
| (26) |
The objective of the optimization function is first to determine the optimal cross-correlation coefficient for the harmonic composite operator under the j-th set of harmonic ratios, and then to identify the operator with the maximum cross-correlation coefficient overall. Once the optimization function is achieved, the coefficients , , and within the harmonic composite operator represent the optimal amplitude ratios of the respective harmonic components in the original signal.
The second step of the MHCD algorithm involves using the harmonic component ratios obtained in the previous step to perform a linear calculation on the harmonic matrix, thereby correcting the waveform of the second-harmonic signal. During the process of determining the optimal harmonic amplitude ratios, a three-dimensional search is required. To simplify the algorithm, both sides of Equation (22) are divided by , yielding:
| (27) |
After performing the aforementioned linear transformation, it can be demonstrated that the new harmonic composite operator yields the same result as the original harmonic composite operator when computing the cross-correlation coefficient:
| (28) |
Following the linear transformation in Equation (27), the search space for the optimal harmonic amplitude ratios is reduced from three dimensions to two dimensions, let , Equation (27) can be changed as:
| (29) |
Under the optimization objective of the function , the absolute value of the optimal harmonic composite operator can be determined. The corresponding optimal harmonic composite operator is then obtained as follows:
| (30) |
Here, denotes the sign function. Once the optimal ratios a and b are obtained, the second-harmonic signal , along with the first- and third-harmonic signals and , are substituted into , , and in Equation (27), respectively. This yields the second-harmonic component with the odd-order harmonics removed:
| (31) |
It should also be noted that the first- and third-harmonic signals, and , contain even-order harmonic components. Consequently, directly subtracting and from would introduce additional coupled harmonic components at other frequencies. To achieve full-band harmonic decoupling, waveform reconstruction and compensation must also be applied to the first- and third-harmonic signals. Accordingly, the first-harmonic composite operator and the third-harmonic composite operator are formulated as follows:
| (32) |
| (33) |
where , , . Due to the presence of DC offsets, the optimization objective for the first-harmonic composite operator is to ensure that matches as closely as possible. Similarly, the optimization objective for the third-harmonic composite operator is to ensure that closely approximates . In Equations (32) and (33), neither the zero-order nor the fourth-order harmonic components are included; instead, the fitting is performed solely using their own harmonic component and the second harmonic. After correcting both the first- and third-harmonic signals, the decoupling of multiple harmonic components at the 1f, 2f, and 3f frequencies is achieved using the following formulation:
| (34) |
3. Simulation Analysis
Based on the theoretical analysis described above, this study establishes a mathematical model of the MHCD algorithm in MATLAB (R2021a) and conducts principle-level simulations. This section first examines the influence of optical-intensity modulation terms—namely the modulation amplitude and modulation phase—on the waveform characteristics of different harmonic orders, and subsequently uses these observations to verify the theoretical feasibility of the proposed algorithm.
3.1. Influence of Optical-Intensity Modulation Parameters on Harmonic Characteristics
In this work, the Lateral Peak Inclination Angle (LPIA) is employed as the criterion for evaluating the asymmetry of the second-harmonic signal. Under the influence of residual amplitude modulation, the first- and third-harmonic signals also exhibit waveform asymmetry [38]. The asymmetry of the first harmonic is primarily manifested as unequal peak and valley magnitudes. Accordingly, the peak–valley ratio (PVR) is defined as the metric for assessing its waveform symmetry, as illustrated in Figure 2a. For the third harmonic, the asymmetry is mainly reflected in the unequal amplitudes of the left and right peaks. Therefore, the double-peak inclination angle (DPIA) is introduced as the metric for characterizing its waveform symmetry, as shown in Figure 2b.
Figure 2.
(a) Peak–valley ratio of the first-harmonic signal; (b) double-peak inclination angle of the third-harmonic signal.
3.1.1. Effect of the Intensity Modulation Phase
With the intensity modulation amplitude fixed at , the phase is varied over the range of 0~180°. The quadrature demodulated signals at the fundamental frequency and at the second and third harmonics of the sinusoidal modulation signal are then obtained, respectively. Figure 3 illustrates the variation in the first-harmonic waveform and the corresponding peak–valley ratio as the phase changes from 0~180°.
Figure 3.
(a) The evolution of the first-harmonic waveform as the phase varies from (I–IX) 0° to 180°; (b) the corresponding variation in the first-harmonic peak–valley ratio (PVR).
From the two figures above, it can be observed that when the phase is equal to 90°, the waveform loses the characteristic features of the first harmonic and can no longer be used as a feature signal for concentration retrieval; therefore, this case is not further discussed. When , the valley of the first-harmonic waveform appears on the left side of , while the peak appears on the right side of . In this case, the peak value is consistently smaller than the valley value, and as approaches 90°, the difference between the peak and valley increases, resulting in a smaller PVR. When , the waveform polarity is reversed: the peak appears on the left side of , whereas the valley appears on the right side. Similarly, as approaches 90°, the PVR decreases. These results indicate that the intensity modulation phase not only affects the symmetry of the first-harmonic signal but also causes a polarity inversion, which explains why the first-harmonic term in Equation (32) can take either positive or negative values. Figure 4 shows the evolution of the second-harmonic waveform and Lateral Peak Inclination Angle (LPIA) as the phase varies in the range of 0~180°.
Figure 4.
(a) The evolution of the second-harmonic waveform as the phase varies from (I–IX) 0° to 180°; (b) the corresponding variation in the lateral peak inclination angle (LPIA).
As shown in the figure, the maximum peak value of the quadrature-demodulated signal in is essentially insensitive to variations in the intensity modulation phase, and its waveform corresponds to the absolute value of the theoretical model . When , the lateral peak inclination angle (LPIA) is zero, indicating a fully symmetric line shape. When , the LPIA is negative, characterized by a higher left-side peak than the right-side peak. Conversely, when , the LPIA becomes positive, with the left-side peak lower than the right-side peak. Moreover, as the phase gradually approaches 90°, the LPIA converges toward zero, and the waveform symmetry is progressively improved. Figure 5 shows the evolution of the third-harmonic waveform and the corresponding double peak inclination angle as the phase varies from 0~180°.
Figure 5.
(a) The evolution of the third-harmonic waveform as the phase varies in the range of (I–IX) 0° to 180°; (b) the corresponding variation in the double-peak inclination angle (DPIA).
As shown in the figure, under the influence of residual amplitude modulation, the quadrature-demodulated signal exhibits a zero baseline, and its waveform corresponds to the absolute value of the theoretical model . When the phase , the DPIA equals zero, indicating a perfectly symmetric line shape. When , the left peak is higher than the right peak, resulting in a negative DPIA. Conversely, when , the left peak becomes lower than the right peak, leading to a positive DPIA. Moreover, as the phase gradually approaches 90°, the DPIA approaches zero, and the waveform symmetry is progressively improved.
3.1.2. Effect of the Intensity Modulation Amplitude
With the phase fixed, the amplitude of residual amplitude modulation is varied, and the simulated results are shown in Figure 6 and Figure 7. The quadrature-demodulated signals at twice the modulation frequency under different amplitude modulation depths , as functions of the normalized wavenumber x, are illustrated in Figure 6a and Figure 7a. When , the LPIA decreases with increasing , indicating a degradation in waveform symmetry. In contrast, when , the LPIA increases as increases. These results demonstrate that variations in do not alter the polarity of the LPIA but exacerbate the degree of waveform asymmetry.
Figure 6.
Variation in the (a) 2f signal and the (b) LPIA with respect to the intensity modulation amplitude ().
Figure 7.
Variation in the (a) 2f signal and (b) the LPIA with respect to the intensity modulation amplitude ().
From the above discussion, it can be concluded that the fundamental origin of waveform asymmetry lies in the linear component of the intensity modulation, specifically, the existence of a certain phase difference between the intensity modulation and the frequency modulation. Taking 90° as the reference, when the phase is below or above 90°, the polarity of the lateral peak inclination angle (LPIA) of the second harmonic is reversed. An increase in the intensity modulation amplitude leads to a larger absolute value of the LPIA, thereby exacerbating the waveform asymmetry. Since the baselines of the second- and third-harmonic signals are zero, their negative portions are converted to positive values after quadrature demodulation. In contrast, the baseline of the first-harmonic signal is significantly larger than its harmonic amplitude, so the quadrature-demodulated first-harmonic signal represents an inversion of the original signal. Based on the relationship between the phase-locked demodulated signals and the original signals, the reconstructed waveforms of the second and third harmonics need to be multiplied by a sign function to recover the original signal, whereas the first-harmonic reconstructed waveform inherently possesses both positive and negative polarity. In the first-harmonic composite operator in Equation (31), is assigned values of −1 and 1 to match the polarity of the demodulated signal.
3.2. Simulation of the MHCD Algorithm
To verify the compensation capability of the multiple harmonic component decoupling algorithm for different types of harmonic asymmetry, a mathematical model of the residual oxygen detection system for sealed pharmaceutical vials was established. Figure 8 illustrates the generation of the laser drive modulation signal and the acquisition process of the absorption spectrum signal, while Figure 9 depicts the procedure for extracting harmonic signals using phase-lock demodulation.
Figure 8.
The generation of the laser drive modulation signal and the acquisition process of the absorption spectrum.
Figure 9.
Extracting harmonic signals by phase-lock demodulation.
According to the HITRAN database, an isolated absorption line of O2 at 760.885 nm (13,142.6 cm−1) was selected as the target absorption line. The frequency of the sawtooth scanning signal was set to 50 Hz with a scanning amplitude of 1.4 mA, while the sinusoidal modulation signal had a frequency of 15 kHz and an amplitude of 0.12 mA. The sampling frequency was set to 5 MHz. The ambient temperature was set to 296 K and the pressure was assumed to be 1 atm, under which the absorption line strength of O2 at 13,142.6 cm−1 is 8.847 cm−1/(molecule·cm−2). The phase of the intensity modulation was varied from 0° to 360°, and the amplitude of the intensity modulation was varied from 0.5 to 4, which essentially covers the full range of experimental conditions. To better reflect practical conditions in the simulation, the oxygen concentration inside the vial was set to 0%, whereas the oxygen concentration outside the vial was set to 21%. The effective absorption path length inside the vial was 22 mm, and that outside the vial was 80 mm.
The experimental results demonstrate that the MHCD algorithm achieves satisfactory optimization across the specified range of intensity modulation parameters. It not only provides accurate fitting for demodulated signals across different frequency components but also effectively restores the waveform symmetry of each harmonic component. Figure 10 illustrates the algorithm’s optimization performance for the demodulated signals at a typical operating point (intensity modulation phase 180°, amplitude 2). Specifically, for the first-harmonic signal, the original characteristic of the peak being lower than the valley was corrected: after processing, the peak was enhanced while the valley was correspondingly reduced, resulting in a more symmetric waveform. In the processing of the second-harmonic signal, the algorithm effectively eliminated the pronounced lateral peak inclination in the original signal, bringing the inclination angle close to the ideal zero value. For the third-harmonic signal, the algorithm successfully corrected the asymmetry of the original waveform, where the right peak was higher than the left, thereby reducing the amplitude difference between the two peaks.
Figure 10.
Performance of the MHCD algorithm in optimizing the (a) first-, (b) second-, and (c) third-harmonic signals under a representative operating condition.
The variations in the geometric asymmetry characteristics of the first-, second-, and third-order harmonics before and after application of the multi-harmonic component decoupling (MHCD) algorithm—quantified by PVR, LPIA, and DPIA, respectively—are presented in Figure 11, Figure 12 and Figure 13. For clarity, the principal observations are summarized below.
Figure 11.
PVR comparison before and after MHCD algorithm optimization. (a) Original PVR; (b) Improved PVR.
Figure 12.
LPIA comparison before and after MHCD algorithm optimization. (a) Original LPIA; (b) Improved LPIA.
Figure 13.
DPIA comparison before and after MHCD algorithm optimization. (a) Original DPIA; (b) Improved DPIA.
(1) First harmonic (PVR):
Prior to algorithmic processing, the peak-to-valley ratio ranged from [0.52, 0.98]. After application of the MHCD algorithm, this range shifted to [0.64, 0.96]. This change suggests that the algorithm tends to moderate the amplitude imbalance of the first harmonic, with peak and valley magnitudes exhibiting a comparatively more balanced distribution.
(2) Second harmonic (LPIA):
In the absence of processing, the side-lobe inclination angle of the second harmonic spanned [−9.2°, 14.4°], with extrema occurring at 180°, consistent with the theoretical analysis discussed previously. Following MHCD processing, the inclination angle range of the dual valleys was reduced to [−2.8°, 5°]. This contraction indicates that the geometric asymmetry of the second-harmonic waveform is alleviated to a certain extent.
(3) Third harmonic (DPIA):
For the unprocessed signal, the dual-peak inclination angle was in the range of [−3.9°, 15°]. After implementation of the MHCD algorithm, this interval decreased to [−2.6°, 9.7°], indicating a certain degree of reduction in asymmetry for the third harmonic.
Considering that the second harmonic is commonly employed for concentration retrieval in TDLAS-WMS systems, a further quantitative analysis is conducted to assess the effectiveness of MHCD in improving LPIA, which is defined as follows.
| (35) |
where denotes the original LPIA, and denotes the LPIA after algorithmic improvement. The LPIA improvement percentage is shown in Figure 14.
Figure 14.
LPIA improvement percentage.
By combining Figure 12 and Figure 14, it can be observed that the optimization performance of the algorithm is positively correlated with the initial degree of harmonic asymmetry. When the initial peak–valley angle is large (i.e., the harmonic asymmetry is pronounced), the algorithm exhibits a significant optimization effect, with a maximum improvement percentage of 70%. Conversely, when the initial peak–valley angle is small, the magnitude of signal adjustment is relatively limited, indicating that the MHCD algorithm is adaptive and capable of dynamically adjusting the optimization strength according to the initial degree of harmonic asymmetry, thereby avoiding over-processing. This characteristic enhances its general applicability and reliability in practical applications.
3.3. Accuracy Assessment of Fitting
This section aims to verify that the proposed algorithm maintains high fitting accuracy under the conditions described in Section 3.1. The simulation was conducted with the phase varying over the range and the amplitude over the range , in order to cover as many experimental scenarios as possible. Based on these parameters, quadrature-demodulated signals at the fundamental, second, and third harmonics (1f, 2f, 3f) were generated, with a total of sampling points. Subsequently, the harmonic composite operators for the first, second, and third harmonics were constructed, and their cross-correlation coefficients were calculated under different parameter sets. The harmonic composite operator exhibiting the maximum cross-correlation coefficient was selected as the optimal fitted value. Since multiplying the harmonic composite operator by different linear coefficients yields equivalent results, both the demodulated signals and the harmonic composite operators were normalized to facilitate comparison of the model error between them. The normalized root-mean-square error (RMSE) was then employed as the metric for evaluating the fitting performance of the model.
The specific implementation steps are as follows:
Step1: Based on Equations (28), (30) and (31), the composite operators for the first, second, and third harmonics were generated. The amplitude ratio ranges for the first-harmonic composite operator were set as and ; for the second-harmonic composite operator, and ; and for the third-harmonic operator, . The search step size for the harmonic composite operators was adjustable, and in this paper, it was set to 0.01.
Step2: The reconstructed signals , , and were cross-correlated with the demodulated signals , , and , respectively. The position corresponding to the maximum cross-correlation coefficient was identified as the optimal location for the j-th amplitude ratio combination.
Step3: The harmonic composite operator exhibiting the maximum cross-correlation coefficient among the set of j amplitude ratio combinations was selected as the optimal composite operator . The corresponding harmonic amplitude ratios represent the output of the first step of the MHCD algorithm and serve as inputs for the subsequent linear matrix operations.
The optimal harmonic composite operator obtained in Step S3, along with the fitted curves for each harmonic, is shown in Figure 15. The smaller the error between the reconstructed signals and the original signals, the higher the accuracy of the harmonic amplitude ratios obtained through inversion.
Figure 15.
(a) 1f, (b) 2f, (c) 3f signals with the optimal harmonic composite operator.
To further quantitatively validate the fitting accuracy of the optimal harmonic composite operator, simulation data were generated by sampling at intervals of 0.5 and at intervals of 30°, yielding a total of 88 sets of 1f, 2f, and 3f signals. Each set was cross-correlated with its corresponding harmonic composite operator, and the optimal harmonic composite operator was selected to reconstruct the signals.
The original demodulated signals were treated as the ground truth and, together with the reconstructed signals, were normalized to the range [0,1]. The root-mean-square error (RMSE) was employed to evaluate the model fitting performance, which is defined as follows:
| (36) |
Here, denotes the normalized value of the n-th harmonic demodulated signal, and represents the normalized value of the corresponding optimal harmonic composite operator.
The average RMSE values of the 88 sets of original and reconstructed signals are summarized in Table 1. The proposed algorithm exhibits high fitting accuracy under all 88 intensity modulation parameter conditions, with the average RMSE for each harmonic component being lower than 0.01. These results demonstrate that the algorithm has strong adaptability across diverse application scenarios and is capable of accurately fitting harmonic components over the entire frequency range.
Table 1.
Average RMSE between the reconstructed signals and the original signals.
| Original Signal | 1f Signal | 2f Signal | 3f Signal |
|---|---|---|---|
| Mean RMSE | 0.002 | 0.009 | 0.0081 |
3.4. Noise Robustness Analysis
In gas detection applications under open environments, the system is inevitably contaminated by environmental noise sources such as strong electromagnetic interference, temperature and humidity fluctuations, and external light disturbances. Therefore, the proposed MHCD algorithm must exhibit sufficient noise immunity to accurately recover the original harmonic amplitude ratios from noisy signals. Since Gaussian noise shares statistical characteristics similar to those commonly encountered in TDLAS systems, and baseline drift noise can effectively simulate the impact of environmental parameter drift on the hardware of the detection system, Gaussian noise and baseline drift noise with different intensities were superimposed onto the noise-free demodulated signals to evaluate the noise robustness of the MHCD algorithm. Four noise conditions were considered, namely noise-free, low-level noise, medium-level noise, and high-level noise, corresponding to signal-to-noise ratios (SNRs) of noise-free, 28.5 dB, 8.5 dB, and −2.5 dB, respectively. The demodulated signals contaminated by different noise levels are illustrated in Figure 16 and Figure 17.
Figure 16.
(a) First, (b) Second, (c) Third harmonic in Gaussian noise with different signal-to-noise ratios: (i) no noise, (ii) SNR = 28.5 dB, (iii) SNR = 8.5 dB, (iv) SNR = −2.5 dB.
Figure 17.
(a) First, (b) Second, (c) Third harmonic in baseline drift with different signal-to-noise ratios: (i) no noise, (ii) SNR = 28.5 dB, (iii) SNR = 8.5 dB, (iv) SNR = −2.5 dB.
In addition, three commonly used waveform reconstruction methods—empirical mode decomposition (EMD), the Savitzky–Golay (S-G) filter, and the fast Fourier transform (FFT)—were selected for comparative evaluation under the same test conditions. The reconstructed signals obtained using these methods were subjected to the same normalization procedure, and the average RMSE was used to quantitatively assess their performance. The average RMSE values achieved by each algorithm in fitting the demodulated signals are presented in Figure 18 and Figure 19 and Table 2. The MHCD algorithm exhibits comparable average RMSE to the EMD, S-G, and FFT methods under noise-free conditions, while achieving the lowest RMSE under low-, medium-, and high-noise conditions. This performance advantage arises because the construction of the harmonic composite operators incorporates substantial prior information, including the modulation index and spectral linewidth, enabling the algorithm to effectively recover clean harmonic signals even in the presence of noise.
Figure 18.
Performance comparison of the MHCD algorithm under Gaussian noise and three reference methods in reconstructing the original signals using the (a) first-, (b) second-, and (c) third-harmonic components.
Figure 19.
Performance comparison of the MHCD algorithm under baseline drift and three reference methods in reconstructing the original signals using the (a) first-, (b) second-, and (c) third-harmonic components.
Table 2.
The average RMSE index of the MHCD algorithm and comparative algorithm.
| Mean RMSE | EMD | SG | FFT | MHCD |
|---|---|---|---|---|
| Gaussian Noise | 0.0390 | 0.0387 | 0.0352 | 0.0096 |
| Baseline Drift | 0.0410 | 0.0451 | 0.0399 | 0.0127 |
By jointly considering the results presented in Section 3.2 and Section 3.3, it can be concluded that the proposed method maintains high fitting accuracy over a wide range of intensity modulation parameter variations, demonstrating strong adaptability to measurement scenarios in which the intensity modulation parameters are uncertain and randomly varying. Moreover, in comparative experiments involving demodulated signals corrupted by different noise levels, the performance of the proposed method remains essentially stable as the signal-to-noise ratio decreases, exhibiting superior noise robustness compared with conventional algorithms. Consequently, the proposed approach is capable of effectively suppressing the influence of residual amplitude modulation on the waveforms of multiple harmonic components.
4. Experiments
4.1. Experimental System
The experimental system was composed of a ZYNQ-7020 development board (AX7021 V2.0, ALINX, Shanghai, China) and a custom-designed hardware board, which together were used to implement laser drive signal generation, absorption spectrum acquisition, and data transmission to the host computer, as illustrated in Figure 20.
Figure 20.
The experimental setup for residual oxygen detection in sealed pharmaceutical vials.
The ZYNQ-7020 platform generated modulation signals based on direct digital synthesis (DDS). The ramp scanning signal had a frequency of 50 Hz with a scan amplitude of 1.4 mA, while the sinusoidal modulation signal operated at a frequency of 15 kHz with an amplitude of 0.12 mA. These digital signals were transmitted to the custom hardware board, where digital-to-analog conversion and signal conditioning were performed to generate analog current modulation signals suitable for driving the semiconductor laser (L760VH1, Thorlabs, Newton, NJ, USA). The distance between the laser source and the photodetector was approximately 80 mm. After gas absorption, the transmitted optical signal was incident on a photodetector (PDA36A2, Thorlabs, Newton, NJ, USA), which converted the optical signal into an electrical signal. The resulting absorption spectrum signal was then fed into the same custom hardware board for signal conditioning and analog-to-digital conversion at a sampling rate of 5 MHz, and subsequently transmitted to the host computer via a serial interface for data storage. Furthermore, a commercial laser controller (VITC002, Thorlabs, Newton, NJ, USA) was integrated into the system to control the laser operating temperature and current threshold, ensuring that the laser operated within a safe and stable regime. Collectively, these modules formed a complete system for residual oxygen detection in sealed pharmaceutical vials.
4.2. Experiments and Results Analysis
To verify the suppression effect of the MHCD algorithm on residual amplitude modulation noise during the detection process, repeatability experiments were conducted using a vial with a diameter of 22 mm and an oxygen concentration of 4% as the test object. A total of 200 measurements were performed. Figure 21a shows the original second-harmonic signal acquired during the experiments. By extracting the normalized coordinates of the peak-to-peak points on the left and right sides of the harmonic signal and connecting their averaged values, the mean LPIA was calculated to be 18.07°, indicating the presence of pronounced RAM noise in the detection process and a significant degradation of the harmonic geometric symmetry. Figure 21b presents the second-harmonic signal after processing with the multi-harmonic component decoupling (MHCD) algorithm. As can be observed, the harmonic waveform exhibits markedly improved symmetry and overall quality after algorithmic processing, while the mean LPIA is reduced to 8.56°. These results clearly demonstrate the effectiveness of the MHCD algorithm in suppressing RAM noise and enhancing the geometric symmetry of harmonic signals.
Figure 21.
Second-harmonic signals (a) before and (b) after applying the MHCD algorithm.
To further elucidate whether the proposed MHCD algorithm exerts a direct impact on concentration estimation rather than merely improving intermediate waveform characteristics, an additional comparison of the retrieved concentration results was conducted based on the repeatability experiment. Since concentration inversion in TDLAS–WMS is directly derived from the demodulated harmonic signals, any stabilization of the harmonic waveform is expected to propagate to the concentration-estimation stage. Therefore, concentration inversion was performed using the second-harmonic signal shown in Figure 21, and the corresponding concentration retrieval results are presented in Figure 22.
Figure 22.
Result of the 4% O2 concentration vial (a) before and (b) after applying the MHCD algorithm.
As shown in Figure 22, after applying the MHCD algorithm, the dispersion of the retrieved concentration is significantly reduced. Specifically, the standard deviation decreases from 0.23 to 0.12, and the range decreases from 0.47 to 0.29 over 200 consecutive measurements under identical conditions. This reduction in variability indicates a clear improvement in the repeatability precision of the concentration estimation. The result confirms that the proposed MHCD algorithm produces a direct effect at the concentration-estimation level, rather than merely improving the geometric characteristics of the harmonic waveform.
In the pharmaceutical industry, sterile products packaged in vials are subjected to container closure integrity testing based on a predefined oxygen concentration threshold, according to which the products are inspected, classified, and rejected. The detection performance is typically evaluated using the true positive rate and false positive rate. To further assess the discrimination capability of the MHCD algorithm for vials with low oxygen content and small concentration differences under practical inspection conditions, seven groups of vials with a diameter of 22 mm and an oxygen concentration gradient of 2% were selected as test samples. The corresponding internal oxygen concentrations were 0%, 2%, 4%, 6%, 8%, 10%, and 12%, respectively, and concentration discrimination experiments were conducted.
To quantitatively evaluate the classification performance of multi-concentration samples, this study constructs an interval division method based on decision thresholds between adjacent classes. Let the number of samples in each class be equal, denoted as M. The True Positive Rate (TPR) for the k-th class is defined as the proportion of samples falling within the corresponding decision interval. The False Negative Rate (FNR) and False Positive Rate (FPR) are defined as the proportions of samples crossing into the adjacent lower concentration and higher concentration intervals, respectively. This definition provides an intuitive representation of the distribution shift between adjacent categories, making it more suitable for threshold-based sequential decision problems.
Suppose there are N sample sets arranged in ascending order of concentration, and the number of samples in each category is the same, which is M. Then there is:
| (37) |
The discrimination threshold between adjacent categories is defined as:
| (38) |
Based on the threshold sequence , the discrimination interval corresponding to the k-th class is
| (39) |
Based on the above definition, the TPR of the k-th class samples can be defined as the proportion of samples in the k-th class that fall within their corresponding discrimination interval , that is:
| (40) |
The FPR can be defined as the proportion of the k-th type of samples that fall into the upper adjacent interval (in the high concentration direction), that is:
| (41) |
The FNR can be defined as the proportion of the k-th class samples that fall into the lower adjacent interval (in the low concentration direction), that is:
| (42) |
And for the intermediate category where 2 ≤ k ≤ N − 1, there is:
| (43) |
A total of 200 repeated measurements were performed. The acquired absorption spectra were processed using quadrature demodulation to extract the second-harmonic component. An experimental group (with MHCD algorithm processing) and a control group (without algorithm processing) were established for comparison. The integral value of the second-harmonic signal was used as the characteristic parameter for oxygen concentration inversion and classification. The detection results before and after applying the MHCD algorithm are presented as scatter plots in Figure 23a and Figure 23b, respectively, while the corresponding comparisons of true positive rates (TPRs) and false positive rates (FPRs) are summarized in Table 3.
Figure 23.
Detection results of vials with a 2% oxygen concentration gradient (a) before and (b) after applying the MHCD algorithm.
Table 3.
Comparison of the true positive rate and false positive rate before and after applying the MHCD algorithm.
| Oxygen Concentration |
Without MHCD | MHCD | ||||
|---|---|---|---|---|---|---|
| TPR | FPR | FNR | TPR | FPR | FNR | |
| 0% | 86.5% | 13.5% | - | 94% | 6% | - |
| 2% | 68.5% | 21.5% | 10% | 79.5% | 12.5% | 8% |
| 4% | 82.5% | 4.5% | 13% | 93.5% | 0.5% | 6% |
| 6% | 84.5% | 9% | 6.5% | 95% | 1.5% | 3.5% |
| 8% | 79% | 17% | 4% | 85% | 10.5% | 4.5% |
| 10% | 82.5% | 11% | 6.5% | 88.5% | 7% | 4.5% |
| 12% | 91% | - | 9% | 97.5% | - | 2.5% |
In Figure 23, the horizontal axis represents the oxygen concentration within the vials under test, and the vertical axis corresponds to the integrated value of the second harmonic obtained after quadrature demodulation. Combining the experimental results from Figure 23 and Table 3, it can be seen that, without compromising the overall linearity of the detection results, the MHCD algorithm can significantly enhance the discrimination between vials with low oxygen content and small concentration differences. Specifically, after applying the MHCD algorithm, the system’s TPR increased by 6–11%, while the FPR and FNR were effectively suppressed, with a reduction range of 4–9% and 0.5–7%. These findings indicate that the algorithm improves both the sensitivity and reliability of detecting vials with low oxygen concentration and minimal concentration differences, demonstrating its potential for implementation in practical pharmaceutical industrial online inspection lines.
5. Conclusions
This study addresses the influence of residual amplitude modulation noise in TDLAS-WMS systems and proposes a multi-harmonic component decoupling (MHCD) method for RAM noise suppression, aiming to mitigate the degradation in detection performance caused by harmonic asymmetry. First, the distortion mechanisms induced by RAM noise on different harmonic components are systematically analyzed. It is shown that the phase of intensity modulation alters both the magnitude and direction of the side-peak tilt in the second harmonic, while the modulation depth further exacerbates this asymmetry. In addition, the baseline symmetry of the first harmonic and the central-frequency symmetry of the third harmonic are also significantly affected. Based on these observations, the proposed method constructs pure harmonic composite operators and performs cross-correlation operations among harmonics obtained after quadrature demodulation. The optimal harmonic component ratios are determined at the composite operator corresponding to the maximum correlation coefficient, thereby eliminating out-of-band harmonic interference and enabling the accurate reconstruction of a pure second-harmonic signal. The fitting accuracy and noise robustness of the algorithm are subsequently verified.
Finally, a packaged vial residual oxygen detection system is established to experimentally validate the effectiveness of the MHCD algorithm in suppressing RAM noise and improving the detection performance for low-oxygen vials. Repetitive experiments are first conducted using vials with a diameter of 22 mm and an oxygen concentration of 4%. The results indicate that the original second-harmonic signals exhibit pronounced RAM-induced asymmetry, with an average LPIA of 18.07°, whereas after MHCD processing, the waveform symmetry is significantly improved and the LPIA is reduced to 8.56°. Furthermore, concentration discrimination experiments are performed on seven groups of vials with an oxygen concentration gradient of 2%. The second-harmonic integrated values extracted via quadrature demodulation are used for classification. The experimental results demonstrate that, while preserving the overall linearity of the detection results, the MHCD algorithm markedly increases the TPR for vials with low oxygen content and small concentration differences by 6–11%, while effectively reducing the FPR by 4–9% and the FNR by 0.5–7%. These results confirm the practical applicability of the MHCD algorithm on a physical detection platform and provide a technical foundation for enhancing sensitivity and discrimination reliability in pharmaceutical industrial online inspection lines. Furthermore, the MHCD algorithm was originally developed to suppress residual amplitude modulation by operating directly on demodulated harmonic components. Therefore, its applicability is not limited to TDLAS systems and it may also be extended to other modulation–demodulation optical sensing techniques that are sensitive to intensity or phase variations, such as photoacoustic spectroscopy, fiber-optic sensing systems and Pound–Drever–Hall technology.
Acknowledgments
The authors would like to acknowledge the support of our research team, the Natural Science Foundation of China.
Author Contributions
Conceptualization, Q.L. and H.S.; methodology, H.S.; software, H.S.; validation, Q.L. and H.S.; formal analysis, H.S.; investigation, Y.W.; resources, Q.L. and H.S.; data curation, H.S.; writing—original draft preparation, Q.L. and H.S.; writing—review and editing, Y.W.; visualization, Y.W.; supervision, Y.W.; project administration, C.Y.; funding acquisition, Q.L. and C.Y. All authors have read and agreed to the published version of the manuscript.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data that support the findings of this study are available on request from the corresponding author. The data are not publicly available due to privacy concerns.
Conflicts of Interest
The authors declare no conflicts of interest.
Funding Statement
This research was funded by the National Natural Science Foundation of China under Grant 62027811, Grant 62322317, Grant 62573433, Grant 62394340.
Footnotes
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
References
- 1.Lin S., Chang J., Sun J., Xu P. Improvement of the Detection Sensitivity for Tunable Diode Laser Absorption Spectroscopy: A Review. Front. Phys. 2022;10:853966. doi: 10.3389/fphy.2022.853966. [DOI] [Google Scholar]
- 2.Li C., Shao L., Meng H., Wei J., Qiu X., He Q., Ma W., Deng L., Chen Y. High-Speed Multi-Pass Tunable Diode Laser Absorption Spectrometer Based on Frequency-Modulation Spectroscopy. Opt. Express. 2018;26:29330–29339. doi: 10.1364/OE.26.029330. [DOI] [PubMed] [Google Scholar]
- 3.Shi G., Song X., Dong T. Combining TDLAS and multi-fusion algorithms for methane gas concentration detection. Optoelectron. Lett. 2024;20:353–359. doi: 10.1007/s11801-024-3112-7. [DOI] [Google Scholar]
- 4.Rhieu S.Y., Korang-Yeboah M., Anderson D.D., Arigo J., O’Connor T., Shah R. Recent trends in pharmaceutical freeze-drying and control strategies observed in human drug applications and manufacturing inspections. AAPS Open. 2025;11:27. doi: 10.1186/s41120-025-00132-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Sepman A., Ögren Y., Qu Z., Wiinikka H., Schmidt F.M. Tunable Diode Laser Absorption Spectroscopy Diagnostics of Potassium, Carbon Monoxide, and Soot in Oxygen-Enriched Biomass Combustion Close to Stoichiometry. Energy Fuels. 2019;33:11795–11803. doi: 10.1021/acs.energyfuels.9b02257. [DOI] [Google Scholar]
- 6.Brueckner D., Roesti D., Zuber U., Sacher M., Duncan D., Krähenbühl S., Braissant O. Tunable diode laser absorption spectroscopy as method of choice for non-invasive and automated detection of microbial growth in media fills. Talanta. 2017;167:21–29. doi: 10.1016/j.talanta.2017.01.088. [DOI] [PubMed] [Google Scholar]
- 7.Luo Q., Song C., Yang C., Gui W., Sun Y., Jeffrey Z. Headspace Oxygen Concentration Measurement for Pharmaceutical Glass Bottles in Open-Path Optical Environment Using TDLAS/WMS. IEEE Trans. Instrum. Meas. 2020;69:5828–5842. doi: 10.1109/TIM.2019.2958582. [DOI] [Google Scholar]
- 8.Zhang Y., Wu W., Yang H., Li C., Tao J., Kan R. Optimization of leakage detection system for vials based on two-line tunable diode laser absorption spectroscopy. Spectrochim. Acta A. 2020;233:118194. doi: 10.1016/j.saa.2020.118194. [DOI] [PubMed] [Google Scholar]
- 9.Wang Y., Zhao Z., Luo Q., Yang C., Gui W. An Improved Residual Oxygen Detection Method Using Axis-Sectional Multi-Reflection within Optical-Length-Limited Pharmaceutical Vials. Measurement. 2023;222:113667. doi: 10.1016/j.measurement.2023.113667. [DOI] [Google Scholar]
- 10.Cao Y., Cheng X., Xu Z., Tian X., Cheng G., Peng F., Wang J. High precision and sensitivity detection of gas measurement by laser wavelength modulation spectroscopy implementing an optical fringe noise suppression method. Opt. Lasers Eng. 2023;166:107570. doi: 10.1016/j.optlaseng.2023.107570. [DOI] [Google Scholar]
- 11.Du Y., Peng Z., Ding Y. Wavelength Modulation Spectroscopy for Recovering Absolute Absorbance. Opt. Express. 2018;26:9263–9272. doi: 10.1364/OE.26.009263. [DOI] [PubMed] [Google Scholar]
- 12.Jiang Y., Zheng R., Xu X., Ren L., Zhao G., Zhao Y., Ma W. Remote Sensor System of Multi-component Gas Based on Wavelength Modulation Spectroscopy (Invited) Acta Photon. Sin. 2023;52:0352114. [Google Scholar]
- 13.Yang Z., Yan X., Chen G., Tian X. Double Demodulation Incorporates Reciprocal Modulation and Residual Amplitude Modulation Feedback to Enhance the Bias Performance of RFOG. Photonics. 2025;12:792. doi: 10.3390/photonics12080792. [DOI] [Google Scholar]
- 14.Wu J., Chen H., Kang G., Li X. TDLAS second harmonic demodulation based on Hilbert transform. PLoS ONE. 2022;17:e0278724. doi: 10.1371/journal.pone.0278724. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Pawel K., Jörgen G., Åsa M.L., Ove A. Wavelength modulation absorption spectrometry—An extensive scrutiny of the generation of signals. Spectrochim. Acta B. 2001;56:1277–1354. [Google Scholar]
- 16.Behera A., Wang A. Calibration-Free Wavelength Modulation Spectroscopy: Symmetry Approach and Residual Amplitude Modulation Normalization. Appl. Opt. 2016;55:4446–4455. doi: 10.1364/AO.55.004446. [DOI] [PubMed] [Google Scholar]
- 17.Upadhyay A., Chakraborty A.L. Residual Amplitude Modulation Method Implemented at the Phase Quadrature Frequency of a 1650-nm Laser Diode for Line Shape Recovery of Methane. IEEE Sens. J. 2015;15:1153–1160. doi: 10.1109/JSEN.2014.2358714. [DOI] [Google Scholar]
- 18.Deng B., Sima C., Xiao Y., Wang X., Ai Y., Li T., Lu P., Liu D. Modified laser scanning technique in wavelength modulation spectroscopy for advanced TDLAS gas sensing. Opt. Lasers Eng. 2022;151:106906. doi: 10.1016/j.optlaseng.2021.106906. [DOI] [Google Scholar]
- 19.Ruxton K., Chakraborty A.L., Johnstone W., Lengden M., Stewart G., Duffin K. Tunable diode laser spectroscopy with wavelength modulation: Elimination of residual amplitude modulation in a phasor decomposition approach. Sens. Actuators B Chem. 2010;150:367–375. doi: 10.1016/j.snb.2010.06.058. [DOI] [Google Scholar]
- 20.Li Z., Zhang H., Wang X., Yu B., Zhou S. A CNN-Filter assisted calibration-free nonlinear half-wave scan WMS. Opt. Lasers Eng. 2024;181:108439. doi: 10.1016/j.optlaseng.2024.108439. [DOI] [Google Scholar]
- 21.Chang H.T., Chang J., Wang P.P., Zhu C.G. Comparison of preprocessing technique of second harmonic detection with tunable diode laser. Opt. Quant. Electron. 2016;48:211. doi: 10.1007/s11082-016-0481-6. [DOI] [Google Scholar]
- 22.Chakraborty A.L., Ruxton K.C., Johnstone W. Suppression of intensity modulation contributions to signals in second harmonic wavelength modulation spectroscopy. Opt. Lett. 2010;35:2400–2402. doi: 10.1364/OL.35.002400. [DOI] [PubMed] [Google Scholar]
- 23.Upadhyay A., Chakraborty A.L. Calibration-Free 2f WMS with In Situ Real-Time Laser Characterization and 2f RAM Nulling. Opt. Lett. 2015;40:4086–4089. doi: 10.1364/OL.40.004086. [DOI] [PubMed] [Google Scholar]
- 24.Bao W.Y., Zhu Y., Chen J. Analysis of Suppression of Optical Intensity Modulation and Its Response Time Limitation Using Adjustable Optical Attenuators. Spectrosc. Spectr. Anal. 2011;31:1015–1519. [Google Scholar]
- 25.Wei W., Chang J., Wang Q., Qin Z. Modulation Index Adjustment for Recovery of Pure Wavelength Modulation Spectroscopy Second Harmonic Signal Waveforms. Sensors. 2017;17:163. doi: 10.3390/s17010163. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Zhang Q., Chang J., Cong Z., Wang Z., Wang F. Dual Path Lock-In System for Elimination of Residual Amplitude Modulation and SNR Enhancement in Photoacoustic Spectroscopy. Sensors. 2018;18:4255. doi: 10.3390/s18124255. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Musiałek F., Szabra D., Wojtas J. Time-Efficient SNR Optimization of WMS-Based Gas Sensor Using a Genetic Algorithm. Sensors. 2024;24:1842. doi: 10.3390/s24061842. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Chui H.B., Yang K., Zhang L., Wu X.S., Liu Y., Wang A., Li H., Ji M. Tunable Diode Laser Absorption Spectroscopy (TDLAS) Detection Signal Denoising Based on Gabor Transform. Spectrosc. Spectr. Anal. 2016;36:2997–3002. [PubMed] [Google Scholar]
- 29.Tong C., Sima C., Chen M., Zhang X., Li T., Ai Y., Lu P. Laser Linewidth Analysis and Filtering/Fitting Algorithms for Improved TDLAS-Based Optical Gas Sensor. Sensors. 2023;23:5130. doi: 10.3390/s23115130. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Zhao P., Ding D., Li K., Li Y., Jin G. A tunable diode laser absorption spectroscopy (TDLAS) signal denoising method based on LSTM-DAE. Opt. Commun. 2024;567:130327. doi: 10.1016/j.optcom.2024.130327. [DOI] [Google Scholar]
- 31.Lan L., Zhang C., Wang Y., Xie Y., Wang L., Yang C. Long-Tune Natural Logarithmic Wavelength Modulation Spectroscopy for Gas Sensing. Sensors. 2024;24:7365. doi: 10.3390/s24227365. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Yang H., Bu X., Cao Y., Song Y. A methane telemetry sensor based on near-infrared laser absorption spectroscopy. Infrared Phys. Technol. 2021;114:103670. doi: 10.1016/j.infrared.2021.103670. [DOI] [Google Scholar]
- 33.Liang W., Wei G., He A., Shen H. A novel wavelength modulation spectroscopy in TDLAS. Infrared Phys. Technol. 2021;114:103661. doi: 10.1016/j.infrared.2021.103661. [DOI] [Google Scholar]
- 34.Xu L., Li J., Liu N., Zhou S. Quartz crystal tuning fork based 2f/1f wavelength modulation spectroscopy. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2022;267:120608. doi: 10.1016/j.saa.2021.120608. [DOI] [PubMed] [Google Scholar]
- 35.Reid J., Labrie D. Second-harmonic detection with tunable diode lasers—Comparison of experiment and theory. Appl. Phys. B. 1981;26:203–210. doi: 10.1007/BF00692448. [DOI] [Google Scholar]
- 36.Luo L., Li T., Deng J., Zhao R., Wang J. An Improved WMS-2f/1f Spectral Fitting Method Using Orthogonal Test in Initial Parameters Selection. Sensors. 2022;22:7430. doi: 10.3390/s22197430. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Jin W., Zhang H., Hu M., Hu M., Wei Y., Liang J., Kan R., Wang Q. A Robust Optical Sensor for Remote Multi-Species Detection Combining Frequency-Division Multiplexing and Normalized Wavelength Modulation Spectroscopy. Sensors. 2021;21:1073. doi: 10.3390/s21041073. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Schilt S., Thévenaz L., Robert P. Wavelength modulation spectroscopy: Combined frequency and intensity laser modulation. Appl. Opt. 2003;42:6728–6738. doi: 10.1364/AO.42.006728. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The data that support the findings of this study are available on request from the corresponding author. The data are not publicly available due to privacy concerns.























