SlideShare a Scribd company logo
1 of 18
Download to read offline
Classification of EEG
Signals for Brain-Computer
Interface
www.azoft.com
Software Development
Software Development
Introduction
	
One of the current issues in medical science today is the classification
of signals recorded from the brain via electroencephalography (EEG, which
is an electrophysiological monitoring method to record electrical activity
of the brain). Classification of cerebral cortex signals makes it possible
to diagnose various neurological diseases (i.e. epilepsy), as well as create
a brain-computer interface for managing robotic devices, including
prosthetics for physically disabled patients.
Azoft R&D team, together with Sergey Alyamkin and Expasoft, decided
to research the topic of building a brain-computer interface and participated
in the «Grasp-and-Lift EEG Detection» competition organized by Kaggle.
According to competition rules, participants were given 2 months to identify
and classify various movements of the right hand with the lowest error rate
using EEG.
The Project Task
To develop a model which helps classify various right-hand movements
using EEG.
The Project Plan
1.	 Studying the Biological Aspects of the Project
2.	 Data Pre-processing
3.	 Identification of Brain Signal Appearance
4.	 Choosing an Appropriate Machine Learning Algorithm
5.	 Comparing Received Models and Sending the Best Result
Implementation
Studying Biological Aspects of the Project
The human brain serves as the center of the nervous system and can be
divided into several levels (Image 1), each of which has its own functions:
1st level — the cortex — responsible for managing sensory and motor
functions, as well as handling complex cognitive processes.
2nd level — basal ganglia — responsible for managing consensual
movements and regulating muscle tone.
3rd level — hippocampus, hypophysis, hypothalamus, callosal gyrus, corpus
amygdaloideum - mainly responsible for managing emotional reactions
and states, and endocrine regulation.
4th level (the lowest) — reticular formation and other structures of brain
stem — responsible for managing vegetative processes. [1]
Software Development
Image 1. The general structure of the brain.
Software Development
The image above illustrates the following brain structures: 1) cortex;
2) thalamus; 3) corpus callosum; 4) optic nerve; 5) eye; 6) amygdaloid body;
7) hypothalamus; 8) hypophysis; 9) hippocampus; 10) pons; 11) cerebellum;
12) spinal medulla; 13) medulla oblongata; 14) reticular formation.
As for the anatomic structure, the brain consists of two hemispheres — right
and left.
Each hemisphere includes five lobes of cerebrum (Image 2):
1.	 frontal lobe;
2.	 parietal lobe;
3.	 occipital lobe;
4.	 temporal lobe;
5.	 insular lobe, insula.
Image 2. The lobes of cerebrum
All the data (anatomical, physiological, and clinical) proves that the cerebral
cortex plays a leading role in the cerebral organization of physical processes.
The cerebral cortex is most differentiated by structure and function areas
of the brain.
The cerebral cortex is divided into the following elements:
	 • Paleocortex
	 • Archicortex
	 • Mesocortex
	 • Neocortex
