You are on page 1of 6

67th International Astronautical Congress (IAC), Guadalajara, Mexico, 26-30 September 2016.

Copyright ©2016 by the International Astronautical Federation (IAF). All rights reserved.

IAC-16- A1,IP,3,x33236

ALGORITHM FOR CLASSIFICATION OF EEG SIGNALS IN ASTRONAUTS

Victor Hugo Ortiza*, Juan Jose Tapiaa


a
Intelligent Systems Laboratory, CITEDI-Instituto Politécnico Nacional, Ave. Instituto Politécnico Nacional No.
1310 Colonia Nueva Tijuana, Tijuana, Baja California, México. C.P. 22435, vortiz@citedi.mx, jtapiaa@ipn.mx
* Corresponding Author

Abstract
An algorithm is presented for filtering and classification of electroencephalographic (EEG) signals, based on
extended Kalman filters and dynamic neural networks. The EEG signal acquisition process is complicated since they
have a lot of white noise and because the amplitude and frequency of the different rhythms are in a very small range.
Astronauts when subjected to microgravity environments changes the physiology of the brain, it is important to
analyse these changes because we can analyse: biomechanics, psychological issues, intracranial pressure and using a
brain machine interface, among others. The filtering and sorting algorithm is designed based on extended Kalman
filters and neural networks. These algorithms are used primarily because of its ease to remove white noise and detect
small changes of the different types of rhythms present in EEG signals. For the classification of signals we use
dynamic neural networks, unaware of how it will end EEG signal acquired have to estimate and observe the different
rhythms, dynamic neural networks are suitable for this procedure. The neural network algorithm can be adapted to
the extended Kalman filter and get one feedback system, the algorithm with 2 hidden layers is used to make more
robust the Kalman filter. This algorithm has been able to effectively classify rhythm signals and which are the rates
of interest for biomechanical analysis and brain machine interface. This algorithm is tested using a database,
however we can use in astronauts in microgravity environments.
Keywords: (maximum 6 keywords)

cognitive capacity is accompanied by a multitude of


Acronyms/Abbreviations stresses on the brain [1].
BCI. Brain Computer Interface.
EEG. Electroencephalography signals. 1.1 Extended Filter Kalman
ISS. International Space Station (ISS). The Kalman filter is an algorithm that is based on
the model state space of a system to estimate the future
state and future output making optimal filtering the
1. Introduction output signal, depending on the delay of the samples to
Our brains are changing all the time – nerves are be entered you may serve the function or parameter
rearranging themselves and the connections between the estimator filter only. But in both cases eliminates noise,
nerve cells are reforming as the brain memorises new these equations are widely used because they include
information, stores the old and continuously adapts to statistical probabilities since it takes into account the
new situations. randomness of both the signal and the noise. Unlike
New experiences, learning, physiological changes, other types of filters that does not require a specific
sleep disturbance and fatigue are among the most cutting frequency because it is based on the
influential factors. characteristic of the noise filter thus allowing across the
Sometimes, especially after an accident or a cerebral frequency spectrum [2].
stroke, the recover power of brain tissue is simply mind-
boggling: the remaining healthy tissue can take over the 1.2. BCI
functions of damaged areas. The weightlessness in orbit BCI systems today are considered a tool with
is also a big change for brains. Not only are there enormous potential for establishing communication
changes in blood circulation and other physical alternatives to restore motor functions. There are
conditions, but the way that cognitive functions of daily different types of EEG potentials, which can be
life are managed also alter dramatically. classified according to different factors. To differentiate,
Adapting to the multitudinous effects that gravity brain rhythms historically been divided by the
has on the human body and the way the brain deals with frequency bands occupied, denominating with the Greek
them is perhaps the greatest demand that the nervous letters [3]
system has to face in space. The increased load on the

IAC-16- A1,IP,3,x33236 Page 1 of 6


67th International Astronautical Congress (IAC), Guadalajara, Mexico, 26-30 September 2016.
Copyright ©2016 by the International Astronautical Federation (IAF). All rights reserved.

 Delta Rhythm (): They are typically between x k 1  Ak x k   B k u k    k 


0.5 and 3.5 Hz and has amplitudes of 20 to 200 (1)
µV. y k   C k x k    k 
 Theta Rhythm (): It occurs in the band of 4 to
7 Hz with amplitudes ranging from 20 to 100 Where matrices A(k), B(k) y C(k) are deterministic
µV. and are generally variants variables in linear systems
 Alpha rhythm (): The alpha rhythm is mainly with time, and (k) y (k) are stochastic processes and
manifested in the frequency band from 8 to 13 noise measurement system respectively, which are
Hz with amplitudes ranging from 20 to 60 µV. considered white noise average.
 Mu Rhythm (µ): It manifests in the range of 8-
