Skip to main content
QUICK REVIEW

[Paper Review] Neuro-GPT: Towards A Foundation Model for EEG

Wenhui Cui, Woojae Jeong|arXiv (Cornell University)|Nov 7, 2023
EEG and Brain-Computer InterfacesNeuroscience5 citations
TL;DR

Neuro-GPT proposes a foundation model for EEG that combines an EEG encoder with a GPT-based decoder to enable self-supervised pre-training on large-scale EEG data (TUH dataset), significantly improving downstream motor imagery classification performance in low-data regimes. The model achieves state-of-the-art accuracy (64.3% ± 10.6%) on a 9-subject leave-one-out benchmark, demonstrating the effectiveness of pre-training for generalization across heterogeneous EEG data.

ABSTRACT

To handle the scarcity and heterogeneity of electroencephalography (EEG) data for Brain-Computer Interface (BCI) tasks, and to harness the power of large publicly available data sets, we propose Neuro-GPT, a foundation model consisting of an EEG encoder and a GPT model. The foundation model is pre-trained on a large-scale data set using a self-supervised task that learns how to reconstruct masked EEG segments. We then fine-tune the model on a Motor Imagery Classification task to validate its performance in a low-data regime (9 subjects). Our experiments demonstrate that applying a foundation model can significantly improve classification performance compared to a model trained from scratch, which provides evidence for the generalizability of the foundation model and its ability to address challenges of data scarcity and heterogeneity in EEG. The code is publicly available at github.com/wenhui0206/NeuroGPT.

Motivation & Objective

  • Address the challenges of data scarcity and inter-subject variability in EEG-based Brain-Computer Interfaces (BCIs).
  • Develop a foundation model that generalizes across subjects and tasks using large-scale, publicly available EEG data.
  • Explore whether self-supervised pre-training with a GPT-like architecture improves feature learning and downstream classification performance in EEG.
  • Investigate the impact of architectural choices (chunk size, overlapping ratio, model depth) on pre-training and fine-tuning performance.

Proposed method

  • Split raw EEG signals into fixed-length temporal chunks (T seconds) to serve as input tokens for the GPT model.
  • Use a hybrid EEG encoder with 1D convolutional and self-attention layers to extract denoised, low-dimensional spatio-temporal embeddings from each chunk.
  • Apply causal masking to mask the last embedded chunk and train the GPT model to reconstruct it via autoregressive next-token prediction.
  • Pre-train the full Neuro-GPT model on the TUH EEG dataset using a reconstruction loss between predicted and original embeddings.
  • Fine-tune the EEG encoder on a motor imagery classification task with only 9 subjects using three strategies: end-to-end, encoder-only, and encoder+GPT.
  • Evaluate hyperparameters including chunk length (1–4s), number of chunks (4–32), overlapping ratio (10–50%), and embedding dimension (768–1024).

Experimental results

Research questions

  • RQ1Can a foundation model pre-trained on large-scale EEG data improve classification performance in low-data regimes?
  • RQ2How does the architectural design of the EEG encoder and GPT decoder affect feature learning and downstream performance?
  • RQ3What is the optimal configuration of chunk size, number of chunks, and overlapping ratio for pre-training?
  • RQ4Does the GPT component contribute meaningfully to downstream classification, or does it hinder performance due to overfitting?
  • RQ5How does pre-training improve the linear separability of EEG features across subjects?

Key findings

  • The pre-trained Neuro-GPT model achieved a mean classification accuracy of 64.3% ± 10.6% on a 9-subject leave-one-out motor imagery task, outperforming models trained from scratch (59.6% ± 9.0%) and prior methods like BENDR (42.6%).
  • The encoder-only fine-tuning strategy yielded the highest performance, indicating that the pre-trained encoder learns highly generalizable and discriminative features.
  • Using 16 or 32 chunks during pre-training led to better downstream results than 4 or 8 chunks, suggesting that longer sequences improve feature learning.
  • Longer chunk lengths (4s) improved downstream performance despite being harder to reconstruct, while 1s chunks led to poorer results.
  • Increasing the GPT-2 embedding dimension from 768 to 1024 improved downstream accuracy, but adding more GPT decoder layers (beyond 6) did not help.
  • A 50% overlapping ratio degraded downstream performance, likely due to redundant or noisy information affecting reconstruction and feature learning.

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.