Next Article in Journal
Performance Characterization of a Plastic Scintillator Sensor for Fast Neutron, Thermal Neutron, and Gamma Ray Discrimination
Previous Article in Journal
Research on Electro-Acoustic Synergistic Partial Discharge Detection Technology for Cable Terminations
Previous Article in Special Issue
Multi-Method Integration for Spectral Band Importance Analysis in Coal Characterization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A UV-DOAS-Based Multi-Scale Interaction Attention Network for Simultaneous Retrieval of NO and NO2 in Gas Mixtures

by
Yuwei Mu
* and
Hua Wen
Purification Equipment Research Institute of CSSC, Handan 056000, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(11), 3461; https://doi.org/10.3390/s26113461
Submission received: 23 April 2026 / Revised: 22 May 2026 / Accepted: 28 May 2026 / Published: 30 May 2026

Abstract

Accurate monitoring of nitrogen oxides (NOx) is essential due to their adverse effects on environmental quality and public health. To address the spectral overlap between NO and NO2 in ultraviolet differential optical absorption spectroscopy (UV-DOAS), we propose a multi-scale dual-branch interaction attention network (MDIAN) for simultaneous concentration retrieval in gas mixtures. The model employs a dual-branch multi-scale convolutional architecture to extract local narrow-band absorption details and broad spectral profile features. A cross-attention mechanism is introduced to enable feature interaction between the NO and NO2 branches. A bidirectional long short-term memory (Bi-LSTM) network is further incorporated to model contextual dependencies along the wavelength dimension, enabling joint regression of both target gases. Experimental results show that the proposed model achieves mean absolute errors (MAE) of 0.076 ppm for NO and 0.062 ppm for NO2, with coefficients of determination (R2) of 0.9998 for both gases, outperforming traditional regression methods and baseline deep learning models. The uncertainties are 0.69% and 0.76%, respectively, and the inference time per sample ranges from 48.9 to 74.5 ms. These results indicate that MDIAN achieves a favorable balance among accuracy, stability, and real-time performance, offering a promising approach for intelligent monitoring of complex gas mixtures using UV-DOAS.

1. Introduction

Nitrogen oxides (NOx) are major atmospheric pollutants mainly generated by the high-temperature combustion of fossil fuels, such as motor vehicle emissions, thermal power generation, industrial boilers, and chemical manufacturing [1,2]. Nitric oxide (NO) is a key precursor to photochemical smog and can contribute to ozone pollution while impairing respiratory health [3]. Nitrogen dioxide (NO2) is a strongly irritating gas, and long-term exposure to it is associated with increased risks of respiratory and cardiovascular diseases [4,5]. Accordingly, the rapid and accurate quantification of NO and NO2 is of great practical importance for environmental quality assessment, emission monitoring, and public health protection [6].
To address this measurement need, ultraviolet differential optical absorption spectroscopy (UV-DOAS) has become a mainstream technique due to its advantages of non-contact measurement, high sensitivity, and real-time in situ monitoring [7,8]. This technique is based on the Beer–Lambert law and retrieves gas concentrations by analyzing the characteristic absorption of molecules in the ultraviolet spectral region [9,10]. However, NO and NO2 exhibit severe spectral overlap in the 200–230 nm ultraviolet range, which introduces significant cross-interference. Therefore, NO and NO2 were selected not only for their environmental relevance. They also provide a representative overlapping gas pair for investigating simultaneous UV-DOAS concentration retrieval under cross-interference. Such overlap makes it difficult for conventional DOAS methods to separate the contributions of the two gases, thereby reducing measurement accuracy. Traditional approaches, such as least squares fitting and multiple linear regression, have been employed to address this issue [11]. However, these linear models have limited ability to handle complex nonlinear interference.
In recent years, the rapid development of deep learning has provided new avenues for spectral analysis [12,13,14]. Convolutional neural networks (CNNs) can automatically extract local spectral features [15,16], while recurrent neural networks (RNNs) and their variants, including long short-term memory (LSTM) and bidirectional LSTM (Bi-LSTM), are well suited for modeling spectral data with sequential characteristics [17,18]. In addition, attention mechanisms enable models to dynamically focus on informative spectral regions, thereby enhancing representation capability [19,20]. In the field of gas detection, increasing efforts have been devoted to integrating deep learning with spectroscopic techniques. For example, Gao et al. developed a UV-DOAS system incorporating a convolutional attention neural network (CANN) for trace-level detection of multiple atmospheric pollutants [21]. Peng et al. proposed a two-stage framework combining Bi-LSTM and attention mechanisms to effectively address spectral separation and concentration estimation in NO–SO2 gas mixtures [22]. Xie et al. further achieved ppb-level detection of NH3, SO2, and NO through multi-dimensional spectral fusion [23]. Despite these advances, existing deep learning approaches still have limitations in multi-scale feature representation, overlap-interference suppression, and the balance between accuracy and real-time performance.
To address the aforementioned challenges, this study proposes a multi-scale dual-branch interaction attention network (MDIAN) for the simultaneous retrieval of NO and NO2 concentrations in UV-DOAS measurements. Its main novelty is the integration of a gas-specific dual-branch multi-scale convolution structure with a cross-attention mechanism to enhance the extraction and discrimination of overlapping absorption features of NO and NO2. The main contributions of this work are summarized as follows:
  • A comprehensive UV-DOAS dataset and preprocessing pipeline are established. Spectral data are collected from single-component NO, single-component NO2, and mixed gases with various concentration combinations. The preprocessing pipeline consists of wavelength-range selection, differential optical absorption processing, Savitzky–Golay filtering, Z-score normalization, and tensor transformation, resulting in standardized training, validation, and test datasets.
  • The MDIAN model is developed with a gas-specific dual-branch multi-scale convolution structure and a cross-attention-based feature interaction mechanism as the main architectural innovations. Bi-LSTM-based wavelength sequence modeling is further incorporated to aggregate contextual information along the spectral dimension. This integrated design helps mitigate spectral overlap interference and improve simultaneous concentration retrieval accuracy.
  • The effectiveness of the proposed model is comprehensively validated through comparative experiments, ablation studies, stability analysis, and real-time performance evaluation. The results demonstrate that MDIAN achieves superior predictive accuracy compared with traditional methods and baseline deep learning models, while satisfying the requirements of real-time industrial monitoring.
The remainder of this paper is organized as follows. Section 2 introduces the experimental setup and dataset construction, including the principles of UV-DOAS, the spectral acquisition system, the data preprocessing pipeline, and dataset partitioning. Section 3 presents the overall architecture of the MDIAN model and the design of its components. Section 4 reports the experimental results and analysis, including model comparisons, ablation studies, stability analysis, and real-time performance evaluation. Finally, Section 5 concludes this work and outlines future research directions.

2. Experimental Setup and Dataset Construction

2.1. Beer–Lambert Law