13 Hz and its amplitude is less than 50 µV. For the classification of signals we use dynamic
 Beta Rhythm (β): It is an irregular rhythm, with neural networks, unaware of how it will end EEG signal
frequencies between 13 and 30 Hz. Its acquired have to estimate and observe the different
approximate amplitude is between 2 and 20 rhythms, dynamic neural networks are suitable for this
µV. procedure. The neural network algorithm can be adapted
 Gamma Rhythm (): This rhythm at higher to the extended Kalman filter and get one feedback
frequencies to 30 Hz and amplitudes manifests system, the algorithm with 2 hidden layers is used to
between 5 and 10 µV. make more robust the Kalman filter. This algorithm has
been able to effectively classify rhythm signals µ and β
2. Material and methods which are the rates of interest.

Pseudocode of the proposal The design idea can be illustrated observers to


Program: EEG signal classifier invariant systems in the time:
Environment: EEG signal data obtained from x  Ax  Bu (2)
database
Algorithm: y  Cx
Read: EEG signals
calculate Kalman filter A linear observer is designed in the same way as the
original system with an additional pending input from
read rhythms $ \ mu $ and $ \ beta $
the difference between the actual values and the
calculate dynamic neural network
estimated values of the output vector:
read the dynamic neural network learned the
original signal x̂  Axˆ  Bu  L Cxˆ  y  (3)
not Where x̂ t is an estimate of the state vector of the system
Change the parameters of the neural network and L   nxl is an input matrix. Of course, the vector
if state observer x̂ is available to generate the control
writes output signal network action using auxiliary system dynamics.
end program
d
xˆ t  Axˆ t  W1,t  xˆ t   W2 ,t  xˆ t u t  K 1et  K 2 et
3. Theory and calculation dt (4)
The first step is to obtain EEG signals from different yˆ t  Cxˆ t
database to show the proposed algorithm. The databases Where x̂t is the state vector representing the neuronal
we used were: a database of a group of researchers from observer estimates brain signals; ŷ t is the output of the
different institutions of the European Union [4], Ecole neural network corresponding to the differential value
Polytechnique Federale de Lausanne [5] and Graz of the estimated rate of rhythm signals: µ and β rhythm;
University of Technology [6]. A, K1 y K2 are the constants appropriate matrices which
fit during training, to enhance the process of
3.1 Equation numbers approximation of the neural network dimensions; ()
EEG signals are difficult to capture and seeing, that and () are vector fields are compounds with standard
if not in controlled environments, controlled sigmoid functions; C is assumed that the matrix output
environments we mean total rest have a lot of noise and previously known; parameters W1,t and W2,t are the
can be confused with any pace of EEG signal noise, for weights are adjusted to ensure a good approximation of
that reason apply extended Kalman filters as they are the neural network to the uncertain nonlinear function.
appropriate filters to eliminate noise caused by the The first is that the adjustment of feedback and the
system. Consider the equation of state and output of a second is related to the effect of the entry in the state
non-stationary system with noise form: estimation process whose time evolution is determined

IAC-16- A1,IP,3,x33236 Page 2 of 6


67th International Astronautical Congress (IAC), Guadalajara, Mexico, 26-30 September 2016.
Copyright ©2016 by the International Astronautical Federation (IAF). All rights reserved.

by a special procedure of "learning" online. The data set


available are variations BCI signals, ie y=x. In this way
and in this particular case C=(1,0,…,0).

4. Results
Following is the EEG signals obtained from each of
the databases, these images can also be observed obtain
the different rates. In Fig 1, we show for the database
EU in Fig. 2, the database Ecole Polytechnique Federale
de Lausanne in Fig. 3. the Graz University of
Technology.

Fig. 3. Database of EEG signal, database of the Graz


University of Technology.

After obtained signals database, apply the extended


Kalman filter to the signal to filter and obtain the
rhythm wish, Fig. 4 y Fig. 5 shows the output of the
Kalman filter for the rhythm µ and β of first database
respectively.

Fig. 1. Database of EEG signal, database of the


European Union.

Fig. 4. Output extended Kalman filter for µ rhythm,


database of the European Union.

Fig. 2. Database of EEG signal, database of the


Ecole Polytechnique Federale de Lausanne.

Fig. 5. Output extended Kalman filter for β rhythm,


database of the European Union.

IAC-16- A1,IP,3,x33236 Page 3 of 6


67th International Astronautical Congress (IAC), Guadalajara, Mexico, 26-30 September 2016.
Copyright ©2016 by the International Astronautical Federation (IAF). All rights reserved.

Fig. 6 y Fig. 7 shows the output of the Kalman filter for


the rhythm µ and β of second database respectively.

