Back

Time-frequency embedding with contrastive pre-training allows sub-second seizure detection

Merker, H. A.; Dalla Betta, I.; Wilson, M. A.; Flores, F. J.; Brown, E. N.

2026-01-22 neuroscience
10.64898/2026.01.21.700017 bioRxiv
Show 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.

Matching journals

The top 6 journals account for 50% of the predicted probability mass.

1
NeuroImage
813 papers in training set
Top 0.7%
17.3%
2
Journal of Neural Engineering
197 papers in training set
Top 0.3%
12.3%
3
Scientific Reports
3102 papers in training set
Top 15%
6.7%
4
PLOS Computational Biology
1633 papers in training set
Top 6%
6.3%
5
PLOS ONE
4510 papers in training set
Top 32%
4.8%
6
Imaging Neuroscience
242 papers in training set
Top 0.7%
4.8%
50% of probability mass above
7
IEEE Journal of Biomedical and Health Informatics
34 papers in training set
Top 0.4%
3.9%
8
Frontiers in Neuroscience
223 papers in training set
Top 2%
3.5%
9
Epilepsia
49 papers in training set
Top 0.4%
3.5%
10
IEEE Transactions on Biomedical Engineering
38 papers in training set
Top 0.4%
2.0%
11
Journal of Neuroscience Methods
106 papers in training set
Top 0.8%
1.9%
12
Advanced Science
249 papers in training set
Top 10%
1.9%
13
Nature Communications
4913 papers in training set
Top 50%
1.8%
14
Human Brain Mapping
295 papers in training set
Top 3%
1.7%
15
Biomedical Signal Processing and Control
18 papers in training set
Top 0.3%
1.5%
16
Communications Biology
886 papers in training set
Top 13%
1.3%
17
Brain Communications
147 papers in training set
Top 2%
1.3%
18
Neural Computation
36 papers in training set
Top 0.6%
0.9%
19
Medical Image Analysis
33 papers in training set
Top 1.0%
0.8%
20
Brain
154 papers in training set
Top 5%
0.7%
21
IEEE Transactions on Neural Systems and Rehabilitation Engineering
40 papers in training set
Top 0.6%
0.7%
22
Expert Systems with Applications
11 papers in training set
Top 0.5%
0.7%
23
Proceedings of the National Academy of Sciences
2130 papers in training set
Top 47%
0.6%
24
Experimental Neurology
57 papers in training set
Top 2%
0.6%