Software Development
The neocortex of the human brain is most structurally complex - it takes up
96% of all the hemispherical surface. For this reason, we will primarily look
at this new part of the brain.
All neocortex areas are constructed uniformly. The most typical for a human
is the new six-layered cortex (Image 3), although the layer number is different
in various brain parts. Layers differ from each other in their thickness, neuron
structure, and arrangement.
The cerebral cortex is heterogeneous and even in one hemisphere has
different cell compositions (Image 3). It helps to identify cytoarchitectonic
areas of the cortex - the similarly organized centers.
Сytoarchitectonics is a study that looks at properties of various cerebral
cortex structures, focusing primarily on cellular composition. In particular,
cytoarchitectonics studies distinctive features of various cortex formations
and their general cell structure characteristics: size and shape of cell elements,
their layer distribution, their location density throughout the whole cortex
cross-section and in certain layers, their division to the sublayers, the presence
of certain cell forms in various layers, as well as cell distribution in vertical
direction.
Image 3. The scheme of neuro and cytoarchitectonic structure of several cortex zones
The borders of cytoarchitectonic areas coincide with functionally specific
neocortex areas, which are responsible for various sense organs. Different
Software Development
studies have been conducted to broaden our knowledge about
the human brain’s functional areas, for example via direct cortex stimulation
by microelectrodes, positron emission tomography, or other methods using
comparison of local destructions of cortex areas with observable behavior
fluctuations. [2]
Let’s consider sensorimotor centers of the cerebral cortex in detail.
Image 4: Sensorimotor centers of the cerebral cortex of the human brain (according
to scientific studies)
As shown in the image above, the sensorimotor centers of the human brain
are: 1) root of the tongue; 2) larynx; 3) palate; 4) lower jaw; 5) tongue; 6) lower
part of the face; 7) upper part of the face; 8) neck; 9) fingers; 10) hand;
11) arm from shoulder to wrist; 12) shoulder; 13) shoulder blade; 14) chest;
15) abdomen; 16) lower leg; 17) knee; 18) thigh; 19) toes; 20) the big toe;
21) four toes; 22) foot; 23) face; 24) pharynx. As shown in the image above,
the motor area of the cortex is located between the blue and red lines,
whereas the sensorimotor area is between the red and green lines. [3]
Finally, we learned that the main brain activity associated with hand movement
is in the range from 7 to 30 Hz.
Software Development
Data Preprocessing
Filtering
The main objects of the study in the EEG signal were eye movement, the
movement of the electrodes, the contraction of muscles of the head and
the heart, and 50-60Hz network interference. Compared to useful signals,
interference caused by movement of eyes, muscles, and electrodes, are
arranged at lower frequencies (from 0.1 Hz to 6 Hz). Therefore, we decided to
use a bandpass filter with the bandwidth of 7 to 30 Hz.
According to the competition, the developed system should be causal. In
other words, you cannot take data from the future in the specific moment
of classification. In addition, following the competition rules, the signal
classification will be precise if it enters the interval ±150 milliseconds, which
equals to ±75 samplings. From there the maximal order of the bandpass filter
might be 75*2 = 150.
It is important to note that the digital filtering contributed the least distortion
in the signal, so we chose a filter with the finite impulse response. In addition,
we used a Kaiser window with beta = 1 for eliminating the Gibbs effect.
Image 5: Amplitude frequency response and phase response characteristics of the derived
filter
Software Development
Image 6: Group delay of the derived filter
As is seen from the derived amplitude-response (blue color)
and dynamic-response (red color) characteristics (Image 5), frequencies that
are lower than 7 and higher than 30 strain out, and the phase response
characteristic is linear. Also, the group delay of the filter equals 75 (Image 6)
across the whole frequency line, which satisfies our initial requirements
of the filter.
Downsampling
As for decimation, which is the process of reducing the sampling rate
of a signal, we dropped it from 500 to 62.5 Hz. Since the maximum useful
frequency is 30 Hz, taking into consideration the Nyquist theorem,
the sampling rate must be greater than 60 Hz. During downsampling
a bandpass filter with the bandwidth of 7 to 30 Hz helps to avoid aliasing.
Identification of Brain Signal Appearance
We used several different approaches to identify typical signs of brain signals
for classifications applicable to machine learning. This was necessary
in order to reduce the amount of input data, exclude redundant information,
and increase the accuracy of brain signal classification. The testing methods
included principal component analysis, electrode selection from the biological
viewpoint, and wavelet transform.
First of all, we decided to try one of the most popular methods of identifying
typical signs - principal component analysis.
Software Development
Principal Component Analysis
Principal component analysis has the following main idea related
to the project task: the same signal can come from the cortex to several
different electrodes (Image 7).
Image 7: Mixing signals on the way from the cortex to electrodes located on the head
If we assume that signals are linear mixing, then the signal vector
from detectors:
where – column vector 32x1 – signals from detectors;
– column vector 10x1 – signals from the cortex;
– matrix 32x10 – unknown.
We can transform this correspondence to:
where – Moore-Penrose pseudoinverse.
If we know a matrix , we can set to the classificator entry not the given raw
data but the improved data .
Software Development
We tried to calculate a matrix using SVD (singular value decomposition).
All 32 signals band together to the signal matrix X. Every signal is a matrix
column. Matrix X has the size Nx32. This matrix went through a singular value
decomposition
,
where – unitary matrixes, - diagonal matrix with all the elements
being positive and sorted out in descending order. has a size Nx32,
– 32x32, – 32x32.
The first few matrix columns have to be the same deep signals, which
appear in the brain when a patient begins to move a hand. The first few
columns are the main components. Usually, artifacts are located in the last
matrix columns.
When we implemented data analysis with SVD, we didn’t find a correlation
between signals from the first matrix columns and the moments when a
patient began to move a hand. For this reason, we had to stop using principal
component analysis. It was assumed that deep brain signals are mutually
orthogonal in calculating compulsory matrix by means of SVD – singular
value decomposition. In practice, it turned out that they were not mutually
orthogonal. Besides, in the experiment we had 32 detectors, which is not
enough for good SVD. It would be better to use ICA (independent component
analysis) for nonorthogonal signals. Unfortunately, we ran out of time and
didn’t try ICA.
Software Development
Electrode Selection From the Biological Viewpoint
When choosing electrodes, our decision was based on their spatial
arrangement. In the following picture, the electrodes that provided data
are labeled with the numbers from 1 to 32.
Image 8: Schematic illustration of electrodes on the surface of the head
There is a phenomenon called hemispheric asymmetry. Along with other
meanings, it implies that the left hemisphere is responsible for the right side
of the body, with the right hemisphere responsible for the left side of the
body. Test subjects moved their right hand, which means a signal appeared
in the left hemisphere. Based on this and according to Image 4, we chose the
following electrodes: FC5, FC1, T7, C3, Cz, CP5, and CP1.
Software Development
Wavelet Transform
Having chosen the required electrodes, we decided to focus on wavelet
transform as our key method of brain signal identification.
Wavelet transform of one-dimensional signals is widespread in different areas
of science - from seismic data processing to speech processing. This approach
has a range of advantages compared to spectral analysis in the case
of unsteady pulse signals.
The choice of a specific wavelet kind and type depends primarily on analyzed
signals and analysis tasks. Today there are no clear methods which could help
choose the optimal wavelet for a particular task. That’s why an expert often
has to decide what wavelet function to use.
There is an implied principle of wavelet choice: the basic wavelet functions
look has to be similar to the typical manipulated signal.
Gauss wavelet was chosen as the basic function gaus2:
Image 9. Gauss wavelet gaus2
Software Development
Image 10. The result of wavelet transform for the EEG signal
Using this approach, we can analyze the fine structure of signals by means of
their simultaneous localization based on both frequency and time.
Choosing an Appropriate Machine Learning Algorithm
When choosing the best machine learning algorithm for the task, we decided
to apply the familiar convolutional neural networks (CNN), which are a part of
deep learning algorithms.
Сonvolutional Neural Networks
Сonvolutional neural networks are among the most commonly used neural
network types, especially for tasks that involve two-dimensional signals (i.e.
images). Although, these networks can also work with regular signals.
Software Development
Image 11: The example of CNN work with a one-dimensional signal
We set 32 one-dimensional signals to the CNN entry over a particular period
of time.
Up to some experience, we identified that 4096 samples (up to downsampling)
yield the lowest error rate in the final model.
Finally, we got the following model (Image 12):
Software Development
Image 12: The derived model: CL is the convolutional layer, MP is map pooling, FC is fully
connected layer, FM is feature masks.
The derived model enabled us to calculate the area under ROC curve,
which equals 0.91983.
The increase in the number of masks, convolutional layers and changes
of kernel didn’t bring an improvement. The area under the ROC curve varies
between ~0.88 and ~0.91.
Random Forest
The second experimental algorithm was the so-called “random forest”,
since it is one of the most popular methods for classification today.
This algorithm consists of a set of decisions trees, and each of them gets its
own dataset from the total dataset.
For better understanding of how the algorithm works let’s consider
the example of the decision tree for an abstract task with two features
(Image 13).
Initially elements from two different classes are on the plane. We divide
them in a way to separate one class from the other by one horizontal
Software Development
or vertical line. Next we divide the derived planes in the same way before we
get the probability of dominant class higher than a certain limit or the unit
depth comes to a maximum, or the element quantity becomes lower than
a certain limit.
Image 13: The example of the decision tree for abstract task with two features
The decision tree is not a very stable and reliable algorithm. The algorithm’s
high accuracy of classification and flexibility are attainable due to a set
of decision trees.
We ran out of time to try a combination of “wavelet transform + random
forest” because wavelet transform is very time-consuming.
Recurrent Neural Network
Recurrent neural networks (RNN) are the neural networks with feedback
connections. Biological neural networks are recurrent. They have memory.
Humans, as well as animals, have memory. Feedback connections gives
the network the opportunity to obtain memory.
That allows it to not convey signal history to the network. Moreover,
Software Development
the memory depth to the past can be determined during learning.
For the recurrent neural network, we used the raw data without removing
atrifacts, because RNN does it. Therefore, the recurrent neural network has 32
entries.
We ran multiple experiments with the recurrent neural network, tested various
architectures and delays in feedback connections. The network didn’t learn.
There was a problem with memory – we could not create a complex network
with more than two layers. Then we came to the conclusion that we need
to try a special type of neural network – LSTM (long short term memory).
LSTM has inside specific memory units, which are made on the base
of controlled backlink with a coefficient of 1.
Image 14. Memory unit of the LSTM recurrent neural network
The decision of whether to turn the backlink on or off is the responsibility
of the other neural network part. Turning off the backlink leads to erasing
information in the memory core. Thus, the network decides
when to remember, use or forget the information.
Nevertheless, the complexity of the LSTM algorithm requires deeper
investigation than it was possible under the competition circumstances.
For these reasons, we decided to stop at the current stage, without obtaining
LSTM testing results.
Software Development
Conclusion
	