The Beer–Lambert law is a fundamental principle describing the attenuation of light intensity due to absorption by a medium [24,25], and it serves as the theoretical foundation of ultraviolet differential optical absorption spectroscopy (UV-DOAS) [26,27]. It describes the relationship between the incident and transmitted light as a beam passes through a homogeneous, non-scattering absorbing medium. The law includes two parts: Lambert’s law, which indicates that absorbance is proportional to the optical path length, and Beer’s law, which indicates that absorbance is proportional to the concentration of the absorbing species. The basic principle is shown in Figure 1.
When a collimated monochromatic light beam with wavelength  λ  propagates perpendicularly through a homogeneous gaseous medium, the attenuation of light intensity follows the Beer–Lambert law and can be expressed as:
I ( λ ) = I 0 ( λ ) e x p [ σ ( λ ) c L ]
where  I 0 ( λ )  and  I ( λ )  denote the incident and transmitted light intensities, respectively;  σ ( λ )  is the absorption cross-section of the gas molecules (cm2 molecule−1);  c  is the number density of the gas (molecules cm−3), which can be converted to volume mixing ratio (ppm) under specified thermodynamic conditions; and  L  is the effective optical path length (cm).
In practical applications, the absorption characteristics are commonly described in terms of absorbance  A  and transmittance  T , defined as:
A = l n I 0 ( λ ) I ( λ ) = σ ( λ ) c L
T = I ( λ ) I 0 ( λ ) = e x p [ σ ( λ ) c L ]
The absorbance  A  exhibits a linear relationship with the gas concentration  c , which forms the basis for quantitative analysis using absorption spectroscopy [28]. By measuring the absorbance and combining Equations (1)–(3) with known absorption cross-sections and optical path length, the concentration of the target gas can be directly determined.

2.2. UV-DOAS Technique

However, in practical atmospheric environments and industrial emission monitoring, the ideal conditions assumed by the Beer–Lambert law are rarely fully satisfied. During light propagation, radiation is not only absorbed by target gases but also attenuated by Rayleigh scattering from atmospheric molecules and Mie scattering from aerosols. In addition, the absorption spectra of multiple gas species often overlap, making it difficult to directly distinguish the contribution of each component. Other factors, including light source fluctuations, temperature variations, and detector noise, may further introduce measurement uncertainties. Therefore, the direct application of the Beer–Lambert law to multi-component gas analysis remains limited.
To address these limitations, ultraviolet differential optical absorption spectroscopy (UV-DOAS) has been developed. Its core principle is to separate the total absorption into slowly varying and rapidly varying wavelength-dependent components. By removing the slowly varying component, the differential absorption signal containing characteristic molecular absorption features can be extracted, thereby suppressing scattering effects and background interference [29,30].
In UV-DOAS measurements, the optical density (OD), defined as the absorbance, is first introduced as:
O D ( λ ) = l n I 0 ( λ ) I ( λ )
The optical density includes contributions from both gas absorption and all scattering and attenuation processes [31]. Since Rayleigh and Mie scattering vary slowly with wavelength, and the broadband absorption of certain gases (e.g., oxygen and water vapor) also exhibits slow variation, the optical density can be decomposed into a slowly varying component (ODS) and a differential component (DOD):
O D ( λ ) = O D S ( λ ) + D O D ( λ )
The slowly varying component is typically obtained using low-order polynomial fitting:
O D S ( λ ) = P o l y n o m i a l ( O D ( λ ) )
In practice, third or fourth order polynomials are commonly used to approximate the contributions of scattering and broadband absorption. The DOD is then obtained by subtracting the slowly varying component from the total OD:
D O D ( λ ) = O D ( λ ) O D S ( λ )
The DOD contains only the narrow-band absorption features of the target gases and exhibits a linear relationship with gas concentration:
D O D ( λ ) = L i σ i ( λ )   c i
where  σ i ( λ )  denotes the differential absorption cross-section of the  i -th gas species, and  c i  is its concentration [32]. By fitting the measured DOD to the reference differential absorption cross-sections, the concentrations of multiple gas components can be simultaneously retrieved.

2.3. Spectral Acquisition

The experimental system consists of a computer, an ultraviolet light source (xenon lamp), a dynamic gas dilution system, a spectrometer (M2-UV3, spectral resolution: 0.173 nm, Mooncell, Shenzhen, China), an absorption cell (optical path length: 12 m), standard gas cylinders, and an exhaust gas treatment unit [33,34]. In this study, high-purity N2 (99.999%), standard NO (50 ppm), and standard NO2 (50 ppm) were used. The target gas mixtures were generated by diluting these standard gases using a three-channel high-precision dynamic gas dilution system. The experimental setup is illustrated in Figure 2. The dynamic gas dilution system, equipped with mass flow controllers (accuracy: ±1% F.S.), was calibrated by a nationally certified institution to ensure high precision and traceability of gas flow control. All standard gases were stored in high-pressure cylinders, each accompanied by an individual certificate of analysis (CoA), which provides detailed information on gas composition and associated uncertainties.
Before each measurement, high-purity nitrogen (N2) was introduced at a flow rate of 500 mL min−1 for 5 min to purge the gas lines and eliminate residual gases. During formal measurements, the prepared gas mixtures were introduced into the absorption cell at a flow rate of 500 mL min−1 with a stabilization time of 3 min. The light emitted from the source was transmitted to the absorption cell via an optical fiber and formed an effective optical path length of 12 m through a White-type multiple-reflection configuration. The spectrometer then acquired the spectral signals, which were continuously recorded by the host computer. The wavelength range of 200–497 nm was selected for preprocessing and model input. This range, which is compatible with the xenon lamp and M2-UV3 spectrometer, captures the main UV absorption cross-sections of NO and NO2. A narrower range would omit useful features, while a broader range would introduce noise and increase computational cost. The spectra were processed directly using the original wavelength sampling points of the M2-UV3 spectrometer within the selected wavelength range of 200–497 nm. To ensure a stable measurement environment, the temperature inside the gas absorption cell was maintained at 50 °C using a proportional–integral–derivative (PID) controller, while the internal temperature of the spectrometer was stabilized at 45 °C. This configuration effectively minimizes the influence of ambient temperature fluctuations on absorption cross-sections and baseline drift. During the experiments, all gas lines were made of polytetrafluoroethylene (PTFE) with an inner diameter of 1/4 inch, and the gas system was maintained at atmospheric pressure.
To ensure the diversity and representativeness of the dataset, the concentration configurations covered the concentration range of 1 to 20 ppm [35]. First, single-component gases of NO and NO2 were prepared with concentrations ranging from 1 to 20 ppm. The concentrations were tested sequentially from low to high with a step size of 1 ppm. For each concentration level, 500 spectra were collected for NO and 500 spectra for NO2, resulting in a total of 20,000 single-gas spectral samples. Subsequently, 40 mixed-gas concentration combinations were prepared within the concentration range of 1–20 ppm for both NO and NO2. The mixed-gas dataset consisted of two subsets: an equal-concentration series, where the concentrations of NO and NO2 were both increased from 1 to 20 ppm, and an inverse-gradient series, where the NO concentration increased from 1 to 20 ppm while the NO2 concentration decreased from 20 to 1 ppm. This design covers both balanced mixtures and ratio-varying mixtures, enabling the evaluation of the model under different spectral-overlap and cross-interference conditions. The detailed concentration combinations are listed in Table 1. For each concentration combination, 500 spectra were acquired, yielding a total of 20,000 mixed-gas spectral samples. In addition, to obtain a stable reference light intensity  I 0 ( λ ) , 500 spectra of high-purity nitrogen (N2) were recorded under identical experimental conditions. The average of these spectra was taken as the reference spectrum, which was used for subsequent DOD calculation. The composition of the spectral dataset used in this study is summarized in Table 2, with a total of 40,500 raw spectral samples collected.

