Decoding Imagined Handwriting from EEG

Srinivas Ravishankar, Nora Zajzon, Virginia de SaarXiv 2025

Abstract

Patients with extreme forms of paralysis face challenges in communication, adversely impacting their quality of life. Recent studies have reported higher-than-chance performance in decoding handwritten letters from EEG signals, potentially allowing these subjects to communicate. However, all prior works have attempted to decode handwriting from EEG during actual motion. Furthermore, they assume that precise movement-onset is known. In this work, we focus on settings closer to real-world use where either movement onset is not known or movement does not occur at all, fully utilizing motor imagery. We show that several existing studies are affected by confounds that make them inapplicable to the imagined handwriting setting. We also investigate how sample complexity affects handwriting decoding performance, guiding future data collection efforts. Our work shows that (a) Sample complexity analysis in single-trial EEG reveals a noise ceiling, which can be alleviated by averaging over trials. (b) Knowledge of movement-onset is crucial to reported performance in prior works. (c) Fully imagined handwriting can be decoded from EEG with higher-than-chance performance. Taken together, these results highlight both the unique challenges and avenues to pursue to build a practical EEG-based handwriting BCI.

Introduction

For patients with "locked-in syndrome," the ability to communicate is a lifeline. While invasive brain-computer interfaces (BCIs) using brain implants have shown incredible success—reaching typing speeds comparable to smartphones—they require risky surgery. Non-invasive alternatives like Electroencephalography (EEG) are safer but much noisier.

Recent EEG studies claimed remarkably high accuracies (up to 94%) in decoding handwriting. However, these results may be "too good to be true." This research investigates whether these high scores were due to actual brain signals related to handwriting or "confounds"—unintended signals like eye movements or visual feedback that leak into the data. Furthermore, the study addresses the "onset problem": most studies assume precise knowledge of when a person starts writing, which is rarely available in real-world settings.

Methodology

The researchers employed EEGNet, a compact convolutional neural network designed for EEG signals, as their primary decoder. To rigorously test their hypotheses, they evaluated decoding performance across three distinct settings:

  1. Motor Execution (ME) movement-centered: Decoding actual physical writing with the exact start time known.
  2. ME cue-centered: Decoding physical writing where the start time is unknown, simulating asynchronous use.
  3. Motor Imagery (MI) cue-centered: Decoding purely imagined handwriting with no physical movement.
The experimental paradigm used to capture EEG signals during motor execution and imagery tasks.

The study utilized a "deep" dataset from four right-handed participants, focusing on a massive number of trials for four letters: L, V, O, and W. These letters were chosen for their continuous motion and lack of pen-lifts, capturing a full range of muscle trajectories. One subject provided approximately 2,400 trials over multiple sessions, enabling a detailed sample complexity analysis.

Key Insights and Results

A critical finding of this work is the identification of the Eye-Movement Trap. In prior high-performing studies, experimental designs often allowed subjects to track their writing with their eyes. The authors demonstrated that a single "eye-movement" component in the EEG data could achieve 85.6% accuracy on its own, effectively acting as a non-neural shortcut for the classification task.

An Independent Component (IC) representing eye movement that alone achieves 85.6% accuracy, highlighting a major confound in prior work.

The study also highlighted the Onset Bottleneck. Switching from "movement-centered" to "cue-centered" decoding (where the exact start is unknown) led to a significant drop in performance. This suggests that the brain's "start" signal is highly distinct, and without it, the handwriting signal itself is significantly harder to isolate.

Furthermore, the researchers identified a Noise Ceiling in EEG data. Unlike invasive BCIs where more data typically scales performance, single-trial EEG accuracy showed diminishing returns. However, averaging trials during evaluation significantly boosted results; for one subject, averaging 8 trials of the same letter increased accuracy from 45% to 78%.

Ultimately, the study proved that imagined handwriting is decodable. Purely imagined handwriting (MI) was decoded from single-trial EEG with higher-than-chance performance, averaging ~28.8% across subjects against a 25% chance level.

Conclusion

While this study demonstrates the feasibility of decoding imagined handwriting, several hurdles remain. The current performance gap between known-onset physical movement and unknown-onset imagined writing is substantial. Future work must address the temporal invariance problem—the difficulty of decoding signals without precise onset detection. Scaling to the full alphabet and improving the signal-to-noise ratio through paradigm shifts or advanced signal processing will be essential for developing practical, non-invasive handwriting BCIs for paralyzed users.

Summary updated

BibTeX
@misc{ravishankar2025decoding,
  author = {Srinivas Ravishankar and Nora Zajzon and Virginia de Sa},
  title = {{Decoding Imagined Handwriting from EEG}},
  year = {2025},
  eprint = {2503.11202},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.11202},
}
Figure