基于Transformer的无监督脑电图癫痫发作检测研究
Intelligent Detection Method of Multi-Channel Long-Term Epileptic EEG Signals Based on RA-BiGRU
摘要: 针对现有癫痫发作检测方法严重依赖神经科专家高质量人工标注、跨患者泛化能力差且难以捕捉脑电信号长程时序依赖的核心临床痛点,本文提出一种基于改进Transformer的无监督脑电图癫痫发作检测模型。该模型无需大量标注数据即可从海量无标注脑电记录中学习通用特征,通过多尺度自适应位置编码增强模型对脑电多尺度时序特征的捕捉能力,设计通道–时序双维度稀疏注意力机制在抑制噪声和伪影干扰的同时高效建模通道间关联和长程时序依赖,构建基于异常感知的掩码重构预训练任务引导模型学习更具判别性的无监督特征。在CHB-MIT和Bonn两个国际标准脑电癫痫数据集上的实验结果表明,本文模型在仅使用10%标注数据的情况下,F1-score分别达到89.2%和96.4%,性能优于现有的主流无监督方法,验证了所提方法的有效性和临床应用价值。
Abstract: In view of the fact that the existing epileptic seizure detection methods rely heavily on high-quality manual labeling by neurologists, have poor generalization ability across patients, and are difficult to capture the core clinical pain points of long-term temporal dependence of EEG signals, this paper proposes an unsupervised EEG epileptic seizure detection model based on improved Transformer. The model can learn general features from massive unlabeled EEG records without a large amount of labeled data. The multi-scale adaptive position coding is used to enhance the model’s ability to capture multi-scale temporal features of EEG. The channel-temporal dual-dimensional sparse attention mechanism is designed to effectively model inter-channel correlation and long-range temporal dependence while suppressing noise and artifact interference. The mask reconstruction pre-training task based on anomaly perception is constructed to guide the model to learn more discriminative unsupervised features. The experimental results on two international standard EEG epilepsy datasets, CHB-MIT and Bonn, show that the F1-score of the proposed model reaches 89.2% and 96.4%, respectively, with only 10 % labeled data. The performance is better than all the mainstream unsupervised methods published in recent years, which verifies the effectiveness and clinical application value of the proposed method.
文章引用:史泽坤. 基于Transformer的无监督脑电图癫痫发作检测研究[J]. 图像与信号处理, 2026, 15(3): 441-450. https://doi.org/10.12677/jisp.2026.153039

参考文献

[1] 彭睿旻, 江军, 匡光涛, 等. 基于EEG的癫痫自动检测: 综述与展望[J]. 自动化学报, 2022, 48(2): 335-350.
[2] 欧嘉志, 詹长安, 杨丰. 一维卷积神经网络的自编码癫痫发作异常检测模型[J]. 南方医科大学学报, 2024, 44(9): 1796-1804.
[3] 张瑞峰, 高雨欣, 周煜, 等. 脑电信号自适应加权模型在癫痫发作检测中的应用[J]. 天津大学学报(自然科学与工程技术版), 2026, 59(2): 172-182.
[4] 李超凡, 陈松灿. 多层次特征建模与时空依赖挖掘的自监督脑电图分类[J]. 计算机研究与发展, 2026, 63(1): 189-198.
[5] 于洪仕, 林悦, 李宏宇. 基于混合注意力Transformer的癫痫检测方法[J]. 中国医学物理学杂志, 2026, 43(6): 811-817.
[6] 李景聪, 杨佳涛, 高炜. 脑机接口中的大模型范式[J]. 华南师范大学学报(自然科学版), 2026, 58(1): 100-112.
[7] Shoeb, A.H. (2009) Application of Machine Learning to Epileptic Seizure Onset Detection and Treatment. Master’s Thesis, Massachusetts Institute of Technology.
[8] Döner, B., Ingolfsson, T.M., Benini, L. and Li, Y. (2026) LUNA: Efficient and Topology-Agnostic Foundation Model for EEG Signal Analysis. Advances in Neural Information Processing Systems, Vancouver: NeurIPS, 2025.
[9] Cui, M., Chen, T., Jiao, Y., Wang, Y., Xie, L., Pan, Y. and Mainardi, L. (2026) BrainRVQ: A High-Fidelity EEG Foundation Model via Dual-Domain Residual Quantization and Hierarchical Autoregression. arXiv: 2602.16951.
[10] Andrzejak, R.G., Lehnertz, K., Mormann, F., Rieke, C., David, P. and Elger, C.E. (2001) Indications of Nonlinear Deterministic and Finite-Dimensional Structures in Time Series of Brain Electrical Activity: Dependence on Recording Region and Brain State. Physical Review E, 64, Article 061907.
https://doi.org/10.1103/physreve.64.061907
[11] Chowdhury, M.R., Ding, Y. and Sen, S. (2025) SSL-SE-EEG: A Framework for Robust Learning from Unlabeled EEG Data with Self-Supervised Learning and Squeeze-Excitation Networks. arXiv: 2510.19829.
[12] Chen, K., Yang, Y., Guo, J., Zhang, G., Wang, T., Zhao, G., et al. (2025) EEG-TGC: A Novel Self-Supervised Method Based on Temporal-Graph Contrast for Seizure Detection. 2025 47th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Copenhagen, 14-18 July 2025, 1-7.
https://doi.org/10.1109/embc58623.2025.11254507
[13] Hong, T., Li, D., Wang, X., Zhang, X., Yu, S. and Liu, S. (2025) Multiscale Mamba Model with Self-Supervised Learning for Cross-Subject EEG-Based Epileptic Seizure Detection. Proceedings of the 2025 12th International Conference on Biomedical and Bioinformatics Engineering, Tokyo, 27-30 November 2025, 185-191.
https://doi.org/10.1145/3794209.3794285