Finally, our R&D team was able to obtain high quality classification of EEG
signals during the process of hand movements. Thanks to the quality
parameter “area under ROC curve”, which was derived as a result of using
convolutional neural networks, we verified that deep learning algorithms are
effective in various types of signal classification. Therefore, we can conclude
that convolutional neural networks are one of the greatest deep learning
methods for the development of brain-computer interfaces. In simple words,
show us your EEG signals and we’ll figure out what you were doing at the
moment of the EEG recording.
Literature
	
[1]	 Homskaya E.D. Neiropsychologiya [Neuropsychology]. St. Petersburg,
Piter, 2005. 496 p. (in Russian)
[2]	 Kuo C-C, Luu P, Morgan KK, Dow M, Davey C, et al. Localizing
Movement-Related Primary Sensorimotor Cortices with Multi-Band EEG
Frequency Changes and Functional MRI (2014). Available at:
http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0112103
(Accessed 3 October 2015)
[3]	 Saveliev S.V. Vozniknovenie mozga cheloveka [The emergence of the
human brain]. Moscow, Vedi, 2010. 324 p. (in Russian)
[4]	 H. P. Martinez, Y. Bengio, G. N. Yannakakis Learning deep physiological
models of affect. Computational Intelligence Magazine, IEEE, Vol. 8, No. 2.
(May 2013), pp. 20-33. Available at:
http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6496209 (Accessed
4 October 2015)
[5]	 Model Random Forest dlya classificacii, realizaciya na c# (The Random
Forest model for classification, c# implementation). Available at:
https://habrahabr.ru/post/215453/ (Accessed 7 October 2015)

More Related Content

What's hot

Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compressionjeevithaelangovan
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
introduction to Digital Image Processing
introduction to Digital Image Processingintroduction to Digital Image Processing
introduction to Digital Image Processingnikesh gadare
 
Finite word length effects
Finite word length effectsFinite word length effects
Finite word length effectsPeriyanayagiS
 
EEG Signal processing
EEG Signal processing EEG Signal processing
EEG Signal processing DikshaKalra9
 
3F3 – Digital Signal Processing (DSP) - Part1
3F3 – Digital Signal Processing (DSP) - Part13F3 – Digital Signal Processing (DSP) - Part1
3F3 – Digital Signal Processing (DSP) - Part1op205
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image RestorationMathankumar S
 
Lecture 4 Relationship between pixels
Lecture 4 Relationship between pixelsLecture 4 Relationship between pixels
Lecture 4 Relationship between pixelsVARUN KUMAR
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Gourab Ghosh
 
DataEngConf: Feature Extraction: Modern Questions and Challenges at Google
DataEngConf: Feature Extraction: Modern Questions and Challenges at GoogleDataEngConf: Feature Extraction: Modern Questions and Challenges at Google
DataEngConf: Feature Extraction: Modern Questions and Challenges at GoogleHakka Labs
 
Image segmentation
Image segmentationImage segmentation
Image segmentationKuppusamy P
 
Watershed Segmentation Image Processing
Watershed Segmentation Image ProcessingWatershed Segmentation Image Processing
Watershed Segmentation Image ProcessingArshad Hussain
 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transformop205
 
Biosignal Processing
Biosignal ProcessingBiosignal Processing
Biosignal ProcessingOresti Banos
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformationsYahya Alkhaldi
 

What's hot (20)

Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compression
 
03 image transform
03 image transform03 image transform
03 image transform
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Wiener Filter
Wiener FilterWiener Filter
Wiener Filter
 
introduction to Digital Image Processing
introduction to Digital Image Processingintroduction to Digital Image Processing
introduction to Digital Image Processing
 
Finite word length effects
Finite word length effectsFinite word length effects
Finite word length effects
 
EEG Signal processing
EEG Signal processing EEG Signal processing
EEG Signal processing
 
3F3 – Digital Signal Processing (DSP) - Part1
3F3 – Digital Signal Processing (DSP) - Part13F3 – Digital Signal Processing (DSP) - Part1
3F3 – Digital Signal Processing (DSP) - Part1
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
 
