Next Article in Journal
Nanoparticle-Mediated Signaling for Aptamer-Based Multiplexed Detection of Cortisol and Neuropeptide Y in Serum
Next Article in Special Issue
QCM Measurements of RH with Nanostructured Carbon-Based Materials: Part 1—Theory and Model
Previous Article in Journal
Chalcone-Based Colorimetric Chemosensor for Detecting Ni2+
Previous Article in Special Issue
UV-Activated NO2 Gas Sensing by Nanocrystalline ZnO: Mechanistic Insights from Mass Spectrometry Investigations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Neural Network Robustness Analysis Using Sensor Simulations for a Graphene-Based Semiconductor Gas Sensor †

1
Infineon Technologies AG, 85579 Neubiberg, Germany
2
Institute for Integrated Circuits, Johannes Kepler University Linz, 4040 Linz, Austria
3
Department of Electrical and Computer Engineering, Technical University of Munich, 80333 Munich, Germany
4
Software Competence Center Hagenberg GmbH (SCCH), 4232 Hagenberg, Austria
*
Authors to whom correspondence should be addressed.
An initial study on a topic related to this paper has been published as a conference paper. Bahri, Y.; Schober, S.A.; Carbonelli, C.; Wille, R. Temperature Stability Investigations of Neural Network Models for Graphene-Based Gas Sensor Devices. In Proceedings of the 8th International Electronic Conference on Sensors and Applications, 1–15 November 2021; MDPI: Basel, Switzerland. https://doi.org/10.3390/ecsa-8-11250.
Chemosensors 2022, 10(5), 152; https://doi.org/10.3390/chemosensors10050152
Submission received: 16 February 2022 / Revised: 27 March 2022 / Accepted: 3 April 2022 / Published: 21 April 2022
(This article belongs to the Special Issue Gas Sensors: Simulation, Modeling, and Characterization)

Abstract

:
Despite their advantages regarding production costs and flexibility, chemiresistive gas sensors often show drawbacks in reproducibility, signal drift and ageing. As pattern recognition algorithms, such as neural networks, are operating on top of raw sensor signals, assessing the impact of these technological drawbacks on the prediction performance is essential for ensuring a suitable measuring accuracy. In this work, we propose a characterization scheme to analyze the robustness of different machine learning models for a chemiresistive gas sensor based on a sensor simulation model. Our investigations are structured into four separate studies: in three studies, the impact of different sensor instabilities on the concentration prediction performance of the algorithms is investigated, including sensor-to-sensor variations, sensor drift and sensor ageing. In a further study, the explainability of the machine learning models is analyzed by applying a state-of-the-art feature ranking method called SHAP. Our results show the feasibility of model-based algorithm testing and substantiate the need for the thorough characterization of chemiresistive sensor algorithms before sensor deployment in order to ensure robust measurement performance.

Graphical Abstract

1. Introduction

Chemiresistive gas sensors are important technologies for environmental monitoring and other application fields since they combine advantages in their cost of production with their flexibility [1]. In its basic form, such a sensor device consists of a sensing layer, which molecules in the air can adsorb onto or desorb from. Adsorption and desorption processes have a direct impact on the electrical properties of the sensing layer, such as its resistivity/conductance [2]. These properties are measured and combined with suitable pattern recognition algorithms in order to translate them into either a classification guess or a concentration estimate [3].
The development process of such sensors typically involves the thorough characterization of the sensor material and the analysis of its hardware components. The characterization of the functional materials can involve spectroscopic techniques [4,5], such as X-Ray Diffraction, as demonstrated for a tin-oxide material by Kim et al. [6], or Raman spectroscopy, such as that investigated for a graphene-based material by Travan et al. [7]. Apart from the material properties themselves, other components of the sensor are also analyzed. As chemiresistive gas sensors mostly include microheaters [8], there has been a large effort in characterizing the heating properties, such as the temperature distribution on the material, by means of FEM, for example [9,10]. The results obtained by the described characterization procedures can help to develop models for the studied sensor. This is usually achieved by fitting experimental measurements to the model equations, taking the material-specific effects derived from the characterization into consideration [11,12,13,14].
Despite the availability of a number of techniques for the characterization of hardware components, only a few studies on such techniques have been proposed regarding focusing on the characterization of the algorithms responsible for gas prediction. Moreover, the available studies that provide an analysis of algorithm characteristics, such as their robustness to different sensor instabilities, tend to focus on standardized techniques, such as Principal Component Analysis (PCA) or Linear Discriminant Analysis (LDA) [15,16]. The above-mentioned methods are the standard choice when it comes to proving and assessing the separability performance of new sensing materials [17,18,19,20]. Nevertheless, algorithms for chemiresistive gas sensors have progressed over the years and neural networks have become more common in the field of environmental monitoring [21,22,23,24]. As a consequence, a literature gap has arisen on techniques to assess and explain the validity of these more complex and less transparent models in terms of their robustness.
In this work, we aim at characterizing smart chemiresistive gas sensors from a new perspective. Instead of analyzing the sensor material or its hardware, we thoroughly characterize the algorithms operating on top of the sensors. The main focus of our investigations lies on the explainability of these algorithms, as well as their robustness to the different instabilities that prototypical technologies typically entail. The goal is to provide a full evaluation scheme for different algorithm types and for chemiresistive gas sensors by adopting a system-level simulator previously developed for the investigated sensor device. Our main contributions are:
  • The investigation of a state-of-the-art feature ranking method and its usefulness to make neural network algorithms for chemiresistive gas sensors explainable.
  • The study and the quantification of the impact of sensor-to-sensor variations at the production stage on the performance of a set of different machine learning algorithms.
  • An analysis of the performance degradation of different prediction algorithms in the presence of multiplicative and additive baseline drift.
  • An examination of the effect of chemiresistive sensor ageing and its impact on algorithm accuracy.
The experimental evidence of our contributions is structured into four different studies. Each of the studies contains an additional overview of the related work in the specific area in the Materials and Methods section. The studies share the same data configuration in terms of concentration profiles, which is provided by a simulation model of a graphene-based chemiresistive gas sensor that we developed in previous research [14,25]. Furthermore, the techniques that we present throughout this paper are designed to be model-agnostic, which means that they are also applicable for other pattern recognition algorithms, which are not part of our study setup.
The structure of our paper is as follows: In Section 2, we introduce the methodology of our investigations, which includes the choice of the machine learning models, the simulation data setup and the evaluation metrics. Moreover, the feature ranking method, SHAP, for the explainable AI study is introduced, as well as the simulation methods for the sensor instability experiments for the three remaining studies, as illustrated in Figure 1. Section 3 presents the results and discussion of the conducted studies. The conclusions are then provided in Section 4.

2. Materials and Methods

This section aims to provide an overview of the methodology of the different studies. First, the general data setup, the machine learning models and the error metrics are presented. Subsequently, SHAP, a feature ranking technique used for machine learning model explainability, is introduced. Afterwards, the different instability scenarios simulated for the robustness evaluation are described.

2.1. Regression Models Based on Sensor Simulations

2.1.1. Machine Learning Models

