Abstract
Decoding human thoughts from non-invasive brain signals like EEG and MEG remains a significant challenge due to signal noise and the reliance on "teacher-forcing" during inference. We present BrainECHO, a novel three-stage framework that decodes brain activity into text by reconstructing discrete audio spectrograms. By aligning brain signals with a quantized latent space and leveraging a pretrained Whisper model, BrainECHO achieves state-of-the-art performance on public datasets, demonstrating robustness in real-world scenarios without the need for ground-truth feedback during decoding.
Introduction
Directly translating brain activity into text is a primary goal for Brain-Computer Interfaces (BCI). However, non-invasive systems (EEG/MEG) face three critical hurdles: the "teacher-forcing" crutch, where models fail during inference without previous correct words; high signal-to-noise ratios caused by physiological artifacts; and linguistic over-dominance, where language models ignore brain signals in favor of grammatical probability. BrainECHO addresses these by treating brain signals as noisy audio representations, filtering them through a discrete codebook before final text generation.
Methodology
BrainECHO utilizes a decoupled approach to separate signal processing from linguistic translation. The framework operates in three distinct stages:
- Discrete Autoencoding: The model first learns to compress and reconstruct high-quality Mel spectrograms using a Vector-Quantized Variational AutoEncoder (VQ-VAE). This stage establishes a "codebook" of discrete audio tokens.
- Frozen Alignment: A Brain Encoder, utilizing a Conformer architecture, is trained to map raw EEG/MEG signals into the pre-learned discrete audio latent space. The frozen, discrete nature of the codebook forces the model to discard task-irrelevant noise and map messy brain signals onto clean acoustic features.
- Whisper Fine-tuning: The predicted spectrograms are processed by a pretrained Whisper model. Using AdaLoRA for parameter-efficient fine-tuning, Whisper is adapted to translate these brain-derived spectrograms into coherent text.
Experimental Evaluation
The framework was validated on two major public datasets: Brennan (EEG recordings of 33 subjects listening to Alice in Wonderland) and GWilliams (MEG recordings of 27 subjects listening to naturalistic stories). To ensure the model's generalizability, evaluations were conducted across random, session-independent, and subject-independent splits.
Key Results and Insights
BrainECHO sets a new benchmark for non-invasive decoding, particularly in its ability to function without teacher-forcing. On the Brennan (EEG) dataset, it achieved a BLEU-4 score of 88.55%. On the GWilliams (MEG) dataset, it reached a BLEU-4 of 72.42%, outperforming previous state-of-the-art methods like NeuSpeech by over 50%.
Discretization as a Noise Filter
A key insight of this work is the use of quantization. By forcing the brain signal to select from a finite set of clean audio tokens, the model naturally filters out noise—such as muscle movements or eye blinks—that does not align with learned acoustic patterns. Furthermore, by using Whisper (an audio-to-text model) rather than a text-only model like BART, the system is inherently better suited for the spectrogram-like representations derived from the brain.
Conclusion and Future Work
While BrainECHO demonstrates superior accuracy and robustness, challenges remain regarding vocabulary constraints and length bias. Current datasets focus on passive listening; future research must address active speech production to fulfill the potential of assistive BCI technology. Scaling toward larger multimodal models and more diverse datasets will be essential for achieving real-time, open-vocabulary brain-to-text translation.
Summary updated