Next Article in Journal
A Multifunctional Sensor in Ternary Solution Using Canonical Correlations for Variable Links Assessment
Next Article in Special Issue
Portable Electronic Tongue Based on Microsensors for the Analysis of Cava Wines
Previous Article in Journal
Development and Application of a Wireless Sensor for Space Charge Density Measurement in an Ultra-High-Voltage, Direct-Current Environment
Previous Article in Special Issue
Discrimination of Apple Liqueurs (Nalewka) Using a Voltammetric Electronic Tongue, UV-Vis and Raman Spectroscopy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Chocolate Classification by an Electronic Nose with Pressure Controlled Generated Stimulation

by
Luis F. Valdez
and
Juan Manuel Gutiérrez
*
Bioelectronics Section, Department of Electrical Engineering, CINVESTAV, Mexico City 07360, Mexico
*
Author to whom correspondence should be addressed.
Sensors 2016, 16(10), 1745; https://doi.org/10.3390/s16101745
Submission received: 30 August 2016 / Revised: 4 October 2016 / Accepted: 13 October 2016 / Published: 20 October 2016
(This article belongs to the Special Issue Olfactory and Gustatory Sensors)

Abstract

:
In this work, we will analyze the response of a Metal Oxide Gas Sensor (MOGS) array to a flow controlled stimulus generated in a pressure controlled canister produced by a homemade olfactometer to build an E-nose. The built E-nose is capable of chocolate identification between the 26 analyzed chocolate bar samples and four features recognition (chocolate type, extra ingredient, sweetener and expiration date status). The data analysis tools used were Principal Components Analysis (PCA) and Artificial Neural Networks (ANNs). The chocolate identification E-nose average classification rate was of 81.3% with 0.99 accuracy (Acc), 0.86 precision (Prc), 0.84 sensitivity (Sen) and 0.99 specificity (Spe) for test. The chocolate feature recognition E-nose gives a classification rate of 85.36% with 0.96 Acc, 0.86 Prc, 0.85 Sen and 0.96 Spe. In addition, a preliminary sample aging analysis was made. The results prove the pressure controlled generated stimulus is reliable for this type of studies.

1. Introduction

Food analysis has always been important in order to characterize the properties of foods and their constituents. To obtain this information, it is common to use sophisticated procedures capable of providing a complete fingerprint on a wide variety of characteristics associated with the composition, structure, physicochemical properties, and sensory attributes [1]. In the last two decades, the technology of aroma-sensors has been developed and is now a competitive analytical tool even with the classical analytical chemistry methods such as gas chromatographic techniques. These novel analytical tools known as Electronics Noses (E-noses) can be successfully used as a rapid screening technique in aroma analysis [2]. An E-nose is an electronic device that tries to emulate the mammalian olfactory system process of detection, recording, memory search and recognition of odors. Its main component is an array of nonspecific chemical sensors [3].
Nowadays, we can find several works on the E-nose field, each one with different goals like food products evaluation [4,5,6,7], environment safety [8,9,10,11], disease diagnosis [12,13,14], etc. Making a review of the mentioned systems in the last decade, we can divide E-noses into three main blocks, each one presenting a few variations:
  • The “odor sampling” unit is the one in charge of supplying a controlled “stimulus” to the sensor array. The controlled features can be different for each device, and the most widely used is flow control.
  • The sensor array contains more than one gas sensor, which might have different gas sensors technology, gas chamber shapes and sensor distribution.
  • The data processing unit is the one in charge of recording and recognition of the odors. It uses a combination of multiple techniques to extract the useful data from the sensors signals. Some of these techniques are Linear Discriminant Analysis (LDA), Principal Component Analysis (PCA), Artificial Neuronal Networks (ANNs), Support Vector Machines (SVM) and other artificial intelligence tools. This block implementation can be found on a variety of devices from personal computer to a digital signal processor.