The prediction of concentration levels or gas types based on chemiresistive sensor measurements relies on regression algorithms. Throughout the last few decades, a variety of different machine learning techniques have been studied and applied for such a prediction task [26]. Frequently used techniques include k-NN Regression, Support Vector Machines/Regression and (Artificial) Neural Network models. The latter methods describe a class of algorithmic structures, which consist of neurons and edges, intended to approximate decision/regression functions. This is achieved by fitting the numerous parameters of the neural networks to the regression task by means of the backpropagation algorithm.
The simplest implementation of a neural network is a feed-forward neural network or multilayer perceptron (MLP), which has been extensively used for gas sensing purposes [21,22,27]. It consists of an input layer, a varying number of hidden layers and an output layer. Each layer consists of a varying number of neurons, which are interconnected with edges from layer-to-layer with different weights. The input data are forwarded through the network structure and the regression or classification output is generated in the output layer. For gas sensing applications, the output describes a gas classification or a concentration estimate.
Other frequently used neural network architectures for gas sensing are the so-called recurrent neural networks (RNNs) [28,29]. RNNs are designed to process time-series data by introducing neuron connections between time steps. To avoid unwanted effects, such as the vanishing gradient problem, Long-Short-Term Memory (LSTM) cells or Gated Recurrent Units (GRUs) are attractive alternatives for the neurons’ implementation.
In this work, four different regression algorithms have been considered for the regression task and compared throughout the proposed studies:
  • SVR: Support Vector Regression
  • MLP: Multilayer Perceptron
  • GRU: RNN using GRU cells
  • LSTM: RNN using LSTM cells
In the literature, all four model types appear to be effective for the task of gas concentration estimation and vary in different characteristics, such as the complexity and input data configuration. SVR and MLP only take the current data sample as input data, whereas the GRU and LSTM approaches process a temporal history of 25 data samples for one prediction. Moreover, the SVR approach is considerably more compact in terms of computing complexity and memory footprint than the MLP and even more so than the GRU or LSTM models. The three neural network approaches all have one hidden layer containing 50 neurons. During training, early stopping and a learning rate scheduler have been used as callbacks. The root mean square error was used as training loss.

2.1.2. Data Configuration

In this part, an overview of the different datasets that have been used for the model training and the performance evaluation is given. The data were generated by using a stochastic sensor model that was developed for a graphene-based chemiresistive gas sensor in prior research [14,25]. The simulation technique requires the concentration profile and the temperature modulation as an input and generates the response for three different sensor functionalizations as an output. Additional parameters that influence the measurement properties of the sensor array can additionally be altered from the calibrated parameters in order to simulate deviations from the normal sensor behavior, such as the sensitivity.
Throughout our studies, three different ozone concentration profiles were simulated for training, validation and testing. These concentration profiles are divided into differently shaped subprofiles. In order to create the dataset, several sequences of these subprofiles have been created and simulated. The different subprofiles for the training, validation and test dataset are shown in Figure 2. The reason for generating several permutations of these subprofiles is to prevent models from overfitting and to decrease drift-related effects due to slow recovery as well.
In terms of feature engineering, different types of input data have been used. The raw signals from three different simulated sensor materials with different functionalization and pulsed temperature modulation between two temperatures ( T l o w = 65 °C, T h i g h = 135 °C) have been preprocessed by removing the high-temperature signals and averaging the remaining signal over a certain time scale. Each data point represents 20 s of measurements. Furthermore, the three derivatives of the sensor signals have been calculated and used as an input. Additionally, so-called energy vectors have been calculated and used as an input as well [30,31]. These data points represent the energy between every combinatorial subset of two sensor signals. One sample of the energy vector E i j between the i-th and j-th sensor signal is defined by the following equation:
E i j = t 0 t 1 s 1 ( t ) s 2 ( t ) d t
Here, s 1 ( t ) and s 2 ( t ) describe the two sensor resistance signals. In our measurements, the energy vectors are calculated as a discrete sum over several measurement samples. As a feature, energy vectors can additionally stabilize the input data, since they take the history of the measurements, to some degree, into account. This information is especially useful for non-recurrent approaches, such as the MLP or the SVR algorithm.
Overall, the dataset, which was used for the robustness evaluation, contained 11,391 samples for the training set, 3444 samples for the validation set and 3444 samples for the test set. Examples for the data that were used in the different studies are depicted in the supplementary material.

2.1.3. Performance Metrics

Another substantial point in the evaluation process of machine learning models is the choice of metrics to compare the performance of a regression algorithm. These metrics usually map different aspects of the algorithm performance on a scalar value and are more sensitive to certain aspects of the performance than to others. Therefore, we decided to calculate an array of different metrics in order to obtain a detailed picture of the machine learning model performance.
Two metrics that are very commonly used for such purposes are the mean absolute error (MAE) and the root mean square error (RMSE).
MAE = 1 N i = 1 N | y i y ^ i |
RMSE = 1 N i = 1 N y i y ^ i 2
These metrics penalize deviations from the ground truth without additional weights. The RMSE metric, however, is more sensitive to larger deviations and therefore also to outliers.
Furthermore, the R 2 score, also known as the coefficient of determination, was used as a metric.
R 2 = 1 i = 0 N y i y ^ i 2 i = 0 N y i y ¯ 2
As a fourth performance indicator, a relative error metric was used. Specifically, the mean absolute percentage error has been implemented.
MAPE = 100 N i = 0 N | y i y ^ i | y i
Due to its definition, the MAPE metric places an emphasis on the errors in the low-concentration domain, since the denominator has a higher impact on the overall error value for small gas concentrations.

2.2. Shapley Value-Based Feature Ranking for Environmental Sensor Algorithms

Machine learning models, especially neural networks, are capable of combining different types of features in a nonlinear manner to form a classification guess or a prediction. However, the inner reasoning inside of such algorithms is often not comprehensible for the user and the algorithm is perceived as a “black box” [32,33] (as illustrated in Figure 3), which makes technologies relying on such algorithms prone to undesired effects that cannot be determined in the algorithm production stage.
Therefore, explainability methods are necessary to be able to analyze the working principle of the algorithms. For environmental sensors, these considerations apply as well, especially when instabilities in the sensor behavior are likely to occur and are not covered in the training data set.
As far as algorithms for chemiresistive gas sensors are concerned, there have been only few studies trying to tackle the problem of missing explainability. We observe that feature ranking techniques are often used for choosing, enhancing or engineering features. Hayasaka et al. developed a graphene field-effect transistor sensor, which runs a feed-forward neural network architecture for the classification of different vapors. In their work, they used an ANOVA F-test to rank the different sensor features with regard to their importance. They concluded that the electron field-effect mobility was the feature providing the most important information [34]. A second method involving a statistical test for feature ranking was used by Leggieri et al., performing a χ 2 statistical test on their electronic nose input features [35]. Liu et al. used a feature ranking method for filtering out redundancies in the sensor features [36]. Zhan et al. used a signal-to-noise ratio (SNR) method for feature selection for the classification of herbal medicines [37].
In this paper, we resort to a state-of-the-art method to derive the importance of different features on the prediction of gas sensor algorithms. The method that we used for our feature ranking investigations is called SHAP, which was developed by Lundberg et al. [38] and is derived from game theory. Differently from ANOVA, this technique attempts to interpret locally and on an algorithm level how each input feature of a machine learning model contributes to the algorithm’s prediction. In order to quantify the contribution of a feature to the overall prediction, SHAP values need to be calculated by combining features of LIME [39] and the general Shapley values [40]. In order to explain a complex model, SHAP aims to approximate the model locally for an input feature by a linear explanation model g, which describes a linear function with respect to the presence of different subsets of the M features summarized by a so-called coalition vector z { 0 , 1 } M [41]. The feature-specific weights of the linear explanation model ϕ j describe the impact of the j-th feature on the local prediction.
g ( z ) = ϕ 0 + j = 1 M ϕ j z j
The calculation of the feature attributions ϕ i through SHAP for each prediction sample to explain the concrete prediction value is then used to visualize and quantify the importance of each individual feature of the algorithm.