Lecture 4 Relationship between pixels
Lecture 4 Relationship between pixelsLecture 4 Relationship between pixels
Lecture 4 Relationship between pixels
 
Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)Overlap Add, Overlap Save(digital signal processing)
Overlap Add, Overlap Save(digital signal processing)
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filter
 
DataEngConf: Feature Extraction: Modern Questions and Challenges at Google
DataEngConf: Feature Extraction: Modern Questions and Challenges at GoogleDataEngConf: Feature Extraction: Modern Questions and Challenges at Google
DataEngConf: Feature Extraction: Modern Questions and Challenges at Google
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Watershed Segmentation Image Processing
Watershed Segmentation Image ProcessingWatershed Segmentation Image Processing
Watershed Segmentation Image Processing
 
Fast Fourier Transform
Fast Fourier TransformFast Fourier Transform
Fast Fourier Transform
 
Biosignal Processing
Biosignal ProcessingBiosignal Processing
Biosignal Processing
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 

Viewers also liked

ET_with_EEG
ET_with_EEGET_with_EEG
ET_with_EEGXuan Guo
 
Analysis of EEG data Using ICA and Algorithm Development for Energy Comparison
Analysis of EEG data Using ICA and Algorithm Development for Energy ComparisonAnalysis of EEG data Using ICA and Algorithm Development for Energy Comparison
Analysis of EEG data Using ICA and Algorithm Development for Energy Comparisonijsrd.com
 
BRAIN COMPUTER INTERFACE (BCI)
BRAIN COMPUTER INTERFACE (BCI)BRAIN COMPUTER INTERFACE (BCI)
BRAIN COMPUTER INTERFACE (BCI)Ayush Sharma
 
EEG analysis and Machine Learning
EEG  analysis and Machine LearningEEG  analysis and Machine Learning
EEG analysis and Machine LearningAbbas Badran
 
A review of eeg recording techniques
A review of eeg recording techniquesA review of eeg recording techniques
A review of eeg recording techniquesiaemedu
 
شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...
شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...
شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...RwaqOrg
 
EEG signal background and real-time processing
EEG signal background and real-time processingEEG signal background and real-time processing
EEG signal background and real-time processingRobert Oostenveld
 
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...Tatsuya Yokota
 
Dealing with Academic Rejection 25 Feb 2017
Dealing with Academic Rejection 25 Feb 2017Dealing with Academic Rejection 25 Feb 2017
Dealing with Academic Rejection 25 Feb 2017Aboul Ella Hassanien
 
Feature Extraction Techniques and Classification Algorithms for EEG Signals t...
Feature Extraction Techniques and Classification Algorithms for EEG Signals t...Feature Extraction Techniques and Classification Algorithms for EEG Signals t...
Feature Extraction Techniques and Classification Algorithms for EEG Signals t...Editor IJCATR
 
Hybrid neural networks for time series learning by Tian Guo, EPFL, Switzerland
Hybrid neural networks for time series learning by Tian Guo,  EPFL, SwitzerlandHybrid neural networks for time series learning by Tian Guo,  EPFL, Switzerland
Hybrid neural networks for time series learning by Tian Guo, EPFL, SwitzerlandEuroIoTa
 
Healthcare Monitoring Using Wireless Sensor Networks
Healthcare Monitoring Using Wireless Sensor NetworksHealthcare Monitoring Using Wireless Sensor Networks
Healthcare Monitoring Using Wireless Sensor NetworksEbin Ephrem Elavathingal
 
Ffeature extraction of epilepsy eeg using discrete wavelet transform
Ffeature extraction of epilepsy eeg  using discrete wavelet transformFfeature extraction of epilepsy eeg  using discrete wavelet transform
Ffeature extraction of epilepsy eeg using discrete wavelet transformAboul Ella Hassanien
 
Scientific research group in Egypt members 2017
Scientific research group in Egypt members 2017Scientific research group in Egypt members 2017
Scientific research group in Egypt members 2017Aboul Ella Hassanien
 

Viewers also liked (20)

EEG
EEGEEG
EEG
 
ET_with_EEG
ET_with_EEGET_with_EEG
ET_with_EEG
 
Analysis of EEG data Using ICA and Algorithm Development for Energy Comparison
Analysis of EEG data Using ICA and Algorithm Development for Energy ComparisonAnalysis of EEG data Using ICA and Algorithm Development for Energy Comparison
Analysis of EEG data Using ICA and Algorithm Development for Energy Comparison
 
BRAIN COMPUTER INTERFACE (BCI)
BRAIN COMPUTER INTERFACE (BCI)BRAIN COMPUTER INTERFACE (BCI)
BRAIN COMPUTER INTERFACE (BCI)
 
EEG analysis and Machine Learning
EEG  analysis and Machine LearningEEG  analysis and Machine Learning
EEG analysis and Machine Learning
 
A review of eeg recording techniques
A review of eeg recording techniquesA review of eeg recording techniques
A review of eeg recording techniques
 
Aisi2017 keynote speaker
Aisi2017 keynote speakerAisi2017 keynote speaker
Aisi2017 keynote speaker
 
شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...
شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...
شرائح العرض للمحاضرة الثالثة عن الكهرباء في الدماغ وتعويض وظائفه باستخدام الح...
 
EEG signal background and real-time processing
EEG signal background and real-time processingEEG signal background and real-time processing
EEG signal background and real-time processing
 
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
 
Brain gate system
Brain gate systemBrain gate system
Brain gate system
 
Faculty of med cu 1 feb 2017
Faculty of med cu 1 feb 2017Faculty of med cu 1 feb 2017
Faculty of med cu 1 feb 2017
 
Dealing with Academic Rejection 25 Feb 2017
Dealing with Academic Rejection 25 Feb 2017Dealing with Academic Rejection 25 Feb 2017
Dealing with Academic Rejection 25 Feb 2017
 
