EEG-X: Toward Device-Agnostic and Noise-Robust Foundation Models for EEG

Navid Mohammadi Foumani, Soheila Ghane, Nam Nguyen, Mahsa Salehi, Geoffrey I. Webb, Geoffrey MackellarNeurIPS 2026

TL;DR

Foundation models have revolutionized vision and text, yet reading brainwaves (EEG) has remained stubbornly bespoke because different headsets use incompatible sensor layouts and drown neural whispers in muscle noise. EEG-X solves both problems by mapping electrodes onto a universal spatial coordinate grid and training the model to reconstruct artifact-cleaned brain signals in a multi-scale feature space rather than raw, noisy waveforms. The result is a single pre-trained model that seamlessly transfers from clinical hospital caps to consumer headsets without breaking a sweat.

What Problem Does This Paper Address?

Imagine trying to train a vision foundation model if every camera manufacturer arranged pixels in completely random, non-overlapping shapes—and 80% of every image was obscured by lens flare. That is the reality of Electroencephalography (EEG).

Two roadblocks have kept EEG from having its "GPT moment":

  1. Hardware Chaos: Clinical rigs, research caps, and consumer wearables all use different numbers of electrodes (from 8 to 64+), placed in different spots, running at different sampling rates. Standard models learn rigid channel IDs ("Channel 4 is F3"), which fail miserably when transferred to a headset where F3 doesn't exist.
  2. Abysmal Signal-to-Noise Ratio (SNR): Brainwaves are microvolt-level whispers buried under thunderous biological noise—eye blinks, jaw clenches, and electrical line hum. When standard Masked Autoencoders (MAEs) hide parts of an EEG signal and train a network to reconstruct them, the model wastes most of its capacity learning to predict noise rather than actual neural activity.

Methods

EEG-X builds on a standard Masked Autoencoder (MAE) backbone—chopping signals into time-frequency tokens, masking a portion, and encoding the visible pieces with a Transformer—but introduces three clever upgrades:

Figure 1: Architecture of EEG-X. EEG-X is built upon a masked autoencoding (MAE) framework and consists of three main components: (1) a signal embedding module augmented with location- based channel embeddings for handling heterogeneous EEG devices and channel layouts, (2) an artifact removal module that produces artifact-cleaned reconstruction targets from raw EEG signals, and (3) the proposed Dictionary-based Convolution Transformation (DiCT) objective for structured reconstruction learning.
  • Location-Based Channel Embedding: Instead of learning arbitrary ID tags for channels, EEG-X maps every electrode onto a universal 2D Cartesian scalp mesh (spanning standard 10-20, 10-10, and 10-05 layouts) and encodes its $(x, y)$ coordinates using separable sinusoidal functions (like Transformer positional encodings, but for physical space). Physically close electrodes naturally get mathematically similar embeddings, allowing the model to generalize to unseen sensor layouts.
  • Noise-Aware Reconstruction: During pre-training, EEG-X takes raw, noisy EEG as input, but uses an automated denoising algorithm—Riemannian Artifact Subspace Reconstruction (rASR)—to generate clean targets. The network must infer clean brain activity from noisy context.
  • Dictionary-based Convolution Transformation (DiCT): Standard Mean Squared Error (MSE) is amplitude-biased; a massive, slow eye-blink wave dominates the loss, causing the model to ignore tiny, high-frequency gamma or beta waves where rich cognition happens. Inspired by time-series classifiers (ROCKET/Hydra), DiCT passes both the predicted and target signals through fixed, parameter-free groups of random dilated convolutional kernels. The kernels compete at each timestep ("counting wins" over time), and MSE is computed in this structural feature space rather than raw voltage space.
Figure 3: Real EEG signal and reconstructed variants. Left: low-frequency dominant reconstruction preserving mainly Delta and Theta components. Right: mid/high-frequency dominant reconstruction preserving Theta, Alpha, Beta, and Gamma components. These examples illustrate the amplitude bias of direct time-domain MSE, where low-frequency high-amplitude components can dominate the reconstruction objective despite missing informative higher-frequency temporal patterns.

Datasets

No new datasets were introduced; instead, the authors assembled eight diverse existing benchmarks spanning five distinct EEG headsets (clinical and consumer) to test both in-domain and cross-device transfer:

  • In-Domain (Pre-training & Evaluation): DREAMER (14-channel, emotion detection), STEW (14-channel, mental workload), TUAB (19-channel clinical, abnormal EEG), and TUEV_binary (19-channel clinical, epileptiform activity).
  • Cross-Domain (Downstream Frozen-Backbone Evaluation): Crowdsourced (14-channel, eyes open/closed), BCICIV_2A (22-channel, motor imagery), PhysioNetMI (64-channel, motor imagery), and SSVEP (8-channel, visual evoked potentials).

Key Insights and Ideas

  • Don't clean the input; clean the target: A natural question is, why not just run rASR artifact removal as a preprocessing step for everything? When the authors tested this in supervised training, performance actually dropped on half the datasets—aggressive denoising accidentally scrubs away subtle, task-relevant signals. By feeding EEG-X raw inputs and asking it to reconstruct clean targets during pre-training, the encoder learns what noise looks like without throwing away the baby with the bathwater at inference time.
  • Point-wise MSE is a trap for multi-scale signals: In Figure 3, a blurry reconstruction that only captures slow Delta/Theta waves gets a much better (lower) MSE score (47.55) than a crisp reconstruction capturing Alpha, Beta, and Gamma rhythms (95.75). DiCT flips this completely (scoring 11.44 vs. 4.26), proving that how you measure reconstruction matters just as much as architecture.
  • Geometry beats lookup tables: Giving the model physical scalp coordinates barely changes in-domain accuracy (+0.59% over learnable IDs), because the headset never changes. However, in cross-domain transfer—where headsets change completely—spatial coordinates unlock a massive +4.80% jump.
Figure 2: (a) Location-based channel embedding using a universal scalp coordinate mapping to assign each channel Cartesian coordinates. (b) Embedding similarity of electrode F4 with all other channels, showing higher similarity to nearby electrodes (e.g., F2, F6) than distant ones (e.g., P7).

Key Results

EEG-X was benchmarked against eight state-of-the-art EEG models (including LaBraM, EEGPT, CBraMod, and REVE):

  • In-Domain: EEG-X took first place across all four datasets, reaching 80.32% balanced accuracy on STEW, 58.14% on DREAMER, 81.02% on TUAB, and 91.15% (96.18 AUROC) on TUEV_binary.
  • Cross-Domain Foundation Transfer: Pre-trained solely on 19-channel clinical data (TUAB) with a frozen encoder and a simple linear probe on top, EEG-X outperformed all baselines across wildly different 8-, 14-, 22-, and 64-channel setups—hitting 86.89% accuracy on Crowdsourced (beating second-place REVE at 83.92%), 37.58% on 4-class BCICIV_2A, 32.97% on SSVEP, and 51.89% on PhysioNetMI.
  • Ablations: Stripping out DiCT caused the steepest in-domain drop (-3.12% average), while removing location-based channel embeddings caused the steepest cross-domain drop (-4.88% average).

Limitations and Future Work

Not discussed in the paper. (Note: Only pages 1–11 containing the main body and initial references were provided in the document; potential broader impact or limitation sections in the appendices are not visible.)

Summary updated

Abstract

Foundation models for EEG analysis are still in their infancy, limited by two key challenges: (1) variability across datasets caused by differences in recording devices and electrode configurations, and (2) the low signal-to-noise ratio (SNR) of EEG, where neural activity is often buried under artifacts and non-brain sources. To address these challenges, we present EEG-X, a device-agnostic and noise-robust foundation model for EEG representation learning. EEG-X introduces a location-based channel embedding that enables robust transfer across heterogeneous EEG devices and electrode layouts. To improve robustness against noise, EEG-X employs a novel noise-aware masking-reconstruction strategy that reconstructs artifact-cleaned signals rather than raw noisy EEG and introduces a novel Dictionary-based Convolutional Transformation (DiCT) that improves reconstruction-based pretraining by comparing signals in a structured feature space instead of directly in the raw signal space. Experiments across datasets collected from diverse EEG devices show that EEG-X consistently outperforms state-of-the-art methods across multiple downstream tasks and demonstrates strong cross-domain generalization when pretraining and downstream datasets differ in electrode layouts and recording configurations paving the way towards foundation models. The models and code are available at https://github.com/Emotiv/EEG-X.
BibTeX
@inproceedings{foumani2026eeg,
  author = {Navid Mohammadi Foumani and Soheila Ghane and Nam Nguyen and Mahsa Salehi and Geoffrey I. Webb and Geoffrey Mackellar},
  title = {{EEG-X: Toward Device-Agnostic and Noise-Robust Foundation Models for EEG}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UHwOAjPtEg},
}
Figure