2.3. Simulation of Different Sensor Instabilities

This section focuses on the different simulation techniques and objectives that are to be studied in terms of algorithm robustness. The section on device-specific variations focuses on effects that occur during sensor production and pre-treatment. The part on sensor drift emphasizes the impact of a medium-term effect on the sensor performance. Subsequently, long-term effects are described in the section on sensor ageing.

2.3.1. Sensor-to-Sensor Variations

Reproducibility is an important aspect in the fabrication of chemiresistive gas sensors. In the production process of such devices, it occurs that similarly processed sensors, even from the same batch, show slightly different physical characteristics in their measurement properties when measured in similar conditions [42]. This means that different sensor devices of the same type can show a different reaction, when they are exposed to the exact same concentration profile. In other terms, the sensors produce different signals for the same gas concentrations.
This represents a problem for the development of gas sensor algorithms. The machine learning models that are deployed on new sensor devices are trained on measurements recorded from a small batch of devices or even a single device. When deploying such an algorithm on a new device showing different measurement characteristics, the performance in terms of gas prediction might diminish.
The field in which methods to compensate for such effects are studied is called “Calibration Transfer”. Here, algorithms are investigated that map the signals obtained by slave devices (new sensors, which were not part of the measurement calibration process) to a master device. Different algorithmic techniques were studied by researchers in terms of their performance to achieve calibration transfer for different devices [43,44,45,46,47].
In terms of evaluating the impact of sensor-to-sensor variations on the prediction performance of chemiresistive gas sensors, few studies have been published. Bruins et al. investigated the changes in sensor data heterogeneity, if sensors show temperature shifts compared to each other. Throughout their studies, they conclude that strict temperature control is necessary for chemiresisitve sensor reproducibility and that temperature in general has a rather strong effect on the data heterogeneity compared to morphological variances [48].
In order to study the impact of such sensor-to-sensor variations, we performed different simulations. In the proposed study, we investigated the effect of different sensitivities on the sensor surface and their impact on the algorithm performance. One of the model parameters of our sensor simulation model [14] is the so-called splitting factor. It describes the ratio between sites associated with higher and lower energies on the sensor surface. This ratio can be either influenced by the concrete production process of the sensor material or by the pre-treatment of the material performed on the sensor before release. Variations in these processes ultimately alter the sensor sensitivity.
In our study, we were therefore altering the splitting factor in order to simulate the differences in production and pre-treatment and analyze them in terms of their algorithm performance impact. The test set concentration profile was hence simulated with deviations from the standard parameter between −30% and + 30 % in 5 % steps.
In a second step, we investigated whether additional variation in the training data can increase the robustness of the regression models. To this end, we augmented the training set with additional sensor data simulated with parameter deviations of 15 % and + 15 % . The model was then tested on the test sets of the previous experiment. An overview of the different data configurations of the experiments is shown in Figure 4.

2.3.2. Sensor Drift

In our second study, we analyze the impact of different additive and multiplicative drift states on the sensor algorithm performance. In the literature, Llobet et al. studied the impact of drift and other effects on the sensor measurement features, resorting to a PCA plot for different gas mixtures. The data were obtained by a simulation tool based on PSpice, which was presented in their paper [49]. Brahim-Belhouari et al. evaluated the classification performance of a tin-oxide sensor using a Gaussian mixture model with respect to the additive sensor drift behavior. They found a strong decay in sensor accuracy due to drift and could partially compensate for the accuracy loss by retraining the model, which enhanced the robustness of the algorithm [50]. In another work, Vergara et al. proposed a classifier ensemble technique for drift compensation. In their work, they analyzed the classification performance decay for different classifiers over the course of 36 months without drift compensation. They found that the application of ensemble classifiers for drift compensation can significantly reduce the accuracy decay caused by sensor drift [51].
To carry out our analysis, we altered the original test data signals by applying additive and multiplicative drift of different levels onto the signal. Furthermore, the simulation of the original training, validation and test set was different compared to the other studies. For the dataset of the drift study, a long concentration pulse has been simulated, followed by a short period of time without a gas present, before the actual concentration profiles were simulated. At the beginning of the actual concentration profile, a recalibration of the sensor signals has been performed. This is done in order to reduce the initial drift of the sensor in the dataset and hence obtain a more stable sensor signal, so that the impact of different drift levels can be analyzed without interference of other drift effects.
In order to create a test set with different levels of drift, a definition of the levels for the additive drift is necessary in order to quantify the amount of drift relative to the sensor signal. Since the simulation output signals describe already the relative resistance calibrated to zero, a measure has to be defined, which is relative to the signal itself, in order to measure the magnitude of the additive drift. Therefore, we take the difference between the minimum and the maximum resistance of the training dataset for each sensor as the span of values used for training and apply ratios of this value span to the baseline drift.
d d r i f t = min i { R i , t r a i n } max i { R i , t r a i n }
Here, R describes a vector of the three sensor signals and d d r i f t a vector of three value spans of the signals.
For the multiplicative drift, the signals, which were already calibrated to a baseline around zero, were multiplied with different multiplicative drift values. This influences the value span of the different test measurements and hence produces a multiplicative drift of the sensor signals.
The regression models were trained on the undrifted training set and validation set and then evaluated on the test sets with the different levels of additive and multiplicative drift.

2.3.3. Sensor Ageing

The ageing process of a chemirestive sensor over its lifetime can lead to different effects. In our third study, the ageing process characterized by sensitivity loss is simulated and analyzed. In the literature, Fernandez et al. investigated different sensor damage types and quantified their impact in terms of performance degradation with the mean Fisher score. They concluded that sensor ageing had a significant negative impact on the sensor performance, also in comparison to the other damage types [16]. In another investigation, Skariah et al. studied the impact of ageing of a Mg-doped tin-oxide gas sensor. They could measure a significant decay in the sensor’s response to the target gas of up to 50 % in 96 months [52].
In order to quantify the performance loss of the algorithms due to sensor ageing for our algorithm setup, the test profile was simulated multiple times, with different adsorption sites on the modeled sensor surface continuously covered. Throughout the simulation, these adsorption sites were treated as adsorbed and no new molecules were able to adsorb onto these sites, resulting in lower sensitivity. The simulated sensor signal was recalibrated in the beginning of the simulation, assuming that the simulation process starts after cleaning the still responsive parts of the sensor surface.
The fraction of adsorption sites that were put on hold describes the ageing state in the simulation procedure. The fraction was iterated between 0 and 0.9 in steps of 0.1, where 0.9 represents a sensor, where 90 % of the originally available adsorption sites are continuously adsorbed and non-responsive to new gas molecules. The regression models were trained on the respective profiles without sensor ageing and then tested on the test profile simulated with the different ageing states.

