Skip to content
Open access

APICE-Py: An Open-Source MNE-Python Pipeline for Scalable EEG Preprocessing

Jul 2026 · bioRxiv · 0 citations · 15 references
Biology

TL;DR

APICE-Py (Automated Preprocessing for Infants Continuous EEG), an open-source preprocessing pipeline originally designed as a matlab toolbox for infant EEG and now re-implemented in Python to support scalable and flexible analysis across developmental and adult datasets, is presented.

Abstract

Electroencephalography (EEG) is fundamental to cognitive neuroscience as it provides a direct measure of human neural activities with millisecond precision. Its noninvasive nature allows for the study of brain function across diverse age groups and experimental contexts—from newborns to adults, and from tightly controlled laboratory environments to more naturalistic real-world settings. However, EEG signals—especially those recorded from infants—are highly prone to noise and arti-facts, posing significant challenges for data analysis. To address these issues, we present APICE-Py (Automated Preprocessing for Infants Continuous EEG), an open-source preprocessing pipeline originally designed as a matlab toolbox for infant EEG and now re-implemented in Python to support scalable and flexible analysis across developmental and adult datasets. APICE-Py is built upon three core principles: (i) adaptive artifact detection on continuous data using data-driven thresholds rather than fixed cutoffs; (ii) hierarchical artifact correction, combining short-segment correction via Principal Component Analysis (PCA) with broader segment and continuous data correction using Spherical Spline Interpolation (SSI); and (iii)transparent reporting, providing comprehensive quality logs and decision-tracking to ensure reproducibility and informed analysis. We summarize the underlying algorithms, release an implementation compatible with common EEG formats, and demonstrate its use on three datasets spanning neonates, 5-month-old infants, and child–parent hyperscanned data, acquired using high-density wet electrodes and mobile gel-based EEG systems. When benchmarked against the original MATLAB implementation, APICE-Py achieved comparable levels of data quality and trial retention. While the original pipeline was developed for early developmental EEG (e.g., infants), we show that the pipeline further extends its applicability to both children and adult datasets, enabling robust preprocessing across a broad age range. Moreover, it supports data acquired using a variety of EEG configurations and experimental settings, highlighting its flexibility across age groups, hardware systems, and paradigms. The APICE-Py source code and documentation are freely available at https://github.com/neurokidslab/apice-py.

Read PDF

Similar papers

Open access Aug 2026

An Open-Source End-to-End Pipeline for Large-Scale EEG-Based Brain Age Modelling

Aging affects individuals at varying biological rates, prompting the development of the Brain Age Index (BAI) to quantify neurobiological health relative to chronological age and disease risk. While structural MRI has dominated brain age prediction, its high cost, immobility, and low temporal resolution restrict its cl...

Siddharth Rajesh, D. Sharma, R. Venugopal et al. · 0 citations
#human-computer interacti... Preprint Sep 2026

Streaming P300 Acquisition and Statistical Signal Validation Across Five EEG Platforms: A Hardware-Agnostic BrainFlow/LSL Pipeline

A hardware-agnostic, real-time P300 acquisition pipeline built on BrainFlow and Lab Streaming Layer that runs unchanged across consumer- and research-grade EEG headsets is presented, with permutation tests of signal separability showing Flex showed the most promising signal.

Isabella Guan, Rui Liu, Fu-Sheng Wang · 0 citations
Open access Sep 2026

Development of Python Tools for Unifying EEG Data from Different Devices for Subsequent Mediation and Neural Network Analysis

This study addresses the problem of heterogeneity in electroencephalography (EEG) data obtained from different recording devices, which limits the applicability of advanced analytical methods, including mediation analysis and neural network models. A specialized Python-based software tool was developed to unify EEG dat...

Hao-Nan Shi, Xin-Yi Wang, I. Kozulin et al. · 0 citations
#machine learning Preprint Sep 2026

iMINDBench: iEEG Multi-Institution Neural Decoding Benchmark

Intracranial electroencephalography (iEEG) is widely used to record electrical activity directly from electrodes inside the human brain, making it an attractive modality for neural decoding. However, progress in iEEG decoding, especially toward general-purpose foundation models, remains difficult to measure reliably: d...

Geeling Chau, Saba Hashemi, Yonghyeon Gwon et al. · 0 citations
Review Open access Sep 2026

AVOCODO: An open-source multimodal annotation platform for developmental EEG

Behavioral annotation of synchronized video recordings is an essential step in developmental electroencephalography (EEG) research, supporting both the identification of behavior-related artifacts and the investigation of brain–behavior relationships. Existing annotation workflows, however, are often fragmented: propri...

W. W. An · 0 citations
Open access Sep 2026

The DYNAM-O Toolbox: Characterizing Individualized Neural Signatures in Sleep EEG

Here, we introduce the Dynamic Oscillation (DYNAM-O) Toolbox, an open-source, cross-platform (MATLAB, Python, and Rust) software package for data-driven characterization of individualized neural dynamics in sleep EEG. Conventional sleep electroencephalography (EEG) measures often rely on predefined bands, thresholds, a...

Ming-Jian He, S. R. Saremsky, Habiba Noamany et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.