Feature Extraction Techniques and Classification Algorithms for EEG Signals t...
Feature Extraction Techniques and Classification Algorithms for EEG Signals t...Feature Extraction Techniques and Classification Algorithms for EEG Signals t...
Feature Extraction Techniques and Classification Algorithms for EEG Signals t...
 
Hybrid neural networks for time series learning by Tian Guo, EPFL, Switzerland
Hybrid neural networks for time series learning by Tian Guo,  EPFL, SwitzerlandHybrid neural networks for time series learning by Tian Guo,  EPFL, Switzerland
Hybrid neural networks for time series learning by Tian Guo, EPFL, Switzerland
 
Healthcare Monitoring Using Wireless Sensor Networks
Healthcare Monitoring Using Wireless Sensor NetworksHealthcare Monitoring Using Wireless Sensor Networks
Healthcare Monitoring Using Wireless Sensor Networks
 
Introduction to Brain Computer Interface
Introduction to Brain Computer InterfaceIntroduction to Brain Computer Interface
Introduction to Brain Computer Interface
 
Ffeature extraction of epilepsy eeg using discrete wavelet transform
Ffeature extraction of epilepsy eeg  using discrete wavelet transformFfeature extraction of epilepsy eeg  using discrete wavelet transform
Ffeature extraction of epilepsy eeg using discrete wavelet transform
 
Wireless Body Area Network (WBAN)
Wireless Body Area Network (WBAN)Wireless Body Area Network (WBAN)
Wireless Body Area Network (WBAN)
 
Scientific research group in Egypt members 2017
Scientific research group in Egypt members 2017Scientific research group in Egypt members 2017
Scientific research group in Egypt members 2017
 

Similar to Classification of EEG Signals for Brain-Computer Interface

ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...
ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...
ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...sipij
 
Smart Brain Wave Sensor for Paralyzed- A Real Time Implementation
Smart Brain Wave Sensor for Paralyzed- A Real Time ImplementationSmart Brain Wave Sensor for Paralyzed- A Real Time Implementation
Smart Brain Wave Sensor for Paralyzed- A Real Time ImplementationSiraj Ahmed
 
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015Mustafa AL-Timemmie
 
INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...
INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...
INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...sipij
 
CLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORK
CLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORKCLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORK
CLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORKcscpconf
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
Modelling and Analysis of EEG Signals Based on Real Time Control for Wheel Chair
Modelling and Analysis of EEG Signals Based on Real Time Control for Wheel ChairModelling and Analysis of EEG Signals Based on Real Time Control for Wheel Chair
Modelling and Analysis of EEG Signals Based on Real Time Control for Wheel ChairIJTET Journal
 
Computational neuropharmacology drug designing
Computational neuropharmacology drug designingComputational neuropharmacology drug designing
Computational neuropharmacology drug designingRevathi Boyina
 
Distinguishing Cognitive Tasks Using Statistical Analysis Techniques
Distinguishing Cognitive Tasks Using Statistical Analysis TechniquesDistinguishing Cognitive Tasks Using Statistical Analysis Techniques
Distinguishing Cognitive Tasks Using Statistical Analysis TechniquesIOSR Journals
 
MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...
MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...
MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...hiij
 
Tracking times in temporal patterns embodied in intra-cortical data for cont...
Tracking times in temporal patterns embodied in  intra-cortical data for cont...Tracking times in temporal patterns embodied in  intra-cortical data for cont...
Tracking times in temporal patterns embodied in intra-cortical data for cont...IJECEIAES
 
Image Processing Technique for Brain Abnormality Detection
Image Processing Technique for Brain Abnormality DetectionImage Processing Technique for Brain Abnormality Detection
Image Processing Technique for Brain Abnormality DetectionCSCJournals
 
Wavelet-based EEG processing for computer-aided seizure detection and epileps...
Wavelet-based EEG processing for computer-aided seizure detection and epileps...Wavelet-based EEG processing for computer-aided seizure detection and epileps...
Wavelet-based EEG processing for computer-aided seizure detection and epileps...IJERA Editor
 
Structural and functional neural correlates of emotional responses to music
Structural and functional neural correlates of emotional responses to musicStructural and functional neural correlates of emotional responses to music
Structural and functional neural correlates of emotional responses to musicFacultad de Informática UCM
 
EEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIER
EEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIEREEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIER
EEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIERhiij
 

Similar to Classification of EEG Signals for Brain-Computer Interface (20)

ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...
ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...
ANALYSIS OF BRAIN COGNITIVE STATE FOR ARITHMETIC TASK AND MOTOR TASK USING EL...
 
radation2357
radation2357radation2357
radation2357
 
Smart Brain Wave Sensor for Paralyzed- A Real Time Implementation
Smart Brain Wave Sensor for Paralyzed- A Real Time ImplementationSmart Brain Wave Sensor for Paralyzed- A Real Time Implementation
Smart Brain Wave Sensor for Paralyzed- A Real Time Implementation
 
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015
 
INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...
INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...
INHIBITION AND SET-SHIFTING TASKS IN CENTRAL EXECUTIVE FUNCTION OF WORKING ME...
 
CLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORK
CLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORKCLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORK
CLASSIFICATION OF ALZHEIMER USING fMRI DATA AND BRAIN NETWORK
 
I365358
I365358I365358
I365358
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Modelling and Analysis of EEG Signals Based on Real Time Control for Wheel Chair
Modelling and Analysis of EEG Signals Based on Real Time Control for Wheel ChairModelling and Analysis of EEG Signals Based on Real Time Control for Wheel Chair
Modelling and Analysis of EEG Signals Based on Real Time Control for Wheel Chair
 
Computational neuropharmacology drug designing
Computational neuropharmacology drug designingComputational neuropharmacology drug designing
Computational neuropharmacology drug designing
 
Distinguishing Cognitive Tasks Using Statistical Analysis Techniques
Distinguishing Cognitive Tasks Using Statistical Analysis TechniquesDistinguishing Cognitive Tasks Using Statistical Analysis Techniques
Distinguishing Cognitive Tasks Using Statistical Analysis Techniques
 
MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...
MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...
MHEALTH APPLICATIONS DEVELOPED BY THE MINISTRY OF HEALTH FOR PUBLIC USERS INK...
 
Senior Thesis
Senior ThesisSenior Thesis
Senior Thesis
 
Tracking times in temporal patterns embodied in intra-cortical data for cont...
Tracking times in temporal patterns embodied in  intra-cortical data for cont...Tracking times in temporal patterns embodied in  intra-cortical data for cont...
Tracking times in temporal patterns embodied in intra-cortical data for cont...
 
Image Processing Technique for Brain Abnormality Detection
Image Processing Technique for Brain Abnormality DetectionImage Processing Technique for Brain Abnormality Detection
Image Processing Technique for Brain Abnormality Detection
 
Wavelet-based EEG processing for computer-aided seizure detection and epileps...
Wavelet-based EEG processing for computer-aided seizure detection and epileps...Wavelet-based EEG processing for computer-aided seizure detection and epileps...
Wavelet-based EEG processing for computer-aided seizure detection and epileps...
 
F1102024349
F1102024349F1102024349
F1102024349
 
Structural and functional neural correlates of emotional responses to music
Structural and functional neural correlates of emotional responses to musicStructural and functional neural correlates of emotional responses to music
Structural and functional neural correlates of emotional responses to music
 
EEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIER
EEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIEREEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIER
EEG SIGNAL CLASSIFICATION USING LDA AND MLP CLASSIFIER
 
UNIT 5.ppt
UNIT 5.pptUNIT 5.ppt
UNIT 5.ppt
 

Recently uploaded

Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Types of different blotting techniques.pptx
Types of different blotting techniques.pptxTypes of different blotting techniques.pptx
Types of different blotting techniques.pptxkhadijarafiq2012
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxAleenaTreesaSaji
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
Caco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionCaco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionPriyansha Singh
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfmuntazimhurra
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...anilsa9823
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
A relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfA relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfnehabiju2046
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksSérgio Sacani
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxAArockiyaNisha
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxpradhanghanshyam7136
 

Recently uploaded (20)

CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Mayapuri Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Types of different blotting techniques.pptx
Types of different blotting techniques.pptxTypes of different blotting techniques.pptx
Types of different blotting techniques.pptx
 
GFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptxGFP in rDNA Technology (Biotechnology).pptx
GFP in rDNA Technology (Biotechnology).pptx
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Caco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorptionCaco-2 cell permeability assay for drug absorption
Caco-2 cell permeability assay for drug absorption
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
A relative description on Sonoporation.pdf
A relative description on Sonoporation.pdfA relative description on Sonoporation.pdf
A relative description on Sonoporation.pdf
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
Cultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptxCultivation of KODO MILLET . made by Ghanshyam pptx
Cultivation of KODO MILLET . made by Ghanshyam pptx
 