The purpose of this work is to analyze the response of a Metal Oxide Gas Sensor (MOGS) array to a flow controlled stimulus generated in a pressure controlled canister using our portable olfactometer design [15] and build an E-nose. The selected odor source was chocolate because it is a commercialized product worldwide and one of the most popular snacks in the world. In addition, there are various products and, usually, its real contents or ingredient quality is unknown. There are some works related to the characterization and evaluation of chocolate, they use different techniques and procedures like colorimetry, panelist groups, high performance liquid chromatography (HPLC), High-sensitivity-Proton Transfer Reaction Mass Spectrometry (HS-PTR-MS), Fourier Transformed Infrared Spectroscopy (FT-IR), Gas Chromatography (GC) or Mass Spectrometry, among others [16,17,18,19,20,21]. These studies indicate chocolate can be characterized by its volatiles composition being a mix of alcohols, aldehydes, esters, ketones, furans, pyrans, pyrazines, pyridines, pyrroles, phenols, pyrenes and thiozoles [19]. This composition may be sensed by the MOGSs array to make an evaluation of their quality, freshness or even its packing/storage quality. Finally, we will evaluate the possibility to integrate our olfactometer design and the build E-nose in a portable “product odor evaluation platform” to characterize other products with ease.

2. Materials and Methods

2.1. Samples

The chocolate samples were taken from 26 commercial chocolate bars that share one or more characteristics between them (a complete description of the set is shown in Table S1). Considering the label description, the different chocolate bars were grouped as follows: first classification according to chocolate type (dark, soft dark and milk chocolate), followed by a second classification with 5 groups based in the extra ingredients (fruit, oils, etc.) added to the bars, a third classification based in the sweetener (with sugar and sugar free), and a fourth one based on the expiration date (spoiled and unspoiled). The samples subdivision is shown in Table 1. All chocolate bars were stored in separated sealed airtight bags at room temperature.

2.2. Olfactometer

A homemade laboratory olfactometer [15] was used to control the sensor array stimulation. The main function of an olfactometer is to produce a controlled olfactory stimulus. In our design, the stimulus is produced by controlling the pressure inside the odor canister (a 100 mL glass flask where the liquid or solid odorant samples are placed) and activating the output valve of the desired channel. The olfactometer can make mixes between 4 odor channels and a clean air channel. It can use the clean air channel to generate a carrier flow and dilute the odor stimulus if needed.
Figure 1 illustrates the general dynamics of one channel when its output is activated. The pressure in the canister (p) is regulated by controlling the clean air input giving the needed increase of pressure (Δpi) to reach the desired pressure and after it is achieved it will only compensate the pressure decrease (Δpo) produced by the odorized air output. With the canister pressure controlled, the output flow will also be controlled. Considering all the experiments were conducted in laboratory-controlled environment (room temperature of 25 °C) and that the temperature of the canister is the same as the room temperature a regular volatilization of the volatile compounds in the sample can be achieved. This process will be ruled by the vapor pressure of the volatile compounds mixture and the selected system pressure, but we must consider that a steady concentration of the volatile compounds at the output will be obtained only if the composition of the mixture remains the same.
The test routine will be programed using its graphical interface and signal acquisition will be synchronized using the olfactometer digital outputs.

2.3. E-Nose Sensor Array

E-nose sensor array case design and sensors characteristics.The sensor array used was composed by 7 commercial MOGSs plus a temperature sensor. The gas sensors were placed inside of a 3D printed case made of polylactide (PLA) and the temperature sensor is located in the middle of the array as shown in Figure 2. O-rings were placed between the sensors and the case to avoid possible leaks. Finally, the olfactometer was connected to the sensor array via polytetrafluoroethylene (PTFE) tubing with 30 cm length and 1 mm of intern diameter.

2.4. Test Settings

The test platform was built using the reported olfactometer [15] to control the stimulus, the sensors array, a data acquisition board (Measurement Computing, PMD-1608FS) and a personal computer as is shown in Figure 3. Two sensor arrays were constructed; one was used in experiment 1 and the other in experiment 2.
A sensor array preparation routine was executed before the tests were started; it consists on the activation of the sensor array heaters and the carrier airflow (clean air channel at 250 mL/min) at least 72 h before the first sample was introduced to the olfactometer. This routine is necessary to achieve a steady response of the sensor array. The heater and carrier flow will not be turned off until the end of all the experiments.
Sensor array and synchronization signals were recorded with a sample rate of 10 Hz for experiment 1 and 1 Hz for experiment 2. The test sequence was:
  • Ten grams of a chocolate bar were placed inside a clean canister of the olfactometer (after the sample was taken the chocolate was stored in its airtight bag). For experiment 1, the canister was connected to the olfactometer right away. Instead, for experiment 2, a cap was placed and the sample was stored for 48 h before connecting it.
  • Two minutes of of 200 mL/min odor flow (generated by one of the olfactometer channels with the sample in and a canister pressure of 0.08 bar)
  • A cleaning sequence of 5 min pause, 2 min of 200 mL/min flow (generated by a second olfactometer channel with clean empty canister at 0.08 bars) and another 5 min pause.
  • Points 2 and 3 were repeated 40 times.
  • Wait at least 2 h and repeat from point 1 with the next sample.
