PyDecNef: An open-source framework for fMRI-based decoded neurofeedback
Pedro MargollesiD, Najemeddine Abdennour, Ning MeiiD, Patxi ElosegiiD, David SotoiD
Abstract
Real time fMRI research has suffered from inaccessible analysis pipelines, hindering collaboration and reproducibility. Here we present PyDecNef, a Python-based platform designed to advance real-time fMRI analysis and fuel exploration of close-loop neuroimaging for cognitive neuroscience studies. Creating a real-time fMRI analysis pipeline from scratch poses formidable technical challenges, involving data transfer, experimental software, and machine learning classifier preparation. Existing tools like FRIEND, Brain-Voyant, and OpenNFT demand expensive licenses or rely on proprietary software, impeding accessibility and customizability. PyDecNef offers a solution: a transparent, versatile, and open workflow for real-time fMRI decoding protocols. This open-source platform simplifies decoder construction, real-time preprocessing, decoding, and feedback signal generation. It also supports co-adaptive decoders that update in real time based on decoded neurofeedback performance, enabling researchers to conduct more precise and efficient DecNef experiments. Moreover, its openness promotes collaboration, enhancing research quality, replicability, and impact. With PyDecNef, the path to advancing DecNef studies becomes more accessible and collaborative. PyDecNef resources for real-time fMRI analysis can be found at https://github.com/pydecnef/PydecNef.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 2
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Enhancing fMRI decoded neurofeedback with co-adaptive training: simulation and proof-of-principle evidence
Najmeddine Abdennour, Pedro Margolles, David Soto·NeuroinformaticsPeer-reviewed·Feb 5, 2026
- AutoNeuro: An Open-Source fMRI Toolbox for Real-Time Neuroadaptive Task Design
Oliver Sherwood, David Haydock, … Robert Leech·bioRxiv·Apr 23, 2026
- A framework for closed-loop neurofeedback for real-time EEG decoding
Greta Tuckute, Sofie Therese Hansen, … Lars Kai Hansen·bioRxiv·Nov 11, 2019
- A simulation-based approach to improve decoded neurofeedback performance
Ethan F. Oblak, James S. Sulzer, Jarrod A. Lewis‐Peacock·NeuroImagePeer-reviewed·Apr 4, 2019
- RealtimeDecoder: A fast software module for online clusterless decoding
Joshua P. Chu, Michael E. Coulter, … Loren M. Frank·eNeuroPeer-reviewed·Nov 20, 2025
- A framework for offline evaluation and optimization of real-time algorithms for use in neurofeedback, demonstrated on an instantaneous proxy for correlations
Michal Ramot, Javier González-Castillo·NeuroImagePeer-reviewed·Dec 13, 2018