Automated Brain Masking of Fetal Functional MRI with Open Data

Saige Rutherford, Pascal Sturmfels, Mike Angstadt, Jasmine L. Hect, Jenna Wiens, Marion I. van den Heuvel, Dustin Scheinost, Chandra Sekhar Sripada, Moriah E. ThomasonNeuroinformatics 2022 · DOI

Abstract

Functional magnetic resonance imaging (fMRI) of the fetus provides a non-invasive window into early human brain development. However, the presence of maternal tissue and significant fetal motion necessitates precise brain masking—a process that is traditionally manual and time-consuming. This paper introduces an automated pipeline centered on a U-Net convolutional neural network (CNN) trained on a large-scale, manually curated dataset. The proposed method achieves high accuracy (Dice > 0.90) and a 60-fold reduction in processing time, offering a scalable solution for fetal neuroimaging.

Introduction

Studying the human brain in utero via resting-state fMRI (rs-fMRI) is essential for understanding the origins of neural connectivity. Unlike adult scans, fetal imaging is complicated by the fetus's constant movement and its encapsulation within maternal muscle, fat, and placenta. Standard tools designed for adult brains, such as FSL’s BET or AFNI’s 3dSkullstrip, fail in this context due to non-standard orientations and high-contrast maternal boundaries. Consequently, researchers have historically relied on manual brain masking, which is slow, subjective, and unscalable for the thousands of volumes generated in modern studies.

Methods and Data

The core of the developed pipeline is a 2D U-Net CNN architecture. A 2D approach was selected to balance computational efficiency with high performance across individual axial slices. To account for the unpredictable positioning of the fetus in the womb, the training process included extensive data augmentation, including 90-degree rotations and horizontal/vertical flips.

The study utilized one of the largest manually curated fetal fMRI datasets to date, split into two primary iterations for testing generalizability:

  1. WSU (Wayne State University): 1,241 manually traced volumes from 207 fetuses, used for training, validation, and internal testing.
  2. Yale University: 57 volumes from 10 fetuses, collected on a different scanner (Siemens Skyra vs. WSU’s Siemens Verio) to serve as a critical multi-site test set.
Overview of the study iterations and the automated processing pipeline.

As shown in the figure above, the full workflow includes resampling data to a consistent 3mm³ resolution, applying the CNN-generated masks, performing frame-to-frame realignment to handle motion, and normalizing the data to age-matched fetal brain templates. The software stack is built using TensorFlow, Python, FSL, and AFNI.

Results and Key Insights

The model demonstrated exceptional performance, achieving a mean Dice coefficient (a measure of spatial overlap) of 0.94 on the WSU test set and 0.89 on the Yale multi-site set. This high level of performance on external data suggests the CNN learned fundamental features of fetal anatomy rather than scanner-specific noise.

In comparison, standard adult masking tools were found to be essentially non-functional, with Dice coefficients averaging only ~0.22. The automated pipeline also offers a massive efficiency gain: generating a mask now takes approximately 0.2 seconds on a GPU, representing a 60-fold reduction in time compared to manual methods.

Discussion and Limitations

While the pipeline is highly robust, it is not yet entirely "set and forget." The authors recommend 1–5 minutes of visual quality control per functional run to check for overt errors or artifacts. Future work may involve moving to 3D convolutions to capture more spatial context and improving subject-specific registration techniques.

Conclusion

By providing an open-source, high-performance tool and sharing the underlying data on OpenNeuro (ds003090), this work lowers the barrier to entry for fetal fMRI research and fosters greater transparency and reproducibility in the field.

Summary updated

BibTeX
@article{rutherford2022automated,
  author = {Saige Rutherford and Pascal Sturmfels and Mike Angstadt and Jasmine L. Hect and Jenna Wiens and Marion I. van den Heuvel and Dustin Scheinost and Chandra Sekhar Sripada and Moriah E. Thomason},
  title = {{Automated Brain Masking of Fetal Functional MRI with Open Data}},
  journal = {Neuroinformatics},
  year = {2022},
  doi = {10.1007/s12021-021-09528-5},
}
Figure