MENDR: Manifold-Embedded Neural Data Representations for Channel-Agnostic EEG Foundation Modeling
Abstract
Foundation models for EEG are pretrained on large unlabeled recordings so that one model can be adapted to many tasks, but most treat EEG as a generic time series. They do not model the covariance between electrodes explicitly, which measures how strongly each pair of signals rises and falls together. Covariance matrices are symmetric positive definite (SPD) and lie in a curved (Riemannian) space, where ordinary averages and distances are distorted. We introduce MENDR (Manifold-Embedded Neural Data Representations), an EEG foundation model whose tokens are covariance matrices of short windows. A matrix logarithm flattens each matrix (Log-Euclidean tangent space), so a standard transformer can be pretrained to fill in masked tokens. A channel-agnostic Perceiver-style projection maps each dataset's electrodes to 32 learned virtual electrodes, so one pretrained model can be fine-tuned on 6 to 64 channels (one layout per fine-tuned model). MENDR's spatial encoder is 2.6 to 21 times smaller than the backbones of the compared models. Pretrained on the TUH EEG Corpus and evaluated on six benchmarks under a strict protocol, MENDR matches the best compared model on seizure and abnormality detection (no significant difference in AUROC) and is 0.03 to 0.06 weighted F1 behind it on the other four tasks. Controlled experiments show that the channel-agnostic projection beats a fixed linear one on two of six tasks (one confounded by electrode count), that pretraining beats training from scratch on one, and that larger encoders bring no significant gain.