Harmonizing Flows: Leveraging normalizing flows for unsupervised and source-free MRI harmonization
Farzad Beizaee, Gregory A. Lodygensky, Chris L. Adamson, Deanne K. Thompso, Jeanie L. Y. Cheon, Alicia J. Spittl. Peter J. Anderso, Christian Desrosier, Jose Dolz
TL;DR
This work tackles MRI domain shift across sites by proposing Harmonizing Flows, an unsupervised, source-free, and task-agnostic framework that uses normalizing flows to model the source distribution and a harmonizer network to map target-domain images onto it. The method trains a normalizing flow to capture $p_{\mathbf{x}}(\mathbf{x})$ and pre-trains a UNet-based harmonizer to reconstruct source-like images from augmented sources, then performs test-time adaptation by updating the harmonizer to maximize the NF-based likelihood of harmonized outputs, with stopping criteria based on entropy or bits-per-dimension. Across adult and neonatal segmentation and neonatal brain-age estimation, the approach yields state-of-the-art performance and demonstrates robust generalization to unseen domains and tasks, surpassing histograms-based methods, GAN/autoencoder baselines, and test-time adaptation strategies. The work further shows that focusing on distributional alignment via NF guidance, rather than merely histogram similarity, leads to tangible improvements in downstream clinical tasks, supporting broader adoption in multi-center MRI studies.
Abstract
Lack of standardization and various intrinsic parameters for magnetic resonance (MR) image acquisition results in heterogeneous images across different sites and devices, which adversely affects the generalization of deep neural networks. To alleviate this issue, this work proposes a novel unsupervised harmonization framework that leverages normalizing flows to align MR images, thereby emulating the distribution of a source domain. The proposed strategy comprises three key steps. Initially, a normalizing flow network is trained to capture the distribution characteristics of the source domain. Then, we train a shallow harmonizer network to reconstruct images from the source domain via their augmented counterparts. Finally, during inference, the harmonizer network is updated to ensure that the output images conform to the learned source domain distribution, as modeled by the normalizing flow network. Our approach, which is unsupervised, source-free, and task-agnostic is assessed in the context of both adults and neonatal cross-domain brain MRI segmentation, as well as neonatal brain age estimation, demonstrating its generalizability across tasks and population demographics. The results underscore its superior performance compared to existing methodologies. The code is available at https://github.com/farzad-bz/Harmonizing-Flows
