Next Article in Journal
Task Offloading and Resource Allocation for ICVs in Vehicular Edge Computing Networks Based on Hybrid Hierarchical Deep Reinforcement Learning
Previous Article in Journal
High-Sensitivity Air-Coupled Ultrasonic Transducer Design Based on PMN-PT Bending Vibration Modes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantification of Volatile Compounds in Mixtures Using a Single Thermally Modulated MOS Gas Sensor with PCA–ANN Data Processing

by
Jolanta Wawrzyniak
Faculty of Food Science and Nutrition, Poznań University of Life Sciences, 60-624 Poznań, Poland
Sensors 2025, 25(22), 6913; https://doi.org/10.3390/s25226913 (registering DOI)
Submission received: 9 October 2025 / Revised: 4 November 2025 / Accepted: 9 November 2025 / Published: 12 November 2025
(This article belongs to the Section Electronic Sensors)

Highlights

What are the main findings?
  • Methodology enhancing the selectivity of MOS gas sensors for measuring ethanol and methanol levels in liquid mixtures.
  • Approach to interpreting the output signals of thermally modulated MOS gas sensor by integrating two data processing techniques: PCA and ANN.
What is the implication of the main finding?
  • The proposed methodology, integrating measurements from a single thermally modulated MOS gas sensor with a PCA–ANN-based machine learning algorithm, can be applied for the quantitative determination of VOCs in mixtures and demonstrates potential applicability to other types of sensors and volatile compounds.

Abstract

Recent research efforts have focused on improving the performance of metal-oxide semiconductor (MOS) gas sensors through their thermal modulation using integrated heaters. This approach allows us to enhance the selectivity of measurements; however, the main challenge with this amelioration lies in interpreting the sensor response, which takes the form of complex patterns that require the application of advanced signal processing techniques. This study introduces a methodology for the quantitative determination of volatile compounds (ethanol and methanol at various concentrations ranging from 31 to 2000 ppm for each of these compounds) in mixtures using a single thermally modulated MOS gas sensor. The recorded responses of the detector were interpreted by combining two signal processing techniques: principal component analysis (PCA) for feature extraction, and artificial neural networks (ANNs) for predicting the levels of the tested volatile components. The proposed methodology demonstrated satisfactory performance achieving R2 values at the level of 0.999 across all datasets (learning, test, validation) and low error metrics (RMSE = 11.6–14.4 ppm), thereby confirming the robustness and accuracy of the approach and its applicability in a wide range of fields where rapid, cost-effective, and precise detection of ethanol and methanol is essential.

Graphical Abstract

1. Introduction

Rapid and reliable analysis of ethanol and methanol mixtures with the potential for automation is crucial due to their widespread industrial applications. Of the two alcohols, ethanol is commonly used in food, pharmaceuticals, and biological applications, while methanol is utilized in chemical and petrochemical industries for dyeing, antifreeze, biodiesel, petroleum, and chemicals production [1,2]. In many cases, for example, in the production of industrial alcohol and disinfectants, methanol is often added to ethanol to reduce costs. Although both of these volatile organic compounds (VOCs) share similar chemical and physical properties, they differ significantly in their toxicity. Ethanol, a common component of many products encountered in daily life, can cause a range of health problems, from mild irritation of the respiratory and digestive tracts, through cardiovascular disorders and neurological impairments, to severe liver and kidney damage, and even cancer, when consumed in large amounts or over a long period [3,4]. It should be noted that while a single episode of heavy ethanol consumption (particularly among young people) can lead to severe poisoning or even death, the majority of ethanol-related health problems arise from its prolonged consumption, even at moderate levels. Methanol, on the other hand, is not consumable, and even when inhaled, absorbed through the skin, or ingested once, even in very small doses can cause permanent damage to the nervous system and eyes, and even death [5]. Considering similar properties and the fact that both alcohols can be used interchangeably in many applications, yet differ greatly in their toxicity, special attention should be devoted to developing effective methods and more advanced techniques for detecting ethanol and methanol. Among these, gas chromatography-mass spectrometry (GC-MS) [6] and nuclear magnetic resonance (NMR) [7] are widely regarded as the gold standard for VOC identification. However, their practical application in daily life is restricted by high equipment costs and the necessity for specialized expertise. In this context, gas sensing technologies based on different type of gas sensors (electrochemical [8], fluorescent [9], chemoresistive [10]) have emerged as a promising alternative solution due to their cost-effectiveness, simplicity, high sensitivity, and potential for application in real-time monitoring. Among them, particular attention should be given to chemoresistive (metal-oxide-semiconductor (MOS)) sensors, whose operating principle is based on changes in the electrical resistance of their metal-oxide sensing layer, caused by interactions with target gases. This makes them suitable for numerous applications across various fields, including air quality monitoring, industrial leak detection, alarm systems, food quality control, automotive emissions regulation, and in medicine diagnostic tools [11,12,13,14,15,16,17,18,19]. Nevertheless, despite notable achievements, both the sensors themselves and the systems in which they operate still require further improvements in terms of enhanced selectivity, faster response and recovery times, reduced dependence on humidity and temperature, and ultra-low detection limits. The use of MOS gas sensors is particularly constrained by their low selectivity, as a single sensor exposed to a mixture of volatile compounds produces an output signal that represents the combined response to all present substances, making it difficult to distinguish their individual contributions [20,21]. This cross-sensitivity leads to poor selectivity, especially for compounds with similar physicochemical characteristics (gas analogs), such as ketones and alcohols, which elicit comparable signal intensities from the sensor [21,22,23]. Consequently, quantitative analysis of volatile compounds with single MOS gas sensors operating within a conventional setup (ensuring constant sensor operating temperature) is only reliable in systems containing a single, well-defined type of compound.
Previous reviews widely discuss the advancements made in MOS-based gas sensor development, including material selection, fabrication techniques, and performance optimization strategies aimed at improving MOS gas sensor performance and expanding their application [24,25,26,27]. Numerous studies focused on enhancing the sensitivity, selectivity, and stability of MOS gas sensors have focused on the development of novel or modified sensing materials, including nanostructuring, metal nanoparticle incorporation, and elemental doping [10,28,29,30,31,32,33,34]. Another promising approach to improving selectivity involves the construction of matrices consisting of several sensors, the response of which generates the summary response signal carrying a more information about nature of the tested mixture of gas components [35,36,37], or the use of thermal modulation using a heater integrated with MOS gas sensors [38,39,40]. The application of the latter technique means that the behavior and responses of a single sensor are comparable to those of a sensor array composed of several sensors of the same type, each operating at different temperatures. A thermally modulated sensor allows for the collection of more comprehensive information about the analyzed sample; however, the challenge with this approach lies in interpreting the sensor response, as it generates a complex pattern that requires the application of advanced signal processing techniques. In previous studies, decoding sensor response patterns was commonly conducted with use of principal component analysis (PCA) [39,41,42] and partial least squares (PLS) regression [35]. As it was found that applying statistical shape space pre-processing to temperature-modulated signals from metal oxide sensors significantly improved gas identification [43], sometimes, PCA or linear discriminant analysis (LDA) were combined with other machine learning techniques like k-nearest neighbor (KNN), logistic regression (LR), support vector machine (SVM), or random forest (RF) algorithms [44,45,46]. Recent studies have shown promising results using advanced regression techniques based on B-splines combined with artificial neural networks, as well as deep learning–based convolutional neural networks (CNNs), to interpret waveforms generated by gas sensor array or a single thermally modulated MOS gas sensor for quantifying volatile components in mixtures [21,40,47]. Building on these findings and aiming to further expand the application potential of thermally modulated MOS gas sensors, the present research explores an alternative approach by developing a methodology that integrates traditional signal processing techniques, such as PCA, with an artificial neural network (ANN)-based machine learning algorithm, enabling a rapid and relatively simple determination of volatile compound concentrations (ethanol and methanol) in mixtures using a single thermally modulated MOS gas sensor.

2. Materials and Methods

2.1. Measurement System and Methodology

