EpiTwin: Spatiotemporal Graph Transformers for Epileptic sEEG Signal Reconstruction
Abstract
Stereotactic electroencephalography (sEEG) provides temporally precise intracranial recordings but is inherently constrained by sparse and irregular spatial sampling due to clinical limitations on electrode implantation. Signal reconstruction under this setting aims to infer neural activity at unmonitored locations, potentially expanding the coverage of neural recordings without increasing the number of implanted electrodes. However, most existing sEEG reconstruction methods underutilize the spatial information of electrode contacts in both encoding and modeling, and rely on deterministic objectives that favor average patterns, leading to over-smoothed reconstructions. We propose EpiTwin, a conditional spatial graph transformer for sEEG signal reconstruction, comprising three key components. Hybrid Spatial Positional Encoding (HSPE) constructs explicit spatial identities from electrode coordinates, graph topology, and anatomical priors. Geometry–Functional Biased Attention (GFBA) incorporates geometric distance and data-driven functional similarity biases into attention computation. The adversarial refinement training employs a multi-scale discriminator to counter reconstruction over-smoothing. Experiments on real-world clinical sEEG data demonstrate that EpiTwin consistently achieves lower reconstruction error under electrode series-level masking, outperforming recent foundation models such as LaBraM with a 16.8\% relative reduction in RMSE. Furthermore, EpiTwin effectively mitigates spectral over-smoothing and improves reconstruction fidelity.
Lay Summary
Stereo-electroencephalography (sEEG) provides temporally precise intracranial recordings of brain activity. However, due to clinical constraints on electrode implantation, its spatial sampling is often sparse and irregular. Reconstructing signals at unmonitored locations can therefore expand the effective coverage of neural recordings without increasing the number of implanted electrodes. To this end, we propose EpiTwin, a spatiotemporal graph Transformer for reconstructing sEEG signals from sparse and irregular electrode observations. By integrating electrode geometry, brain-network topology, and anatomical relationships, EpiTwin learns to infer missing neural activity through masked signal reconstruction. Experiments on clinical sEEG data show that EpiTwin outperforms conventional methods and recent brain foundation models, while remaining robust across patients with different electrode placements.