2.4. Data Preprocessing

To improve the consistency of the input spectra and enhance the stability of model training, the collected raw ultraviolet spectra were subjected to a unified preprocessing procedure [36], including differential optical absorption processing, Savitzky–Golay filtering, Z-score normalization, and tensor transformation, as illustrated in Figure 3. Through this pipeline, the raw intensity signals were transformed into standardized differential features suitable for deep learning-based modeling.
First, the spectra were subjected to differential processing based on the DOAS principle. Specifically, according to Equations (4)–(8), the raw transmission spectra were first transformed into the optical density domain, after which the slowly varying background components with respect to wavelength were removed. In this study, a third-order polynomial was used to fit the slowly varying component of the OD spectrum for ODS extraction, because it provides sufficient flexibility to describe the smooth baseline variation while avoiding excessive fitting of narrow-band absorption features. This process yields differential absorption signals that retain only the narrow-band absorption features. In this study, the DOD spectra obtained after differential optical absorption processing were used as the basis for the final model input, rather than the raw intensity spectra or the original OD spectra. The DOAS differential processing results for NO, NO2, and their mixtures are presented in Figure 4. As shown, the differential processing effectively suppresses broadband scattering, baseline drift, and other slowly varying background contributions, thereby enhancing the fine spectral structures associated with molecular absorption of the target gases.
After differential processing, Savitzky–Golay filtering was applied to smooth the spectra, aiming to suppress high-frequency random noise and improve the signal-to-noise ratio and stability of the input signals [37]. The filter parameters were set as a window length of  ω = 15  and a polynomial order of  p = 3 . Considering the spectral resolution of 0.173 nm, the 15-point window corresponds to an approximately 2.6 nm smoothing interval. This setting provides a balance between noise suppression and feature preservation. A smaller window may retain excessive random noise, whereas a larger window may smooth out useful narrow-band absorption features. The third-order polynomial was used to preserve local spectral curvature while avoiding excessive fitting of random noise. A comparison of the spectra before and after filtering is shown in Figure 5, demonstrating that this parameter configuration effectively reduces noise while preserving the peak positions, bandwidths, and local variation trends of the spectral features.
On this basis, sample-wise Z-score normalization was applied to each DOD spectrum, where the mean and standard deviation were calculated from the wavelength points of the individual spectrum itself. This step did not use global statistics from the full dataset or information from the validation or test sets, thereby avoiding data leakage during normalization. It was used to mitigate the adverse effects of variations in overall signal amplitude across different samples on model training. This step ensures that all samples are brought to a comparable numerical scale, thereby improving the convergence stability during network training. Moreover, it encourages the model to focus on spectral shape variations and internal structural differences, rather than relying on absolute intensity levels.
After the above preprocessing procedures, the processed spectra were organized into input tensors with a unified format and paired with the corresponding NO and NO2 concentration labels. The comparative evaluation was conducted using the dataset partitioning strategy described in Section 2.5. In addition, to further examine the possible influence of repeated spectra measured under the same concentration condition, a concentration-condition-level grouped five-fold cross-validation strategy was introduced as an additional evaluation.

2.5. Dataset Partitioning

To train and evaluate the proposed MDIAN model, the collected spectral dataset was appropriately partitioned into training, validation, and test sets. A well-designed partitioning strategy is essential for ensuring the generalization capability of the model: the training set is used for parameter learning and optimization; the validation set is used for hyperparameter tuning, model selection, and implementation of the early-stopping strategy; and the test set, which consists of entirely unseen data, is used for the final objective evaluation of model performance.
The dataset partitioning followed the principles below. First, random shuffling was applied to promote an approximately independent and identically distributed split of samples and to minimize potential systematic bias introduced by the acquisition order or batch effects. Second, a stratified sampling strategy was adopted to ensure that the training, validation, and test sets each contained samples of single-component NO, single-component NO2, and mixed gases, while preserving the concentration distribution of the original dataset. As shown in Figure 6, the training, validation, and test sets were divided at a ratio of 7:1.5:1.5. This partitioning scheme ensures sufficient training data while retaining adequate validation and test samples for reliable model selection and performance evaluation.
To further examine whether the model performance was affected by repeated spectra measured under the same concentration condition, an additional concentration-condition-level grouped five-fold cross-validation was performed. In this evaluation, each supervised concentration condition was treated as one independent group. The supervised dataset contained 80 concentration conditions, including 20 NO-only conditions, 20 NO2-only conditions, and 40 mixture conditions. The 500 repeated spectra measured under the same concentration condition were assigned to the same fold and were never split across the training and test sets.
The 80 concentration-condition groups were divided into five folds. Each fold contained 16 groups. To ensure that each fold was representative, the grouping was performed in a stratified and balanced manner. Specifically, each fold contained four NO-only conditions, four NO2-only conditions, four equal-concentration mixture conditions, and four inverse-gradient mixture conditions.
Within each category, the concentration levels were selected as uniformly as possible across the 1–20 ppm range. This design avoided concentrating low-, medium-, or high-concentration conditions in a single fold. In each cross-validation run, four folds were used for model training, and the remaining fold was used as the test set. This process was repeated five times. Therefore, each fold was used once as the test set. When a validation set was required for model selection or early stopping, it was selected only from the training-side concentration groups, and the held-out test fold was not used during training, validation, or hyperparameter selection.
Therefore, all spectra in the test subset came from concentration conditions that were not included in the corresponding training subset. This grouped evaluation was used as an additional validation. It assessed the generalization capability of the proposed model to unseen concentration conditions.

3. Model Architecture

3.1. Overall Architecture of MDIAN

A multi-scale dual-branch interaction attention network (MDIAN) is proposed for the simultaneous retrieval of NO and NO2 concentrations in gas mixtures. The model is designed to address spectral overlap and nonlinear cross-interference in UV-DOAS measurements, which are difficult for traditional linear methods to handle. The overall architecture of the network is illustrated in Figure 7. The model takes the normalized DOD spectra, after Savitzky–Golay filtering and Z-score normalization, as input and outputs the concentrations of the two target gases. The overall processing pipeline consists of dual-branch convolutional feature extraction, cross-attention fusion, Bi-LSTM-based temporal aggregation, and fully connected regression output.
After tensor reshaping, the input spectra are processed by two convolutional branches with different kernel sizes, followed by bidirectional cross-attention, Bi-LSTM aggregation, and linear regression. The detailed design of these components is described in Section 3.2, Section 3.3 and Section 3.4.
Overall, this structure provides discriminative spectral representations for concentration retrieval in overlapping gas mixtures.

