LookAroundNet: Extending Temporal Context with Transformers for Clinically Viable EEG Seizure Detection
Þór Sverrisson, Steinn Guðmundsson
TL;DR
LookAroundNet addresses the need for robust, clinically viable EEG seizure detection by integrating extended temporal context through a transformer-based architecture. By processing a target EEG segment together with a configurable look-behind and look-ahead context, it captures longer-range temporal dependencies that mirror clinician interpretation. The method demonstrates strong cross-dataset generalization across public and proprietary ambulatory data, with ensembling of multiple context configurations achieving state-of-the-art event-based performance while maintaining practical inference costs. The work highlights the importance of diverse training data, temporal-context modeling, and pragmatic evaluation via SzCORE for moving automated seizure detection toward real-world clinical deployment. It also outlines future directions for handling artifacts, improving short-seizure detection, and enabling edge-ready implementations.
Abstract
Automated seizure detection from electroencephalography (EEG) remains difficult due to the large variability of seizure dynamics across patients, recording conditions, and clinical settings. We introduce LookAroundNet, a transformer-based seizure detector that uses a wider temporal window of EEG data to model seizure activity. The seizure detector incorporates EEG signals before and after the segment of interest, reflecting how clinicians use surrounding context when interpreting EEG recordings. We evaluate the proposed method on multiple EEG datasets spanning diverse clinical environments, patient populations, and recording modalities, including routine clinical EEG and long-term ambulatory recordings, in order to study performance across varying data distributions. The evaluation includes publicly available datasets as well as a large proprietary collection of home EEG recordings, providing complementary views of controlled clinical data and unconstrained home-monitoring conditions. Our results show that LookAroundNet achieves strong performance across datasets, generalizes well to previously unseen recording conditions, and operates with computational costs compatible with real-world clinical deployment. The results indicate that extended temporal context, increased training data diversity, and model ensembling are key factors for improving performance. This work contributes to moving automatic seizure detection models toward clinically viable solutions.
