PyLossless: A non-destructive EEG processing pipeline
Scott Huberty, James A. Desjardins, Tyler Collins, Mayada Elsabbagh, Christian O’Reilly
Montreal Neurological Institute and Hospital · Compute Canada
Key points
From the paper's conclusion- PyLossless addresses this need by creating a non-destructive, automated preprocessing pipeline that maintains the continuous EEG structure.
Abstract
EEG recordings are typically long and contain large amounts of data, making manual cleaning a time-consuming and error-prone task. Automated preprocessing pipelines can facilitate the efficient and objective extraction of artifacts, enabling standardized and reproducible analyses. However, automated preprocessing pipelines typically remove data considered artifacts and return a subset of irreversibly transformed signals. This approach obfuscates preprocessing decisions and often makes it impossible to recover the original data or modify the preprocessing steps. Further, it complicates collaboration among research teams working on a common dataset, as different analyses may require specific preprocessing steps. Given the large amount of resources devoted to collecting EEG, tools that can efficiently and transparently preprocess data are greatly needed. PyLossless addresses this need by creating a non-destructive, automated preprocessing pipeline that maintains the continuous EEG structure. It offers a user-friendly API, is well documented, tested through continuous integration, easily deployable, and integrates with the popular MNE-Python environment. The pipeline also provides a browser-based quality control review (QCR) dashboard that allows researchers to visualize and edit automated artifact flags for sensors, time periods, and independent components. The end product of PyLossless is a lossless annotated data state that can be shared and used with analysis-specific artifact rejection policies, allowing for an optimal balance between flexibility and standardization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Open-source Software and Pipelines for Generalizable and Reproducible EEG Analysis: An OverviewarXiv · 2026
- Agentic EEG Pipeline Synthesis Using Large Language Models and the Model Context Protocol.Sensors (Basel, Switzerland) · 2026
- Best Practices in EEG Analysis: Preprocessing, Modeling, and Machine LearningarXiv · 2026
- Standardizing EEG preprocessing for cross-site integration - the CLEAN pipelineNeuroImage · 2026
- A Residual Attention-Based Algorithm for EEG Artifact RemovalEngineering Research Express · 2026
- An Open-Source End-to-End Pipeline for Large-Scale EEG-Based Brain Age ModellingbioRxiv · 2026