3. Results and Discussion

In this part, the different results of the previously described experiments are presented and discussed. First, the regression performance and explainability of the model without instability effects is shown. Subsequently, the different robustness studies are illustrated.

3.1. Regression Performance and Model Explainability

The different regression models were trained by making use of the training and validation set. Figure 5 shows the predictions of the LSTM model compared to the ground truth of the ozone concentration. Despite the predictions showing some noisy behavior, the overall concentration estimates are in good alignment with the real concentrations.
The results of the Shapley-value-based feature importance analysis are shown in Figure 6. It can be observed that for both RNN approaches, the energy vector features seem to have the main share in the gas estimation procedure as all three of the energy vectors rank the highest for the GRU and the LSTM model. After this, the relative resistance of the first and second sensor (R0 and R1, for the LSTM) and the derivatives of the first and third sensor (drv0 and drv2, for the GRU) play a minor part in the prediction process.
A more detailed analysis of the model output impact depicted in Figure 6c,d shows that the different energy vectors seem to influence the regression outcome in opposite ways. The energy vector of the first and third signal (ev(0, 2)) has a negative impact on the concentration prediction, whereas the other two energy vectors have a positive impact. This suggests that ev(0, 2) is used for the baseline drift compensation of the absolute sensor features, since it lowers the prediction, especially for high energy feature values. It has to be added that a negative impact of the energy vector for high values is needed for drift compensation, since a downwards drift in the resistance signal leads to an upwards drift in the energy vector signal. The other two energy vectors tend to increase the concentration prediction value for high energy vector values, which suggests that they recognize relative changes in the drifting sensor signals.
We note that the focus on one feature group is an important characteristic to monitor during sensor algorithm development. A non-diversification of features can have an impact on the performance of the algorithms in the presence of additional effects, such as sensor instabilities, which might be specifically affecting the corresponding feature group. Finally, we observe that, for each new setup or change to the sensor implementation, a similar analysis should be repeated since the value of different features and hence the observed dependencies are highly dependent on the specific technology characteristics.

3.2. Sensor-to-Sensor Variations

The section on sensor-to-sensor variations is structured into two subsections. In Section 1, the study on the impact of sensitivity changes is shown. Subsequently, the change in sensor performance by augmenting the training dataset with data containing such variations is analyzed.

3.2.1. Sensitivity Variations

For the study on sensitivity variation, machine learning models, which were trained and validated on the standard sensitivity parameter, have been tested on the same test concentration profile simulated with a set of different sensitivity variations. The results are shown in both Figure 7 for the MLP variation and Table 1 for all algorithms.
In Figure 7, it can be seen that, for the MLP algorithm, the variation in the sensitivity parameter has a noticeable effect on the algorithm’s prediction performance. Moreover, when analyzing the different error metrics, the data suggest that the positive and negative deviations from the original sensitivity parameter lead to a performance degradation. A negative deviation seems to lower the prediction accuracy in the higher concentration range, since the relative error appears to be rather stable, while the RMSE shows an increase for negative parameter deviations. The positive sensitivity parameter deviations are shown to have a strong impact on all error metrics. In the simulation, a positive deviation from the sensitivity parameter is connected to a stronger drift behavior. This signal behavior seems to have a stronger effect on the model performance than the enhanced relative sensitivity associated with the negative sensitivity parameter variations.
For the recurrent neural networks, the negative deviations of the temperature parameters seem to have statistically no noticeable negative effect on the prediction performance. For both recurrent architectures, a small increase in the MAE can be seen for positive parameter changes. A reason for this difference towards the other algorithms might be that the focus of the recurrent algorithms on the historical development of the feature values might make them less prone to the lower drift and higher sensitivity characteristics of the negative parameter deviations.

3.2.2. Robustness for Augmented Training Profiles

In an additional experiment, we took the algorithm robustness analysis one step further by investigating whether a more diverse dataset would be capable of increasing the stability of the algorithm to the sensor-to-sensor deviations. By training with both the original training data and the same data with 15 % and + 15 % sensitivity parameter deviation, we performed the same analysis as in the previous section. A comparison between the original results and the results from this more diverse training data case is shown in Figure 8.
It can be observed that training with a diverse dataset has a positive impact on the prediction performance. For the LSTM model shown in Figure 8a, a decrease in the MAE can be seen on both extremes of the parameter deviation scale. The MLP model, which is depicted in Figure 8b, shows a much stronger increase in the prediction performance for the positive sensitivity parameter deviation levels.
Overall, our data show that a diversification of the training dataset can improve, to some extent, the prediction performance in the presence of sensor-to-sensor variations linked to the sensitivity. Depending on the algorithm, the improvement might be limited to certain types of sensitivity changes.

3.3. Drift Effects

In this section, we wish to review the experiments on additive and multiplicative drift and their influence on the gas prediction performance. Figure 9 shows the mean absolute errors for (a) the LSTM model and (b) the MLP model with respect to different levels of additive drift. For both models, a strong decay in prediction performance is observed in the presence of additive drift. The downwards drift leads to a considerably faster increase in MAE than the upwards drift.
It is noted that a peak occurs in the MAE curve at around 75% of additive downwards drift. When comparing the concentration estimation plots for test profiles with lower levels and higher levels of downwards drift, as depicted in Figure 10, clear differences in the prediction behavior are observed. For smaller downwards shifts of the signals, the LSTM model tends to severely overestimate the low concentrations. However, a general alignment with relative concentration changes is still visible. In contrast, for larger downwards shifts of the signals, the LSTM model only predicts in a considerably small concentration range. It is assumed that such strong shifts in absolute signal values are beyond the scope of the trained neural network model and hence lead to unfeasible predictions.
The effect that the upwards drift appears to have a smaller, but still noticeable, impact on the sensing performance might be explained by analyzing the feature importance, as illustrated in Figure 11. This shows that, similarly to the previous model for the sensitivity analysis, the main contributor to the concentration prediction is the energy vector between the first and the third sensor. Additionally, the derivatives are observed to play a stronger role in the prediction as well as the resistance value of the third sensor. During the upwards drift experiment, the energy vectors change less in their absolute values compared to the downwards drift experiment. This means that the state of overestimation observed at low levels of downwards drift is only reached at moderate levels of upwards drift. This might explain the slower decay behavior for the upwards drift experiment.
The evaluation of the performance loss due to multiplicative drift is shown in Figure 12. It is observed that the performance decay of the two different multiplicative drift directions is dependent on the evaluation metric. Overall, for both the LSTM model and the MLP model, the increasing drift seems to have a stronger impact on the model performance than the reducing drift. Only for high levels of multiplicative drift, the MAE of the reducing drift surpasses the increasing drift error. This means that the concentration overestimation due to increasing drift seems to worsen the prediction accuracy more severely than a slight underestimation.
For the MLP, the relative error shows even better performance values at moderate reducing drift values than the non-drifting case, whereas the MAE shows an upwards trend at these drift levels. This is due to a concentration overestimation of the MLP with respect to lower concentrations observed for the non-drifting test set. In this case, the reducing drift enhances the prediction accuracy for the lower concentration domains, while it leads to an underestimation of the higher concentration regions at advanced drift levels.

