CodeBrain: 桥接解耦分词器与多尺度架构的EEG基础模型
CodeBrain: Bridging Decoupled Tokenizer and Multi-Scale Architecture for EEG Foundation Model
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分析而来,可能存在错误,请以论文正文为准。