3.2. Dual-Branch Feature Extraction Module

The dual-branch feature extraction module is designed to capture scale-specific absorption features from the same input spectrum. Based on the DOD spectra, NO shows richer local narrow-band structures, whereas NO2 exhibits broader spectral profiles. Therefore, small kernels are used in the NO branch and larger kernels in the NO2 branch to learn complementary spectral features for subsequent fusion and concentration regression.
In implementation, the input spectra are first reshaped from  batch length 1  to  batch 1 length . Subsequently, the NO branch consists of two successive Conv1D layers followed by ReLU activations, with kernel sizes of 3 for both layers. The number of channels is increased from 1 to 32, and then from 32 to 64. Similarly, the NO2 branch is composed of two Conv1D layers with ReLU activations, but with kernel sizes of 15 for both layers, while following the same channel expansion strategy as the NO branch. Both branches employ symmetric padding to preserve the sequence length, resulting in feature representations of size  batch 64 length .
No pooling operation is used during convolutional feature extraction. Instead, sequence-length-preserving convolution is adopted for feature encoding. This design helps retain narrow-band absorption features and wavelength-position information for subsequent cross-attention and Bi-LSTM modeling.

3.3. Cross-Attention Fusion Module

To enhance the model’s ability to represent inter-species differences within overlapping absorption regions, a bidirectional cross-attention mechanism is introduced after the dual-branch convolutional encoding stage [38]. First, the feature tensors of the two branches are transposed from  batch 64 length  to  batch length 64 , such that each wavelength position corresponds to a 64-dimensional feature vector. Subsequently, linear projections are applied to generate the Query, Key, and Value representations, followed by bidirectional feature interaction.
Specifically, when updating the NO branch, the NO features are used as the Query, while the NO2 features serve as the Key and Value. Conversely, when updating the NO2 branch, the same procedure is performed in the opposite direction. The cross-attention is computed using the scaled dot-product form:
Z N O N O 2 = s o f t m a x Q N O K N O 2 T d k V N O 2
where  Z  denotes the attention-enhanced feature representation,  Q K , and  V  represent the Query, Key, and Value, respectively, and  d k  is the dimensionality of the key vectors. The attention output is then added to the original branch features through a residual connection. This allows complementary information from the other branch to be incorporated while preserving the original convolutional features.
Unlike simple concatenation or element-wise addition, cross-attention adaptively performs information exchange according to feature correlations. As a result, each branch can reference the response patterns of the other branch at adjacent or corresponding wavelength positions while modeling its own spectral features.

3.4. Temporal Feature Aggregation and Regression Output

After cross-attention updating, the features from the two branches are concatenated along the feature dimension, forming a fused representation of size  batch length 128 . This representation contains both multi-scale convolutional features and cross-branch interaction information. A bidirectional long short-term memory (Bi-LSTM) network is then introduced for temporal aggregation while preserving the wavelength order.
In implementation, the input dimension of the Bi-LSTM is 128, with a hidden dimension of 128 and a network depth of two layers. A bidirectional structure is adopted, resulting in an output of size  batch length 256 . Subsequently, the output at the final time step is taken as the sequence-level global representation and fed into a linear layer,  Linear ( 256 2 ) , to simultaneously predict the concentrations of NO and NO2.
The adoption of Bi-LSTM is motivated by the fact that UV-DOAS spectra are inherently one-dimensional sequences ordered by wavelength, in which strong continuity and contextual dependencies exist across different wavelength points. Compared with simple global averaging, Bi-LSTM more effectively preserves the sequential structure and captures long-range wavelength dependencies.

3.5. Evaluation Metrics

In this study, the mean squared error (MSE) was employed as the loss function for the regression task, while the mean absolute error (MAE), coefficient of determination ( R 2 ), and root mean squared error (RMSE) were used as evaluation metrics [39,40]. Among them, MSE and RMSE are more sensitive to large deviations, whereas MAE reflects the average magnitude of absolute prediction errors. Smaller values of these metrics indicate closer agreement between the predicted and true values. In contrast,  R 2  is used to evaluate the goodness of fit of the model, with values closer to 1 indicating better fitting performance. Their mathematical expressions are listed in Table 3.

4. Results and Analysis

4.1. Comparative Model Evaluation

To validate the effectiveness of the proposed MDIAN model for the simultaneous retrieval of NO and NO2 concentrations in gas mixtures, a standard DOAS least-squares method (LSM), support vector regression (SVR), convolutional neural networks (CNN), long short-term memory networks (LSTM), and a combined CNN + LSTM model were selected for comparison. LSM was introduced as the conventional spectroscopy baseline, while SVR was retained as a representative machine-learning baseline. All models were evaluated under the same dataset partitioning scheme and evaluation metric framework to ensure a fair comparison.
As shown in Table 4, the retrieval accuracy of NO and NO2 exhibits a consistent improvement trend as the methods evolve from the conventional DOAS least-squares method to machine-learning and deep-learning approaches. As the standard spectroscopy baseline, LSM provides a physically interpretable concentration retrieval method based on least-squares fitting. However, it produces the largest prediction errors and the lowest R2 values among all compared methods, indicating that the conventional linear fitting framework has limited capability in handling severe spectral overlap and cross-interference between NO and NO2. By introducing kernel mapping, SVR enhances nonlinear modeling capability and thus outperforms LSM overall. CNN is effective in extracting local spectral features, while LSTM captures contextual dependencies along the wavelength dimension. The combined CNN + LSTM model leverages the strengths of both, leading to further improvements in prediction accuracy. In contrast, the proposed MDIAN model integrates multi-scale dual-branch convolution, cross-attention fusion, and Bi-LSTM-based wavelength sequence modeling in a unified framework. This enables simultaneous extraction of narrow-band absorption details, broad spectral profile information, and inter-species coupling features. Compared with the best-performing deep learning comparison model (CNN + LSTM), MDIAN achieves additional reductions in MAE of 42.9% for NO and 38.6% for NO2, demonstrating superior discriminative capability and higher regression accuracy under complex overlapping spectral conditions.
A more detailed view is provided by the full-scale error distributions in Figure 8. Although the errors of all comparative models are already maintained at relatively low levels for most samples, a small number of outliers with comparatively large errors can still be observed. By contrast, the error distribution of MDIAN is more concentrated and exhibits smaller overall fluctuations, indicating that it not only achieves higher average prediction accuracy but also provides better stability and robustness.
To further address the possible influence of repeated spectra under the same concentration condition, a concentration-condition-level grouped five-fold cross-validation was conducted. The results are shown in Table 5. In this evaluation, all 500 repeated spectra from the same concentration condition were kept in the same fold. Therefore, the spectra in each test fold came from concentration conditions that were not included in the corresponding training folds. The proposed MDIAN achieved stable performance across the five grouped folds. For NO retrieval, the MAE values ranged from 0.072 to 0.079 ppm, and the R2 values ranged from 0.9997 to 0.9998. For NO2 retrieval, the MAE values ranged from 0.061 to 0.067 ppm, and the R2 values ranged from 0.9997 to 0.9998.
These results are highly consistent with those obtained using the original dataset partitioning strategy. More importantly, the grouped evaluation avoided the situation in which repeated spectra from the same concentration condition appeared in both the training and test sets. Therefore, the high prediction accuracy of MDIAN was not mainly caused by near-duplicate spectra shared between the training and test sets. Instead, the results indicate that the proposed model learned concentration-related differential absorption features and showed good generalization capability to unseen concentration conditions within the investigated concentration range.
It should be noted that this grouped cross-validation also evaluated the model on concentration combinations that were not included in the corresponding training folds. In particular, each test fold contained unseen equal-concentration and inverse-gradient mixed-gas combinations. Therefore, the additional grouped evaluation further examined the ability of MDIAN to generalize to mixed-gas concentration pairs outside the training subset.