Experiment 1 was conducted from 10 to 30 May and experiment 2 from 3 to 10 June. In addition, experiment 2 was only conducted for the first 10 chocolate bars. The reasons of the changes in experiment 2 will be explained later.

2.5. Signal Processing

After the acquisition of the signals, the 2-min sections of odor stimulation were segmented from the record. Each segment was centered by subtracting its mean value. Data analysis was made to evaluate the frequency and data content of the signals. After the analysis, it was decide to reduce the sample frequency of experiment 2 in order to reduce the data to process in the future when the E-nose is implemented in an embedded device.
The segmented data were organized in a data matrix; the experiment 1 data were subsampled using a moving average filter of 9 samples to 1 Hz making both experiment vectors the same length. The obtained data base size was 120 × 8 × 26 × 40 (samples, sensors, chocolate bars, and repetitions) for experiment 1 and 120 × 8 × 10 × 40 for experiment 2.
A preliminary PCA was made to evaluate the dispersion of the obtained data; gas sensor data was concatenated and all the tests were organized as rows for each experiment, giving a 1040 × 840 matrix to apply PCA for feature selection in experiment 1 and 400 × 840 for experiment 2. Afterwards, ANNs were used to build classification models to prove the acquired signals can be used to identify which chocolate is analyzed or identify some of its characteristics.

3. Results and Discussion

Recorded data were analyzed in order to identify differences between experiments or along them. Figure 4 shows the concatenated response of the gas sensors across the 40 test cycles in experiment 1 for chocolate G, where a decrease in the maximum value of the signal is observed from the first test to the last. We must consider sensor 1 shows a decreasing response so its minimum value is the one to be evaluated. The depletion of the volatile compounds in the samples or sample oxidation may be the responsible of this change so it can be associated with an aging process.
To see if this process is also shown using an aged sample, the preparation protocol was modified by adding the 48 h storage of the samples before starting the test. In this way, we expect to capture an advanced stage of this aging process. The aging process is clearly visible by observing the results on Figure 5; there are no crests at the start of the test. However, the signals still show a decrease in the response of the sensors this may indicate the pressure controlled canister helps to have a regular depletion of the volatile compounds. Nevertheless, further tests are needed to identify if this measure can be used to evaluate this sample aging. If it is possible, it can be used for chocolates and similar products as a quality characteristic or to evaluate its packing/storage state.
The aging of the samples can only be attributed to the alteration or loss of their volatile compounds and not to the sensor aging drift. Aging drift was considered to be non-existent considering the whole experimental phase spans around one month and based on a study of long term stability of MOGS, the variations in the signal amplitude are around 2.5% per month [22].
Once the pressure controlled generated stimulus proved to produce a stable response in the sensor array, a PCA analysis was done in order to build a preliminary recognition model, expecting to see some clustering produced by the variations in the volatiles composition of chocolate and brand-related processing as stated in [18]. Figure 6 and Figure 7 show Experiment 1 and Experiment 2 PCA results, respectively, where we can see some clustering based on chocolate type. Other PCA results can be consulted on the supplementary materials (Figures S1–S6) colored to see clustering associated to other characteristics such as extra ingredients, sweetener and expiration date.
Besides the clustering, we can analyze the contribution of each sensor from the loadings of the first three components shown in Figure 8, where we can see in experiment 1 all the sensors contribute but in experiment 2 sensor 1 has almost no contribution to the Principal Components (PCs) indicating that it reacts almost in the same way for all the aged samples. PC4 to PC18 Loadings plots can be consulted in Supplementary Materials (Figures S7–S12). Nevertheless, we will make use of the whole array data according to the concept of an E-nose.
The other objective of the PCA was focused on the dimensionality reduction of the input vector that feed the ANN. In this way, some of the PCs were selected, considering that the accumulative variance of the them was at least 95% [23]. The dimensionality reduction assures the constructed network will be easily implemented in hardware as part of an on-line identification device in the near future. Two different classifiers were made using Multilayer Perceptron Neural Networks (MLPs). The first one will identify which chocolate is being analyzed, so it will have one output neuron for each trained chocolate bar (experiment 1, 26 neurons; and experiment 2, 10 neurons). Several tests were made for the optimization of the network architecture and selection of the number of PCs to be used. The selected architectures based in its performance and dimensionalities were:
  • Experiment 1: 15 × 10 × 26 with sigmoid tangent activation functions in the hidden and output layer. The classifier threshold was set from 0.8 to 1.
  • Experiment 2: 10 × 6 × 10 with sigmoid tangent activation functions in the hidden and output layer. The classifier threshold was set from 0.8 to 1.
