Manuscript Offprint
arXiv:2609.06437Large-Scale Pretraining for Improving Deep Learning-Based Geometric Distortion Correction of Diffusion-Weighted Imaging
Saroj Khanal¹, Yashawant Kumar Yadav², Kritam Bhattarai³, Jeevan Neupane⁴, Shristi Subedi⁵, Saship Gwachha⁵, Manish Kumar Tiwari⁶, Dong Zhang⁷,⁸, Confidence Raymond⁷,⁹,¹⁰, Aondona Moses Iorumbur⁷,¹¹, Udunna Anazodo⁷,⁹,¹⁰, Surendra Maharjan¹², Bishesh Khanal¹, Mahesh Shakya¹, and Pralhad Kumar Shrestha¹[0000-0001-5831-4086]
¹ Nepal Applied Mathematics and Informatics Institute for Research (NAAMII), Lalitpur, Nepal
² University of Exeter, Exeter, Devon, UK
³ Institute of Engineering, Purwanchal Campus, Dharan, Nepal
⁴ Institute of Engineering, Pulchowk Campus, Lalitpur, Nepal
⁵ Gandaki Medical College Teaching Hospital and Research Center, Pokhara, Nepal
⁶ Madan Bhandari University of Science and Technology, Chitlang, Nepal
⁷ Medical Artificial Intelligence Laboratory, Lagos, Nigeria
⁸ Department of Electrical and Computer Engineering, University of British Columbia, Vancouver, Canada
⁹ Montreal Neurological Institute, McGill University, Montreal, Canada
¹⁰ Department of Biomedical Engineering, McGill University, Montreal, Canada
¹¹ Department of Medical Physics, College of Medicine, University of Lagos, Nigeria
¹² Brain Health Imaging Institute, Department of Radiology, Weill Cornell Medicine, Weill Cornell Medicine, New York, United States
¹³ {saroj.khanal, bishesh.khanal, mahesh.shakya}@naamii.org.np, y.yadav@exeter.ac.uk, {pralhad.shrestha05, kritambhattarai4, jeevan.neupane003, srii.sbd, gwachhasaship, mosesiorumbur, suren634634}@gmail.com, manish.kumar.tiwari@mbust.edu.np, udunna.anazodo@mcgill.ca, confidence.raymond@mail.mcgill.ca, donzhang@ece.ubc.ca
Abstract. Diffusion-weighted imaging (DWI) is widely used in clinical settings but remains vulnerable to geometric distortion. Conventional correction methods often require additional acquisitions or vendor-specific solutions, limiting their feasibility in high-throughput, resource-constrained settings. This study investigates whether large-scale pretraining strategies can improve deep learning-based distortion correction for single-phase-encoding DWI. We formulate the task as image reconstruction, and compare a non-pretrained baseline against a self-supervised and a generative pretrained model, evaluated using both quantitative image-similarity metrics and qualitative expert assessment. The best-performing model was further tested for transferability on data collected in an LMIC setting with acquisition shift. Pretrained models outperformed the non-pretrained baseline, with cWDM achieving the strongest results across both quantitative and qualitative evaluation. However, application to LMIC data
S. Khanal et al.
revealed transferability challenges, including contrast alteration and over-reliance on T1-weighted anatomical structure. Registering images to a common standard space improved predictions, suggesting that harmonized preprocessing may enhance cross-domain deployment.
Keywords: Diffusion-weighted imaging · SS-EPI · Geometric distortion correction · Large-scale pretraining · Conditional wavelet diffusion model
1 Background
In routine clinical settings, Diffusion-weighted imaging (DWI) is the gold standard for identifying acute ischemic stroke, often within minutes of symptom onset and before conventional MRI becomes clearly abnormal [10]. It also helps detect tumors, distinguish malignant from benign lesions [9], and monitor treatment response across multiple organ systems in cancer imaging [11].
Single shot echo planar imaging (SS-EPI) is the most widely used acquisition technique and serves as a standard pulse sequence for DWI due its high temporal efficiency. However, the technique is inherently susceptible to significant geometric distortion and blurring caused by magnetic field inhomogeneities [24, 25]. Multi-shot MRI sequences, such as RESOLVE by Siemens [26], are specifically designed to reduce the geometric distortions and blurring artifacts commonly seen in ss-EPI acquisitions. However, these techniques are often expensive and may require proprietary licensing, making them less suitable for Low- and Middle-Income Countries (LMIC) settings.
Although traditional imaging methods, such as TOPUP [2], mitigate these distortions and artifacts, they often require additional reference scan from opposite phase encoding direction or lengthy acquisition times [1, 5]. These requirements can reduce patient throughput, make them unsuitable for retrospectively collected scans, and limit their practicality in resource-limited clinical settings.
Towards addressing this gap, this study explores deep learning-based distortion correction of DWI images using large-scale pretraining strategies followed by model performance evaluation through qualitative assessment by radiographers. Furthermore, to simulate a LMIC clinical setting with limited access to advanced acquisition techniques, constraints on lengthy acquisition protocols, and insufficient training data, we evaluate the model's transferability using LMIC data collected with different acquisition protocols and demographic characteristics.
Our Contribution is three-fold:
-
We leverage large-scale, open-weight MRI foundation models, specifically incorporating diffusion-based conditional generative pretraining alongside self-supervised pretraining, to systematically evaluate their advantages against baseline, non-pretrained AI models.
-
We perform qualitative evaluations by clinical experts to complementarily measure downstream relevant semantics of the image along with image pixel-based metrics.
-
We explore transferability of the best-performing model by evaluating them on a locally-collected DWI distortion dataset from real clinical setting and evaluate them via expert-based qualitative evaluation.
3 Methods
Study Design We formulate the distortion correction task as supervised image-to-image reconstruction, learning , where , denotes the distorted b0 image, T1-weighted reference image, and the ground-truth corrected b0 target images, respectively, over dataset . We train a non-pretrained baseline and fine-tune two models pretrained on large-scale MRI datasets under the same formulation, evaluating all three on the held-out test set via quantitative similarity metrics and radiographer assessment. The best-performing model is further applied to LMIC-acquired data with marked domain shift in acquisition and population, followed by expert qualitative evaluation (Fig. 1).
Dataset and Preprocessing Two datasets are used in this study: the publicly available Human Connectome Project (HCP) dataset [18] and a retrospectively collected Nepalese dataset representing a real-world clinical LMIC setting with single phase-encoding (PE) acquisition. These two datasets differ in acquisition protocol and population representation, with HCP data acquired along the left-right direction from a Western population and the Nepalese dataset acquired along anterior-posterior direction representative a region from the Global South.
The HCP dataset consists of paired T1-weighted and spin-echo EPI sequence(ss-EPI) DWI images from 1065 subjects. To correct for severe geometric distortions inherent to ss-EPI, HCP acquires data with opposite phase encoding directions (Right-Left and Left-Right) to compute field maps and perform unwarping. After this postprocessing, a corrected DWI image is obtained acting as groundtruth.
On the other hand, the Nepalese dataset consists of paired T1-weighted and ss-EPI DWI Images without additional reverse-phase encoding, collected retrospectively from a real clinical workflow in LMIC setting. This single-phase
S. Khanal et al.

