arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.09110cs.LG
收藏

CodeBrain: 桥接解耦分词器与多尺度架构的EEG基础模型

CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Model

Saw Swee Hock School of Public Health, National University of Singapore(新加坡国立大学 Saw Swee Hock 公共卫生学院);Institute of Data Science, National University of Singapore(新加坡国立大学数据科学研究所);Guangzhou Research Translation and Innovation Institute, National University of Singapore(新加坡国立大学广州研究翻译与创新研究所);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);Beijing Key Laboratory of Brainnetome and Brain-Computer Interface, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所脑网络与脑机接口重点实验室);Brainnetome Center, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所脑网络中心)

Jingying Ma, Feng Wu, Qika Lin, Yucheng Xing, Chenyu Liu, Ziyu Jia, Mengling Feng

AI总结:

CodeBrain通过解耦分词器和多尺度架构提升EEG基础模型的表示能力,实现对大脑活动的高效捕捉与可解释性。

摘要:

电生理图(EEG)提供实时脑活动洞察,并支持神经科学中的多样化应用。尽管EEG基础模型(EFMs)已出现以解决任务特定模型的可扩展性问题,但当前方法仍产生临床不可解释且判别力弱的表示,难以有效捕捉全局依赖并忽视重要局部神经事件。我们提出了CodeBrain,一种两阶段EFM,旨在填补这一空白。第一阶段引入TFDual-Tokenizer,将异构的时间和频率EEG信号解耦为离散标记,通过二次扩展表示空间以增强判别力,并通过建议潜在神经事件和频谱节律的联系提供领域特定的表示层面可解释性。第二阶段提出多尺度EEGSSM架构,结合结构化全局卷积与滑动窗口注意力机制,以高效捕捉稀疏长程和局部依赖,反映大脑的小世界拓扑结构。在最大的公共EEG语料库上预训练,CodeBrain在八个下游任务和十个数据集上实现强大的泛化能力,通过全面的消融分析、缩放定律分析和可解释性评估得到支持。代码和预训练权重可在https://github.com/jingyingma01/CodeBrain获取。

英文摘要:

Electroencephalography (EEG) provides real-time insights into brain activity and supports diverse applications in neuroscience. While EEG foundation models (EFMs) have emerged to address the scalability issues of task-specific models, current approaches still yield clinically uninterpretable and weakly discriminative representations, inefficiently capturing global dependencies and neglecting important local neural events. We present CodeBrain, a two-stage EFM designed to fill this gap. In the first stage, we introduce the TFDual-Tokenizer, which decouples heterogeneous temporal and frequency EEG signals into discrete tokens, quadratically expanding the representation space to enhance discriminative power and offering domain-specific representation-level interpretability by suggesting potential links to neural events and spectral rhythms. In the second stage, we propose the multi-scale EEGSSM architecture, which combines structured global convolution with sliding window attention to efficiently capture both sparse long-range and local dependencies, reflecting the brain's small-world topology. Pretrained on the largest public EEG corpus, CodeBrain achieves strong generalization across eight downstream tasks and ten datasets under distribution shifts, supported by comprehensive ablations, scaling-law analyzes, and interpretability evaluations. The code and the pretrained weights are available at https://github.com/jingyingma01/CodeBrain.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