arXiv:2611.09496cs.LGNov 2026

Manuscript Offprint

arXiv:2611.09496

Mosaic:montage-agnostic self-distilled graph learning for subject-independent ieeg seizure detection

Arya Jalali, Mahsa Shoaran

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Intracranial EEG provides high signal-to-noise ratio and spatial resolution for detecting epileptic activity, but patient-specific electrode placement leads to substantial variation in channel count and montage across subjects. This heterogeneity limits the generalization of existing detectors under subject-independent evaluation. We propose MOSAIC (MOntage-agnostic Self-distilled Adaptive Inter-channel Connectivity learning), a lightweight graph-learning framework for subject-independent iEEG seizure detection. MOSAIC pairs a shared convolutional channel encoder with a patient-agnostic channel-attention module that infers a weighted inter-channel adjacency matrix from the encoded features, requiring no fixed montage graph. An exponential moving average self-distillation objective regularizes each prediction toward a slowly updated per-patient teacher. Across four public iEEG corpora (SWEC-ETHZ long- and short-term, Mayo, FNUSA), MOSAIC outperforms state-of-the-art baselines in F2 and Cohen's κ\kappa while learning more stable inter-channel adjacencies, demonstrating that self-distilled connectivity learning transfers across unseen implantations.

Index Terms— Intracranial EEG (iEEG), seizure detection, graph neural networks, self-distillation

1. INTRODUCTION

Epilepsy is one of the world's most common serious neurological disorders, affecting an estimated 50 million people worldwide [1]. Roughly a third of patients are drug-resistant and depend on continuous seizure monitoring and, when eligible, on surgical resection of epileptogenic zone or neuromodulation [2]. Both still rest on visual review of scalp EEG or, for more precise localization, of invasive iEEG (SEEG/ECoG) [3] – a slow, subjective process that does not scale to modern continuous recordings.

Automated detection has progressed from classifiers based on handcrafted spectral, temporal, and spatial features, such as patient-specific SVMs [5], tree-based models [4, 2] and hyperdimensional-computing classifiers [6], to deep neural networks that learn representations directly from neural signals, ranging from scalp-map recurrent convolutional networks [7] to CNNs that learn spatial filters directly over a fixed electrode arrangement, such as EEGNet [8] and EEGWaveNet [9]. Graph neural networks (GNNs) further model

the montage explicitly, passing messages over an inter-channel adjacency: DCRNN [10] derives it from electrode geometry or signal correlation, and REST [11] pairs it with a recurrent residual-state update. In all these families the layout is fixed at training time and assumed to hold at deployment.

That assumption fails on iEEG. Although iEEG offers superior signal-to-noise ratio and localization [12], electrode count and placement are chosen individually per patient, so no montage graph is shared across subjects and fixed-topology detectors degrade under subject-independent evaluation. Transformer-based approaches sidestep this by letting self-attention model inter-channel relationships directly from the signal: MVPFormer [13] disentangles content, temporal, and spatial attention across arbitrary channel counts, and Brant [14] adds a dedicated spatial-attention encoder. Both, however, pay the quadratic compute and inference latency of full self-attention. Inferring the adjacency from a single short window also inherits the non-stationarity of iEEG itself [15]: consecutive windows from the same patient, recorded through the same electrodes, can yield significantly different graphs.

We introduce MOSAIC, a lightweight graph architecture that infers inter-channel connectivity per window from a single shared attention layer, and damps this window-to-window instability with an exponential moving average (EMA) self-distillation objective that regularizes each inferred graph toward a slowly updated, patient-specific consensus. MOSAIC therefore adapts to an arbitrary, unseen montage while keeping the inferred connectivity stable across windows.

References (25)