Abstract
Rapid and accurate gas identification and concentration prediction are of critical importance for industrial safety, medical diagnostics, and environmental monitoring. However, signal distortion in complex environments and feature loss during data processing often degrade prediction accuracy and response speed. To address these challenges, this study proposes a dual-model framework for electronic nose systems. A gas classification model transforms time-series sensor data into two-dimensional feature maps using a composite Gramian Angular Field representation and end-to-end classification using a convolutional neural network (CNN). A gas concentration prediction model integrates a multi-branch attention mechanism, a CNN, and a bidirectional gated recurrent unit to capture spatial–temporal dependencies. A cascaded identification–prediction scheme is further developed to mitigate data distribution heterogeneity and enhance model robustness. The proposed method supports both single-label and multi-label tasks and exhibits strong adaptability under complex conditions, including low concentrations, varying humidity, and gas mixtures. Validation on public and laboratory-collected datasets demonstrates that, using only initial response-stage data, the classification model achieves 100% identification accuracy, while the prediction model attains R2 > 0.99 for the majority of target gases. These results confirm that the proposed framework provides an efficient and robust solution for rapid qualitative identification and quantitative prediction in electronic nose systems.
1. Introduction
Gas analysis is increasingly important in environmental monitoring [1], industrial safety [2], disease diagnosis [3,4], and food quality control [5]. For example, real-time monitoring of combustible gases is essential for preventing industrial accidents [6], while the prediction of atmospheric pollutants provides scientific support for environmental governance and policy-making [7,8,9]. In the medical field, breath gas analysis has also been utilized to evaluate physiological conditions and assist clinical diagnosis.
Conventional gas detection techniques, such as gas chromatography–mass spectrometry (GC–MS), achieve accurate qualitative and quantitative analysis through ion–molecule reactions induced by chemical ionization. However, their performance depends heavily on sample preparation and experimental conditions [10], and they suffer from long detection cycles, complex operation, and high cost, which limit their applicability in real-time and portable scenarios [11]. In contrast, metal oxide semiconductor (MOS) gas sensors have gained increasing attention due to their low cost, simple sensing mechanism, and ease of integration. To overcome the limitations of individual sensors, such as poor selectivity and sensitivity to environmental variations (e.g., temperature and humidity), sensor array-based systems have been developed [12,13]. Inspired by biological olfactory mechanisms, these systems (commonly referred to as electronic noses) consist of sensor arrays, signal acquisition modules, and pattern recognition algorithms [14,15], among which pattern recognition algorithms play a critical role in overall system performance.
Early efforts in gas identification and concentration prediction mainly used statistical analysis and conventional machine learning methods. Principal component analysis (PCA) reduces data dimensionality by preserving the dominant variance [16], while linear discriminant analysis (LDA) enhances class separability by maximizing the ratio of between-class to within-class scatter [17]. K-nearest neighbor (KNN) and Support Vector Machine (SVM) have been widely used for gas classification [18,19]. Multiple linear regression (MLR), partial least squares regression (PLSR), and support vector regression (SVR) are commonly employed for concentration estimation [20]. Nevertheless, these traditional approaches typically rely on handcrafted features, such as steady-state responses, peak values, and response areas, which inadequately capture the nonlinear and temporal dynamics of sensor responses, thereby limiting model performance.
Recent advances in deep learning have significantly enhanced gas sensing performance. Convolutional neural networks (CNNs), leveraging their end-to-end feature learning capability, have been successfully applied to one-dimensional, two-dimensional, and three-dimensional data representations [21,22]. For example, a small-scale CNN model proposed in [23] achieves effective gas classification without complex preprocessing. Similarly, the method in [24] integrates the discrete wavelet transform (DWT) with CNN to construct a dynamic wavelet CNN, yielding high classification accuracy. However, these approaches typically rely on predefined signal transformation techniques and mainly focus on gas classification, with limited attention to concentration prediction. Furthermore, most existing studies focus on single-component gas identification or qualitative analysis of multi-component mixtures [25,26,27], whereas high-precision quantitative prediction remains insufficiently explored [28].
To model the temporal dynamics of sensor responses, recurrent neural networks (RNNs) and their variants have been widely used for gas concentration estimation. Transformer-based architectures with attention mechanisms have demonstrated superior performance in sequence modeling [29,30,31]. Hybrid CNN–RNN frameworks have been further proposed to jointly perform classification and regression. For instance, the method in [32] employs WCCNN-BiLSTM for gas classification followed by GRU for concentration prediction, while [24] introduces a many-to-many LSTM structure to improve prediction accuracy. Despite these advances, several challenges remain. First, most existing approaches require full-length sensor response sequences, resulting in high computational cost and slow recognition speed. Second, separate models are typically designed for classification and regression tasks, increasing system complexity and preprocessing overhead. Third, data distribution discrepancies caused by heterogeneous sources can degrade model generalization for single-gas scenarios.
To address these limitations, this study proposes a unified deep learning framework for gas identification and concentration prediction that efficiently uses dynamic response information. Specifically, only the critical segment of the sensor response, from the initial reaction to the steady-state phase, is used for modeling, which reduces data redundancy while preserving discriminative features. Furthermore, to mitigate the impact of data distribution heterogeneity in single-gas scenarios, we develop a cascaded identification–prediction system that enhances robustness and generalization. The main contributions of this work are summarized as follows:
- (1)
- A composite Gramian Angular Field (GAF) representation that fuses summation and difference modes is proposed to transform time-series sensor data into two-dimensional feature maps, capturing both covariance structures and dynamic variations. A CNN-based model is then employed for end-to-end gas classification.
- (2)
- A feature extraction framework with positional encoding and multi-branch attention mechanisms is designed. A channel-wise bidirectional gated recurrent unit (Bi-GRU) is further incorporated to capture spatial–temporal dependencies, enhancing concentration prediction accuracy.
- (3)
- A cascaded identification–prediction system is developed for single-gas sensing scenarios, which mitigates data distribution heterogeneity and enhances model robustness.
- (4)
- The proposed method supports both single-label and multi-label classification, and demonstrates strong adaptability under complex conditions, including low concentrations, varying humidity and mixed-gas concentration prediction.
2. Datasets and Preprocessing
2.1. Datasets
This section describes four datasets for model validation, including three publicly available datasets and one collected using our designed electronic nose system. These datasets are selected to establish a comprehensive validation pipeline, covering multicomponent gas mixtures, low-concentration and humidity-interference scenarios, cross-device variability, and real-world laboratory deployment, thereby ensuring the effectiveness and generalizability of the proposed method.
2.1.1. Dataset I
Dataset I consists of time-series signals from the UCI Machine Learning Repository, collected by Fonollosa, J. et al. [33]. In this study, it is used to evaluate model performance for both gas classification and concentration prediction. The data acquisition platform integrated eight metal oxide (MOX) gas sensors with temperature and humidity monitoring modules in a controlled wind tunnel environment for dynamic gas mixture measurements. Two independently controlled gas sources were employed: Source 1 released ethylene (C2H4), while Source 2 delivered either methane (CH4) or carbon monoxide (CO). Binary gas mixtures (C2H4/CH4 or C2H4/CO) were generated through precise flow ratio adjustments. Each gas component was regulated at four concentration levels (zero, low, medium, and high); the details are provided in Table 1. A total of 30 distinct mixtures (15 C2H4/CH4 and 15 C2H4/CO combinations) were constructed, with each concentration ratio replicated six times, yielding 180 samples. Each sampling trial lasted 300 s, comprising an initial 60 s without gas inflow, followed by 180 s of exposure to a predefined gas mixture, and a final 60 s for gradual gas discharge. The sensor responses were sampled at 50 Hz.
Table 1.
Gas concentration values (ppm) for the four levels in Dataset I.
2.1.2. Dataset II
Dataset II (publicly available on UCI) is from the Javier Burgués group [34]. We use it to evaluate concentration prediction models under low-concentration conditions across varying humidity levels. Dynamic gas mixtures were generated inside a 250 cm3 test chamber by blending three gas streams under the control of mass flow controllers (EL-FLOW Select, Bronkhorst): carbon monoxide (CO, 1600 ppm in synthetic air), humid synthetic air, and dry synthetic air. An SHT75 sensor from Sensirion logged the internal temperature and relative humidity every 5 s. This dataset contains 1300 samples measured at 10 concentration levels (0–20 ppm) with randomized relative humidity (15–75%). Each measurement cycle consisted of a 15-min cleaning with synthetic air followed by a 15-min CO exposure, both at a constant flow rate of 240 mL/min. The sensing unit was an array of 14 temperature-modulated MOX gas sensors commercially available from Figaro Engineering (7 units of TGS 3870-A04) and FIS (7 units of SB-500-12). The operating temperature of each sensor was cyclically modulated via a built-in heater following a repeated voltage sequence: 0.9 V for 5 s, 0.2 V for 20 s, 0.9 V for 5 s, and 0.2 V for 25 s. The sensor output voltage was sampled at 50 Hz.
2.1.3. Dataset III
Dataset III was also obtained from the UCI Repository, provided by J. Fonollosa et al. [35]. We use it to evaluate the performance of the proposed identification–prediction system under inter-device variability and sensor drift. The experimental setup consisted of five identical detection units. Each unit contained an array of eight MOX gas sensors, with individually controlled heater voltages, housed in a 60 mL chamber. The four target gases, ethylene, ethanol, carbon monoxide, and methane, were supplied from standard gas cylinders. Each gas was blended with synthetic air using MFCs to produce a single-component gas stream across ten different concentration levels, as listed in Table 2. The experimental procedure for each measurement was as follows: clean air was introduced for 50 s, followed by target gas exposure for 100 s, and finally clean air purging for 450 s to recover the sensor. Sensor response signals were acquired continuously over 22 days at a sampling frequency of 100 Hz, yielding a total of 640 time-series samples.
Table 2.
The concentration levels and class labels for various gases in Dataset III.
2.1.4. Dataset IV
To evaluate the proposed identification–prediction multi-gas prediction, we developed an E-nose experimental device and collected a real-time dataset as Dataset IV. The experimental setup, shown in Figure 1, is composed of a sensor array, a gas path system, and a signal acquisition unit.
Figure 1.
The designed gas sensing experimental setup in our lab.
The gas sensor array consists of nine MOX sensors, including three WSP1110, three WSP2110 (from Winsen Electronics Technology Co., Ltd., Zhengzhou, China), and three MQ136 sensors (from China). This array was designed to detect three target gases: nitrogen dioxide (NO2), benzene (C6H6), and sulfur dioxide (SO2). To obtain diverse response characteristics, the three sensors of each type operated at different heating voltages: 4.5 V, 5.0 V, and 5.5 V. Chamber humidity and temperature were monitored in real time using a DHT11 sensor and a DS18B20 sensor (both from China), respectively. The gas delivery system comprises gas cylinders, MFCs, a gas chamber, and an exhaust duct. The cylinders supply the target gases, while the MFCs precisely regulate the ratio of target gas to air, enabling controlled concentration levels and maintaining continuous gas flow through the chamber. Each experimental procedure follows a cyclic sequence of air purging, target gas exposure, and air purging. Each experiment lasts 660 s, comprising a 360 s gas exposure phase followed by a 300 s air cleaning phase, with a sampling frequency of 15 Hz. The resulting dataset covers 20 concentration gradients for each of the three gases. Detailed information is provided in Table 3.
Table 3.
Sample numbers, class labels, and concentration values for the three gases in Dataset IV.
The signal acquisition module centers on an STM32F103C8T6 microcontroller (manufactured by STMicroelectronics, a Swiss company based in Geneva, Switzerland) and includes a signal conditioning circuit with voltage division, RC filtering, and a voltage follower. Analog-to-digital conversion is performed using a built-in 12-bit ADC (integrated within the chip), and data are transmitted to the upper computer via a serial interface. The software adopts a coordinated upper–lower computer architecture. The lower computer runs the FreeRTOS real-time operating system to manage parallel tasks, including sensor data acquisition and conversion, temperature and humidity reading, OLED display, and serial communication. The upper computer, developed in LabVIEW, provides a graphical user interface for serial port configuration, real-time waveform display, data storage, and interactive control.
Figure 2 shows the test circuit of the sensors. The heating voltage (VB) is applied to the integrated heater within the sensor, allowing the gas-sensitive element to fully react with the target gas at a specific temperature, thereby ensuring consistency of the output detection signal. The operating voltage VC is applied across the series circuit consisting of the sensor and the load resistor, converting changes in the sensor resistance into voltage variations. The primary output signal is given by , where RS is the sensor resistance and Vc is the applied operating voltage.
Figure 2.
Sensor testing circuit.
Figure 3 shows the actual response curves of the nine-sensor array when exposed to 7.5 ppm C6H6, where all sensors exhibit measurable resistance changes. Since C6H6 is a reducing gas, it reacts with the oxygen species adsorbed on the sensor surface, leading to a decrease in the sensor resistance (Rs) and, consequently, an increase in the voltage division (VRL) across the load resistor. This voltage variation directly records the kinetics of the chemical adsorption–desorption processes occurring on the sensor surface. Data acquisition at 15 Hz yielded 5400 and 4500 points per sensor during the 360 s exposure and 300 s cleaning phases, respectively. Each experimental sample thus contains 89,100 points across nine sensors, capturing rich temporal detail across the full response–recovery cycle.
Figure 3.
The response curves of the nine-sensor array when exposed to 7.5 ppm C6H6.
2.2. Data Preprocessing
To address challenges associated with high-dimensional data, environmental noise, and redundancy in raw sensor-array time-series data, we apply a preprocessing procedure that includes data segment extraction, exponentially weighted moving average (EWMA) smoothing, down-sampling, and data augmentation.
First, segments spanning from gas exposure onset to the stabilization of sensor response are extracted. This phase contains transient characteristics with discriminative information for gas identification and quantification. Using only this phase enables rapid analytics because it avoids the latency of full steady-state monitoring and reduces data dimensionality for efficient computation.
Subsequently, EWMA smoothing is applied to suppress environmental and circuit noise. The EWMA output xs,t at time t for sensor s is calculated recursively as
where is the raw observation at time t for sensor s, and is the smoothed value at the previous time step. The smoothing factor α is determined by a span parameter, which is set to 10 in this study, i.e., . Figure 4 illustrates the smoothing effect of EWMA (span = 10) on a representative sensor response. Compared with the raw signal (blue), the processed curve (red) suppresses random fluctuations and spikes, clarifying the overall trend across baseline, response, and recovery. A magnified view of the transient phase confirms that key dynamic features, onset timing and slope are well preserved, with no noticeable delay or distortion. EWMA thus improves signal quality while retaining the transient information relevant for gas concentration estimation.
Figure 4.
Comparison of raw and EWMA-smoothed (span = 10) signals for the TGS2602 sensor in Dataset I, featuring the global response profile and a magnified view of the transient phase.
Finally, down-sampling combined with sliding-window-based data augmentation was applied to reduce data dimensionality and address the limited sample size of the dataset. Consider a raw sequence from a single sensor sampled at 100 Hz comprising 1000 time points, denoted as , where represents the response value of the s-th sensor at the i-th sampling instant. Down-sampling was performed by extracting one data point every ten points, forming a segment that yields a data matrix of dimension 100 × S, which constitutes one data sample. Each original concentration sample was further divided into 10 such samples via a sliding window approach, generating augmented instances , , , , . This method effectively expands the sample size tenfold while preserving the key dynamic characteristics of the data. As Dataset II already contains a sufficient number of samples, no further augmentation was performed. After applying the above procedures, the resulting sample sizes for Datasets I–IV are 1800, 1300, 6400, and 1200, respectively.
The label encoding strategy for the classification task is as follows: For pure, single gases, a single-label encoding scheme is employed, wherein each gas category is represented by a distinct integer (i.e., 0, 1, 2, …), as illustrated in the Label column of Table 2 and Table 3. For gas mixtures, a multi-label encoding scheme is adopted, where the presence of a specific gas is encoded as 1 and its absence as 0, as shown in Table 4.
Table 4.
Multi-label coding scheme for gas types in Dataset I.
3. Method
To address the diverse requirements of gas detection in practical applications, this paper proposes a novel neural network architecture, as illustrated in Figure 5a. The framework comprises two models: a gas classifier and a gas concentration predictor. The classifier integrates a Gramian Angular Field transformation module and a multi-branch convolutional neural network module. The predictor consists of a multi-modal attention fusion (MAF) module, a CNN module, and a Bi-GRU module. Both the classifier and the predictor are equipped with an MLP module for output dimensional transformation. These components collectively enhance gas identification accuracy and concentration prediction performance, forming a versatile and robust detection system adaptable to diverse tasks in complex environments. Leveraging preprocessed sensor array data, the system dynamically activates corresponding functional branches according to the task objective, as illustrated in Figure 5b. Specifically:
Figure 5.
Framework of the proposed method. (a) Gas classification and concentration prediction process; (b) dynamic activation of functional branches based on task objectives.
- (1)
- Gas species identification: For tasks requiring only the discrimination of gas types, the preprocessed data are fed into a classifier (data flow corresponds to paths (A-1) and (B-1) in Figure 5a). This classifier supports both single-class and multi-class modes, enabling accurate identification of all gas components present in a sample.
- (2)
- Concentration prediction for mixed and single gases: The preprocessed data are fed into a predictor (data flow corresponds to paths (A-2) and (B-2) in Figure 5a). The number of output units equals the number of gas species, with each unit responsible for estimating the concentration of a specific gas. The proposed model can achieve high prediction accuracy even at low concentrations.
- (3)
- Single-gas identification and concentration prediction: In scenarios where only a single gas is known to be present but both its type and concentration need to be determined, the system employs a classifier–predictor cascade architecture (shown by the blue line path ((A-1)–(C)–(A-2)) in Figure 5a). In this architecture, a front-end classifier identifies the gas type and routes the data to a dedicated regression sub-network specific to that gas category for concentration prediction. This gas-specific design mitigates interference caused by differing gas data distributions in a unified model, thereby improving prediction accuracy and robustness.
3.1. Gas Classifier
As illustrated in Figure 6, the proposed gas classifier framework comprises three main modules: a GAF transformer that converts raw time-series signals from the sensor array into global image representations; a multi-stage CNN that serves as a hierarchical feature extractor for multi-scale and multi-dimensional representations; and an MLP output module that maps high-dimensional features to the target classification space. This architecture integrates time-series image encoding with deep convolutional feature learning to enhance classification robustness.
Figure 6.
Gas classifier framework.
First, raw time-series signals from each sensor are independently transformed using the Gramian Angular Summation Field (GASF) and the Gramian Angular Difference Field (GADF). This process converts one-dimensional temporal sequences into two-dimensional images with explicit spatial structure, enabling temporal dependencies and dynamic variations to be represented visually. Second, the two images are fused into a unified composite image. By integrating GASF’s sensitivity to global signal trends with GADF’s ability to encode temporal differences, the fused representation achieves stronger descriptiveness and discriminability. Finally, the composite images from all sensors are concatenated along the channel dimension and fed into a CNN, which performs multi-scale feature learning to capture nonlinear interactions and cross-sensor dependencies. The MLP then maps the extracted embeddings to the classification space, enabling precise identification of both individual gas species and gas mixtures.
3.1.1. GAF
To improve sensor time-series feature representation, the Gramian Angular Field method is introduced. It preserves temporal dependencies via polar coordinate mapping and uses trigonometric functions to quantify correlations between data points, forming a Gramian matrix that encodes dynamic 1D time series as 2D image features [36]. GAF comprises GASF and GADF. Let denote the 1D sample data of the s-th sensor, where n is the number of sampling points, and , with S being the total number of sensors in the array. First, is transformed into the normalized value using the following formula:
Then, for each sensor s, the normalized time series is mapped to polar coordinates using angle encoding and radius encoding , and i represents the i-th sampling number. Next, the reconstructed sequence in polar coordinates is transformed into two types of 2D feature images ( and ) through GASF and GADF, as shown in Equation (3):
GASF encodes the cosine of angular sums, preserving temporal correlations and overall trends, and GADF encodes the sine of angular differences, excelling at capturing local variations and anomaly patterns [34]. To integrate these complementary representations, the GASF and GADF maps from each sensor are first summed element-wise and then concatenated, forming a 3D feature map of dimensions S × n × n:
Specifically, GASF leverages cosine properties to reflect coordinated variation between similar time-point values, while GADF utilizes sine properties to highlight local fluctuation patterns through sensitivity to change rates. Element-wise fusion of GASF and GADF images integrates their complementary angular relationships, combining both representations into a unified input. This enables the CNN to simultaneously capture global trends and local details from the time series, enriching feature representation for subsequent learning stages without introducing computational overhead. The resulting fused representation provides a more informative feature space, thereby enhancing overall classification performance.
3.1.2. CNN and MLP
The convolutional neural network is designed to automatically and efficiently extract both linear and nonlinear features from the GAF fused feature maps. The MLP then aggregates these features and generates the final prediction.
The CNN’s core consists of three convolutional blocks, each following an identical sequence of operations: a 3 × 3 convolution, batch normalization, a ReLU activation function, and a 2 × 2 max-pooling layer. Finally, a Dropout strategy with a probability of 0.1 is applied for mild regularization. Thus, the output of the convolutional layer at the l-th layer, denoted as , can be described as
where denotes the convolution kernel, xl−1 is the output feature map from the previous layer, represents the bias term, and l = 1, 2, 3.
The output of the final convolutional layer is flattened into a one-dimensional feature vector, denoted as , which is then fed into the MLP. The MLP consists of two fully connected (FC) layers and an output layer. The output of the MLP, , is computed by
For single-label classification, is passed through a Softmax output layer to produce a normalized class probability distribution (i.e., ), and the class with the highest probability is the final prediction. For multi-label classification, a Sigmoid output layer generates independent confidence scores in [0, 1] for each class (i.e., ). A sample is assigned to a class if its corresponding score exceeds the decision threshold of 0.5.
The weights of the corresponding layers are denoted as and ; the biases are denoted as , and .
3.2. Gas Concentration Predictor
To enhance the accuracy of gas concentration prediction in complex environments, this study proposes a gas concentration predictor that integrates multi-modal attention fusion with spatio-temporal decoupled learning. As illustrated in Figure 7, the model architecture consists of two modules: (1) an encoder that incorporates three heterogeneous attention mechanisms to extract multi-dimensional enhanced features from raw input sequences; and (2) a decoder that combines a CNN with a bidirectional GRU to capture spatial interaction patterns and bidirectional temporal dependencies, respectively.
Figure 7.
Gas concentration predictor framework.
Due to the parallel computing nature of attention mechanisms, positional embedding must be applied to the input data prior to the designed triple-branch attention processing. Then, three parallel attention branches are constructed: a single-head self-attention branch captures globally contextualized temporal dependencies; a multi-head self-attention branch extracts complex interactions from multiple subspaces; and a linear attention branch, which operates directly on the raw data, enhances numerical stability while mitigating information loss. The outputs of these three branches are concatenated to form a unified multi-representational feature cube, enabling comprehensive analysis by the decoder. Subsequently, this feature cube is processed by a CNN to extract inter-sensor spatial features, which are then flattened into temporal sequences and fed into a Bi-GRU to model deep bidirectional dependencies. Finally, a linear layer maps the abstract features to the concentration values of different gases. By integrating attention mechanisms, CNN, and RNN into a hybrid architecture, the model effectively achieves multi-modal feature fusion and decoupled learning in spatial and temporal dimensions. It simultaneously captures long- and short-term dependencies, spatial correlations, and dynamic temporal evolution, making it particularly suitable for high-precision concentration prediction in low-concentration and mixed-gas scenarios.
3.2.1. Encoder Based on Multi-Branch Attention Fusion
Prior to attention processing, a sinusoidal–cosine embedding module injects positional information into the input sequence to preserve temporal ordering. For a sensor response with sequence length n and feature dimension S, a positional encoding matrix is generated and added to the input . The encoding for position i and dimension j of P is computed by and , where and . This encoding formulation is chosen because it constructs a unified encoding space capable of expressing relative position information through linear transformations.
The encoded input is projected into Query (Q), Key (K), and Value (V) matrices for parallel processing. The single-head self-attention branch computes the scaled dot-product attention:
where , , , and the scaling by prevents extremely small gradients. This mechanism captures global temporal dependencies across the sensor sequence, providing contextualized representations of the gas response dynamics.
To further enhance the model’s ability to capture diverse dependency patterns, the multi-head attention (MHA) mechanism is introduced. MHA projects the input into h distinct representation subspaces. For each head i, , , , and . The outputs of all heads are concatenated and linearly projected to integrate the multi-subspace features:
To mitigate potential gradient vanishing or explosion issues during training, a linear attention module is incorporated to extract temporal features from the original data:
In the attention mechanism described above, the projection matrices, , , , , , , , , and , are all learnable parameters. The outputs from the three branches are concatenated to form a unified feature tensor En:
This unified tensor provides the decoder with a rich, multi-perspective feature set for comprehensive analysis.
3.2.2. Decoder Based on CNN, Bi-GRU and MLP
- (1)
- CNN
The input to the CNN is the feature cube generated by the attention mechanism, while the convolutional block architecture (200 → 32 → 64 → 128 channels) remains identical to that employed in the classifier. The feature tensor produced by the CNN is subsequently flattened along the channel dimension to form a one-dimensional feature vector, which is then fed into a Bi-GRU for temporal modeling.
- (2)
- Bi-GRU and MLP
In this study, the Bi-GRU operates on spatially enhanced feature sequences extracted by the CNN backbone, enabling joint spatio-temporal modeling and improving the discrimination of complex gas response patterns. The GRU cell, illustrated in Figure 8a, updates its hidden state through a gated mechanism:
where Rt and denote the reset gate and the update gate, respectively; , , , , , and are all weight parameters; , , and are bias parameters; is the input at the current time step for both gates; is the candidate hidden state; and are the hidden state at the current and previous time step, respectively; and σ is the sigmoid function.
Figure 8.
Schematic diagram of (a) GRU and (b) Bi-GRU.
To leverage the complete data segment, we employ a Bi-GRU network that captures bidirectional temporal dependencies, yielding richer sequence representations. As shown in Figure 8b, it consists of two GRU layers that process the input sequence in opposite directions: a forward GRU that propagates information from t = 1 to t = t, and a backward GRU that propagates information from t = t to t = 1.
For an arbitrary time step t, the forward and backward hidden states are denoted as and , respectively, and are updated as and following the update mechanism of the GRU unit. The hidden representations from both directions are then concatenated to obtain the final hidden state:
This representation integrates contextual information from past and future time steps, providing a more comprehensive feature representation for subsequent prediction tasks.
The decoder incorporates a five-layer fully connected MLP as its output module. The first four layers use the ReLU activation function to model nonlinear relationships between the extracted features and gas concentrations, whereas the output layer is linear, with its number of neurons equal to the number of target gas species. Each neuron in the output layer represents the predicted concentration of a specific gas.
3.3. Parameter Settings
The datasets were partitioned according to their characteristics and task objectives. The mixed-gas dataset (Dataset I) and the low-concentration dataset (Dataset II), which are used solely for regression tasks, were divided into training and test sets with a ratio of 8:2. The single-label classification and prediction datasets (Dataset III and IV) involve both classification and concentration prediction tasks. Owing to the increased training complexity of these dual-task scenarios, these datasets were further split into training, validation, and test sets with a ratio of 8:1:1, where the validation set was used for model selection and early stopping to improve generalization performance.
The gas classifier consists of three convolutional blocks with 32, 64, and 128 channels, respectively. Each block is equipped with 2 × 2 max-pooling and batch normalization. A FC layer with 256 units is then applied, and the output dimension is set to the number of gas categories (3, 4, and 3 for Datasets I, III and IV, respectively). In the gas concentration predictor, outputs of the three attention branches are projected to 200 dimensions. The subsequent convolutional module contains three convolutional blocks with 32, 64, and 128 channels. A Bi-GRU with a hidden size of 65 is adopted for temporal feature modeling. The resulting features are transformed by a four-layer FC network with dimensions of 198, 355, 168, and 43. Output layer predicts gas concentrations, with output dimensions of 3, 1, 1, and 1 for Datasets I–IV, respectively.
Both models are trained using the Adamax optimizer, with cross-entropy loss for the classification task and mean absolute error (MAE) for the regression task. The learning rate is consistently set to 0.001.
3.4. Evaluation Metrics
3.4.1. Evaluation Metrics for Classification Tasks
For the classification task, the accuracy, precision, recall, and F1-score are selected as evaluation metrics. Given that each sample may belong to multiple classes simultaneously in multi-label classification, each class Cj is treated as an independent binary classification problem. The formulas for these metrics are defined as follows.
Accuracy: In multi-label settings, exact match accuracy is commonly used. It is defined as the proportion of samples for which all labels are correctly predicted:
where N is the total number of samples; and denote the predicted and true labels of the i-th sample, respectively; and I(⋅) is the indicator function (equal to 1 if the condition is true, and 0 otherwise).
Precision: Precision for class is the proportion of true positives among all samples predicted as positive:
Recall: Recall for class is the proportion of true positives among all actual positives:
F1-score: F1-score for class is the harmonic mean of precision and recall:
In the above, (true positives), (false positives), and (false negatives) denote the numbers of samples correctly predicted as class , incorrectly predicted as class , and belonging to class but not predicted as such, respectively. The overall precision, recall, and F1-score are then obtained by a weighted average over classes, with weights equal to the number of true samples in each class:
where C denotes the total number of classes.
3.4.2. Evaluation Metrics for Regression Tasks
The regression performance is evaluated using the coefficient of determination (R2), root mean square error (RMSE), and mean absolute error (MAE). Higher R2 and lower RMSE and MAE values indicate better predictive performance. The overall R2, RMSE, and MAE for the C gas species are obtained by averaging the corresponding metrics calculated for each gas. The formulas are defined as follows:
where s denotes the number of samples; and are the true and predicted label values for the j-th gas in the i-th sample, respectively; and is the mean of the true values for gas j.
4. Results and Analysis
In this section, extensive experiments were conducted on the four gas datasets to evaluate the proposed method. The experiments were performed on a workstation running Windows 10, equipped with an Intel Core i7-13700 processor, 64 GB of RAM, and an NVIDIA GeForce RTX 4080 GPU. The code was executed using Python 3.11.4 in Jupyter Notebook 6.5.4 within an Anaconda 3 environment.
4.1. Dataset I
Dataset I was used to evaluate the model’s performance in gas classification and concentration prediction. Figure 9 presents the loss trends over training epochs and the confusion matrices for the single-class classification of C2H4, CO, and CH4 on the test set. As shown in Figure 9a, the model converged rapidly within the first 30 epochs and continued to decrease steadily thereafter. The test loss reached its minimum value of 0.0005 at the 68th epoch and subsequently remained stable. The close alignment between training and testing losses throughout training indicates strong generalization with no evident overfitting. This stability can be traced to the GAF fusion strategy, which transforms one-dimensional sensor dynamics into structured two-dimensional representations, reducing the model’s tendency to fit spurious noise.
Figure 9.
Classification performance on gas classification for Dataset I. (a) Training and testing loss over epochs; (b) confusion matrix for single-class classification of CO, CH4 and C2H4 on the test set.
In the multi-gas classification task, the model may assign multiple gas labels to a single sample during prediction, which essentially corresponds to a multi-label classification problem. Since a conventional confusion matrix assumes that each sample belongs to only one class, it cannot accurately reflect class-wise performance in this scenario. Therefore, we adopt a one-vs-rest strategy, in which a separate confusion matrix is constructed for each gas category. Specifically, for the i-th gas, it is treated as the positive class, while all other gases are considered negative classes. Based on the correspondence between predicted labels and ground truth, the four outcomes (true positive, false positive, true negative, and false negative) are obtained to form the confusion matrix for that gas.
The confusion matrices (Figure 9b) demonstrate that all samples from the three gas classes (CO, CH4, and C2H4) were correctly classified, achieving 100% classification accuracy. This result indicates that the proposed multi-label classification framework with a sigmoid output layer is fully capable of distinguishing different gas species in complex mixed environments.
The concentration prediction performance for C2H4, CO, and CH4 in Dataset I is evaluated in Figure 10. Figure 10a–c display the linear regression fitting between predicted and actual concentrations for each gas, along with error metrics (RMSE, MAE, and R2). Green dots represent samples, and the red area denotes the 95% prediction interval. Figure 10d–f show the step-change plots of predicted versus actual concentrations. As shown in the figures, the coefficients of determination (R2) for all three target gases exceed 0.997, indicating an excellent fit. The RMSE and MAE are low relative to the concentration range of each gas. Notably, CO exhibits higher RMSE and MAE values than C2H4 and CH4, which can be attributed to its wider concentration range. It is worth noting that the data points cluster tightly around the regression lines with narrow 95% prediction intervals. This demonstrates that the model accurately fits the actual concentration values across a broad range of concentrations. The step-change plots further reveal that the model can track concentration fluctuations of each component in real time. Moreover, when a particular gas component is absent, the predicted value remains near zero, confirming that the model possesses dual capabilities: gas identification and high-precision quantification.
Figure 10.
Comparison of predicted and actual concentrations of C2H4, CO and CH4 on the test set: (a–c) regression fitting with 95% prediction intervals; (d–f) step-change plots of concentrations.
We binarized the predicted concentration value of each output neuron: if the predicted value is greater than 0, it is recorded as 1, indicating the presence of that gas species; otherwise, it is recorded as 0. The binarized prediction labels were then compared with the true labels of the test set, and the model performance was evaluated using precision, recall, F1-score, and support. The results are presented in Table 5. As can be seen from the table, the proposed prediction model also exhibits effective gas identification capability.
Table 5.
Binary classification performance metrics of gas concentration based on prediction results from the test set.
This best performance can be attributed to two factors. First, each output neuron in the prediction model is tied to a specific gas species, enabling clear multi-label mapping. Second, the A–CNN–GRU architecture effectively captures inter-sensor dependencies through attention mechanisms, extracts discriminative features via convolutional layers, and models channel-wise dependencies using the Bi-GRU module.
4.2. Dataset II
To evaluate the model’s predictive performance under low-concentration conditions, regression testing was performed on Dataset II, which contains only a single gas at low concentrations. Figure 11 presents the results, including the MAE loss over epochs and the predicted versus actual concentration fitting curve with error metrics. The rapid and stable convergence in Figure 11a, with closely matched training and test losses, stems from the MAF encoder and CNN–Bi-GRU decoder jointly enforcing learning of the physical gas response dynamics under weak-signal conditions. Consequently, the model achieves highly accurate predictions for CO within the 0–20 ppm range, with an RMSE of 0.779, an MAE of 0.460, and an R2 of 0.986.
Figure 11.
Evaluation of concentration prediction performance on Dataset II. (a) Regression loss function variation over epochs, (b) fitting curve for predicted versus actual concentrations and error metrics.
Compared to the higher-concentration Dataset I, the model exhibits a slight decline in the coefficient of determination (R2) on the low-concentration Dataset II, with visible deviations between predicted and actual values for certain samples. This performance degradation stems primarily from the inherently weak electrical signals generated by gas sensors at low concentrations and is further exacerbated by pronounced relative humidity fluctuations (15–75% RH), under which these weak signals are readily obscured by noise. Nevertheless, the model sustains high predictive accuracy under such adverse conditions. This robustness is largely attributed to the integrated three-branch attention mechanism, which adaptively enhances the raw time-series data through dynamic weighting. By suppressing humidity-induced interference and amplifying subtle yet informative gas response features, the mechanism ensures reliable performance. These findings confirm that the proposed model retains strong deep feature extraction capability and stable quantitative prediction even in extreme, low-concentration, and high-interference environments.
4.3. Dataset III
To mitigate the cross-category prediction bias caused by heterogeneous gas concentration distributions, an identification–prediction cascade architecture is proposed. The framework constructs a gas-specific expert system in which each gas category is associated with an independent regression sub-network. During training, the classification and regression modules are optimized separately. Unlike conventional approaches, the regression module incorporates a category-aware masking mechanism that routes samples of the same gas category to the corresponding regressor.
Figure 12 presents the classification loss and accuracy on the training and test sets over training epochs, together with the confusion matrix for the four gas categories. As shown in Figure 12a,b, both training and validation losses decrease rapidly, with the validation loss dropping to 0.00 by Epoch 11 and converging to near-zero values after several epochs, while the corresponding accuracies quickly reach 1.00 by Epoch 6 and remain stable throughout the subsequent training process. This behavior indicates that the classifier effectively captures the discriminative patterns of the dataset without overfitting. The confusion matrix in Figure 12c further confirms the classification performance. No misclassification is observed among the four gas categories (CO, C2H5OH, C2H4, and CH4), with all samples located on the diagonal elements of the matrix. This perfect classification result provides a reliable foundation for the subsequent category-specific routing in the regression stage.
Figure 12.
Classification performance on gas classification for Dataset III. (a,b) Classification loss and accuracy on training and test sets during training; (c) confusion matrix for the four gas types.
Based on this architecture, the regression networks demonstrate excellent concentration prediction performance for all gases, as illustrated in Figure 13. The predicted concentrations exhibit strong linear agreement with the ground-truth values, yielding R2 values of 0.996, 0.998, 0.997, and 0.996 for CO, C2H5OH, C2H4, and CH4, respectively. Benefiting from this identification–prediction framework, all test samples were correctly classified and routed to their dedicated regression branches, thereby substantiating the necessity of the category-masking mechanism. Architecturally, this approach mitigates the performance decline seen in unified models processing heterogeneous gases, moving from broad generalization toward targeted precision.
Figure 13.
Linear regression analysis and error metrics for concentration prediction on Dataset III for (a) CO; (b) C2H5OH; (c) C2H4; and (d) CH4.
4.4. Dataset IV
To further validate the effectiveness of the proposed expert architecture and avoid potential dataset-specific bias, the identification–prediction framework was additionally evaluated on a self-constructed laboratory dataset. It was recorded using a sensor array comprising commercial MOX sensors (WSP1110, WSP2110, and MQ136), demonstrating the framework’s transferability to independently designed hardware beyond the public benchmark datasets. As shown in Figure 14a,b, the model exhibited fast and stable convergence during training. Both training and validation losses decreased rapidly in the early epochs and reached near-zero values by the third epoch, while the corresponding accuracies simultaneously increased to 1.000 and remained stable thereafter. The close agreement between training and validation losses indicates that the model effectively captured discriminative patterns and maintained strong generalization capability.
Figure 14.
Classification and concentration prediction performance for Dataset IV. (a) Comparison of classification accuracy curves for training and validation sets; (b) trend of classification loss with training epochs; (c) confusion matrix for NO2, SO2, and C6H6; (d–f) predicted concentration versus actual concentration fitting curves for NO2, SO2, and C6H6, respectively.
The confusion matrix in Figure 14c further validates the classification performance. All samples of NO2, SO2, and C6H6 were correctly classified across multiple independent test sets, with all samples located on the diagonal elements of the matrix. This perfect classification accuracy provides a reliable basis for the subsequent concentration regression stage.
Regarding the concentration prediction task, the model demonstrated a strong linear correlation between predicted and actual concentrations, as illustrated in Figure 14d–f. The regression results achieved R2 values of 0.998, 0.973, and 0.996 for NO2, SO2, and C6H6, respectively, with corresponding RMSE values of 0.132, 0.476, and 0.911, and MAE values of 0.083, 0.313, and 0.623. The relatively broader prediction interval for SO2 can be attributed to the cross-sensitivity of the SO2 sensing unit, while the slightly larger errors for C6H6 are likely related to its wider concentration range. Nevertheless, the high R2 values indicate stable prediction performance across different concentration levels.
Consistent with the findings on Dataset III, these results indicate that the proposed identification–prediction framework alleviates the loss of model specificity arising from inconsistent data distributions in multi-class gas detection tasks. This further supports its practical viability in real-world deployment.
5. Discussion
5.1. Comparative Experiment
To evaluate the classification and prediction performance of the proposed model, 12 methods were considered for comparative experiments. The classic machine learning methods included support vector machine (SVM), k-nearest neighbors (KNN), extreme learning machine (ELM), and regression models (RM), while the recently reported methods comprised 2L-ARNN [37], PMH-TCN [38], A-GRU [39], 1D-CNN [40], 3D-CNN [41], and DWCNN-LSTM [24].
To enhance the reliability of the experimental results, Dataset I, which contains both gas classification and concentration prediction information, was selected for comparative evaluation. We applied a 5-fold cross-validation scheme to all models. Specifically, the preprocessed dataset was randomly partitioned into five equal-sized, mutually exclusive subsets. In each iteration, four subsets were used to train the model, while the remaining subset served as the independent test set. This process was repeated five times, ensuring that each data point was utilized for testing exactly once. For classical machine learning methods, the raw sensor time-series data were first normalized using Z-score to eliminate scale differences. Subsequently, five statistical features (maximum, minimum, mean, standard deviation, and variance) were extracted, transforming each sample into a 40-dimensional feature vector as model input. In contrast, deep learning methods directly utilized the preprocessed sensor response sequences during the response phase as input, thereby fully leveraging their end-to-end feature learning capability. To ensure a fair comparison, several adaptations were made to certain baseline models, including adjusting the number of output neurons according to the number of gas categories and modifying the output layer activation functions to support concentration prediction tasks. All other hyperparameters were kept consistent with those reported in the original studies, ensuring that each model operated under its near-optimal conditions.
Table 6 presents the classification and prediction performance of all compared methods. The reported inference time represents the median value over 1000 single-sample predictions. The following observations can be drawn from the results.
Table 6.
Performance of the compared methods on Dataset I.
(1) In the gas classification task, KNN and SVC achieved accuracies of 81.67% and 91.11%, respectively, while ELM(C) only reached 47.78%. In the concentration prediction task, SVR and ELM(R) obtained overall R2 values of 0.9520 and 0.9593, respectively, accompanied by relatively high RMSE and MAE. These results indicate limited capability in modeling complex nonlinear relationships, attributed to the fact that traditional methods rely on handcrafted features and static mappings that are insufficient to capture the dynamic characteristics of gas sensor responses.
(2) As most deep learning models have achieved performance saturation in classification, the prediction task provides a more discriminative evaluation. Regarding regression performance, recurrent-based models such as 2L-ARNN, PMH-TCN and A-GRU achieved overall R2 values of 0.9582, 0.9699, and 0.9632, respectively, with RMSE values all exceeding 10. This may be due to their limited ability to extract critical features and their susceptibility to information attenuation over long sequences. In contrast, convolution-based models, including 1D-CNN and 3D-CNN, achieved higher overall R2 values of 0.9877 and 0.9942, respectively, with RMSE reduced to 7.4834 and 5.7612, and significantly lower MAE, indicating strong capability in local feature extraction. The hybrid DWCNN-LSTM model yielded an overall R2 of 0.9793, with RMSE and MAE values that compare favorably against several competing approaches. By comparison, the proposed model achieved the best performance across all evaluation metrics, with an overall R2 of 0.9897 and R2 values of 0.9720 (C2H4), 0.9979 (CO), and 0.9897 (CH4). In addition, it attained the lowest RMSE and MAE, indicating superior prediction accuracy, more concentrated error distribution, and improved stability. This superior performance is attributed to its effective integration of multi-scale feature extraction with temporal dynamic modeling, thereby capturing the complex relationships in gas response processes.
(3) Although conventional methods and highly efficient convolutional models such as 3D-CNN achieve extremely fast inference (0.017 ms), the proposed model attains an inference time of 2.8885 ms, which remains well within the millisecond range. The end-to-end latency of the proposed method is quantified as , where (60–180 s) is the inherent physical sensor rising time, (0.2–0.5 s) is the steady-state confirmation window, and (2.89 ms) is the model execution time. As the algorithmic delay (<3 ms) is negligible compared to the physical response, the total latency is governed by sensor kinetics rather than computational complexity, achieving >50% reduction in measurement cycle versus traditional methods (300–600 s) by eliminating the prolonged steady-state holding and recovery phases.
5.2. Ablation Experiment
To validate the effectiveness of the proposed model combination strategy, systematic ablation experiments were conducted for both the classification and prediction models, with results presented in Figure 15 and Table 7.
Figure 15.
Testing loss of different classification models over epochs on Dataset I.
Table 7.
Performance metrics for gas concentration prediction in ablation experiments on Dataset II.
For the classification model, the performance of the original CNN, GADF-CNN, GASF-CNN, and the fused model (GASF+GADF-CNN) was systematically compared. Compared with the conventional CNN operating directly on raw time-series data, the introduction of GADF or GASF transformations led to faster convergence during early training stages and a more pronounced reduction in loss. This indicates that GAF-based representations enhance the structural information of the input, thereby improving feature discriminability and accelerating the optimization process. Furthermore, the fused model integrating both GADF and GASF achieved the fastest convergence throughout training, stabilizing after approximately 30 epochs. In terms of convergence stability, the original CNN exhibits noticeable fluctuations during the middle and late training stages, including occasional spikes in loss, suggesting an unstable optimization process. In contrast, both GADF-CNN and GASF-CNN show smoother loss curves, while the fused model demonstrates nearly fluctuation-free behavior. This confirms that feature fusion effectively enhances model robustness.
To further evaluate the contribution of each key module in the proposed prediction framework, ablation experiments were conducted on the challenging low-concentration Dataset II, including A-CNN, CNN-GRU, and the hybrid A-CNN-GRU model. The results are summarized in Table 7. All individual models achieve relatively high prediction accuracy but exhibit trade-offs across different evaluation metrics. The A-CNN model attains the lowest MAE (0.4225), indicating superior performance in controlling average error; however, its lower R2 (0.9618) suggests limited capability in capturing the overall data distribution. By incorporating temporal modeling, the CNN-GRU model improves R2 to 0.9771, demonstrating enhanced ability to characterize the dynamic response of gas signals. Nevertheless, its RMSE and MAE remain slightly higher than the optimal values, reflecting residual prediction variability.
In contrast, the proposed A-CNN-GRU model achieves the best overall performance, with RMSE significantly reduced to 0.7794 and R2 elevated to 0.9860, indicating a superior balance between fitting accuracy and error control. Although its MAE is marginally higher than that of A-CNN, the overall error is lower and more stable, demonstrating enhanced generalization capability. This improvement can be attributed to the effective integration of convolutional feature extraction and GRU-based temporal modeling, enabling comprehensive capture of complex dynamic patterns in gas sensor responses. Experimental results confirm that the introduced modules in the proposed framework are complementary rather than redundant. Their integration enhances performance across varying task complexities and environmental conditions, providing a robust foundation for gas identification and concentration prediction in electronic nose systems.
5.3. The Impact of Data Length on Model Performance
To investigate the minimum data requirements for reliable gas identification and quantification, we evaluated the impact of input sequence length on model performance using Dataset I. The complete rising segment (spanning from exposure onset through the rising transient to the initial steady-state establishment) was divided into four equal intervals, yielding experimental groups utilizing 1/4, 2/4, 3/4, and the full (4/4) of this rising segment as model inputs. All preprocessing parameters and model architectures remained consistent with Section 2.2 and Section 4.1.
Figure 16a illustrates the variation in test loss with training epochs for the gas classifier under different input lengths. When utilizing only the initial 1/4 of the rising segment, the model fails to achieve numerical convergence due to a severe lack of discriminative features, resulting in unstable loss values throughout training. For the 2/4 and 3/4 length segments, while eventual convergence is achieved, the onset of convergence is delayed by approximately 20 epochs compared to the full-length identification model, accompanied by significant loss fluctuations during the training process. The prediction model utilizing the complete rising segment exhibits rapid convergence within the first 200 epochs and maintains stable, low-loss values thereafter. This indicates that pushing too hard to minimize data length comes at the cost of fitting robustness.
Figure 16.
Variation in test loss with epoch under different data lengths (a) gas classifier (b) concentration predictor.
The concentration prediction performance under varying input lengths is presented in Figure 16b and quantified in Table 8. As the input length decreases, prediction accuracy deteriorates across all gas species. Taking CO as an example, the RMSE at 2/4 length (27.22) is 9.4 times that of the full length (2.90). The sensitivity to sampling length varies across different gas species. For instance, while CH4 retains a certain degree of predictive capability at 2/4 length (R2 = 0.9618), the performance for C2H4 is markedly inferior (R2 = 0.7665). This disparity reflects the diverse adsorption kinetic characteristics of different gas molecules; premature truncation of sampling creates blind spots for gases with slower response rates. The experiments confirm that utilizing the complete rising data segment is the effective length required to ensure the successful completion of identification and prediction tasks in complex gas mixture scenarios.
Table 8.
Evaluation metrics of prediction performance on the test set for different data segments in Dataset I.
6. Conclusions
This study proposes a dual-model framework for rapid gas identification and concentration estimation in electronic nose systems. A composite Gramian Angular Field representation fusing GASF and GADF is introduced to transform time-series sensor data into discriminative two-dimensional feature maps, enabling end-to-end gas classification via a CNN-based classifier. For concentration prediction, an attention-augmented CNN–Bi-GRU architecture is developed to capture multi-scale spatial features and bidirectional temporal dependencies. Furthermore, a cascaded identification–prediction scheme is proposed to mitigate cross-category prediction bias arising from heterogeneous data distributions in single-gas scenarios. A key advantage of this framework is that it obviates the need for complete sensor response cycles, enabling rapid and accurate identification and quantification by leveraging the rising phase from initial exposure to early steady state. The effectiveness of the proposed method is validated on three publicly available datasets and a dataset collected in our lab. Experimental results demonstrate that the classification model achieves 100% accuracy across all evaluation scenarios, while the concentration predictor exhibits excellent quantitative reliability across diverse gases and concentration ranges.
In future work, we will extend the framework to complex multi-component mixtures beyond binary combinations, further reduce sensing latency through early transient feature analysis and lightweight architecture design, and advance embedded system deployment and real-world testing under practical operating constraints.
Author Contributions
Conceptualization, W.H. and Q.W.; Data Curation, W.H.; Formal Analysis, W.H., W.X. and Q.W.; Investigation, W.H. and W.X.; Methodology, W.H.; Resources, Q.W.; Supervision, Q.W.; Validation, W.H.; Visualization, W.H. and W.X.; Writing—Original Draft, W.H.; Writing—Review and Editing, Q.W. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by the National Natural Science Foundation of China (No. 62333008).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author(s).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Park, K.; Choi, S.; Chae, H.; Park, C.; Lee, S.; Lim, Y.; Shin, H.; Kim, J. An Energy-Efficient Multimode Multichannel Gas-Sensor System with Learning-Based Optimization and Self-Calibration Schemes. IEEE Trans. Ind. Electron. 2020, 67, 2402–2410. [Google Scholar] [CrossRef] [Scilit]
- Tamaekong, N.; Liewhiran, C.; Wisitsoraat, A.; Phanichphant, S. Flame-Spray-Made Undoped Zinc Oxide Films for Gas Sensing Applications. Sensors 2010, 10, 7863–7873. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Guo, D.; Zhang, D.; Li, N.; Zhang, L.; Yang, J. A Novel Breath Analysis System Based on Electronic Olfaction. IEEE Trans. Biomed. Eng. 2010, 57, 2753–2763. [Google Scholar] [CrossRef] [Scilit]
- Yan, K.; Zhang, D.; Wu, D.; Wei, H.; Lu, G. Design of a Breath Analysis System for Diabetes Screening and Blood Glucose Level Prediction. IEEE Trans. Biomed. Eng. 2014, 61, 2787–2795. [Google Scholar] [CrossRef] [Scilit]
- Xing, Y.; Vincent, T.; Cole, M.; Gardner, J. Real-Time Thermal Modulation of High Bandwidth MOX Gas Sensors for Mobile Robot Applications. Sensors 2019, 19, 1180. [Google Scholar] [CrossRef] [Scilit]
- Li, C.; Liu, Y.; Cheng, B.; Zhang, Y.; Liu, X.; Qu, Y.; An, J.; Kong, L.; Zhang, Y.; Zhang, C.; et al. A comprehensive investigation on volatile organic compounds (VOCs) in 2018 in Beijing, China: Characteristics, sources and behaviours in response to O3 formation. Sci. Total Environ. 2022, 806, 150247. [Google Scholar] [CrossRef] [Scilit]
- Huang, Y.; Gao, S.; Wu, S.; Che, X.; Yang, Y.; Gu, J.; Tan, W.; Ruan, D.; Xiu, G.; Fu, Q. Stationary monitoring and source apportionment of VOCs in a chemical industrial park by combining rapid direct-inlet MSs with a GC-FID/MS. Sci. Total Environ. 2021, 795, 148639. [Google Scholar] [CrossRef] [Scilit]
- Chattopadhyay, A.; Huertas, A.; Rebeiro-Hargrave, A.; Fung, P.; Varjonen, S.; Hieta, T.; Tarkoma, S.; Petaja, T. Low-Cost Formaldehyde Sensor Evaluation and Calibration in a Controlled Environment. IEEE Sens. J. 2022, 22, 11791–11802. [Google Scholar] [CrossRef] [Scilit]
- Gao, J.; Hu, Z.; Bian, K.; Mao, X.; Song, L. AQ360: UAV-Aided Air Quality Monitoring by 360-Degree Aerial Panoramic Images in Urban Areas. IEEE Internet Things J. 2021, 8, 428–442. [Google Scholar] [CrossRef] [Scilit]
- Hewavitharana, G.; Perera, D.; Navaratne, S.; Wickramasinghe, I. Extraction methods of fat from food samples and preparation of fatty acid methyl esters for gas chromatography: A review. Arab. J. Chem. 2020, 13, 6865–6875. [Google Scholar] [CrossRef] [Scilit]
- Marriott, P.; Chin, S.; Maikhunthod, B.; Schmarr, H.; Bieri, S. Multidimensional gas chromatography. Trac-Trends Anal. Chem. 2012, 34, 1–21. [Google Scholar] [CrossRef] [Scilit]
- Dey, A. Semiconductor metal oxide gas sensors: A review. Mater. Sci. Eng. B-Adv. Funct. Solid-State Mater. 2018, 229, 206–217. [Google Scholar] [CrossRef] [Scilit]
- Adib, M.; Kondalkar, V.; Lee, K. Development of Highly Sensitive Ethane Gas Sensor Based on 3D WO3 Nanocone Structure Integrated with Low-Powered In-Plane Microheater and Temperature Sensor. Adv. Mater. Technol. 2020, 5, 2000009. [Google Scholar] [CrossRef] [Scilit]
- Qu, C.; Liu, C.; Gu, Y.; Chai, S.; Feng, C.; Chen, B. Open-set gas recognition: A case-study based on an electronic nose dataset. Sens. Actuators B-Chem. 2022, 360, 131652. [Google Scholar] [CrossRef] [Scilit]
- Rashid, F.; Maamor, H.; Zakaria, N.; Yusuf, N.; Adnan, K.; Zakaria, A.; Kamarudin, L.; Shakaff, A. Electronic Nose as the Rapid Technique for Aroma Assesment of Vegetable Oils. In IEEE Conference on Wireless Sensor (ICWISE), Kuching, Malaysia, 2–4 December 2013; IEEE: New York, NY, USA, 2013; pp. 130–133. [Google Scholar]
- Shooshtari, M.; Salehi, A. An electronic nose based on carbon nanotube-titanium dioxide hybrid nanostructures for detection and discrimination of volatile organic compounds. Sens. Actuators B-Chem. 2022, 357, 131418. [Google Scholar] [CrossRef] [Scilit]
- Núñez-Carmona, E.; Abbatangelo, M.; Zottele, I.; Piccoli, P.; Tamanini, A.; Comini, E.; Sberveglieri, G.; Sberveglieri, V. Nanomaterial Gas Sensors for Online Monitoring System of Fruit Jams. Foods 2019, 8, 632. [Google Scholar] [CrossRef] [Scilit]
- Tang, K.; Chiu, S.; Pan, C.; Hsieh, H.; Liang, Y.; Liu, S. Development of a Portable Electronic Nose System for the Detection and Classification of Fruity Odors. Sensors 2010, 10, 9179–9193. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Han, Y. A New Mixed-Gas-Detection Method Based on a Support Vector Machine Optimized by a Sparrow Search Algorithm. Sensors 2022, 22, 8977. [Google Scholar] [CrossRef] [Scilit]
- Laref, R.; Losson, E.; Sava, A.; Adjallah, K.; Siadat, M. A comparison between SVM and PLS for E-nose based gas concentration monitoring. In 19th IEEE International Conference on Industrial Technologies (ICIT), Lyon, France, 19–22 February 2018; IEEE: New York, NY, USA, 2018; pp. 1335–1339. [Google Scholar] [CrossRef] [Scilit]
- Zheng, Z.; Yang, Y.; Niu, X.; Dai, H.; Zhou, Y. Wide and Deep Convolutional Neural Networks for Electricity-Theft Detection to Secure Smart Grids. IEEE Trans. Ind. Inform. 2018, 14, 1606–1615. [Google Scholar] [CrossRef] [Scilit]
- Roy, S.; Krishna, G.; Dubey, S.; Chaudhuri, B. HybridSN: Exploring 3-D-2-D CNN Feature Hierarchy for Hyperspectral Image Classification. IEEE Geosci. Remote Sens. Lett. 2020, 17, 277–281. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Meng, Q.; Zhang, X. Data Processing for Multiple Electronic Noses Using Sensor Response Visualization. IEEE Sens. J. 2018, 18, 9360–9369. [Google Scholar] [CrossRef] [Scilit]
- Zhang, W.; Wang, L.; Chen, J.; Xiao, W.; Bi, X. A Novel Gas Recognition and Concentration Detection Algorithm for Artificial Olfaction. IEEE Trans. Instrum. Meas. 2021, 70, 2509514. [Google Scholar] [CrossRef] [Scilit]
- Acharyya, S.; Nag, S.; Guha, P. Ultra-selective tin oxide-based chemiresistive gas sensor employing signal transform and machine learning techniques. Anal. Chim. Acta 2022, 1217, 339996. [Google Scholar] [CrossRef] [Scilit]
- Djedidi, O.; Djeziri, M.; Morati, N.; Seguin, J.; Bendahan, M.; Contaret, T. Accurate detection and discrimination of pollutant gases using a temperature modulated MOX sensor combined with feature extraction and support vector classification. Sens. Actuators B-Chem. 2021, 339, 129817. [Google Scholar] [CrossRef] [Scilit]
- Zhang, T.; Lin, S.; Zhou, Y.; Hu, J. Several ML Algorithms and Their Feature Vector Design for Gas Discrimination and Concentration Measurement with an Ultrasonically Catalyzed MOX Sensor. ACS Sens. 2023, 8, 665–672. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Ren, T.; Meng, F. Research on binary gas intelligent identification method based on convolutional neural network and temperature dynamic modulation. Sens. Actuators B-Chem. 2024, 418, 136192. [Google Scholar] [CrossRef] [Scilit]
- Costantini, G.; Cesarini, V.; Robotti, C.; Benazzo, M.; Pietrantonio, F.; Di Girolamo, S.; Pisani, A.; Canzi, P.; Mauramati, S.; Bertino, G.; et al. Deep learning and machine learning-based voice analysis for the detection of COVID-19: A proposal and comparison of architectures. Knowl.-Based Syst. 2022, 253, 109539. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Feng, Z.; Wu, F.; Zhao, L. A Multitask Electronic Nose Data Processing Model Based on Transformer Encoder. IEEE Sens. J. 2024, 24, 6482–6489. [Google Scholar] [CrossRef] [Scilit]
- Zhang, K.; Ning, W.; Zhu, Y.; Li, Z.; Wang, T.; Jiang, W.; Zeng, M.; Yang, Z. Gaussian-Linearized Transformer with Tranquilized Time-Series Decomposition Methods for Fault Diagnosis and Forecasting of Methane Gas Sensor Arrays. Appl. Sci. 2024, 14, 218. [Google Scholar] [CrossRef] [Scilit]
- Zhang, W.; Wang, L.; Chen, J.; Bi, X.; Chen, C.; Zhang, J.; Hans, V. A Novel Gas Recognition and Concentration Estimation Model for an Artificial Olfactory System with a Gas Sensor Array. IEEE Sens. J. 2021, 21, 18459–18468. [Google Scholar] [CrossRef] [Scilit]
- Fonollosa, J. Gas Sensor Array Exposed to Turbulent Gas Mixtures [Dataset]; UCI Machine Learning Repository: Irvine, CA, USA, 2014. [Google Scholar] [CrossRef]
- Burgus, J. Gas Sensor Array Temperature Modulation [Dataset]; UCI Machine Learning Repository: Irvine, CA, USA, 2018. [Google Scholar] [CrossRef]
- Fonollosa, J. Twin Gas Sensor Arrays [Dataset]; UCI Machine Learning Repository: Irvine, CA, USA, 2016. [Google Scholar] [CrossRef]
- Wang, Z.; Oates, T. Imaging Time-Series to Improve Classification and Imputation. In 1st International Workshop on Social Influence Analysis/24th International Joint Conference on Artificial Intelligence (IJCAI), Buenos Aires, Argentina, 25–31 July 2015; ACM: New York, NY, USA, 2015; pp. 3939–3945. [Google Scholar]
- Pan, X.; Zhang, Z.; Zhang, H.; Wen, Z.; Ye, W.; Yang, Y.; Ma, J.; Zhao, X. A fast and robust mixture gases identification and concentration detection algorithm based on attention mechanism equipped recurrent neural network with double loss function. Sens. Actuators B-Chem. 2021, 342, 129982. [Google Scholar] [CrossRef] [Scilit]
- Zhuo, J.; Chen, X.; Zhang, H.; Wang, X.; Wu, P.; Yue, J.; Xia, X.; Lyu, Z.; Chu, J. Rapid and high-accuracy concentration prediction of gas mixtures based on PMH-TCN. Measurement 2025, 242, 116003. [Google Scholar] [CrossRef] [Scilit]
- Jia, Y.; Fan, S.; Li, Z.; Xia, K. A Fast Detection Method of Turbulent Gases Based on Gated Recurrent Unit and Attention Mechanism. IEEE Sens. J. 2023, 23, 5974–5987. [Google Scholar] [CrossRef] [Scilit]
- Zhao, X.; Wen, Z.; Pan, X.; Ye, W.; Bermak, A. Mixture Gases Classification Based on Multi-Label One-Dimensional Deep Convolutional Neural Network. IEEE Access 2019, 7, 12630–12637. [Google Scholar] [CrossRef] [Scilit]
- Pareek, V.; Chaudhury, S.; Singh, S. Hybrid 3DCNN-RBM Network for Gas Mixture Concentration Estimation with Sensor Array. IEEE Sens. J. 2021, 21, 24263–24273. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.

