Training was conducted for each experiment with 75% of the data (30 cycles per sample) and tested with the remaining information (10 cycles per sample) using the Resilient Back Propagation (Rprop) training algorithm [24]. Training settings are shown on Table S2. Cross validation was made through K-fold validation algorithm with k = 4.
The tests average results for 10 repetitions of training and validation after random selection of the training and test data is shown on Table 2 for experiment 1 and Table 3 for experiment 2. Experiment 1 classification rate is 93.2% for training and 84.2% for test. Experiment 2 classification rate is 94.6% for training and 79.7% for test.
We can highlight some trends in the results:
  • In both experiments, the chocolates that contain fruit have a better classification rate than other chocolates, as expected from the PCA results.
  • In experiment 2, from chocolates without fruit, the best classification is observed in Chocolate D. It has the peculiarity of being the only sugar free chocolate included in this test.
  • In both experiments, Chocolates B and E have a low confusion rate between them despite being from the same brand. This may point the E-nose has the ability to differentiate between spoiled and fresh samples.
The second classifier used a 10-output codification; this network will try to classify the samples as shown on Table 1 to verify if it possible to identify these chocolate characteristics at the same time. The selected architecture was 30 × 10 × 10 with sigmoid tangent activation functions in the hidden and output layers because of its performance. Training was conducted as the previous classifier (75% training and 25% test). K-fold cross validation with k = 4 was performed and the test average results for 10 repetitions of training and validation after random selection of the training and test data is shown on Table 4 for experiment 1, giving an average classification rate of 85.36%.
The results indicate:
  • Chocolate samples can be correctly classified as dark, soft dark and milk chocolate regardless of its other ingredients. In addition, these ingredients can be identified.
  • It is possible that the used sweetener modifies the volatile compounds and that is why sugar classifier have a good performance and the strawberry classifier has troubles classifying Q samples that have Splenda® (Tate & Lyle, London, UK) as sweetener.
  • Spoiled samples classifier has a bad performance but this can be caused by the lack of samples, so we propose to make another study with more spoiled samples in the future.
For experiment 2, the same classification was made but the outputs were reduced to eight based on the analyzed samples. The classifier architecture was 30 × 10 × 8 and the results are shown in Table 5.
The results show good performance of the classifier but we must make a couple of notes:
  • After the samples were aged, they could still be classified with similar performance.
  • Spoiled sample detection was better in experiment 2. This can be explained if we consider the spoiled sample aging leads to the loss of the remaining volatile compounds or its accelerated decomposition.
The classifiers have a good performance considering the sensors used in the sensor array are one of the most simple and economic gas sensors available.

4. Conclusions

This study demonstrates that the use of commercial and nonspecific gas sensors to cocoa volatile compounds can be useful in the characterization of real chocolate samples without any pretreatment. The results prove that the pressure controlled generated stimulus is reliable for these types of studies, and the employed sensor array gives sufficient data for the proposed classification through a characteristic fingerprint of a mixture of volatile compounds present in each sample.
Connected to this, the differences between the performance of experiment 1 and experiment 2 classifiers indicate the possibility to identify an aging sample process that must be considered in future experiments. This preliminary finding suggests that the analysis of this aging process could be improved, not only by the measure of a wide range of volatile compounds (integrating other MOGSs to the current sensor array) but also using features related to the measuring conditions used. In addition, there is the alternative of evaluating sample aging itself, using features like the time or number of cycles that the maximum value of a signal takes to fall a certain percentage or others related to signal shape changes.
It is interesting to note that the integration between the olfactometer and the E-nose on a single device to obtain a “product odor evaluation platform” has shown good performance of discrimination and can be used to evaluate other products with ease in the near future.

