SlideShare a Scribd company logo
1 of 123
Analyses of EEG data
Theory and Practice
Rachele Pezzetta & Quentin Moreau
AgliotiLab
Quentin Moreau, PhD
Summary
Part I. History, Recording, Preparing an EEG experiment
Part II. Preprocessing Theory and Good Practice
Part III. Hands-On session with FT, Preprocessing Pipeline and ERP
Part IV. Time-Frequency Theory and Good Practice
Part V. Hands-On session with FT – TFs
Part VI. Source Analysis, Theory and Hands On
Part VII. Connectivity analysis, Theory and Hands On
Part I.
Hands-On example (Quentin)
History
Preparing an EEG experiment
Recording
Neurophysiological basis of EEG
https://www.slideshare.net/kj_jantzen/biophysical-basis-of-eeg
EEG: Pros and Cons
Baig et al. 2019
In Cognitive Neuroscience,
EEG together with MEG is
the non invasive
technique with the highest
temporal resolution.
But its spatial resolution is
poor and the activity
recorded is only cortical.
How to record EEG
Recording EEG data
Computer recording
EEG
Computer delivering
stimuli
The two computers are synchronized through a wire that sends triggers
from computer that delivers the stimuli to the computer that records the
EEG. Thus, we may know when events occurred during the EEG
recording.
EEG montage
- 16, 32, 64, 128, 256, 512 electrodes… They all belong to the same
International System 10-20
- This system ensures consistent placement (independent of the head
size) and naming of the electrodes
- The "10" and "20" refer to the fact that the actual distances between
adjacent electrodes are either 10% or 20% of the total front–back or
right–left distance of the skull.
Ground Electrode
The ground is used for “common mode” rejection. The
primary purpose of the ground is to prevent power line
noise from interfering with the small biopotential signals
of interest for cancelling out the electrical noise in the
system. A ground electrode for EEG recordings is often
placed on the forehead (but could be placed anywhere
else on the body).
Reference Electrode(s)
Voltage is always measured as a difference from two
sites. In EEG, signal from electrodes over the scalp is
always the result of a difference in potential with
another electrode. The most common placement of EEG
electrodes are mastoids or earlobes, but it could also be
the nose
Dirty EEG raw data
A HAPPY participant!
Mounting the EEG cap
EEG History
Hans Berger (1873-1941) is the father of EEG
Discovery of alpha waves
Having good EEG signal
When using passive EEG system, the key factor
is having a good contact between the scalp
and the electrode
Recent EEG systems have measures of
impedence (the highest the value, the worst
the signal)
Using gel, niddles and scrubbing, the
experimenter lowers the impedance of each
electrodes (ideally below 10 KOhms)
=> Main goal: Reduce NOISE
Having good EEG signal
Other sources of noise in EEG signal:
- Electronic noise (50 Hz – or 60 in the US)
Having good EEG signal
Other sources of noise in EEG signal:
- Muscular Artifacts
Having good EEG signal
Other sources of noise in EEG signal:
- Sweat Artifacts
Having good EEG signal
Other sources of noise in EEG signal:
- Eye Artifacts
Alpha Waves during recording
Important Point !
- Most artifacts can be removed by various tools and data
processing (be patient)
HOWEVER!
‘There is no substitute to good
data‘
Jon Hansen
A must-read
Stephen J. Luck
An Introduction to the Event-Related
Potential Technique
Preparing an EEG experiment
Previous literature
Define your hypothesis based on previous literature (including MEG
papers)
i.e. In the example of face processing, the most famous ERP is the N170
EEG experiment tips
‘Keep subjects happy’:
● Make sure they are relaxed
● Make sure the trial blocks are not too long and include breaks (less alpha)
● Make sure that the inter-trial interval (ITI) is long enough (1-3 seconds)
and ask subjects to blink during those to avoid artifacts during the time of
interest
Select the number of trials for each condition
Boudewyn et al., 2017
Select number of subjects
● Power Analysis in EEG is still at its
early days
● Power depends on several factor,
including signal-to-noise ratio (N
trials), the type of marker you are
targeting…
● A minimum requirement seems to
be at least 20 subjects
Have theoritical final plots in mind
A recommended step before even recording is to have a clear series
of final plots and analysis in your head, so that you will design your
pipeline accordingly
Analysis
Pipeline
Analysis software
EEG/MEG analyses:
● EEGLAB (Matlab)
● Brainstorm (Matlab)
● Fieldtrip (Matlab)
● Brainvision Analyzer (gui)
● MNE Python
Machine learning:
● CoSMoMVPA (decoding, Matlab)
● the Neural Decoding Toolbox (decoding, Matlab)
● MVPA-Light (decoding, Matlab - compatible with Fieldtrip)
● the ADAM Toolbox (decoding, Matlab)
● The PyMVPA Toolbox (decoding, Python)
Part II.
Preprocessing Theory and Good Practice
Preprocessing
- EEG data is not directly informative. It needs many steps
to arrive to the final output of interest
- Activity caused by your stimulus is ‘hidden’ within
continuous EEG stream
- The asumption in ERP analysis is that everything that is
not linked to your event (stimulus-locked) is noise and is
assumed to be random
- A universal pipeline does not exist
Some restricted choices to be made; A lot of consistent
literature; Choices easy to justify;
More advanced choices; slightly more recent literature;
mild risks of misinterpretation; choices relatively easy to
justify
Crucial choices to be made; recent literature not always
consistent; higher risks of misinterpreting; harder
justifications; reviewers opinions might differ from
yours;
Risky analysis; literature is very recent; requires coding-
only analysis; have to be interpreted with care;
Researchers Degrees of Freedom
EEG Preprocessing
Downsampling & Filtering
Re-reference
ICA
Segmentation
Visual Artifact rejection
Continuous data
Segmented data
Preprocessed Data Matrix
Resampling/Downsampling
- EEG signal is recorded at 1000 Hz (in our lab) => 1 data point/ms
- Reducing the sampling rate reduce file size (and therefore processing
time)
- Nyquist frequency: the sampling frequency needs to be greater than
twice the maximum frequency of the signal you want to look at
e.g. with a sampling rate of 500 Hz, the maximal frequency that you can
analyze in the data is 250 Hz
Filtering
- Filters affect your data but are a necessary evil!
- They can create time and phase shifts
- Three main classes of filters:
• IIR infinite impulse response (e.g. Butterworth)
filters the data in both directions,
avoiding any phase shift
• FII finite impulse response
very efficient but…
can produce artificial oscillations in the
filtered data
• Notch filters
attenuates one narrow range of
frequencies and passes everything else
Filtering
If you don’t know what you are doing:
⇒ Butterworth filter:
High-pass: 0.5 Hz or lower
Low-pass: 30 Hz or higher for ERPs
No low-pass + notch filter at 50 Hz for Time-Frequencies
Low-pass filtering attenuates higher
frequencies (e.g. muscles)
High-pass filtering attenuates slow
frequencies (e.g. sweat)
Re-referencing
● If your reference online was the right earlobe (or mastoid), the re-
referencing offline to the average of both righ and left ealobes is
necessary to avoid any lateralization bias
● Another option is the average referencing, meaning that the average of all
the electrodes is flat, and that their activity is relative to all the others
Independent Component Analysis
ICA CAN IMPROVE SIGNAL – EFFECTIVELY DETECT, SEPARATE AND REMOVE ACTIVITY IN
EEG RECORDS FROM A WIDE VARIETY OF ARTIFACTUAL SOURCES. (JUNG, MAKEIG, BELL,
AND SEJNOWSKI) ● ICA extracts from
signal independent
activity
● In preprocessing, this
is useful to remove
non-brain activity
(mostly eye related
artefacts)
Independent Component Analysis
ICA CAN IMPROVE SIGNAL – EFFECTIVELY DETECT, SEPARATE AND REMOVE ACTIVITY IN
EEG RECORDS FROM A WIDE VARIETY OF ARTIFACTUAL SOURCES. (JUNG, MAKEIG, BELL,
AND SEJNOWSKI)
The resulting ICs are
ordered by the amount of
variance they account for
Tip: Eyes artifact are usually
present in the first 10 ICs
Independent Component Analysis
ICA CAN IMPROVE SIGNAL – EFFECTIVELY DETECT, SEPARATE AND REMOVE ACTIVITY IN
EEG RECORDS FROM A WIDE VARIETY OF ARTIFACTUAL SOURCES. (JUNG, MAKEIG, BELL,
AND SEJNOWSKI)
Blinks
Saccades
Preprocessed continuous data
EEG Preprocessing
Downsampling & Filtering
Re-reference
ICA
Segmentation
Visual Artifact rejection
Continuous data
Segmented data
Preprocessed Data Matrix
Segmention/Epoching
Create longer epochs! Even
if it includes data you are
not interested in !
Baseline correction
Baseline correction consists in removing average activity pre-stimulus (usually
-200ms 0) to post-stimulus data in order to remove slow drifts and have all
trials at the same voltage before avering
Make sure that your baseline period is not contaminated by artifacts !
Visual artifact rejection
● Necessary step to make sure that no artifact remains in your data
set
● This involves checking trials for residuals artifacts (all of them) and
remove problematic trials
● Some tools are here to help you:
-Semi-automatic artifact detection (Brain Vision Analyzer)
-Automatic artifact rejection (MNE-Python & Fieldtrip) -
CAREFULL
Event-related potentials (ERPs)
ERPs representations
● Single plot
(1 electrode or pool of electrodes)
● Topographical plot (average
voltage over a time window)
● Butterfly plot
(all electrodes in time)
Example 1: the N170
The N170 is one of the component that reflects the neural processing
of faces. This response is maximal over occipito-temporal electrode
sites (P8-PO8-PO7-P7), which is consistent with a source located at the
FFA (Fusiform Face Area)
Example 2: the Error Related Negativity
An ERN component is observed after errors are committed during
various choice tasks, and its maximum amplitude usually is observed
over FCz-Cz (Matching location with the Anterior Cingulate Cortex).
Reflection of the activity of the Monitoring System (i.e;performance)
Reversed negativity
Part III.
Hands-On session with Fieldtrip
Preprocessing Pipeline
ERP computation
Hands-on example
Fieldtrip
● FieldTrip is a MATLAB toolbox that contains a set of separate (high-level)
functions, it does not have a graphical user interface.
● Tutorials, Walkthrough and mailing list
● Fieldtrip allows you to do everything from preprocessing to statistics
● It simplifies your analysis by creating struct matrices with all necessary
info imbedded in submatrices
● The grammar is simplified
● Function are written as ft_XXXXX and need specific configurations -cfg-
Paragraphs are written:
cfg = [ ];
cfg.XXX = Y;
ft_XXX(cfg, data)
Hands-on example
This dataset comes from a visual experiment, where subjects had a look at a
screen where hands were presented
Three type of stimuli were presented: 1) Still Hands, 2) Grasping Hands and
3) Shaking Hands.
Hands-on example
- The hypothesis is that Hands with a social meaning would generate specific
activity over Lateral-Occipito-Temporal site compared to the other conditions.
- We know that the N190 is modulated by the presence of body and body parts
- and that the EPN (early posterior negativity) is modulated by emotions
Hands-on example
And in the Frequency domain, we know that
● Theta power (4-7 Hz) increases during the presence
of hands
● Theta is able to distinguish between hand-actions
Hands-on
Hands-on
Hands-on
Hands-on
Saccades
Blinks
Hands-on
Exercice:
Try to use a larger band-pass filter and a notch filter
help ft_preprocessing in your command window
Hands-on
Hands-on
Part IV.
Time-Frequency Theory and Good Practice (Rachele)
Time-Frequency Theory and Good Practice
Another must-read
Why look at data in another way ?
• Time domain analysis: when do things (amplitudes) happen?
Treats peaks as single events.
• Interest in time-frequency analysis is gaining momentum as it
allows us to study neural oscillation over the scalp and potential
interactions between neuronal groups.
• Time-Frequency analysis gives access to richer and more complex
signals, allowing for example connectivity analysis.
Neural oscillations
● Oscillations arise from an interaction between the intrinsic properties
of neurons (excitability) and their interconnectivity, giving rise to
synchronous activity (Buzsáki and Draguhn, 2004)
Brain waves
Brain oscillations have been
classified in different bands
based on their frequency
Anatomy of an Oscillation
Fourier Transform – what is the Frequency Domain
● Fourier analysis converts a signal from its original domain
(here time) to a representation in the frequency domain
Deconstructing a time domain signal (ERP) to its oscillatory component
From time domain to frequency domain
Going from the time domain to the
frequency domain through Fourier
transform
Time-frequency domain
Fourier transform can be used to obtain a frequency-domain
representation of the EEG data.
Two limitations of the Fourier transform :
- no time resolution
- EEG data violate the stationarity assumption of Fourier analysis
To extract time-frequency information, several techniques have been
used and they all come with pros and cons
Morlet Wavelets
Wavelets work like a band-pass
filter: they extract information at
a frequency and move on the
next
Parameters involve a definition
of the ‘Mother Wavelet’ and the
decomposition with the help of
the Wavelet family
Morlet Wavelets
It is assumed that wavelets provide good temporal resolution, but
when looking at the entire spectrum, the choice of the mother
wavelet affects the frequency resolution
Short-term Fourier Transform (STFT)
Computation of Fourier transform with a fixed time-window that slides
along the time series in order to characterize power changes over time
and frequencies
Limits: a fixed time-window affects
temporal resolution
Tapering methods to limit
spectral leakage
Hanning or multitapering
Time-Frequency Analysis
Just like with ERPs, we want to look at how the power spectrum is
affected by an event.
1/f noise
Whole Power Spectra
Time-Frequency Analysis – Baseline Correction
Event Related Desynchronization / Event Related Synchronization
ERD/ERS
Examples Theta Synchronization (4-7 Hz)
Alpha
Desynchronization
(8-13 Hz)
Phase-locked/Time-locked
One advantage of TFs over ERPs that both Phase locked and Non-Phase
locked activity can be observed
Whole, Evoked and Induced Power
Intertrial Phase Coherence
Mike X Cohen
“The term is an interpretation of a presumed
mechanism — oscillations become “ locked ”
to an external event or to the phase values of
another electrode — but the
neurophysiological mechanisms underlying
phase locking are less clear. Thus, ITPC is a
succinct description of the analysis, which is
that phase values become clustered over
trials.”
Cross Frequency Coupling
Cross Frequency Coupling
The most famous cross frequency
measure is the Phase-Amplitude
coupling (PAC) that highlight the
relation between the phase low
frequencies and the amplitude of
higher frequencies
This rule has been recently shown
to also govern the temporal
organization of spontaneous large-
scale brain activity in humans
(Osipova et al., 2008, Roux et al.,
2013, Florin and Baillet, 2015,
Weaver et al., 2016)
Part V.
Hands-On session with FT - TFs (Quentin)
Hands-On session with FT - TFs
Wavelet vs STFT
Hands-On TFs
Hands-On TFs
Part VI.
Hands-On session with FT - TFs (Quentin)
Source Analysis, Theory and Hands On
Source localization in EEG
Superposition of source activity
Volume conduction problem
Forward solution & Inverse Problem
Physiological
source
Body Tissue
Volume
Conductor
Scalp
distribution
Forward Model
Inverse Model
Source localization solution(s)
The inverse problem is the best answer to the question: Given my observed
pattern of topographical activity, what are the most likely location(s),
orientation(s), and magnitude(s) of brain source(s) that could have produced
this topographical pattern of activity?
Different inverse methods exists:
- Dipole fitting (e.g. BESA)
-> Assume a small number of sources // Where are the strongest sources ?
- Distributed dipole models (e.g. Low resolution electrical tomography
(LORETA))
-> Assume activity is everywhere and target what is the distrubtion of the
activity all over the brain
- Spatial Filtering (e.g. Beamforming)
-> Scanning method that target the likelihood of a given location
Source localization solution(s)
Data Model
(constant)
Inverse models
Dynamic imaging of coherent sources (DICS) -
Beamforming
● Baseline contrast (similar to ERD/ERS)
● Identify Time-Frequency Activity of interest (e.g. Theta band 0-500 ms)
● You need a volume conduction model (based on a MRI)
● With beamformers, you estimate source activity with a spatial filter
● You divide your volume model in a grid and you scan the grid location by
location
Hands On
Hands On
Hands On
Hands On
Hands On
Part VII.
Hands-On session with FT - TFs (Quentin)
Connectivity analysis, Theory and Good
Practice
Connectivity
● So far, we have looked at univariate analysis at the channel level or the
source level
● Connectivity goes beyond univariate (i.e. multivariate) to target how brain
regions interact together
● Effective Connectivity & Functional Connectivity
● Functional refers to a statistical inference of communication between two
signals
● Effective connectivity refers to causal relationship between two signals
● Model based connectivity (DCM) is based on a priori knowledge of brain
areas involved in a given task
● Data driven connectivity generates connectivity matrices
Connectivity
Coherence Coefficient
Phase Locking Value
Imaginary
part of
coherence
Phase Slope
Index
Phase Synchronization
Phase Lag
Index
Connectivity
Connectivity
● So far we have focused on the Amplitude (Power), but with Fourier
transform you can extract complex values that have both info on
Amplitude and Phase
● Signal in the complex domain is represented as
X = Aeiφ
● Connectivity measures (like coherence coeficient) focus on the phase
values of two signals
Connectivity
ROI identification
Virtual Sensor Extraction
Fronto-
Central
Right-LOTC
Time (s)
Amplitude
(uV)
Phase-Locking Value between the two ROIs
Frequency
30
2
30
2
Frequency
30
2
30
2
0 0.5
Time (s)
0 0.4
0.2
0 0.5
Time (s)
0 0.5
Time (s)
0 0.5
Time (s)
Cued-Correction
Interactive-Correction
Cued-NoCorrection
Interactive-NoCorrection
0.2
0
PLV
0.2
0
PLV
0.2
0
PLV
0.2
0
PLV
Hands On
Are PO7 and FC4 in phase ?
Hands On
Hands On
Part VIII.
Hands-On session with FT - TFs (Quentin)
MVPA in the Time-Domain, Theory, Good
Practice and Hands-On
Rationale
ERPs highlight higher activation during
perceptive tasks
Rationale
Rather than examine activation between
conditions, MVPA examines differences in
distributed patterns of brain activity
Therefore with EEG, we can track the time-course
of object representation and how different
objects differ in their processing, using single
trials
Multivariate Pattern Analysis (MVPA)
K-fold
Goal: Classify single trials according to the stimulus
presented
Two sets of data:
- ERP information 5-fold cross validation
The dataset is divided in 5
subsets
Training phase (all-but-
one)
The classifier practices in a
supervised way on 4 subsets
=> Feature selection
Test phase
The classifier tries to
predicts the category on the
remaining subset
Classifier performance
Statistically estimated using
binomial testing against
chance level (50%)
MVPA
Temporal Decoding
Temporal Decoding - Question?
0-50 ms: low-level features
50-250 ms: categorisation
Can Sociability be a factor of
early classification in the
brain ?
Hands On
Hands On
Hands On
Hands On
Hands On
What I did not talk about
● Statistics: Cluster based Analysis

