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

IF 3.8
Helena A Merker, Isabella Dalla Betta, Matthew A Wilson, Francisco J Flores, Emery N Brown
{"title":"Time-frequency embedding with contrastive pre-training allows sub-second seizure detection.","authors":"Helena A Merker, Isabella Dalla Betta, Matthew A Wilson, Francisco J Flores, Emery N Brown","doi":"10.1088/1741-2552/ae98b6","DOIUrl":null,"url":null,"abstract":"<p><p><i>Objective.</i>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.<i>Approach.</i>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 against bidirectional contrastive learning.<i>Main results.</i>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, achieving95% accuracy down to 0.5-second segments. Contrastive pre-training improved the performance of the 3D CNN 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 maintained90% accuracy with moderate noise and downsampling applied to inputs, as well as when cross-subject generalization was evaluated using held-out subjects.<i>Significance.</i>We show that a 3D CNN with a trainable CWT layer and contrastive 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.</p>","PeriodicalId":94096,"journal":{"name":"Journal of neural engineering","volume":" ","pages":""},"PeriodicalIF":3.8000,"publicationDate":"2026-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of neural engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1088/1741-2552/ae98b6","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Objective.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.Approach.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 against bidirectional contrastive learning.Main results.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, achieving95% accuracy down to 0.5-second segments. Contrastive pre-training improved the performance of the 3D CNN 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 maintained90% accuracy with moderate noise and downsampling applied to inputs, as well as when cross-subject generalization was evaluated using held-out subjects.Significance.We show that a 3D CNN with a trainable CWT layer and contrastive 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.

时间-频率嵌入与对比预训练允许亚秒癫痫检测。
目的:快速准确地检测癫痫电图对临床诊断和神经科学研究至关重要。虽然癫痫发作识别通常在时域进行,但在时频域的分析提供了癫痫发作特征的更全面的表示。方法:在这项研究中,我们提出了一个3D卷积神经网络(CNN),它包含一个可训练的连续小波变换(CWT)层,可以直接从原始脑电图中进行自适应时频特征学习。为了解决常见的数据挑战,我们用对比学习增强了3D CNN的预训练,比较了对比预测编码(CPC)和双向对比学习(BiCL)。主要结果:在单通道和多通道数据上,标准3D CNN优于预先计算CWT的2D CNN和处理原始信号的1D CNN,在0.5秒的片段内实现了bb0 95%的准确率。对比预训练提高了3D CNN在低数据和类别不平衡场景下的性能。进一步涉及带通滤波和时间变换的实验表明,分类主要由低频模式和统计特征驱动,而不是时间依赖性。所提出的框架在适度噪声和降采样的情况下也保持了bb0 - 90%的准确率,当使用hold - down主题评估跨主题泛化时也是如此。意义:我们表明,具有可训练CWT层和对比预训练的3D CNN可以实现精确的亚秒级癫痫检测,并有效缓解临床环境中常见的数据限制。这项工作表明,cnn内的时频嵌入,通过自我监督预训练的增强,在现实世界场景的实际限制下,为亚秒癫痫检测的架构提供了一条有前途的道路。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书