Frontiers in NeuroscienceNeurosciencePeer-reviewed journal article
A library for fMRI real-time processing systems in python (RTPSpy) with comprehensive online noise reduction, fast and accurate anatomical image processing, and online processing simulation
Abstract
Real-time fMRI (rtfMRI)has enormous potential for both mechanistic brain imaging studies or treatment-oriented neuromodulation. However, the adaption of rtfMRI has been limited due to technical difficulties implement an efficient computational framework. Here, we introduce a python library for real-time fMRI (rtfMRI) data processing systems, Real-Time Processing System in python (RTPSpy), to provide building blocks for a custom rtfMRI application with extensive and advanced functionalities. RTPSpy is a library package including 1) a fast, comprehensive, and flexible online fMRI image processing modules comparable to offline denoising, 2) utilities for fast and accurate anatomical image processing to define an anatomical target region, 3) a simulation system of online fMRI processing to optimize a pipeline and target signal calculation, 4) simple interface to an external application for feedback presentation, and 5) a boilerplate graphical user interface (GUI) integrating operations with RTPSpy library. The fast and accurate anatomical image processing utility wraps external tools, including FastSurfer, ANTs, and AFNI, to make tissue segmentation and region of interest masks. We confirmed that the quality of the output masks was comparable with FreeSurfer, and the anatomical image processing could complete in a few minutes. The modular nature of RTPSpy provides the ability to use it for a simulation analysis to optimize a processing pipeline and target signal calculation. We present a sample script for building a real-time processing pipeline and running a simulation using RTPSpy. The library also offers a simple signal exchange mechanism with an external application using a TCP/IP socket. While the main components of the RTPSpy are the library modules, we also provide a GUI class for easy access to the RTPSpy functions. The boilerplate GUI application provided with the package allows users to develop a customized rtfMRI application with minimum scripting labor. The limitations of the package as it relates to environment-specific implementations are discussed. These library components can be customized and can be used in parts. Taken together, RTPSpy is an efficient and adaptable option for developing rtfMRI applications. The package is available from GitHub (https://github.com/mamisaki/RTPSpy) with GPL3 license.
- assay: imaging
- research focus: software / tool
- research focus: benchmarking
- research focus: dimensionality reduction
- approach: experimental assay
- Citations
- 9
- FWCI
- 0.86
- Field percentile
- top 33%
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
- The impact of real-time fMRI denoising on online evaluation of brain activity and functional connectivity
Masaya Misaki, Jerzy Bodurka·Journal of Neural EngineeringPeer-reviewed·Jun 14, 2021
- A Hilbert-based method for processing respiratory timeseries
Samuel J. Harrison, Samuel Bianchi, … Lars Kasper·NeuroImagePeer-reviewed·Jan 28, 2021
- rt-me-fMRI: A task and resting state dataset for real-time, multi-echo fMRI methods development and validation
Stephan Heunis, Marcel M. Breeuwer, … Albert Pierre Aldenkamp·F1000ResearchPeer-reviewed·Feb 4, 2021
- PyDecNef: An open-source framework for fMRI-based decoded neurofeedback
Pedro Margolles, Najemeddine Abdennour, … David Soto·bioRxiv·Oct 2, 2023
- Retrieving fMRI data in real-time: difficulties and pitfalls
Michael Lührs, Benedikt Andreas Poser, … Rainer Goebel·Aperture NeuroPeer-reviewed·Aug 7, 2023
- fMRIflows: a consortium of fully automatic univariate and multivariate fMRI processing pipelines
Michael P. Notter, Peer Herholz, … Micah M. Murray·Brain TopographyPeer-reviewed·Dec 27, 2022