Lecture Notes Brain-Computer Interfaces
Lecture 1
BCI vs CBI
Brain interfaces can include both Brain-Computer interface, and Computer-Brain interfaces that use neuro-stimulation. We focus on the former: BCI.
Examples of CBI are:
- Remote controlling animals through their brain
- Using bionic eyes and stimulate eye nerve
- Deep brain stimulation
Sci-fi BCI vs Reality:
Sci-fi:
- Fast, accurate
- Psychic, natural, intuitive - direct connection between thought and action
- Clear feedback, immersive, virtual-reality
- Physical connection to CNS
- Super human
- 2-way communication
Reality: very low signal-to-noise ratio (especially for portable non-invasive systems).
- Less fine-grained control
- Restricted to small set of options
- Slow, inaccurate < 1 char/sec
- Non-intuitive
What is a BCI?
def: A system which allows communication of information about someone's mental state without the use of the peripheral nervous system.
In short: no information originating from outside the skull. No muscles, no eyes, no motor neurons.
The BCI-cycle
1) Generation of brain signal * by explicit mental task * or through normal brain processes 2) Measurement of that brain signal. 3) Decoding of that brain signal to deduce a mental state 4) Output translate that mental state to an action in the outside world.

Q: Can you draw the BCI-cycle?
Step 1: Generation
E.g.
1) Induced: Imagined movement BCI: * Stimulus independent * Induced response - There is a functional equivalence between motor execution and imagined movement: can activate similar pathways. - Various kinds: visual 1st person, 3rd person, kinesthetic that affect performance - Performance does not depend on type of movement. - Mu-peak hight is good predictor of IM BCI performance (see later paper). - Applications: brain-switch*, 2/3d cursor control (with training), spelling (hex-o-spell with imagined movement).
* A Brain-switch BCI only requires one brain state to be detected, which can then be used to send a binary command.
2) Evoked: Matrix speller BCI * Stimulus dependent - Parallel selective attention task. * Evoked response: ERP time-locked to stimulus presentation - Can depend on more than raw stimulus properties, i.e. syntactic or semantic processing, error-processing, surprise etc. E.g. P300 depends on more than just raw stimulus properties, takes context and stimulus importance (salience; contextual) into account. - E.g. P300 oddball response: unusual or absent stimulus. - P300a vs P300b
3) Evoked: SSEPs - Response to long-term periodic stimulus - Response amplitude is modulated by selective attention - Modality dependent optimal frequencies, can be used to diagnose correct operation of sensory system - Visual VSSEP: 16-20Hz occipital cortex - Auditory ASSR: AM modulation ~40Hz, auditory cortex - Tactile (SSSEP): AM ~21Hz, contralateral somatosensory cortex.
Q: Can the Hex-O-Spell also be used both with intended movement and within an oddball paradigm? (cf. Treder e.a. 2010).
Q: What is the difference between P300a (stimulus response) and P300b (cognitive response), and which one is most important for BCI?
A: P300b. Search further down the document.
Step 2: Measurement
Be able to categorize measurement device according to:
- Invasiveness
- ECoG is invasive
- Portability
- MEG and fMRI are not portable
- but EEG and NIRS (fNIRS?) are
- Cost
- Which imposes practical limitations on usability
EEG and NIRS are portable and cheap: great for BCI.
Be able categorize measurement systems according to their spatio-temporal resolution, and know what is useful for BCI. (Bit stupid that NIRS is not in this picture).

