Decoupling Time and Space: A Temporally Conditioned Refinement for EEG Source Imaging
Organizations: Berlin Institute for the Foundations of Learning and Data, Germany · Machine Learning Group, Technische Universität Berlin, Germany · Basque Center on Cognition, Brain and Language, Mikeletegi Pasealekua, Spain · Ikerbasque, Bizkaia, Spain · Department of Artificial Intelligence, Korea University, Seoul, Korea · Max Planck Institut für Informatik, Saarbrücken, Germany · RIKEN AIP, Tokyo, Japan
Abstract
Electroencephalography (EEG) offers millisecond temporal resolution, but inferring underlying neural sources is a severely ill-posed spatial inverse problem. While deep learning has advanced spatial reconstruction, current architectures face a critical dilemma: frame-by-frame models discard vital temporal context, whereas full 4D spatiotemporal networks introduce an architectural trade-off between reconstruction accuracy and inference cost. We propose a novel two-stream framework that explicitly decouples global temporal representation learning from per-time-point spatial refinement. A Transformer-based Temporal Condition Encoder processes the entire EEG sequence via factorized spatiotemporal attention, retaining sensor-resolved features. A fixed inverse then maps these features into source-indexed conditioning for a per-timestep Source-Space Transformer or volumetric convolutional refiner. Extensive evaluations on realistic synthetic data demonstrate that this temporal prior dramatically improves spatial localization, outperforming classical and spatiotemporal baselines, particularly in high-noise and multi-source regimes. Training across diverse leadfields and explicit operator mismatches improves transfer to unseen head geometries and brings template-based reconstruction closer to subject-specific inversion. Furthermore, we apply the model trained only on synthetic EEG data to real-world EEG. A logistic regressor fit on source power differences in eyes-open, eyes-closed conditions successfully decodes age groups.
Figures & tables
| Space | Head model | # (train/eval) | ||
| Surface | LEMON [ 53 ] | 61 | 516 | 127/10 |
| IBP2021 [ 54 ] | 62 | 516 | 11/5 | |
| fsaverage [ 55 ] | 16-62 | 516 | 2-3/1 | |
| Volume | fsaverage [ 55 ] | 16-62 | 599 | 3/1 |
| IBP2021 [ 54 ] | 62 | 461-641 | 11/5 |
| Method | NMAE | NEMD | Spatial NEMD | Temporal NEMD | Cosine Error | Params. (M) | Latency (ms) |
|---|---|---|---|---|---|---|---|
| Surface source space | |||||||
| SoST | 0.824 | 1.023 | 0.804 | 0.572 | 0.354 | 16.5 | 489.8 |
| SoST+TC | 0.645 | 0.701 | 0.652 | 0.255 | 0.219 | 17.4 | 504.8 |
| SoST+TC+OM | 0.577 | 0.641 | 0.593 | 0.232 | 0.185 | 17.4 | 505.9 |
| Deep CB [ 39 ] | 0.889 | 0.844 | 0.819 | 0.404 | 0.380 | 50.2 | |
| DeepSIF [ 19 ] | 0.860 | 0.937 | 0.873 | 0.728 | 0.399 | 7.4 | 19.3 |