The detection of volatile compounds was carried out using a single TGS2610-C metal oxide semiconductor (MOS) gas sensor, produced by Figaro Engineering Inc., Osaka, Japan. This sensor is built on the basis of an alumina substrate covered with the gas-sensitive component in the form of thin tin oxide (SnO2) semiconductor layer that is integrated with a micro-heater consisting of a printed ruthenium (RuO2) layer. When the sensor connected to the measuring system is exposed to the tested atmosphere, an equilibrium is established between the amount of substances adsorbed on the sensor surface and their concentration in the surrounding atmosphere. The adsorbed substances may undergo redox reactions (especially at elevated temperatures resulting from the operation of the micro-heater) and exchange electrons with each other and with the sensor surface. The processes described above lead to changes in the number of charge carriers within the sensor layer, which are manifested as variations in the sensor resistance, changes which can be interpreted as information about the concentration of the analyzed compounds.
A typical measurement circuit for this sensor works as a voltage divider, where variations in the sensor resistance (RS) are monitored indirectly by measuring the output voltage signal (VOUT) at an auxiliary resistor, as illustrated in Figure 1. According to the manufacturer standard operating procedure, the sensor (VC) and the micro-heater (VH) should be supplied with a constant voltage of 5.0 V. To improve the sensor selectivity, in the study the conventional approach was modified by incorporating thermal modulation of the sensor by powering its micro-heater with varying voltage. Modulating the sensor temperature allows us to regulate the rate of the adsorption and redox reaction of the target substances on the sensor surface, thereby enhancing the dynamics of sensor resistance changes and providing additional analytical information about the sample.
Previous research indicates that applying various modulation patterns to the heater, including ramp, rectangular, sinusoidal, saw-tooth, sigmoid, triangular ones allows for a distinction sensor response signatures corresponding to specific analytes [42,44,45,48]. Some of those investigations have demonstrated that ramp, saw-tooth, and triangular voltage waveforms offer strong discrimination capabilities for detecting VOCs [21,39,40,43,49]; therefore, based on these findings, a simple saw-tooth waveform was also selected to regulate the micro-heater voltage (VH) in the presented research.
In the study, the analysis of selected volatile compounds was conducted in a 2 L chamber equipped with the above-described thermally modulated MOS gas sensor and a small fan to ensure atmosphere homogenization. Tested samples were aqueous solutions containing known concentrations of ethanol and methanol. Each measurement involved introducing 50 mL of the prepared earlier solution into the chamber, nevertheless, the preliminary experiments, in which additional analyses were performed using samples of 5, 10, 20, 30, 40, and 50 mL, showed that the proposed approach remained effective even for samples with volumes as small as 5 mL and that the sensor response was influenced to a much greater extent by the surface area of the sample exposed to the chamber atmosphere than by the total sample volume (Figure 2a). The single measurement cycle lasted 360 s and began with a 120 s period (with the fan turned on) intended to establish thermodynamic equilibrium between the liquid and gas phases. In the subsequent step, with the fan still operating, the micro-heater was supplied with a voltage of 5 V for 30 s. This step was aimed at conditioning the sensor by removing or reacting substances adsorbed on its surface during previous measurements. Afterwards, the fan and heater power were turned off, and the sensor was allowed to cool for 60 s. Following these preparatory steps, the main measurement was initiated, during which the heater was supplied with a linearly increasing voltage from 0 to 5 V at a rate of 2 V/min (over 150 s). During this period, the response patterns of the MOS gas sensor (which contained information related to the composition of tested samples) were recorded as the relationship between the micro-heater voltage (VH) and the output signal voltage (VOUT). Figure 2b depicts a graph showing the dynamics of voltage supply to the micro-heater of a thermally modulated MOS gas sensor. To ensure measurement reliability, each test was performed in triplicate. Prior to each measurement, the chamber was ventilated with fresh air for 5 min to eliminate residual gases and prevent cross-contamination.
The experiments were conducted under controlled environmental conditions, maintaining a temperature of 22–24 °C and a relative humidity (outside the measuring chamber) of 35–45%. The RH can potentially act as an interfering factor in gas sensor measurements, and its influence should be considered when evaluating the applicability of the sensor in various environments; however, in the present study RH remained stable, as all measurements were carried out in an atmosphere that was in equilibrium with the aqueous solutions of the analyzed substances achieved after a stabilization period following sample introduction into the measurement chamber, as presented in one recent study [40]. The optimal operating parameters of a measurement system working with a linearly increasing heater voltage, which allow the measurement cycle to be maintained at reasonable duration and produce well-defined output patterns, were estimated in device test described in a previous study [40]. Its results demonstrated that the measurement system reached stability within less than 60 s after the sensor was powered on (corresponding to approximately 90 s after the sample was introduced into the measurement chamber). The findings also revealed that a 30 s interval was adequate for the micro-heater to cool down completely, as indicated by signal stabilization following power deactivation.

2.2. Preparation of Analyzed Solutions

The research investigated aqueous mixtures based on deionized water containing two volatile organic compounds: ethanol and methanol. Ethanol with a minimum purity of 99.5% and methanol with a purity of at least 99.8% were sourced from Merck. The study involved 13 different concentrations of each compound, ranging from 31 to 2000 ppm. Ethanol–methanol mixtures were prepared using a serial dilution method including all possible combinations of the following concentrations: 2000, 1414, 1000, 707, 500, 354, 250, 177, 125, 88, 63, 44, and 31 ppm, leading to a total of 169 distinct measurement samples.

2.3. MOS Gas Sensor Output Signals Processing

The average response profiles (waveforms) of the thermally modulated gas sensor, created from three measurement cycles per sample recorded during the experiments, encode information about the composition of the solution. Therefore, they may serve as suitable input signals for estimating ethanol and methanol concentrations in liquid mixtures. As each recorded waveform, illustrating the relationship between the micro-heater voltage (VH) and the sensor output voltage (VOUT) consisted of 501 points (obtained over a VH range 0 to 5 V with a resolution of 0.01), using it directly as an input vector for the model (e.g., an ANN model) could lead to a substantial increase in computational complexity. Therefore, it was necessary to reduce its dimensionality while preserving information on the composition of the analyzed solutions.

2.3.1. Output Signal Feature Extraction

Principal component analysis (PCA) is one of the methods allowing to extract the relevant features and minimize dimensionality of the extended dataset. Considering its numerous advantages, in the study this method was applied to the original measurement results. During the analysis, redundancy among variables was reduced through the creation of principal components, which are new uncorrelated variables that capture the majority of the variance present in the original data. Once the input internally correlated variables were converted into a new set of independent components, the relevant number of principal components were determined by both Kaiser’s and Cattell’s criteria. The new dataset, reduced, but still retaining the essential features of the original dataset, could be used as input for model development without the fear of a rapid increase in computational complexity.

2.3.2. Development of a Model for Estimating Liquid Mixture Composition

