Brain computer interfaces

EEG decoding and command evaluation

IntentLab explores how models recognise imagined hand movements in recorded EEG and measures when their predictions would produce useful or unwanted commands

The latest study tests separate models on 27 new participants from Dreyer2023, with the original PhysioNet decoder available to explore below

Nine EEG electrodes used by the decoder A schematic top view of the head with FC3, FCz and FC4 in the front row, C3, Cz and C4 in the middle row, and CP3, CPz and CP4 behind them FC3FCzFC4 C3CzC4 CP3CPzCP4 Top view of the head
  1. Recorded EEG
  2. Decoder
  3. Left or right
Recording layout and prediction stages
N/Apeople after data checks
N/Ausable EEG trials
N/Apeople held out

PhysioNet EEG recordings · 160 Hz

Experiment

Choose a recording

Choose a participant the model did not train on, then press Run decoder

EEG recording

Three second EEG recording

Unseen participant
Cued imagery: N/AN/ADownload this signal ↓

Change the conditions

Test the same signal with a controlled disturbance

These repeatable disturbances are applied after preprocessing to test specific sensitivities, without simulating every real headset failure

Prediction

Ready to decode

Server processing N/A
Browser round trip N/A

Server timing includes prediction and channel analysis; the browser round trip also includes the request, response and JSON parsing

Left N/ARight N/A

Choose a trial and run the decoder

Predictions below this confidence level produce no command

Command replayWaiting
L
R

A simulation using recorded EEG, with no headset or physical device connected

Each input is a three second recording from 1 to 4 seconds after the cue, filtered offline; the timings above exclude recording acquisition and do not measure live control delay

Channel sensitivity

Effect of removing an electrode

Channel removal

Each electrode is set to zero in turn to measure the change in the model’s probability of right fist imagery

The schematic shows model sensitivity to channel removal, which cannot establish where a thought originates in the brain

Frequency content

Power across frequencies

Alpha / mu · 8 to 13 Hz Beta · 13 to 30 Hz

Average power across the displayed channels, with the filter informed by motor imagery research [1]; the spectrum alone cannot identify the imagined movement

Evaluation

Results on unseen participants

Participants remain separate across training, validation and testing so the evaluation measures generalisation to unfamiliar people

Selected model · held out peopleN/A

Participant macro balanced accuracy

When the model accepts a commandN/A

At the declared fallback confidence threshold

Chance level reference50%

Balanced accuracy for this two class task

Candidate models

Model comparison

Model Validation Test

Both columns report participant macro balanced accuracy for every candidate, with the serving model selected using validation results only

Accuracy and coverage

Confidence thresholds

Each point represents a different confidence threshold; high thresholds retain fewer trials, making the resulting accuracy less certain, so this exploratory chart should be interpreted alongside coverage

Participant variation

Results by participant

Each bar includes all eligible test trials for one participant, while the demonstration uses their first six valid trials without selecting for successful predictions

Signal disturbances

Sensitivity to signal disturbances

The selected model remains frozen while these disturbances measure sensitivity under specific conditions, without establishing suitability for a wearable or assistive device

Inspect calibration, confusion matrix and data exclusions +

Probability calibration

Every prediction, including errors

Rows: recorded label · Columns: model prediction · All test trials before abstention

Data quality audit

Full provenance and exclusions ↗

Interpretation

Methods and limitations

01

Research question

The experiment assesses whether a model can recognise imagined left and right hand movements in recordings from participants absent from its training data, using a fixed EEG window and withholding commands when confidence is below the selected threshold

The comparison includes common spatial patterns [4] and a compact convolutional model inspired by EEGNet [5], with selection based on validation participants

02

Limits of the evidence

The selected model reached 61.1% participant macro balanced accuracy, which exceeds the chance reference, although its confidence threshold did not meet the validation target for reliable control, as discussed in the research report

Visual cues, eye movements and muscle artefacts may contribute to the predictions, so classification performance alone cannot demonstrate that the model has isolated motor intention

03

Further evaluation

The separate Zhou2016 session study evaluates a simple command policy on later recordings from four people, including unwanted commands during instructed rest and intended cues that receive no correct response

These recorded experiments do not establish live control, and the original decoder remains limited to two cued imagined movements