Supplementary Materials

The following are available online at https://www.mdpi.com/1424-8220/16/10/1745/s1, Table S1: Chocolate samples description, Table S2: Training parameters for both classifiers, Table S3: Classifier 1, experiment 1 full test results, Table S4: Classifier 1, experiment 1 full training results, Table S5: Classifier 2, experiment 1 full test results, Table S6: Classifier 2, experiment 1 full training results, Figure S1: Experiment 1 PCA colored by extra ingredient, Figure S2: Experiment 2 PCA colored by extra ingredient, Figure S3: Experiment 1 PCA colored by Sweetener, Figure S4: Experiment 2 PCA colored by Sweetener, Figure S5: Experiment 1 PCA colored by expiration date, Figure S6: Experiment 1 PCA colored by expiration date, Figure S7: Experiment 1 PC1 to PC6 loadings plot, Figure S8: Experiment 1 PC7 to PC12 loadings plot, Figure S9: Experiment 1 PC13 to PC18 loadings plot, Figure S10: Experiment 2 PC1 to PC6 loadings plot, Figure S11: Experiment 2 PC7 to PC12 loadings plot, Figure S12: Experiment 2 PC13 to PC18 loadings plot, Test database.

Acknowledgments

Authors would like to express their gratitude to the Mexican National Council of Science and Technology (CONACyT) for the financial support and Ph.D. fellowship for Luis Fernando Valdez.

Author Contributions

