arxiv.org·2026/10/22
针对 EEG 基础模型普遍追逐规模、难以在资源受限设备部署的问题,BrainCodes 用冻结的 RVQ tokenizer BioCodec 将单通道波形离散编码,再以 1.9M 参数时空 U-Net transformer 做掩码码预测,并辅以注入窄带振荡后预测频率、时长与空间范围的辅助目标,同时用基于电极相对距离的旋转位置编码保留空间结构。在 HBN-EEG 多中心数据预训练后,作者在 14 个下游基准(含 TUAB、TUEV、ISRUC、Siena、运动想象、认知负荷与可穿戴任务)评估:全微调平均 nBAC 达 0.609,高于更大参数模型 REVE-Base 的 0.581,冻结线性探测同样领先;作者报告仅用稀疏电极模拟仍平均保留 91% 全导联性能,耳内 EEG 睡眠分期与 Muse 运动想象也显著优于基线。可解释性探测显示其表征对窄带节律的敏感性高于宽带噪声斜率,空间影响随电极距离衰减且衰减长度各模型中最小。作者认为面向振荡与空间结构的轻量预训练目标足以支撑 EEG 表征,但还需跨人群与更多探测验证。
为什么重要 给边缘端小模型一条不靠堆参数的路线:离散码预测 + 振荡注入,用 1.9M 参数覆盖 14 个 EEG 任务,对资源受限设备训练有直接参考。适合 边缘端时序模型、生物信号自监督预训练、低资源迁移评估的工程师
近期脑电图(EEG)基础模型越来越强调模型规模,这可能限制它们在资源受限设备和日常环境中的部署。我们认为可迁移的 EEG 特征可以通过紧凑架构学习,并引入 BrainCodes,这是一个通过自监督学习在来自超过 1,000 名参与者的超过 800 小时记录上预训练的轻量基础模型。
我们的架构结合了基于量化的 neural tokenizer 与支持任意电极配置的 spatiotemporal encoder。预训练目标明确鼓励通过 channel positional encoding 捕获空间连接的表示,并通过辅助训练目标提升对窄带神经振荡的敏感性。
我们的模型在多样神经生理监测任务上达到或超过最先进水平,包括睡眠分期、注意评估和认知负荷估计。BrainCodes 能有效迁移到低资源可穿戴设备,同时使用比可比架构少最多 97% 的可训练参数。
除预测准确性外,我们的评估框架刻画了学习到的 EEG 表示在可测量的空间、时间和频谱信号属性上的几何和不变性。
Recent electroencephalography (EEG) foundation models increasingly emphasize model scale, potentially limiting their deployment on resource-constrained devices and in everyday environments.
We argue that transferable EEG features can instead be learned with a compact architecture and introduce BrainCodes, a lightweight foundation model pretrained through self-supervised learning on more than 800 hours of recordings from over 1,000 participants.
Our architecture combines a quantization-based neural tokenizer with a spatiotemporal encoder that supports arbitrary electrode configurations.
The pretraining objective explicitly encourages representations that capture spatial connectivity through channel positional encoding, and sensitivity to narrowband neural oscillations through an auxiliary training objective.
Our model matches or surpasses the state of the art across diverse neurophysiological monitoring tasks, including sleep staging, attention assessment, and cognitive load estimation.
BrainCodes transfers effectively to low-resource wearable devices while using up to 97% fewer trainable parameters than comparable architectures.
Beyond predictive accuracy, our evaluation framework characterizes the geometry and invariances of learned EEG representations across measurable spatial, temporal, and spectral signal properties.
骨干参数
backbone
预训练时长
HBN-EEG 子集
参与者
儿童青少年
下游任务
三个基准域
术语解释机会水平归一化平衡准确率,0=随机猜测,1=完美分类/M参数
对 REVE 0.01
注释 · 参数不含冻结 tokenizer;术语解释机会水平归一化平衡准确率,0=随机猜测,1=完美分类/M 越高,单位参数量带来的下游提升越大出自 摘要与 §4.1
注释 ·



EVIDENCE / METHODS
表格
展平瓶颈 在 BCI IV-2a 达 0.5628、时间平均仅 0.5023;Siena 则反过来 0.8747 对 0.7830
| 数据集 | 时间平均 bc | 展平 {ˉb}c |
|---|---|---|
| BCI IV-2a | 0.5023 | 0.5628 |
| TUEV | 0.5406 | 0.5875 |
| Siena | 0.8747 | 0.7830 |
| EESM23 | 0.4791 | 0.4412 |
| ISRUC | 0.7147 | 0.7231 |
注释 · 池化特征适合持续状态,展平特征适合锁时事件;两种特征均由同一冻结骨干产出出自 §4.2 表3
原版排版与图表 · 手机无法内嵌时可在浏览器打开。PDF 插件内选文不能传给网页助手。