This article presents a gas sensing method based on long-tune natural logarithmic wavelength modulation spectroscopy (long-tune ln-WMS) and explores means to improve its accuracy. The long-tune spectrum can detect multiple gases with high precision. In ln-WMS, due to the natural logarithm algorithm, the harmonic magnitude which is related to gas concentration would not be affected by the light intensity fluctuations. However, the background signal of the harmonic will become strong and nonlinear in the long-tune spectrum. Three CO2 absorption lines and one H2O line near 2004 nm are applied to verify the proposed theory. The effects of light intensity, modulation depth, gas concentration, and phase shift on the harmonics are tested separately through both simulations and experiments. The results reveal that our proposed method can always keep the harmonics at their maximum which ensures high measurement precision. Moreover, the background signal only varies with the modulation depth, not the concentration and light intensity. Even the mechanical vibrations cannot disturb the harmonics, which enables the proposed method to be suitable for gas detection in harsh environments, especially for heavy dust and severe mechanical vibrations. The CO2 concentration detection results indicate that when the background is eliminated, the accuracy can be achieved with a relative error of below 0.5%, while the error would be greater than 5% with background presence. The proposed long-tune ln-WMS method is effective for trace gas detection (weak absorption) or over-modulation conditions and has potential applications in field inspection.
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.