All the authors contributed equally to this work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Magdalena, S.; Wisniewska, P.; Dymerski, T.; Namiesnik, J.; Wardencki, W. Food Analysis Using Artificial Senses. J. Agric. Food Chem. 2014, 62, 1423–1448. [Google Scholar]
  2. Wilson, A.; Baietto, M. Applications and advances in electronic-nose technologies. Sensors 2009, 9, 5099–5148. [Google Scholar] [CrossRef] [PubMed]
  3. Patel, H.K. The Electronic Nose: Artificial Olfaction Technology; Biological and Medical Physics, Biomedical Engineering; Springer: New Delhi, India, 2014. [Google Scholar]
  4. Sberveglieri, V.; Carmona, E.N.; Comini, E.; Ponzoni, A.; Zappa, D.; Pirrotta, O.; Pulvirenti, A. A novel electronic nose as adaptable device to judge microbiological quality and safety in foodstuff. Biomed. Res. Int. 2014, 2014, 529519. [Google Scholar] [CrossRef] [PubMed]
  5. Biondi, E.; Blasioli, S.; Galeone, A.; Spinelli, F.; Cellini, A.; Lucchese, C.; Braschi, I. Detection of potato brown rot and ring rot by electronic nose: From laboratory to real scale. Talanta 2014, 129, 422–430. [Google Scholar] [CrossRef] [PubMed]
  6. Kiani, S.; Minaei, S.; Ghasemi-Varnamkhasti, M. Application of electronic nose systems for assessing quality of medicinal and aromatic plant products: A review. J. Appl. Res. Med. Aromat. Plants 2016, 3, 1–9. [Google Scholar] [CrossRef]
  7. Kiani, S.; Minaei, S.; Ghasemi-Varnamkhasti, M. A portable electronic nose as an expert system for aroma-based classification of saffron. Chemom. Intell. Lab. Syst. 2016, 156, 148–156. [Google Scholar] [CrossRef]
  8. Olguín, C.; Laguarda-Miró, N.; Pascual, L.; García-Breijo, E.; Martínez-Mañez, R.; Soto, J. An electronic nose for the detection of Sarin, Soman and Tabun mimics and interfering agents. Sens. Actuators B Chem. 2014, 202, 31–37. [Google Scholar] [CrossRef]
  9. Joseph, P.; Bakirtzis, D.; Vieille, A. An “electronic nose” as a potential device for fire detection of forest product fire loads in enclosures. Wood Mater. Sci. Eng. 2015, 10, 130–144. [Google Scholar] [CrossRef]
  10. Deshmukh, S.; Jana, A.; Bhattacharyya, N.; Bandyopadhyay, R.; Pandey, R.A. Quantitative determination of pulp and paper industry emissions and associated odor intensity in methyl mercaptan equivalent using electronic nose. Atmos. Environ. 2014, 82, 401–409. [Google Scholar] [CrossRef]
  11. Herrero, J.L.; Lozano, J.; Santos, J.P.; Suárez, J.I. On-line classification of pollutants in water using wireless portable electronic noses. Chemosphere 2016, 152, 107–116. [Google Scholar] [CrossRef] [PubMed]
  12. Adiguzel, Y.; Kulah, H. Biosensors and Bioelectronics Breath sensors for lung cancer diagnosis. Biosens. Bioelectron. 2015, 65, 121–138. [Google Scholar] [CrossRef] [PubMed]
  13. Bruins, M.; Rahim, Z.; Bos, A.; Van De Sande, W.W.J.; Endtz, H.P.; Van Belkum, A. Diagnosis of active tuberculosis by E-nose analysis of exhaled air. Tuberculosis 2013, 93, 232–238. [Google Scholar] [CrossRef] [PubMed]
  14. Schnabel, R.M.; Boumans, M.L.; Smolinska, A.; Stobberingh, E.E.; Kaufmann, R.; Roekaerts, P.M.; Bergmans, D.C. Electronic nose analysis of exhaled breath to diagnose ventilator-associated pneumonia. Respir. Med. 2015, 109, 1454–1459. [Google Scholar] [CrossRef] [PubMed]
  15. Valdez, L.F.; Gutiérrez, J.M. Portable olfactometric platform. In Proceedings of the 2016 Global Medical Engineering Physics Exchanges/Pan American Health Care Exchanges (GMEPE/PAHCE), Madrid, Spain, 4–9 April 2016; pp. 1–6.
  16. Popov-Raljic, J.V.; Lalicic-Petronijevic, J.G. Sensory properties and color measurements of dietary chocolates with different compositions during storage for up to 360 days. Sensors 2009, 9, 1996–2016. [Google Scholar] [CrossRef] [PubMed]
  17. Cheng, C.M.; Jalil, A.M.M.; Ismail, A. Phenolic and theobromine contents of commercial dark, milk and white chocolates on the Malaysian market. Molecules 2009, 14, 200–209. [Google Scholar]
  18. Acierno, V.; Yener, S.; Alewijn, M.; Biasioli, F.; Van Ruth, S. Factors contributing to the variation in the volatile composition of chocolate: Botanical and geographical origins of the cocoa beans, and brand-related formulation and processing. Food Res. Int. 2016, 84, 86–95. [Google Scholar] [CrossRef]
  19. Compagnone, D.; Faieta, M.; Pizzoni, D.; Di Natale, C.; Paolesse, R.; Van Caelenberg, T.; Beheydt, B.; Pittia, P. Quartz crystal microbalance gas sensor arrays for the quality control of chocolate. Sens. Actuators B Chem. 2015, 207, 1114–1120. [Google Scholar] [CrossRef]
  20. Afoakwa, E.O.; Paterson, A.; Fowler, M.; Ryan, A. Matrix effects on flavour volatiles release in dark chocolates varying in particle size distribution and fat content using GC–mass spectrometry and GC–olfactometry. Food Chem. 2009, 113, 208–215. [Google Scholar] [CrossRef]
  21. Hu, Y.; Pan, Z.J.; Liao, W.; Li, J.; Gruget, P.; Kitts, D.D.; Lu, X. Determination of antioxidant capacity and phenolic content of chocolate by attenuated total reflectance-Fourier transformed-infrared spectroscopy. Food Chem. 2016, 202, 254–261. [Google Scholar] [CrossRef] [PubMed]
  22. Romain, A.C.; Nicolas, J. Chemical Long term stability of metal oxide-based gas sensors for E-nose environmental applications: An overview. Sens. Actuators B. Chem. 2010, 146, 502–506. [Google Scholar] [CrossRef]
  23. Cetó, X.; Manuel, J.; Gutiérrez, M.; Céspedes, F.; Capdevila, J.; Mínguez, S.; Jiménez-jorquera, C. Analytica Chimica Acta Determination of total polyphenol index in wines employing a voltammetric electronic tongue. Anal. Chim. Acta 2012, 732, 172–179. [Google Scholar] [CrossRef] [PubMed]
  24. Riedmiller, M.; Braun, H. A direct adaptive method for faster backpropagation learning: The RPROP algorithm. In Proceedings of the 1993 IEEE International Conference on Neural Networks, San Francisco, CA, USA, 28 March–1 April 1993; pp. 586–591.