4.2. Ablation Study

To systematically evaluate the contributions of each core component in MDIAN, we designed five groups of progressively cumulative ablation experiments. The configurations of these models are summarized in Table 6, and all variants were trained under the same training strategy and hyperparameter settings to ensure a fair comparison. To avoid ambiguity, the attention module in Improve_2 refers to self-attention applied within the single-branch spectral feature representation. It is used to enhance the weighting of informative wavelength regions under the single-branch setting. In contrast, the interaction attention module in Improve_3 refers to bidirectional cross-attention between the two branches. It enables feature interaction between the NO-related and NO2-related branches and is different from the self-attention used in Improve_2. The ablation results are presented in Figure 9. The Base model, which consists only of a single-branch convolutional module followed by a fully connected layer, exhibits the largest prediction errors, indicating that relying solely on single-branch convolution is insufficient to fully characterize the complex overlapping information in differential spectra of gas mixtures. After introducing Bi-LSTM, the MAE of Improve_1 shows a significant reduction compared with the Base model (with decreases of 48.7% for NO and 49.8% for NO2), demonstrating that contextual dependencies along the wavelength dimension play a critical role in concentration retrieval. With the further incorporation of an attention mechanism, Improve_2 achieves additional error reduction, suggesting that adaptive weighting of key spectral regions enhances the model’s ability to extract informative absorption features. Under the single-branch setting, to isolate and evaluate the contribution of the attention mechanism itself, a self-attention module is introduced as a replacement for comparative analysis.
When the model is extended from a single-branch to a dual-branch architecture with the incorporation of cross-attention, the performance of Improve_3 is further enhanced. This indicates that explicitly separating features from different branches and enabling cross-branch information exchange can more effectively mitigate spectral coupling interference between NO and NO2. Building upon Improve_3, the full MDIAN model further integrates multi-scale convolutional design, where small convolutional kernels are employed in the NO branch and larger kernels in the NO2 branch, enabling differentiated multi-scale feature extraction. Experimental results show that the complete MDIAN achieves the lowest MAE for both NO and NO2 (0.076 ppm for NO and 0.062 ppm for NO2). This demonstrates that small convolutional kernels are more effective in capturing local narrow-band absorption details, while larger kernels are better suited for modeling broad spectral profile characteristics. The complementary combination of the two further enhances the model’s capability to represent complex overlapping spectra.
The ablation study was designed in a progressively cumulative manner. This design allows the contribution of each main component to be evaluated step by step under a consistent experimental framework. Compared with isolated and non-cumulative variants, the progressive setting provides a clearer view of how the model performance changes when key modules are sequentially introduced. It also avoids excessive structural changes between adjacent variants, making the performance differences easier to interpret. The consistent performance improvement observed across the ablation variants demonstrates the effectiveness and necessity of the main modules in the proposed architecture.

4.3. Stability Analysis

In addition to prediction accuracy, the practical applicability of the model in real detection scenarios also depends on the stability and sensitivity of its outputs. To this end, the uncertainty  A  and detection limit  D L  were adopted to further evaluate the MDIAN model. Their definitions are given in Equations (10) and (11):
A = i = 1 n ( S i S ) 2 n ( n 1 )
D L = K i δ 0 C / S
where  S i  denotes the concentration value predicted in the  i -th repeated measurement (ppm),  S  denotes the average value of the repeated measurement results (ppm), and  n  is the number of repeated measurements. In this study,  n = 50 K i  is the dimensionless confidence factor and was set to 3. This expression is equivalent to the standard 3 σ /sensitivity convention, where the sensitivity is estimated as  S / C C  is the standard concentration of the target gas (ppm), which was 10 ppm for both NO and NO2 in the repeated measurement experiment.  δ 0  denotes the standard deviation of the repeated measurement results (ppm) and was calculated from the 50 consecutive predicted concentrations for each gas. Specifically, for each target gas, the 50 predicted concentrations were first used to calculate  S , and the corresponding standard deviation was then taken as  δ 0 . The uncertainty and detection limit were calculated separately for NO and NO2, and the detection limit is expressed in ppm.
A mixed gas containing 10 ppm NO and 10 ppm NO2 was measured in 50 consecutive trials, and the results are presented in Figure 10. For NO detection, the uncertainty  A  and detection limit  D L  were 0.69% and 0.15 ppm; for NO2, the corresponding values were 0.76% and 0.16 ppm. It should be noted that these detection limits were statistically estimated from repeated measurements at 10 ppm and represent the estimated sensitivity of the system under the current experimental conditions. In the present study, the experimental validation was conducted within the concentration range of 1–20 ppm, while sub-ppm measurements were beyond the scope of the current experimental design. The uncertainty  A  for both gases is below 1%, indicating that the model output exhibits minimal fluctuations and thus demonstrates good repeatability and stability. In terms of the detection limit  D L , both NO and NO2 remain at relatively low levels, with a difference of only 0.01 ppm. These results suggest that MDIAN exhibits good repeatability and estimated sensitivity for the simultaneous retrieval of NO and NO2 under the current experimental conditions.
To further evaluate the repeatability and estimated sensitivity of MDIAN across different concentration levels, four equal-concentration NO/NO2 mixtures were tested. The selected concentration levels were 1, 5, 10, and 20 ppm for both NO and NO2, representing near-zero, low, medium and high concentration levels within the investigated 1–20 ppm range. For each concentration level, 50 consecutive repeated measurements were performed.
The results are summarized in Table 7. For the 1 ppm NO/NO2 mixture, the uncertainty and detection limit were slightly higher than those obtained at higher concentrations. Specifically, the uncertainty values were 0.87% for NO and 0.95% for NO2, while the detection limits were 0.24 ppm and 0.27 ppm, respectively. This is reasonable because the absorption signal is weaker at the near-zero/low-concentration level, making the relative influence of prediction fluctuation more pronounced. As the concentration increased to 5, 10, and 20 ppm, both uncertainty and detection-limit values became more stable. For these three concentration levels, the uncertainty values remained below 0.80%, and the detection limits were approximately 0.15–0.16 ppm for both gases.
These results indicate that MDIAN maintains good repeatability across the investigated 1–20 ppm range. The slightly larger uncertainty and detection limit at 1 ppm reflect the expected behavior of low-concentration spectral retrieval, where weaker absorption signals lead to relatively larger fluctuations. Overall, the model shows stable uncertainty and detection-limit performance under low, medium, and high concentration conditions.

