Open Vocabulary Electroencephalography-to-Text Decoding and Zero-Shot Sentiment Classification

Zhenhailong Wang, Heng Ji

Abstract

State-of-the-art brain-to-text systems have achieved great success in decoding language directly from brain signals using neural networks. However, current approaches are limited to small closed vocabularies which are far from enough for natural communication. In addition, most of the high-performing approaches require data from invasive devices (e.g., ECoG). In this paper, we extend the problem to open vocabulary Electroencephalography(EEG)-To-Text Sequence-To-Sequence decoding and zero-shot sentence sentiment classification on natural reading tasks. We hypothesis that the human brain functions as a special text encoder and propose a novel framework leveraging pre-trained language models (e.g., BART). Our model achieves a 40.1% BLEU-1 score on EEG-To-Text decoding and a 55.6% F1 score on zero-shot EEG-based ternary sentiment classification, which significantly outperforms supervised baselines. Furthermore, we show that our proposed model can handle data from various subjects and sources, showing great potential for a high-performance open vocabulary brain-to-text system once sufficient data is available.

Introduction

Brain-Computer Interfaces (BCIs) represent a frontier in human-computer interaction, aiming to translate neural activity into actionable language. Despite recent progress, three major hurdles persist: vocabulary constraints (most systems are "closed vocabulary"), invasiveness (requiring surgical implants like ECoG), and data scarcity for specific tasks like sentiment analysis.

This research addresses these challenges by utilizing non-invasive EEG data and an open-vocabulary approach. By leveraging the linguistic knowledge embedded in large-scale pre-trained language models, the system can decode sentences it has never encountered during training.

Overview of the EEG-to-text decoding and sentiment classification framework.

Methodology

The core hypothesis of this work is that the human brain functions as a biological text encoder. To exploit this, the authors propose a two-stage architecture.

EEG-To-Text Decoding

The system takes word-level EEG features, synchronized via eye-tracking fixations during natural reading, as input. A Multi-layer Transformer Encoder (MTE) processes these raw sequences, which are then projected into a latent space matching the embedding space of BART, a pre-trained sequence-to-sequence model. The projected EEG "embeddings" are then fed into the BART encoder-decoder to generate natural language text.

Zero-Shot Sentiment Classification

Rather than training a model directly on noisy EEG-sentiment pairs, the framework employs a pipeline approach. Decoded text (even if noisy) is passed to a standard, pre-trained text sentiment classifier. This allows for zero-shot sentiment analysis of brain signals, as the model identifies sentiment based on the decoded semantic content rather than raw neural patterns.

Detailed architecture of the open-vocabulary decoder and the zero-shot sentiment classification pipeline.

Datasets and Experimental Setup

The study utilizes the Zurich Cognitive Language Corpus (ZuCo) v1.0 and v2.0, which contain simultaneous EEG and eye-tracking data from 30 subjects reading Wikipedia and movie review sentences. The tasks include Normal Reading (NR), Sentiment Reading (SR), and Task-Specific Reading (TSR), totaling over 10,000 training samples.

Key Insights

  • Brain-as-Encoder: Aligning brain signals with language model embedding spaces allows the system to use the model's "linguistic prior" to compensate for limited brain-text data.
  • Text as a Denoising Filter: Decoding EEG to text first extracts semantic meaning, enabling high-performance NLP classifiers to operate on cleaner representations than raw EEG.
  • Semantic Recovery: The model often recovers the "gist" of a sentence. For instance, it might decode "bad" when the ground truth is "monstrous," demonstrating an ability to capture high-level concepts.
  • Inter-Subject Transferability: The model demonstrates the ability to learn from one group of subjects and generalize to unseen individuals, a significant step toward practical BCI applications.

Results

The proposed model achieved a 40.1% BLEU-1 score on unseen test sentences, a substantial improvement over baselines trained from scratch (24.7%). In sentiment analysis, the zero-shot pipeline reached a 55.6% F1 score for ternary classification (positive, neutral, negative), outperforming supervised baselines by over 20%. The system also showed proficiency in capturing named entity types (e.g., PERSON, LOCATION), even when specific names were misidentified.

Conclusion and Future Work

While the system shows great promise, challenges remain, including grammatical inconsistencies and difficulties with rare named entities. Future work will focus on decoding "inner speech"—thoughts not prompted by external stimuli—and exploring multilingual applications. This research demonstrates that combining non-invasive neural signals with powerful pre-trained language models can pave the way for high-performance, open-vocabulary brain-to-text communication.

Summary updated

BibTeX
@inproceedings{wang2022open,
  author = {Zhenhailong Wang and Heng Ji},
  title = {{Open Vocabulary Electroencephalography-to-Text Decoding and Zero-Shot Sentiment Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=rg2MvV8srE},
}
Figure