Figure 1. General odor canister dynamics.
Figure 1. General odor canister dynamics.
Sensors 16 01745 g001
Figure 2. E-nose sensor array case design and sensors characteristics.
Figure 2. E-nose sensor array case design and sensors characteristics.

SensorModelBrandMain Detection Sensors 16 01745 i001
1MQ-8WinsenHydrogen
2MQ-9Henan HanweiCO and combustible gases
3MQ-6WinsenLPG
4MQ-7ParallaxCO
5MQ-5ParallaxLPG, natural gas
6MQ-3ParallaxAlcohol and Benzine
7MQ-2ParallaxLPG, i-butane, propane
8LM 35Texas InstrumentsTemperature
Figure 3. General setting of the system.
Figure 3. General setting of the system.
Sensors 16 01745 g002
Figure 4. Gas sensors response to chocolate G stimulation across experiment 1. Bold numbers for the greater decrease.
Figure 4. Gas sensors response to chocolate G stimulation across experiment 1. Bold numbers for the greater decrease.

Sensors 16 01745 i002SensorDecrease (%)
Max.Min.Amplitude
1−2.8217.354.39
269.7253.4456.21
367.4151.2355.65
461.5549.9751.44
568.5948.4952.77
664.7156.9358.16
764.4745.0448.58
Figure 5. Gas sensors response to chocolate G across experiment 2. Bold numbers for the greater decrease.
Figure 5. Gas sensors response to chocolate G across experiment 2. Bold numbers for the greater decrease.

