TL;DR
Intracranial EEG (iEEG) electrodes are implanted differently in every patient, meaning "channel 5" in one brain has nothing to do with "channel 5" in another. This paper introduces iCLR, a self-supervised framework that learns what each electrode is recording by looking at both its own activity and its relationship to the surrounding neural population. Without any patient-specific adaptation, iCLR's channel embeddings outperform existing methods at predicting which brain region an electrode sits in—even in brand-new patients.
What Problem Does This Paper Address?
In standard scalp EEG, electrodes sit in standardized spots. In intracranial EEG (iEEG)—where surgeons implant electrodes directly into the brain for clinical reasons like epilepsy—every patient has a unique setup. The number, type, and anatomical location of electrodes vary wildly from person to person. As a result, a model trained on one patient's recordings cannot easily transfer to another's.
To bridge this gap, researchers need a shared representation space where individual channels can be compared across patients. A natural approach is to characterize each channel by its own temporal activity. However, a channel's local signal alone doesn't always tell the full story. Just as you can learn a lot about a person by seeing who they spend time with, you can learn a lot about a recording site from its relationships to the simultaneously recorded neural population. The challenge is exploiting that population context when the "crowd" of electrodes changes from patient to patient.
Methods
The authors introduce iCLR, a self-supervised framework inspired by NuCLR (a neuron-level contrastive learning method). It works in three main stages:
- Temporal Feature Extraction: Each channel's 60-second recording is first processed independently by a temporal frontend (the authors test four: a lightweight CNN-attention model
CAttn,HTS-AT, pretrained audio modelCLAP, andBrainBERT), producing a sequence of temporal tokens rather than a single collapsed vector. - Population-Context Encoder: These tokens are passed through $L$ blocks of alternating spatial attention (across simultaneously recorded channels at each time step) and temporal attention (across time within each channel). This lets each channel's representation absorb context from the broader population while preserving a channel-level output.
- Volume-Conduction-Aware Contrastive Pretraining: iCLR is trained by contrasting two temporally separated 60-second windows of the same channel (positive pair) against other channels in the same recording (negatives). Crucially, because nearby contacts on the same electrode shaft pick up shared signals through physical tissue (volume conduction), treating them as negatives would confuse recording geometry with function. iCLR therefore samples negatives only from the same shaft and masks out strongly correlated pairs ($|\rho| > 0.25$).
For downstream evaluation, the pretrained encoder is frozen, and a lightweight cross-attention probe is trained on top to predict anatomical regions on held-out patients.
Datasets
The authors train and evaluate on the Omni-iEEG benchmark (Duan et al., 2026), a large-scale, multi-center iEEG dataset with standardized train/test splits. They focus on two channel-level anatomical localization tasks evaluated on held-out patients:
- Anatomy-5: Coarse classification into 5 major brain regions (frontal, temporal, parietal, limbic, or occipital).
- Anatomy-12: Fine-grained classification into 12 anatomical regions, including an added category for subcortical areas.
Key Insights and Ideas
- Population context beats local features alone: Adding spatial attention consistently boosts performance across all temporal frontends. Ablating spatial attention during pretraining—or feeding only one channel at a time at inference—drops accuracy noticeably.
- Audio pretraining transfers to brainwaves:
CLAP(pretrained on large-scale audio-language data) serves as a remarkably strong temporal frontend for iEEG, andiCLR_CLAPoutperforms end-to-end supervisedCLAP. - Better recall on rare brain regions: Because clinical implantations favor certain regions (like prefrontal or inferior temporal cortex), models often neglect rarer areas. iCLR improves recall on 7 of the 8 least-frequent regions in Anatomy-12 (e.g., Mesial temporal jumps from 0.46 to 0.64), at a slight cost to the most frequent ones.
- Not just recording metadata: Control experiments show that classifiers trained only on metadata (like electrode names) or grouped by center and montage size fall well short of iCLR, confirming the model relies on genuine physiological signals.
Key Results
- State-of-the-art frozen representations:
iCLR_BrainBERTachieves the best overall frozen performance on Omni-iEEG, reaching 0.539 F1 / 0.553 BAcc on Anatomy-5 and 0.413 F1 / 0.470 BAcc on Anatomy-12, outperforming frozenBrainBERT,PopT, andNuCLR. - Fine-tuning and Model Soups: When
iCLR_CLAPis fine-tuned end-to-end and averaged across independently fine-tuned checkpoints ("model soups"), performance climbs further to 0.562 F1 / 0.583 BAcc on Anatomy-5 and 0.428 F1 / 0.461 BAcc on Anatomy-12.
Limitations and Future Work
- Implantation confounds: Because clinical electrode placement is guided by patient-specific hypotheses, population context might still capture subtle implantation patterns alongside pure neurophysiology.
- Sparse montages: Performance depends on the number and distribution of available channels, which could limit accuracy in sparse recordings or underrepresented regions.
- Scope of evaluation: The main evaluation focuses on anatomical localization within Omni-iEEG (whose held-out cohort spans two recording sites); preliminary tests on seizure-onset-zone localization show smaller gains. Future work should evaluate robustness across more recording sites and test transfer to dynamic clinical and functional tasks (e.g., seizure detection, sleep-awake classification).
Summary updated