Fig. 1. Block diagram of the proposed methodology. A) Large-scale MRI pretrained models were obtained from publicly available repositories. B) The pretrained models were fine-tuned for DWI distortion correction. C) Pretraining effectiveness was assessed through quantitative and qualitative evaluation. D) The best-performing model was tested on domain-shifted LMIC clinical data. E) Model transferability was evaluated through qualitative expert assessment.
encoding means a corrected DWI image as groundtruth is not available. Hence, we perform expert-based qualitative evaluation.
For training and evaluation, all image volumes were resampled to a uniform physical resolution of mm with bilinear interpolation and resized to voxels using the MONAI [4] framework. Image intensities are normalized using min-max scaling, which mapped the intensity range to . FSL's Brain Extraction Tool (BET) [16] was used to generate brain masks, and the loss was calculated only within the brain region.
Benchmarked Models Synb0-DISCO Baseline Synb0-DISCO [14], a supervised 3D U-Net for single phase-encoding distortion correction, serves as our state-of-the-art benchmark. We train it from scratch (no pretrained initialization) to isolate the contribution of large-scale MRI pretraining.
SwinBRAIN SwinBRAIN [17] provides self-supervised Swin-UNETR weights pretrained on 75,861 multi-modal head MRI scans (T1, T2, FLAIR). We fine-tune these publicly available weights for b0 distortion correction, testing whether anatomical representations learned across MRI modalities transfer to this task.
Conditional Wavelet Diffusion Model (cWDM) cWDM [7] is a conditional generative model for cross-modality 3D MRI synthesis, performing wavelet-space image-to-image translation via a U-Net-like denoising backbone. We use weights pretrained on BraTS 2021 (~6,000 scans) for T2 synthesis from T1, contrast-enhanced T1, and FLAIR [13], hypothesizing this paired-synthesis initialization benefits distortion correction. We adapt cWDM for deterministic reconstruc-tion: distorted b0 and T1 images are wavelet-transformed, passed through the pretrained backbone, and inverse-transformed to yield the corrected b0 image.
Training Strategy The dataset is split into train, validation, and test sets in a 72:13:15 ratio. The models were trained with a maximum training budget of 30 epochs on an NVIDIA GTX 1070Ti. All models converged with the following hyperparameters: batch size 1, Adam optimizer with learning rate and weight decay , and mean square error loss with spatial masking to avoid the background region.
Quantitative Evaluation Quantitative evaluation is performed on the held-out HCP test set by comparing each model-generated corrected b0 image with the corresponding HCP corrected b0 target. Five image-similarity metrics were calculated: mean squared error (MSE), peak signal-to-noise ratio (PSNR), structural similarity index measure (SSIM) [21], visual information fidelity (VIF) [15], and spectral angle mapper (SAM). These are reference-based visual similarity metrics commonly used in distortion correction literature. All metrics were calculated within the brain region using the BET-derived brain masks. Metrics were calculated for each test subject, and the Wilcoxon signed-rank test was used for pairwise comparison of model performance across all quantitative metrics.
Qualitative Evaluation To assess correction fidelity beyond voxel-based metrics, we developed a clinician-centered evaluation protocol targeting anatomy preservation, texture integrity, and distortion correction, in absence of reference corrected images. The protocol was developed by consensus among three radiographers (>3 years experience) and a senior radiology associate. Distortion correction was scored on a 5-point Likert scale (5 = no distortion, with preserved anatomical boundaries and no visible susceptibility-related artifacts; 4 = mild distortion, with minor geometric distortion or artifacts but preserved diagnostic quality; 3 = moderate distortion, with visible distortion in regions such as the frontal or temporal lobes, parietal regions, or brainstem, while major structures remain identifiable; 2 = severe distortion, with substantial geometric distortion, signal dropout, and loss of anatomical detail; and 1 = complete distortion, where the image is non-diagnostic.) Spatial data integrity, evaluated against the T1-weighted image, was scored as excellent/good/fair/poor based on severity of data modification. Excellent indicated no visible data modification, good indicated slight but acceptable artifacts, fair indicated moderate and distracting image modification, and poor indicated severe data corruption or non-diagnostic image quality. Each model's test-set predictions were rated by one blinded radiographer (model identity and quantitative scores withheld); 50 samples were additionally rated by all three raters to assess inter-rater agreement via Gwet's AC2 [19], chosen for robustness to the kappa paradox under skewed distributions. Spearman correlation was computed between quantitative and qualitative scores to assess their association.
S. Khanal et al.
4 Result and Discussion
Results on HCP Data As shown in Table 1, both pretrained-then-fine-tuned models significantly outperformed the non-pretrained baseline across all metrics (p<0.01), with the generative model (cWDM) performing best despite its smaller pretraining dataset - suggesting pretraining on a paired MRI synthesis task transfers more effectively. An ablation training cWDM from scratch confirmed this: pretrained cWDM outperformed its non-pretrained counterpart across all metrics (p < 0.01) - MSE 0.008 vs. 0.011, PSNR 34.009 vs. 32.726, SSIM 0.920 vs. 0.899, and VIF 0.504 vs. 0.460 - underscoring the benefit of pretraining. In terms of computational cost, cWDM required 10.091 ± 0.645 s per volume on CPU and 0.223 ± 0.002 s on a T4 GPU, with a peak GPU memory footprint of 673.89 MB.
Table 1. Quantitative performance on the HCP test set.
| Model Name | MSE | PSNR | SSIM | VIF |
|---|---|---|---|---|
| Baseline Non-Pretrained Synb0-DISCO | 0.017 0.005 | 30.791 1.232 | 0.791 0.026 | 0.480 0.030 |
| Self-Supervised Pretrained SwinBRAIN | 0.015 0.005 | 31.293 1.473 | 0.864 0.029 | 0.406 0.028 |
| Generative Pretrained cWDM | 0.008 0.003 | 34.009 1.538 | 0.920 0.021 | 0.504 0.025 |