4.4. Real-Time Performance Analysis

To evaluate the real-time performance of the proposed MDIAN model in practical application scenarios, its inference speed was systematically assessed. In this study, the model was implemented in Python 3.13 and executed on a system equipped with an AMD Ryzen 9 8945H processor and an NVIDIA RTX 4060 GPU with CUDA acceleration. Figure 11 presents the model-side inference time statistics for 200 spectral samples randomly selected from the test set. Each sample was processed independently with a batch size of 1, and the forward-pass time from the preprocessed spectral tensor input to the NO/NO2 concentration output was recorded. The results show that the maximum inference time is 74.5 ms, while the minimum is 48.9 ms. These results indicate that the proposed method demonstrates strong real-time performance and can satisfy the requirements of real-time monitoring in practical industrial scenarios.

5. Conclusions

To address the spectral overlap and nonlinear cross-interference between NO and NO2 in UV-DOAS measurements, this study proposed MDIAN for simultaneous concentration retrieval in gas mixtures. A UV-DOAS experimental system and preprocessing pipeline were established to obtain normalized DOD spectra from single-component and mixed-gas samples. The proposed model combines gas-specific dual-branch convolution, cross-attention interaction, and Bi-LSTM-based wavelength-sequence aggregation to improve the representation of overlapping absorption features.
Experimental results show that MDIAN achieves the best performance among all compared models. The MAE values for NO and NO2 are 0.076 ppm and 0.062 ppm, respectively, and the corresponding R2 values reach 0.9998 for both gases. Ablation experiments confirm the contribution of the key modules, while stability and real-time tests demonstrate good repeatability and inference efficiency under the current experimental conditions.
In summary, the proposed MDIAN model effectively addresses the challenges of spectral overlap and nonlinear cross-interference in UV-DOAS-based concentration retrieval of gas mixtures, and demonstrates strong performance in terms of accuracy, stability, sensitivity, and real-time capability. Nevertheless, the present study was conducted using a controlled laboratory dataset, and field validation under more variable environmental and industrial conditions has not yet been performed. Although random shuffling, stratified sampling and cross-validation were adopted for model evaluation, independent external datasets are still needed to further assess the model’s generalization capability. Future work may focus on incorporating multi-component gas datasets under more complex operating conditions. Other gases with characteristic ultraviolet absorption features, such as SO2 and NH3, may also be included. This would help further investigate the model’s generalization ability and its performance in practical field applications.

Author Contributions

Conceptualization, Y.M.; methodology, Y.M.; software, Y.M.; validation, Y.M.; formal analysis, Y.M.; investigation, Y.M.; resources, Y.M.; data curation, Y.M.; writing—original draft preparation, Y.M.; writing—review and editing, H.W.; visualization, Y.M.; supervision, H.W.; project administration, H.W.; funding acquisition, H.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data supporting this study’s findings are available from the corresponding author upon reasonable request.

Acknowledgments

