Shallow-Target Spatio-Temporal Joint Embedding Prediction Architecture for EEG self-supervised learning
Self-supervised EEG foundation model. Pretrained on 47,703 sessions (ages 5 to 81). Brain age regression and multi task transfer from one frozen backbone.
brain.space · 2026
Abstract
Brain age - the age inferred from a physiological recording - is an emerging biomarker whose deviation from chronological age tracks neurological and psychiatric burden, and EEG is an attractive substrate for it because it is cheap, portable, and temporally rich. Yet EEG brain age models must contend with cross site montage heterogeneity, small labelled cohorts, and dominant subject level nonstationarity, and few EEG foundation models have been shown to deliver competitive age regression across the full pediatric-to-older-adult range in which such a biomarker would actually be deployed. We introduce STST-JEPA, a self-supervised transformer for resting state and task EEG, pretrained on 47,703 sessions spanning ages 5–81 from the brain.space and Healthy Brain Network (HBN) corpora. The model combines a latent prediction objective - predicting masked token representations against an EMA-of-tokenizer target - with an auxiliary signal reconstruction term, applied to 30 second multichannel windows under spatiotemporal block masks. A lightweight attentive probe trained on frozen pretrained embeddings achieves a best held out validation mean absolute error of 3.06 years (r = 0.924) for age regression on 3,367 sessions, against a predict-the-mean baseline of approximately 10 years MAE. With light task specific fine tuning of the model's final layers, the same pretrained encoder achieves rank 1 placements - with the model's native 30 second windows - on the public NeuralBench × brain.space EEG leaderboard for sex classification (balanced accuracy 0.911), age prediction (r = 0.749), and psychopathology composite regression (r = 0.215). We further show that the model's age prediction residual is negatively correlated with cognitive efficiency over several tasks we examined.
STST-JEPA is a self-supervised transformer trained on 30 second, 256 Hz, 128 channel EEG windows. Each channel is patchified by a temporal convolution, and the channel axis is collapsed at every time index by a coordinate aware pooled attention block, yielding one token per time index and admitting arbitrary montages (115 and 128 channel layouts, missing channels masked). Roughly 24% of the space by time grid is masked with rectangular blocks. Visible tokens pass through a 24 layer, width 768 context encoder and a cross-attention predictor. Prediction targets are the outputs of an exponential moving average copy of the shallow tokenizer (stop-gradient); a per patch head reconstructs each masked patch to its 16 sample waveform. Loss = latent prediction (MSE, weight 1.0) + reconstruction (smooth-L1, weight 0.35). Age is decoded by a lightweight attentive probe on frozen embeddings.
A frozen backbone with an attentive probe reaches MAE 3.06 yr, Pearson r 0.924, on 3,367 held out validation sessions - a 69.7% reduction versus predicting the training mean.
| Method | MAE (yr) | RMSE (yr) | R² |
|---|---|---|---|
| STST-JEPA + attentive probe (brain.space + HBN) | 3.06 | 5.11 | 0.85 |
| Predict training mean (17.7 yr) | ≈ 10.09 | 13.27 | ≈ 0 |
The same pretrained backbone, with final layer fine tuning, on the public NeuralBench × brain.space EEG leaderboard (fixed protocol test partition). Rank 1 on all three tasks with 30 second windows.
| Task | Metric | Ours (30 s) | Prior best (model) | Margin | Rank |
|---|---|---|---|---|---|
| Sex | bal. acc. | 0.911 | 0.910 (ShallowFBCSPNet) | +0.001 | 1 / 18 |
| Age | Pearson r | 0.749 | 0.721 (REVE, Ouahidi et al. 2025) | +0.028 | 1 / 17 |
| Psychopathology | Pearson r | 0.215 | 0.137 (CBraMod) | +0.078 | 1 / 15 |
The bias corrected brain age gap (predicted minus true age) correlated against 21 behavioural capacity targets on the union of validation and test partitions (N = 8,600 sessions).
@misc{segal2026ststjepashallowtargetspatiotemporaljoint,
title={STST-JEPA: Shallow-Target Spatio-Temporal Joint Embedding Prediction Architecture For EEG Self-Supervised Learning},
author={Roy Segal and Yoni Svechinsky and Tomer Fekete},
year={2026},
eprint={2607.06629},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2607.06629},
}