Abstract
With the adoption of powerful machine learning methods in medical image analysis, it is becoming increasingly desirable to aggregate data that is acquired across multiple sites. However, the underlying assumption of many analysis techniques that corresponding tissues have consistent intensities in all images is often violated in multi-centre databases. We introduce a novel intensity normalisation scheme based on density matching, wherein the histograms are modelled as Dirichlet process Gaussian mixtures. The source mixture model is transformed to minimise its $L^2$ divergence towards a target model, then the voxel intensities are transported through a mass-conserving flow to maintain agreement with the moving density. In a multi-centre study with brain MRI data, we show that the proposed technique produces excellent correspondence between the matched densities and histograms. We further demonstrate that our method makes tissue intensity statistics substantially more compatible between images than a baseline affine transformation and is comparable to state-of-the-art while providing considerably smoother transformations. Finally, we validate that nonlinear intensity normalisation is a step toward effective imaging data harmonisation.
Introduction: The Challenge of Scanner Bias
In medical imaging, consistency is paramount. Machine learning models trained to detect pathology based on voxel brightness expect a specific intensity value to represent the same tissue type regardless of the acquisition source. However, Magnetic Resonance Imaging (MRI) lacks an absolute scale like the Hounsfield units used in CT. MRI intensities are relative and influenced by scanner manufacturer, magnetic field strength, and technician settings. This "scanner bias" creates significant hurdles for multi-site data aggregation, which is essential for training robust deep learning models.
Existing solutions, such as the Nyúl method, rely on piecewise linear transformations to match histogram landmarks. While widely used, these can introduce artifacts or discontinuities. Other approaches using Gaussian Mixture Models (GMMs) often require a predefined number of tissue components, which is difficult to estimate accurately across diverse populations.
Methods: Nonparametric Density Flows (NDFlow)
The proposed Nonparametric Density Flows (NDFlow) method addresses these limitations through a three-stage process designed for flexibility and smoothness.
1. Flexible Modeling with DPGMMs
Instead of assuming a fixed number of tissue classes, NDFlow utilizes Dirichlet Process Gaussian Mixture Models (DPGMMs). This nonparametric approach allows the model to automatically adapt its complexity to the specific image histogram, adding components as needed to capture the underlying distribution accurately.
2. Density Matching via $L^2$ Divergence
To align a source image to a target reference, the method minimizes the $L^2$ divergence between their probability densities. Unlike the more common Kullback–Leibler (KL) divergence, $L^2$ divergence offers a closed-form solution for Gaussian mixtures, leading to a more mathematically elegant and computationally efficient optimization process.
3. Mass-Conserving Flows
Inspired by fluid mechanics, NDFlow treats intensity transformation as a continuous flow. By defining a velocity field that moves intensities from source to target while ensuring "conservation of mass," the method produces a diffeomorphic transformation. This ensures the mapping is smooth and reversible, avoiding the abrupt jumps characteristic of landmark-based techniques.
Experimental Validation
The method was evaluated using the IXI database, comprising 581 T1-weighted MRI scans from three different imaging centers in London (Guy’s Hospital, Hammersmith Hospital, and the Institute of Psychiatry). All scans underwent standard preprocessing, including bias-field correction and registration to MNI space.
Key Results
NDFlow demonstrated superior performance across several metrics:
- Histogram Alignment: The method achieved lower Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) in histogram matching compared to both affine alignment and the Nyúl method.
- Tissue Consistency: Variance in intensity statistics for White Matter (WM) and Grey Matter (GM) across the 581 subjects was significantly reduced, indicating higher predictability across the population.
- Data Harmonization: In a "center classification" experiment, a machine learning classifier's ability to identify the source hospital dropped significantly after NDFlow normalization (p < .01). This suggests the method effectively removes site-specific "fingerprints," leaving only biological data.
Discussion and Future Directions
A primary advantage of NDFlow is its global smoothness, which is beneficial for downstream tasks like image registration. By sidestepping manual model selection through the Dirichlet Process, it offers a more automated and robust workflow for large-scale studies.
However, the authors note that forcing perfect histogram matches can be problematic if images contain genuine anatomical differences, such as large lesions. Future work will explore selective matching—potentially by "freezing" certain mixture components—and extending the framework to multivariate flows for multi-modal scans (e.g., simultaneous T1 and T2 matching).
Conclusion
Nonparametric Density Flows provide a powerful, smooth, and flexible framework for MRI intensity normalization. By treating harmonization as a fluid-like flow between nonparametric density estimates, NDFlow moves medical imaging closer to a "universal language," enabling more reliable multi-center analysis and robust machine learning applications.
Summary updated