Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.07.23.740250

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

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Formento Moletta, N., Flo, A., Dehaene-Lambertz, G., Lorenzo, J.. 2026-07-27. APICE-Py: An Open-Source MNE-Python Pipeline for Scalable EEG Preprocessing. https://doi.org/10.64898/2026.07.23.740250

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

A Mechanistic Account of Dedifferentiation in the Aging Visual System

To uncover the mechanisms of age-related dedifferentiation, we simulated neural degradation in a computational model of the ventral visual stream. Severing connections or adding noise, whether in inferotemporal cortex (IT) or upstream, reduced IT differentiation, indicating that dedifferentiation need not originate locally. Degrading peripheral V1, which preferentially drove place-selective IT neurons, selectively reduced place differentiation, a candidate mechanism for the stronger place dedifferentiation reported in aging.

neuroscience↗

Reusing pipettes in Patch-seq: a foundation for automated multimodal profiling

Patch-seq is a technique for single-cell multimodal characterization. It combines whole-cell electrophysiology, single-cell transcriptomics, and morphological reconstruction in single neurons. Patch-seq morphologies are a critical bridge among cell types, genes, physiology, and large-scale connectivity platforms such as EM connectomes and single-cell-resolution projectomes. However, patch-seq experimental complexity and operator dependence limit throughput. Automation could enable scalable Patch-seq but requires procedural adaptations, including detergent-based pipette cleaning, robotic nucleus extraction and collection. The impact of these automations on Patch-seq quality has not been systematically evaluated. Here, we show that each of these modifications preserves or improves key Patch-seq outcomes. Automated nucleus extraction performs comparably to, or better than, expert manual operation, preserving key RNA and morphological metrics. Detergent-cleaned, reused pipettes supported a viable sealing success rate across multiple cleaning cycles and preserved electrophysiological quality and transcriptomic yield without introducing excess contamination. Sonication effectively allows collection of nuclear material without damaging RNA and supports subsequent pipette cleaning and reuse. Enhanced automated sealing and break-in procedures increased throughput regardless of brain region, cell type or species. Together, these results validate the core procedural adaptations required for automated Patch-seq and establish a foundation for high-throughput, standardized multimodal single-cell characterization.

neuroscience↗

Development of direction selectivity in the Xenopus tadpole optic tectum and midbrain tegmentum

Detecting motion direction is a fundamental function performed by direction selective (DS) neurons. DS neurons in the optic tectum (superior colliculus in mammals) enable the tracking of moving objects. DS neurons of the accessory optic system support reflexive eye / head movements that stabilize gaze during self-motion. By developmental stage 48 (10 days postfertilization), Xenopus tadpoles display visually guided behaviors that require both types of DS neurons. Our previous work has shown that these two regions are not only functionally distinct but also follow different developmental programs. Here we characterized and compared how direction selectivity develops in both visual processing centers. Using in vivo electrophysiological recordings during moving bar visual stimulation, we measured DS synaptic inputs and spiking outputs in both regions across three key developmental stages of the retinotectal projection. Tegmental neurons were direction selective ab initio, and both input and output tuning remained stable across development. Tectal neurons were observed to receive DS inputs early, and their input selectivity also remained stable across development. However, their spiking output grew substantially more DS at the later developmental stage. This was due at least in part to a naturally occurring decrease in intrinsic excitability which preferentially dampened overall spike rates, but especially in response to the non-preferred direction of motion, thereby increasing direction selectivity. These results reveal distinct developmental trajectories in parallel visual pathways. Tegmental direction selectivity is established early and stays stable, whereas tectal output tuning sharpens during development through a decrease in intrinsic excitability.

neuroscience↗