Sensors 16 01745 i003SensorDecrease (%)
Max.Min.Amplitude
120.452.9316.40
256.3371.8468.73
332.7363.6459.66
474.8279.5078.80
549.8169.2666.33
630.6051.0444.44
747.4770.5267.06
Figure 6. Experiment 1 PCA colored by chocolate type (Red, Dark; Green, soft dark; and Blue, milk). A to Z tags correspond to the chocolate samples listed in Table S1.
Figure 6. Experiment 1 PCA colored by chocolate type (Red, Dark; Green, soft dark; and Blue, milk). A to Z tags correspond to the chocolate samples listed in Table S1.
Sensors 16 01745 g003
Figure 7. Experiment 2 PCA, colored by chocolate class (Red, dark; and Green, soft dark). A to J tags correspond to the chocolate samples listed in Table S1.
Figure 7. Experiment 2 PCA, colored by chocolate class (Red, dark; and Green, soft dark). A to J tags correspond to the chocolate samples listed in Table S1.
Sensors 16 01745 g004
Figure 8. Experiment 1 and 2 loadings plot (X-axis corresponding to sensor array signals and Y-axis to the absolute value of the loadings). (a) Experiment 1 PC1; (b) Experiment 2 PC1; (c) Experiment 1 PC2; (d) Experiment 2 PC2; (e) Experiment 1 PC3 and (f) Experiment 2 PC3.
Figure 8. Experiment 1 and 2 loadings plot (X-axis corresponding to sensor array signals and Y-axis to the absolute value of the loadings). (a) Experiment 1 PC1; (b) Experiment 2 PC1; (c) Experiment 1 PC2; (d) Experiment 2 PC2; (e) Experiment 1 PC3 and (f) Experiment 2 PC3.
Sensors 16 01745 g005
Table 1. Sample subdivision according to properties of interest.
Table 1. Sample subdivision according to properties of interest.
Group/CharacteristicTotal Number of SamplesSubgroupSubgroup TagNumber of Samples
Chocolate type26Dark chocolateDK10
Soft darkchocolateSD12
Milk chocolateML4
Extra Ingredient26CoconutCO1
StrawberryST2
OrangeOR1
MintMI1
PistachioPI1
None-20
Sweetener26SugarSU21
Sugar free-5
Expiration date status26Unspoiled-25
SpoiledSP1
Table 2. Classification results of classifier 1 with experiment 1 data.
Table 2. Classification results of classifier 1 with experiment 1 data.
ClassifierClassification Rate (%)AccuracyPrecisionSensitivitySpecificity
A82.500.990.800.830.99
B82.250.980.780.820.99
C65.750.970.650.660.99
D78.750.980.770.790.99
E47.750.970.680.480.99
F45.500.970.660.460.99
G95.751.000.950.961.00
H97.251.000.940.971.00
I98.251.000.970.981.00
J97.501.000.960.981.00
K93.501.000.950.941.00
L85.500.990.910.861.00
M85.500.990.890.861.00
N90.750.990.930.911.00
O71.750.980.790.720.99
P75.250.980.810.750.99
Q74.750.990.850.750.99
R94.250.990.870.940.99
S94.250.990.880.940.99
T92.250.990.900.921.00
U93.000.990.910.931.00
V99.501.000.951.001.00
W92.000.990.880.920.99
X75.750.990.850.760.99
Y90.750.990.830.910.99
Z88.500.990.860.890.99
Average84.20.990.860.840.99
Table 3. Classification results of classifier 1 with experiment 2 data.
Table 3. Classification results of classifier 1 with experiment 2 data.
Classified as: 1ABCDEFGHIJAccuracyPrecisionSensitivitySpecificity
A6.61.70.10.10.00.00.00.20.00.00.980.760.660.98
B1.56.80.10.00.10.00.00.00.00.00.980.810.680.98
C0.00.06.10.10.70.90.00.00.00.00.980.770.610.98
D0.10.10.29.50.20.00.00.10.10.00.990.940.950.99
E0.00.00.80.17.10.40.00.10.10.00.990.860.710.99
F0.00.01.10.00.76.70.10.10.00.00.980.770.670.99
G0.00.00.10.00.00.18.90.20.00.30.990.920.890.99
H0.00.10.10.00.10.10.49.10.10.10.990.920.910.99
I0.10.00.10.00.00.10.00.19.80.010.970.981
J0.00.00.00.00.00.00.30.10.29.30.990.930.930.99
Total classification rate79.7%Average0.990.870.800.99
1 Bold numbers for correct classification.
Table 4. Test classification results of classifier 2 with experiment 1 data.
Table 4. Test classification results of classifier 2 with experiment 1 data.
Classified as:Classification RateAccuracyPrecisionSensitivitySpecificity
DK87.000.920.920.870.95
SDK93.080.910.890.930.90
ML88.560.960.870.890.98
CO96.501.000.950.971.00
ST73.380.970.890.730.99
OR97.501.000.970.981.00
MI95.251.000.940.951.00
PI93.750.990.790.940.99
SU93.610.920.960.940.86
SP35.000.960.450.350.98
Average85.360.960.860.850.96
Table 5. Test classification results of classifier 2 with experiment 2 data.
Table 5. Test classification results of classifier 2 with experiment 2 data.
Classified as: 1Chocolate Sample
ABCDEFGHIJC. Rate (%)Acc.Prc.Sen.Spe.
DK9.389.930.138.489.959.030.030.000.080.0093.500.971.000.941.00
SDK0.080.007.480.080.000.159.809.839.759.8393.350.960.990.930.99
CO0.000.000.000.000.000.038.030.000.000.0380.250.980.990.801.00
ST0.000.000.030.000.000.000.039.600.000.0096.001.000.990.961.00
OR0.000.000.000.000.000.000.000.009.600.0096.001.001.000.961.00
MI0.000.000.000.000.000.000.000.000.088.3883.750.980.990.841.00
SU9.239.788.950.257.709.639.959.959.9810.0094.610.951.000.950.98
SP0.000.000.000.036.732.80.000.000.010.0067.250.960.880.670.99
Average88.090.980.980.880.99
1 Bold numbers for correct classification.

Share and Cite

MDPI and ACS Style

Valdez, L.F.; Gutiérrez, J.M. Chocolate Classification by an Electronic Nose with Pressure Controlled Generated Stimulation. Sensors 2016, 16, 1745. https://doi.org/10.3390/s16101745

AMA Style

Valdez LF, Gutiérrez JM. Chocolate Classification by an Electronic Nose with Pressure Controlled Generated Stimulation. Sensors. 2016; 16(10):1745. https://doi.org/10.3390/s16101745

Chicago/Turabian Style

Valdez, Luis F., and Juan Manuel Gutiérrez. 2016. "Chocolate Classification by an Electronic Nose with Pressure Controlled Generated Stimulation" Sensors 16, no. 10: 1745. https://doi.org/10.3390/s16101745

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