Classification of EEG Signals for Brain-Computer Interface

  • 1. Classification of EEG Signals for Brain-Computer Interface www.azoft.com Software Development
  • 2. Software Development Introduction One of the current issues in medical science today is the classification of signals recorded from the brain via electroencephalography (EEG, which is an electrophysiological monitoring method to record electrical activity of the brain). Classification of cerebral cortex signals makes it possible to diagnose various neurological diseases (i.e. epilepsy), as well as create a brain-computer interface for managing robotic devices, including prosthetics for physically disabled patients. Azoft R&D team, together with Sergey Alyamkin and Expasoft, decided to research the topic of building a brain-computer interface and participated in the «Grasp-and-Lift EEG Detection» competition organized by Kaggle. According to competition rules, participants were given 2 months to identify and classify various movements of the right hand with the lowest error rate using EEG. The Project Task To develop a model which helps classify various right-hand movements using EEG. The Project Plan 1. Studying the Biological Aspects of the Project 2. Data Pre-processing 3. Identification of Brain Signal Appearance 4. Choosing an Appropriate Machine Learning Algorithm 5. Comparing Received Models and Sending the Best Result
  • 3. Implementation Studying Biological Aspects of the Project The human brain serves as the center of the nervous system and can be divided into several levels (Image 1), each of which has its own functions: 1st level — the cortex — responsible for managing sensory and motor functions, as well as handling complex cognitive processes. 2nd level — basal ganglia — responsible for managing consensual movements and regulating muscle tone. 3rd level — hippocampus, hypophysis, hypothalamus, callosal gyrus, corpus amygdaloideum - mainly responsible for managing emotional reactions and states, and endocrine regulation. 4th level (the lowest) — reticular formation and other structures of brain stem — responsible for managing vegetative processes. [1] Software Development Image 1. The general structure of the brain.
  • 4. Software Development The image above illustrates the following brain structures: 1) cortex; 2) thalamus; 3) corpus callosum; 4) optic nerve; 5) eye; 6) amygdaloid body; 7) hypothalamus; 8) hypophysis; 9) hippocampus; 10) pons; 11) cerebellum; 12) spinal medulla; 13) medulla oblongata; 14) reticular formation. As for the anatomic structure, the brain consists of two hemispheres — right and left. Each hemisphere includes five lobes of cerebrum (Image 2): 1. frontal lobe; 2. parietal lobe; 3. occipital lobe; 4. temporal lobe; 5. insular lobe, insula. Image 2. The lobes of cerebrum All the data (anatomical, physiological, and clinical) proves that the cerebral cortex plays a leading role in the cerebral organization of physical processes. The cerebral cortex is most differentiated by structure and function areas of the brain. The cerebral cortex is divided into the following elements: • Paleocortex • Archicortex • Mesocortex • Neocortex
  • 5. Software Development The neocortex of the human brain is most structurally complex - it takes up 96% of all the hemispherical surface. For this reason, we will primarily look at this new part of the brain. All neocortex areas are constructed uniformly. The most typical for a human is the new six-layered cortex (Image 3), although the layer number is different in various brain parts. Layers differ from each other in their thickness, neuron structure, and arrangement. The cerebral cortex is heterogeneous and even in one hemisphere has different cell compositions (Image 3). It helps to identify cytoarchitectonic areas of the cortex - the similarly organized centers. Сytoarchitectonics is a study that looks at properties of various cerebral cortex structures, focusing primarily on cellular composition. In particular, cytoarchitectonics studies distinctive features of various cortex formations and their general cell structure characteristics: size and shape of cell elements, their layer distribution, their location density throughout the whole cortex cross-section and in certain layers, their division to the sublayers, the presence of certain cell forms in various layers, as well as cell distribution in vertical direction. Image 3. The scheme of neuro and cytoarchitectonic structure of several cortex zones The borders of cytoarchitectonic areas coincide with functionally specific neocortex areas, which are responsible for various sense organs. Different
  • 6. Software Development studies have been conducted to broaden our knowledge about the human brain’s functional areas, for example via direct cortex stimulation by microelectrodes, positron emission tomography, or other methods using comparison of local destructions of cortex areas with observable behavior fluctuations. [2] Let’s consider sensorimotor centers of the cerebral cortex in detail. Image 4: Sensorimotor centers of the cerebral cortex of the human brain (according to scientific studies) As shown in the image above, the sensorimotor centers of the human brain are: 1) root of the tongue; 2) larynx; 3) palate; 4) lower jaw; 5) tongue; 6) lower part of the face; 7) upper part of the face; 8) neck; 9) fingers; 10) hand; 11) arm from shoulder to wrist; 12) shoulder; 13) shoulder blade; 14) chest; 15) abdomen; 16) lower leg; 17) knee; 18) thigh; 19) toes; 20) the big toe; 21) four toes; 22) foot; 23) face; 24) pharynx. As shown in the image above, the motor area of the cortex is located between the blue and red lines, whereas the sensorimotor area is between the red and green lines. [3] Finally, we learned that the main brain activity associated with hand movement is in the range from 7 to 30 Hz.
  • 7. Software Development Data Preprocessing Filtering The main objects of the study in the EEG signal were eye movement, the movement of the electrodes, the contraction of muscles of the head and the heart, and 50-60Hz network interference. Compared to useful signals, interference caused by movement of eyes, muscles, and electrodes, are arranged at lower frequencies (from 0.1 Hz to 6 Hz). Therefore, we decided to use a bandpass filter with the bandwidth of 7 to 30 Hz. According to the competition, the developed system should be causal. In other words, you cannot take data from the future in the specific moment of classification. In addition, following the competition rules, the signal classification will be precise if it enters the interval ±150 milliseconds, which equals to ±75 samplings. From there the maximal order of the bandpass filter might be 75*2 = 150. It is important to note that the digital filtering contributed the least distortion in the signal, so we chose a filter with the finite impulse response. In addition, we used a Kaiser window with beta = 1 for eliminating the Gibbs effect. Image 5: Amplitude frequency response and phase response characteristics of the derived filter
  • 8. Software Development Image 6: Group delay of the derived filter As is seen from the derived amplitude-response (blue color) and dynamic-response (red color) characteristics (Image 5), frequencies that are lower than 7 and higher than 30 strain out, and the phase response characteristic is linear. Also, the group delay of the filter equals 75 (Image 6) across the whole frequency line, which satisfies our initial requirements of the filter. Downsampling As for decimation, which is the process of reducing the sampling rate of a signal, we dropped it from 500 to 62.5 Hz. Since the maximum useful frequency is 30 Hz, taking into consideration the Nyquist theorem, the sampling rate must be greater than 60 Hz. During downsampling a bandpass filter with the bandwidth of 7 to 30 Hz helps to avoid aliasing. Identification of Brain Signal Appearance We used several different approaches to identify typical signs of brain signals for classifications applicable to machine learning. This was necessary in order to reduce the amount of input data, exclude redundant information, and increase the accuracy of brain signal classification. The testing methods included principal component analysis, electrode selection from the biological viewpoint, and wavelet transform. First of all, we decided to try one of the most popular methods of identifying typical signs - principal component analysis.
  • 9. Software Development Principal Component Analysis Principal component analysis has the following main idea related to the project task: the same signal can come from the cortex to several different electrodes (Image 7). Image 7: Mixing signals on the way from the cortex to electrodes located on the head If we assume that signals are linear mixing, then the signal vector from detectors: where – column vector 32x1 – signals from detectors; – column vector 10x1 – signals from the cortex; – matrix 32x10 – unknown. We can transform this correspondence to: where – Moore-Penrose pseudoinverse. If we know a matrix , we can set to the classificator entry not the given raw data but the improved data .
  • 10. Software Development We tried to calculate a matrix using SVD (singular value decomposition). All 32 signals band together to the signal matrix X. Every signal is a matrix column. Matrix X has the size Nx32. This matrix went through a singular value decomposition , where – unitary matrixes, - diagonal matrix with all the elements being positive and sorted out in descending order. has a size Nx32, – 32x32, – 32x32. The first few matrix columns have to be the same deep signals, which appear in the brain when a patient begins to move a hand. The first few columns are the main components. Usually, artifacts are located in the last matrix columns. When we implemented data analysis with SVD, we didn’t find a correlation between signals from the first matrix columns and the moments when a patient began to move a hand. For this reason, we had to stop using principal component analysis. It was assumed that deep brain signals are mutually orthogonal in calculating compulsory matrix by means of SVD – singular value decomposition. In practice, it turned out that they were not mutually orthogonal. Besides, in the experiment we had 32 detectors, which is not enough for good SVD. It would be better to use ICA (independent component analysis) for nonorthogonal signals. Unfortunately, we ran out of time and didn’t try ICA.
  • 11. Software Development Electrode Selection From the Biological Viewpoint When choosing electrodes, our decision was based on their spatial arrangement. In the following picture, the electrodes that provided data are labeled with the numbers from 1 to 32. Image 8: Schematic illustration of electrodes on the surface of the head There is a phenomenon called hemispheric asymmetry. Along with other meanings, it implies that the left hemisphere is responsible for the right side of the body, with the right hemisphere responsible for the left side of the body. Test subjects moved their right hand, which means a signal appeared in the left hemisphere. Based on this and according to Image 4, we chose the following electrodes: FC5, FC1, T7, C3, Cz, CP5, and CP1.
  • 12. Software Development Wavelet Transform Having chosen the required electrodes, we decided to focus on wavelet transform as our key method of brain signal identification. Wavelet transform of one-dimensional signals is widespread in different areas of science - from seismic data processing to speech processing. This approach has a range of advantages compared to spectral analysis in the case of unsteady pulse signals. The choice of a specific wavelet kind and type depends primarily on analyzed signals and analysis tasks. Today there are no clear methods which could help choose the optimal wavelet for a particular task. That’s why an expert often has to decide what wavelet function to use. There is an implied principle of wavelet choice: the basic wavelet functions look has to be similar to the typical manipulated signal. Gauss wavelet was chosen as the basic function gaus2: Image 9. Gauss wavelet gaus2
  • 13. Software Development Image 10. The result of wavelet transform for the EEG signal Using this approach, we can analyze the fine structure of signals by means of their simultaneous localization based on both frequency and time. Choosing an Appropriate Machine Learning Algorithm When choosing the best machine learning algorithm for the task, we decided to apply the familiar convolutional neural networks (CNN), which are a part of deep learning algorithms. Сonvolutional Neural Networks Сonvolutional neural networks are among the most commonly used neural network types, especially for tasks that involve two-dimensional signals (i.e. images). Although, these networks can also work with regular signals.
  • 14. Software Development Image 11: The example of CNN work with a one-dimensional signal We set 32 one-dimensional signals to the CNN entry over a particular period of time. Up to some experience, we identified that 4096 samples (up to downsampling) yield the lowest error rate in the final model. Finally, we got the following model (Image 12):
  • 15. Software Development Image 12: The derived model: CL is the convolutional layer, MP is map pooling, FC is fully connected layer, FM is feature masks. The derived model enabled us to calculate the area under ROC curve, which equals 0.91983. The increase in the number of masks, convolutional layers and changes of kernel didn’t bring an improvement. The area under the ROC curve varies between ~0.88 and ~0.91. Random Forest The second experimental algorithm was the so-called “random forest”, since it is one of the most popular methods for classification today. This algorithm consists of a set of decisions trees, and each of them gets its own dataset from the total dataset. For better understanding of how the algorithm works let’s consider the example of the decision tree for an abstract task with two features (Image 13). Initially elements from two different classes are on the plane. We divide them in a way to separate one class from the other by one horizontal
  • 16. Software Development or vertical line. Next we divide the derived planes in the same way before we get the probability of dominant class higher than a certain limit or the unit depth comes to a maximum, or the element quantity becomes lower than a certain limit. Image 13: The example of the decision tree for abstract task with two features The decision tree is not a very stable and reliable algorithm. The algorithm’s high accuracy of classification and flexibility are attainable due to a set of decision trees. We ran out of time to try a combination of “wavelet transform + random forest” because wavelet transform is very time-consuming. Recurrent Neural Network Recurrent neural networks (RNN) are the neural networks with feedback connections. Biological neural networks are recurrent. They have memory. Humans, as well as animals, have memory. Feedback connections gives the network the opportunity to obtain memory. That allows it to not convey signal history to the network. Moreover,
  • 17. Software Development the memory depth to the past can be determined during learning. For the recurrent neural network, we used the raw data without removing atrifacts, because RNN does it. Therefore, the recurrent neural network has 32 entries. We ran multiple experiments with the recurrent neural network, tested various architectures and delays in feedback connections. The network didn’t learn. There was a problem with memory – we could not create a complex network with more than two layers. Then we came to the conclusion that we need to try a special type of neural network – LSTM (long short term memory). LSTM has inside specific memory units, which are made on the base of controlled backlink with a coefficient of 1. Image 14. Memory unit of the LSTM recurrent neural network The decision of whether to turn the backlink on or off is the responsibility of the other neural network part. Turning off the backlink leads to erasing information in the memory core. Thus, the network decides when to remember, use or forget the information. Nevertheless, the complexity of the LSTM algorithm requires deeper investigation than it was possible under the competition circumstances. For these reasons, we decided to stop at the current stage, without obtaining LSTM testing results.
  • 18. Software Development Conclusion Finally, our R&D team was able to obtain high quality classification of EEG signals during the process of hand movements. Thanks to the quality parameter “area under ROC curve”, which was derived as a result of using convolutional neural networks, we verified that deep learning algorithms are effective in various types of signal classification. Therefore, we can conclude that convolutional neural networks are one of the greatest deep learning methods for the development of brain-computer interfaces. In simple words, show us your EEG signals and we’ll figure out what you were doing at the moment of the EEG recording. Literature [1] Homskaya E.D. Neiropsychologiya [Neuropsychology]. St. Petersburg, Piter, 2005. 496 p. (in Russian) [2] Kuo C-C, Luu P, Morgan KK, Dow M, Davey C, et al. Localizing Movement-Related Primary Sensorimotor Cortices with Multi-Band EEG Frequency Changes and Functional MRI (2014). Available at: http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0112103 (Accessed 3 October 2015) [3] Saveliev S.V. Vozniknovenie mozga cheloveka [The emergence of the human brain]. Moscow, Vedi, 2010. 324 p. (in Russian) [4] H. P. Martinez, Y. Bengio, G. N. Yannakakis Learning deep physiological models of affect. Computational Intelligence Magazine, IEEE, Vol. 8, No. 2. (May 2013), pp. 20-33. Available at: http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6496209 (Accessed 4 October 2015) [5] Model Random Forest dlya classificacii, realizaciya na c# (The Random Forest model for classification, c# implementation). Available at: https://habrahabr.ru/post/215453/ (Accessed 7 October 2015)