PyDecNef: An open-source framework for fMRI-based decoded neurofeedback
Journal:
bioRxiv
Published Date:
Jan 1, 2025
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.