arXiv:2607.18568cs.LG2026-07

将经典脑电分离算法AMICA移植到Python,提升可访问性与运行效率。

AMICA-Python: Adaptive Mixture Independent Component Analysis with Anderson Acceleration

论文配图:AMICA-Python: Adaptive Mixture Independent Component Analysis with Anderson Acceleration
图 1 · 摘自论文原文
  • 用Python重实现AMICA算法,兼容scikit-learn接口
  • 引入安德森加速后收敛速度提升34.1%
  • 数值结果与原Fortran版高度一致,适合科研流程集成

自适应混合独立成分分析(AMICA)在脑电研究中广泛应用,长期依赖单一Fortran实现,需通过MATLAB的EEGLAB工具箱调用,限制了其在非MATLAB生态中的使用。本文提出AMICA-Python,一个符合scikit-learn规范的Python实现,支持现有科学计算流程集成。该实现严格遵循参考算法,并采用现代软件工程实践。此外,引入可选的安德森加速方案,显著提升收敛速度。在14个公开脑电数据集上评估,平均运行3次后,Python版与原始Fortran版的最终归一化对数似然中位数均为11.572,相对绝对差异仅1.07×10⁻⁸。运行时间方面,普通版本快17.7%,安德森加速版快34.1%。AMICA-Python以高数值精度复现原版性能,同时提供更易用、可扩展的Python接口。

原文摘要 · Abstract (English)

Adaptive Mixture Independent Component Analysis (AMICA) is widely used in EEG research and has long been associated with strong empirical performance for blind source separation. Despite its impact, practical use has historically depended on a single Fortran implementation, accessed via the EEGLAB toolbox for MATLAB, limiting its accessibility for analytical pipelines not designed within the MATLAB ecosystem. Here we present AMICA-Python, a Python implementation of the AMICA algorithm, with a scikit-learn-conformant API designed for integration with existing scientific Python pipelines. The implementation follows the reference algorithm closely while adopting modern software engineering practices and an interface familiar to Python users. Additionally, we introduce an optional Anderson acceleration scheme that can dramatically reduce the time to convergence for this relatively slow algorithm. To evaluate numerical agreement and practical performance, we benchmarked AMICA-Python against the reference Fortran implementation on 14 open EEG recordings. After averaging 3 runs of each implementation on all 14 recordings, AMICA-Python closely matched the reference, with a median final normalized log-likelihoods of 11.572 for both the Fortran and Python implementations, and a negligible median relative absolute difference of only $1.07\times10^{-8}$ when normalized by the absolute Fortran value. Runtime was also competitive. Relative to the reference implementation, AMICA-Python was 17.7\% faster, while the Anderson-accelerated variant was 34.1\% faster. AMICA-Python reproduces the reference implementation to high numerical precision with competitive runtime, while making AMICA available through a more accessible and extensible Python interface.

脑电分析独立成分分析Python工具

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。