Fig. 8. Output extended Kalman filter for µ rhythm,


database of the Graz University of Technology.

Fig. 6. Output extended Kalman filter for µ rhythm,


database of the Ecole Polytechnique Federale de
Lausanne.

Fig. 9. Output extended Kalman filter for β rhythm,


database of the Graz University of Technology.

Fig. 7. Output extended Kalman filter for β rhythm, Since we have the output of the extended Kalman
database of the Ecole Polytechnique Federale de filter, apply the neural network. The neural network
Lausanne. learns from the original network with this we mean that
the network learns this is the right pace, so if
Fig. 8 y Fig. 9 shows the output of the Kalman filter resubmitted another signal type neural network will take
for the rhythm µ and β of third database respectively it as another sign anyone. This behaviour is what we
want as a first test for our classification signals. Because
the implementation of the neural network in matlab
takes a long time for the amount of data, this data
decided to cut paper and therefore the kalman filter
analysis and neural network. In Figs. 10 and 11 show
the application of the neural network mu rate signal and
beta respectively.

IAC-16- A1,IP,3,x33236 Page 4 of 6


67th International Astronautical Congress (IAC), Guadalajara, Mexico, 26-30 September 2016.
Copyright ©2016 by the International Astronautical Federation (IAF). All rights reserved.

Fig. 10. Output neural network for µ rhythm,


database of the European Union.

Fig. 12. Output extended neural network for µ


rhythm, database of the Ecole Polytechnique Federale
de Lausanne.

Fig. 11. Output neural network for β rhythm,


database of the European Union.

Fig. 12 y Fig. 13 shows the output of the neural


network for the rhythm µ and β of second database
respectively.
Fig. 13. Output extended neural network for β
rhythm, database of the Ecole Polytechnique Federale
de Lausanne.

Fig. 14 y Fig. 15 shows the output of the neural


network for the rhythm µ and β of third database
respectively

IAC-16- A1,IP,3,x33236 Page 5 of 6


67th International Astronautical Congress (IAC), Guadalajara, Mexico, 26-30 September 2016.
Copyright ©2016 by the International Astronautical Federation (IAF). All rights reserved.

estimates of the network, the lower the K matrix best


estimate of the neural network. Another important
parameter is to calculate the matrix of the weights W,
the weights are given us the speed with which estimates
the network, this data is important because it also
indicates the computational cost of the algorithm.

6. Conclusions
The proposed algorithm is able to identify EEG
signals in the first instance removes noise that provides
acquisition system which guarantees that we can get the
rhythm we want. The other part of the algorithm is the
observer of the neural network, which showed us that it
is able to learn the correct signal (required rhythm) this
part is important because if the process of acquisition of
Fig. 14. Output neural network for µ rhythm, EEG signals another signal occurs (noise) and our
database of the Graz University of Technology. system was able to learn the right rhythm. This system
could be used in microgravity environments for
astronauts and who wish to acquire EEG signals where
the system this noise is more common.

Acknowledgements
We thank the Instituto Politecnico Nacional for the
support in this work. This work has been partially
supported by COFAA-IPN, and by grant IPN-SIP-
20160816.

References
[1] L. Rossini, D. Izzo and L. Summerer, Brain Machine
Interfaces for Space Applications: enhancing
astronaut capabilities, International Review of
Neurobiology. 86 (2009).
[2] Y. Wang, K. Veluvolu and M. Lee, Time-frequency
Fig. 15. Output neural network filter for β rhythm,
analysis of band-limited EEG with BMFLC and
database of the Graz University of Technology.
Kalman filter for BCI applications, Journal of
NeuroEngineering and Rehabilitation, 10:109 (2013).
[3] D. Krusienski, G. Schalk, D. McFarland, and J.
5. Discussion
Wolpaw, A µ-Rhythm Matched Filter for
When we get the signal from Extended Kalman
Continuous Control of a Brain-Computer Interface,
Filter, enters the system Dynamic Neural Networks. The
IEEE Transactions on Biomedical Engineering,
application of dynamic neural network to µ rhythm. In
54:02 (2007). 273-280
the figures of the neural network estimation signal (red)
[4] http://bnci-horizon-2020.eu/database/data-sets
is shown, the estimate is appropriate and that would
(accessed 24.05.16).
classify the correct signal for the movement of the
[5] http://mmspg.epfl.ch/page-58318-en.html (accessed
limbs. The same applies to the β rhythm
24.05.16).
[6] https://bci.tugraz.at/ (accessed 24.05.16).
The algorithm applied model helped us to estimate
the parameters of the neural network, the calculation
error (matrices K) is important is what will provide

IAC-16- A1,IP,3,x33236 Page 6 of 6

You might also like