More Related Content

What's hot

EEG basic to practice 1
EEG basic to practice 1EEG basic to practice 1
EEG basic to practice 1Mohamed Mahdy
 
Magnetoencephalogram-MEG
Magnetoencephalogram-MEGMagnetoencephalogram-MEG
Magnetoencephalogram-MEGSimmiRockzz
 
EEG Signal processing
EEG Signal processing EEG Signal processing
EEG Signal processing DikshaKalra9
 
Magnetoencephalography
MagnetoencephalographyMagnetoencephalography
MagnetoencephalographyNeurologyKota
 
Electrocorticography
ElectrocorticographyElectrocorticography
ElectrocorticographyLalit Bansal
 
Biophysical Basis of EEG
Biophysical Basis of EEGBiophysical Basis of EEG
Biophysical Basis of EEGkj_jantzen
 
Artifact removal from ambulatory eeg
Artifact removal from ambulatory eegArtifact removal from ambulatory eeg
Artifact removal from ambulatory eegMd Kafiul Islam
 
EEG Artifacts
EEG ArtifactsEEG Artifacts
EEG ArtifactsDGIST
 
SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...
SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...
SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...BharathSrinivasG
 
Normal EEG patterns, frequencies, as well as patterns that may simulate disease
Normal EEG patterns, frequencies, as well as patterns that may simulate diseaseNormal EEG patterns, frequencies, as well as patterns that may simulate disease
Normal EEG patterns, frequencies, as well as patterns that may simulate diseaseRahul Kumar
 
