Skip to main content
QUICK REVIEW

[Paper Review] Brain-to-Text Decoding: A Non-invasive Approach via Typing

J P Lévy, Mingfang Zhang|arXiv (Cornell University)|Feb 18, 2025
Cognitive Computing and NetworksComputer Science4 citations
TL;DR

The paper presents Brain2Qwerty, a three-stage neural decoder that translates non-invasive M/EEG brain activity into typed text during a typing task, achieving MEG CER of 32% (best 19%) and EEG CER of 67%.

ABSTRACT

Modern neuroprostheses can now restore communication in patients who have lost the ability to speak or move. However, these invasive devices entail risks inherent to neurosurgery. Here, we introduce a non-invasive method to decode the production of sentences from brain activity and demonstrate its efficacy in a cohort of 35 healthy volunteers. For this, we present Brain2Qwerty, a new deep learning architecture trained to decode sentences from either electro- (EEG) or magneto-encephalography (MEG), while participants typed briefly memorized sentences on a QWERTY keyboard. With MEG, Brain2Qwerty reaches, on average, a character-error-rate (CER) of 32% and substantially outperforms EEG (CER: 67%). For the best participants, the model achieves a CER of 19%, and can perfectly decode a variety of sentences outside of the training set. While error analyses suggest that decoding depends on motor processes, the analysis of typographical errors suggests that it also involves higher-level cognitive factors. Overall, these results narrow the gap between invasive and non-invasive methods and thus open the path for developing safe brain-computer interfaces for non-communicating patients.

Motivation & Objective

  • Motivate non-invasive brain-computer interfaces (BCIs) to restore communication without neurosurgery.
  • Develop a deep learning architecture that decodes sentence production from MEG/EEG during typing.
  • Quantify performance across MEG and EEG and analyze factors driving decoding accuracy.

Proposed method

  • Introduce Brain2Qwerty, a three-stage model: Convolutional Module (500 ms M/EEG windows) + Transformer Module (sentence-level) + pretrained language model for output correction.
  • Use a 4-layer transformer with 2 attention heads and a linear projection to logits over 29 keys.
  • Apply a 9-gram character-level language model (KenLM) with beam search to regularize transformer outputs (LM weight tuned).
  • Train jointly the Convolutional and Transformer modules with unweighted cross-entropy across subjects (about 400M parameters).
  • Evaluate using Character Error Rate (CER) and Hand Error Rate (HER) across EEG and MEG data from 35 healthy participants.

Experimental results

Research questions

  • RQ1Can non-invasive M/EEG signals be used to decode sentence production during typing in a realistic task?
  • RQ2How do MEG and EEG compare in decoding text from brain activity?
  • RQ3Does incorporating a transformer and a language model improve character-level decoding versus baselines?
  • RQ4What brain and task features influence decoding errors and accuracy (e.g., keyboard layout, typing behavior, word frequency)?

Key findings

  • Brain2Qwerty achieves CER of 32 ± 0.6% with MEG and 67 ± 1.5% with EEG on average.
  • Best MEG subjects reach CER of 19%, with some sentences perfectly decoded.
  • Brain2Qwerty outperforms baselines (EEGNet and linear models) by substantial margins across MEG and EEG.
  • Ablations show the transformer and language model improve CER beyond the convolutional module alone.
  • Decoding is better for frequent words and frequent characters; out-of-vocabulary words can be decoded but with higher CER.
  • Confusion patterns align with keyboard layout, suggesting a motor-based representation in decoding.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.