Data Preparation
To construct a neural network model for estimating the composition of liquid solutions containing tested volatile analytes (ANNE-M), the measurement cases, along with their associated input vectors (consisting of a set of principal components computed from all measurement points) and output vectors (comprising the analyte concentrations), were randomly divided into three subsets: learning (70%), test (15%), and validation (15%). Consequently, the ANN model was developed using data from 169 analyses, of which 119 cases were designated for learning, 25 for testing, and the remaining 25 for validation.
Artificial Neural Networks in Modeling of Liquid Mixtures Composition
Among feedforward neural networks, multilayer perceptrons (MLPs) and radial basis function networks (RBFs) are widely recognized for their effectiveness in capturing nonlinear phenomena commonly observed in the food industry and chemical engineering. In detail, this means that the signals fed to the input neurons are transmitted via weighted connections to the neurons of the hidden layer, where they are transformed by activation functions. Next, the signals processed in the hidden layer are transmitted through weighted connections to the neurons of the output layer, where they are transformed by the activation function to produce the final output signal.
In the study, three-layer MLP structures were considered for modeling the composition of liquid mixtures containing ethanol and methanol, based on signals from a thermally modulated MOS gas sensor. The input layers consisted of neurons corresponding to independent variables, represented by identified principal components that encapsulated the most essential information from the original data, whilst the output layers comprised two neurons responsible for predicting the concentration levels of the studied analytes (ethanol and methanol). Optimization of the network architecture (general structure depicted in Figure 3) involved adjusting the size of the hidden layer by testing structures with three to seventeen neurons and evaluating various activation functions in the neurons of the hidden layer (logistic, hyperbolic tangent, exponential).
For each network architecture, one thousand models were generated, resulting in 45,000 MLP networks (15 hidden layer sizes × 3 types of activation functions × 1000 generated networks for each structure). Each simulation was performed independently, using a random split of the dataset into training, test, and validation subsets. The model learning process involved iterative adjustments of connection weights and activation function parameters to minimize learning error (El). The root mean square error function served as the performance metric in the learning, test, and validation stage of model evaluation. The learning process was continued until either a predefined iteration limit was reached or an increase in test error (Et) indicated potential overfitting, prompting early termination. The MLP networks were learned using a Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm suitable for nonlinear problems. During the optimization process, successful network topologies were taken to be those capable of making accurate predictions on new data that did not participate in the model development process, as assessed by the computation of validation error (Ev). The structure with the lowest weighted average of learning, test, and validation errors was adopted as a model for estimating the composition of liquid mixtures containing ethanol and methanol.

2.4. Statistical Data Analysis

The evaluation of MLP neural network models was performed using the Statistica 13.3 package (StatSoft, Tulsa, OK, USA) to assess their predictive performance and practical applicability. The coefficient of determination (R2) was used to compute the proportion of variance in the experimental data explained by the models. To measure the accuracy of predictions, the mean absolute error (MAE) was applied to determine the average absolute deviation between observed and predicted values (Equation (1)), while the root mean square error (RMSE) provided insight into the goodness of fit between predicted and experimental data (Equation (2)).
M A E = 1 n · C A C P
R M S E = C A C P 2 n
where n represents the total number of experimental observations and CA and CP denote the actual and predicted analyte concentrations, respectively. All statistical analyses and computations were conducted at a significance level of α = 0.05 to ensure the reliability of the evaluation process.

3. Results

3.1. Dynamics of Thermally Modulated MOS Gas Sensor Responses

As highlighted in the introduction of this paper, extensive research efforts within the volatile compound sector have been directed toward the development of MOS gas sensors that could reliably discriminate various volatile organic compounds [8,9,34,41]. Among them, accurate, rapid, and cost-effective simultaneous identification and quantification of ethanol and methanol remains challenging due to the considerable similarity in their physicochemical properties (such as similar vapor characteristics, low molecular weight, and comparable affinity for sensor surfaces [50]). In the food and pharmaceutical industries, the detection of accidental methanol contamination in alcoholic beverages (which may result from improper fermentation or incomplete separation of methanol during the distillation process) is essential for preventing poisoning, while in sectors such as biofuel, and solvent production, accurately detecting and controlling ethanol and methanol concentrations is crucial for optimizing production processes, ensuring product quality, and maintaining both process efficiency and safety [7,51,52,53]. One recent study attempted the selective detection of specific gases by enhancing the performance of a system (array) consisting of several MOS-based sensors with heterostructures containing gold (Au) decoration. The study also sought to address cross-sensitivity to other gases through machine learning-assisted discriminative analysis; however, the proposed method was limited to the identification and quantification of individual substances [54]. An Increase In the selectivity of a MOS gas sensor can also be achieved by utilizing the difference in autoignition temperatures between ethanol (≈369 °C) and methanol (≈433 °C) [55]. This principle was applied in one recent study, in which a MOS gas sensor that demonstrated enhanced selectivity for methanol in methanol–ethanol mixtures when operated at 350 °C was constructed [56].
As the type of sensors used in the study, equipped with integrated printed RuO2 micro-heaters or other Ru-based heaters, typically operate within the ≈200–600 °C range, depending on the architecture of the sensing layer and the micro-heater design [57,58], a promising concept is focused on determining the concentrations of analyzed compounds by differences in the nonlinear behavior of redox processes occurring on its surface as a function of temperature. In this context, a particularly effective approach to differentiating the tested substances is the use of thermally modulated MOS gas sensors, which, by enabling volatile compound analysis under the continuously changing temperature of the sensing layer, produce complex signals resembling fingerprints that encode information related to the composition of the tested atmosphere [59,60]. Figure 4 presents the response patterns of the thermally modulated MOS gas sensor used in this study, recorded in an atmosphere remaining in thermodynamic equilibrium with mixtures containing various ethanol and methanol concentrations.
Comparing the sensor responses for liquid mixtures, in which one accompanying component is kept at a minimal concentration (31 ppm), while the content of the other varies, revealed that the response pattern observed for solutions with increasing methanol concentrations (and minimal ethanol, Figure 4a) differs substantially from the pattern observed for solutions with increasing ethanol concentrations (and minimal methanol, Figure 4c). For mixtures containing a minimal level of the accompanying component (ethanol or methanol), the output voltage (VOUT) of the thermally modulated MOS gas sensor remained nearly constant and close to zero within the micro-heater voltage range of 0.0 to 1.0 V. As the micro-heater voltage increased beyond this range, a noticeable rise in VOUT was observed. In the case of samples with maximal methanol content (2000 ppm) and minimal ethanol content, a distinct peak at VH = 3.35 V, corresponding to a maximum recorded output of VOUT = 3.67 V, was registered. In comparison, the sensor response to mixtures with maximal ethanol concentration and minimal ethanol content was also pronounced; however, the VOUT values produced a broader and slightly higher peak within the VH range of 3.25 to 4.3 V, reaching a maximum of VOUT = 3.70 V. It is worth to noting that the waveforms obtained for progressively increasing concentrations of one alcohol, in the presence of a minimal concentration of the second (assisting) component, are well separated and show no overlap across a wide range of heater voltages (VH), which greatly facilitates result interpretation. However, at the highest concentrations of the accompanying component (2000 ppm), the response curves become noticeably denser (Figure 4b and 4d), resulting in their overlaps, particularly among those corresponding to lower concentrations of the varying component, making pattern recognition much more challenging, and necessitating the use of advanced approaches capable of identifying even the subtlest differences between waveforms recorded for mixtures with various analyte contents. Taking the above into account, in further considerations the study focused on developing a methodology for quantification of ethanol and methanol in model liquid solutions by integrating the outputs of a thermally modulated MOS gas sensor with PCA–ANN framework data processing.

3.2. Reduction in Data Redundancy

In this study, an attempt was made to acquire important information regarding the composition of tested mixtures from the sensor responses using artificial neural networks. However, the direct application of the response patterns from the MOS gas sensor (serving as input data) and the construction of a neural network model for estimating the composition of liquid solutions containing two tested volatile analytes (ANNE-M), was hampered by its relatively high dimensionality (each experimental system generated a response vector consisting of 501 points, corresponding to a heater voltage modulated from 0 to 5 V with step of 0.01 V). To ensure the effective use of knowledge contained in the data for ANNE-M model development, it was necessary to reduce the dimensionality of the input vector, while preserving essential information contained in the original dataset. To achieve this, prior to developing the model, PCA, a multivariate unsupervised learning technique, was applied, which has been demonstrated to be effective in extracting essential information from various types of data [61,62,63,64,65,66,67]. Its main advantages include low sensitivity to noise, reduced memory and storage requirements, and improved computational efficiency in subsequent data processing. As PCA is a statistical technique used to analyze phenomena characterized by interrelated variables [68], its use was preceded by the construction of a multivariate correlation matrix to provide an overview of the dependences in the dataset, describing the composition of the tested samples. The obtained correlation matrix revealed strong positive relationships between the variables, with correlation coefficients (R) ranging from 0.586 to 0.999, implying the presence of informational redundancy that confirmed the appropriateness of applying principal component analysis for dimensionality reduction. The conducted analysis allowed us to transform the 501 original correlated variables into 44 new uncorrelated principal components (PCs). Since PCA enhances signal clarity by prioritizing directions of maximum variance, thereby automatically disregarding minor variations often associated with background noise [66,67], the conducted analysis enabled the effective distinction of meaningful data patterns from random fluctuations and the identification of features with significant contributions to the total variance. Based on Kaiser’s and Cattell’s criteria commonly used in PCA [68], the evaluation of the eigenvalues and the proportion of variance explained by each successive principal component led to the selection of first three of them for further analysis. The selected principal components, each with an eigenvalue greater than 1.0, accounted for 99.28% of the total variance in the original dataset and encoded a significant portion of the essential information contained in the waveforms recorded by the thermally modulated MOS gas sensor for mixtures of the target analytes. Hence, in further considerations, the factor values assigned to the selected principal components were subsequently used as input for an artificial neural network to develop a model capable of estimating the composition of liquid solutions based on the gas sensor output data.