Fig. 2. Box plots representation of quantitative metrics across three models on HCP test set.
Qualitative ratings (Fig. 4) show cWDM outperforming the other models on both criteria: it achieved “excellent” distortion correction in 103/159 cases, versus 92 (Synb0-DISCO) and 45 (SwinBRAIN), and “excellent” image data integrity in 16 cases, versus 1 (SwinBRAIN) and 0 (Synb0-DISCO). Inter-rater agreement across three radiographers, assessed via Gwet’s AC2 on 50 samples, was high for both Distortion Correction (AC2 = 0.835) and Image Data Integrity (AC2 = 0.945). Correlation analysis between the qualitative scores and quantitative metrics showed no statistically significant association as depicted in Figure 4. This indicates that conventional image-similarity measures may not fully capture clinically relevant anatomical quality and may suggest the need for complementary qualitative evaluation. Based on observation of the sample results, the network appears to learn a combined mapping involving both distortion correction and spatial alignment. This is expected because the HCP corrected b0 targets are generated through preprocessing steps that include registration to the T1-weighted image and distortion correction.

(a) Radiographer ratings

(b) Podium plots
Fig. 3. Radiographer ratings and podium plots [22] for the three models (cWDM, SwinBRAIN, Synb0-DISCO) across 159 test cases. (a) Distributions of ratings for Distortion Correction and Image Data Integrity. (b) Podium plots: top panel shows per-case metric values ranked 1st–3rd (best–worst), with lines connecting values from the same test case; bottom panel shows, for each algorithm, the relative frequency of attaining each rank.