3.4. Sensor Ageing

In a final study, the impact of sensor ageing on the performance of the different machine learning algorithms was investigated. The results of the simulated scenario are shown in Figure 13 and Figure 14.
The data show that the continuous ageing process clearly decreases the performance of all machine learning models. For all cases, the performance decay process starts quickly at 0.1. For the LSTM, MLP and SVR algorithms, the increase in the MAE becomes slower and finally saturates for higher ageing values above 0.6. The GRU algorithm does not show this saturation behavior.
Furthermore, it is noticeable that the two best-performing models for the sensor data without ageing effects, LSTM and GRU, generate considerably worse results for sensor signals showing advanced levels of sensor ageing than the MLP and SVR models. Since this effect is visible to both RNN models, this indicates that this property is linked to the recurrent nature of the models.
Our experiments show that, in terms of long-term stability, also models performing moderately under normal circumstances can show higher robustness to certain instabilities. In contrast, the more complex RNN approaches, even though better adaptable to the regression task, might need additional ageing compensation techniques in order to increase their robustness.

4. Conclusions

In this work, we developed and presented a scheme for characterizing and testing various machine learning algorithms on smart chemiresistive gas sensor devices in the presence of different instabilities by using a validated sensor model.
It was shown that explainable AI methods, such as SHAP [38], provide significant insights into the roles of the various features in the prediction process. We have also seen that sensor-to-sensor variations due to sensitivity differences can lead to a strong decay in prediction performance, which can only partially be compensated by training set diversification.
Additive and multiplicative drift can lead to a strong decay in the prediction performance. The impact of drift on machine learning models varies among the drift types and the drift direction. Moreover, it was found that the sensitivity loss due to sensor ageing leads to significant performance decays, even having a stronger effect on more complex algorithm architectures.
Overall, our work substantiates the need for a thorough characterization of algorithm robustness when dealing with low-cost chemiresitive gas sensors. Even though models can never capture every detail of a sensor’s complexity, they provide a meaningful and necessary tool for algorithm characterization. In future investigations, the evaluation of sensor robustness shall be further extended to additional effects such as sensor poisoning or environmental changes [53,54].

Supplementary Materials

The following are available at https://www.mdpi.com/article/10.3390/chemosensors10050152/s1, Figure S1: Training Set, Figure S2: Validation Set, Figure S3: Test Set, Figure S4: Test Set with −30% sensitivity parameter deviation, Figure S5: Test Set with +30% sensitivity parameter deviation, Figure S6: Training Set Drift Study, Figure S7: Validation Set Drift Study, Figure S8: Test Set Drift Study, Figure S9: Test Set Drift Study with 50% Additive Downwards Drift, Figure S10: Test Set Drift Study with 50% Multiplicative Increasing Drift, Figure S11: Test Set with 30% Sensor Ageing, Figure S12: Test Set with 70% Sensor Ageing.

Author Contributions

Conceptualization, S.A.S. and C.C.; methodology, S.A.S. and Y.B.; software, Y.B. and S.A.S.; validation, S.A.S. and Y.B.; formal analysis, S.A.S.; investigation, S.A.S. and Y.B.; resources, C.C.; data curation, S.A.S.; writing—original draft preparation, S.A.S. and R.W.; writing—review and editing, R.W.; visualization, S.A.S.; supervision, C.C. and R.W.; project administration, C.C.; funding acquisition, C.C. 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

Synthetic data were used that were generated with a method already cited in the script.

Acknowledgments

This work has partially been supported by the LIT Secure and Correct Systems Lab funded by the State of Upper Austria, as well as by the BMK, BMDW and the State of Upper Austria in the framework of the COMET program (managed by the FFG).

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SVRSupport Vector Regression
MLPMultilayer Perceptron
GRUGated Recurrent Unit
LSTMLong Short-Term Memory
SHAPSHapley Additive exPlanations
MAEMean Absolute Error
RMSERoot Mean Square Error
R 2 Coefficient of Determination
RERelative Error