3.3. Artificial Neural Network Models for Estimating Liquid Mixture Composition

Numerous studies have explored miscellaneous artificial neural network architectures to model biological and chemical systems effectively. Notably, multilayer perceptrons (MLPs) with a single hidden layer have often proven sufficient for solving nonlinear regression problems, aligning with the universal approximation theorem, which states that a feedforward neural network with a single hidden layer and a sigmoidal activation function can approximate any continuous function on a compact domain with arbitrary precision [69]. The usefulness of the mentioned network architecture has been confirmed in numerous studies, including recent works, inter alia, in food and agricultural domains [70,71,72,73].
In this study, MLPs with a single hidden layer also turned out to be adequate for modeling the composition of liquid mixtures containing two structurally similar volatile components—ethanol and methanol. Systematic optimization of the network structure was conducted by adjusting the number of neurons and the types of activation functions in the hidden layer. Since previous studies have shown that using linear activation functions in neurons of the hidden layer leads to poor performance and limited generalization in regression problems [72,73], only architectures with nonlinear activation functions in neurons of the hidden layer were considered in this study. The comparative assessment of the network architectures revealed a pronounced decrease in both learning and test errors, with an increasing number of neurons in the hidden layer (from three to about eleven) across all examined types of activation functions (Figure 5). Further expansion of the hidden layer size yielded only marginal improvements (e.g., learning error decreased from 18.16 to 16.12 ppm; test error decreased from 18.71 to 15.17 ppm). Considering the type of activation functions used in neurons of the hidden layer, networks with a hyperbolic tangent achieved slightly lower learning errors compared to those employing the logistic and exponential ones. In terms of test error, architectures utilizing the exponential and hyperbolic tangent functions proved somewhat more efficient than those based on the logistic activation function.
The above-presented trend reflects the enhanced capacity of larger networks to model complex nonlinearities; however, it is also well-established that an excessively expanded network may result in overfitting, characterized by the fact that the model memorizes the data on which it was constructed, but performs poorly on new data, thereby reducing its predictive capability [74]. Overfitting can result in deceptively low errors during the learning and testing phases, while significantly impairing generalization, hence, even if learning and test errors provide some indication of model accuracy, relying on them exclusively may yield misleading conclusions. Therefore, to fully assess the model’s quality and ensure that it is not overfitted, in this study the validation error, being the most reliable evaluation metric, was calculated using a separate dataset that did not participate in the learning process. The obtained results (Figure 5) indicated that networks employing logistic and exponential activation functions in the hidden layer consistently exhibited higher validation errors, which, in configurations with more than fourteen hidden neurons, tended to stabilize within the range of 19.75–16.73 ppm. Networks containing hyperbolic tangent function in neurons of the hidden layer offered the best performance. After a significant reduction in the validation error when the hidden layer size was changed from three to eleven neurons, further increasing the number of neurons in the hidden layer resulted in a stabilization of the validation error at around 17.61–16.73ppm. These results suggest that networks with 11–12 neurons in the hidden layer, equipped with a hyperbolic tangent activation function, might provide a sufficiently structured form to achieve the intended purpose of this study.
Out of the various constructed networks, the one with the lowest weighted average of learning, test, and validation errors was adopted as the model for estimating the composition of ethanol–methanol liquid mixtures (MLP-ANNE-M). As expected, the final model selected to describe the compositions of the tested mixtures employed, apart from a linear activation function in the output layer, a hyperbolic tangent activation function in the twelve neurons of the hidden layer. To assess the comprehensiveness and reliability of the elaborated ANN model, basic performance metrics were computed for the entire group of networks with the same architecture (the group of 1000 ANNs generated during the hyperparameter optimization procedure). The average learning, test, and validation errors calculated for all developed networks (Table 1) indicate that the overall performance of the group was satisfactory. Moreover, as each network was created and validated using a different random split of the dataset, the proposed model architecture is relatively insensitive to the specific division of the input data into subgroups. The constructed ANN represents a balanced solution that provides an effective trade-off between topological simplicity and satisfactory performance in predicting the composition of ethanol–methanol liquid mixtures, as it yielded the lowest weighted learning (El), test (Et), and validation (Ev) errors, confirming its efficiency and suitability for practical applications. An overview of the main indicators related to prediction errors and architectural details for the elaborated model is presented in Table 1.
Comparable values of the learning, test, and validation errors of the selected neural network may indicate that the network possesses good generalization ability. The obtained results are consistent with recent studies demonstrating the usefulness of neural network-based architectures for modeling tasks applied to agricultural and biological data [75,76].

Evaluation of Model Performance

To accurately assess the predictive quality and generalization ability of the network, the developed model was evaluated using suitable statistical indicators recommended for prognostic models. Figure 6, which depicts the comparison between experimental data and predictions from the MLP-ANNE-M model, demonstrates a strong agreement between model responses and analyte concentrations in the tested mixtures in all datasets used for model development and validation (R2 = 0.969–0.993). Additionally, low values of the RMSE and MAE presented in Table 2 indicate the high predictive performance of the elaborated model.
The obtained results demonstrate that feature extraction from MOS gas sensor responses using PCA, followed by modeling with traditional ANN based on multilayer perceptrons, provides an effective methodology for both the qualitative and quantitative determination of volatile compounds in mixtures. Thus, it confirmed that PCA in combination with MLPs can serve as a reliable computational tool for processing complex datasets. Previous studies that have employed hybrid approaches integrating B-splines with classical ANNs and CNNs have also demonstrated their high effectiveness in interpreting the output waveforms generated by thermally modulated MOS sensor signals [21,40]. Another recent study proposed the use of an array built on custom-designed gas sensors combined with multiple hybrid machine learning models, including CNNs and ANNs, for the simultaneous detection of volatile organic compounds such as ethanol and methanol and concluded that the type of algorithm employed strongly influences the results, with ensemble-based approaches outperforming traditional or individual deep-learning models [47]. In turn, research by Krivetskiy et al. [43] reported that ANN-based algorithms applied to statistically derived features can markedly improve gas classification accuracy. Collectively, the above-mentioned studies, together with the present one, reinforce the notion that artificial neural networks, regardless of their specific architecture, represent a versatile and powerful tool for enhancing the robustness and selectivity of MOS sensor systems. Nevertheless, it is worth remembering that although effective, the applied CNN-based approach involved complex architectures and additional data interpretation techniques that require substantial computational resources (processor performance, memory capacity). The findings presented in this study represent an extension of previously developed algorithms for the quantitative and qualitative determination of volatile compounds using thermally modulated MOS gas sensors. The proposed methodology employs a single, low-cost, commercially available MOS gas sensor and a simplified neural network model suitable for implementation on low-power microcontroller platforms, providing a more practical and energy-efficient alternative for real-time gas detection.
Considering the application of the elaborated methodology in real conditions, it should be noted that to ensure the repeatability of results and to validate the core concept of combining the thermal modulation of MOS gas sensors with PCA–ANN data interpretation, experiments were conducted under controlled laboratory conditions. This approach allowed the author to focus on the intrinsic sensor response features associated with different analyte concentrations, independently of external disturbances. It is known that temperature variations can alter baseline resistance and response amplitude, while humidity changes may affect adsorption–desorption dynamics and surface reactions, potentially shifting the PCA feature space and reducing the accuracy of the PCA–ANN model for methanol and ethanol content estimation. Considering the complexity of these processes, for further development of proposed methodology, it will be important to consider how external environmental factors such as ambient temperature and humidity may influence the reliability of the temperature-modulation-based prediction method. Additionally, although Figaro sensors are commonly used and well-validated, future research should include the verification of measurement reproducibility both between sensors of the same type and for repeated use of the same sensor over time, as aging of the sensing layer, exposure to reactive gases, and high temperature may lead to baseline drift and changes in sensitivity, which could affect prediction stability over time. Therefore, to improve its robustness under variable environmental conditions, potential strategies such as incorporating temperature and humidity as auxiliary model inputs for their variability compensation, and the elaboration of adaptive calibration procedures and a model updating approach to compensate for gradual drift should be considered in future studies. Hence, in further research, the author plans to address these aspects to enhance the applicability of the proposed method in real-world scenarios.