The authors gratefully acknowledge the Purification Equipment Research Institute of CSSC for providing equipment and venue support.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Richter, A.; Burrows, J.; Nüss, H.; Granier, C.; Niemeier, U. Increase in tropospheric nitrogen dioxide over China observed from space. Nature 2005, 437, 129–132. [Google Scholar] [CrossRef]
  2. Kashtan, Y.; Nicholson, M.; Finnegan, C.; Ouyang, Z.; Garg, A.; Lebel, E.; Rowland, S.; Michanowicz, D.; Jackson, R. Nitrogen dioxide exposure, health outcomes, and associated demographic disparities due to gas and propane combustion by US stoves. Sci. Adv. 2024, 10, eadm8680. [Google Scholar] [CrossRef]
  3. Atkinson, R. Atmospheric chemistry of VOCs and NOx. Atmos. Environ. 2000, 34, 2063–2101. [Google Scholar] [CrossRef]
  4. Xia, X.; Meng, X.; Liu, C.; Guo, Y.; Li, X.; Niu, Y.; Lam, K.; Wright, N. Associations of long-term nitrogen dioxide exposure with wide spectrum of diseases: A prospective cohort study of 0.5 million Chinese adults. Lancet Public Health 2024, 9, e1047–e1058. [Google Scholar] [CrossRef] [PubMed]
  5. Hesterberg, T.; Bunn, W.; McClellan, R.; Hamade, A.; Long, C.; Valberg, P. Critical review of the human data on short-term nitrogen dioxide (NO2) exposures: Evidence for NO2 no-effect levels. Crit. Rev. Toxicol. 2009, 39, 743–781. [Google Scholar] [CrossRef] [PubMed]
  6. Kwoka, M.; Szuber, J. Studies of NO2 Gas-Sensing Characteristics of a Novel Room-Temperature Surface-Photovoltage Gas Sensor Device. Sensors 2020, 20, 408. [Google Scholar] [CrossRef]
  7. Clemitshaw, K. A review of instrumentation and measurement techniques for ground-based and airborne field studies of gas-phase tropospheric chemistry. Crit. Rev. Environ. Sci. Technol. 2004, 34, 1–108. [Google Scholar] [CrossRef]
  8. Kern, C. Ultraviolet and visible remote sensing of volcanic gas emissions. J. Volcanol. Geotherm. Res. 2025, 468, 108423. [Google Scholar] [CrossRef]
  9. Mellqvist, J.; Rosen, A. DOAS for flue gas monitoring—I. Temperature effects in the UV/visible absorption spectra of NO, NO2, SO2 and NH3. J. Quant. Spectrosc. Radiat. Transf. 1996, 56, 187–208. [Google Scholar] [CrossRef]
  10. Mellqvist, J.; Rosen, A. DOAS for flue gas monitoring—II. Deviations from the Beer-Lambert law for the UV/visible absorption spectra of NO, NO2, SO2 and NH3. J. Quant. Spectrosc. Radiat. Transf. 1996, 56, 209–224. [Google Scholar] [CrossRef]
  11. Stutz, J.; Platt, U. Numerical analysis and estimation of the statistical error of differential optical absorption spectroscopy measurements with least-squares methods. Appl. Opt. 1996, 35, 6041–6053. [Google Scholar] [CrossRef]
  12. Zhu, Y.; Wang, M.; Yin, X.; Zhang, J.; Meijering, E.; Hu, J. Deep Learning in Diverse Intelligent Sensor Based Systems. Sensors 2023, 23, 62. [Google Scholar] [CrossRef]
  13. Yang, Y.; Xi, M.; Dai, H.; Wen, J.; Yang, J. Z-Score Experience Replay in Off-Policy Deep Reinforcement Learning. Sensors 2024, 24, 7746. [Google Scholar] [CrossRef]
  14. Guo, Y.; Sun, X.; Li, L.; Shi, Y.; Cheng, W.; Pan, L. Deep-Learning-Based Analysis of Electronic Skin Sensing Data. Sensors 2025, 25, 1615. [Google Scholar] [CrossRef]
  15. Sy, M.; Aamir, S.; Farooq, A. Multi-component gas sensing via spectral feature engineering. Sens. Actuators B Chem. 2025, 430, 137285. [Google Scholar] [CrossRef]
  16. Zhou, W.; Shi, J.; Wang, D.; Li, Y.; Lv, Y.; Li, D.; Tian, B.; Meng, L.; Zhao, X. Ambient noise filtering in methane laser absorption spectroscopy detection using fully connected neural networks. Infrared Phys. Technol. 2026, 152, 106207. [Google Scholar] [CrossRef]
  17. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  18. Peng, B.; Tang, Z.; Xian, S.; Guo, Y.; Gao, C. Application of bi-directional long short-term memory in separating NO and SO2 ultraviolet differential absorption spectrum signals. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2024, 315, 124267. [Google Scholar] [CrossRef] [PubMed]
  19. Xu, T.; Xu, L.; Sun, Y.; Liu, W.; Liu, J. Robust Identification of Gas Mixtures from FTIR Spectra using Attention Mechanism to Mitigate Instrument Line Shape Variations. Anal. Chem. 2025, 97, 23312–23320. [Google Scholar] [CrossRef] [PubMed]
  20. Zhang, Y.; Xu, L.; Huang, C.; Wu, H. Qualitative identification of passive Fourier transform infrared spectra via an attention mechanism based deep learning approach. Opt. Express 2024, 32, 48406–48420. [Google Scholar] [CrossRef]
  21. Gao, J.; Zhang, X.; Zhu, R.; Li, M.; Li, C.; Xie, F.; Zhang, Y.; Zhang, Y.; Fu, B. An online trace gas detection system for multi-component atmospheric pollutants based on ultraviolet differential optical absorption spectroscopy combined with convolutional attention neural network. Sens. Actuators B Chem. 2025, 441, 138057. [Google Scholar] [CrossRef]
  22. Peng, B.; Liu, H.; Zhang, A.; Zheng, L.; Deng, Q.; Zhu, M.; Liao, N.; Tang, Z.; Tao, Y. Study on two-stage concentration detection algorithm based on UV-DOAS: For mixed gas of NO and SO2. J. Mol. Spectrosc. 2025, 413, 112057. [Google Scholar] [CrossRef]
  23. Xie, F.; Wu, Y.; Gao, J.; Li, M.; Zhu, R.; Wu, X.; Zhang, Y. Detection of ultra-low concentration NH3, SO2, and NO using UV-DOAS combined with multidimensional spectral fusion. Fuel 2024, 378, 132965. [Google Scholar] [CrossRef]
  24. Calloway, D. Beer-Lambert law. J. Chem. Educ. 1997, 74, 744. [Google Scholar] [CrossRef]
  25. Oshina, I.; Spigulis, J. Beer-Lambert law for optical tissue diagnostics: Current state of the art and the main limitations. J. Biomed. Opt. 2021, 26, 100901. [Google Scholar] [CrossRef]
  26. Pukite, J.; Kühl, S.; Deutschmann, T.; Platt, U.; Wagner, T. Extending differential optical absorption spectroscopy for limb measurements in the UV. Atmos. Meas. Tech. 2010, 3, 631–653. [Google Scholar] [CrossRef]
  27. Allen, H.; Brauers, T.; FinlaysonPitts, B. Illustration deviations in the Beer-Lambert law in an instrumental analysis laboratory: Measuring atmospheric pollutants by differential optical absorption spectrometry. J. Chem. Educ. 1997, 74, 1459–1462. [Google Scholar] [CrossRef]
  28. Wang, L.; Zhang, Y.; Zhou, X.; Qin, F.; Zhang, Z. Optical sulfur dioxide sensor based on broadband absorption spectroscopy in the wavelength range of 198–222 nm. Sens. Actuators B Chem. 2017, 241, 146–150. [Google Scholar] [CrossRef]
  29. Van Roozendael, M.; Hendrick, F.; Friedrich, M.; Fayt, C.; Bais, A.; Beirle, S.; Bösch, T.; Comas, M. Fiducial Reference Measurements for Air Quality Monitoring Using Ground-Based MAX-DOAS Instruments (FRM4DOAS). Remote Sens. 2024, 16, 4523. [Google Scholar] [CrossRef]
  30. Peng, B.; Guo, Y. Ultrasensitive NO Monitoring System Based on Fourier Transform Ultraviolet Differential Optical Absorption Spectrum. IEEE Trans. Instrum. Meas. 2024, 73, 9515308. [Google Scholar] [CrossRef]
  31. Hartl, A.; Wenig, M. Regularisation model study for the least-squares retrieval of aerosol extinction time series from UV/VIS MAX-DOAS observations for a ground layer profile parameterisation. Atmos. Meas. Tech. 2013, 6, 1959–1980. [Google Scholar] [CrossRef]
  32. Du, S.; Zhu, R.; Gao, J.; Li, M.; Xie, F.; Zhang, Y. Adversarial unpaired disentanglement network (AUDNet): Precise analysis of severely overlapping CS2/SO2 signals in UV-DOAS. Spectrochim. Acta A Mol. Biomol. Spectrosc. 2026, 349, 127268. [Google Scholar] [CrossRef]
  33. Le, Q.; Nguyen, T.; Nguyen, D.; Doan, K.; Vu, B.; Ngoc, A.; Pham, M.; Sarukura, N. Development of an ultrawide-band modeless Ce:LiCAF ultraviolet laser for SO2 detection using differential optical absorption spectroscopy. Opt. Commun. 2025, 594, 132323. [Google Scholar] [CrossRef]
  34. Li, M.; Gao, J.; Xie, F.; Dong, X.; Li, W.; Zhang, Y.; Zhang, Y. An easy-to-maintain optical gas temperature sensing system based on the regional temperature effect of UV-DOAS. Opt. Laser Technol. 2026, 193, 114303. [Google Scholar] [CrossRef]
  35. Yang, Y.; Wang, J.; Zhang, Z.; Lin, G. Study on the concentration retrieval of SO2 and NO2 in mixed gases based on the improved DOAS method. RSC Adv. 2023, 13, 19149–19157. [Google Scholar] [CrossRef]
  36. Sun, Y.; Wingen, L.; Finlayson-Pitts, B.; Xin, J. A semi-blind source separation method for differential optical absorption spectroscopy of atmospheric gas mixtures. Inverse Probl. Imaging 2014, 8, 587–610. [Google Scholar] [CrossRef]
  37. Chen, S.; Tian, X.; Mu, T.; Yuan, J.; Cao, X.; Cheng, G. Enhancement of Methane Detection in Tunable Diode Laser Absorption Spectroscopy Using Savitzky–Golay Filtering. Photonics 2025, 12, 2. [Google Scholar] [CrossRef]
  38. Qian, J.; Qiao, B.; Zhang, Y.; Liu, T.; Wang, S.; Wu, G.; Han, D. DACFusion: Dual Asymmetric Cross-Attention guided feature fusion for multispectral object detection. Neurocomputing 2025, 635, 129913. [Google Scholar] [CrossRef]
  39. Feng, Y.; Zhang, Q.; Hu, C. Study on the Selection of Parameters for Evaluating Drug NIR Universal Quantitative Models. Spectrosc. Spectr. Anal. 2016, 36, 2447–2454. [Google Scholar] [CrossRef]
  40. Goueguel, C.; Soumare, A.; Nault, C.; Nault, J. Direct determination of soil texture using laser-induced breakdown spectroscopy and multivariate linear regressions. J. Anal. At. Spectrom. 2019, 34, 1588–1596. [Google Scholar] [CrossRef]
