The Berlin Brain-Computer Interface: Machine Learning Based Detection of User Specific Brain States | Blankertz, Krauledat, Curio, Mรผller
For the BCI course we do not need to remember any mathematical formulas, but all underlying concepts must be understood.
BBCI:
- Translates movements or movement intention into control commands
- non-invasive EEG-based
- no training required due to smart machine learning that adapts to user-specific brain signals
- 20 min calibration session, but no operant conditioning at all (with 50-100 hours of training)
Experimental paradigms
- Analyze predictability of limb movement long before the actual movement takes place, by using movement intention as measured from the pre-movement (readiness) EEG potentials.
- Used: off-line study
- online feedback paradigm
- contrasting brain patterns of left vs right hand resp. foot
- Translate voluntary modulations of sensorimotor rhythms caused by motor imagery (left vs right hand resp. foot) into a continuous feedback signal.
Introduction
Key features of BBCI:
1) use of established motor competences as control paradigms 2) high-dimensional features derived from 128-channel EEG 3) advanced machine learning techniques 4) no need for subject training (due to (3))
Why Machine Learning?
Usual brain research averages over a lot of subjects and all their trials. There is however:
1) huge subject-to-subject variability 2) per subject, a huge session-to-session variability 3) per session, variability between trials.
BCI however needs to identify mental states correctly in one trial (duration < 1 sec.).
"The tackling of the enormous trial-to-trial variability is a major challenge in BCI research. Given the high subject-to-subject variability it seems reasonable to have a system that adapts to the specific brain signatures of each user."
Overview
1) Discriminability of premovement potentials in voluntary movements. High information transfer rates can be obtained from single-trial classification of fast-paced motor commands. 2) Establish 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.
Premovement potentials in executed movements
The task is to imagine motor movement with fingers or foot. However, note that in this research the subjects also are allowed to actually move their hands resp. feet. This is because "vetoing the actual movement" is in itself a second task, that could be a confounding factor.
This suggests:
1) Since imagining movement (without actually moving) in healthy subjects involves active vetoing of movement 2) and paralyzed patients imagine movement without this second aspect 3) it is better to let healthy patients also perform the movement, to enhance generalization of found results in healthy subjects to paralyzed subjects.
The goal is the make predictions based on "imminent movements prior to any EMG activity to exclude a possible confound with afferent feedback from muscle and joint receptors contingent upon an executed movement."
Left vs right hand finger movements
Goal: predict in single trials the laterality of imminent left vs right finger movements prior to the start of EMG activity.
Uses readiness potential: "a transient postsynaptic response of main pyramidal peri-central neurons". RP leads to a "pronounced cortical negativation which is focuses in the corresponding motor area", so contralateral to the (imagined) moving limb.
"To relate the prediction accuracy with the timing of EMG activity we recorded electromyogram (EMG) from M. flexor digitorum communis from both sides." (i.e. a flexing muscle in the hand required for finger tapping)

To control for eye-movement: EOG (electrooculogram)
"The choice of the relative position of the classification window with respect to the keypress makes sure that the prediction does not rely on brain signals from afferent nerves."
In the above picture the timeframe is -120ms, before the onset of the actual movement/EMG signal.
Performance measured in bits per minute (bpm): trade-off accuracy vs. decision speed.
Results: "refractory period of the RP is short enough to effectively discriminate pre-movement potentials in finger movement sequences as fast as 2 taps per second."
But this result is highly subject-specific, especially in a self-paced paradigm.
Preprocessing and classification
Feature extraction method:
- emphasize low frequency content using cosine convolution window: information content can be expected to be largest in pre-movement trials
- Filter after using Fourier Transform, leaving only the pass band you are interested in (late pre-movement signal)
- RP-features normally distributed with equal covariance matrices (under these movement conditions)
- Classification with RLDA (Rectified Linear Discriminant Analysis).
- Regularization needed to avoid overfitting due to high-dimensional data.
- With a linear classifier, the learned projection vector of the classifier can be visualized and validated as a neurophysiological topography.
RP-based feedback in asynchronous mode
"For the implementation of a useful continuous feedback in an asynchronous mode (meaning without externally controlled timing) we need two more things: (1) the classifier must work reasonably well not only for one exact time point but for a broader interval of time, and (2) the system needs to detect the build up of movement intentions such that it can trigger BCI commands without externally controlled timing."
Solution to 1: Jittered training. Per keypress, take more (in this case 2) samples at different time windows before the keypress. This makes the classifier somehwat invariant to time shifts of the samples to be classified: better stuied for online application to sliding windows.
N.B. "Extracting samples from windows ending at 50 ms before keypress may seem critical since EMG activity starts at about 120 ms before keypress. But what matters is that the trained classifier is able to make predictions before EMG activity starts no matter what signals it was trained on."
Two classifiers used:
1) one to discriminate between left and right hand finger movements. This one alone does not sufficiently distinguish movement intention and rest condition, therefore (2) is needed. 2) one for detecting upcoming movement
Experiment (no independent control of two conditions):
- move x-axis with left-right discriminator
- move y-axis with movement intention

Experimental setup
- Feedback study, 6 participants
- EOG and EMG to control for non central nervous system activity
- Calibration / machine training, labeled EEG data gathered
- Three instructions: move (L)eft hand, (R)ight hand, right (F)oot.
- First learn discrimination, then binary classifier for feedback applications
Three feedback applications
1) Position controlled cursor. Direct translation of output to horizontal position of cursor 2) Rate controlled cursor. Control relative to current position, i.e. updated stepwise by classifier output. 3) Basket game. Ball falls down and horizontal position is controlled to let the ball fall in indicated basket (left, middle, right) where middle is twice the size of left and right.
Processing and classification
Goal: extract appropriate spatial filters to optimize the discriminabilty of multi-channel brain signals based on ERD/ERS effects of the (sensori-) motor rhythms.
- What are ERD/ERS effects?
"Once these filters have been determined, features are extracted as the log of the variance in those surrogate channels"
The filters are calculated per subject by Common Spatial Pattern (CSP) analysis.
"The objective of the CSP technique is to find spatial filters that the maximize variance of signals of one condition and at the same time minimize variance of singals of another condition" (Typo's are in the original text). Linear algebra details: see paper.
Results
Measurement: information transfer rate (ITR) in bits per minute (bpm).
$$ITR = \frac{number of decisions}{duration in minutes}$$
Where duration is the total duration of the run including all inter-trial intervals.
"In contrast to error rates or ROC curves the ITR takes different duration of trials and different number of classes into account."