4. Conclusions

The study confirmed that combining principal component analysis (PCA) with multilayer perceptron (MLP)-based neural networks is an effective strategy for interpreting thermally modulated MOS gas sensor responses and quantifying volatile compounds in liquid mixtures. The PCA step successfully reduced the dimensionality of the recorded signals while maintaining essential features, while the MLP neural networks successfully captured the relationship between the reduced input vector and the corresponding output vector, describing the composition of tested mixtures. The combination of PCA and MLPs therefore provides a reliable computational approach for addressing complex sensor data and enables both qualitative and quantitative assessment of volatile profiles. The results provide strong evidence of the potential of ANN-based methodologies for advancing electronic nose technologies. Future efforts should focus on broadening the range of investigated MOS sensors, addressing more complex gas mixtures and environmental conditions, and integrating adaptive or transfer learning techniques to enhance model generalization. Such developments may pave the way for more accurate, selective, and practical tools for environmental monitoring, food quality assessment, medical diagnostics, and other applications where precise volatile compound detection is essential.

Funding

This research was partially funded by the Polish Ministry of Science and Higher Education, grant number 506.784.03.00/UPP-NZMI.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data are available from the corresponding author upon request.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Pandey, S. A critical review: Application of methanol as a fuel for internal combustion engines and effects of blending methanol with diesel/biodiesel/ethanol on performance, emission, and combustion characteristics of engines. Heat Transf. 2022, 51, 3334–3352. [Google Scholar] [CrossRef]
  2. Dalena, F.; Senatore, A.; Marino, A.; Gordano, A.; Basile, M.; Basile, A. Methanol Production and Applications: An Overview; Elsevier Publishing: London, UK, 2018; ISBN 9780444640109. [Google Scholar]
  3. Ronni, W. Alcohol and the skin. Clin. Dermatol. 1999, 17, 351–352. [Google Scholar] [PubMed]
  4. Lachenmeier, D.W. Safety evaluation of topical applications of ethanol on the skin and inside the oral cavity. J. Occup. Med. Toxicol. 2008, 3, 26. [Google Scholar] [CrossRef] [PubMed]
  5. Barceloux, D.G.; Randall Bond, G.; Krenzelok, E.P.; Cooper, H.; Allister Vale, J. American Academy of Clinical Toxicology Practice Guidelines on the Treatment of Methanol Poisoning The American Academy of Clinical Toxicology Ad Hoc Committee on the Treatment Guidelines for Methanol Poisoning: * Donald G For personal use only. Clin. Toxicol. 2002, 40, 415–446. [Google Scholar]
  6. Matharage, S.Y.; Liu, Q.; Davenport, E.; Wilson, G.; Walker, D.; Wang, Z.D. Methanol detection in transformer oils using gas chromatography and ion trap mass spectrometer. In Proceedings of the 2014 IEEE 18th International Conference on Dielectric Liquids, ICDL, Bled, Slovenia, 30 June–3 July 2014; pp. 1–4. [Google Scholar] [CrossRef]
  7. Neto, Á.C.; Oliveira, E.C.S.; Lacerda, V.; Castro, E.V.R.; Romão, W.; Silva, R.C.; Pereira, R.G.; Sten, T.; Filgueiras, P.R.; Poppi, R.J. Quality control of ethanol fuel: Assessment of adulteration with methanol using 1H NMR. Fuel 2014, 135, 387–392. [Google Scholar] [CrossRef]
  8. Qiu, Q.; Jiang, N.; Ge, L.; Li, X.; Chen, X. The electrochemical sensor for methanol detection based on trimetallic PtAuAg nanotubes. J. Mater. Sci. 2020, 55, 15681–15694. [Google Scholar] [CrossRef]
  9. Han, T.; Yang, J.; Miao, R.; Liu, K.; Li, J.; Wang, D.; Liu, T.; Fang, Y. Direct Distinguishing of Methanol over Ethanol with a Nanofilm-Based Fluorescent Sensor. Adv. Mater. Technol. 2021, 6, 2000933. [Google Scholar] [CrossRef]
  10. Li, K.; Wu, Y.; Chen, M.; Rong, Q.; Zhu, Z.; Liu, Q.; Zhang, J. High Methanol Gas-Sensing Performance of Sm2O3/ZnO/SmFeO3 Microspheres Synthesized Via a Hydrothermal Method. Nanoscale Res. Lett. 2019, 14, 57. [Google Scholar] [CrossRef]
  11. Voss, H.G.J.; Mendes Júnior, J.J.A.; Farinelli, M.E.; Stevan, S.L. A Prototype to Detect the Alcohol Content of Beers Based on an Electronic Nose. Sensors 2019, 19, 2646. [Google Scholar] [CrossRef]
  12. Liu, Q.; Zhao, N.; Zhou, D.; Sun, Y.; Sun, K.; Pan, L.; Tu, K. Discrimination and growth tracking of fungi contamination in peaches using electronic nose. Food Chem. 2018, 262, 226–234. [Google Scholar] [CrossRef]
  13. Lee, C.-H.; Chen, I.-T.; Yang, H.-C.; Chen, Y.J. An AI-powered Electronic Nose System with Fingerprint Extraction for Aroma Recognition of Coffee Beans. Micromachines 2022, 13, 1313. [Google Scholar] [CrossRef]
  14. Štefániková, J.; Árvay, J.; Miškeje, M.; Kačániová, M. Determination of Volatile Organic Compounds in Slovak Bryndza Cheese By the Electronic Nose and the Headspace Solid-Phase Microextraction Gas Chromatography-Mass Spectrometry. Potravin. Slovak J. Food Sci. 2020, 14, 767–773. [Google Scholar] [CrossRef]
  15. Wang, A.; Zhu, Y.; Zou, L.; Zhu, H.; Cao, R.; Zhao, G. Combination of machine learning and intelligent sensors in real-time quality control of alcoholic beverages. Food Sci. Technol. 2022, 42, e54622. [Google Scholar] [CrossRef]
  16. Romani, S.; Rodriguez-Estrada, M.T. Chapter 5-Bakery Products and Electronic Nose. In Electronic Noses and Tongues in Food Science; Rodríguez Méndez, M.L., Ed.; Academic Press: San Diego, CA, USA, 2016; pp. 39–47. ISBN 978-0-12-800243-8. [Google Scholar]
  17. Wu, G.; Du, H.; Cha, Y.L.; Lee, D.; Kim, W.; Feyzbar-Khalkhali-Nejad, F.; Oh, T.S.; Zhang, X.; Kim, D.J. A wearable mask sensor based on polyaniline/CNT nanocomposites for monitoring ammonia gas and human breathing. Sens. Actuators B Chem. 2023, 375, 132858. [Google Scholar] [CrossRef]
  18. Kim, W.; Lee, D.; Wu, G.; Cha, Y.L.; Moazzem, M.S.; Cho, S.; Kim, D.-J. Molecularly Imprinted Chemiresistive Sensor for Specific Recognition of Furaneol as a Biomarker of Strawberry Flavor Conditions. ACS Sens. 2023, 8, 1542–1549. [Google Scholar] [CrossRef] [PubMed]
  19. Shaalan, N.M.; Ahmed, F.; Saber, O.; Kumar, S. Gases in Food Production and Monitoring: Recent Advances in Target Chemiresistive Gas Sensors. Chemosensors 2022, 10, 338. [Google Scholar] [CrossRef]
  20. Nikolic, M.V.; Milovanovic, V.; Vasiljevic, Z.Z.; Stamenkovic, Z. Semiconductor gas sensors: Materials, technology, design, and application. Sensors 2020, 20, 6694. [Google Scholar] [CrossRef] [PubMed]
  21. Wawrzyniak, J. Methodology for Quantifying Volatile Compounds in a Liquid Mixture Using an Algorithm Combining B-Splines and Artificial Neural Networks to Process Responses of a Thermally Modulated Metal-Oxide Semiconductor Gas Sensor. Sensors 2022, 22, 8959. [Google Scholar] [CrossRef]
  22. Dey, A. Semiconductor metal oxide gas sensors: A Review. Mater. Sci. Eng. B 2018, 229, 206–217. [Google Scholar] [CrossRef]
  23. Zong, B.; Wu, S.; Yang, Y.; Li, Q.; Tao, T.; Mao, S. Smart Gas Sensors: Recent Developments and Future Prospective; Springer Nature: Singapore, 2025; Volume 17, ISBN 0123456789. [Google Scholar]
  24. Lun, D.; Xu, K. Recent Progress in Gas Sensor Based on Nanomaterials. Micromachines 2022, 13, 919. [Google Scholar] [CrossRef]
  25. Zhang, L.; Khan, K.; Zou, J.; Zhang, H.; Li, Y. Recent Advances in Emerging 2D Material-Based Gas Sensors: Potential in Disease Diagnosis. Adv. Mater. Interfaces 2019, 6, 1901329. [Google Scholar] [CrossRef]
  26. Zappa, D.; Galstyan, V.; Kaur, N.; Munasinghe Arachchige, H.M.M.; Sisman, O.; Comini, E. Metal oxide-based heterostructures for gas sensors—A Review. Anal. Chim. Acta 2018, 1039, 1–23. [Google Scholar] [CrossRef]
  27. Wawrzyniak, J. Advancements in Improving Selectivity of Metal Oxide Semiconductor Gas Sensors Opening New Perspectives for Their Application in Food Industry. Sensors 2023, 23, 9548. [Google Scholar] [CrossRef]
  28. Lee, E.; Yoon, Y.S.; Kim, D.J. Two-Dimensional Transition Metal Dichalcogenides and Metal Oxide Hybrids for Gas Sensing. ACS Sens. 2018, 3, 2045–2060. [Google Scholar] [CrossRef]
  29. Ravindranath, V.; Singh, J.; Jayaprakasha, G.K.; Patil, B.S. Optimization of extraction solvent and fast blue BB assay for comparative analysis of antioxidant phenolics from Cucumis melo L. Plants 2021, 10, 1379. [Google Scholar] [CrossRef] [PubMed]
  30. Pimentel, A.; Ferreira, S.H.; Nunes, D.; Calmeiro, T.; Martins, R.; Fortunato, E. Microwave synthesized ZnO nanorod arrays for UV sensors: A seed layer annealing temperature study. Materials 2016, 9, 299. [Google Scholar] [CrossRef] [PubMed]
  31. Seekaew, Y.; Pon-On, W.; Wongchoosuk, C. Ultrahigh Selective Room-Temperature Ammonia Gas Sensor Based on Tin-Titanium Dioxide/reduced Graphene/Carbon Nanotube Nanocomposites by the Solvothermal Method. ACS Omega 2019, 4, 16916–16924. [Google Scholar] [CrossRef] [PubMed]
  32. Pimentel, A.; Samouco, A.; Nunes, D.; Araújo, A.; Martins, R.; Fortunato, E. Ultra-fast microwave synthesis of ZnO nanorods on cellulose substrates for UV sensor applications. Materials 2017, 10, 4–10. [Google Scholar] [CrossRef]
  33. Singh, S.A.; More, P.S.; Khollam, Y.B.; Kondawar, S.B. Enhanced hydrogen gas sensing characteristics of graphene modified with rubidium (Rb). Mater. Chem. Phys. 2021, 260, 124105. [Google Scholar] [CrossRef]
  34. Singh, S.; Sharma, S. Temperature dependent selective detection of ethanol and methanol using MoS2/TiO2 composite. Sens. Actuators B Chem. 2022, 350, 130798. [Google Scholar] [CrossRef]
  35. Szczurek, A.; Maciejewska, M.; Bąk, B.; Wilk, J.; Wilde, J.; Siuda, M. Gas sensor array and classifiers as a means of varroosis detection. Sensors 2020, 20, 117. [Google Scholar] [CrossRef]
  36. Szczurek, A.; Maciejewska, M.; Bąk, B.; Wilk, J.; Wilde, J.; Siuda, M. Detecting varroosis using a gas sensor system as a way to face the environmental threat. Sci. Total Environ. 2020, 722, 137866. [Google Scholar] [CrossRef] [PubMed]
  37. Štefániková, J.; Nagyová, V.; Hynšt, M.; Vietoris, V.; Martišová, P.; Nagyová, Ľ. Application of electronic nose for determination of Slovak cheese authentication based on aroma profile. Potravin. Slovak J. Food Sci. 2019, 13, 262–267. [Google Scholar] [CrossRef] [PubMed]
  38. Nakata, S.; Takahara, N. Distinction of gaseous mixtures based on different cyclic temperature modulations. Sens. Actuators B Chem. 2022, 359, 131615. [Google Scholar] [CrossRef]
  39. Morati, N.; Contaret, T.; Seguin, J.; Bendahan, M.; Morati, N.; Contaret, T.; Seguin, J.; Bendahan, M.; Djedidi, O.; Morati, N.; et al. Data Analysis-Based Gas Identification with a Single Metal Oxide Sensor Operating in Dynamic Temperature Regime. In Proceedings of the ALLSENSORS 2020, The Fifth International Conference on Advances in Sensors, Actuators, Metering and Sensing, Valencia, Spain, 21–25 November 2019. [Google Scholar]
  40. Wawrzyniak, J. Quantitative determination of volatile compounds in a mixture using a single thermally modulated metal oxide semiconductor gas sensor and convolutional neural networks. Microchem. J. 2025, 211, 113083. [Google Scholar] [CrossRef]
  41. Huang, S.; Ibarlucea, B.; Cuniberti, G. Discrimination of Methanol from Ethanol Using Graphene-based Smart Gas Sensors. In Proceedings of the ISOEN 2024-International Symposium on Olfaction and Electronic Nose, Grapevine, TX, USA, 12–15 May 2024; pp. 1–3. [Google Scholar] [CrossRef]
  42. Durán, C.; Benjumea, J.; Carrillo, J. Response optimization of a chemical gas sensor array using temperature modulation. Electronics 2018, 7, 54. [Google Scholar] [CrossRef]
  43. Krivetskiy, V.V.; Andreev, M.D.; Efitorov, A.O.; Gaskov, A.M. Statistical shape analysis pre-processing of temperature modulated metal oxide gas sensor response for machine learning improved selectivity of gases detection in real atmospheric conditions. Sens. Actuators B Chem. 2021, 329, 129187. [Google Scholar] [CrossRef]
  44. Chutia, R.; Bhuyan, M. Best frequency for temperature modulation of tin oxide gas sensor for chemical vapor identification. Int. J. Eng. Technol. 2014, 6, 1158–1166. [Google Scholar]
  45. Shi, X.; Zhang, H.; Ji, H.; Meng, F. Dynamic Measurement of VOCs with Multiple Characteristic Peaks Based on Temperature Modulation of ZnO Gas Sensor. Chemosensors 2022, 10, 226. [Google Scholar] [CrossRef]
  46. Mu, F.; Gu, Y.; Zhang, J.; Zhang, L. Milk source identification and milk quality estimation using an electronic nose and machine learning techniques. Sensors 2020, 20, 4238. [Google Scholar] [CrossRef]
  47. Abdelghani, R.M.; Kashyout, A.E.B.; Morsi, I.; Taha, T.E.; Soliman, N.F.; El-shafai, W. Synthesis and characterization of hematite nanomaterials imprinted with acetone, ethanol and methanol for AI-Based IoT gas sensor arrays. Sci. Rep. 2025, 15, 29821. [Google Scholar] [CrossRef] [PubMed]
  48. Bora, A.; Chandra, S.K. A Temperature Modulation Circuit for Metal Oxide Semiconductor Gas Sensor. Indian J. Sci. Technol. 2015, 8, 1–7. [Google Scholar] [CrossRef]
  49. Rescalli, A.; Marzorati, D.; Gelosa, S.; Cellesi, F.; Cerveri, P. Temperature Modulation of MOS Sensors for Enhanced Detection of Volatile Organic Compounds. Chemosensors 2023, 11, 501. [Google Scholar] [CrossRef]
  50. Weast, R.C. CRC Handbook of Chemistry and Physics, 67th ed.; CRC Press Inc.: Boca Raton, FL, USA, 1986. [Google Scholar]
  51. Yoshizawa, T.; Kamijo, Y.; Fujita, Y.; Suzuki, Y.; Hanazawa, T.; Usui, K.; Kishino, T. Mild manifestation of methanol poisoning half a day after massive ingestion of a fuel alcohol product containing 70% ethanol and 30% methanol: A case report. Acute Med. Surg. 2018, 5, 289–291. [Google Scholar] [CrossRef]
  52. Ahumada, L.A.C.; Cruz, A.F.S.; Fox, M.A.G.; Sandoval, O.L.H. Useful Piezoelectric Sensor to Detect False Liquor in Samples with Different Degrees of Adulteration. J. Sens. 2018, 2018, 924094. [Google Scholar] [CrossRef]
  53. Kraut, J.A. Approach to the Treatment of Methanol Intoxication. Am. J. Kidney Dis. 2016, 68, 161–167. [Google Scholar] [CrossRef]
  54. Prakasha, B.S.; Shukla, G.; Subramanian, A. Discriminative analysis of volatile organic compounds using machine-learning assisted Au loaded ZnO and TiO2-based thin film sensors. Sens. Actuators A. Phys. 2024, 373, 115385. [Google Scholar] [CrossRef]
  55. Chen, C.; Liaw, H.; Shu, C.; Hsieh, Y. Autoignition Temperature Data for Methanol, Ethanol, Propanol, 2-Butanol, 1-Butanol, and 2-Methyl-2, 4-pentanediol. J. Chem. Eng. Data 2010, 55, 5059–5064. [Google Scholar] [CrossRef]
  56. Whan, Y.; Yang, B.; Thi, D.; To, H.; Resendiz, E.; Hyoung, K.; Vincent, N.; Liu, Y. Improved selectivity toward methanol detection via Pd-functionalized tungsten trioxide nanofiber gas sensors. Chem. Eng. J. 2025, 523, 168814. [Google Scholar] [CrossRef]
  57. Moalaghi, M.; Gharesi, M.; Ranjkesh, A. Topic: Chemical Sensors, P1GS.22-Tin Oxide Gas Sensor on Tin Oxide Microheater for Methane. Sensing 2018, 9, 560–561. [Google Scholar] [CrossRef]
  58. Tsuruta, A.; Itoh, T.; Mikami, M.; Terasaki, I.; Murayama, N.; Shin, W.S. Trial of an All-Ceramic SnO2 Gas Sensor Equipped with CaCu3Ru4O12 Heater and Electrode. Materials 2018, 11, 981. [Google Scholar] [CrossRef] [PubMed]
  59. Hossein-Babaei, F.; Amini, A. A breakthrough in gas diagnosis with a temperature-modulated generic metal oxide gas sensor. Sens. Actuators B Chem. 2012, 166–167, 419–425. [Google Scholar] [CrossRef]
  60. Guo, Q.; Li, T.; Qu, Y.; Wang, X.; Liu, L.; Liu, H.; Wang, Q. Action of phytosterols on thermally induced trans fatty acids in peanut oil. Food Chem. 2021, 344, 128637. [Google Scholar] [CrossRef] [PubMed]
  61. Fan, J.; Sun, Q.; Zhou, W.; Zhu, Z. Principal Component Analysis for Big Data. Wiley StatsRef Stat. Ref. Online 2018, 1–13. [Google Scholar] [CrossRef]
  62. Zinno, P.; Guantario, B.; Lombardi, G.; Ranaldi, G.; Finamore, A.; Allegra, S.; Mammano, M.M.; Fascella, G.; Raffo, A.; Roselli, M. Chemical Composition and Biological Activities of Essential Oils from Origanum vulgare Genotypes Belonging to the carvacrol and thymol chemotypes. Plants 2023, 12, 1344. [Google Scholar] [CrossRef]
  63. Lima, C.M.G.; Silveira, P.G.; Santana, R.F.; da Piedade Edmundo Sitoe, E.; Bonomo, R.C.F.; Coutinho, H.D.M.; Wawrzyniak, J.; de Carvalho dos Anjos, V.; Bell, M.J.V.; Contado, J.L.; et al. Leveraging infrared spectroscopy for cocoa content prediction: A dual approach with Kohonen neural network and multivariate modeling. Spectrochim. Acta-Part A Mol. Biomol. Spectrosc. 2025, 335, 125975. [Google Scholar] [CrossRef]
  64. Koraqi, H.; Wawrzyniak, J.; Aydar, A.Y.; Pandiselvam, R.; Khalide, W.; Petkoska, A.T.; Karabagias, I.K.; Ramniwas, S.; Rustagi, S. Application of multivariate analysis and Kohonen Neural Network to discriminate bioactive components and chemical composition of kosovan honey. Food Control 2025, 172, 111072. [Google Scholar] [CrossRef]
  65. Sitoe, E.; Gonçalves Lima, C.M.; Wawrzyniak, J.; Mourão, M. Integration of PCA, HCA, and KNN to Evaluate Packaging and Storage Conditions for Red Bell Peppers. J. Food Sci. 2025, 90, e70367. [Google Scholar] [CrossRef]
  66. Greenacre, M.; Groenen, P.J.F.; Hastie, T.; D’Enza, A.I.; Markos, A.; Tuzhilina, E. Principal component analysis. Nat. Rev. Methods Primers 2022, 2, 100. [Google Scholar] [CrossRef]
  67. Karamizadeh, S.; Abdullah, S.M.; Manaf, A.A.; Zamani, M.; Hooman, A. An Overview of Principal Component Analysis. J. Signal Inf. Process. 2013, 4, 173–175. [Google Scholar] [CrossRef]
  68. Shrestha, N. Factor Analysis as a Tool for Survey Analysis. Am. J. Appl. Math. Stat. 2021, 9, 4–11. [Google Scholar] [CrossRef]
  69. Cybenko, G. Approximation by superpositions of a sigmoidal function. Math. Control Signals Syst. 1989, 2, 303–314. [Google Scholar] [CrossRef]
  70. Panagou, E.Z.; Kodogiannis, V.S. Application of neural networks as a non-linear modelling technique in food mycology. Expert Syst. Appl. 2009, 36, 121–131. [Google Scholar] [CrossRef]
  71. Ebrahimi, M.; Safari Sinegani, A.A.; Sarikhani, M.R.; Mohammadi, S.A. Comparison of artificial neural network and multivariate regression models for prediction of Azotobacteria population in soil under different land uses. Comput. Electron. Agric. 2017, 140, 409–421. [Google Scholar] [CrossRef]
  72. Wawrzyniak, J. Application of artificial neural networks to assess the mycological state of bulk stored rapeseeds. Agriculture 2020, 10, 567. [Google Scholar] [CrossRef]
  73. Wawrzyniak, J. Prediction of fungal infestation in stored barley ecosystems using artificial neural networks. LWT 2021, 137, 110367. [Google Scholar] [CrossRef]
  74. Huang, Y. Advances in artificial neural networks-Methodological development and application. Algorithms 2009, 2, 973–1007. [Google Scholar] [CrossRef]
  75. Rapado-Rincón, D.; van Henten, E.J.; Kootstra, G. Development and evaluation of automated localisation and reconstruction of all fruits on tomato plants in a greenhouse based on multi-view perception and 3D multi-object tracking. Biosyst. Eng. 2023, 231, 78–91. [Google Scholar] [CrossRef]
  76. Sanaeifar, A.; Guindo, M.L.; Bakhshipour, A.; Fazayeli, H.; Li, X.; Yang, C. Advancing precision agriculture: The potential of deep learning for cereal plant head detection. Comput. Electron. Agric. 2023, 209, 107875. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of the measurement system for the TGS2610-C sensor. RS represents the sensor resistance, RL denotes the auxiliary (load) resistor, while VC and VH correspond to the voltages applied to the sensor circuit and micro-heater circuit, respectively. VOUT is the output voltage measured across a voltage divider that incorporates the auxiliary resistor RL, providing a signal related to the sensor resistance RS [21].