References

  1. Wilson, A.D.; Baietto, M. Applications and Advances in Electronic-Nose Technologies. Sensors 2009, 9, 5099–5148. [Google Scholar] [CrossRef] [PubMed]
  2. Arshak, K.; Moore, E.; Lyons, G.; Harris, J.; Clifford, S. A review of gas sensors employed in electronic nose applications. Sens. Rev. 2004, 24, 181–198. [Google Scholar] [CrossRef] [Green Version]
  3. Scott, S.M.; James, D.; Ali, Z. Data analysis for electronic nose systems. Microchim. Acta 2006, 156, 183–207. [Google Scholar] [CrossRef]
  4. Degler, D. Trends and Advances in the Characterization of Gas Sensing Materials Based on Semiconducting Oxides. Sensors 2018, 18, 3544. [Google Scholar] [CrossRef] [Green Version]
  5. Gurlo, A.; Riedel, R. In Situ and Operando Spectroscopy for Assessing Mechanisms of Gas Sensing. Angew. Chem. Int. Ed. 2007, 46, 3826–3848. [Google Scholar] [CrossRef]
  6. Kim, S.D.; Kim, B.J.; Yoon, J.H.; Kim, J.S. Design, fabrication and characterization of a low-power gas sensor with high sensitivity to CO gas. J. Korean Phys. Soc. 2007, 51, 2069–2076. [Google Scholar] [CrossRef]
  7. Travan, C.; Bergmann, A. NO2 and NH3 Sensing Characteristics of Inkjet Printing Graphene Gas Sensors. Sensors 2019, 19, 3379. [Google Scholar] [CrossRef] [Green Version]
  8. Bhattacharyya, P. Technological Journey Towards Reliable Microheater Development for MEMS Gas Sensors: A Review. IEEE Trans. Device Mater. Reliab. 2014, 14, 589–599. [Google Scholar] [CrossRef]
  9. Astié, S.; Gué, A.; Scheid, E.; Lescouzères, L.; Cassagnes, A. Optimization of an integrated SnO2 gas sensor using a FEM simulator. Sens. Actuators A Phys. 1998, 69, 205–211. [Google Scholar] [CrossRef]
  10. Hwang, W.J.; Shin, K.S.; Roh, J.H.; Lee, D.S.; Choa, S.H. Development of Micro-Heaters with Optimized Temperature Compensation Design for Gas Sensors. Sensors 2011, 11, 2580–2591. [Google Scholar] [CrossRef] [Green Version]
  11. Bicelli, S.; Depari, A.; Faglia, G.; Flammini, A.; Fort, A.; Mugnaini, M.; Ponzoni, A.; Vignoli, V.; Rocchi, S. Model and Experimental Characterization of the Dynamic Behavior of Low-Power Carbon Monoxide MOX Sensors Operated With Pulsed Temperature Profiles. IEEE Trans. Instrum. Meas. 2009, 58, 1324–1332. [Google Scholar] [CrossRef]
  12. Ghosh, A.; Majumder, S.B. Modeling the sensing characteristics of chemi-resistive thin film semi-conducting gas sensors. Phys. Chem. Chem. Phys. 2017, 19, 23431–23443. [Google Scholar] [CrossRef] [PubMed]
  13. Tang, G.; Navale, S.; Yang, P.; Patil, V.; Stadler, F. Response Curve Modeling of Chemiresistive Gas Sensors by Modified Gompertz Functions. IEEE Sens. J. 2021, 21, 16754–16760. [Google Scholar] [CrossRef]
  14. Schober, S.A.; Carbonelli, C.; Roth, A.; Zoepfl, A.; Travan, C.; Wille, R. Towards a Stochastic Drift Simulation Model for Graphene-Based Gas Sensors. IEEE Sens. J. 2021. [Google Scholar] [CrossRef]
  15. Heszler, P.; Gingl, Z.; Mingesz, R.; Csengeri, A.; Haspel, H.; Kukovecz, A.; Kónya, Z.; Kiricsi, I.; Ionescu, R.; Mäklin, J.; et al. Drift effect of fluctuation enhanced gas sensing on carbon nanotube sensors. Phys. Status Solidi (b) 2008, 245, 2343–2346. [Google Scholar] [CrossRef]
  16. Fernandez, L.; Marco, S.; Gutierrez-Galvez, A. Robustness to sensor damage of a highly redundant gas sensor array. Sens. Actuators B Chem. 2015, 218, 296–302. [Google Scholar] [CrossRef]
  17. Su, P.G.; Li, M.C. Recognition of binary mixture of NO2 and NO gases using a chemiresistive sensors array combined with principal component analysis. Sens. Actuators A Phys. 2021, 331, 112980. [Google Scholar] [CrossRef]
  18. Rasekh, M.; Karami, H.; Wilson, A.D.; Gancarz, M. Classification and Identification of Essential Oils from Herbs and Fruits Based on a MOS Electronic-Nose Technology. Chemosensors 2021, 9, 142. [Google Scholar] [CrossRef]
  19. Alizadeh, T.; Soltani, L.H. Reduced graphene oxide-based gas sensor array for pattern recognition of DMMP vapor. Sens. Actuators B Chem. 2016, 234, 361–370. [Google Scholar] [CrossRef]
  20. Shi, C.; Ye, H.; Wang, H.; Ioannou, D.E.; Li, Q. Precise gas discrimination with cross-reactive graphene and metal oxide sensor arrays. Appl. Phys. Lett. 2018, 113, 222102. [Google Scholar] [CrossRef]
  21. Srivastava, A. Detection of volatile organic compounds (VOCs) using SnO2 gas-sensor array and artificial neural network. Sens. Actuators B Chem. 2003, 96, 24–37. [Google Scholar] [CrossRef]
  22. Lv, P.; Tang, Z.; Wei, G.; Yu, J.; Huang, Z. Recognizing indoor formaldehyde in binary gas mixtures with a micro gas sensor array and a neural network. Meas. Sci. Technol. 2007, 18, 2997–3004. [Google Scholar] [CrossRef]
  23. Zhang, D.; Liu, J.; Jiang, C.; Liu, A.; Xia, B. Quantitative detection of formaldehyde and ammonia gas via metal oxide-modified graphene-based sensor array combining with neural network model. Sens. Actuators B Chem. 2017, 240, 55–65. [Google Scholar] [CrossRef]
  24. Shahid, A.; Choi, J.H.; Rana, A.U.H.S.; Kim, H.S. Least Squares Neural Network-Based Wireless E-Nose System Using an SnO2 Sensor Array. Sensors 2018, 18, 1446. [Google Scholar] [CrossRef] [Green Version]
  25. Schober, S.A.; Carbonelli, C.; Roth, A.; Zoepfl, A.; Wille, R. Towards Drift Modeling of Graphene-Based Gas Sensors Using Stochastic Simulation Techniques. In Proceedings of the 2020 IEEE SENSORS, Rotterdam, The Netherlands, 25–28 October 2020; pp. 1–4. [Google Scholar] [CrossRef]
  26. Bermak, A.; Belhouari, S.B.; Shi, M.; Martinez, D. Pattern recognition techniques for odor discrimination in gas sensor array. Encycl. Sens. 2006, 10, 1–17. [Google Scholar]
  27. Casey, J.G.; Collier-Oxandale, A.; Hannigan, M. Performance of artificial neural networks and linear models to quantify 4 trace gas species in an oil and gas production region with low-cost sensors. Sens. Actuators B Chem. 2019, 283, 504–514. [Google Scholar] [CrossRef]
  28. Čulić Gambiroža, J.; Mastelić, T.; Kovačević, T.; Čagalj, M. Predicting Low-Cost Gas Sensor Readings From Transients Using Long Short-Term Memory Neural Networks. IEEE Internet Things J. 2020, 7, 8451–8461. [Google Scholar] [CrossRef]
  29. Wang, S.; Hu, Y.; Burgués, J.; Marco, S.; Liu, S.C. Prediction of Gas Concentration Using Gated Recurrent Neural Networks. In Proceedings of the 2020 2nd IEEE International Conference on Artificial Intelligence Circuits and Systems (AICAS), Genova, Italy, 31 August–2 September 2020; pp. 178–182. [Google Scholar] [CrossRef]
  30. Vergara, A.; Martinelli, E.; Llobet, E.; Giannini, F.; D’Amico, A.; Di Natale, C. An alternative global feature extraction of temperature modulated micro-hotplate gas sensors array using an energy vector approach. Sens. Actuators B Chem. 2007, 124, 352–359. [Google Scholar] [CrossRef]
  31. Yan, J.; Guo, X.; Duan, S.; Jia, P.; Wang, L.; Peng, C.; Zhang, S. Electronic Nose Feature Extraction Methods: A Review. Sensors 2015, 15, 27804–27831. [Google Scholar] [CrossRef]
  32. Adadi, A.; Berrada, M. Peeking Inside the Black-Box: A Survey on Explainable Artificial Intelligence (XAI). IEEE Access 2018, 6, 52138–52160. [Google Scholar] [CrossRef]
  33. Linardatos, P.; Papastefanopoulos, V.; Kotsiantis, S. Explainable AI: A Review of Machine Learning Interpretability Methods. Entropy 2021, 23, 18. [Google Scholar] [CrossRef] [PubMed]
  34. Hayasaka, T.; Lin, A.; Copa, V.C.; Lopez, L.P.; Loberternos, R.A.; Ballesteros, L.I.M.; Kubota, Y.; Liu, Y.; Salvador, A.A.; Lin, L. An electronic nose using a single graphene FET and machine learning for water, methanol, and ethanol. Microsyst. Nanoeng. 2020, 6, 50. [Google Scholar] [CrossRef] [PubMed]
  35. Camardo Leggieri, M.; Mazzoni, M.; Fodil, S.; Moschini, M.; Bertuzzi, T.; Prandini, A.; Battilani, P. An electronic nose supported by an artificial neural network for the rapid detection of aflatoxin B1 and fumonisins in maize. Food Control 2021, 123, 107722. [Google Scholar] [CrossRef]
  36. Liu, Y.T.; Tang, K.T. A Minimum Distance Inlier Probability (MDIP) Feature Selection Method to Improve Gas Classification for Electronic Nose Systems. IEEE Access 2020, 8, 133928–133935. [Google Scholar] [CrossRef]
  37. Zhan, X.; Guan, X.; Wu, R.; Wang, Z.; Wang, Y.; Li, G. Feature Engineering in Discrimination of Herbal Medicines from Different Geographical Origins with Electronic Nose. In Proceedings of the 2019 IEEE 7th International Conference on Bioinformatics and Computational Biology ( ICBCB), Hangzhou, China, 21–23 March 2019; pp. 56–62. [Google Scholar] [CrossRef]
  38. Lundberg, S.M.; Lee, S.I. A Unified Approach to Interpreting Model Predictions. In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
  39. Ribeiro, M.T.; Singh, S.; Guestrin, C. “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 1135–1144. [Google Scholar] [CrossRef]
  40. Shapley, L.S. A Value for N-Person Games; RAND Corporation: Santa Monica, CA, USA, 1952. [Google Scholar] [CrossRef]
  41. Molnar, C. Interpretable Machine Learning: A Guide for Making Black Box Models Explainable, 2nd ed.; 2022; Available online: christophm.github.io/interpretable-ml-book/ (accessed on 15 February 2022).
  42. Tomic, O.; Ulmer, H.; Haugen, J.E. Standardization methods for handling instrument related signal shift in gas-sensor array measurement data. Anal. Chim. Acta 2002, 472, 99–111. [Google Scholar] [CrossRef]
  43. Wolfrum, E.J.; Meglen, R.M.; Peterson, D.; Sluiter, J. Calibration Transfer Among Sensor Arrays Designed for Monitoring Volatile Organic Compounds in Indoor Air Quality. IEEE Sens. J. 2006, 6, 1638–1643. [Google Scholar] [CrossRef]
  44. Laref, R.; Losson, E.; Sava, A.; Siadat, M. Support Vector Machine Regression for Calibration Transfer between Electronic Noses Dedicated to Air Pollution Monitoring. Sensors 2018, 18, 3716. [Google Scholar] [CrossRef] [Green Version]
  45. Yan, K.; Zhang, D. Improving the transfer ability of prediction models for electronic noses. Sens. Actuators B Chem. 2015, 220, 115–124. [Google Scholar] [CrossRef]
  46. Fonollosa, J.; Fernández, L.; Gutiérrez-Gálvez, A.; Huerta, R.; Marco, S. Calibration transfer and drift counteraction in chemical sensor arrays using Direct Standardization. Sens. Actuators B Chem. 2016, 236, 1044–1053. [Google Scholar] [CrossRef] [Green Version]
  47. Miquel-Ibarz, A.; Burgués, J.; Marco, S. Global calibration models for temperature-modulated metal oxide gas sensors: A strategy to reduce calibration costs. Sens. Actuators B Chem. 2022, 350, 130769. [Google Scholar] [CrossRef]
  48. Bruins, M.; Gerritsen, J.W.; van de Sande, W.W.; van Belkum, A.; Bos, A. Enabling a transferable calibration model for metal-oxide type electronic noses. Sens. Actuators B Chem. 2013, 188, 1187–1195. [Google Scholar] [CrossRef]
  49. Llobet, E.; Rubio, J.; Vilanova, X.; Brezmes, J.; Correig, X.; Gardner, J.; Hines, E. Electronic nose simulation tool centred on PSpice. Sens. Actuators B Chem. 2001, 76, 419–429. [Google Scholar] [CrossRef]
  50. Brahim-Belhouari, S.; Bermak, A.; Chan, P. Gas identification with microelectronic gas sensor in presence of drift using robust GMM. In Proceedings of the 2004 IEEE International Conference on Acoustics, Speech, and Signal Processing, Montreal, QC, Canada, 17–21 May 2004; Volume 5, p. V-833. [Google Scholar] [CrossRef]
  51. Vergara, A.; Vembu, S.; Ayhan, T.; Ryan, M.A.; Homer, M.L.; Huerta, R. Chemical gas sensor drift compensation using classifier ensembles. Sens. Actuators B Chem. 2012, 166–167, 320–329. [Google Scholar] [CrossRef]
  52. Skariah, B.; Naduvath, J.; Thomas, B. Effect of long term ageing under humid environment on the LPG sensing properties and the surface composition of Mg-doped SnO2 thin films. Ceram. Int. 2016, 42, 7490–7498. [Google Scholar] [CrossRef]
  53. Marco, S.; Gutierrez-Galvez, A. Signal and Data Processing for Machine Olfaction and Chemical Sensing: A Review. IEEE Sens. J. 2012, 12, 3189–3214. [Google Scholar] [CrossRef]
  54. Korotcenkov, G.; Cho, B. Instability of metal oxide-based conductometric gas sensors and approaches to stability improvement (short survey). Sens. Actuators B Chem. 2011, 156, 527–538. [Google Scholar] [CrossRef]
