Professional Documents
Culture Documents
4, 15 FEBRUARY 2023
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
3344 IEEE SENSORS JOURNAL, VOL. 23, NO. 4, 15 FEBRUARY 2023
TABLE II
S AMPLE G AS C ONCENTRATION R ANGE AND Q UANTITY
TABLE I
S ENSOR M ODEL , S ENSING P RINCIPLE , AND TARGET G ASES
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
LUO et al.: E-NOSE SYSTEM BASED ON FOURIER SERIES 3345
and 81.4 ppm. The higher the concentration, the lower the
resistance of the sensor is, accompanied by the response time
of the sensor increasing. The response of each sensor is given
by
Rair − Rgas
Res = (2)
Rair
where Res is the response value of the gas sensor, and Rair and
Rgas are the resistance of gas sensors in air and a concentration
of measured gas, respectively.
As the response curve of the sensor contains the information
on category and the concentration of the ambient gas, it is
of great significance to extract features from the response
curve of the sensor. In order to avoid the influence of noise,
we filtered the response curve by window sliding technique
before extracting features. Fig. 3(b) shows the response curves
of the sensors MQ136, TGS2620, MQ137, and TGS2602
to 12.3-ppm NH3 . The responses of the MQ series sensors
produce spikes affected by airflow disturbance, which does
not affect the calculation of the response value. The selection
of the sensor response features is flexible. In other words, the
steady-state value of response, differential value of response,
integral value of response, and response time, and so on are
all good choices [31]. In this work, we take the steady-state
response value of the sensors as the feature of the samples.
After obtaining all samples, we normalized the sample data.
Fig. 4(a) shows the distribution of all the samples in 3-D space
upon dimensionality reduction via PCA.
After the model was established and trained, in order
to exclude the influence of interfering gases and test the
practicability of our model, we measured the gas sensing data
of kiwi, pork, and beef over a period of time. Considering
that the gas concentration of food spoilage is related to the Fig. 4. Sample distribution. (a) Original samples. (b) Samples by
SMOTE.
volume of the chamber, the quality of the sample, and the
degree of spoilage, we controlled for these three variables.
The chamber volume is the same as in Fig. 2 (20.57 L), and convert each sample, a 4-D vector, to a three channels color
the mass of each sample is 25 g. In order to exclude the picture based on the form of the Fourier series. The formula
influence of accidental factors, the number of samples of kiwi, of the Fourier series is as follows:
pork, and beef was all 10. The samples were placed in an N
environment with a temperature of 25 ◦ C and a humidity of a0 2πnx 2πnx
f (x) = + an cos + bn sin (3)
58%. We sampled the sensor data at time points, such as 0, 4, 2 P P
n=1
8, 12, 16, 20, 44, and 48 h, obtaining eight sets of data in total
where P is the period of f (x), and N presents the situation,
for each kind of tested food. In order to obtain the standard
in which we take the first N items of the Fourier series.
reference of food freshness, we combined the two methods of
According to (3), we let P be N − 1 and get the Fourier
sensory evaluation and pH testing. Studies have shown that the
series matrix in Fig. 5. The first column of the matrix (a, b,
spoilage of meat is closely related to its pH [32], [33], [34].
c, and d) represents the response values of the four sensors
Usually, the pH of fresh pork is 5.61–6.7, and the pH of fresh
in each sample. We reshaped each column of the matrix
beef is 5.55–6.35. Based on this, we correlated the freshness
into a 2 × 2 matrix and then scaled each element of
of the tested samples with the gas concentrations predicted
the 2 × 2 matrix to an integer between 0 and 255 to fill
by our proposed model and obtain thresholds for each gas.
it into a channel of the pixel matrix in turn. Pixel values are
When the gas concentration estimated by our model is greater
given by the formula as follows:
than the corresponding threshold, we make a recommendation
against consumption. (x + 1)
Pv = × 255 (4)
2
III. M ETHODOLOGY where Pv presents the pixel values of the pictures, and x is
A. Conversion of Input Vector the element of the Fourier series matrix.
The classifier we employed in this work is a CNN model, The pixel values of the three channels of the image matrix
which needs a picture as an input. We proposed a method to are exactly the same. After the above treatment, we get the
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
3346 IEEE SENSORS JOURNAL, VOL. 23, NO. 4, 15 FEBRUARY 2023
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
LUO et al.: E-NOSE SYSTEM BASED ON FOURIER SERIES 3347
(7)
Cgas2 = α2 ek21 res1 +k22 res2 +k23 res1 res2 + m 2
2 2
⎪ X = (x 1 , x 2 , . . . , x N ) (8)
⎪
⎩ W = (w , w, . . . , w )
1 M
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
3348 IEEE SENSORS JOURNAL, VOL. 23, NO. 4, 15 FEBRUARY 2023
TABLE IV
R EGRESSION R ESULTS OF MAE AND R2 FOR D IFFERENT C LASSES
TABLE III
C LASSIFICATION ACCURACY OF D IFFERENT M ODELS
TABLE VI
E VALUATION M ETHODS AND TARGET G AS
C ONCENTRATION T HRESHOLDS
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
LUO et al.: E-NOSE SYSTEM BASED ON FOURIER SERIES 3349
Fig. 11. Concentration estimation scatter plot. (a) Concentrations of C2 H5 OH in single C2 H5 OH, mixture of C2 H5 OH and H2 S, and mixture of
C2 H5 OH and NH3 on training set. (b) Concentrations of NH3 in single NH3 , mixture of NH3 and C2 H5 OH, and mixture of NH3 and H2 S on training
set. (c) Concentrations of H2 S in single H2 S, mixture of H2 S and C2 H5 OH, and mixture of H2 S and NH3 on training set. (d) Concentrations of
C2 H5 OH in single C2 H5 OH, mixture of C2 H5 OH and H2 S, and mixture of C2 H5 OH and NH3 on test set. (e) Concentrations of NH3 in single NH3 ,
mixture of NH3 and C2 H5 OH, and mixture of NH3 and H2 S on test set. (f) Concentrations of H2 S in single H2 S, mixture of H2 S and C2 H5 OH, and
mixture of H2 S and NH3 on test set.
Fig. 12. Practical application in real food spoilage environments. Estimated concentrations of NH3 and H2 S and pH value from samples of (a) beef
and (b) pork. (c) Estimated concentrations of C2 H5 OH from samples of kiwifruit.
beef, and Fig. S4 is the samples of pork. We acquired sensory Fig. 12(b) shows the estimated concentrations of NH3 and
data for ten samples of each food at different time points, then H2 S released from pork samples and the pH values of the
classified each sample, and estimated the gas concentrations samples as a function of time. At 20 h, we tested a pork
they released. We finally took the mean of the ten samples sample with a pH of 6.81 and had a judgment of stale from
as the final prediction concentration. Fig. 12(a) shows the sensory evaluation The experimental results showed that the
estimated concentrations of NH3 and H2 S released from beef pork became stale at 20 h with the concentrations of NH3 and
and the pH of beef as a function of time. At 16 h, we tested a H2 S being 0.25 and 0.06 ppm, respectively. Fig. 12(c) shows
beef sample with a pH of 6.43, the first time we measured a the estimated concentration curve of C2 H5 OH released from
pH higher than the fresh pH threshold. Moreover, we observed kiwifruit. We got a spoiled judgment at 12 h because of the
a change in color of the beef sample from bright red to dark change in color and smell with the concentration of C2 H5 OH
red and a slight off-flavor. The experimental results showed being 0.44 ppm. The freshness evaluation methods of the three
that the beef became stale at 16 h with the concentrations foods and their target gas concentration thresholds are shown
of NH3 and H2 S being 0.74 and 0.12 ppm, respectively. in Table VI.
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
3350 IEEE SENSORS JOURNAL, VOL. 23, NO. 4, 15 FEBRUARY 2023
V. C ONCLUSION [11] C. Fan et al., “Fast and recoverable NO2 detection achieved by
assembling ZnO on Ti3 C2 T x MXene nanosheets under UV illumina-
A sensor array-based gas identification and concentration tion at room temperature,” Nanoscale, vol. 14, no. 9, pp. 3441–3451,
estimation system with the assistance of machine learning Mar. 2022.
algorithms was designed for gas detection of food spoilage. [12] C. Wang, L. Yin, L. Zhang, D. Xiang, and R. Gao, “Metal oxide gas
This system is composed of four commercial gas sensors, sensors: sensitivity and influencing factors,” Sensors, vol. 10, no. 3,
pp. 2088–2160, Mar. 2010.
data acquisition circuit boards, and corresponding artificial [13] R. P. Arasaradnam et al., “Insights into ’fermentonomics’: Evaluation
intelligence algorithms, which can identify and predict the of volatile organic compounds (VOCs) in human disease using an elec-
concentration of C2 H5 OH, NH3 , and H2 S released by spoiled tronic ’e-nose,”’ J. Med. Eng. Technol., vol. 35, no. 2, pp. 1113–1122,
Jan. 2011.
food. The collected gas sample data are converted into pictures [14] Y.-Q. Jing, Q.-H. Meng, P.-F. Qi, M.-L. Cao, M. Zeng, and S.-G. Ma,
by the Fourier series, and the classification accuracy rate of our “A bioinspired neural network for data processing in an electronic nose,”
CNN model with dropout technology reaches 91.9%. Under IEEE Trans. Instrum. Meas., vol. 65, no. 10, pp. 2369–2380, Oct. 2016.
[15] W. Zhang et al., “A novel gas recognition and concentration estimation
the support of SMOTE, we further improved the generaliza- model for an artificial olfactory system with a gas sensor array,” IEEE
tion performance of the classification model, in which the Sensors J., vol. 21, no. 17, pp. 18459–18468, Sep. 2021.
accuracy rate reached 96.67%. Further comparisons with the [16] C. Liu et al., “Highly sensitive and recoverable room-temperature
typical algorithms, such as SVM, DT, MLPNN, and k-NN, NO2 gas detection realized by 2D/0D MoS2 /ZnS heterostructures with
synergistic effects,” Sens. Actuators B, Chem., vol. 347, Nov. 2021,
demonstrated that our proposed model has the best over- Art. no. 130608.
all performance. The gas concentration estimation has been [17] S. Tohidi, M. Parhizkar, H. Bidadi, and R. Mohamad-Rezaei, “Elec-
achieved by a proposed mathematical model. In contrast to the trodeposition of polyaniline/three-dimensional reduced graphene oxide
hybrid films for detection of ammonia gas at room temperature,” IEEE
concentration estimation through machine learning, our model Sensors J., vol. 20, no. 17, pp. 9660–9667, Sep. 2020.
has the advantages of simplicity and strong interpretability. For [18] T. Liang, Z. Dai, Y. Liu, X. Zhang, and H. Zeng, “Suppression of Sn2+
C2 H5 OH, NH3 , and H2 S, the MAEs and R 2 s are (3.71 ppm, and Lewis acidity in SnS2 /black phosphorus heterostructure for ppb-
level room temperature NO2 gas sensor,” Sci. Bull., vol. 66, no. 24,
0.968), (0.5 ppm, 0.968), and (0.13 ppm, 0.99), respectively. pp. 2471–2478, Dec. 2021.
In addition, an experiment is used to verify the practical appli- [19] J. Zhou et al., “Highly sensitive NO2 response and abnormal P-N sensing
cation performance of the proposed model. The experiment transition with ultrathin Mo-doped SnS2 nanosheets,” Chem. Eng. J.,
demonstrated good freshness assessment ability for beef, pork, vol. 420, Sep. 2021, Art. no. 127572.
[20] S. M. Aghaei, A. Aasi, and B. Panchapakesan, “Experimental and
and kiwifruit. theoretical advances in MXene-based gas sensors,” ACS Omega, vol. 6,
no. 4, pp. 2450–2461, Feb. 2021.
[21] X. Chen et al., “A novel artificial neuron like gas sensor constructed
ACKNOWLEDGMENT from CuS quantum dots/Bi2 S3 Nanosheets,” Nano-Micro Lett., vol. 14,
The authors acknowledge analysis support from the Instru- p. 8, Dec. 2022.
mental Analysis Center and the Center for Advanced Elec- [22] E. L. Hines, E. Llobet, and J. W. Gardner, “Electronic noses: A review
of signal processing techniques,” IEE Proc.-Circuits, Devices Syst.,
tronic Materials and Devices, Shanghai Jiao Tong University, vol. 146, no. 6, pp. 297–310, Dec. 1999.
Shanghai, China. [23] T. Wang et al., “Type discrimination and concentration prediction
towards ethanol using a machine learning–enhanced gas sensor array
with different morphology-tuning characteristics,” Phys. Chem. Chem.
R EFERENCES Phys., vol. 23, no. 41, pp. 23933–23944, Oct. 2021.
[24] H. Ma et al., “A low-cost and efficient electronic nose system for
[1] A. Borchers, S. S. Teuber, C. L. Keen, and M. E. Gershwin, “Food quantification of multiple indoor air contaminants utilizing HC and
safety,” Clin. Rev. Allergy, vol. 39, no. 2, pp. 95–141, Oct. 2010.
PLSR,” Sens. Actuators B, Chem., vol. 350, Jan. 2022, Art. no. 130768.
[2] K. Liu and C. Zhang, “Volatile organic compounds gas sensor based
[25] Z. Chen, Y. Zheng, K. Chen, H. Li, and J. Jian, “Concentration estimator
on quartz crystal microbalance for fruit freshness detection: A review,”
of mixed VOC gases using sensor array with neural networks and
Food Chem., vol. 334, Jan. 2021, Art. no. 127615.
decision tree learning,” IEEE Sensors J., vol. 17, no. 6, pp. 1884–1892,
[3] S. Matindoust, A. Farzi, M. B. Nejad, M. H. S. Abadi, Z. Zou, and
Mar. 2017.
L.-R. Zheng, “Ammonia gas sensor based on flexible polyaniline films
for rapid detection of spoilage in protein-rich foods,” J. Mater. Sci., [26] M. A. H. Khan, B. Thomson, R. Debnath, A. Motayed, and M. V. Rao,
Mater. Electron., vol. 28, no. 11, pp. 7760–7768, Feb. 2017. “Nanowire-based sensor array for detection of cross-sensitive gases
[4] Y. Luo et al., “Role of cobalt in co-ZnO nanoflower gas sensors for using PCA and machine learning algorithms,” IEEE Sensors J., vol. 20,
the detection of low concentration of VOCs,” Sens. Actuators B, Chem., no. 11, pp. 6020–6028, Jun. 2020.
vol. 360, Jun. 2022, Art. no. 131674. [27] J. Wang, S. Lian, B. Lei, B. Li, and S. Lei, “Co-training neural network-
[5] D. Ma, J. Gao, Z. Zhang, and H. Zhao, “Gas recognition method based infrared sensor array for natural gas monitoring,” Sens. Actuators
based on the deep learning model of sensor array response map,” Sens. A, Phys., vol. 335, Mar. 2022, Art. no. 113392.
Actuators B, Chem., vol. 330, Mar. 2021, Art. no. 129349. [28] V. Pareek, S. Chaudhury, and S. Singh, “Hybrid 3DCNN-RBM network
[6] D. Kwak, Y. Lei, and R. Maric, “Ammonia gas sensors: A comprehensive for gas mixture concentration estimation with sensor array,” IEEE
review,” Talanta, vol. 204, pp. 713–730, Nov. 2019. Sensors J., vol. 21, no. 21, pp. 24263–24273, Nov. 2021.
[7] H. Nazemi, A. Joseph, J. Park, and A. Emadi, “Advanced micro- and [29] T. Wang et al., “Target discrimination, concentration prediction, and
nano-gas sensor technology: A review,” Sensors, vol. 19, no. 6, p. 1285, status judgment of electronic nose system based on large-scale measure-
Mar. 2019. ment and multi-task deep learning,” Sens. Actuators B, Chem., vol. 351,
[8] C.-H. Han, D.-W. Hong, S.-D. Han, J. Gwak, and K. C. Singh, “Catalytic Jan. 2022, Art. no. 130915.
combustion type hydrogen gas sensor using TiO2 and UV-LED,” Sens. [30] P. Peng, X. Zhao, X. Pan, and W. Ye, “Gas classification using
Actuators B, Chem., vol. 125, no. 1, pp. 224–228, Jul. 2007. deep convolutional neural networks,” Sensors, vol. 18, no. 2, p. 157,
[9] L. Fraiwan, K. Lweesy, A. Bani-Salma, and N. Mani, “A wireless home Jan. 2018.
safety gas leakage detection system,” in Proc. 1st Middle East Conf. [31] S.-H. Wang, T.-I. Chou, S.-W. Chiu, and K.-T. Tang, “Using a hybrid
Biomed. Eng., Feb. 2011, pp. 11–14. deep neural network for gas classification,” IEEE Sensors J., vol. 21,
[10] Z. Yang et al., “Construction, application and verification of a no. 5, pp. 6401–6407, Mar. 2021.
novel formaldehyde gas sensor system based on Ni-doped SnO2 [32] M. A. Bridges and M. R. Mattice, “Over two thousand estimations of the
nanoparticles,” IEEE Sensors J., vol. 21, no. 9, pp. 11023–11030, pH of representative foods,” Amer. J. Digestive Diseases, vol. 6, no. 7,
May 2021. pp. 440–449, Jul. 1939.
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.
LUO et al.: E-NOSE SYSTEM BASED ON FOURIER SERIES 3351
[33] T. W. Kim, C. W. Kim, M. R. Yang, G. R. No, S. W. Kim, and I.-S. Kim, Jianhua Yang is currently an Assistant Professor with Shanghai Jiao
“Pork quality traits according to postmortem pH and temperature in Tong University, Shanghai, China. His research interests include new
berkshire,” Korean J. Food Sci. Animal Resour., vol. 36, no. 1, pp. 29–36, wearable devices, microelectromechanical systems (MEMS), and the
Feb. 2016. design of measurement and control circuit.
[34] H. Korkeala, O. Mäki-Petäys, T. Alanko, and O. Sorvettula, “Determi-
nation of pH in meat,” Meat Sci., vol. 18, no. 2, pp. 121–132, Jan. 1986.
[35] G. E. Hinton, N. Srivastava, A. Krizhevsky, I. Sutskever, and
R. R. Salakhutdinov, “Improving neural networks by preventing co-
adaptation of feature detectors,” 2012, arXiv:1207.0580.
[36] A. Fernández, S. Garcia, F. Herrera, and N. V. Chawla, “SMOTE for Min Zeng is currently an Associate Professor with Shanghai Jiao Tong
learning from imbalanced data: Progress and challenges, marking the 15- University, Shanghai, China. His research interests include synthesis of
year anniversary,” J. Artif. Intell. Res., vol. 61, pp. 863–905, Apr. 2018. nanomaterials and their applications in nanodevices.
[37] M. Yan et al., “Humidity compensation based on power-law response for
MOS sensors to VOCs,” Sens. Actuators B, Chem., vol. 334, May 2021,
Art. no. 129601.
Jian Wu is currently pursuing the Ph.D. degree with Shanghai Jiao Tong Zhi Yang is currently a Professor with Shanghai Jiao Tong University,
University, Shanghai, China. Shanghai, China. His research interests include synthesis of nanomate-
His research focus includes nanoelectronic materials and devices. rials and their applications in nanodevices.
Authorized licensed use limited to: Universiti Tunku Abdul Rahman. Downloaded on June 21,2023 at 05:32:27 UTC from IEEE Xplore. Restrictions apply.