Figure 1. Schematic diagram of the measurement system for the TGS2610-C sensor. RS represents the sensor resistance, RL denotes the auxiliary (load) resistor, while VC and VH correspond to the voltages applied to the sensor circuit and micro-heater circuit, respectively. VOUT is the output voltage measured across a voltage divider that incorporates the auxiliary resistor RL, providing a signal related to the sensor resistance RS [21].
Sensors 25 06913 g001
Figure 2. (a) Effect of sample volume and cross-sectional area of the measurement vessel on the responses of the thermally modulated MOS gas sensor. (b) The dynamics of the voltage supply to the micro-heater of a thermally modulated MOS gas sensor during the quantitative detection of volatile compounds in liquid mixtures.
Figure 2. (a) Effect of sample volume and cross-sectional area of the measurement vessel on the responses of the thermally modulated MOS gas sensor. (b) The dynamics of the voltage supply to the micro-heater of a thermally modulated MOS gas sensor during the quantitative detection of volatile compounds in liquid mixtures.
Sensors 25 06913 g002
Figure 3. Diagram of the general structure of MLP neural networks employed to develop a model for estimating the composition of liquid mixtures containing ethanol and methanol, utilizing signals from a thermally modulated MOS gas sensor.
Figure 3. Diagram of the general structure of MLP neural networks employed to develop a model for estimating the composition of liquid mixtures containing ethanol and methanol, utilizing signals from a thermally modulated MOS gas sensor.
Sensors 25 06913 g003
Figure 4. Output voltage responses of the thermally modulated MOS gas sensor for (a) varying concentrations of methanol with ethanol fixed at its minimum level (31 ppm), (b) varying concentrations of methanol with ethanol at fixed at its maximum level (2000 ppm), (c) varying concentrations of ethanol with methanol fixed at its minimum level (31 ppm), and (d) varying concentrations of ethanol with methanol fixed at its maximum level (2000 ppm).
Figure 4. Output voltage responses of the thermally modulated MOS gas sensor for (a) varying concentrations of methanol with ethanol fixed at its minimum level (31 ppm), (b) varying concentrations of methanol with ethanol at fixed at its maximum level (2000 ppm), (c) varying concentrations of ethanol with methanol fixed at its minimum level (31 ppm), and (d) varying concentrations of ethanol with methanol fixed at its maximum level (2000 ppm).
Sensors 25 06913 g004
Figure 5. Effect of the number of hidden-layer neurons and the type of activation functions (logistic (Log), hyperbolic tangent (Tanh), and exponential (Exp)) in hidden-layer neurons on the average (a) learning, (b) test, and (c) validation error of MLP neural networks containing a linear function (Lin) in neurons of the output layer applied to estimating the composition of ethanol–methanol liquid mixtures, based on the response patterns of a thermally modulated MOS gas sensor.
Figure 5. Effect of the number of hidden-layer neurons and the type of activation functions (logistic (Log), hyperbolic tangent (Tanh), and exponential (Exp)) in hidden-layer neurons on the average (a) learning, (b) test, and (c) validation error of MLP neural networks containing a linear function (Lin) in neurons of the output layer applied to estimating the composition of ethanol–methanol liquid mixtures, based on the response patterns of a thermally modulated MOS gas sensor.
Sensors 25 06913 g005aSensors 25 06913 g005b
Figure 6. Predicted levels of the tested volatile compounds obtained using the MLP neural network model (MLP-ANNE-M) compared with experimentally applied levels of ethanol for the (a) learning, (c) test, (e) validationdatasets and methanol for the (b) learning, (d) test, (f) validation datasets.
Figure 6. Predicted levels of the tested volatile compounds obtained using the MLP neural network model (MLP-ANNE-M) compared with experimentally applied levels of ethanol for the (a) learning, (c) test, (e) validationdatasets and methanol for the (b) learning, (d) test, (f) validation datasets.
Sensors 25 06913 g006aSensors 25 06913 g006b
Table 1. Summary of the architecture and performance metrics of the following MLP neural networks: the best-performing model for estimating the composition of liquid mixtures containing ethanol and methanol based on the responses of a thermally modulated MOS gas sensor and a group of 1000 networks with the same architecture as the best model. El—learning, Et—test, and Ev—validation errors (all express as the root mean square error, ppm), SD—standard deviation of errors.
Table 1. Summary of the architecture and performance metrics of the following MLP neural networks: the best-performing model for estimating the composition of liquid mixtures containing ethanol and methanol based on the responses of a thermally modulated MOS gas sensor and a group of 1000 networks with the same architecture as the best model. El—learning, Et—test, and Ev—validation errors (all express as the root mean square error, ppm), SD—standard deviation of errors.
Neural Networks TopologyActivation Functions Hidden/Output LayerNetwork Group/
Error Metric
Errors (ppm)
ElEtEv
MLP 3-12-2Tanh/LinBest model13.2712.0112.57
Group of 1000 networksmean16.9016.6817.48
Group of 1000 networksSD1.722.322.52
Table 2. Statistical metrics applied to assess the predictive performance of the MLP neural network model for determining the composition of ethanol–methanol liquid mixtures, using data from a thermally modulated MOS gas sensor computed for learning (L), test (T), validation (V), and full (F) datasets.
Table 2. Statistical metrics applied to assess the predictive performance of the MLP neural network model for determining the composition of ethanol–methanol liquid mixtures, using data from a thermally modulated MOS gas sensor computed for learning (L), test (T), validation (V), and full (F) datasets.
Statistical IndexEthanolMethanol
Dataset
LTVFLTVF
Coefficient of determination (R2)0.99940.99970.99960.99950.99960.99960.99950.9998
Root mean square error (RMSE)14.3711.7111.2813.6711.6012.3013.7212.25
Mean absolute error (MAE)9.028.367.388.678.3110.0210.658.82
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wawrzyniak, J. Quantification of Volatile Compounds in Mixtures Using a Single Thermally Modulated MOS Gas Sensor with PCA–ANN Data Processing. Sensors 2025, 25, 6913. https://doi.org/10.3390/s25226913

AMA Style

Wawrzyniak J. Quantification of Volatile Compounds in Mixtures Using a Single Thermally Modulated MOS Gas Sensor with PCA–ANN Data Processing. Sensors. 2025; 25(22):6913. https://doi.org/10.3390/s25226913

Chicago/Turabian Style

Wawrzyniak, Jolanta. 2025. "Quantification of Volatile Compounds in Mixtures Using a Single Thermally Modulated MOS Gas Sensor with PCA–ANN Data Processing" Sensors 25, no. 22: 6913. https://doi.org/10.3390/s25226913

APA Style

Wawrzyniak, J. (2025). Quantification of Volatile Compounds in Mixtures Using a Single Thermally Modulated MOS Gas Sensor with PCA–ANN Data Processing. Sensors, 25(22), 6913. https://doi.org/10.3390/s25226913

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