Funcmasker-flex: An Automated BIDS-App for Brain Segmentation of Human Fetal Functional MRI data

Neuroinformatics. 2023 Jul;21(3):565-573. doi: 10.1007/s12021-023-09629-3. Epub 2023 Mar 31.

Abstract

Fetal functional magnetic resonance imaging (fMRI) offers critical insight into the developing brain and could aid in predicting developmental outcomes. As the fetal brain is surrounded by heterogeneous tissue, it is not possible to use adult- or child-based segmentation toolboxes. Manually-segmented masks can be used to extract the fetal brain; however, this comes at significant time costs. Here, we present a new BIDS App for masking fetal fMRI, funcmasker-flex, that overcomes these issues with a robust 3D convolutional neural network (U-net) architecture implemented in an extensible and transparent Snakemake workflow. Open-access fetal fMRI data with manual brain masks from 159 fetuses (1103 total volumes) were used for training and testing the U-net model. We also tested generalizability of the model using 82 locally acquired functional scans from 19 fetuses, which included over 2300 manually segmented volumes. Dice metrics were used to compare performance of funcmasker-flex to the ground truth manually segmented volumes, and segmentations were consistently robust (all Dice metrics ≥ 0.74). The tool is freely available and can be applied to any BIDS dataset containing fetal bold sequences. Funcmasker-flex reduces the need for manual segmentation, even when applied to novel fetal functional datasets, resulting in significant time-cost savings for performing fetal fMRI analysis.

Keywords: BIDS; Fetal fMRI; Segmentation; U-net.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Adult
  • Brain / diagnostic imaging
  • Fetus / diagnostic imaging
  • Humans
  • Image Processing, Computer-Assisted / methods
  • Magnetic Resonance Imaging / methods
  • Mobile Applications*
  • Neural Networks, Computer

Grants and funding