Manuscript Offprint

arXiv:2610.06726

Decoupling Time and Space: A Temporally Conditioned Refinement for EEG Source Imaging

Marco Morik, Jesse Palarus, Carmen Vidaurre, Klaus-Robert Müller, Shinichi Nakajima

Marco Morik, Jesse Palarus, Carmen Vidaurre, Klaus-Robert Müller, and Shinichi Nakajima

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 tradeoff 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.

Index Terms—Electroencephalography, inverse problems, signal reconstruction, deep learning, time series analysis

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

This work was funded by the German Federal Ministry of Education and Research under the grant BIFOLD25B. Furthermore, K.-R. Müller was partly supported by the Institute of Information & Communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No. RS-2019-II190079, Artificial Intelligence Graduate School Program, Korea University) and grant funded by the Korea government (MSIT) (No. RS-2024-00457882, AI Research Hub Project), DFG and Hector Science Foundation.

Corresponding authors are M. Morik (m.morik@tu-berlin.de) and S. Nakajima (nakajima@tu-berlin.de)

M. Morik, K.-R. Müller and S. Nakajima are with the Berlin Institute for the Foundations of Learning and Data, Germany and also with the Machine Learning Group, Technische Universität Berlin, Germany

J. Palarus was with the Machine Learning Group, Technische Universität Berlin, Germany

K.-R. Müller is additionally with the Department of Artificial Intelligence, Korea University, Seoul, Korea and also with the Max Planck Institut für Informatik, Saarbrücken, Germany

C. Vidaurre is with Basque Center on Cognition, Brain and Language, Mikeletegi Pasealekua, Spain, with Ikerbasque, Bizkaia, Spain, and with Department of Machine Learning, Technische Universität Berlin, Germany

S. Nakajima is additionally with RIKEN AIP, Tokyo, Japan

I. INTRODUCTION

Understanding human brain dynamics requires imaging modalities with high temporal resolution and reliable spatial inference [1], [2]. Electroencephalography (EEG) and magnetoencephalography (MEG) provide millisecond-scale measurements of neural activity, enabling the study of fast cognitive processes [3]–[9]. However, recovering the underlying neural sources from scalp sensor measurements remains fundamentally ill-posed [10].

In a typical clinical or research setting, the number of sensors MM is considerably smaller than the number of candidate sources SS whose activity is to be estimated. The forward model, yt=Lxt+ϵt\mathbf{y}_t = \mathbf{L}\mathbf{x}_t + \epsilon_t, where L\mathbf{L} is the lead field matrix, is therefore highly underdetermined [11]. The lead field varies substantially across subjects [12]–[14]. Accurate reconstruction depends on forward-model fidelity, noise, and the imposed priors.

Classical distributed methods, such as minimum norm estimates (MNE) and eLORETA [15], introduce hand-crafted mathematical regularization (e.g., L2L_{2} norms or spatial smoothness) [16]. While computationally efficient, these approaches impose rigid assumptions that limit their ability to capture the diverse, sparse, and distributed patterns observed in true neural activity [17].

Deep learning methods provide a powerful data-driven alternative, learning complex priors from simulated data and directly mapping sensor measurements to source estimates [18]–[20]. Although these end-to-end approaches have demonstrated improved performance [21] with generic and personalized head models [22], they typically incorporate the biophysical forward model only implicitly through their training data. Transfer under changed head models and noise therefore requires explicit evaluation.

Hybrid approaches combine physics-based initialization with neural refinement, for example by applying an eLORETA pseudo-inverse followed by volumetric convolutional networks [23]. While effective for spatial reconstruction, these methods process each time step independently, neglecting the highly autocorrelated nature of signals from biological neural networks. Spatiotemporal architectures offer different trade-offs between reconstruction accuracy, spatial representation, temporal context, and inference cost. Approaches such as recurrent networks [19] are fast, but accuracy is limited, while full spatiotemporal convolutions that explicitly attempt to model time in source space incur severe computational costs. The size of this 4D spatiotemporal volume forces compromises, limiting either

SUBMITTED TO IEEE TRANSACTIONS ON MEDICAL IMAGING

the spatial resolution of the source space or the extent of the temporal context.

To address these limitations, we propose a temporally conditioned framework (SoST+TC) that explicitly decouples global temporal modeling from spatial reconstruction. Our proposed method distills a compact representation of the global temporal context by learning to solve the biophysical inverse problem strictly on simulated data. This design enables the efficient integration of long-range temporal priors to steer volumetric source reconstruction, while simultaneously learning a representation of temporal brain dynamics. Furthermore, we show that robust training with varying leadfields improves transfer across subject head geometries. Our operator-mixing protocol explicitly incorporates mismatches between data-generating and inversion leadfields during training, enabling template-based reconstruction to approach the accuracy of subject-specific inversion on held-out head geometries.

References (100)

Couldn't load all references. Reload the page to try again.