Figure 1. Overview of different types of instabilities happening during the lifetime of a chemiresistive gas sensor. During sensor production, sensor-specific variations can occur, such as the general variability of sensitivities between sensors. After deployment, low-cost devices tend to show a drifting behavior of the measurement baseline in the scope of weeks and months. Over long time scales, sensor ageing can occur, which has a direct impact on the sensitivity of the sensing devices.
Figure 1. Overview of different types of instabilities happening during the lifetime of a chemiresistive gas sensor. During sensor production, sensor-specific variations can occur, such as the general variability of sensitivities between sensors. After deployment, low-cost devices tend to show a drifting behavior of the measurement baseline in the scope of weeks and months. Over long time scales, sensor ageing can occur, which has a direct impact on the sensitivity of the sensing devices.
Chemosensors 10 00152 g001
Figure 2. The figure shows the different concentration profiles used for the training, validation and test dataset. The different colors represent the subprofiles that were permuted in several simulation runs in order to augment the data and to stabilize the pattern recognition algorithms.
Figure 2. The figure shows the different concentration profiles used for the training, validation and test dataset. The different colors represent the subprofiles that were permuted in several simulation runs in order to augment the data and to stabilize the pattern recognition algorithms.
Chemosensors 10 00152 g002
Figure 3. Illustration of a neural network as a “black box”. The input features are fed to the neural network, which then connects the different variables into a concentration estimate.
Figure 3. Illustration of a neural network as a “black box”. The input features are fed to the neural network, which then connects the different variables into a concentration estimate.
Chemosensors 10 00152 g003
Figure 4. Illustration of the data configuration used for the sensor-specific deviation analysis. The full lines represent the original data setup for the first experiment corresponding to Section 3.2.1 in the Results section, whereas the dotted lines represent the additional datasets used for the data augmentation experiment. During the training process, the training set(s) and the validation set(s) are used to fit the different regression models. Overall, the models are then evaluated on 13 different test sets and evaluated individually for each of these sets in order to compare the performance on each sensor variation level.
Figure 4. Illustration of the data configuration used for the sensor-specific deviation analysis. The full lines represent the original data setup for the first experiment corresponding to Section 3.2.1 in the Results section, whereas the dotted lines represent the additional datasets used for the data augmentation experiment. During the training process, the training set(s) and the validation set(s) are used to fit the different regression models. Overall, the models are then evaluated on 13 different test sets and evaluated individually for each of these sets in order to compare the performance on each sensor variation level.
Chemosensors 10 00152 g004
Figure 5. Plot of the ground-truth ozone concentrations (dark orange) of the test set and the LSTM model concentration estimates (light orange).
Figure 5. Plot of the ground-truth ozone concentrations (dark orange) of the test set and the LSTM model concentration estimates (light orange).
Chemosensors 10 00152 g005
Figure 6. Feature ranking plots for LSTM and GRU algorithms. (a,b) show the mean SHAP values for the different features for (a) the LSTM and (b) the GRU model, respectively, and hence a ranking on the features. (c,d) provide an overview over the different SHAP values and their distributions for each individual feature and also illustrating the feature value.
Figure 6. Feature ranking plots for LSTM and GRU algorithms. (a,b) show the mean SHAP values for the different features for (a) the LSTM and (b) the GRU model, respectively, and hence a ranking on the features. (c,d) provide an overview over the different SHAP values and their distributions for each individual feature and also illustrating the feature value.
Chemosensors 10 00152 g006
Figure 7. Error metric plots for the MLP algorithm with respect to the different variations in sensitivity parameter. (a) Mean absolute error, (b) R 2 score, (c) relative error and (d) root mean square error.
Figure 7. Error metric plots for the MLP algorithm with respect to the different variations in sensitivity parameter. (a) Mean absolute error, (b) R 2 score, (c) relative error and (d) root mean square error.
Chemosensors 10 00152 g007
Figure 8. Comparison of the MAE metric performances of differently trained algorithms regarding different levels of sensitivity deviations. The blue bars show the algorithms trained on solely the single-sensitivity parameter data, whereas the red bars show the algorithms trained with a diverse dataset, also featuring the same concentration profile simulations with 15 % and + 15 % deviation from the standard sensitivity parameter. (a) shows the LSTM prediction performance and (b) the MLP prediction performance.
Figure 8. Comparison of the MAE metric performances of differently trained algorithms regarding different levels of sensitivity deviations. The blue bars show the algorithms trained on solely the single-sensitivity parameter data, whereas the red bars show the algorithms trained with a diverse dataset, also featuring the same concentration profile simulations with 15 % and + 15 % deviation from the standard sensitivity parameter. (a) shows the LSTM prediction performance and (b) the MLP prediction performance.
Chemosensors 10 00152 g008
Figure 9. Comparison of the MAE metric performances of differently trained algorithms with respect to different levels of additive drift. The blue curve represents the downwards drift, whereas the red curve represents the upward drift performance. (a) shows the LSTM model and (b) the MLP model evaluation.
Figure 9. Comparison of the MAE metric performances of differently trained algorithms with respect to different levels of additive drift. The blue curve represents the downwards drift, whereas the red curve represents the upward drift performance. (a) shows the LSTM model and (b) the MLP model evaluation.
Chemosensors 10 00152 g009
Figure 10. Prediction plots of the LSTM model for two levels of additive downwards drift at (a) 50% and (b) 225%.
Figure 10. Prediction plots of the LSTM model for two levels of additive downwards drift at (a) 50% and (b) 225%.
Chemosensors 10 00152 g010aChemosensors 10 00152 g010b
Figure 11. Feature importance plots for the LSTM model used in the drift study. (a) shows the mean SHAP values for the different features and (b) shows an overview of the different SHAP value distributions.
Figure 11. Feature importance plots for the LSTM model used in the drift study. (a) shows the mean SHAP values for the different features and (b) shows an overview of the different SHAP value distributions.
Chemosensors 10 00152 g011
Figure 12. Comparison of the MAE (first row) and relative error (second row) metric performances of differently trained algorithms with respect to different levels of multiplicative drift. The blue curve represents the reducing drift (multiplicative factor < 1 ), whereas the red curve represents the increasing drift performance (multiplicative factor > 1 ). (a,c) show the LSTM model, whereas (b,d) show the MLP model evaluation.
Figure 12. Comparison of the MAE (first row) and relative error (second row) metric performances of differently trained algorithms with respect to different levels of multiplicative drift. The blue curve represents the reducing drift (multiplicative factor < 1 ), whereas the red curve represents the increasing drift performance (multiplicative factor > 1 ). (a,c) show the LSTM model, whereas (b,d) show the MLP model evaluation.
Chemosensors 10 00152 g012
Figure 13. Comparison of the MAE across the different regression models for different ageing states.
Figure 13. Comparison of the MAE across the different regression models for different ageing states.
Chemosensors 10 00152 g013
Figure 14. Comparison of the relative error across the different regression models for different ageing states.
Figure 14. Comparison of the relative error across the different regression models for different ageing states.
Chemosensors 10 00152 g014
Table 1. Comparison of the mean absolute error for different variations in the sensitivity parameter with respect to the regression algorithm.
Table 1. Comparison of the mean absolute error for different variations in the sensitivity parameter with respect to the regression algorithm.
Alg.−30%−25%−20%−15%−10%−5%0%+5%+10%+15%+20%+25%+30%
SVR12.111.5512.9811.2611.0711.5310.5911.912.1112.8416.6414.7417.37
MLP11.911.2912.8211.2710.8511.7110.2111.712.0313.8517.7215.6118.73
GRU6.226.417.486.536.286.346.436.066.176.097.326.827.01
LSTM6.676.667.026.676.186.556.156.156.296.167.456.616.99
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Schober, S.A.; Bahri, Y.; Carbonelli, C.; Wille, R. Neural Network Robustness Analysis Using Sensor Simulations for a Graphene-Based Semiconductor Gas Sensor. Chemosensors 2022, 10, 152. https://doi.org/10.3390/chemosensors10050152

AMA Style

Schober SA, Bahri Y, Carbonelli C, Wille R. Neural Network Robustness Analysis Using Sensor Simulations for a Graphene-Based Semiconductor Gas Sensor. Chemosensors. 2022; 10(5):152. https://doi.org/10.3390/chemosensors10050152

Chicago/Turabian Style

Schober, Sebastian A., Yosra Bahri, Cecilia Carbonelli, and Robert Wille. 2022. "Neural Network Robustness Analysis Using Sensor Simulations for a Graphene-Based Semiconductor Gas Sensor" Chemosensors 10, no. 5: 152. https://doi.org/10.3390/chemosensors10050152

APA Style

Schober, S. A., Bahri, Y., Carbonelli, C., & Wille, R. (2022). Neural Network Robustness Analysis Using Sensor Simulations for a Graphene-Based Semiconductor Gas Sensor. Chemosensors, 10(5), 152. https://doi.org/10.3390/chemosensors10050152

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