A Transformer-Based Framework With Data Augmentation for Robust Seizure Detection Across Invasive and Noninvasive Neural Recordings

IF 5 1区 医学 Q1 NEUROSCIENCES
Yue Yuan, Junyang Zhang, Chen Wang, Hao Yan, Xiangyu Ye, Wenjun Ruan, Xinzhuo Teng, Zheshan Guo, Zhaoxiang Wang
{"title":"A Transformer-Based Framework With Data Augmentation for Robust Seizure Detection Across Invasive and Noninvasive Neural Recordings","authors":"Yue Yuan,&nbsp;Junyang Zhang,&nbsp;Chen Wang,&nbsp;Hao Yan,&nbsp;Xiangyu Ye,&nbsp;Wenjun Ruan,&nbsp;Xinzhuo Teng,&nbsp;Zheshan Guo,&nbsp;Zhaoxiang Wang","doi":"10.1111/cns.70584","DOIUrl":null,"url":null,"abstract":"<div>\n \n \n <section>\n \n <h3> Aims</h3>\n \n <p>Epilepsy affects more than 50 million peolple worldwide and requires reliable seizure detection systems to mitigate risks associated with unpredictable seizures. Existing machine learning frameworks are limited in generalizability, signal fidelity, and clinical translation, particularly when bridging invasive and non-invasive modalities. This study aims to develop a robust and generalizable seizure detection model capable of supporting cross-modal applicability.</p>\n </section>\n \n <section>\n \n <h3> Methods</h3>\n \n <p>We proposed a Transformer-based seizure detection framework designed for end-to-end analysis of raw neurophysiological signals. To address class imbalance and temporal variability, three data augmentation strategies: sequential sampling, random contiguous sampling, and random non-contiguous sampling, were implemented. A channel-agnostic attention mechanism was incorporated to ensure robustness across heterogeneous electrode configurations.</p>\n </section>\n \n <section>\n \n <h3> Results</h3>\n \n <p>The framework achieved &gt; 99% accuracy in detecting diverse seizure patterns from rat hippocampal recordings (CA1/CA3) and maintained strong performance across different epilepsy models (PTX- and 4-AP-induced seizures). It also demonstrated resilience under reduced-channel configurations (F1-score: 98.7% with 2 channels). In human electroencephalography (EEG) validation, the model achieved a recall of 99.1% and an overall accuracy of 90.4%, despite the inherent limitations of EEG in resolving high-frequency oscillations and its susceptibility to artifacts.</p>\n </section>\n \n <section>\n \n <h3> Conclusion</h3>\n \n <p>By eliminating manual feature engineering and enabling robust cross-modal adaptation, this framework bridges invasive experimental research and non-invasive clinical practice. Its efficiency and scalability support potential applications in real-time seizure monitoring and closed-loop neuromodulation systems. Future work will focus on integration with hemodynamic biomarkers, validation in chronic epilepsy models, and optimization for wearable and real-time deployment.</p>\n </section>\n </div>","PeriodicalId":154,"journal":{"name":"CNS Neuroscience & Therapeutics","volume":"31 9","pages":""},"PeriodicalIF":5.0000,"publicationDate":"2025-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1111/cns.70584","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"CNS Neuroscience & Therapeutics","FirstCategoryId":"3","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1111/cns.70584","RegionNum":1,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"NEUROSCIENCES","Score":null,"Total":0}
引用次数: 0

Abstract

Aims

Epilepsy affects more than 50 million peolple worldwide and requires reliable seizure detection systems to mitigate risks associated with unpredictable seizures. Existing machine learning frameworks are limited in generalizability, signal fidelity, and clinical translation, particularly when bridging invasive and non-invasive modalities. This study aims to develop a robust and generalizable seizure detection model capable of supporting cross-modal applicability.

Methods

We proposed a Transformer-based seizure detection framework designed for end-to-end analysis of raw neurophysiological signals. To address class imbalance and temporal variability, three data augmentation strategies: sequential sampling, random contiguous sampling, and random non-contiguous sampling, were implemented. A channel-agnostic attention mechanism was incorporated to ensure robustness across heterogeneous electrode configurations.

Results

The framework achieved > 99% accuracy in detecting diverse seizure patterns from rat hippocampal recordings (CA1/CA3) and maintained strong performance across different epilepsy models (PTX- and 4-AP-induced seizures). It also demonstrated resilience under reduced-channel configurations (F1-score: 98.7% with 2 channels). In human electroencephalography (EEG) validation, the model achieved a recall of 99.1% and an overall accuracy of 90.4%, despite the inherent limitations of EEG in resolving high-frequency oscillations and its susceptibility to artifacts.

Conclusion

By eliminating manual feature engineering and enabling robust cross-modal adaptation, this framework bridges invasive experimental research and non-invasive clinical practice. Its efficiency and scalability support potential applications in real-time seizure monitoring and closed-loop neuromodulation systems. Future work will focus on integration with hemodynamic biomarkers, validation in chronic epilepsy models, and optimization for wearable and real-time deployment.

Abstract Image

一种基于变压器的数据增强框架,用于跨侵入性和非侵入性神经记录的鲁棒癫痫检测
目的癫痫影响全世界5000多万人,需要可靠的癫痫发作检测系统来减轻与不可预测的癫痫发作相关的风险。现有的机器学习框架在通用性、信号保真度和临床翻译方面受到限制,特别是在连接侵入性和非侵入性模式时。本研究旨在开发一种鲁棒性和可泛化的癫痫检测模型,能够支持跨模式的适用性。方法提出了一种基于变压器的癫痫检测框架,用于端到端分析原始神经生理信号。为了解决类别不平衡和时间变异问题,采用了顺序抽样、随机连续抽样和随机非连续抽样三种数据增强策略。一个通道不可知的注意机制被纳入以确保跨异质电极配置的鲁棒性。结果该框架在从大鼠海马记录(CA1/CA3)中检测不同癫痫模式方面达到了99%的准确率,并在不同的癫痫模型(PTX和4- ap诱导的癫痫发作)中保持了良好的表现。它在减少通道配置下也表现出弹性(f1得分:98.7%,2通道)。在人类脑电图(EEG)验证中,尽管EEG在解决高频振荡及其对伪像的敏感性方面存在固有局限性,但该模型的召回率为99.1%,总体准确率为90.4%。通过消除手动特征工程和实现强大的跨模态适应,该框架连接了侵入性实验研究和非侵入性临床实践。它的效率和可扩展性支持在实时癫痫监测和闭环神经调节系统中的潜在应用。未来的工作将集中在与血液动力学生物标志物的整合,慢性癫痫模型的验证,以及可穿戴和实时部署的优化。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CNS Neuroscience & Therapeutics
CNS Neuroscience & Therapeutics 医学-神经科学
CiteScore
7.30
自引率
12.70%
发文量
240
审稿时长
2 months
期刊介绍: CNS Neuroscience & Therapeutics provides a medium for rapid publication of original clinical, experimental, and translational research papers, timely reviews and reports of novel findings of therapeutic relevance to the central nervous system, as well as papers related to clinical pharmacology, drug development and novel methodologies for drug evaluation. The journal focuses on neurological and psychiatric diseases such as stroke, Parkinson’s disease, Alzheimer’s disease, depression, schizophrenia, epilepsy, and drug abuse.
×
引用
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学术官方微信