Abstract
Deep learning models for intracranial electroencephalography (iEEG) often struggle with patient-specific electrode configurations and limited data availability. We present a channel-adaptive (CA) architecture that decouples channel processing from spatial fusion, allowing for pre-training on heterogeneous datasets and rapid fine-tuning on new patients. By utilizing Holographic Reduced Representations (HRR) for spatial fusion and Temporal Convolutional Networks (TCN) for long-term memory, our model achieves state-of-the-art seizure classification performance with significantly reduced patient-specific training data.
Introduction
Intracranial EEG (iEEG) is a critical tool for diagnosing and monitoring epilepsy. However, applying deep learning (DL) to iEEG signals faces three primary challenges:
- Heterogeneous Electrode Placement: Clinical electrode configurations are unique to each patient, preventing the direct application of models trained on one subject to another.
- Data Scarcity: Subject-specific models cannot leverage large-scale datasets from other patients, requiring extensive training data for every new individual.
- Limited Temporal Context: Standard DL models often process short windows (1–5 seconds), whereas clinical diagnosis requires observing minutes of data to capture seizure evolution.
This work introduces a Channel-Adaptive (CA) architecture designed as a modular framework to overcome these limitations through independent channel encoding and vector-symbolic spatial fusion.
Proposed Architecture
The CA architecture consists of three composable stages designed to handle variable input dimensions and long-term temporal dependencies.
1. Short-term Encoder
The model processes each iEEG channel independently using established architectures such as EEGNet or EEGWaveNet. This stage is agnostic to the total number of channels, allowing the model to learn general features of seizure activity across different brain regions.
2. Spatial HRR Fusion
To aggregate features from an arbitrary number of channels, we employ Holographic Reduced Representations (HRR). Each channel is assigned a trainable scalar "key." Features are bound to these keys via circular convolution and then summed. This approach preserves spatial relationships in a fixed-dimension vector regardless of the input channel count, offering a parameter-efficient alternative to Transformer-based fusion.
3. Long-term TCN Memory
The fused spatial vectors are processed by a Temporal Convolutional Network (TCN) with a receptive field of up to 105 seconds. This extended context window allows the model to capture the temporal evolution of seizures, aligning its diagnostic process more closely with human expert analysis.
Experimental Results
The architecture was evaluated on two datasets from the Sleep-Wake-Epilepsy-Center (SWEC): a short-term dataset (16 subjects, 104 seizures) and a long-term dataset (18 subjects, 244 seizures, ~2300 hours).
Performance and Data Efficiency
The CA models consistently outperformed non-adaptive baselines. On the long-term dataset, CA-EEGNet achieved a median F1-score of 0.79, compared to 0.74 for the baseline EEGNet. Notably, the CA architecture demonstrates extreme data efficiency.
As shown in Figure 2, a CA model fine-tuned on just a single seizure (1-shot) can outperform a baseline model trained on nearly all available patient data (n-1 shot). Furthermore, fine-tuning the CA model required five times fewer epochs than training a subject-specific baseline from scratch.
Discussion
The success of the CA architecture stems from decoupling "what" a seizure looks like from "where" it occurs. By treating channels independently at the outset, the model can be pre-trained on a large, heterogeneous pool of subjects. This transfer learning capability allows the model to generalize to new patients with entirely different electrode configurations.
The use of Vector-Symbolic Architectures (VSA) for fusion is particularly efficient, requiring only one additional parameter per channel. This results in models that are 3 to 4 orders of magnitude smaller than large-scale Transformers, making them suitable for deployment on clinical edge hardware.
Conclusion
The proposed channel-adaptive framework provides a scalable and efficient solution for seizure classification in diverse clinical settings. Its modular design allows for the integration of future state-of-the-art encoders, while its ability to learn from heterogeneous data sources significantly lowers the barrier for rapid clinical deployment.
Summary updated