CoChat

DeepPrep: an accelerated, scalable and robust pipeline for neuroimaging preprocessing empowered by deep learning

Open access

Published version of a preprint

The DOI matches its Crossref record; 43 of the 43 references it cites were found in a registry or an index.

Abstract

Neuroimaging has entered the era of big data. However, the advancement of preprocessing pipelines falls behind the rapid expansion of data volume, causing substantial computational challenges. Here we present DeepPrep, a pipeline empowered by deep learning and a workflow manager. Evaluated on over 55,000 scans, DeepPrep demonstrates tenfold acceleration, scalability and robustness compared to the state-of-the-art pipeline, thereby meeting the scalability requirements of neuroimaging. DeepPrep is a preprocessing pipeline for functional and structural MRI data from humans. Deep learning-based modules and an efficient workflow allow DeepPrep to handle large datasets.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1038/s41592-025-02599-1

Cites

43 of 43 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 A computationally efficient and scalable neuroimaging pipeline is empowered by deep learning algorithms and the workflow manager. a, DeepPrep workflow. DeepPrep accepts both anatomical and fMRI data for preprocessing. White boxes highlight deep learning algorithms for brain tissue segmentation, CSR, cortical surface registration and volumetric spatial normalization, which replace the most time-intensive modules in conventional pipelines. T1w, T1 weighted. BOLD, blood oxygenation level dependent. b, The preprocessing pipeline is organized into multiple relatively independent yet integrated processes. Imaging data adhering to the BIDS format are preprocessed through a structured workflow managed by Nextflow14. Nextflow schedules task processes and allocates computational resources across diverse infrastructures, including local computers, HPC clusters and cloud computing environments. The pipeline yields standardized preprocessed imaging and derivative files, quality control reports and runtime reports as its outputs.
Fig. 1 A computationally efficient and scalable neuroimaging pipeline is empowered by deep learning algorithms and the workflow manager. a, DeepPrep workflow. DeepPrep accepts both anatomical and fMRI data for preprocessing. White boxes highlight deep learning algorithms for brain tissue segmentation, CSR, cortical surface registration and volumetric spatial normalization, which replace the most time-intensive modules in conventional pipelines. T1w, T1 weighted. BOLD, blood oxygenation level dependent. b, The preprocessing pipeline is organized into multiple relatively independent yet integrated processes. Imaging data adhering to the BIDS format are preprocessed through a structured workflow managed by Nextflow14. Nextflow schedules task processes and allocates computational resources across diverse infrastructures, including local computers, HPC clusters and cloud computing environments. The pipeline yields standardized preprocessed imaging and derivative files, quality control reports and runtime reports as its outputs.CC BY-NC-ND · PubMed Central
Fig. 2 Performance of DeepPrep in speed and robustness. a, Runtimes for fMRIPrep and DeepPrep when processing each participant’s data sequentially on a local workstation (n = 100 participants from the UKBB dataset). Data are presented as mean ± s.d. Error bars represent s.d. b, Number of participants that can be processed by fMRIPrep and DeepPrep at the indicated time intervals. c, Trade-off curve between preprocessing time and hardware expense measured by CPU hours. Data are presented as mean ± s.d. d, Completion and acceptable ratios when preprocessing 53 clinical samples that could not be processed by FreeSurfer. e, Preprocessing errors are categorized into three types, with three representative clinical samples shown. Source data
Fig. 2 Performance of DeepPrep in speed and robustness. a, Runtimes for fMRIPrep and DeepPrep when processing each participant’s data sequentially on a local workstation (n = 100 participants from the UKBB dataset). Data are presented as mean ± s.d. Error bars represent s.d. b, Number of participants that can be processed by fMRIPrep and DeepPrep at the indicated time intervals. c, Trade-off curve between preprocessing time and hardware expense measured by CPU hours. Data are presented as mean ± s.d. d, Completion and acceptable ratios when preprocessing 53 clinical samples that could not be processed by FreeSurfer. e, Preprocessing errors are categorized into three types, with three representative clinical samples shown. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 1 Exponential growth of publicly available neuroimaging datasets from 2000 to 2023. The figure depicts the cumulative sample size of publicly accessible neuroimaging datasets. A total of forty-two large-scale neuroimaging datasets were selected through a comprehensive meta-analysis spanning from the year 2000 to 2023. These datasets are categorized into three representative types: ‘big project’ (white circles), supported by a single funding source, ‘consortium’ (blue circles), resulting from international collaborations involving multiple funding sources, and ‘sharing data platform’ (sand circles), such as OpenNeuro, which serves as a data repository. The size of each circle in the plot corresponds to the sample size of the respective dataset. The project names of some representative datasets are labeled next to the corresponding circles in the dataset. Stacked circles represent cases where multiple different datasets were released in a single year. The Y-axis represents the cumulative sample size. Source data
Extended Data Fig. 1 Exponential growth of publicly available neuroimaging datasets from 2000 to 2023. The figure depicts the cumulative sample size of publicly accessible neuroimaging datasets. A total of forty-two large-scale neuroimaging datasets were selected through a comprehensive meta-analysis spanning from the year 2000 to 2023. These datasets are categorized into three representative types: ‘big project’ (white circles), supported by a single funding source, ‘consortium’ (blue circles), resulting from international collaborations involving multiple funding sources, and ‘sharing data platform’ (sand circles), such as OpenNeuro, which serves as a data repository. The size of each circle in the plot corresponds to the sample size of the respective dataset. The project names of some representative datasets are labeled next to the corresponding circles in the dataset. Stacked circles represent cases where multiple different datasets were released in a single year. The Y-axis represents the cumulative sample size. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 2 DeepPrep substantially accelerates anatomical and functional imaging preprocessing. In addition to the comparison of processing time for the entire pipeline between fMRIPrep and DeepPrep, we assessed separate processing time for anatomical and functional images (n = 100 subjects from the UKBB dataset). When considering anatomical preprocessing with the ‘–anat-only’ flag, DeepPrep completed the task within 20.9 ± 2.5 minutes, marking a substantial 14.0-fold increase in speed compared to fMRIPrep, which took 291.6 ± 38.4 minutes (two-tailed paired t-test, t(99) = 71.3, p = 6.9 × 10-87). Similarly, when processing functional images with the ‘–bold-only’ flag, DeepPrep exhibited significant efficiency, finishing the task in 12.9 ± 0.5 minutes, a 7.7-fold improvement over fMRIPrep, which required 99.1 ± 7.1 minutes (two-tailed paired t-test, t(99) = 120.4, p = 3.7 × 10-109). During functional image processing, preprocessed anatomical images were provided at the outset. Data are presented as mean ± s.t.d. Source data
Extended Data Fig. 2 DeepPrep substantially accelerates anatomical and functional imaging preprocessing. In addition to the comparison of processing time for the entire pipeline between fMRIPrep and DeepPrep, we assessed separate processing time for anatomical and functional images (n = 100 subjects from the UKBB dataset). When considering anatomical preprocessing with the ‘–anat-only’ flag, DeepPrep completed the task within 20.9 ± 2.5 minutes, marking a substantial 14.0-fold increase in speed compared to fMRIPrep, which took 291.6 ± 38.4 minutes (two-tailed paired t-test, t(99) = 71.3, p = 6.9 × 10-87). Similarly, when processing functional images with the ‘–bold-only’ flag, DeepPrep exhibited significant efficiency, finishing the task in 12.9 ± 0.5 minutes, a 7.7-fold improvement over fMRIPrep, which required 99.1 ± 7.1 minutes (two-tailed paired t-test, t(99) = 120.4, p = 3.7 × 10-109). During functional image processing, preprocessed anatomical images were provided at the outset. Data are presented as mean ± s.t.d. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 3 Comparable performance in brain tissue segmentation of DeepPrep and fMRIPrep. DeepPrep’s performance in brain tissue segmentation was assessed and compared with that of fMRIPrep. To demonstrate segmentation accuracy, both DeepPrep and fMRIPrep were applied to the Mindboggle-101 dataset. This dataset includes anatomical images and manually segmented brain regions by experts as the ‘ground truth’ of brain tissue segmentation. The accuracy of automatic segmentations produced by both pipelines was evaluated by calculating Dice coefficients, which measure the similarities of brain regions between the automatic and manual segmentations. Comparison of segmentation accuracy between DeepPrep and fMRIPrep was conducted by evaluating the percentage difference in Dice coefficients for each brain region. Positive percentages indicate higher accuracy achieved by DeepPrep, while negative percentages indicate higher accuracy for fMRIPrep. a) Fifty-two out of 62 cortical regions display positive percentages. b) Similar comparisons were performed for 39 subcortical regions, where 31 regions show positive percentages. All statistics are reported in Supplementary Table 4 and Table 5. Source data
Extended Data Fig. 3 Comparable performance in brain tissue segmentation of DeepPrep and fMRIPrep. DeepPrep’s performance in brain tissue segmentation was assessed and compared with that of fMRIPrep. To demonstrate segmentation accuracy, both DeepPrep and fMRIPrep were applied to the Mindboggle-101 dataset. This dataset includes anatomical images and manually segmented brain regions by experts as the ‘ground truth’ of brain tissue segmentation. The accuracy of automatic segmentations produced by both pipelines was evaluated by calculating Dice coefficients, which measure the similarities of brain regions between the automatic and manual segmentations. Comparison of segmentation accuracy between DeepPrep and fMRIPrep was conducted by evaluating the percentage difference in Dice coefficients for each brain region. Positive percentages indicate higher accuracy achieved by DeepPrep, while negative percentages indicate higher accuracy for fMRIPrep. a) Fifty-two out of 62 cortical regions display positive percentages. b) Similar comparisons were performed for 39 subcortical regions, where 31 regions show positive percentages. All statistics are reported in Supplementary Table 4 and Table 5. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 4 Improved similarity of cortical morphometric patterns with target atlases by DeepPrep. Both fMRIPrep and DeepPrep were applied to preprocess anatomical images from two datasets: a) the MSC dataset and b) the CoRR-HNU dataset. Both preprocessing pipelines reconstructed individual cortical surfaces and aligned surface morphometrics with target atlases. To evaluate the performance in surface reconstruction and registration, we conducted a comparison using two morphometric measures: sulcal depth (top row), curvature (bottom row). The assessment was based on the mean squared error (MSE) when contrasting these measures with the target atlases. Source data
Extended Data Fig. 4 Improved similarity of cortical morphometric patterns with target atlases by DeepPrep. Both fMRIPrep and DeepPrep were applied to preprocess anatomical images from two datasets: a) the MSC dataset and b) the CoRR-HNU dataset. Both preprocessing pipelines reconstructed individual cortical surfaces and aligned surface morphometrics with target atlases. To evaluate the performance in surface reconstruction and registration, we conducted a comparison using two morphometric measures: sulcal depth (top row), curvature (bottom row). The assessment was based on the mean squared error (MSE) when contrasting these measures with the target atlases. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 5 Enhanced temporal signal-to-noise ratio with DeepPrep. Following spatial normalization of BOLD-fMRI signals to the MNI152NLin6Asym volumetric template, we calculated the temporal signal-to-noise ratio (tSNR) for the BOLD-fMRI signals. DeepPrep exhibited comparable tSNR values to fMRIPrep in whole brains (left) and cortical surfaces (right, fasverage6) in both the (a) MSC (average tSNR of the cerebral cortex, fMRIPrep = 159.3 ± 26.8, DeePrep = 158.9 ± 26.1, two-tailed paired-sample t-test, t(9) = 1.1, p = 0.32) and (b) CoRR-HNU datasets (average tSNR, fMRIPrep = 65.4 ± 2.3, DeePrep = 65.9 ± 2.2, t(29) = 8.2, p = 5.0 × 10-9). Source data
Extended Data Fig. 5 Enhanced temporal signal-to-noise ratio with DeepPrep. Following spatial normalization of BOLD-fMRI signals to the MNI152NLin6Asym volumetric template, we calculated the temporal signal-to-noise ratio (tSNR) for the BOLD-fMRI signals. DeepPrep exhibited comparable tSNR values to fMRIPrep in whole brains (left) and cortical surfaces (right, fasverage6) in both the (a) MSC (average tSNR of the cerebral cortex, fMRIPrep = 159.3 ± 26.8, DeePrep = 158.9 ± 26.1, two-tailed paired-sample t-test, t(9) = 1.1, p = 0.32) and (b) CoRR-HNU datasets (average tSNR, fMRIPrep = 65.4 ± 2.3, DeePrep = 65.9 ± 2.2, t(29) = 8.2, p = 5.0 × 10-9). Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 6 Comparable inter-subject variances in average BOLD signals between DeepPrep and fMRIPrep. Following spatial normalization, we assessed the voxel-wise inter-subject variances in average BOLD signals from the MSC and CoRR-HNU datasets. Lighter colors in the figures indicate larger inter-subject variances. The white matter boundaries are delineated in white on the MNI152NLin6Asym volumetric template. Source data
Extended Data Fig. 6 Comparable inter-subject variances in average BOLD signals between DeepPrep and fMRIPrep. Following spatial normalization, we assessed the voxel-wise inter-subject variances in average BOLD signals from the MSC and CoRR-HNU datasets. Lighter colors in the figures indicate larger inter-subject variances. The white matter boundaries are delineated in white on the MNI152NLin6Asym volumetric template. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 7 Comparable patterns and strength of task-evoked responses between DeepPrep and fMRIPrep. DeepPrep and fMRIPrep were employed for preprocessing the motor task-evoked fMRI data from the MSC dataset. Subsequent processing steps, including high-pass filtering and general linear modeling, were consistent between the two pipelines. a) Contrast maps derived from the surface-based pipelines depicting the activation patterns for the left hand vs. right hand task are presented on a cortical surface template. b) Volumetric contrast maps yielded by the volumetric pipelines are shown in a volumetric template. Source data
Extended Data Fig. 7 Comparable patterns and strength of task-evoked responses between DeepPrep and fMRIPrep. DeepPrep and fMRIPrep were employed for preprocessing the motor task-evoked fMRI data from the MSC dataset. Subsequent processing steps, including high-pass filtering and general linear modeling, were consistent between the two pipelines. a) Contrast maps derived from the surface-based pipelines depicting the activation patterns for the left hand vs. right hand task are presented on a cortical surface template. b) Volumetric contrast maps yielded by the volumetric pipelines are shown in a volumetric template. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 8 Comparable seed-based functional connectivity between DeepPrep and fMRIPrep. DeepPrep and fMRIPrep were utilized to preprocess resting-state fMRI data from the MSC dataset. Subsequent processing steps, including band-pass filtering (0.01-0.08 Hz) and confound regression, were consistent between the two pipelines. A 6-mm spherical seed ROI was placed in the left posterior cingulate cortex (MNI coordinate = -2, -53, 26) for surface-based functional connectivity analyses and the left angular gyrus (MNI coordinate = -49, -63, 45) for volumetric functional connectivity analyses, respectively. The seed locations are represented by the white circles. The seed-based functional connectivity maps derived from surface and volumetric pipelines are displayed within a) a cortical surface template and b) a volumetric template, respectively. Source data
Extended Data Fig. 8 Comparable seed-based functional connectivity between DeepPrep and fMRIPrep. DeepPrep and fMRIPrep were utilized to preprocess resting-state fMRI data from the MSC dataset. Subsequent processing steps, including band-pass filtering (0.01-0.08 Hz) and confound regression, were consistent between the two pipelines. A 6-mm spherical seed ROI was placed in the left posterior cingulate cortex (MNI coordinate = -2, -53, 26) for surface-based functional connectivity analyses and the left angular gyrus (MNI coordinate = -49, -63, 45) for volumetric functional connectivity analyses, respectively. The seed locations are represented by the white circles. The seed-based functional connectivity maps derived from surface and volumetric pipelines are displayed within a) a cortical surface template and b) a volumetric template, respectively. Source dataCC BY-NC-ND · PubMed Central
Extended Data Fig. 9 Comparable test-retest reliability of functional connectomes between DeepPrep and fMRIPrep. To estimate whole-brain and cortical functional connectomes, we employed 300 volumetric ROIs encompassing both cortical and subcortical regions, as well as Schaefer’s 300 cortical surface ROIs, respectively. Test-retest reliability was quantified by measuring the similarity between functional connectomes derived from two independent segments randomly sampled from one or multiple sessions in two repeated measured datasets, namely the MSC and CoRR-HNU dataset. To elucidate the relationship between test-retest reliability and data amounts, we assessed reliability using one to five sessions. No significant differences in the test-retest reliability of functional connectomes were observed between DeepPrep and fMRIPrep (two-tailed paired-sample t-tests, FDR-corrected p-values > 0.05). Data are presented as mean ± s.t.d. Source data
Extended Data Fig. 9 Comparable test-retest reliability of functional connectomes between DeepPrep and fMRIPrep. To estimate whole-brain and cortical functional connectomes, we employed 300 volumetric ROIs encompassing both cortical and subcortical regions, as well as Schaefer’s 300 cortical surface ROIs, respectively. Test-retest reliability was quantified by measuring the similarity between functional connectomes derived from two independent segments randomly sampled from one or multiple sessions in two repeated measured datasets, namely the MSC and CoRR-HNU dataset. To elucidate the relationship between test-retest reliability and data amounts, we assessed reliability using one to five sessions. No significant differences in the test-retest reliability of functional connectomes were observed between DeepPrep and fMRIPrep (two-tailed paired-sample t-tests, FDR-corrected p-values > 0.05). Data are presented as mean ± s.t.d. Source dataCC BY-NC-ND · PubMed Central

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 43 references

