Documente Academic
Documente Profesional
Documente Cultură
ABSTRACT
Electroencephalogram signals (EEG) has been widely researched and developed in various fields of science. EEG signals can
be classified into informations for the application of the topic Brain Computer Interface (BCI). There are several approaches in EEG
signal classification, but some of these approaches are not robust to the EEG signal that has a lot of artifact and recorded in real time.
This study aims to classify the EEG signal to obtain a more optimal result, especially in the EEG signal that has many artifacts and
recorded in real time. This research uses the Emotiv EPOC device to record EEG signals in real time. In this research, we propose the
combination of Automatic Artifact Removal (AAR) and Support Vector Machine (SVM) that it has accuracy of 70% in four classes
classification. This proposed AAR can improve 3% to 6% of accuracy.
Keywords: EEG signal classification, fast fourier transform, artifact removal, BCI
EEG N
Gyro
Support Vector Machine (SVM)
SVM concepts can be explained simply as an attempt
Figure 1. Artifacts in EEG signal to find the best hyperplane which functions as a two
(Source : Medical Engineering & Physics 35 2013) classes separator in the input space. As shown in Figure 2
[10]. Hyperplane of best separator between the two classes
x As n (1)
After estimate the matrix A, then calculate inverse of A
(called W) using Fast-ICA algoritm. After W is obtained,
source signals can be calculated as follows:
Class 2
y Wx (2)
There are some ambiguity in the ICA, such as can not
ascertain a variant of the independent component and can
not determine the sequence of independent components. Class 1
Therefore, in this research ICA is modified by adding the
calculation of standard deviation values for each
component, then the standard deviation value will be
compared, so as to obtain an independent component in Figure 2. Hyperplane SVM
accordance with the sequence and its variants.
can be found by measuring the margin hyperplane, and
looking for maximum points. Margin is the distance
Fast Fourier Transform (FFT) between the hyperplane to the nearest pattern of each
FFT is an efficient and powerful algorithm to class. SVM can classify the data separated linearly
calculate the Discrete Fourier Transform (DFT) and its (linearly separable) and non-linear (nonlinear separable)
inverse, so it can reduce the amount of DFT calculations, [3]. Linearly separable data is the data that can be
where the principle of DFT is to transform the analog separated linearly.
signal into discrete signals in time domain, and then SVM was first developed by Vapnik for binary
transformed into the frequency domain. This is done by classification, further developed for the multiclass
multiplying the discrete signal with a kernel function. The classification. Its approach is to build a multi-class
following is a calculation of the FFT, Derived from DFT- classifier, that is by combining several binary SVM. This
N data, approach consists of One Against All method and One
Against One method [1].
2
j mi
X (m) i 0 x(n)e
N 1 N (3)
METHODS
with i is an index in the time domain, while m is an index
in the frequency domain [11]. The conclusion of the FFT This research uses two references of signal, EEG and
algorithm, has lower computing time compared to DFT Gyroscope signals. Accordance goals and limitations in
algorithm. DFT calculations directly would require this research, the type of EEG signals used in this research
are beta and gamma waves. That is because the beta wave
Start
occurs when a person is thinking and awake, whereas the
gamma wave is generated when hard thinking. Data EEG signals and gyroscope
obtained from the gyroscope sensor will be used to support
artifacts removal. Figure 4 shows EEG signal processing Head movement artifact removal
in this research. ICA (EEG-Gyro)
Mean and stdev comparation
EEG
AAR FFT EEG IC Artifact IC
Gyroscope
Eye blink artifact removal
Get and signal ICA (EEG)
Mean and stdev comparation
Finish
Result : Left, Up, Down, or Right
Figure 5. Artifact removal design
Figure 3. Research design
Feature Extraction
a There are several approaches for EEG signal feature
extraction, such as spectrum analyzers, the Bayesian
approach [7], statistical analysis, wavelet transform. In this
b research, we use Power Spectral Density (PSD). This stage
aims to get features that are used for training and testing
process using SVM.
c
Classification
d
SVM classification method is divided into two
processes: training and testing. In the training process, the
e features are obtained from the feature extraction process of
the training data. While in the testing process, the features
are from the testing data.
Figure 4. EEG signal processing: (a) EEG signal, Training algorithm for each SVM-binary can be
(b) Artifact removal, (c) FFT result, (d) Inverse FFT written as follows: Matrix B (feature extraction results) as
for alpha and beta waves, (e) PSD result an input and the vector Y as a target input and the output is
w, x, b (variables of hyperplane). The steps [2] are
described as follows:
Automatic Artifact Removal 1. Initialize Input (Z = B) and Target (Y) as a training
In this research we proposed Automatic Artifact composition of two classes.
Removal (AAR) using a modified ICA that use two 2. Calculate Gaussian kernel K(Z,Zi ) = exp | Z Z i | 2
( )
references of signal, EEG and Gyroscope signals. (2 2 )
Especially for artifacts removal caused by head 3. Calculate Hessian matrix H = K(Z,Zi ) * Y * YT.
movements and eye blink. 4. Initialize c and epsilon.
The results produced by the ICA method sometimes 5. Initialize vector e as a vector unit which has
have indexes that are not similar sequence between the dimensions equal to the dimension Y.
EEG signals and the ICA outputs. To overcome this, we 6. Calculate quadratic programming solutions: min
added a comparison between mean and standard deviation
values of each ICA outputs.
1
L( ) T H e T , where yT 0 and
2
0 c.
SVM-Multiclass classification for One Against All of testing data. In this research we use LIBSVM library
will build several binary SVM k (k is the count of classes). [12].
Kernel functions used in this research is Gaussian kernel.
K(x,y)=exp ( | x y | ) .
2
(5) RESULTS AND DISCUSSIONS
(2 )
2
A number of support vector at each training data The data used in this research is 150 EEG signals,
must be calculated to get the best solution of separator or eight channels in each signal. EEG signals were recorded
hyperplane. Solution of separator obtained by the using Emotiv EPOC device directly, and requires two
following formula w =iyixi ; b = yk- wTxk for each xk , seconds duration. The recorded signals has a length of 256
bit for each channel. Recording process must consider the
with k 0. The testing process at each SVM-binary also
use w, b, and xi value that resulting in the training process terms of the recording process that used in this research,
such as having age between 19 to 32 years, never drink
in each SVM-binary. Function generated for the testing
alcohol, and do not have a mental disability. The recorded
process is
EEG signals will be processed by using proposed method
f i K ( xi , x d )wi bi (6)
in this research, then the results are stored into a database
where : i = 1 until k; xi = support vector; xd = testing data. to be used as training and testing data. 115 data are used as
The output is an index with the largest fi which is a class training data, and 35 data are used as testing data. Results
...
a
...
b
c
...
d ...
Figure 6. Feature of every class : (a) Left, (b) Right, (c) Up, (d) Down