EEG - Montages, Equipment and Basic Physics
EEG - Montages, Equipment and Basic PhysicsEEG - Montages, Equipment and Basic Physics
EEG - Montages, Equipment and Basic PhysicsRahul Kumar
 

What's hot (20)

Artifacts in EEG.pptx
Artifacts in EEG.pptxArtifacts in EEG.pptx
Artifacts in EEG.pptx
 
EEG basic to practice 1
EEG basic to practice 1EEG basic to practice 1
EEG basic to practice 1
 
EEG artifacts
EEG artifactsEEG artifacts
EEG artifacts
 
Magnetoencephalogram-MEG
Magnetoencephalogram-MEGMagnetoencephalogram-MEG
Magnetoencephalogram-MEG
 
EEG Signal processing
EEG Signal processing EEG Signal processing
EEG Signal processing
 
Magnetoencephalography
MagnetoencephalographyMagnetoencephalography
Magnetoencephalography
 
Electrocorticography
ElectrocorticographyElectrocorticography
Electrocorticography
 
Biophysical Basis of EEG
Biophysical Basis of EEGBiophysical Basis of EEG
Biophysical Basis of EEG
 
Eeg artifacts
Eeg artifactsEeg artifacts
Eeg artifacts
 
Eeg seminar
Eeg seminarEeg seminar
Eeg seminar
 
EEG artifacts
EEG  artifactsEEG  artifacts
EEG artifacts
 
Artifact removal from ambulatory eeg
Artifact removal from ambulatory eegArtifact removal from ambulatory eeg
Artifact removal from ambulatory eeg
 
EEG Artifacts
EEG ArtifactsEEG Artifacts
EEG Artifacts
 
Basics of eeg signal
Basics of eeg signalBasics of eeg signal
Basics of eeg signal
 
SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...
SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...
SUMSEM-2021-22_ECE6007_ETH_VL2021220701295_Reference_Material_I_04-07-2022_EE...
 
ARTIFACTS IN EEG.pptx
ARTIFACTS IN EEG.pptxARTIFACTS IN EEG.pptx
ARTIFACTS IN EEG.pptx
 
EEG ppt
EEG pptEEG ppt
EEG ppt
 
Normal EEG patterns, frequencies, as well as patterns that may simulate disease
Normal EEG patterns, frequencies, as well as patterns that may simulate diseaseNormal EEG patterns, frequencies, as well as patterns that may simulate disease
Normal EEG patterns, frequencies, as well as patterns that may simulate disease
 
EEG: Basics
EEG: BasicsEEG: Basics
EEG: Basics
 
EEG - Montages, Equipment and Basic Physics
EEG - Montages, Equipment and Basic PhysicsEEG - Montages, Equipment and Basic Physics
EEG - Montages, Equipment and Basic Physics
 

Similar to EEG course.pptx

Denoising of EEG Signals for Analysis of Brain Disorders: A Review
Denoising of EEG Signals for Analysis of Brain Disorders: A ReviewDenoising of EEG Signals for Analysis of Brain Disorders: A Review
Denoising of EEG Signals for Analysis of Brain Disorders: A ReviewIRJET Journal
 
RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES
RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES
RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES Touradj Ebrahimi
 
Quantification and Comparison of Different Non-Linear Techniques of EEG Signals
Quantification and Comparison of Different Non-Linear Techniques of EEG SignalsQuantification and Comparison of Different Non-Linear Techniques of EEG Signals
Quantification and Comparison of Different Non-Linear Techniques of EEG SignalsIRJET Journal
 
EEG Signal Classification using Deep Neural Network
EEG Signal Classification using Deep Neural NetworkEEG Signal Classification using Deep Neural Network
EEG Signal Classification using Deep Neural NetworkIRJET Journal
 
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
 
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
 
EEG (ELECTROENCEPALOGRAM)
EEG (ELECTROENCEPALOGRAM)EEG (ELECTROENCEPALOGRAM)
EEG (ELECTROENCEPALOGRAM)ShriyaGautam3
 
Performance Comparison of Known ICA Algorithms to a Wavelet-ICA Merger
Performance Comparison of Known ICA Algorithms to a Wavelet-ICA MergerPerformance Comparison of Known ICA Algorithms to a Wavelet-ICA Merger
Performance Comparison of Known ICA Algorithms to a Wavelet-ICA MergerCSCJournals
 
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
 
The second seminar
The second seminarThe second seminar
The second seminarAhmedMahany
 
5. detection and separation of eeg artifacts using wavelet transform nov 11, ...
5. detection and separation of eeg artifacts using wavelet transform nov 11, ...5. detection and separation of eeg artifacts using wavelet transform nov 11, ...
5. detection and separation of eeg artifacts using wavelet transform nov 11, ...IAESIJEECS
 