Best temporal resolution: EEG, MEG, ECoG.
Worst temporal resolution: MRI, PET, SPECT
Best spatial resolution: CT, MRI, ECoG.
Worst spatial resolution: EEG
Special notice: EEG very high temporal resolution, but extremely poor spatial resolution. It is being used much however due to its low cost, portability, and non-invasiveness.
Also know what is being measured.
Haemodynamic response: FMRI, NIRS
Electrical response: EEG, MEG, ECoG
Q: is there a difference between NIRS and fNIRS?
Step 3: Decoding
Main challenges posed by inter-subject and inter-session variability.
Two approaches:
1) Train the user with neurofeedback to generate a strong pre-defined signal that can be easily picked up. 2) Train the machine to learn the user's specific signal properties.
The first option can take months, and puts a lot of burden on the patient, whereas machine learning can be used within the order of minutes.
So machine learning and in particular classification is preferred.
Step 4: Output
Possible BCI-applications (as specified by BCI2020 roadmap)
1) Replace * E.g. giving means of communication to locked in patients. 2) Improve * E.g. rehabilitate limb movement after stroke 3) Restore * E.g. BCI controlled neuro-prosthesis. 4) Enhance * E.g. enhanced UX in games 5) Supplement * E.g. The Glass Brain, i.e. brain based HCI (dynamic brain activity visualization) 6) Research Tool * Cognitive neuroscience; brain state dependent stimulation
Q What is the specific difference between 2 Improve and 3 Restore?
A: Improve concerns improving remaining functionality. Restoring is when you cannot control your own body anymore, and need an external device to restore the functionality.
Q: What is the specific difference between 4 Enhance and 5 Supplement?
A: Supplementing adds new functionality, a new "tool", whereas enhancement takes existing functionality and builds further on it.
BCI requirements
A long time ago there were already BCIs.
- 1988 - P300 Visual Speller - Farwell & Donchin
- 1992 - Slow Cortical Potential BCI - Birbaurmer N.
- 1992 - Mu-band Imagined Movement BCI - Pfurtscheller G. e.a.
Q: What is an example of a "Slow Cortical Potential" BCI?
A: Birbaurmer BCI: Is based on learning how to control feedback. Binary choices, bar that can move to left or right. SCP voluntary control can be trained with neurofeedback.
The main problem that remains with BCI is its usability, in particular fulfilling these requirements:
1) Speed: <3s per binary decision 2) Accuracy: > 90%
And also:
3) Easy to use, without expert knowledge or intervention 4) Fast to set up, short training times 5) General: should work for everyone
Why is BCI hard to do well?
1) Low signal-to-noise ratio (~1:5) * External noise * Other neural sources * Muscle artefacts * Line noise (50Hz) 2) Low spatial resolution (main problem for EEG) * Signal propagation effects - High spatial correlation between electrodes 3) High inter-subject variability * In particular BCI illiterates 4) Inter-session variability * And differences in user learning.
The reason why BCI is becoming more popular is due to advances in computation power, machine learning techniques, and lower cost of equipment.
BCI Challenges
1) Increase speed 2) Increase accuracy 3) Increase speed + accuracy 4) Address BCI illiteracy 5) Reduce/remove calibration time for better cross-subject generalization 6) "Continuous self-paced operation" * What is meant here I think is that ideally a user starts using the BCI when they want to, i.e. BCI brain commands are clearly separated from the "background" i.e. non-command brain activity. 7) Exploit neural plasticity/user learning to improve performance over time 8) Ease of use: more direct intention encoding.
Q: What does one image for exploiting neural plasticity? Can you give an example? A: I suspect the design of a continuous learning system that adapts to individual signal variation over time.
Q: What is "intention encoding"? A: They seem to mean that now low-level brain effects are exploited. Ideally, approximation sci-fi BCI, one would more directly "read" intentions. (Lots of assumptions there).
Two approaches to improving BCI
BCI is a two-way system. Improvement can come from both directions.
1) Brain-based: make the signals easier to detect using new mental tasks or training 2) Computer based: better detectors, machine learning, learning across subjects and sessions, adapt to signal variation over time.
Lecture 2 | Guest lecture Peter Desain | Cycle Users Applications
Desain's definition of BCI
Def BCI according to Peter Desain:
Employ measurements of brain activity to direct
1) control over a device 2) communication 3) a change in perception/behavior...
and that ...
1) without over behavior 2) without use of the peripheral nervous system 3) online, real-time, single trial
Tasks
Focus is not mind or thought reading, but detecting more basic tasks:
- Imagine or attempt movement
- similar signals as actual moving
- Direct attention
- easy to detect; modulation of alpha waves
- Imagining speech/music
- imagining and actually hearing music are similar, because hearing music is an active process tracking music (i.e. "imaging" its future development)
- Identify / count relevant objects
- flashing it between other info: P300 response.
- Perceiving sudden differences gives a big brain response
- MMN
- Similar for noticing errors
- ERN
Q: What is the relation between direct attention and alpha waves?
Tasks characteristics
- is a task (in)dependent? Does the BCI/task depend on output pathways / PNS? E.g. is moving required?
- passive / active task
- does the brain do it by itself? e.g. sleeping signals are passive
- (a)synchronous
- can it happen at any time, or is it time-locked to some event?
Q: What is meant by the "(in)dependence" of a mental task?
And some less fundamental ones: speed, comfort, effort.
Artefacts during measurement
- Eye muscles
- Line (50Hz)
- Surrounding radio,telephone signals
Spatial and spectral filters needed to deal with artefacts.
Features to be extracted
- Event related (de)synchronization (ERD/ERS)
- Steady State Evoked Potentials (SSEP)
- when you look at a flickering light with a particular frequency, the brain response is locked to that frequency
- P300, 300 ms after attention
- Alpha power
- MisMatch Negativity (MMN)
- Reaction to odd/deviant stimuli in frequent stimulus sequence, e.g. difference in pitch
- No attention required
- Slow cortical potential (SCP): can be learned to control
- Error Related Negativity (ERN) after error
- Readiness Potential (RP): before performing action, lateralized, can be pre-conscious
- Sleep spindles
Classification
See slides
Because data is so numerous (many sensors, many trials per second) overfitting is a huge risk: you can always find some regularity.
Early stopping: don't collect more data than needed for decision to reduce overfitting risk.
Output Performance measures
- Accuracy
- Speed (seconds / trial)
- Number of classes ?
- Information transfer rate (bits/characters per second/min)
- Also captures the number of classes, speed of detection, and accuracy.
- Cf. entropy: with 50% accuracy you have 0 information transfer rate.
- User/system requirements
- Training/calibration time for system / user
Q: Can you explain the information transfer rate, and how it takes into account the number of classes?
Stimuli
- Feedback (explicit / implicit)
- What modality?
- What regime: parallel, sequential, oddball?
- Watermarked stimulus?
Q: in what regime is the matrix speller stimuli input, parallel or oddball?
A: I'm confused: I would definitely call it based on the oddball paradigm, but the stimuli are kind of presented in parallel. Does the oddball paradigm per se need sequential stimuli (e.g. for MMN?).
Q: What is meant by a "watermarked" stimulus?
A: e.g. you can add a "frequency tag" to audio stimuli to make their brain response correlate more easy distinguishable in the brain response.
Q: What would be an example of implicit feedback?
Application examples
- Replace
- AT Spellers
- Improve
- Rehabilitation, Train/learn L2
- Restore
- Prosthesis, Functional Electrical Stimulation (FES) control hand
- Enhance
- UX Game
- Supplement (vague distinction with enhance)
- Extra control
- Research
Q: What is an AT Speller?
A: An audio tagging speller? No idea. But I do know Peter Desain has done work on audio tagging i.c.w. BCIs.
Q: What is "train/learn L2", mentioned by Desain as an example of an "Improve"/rehabilitation BCI application ?
A: See later on in the slides. L2 refers to "second language". When learning a second language, a BCI based on MMN can help to distinguish sounds such as "ba" and "pa" using training by neurofeedback.
Q: Can you name six types/goals of BCI application? (6 total, 3xR, SIE)
Examples
- SCP Neurofeedback
- use feedback from output of BCI to learn to control it (shown example: Tony Hawk game where skater speeds up for desirable brain waves LOL -> not controlled research). The list of restoration options of neurofeedback in the slides is highly exaggerated.
- P300 speller using averaged ERP over many trials/sec and preprocessing
- Hex-o-speller
- Based on imagined movement (ERD/ERS)
- Steady-State Evoked Potentials BCIs:
- Dasher:
- Intentional encoding
- Left, right: speed of zooming into subsequent letters on the right side
- Up down, select words that can follow the previous selection
- Bremen: BCI-speller
- Intentional encoding with SSVEP, attending up arrow moves selection field up, etc.
- RSVP spellers (flash letters and integrate P300 signals). Flashing could be other stimuli.
- Restoration of movement using neuromodulation
- the imagining of movement, and then seeing a robot arm perform it, helps restore the original pathways used for movement.
Examples regarding Mental State Monitoring:
- Cognitive support
- Workload monitoring
- Awareness monitoring
- User satisfaction monitoring
- Neuro-marketing
- Lie-detection
- Detection of learning progress
Learning example: Sound-categories in L2 (a second language).
Categorial perception between t- and d-sound requires high sensitivity around the border line.
Dutch and Japanese subjects have different categorical perceptions. Japanese students have trouble distinguishing t- and d-sounds in Dutch. This idea of this BCI-setup is to train students to hear that difference using neurofeedback, based on both MMN and a P300a (the stimulus variant).
Present series of t-sounds, with the task to try and spot a d- sound.
On presentation of the d-sound, a P300a follows due to attending to that stimulus, and a MMN follows because it is a deviant stimulus.
Oddball paradigm: establishes a normal and then uses MMN responses
Use MMN for feedback in a neurofeedback paradigm.
Goal: learn to hear sound differences.
If these brain responses show, indicating recognition (might be... unconscious, I guess?), then a positive reward is given: the neurofeedback that closes the BCI loop.
MMN and P300a brain responses are classified (yes/no difference), and compared to the presented stimuli (was there really a difference). On success, there is a reward. E.g. the movie you are watching becomes nicer to look at because the resolution is increased.
Q: Does the P300(a) require attention? A: I do not think so, but it's amplitude is strongly modulated by attention.
Example exam questions:
Q: What mental task does the user do in a Slow Cortical Potential BCI?
Q: How can a lie about not having been at a certain place be demonstrated? A: P300 response.
Q: Why are there so many kinds of BCI spellers?
Q: How is the condition called in which patients cannot respond in any way? A: Locked-in syndrome.
Q: In what stimulation paradigm can a MMN response be elicited? A: Oddball paradigm.
Q: What is neuromodulation?
Q: Are there BCIs for healthy users? Name a few.
Q: What is a passive BCI?
Q: How many subsequent selection steps are needed to spell a letter in Hex-O-Spell, P300 Matrix speller, RSVP speller, SCP speller with subsequent alphabet-halving.
Q: Name a few auditory categories that can be trained by feedback on MMN?
Q: Name the kinds of BCI as listed in the H2020 paper?
Q: What could minimally invasive mean for a BCI?
Q: For which modality of stimulation are checkerboards used? A: Visual modality, SSVEP, VEP designs.
SSEP: "By analogy with the steady-state response of a resonant circuit that follows the initial transient response he defined an idealized steady-state evoked potential (SSEP) as a form of response to repetitive sensory stimulation in which the constituent frequency components of the response remain constant with time in both amplitude and phase" (Wikipedia).
This can be achieved with a checkboard pattern, where with a fixed frequency the white and dark fields are alternated.
Q: What are the 3 difficulties experienced by the spinal cord lesion patient with FES-controlled hand muscles? A: tiring, all fingers at the same time, only on-off.
Q: Name an ailment that can be cured by neurofeedback (as claimed by the lobby)? A: ADHD.
Lecture 3 | Detection: signal and sensors
About measurement in the BCI-cycle
Recap neuroatonomy.
Orientation and main functions of brain areas:
- Frontal: higher-level functions / executive
- Temporal: language, sound, time
- Occipital: mostly vision
- Parietal: spatial reasoning
- Cerebellum: motor control
Orientations of brain slices:
- Axial slice: "flat" horizontal slice
- Sagittal: along the brain midline (ZAAG hem netjes door midden)
- Coronal: From ear to ear (cOORonal)
Orientations w.r.t. head:
- Anterior
- Posterior
- Superior
- Inferior
Orientations w.r.t. brain:
- Rostral (forehead side)
- Caudal (back of the head)
- Dorsal (op het dak)
- Ventral (viezerik in de "vietzen"kelder)
Q: Name the main functions of 1) frontal- 2) temporal- 3) occipital- 4) parietal cortex 5) cerebellum.
Q: Can you name the three possible orientations of brain slices.
Q: Can you name the four orientations w.r.t. the brain.
Sensory cortex belong to parietal lobe, motor cortex to frontal, separated by the central sulcus.
Because they are heavily integrated however, the sulcus in this case is misleading. Parallel ares in sensory and motor areas for the same body part are next to each other.
Important body parts have a bigger map and are therefore easier to use in BCI-applications.
Measurement types
Globally either:
- Electrophysiological(electric or magnetic fields)
- Haemodynamic (blood flow)
Electrophysiological Measurements
Electro-encephalogram (EEG)
What does EEG measure?
Basically a voltmeter measuring volt differences. However it does not measure absolute voltages, but relative difference between any electrode and a reference.
There is one amplifier per pair of electrodes. So each active electrode is connected to a differential amplified, whose other input is a reference electrode.
Single neuron electrical signals are too weak to be picked up. What is measured are thousands of neurons firing at the same time.
It is also thought that a clear electrical current is only picked up when that large amount of neurons have a similar spatial orientation. Therefore it is thought that EEG activity mostly picks up activity from pyramidal neurons.
Open field organizations occur creating measurable current when all dendrites are on one side, and axons on the other, i.e. when neurons are aligned. This occurs in most parts of the cortex, parts of the thalamus, and the cerebellum.
Q: What does EEG measure exactly?
Q: What type of neuron does EEG most likely measure the activity of?
Q: What is an ERP and what is its relation to an EEG recording?
Electrodes needed:
- Ground
- Get amplifier in the right ballpark, location where differences between electrodes are small
- Usually the forehead
- Reference (spatial): e.g. on the ears, should have little reactivity and far from ground
- Active: regions you care about
A good ballpark: brain activity is in the ballpark of 10 microvolts.
Remark on ground electrode from biopac.com
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. By design, amplifiers should not be affected by large changes in potential at both the active and reference sites.
I do not fully understand the workings of the ground electrode yet. This is my brainstorm: EEG waves are defined as relative volt difference between an electrode and a reference. Do you want to pick up relative differences of 5 microVolt in the range 0-20microVolt, or in the range 20-30 Volt? The ground therefore has something to do with the sensitivity of the measurements. I do not understand anything hardware related.
10-20 system is a convention for electrode placement. Called 10-20 because distance between electrodes are between 10-20 degrees on a circle.
Q: What is a good ballpark amplitude of a good EEG brain measurement?
C(central), P(arietal), O(ccipital), T(emporal), A for ?
- 0: zero line
- odd numbers on the left
- even numbers on the right
Averaging produces ERP (Event related potential plot)
Combining temporal info of the ERP and the spatial info you have on electrode placement, you try to interpret and make conclusions about brain activity.
In BCI you care about error bars in EEG plots, because you can only use single events for BCI-applications. Normal plots are averaged and look too pretty: this may be misleading.
Another possible output are plots showing oscillations of induced responses, for example of an alpha wave modulation by (c)overt attention.
For induced responses you are interested in a frequency-time analysis/plot.
Q: What kind of EEG plot do you expect for evoked responses, and what kind of plot for induced responses?
Q: Can you draw a typical ERP with a P300 component?
Electro-corticogram (ECoG)
Signal-to-noise ratio is way better than EEG. But still does not record single neurons.
Can measure at epidural or subdural (inside the 'bag' i.e. arachnoid layer) depth.
Wire-electrodes
Allows measuring of single units, unlike EEG and ECoG.
For example used in place-cell recordings.
Magneto-encephalogram (MEG)
Uses magnometers. Magnetic fields easier transmit through materials like the skull, and thus allow more non-invasive measurements.
Does not directly measure electrical potential difference, but magnetic fields resulting from them.
Magnetic signals are however weaker so harder to detect: big machines needed.
What do we measure for electrophysiological measurements?
Not action potentials (2 micro second).
Post-synaptic electric current last 10 microsecond.
We do not get enough cells to fire simultaneously to be able to measure it within 2 microseconds, but we can within a frame of 10 microseconds because signals have to be:
- Synchronized firing
- Aligned orientation
Usually this means we pick up activity from (excitatory) pyramidal neurons.
We don't pick up inhibitory signals.
Q: Why does EEG not pick up inhibitory activity? A: because dendrites of inhibitory neurons are not aligned.
Dipole fitting: assume a big meganeuron that represents a lot of neurons together. This is a useful model for thinking about the current flow measured in EEGs.(?)
The inverse and forward problem
The forward problem: from a given brain location, where do its signals show in the EEG recording?
The inverse problem: from a given EEG recording, where does a particular signal come from in the brain? N.B. "It is mathematically impossible to reconstruct a unique intracranial current source for a given EEG signal, as some currents produce potentials that cancel each other out." (ref Wikipedia).
Fitting/estimation of a local dipole is an example of a possible solution to an inverse problem: where does a signal come from?
For neuroscience the inverse problem is huge.
For BCI we do not necessarily care about the interpretation of a precise location: as long as it works.
Q: What is the "inverse problem" for electrophysiological measurements?
Q: Why is the inverse problem not as big in BCI?
EEG vs MEG: what currents do they measure?
MEG: in principle able to measure direct current.
However, in practice not so much, because MEG can only measure neurons oriented along the skull, because otherwise magnetic fields from different currents cancel each other out. These neurons, with a "tangential" orientation are found in sulci. Their magnetic fields "point outwards", so to say.
Therefore MEG measurements are mainly based on sulci, not gyri, about a third of the cortex.
EEG: tends to only measure the return current, re-potentialization after action potential.
MEG+EEG: measure both.
MEG is however less spatially smeared out. For EEG the inverse problem is huge.
Q: From what neurons (located where) can MEG pick up activity?
Q: Why does EEG mainly measure return current, i.e. re-potentialization after action potentials?
Haemodynamic measurements
A common disadvantage of all haemodynamic response measurements:
- All indirect measures of activity, with large delay.
fMRI
BOLD response: blood oxygen level dependent.
Increased activation, more oxygen used, for low oxygen BOLD increases.
A few seconds later, more blood reaches the active area, resulting in more oxygen than needed: BOLD decreases. (A "overshoot" just like with an action potential)
BOLD signal is the peak in the graph in the slides, that looks like a smoother action potential
fNIRS (function near-infrared spectroscopy)
Oxygenated blood as a different absorption spectrum that de-oxygenated blood.
Also measures a BOLD response using light emission and detection of refracting light.
Beer-Lambert Law used for calculating change in concentration.
Advantages:
- Also depth of the source can be estimated because deeper sources have a more curved response with less light returned.
- measures both oxygenation and deoxy-genation, not only the first such as fMRI.
- High single-trial reliability: because it is noise robust
- Very high spatial resolution (see first bullet point)
Cons:
- Slow compared to EEG
For BCI:
- EEG because its cheap
- fNIRS is portable
- fMRI high and balanced resolution (can measure whole brain) but expensive and non-portable.
Summary of measurement systems
Very invasive:
- Wire electrodes
- ECoG
Non-portable:
- fMRI
- MEG
Portable and cheap:
- EEG (neuroelectric, very high temporal, but low spatial resolution)
- fNIRS (haemodynamic, very high spatial, but very low temporal resolution)
Rough order of spatial resolution for...
- ECoG, MEG, CT, fMRI, MRI, PET: 0-4mm.
- EEG, SPECT: 8-11 mm
Rough order of temporal resolutions for:
- EEG, MEG, ECoG: milliseconds.
- fNIRS 10 milliseconds.
- CT, fMRI: 0.1-3 second
- PET, MRI, SPECT: 100+ seconds.
Q: Can you name the "ballpark" of the temporal and spatial resolution of EEG, fNIRS, fMRI, ECoG, MEG?
Lecture 4 | Decoding: artefacts, filtering and classification
Dealing with subject-to-subject and session-to-session variability, and getting rid of artefacts.
Learning goals:
- Main sources of artefacts: muscles, eyes, movement, hardware, line-noise
- Preprocessing:
- re-referencing
- spectral-filtering with FA
- artefact-detection/rejection/removal
- Understanding temporal, spectral, time-frequency representations of a signal
- Use of filters, their properties and design
Basic properties of EEG/MEG data and artefacts
EEG | Spectral
Spatial properties:
A correlation matrix shows a high spatial correlation between close EEG-electrodes.
EEG often represented in time-domain representation. Now: spectrum domain.
- Spectrum representation
- Trend: High frequency signals have less power
- Peaks Alpha peak, beta peak, sometimes gamma peak
- A peak is an increase in power around a specific frequency range
- From low to high frequency: delta, theta, alpha, beta, gamma
- from 40 Hz on, there is barely signal left in the EEG. So this is less useful for BCI applications.
A alpha peak is practically always clearly visible.
There is often a beta peak as well.
Q: What is the alpha peak, around which frequency range, and what does in indicate?
Q: What does a beta peak indicate?
Q: Order alpha, beta, gamma, delta, theta in order
EEG Spectral bands and their meaning
In general the following rules of thumb apply:
- The lower the frequency, the lower awareness.
- The dominant frequency reflects the current mental state
0.5-4Hz Delta: infants, sleeping adults
4-8Hz Theta: Children, sleeping adults
8-13Hz Alpha: Strongest occipitally
13-30Hz Beta: frontally and parietally
EEG | Artefacts sources
External:
- Bad channel: badly connected electrode shows constant huge fluctuation
- Cf. more constant than eye artefacts, where you can clearly see the blinking/moving temporally
- Cf. muscle artefacts have a way higher frequency
- Slow electrode drift: change caused due to physical changes on the scalp, e.g. sweat.
- Eye-movement: neurons in the eyes (unfortunately) conform to the properties to pick up an EEG signal. They are however not static: eye movements cause erratic signal behavior.
- Eye blinks
- Muscle activity: muscle neurons are strong, and cause high frequency strong oscillations. Muscles in the head, jaw, frowning, ear-waggling.
Internal:
- Eyes open vs eyes closed: closing eyes disables activity in back of the head, but changes here propagate throughout the brain, disturbing BCIs.
- Relaxation (deep-breathing) vs stress
- Hyperventilation
Q: Can you name some common external artefact sources for EEG?
Q: Can you name some common internal artefact sources for EEG?
Q: Can you, from an EEG plot (time domain), pick out artefacts?
Types of BCI signal: ERP, ERSP
What changes in the things that we measure when we change something in the person's "head"?
Two main types of signals that change:
1) Event related Potential (ERP) / Evoked response BCIs / Exogenous (from the "outside") 2) Event Related Spectral ERSP / Induced response BCIs / Endogenous (from the "inside")
1) Evoked responses - Brain response to externally generated stimulus - Time-locked response (ERP) - E.g. p300, MMN, N200 - Always a positive response 2) Induced responses - Not time-locked to external event, not phase-locked. - Induced responses are not phase-locked but the power, rather than the phase, is time locked to the stimulus - Change in power at a particular frequency/oscillation, but not at a particular time. About size (whether negative or positive) rather than timing. - E.g. alpha peak gets higher in change of mental task difficulty - Because there is no time lock, you don't necessarily need an external stimulus - Example: mu-ERD/S, change in alpha power, changes in gamma.
Q: It is a bit ambiguous to me whether the ERSP is really evoked, because it is event-related and does have clear timing. But I guess its time latency is still too jittered to classify as an evoked response, and there is a clear power modulation for certain frequencies. A: ERSP does not throw out information from evoked responses.
Hybrid: imagined tapping, subjective rhythm.
Q: Did we in the scope of this course see a hybrid BCI?
P300 visual speller is an example of parallel attention.
Note that Covert attention is listed under induced.
Q: Why is overt attention exogenous, and covert attention associated with an induced/endogenous signal? A: because overt attention also includes eye-movement?
Averaging for Evoked and Induced responses
Important slide.
Fixed latency: For evoked responses, you can average over many trials in the time domain, and the evoked response will show up as an ERP because it is time-locked to stimulus onset. Due to this time-lock, the effect will be persistent through averaging over trials. A power increase for a particular frequency as result of an evoked response will also show at a particular time, but the power increase as result of an induced response will not.
Jitter in latency: Conversely, if you would do the same for an induced response, no ERP component would show because effects per trial are at different times and will cancel each other out. (Plot C).
So for evoked responses, you fix the time axis, and average all trials over amplitude (rather than frequency) at a particular time.
For induced responses, you average over frequency power, and then you will see in a frequency time plot an average increase in power for a given frequency.
Q: In what domain do you need to average for ERPs to show up, and in what domain for ERSPs to show up?
BCI pipeline
1) Detrending 2) Bad-channel removal 3) Re-referencing/spatial filtering
Ask yourself evoked (ERP) or induced (ERSP)?
If evoked (ERP):
4) spectral filtering 5) bad trial id and remove
If induced (ERSP):
4) Feature extraction (this step is required because there is no time lock) 5) Feature selection 6) Bad trial id and removal
Finally:
7) Classifier training
Q: Can you summarize the usual BCI pipeline?
Re-referencing
Since EEG measures voltage difference of an electrode w.r.t. the reference, the choice of reference is important.
But for every measured signal, you can assume a common artefact $n(t)$.
$x(t) = s(t) + n(t)$
Reference sensitivity: what you measure is some electrode measurement minus the reference voltage. Thus ideally re-referencing would cancel out the noise in this subtraction with the reference voltage:
$x_r(t) = s(t) + n(t) - r(t) \approx x(t)$
So you pick the reference such that it approximates the noise. The reference should represent pure noise.
This means that the noise that $r(t)$ and $x(t)$ share, will be cancelled out. But in practice, this will also add some noise to $x(t)$ because the noise represented in $x(t)$ is not exactly the noise of the reference.
Commonly used references
- Ear: far from brain, estimate of external noise outside of the head.
- Mastoid: nice that they are on the scalp, and bone does not conduct electricity well, so it shouldn't get too much from the brain itself.
- Common-average / common-node:
- Stuff coming from in the head will differ on left and right side.
- Stuff from outside (i.e. farther away) will spread sort of equally over all electrodes
- Assumes true signals are globally zero mean. In that case, the total sum of measured signal equals $N x n(t)$. Then averaging (dividing) by N, gives the noise contribution $n(t)$ per electrode.
- You therefore assume that all electrodes have the same amount of external noise.
- Is more robust to potentially bad reference electrodes (only 2 electrodes are references in other methods, vs all electrodes in this one)
- Sum outputs of all amplifiers and average them, add this average is subtracted from each electrode. (?)
- Local-Reference (Hjorth reference)
- Similar to CAR, but true signal is only assumed to be locally zero-mean.
- The same computation is done, but then only on a local set of electrodes
- This improves spatial-selectivity. (I guess that because noise is now locally estimated, and because locally true signals tend to be truly zero-mean more often, you are now more certain that you are not measuring noise from other brain locations? )
Q: in CAR, how is the approximated noise incorporated in the measurements? Indeed by subtraction? Or is it "smeared out" over all electrodes?
Q: Why does local-reference averaging improve spatial selectivity?
Data cleaning
- Detection: artefact present?
- Rejection: delete signal data with artefacts
- Removal: remove artefact but keep signal (harder)
Q: what are the two main ways to clean your data of artefacts (R&R), and describe two possible approaches per way?
Rejection: Outlier Detection
- Assume most data is artefact free
- Deviations, i.e. outliers, are reported as artefacts
Power based
Example:
1) Estimate variance in power per electrode 2) Now we have a distribution of estimated variance over electrodes 3) Estimate the mean and variance of this distribution 4) Electrodes that are 4+ std from the mean can safely be discarded as outliers
The underlying logic is: Bad channel --> more noise --> higher power / fluctations --> higher variance
Template matching
E.g. eye-blinks and saccads cause particular shapes in the EEG.
Produce an average of those shapes: an artefact template
Remove data having a high similarity with this template, given an appropriate similarity measure.
Sensor based
Record the physical process causing artefacts to identify artefact. We sometimes know the physical processes causes artefacts: eye-blinks, arm-movements etc.
If you see a huge power increase at time x in your EEG, but at the same time also in the EOG, then you know that the eye was the source of the artefact. The more you record, the more likely you are to find the source of the artefact.
Usually done for the eye movement. Add EOG channels.
Threshold or match this data to see what parts of the EEG signal are caused by the eyes, in this example.
Removal: Signal Filtering
Goal: dampen background noise, without affecting the signal we are interested in (too much). Removing noise will make the signal easier to detect (for classification).
1) Temporal: focus 'when' signal is expected 2) Spectral: focus on frequency signal is expected to have 3) Spatial: focus on where signal is expected to come from 4) Averaging: temporal which attenuates uncorrelated noise
N.B. We thus need some knowledge about the characteristics of what we are looking for in the signal, but also of the noise.
So basically, everything outside of the bin that we are interesting in, is dampened or sometimes nulled.
Example 1-channel signal:
To design a filter, we must know what type of signal we are dealing with.
How to recognize whether these signals are induced or evoked?
Class 1: We see an increase in amplitude around 170ms or so. However, we can see that at the same time one epoch signal has a peak, while the other has its minimum. This is a clear indication that this response is not time-locked. Thus we are dealing with an induced response.
Class 2: I tbh have trouble seeing a clear response, but everything is more or less in sync. We are dealing with an evoked response. I think there might also be an induced response here, hard to see.
REVIEW: Slide 41 suggests that I may have it the wrong way around. I did make notes about which one is induced and which one evoked in the lecture though. I suspect that the picture on slide 41 shows two ways of averaging for only one class, without specifying which class... Very unclear.
EDIT: I now think that Class 1 has an evoked response around 150ms, and that class 2 has an induced response around 50ms.
REVIEW with this picture:
Spectral decomposition of signals allows filtering out interesting frequencies.
A spectral decomposition shows frequencies and their amplitudes.
In general, the spectral representation of noise shows a downwards trend.
The higher the frequency, the lower the power (generally speaking / noise)
In the frequency domain differences between signals can also often be more clearly seen. Two signals that may be very similar in the time domain, can be shown to be very different in the frequency domain.
The frequency domain therefore often is very appropriate for designing filters: spectral filters.
Time-Frequency decomposition:
Computed with Short-time-Fourier-transform (STFT).
Plots frequency against time, where color indicates signal strength.
We need for time-frequency filters, where we do not only filter frequencies as such, but frequencies at a particular time.
Relevant plots:
1) A power spectral density (PSD) plot shows the distribution of power over frequencies in a signal 2) A time-frequency-power plot (see below) shows the power of frequencies over time.
Q: does that mean that time-frequency filtering is mostly useful for induced responses?
Averaging
To get a clear plot, averaging noise is helpful. Averaging ten times reduces the noise with about $\sqrt(n)$.
This is not useful for online BCI, but it is helpful in trying to see which frequencies areas you are interested in, as a preprocessing step.
The effect of averaging depends on which features are constant over trials.
If you average in time, then time-features will show, and non-time locked signals will be reduced in the ERP average.
If you average in frequency, then frequency-features will show, and signals that are non-frequency locked will be reduced.
If you average both in time and frequency, then you get information on frequency modulations and their specific timing (this aspect is lost when only averaging over frequency). However, because now the power of frequencies is per time point, instead of an average power over the whole trial, the plot will show more noise.
Averaging in time means that you compute the average amplitude per time point.
Averaging in frequency means that:
1) You decompose the signal into frequencies 2) For each frequency (this is what averaging over frequency means: they will show up on the x-axis) ... 3) You compute the average power.
When averaging over frequency, information about evoked responses is not completely lost. Evoked responses cause an increase in amplitude/power that will show up in an increase in power at a particular frequency. In particular for SSEP the power increase will be at a clear frequency.
Q: What does "averaging in time" mean?
Q: What does "averaging in frequency" mean?
Q: When averaging signals in frequency, in what way do the plots still contain information about evoked potentials?
A consequence of frequency plots also containing information about evoked responses is that based on this plot you cannot exclude an evoked time-locked response, because that time information simply does not show up in that plot.
By using these plots, you can distinguish between evoked and induced responses.
1) Case: frequency modulation shows up in frequency plot 2) But when averaging over time, you see no time-locked effect 3) Conclusion: we have an induced response!
Averaging in time and frequency together give you the best of both worlds, but tend to have higher noise.
Example:
REVIEW: How to read these plots?
Q: What is the advantage and disadvantage of averaging both over time and frequency of signals?
Q: Can you interpret a plot averaged both on frequency and time, i.e. decide whether the response is evoked or induced?
The latter helps you a lot with designing a filter. Filters are thus signal-dependent. You need to design them.
Filtering
Information on timing, frequency, location of the signal allows you to design filters to cut out what is not part of the signal we are interested in.
REVIEW: Example filtering on the example classes. What am I seeing here?
Classification
Machine learning needed to compensate for session and subject variability.
Subject specific classifier
1) Calibration with data where the user's mental state is known 2) Train classifier on this data to learn mental signature 3) Use classifier online and give feedback in real usage
Generalization
Feedback and calibration data should have similar signal and noise properties, i.e. similar:
1) ... stimuli 2) ... sequences of mental-states 3) ... user background mental state (e.g. calibration can be boring, game played is fun) 4) ... external environment
This can be hard.
E.g. if you want to do something on sleeping patients. Feedback requires them to be awake: creates artefacts and difference between calibration and feedback phase.
Avoid overfitting
Overfitting is an issue, because:
- small datasets with few examples per condition
- correct experimental setups make the datasets more specific (e.g. per subject and session) and thus even smaller.
- very high dimensional data (e.g. 64 channels with 800 samples each)
- relatively much noise
def Overfitting according to the slides: "Some classifier parameters become determined by a few outlying points because only these points depend on these parameters."
Two approaches:
1) Reduce the number of features by extracting/selection what you are interested in (manual design) * Preprocessing * Feature extraction 2) Use a regularized classifier for deciding which features are relevant * Regularization: add a preference for certain types of solutions (quite abstract...) * Right combination of classifier and regularization is a robust solution
Q: How to pick the right combination of classifier and regularization? A: use prior knowledge of the signal characteristics and what you are interested in.
Rules of thumb:
- Many features $\rightarrow$ feature weighing - Use L2 quadratic regularization
- Few features $\rightarrow$ feature selection - Use L1 linear regularization
- Few electrodes, many time-points? $\rightarrow$ Group-wise ... (Information fell off the slide)
Q: What are two main approaches for avoiding overfitting?
Q: What does the regularization of a classifier do?
Lecture 5 | Neurofeedback (Guest Lecture Hein van Schie)
Bio- and neurofeedback
Biofeedback includes neurofeedback but is more general. Breath, muscle activity, heart rate are all examples of biofeedback.
Neurofeedback is biofeedback coming from the brain, as measured by EEG, fNIRS, Loreta* etc.
*Loreta: neuro-imaging based on EEG (so has to deal with the inverse problem).
Two paradigms for EEG-based Biofeedback
1) Operant conditioning using neurofeedback 2) Agentic Control using Brain Vomputer Interfacing
How can EEG be used for neurofeedback?
What components to target?
EEG rhythms correlate with patterns of behavior (no 1-on-1 mapping!). In a very generalizing fashion one can say:
- Gamma (20-60Hz): "cognitive" frequency band
- Beta (14-20Hz): activated cortex
- Alpha (8-13Hz): quiet/calm waking
- Theta (407Hz): sleep stages
- Delta (<4Hz): deeper sleep stages
But be aware that "lower" frequency bands can also contribute to cognitive processes (so not only gamma).
E.g. alpha $\rightarrow$ inhibiting irrelevant visual information
E.g. Theta $\rightarrow$ error processing.
Remember that SMRs are brain waves around 12.5-15.5 Hz, and are therefore low frequency beta activity (Beta-1).
N.B.: There are clients that never gain deliberate control over their EEG activity. However, these might be responders to neurofeedback. In other words: response to neurofeedback does not imply intentional modulation of EEG-activity.
Protocol selection for particular goals
Fixed paradigms:
- ADHD? $\rightarrow$ inhibit theta, enhance beta.
- Epilepsy? $\rightarrow$ increase SMR
- Anxiety? $\rightarrow$ increase both alpha and theta.
Individual Quantitative EEG (QEEG):
- Quick measurement of amplitudes of brain frequencies (19 locations is usual)
- Comparison to normal database to spot deviations
- Target 2 std from normal mean for training
Tailored protocol:
- Treat areas that are known to be related to shown symptoms.
Examples of operant conditioning with neurofeedback
This neurofeedback-centered approach focuses on treating epilepsy, ADHD, autism and so on. A lot of claims, that are often not really substantiated.
Sterman's SMR conditioning in Cats:
SMR: Sensorimotor Rhythm, brain wave around 12.5-15.5 Hz. Beta-1 activity?
Wikipedia entry on SMRs:
Neurofeedback training can be used to gain control over the SMR activity. Neurofeedback practitioners believe that this feedback enables the subject to learn the regulation of their own SMR. People with learning difficulties,[4] ADHD,[5] epilepsy,[6] and autism[7] may benefit from an increase in SMR activity via neurofeedback. In the field of Brain-Computer Interfaces (BCI), the deliberate modification of the SMR amplitude during motor imagery can be used to control external applications.[8]
Sterman discovered SMR waves (resembling sleep waves) during training. Later he directly trained cats on producing these brainwaves through operant conditioning: the cats were rewarded when the desired brain wave occurred. He succeeded in making the SMRs stronger.
Later it was found that increasing the strength of these SMRs helped stabilizing epilepsy and thus could lead to clinical applications of neurofeedback for patients.
Neurofeedback treatment of autistic children
Hypothesis: self-monitoring in autistic children is thought to be impaired by an underactive medial pre-frontal cortex. Results: deficits in social cognition and impaired executive functioning.
Summary of three studies (Kouijzer e.a. - including author of this presentation):
All studies test executive functioning with tasks/tests (e.g. trail making test), social behavior with questionnaires, and use QEEG and EEG.
EEG changes:
1) Linear suppression of theta waves over 40 sessions (Main brain wave of interest here) 2) Linear increase in early beta (SMR) over 40 sessions
Executive functioning:
1) Improvement in cognitive flexibity (see: switch task)
Changes in social behavior:
1) Effects in study 1 and 2 2) But no effect in study 3 (SC control).
REVIEW SC: Skin Conductance? I can't remember what this was used for.
- Study 1: Make a trail between numbered points.
- Tests executive functioning
- Results: significant improvement after neurofeedback
- Study 2: Reprioritizing of numbered points in the trailing task
- Neurofeedback subjects showed less switch costs: more flexibility, easier adaptation.
- The control performed worse when they had to redo the experiment.
- Study 3: NO CLUE, see picture.
Overall result: treatment success (the slope of reducing theta/delta power) correlates with improvement in cognitive flexibility as measured by the experiments (from pre- to post treatment).
But it is very important to realize that it is very unclear what is manipulated when theta is trained.
E.g. do you improve memory of spatial location of previous item? Or do you increase working memory? Or do the subjects understand/represent the task better? Etc.
Agentic Control | BCI or Brain Vomputer Interfacing
Goal is to use neurofeedback for communication, movement, environmental control: brain controlled devices in general under the control of an agent (Agentic control).
How? Make unconscious biological (neurological for BCI) signals explicit and learn to control these signals.
Joe Kamiya's Alpha Wave experiments
When a tone played, participants have to say whether they think they currently produce alpha waves. They receive feedback whether the answer is correct.
Some patients were able to achieve very high classification performance. Later, some of those patients also were able to enter the alpha state with one beep, and not enter it with two beeps, showing control over the brain state.
This is an example of agentic control because the subjects gain control over their brain waves (there is also no explicit reward).
Explanation in terms of Ideomotor Theory
Gaining control based on seeing the results/feedback of your actions, seems to be possible based on Ideomotor Theory principles about how children learn.
E.g. a child learns to grasp by trying out actions, perceiving the feedback, and then coupling action and perception.
In a feedback loop between action and perception, a child can:
1) (Forward model) Build internal models for anticipating action effects (in perception) 2) (Inverse model) Build models to select motor commands based on the desired perceptual effects.
Neurofeedback and agentic control as experimental technique
Main idea: if we can voluntarily control a EEG frequency band, then we can use this to investigate specific functions of this frequency band for cognition and behavior.
Reversal: usually you study a cognitive process by its effect on brain waves. Now you study the effect of brain waves on cognition.
Frontal-medial Theta waves
FM Theta associated with all kinds of tasks, concerning mental effort, task shielding, cognitive control. What they seem to have in common is the ability to sustain non-specific attention.
Memory related: Sternberg Task: yes/no, was item present in list that you had to memorize. RT increases with item list (serial exhaustive search hypothesis).
Gamma frequency has a period that is the same as retrieval time (~37ms) in Sternberg task.
Theta / gamma ratio correlates with the number of items that can be stored in working memory (7 plusminus 2).
What is the role of theta power in working memory?
So is A) theta directly related to working memory or B) indirectly, through a relation with attention?
If A, then RT should improve specifically for tasks where items are compared in working memory after theta modulation.
If B, then RT should improve in general, for all kinds of attention related tasks.
See slides for results, I can't be bothered.
Conclusion
- NF on FM theta speeds up RT in general, but does not affect speed for item comparison directly. The latter seems to be related to gamma waves, and the theta wave is more of a "carrier wave" for the gamma.
- FM theta is thus related to attention and task representation (more ACC (Anterior Cingulate Cortex) related; attention and cognitive control )
- Neurofeedback was here used as an experimental technique to investigate the functional nature of brain waves
- NF can be used to control FM theta waves
- Which implies, that FM theta modulation might be used for cognitive enhancement in all kinds of applications (self-controlled).
Applications of mobile neurofeedback
- Clinical
- Cognitive enhancement
- e.g. improve concentration
- detecting optimal conditions for cognitive processing
- Detecting lapses in attention
- Detecting stress
- Gameplay (brain as controller)
Lecture 6 | Induced Response BCIs
Induced response is internally modulatable. Does not depend on an external stimulus. Induced responses are not phase-locked but the power, rather than the phase, is time locked to the stimulus
They are generally harder to do, but beneficial for some type of application.
Q: Why is an induced BCI harder to make?
A: Because on top of recognizing a response, self-paced BCIs must also recognize when a response occurs.
Example signals usable for induced response BCIs:
- mu-ERD/S
- Alpha modulation
- Gamma modulation
Two major types of induced BCIs:
1) Movement based BCIs (mu-ERD/S) 2) Attention based BCIs (alpha lateralization)
Movement based brain signals
Movement Related Cortical Potentials (MRCP): general name for evoked response that is time-locked to movement onset. I thought we were talking induced responses here! Has a very low frequency (0-3 Hz), so in the delta range.
MRCP sub-components:
1) Readiness Potential (RP) * Negative, early [-2, -5s] * Cz-focused 2) Lateralized Readiness Potential (RP) or Bereitschafts potential * Negative, late [-2,0s] * Contra-lateral (left C4, right C3) 3) Post-movement - Positive, [0, 1s].
Q: What are the three components of a MRCP?
Q: What is a mu-frequency (and what is its relation to alpha waves)?
Where does Event related (de)synchronization come in?
N.B. the "mu" band is said to be 8-12Hz, which is the same band as what is usually called alpha. I believe the only difference with alpha thus is that mu is in the motor cortex.
(Lateralized) Readiness Potential
Sequential sub-components of motor potential:
1) General Readiness Potential (RP) (starts up to 2 sec. before movement) 2) Lateralized Readiness Potential (LRP) (In the BBCI paper, 600ms before movement) 3) Post-movement or post-positivity (the "aftermovement" checking the movement is executed correctly)
The general RP (early phase) is equal for different tasks and both hemispheres. The later phases tell more about which body part is moved, e.g. the left hemisphere shows a clear LRP but the right one not: e.g. you are moving your right hand, not your left one.
Reference time (0s) is usually time where the muscles contract.
Usability: LRP or post-positivity are usually used for BCIs because they are stronger and can be used to differentiate between left and right movement.
Example:
- Movement of the right hand originates in the left hemisphere.
- So for right hand movements, a very strong LRP is observed on the left side (C3 electrode).
- Vice versa for the left hand.
Event related (de)synchronization
Decrease or increase of power of the EEG signal in a given frequency band relative to baseline.
The decrease is of the order -2 to -4 microvolts.
ERD/ERS in sensorimotor rhythms: modulation of power in mu (8-12 Hz) and beta (13-28 Hz) frequency band.
- During movement: ERD (both beta- and mu-) over contralateral side of the movement
- After movement: beta-ERS over contralateral motor cortices (beta-rebound).
When a motor action is performed, mu-waves are actually suppressed. This can be somewhat counter-intuitive: a normal EEG pattern (in this case: mu wave) is produced by large numbers of neurons firing in synchrony. It is the suppression of this synchrony, called desynchronization that produces the large negative dip during the LRP, because these large groups of neurons temporarily stop firing in sync.
So an increase in ERD is actually a decrease of power of synchronized activity, not its increase, despite visually being a large spike.
After beta- and mu-ERD, there is a beta-rebound causing post-positivity but at a slightly different frequency band than the beta-ERD (see figure).
Wikipedia on mu (and relation to alpha):
Unlike the alpha wave, which occurs at a similar frequency over the resting visual cortex at the back of the scalp, the mu wave is found over the motor cortex, in a band approximately from ear to ear. A person suppresses mu wave patterns when he or she performs a motor action or, with practice, when he or she visualizes performing a motor action. This suppression is called desynchronization of the wave because EEG wave forms are caused by large numbers of neurons firing in synchrony.
Motor imagery
See required reading paper for this course: The Berlin Brain-Computer Interface: Machine Learning Based Detection of User Specific Brain States | Blankertz e.a. (Or in short, the BBCI)
Typical paradigm (Pfurtscheller e.a. 2006, Blankertz e.a. 2007):
1) Fixate on cross 2) Get a cue with direction 3) Imagine movement in that direction * Position controlled: direct translation to position/movement of cursor. * Rate-controlled: stepwise updating of position.
Goal: Translate voluntary modulations of sensorimotor rhythms caused by motor imagery (left vs right hand resp. foot) into a continuous feedback signal.
1) Discriminability of premovement potentials in voluntary movements. High information transfer rates can be obtained from single-trial classification of fast-paced motor commands. * Other characteristics: Faster and shorter movements require more processing and have a stronger ERD lateralization. 2) Establish asynchronous BCI based on motor imagery. Higher transfer rates (as high as 35 bpm) can be achieved than by using classical conditioning, despite non-invasiveness and no training. Two classifiers are used: 1) Discriminate between left and right hand finger movements 2) Detect upcoming movement before actual muscle movement (recorded by EMG)
In the BBCI paper, no subject training was required (only short calibration) due to advanced machine learning techniques.
Actual and imagined movement has a similar response, but of very different size. Motor signals are very strong and are more in the order of 30-60 microvolts, as opposed to imagined movement in the order of 1 microvolts.
Kinesthetic: imagine yourself performing the movement. High classification performance.
Visual: Imagine yourself watching someone else performing the movement.
What about mirror neurons? Is imagining another move the same as imagining yourself move? Short answer: there is still a similar signal but way weaker than imagining moving yourself, which in turn is weaker again that actually moving. Not useful for BCI.
Quasi-movements: in between movement and imagery, a volitional undetectable (visual) movement. This helps patients give the experience of actually moving. This makes the signal way clearer and approximate really moving more, which might be good for BCI.
Another description: movement execution without physically executing.
Tetraplegic patients produce a similar signal: they attempt movement, but are disabled. So quasi-movements can offer a better simulation of this type of patient than imagined movements (ecological validity w.r.t. the intended patient group). (cf Kauhanen e.a. 2006)
Q: What types of motor imagery are there, and what are their relative strenghts and downsides?
Learning tasks: Neurofeedback
As people become better at the imagined movement, the imagination parts becomes less important. They become more focused on the output.
Through neurofeedback, over time you learn the modulate the signal (vs. trying to get the signal in the first place, I guess). Subjects over time forget about the original imagination task. Training requires a lot of time though.
E.g. McFarland et al, 2010. Training of 3D navigation control. After training brain regions are even active that weren't active before.
TLDR; neurofeedback is possible.
Current motor imagery BCIs
Graz BCI: one of the first "online" BCI systems introduced 20 years ago for directional control. Foot imagined movement for forward, left hand for left, right hand for right.
Applications:
1) Functional electrical stimulation (using strong beta burst after foot imagery) 2) Neuroprosthesis 3) Navigation in VR.
Brain switch: for binary decision making (>80% classification performance). Is asynchronous. Trains on motor execution and classifies with imagined movement. Uses fast (imagined?) foot movements (stronger signal for fast movements).
Wadsworth Center BCI: cursor control applications using weighted combination of left/right mu and beta amplitudes, that are modulated (initially) using motor imagery.
E.g. 2D cursor control. First learned 1-d control both in horizontal and vertical directions, then combine them. 5-15hours of training required. Cursor appears in the middle, targets appear around: task is to drag the mouse(with a trail) to the target box (59-88% accuracy).
Different imagined movements are used per control axis (horizontal and vertical). For 3D control, a depth axis is added that uses different brain signals again etc.
On SMR performance prediction paper
For EEG BCI illiteracy is a prominent issue. Understanding the underlying reasons would:
1) prevent costly (ineffective) training 2) understand neural mechanisms of inter-subject variability
Remember: SMR means sensorimotor rhythm; beta-1 wave.
- Pink line: resting EEG; with mu-peak.
- Relative height of peak (black line) w.r.t. baseline (pink dotted) is indication of success
- rationale: if the signal is big, the activation (where it becomes lower) can become better visible before dipping into noise levels of the resting line. If the signal is small, it immediately dips in noise level. The BCI requires a clear difference to be visible in order to work.
SMR in the relax condition is highest for C3, C4 and motor imagery conditions could be discriminated the best.
Conclusion: Strength of the SMR idling rhythm is an essential predictor for the success of SMR-based BCI.
Patient applications
- Motor programs of SCI patients are intact
- But ERD/ERS features are not always found
- For completely locked-in patients: for neurogenerative diseases (e.g. ALS) it is not shown that the motor system is still intact.
- Application: stroke patients can control robots using this (exoskeleton). This helps cortical reorganization of motor programs to recover lost functionality, because it allows visual feedback to improve learning.
Q: What is a good predictor of BCI literacy for motor imagery BCIs?
Attention based BCIs (alpha lateralization)
Alpha and mu are more or less the same. But mu is used in the motor system specifically.
- Uses alpha band: strong signal-to-noise ratio
- Alpha is a strong an clearly recognizable peak around the 10 Hz frequency band (plotted against power).
- Alpha power (around the whole head) is strongest when people rest and close their eyes
- Alpha power is an Idling rhythm: when little processing occurs synchronization around 10 Hz occurs
Overt attention: move eyeballs
Covert attention: do not move eyeballs but shift attention.
Covert attention is useful because you can modulate brain signals only with attention (so without eye movement). Useful mechanism for selection directions in applications. Over attention BCIs are more likely to be dependent on eye movement.
You can also wonder if for patients that still have adequate control over their eyes, if eye-tracking is not more viable.
Alpha signal can thus be modulated by (covert) attention, N.B. it is depressed by attention, since alpha is an idling wave. When attending to an stimulus in the right hemisphere, left hemisphere alpha is depressed. Using this directional effect, (c)overt attention is highly efficient as a control BCI (up to 86% accuracy).
The attention can fortunately mapped onto particular brain states, by taking the "topographic distribution of covert attention into account" (cf. Wolpaw and McFarland, 2004). I think what this means, is that attending to different locations in the visual field, activates different brain locations more strongly that correlate with that visual field location. See next figure:
Q: The lecture slides are not explicit about whether only covert attention or also overt attention can modulate alpha waves. Overt attention is definitely useable (more even) in BCIs, but does it specifically modulate alpha waves as well? A: Attention in general modulates alpha activity. The fact that these BCIs still work with covert attention shows that attention itself (and not eye movement) modulates the alpha wave. In the case of overt attention, the use of eye-movement likely heavily influences performance on top of that attentional effect.
Functional role of alpha for memory
In short: repression of alpha waves (mainly occipital lobe) seems central for memory formation.
Alpha inhibition hypothesis | What is alpha?
- Idling hypothesis (as explained before)
- Alpha inhibition hypothesis
The latter: alpha is not idling (so the result of synchronization in the lack of activity), but instead is an active process that inhibits brain areas in rest states. So an alpha wave is not a consequence of activity (idling synchrony in the "idling hypothesis"), but a prerequisite for active processing; a top-down mechanisms actively controlling processing. So alpha is low when processing is going on, because then it stops actively inhibiting that brain area.
Lecture 7 | Evoked Potentials
What are evoked potentials?
Induced: You yourself initiated a task
Evoked: show picture, evoke response after onset of event, time-locked.
Three flavors:
1) Transient 2) Steady-state 3) Broad-band
Q: What are three types of evoked responses?
How to get evoked potentials? --> ERP
ERP are average responses. This reduces noise but due to the time-lock we still maintain the response itself.
They do not only have a temporal profile, but also a spatial distribution: a topography with a topoplot. P3 is everywhere, P1 and P2 only at back of the head.
Transient response
ERP is strictly speaking an averaging algorithm, but sloppily ERP also refers to transient responses.
Also: tEP (time evoked potential), TDMA (?).
Q: What does TDMA stand for? Time-division multiplce access? I have no clue.
Commonly: oddball paradigm.
Common examples:
- ERN: Error Related Negativity or (ErrP), error detection, fronto-central, 80-150 ms.
- MMN: Mismatch Negativity: detection of really different stimuli, frontal, 150-250ms.
- N200: Motion detection.
- P300: Target detection, "aha" response for infrequent but salient events. (300-600ms)
- Salient, i.e. task-related.
- P300a: attention processing, novelty, found in three stimulus oddball paradigm, by including an distracter stimulus that will have this "novelty" effect.
- P300b: The "usual" P300 in response to target recognition, and mostly used in BCI.
ERN and MMN are similar but not the same, and have different latencies.
Less common ones:
- ELAN: Early Left Anterior Negativity (syntactic processing, 100-300ms)
- N400: Semantic processing, higher for semantic errors (250-500ms)
- P600: Syntactic updating (grammatical errors, 500-800ms)
Q: Can you name different types of transient responses, and their latencies?
Q: Explain for what stimuli these tEP's occur: ERN, ELAN, MMN, N200, P300, N400, P600.
Evoke tEPs
With oddball paradigm,
1) Two stimuli: show irrelevant stimuli and an infrequent target. 2) Three stimuli: add also a deviant stimulus * P3a distractor * P3b target
Steady-state responses
- Fast, periodic
- frequency tagging, use frequency responses to distinguish these signals
- very periodic, fast, with a fixed frequency. So can be analyzed easily in frequency domain.
- Constant inter stimulus interval (ISI), which makes sense since the input has a given frequency
- SSEP, fEP (frequency evoked response), FDMA
Q: What does frequency-tagging mean?
Q: What is the difference between ISI and SOA?
So responses are at the exact same frequency that you apply as a stimulus.
Harmony in plot: response at 30, also smaller response at 60 etc.
Diagonal: always get back what you put in.
Habituation: signal decreases over time if the stimulus stays the same.
ERP can also be applied to this. Just not as necessary
Underneath steady-state responses are ERPs
Increase in power for the frequency you apply to the system.
most useful: 10-40 Hz
Broad-band responses
Code-modulated.
cEP: code evoked potential
- Noisy, various frequencies, non-periodic
- Therefore complex response profile
- Jittered ISI, not fixed like with Frequency-responses.
- Broad-band responses are more robust because a broad-band of frequencies is used. Whereas in SSR a single frequency response can be completely disturbed by a noise stimulus of the same frequency.
- More robust to subject-specificity it relies less one a specific frequency response profile. E.g. you train a classifier on an alpha response at 10Hz in one subject, and another subject has a strong peak at 13Hz.
- Noise-tagging: present pseudo-random noise-stimuli with various frequencies, later correlate (random) brain responses with the noise-tags.
ERP is not synonymous to transient, but can be applied to all three types of evoked potentials, since it is an averaging technique.
Q: What is noise tagging? Given an example.
Noise tagging info from Donders Institute
utilize pseudo-random noise-codes as stimulation sequences (i.e., stimuli are tagged with noise) for evoked Brain Computer Interfaces (BCI). These so-called noise-tags exhibit a spread-spectrum signal and when applied as stimuli, these evoke Broad-Band Evoked Potentials (BBEP) visible in the EEG.
We have designed a generative method β Reconvolution β which combines both deconvolution and convolution to learn and predict responses to these noise-tags. Specifically, adhering to the superposition hypothesis, the complex BBEP can be decomposed into a summation of time-shifted versions of a/some transient response(s).
Preferred frequency and broad-band responses for different modalities
Visual: SSVEP and BBVEP (fVEP - cVEP)
- primary visual cortex (occipital)
- preferred ~20Hz.
Auditory: ASSR - BBAEP
- Primary auditory cortex (temporal)
- Use both a carrier frequency and an amplitude modulator (See lecture 8b)
- Preferred ~40Hz.
Sensory: BBSEP
- Sensory-motor cortex (central/parietal)
- Can be mechanical, electrical, ultrasonic stimulation.
- Preferred ~20Hz.
Linear Superposition Hypothesis
The response to a sequence of events is the linear summation of the responses to the individual events.
This approach is actually convolution with delta pulses (where one is a brain response to a single stimulus event)
Q: How does a noise tagging BCI use the linear superposition hypothesis?
Habituation is not modeled in the Linear superposition hypothesis, so it is not completely biologically plausible.
SOA: from beginning of one stimulus to beginning of the next
ISI: from end of one stimulus to beginning of the next.
So SOA = ISI + Stimulus duration
Evoked Potentials Application in BCI
ERN: Error detection.
If ERN noticed, the BCI did something wrong. Undo action or choose other class (if binary).
In practice, having these two steps only increases inaccuracy, because now two classifications have to be performed.
P300: Brain fingerprinting
Use ERP if someone committed a crime. Do they recognize criminal scene? Guilty person shows high P300 response due to "guilty knowledge". (Cf. Larry Farwell, on serial killer JB Grinder).
Limits: BCI is not perfect, classification is imperfect, signal is noisy. Also: crime scene might always evoke some response, even if not guilty.
Other applications
- Medical: Depth of anesthesia
- Test size of visual perimetry, e.g. for infants
- Training: Use MMN to quantify how good people can detect differences, e.g. in phonemes, and use this to train people to hear this difference. (See 2nd lecture by Desain)
- Gaming: Use SSVEPs to play a balancing game (binary left/right task)
- Home automation: BBVEPs for home automation. Last two use frequency codes to distinguish.
But main application: communication. Examples follow.
Visual P300 speller
Farwell & Donchin.
Mainly based on P300, but also used P100 and N200.
- Epoch: one row, one column
- SOA: time between start of two stimuli
- Inter stimulus interval (ISI): end of first to start of second (< SOA)
- Sequence: all rows and columns once
- Trial: multiple sequences needed per trial (classification of symbol), because more sequences are needed for averaging and checking for P300 response.
Preprocessing
- Linear detrend, remove slope
- Common average reference (CAR): take average of all electrodes and subtract from all data
- Remove outliers
- Remove eye artefacts
- Spectrally filter data
Calibration and Classification
Ask subject to look at A (100 times), calibrate. Repeat for all letters.
Train classifier: binary problem. Detect P3 or not?
online: apply cross-validation to fit hyper-parameters (e.g. regularization)
offline: apply cross-validation for performance estimation.
Auditory P300 Speller
Audio is covert
Also matrix based, oddball paradigm.
For auditory P300 accuracy drops from around 95 to 65%.
Tactile P300 speller
Comparable to audio, around 65-70% accuracy.
Rows in matrix speller correspond to fingers. Braille stimulations are used for the letters.
SSVEP-based visual speller
Fastest BCI to date, up to about ~60 char/min so 1 char/sec.
Each target has a particular frequency and phase. When attended to this results in a specific SSVEP response. Classification is done by template-matching the response onto the frequency-coded stimulus.
Requires accurate synchronization between EEG and stimulation device. If synchronization is lost, the BCI fails completely.
BBVEP-based visual speller
Circular shifted m-sequence. Known to barely have correlation. The hope is that the responses then are also not correlated, i.e. one brain response strongly correlated with one stimulus input, but not with another. Very precise synchronization is required between stimuli and BCI.
MindAffect version:
1) Have input code of events / pulses. 1 = flash white letter. 2 = flash black letter 2) Decompose events into individual events (summing them again would compose the original signal) 3) In the response domain we can template match the expected responses with the timing of the separate stimuli 4) Because you use similar inputs, you know which responses in the response domain should correspond. 5)Based on this, a signal can be reconstructed by composing and summing up the individual responses again. (Linear superposition hypothesis). 6) This offers a template: the brain response with the highest correlation with this template can be associated with the unique input that produced it.
Composition part: do parameter tuning with gradient descent on blue and green signals
Uses Linear summation hypothesis. How?
BCI Performance: Information Transfer Rate
ITR combines accuracy and duration and the amount of info available (nr of classes).
Full formula using logarithms not included; summarized formula based on which you can follow the reasoning below: $I(#C;Accuracy)/T$. Read as: mutual information between the number of classes and the predictions, divided by the trial duration.
Calibration time is not included.
The ITR takes into account some trade-offs:
- Increase accuracy: might cause longer trial duration, or less amount of classes, which is penalized
- Decreasing the trial/classification duration might lower the accuracy or lower the number of classes that can be handled
- Increasing the number of classes might decrease the accuracy, or increase the trial duration.
Lecture 8 | Clinical applications for rehabilitation | Katja Dijkstra
Clinical applications: Focus on Replace, Restore, Improve
Three general options of BNCI Horizon 2020 categories:
1) Replace natural CNS output : communication & env. control 2) Restore "" : control of robots / orthosis 3) Improve "" : rehabilitation of functions
Also see lecture 1 and 2.
Replace: Environmental control & communication
Problems:
- Most research one with healthy subjects, even if applications is aimed at patients
- Patient studies are non-trivial
- harder to recruit
- need to accommodate for disabilities in experiments
- ethical approval (e.g. patients might get false hope)
- Healthy subject study is not guaranteed to extend to patients (Ecological validity?)
Q: To what extent does the P300 speller depend on eye gaze? A: To a large extent. Classification performance with covert attention on the standard matrix speller is poor
Example of studies on patient populations:
- Advanced ALS patients can control the P300 speller reliably
- Use of SMR for patients with motor impairments
- BrainPainting: ALS patients can paint with adapted P300 speller
But little is available for long-term use. The translation to a product is hard.
Restore: BCI controlled orthosis
"Restore" broken brain-muscle connections
Goal is that over time BCI becomes increasingly automatic. From artificial actuator, to body extension.
Orthosis: a braci, splint, other artifical external device to support movement
Examples with patients:
- Use SMR to open/close a hand orthosis, for stroke patients with chronic hand plegia
- This did not improve motor function / so more replacement than restoration in the end.
- For Spinal cord injury patients with functional electric stimulation (FES) control using intracranial implants.
- see slide for setup and results
Increased profiency over time: less prefrontal cortex, premotor cortex, and posterior parietal cortex activation. (Areas related to learning and abstract task learning).
- Rat study: feedback based on brain state instead of actuator, rats eventually "figure this out" and stop moving limbs. The point here is that the rats integrate the actuator (steered by neuronal activity) becomes part of the rats body schema to such an extent, that the rat starts using it as a controlling device independent of limb movement.
Rehabilitation BCI
Examples with operant conditioning (see neurofeedback lecture):
- Epilepsy: SMR training increasing seizure threshold in cats, reducing seize size in humans
- ADHD
- Motor rehabilitation
- See slide for detailed scheme
- Cognitive rehabilitation
Motor rehabilitation
After stroke brain reorganization is most active. Therefore: in first 6 months after stroke most gain in rehabilitation.
Various bottom-up approaches that depend on making movements, to rehabilitate brain. The idea is that when devices assists in making close-to-normal movements, that this is positive feedback for restoring normal efferent signals and also produces more adequate training because the afferent incoming signals are more normal.
An example is robot training: intensive and task-oriented learning assisted by robots.
A top-down approach starts with brain stimulation and tries to improve the brain signal itself through neurofeedback.
BCI Rehabilitation --> Robot training + BCI. A BCI could offer a combination of both bottom-up robot training with top-down neurofeedback based on operant conditioning.
1) BCI can provide multisensory feedback, to increase feedback loop in operant conditioning for faster recovery. 2) Couple intention with action by intention reading and assisting the patient in the intended motor action.
Q: What three types of BCI applications are used in clinical settings?
Q: What is a main advantage of a motor rehabilitation BCI?
Cognitive rehabilitation
- Skill training: practice until point of overlearning (why?)
- Strategy substitution: strategy development for lost function
- When it comes to memory training/rehabilitation, neurofeedback outperformed all traditional methods. (Not for other cognitive processes though).
Lecture 8b: Auditory BCIs
Auditory ERPs versus Visual ERPs: similar effects, but less strong. P300 and MMN still present.
MMN is an early response and does not require attention. Useful for auditory BCIs.
Example 1: MMN BCI with neurofeedback (Chang e.a. 2014)
MMN oddball paradigm with 1000Hz tones and infrequent deviant 1008 Hz tone.
Task: make a green circle grow.
If the difference is picked up (MMN shows), then the circle grows: positive neurofeedback. Subject must press button in time frame after deviant stimulus.
This setup can perhaps be used to learn foreign speech sounds (cf. example lecture 2.) The accuracy of the neurofeedback group improved with 25% versus 1-2% in the control.
Steady State Auditory Evoked Potentials
How are they evoked?
1) Have a carrier tone with a fixed frequency 2) Modulate that carrier with another wave at a certain frequency 3) This will generate a pulsing sound at different latencies, that will show differently in the SSAEP/ASSR brain response
You can also use noise tagging. Convert each input code into a particular modulating wave.
Example 2: Auditory Attention BCI for binary choice: Hill & Scholkopf 2012
- Left and right audio stream.
- Modulate carrier tone with
- Pulse (short vs long)
- Frequency tag (38Hz vs 42Hz)
Task is to attend one of the streams and count target pulses in that stream.
- ERP with N100 and P300 is elicited by target pulse in attended stream
- SSAEP/ASSR elicited by frequency tag, but not strongly modulated by attention (for short trials).
N100 is an early preattentive response that is strong for audio processing.
Example 3: Audiovisual speller of Belitski e.a.
See summary of their paper.
Example 4: Auditory Attention to speech BCI
For two speech streams (Kenny and Obama), task is to focus on one of the speakers only.
ECoG measurements show that envelope of high gamme correlates with the attended speech. Important result:
Neural activity tracks/strongly correlates with the temporal envelope of speech, and in particular the attended stream.
Relevant brain areas of the ECoG: Broca's and Wernicke's area.
Now the task of the BCI is to categorize which auditory stream is attended to. Multiple conditions: 1) decide for a single channel, 2) decide for multiple channels.
Performance is estimated offline with 10 fold crossvalidation.
To assess significance, a randomization test is used: remove all correlation between speech and the measured ECoG envelope by reversing the speech signal, and repeat the analysis 100 times. This will provide a distribution of random performance to be used as a baseline in the significance test.
Results: 7/12 participants had significant performance for identifying the attended speech. Attention to speech in combination with ECoG is promising!
Conclusions
- Neurofeedback based on (subconscious) perceptual responses can be used for perceptual learning
- Auditory based P300 approaches can be effective for BCI, though they are generally limited in information transfer speed compared to visual BCI's
- SSEPs are not strongly modulated by attention in the auditory domain (no auditory equivalent of gaze, like in visual modality)
- Communicative auditory BCIs offer an alternative for patients in which vision is/becomes compromised
- A combination of modalities (e.g., visual and auditory) can be superior to either alone
- With ECoG it is possible to measure more sophisticated auditory responses, e.g., the neural tracking of speech
Recap lecture
The slides are extensive, look at them.
Lecture 1: literary example stories do not need to be studied (Mignon asked, yolo).
Lecture 2: difference between enhancement and improvement are a bit unclear.
Enhancement is more focused on enhancing a particular body "system" whereas improvement is more focused on improving a person('s abilities).
For Detectors, you need to know the "ballpark" temporal and spatial resolution, not exact values. E.g. the difference between a scale on seconds vs milliseconds.
PET & MRI are not really mentioned, so not relevant. Know EEG / MEG in detail: what do they measure exactly?
Decoding/Filters:
- Evoked response -> Look at Time domain (is about finding average time-locked response)
- Induced response -> Look at Frequency domain (is about amplifying frequencies)
Averaging over frequency domain --> Get estimate of induced response
Averaging over time domain --> Get estimate of evoked response
First you identify the signal in the right domain, and then filter away unwanted properties in a filter appropriate to that domain.
Evoked BCI's
Review distinction between P300a and P300b. (I wasn't aware of this difference).
P300a depends on stimulus. For BCI we need P300b.
SSEP is a bit confusing: it's evoked because it's time locked, even though it modulates some frequences (char. of induced response).
What makes SSEP useful? Not because the response is related to a stimulus, but because it's also modulated by attention.
Induces BCIs
Two parts: movement-based, and attention-based.
- Movement:
For evoked respons: Deflection increase until movement onset, then resets, in lateral brain side.
For induced: Know the differences between ERD/ERS. How does signal look like, related to movement preparation and movement onset.
If you understand this well, you are able to give instructions on how to design a particular BCI for a particular purpose (what signal, what location, what filter)
movement-based BCI: relative height of alpha peak indicator of BCI success. (Relative to decreasing line amplitude vs frequency).
- Attention-based BCI
Mainly based on alpha, which is strongly modulated by alpha wave. Best results in visual domain.
Idling hypothesis: idling neurons start firing synchronously and this creates the alpha peak
Inhibition hypothesis: something actively increases alpha to block processing. (Sort of the opposite of idling hypothesis,)
Clinical applications
Recruitment sometimes is a good thing, something not: after a stroke neurons connected to e.g. a limb will be recruited by adjacent neurons, but for BCI applications you might want to keep those neurons intact. Use BCI to bypass broken connection to keep unreachable neurons active.
Auditory BCIs
Lecture by Karen.
Focus on Gamma band envelope (induced response).
If you look at the gamma band, you see that it is positively correlated to speech strength/volume. Compare black and green lines in slides.
For BCI this means that the auditory stream that's attended to gives a stronger speech signal, which correlates better with the gamma band. This can be exploited in BCIs.
Neurofeedback
Nothing special.
Example exam
See slides.
Why is BCI hard?
- Three types of variability
- Noise / signal weak ... etc.
Draw Time Frequency combined plot: Square with boxes for S1 and S2, in the right ballpark.
Q5a:
Q5b: integration into body schema
Q6a: mention ERD and ERS signature relative to movement
Q6c: Why quasi-movements useful for BCI? Stronger than imagined movement. Attempt at movement looks more like quasi-movements, so allows to approximate in healthy subjects the signature of impaired subjects.
Q7: is not representative; too essay like. Questions on the exam will be more specific.
On ex. Second language learning using mismatch-negativity. Another SSER-based example. etc.
MEG measured a subset of what EEG does, but does it better. MEG is orientation specific, EEG is not.