Related Experiment Video
Updated: Oct 25, 2026

Cortical Source Analysis of High-Density EEG Recordings in Children
Published on: June 30, 2014
Transformer networks are robust learners of source localization for EEG measurements
David Marvin Hart1, Simon Polichtchouk1, Moritz Dannhauer2
1East Carolina University, 1000 E 5th Street, Greenville, North Carolina, 27858-4353, United States.
Objective:
EEG source localization is an ill-posed inverse problem complicated by measurement noise, electrode dropout from sensor miscalibration, and variability in the number of active sources. Classical methods such as eLORETA and LCMV beamforming impose regularization assumptions that degrade under realistic noise conditions and do not naturally extend to multi-source scenarios. Recent neural network approaches improve localization accuracy but are typically trained and evaluated under idealized conditions that limit their applicability to real-world EEG acquisition. This work aims to develop and evaluate a source localization model that generalizes across the noise levels, source counts, and electrode configurations encountered in clinical and experimental EEG settings. Approach: We present a transformer-based model for single- and multi-source EEG localization. Hundreds of thousands of simulated EEG measurements are generated from known source locations, spanning a range of noise levels, source counts, and electrode dropout configurations, to train and evaluate the model. We establish a systematic evaluation framework that explicitly factors in source region density, signal-to-noise ratio, and electrode availability, and benchmark the transformer against classical (eLORETA, LCMV beamforming) and deep learning baselines across these conditions. We additionally conduct a thorough ablation study on network architecture and training pipeline design. Main results: Across all tested conditions, the transformer consistently outperforms classical and deep learning approaches, with improvements as high as 12\,mm in mean localization error (MLE) for multi-source scenarios under high noise. Additionally, when number of sources is unknown, the transformer can correctly predict the number and location of sources and drastically out perform the threshold-based approach (e.g an F1 Score of 68\% vs 12\% when simulated at 25\% noise). The multiembedding transformers maintains reasonable performance under conditions such as electrode dropout and increased noise. Significance: By explicitly modeling the noise, electrode dropout, and multi-source variability that characterize real EEG acquisition, this work addresses a key gap between benchmark performance and experimental utility in EEG source localization. These results lay the groundwork for more robust localization techniques applicable to real EEG data, with potential relevance to applications such as brain-computer interfaces. The data and code for this work will be made publicly available to support further development and benchmarking in the field.