Figure 1. Schematic illustration of the Beer–Lambert law.
Figure 1. Schematic illustration of the Beer–Lambert law.
Sensors 26 03461 g001
Figure 2. Flowchart of UV-DOAS gas detection.
Figure 2. Flowchart of UV-DOAS gas detection.
Sensors 26 03461 g002
Figure 3. Data preprocessing pipeline.
Figure 3. Data preprocessing pipeline.
Sensors 26 03461 g003
Figure 4. OD, ODS, and DOD spectra of different gases: (a) NO; (b) NO2; (c) gas mixtures.
Figure 4. OD, ODS, and DOD spectra of different gases: (a) NO; (b) NO2; (c) gas mixtures.
Sensors 26 03461 g004
Figure 5. Comparison of spectra before and after Savitzky–Golay filtering.
Figure 5. Comparison of spectra before and after Savitzky–Golay filtering.
Sensors 26 03461 g005
Figure 6. Dataset split configuration for training, validation and testing.
Figure 6. Dataset split configuration for training, validation and testing.
Sensors 26 03461 g006
Figure 7. Schematic diagram of the MDIAN model architecture.
Figure 7. Schematic diagram of the MDIAN model architecture.
Sensors 26 03461 g007
Figure 8. Full-scale prediction error distributions of different models: (a) NO; (b) NO2.
Figure 8. Full-scale prediction error distributions of different models: (a) NO; (b) NO2.
Sensors 26 03461 g008
Figure 9. MAE comparison of different ablation models.
Figure 9. MAE comparison of different ablation models.
Sensors 26 03461 g009
Figure 10. Statistical results of stability analysis: (a) NO; (b) NO2.
Figure 10. Statistical results of stability analysis: (a) NO; (b) NO2.
Sensors 26 03461 g010
Figure 11. Real-time performance evaluation results.
Figure 11. Real-time performance evaluation results.
Sensors 26 03461 g011
Table 1. Forty NO and NO2 concentration combinations used in the mixed-gas experiments.
Table 1. Forty NO and NO2 concentration combinations used in the mixed-gas experiments.
Equal-Concentration SeriesInverse-Gradient Series
NO.NONO2NO.NONO2NO.NONO2NO.NONO2
11111111121120311110
2221212122221932129
3331313132331833138
4441414142441734147
5551515152551635156
6661616162661536165
7771717172771437174
8881818182881338183
9991919192991239192
10101020202030101140201
Note: Concentrations are given in ppm. Combinations 1–20 represent the equal-concentration series, while combinations 21–40 represent the inverse-gradient series.
Table 2. Composition of the spectral dataset.
Table 2. Composition of the spectral dataset.
Gas SpeciesConcentration Range (ppm)Number of Concentration LevelsNumber of ReplicatesTotal Spectra
N21500500
NO1–202050010,000
NO21–202050010,000
NO + NO21–204050020,000
Table 3. Loss function and evaluation metrics.
Table 3. Loss function and evaluation metrics.
CategoryEquation
Loss function   M S E = 1 n i = 1 n y i y ^ i 2
Evaluation Criteria   M A E = 1 n i = 1 n y i y ^ i
  R 2 = 1 i = 1 n y i y ^ i 2 i = 1 n y i y ¯ 2
  R M S E = 1 n i = 1 n y i y ^ i 2
Note:  n  denotes the number of samples,  y ^ i  denotes the predicted value of the  i -th sample,  y i  denotes the true value of the  i -th sample, and  y ¯  denotes the mean of all true values.
Table 4. Comparative evaluation results of different models.
Table 4. Comparative evaluation results of different models.
ModelGas
NONO2
  M A E   R M S E   R 2   M A E   R M S E   R 2
LSM0.5921.4220.95380.5821.2110.9684
SVR0.3060.7690.98650.1840.5390.9937
CNN0.1970.6470.99040.1600.3140.9979
LSTM0.1580.3200.99770.1240.1880.9992
CNN + LSTM0.1330.1630.99940.1010.1020.9997
MDIAN0.0760.0990.99980.0620.0840.9998
Table 5. Five-fold cross-validation results of MDIAN.
Table 5. Five-fold cross-validation results of MDIAN.
FoldTraining Subset NumberTest Subset NumberGas
NONO2
  M A E   R 2   M A E   R 2
12, 3, 4, 510.0740.99980.0610.9998
21, 3, 4, 520.0790.99970.0670.9998
31, 2, 4, 530.0720.99980.0640.9997
41, 2, 3, 540.0750.99970.0620.9998
51, 2, 3, 450.0760.99970.0630.9998
Table 6. Definition of ablation model groups and configurations.
Table 6. Definition of ablation model groups and configurations.
ModelMulti-ScaleDual-BranchInteraction AttentionBi-LSTM
Base××××
Improve_1×××
Improve_2××
Improve_3×
MDIAN
Note: √ denotes that this component is included in the model; while × denotes that this component is not included in the model.
Table 7. Uncertainty and detection limit results at different NO/NO2 concentration levels.
Table 7. Uncertainty and detection limit results at different NO/NO2 concentration levels.
Concentration Level (ppm)NONO2
ADL (ppm)ADL (ppm)
10.87%0.240.95%0.27
50.72%0.160.78%0.16
100.69%0.150.76%0.16
200.69%0.160.75%0.15
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.

Share and Cite

MDPI and ACS Style

Mu, Y.; Wen, H. A UV-DOAS-Based Multi-Scale Interaction Attention Network for Simultaneous Retrieval of NO and NO2 in Gas Mixtures. Sensors 2026, 26, 3461. https://doi.org/10.3390/s26113461

AMA Style

Mu Y, Wen H. A UV-DOAS-Based Multi-Scale Interaction Attention Network for Simultaneous Retrieval of NO and NO2 in Gas Mixtures. Sensors. 2026; 26(11):3461. https://doi.org/10.3390/s26113461

Chicago/Turabian Style

Mu, Yuwei, and Hua Wen. 2026. "A UV-DOAS-Based Multi-Scale Interaction Attention Network for Simultaneous Retrieval of NO and NO2 in Gas Mixtures" Sensors 26, no. 11: 3461. https://doi.org/10.3390/s26113461

APA Style

Mu, Y., & Wen, H. (2026). A UV-DOAS-Based Multi-Scale Interaction Attention Network for Simultaneous Retrieval of NO and NO2 in Gas Mixtures. Sensors, 26(11), 3461. https://doi.org/10.3390/s26113461

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop