EEG foundation model pretrained by latent diffusion instead of masked reconstruction, jointly optimizing a ViT encoder with a DiT denoiser.
No providers recorded yet. Browse all providers
Scalp EEG is strongly autocorrelated in time. Blank out half a second of a channel and the surrounding samples usually pin down what was removed — so a model trained to recover masked segments can get very good at local interpolation without ever representing the global dynamics that make a recording diagnostic. That objective is what nearly every recent EEG foundation model uses, LaBraM and CBraMod among them, and it is the gap EEGDM was built to close.
EEGDM replaces masked reconstruction with generation. A conditional latent diffusion model is asked to produce a complete multi-channel EEG segment from pure Gaussian noise, and a separate encoder supplies the only information it gets about which segment to produce. The conditioning vector is not detached during pretraining, so the denoising loss back-propagates through it and the encoder is pushed to compress whatever is actually needed to regenerate a recording — cross-channel structure, phase relationships, long-range temporal pattern — rather than whatever is needed to fill a gap. Once pretraining ends, the diffusion module is set aside and the encoder alone carries into downstream tasks.
The model comes from the MOE-Key Laboratory of Pervasive Computing at Tsinghua University, with a collaborator at Tianjin University, and was first posted in August 2025. An unrelated 2025 preprint by Puah et al. is also called EEGDM; that one builds a structured state-space model into the diffusion process, and the authors here call it "Puah-EEGDM-SSM" to keep the two apart.
The encoder is a Vision Transformer variant: a single 1-D convolution (512 channels, kernel and stride both 200) tokenizes one-second EEG patches, and an 8-block transformer with hidden dimension 512, 8 attention heads and a 2048-wide MLP embeds them, average-pooled to a single vector. The denoiser is a matched stack of 8 Diffusion Transformer blocks using adaLN-Zero modulation over 1,000 timesteps. The downstream network, encoder plus linear predictor, is about 25M parameters.
Pretraining ran from random initialization on the Temple University Hospital EEG Corpus, 19 channels resampled to 200 Hz and cut into 30-second segments, for roughly 329,400 steps on four A100 GPUs (about 113 wall-clock hours). On TUEV, a six-way clinical event task with class imbalance reaching 80:1, the fine-tuned model reaches 0.6826 balanced accuracy and 0.9169 macro AUC-ROC, against 0.6424 and 0.8976 for CBraMod; the same encoder scores 0.6010 under linear probing and 0.5825 trained from scratch, isolating what pretraining contributes. Its SPSW minority-class recall of 50.3% contrasts with the 10–18% of the masked-reconstruction baselines. On TUAB the model reaches 81.80% balanced accuracy and 90.85% AUC-PR. A separate same-distribution ablation pretrained directly on TUEV reaches 0.7971 balanced accuracy, reported to compare against Puah-EEGDM-SSM under matched conditions rather than as the released artifact.
The encoder suits groups with a labeled EEG set too small to train a decoder from scratch: clinical event and abnormality screening, motor-imagery brain-computer interfaces (SHU-MI), driver cognitive-load estimation (CL-Drive), and categorical and distributional emotion recognition (Seed-VII, DMER). The retained diffusion module gives a second, less common option — synthesizing extra labeled trials to rebalance a skewed training set before fine-tuning.
EEGDM shows that a generative objective is a viable alternative to masked modeling for EEG representation learning, and its most useful result is not a leaderboard position but the minority-class recall: on a task where the rare classes are the clinically interesting ones, a generative pretext holds recall that masked pretraining loses. The work remains a preprint and has not been peer reviewed, and it does not lead on every metric: CBraMod stays ahead on TUAB and on the sample-weighted TUEV metrics. Downstream datasets were chosen to favor the last five years, with TUAB and TUEV kept as legacy anchors, so comparability with older EEG benchmarks is deliberately narrow. Code and all four pretrained checkpoints are public.
Much of this page is generated or calculated automatically. Flag anything that looks off and we will re-run it.