FEMBA on the Edge: Physiologically-Aware Pre-Training, Quantization, and Deployment of a Bidirectional Mamba EEG Foundation Model on an Ultra-Low Power Microcontroller

IF 4.4 2区 医学 Q2 ENGINEERING, BIOMEDICAL
Anna Tegon;Nicolas Lehmann;Yawei Li;Andrea Cossettini;Luca Benini;Thorir Mar Ingolfsson
{"title":"FEMBA on the Edge: Physiologically-Aware Pre-Training, Quantization, and Deployment of a Bidirectional Mamba EEG Foundation Model on an Ultra-Low Power Microcontroller","authors":"Anna Tegon;Nicolas Lehmann;Yawei Li;Andrea Cossettini;Luca Benini;Thorir Mar Ingolfsson","doi":"10.1109/TBME.2026.3683482","DOIUrl":null,"url":null,"abstract":"<italic>Objective:</i> To enable continuous, long-term neuro-monitoring on wearable devices by overcoming the computational bottlenecks of Transformer-based Electroencephalography (EEG) foundation models and the quantization challenges inherent to State-Space Models (SSMs). <italic>Methods:</i> We present FEMBA, a bidirectional Mamba architecture pre-trained on over 21,000 hours of EEG. We introduce a novel Physiologically-Aware pre-training objective, consisting of a reconstruction with low-pass filtering, to prioritize neural oscillations over high-frequency artifacts. To address the activation outliers common in SSMs, we employ Quantization-Aware Training (QAT) to compress the model to 2-bit weights. The framework is deployed on a parallel ultra-low-power RISC-V microcontroller (GAP9) using a custom double-buffered memory streaming scheme. <italic>Results:</i> The proposed low-pass pre-training improves downstream AUROC on TUAB from 0.863 to 0.893 and AUPR from 0.862 to 0.898 compared to the best contrastive baseline. QAT successfully compresses weights with negligible performance loss, whereas standard post-training quantization degrades accuracy by approximately <bold>30%</b>. The embedded implementation achieves deterministic real-time inference (<bold>1.70 s</b> per 5 s window) and reduces the memory footprint by <bold>74%</b> (to <inline-formula><tex-math>$\\approx$</tex-math></inline-formula>2 MB), achieving competitive accuracy with up to <bold>27×</b> fewer FLOPs than Transformer benchmarks. <italic>Conclusion:</i> FEMBA demonstrates that Mamba-based foundation models can be effectively quantized and deployed on extreme-edge hardware without sacrificing the representation quality required for robust clinical analysis. <italic>Significance:</i> This work establishes the first full-stack framework for deploying large-scale EEG foundation models on ultra-low-power wearables, facilitating continuous, SSM based monitoring for epilepsy and sleep disorders.","PeriodicalId":13245,"journal":{"name":"IEEE Transactions on Biomedical Engineering","volume":"73 8","pages":"2746-2757"},"PeriodicalIF":4.4000,"publicationDate":"2026-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Biomedical Engineering","FirstCategoryId":"5","ListUrlMain":"https://ieeexplore.ieee.org/document/11480797/","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/4/13 0:00:00","PubModel":"Epub","JCR":"Q2","JCRName":"ENGINEERING, BIOMEDICAL","Score":null,"Total":0}
引用次数: 0

Abstract

Objective: To enable continuous, long-term neuro-monitoring on wearable devices by overcoming the computational bottlenecks of Transformer-based Electroencephalography (EEG) foundation models and the quantization challenges inherent to State-Space Models (SSMs). Methods: We present FEMBA, a bidirectional Mamba architecture pre-trained on over 21,000 hours of EEG. We introduce a novel Physiologically-Aware pre-training objective, consisting of a reconstruction with low-pass filtering, to prioritize neural oscillations over high-frequency artifacts. To address the activation outliers common in SSMs, we employ Quantization-Aware Training (QAT) to compress the model to 2-bit weights. The framework is deployed on a parallel ultra-low-power RISC-V microcontroller (GAP9) using a custom double-buffered memory streaming scheme. Results: The proposed low-pass pre-training improves downstream AUROC on TUAB from 0.863 to 0.893 and AUPR from 0.862 to 0.898 compared to the best contrastive baseline. QAT successfully compresses weights with negligible performance loss, whereas standard post-training quantization degrades accuracy by approximately 30%. The embedded implementation achieves deterministic real-time inference (1.70 s per 5 s window) and reduces the memory footprint by 74% (to $\approx$2 MB), achieving competitive accuracy with up to 27× fewer FLOPs than Transformer benchmarks. Conclusion: FEMBA demonstrates that Mamba-based foundation models can be effectively quantized and deployed on extreme-edge hardware without sacrificing the representation quality required for robust clinical analysis. Significance: This work establishes the first full-stack framework for deploying large-scale EEG foundation models on ultra-low-power wearables, facilitating continuous, SSM based monitoring for epilepsy and sleep disorders.
边缘上的FEMBA:在超低功耗微控制器上的双向曼巴脑电图基础模型的生理感知预训练,量化和部署。
目的:克服基于变压器的脑电图(EEG)基础模型的计算瓶颈和状态空间模型(SSMs)固有的量化挑战,实现可穿戴设备的连续、长期神经监测。方法:我们提出了FEMBA,一个双向曼巴架构预先训练超过21,000小时的脑电图。我们引入了一种新的生理感知预训练目标,包括低通滤波重建,以优先考虑神经振荡对高频伪像的影响。为了解决ssm中常见的激活异常值,我们使用量化感知训练(QAT)将模型压缩到2位权重。该框架使用定制的双缓冲内存流方案部署在并行超低功耗RISC-V微控制器(GAP9)上。结果:与最佳对比基线相比,提出的低通预训练将下游AUROC在TUAB上从0.863提高到0.893,AUPR从0.862提高到0.898。QAT成功地压缩了权重,而性能损失可以忽略不计,而标准的训练后量化会使精度降低约30%。嵌入式实现实现了确定性的实时推断(每5秒窗口1.70秒),并将内存占用减少了74%(约为2 MB),与Transformer基准测试相比,FLOPs减少了27倍,实现了具有竞争力的精度。结论:FEMBA表明,基于mamba的基础模型可以有效地量化并部署在极端边缘硬件上,而不会牺牲鲁棒临床分析所需的表示质量。意义:本工作建立了首个在超低功耗可穿戴设备上部署大规模脑电图基础模型的全栈框架,促进了对癫痫和睡眠障碍的连续、基于SSM的监测。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Biomedical Engineering
IEEE Transactions on Biomedical Engineering 工程技术-工程:生物医学
CiteScore
9.40
自引率
4.30%
发文量
880
审稿时长
2.5 months
期刊介绍: IEEE Transactions on Biomedical Engineering contains basic and applied papers dealing with biomedical engineering. Papers range from engineering development in methods and techniques with biomedical applications to experimental and clinical investigations with engineering contributions.
×
引用
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学术官方微信
小红书