Eeg with image - Medical Electronics - Hints for Slow Learner
Eeg with image - Medical Electronics - Hints for Slow LearnerEeg with image - Medical Electronics - Hints for Slow Learner
Eeg with image - Medical Electronics - Hints for Slow LearnerMathavan N
 
EEG S IGNAL Q UANTIFICATION B ASED ON M ODUL L EVELS
EEG S IGNAL  Q UANTIFICATION  B ASED ON M ODUL  L EVELS EEG S IGNAL  Q UANTIFICATION  B ASED ON M ODUL  L EVELS
EEG S IGNAL Q UANTIFICATION B ASED ON M ODUL L EVELS sipij
 
Review:Wavelet transform based electroencephalogram methods
Review:Wavelet transform based electroencephalogram methodsReview:Wavelet transform based electroencephalogram methods
Review:Wavelet transform based electroencephalogram methodsijtsrd
 

Similar to EEG course.pptx (20)

NeuralTechPPT.ppt
NeuralTechPPT.pptNeuralTechPPT.ppt
NeuralTechPPT.ppt
 
EEG_circut.ppt
EEG_circut.pptEEG_circut.ppt
EEG_circut.ppt
 
EEG_circuit.ppt
EEG_circuit.pptEEG_circuit.ppt
EEG_circuit.ppt
 
Denoising of EEG Signals for Analysis of Brain Disorders: A Review
Denoising of EEG Signals for Analysis of Brain Disorders: A ReviewDenoising of EEG Signals for Analysis of Brain Disorders: A Review
Denoising of EEG Signals for Analysis of Brain Disorders: A Review
 
RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES
RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES
RECENT ADVANCES IN BRAIN-COMPUTER INTERFACES
 
Spectral analysis and filtering
Spectral analysis and filteringSpectral analysis and filtering
Spectral analysis and filtering
 
Quantification and Comparison of Different Non-Linear Techniques of EEG Signals
Quantification and Comparison of Different Non-Linear Techniques of EEG SignalsQuantification and Comparison of Different Non-Linear Techniques of EEG Signals
Quantification and Comparison of Different Non-Linear Techniques of EEG Signals
 
A0510107
A0510107A0510107
A0510107
 
EEG Signal Classification using Deep Neural Network
EEG Signal Classification using Deep Neural NetworkEEG Signal Classification using Deep Neural Network
EEG Signal Classification using Deep Neural Network
 
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...
 
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
 
EEG (ELECTROENCEPALOGRAM)
EEG (ELECTROENCEPALOGRAM)EEG (ELECTROENCEPALOGRAM)
EEG (ELECTROENCEPALOGRAM)
 
Performance Comparison of Known ICA Algorithms to a Wavelet-ICA Merger
Performance Comparison of Known ICA Algorithms to a Wavelet-ICA MergerPerformance Comparison of Known ICA Algorithms to a Wavelet-ICA Merger
Performance Comparison of Known ICA Algorithms to a Wavelet-ICA Merger
 
Basics of EEG
Basics of EEGBasics of EEG
Basics of EEG
 
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...
 
The second seminar
The second seminarThe second seminar
The second seminar
 
5. detection and separation of eeg artifacts using wavelet transform nov 11, ...
5. detection and separation of eeg artifacts using wavelet transform nov 11, ...5. detection and separation of eeg artifacts using wavelet transform nov 11, ...
5. detection and separation of eeg artifacts using wavelet transform nov 11, ...
 
Eeg with image - Medical Electronics - Hints for Slow Learner
Eeg with image - Medical Electronics - Hints for Slow LearnerEeg with image - Medical Electronics - Hints for Slow Learner
Eeg with image - Medical Electronics - Hints for Slow Learner
 
EEG S IGNAL Q UANTIFICATION B ASED ON M ODUL L EVELS
EEG S IGNAL  Q UANTIFICATION  B ASED ON M ODUL  L EVELS EEG S IGNAL  Q UANTIFICATION  B ASED ON M ODUL  L EVELS
EEG S IGNAL Q UANTIFICATION B ASED ON M ODUL L EVELS
 
Review:Wavelet transform based electroencephalogram methods
Review:Wavelet transform based electroencephalogram methodsReview:Wavelet transform based electroencephalogram methods
Review:Wavelet transform based electroencephalogram methods
 

Recently uploaded

Solution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsSolution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsHajira Mahmood
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxpriyankatabhane
 
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tantaDashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tantaPraksha3
 
Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫qfactory1
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10ROLANARIBATO3
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxSwapnil Therkar
 
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxTwin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxEran Akiva Sinbar
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)DHURKADEVIBASKAR
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
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
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2John Carlo Rollon
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxFarihaAbdulRasheed
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptArshadWarsi13
 
‏‏VIRUS - 123455555555555555555555555555555555555555
‏‏VIRUS -  123455555555555555555555555555555555555555‏‏VIRUS -  123455555555555555555555555555555555555555
‏‏VIRUS - 123455555555555555555555555555555555555555kikilily0909
 

Recently uploaded (20)

Solution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutionsSolution chemistry, Moral and Normal solutions
Solution chemistry, Moral and Normal solutions
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
 
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tantaDashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
Dashanga agada a formulation of Agada tantra dealt in 3 Rd year bams agada tanta
 
Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫Manassas R - Parkside Middle School 🌎🏫
Manassas R - Parkside Middle School 🌎🏫
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10Gas_Laws_powerpoint_notes.ppt for grade 10
Gas_Laws_powerpoint_notes.ppt for grade 10
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
 
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptxTwin's paradox experiment is a meassurement of the extra dimensions.pptx
Twin's paradox experiment is a meassurement of the extra dimensions.pptx
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.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.
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2Evidences of Evolution General Biology 2
Evidences of Evolution General Biology 2
 
Engler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomyEngler and Prantl system of classification in plant taxonomy
Engler and Prantl system of classification in plant taxonomy
 
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptxRESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
RESPIRATORY ADAPTATIONS TO HYPOXIA IN HUMNAS.pptx
 
Transposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.pptTransposable elements in prokaryotes.ppt
Transposable elements in prokaryotes.ppt
 
