선정목록으로
Self-Taught Learning Based on Sparse Autoencoder for E-Nose in Wound Infection Detection
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.3390/s17102279
- 저널
- Sensors
- 발행년도
- 2017
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 27
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/s17102279
- 토픽
- Analytical Chemistry and Sensors
- OpenAlex ID
- W2763502639
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
For an electronic nose (E-nose) in wound infection distinguishing, traditional learning methods have always needed large quantities of labeled wound infection samples, which are both limited and expensive; thus, we introduce self-taught learning combined with sparse autoencoder and radial basis function (RBF) into the field. Self-taught learning is a kind of transfer learning that can transfer knowledge from other fields to target fields, can solve such problems that labeled data (target fields) and unlabeled data (other fields) do not share the same class labels, even if they are from entirely different distribution. In our paper, we obtain numerous cheap unlabeled pollutant gas samples (benzene, formaldehyde, acetone and ethylalcohol); however, labeled wound infection samples are hard to gain. Thus, we pose self-taught learning to utilize these gas samples, obtaining a basis vector θ. Then, using the basis vector θ, we reconstruct the new representation of wound infection samples under sparsity constraint, which is the input of classifiers. We compare RBF with partial least squares discriminant analysis (PLSDA), and reach a conclusion that the performance of RBF is superior to others. We also change the dimension of our data set and the quantity of unlabeled data to search the input matrix that produces the highest accuracy.
본문 52,363자
본문 펼치기
# _sensors_
_Article_
## Self-Taught Learning Based on Sparse Autoencoder for E-Nose in Wound Infection Detection
Peilin He, Pengfei Jia *, Siqi Qiao and Shukai Duan
College of Electronic and Information Engineering, Southwest University, Chongqing 400715, China;
qaz321123@email.swu.edu.cn (P.H.); i47sir@126.com (S.Q.); duansk@swu.edu.cn (S.D.)
* Correspondence: jiapengfei200609@126.com; Tel.: +86-187-1664-9336
Received: 18 August 2017; Accepted: 30 September 2017; Published: 7 October 2017
Abstract: For an electronic nose (E-nose) in wound infection distinguishing, traditional learning
methods have always needed large quantities of labeled wound infection samples, which are both
limited and expensive; thus, we introduce self-taught learning combined with sparse autoencoder
and radial basis function (RBF) into the field. Self-taught learning is a kind of transfer learning that
can transfer knowledge from other fields to target fields, can solve such problems that labeled data
(target fields) and unlabeled data (other fields) do not share the same class labels, even if they are
from entirely different distribution. In our paper, we obtain numerous cheap unlabeled pollutant
gas samples (benzene, formaldehyde, acetone and ethylalcohol); however, labeled wound infection
samples are hard to gain. Thus, we pose self-taught learning to utilize these gas samples, obtaining
a basis vector _θ_ . Then, using the basis vector _θ_, we reconstruct the new representation of wound
infection samples under sparsity constraint, which is the input of classifiers. We compare RBF with
partial least squares discriminant analysis (PLSDA), and reach a conclusion that the performance of
RBF is superior to others. We also change the dimension of our data set and the quantity of unlabeled
data to search the input matrix that produces the highest accuracy.
Keywords: electronic nose; self-taught learning; sparse autoencoder; wound infection
1. Introduction
Electronic nose (E-nose), a device composed of a sensor array and an artificial intelligence
algorithm, has been successfully used in many fields. It is able to deal with a multitude of problems
efficiently, such as food analysis [1–4], disease diagnosis [5–8], environment control [9,10], etc.
Traditional methods for a doctor to diagnose the type of wound infection usually require observing
features of the plaie and take a long time to analyse the patient’s blood, urine and other aspects,
delaying the best time for treatment. In particular, with the development of medical technology as
well as higher requirements on disease detection speed and accuracy, the E-nose has great prospects
in disease diagnosis. Our previous work has proved that the E-nose can be used to distinguish the
classes of wound infections through their special odor [11–14].
In practice, however, if we want to get an E-nose that can distinguish wound infections efficiently
and accurately, quantities of wound infection samples are needed to train the classifier, which would
cost a lot of money. Such experimental infection samples are not that easy to obtain, let alone labeled
wound infection samples. While our wound infection samples are limited, there are some other
unlabeled pollutant gas samples which are numerous and obviously easier to obtain, for a lower cost.
If we ignore the usage of these samples in other fields, it can lead to waste. To take advantage of them,
we introduce transfer learning in our paper.
Transfer learning is the ability to transfer knowledge from one field to other fields, and these
fields can share different labels, which distinguish it from traditional machine learning techniques.
_Sensors_ 2017, _17_ [, 2279; doi:10.3390/s17102279](http://dx.doi.org/10.3390/s17102279) [www.mdpi.com/journal/sensors](http://www.mdpi.com/journal/sensors)
_Sensors_ 2017, _17_, 2279 2 of 16
That is to say, through transfer learning, we can use some samples from other fields to make up the
lack of wound infection samples in our field. Thus, in this paper, we purchase inexpensive chemical
solutions to obtain four types of pollutant gases, and can, as a result, get thousands of unlabeled
samples through this approach, at low cost.
These unlabeled gas samples are introduced to cope with the lack of labeled wound infection
samples, and an enhanced quantum-behaved particle swarm optimization (EQPSO) [15,16] is proposed
to improve the performance of classifiers. In the machine learning field, there are some classical
algorithms that can roughly be placed in two categories [17]: supervised learning, which concerns
obtaining its classifier based on labeled data; and unsupervised learning, which is concerned with
obtaining its classifier from unlabeled data. Unavoidably, however, both methods have significant
shortcomings: supervised learning needs a large amount of labeled data, while unsupervised learning
classifies samples by their different distribution, which makes the accuracy far lower than that of
supervised learning. Therefore, semi-supervised learning, a combination of these two types learning
framework, is widely adopted in practical application and improves the generalization ability of
model. It broadens the range of data set, but because semi-supervised learning is typically based on
the assumption that labeled data and unlabeled data can be tagged with the same labels, a new group
of machine learning is put forward, which is called “self-taught learning”.
Self-taught learning [18,19] is a new machine learning framework and also a type of transfer
learning, corresponding to human learning, using unlabeled data in supervised classification tasks.
What distinguishes self-taught learning from other learning methods is that self-taught learning can
solve such problems as the fact that labeled data and unlabeled data do not share the same class labels,
that they may be from entirely different distributions, or that the labeled data might be far less than
unlabeled data.
In recent years, self-taught learning has undergone considerable development in many
fields [20–22]. In self-taught learning, we construct basis vectors from the unlabeled data. In turn, these
basis vectors are used to rebuild input representation, converting training data into representations
related to unlabeled data. These new representations are programmed into the classification task and
significantly improve the performance of the E-nose. In the algorithm, the most significant step is to
contrast basis vectors from the unlabeled data and to rebuild new representations. To rebuild new
representations, we take advantage of the neural network and apply the sparsity constraint, which
makes the representation of each layer sparse (most of nodes become zero).
However, this is yet to be applied in the field of E-nose for the purpose of distinguishing the
label information of wound infection data. In this paper, self-taught learning is proposed to perfect
the accuracy of classification. In the rest of this paper, we first describe details of the material and
odor sampling experiments in Section 2, then the self-taught learning framework is elaborated on in
Section 3. In Section 4, we apply some classical classification algorithms and compare their results,
such as partial least squares discriminant analysis (PLSDA) and radial basis function (RBF) [23,24].
2. Experiments and Data Preprocessing
_2.1._ _E-Nose System and Experimental Setup_
The labeled wound infection data set and unlabeled gas data set are needed in our project.
An E-nose system is used to prepare the data set. In constructing the system, we employ an E-nose,
a data acquisition system (DAS), a pump, a rotor flow meter, a three way value, a filter, glass bottles
and a computer. The schematic diagram of the experimental system is shown in Figure 1 and the
experimental setup is shown in Figure 2.
_Sensors_ 2017, _17_, 2279 3 of 16
Figure 1. Schematic diagram of the experimental system.
Figure 2. Experimental setup.
When air passes the filter, the air is purified. The flow meter controls the rate of the gas, making it
keep at 80 mL/min, and at the same time the pump provides energy for the gas flow. The response
signals processed by E-nose will be sampled and saved in a computer via the DAS, which is 32-channel
and 14-bit high precision. The sampling frequency is set at 1 Hz. According to the metabolites of
pathogens and the response characteristics of gas sensors, a sensor array composed of six sensors
is employed to collect the response curve of wound infections and pollutant gases, and response
characteristics of gas sensors are shown in Table 1.
Table 1. Sensitive characteristics of gas sensors.
~~<u>Sensors</u>~~ ~~<u>Sensitive Characteristics</u>~~
TGS813 Methane, Propane, Ethanol, Isobutane, Hydrogen, Carbon monoxide
TGS816 Combustible gases, Methane, Propane, Butane, Carbon monoxide, Hydrogen, Ethanol, Isobutane
TGS822 Organic solvent vapors, Methane, Carbon monoxide, Isobutane, n-Hexane, Benzene, Ethanol, Acetone
TGS2600 Gaseous air contaminants, Methane, Carbon monoxide, Isobutane, Ethanol, Hydrogen
MQ135 Ammonia, Benzene series material, Acetone, Carbon monoxide, Ethanol, Smoke
<u>Note:</u> <u>The response of these three sensors is non-specific.</u> <u>Table 1 just lists their main sensitive gases, and they are</u>
also sensitive to other gas.
_Sensors_ 2017, _17_, 2279 4 of 16
Each sampling experiment is composed of the following three steps:
Step 1: the sensors are exposed to clean air for 3 min;
Step 2: the gas stream containing VOCs of the wound passes over the sensor array for 5 min;
Step 3: the sensors are exposed to clean air again for 15 min.
The sample interval between two experiments is 5 min.
_2.2._ _Experiments and Sampling_
Twenty Sparague-Dawley (SD) male rats are used in the experiment in this paper to prepare the
labeled data set. These rats are divided into four groups averagely:
1. Wounded but uninfected (the control group);
2. Infected with _P. aeruginosa_ ;
3. Infected with _E. coli_ ;
4. Infected with _S. aureus_ .
All rats are healthy and in similar condition, and each type has five rats, respectively. Every rat
has a 1 cm long wound in the right hind leg, and pathogens are injected into the wound in accordance
with their group. The metabolites of three pathogens are shown in Table 2. A total of 20 sampling
data are collected for each kind of rat, that is to say, there exist 80 labeled wound infection samples in
our project.
Table 2. Pathogens in wound infection and their metabolites.
Pathogens Metabolites
_S. aureus_
_E. coli_
_P. aeruginosa_
Acetic acid, Aminoacetophenone, Ammonia, Ethanol, Formaldehyde, Isobutanol, Isopentyl acetate,
Isopentanol, Methyl ketones, Trimethylamine, 1-Undecene, 2,5-Dimethylpyrazine isoamylamine,
2-Methylamine
Acetaldehyde, Acetic acid, Aminoacetophenone, Butanediol, Decanol, Dimethyldisulfide,
Dimethyltrisulfide, Dodecanol, Ethanol, Formaldehyde, Formic acid, Hydrogen sulfide, Indole,
Lactic acid, Methanethiol, Methyl ketones, Octanol, Pentanols, Succinic acid, 1-Propanol
Butanol, Dimethyldisulfide, Dimethyltrisulfide, Esters, Methyl ketones, Isobutanol, Isopentanol,
Isopentyl acetate, Pyruvate, Sulphur compounds, Toluene, 1-Undecene, 2-Aminoacetophenone,
2-Butanone, 2-Heptanone, 2-Nonanone, 2-Undecanone
And four kinds of pollutant gases including benzene (C6H6), formaldehyde (CH2O), acetone
(C3H6O), ethylalcohol (C2H5) are sampled as the unlabeled data set.
Before the sampling experiments, we firstly set the temperature and humidity of the chamber as
25 <sup>_◦_</sup> C and 40%. Then we began the gas sampling experiments. Because some of the gases are liquid,
a decompression device is used to convert the liquid to the gas phase. We took advantage of the
same setup and sensor array used for wound infections to get the pollutant gases’ data set and each
sampling experiment was strictly executed according to the 3 steps in Section 2.1. In total, we collected
2664 samples of pollutant gases.
To get the real concentration of each gas in the chamber, we extract each gas from the chamber
and import it into the gas bag. Then spectrophotometric method is employed to get the concentration
of formaldehyde, and the concentration of benzene, acetone and ethylalcohol is determined by gas
chromatography (GC). The real concentration of three gas is shown in Table 3. For the four gas, there
are 12, 11, 12 and 21 concentration points, respectively, and 12 sampling experiments are made on each
concentration point.
_Sensors_ 2017, _17_, 2279 5 of 16
<u>Table 3.</u> <u>Concentration of the target gases.</u>
<u>Gases</u> <u>Concentration Range (ppm)</u> <u>Number of Samples</u>
benzene [0.1721, 0.7056] 480 (12 _×_ 12)
formaldehyde [0.0668, 0.1425] 491 (12 _×_ 11)
acetone [0.0565, 1.2856] 549 (12 _×_ 12)
~~ethylalcohol~~ ~~[0.0832, 0.6732]~~ ~~1144 (12~~ _~~×~~_ ~~21)~~
In most experiments, we only applied 652 samples and detailed information is shown at Table 4.
Table 4. Amount of samples.
<u>Pollutant Gas</u> <u>Amount of Samples</u> <u>Wound Infection</u> <u>Amount of Samples</u>
benzene 132 _S. aureus_ 20
formaldehyde 203 _E. coli_ 20
acetone 153 _P. aeruginosa_ 20
ethylalcohol 164 uninfected 20
Figure 3 illustrates the sensor response process when the sensor array is exposed to four types
wound infection odor. It is clear that each curve has a rise when the target gas passes over the
sensor array.
Figure 3. Response curve of the sensor array of _S. aureus_ (one of the wound infections).
_2.3._ _Data Preprocessing_
To find which feature matrix can obtain the best performance, we extract five different features to
construct our data set. These features include:
(1) Maximum value of steady-state response;
(2) Maximum slope of rising edge;
(3) Maximum slope of falling edge;
(4) Integral;
(5) Wavelet transform.
Except for wavelet transform, all other features are easy to understand. Wavelet transform is a
kind of local transformation of time and frequency domain, which can efficiently fetch information
from the signal, and it also has been used in the E-nose before [25]. It inherited and developed the
localization of the short time Fourier transform (STFT), at the same time overcoming the shortcomings,
_Sensors_ 2017, _17_, 2279 6 of 16
such as window size, which does not vary with frequency change. Wavelet transform can provide
a time–frequency window that changes with the frequency, and is an ideal signal time–frequency
analysis and processing tool.
After feature extraction, the labeled data set and unlabeled data set share the same dimension.
We use the five features to construct original feature matrices, each row is a feature, and each column is
a sensor selected from the 5 sensors. Then, we transform this _n × n_ matrix into 1 _× n_ <sup>2</sup> matrix, building
the data set _x_ _∈_ _R_ <sup>_n_</sup> <sup>2</sup>, and _n_ <sup>2</sup> represents the dimension of _x_ . To get training sample _xl_, we randomly
pick 15 samples from each wound infection sample (in total, 20 samples in each wound infection type),
then we have 60 training samples _xl_ and 20 test samples _xt_ . We also construct a data set comprised of
all unlabeled samples _xu_ to train a basis _θ_, and _xu_ contains four types of gas. In this paper, n is set as 3,
4, 5 to find which n is most efficient to improve the performance of the E-nose.
3. Self-Taught Learning
In this paper, we apply the self-taught learning paradigm with sparse autoencoder and
classification algorithms (like RBF) to build a classifier for distinguishing different types of
wound infection.
Suppose there is a labeled data set of m samples _{_ ( _xl_ <sup>(1)</sup>
_l_ <sup>(2)</sup>, _y_ <sup>(2)</sup> ), . . ., ( _xl_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup>
_l_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup>, _y_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup> ) _}_ . Each
_l_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∈_ _R_ <sup>_n_</sup> <sup>2</sup> denotes an original input feature vector. Each _y_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∈{_ 1, 2, . . ., _C}_ denotes corresponding
_x_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup>
_l_
_l_ <sup>(1)</sup>, _y_ <sup>(1)</sup> ), ( _xl_ <sup>(2)</sup>
class label. Additionally, we assume there are _k_ unlabeled samples _xu_ <sup>(1)</sup>
_u_ <sup>(1),</sup> <sup>_x_</sup> _u_ <sup>(2)</sup>
_u_ <sup>(2), . . .,</sup> <sup>_x_</sup> _u_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
class label. Additionally, we assume there are _k_ unlabeled samples _xu_ <sup>(1),</sup> <sup>_x_</sup> _u_ <sup>(2), . . .,</sup> <sup>_x_</sup> _u_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _∈_ _R_ <sup>_n_</sup> <sup>2</sup> .
We propose a bold hypothesis, the class labels of unlabeled data set _xu_ and the class labels of
labeled data set have no intersection. Then, we apply the sparse autoencoder algorithm to study
a sparse autoencoder from _xu_ <sup>(1)</sup>
_u_ <sup>(1),</sup> <sup>_x_</sup> _u_ <sup>(2)</sup>
_u_ <sup>(2), . . .,</sup> <sup>_x_</sup> _u_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup>
_l_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup> _∈_ _R_ <sup>_n_</sup> <sup>2</sup>, converting it into a new labeled training set
_u_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _∈_ _R_ <sup>_n_</sup> <sup>2</sup> . It can be used to rebuild the representation
of input training data set _xl_ <sup>(1)</sup>
_l_ <sup>(2)</sup>, . . ., _xl_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup>
_{_ ˆ _xl_ <sup>(1)</sup>
_l_ <sup>(2)</sup>, . . ., _x_ ˆ _l_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup>
_l_ <sup>(1)</sup>, _x_ ˆ _l_ <sup>(2)</sup>
_l_ <sup>(1)</sup>, _xl_ <sup>(2)</sup>
_{_ ˆ _xl_ <sup>(1)</sup>, _x_ ˆ _l_ <sup>(2)</sup>, . . ., _x_ ˆ _l_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup> _}_ . These activations are put into the classifier as the new input feature vector, and
PLSDA and RBF are employed as classifiers in this paper.
_3.1._ _Sparse Autoencoder_
3.1.1. Neural Network
The sparse autoencoder algorithm is an unsupervised learning algorithm that applies
back-propagation, which is widely applied to image identification [20,26,27].
A single-layer autoencoder [28,29] is a kind of neural network [30–32] that only has one hidden
layer. By hooking together many simple “neurons”, a neural network is created. In this paper, each _xu_
is a neuron. For example, here is a small neural network (Figure 4).
Figure 4. Basic neural network.
_Sensors_ 2017, _17_, 2279 7 of 16
Then, there is a way of defining a complex non-linear form of hypotheses _h_ ( _x_ ), with parameters
_W_, _b_ that can fit our data. Formally, corresponded to an input _xu_ _∈_ _R_ <sup>_n_</sup> <sup>2</sup>, the activations of _xu_ are
_a_ 1 <sup>(2)</sup>
_a_ 2 <sup>(2)</sup>
_a_ 3 <sup>(2)</sup>
_a_ 1 <sup>(2)</sup> = _f_ ( _W_ 11 <sup>(1)</sup>
_a_ 2 <sup>(2)</sup> = _f_ ( _W_ 21 <sup>(1)</sup>
_a_ 3 <sup>(2)</sup> = _f_ ( _W_ 31 <sup>(1)</sup>
(1)
13 <sup>(2)</sup> <sup>_a_</sup> 3 <sup>(2)</sup> + _b_ 1 <sup>(2)</sup>
1 <sup>(3)</sup> = _f_ ( _W_ 11 <sup>(2)</sup>
12 <sup>(2)</sup> <sup>_a_</sup> 2 <sup>(2)</sup> + _W_ 13 <sup>(2)</sup>
_h_ ( _x_ ) = _a_ 1 <sup>(3)</sup>
11 <sup>(1)</sup> <sup>_x_</sup> <sup>1 +</sup> <sup>_W_</sup> 12 <sup>(1)</sup> <sup>_x_</sup> <sup>2 +</sup> <sup>_W_</sup> 13 <sup>(1)</sup> <sup>_x_</sup> <sup>3 +</sup> <sup>_b_</sup> 1 <sup>(1)),</sup>
21 <sup>(1)</sup> <sup>_x_</sup> <sup>1 +</sup> <sup>_W_</sup> 22 <sup>(1)</sup> <sup>_x_</sup> <sup>2 +</sup> <sup>_W_</sup> 23 <sup>(1)</sup> <sup>_x_</sup> <sup>3 +</sup> <sup>_b_</sup> 2 <sup>(1)),</sup>
31 <sup>(1)</sup> <sup>_x_</sup> <sup>1 +</sup> <sup>_W_</sup> 32 <sup>(1)</sup> <sup>_x_</sup> <sup>2 +</sup> <sup>_W_</sup> 33 <sup>(1)</sup> <sup>_x_</sup> <sup>3 +</sup> <sup>_b_</sup> 3 <sup>(1)),</sup>
11 <sup>(2)</sup> <sup>_a_</sup> 1 <sup>(2)</sup> + _W_ 12 <sup>(2)</sup>
1 <sup>(2)),</sup>
where we define _f_ ( _·_ ) to be the sigmoid function _f_ ( _z_ ) = 1+exp1 ( _−z_ ) <sup>,</sup> <sup>and</sup> <sup>_a_</sup> _i_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> denotes the activation
(output value) of unit _i_ in layer _l_, _bi_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> represents the bias associated with unit _i_ in layer _l_, _Wij_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
(output value) of unit _i_ in layer _l_, _bi_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> represents the bias associated with unit _i_ in layer _l_, _Wij_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> is the
parameter (or weight) associated with the connection between unit _j_ in layer _l_, and unit _i_ in layer _l_ + 1.
We can write these equations more compactly as
_a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> = _f_ ( _W_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup> _x_ + _b_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup> ). (2)
In this sequel, _a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> is the vector of activations of layer _l_, _W_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup> is the weight matrix of _a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>, and
similarly _b_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup> is the bias vector that computes _a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> .
More generally, we define a equation that
<sup>(</sup> _j_ <sup>_l−_</sup> <sup>1)</sup> + _bi_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup>
_i_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup> . (3)
_zi_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> = ∑
_n_
_j_ =1 <sup>_W_</sup> _ij_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup>
_ij_ <sup>(</sup> <sup>_l−_</sup> <sup>1)</sup> _a_ <sup>(</sup> _j_ <sup>_l−_</sup> <sup>1)</sup>
Therefore we have _ai_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
_i_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> = _f_ ( _zi_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
Therefore we have _ai_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> = _f_ ( _zi_ <sup>(</sup> <sup>_l_</sup> <sup>)).</sup> For a neural network which owes _p_ layers, we have
output _h_ ( _x_ ) = _a_ <sup>(</sup> <sup>_p_</sup> <sup>)</sup>, and we call the process to compute _a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> from _a_ <sup>(1)</sup> to _a_ <sup>(</sup> <sup>_p_</sup> <sup>)</sup> ( _h_ ( _x_ )) as “the
feedforward pass”.
After performing a feedforward pass, we initialize _Wij_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> and _bi_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> to the value near 0 nearly,
then the gradient descent algorithm incorporated with BP (backpropagation) is employed as an
optimization algorithm.
The cost function is defined as follows:
There is _J_ ( _W_, _b_ ; _x_, _y_ ) = <sup><u>1</u></sup> 2 <sup>_||h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_y||_</sup> <sup>2</sup> <sup>for each sample, and because we have</sup> <sup>_k_</sup> <sup>unlabeled samples,</sup>
thus the overall cost function can be written as:
After performing a feedforward pass, we initialize _Wij_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
_ij_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> and _bi_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
The cost function is defined as follows:
There is _J_ ( _W_, _b_ ; _x_, _y_ ) = <sup><u>1</u></sup> 2 <sup>_||h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_y||_</sup> <sup>2</sup>
- <u>1</u> _k_ <sup>∑</sup> _i_ <sup>_k_</sup> =1 <sup>_J_</sup> <sup>(</sup> <sup>_W_</sup> <sup>,</sup> <sup>_b_</sup> <sup>;</sup> <sup>_x_</sup> <sup>(</sup> <sup>_i_</sup> <sup>),</sup> <sup>_y_</sup> <sup>(</sup> <sup>_i_</sup> <sup>))</sup>
- <u>1</u> _k_ <sup>∑</sup> _i_ <sup>_k_</sup>
- + <sup>_<u>µ</u>_</sup> 2
<sup>_<u>µ</u>_</sup> 2 <sup>∑</sup> _lp_ = _−_ 11 <sup>∑</sup> _i_ <sup>_sl_</sup>
_i_ <sup>_s_</sup> = <sup>_l_</sup> 1 <sup>∑</sup> <sup>_s_</sup> _j_ = <sup>_l_</sup> <sup>+</sup> 1 <sup>1</sup>
<sup>_s_</sup> _j_ = <sup>_l_</sup> <sup>+</sup> 1 <sup>1</sup> <sup>(</sup> <sup>_W_</sup> _ji_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
_ji_ <sup>(</sup> <sup>_l_</sup> <sup>))</sup>
_J_ ( _W_, _b_ ) =
=
( <sup><u>1</u></sup> 2
2
,
_sl_ +1
∑
_j_ =1
<u>1</u>
_k_
_k_
∑
_i_ =1
<sup><u>1</u></sup> 2 <sup>_||h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_y||_</sup> <sup>2)</sup> + <sup>_<u>µ</u>_</sup> 2
2 (4)
2
_p−_ 1
∑
_l_ =1
_sl_
∑
_i_ =1
( _Wji_ <sup>(</sup> <sup>_l_</sup> <sup>))</sup>
( _Wji_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup>
where _µ_ controls the relative importance of the two terms. In our project, we set _µ_ as 3 _×_ 10 <sup>_−_</sup> <sup>3</sup> .
Our target is to minimize _J_ ( _W_, _b_ ), here we repeatedly implement the batch gradient descent to reduce
our cost function _J_ ( _W_, _b_ ). One iteration of batch gradient descent is shown as follows:
1. Make ∆ _W_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> := 0, ∆ _b_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> := 0 (matrix/vector of zeros) for all _l_
2. For _i_ = 1 to _k_, we use BP to compute _∇W_ ( _l_ ) _J_ ( _W_, _b_ ; _x_, _y_ ) and _∇b_ ( _l_ ) _J_ ( _W_, _b_ ; _x_, _y_ ) firstly, then set
∆ _W_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> := ∆ _W_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> + _∇W_ ( _l_ ) _J_ ( _W_, _b_ ; _x_, _y_ ),
(5)
∆ _b_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> := ∆ _b_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> + _∇b_ ( _l_ ) _J_ ( _W_, _b_ ; _x_, _y_ ).
3. Finally, we transform our parameters as:
- <u>1</u> _k_ <sup>∆</sup> <sup>_W_</sup> <sup>(</sup> <sup>_l_</sup> <sup>) +</sup> <sup>_µW_</sup> <sup>(</sup> <sup>_l_</sup> <sup>)�</sup>,
_W_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> := _W_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> _−_ _α_
,
(6)
- <u>1</u> _k_ <sup>∆</sup> <sup>_b_</sup> <sup>(</sup> <sup>_l_</sup> <sup>)�</sup>,
_b_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> := _b_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> _−_ _α_
,
_Sensors_ 2017, _17_, 2279 8 of 16
where _α_ is the learning rate. In step 2, it is crucial to compute the partial derivatives via BP, which
is detailed described as following:
I For each output unit _i_ in layer _p_ (the output layer), set
_δ_ <sup>(</sup> <sup>_p_</sup> <sup>)</sup> = _−_ ( _y −_ _a_ <sup>(</sup> <sup>_p_</sup> <sup>)</sup> ) _· f_ <sup>_′_</sup> ( _z_ <sup>(</sup> <sup>_p_</sup> <sup>)</sup> ), (7)
where _δ_ <sup>(</sup> <sup>_p_</sup> <sup>)</sup> is defined as the difference between the network’s activation and the true target
value.
II For _l_ = _p −_ 1, _p −_ 2, . . ., 2, set
_· f_ <sup>_′_</sup> ( _z_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ),
_Tδ_ ( _l_ +1) <sup>�</sup>
_δ_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> =
III Compute the partial derivatives
�( _W_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> )
_f_ <sup>_′_</sup> ( _z_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ) = _a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> (1 _−_ _a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ).
_∇W_ ( _l_ ) _J_ ( _W_, _b_ ; _x_, _y_ ) = _δ_ <sup>(</sup> <sup>_l_</sup> <sup>+1)</sup> ( _a_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ) _T_,
_∇b_ ( _l_ ) _J_ ( _W_, _b_ ; _x_, _y_ ) = _δ_ <sup>(</sup> <sup>_l_</sup> <sup>+1)</sup> .
(8)
(9)
Notably, BP is not that easy to debug and get right. In the following section, we provide a
derivative checking procedure to check the correctness of the code and make sure our implementing
of gradient descent is correct. In a correct code we have:
_∇W_ ( _l_ ) _J_ ( _W_, _b_ ) = <sup><u>1</u></sup> _k_ <sup>∆</sup> <sup>_W_</sup> <sup>(</sup> <sup>_l_</sup> <sup>) +</sup> <sup>_µW_</sup> <sup>(</sup> <sup>_l_</sup> <sup>),</sup>
_∇b_ ( _l_ ) _J_ ( _W_, _b_ ) = <sup><u>1</u></sup> _k_ <sup>∆</sup> <sup>_b_</sup> <sup>(</sup> <sup>_l_</sup> <sup>).</sup>
(10)
If the equation is satisfied, it proves that we indeed get the correct derivations. In practice, we
define _θ_ as a vector unrolling the parameters _W_, _b_ . Thus, when a function _g_ ( _θ_ ) = <sup>_<u>dJ</u>_</sup> _d_ <sup><u>(</u></sup> _θ_ <sup>_<u>θ</u>_</sup> <sup><u>)</u></sup> is given, we
can verify its correctness by checking that whether the following formula is satisfied.
_g_ ( _θ_ ) _≈_ <sup>_<u>J</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ</u>_</sup> <sup><u>+</u></sup> <sup>_<u>ϵ</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>J</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θ −</u>_</sup> <sup>_<u>ϵ</u>_</sup> <sup><u>)</u></sup> . (11)
2 _ϵ_
In practice, we set _ϵ_ which is always around 10 <sup>_−_</sup> <sup>4</sup> to a small constant.
3.1.2. Autoencoders and Sparsity
Thus far, we have described the application of neural network to supervised learning, but we
have only used the unlabeled training data set; an autoencoder neural network that combines BP is
introduced to deal with such a situation.
The auto encoder tries to learn an identity function that enforces _h_ ( _x_ ) _≈_ _x_, which means the target
value is _y_ <sup>(</sup> _u_ <sup>_i_</sup> <sup>)</sup>
<sup>(</sup> _u_ <sup>_i_</sup> <sup>)</sup> <sup>=</sup> <sup>_x_</sup> _u_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup>
value is _y_ <sup>(</sup> _u_ <sup>_i_</sup> <sup>)</sup> <sup>=</sup> <sup>_x_</sup> _u_ <sup>(</sup> <sup>_i_</sup> <sup>).</sup>
As Figure 5 shows, this is a simple auto encoder. Our goal is to enforce output _x_ ˆ to be similar to
input _x_ . To achieve this, we set constraints on the ordinary neural network.
_Sensors_ 2017, _17_, 2279 9 of 16
Figure 5. Sparse autoencoder.
We let _a_ <sup>(</sup> _j_ <sup>2)</sup> ( _x_ ) denote the activation of this hidden unit when the network is given a specific
input _x_ . And next step we compute the average activation of hidden unit _j_ .
_ρ_ ˆ _J_ = <sup><u>1</u></sup>
_k_
_k_
### ∑
_i_ =1
[ _a_ <sup>(</sup> _j_ <sup>2)</sup> ( _x_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> )]. (12)
We impose a constraint to _ρ_ ˆ _J_ that _ρ_ ˆ _J_ = _ρ_, where _ρ_ is a sparsity parameter whose value is close to
zero. In our paper, we set it as 0.01. _j_ is the sum of whole hidden units in the network.
Performing the above two equations, we are ready to complete the overall cost function on the
basis of Equation (4) to be
_s_ 2
### Jsparse ( W, b ) = J ( W, b ) + β ∑
_j_ =1
_KL_ ( _ρ||ρ_ ˆ _J_ ), (13)
where _J_ ( _W_, _b_ ) is the same as the original one, _β_ is set as 3 in our project, controlling the weight of
the sparsity penalty term. s2 denotes the number of nodes in the hidden layer; and as Equation (13)
shows, we apply KL-divergence as the penalty term, which can be expressed as _KL_ ( _ρ||ρ_ ˆ _J_ ) = _ρlog_ _ρ_ <sup>_<u>ρ</u>_</sup> ˆ _J_ <sup>+</sup>
(1 _−_ _ρ_ ) _log_ <sup><u>1</u></sup> <sup>_<u>−ρ</u>_</sup>
1 _−ρ_ ˆ
_ρ_ <sup>_<u>ρ</u>_</sup> ˆ _J_ <sup>+</sup>
(1 _−_ _ρ_ ) _log_ <sup><u>1</u></sup> <sup>_<u>−ρ</u>_</sup>
1 _−ρ_ ˆ _J_ <sup>. Until now, the KL-divergence term has been adopted to satisfy the constraints, also, to</sup>
integrate the KL-divergence into our derivative calculation, we adjust Equation (8):
+ _β_ ( _−_ <sup>_<u>ρ</u>_</sup>
_ρ_ ˆ _J_
+ <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>ρ</u>_</sup> )
1 _−_ _ρ_ ˆ _J_
_· f_ <sup>_′_</sup> ( _z_ <sup>(2)</sup> ). (14)
_δ_ <sup>(2)</sup> =
��
( _W_ <sup>(2)</sup> ) _Tδ_ (3) <sup>�</sup>
Other steps are the same as the neural network algorithm, and we perform a gradient descent
on the new objective _Jsparse_ ( _W_, _b_ ). Still we apply the derivative checking method to verify our code.
The algorithm, therefore, encourages the activations _au_ to be sparse, in other words, for most of its
elements to be zero. At the same time we learn the basis vector _θ_ (unrolling parameters _W_, _b_ into a
long vector). It is the basis of both _xu_ and _xl_ .
_3.2._ _Construct New Representation_
So far, we have trained a basis vector _θ_ (a set of parameters _W_ <sup>(1)</sup>, _W_ <sup>(2)</sup>, _b_ <sup>(1)</sup>, _b_ <sup>(2)</sup> ), which would
be used to construct the new labeled data set _{_ ˆ _xl_ <sup>(1)</sup>
_l_ <sup>(1)</sup>, _x_ ˆ _l_ <sup>(2)</sup>
ˆ _l_ <sup>(2)</sup>, . . ., _x_ ˆ _l_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup>
_l_ <sup>(</sup> <sup>_m_</sup> <sup>)</sup> _}_ based on original labeled data set.
We pose the following formulation to solve the problem, for each _x_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup>
_l_
<sup>(</sup> <sup>_i_</sup> <sup>)</sup>
_l_ <sup>, we have</sup>
_l_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> = _f_ ( _W_ <sup>(2)</sup> _f_ (W <sup>(1)</sup> _xl_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup>
_x_ ˆ _l_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup>
_l_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> + _b_ <sup>(1)</sup> ) + _b_ <sup>(2)</sup> ), (15)
_Sensors_ 2017, _17_, 2279 10 of 16
The reconstructing procedure decreases the difference between the labeled data and unlabeled
data as well as transfers knowledge from different domains. These new features are put into multiple
types of classifications, such as RBF. The whole algorithm of self-taught learning based on sparse
autoencoder is illustrated in Algorithm 1 and Figure 6.
Algorithm 1. <u>Self-taught learning algorithm</u>
Step 1 : Minimize _Jsparse_ ( _W_, _b_ ), train the basis vector _θ_ (unrolling parameters _W_, _b_ into a long vector) from
unlabeled data _xu_ .
Step 2 : Take advantage _θ_ to construct new representation _x_ ˆ _l_, replacing original data set _xl_ .
Step 3 : Learn a classifier by applying efficient algorithm (we apply RBF and PLSDA optimized by EQPSO
here).
Step 4 <u>:</u> <u>Calculate the classification accuracy.</u>
Figure 6. Flow chart of self-taught learning.
4. Results and Discussion
To verify the feasibility of the model we performed some experiments and obtained some results,
which will be shown in this section. In order to improve the performance of the classifier, EQPSO is
applied to optimize the parameters, both for RBF and PLSDA.
In all experiments, the particle number of optimization algorithm is set to 30, and the algorithm
iterates 300 times to find the optimal value. Additionally, we set the hidden layer as 10 at first, the
sparsity parameter as 0.01, _β_ as 3 in this project to get a sparse autoencoder. All the data set, which is
the input of classifier, has been normalized before self-taught learning.
Before showing the results, we display the input feature matrix and the reconstructed ones in
Figure 7. We take one sample of _S. aureus_ as an example. In this experiment, the hidden layer is set as
10 and the dimension of input matrix is 3 _×_ 3. The left picture of Figure 7 shows the feature matrix of
input matrix and the right one shows the reconstructed matrix.
_Sensors_ 2017, _17_, 2279 11 of 16
Figure 7. Input feature matrix and reconstructed matrix of one sample.
Firstly, considering that each sensor has a different selectivity pattern, the performances could
change without increasing the size of the matrix, but only selecting the best subset of features. So we
combine different sensors with different features from dimension 3 _×_ 3 to 5 _×_ 5 and finally find
that the results are almost the same when dimensions are the same. Then we discuss whether the
self-taught learning could improve the performance of the E-nose and how the dimension of feature
matrix influences the classification accuracy. We apply RBF as the classifier here and 15 samples of
each wound infection serve as the training data, and 5 samples of each wound infections are the test
data. The test set is used to verify the performance of the final model. In Table 5, we show the results
studied from 652 gas samples.
Table 5. Accuracy of three kinds of feature matrix with radial basis function (RBF) (%).
<u>Raw</u> <u>Spares Autoencoder</u>
~~Dimension~~
Training Set Test Set Training Set Test Set
3 _×_ 3 98.3 60 100 60
4 _×_ 4 100 70 91.6 75
<u>5</u> _<u>×</u>_ <u>5</u> <u>88.3</u> <u>80</u> <u>80</u> <u>90</u>
In Table 5, we find that, compared to the raw matrix, from dimension 3 _×_ 3 to 5 _×_ 5, the matrix
studied from unlabeled samples has higher accuracy overall. However, when the dimension is 3 _×_ 3,
the accuracy of the training set and test set do not change much, which means that if the dimension is
small, the accuracy may not improve. At the same time, however, the number of unlabeled samples
also contributes to the results of classification. We change the size of unlabeled data set from 652 to
2664 to explore the relationship between them. All of the results are shown in Figure 8.
_Sensors_ 2017, _17_, 2279 12 of 16
Figure 8. Accuracy with different number of unlabeled samples. ( a ) shows the change of accuracy as
the number of examples increases when dimension is 3 _×_ 3; ( b ) shows the change of accuracy as the
number of examples increases when dimension is 4 _×_ 4.
In general we can draw a conclusion that, the more unlabeled samples, the higher the accuracy.
If the interval of two sizes is small, the accuracy may not change. When the dimension is 3 _×_ 3, the
classification accuracy of the test set keeps rising, while in Figure 8b, the curve of the training set goes
down when the size of unlabeled data set is 1200, and the curve of the test set goes down when the
size of the unlabeled data set is 1700.
It is well established that the classifier is a major part of the E-nose; thus, PLSDA and RBF are
introduced to distinguish wound infection samples respectively in our paper. In order to compare
the differences in putting the feature matrix into these two classifiers directly and the representations
processed by self-taught learning, we calculate the accuracy of both. The accuracy is shown in Table 6.
Table 6. Accuracy with partial least squares discriminant analysis (PLSDA) and RBF (%).
RBF PLSDA
Dimension
<u>Train Set</u> <u>Test Set</u> <u>Train Set</u> <u>Test Set</u>
raw 98.3 60 53.3 45
3 _×_ 3
<u>sa</u> <u>100</u> <u>60</u> <u>53.3</u> <u>45</u>
raw 100 70 80 60
4 _×_ 4
<u>sa</u> <u>91.6</u> <u>75</u> <u>76.6</u> <u>75</u>
raw 88.3 80 76.6 60
5 _×_ 5
<u>sa</u> <u>80</u> <u>90</u> <u>78.3</u> <u>40</u>
Note: “sa” in Table 6 represents “spares autoencoder”.
_Sensors_ 2017, _17_, 2279 13 of 16
Table 6 shows the results of our experiments and the classification accuracies are clearly presented
in it. Comparing Figure 9 with Figure 10, RBF is indeed more suitable for self-taught learning than
PLSDA, because all of the accuracies of RBF are higher than accuracies of PLSDA, especially for the test
data set. Additionally, comparing (a) with (b) in Figures 9 and 10, the accuracy of self-taught learning
rises more quickly than the raw matrix. As for PLSDA, the results are not very good and steady, when
the input is raw matrix, the accuracy of test data grows slowly. All results in Figures 9 and 10 prove
that RBF is superior to PLSDA in self-taught learning based on the sparse autoencoder. In Figure 10b,
when the input is studied from the unlabeled data set, the accuracy of the test set reaches its peak at
4 _×_ 4, then the curve falls down to 40% at 5 _×_ 5.
Figure 9. Accuracy with RBF. When dimension changes from 3 _×_ 3 to 5 _×_ 5, ( a ) shows the accuracy of
unprocessed data set (training set and test set); ( b ) shows the accuracy of data set processed by self
taught learning.
Figure 10. Accuracy with PLSDA. When dimension changes from 3 _×_ 3 to 5 _×_ 5, ( a ) shows the accuracy
of unprocessed data set (training set and test set); ( b ) shows the accuracy of data set processed by self
taught learning.
All experiments above are established under the condition that the hidden layer is ten. In order to
study the difference that the hidden layer brings to the accuracy, we set the hidden layer at 5, 10, 20, 40,
100, 700, 2000, 10,000.
Except for hidden layer, all the other parameters remain the same. On account of the instability
of the classification accuracy, to make sure the result of the experiment is correct, each program is
repeated 5 times.
Tables 7–9, respectively, show the classification accuracy with different hidden layers when the
dimension is 5 _×_ 5, 4 _×_ 4 and 3 _×_ 3. From Tables 7–9, we can draw a conclusion that as the hidden
layer increases, the classification accuracy always reaches the top at first and falls down later. And
when the hidden layer is large, the accuracy always maintains at a certain level; at the same time,
_Sensors_ 2017, _17_, 2279 14 of 16
it takes more time to train the model, which means increasing the hidden layer can lead to a waste
of time.
Table 7. Accuracy with different hidden layer (%).
Hidden Layer 5 10 20 40 100 700 2000 10,000
Training set 96.6 80 93.3 84.15 91.6 91.6 91.6 91.6
Test set 65 90 90 87.5 80 75 75 75
Note: the dimension is 5 _×_ 5 and the classifier is RBF.
Table 8. Accuracy with different hidden layer (%).
Hidden Layer 5 10 20 40 100 700 2000 10,000
Training set 88.3 91.6 100 89.15 100 91.6 95 100
Test set 80 75 75 80 75 85 80 70
Note: the dimension is 4 _×_ 4 and the classifier is RBF.
Table 9. Accuracy with different hidden layer (%)
Hidden Layer 5 10 20 40 100 700 2000 10,000
Training set 96.6 100 100 98.3 100 96.6 98.3 98.3
Test set 60 60 60 75 65 75 70 65
Note: the dimension is 3 _×_ 3 and the classifier is RBF.
In conclusion, these results prove that the self-taught learning based on sparse autoencoder
demonstrates a good performance in improving the accuracy by studying samples from other fields,
and that there are a few reasons for why this is possible with the sparse autoencoder. Firstly, as a
typical algorithm of traditional training multi-layer network, the BP algorithm is not ideal for only a
few layers of network. If all layers are trained at the same time, the time complexity will be too high;
If only one layer is trained, the bias will pass by the layer. This will face the opposite problem of the
above supervised learning, which will be badly mismatched. Self-taught learning based on sparse
autoencoder is a kind of layer-wise-pre-training, which solves the problem effectively. Furthermore,
the sparsity constraint makes the representation of each layer sparse (most of nodes become zero).
This kind of representation resembles the human brain—when something comes to our mind, only a
small number of neurons are stimulated and other neurons are suppressed. This feature is the same
with humans when we want to study new things from other fields.
5. Conclusions
The self-taught learning approach is a new model of transfer learning and has not been used in
E-nose before; in this paper, we have applied self-taught learning to wound infections classification.
In this paper we introduce a kind of self-taught learning based on a sparse autoencoder to the
E-nose in wound infection detection, and we take advantage of PLSDA and RBF which are optimized
by EQPSO to classify four kinds of wound infections. Through comparing the results of self-taught
learning and the results of the raw data set, we can draw a conclusion that the performance rises when
we apply self-taught learning based on sparse autoencoder, especially with the RBF classifier. We also
found that the size of unlabeled data set, the type of classifier and the dimensions of data set all have
an impact on the accuracy of pattern-recognition.
These results prove that the self-taught learning based on sparse autoencoder has a good
performance in transforming knowledge, and indeed, could improve the accuracy by studying samples
from other fields. However, it still has its limits. First of all, when the number of unlabeled samples
is small, especially when the order of magnitude is smaller than 10, the algorithm barely improves
the performance.
_Sensors_ 2017, _17_, 2279 15 of 16
Through self-taught learning, we can reduce costs when we train the E-nose for distinguishing
wound infections, which is the purpose of our experiments. We all know that the data of such gas is
not easy to obtain, thus we study knowledge from unlabeled data set in other fields, which means that
we can have a significant amount of data to study, making up for the lack of wound infection samples
and transferring it to the area of wound infections.
In future work, we will further study the self-taught learning applied in E-nose, and we believe
E-nose will be further improved in the field of medical science.
Acknowledgments: The work is supported by Program for New Century Excellent Talents in University
(No. 47), National Science Foundation of China (Nos. 61372139, 61101233, 60972155), China Postdoctoral Science
Foundation (No. 2016M602630) and Fundamental Research Funds for the Cetral Universities (No. XDJK2015C073).
Author Contributions: Peilin He was in charge of the project management and proposed the algorithm. Pengfei Jia
was responsible for data analysis and the discussion of the results. Siqi Qiao provided valueable advice about the
revised manuscript. Shukai Duan was involved in discussions and the experimental analysis.
Conflicts of Interest: The authors declare no conflict of interest.
References
1. Natale, C.D.; Macagnano, A.; Mantini, A.; Davide, F.; D’Amico, A.; Paolesse, R.; Boschi, T.; Faccio, M.;
Ferri, G. Advances in food analysis by electronic nose. In Proceedings of the IEEE International Symposium
on Industrial Electronics, Guimaraes, Portugal, 7–11 July 1997; Volume 1, pp. SS122–SS127.
2. Trihaas, J.; Nielsen, P.V. Electronic nose technology in quality assessment: Monitoring the ripening process
of Danish blue cheese. _J. Food Sci._ 2005, _70_, 44–49.
3. Peris, M.; Gilabert, L.E. A 21st century technique for food control: Electronic noses. _Anal._ _Chim._ _Acta_ 2009,
_638_, 1–15. [[CrossRef]](http://dx.doi.org/10.1016/j.aca.2009.02.009)
4. Hui, G.; Wang, L.; Mo, Y.; Zhang, L. Study of grass carp (Ctenopharyngodon idellus) quality predictive
model based on electronic nose. _Sens._ _Actuators B Chem._ 2012, _35_, 301–308.
5. Green, G.C.; Chan, A.D.C.; Dan, H.; Lin, M. Using a metal oxide sensor (MOS)-based electronic nose for
discrimination of bacteria based on individual colonies in suspension. _Sens._ _Actuators B Chem._ 2011, _152_,
21–28. [[CrossRef]](http://dx.doi.org/10.1016/j.snb.2010.09.062)
6. Chapman, E.A.; Thomas, P.S.; Stone, E.; Lewis, C.; Yates, D.H. A breath test for malignant mesothelioma
using an electronic nose. _Eur._ _Respir._ _J._ 2012, _40_, 448–454. [[CrossRef] [PubMed]](http://dx.doi.org/10.1183/09031936.00040911)
7. Jia, P.; Tian, F.; He, Q.; Fan, S.; Liu, J.; Yang, S.X. Feature extraction of wound infection data for electronic
nose based on a novel weighted KPCA. _Sens._ _Actuators B Chem._ 2014, _201_, 555–566. [[CrossRef]](http://dx.doi.org/10.1016/j.snb.2014.05.025)
8. D’Amico, A.; Di Natale, C.; Falconi, C.; Martinelli, E.; Paolesse, R.; Pennazza, G.; Santonico, M.; Sterk, P.J.
Detection and identification of cancers by the electronic nose. _Expert Opin._ _Med._ _Diagn._ 2012, _6_, 175–185.
[[CrossRef]](http://dx.doi.org/10.1517/17530059.2012.665870)
9. Ameer, Q.; Adeloju, S.B. Polypyrrole-Based Electronic Noses for Environmental and Industrial Analysis.
_Sens._ _Actuators B Chem._ 2005, _106_, 541–552.
10. Lamagna, A.; Reich, S.; Rodríguez, D.; Boselli, A.; Cicerone, D. The use of an electronic nose to characterize
emissions from a highly polluted river. _Sens._ _Actuators B Chem._ 2008, _131_, 121–124. [[CrossRef]](http://dx.doi.org/10.1016/j.snb.2007.12.026)
11. Byun, H.; Persaud, K.C.; Pisanelli, A.M. Wound-state monitoring for burn patients using E-nose/SPME
system. _ETRI J._ 2010, _32_, 440–446. [[CrossRef]](http://dx.doi.org/10.4218/etrij.10.0109.0300)
12. Tian, F.; Xu, X.; Shen, Y.; Yan, J.; Ma, J.; He, Q.; Liu, T. Detection of wound pathogen by an intelligent
electronic nose. _Sens._ _Mater._ 2009, _21_, 155–166.
13. Thomas, A.N.; Riazanskaia, S.; Cheung, W.; Xu, Y.; Goodacre, R.; Thomas, C.L.P.; Baguneid, M.S.; Bayat, A.
Novel noninvasive identification of biomarkers by analytical profiling of chronic woundsusing volatile
organic compounds. _Wound Repair Regen._ 2010, _18_, 391–400. [[CrossRef] [PubMed]](http://dx.doi.org/10.1111/j.1524-475X.2010.00592.x)
14. Tian, F.; Yan, J.; Xu, S.; Feng, J.; He, Q.; Shen, Y.; Jia, P.; Kadri, C. Classification of electronic nose data on wound
infection detection using support vector machine combined GA. _J. Comput. Inf. Syst._ 2012, _8_, 3340–3357.
15. Li, S.; Wang, R.; Hu, W.; Sun, J. A New QPSO Based BP Neural Network for Face Detection. In Proceedings
of the Second International Conference of Fuzzy Information and Engineering, Guangzhou, China,
13–16 May 2007; pp. 355–363.
_Sensors_ 2017, _17_, 2279 16 of 16
16. Yang, W.; Wu, W.; Fan, Y.; Li, Z. Particle Swarm Optimization Based on Local Attractors of Ordinary
Differential Equation System. _Discret._ _Dyn._ _Nat._ _Soc._ 2014, _2014_, 1–10. [[CrossRef]](http://dx.doi.org/10.1155/2014/628357)
17. Pan, S.J.; Yang, Q. A Survey on Transfer Learning. _IEEE_ _Trans._ _Knowl._ _Data_ _Eng._ 2010, _22_, 1345–1359.
[[CrossRef]](http://dx.doi.org/10.1109/TKDE.2009.191)
18. Raina, R.; Battle, A.; Lee, H.; Packer, B.; Ng, A.Y. Self-taught learning: transfer learning from unlabeled
data. In _Proceedings of the International Conference on Machine Learning_ ; ACM: New York, NY, USA, 2007;
pp. 759–766.
19. Raina, R. Self-Taught Learning. Ph.D. Thesis, Stanford University, Stanford, CA, USA, 2009.
20. Deng, J.; Zhang, Z.; Marchi, E.; Schuller, B. Sparse Autoencoder-Based Feature Transfer Learning for Speech
Emotion Recognition. In _Proceedings of the Humaine Association Conference on Affective Computing and Intelligent_
_Interaction_ ; IEEE Computer Society: Washington, DC, USA, 2013; pp. 511–516.
21. Amft, O. Self-Taught Learning for Activity Spotting in On-body Motion Sensor Data. In Proceedings of
the Annual International Symposium on Wearable Computers, San Francisco, CA, USA, 12–15 June 2011;
Volume 1416, pp. 83–86.
22. Lee, H.; Raina, R.; Teichman, A.; Ng, A.Y. Exponential family sparse coding with applications to self-taught
learning. In _Proceedings_ _of_ _the_ _International_ _Jont_ _Conference_ _on_ _Artifical_ _Intelligence_ ; Morgan Kaufmann
Publishers Inc.: San Francisco, CA, USA, 2009; pp. 1113–1119.
23. Park, J.; Sandberg, I. Universal Approximation Using Radial-Basis-Function Networks. _Neural Comput._ 1991,
_3_, 246–257. [[CrossRef]](http://dx.doi.org/10.1162/neco.1991.3.2.246)
24. Schwenker, F.; Kestler, H.A.; Palm, G. Three learning phases for radial-basis-function networks. _Neural Netw._
2001, _14_, 439–458. [[CrossRef]](http://dx.doi.org/10.1016/S0893-6080%0x2801%0x2900027-2)
25. He, Q.; Yan, J.; Shen, Y.; Bi, Y.; Ye, G.; Tian, F.; Wang, Z. Classification of Electronic Nose Data in Wound
Infection Detection Based on PSO-SVM Combined with Wavelet Transform. _Intell._ _Autom._ _Soft Comput._ 2012,
_18_, 967–979. [[CrossRef]](http://dx.doi.org/10.1080/10798587.2012.10643302)
26. Plaut, D.C.; Nowlan, S.J.; Hinton, G.E. Experiments on Learning by Back Propagation. _Artif._ _Intell._ 1986, _16_,
1–54.
27. Liu, H.; Taniguchi, T.; Takano, T.; Tanaka, Y.; Takenaka, K.; Bando, T. Visualization of driving behavior using
deep sparse autoencoder. In _2014 IEEE Intelligent Vehicles Symposium Proceedings_ ; IEEE: New York, NY, USA,
2014; pp. 1427–1434.
28. Leung, H.; Haykin, S. The complex backpropagation algorithm. _IEEE_ _Trans._ _Signal_ _Process._ 1991, _39_,
2101–2104. [[CrossRef]](http://dx.doi.org/10.1109/78.134446)
29. Liu, H.; Taniguchi, T.; Tanaka, Y.; Takenaka, K. Essential feature extraction of driving behavior using a
deep learning method. In Proceedings of the 2015 IEEE Intelligent Vehicles Symposium (IV), Seoul, Korea,
28 June–1 July 2015; pp. 1054–1060.
30. Hagan, M.T.; Demuth, H.B.; Beale, M. _Neural Network Design_ ; China Machine Press: Beijing, China, 2002.
31. Rowley, H.A. Neural Network-Based Face Detection. _IEEE Trans._ _Pattern Anal._ _Mach._ _Intell._ 1998, _20_, 23–38.
[[CrossRef]](http://dx.doi.org/10.1109/34.655647)
32. Specht, D.F. A general regression neural network. _IEEE Trans._ _Neural Netw._ 1991, _2_, 568–576. [[CrossRef]](http://dx.doi.org/10.1109/72.97934)
[[PubMed]](http://www.ncbi.nlm.nih.gov/pubmed/18282872)
© 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access
article distributed under the terms and conditions of the Creative Commons Attribution
[(CC BY) license (http://creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/.)
섹션 본문
섹션 본문이 없습니다.
참고문헌 30건
- Essential feature extraction of driving behavior using a deep learning method 2022 IEEE Intelligent Vehicles Symposium (IV) · 2015 10.1109/ivs.2015.7225824
- Experiments on Learning by Back Propagation. 1986
- Novel noninvasive identification of biomarkers by analytical profiling of chronic wounds using volatile organic compounds Wound Repair and Regeneration · Wiley · 2010 10.1111/j.1524-475x.2010.00592.x
- Three learning phases for radial-basis-function networks Neural Networks · Elsevier BV · 2001 10.1016/s0893-6080(01)00027-2
- The use of an electronic nose to characterize emissions from a highly polluted river Sensors and Actuators B Chemical · Elsevier BV · 2007 10.1016/j.snb.2007.12.026
- Classification of Electronic Nose Data in Wound Infection Detection Based on PSO-SVM Combined with Wavelet Transform Intelligent Automation & Soft Computing · Taylor & Francis · 2012 10.1080/10798587.2012.10643302
- Electronic Nose Technology in Quality Assessment: Monitoring the Ripening Process of Danish Blue Cheese Journal of Food Science · Wiley · 2005 10.1111/j.1365-2621.2005.tb09036.x
- Using a metal oxide sensor (MOS)-based electronic nose for discrimination of bacteria based on individual colonies in suspension Sensors and Actuators B Chemical · Elsevier BV · 2010 10.1016/j.snb.2010.09.062
- Particle Swarm Optimization Based on Local Attractors of Ordinary Differential Equation System Discrete Dynamics in Nature and Society · Hindawi Publishing Corporation · 2014 10.1155/2014/628357
- Feature extraction of wound infection data for electronic nose based on a novel weighted KPCA Sensors and Actuators B Chemical · Elsevier BV · 2014 10.1016/j.snb.2014.05.025
- Sparse Autoencoder-Based Feature Transfer Learning for Speech Emotion Recognition 2013 10.1109/acii.2013.90
- A 21st century technique for food control: Electronic noses Analytica Chimica Acta · Elsevier BV · 2009 10.1016/j.aca.2009.02.009
- The complex backpropagation algorithm IEEE Transactions on Signal Processing · Institute of Electrical and Electronics Engineers · 1991 10.1109/78.134446
- Biochemical Properties of Natural Actomyosin Extracted from Normal and Pale, Soft, and Exudative Pork Loin After Frozen Storage Journal of Food Science · Wiley · 2006 10.1111/j.1365-2621.2005.tb07179.x
- Study of grass carp (Ctenopharyngodon idellus) quality predictive model based on electronic nose Sensors and Actuators B Chemical · Elsevier BV · 2012 10.1016/j.snb.2012.02.066
- Wound-State Monitoring for Burn Patients Using E-Nose/SPME System ETRI Journal · Electronics and Telecommunications Research Institute · 2010 10.4218/etrij.10.0109.0300
- Visualization of driving behavior using deep sparse autoencoder 2014 10.1109/ivs.2014.6856506
- Self-Taught Learning for Activity Spotting in On-body Motion Sensor Data 2011 10.1109/iswc.2011.37
- Universal Approximation Using Radial-Basis-Function Networks Neural Computation · The MIT Press · 1991 10.1162/neco.1991.3.2.246
- Self-taught learning 2007 10.1145/1273496.1273592
- Shifting Control Algorithm for a Single-Axle Parallel Plug-In Hybrid Electric Bus Equipped with EMT Discrete Dynamics in Nature and Society · Hindawi Publishing Corporation · 2014 10.1155/2014/618587
- A breath test for malignant mesothelioma using an electronic nose European Respiratory Journal · European Respiratory Society · 2011 10.1183/09031936.00040911
- A general regression neural network IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1991 10.1109/72.97934
- A Survey on Transfer Learning IEEE Transactions on Knowledge and Data Engineering · IEEE Computer Society · 2009 10.1109/tkde.2009.191
- Electronic Nose Technology in Quality Assessment: Predicting Volatile Composition of Danish Blue Cheese During Ripening Journal of Food Science · Wiley · 2005 10.1111/j.1365-2621.2005.tb11444.x
- Detection and identification of cancers by the electronic nose Expert Opinion on Medical Diagnostics · Informa · 2012 10.1517/17530059.2012.665870
- Neural network-based face detection IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1998 10.1109/34.655647
- Music Playlist Generation Using Facial Expression Analysis and Task Extraction Lecture notes in networks and systems · Springer International Publishing · 2017 10.1007/978-981-10-5523-2_13
- Polypyrrole-based electronic noses for environmental and industrial analysis Sensors and Actuators B Chemical · Elsevier BV · 2004 10.1016/j.snb.2004.07.033
- Detection of Wound Pathogen by an Intelligent Electronic Nose Sensors and Materials · MYU K.K. · 2009 10.18494/sam.2009.578