Cited by

See all 51

Metadata

Authors
Ren, J., An, N., Lin, C., Zhang, Y., Sun, Z., Zhang, W., Li, S., Guo, N., Cui, W., Hu, Q., Wang, W., Wu, X., Wang, Y., Jiang, T., Satterthwaite, T. D., Wang, D., & Liu, H.
Affiliations
  • Changping Laboratory (CN)
  • Peking University (CN)
  • Fudan University (CN)
  • Capital Medical University (CN)
  • Children's Hospital of Philadelphia (US)
  • Harvard University (US)
Corresponding author
  • Ren, Jianxun
  • Liu, Hesheng
Venue
Nature Methods
Published
2025-02-06
Volume
22
Issue
3
Pages
473-476
ISSN
  • 1548-7091 (ISSN-L)
  • 1548-7105
OpenAlex
W4407189624
Cited by
29
References
43
Citations by year
2026: 21 · 2025: 7
FWCI
16.13
Type
journal article
Language
en
Open access
Licence
Locations
  • Nature Methods (publishedVersion, cc-by-nc-nd)
  • bioRxiv (Cold Spring Harbor Laboratory) (acceptedVersion, cc-by-nc)
  • PubMed Central (publishedVersion, cc-by-nc-nd)
  • PubMed (publishedVersion)
Funders
  • Changping Laboratory
  • China Postdoctoral Science Foundation (2022M720529, 2023M730175)
  • National Natural Science Foundation of China (82072786)
Topics
  • Health Sciences › Medicine › Radiology, Nuclear Medicine and Imaging › Advanced MRI Techniques and Applications
  • Life Sciences › Neuroscience › Cognitive Neuroscience › Functional Brain Connectivity Studies
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Medical Image Segmentation Techniques
Keywords
neuroimaging preprocessing, deep learning, workflow management, functional MRI, structural MRI, scalability, big data, human brain imaging
MeSH terms
Deep Learning, Algorithms, Brain, Humans, Image Processing, Computer-Assisted, Magnetic Resonance Imaging, Software, Workflow, Neuroimaging

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.