- Article
The field application environment of TDLAS gas sensors is inherently complex, and the acquired spectral signals are frequently contaminated by interfering backgrounds. Such interferences compromise the measurement accuracy of gas concentration. To address this issue, this paper proposes an approach for gas characteristic spectral line extraction and quantitative analysis based on the hill-climbing algorithm with progressive window expansion. In this approach, the full measurement range of the TDLAS sensor is divided into segments, and the characteristic spectral line parameters corresponding to a known concentration are pre-stored in each segment. The proposed hill-climbing algorithm with progressive window expansion is then employed to estimate the spectral parameters. In the comparative experiments, using the same TDLAS sensor subject to nonlinear laser drift and a contaminated gas cell, the proposed method and the existing traditional method were respectively employed to process the same raw spectral data acquired by the sensor and to detect the same batch of methane gases at different concentrations. Compared with the traditional method, the proposed method improves the fitting correlation coefficient of spectral background prediction from 0.9985 to 0.9997, and enables more accurate gas concentration prediction simultaneously while extracting the gas characteristic absorption lines. The prediction errors of the proposed method for all concentrations fall within the allowable error limits for methane sensors in Chinese coal mines (i.e., absolute error ≤ 0.05% for the 0–1% range, and relative error ≤ 5% of the actual value for the 1–100% range). In the 6 h detection of the 0.05% methane gas sample, according to the statistics, the average detection value of the proposed method is 0.0491%, which is very close to the true detection value of 0.05%, and the detection variance is only 0.0124%. The comparative experimental results show that the proposed method can successfully extract the gas characteristic lines from raw spectral signals contaminated by interfering backgrounds, while achieving accurate concentration prediction, and its concentration prediction error is significantly lower than that of the conventional method. The proposed method enriches the technical arsenal for spectral signal analysis in TDLAS gas sensors, offers a valuable reference for designing spectral analysis strategies when such sensors are deployed in industrial field applications, and contributes, to a certain extent, to enhancing the sensor’s reliability and stability.
10 November 2026


![Schematic illustration of window expansion in the hill-climbing algorithm with progressive window expansion. (a) Fitting window [1:700] and [2150:2849]. (b) Fitting window [1:1100] and [1750:2849]. (c) Fitting window [1:1300] and [1550:2849]. (d) Fitting window covers the full spectrum.](https://mdpi-res.com/photonics/photonics-13-01061/article_deploy/html/images/photonics-13-01061-g001-550.jpg)

![Indirect measurement of the QFI in the p-photon Rabi model. (a) QFI
F
g
t
,
|
Ψ
(
0
)
〉
(in units of
ω
c
−
2
) as a function of t for the target (unknown) state
|
Ψ
a
(
0
)
〉
=
|
n
=
1
〉
⊗
|
g
〉
and for the reference states
|
Ψ
r
(
0
)
〉
=
|
φ
r
(
0
)
〉
⊗
|
g
〉
with
|
φ
r
(
0
)
〉
=
|
α
=
1
〉
,
|
n
=
5
〉
, and
|
α
=
5
〉
; (b) the corresponding change in the atomic energy
Δ
〈
σ
^
z
〉
t
,
|
Ψ
(
0
)
〉
; (c) for each reference state, the ratio
F
g
t
,
|
Ψ
r
(
0
)
〉
/
F
g
t
,
|
Ψ
a
(
0
)
〉
(solid lines, left axis) compared with the ratio
Δ
〈
σ
^
z
〉
t
,
|
Ψ
r
(
0
)
〉
/
Δ
〈
σ
^
z
〉
t
,
|
Ψ
a
(
0
)
〉
(markers, right axis); the two ratios remain close over the whole window, as predicted in the
t
→
0
limit by Equation (26). The inset magnifies the interval
t
∈
[
1.1
,
1.45
]
, where the
|
α
=
5
〉
ratio transiently dips below the
|
n
=
5
〉
ratio. The other parameters are
p
=
1
,
ω
c
=
ω
a
=
1
,
g
=
0.1
,
U
=
γ
=
0.1
, and
N
=
100
; time is measured in units of
1
/
ω
c
.](https://mdpi-res.com/photonics/photonics-13-01059/article_deploy/html/images/photonics-13-01059-g001-550.jpg)




