AMICA-Python: Adaptive Mixture Independent Component Analysis with Anderson Acceleration
Abstract
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 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.
Create a lesson
Related papers
Empowering On-Device Model Adaptation with an Edge AI Inference Accelerator
Shared title terminologycs.LGMateusz Piechocki, Alessandro Capotondi, Marek Kraft
Mixture-of-Loops Transformer
Shared title terminologycs.LGLianghui Zhu, Shijie Wang, Xinggang Wang et al.
LoopTitan: What Does Parameter Revisit Buy a Mixture-of-Experts?
Shared title terminologycs.LGZichen Tian, Yudong Lu, Xuansheng Wu et al.
Adaptive Reliability Reserves for Residential Battery Fleets
Shared title terminologycs.LGMaruthi Vemula, Neeraj Praneeth Gajula
When the Proxy Is Wrong: Mismatch-Corrected Bandits for Adaptive Data Sampling
Shared title terminologycs.LGAmine Saadi, Elissa Mhanna, Raphaël Féraud et al.
Text-Conditioned Low-Rank Adaptation of Time-Series Foundation Models for Multimodal Forecasting
Shared title terminologycs.LGKunqi Li, Bin Liang, Zhidong Li