A Confound-Controlled EEG Handwriting Dataset for Foundation Models

Srinivas Ravishankar, Ishayu Ghosh, Nora Zajzon, Teng Fei, Virginia R. de SaNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Foundation models for EEG have recently crushed standard motor imagery benchmarks—like telling apart imagined left- and right-hand movements—but those tasks are relatively coarse. When researchers tested these models on a much finer-grained challenge—decoding individual handwritten letters (L, V, O, W) from brainwaves in a new, confound-free dataset—smaller specialist models actually beat the foundation models. Even more surprisingly, knowing exactly when a movement starts and boosting test-time signal quality matter far more than simply throwing more training data at the problem.

What Problem Does This Paper Address?

Brain-Computer Interfaces (BCIs) can help people with severe paralysis communicate, but non-invasive EEG-based BCIs are still painfully slow. Decoding imagined handwriting—inspired by breakthroughs in invasive neural implants—could dramatically boost communication speed.

There’s just one catch: many existing EEG handwriting datasets accidentally let decoders "cheat." Because of how the experiments were designed, models could rely on:

  • Eye movements (e.g., participants looking at predefined boxes or following the pen tip on a screen).
  • Visual cues (e.g., flashing the letter right as writing begins, so the brain's visual response leaks into the motor window).
  • Time itself (e.g., collecting all trials of "A" in one block and "B" in another, letting models exploit natural EEG drift over a session).

The authors set out to build a clean, confound-controlled handwriting dataset and use it to test whether today’s EEG Foundation Models (FMs) can handle fine-grained motor decoding.

Methods

To eliminate those confounds, the authors designed a strict experimental protocol. Participants wrote (or imagined writing) letters on a desk tablet while staring at a fixation cross on a monitor—receiving zero visual feedback of their pen. Letters were presented in a pseudo-random order so no letter appeared twice in a row and every block of 4 trials stayed balanced.

Figure 1: Experimental design for a single trial. The participant fixates on the monitor while writing on the tablet on the desk, to avoid visual feedback. One of the four letters is shown for 800 ms, followed by a blank screen for a randomly chosen period between 400-600 ms. Then a fixation cross appears on the screen for 1000 ms, during which the participant writes the letter on the tablet while looking at the cross. This is followed by a blank screen for 500 ms, after which the next trial begins.

They evaluated three classic specialist models (EEGNet, EEGConformer, SPaRCNet) against three recent EEG Foundation Models (CBraMod, MIRepNet, REVE) under both Linear Probe and Full Fine-Tuning setups. Crucially, they tested three progressively harder settings:

  1. Motor Execution (ME) movement-locked: Epochs aligned to the exact moment the pen starts moving (the standard "easy" control).
  2. ME cue-locked: Epochs aligned to the "go" cue, meaning the model doesn't know the exact movement onset.
  3. Motor Imagery (MI) cue-locked: Participants kept their hands on their laps and only imagined writing—the realistic scenario for locked-in patients.

Datasets

  • LOVW-8.5K (Newly Introduced): Over 8,500 trials collected from 4 right-handed participants using 32 EEG channels (concentrated over motor areas) across multiple sessions—some separated by over a year. It covers four letters (L, V, O, W), chosen because they can be written without lifting the pen and offer distinct geometric/discontinuity profiles. Unlike prior work, it pairs both Motor Execution and Motor Imagery.
  • Crell & Müller-Putz (2024): A 20-participant, 10-letter confound-free dataset from prior literature, used here to replicate key findings at a larger population scale.

Key Insights and Ideas

  • Foundation models aren't there yet for fine-grained motor tasks: Despite dominating standard motor imagery benchmarks, FMs lost to a compact, task-specific CNN (EEGNet). One culprit? Strict preprocessing: MIRepNet filters data to 8–30 Hz (standard for left/right-hand imagery), likely wiping out slower 0.3–3 Hz signals that carry handwriting kinematics.
  • Onset timing is a massive hidden crutch: Much of the high accuracy reported in prior literature relies on knowing precisely when movement begins. When onset is unknown (cue-locked), performance plummets—and standard data augmentation (randomly jittering training windows) doesn't fix it.
  • Test-time Signal-to-Noise Ratio (SNR) beats dataset size: While adding more training trials steadily improves accuracy, single-trial EEG is simply too noisy. Boosting test-time SNR (by averaging multiple aligned trials of the same letter) yields dramatic gains.
Figure 3: (a) Participant-wise decoding performance on 3 different settings. Performance drops significantly when motor activity onset is unknown (blue vs orange), indicating a key issue to overcome. Imagined handwriting (green) can be decoded with higher-than-chance performance except for S3. (b) Mean cross-validated classification accuracy (±1 SD across folds) for participant P1 as a function of temporal jitter half-width applied to movement-locked EEG epochs. Data augmentation is where each trial is randomly shifted on every access, whereas no data augmentation applies a single, trial-specific temporal offset without augmentation.

Key Results

  • Specialist vs. Foundation Models (4-way ME movement-locked): EEGNet led the pack at 41.3% ± 4.1% (chance = 25%), significantly outperforming REVE (32.2% FT), CBraMod (30.8% FT), and MIRepNet (25.0%, at chance). On the 20-subject replication dataset, EEGNet again beat REVE (41.1% vs. 39.0%).
  • The Onset Penalty: Dropping from ME movement-locked to ME cue-locked reduced EEGNet's average accuracy from 41.3% to 32.45%. Even a tiny ±0.2s temporal jitter caused accuracy to drop by over 10%.
  • Imagined Handwriting (MI cue-locked): Decodable above chance in 3 of 4 participants, averaging 28.8% ± 1.1%.
  • SNR vs. Scaling: In participant P1, scaling training data yielded modest gains, whereas averaging 8 test-time trials boosted accuracy from 45% to 78%.
Figure 4: Decoding performance on P1’s last 160 ME movement-locked trials, when scaling training data and averaging over various number of trials of the same letter. Mean and standard deviation over 3 random seeds. While there is some performance improvement when scaling training data, boosting test-time SNR significantly improves performance even when training with single-trial EEG.
  • Cross-Session Stability: In ME movement-locked decoding, EEGNet transferred above chance across sessions separated by up to 313 days (though MI cross-session transfer remained at chance).

Limitations and Future Work

LOVW-8.5K trades breadth for depth: it has only 4 healthy participants, 4 letters, and a relatively sparse 32-channel montage, and all evaluations were within-subject and offline. The authors suggest that future EEG Foundation Models should pretrain with minimal frequency filtering, incorporate multi-SNR data to learn denoising, and tackle the open problem of detecting movement onset in continuous, imagined handwriting.

Summary updated

BibTeX
@inproceedings{ravishankar2026confound,
  author = {Srinivas Ravishankar and Ishayu Ghosh and Nora Zajzon and Teng Fei and Virginia R. de Sa},
  title = {{A Confound-Controlled EEG Handwriting Dataset for Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UmBkSWTw9t},
}
Figure