Time-frequency embedding with contrastive pre-training allows sub-second seizure detection
Helena MerkeriD, Isabella Dalla BettaiD, Matthew A. WilsoniD, Francisco J FloresiD, Emery N. BrowniD
Abstract
Rapid and accurate detection of electrographic seizures is critical for both clinical diagnosis and neuroscience research. Although seizure identification is commonly performed in the time domain, analysis in the time-frequency domain provides a more comprehensive representation of seizure characteristics. In this study, we present a 3D convolutional neural network (CNN) that incorporates a trainable continuous wavelet transform (CWT) layer, enabling adaptive time-frequency feature learning directly from raw EEG. To address common data challenges, we augment the 3D CNN for pre-training with contrastive learning, comparing contrastive predictive coding (CPC) against bidirectional contrastive learning (BiCL). On single-channel and multi-channel data, the standard 3D CNN outperformed both a 2D CNN with pre-computed CWT and a 1D CNN that processes raw signals, achieving >95% accuracy down to 0.5-second segments. Compared to the standard 3D CNN, the 3D CNN with BiCL pre-training showed superior performance in both low-data and class imbalance scenarios. Further experiments involving band-pass filtering and temporal shuffling revealed that classification is driven primarily by low-frequency patterns and statistical features rather than temporal dependencies. The proposed framework also maintained >90% accuracy with moderate noise and downsampling applied to inputs, as well as when cross-subject generalization was evaluated using held-out subjects. We show that a 3D CNN with a trainable CWT layer and BiCL pre-training enables accurate sub-second seizure detection and effectively mitigates data limitations common in clinical settings. This work demonstrates that time-frequency embedding within CNNs, augmented by self-supervised pre-training, offers a promising path toward architectures for sub-second seizure detection in the presence of practical limitations of real-world scenarios.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- FWCI
- 0.00
- Field percentile
- 5th percentile
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- A Comparison of Deep Neural Networks for Seizure Detection in EEG Signals
Poomipat Boonyakitanont, Apiwat Lek-uthai, … Jitkomut Songsiri·bioRxiv·Jul 15, 2019
- Power-to-power cross-frequency coupling as a novel approach for temporal lobe seizure detection and analysis
Bar Lehmann, Andrei V. Medvedev·Neuroscience InformaticsPeer-reviewed·Oct 28, 2025
- Multi-channel deep learning with intracranial neurostimulation can localize seizure onset zones in humans
Graham Walter Johnson, Leon Y. Cai, … Dario J. Englot·bioRxiv·Feb 28, 2022
- ScoreNet: A Neural network-based post-processing model for identifying epileptic seizure onset and offset in EEGs
Poomipat Boonyakitanont, Apiwat Lek-uthai, Jitkomut Songsiri·IEEE Transactions on Neural Systems and Rehabilitation EngineeringPeer-reviewed·Jan 1, 2021
- Localising the Seizure Onset Zone from Routine Interictal and Ictal Scalp EEG Via a Factorised Spatiotemporal Ensemble Deep Learning Framework
Songyuan Shi·bioRxiv·Oct 22, 2026
- TSD: Transformers for Seizure Detection
Y. Ma, C. Liu, … O. Kavehei·bioRxiv·Jan 24, 2023