‏‏VIRUS - 123455555555555555555555555555555555555555
‏‏VIRUS -  123455555555555555555555555555555555555555‏‏VIRUS -  123455555555555555555555555555555555555555
‏‏VIRUS - 123455555555555555555555555555555555555555
 

EEG course.pptx

  • 1. Analyses of EEG data Theory and Practice Rachele Pezzetta & Quentin Moreau AgliotiLab Quentin Moreau, PhD
  • 2. Summary Part I. History, Recording, Preparing an EEG experiment Part II. Preprocessing Theory and Good Practice Part III. Hands-On session with FT, Preprocessing Pipeline and ERP Part IV. Time-Frequency Theory and Good Practice Part V. Hands-On session with FT – TFs Part VI. Source Analysis, Theory and Hands On Part VII. Connectivity analysis, Theory and Hands On
  • 3. Part I. Hands-On example (Quentin) History Preparing an EEG experiment Recording
  • 4. Neurophysiological basis of EEG https://www.slideshare.net/kj_jantzen/biophysical-basis-of-eeg
  • 5. EEG: Pros and Cons Baig et al. 2019 In Cognitive Neuroscience, EEG together with MEG is the non invasive technique with the highest temporal resolution. But its spatial resolution is poor and the activity recorded is only cortical.
  • 7. Recording EEG data Computer recording EEG Computer delivering stimuli The two computers are synchronized through a wire that sends triggers from computer that delivers the stimuli to the computer that records the EEG. Thus, we may know when events occurred during the EEG recording.
  • 8. EEG montage - 16, 32, 64, 128, 256, 512 electrodes… They all belong to the same International System 10-20 - This system ensures consistent placement (independent of the head size) and naming of the electrodes - The "10" and "20" refer to the fact that the actual distances between adjacent electrodes are either 10% or 20% of the total front–back or right–left distance of the skull.
  • 9. Ground Electrode The ground is used for “common mode” rejection. The primary purpose of the ground is to prevent power line noise from interfering with the small biopotential signals of interest for cancelling out the electrical noise in the system. A ground electrode for EEG recordings is often placed on the forehead (but could be placed anywhere else on the body).
  • 10. Reference Electrode(s) Voltage is always measured as a difference from two sites. In EEG, signal from electrodes over the scalp is always the result of a difference in potential with another electrode. The most common placement of EEG electrodes are mastoids or earlobes, but it could also be the nose
  • 11. Dirty EEG raw data A HAPPY participant! Mounting the EEG cap
  • 12. EEG History Hans Berger (1873-1941) is the father of EEG Discovery of alpha waves
  • 13. Having good EEG signal When using passive EEG system, the key factor is having a good contact between the scalp and the electrode Recent EEG systems have measures of impedence (the highest the value, the worst the signal) Using gel, niddles and scrubbing, the experimenter lowers the impedance of each electrodes (ideally below 10 KOhms) => Main goal: Reduce NOISE
  • 14. Having good EEG signal Other sources of noise in EEG signal: - Electronic noise (50 Hz – or 60 in the US)
  • 15. Having good EEG signal Other sources of noise in EEG signal: - Muscular Artifacts
  • 16. Having good EEG signal Other sources of noise in EEG signal: - Sweat Artifacts
  • 17. Having good EEG signal Other sources of noise in EEG signal: - Eye Artifacts
  • 18. Alpha Waves during recording
  • 19.
  • 20. Important Point ! - Most artifacts can be removed by various tools and data processing (be patient) HOWEVER! ‘There is no substitute to good data‘ Jon Hansen
  • 21. A must-read Stephen J. Luck An Introduction to the Event-Related Potential Technique
  • 22. Preparing an EEG experiment
  • 23. Previous literature Define your hypothesis based on previous literature (including MEG papers) i.e. In the example of face processing, the most famous ERP is the N170
  • 24. EEG experiment tips ‘Keep subjects happy’: ● Make sure they are relaxed ● Make sure the trial blocks are not too long and include breaks (less alpha) ● Make sure that the inter-trial interval (ITI) is long enough (1-3 seconds) and ask subjects to blink during those to avoid artifacts during the time of interest
  • 25. Select the number of trials for each condition Boudewyn et al., 2017
  • 26. Select number of subjects ● Power Analysis in EEG is still at its early days ● Power depends on several factor, including signal-to-noise ratio (N trials), the type of marker you are targeting… ● A minimum requirement seems to be at least 20 subjects
  • 27. Have theoritical final plots in mind A recommended step before even recording is to have a clear series of final plots and analysis in your head, so that you will design your pipeline accordingly Analysis Pipeline
  • 28. Analysis software EEG/MEG analyses: ● EEGLAB (Matlab) ● Brainstorm (Matlab) ● Fieldtrip (Matlab) ● Brainvision Analyzer (gui) ● MNE Python Machine learning: ● CoSMoMVPA (decoding, Matlab) ● the Neural Decoding Toolbox (decoding, Matlab) ● MVPA-Light (decoding, Matlab - compatible with Fieldtrip) ● the ADAM Toolbox (decoding, Matlab) ● The PyMVPA Toolbox (decoding, Python)
  • 29. Part II. Preprocessing Theory and Good Practice
  • 30. Preprocessing - EEG data is not directly informative. It needs many steps to arrive to the final output of interest - Activity caused by your stimulus is ‘hidden’ within continuous EEG stream - The asumption in ERP analysis is that everything that is not linked to your event (stimulus-locked) is noise and is assumed to be random - A universal pipeline does not exist
  • 31. Some restricted choices to be made; A lot of consistent literature; Choices easy to justify; More advanced choices; slightly more recent literature; mild risks of misinterpretation; choices relatively easy to justify Crucial choices to be made; recent literature not always consistent; higher risks of misinterpreting; harder justifications; reviewers opinions might differ from yours; Risky analysis; literature is very recent; requires coding- only analysis; have to be interpreted with care; Researchers Degrees of Freedom
  • 32. EEG Preprocessing Downsampling & Filtering Re-reference ICA Segmentation Visual Artifact rejection Continuous data Segmented data Preprocessed Data Matrix
  • 33. Resampling/Downsampling - EEG signal is recorded at 1000 Hz (in our lab) => 1 data point/ms - Reducing the sampling rate reduce file size (and therefore processing time) - Nyquist frequency: the sampling frequency needs to be greater than twice the maximum frequency of the signal you want to look at e.g. with a sampling rate of 500 Hz, the maximal frequency that you can analyze in the data is 250 Hz
  • 34. Filtering - Filters affect your data but are a necessary evil! - They can create time and phase shifts - Three main classes of filters: • IIR infinite impulse response (e.g. Butterworth) filters the data in both directions, avoiding any phase shift • FII finite impulse response very efficient but… can produce artificial oscillations in the filtered data • Notch filters attenuates one narrow range of frequencies and passes everything else
  • 35. Filtering If you don’t know what you are doing: ⇒ Butterworth filter: High-pass: 0.5 Hz or lower Low-pass: 30 Hz or higher for ERPs No low-pass + notch filter at 50 Hz for Time-Frequencies Low-pass filtering attenuates higher frequencies (e.g. muscles) High-pass filtering attenuates slow frequencies (e.g. sweat)
  • 36. Re-referencing ● If your reference online was the right earlobe (or mastoid), the re- referencing offline to the average of both righ and left ealobes is necessary to avoid any lateralization bias ● Another option is the average referencing, meaning that the average of all the electrodes is flat, and that their activity is relative to all the others
  • 37. Independent Component Analysis ICA CAN IMPROVE SIGNAL – EFFECTIVELY DETECT, SEPARATE AND REMOVE ACTIVITY IN EEG RECORDS FROM A WIDE VARIETY OF ARTIFACTUAL SOURCES. (JUNG, MAKEIG, BELL, AND SEJNOWSKI) ● ICA extracts from signal independent activity ● In preprocessing, this is useful to remove non-brain activity (mostly eye related artefacts)
  • 38. Independent Component Analysis ICA CAN IMPROVE SIGNAL – EFFECTIVELY DETECT, SEPARATE AND REMOVE ACTIVITY IN EEG RECORDS FROM A WIDE VARIETY OF ARTIFACTUAL SOURCES. (JUNG, MAKEIG, BELL, AND SEJNOWSKI) The resulting ICs are ordered by the amount of variance they account for Tip: Eyes artifact are usually present in the first 10 ICs
  • 39. Independent Component Analysis ICA CAN IMPROVE SIGNAL – EFFECTIVELY DETECT, SEPARATE AND REMOVE ACTIVITY IN EEG RECORDS FROM A WIDE VARIETY OF ARTIFACTUAL SOURCES. (JUNG, MAKEIG, BELL, AND SEJNOWSKI) Blinks Saccades
  • 41. EEG Preprocessing Downsampling & Filtering Re-reference ICA Segmentation Visual Artifact rejection Continuous data Segmented data Preprocessed Data Matrix
  • 42. Segmention/Epoching Create longer epochs! Even if it includes data you are not interested in !
  • 43. Baseline correction Baseline correction consists in removing average activity pre-stimulus (usually -200ms 0) to post-stimulus data in order to remove slow drifts and have all trials at the same voltage before avering Make sure that your baseline period is not contaminated by artifacts !
  • 44. Visual artifact rejection ● Necessary step to make sure that no artifact remains in your data set ● This involves checking trials for residuals artifacts (all of them) and remove problematic trials ● Some tools are here to help you: -Semi-automatic artifact detection (Brain Vision Analyzer) -Automatic artifact rejection (MNE-Python & Fieldtrip) - CAREFULL
  • 46. ERPs representations ● Single plot (1 electrode or pool of electrodes) ● Topographical plot (average voltage over a time window) ● Butterfly plot (all electrodes in time)
  • 47. Example 1: the N170 The N170 is one of the component that reflects the neural processing of faces. This response is maximal over occipito-temporal electrode sites (P8-PO8-PO7-P7), which is consistent with a source located at the FFA (Fusiform Face Area)
  • 48. Example 2: the Error Related Negativity An ERN component is observed after errors are committed during various choice tasks, and its maximum amplitude usually is observed over FCz-Cz (Matching location with the Anterior Cingulate Cortex). Reflection of the activity of the Monitoring System (i.e;performance) Reversed negativity
  • 49. Part III. Hands-On session with Fieldtrip Preprocessing Pipeline ERP computation
  • 51. Fieldtrip ● FieldTrip is a MATLAB toolbox that contains a set of separate (high-level) functions, it does not have a graphical user interface. ● Tutorials, Walkthrough and mailing list ● Fieldtrip allows you to do everything from preprocessing to statistics ● It simplifies your analysis by creating struct matrices with all necessary info imbedded in submatrices ● The grammar is simplified ● Function are written as ft_XXXXX and need specific configurations -cfg- Paragraphs are written: cfg = [ ]; cfg.XXX = Y; ft_XXX(cfg, data)
  • 52. Hands-on example This dataset comes from a visual experiment, where subjects had a look at a screen where hands were presented Three type of stimuli were presented: 1) Still Hands, 2) Grasping Hands and 3) Shaking Hands.
  • 53. Hands-on example - The hypothesis is that Hands with a social meaning would generate specific activity over Lateral-Occipito-Temporal site compared to the other conditions. - We know that the N190 is modulated by the presence of body and body parts - and that the EPN (early posterior negativity) is modulated by emotions
  • 54. Hands-on example And in the Frequency domain, we know that ● Theta power (4-7 Hz) increases during the presence of hands ● Theta is able to distinguish between hand-actions
  • 59. Hands-on Exercice: Try to use a larger band-pass filter and a notch filter help ft_preprocessing in your command window
  • 61.
  • 63. Part IV. Time-Frequency Theory and Good Practice (Rachele) Time-Frequency Theory and Good Practice
  • 65. Why look at data in another way ? • Time domain analysis: when do things (amplitudes) happen? Treats peaks as single events. • Interest in time-frequency analysis is gaining momentum as it allows us to study neural oscillation over the scalp and potential interactions between neuronal groups. • Time-Frequency analysis gives access to richer and more complex signals, allowing for example connectivity analysis.
  • 66. Neural oscillations ● Oscillations arise from an interaction between the intrinsic properties of neurons (excitability) and their interconnectivity, giving rise to synchronous activity (Buzsáki and Draguhn, 2004)
  • 67. Brain waves Brain oscillations have been classified in different bands based on their frequency
  • 68. Anatomy of an Oscillation
  • 69. Fourier Transform – what is the Frequency Domain ● Fourier analysis converts a signal from its original domain (here time) to a representation in the frequency domain Deconstructing a time domain signal (ERP) to its oscillatory component
  • 70. From time domain to frequency domain Going from the time domain to the frequency domain through Fourier transform
  • 71. Time-frequency domain Fourier transform can be used to obtain a frequency-domain representation of the EEG data. Two limitations of the Fourier transform : - no time resolution - EEG data violate the stationarity assumption of Fourier analysis To extract time-frequency information, several techniques have been used and they all come with pros and cons
  • 72. Morlet Wavelets Wavelets work like a band-pass filter: they extract information at a frequency and move on the next Parameters involve a definition of the ‘Mother Wavelet’ and the decomposition with the help of the Wavelet family
  • 73. Morlet Wavelets It is assumed that wavelets provide good temporal resolution, but when looking at the entire spectrum, the choice of the mother wavelet affects the frequency resolution
  • 74. Short-term Fourier Transform (STFT) Computation of Fourier transform with a fixed time-window that slides along the time series in order to characterize power changes over time and frequencies Limits: a fixed time-window affects temporal resolution Tapering methods to limit spectral leakage Hanning or multitapering
  • 75. Time-Frequency Analysis Just like with ERPs, we want to look at how the power spectrum is affected by an event. 1/f noise Whole Power Spectra
  • 76. Time-Frequency Analysis – Baseline Correction Event Related Desynchronization / Event Related Synchronization
  • 78. Examples Theta Synchronization (4-7 Hz) Alpha Desynchronization (8-13 Hz)
  • 79. Phase-locked/Time-locked One advantage of TFs over ERPs that both Phase locked and Non-Phase locked activity can be observed
  • 80. Whole, Evoked and Induced Power
  • 81. Intertrial Phase Coherence Mike X Cohen “The term is an interpretation of a presumed mechanism — oscillations become “ locked ” to an external event or to the phase values of another electrode — but the neurophysiological mechanisms underlying phase locking are less clear. Thus, ITPC is a succinct description of the analysis, which is that phase values become clustered over trials.”
  • 83. Cross Frequency Coupling The most famous cross frequency measure is the Phase-Amplitude coupling (PAC) that highlight the relation between the phase low frequencies and the amplitude of higher frequencies This rule has been recently shown to also govern the temporal organization of spontaneous large- scale brain activity in humans (Osipova et al., 2008, Roux et al., 2013, Florin and Baillet, 2015, Weaver et al., 2016)
  • 84. Part V. Hands-On session with FT - TFs (Quentin) Hands-On session with FT - TFs
  • 85.
  • 89. Part VI. Hands-On session with FT - TFs (Quentin) Source Analysis, Theory and Hands On
  • 90. Source localization in EEG Superposition of source activity Volume conduction problem
  • 91. Forward solution & Inverse Problem Physiological source Body Tissue Volume Conductor Scalp distribution Forward Model Inverse Model
  • 92. Source localization solution(s) The inverse problem is the best answer to the question: Given my observed pattern of topographical activity, what are the most likely location(s), orientation(s), and magnitude(s) of brain source(s) that could have produced this topographical pattern of activity? Different inverse methods exists: - Dipole fitting (e.g. BESA) -> Assume a small number of sources // Where are the strongest sources ? - Distributed dipole models (e.g. Low resolution electrical tomography (LORETA)) -> Assume activity is everywhere and target what is the distrubtion of the activity all over the brain - Spatial Filtering (e.g. Beamforming) -> Scanning method that target the likelihood of a given location
  • 93. Source localization solution(s) Data Model (constant) Inverse models
  • 94. Dynamic imaging of coherent sources (DICS) - Beamforming ● Baseline contrast (similar to ERD/ERS) ● Identify Time-Frequency Activity of interest (e.g. Theta band 0-500 ms) ● You need a volume conduction model (based on a MRI) ● With beamformers, you estimate source activity with a spatial filter ● You divide your volume model in a grid and you scan the grid location by location
  • 100. Part VII. Hands-On session with FT - TFs (Quentin) Connectivity analysis, Theory and Good Practice
  • 101. Connectivity ● So far, we have looked at univariate analysis at the channel level or the source level ● Connectivity goes beyond univariate (i.e. multivariate) to target how brain regions interact together ● Effective Connectivity & Functional Connectivity ● Functional refers to a statistical inference of communication between two signals ● Effective connectivity refers to causal relationship between two signals ● Model based connectivity (DCM) is based on a priori knowledge of brain areas involved in a given task ● Data driven connectivity generates connectivity matrices
  • 102. Connectivity Coherence Coefficient Phase Locking Value Imaginary part of coherence Phase Slope Index Phase Synchronization Phase Lag Index
  • 104. Connectivity ● So far we have focused on the Amplitude (Power), but with Fourier transform you can extract complex values that have both info on Amplitude and Phase ● Signal in the complex domain is represented as X = Aeiφ ● Connectivity measures (like coherence coeficient) focus on the phase values of two signals
  • 105.
  • 107. ROI identification Virtual Sensor Extraction Fronto- Central Right-LOTC Time (s) Amplitude (uV) Phase-Locking Value between the two ROIs Frequency 30 2 30 2 Frequency 30 2 30 2 0 0.5 Time (s) 0 0.4 0.2 0 0.5 Time (s) 0 0.5 Time (s) 0 0.5 Time (s) Cued-Correction Interactive-Correction Cued-NoCorrection Interactive-NoCorrection 0.2 0 PLV 0.2 0 PLV 0.2 0 PLV 0.2 0 PLV
  • 108. Hands On Are PO7 and FC4 in phase ?
  • 111. Part VIII. Hands-On session with FT - TFs (Quentin) MVPA in the Time-Domain, Theory, Good Practice and Hands-On
  • 112. Rationale ERPs highlight higher activation during perceptive tasks
  • 113. Rationale Rather than examine activation between conditions, MVPA examines differences in distributed patterns of brain activity Therefore with EEG, we can track the time-course of object representation and how different objects differ in their processing, using single trials
  • 114. Multivariate Pattern Analysis (MVPA) K-fold Goal: Classify single trials according to the stimulus presented Two sets of data: - ERP information 5-fold cross validation The dataset is divided in 5 subsets Training phase (all-but- one) The classifier practices in a supervised way on 4 subsets => Feature selection Test phase The classifier tries to predicts the category on the remaining subset Classifier performance Statistically estimated using binomial testing against chance level (50%)
  • 115. MVPA
  • 117. Temporal Decoding - Question? 0-50 ms: low-level features 50-250 ms: categorisation Can Sociability be a factor of early classification in the brain ?
  • 123. What I did not talk about ● Statistics: Cluster based Analysis