Fig. 4. Scatter plots showing the relationship between qualitative evaluation scores (Distortion and Integrity) and quantitative image quality metrics (MSE, PSNR, SSIM, and VIF) for the cWDM model. Spearman correlation coefficients (r) are reported for each metric pair.
S. Khanal et al.
Results on LMIC Data After applying the best performing cWDM model on the LMIC data, acceptable distortion correction with loss of image information in some images and stronger mapping from the reference T1w image were observed, as per the qualitative assessment. Contrast alteration in overall image was also observed. Few samples are shown in Figure 5. We hypothesized that this problem resulted from substantial domain shift. So, to minimize the population shift and few parameters of acquisition shifts like FOV and patient orientation, the model was retrained on the HCP dataset after linearly registering the distorted b0 image to the corresponding T1-weighted image, followed by nonlinear registration of both images to MNI152 space using EasyReg [8], a deep learning tool. The same registration protocol was then applied to the LMIC dataset. This method improved the predictions in terms of both distortion correction and data integrity, as depicted in Figure 5. No loss of image information was observed, however subtle mapping from T1w structure and contrast alteration was present. This suggests mapping both training and test data from different domains to a common standard space improves transferability in this task of distortion correction.

Fig. 5. Qualitative comparison of predicted DWI before and after registration training. For three subjects (A–C), original DWI, model prediction, and T1w reference are shown pre- and post-registration. Red circles mark information loss (A: frontal, C: occipital) that resolves after registration, and reduced over-reliance on T1w structure, particularly temporal lobe (B). White circle (C) shows improved distortion correction accuracy post-registration. Contrast alteration persists across all images.
Limitations Our evaluation is limited by two baselines (Synb0-DISCO and SwinBRAIN) alongside cWDM and does not include additional exhaustive benchmark contemporary learning-based distortion correction methods. Additionally, our transferability analysis on the LMIC dataset is qualitative-only, due to unavailability of distortion-free reference acquisition. Our hypothesis on “over-reliance of T1-anatomy” could have additionally been tested via T1-ablated or T1-mismatched retraining.
Impact in Resource-Constrained Settings In resource-constrained settings, high patient throughput often forces limited per-patient scanner time resulting in reliance on rapidly-blipped single-shot EPI for routine DWI, trading image quality for speed. This causes geometric distortion from susceptibility differences at bone-air/tissue interfaces (e.g., skull base, orbits), causing pixel misregistration and warped anatomy. Established fixes - dual phase-encoding acquisition or vendor solutions like Siemens' RESOLVE - correct distortion but at the cost of longer scans and added licensing/hardware expense, making them impractical for high-volume, budget-constrained clinics. This leaves centers with a hard trade-off: fast but distorted DWI, or slow but corrected DWI. Our method targets this gap: by leveraging large-scale pretraining and generative deep learning for retrospective distortion correction, we push the state-of-the-art in clinically acceptable, anatomically faithful DWI without added scan time or vendor-specific MRI machines, offering a deployable solution for low-resource imaging workflows.
5 Acknowledgement
The authors would like to thank the following instructors of the Sprint AI Training for African Medical Imaging Knowledge Translation (SPARK) Academy 2026 summer school on deep learning in medical imaging for providing insightful background knowledge on brain tumors that informed the research presented here; The authors would also like to thank Linshan Liu for administrative assistance in supporting the SPARK Academy training and capacity-building activities, which the authors immensely benefited from. The authors acknowledge the computational infrastructure support from the Digital Research Alliance of Canada (The Alliance) and knowledge translation support from the McGill University Doctoral Internship program through the student exchange program for the SPARK Academy. In addition we thank NAAMII, Nepal for providing computational resources, office space, mentorship, and guidance in support of this project. Finally, we would like to thank Lacuna Fund for Health and Equity, the Radiological Society of North America (RSNA), Research & Education (R&E) Foundation Derek Harwood-Nash International Education Scholar Grant, and National Science and Engineering Research Council of Canada (NSERC) Discovery Launch Supplement (PI: Udunna Anazodo, DGECR-2022-00136) for making the SPARK Academy possible via research grant supports.
References
- Aamir, F., Aslam, I., Arshad, M., Omer, H.: Accelerated diffusion-weighted mr image reconstruction using deep neural networks. Journal of Digital Imaging 36(1), 276–288 (2022). https://doi.org/10.1007/s10278-022-00709-5
S. Khanal et al.
-
Andersson, J.L., Skare, S., Ashburner, J.: How to correct susceptibility distortions in spin-echo echo-planar images: application to diffusion tensor imaging. Neuroimage 20(2), 870–888 (2003)
-
Borasinski, S., Yavuz, E., Béhuret, S.: Paired image-to-image translation quality assessment using multi-method fusion. arXiv preprint arXiv:2205.04186 (2022)
-
Cardoso, M.J., Li, W., Brown, R., Ma, N., Kerfoot, E., Wang, Y., Murrey, B., Myronenko, A., Zhao, C., Yang, D., et al.: Monai: An open-source framework for deep learning in healthcare. arXiv preprint arXiv:2211.02701 (2022)
-
Chen, Q., Boeve, B.F., Forghanian-Arani, A., Senjem, M.L., Jack, C.R., Przybelski, S.A., et al.: Mri quantitative susceptibility mapping of the substantia nigra as an early biomarker for lewy body disease. Journal of Neuroimaging 31(5), 1020–1027 (2021). https://doi.org/10.1111/jon.12878
-
Dargahi, S., Bouix, S., Desrosiers, C.: Susceptibility distortion correction of diffusion mri with a single phase-encoding direction (2025). https://doi.org/10.48550/ARXIV.2508.13340, https://arxiv.org/abs/2508.13340
-
Friedrich, P., Durrer, A., Wolleb, J., Cattin, P.C.: cwdm: conditional wavelet diffusion models for cross-modality 3d medical image synthesis. arXiv preprint arXiv:2411.17203 (2024)
-
Iglesias, J.E.: Easyreg: a ready-to-use deep learning tool for symmetric affine and nonlinear brain mri registration (2023)
-
Karmakar, D.K., Badhe, P.V., Mhatre, P., Shrivastava, S., Sultan, M., Shankar, G., Tekriwal, K., Moharkar, S., Karmarkar, D., MS, G.: Utility of diffusion tensor imaging in assessing corticospinal tracts for the management of brain tumors: A cross-sectional observational study. Cureus 15(10) (2023)
-
Le Bihan, D.: From brownian motion to virtual biopsy: a historical perspective from 40 years of diffusion mri. Japanese Journal of Radiology 42(12), 1357–1371 (2024)
-
Messina, C., Bignone, R., Bruno, A., Bruno, A., Bruno, F., Calandri, M., Caruso, D., Coppolino, P., De Robertis, R., Gentili, F., et al.: Diffusion-weighted imaging in oncology: an update. Cancers 12(6), 1493 (2020)
-
Mirugwe, A., Tamale, L., Nyirenda, J.: Improving tuberculosis detection in chest x-ray images through transfer learning and deep learning: comparative study of convolutional neural network architectures. JMRx Med 6, e66029 (2025)
-
pfriedri: Cwdm model repository. https://huggingface.co/pfriedri/cwdm (2024), hugging Face model repository. Accessed: 2026-07-01
-
Schilling, K.G., Blaber, J., Huo, Y., Newton, A., Hansen, C., Nath, V., Shafer, A.T., Williams, O., Resnick, S.M., Rogers, B., et al.: Synthesized b0 for diffusion distortion correction (synb0-disco). Magnetic resonance imaging 64, 62–70 (2019)
-
Sheikh, H.R., Bovik, A.C.: Image information and visual quality. IEEE Transactions on image processing 15(2), 430–444 (2006)
-
Smith, S.M.: Fast robust automated brain extraction. Human brain mapping 17(3), 143–155 (2002)
-
Suo, X., Chen, M., Chen, L., Luo, C., Kemp, G.J., Lui, S., Sun, H.: Automatic identification of parkinsonism using clinical multi-contrast brain mri: a large self-supervised vision foundation model strategy. EBioMedicine 116 (2025)
-
Van Essen, D.C., Smith, S.M., Barch, D.M., Behrens, T.E.J., Yacoub, E., Ugurbil, K.: The wu-minn human connectome project: An overview. NeuroImage 80, 62–79 (2013), added from source list; verify preferred HCP citation before final submission
-
Walsh, P., Thornton, J., Asato, J., Walker, N., McCoy, G., Baal, J., Baal, J., Mendoza, N., Banimahd, F.: Approaches to describing inter-rater reliability of the overall clinical appearance of febrile infants and toddlers in the emergency department. PeerJ 2, e651 (2014)
-
Wang, G., Wu, J., Luo, X., Liu, X., Li, K., Zhang, S.: Mis-fm: 3d medical image segmentation using foundation models pretrained on a large-scale unannotated dataset. arXiv preprint arXiv:2306.16925 (2023)
-
Wang, Z., Bovik, A.C., Sheikh, H.R., Simoncelli, E.P.: Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing 13(4), 600–612 (2004)
-
Wiesenfarth, M., Reinke, A., Landman, B.A., Eisenmann, M., Saiz, L.A., Cardoso, M.J., Maier-Hein, L., Kopp-Schneider, A.: Methods and open-source toolkit for analyzing and visualizing challenge results. Scientific reports 11(1), 2369 (2021)
-
Wu, Y., Chen, B., Zeng, A., Pan, D., Wang, R., Zhao, S.: Skin cancer classification with deep learning: a systematic review. Frontiers in Oncology 12, 893972 (2022)
-
Ye, X., Wang, P., Li, S., Zhang, J., Lian, Y., Zhang, Y., et al.: Simultaneous super-resolution and distortion correction for single-shot epi dwi using deep learning (2021). https://doi.org/10.1101/2021.12.03.470880, http://biorxiv.org/lookup/doi/10.1101/2021.12.03.470880, preprint
-
Zhang, L., Wen, X., Li, J.W., Jiang, X., Yang, X.F., Li, M.: Diagnostic error and bias in the department of radiology: A pictorial essay. Insights into Imaging 14(1), 163 (2023). https://doi.org/10.1186/s13244-023-01521-7
-
Zhong, X., Carpenter, D.M.: The capabilities of RESOLVE, a new diffusion MRI technique: How to achieve higher resolution diffusion MRI to support better clinical confidence and expanded capabilities. Siemens Healthcare, MRI Hot Topics White Paper (Sep 2014), https://cdn0.scrvt.com/39b415fb07de4d9656c7b516d8e2d907/1800000004231491/4d9a89554a26/RESOLVE_1800000004231491.pdf, order No. A911IM-MR-141700-P1-4A00