Abstract
In clinical practice, medical segmentation datasets are often limited and heterogeneous, with variations in modalities, protocols, and anatomical targets across institutions. Existing deep learning models struggle to jointly learn from such diverse data, often sacrificing either generalization or domain-specific knowledge. To overcome these challenges, we propose a joint training method called Universal Harmonization (U-Harmony), which can be integrated into deep learning-based architectures with a domain-gated head, enabling a single segmentation model to learn from heterogeneous datasets simultaneously. By integrating U-Harmony, our approach sequentially normalizes and then denormalizes feature distributions to mitigate domain-specific variations while preserving original dataset-specific knowledge. More appealingly, our framework also supports universal modality adaptation, allowing the seamless learning of new imaging modalities and anatomical classes. Extensive experiments on cross-institutional brain lesion datasets demonstrate the effectiveness of our approach, establishing a new benchmark for robust and adaptable 3D medical image segmentation models in real-world clinical settings.
Introduction
Medical AI development is frequently hampered by data silos. Heterogeneity in MRI hardware, imaging protocols (e.g., T1, T2, FLAIR), and annotation standards across institutions creates significant "domain shift." Standard Joint Training (JT) often results in a "middle ground" model that lacks precision on specific datasets, while Domain Generalization (DG) methods may sacrifice accuracy on known domains for better performance on unseen ones. U-Harmony addresses this by creating a universal model capable of learning shared features across institutions while preserving the unique characteristics of each data source.
Methodology
The U-Harmony framework introduces two primary innovations to standard segmentation architectures: the U-Harmony module and a domain-gated head.
The U-Harmony Module
The U-Harmony module replaces standard normalization layers with a two-stage "harmonize-then-restore" mechanism:
- First-Stage Harmonization: This stage standardizes feature distributions per instance to mitigate institution-specific noise. It employs a learnable affine transformation enhanced with higher-order polynomial terms to capture complex, non-linear feature interactions that standard linear transformations miss.
- Second-Stage Restoration: Instead of discarding original distribution statistics, U-Harmony selectively re-injects mean and variance into the decoder. This allows the model to retain domain-specific knowledge necessary for high-precision segmentation.
Domain-Gated Head
To enable "dataset-free" inference, U-Harmony utilizes a gating mechanism based on domain prototypes (average feature signatures). During inference, the model automatically routes data through the appropriate path by comparing incoming image features to these prototypes, removing the need for manual dataset identification.
Experimental Results
The model was evaluated on three heterogeneous brain lesion datasets: UCSF-BMSR (560 scans), BrainMetShare (156 scans), and BraTS-METS 2023 (1,303 scans).
U-Harmony consistently improved performance when integrated into baseline architectures like nn-UNet and SwinUNETR, with Dice Similarity Coefficient (DSC) gains ranging from 1.6% to 3.4%. Notably, U-Harmony outperformed state-of-the-art joint training methods such as CVCL and MultiTalent by up to 8.4% DSC.
The automated domain-gated head achieved performance within 1.3% of an "oracle" model (manually informed of the dataset), demonstrating the effectiveness of the routing mechanism. Qualitatively, the model showed superior boundary delineation, accurately identifying lesion edges where baseline models often produced blurred results under domain shift.
Conclusion
U-Harmony provides a robust, plug-and-play solution for joint training on heterogeneous medical datasets. By balancing feature harmonization with statistical restoration, it achieves state-of-the-art performance while maintaining adaptability to new modalities and anatomical classes. Future work will focus on narrowing the gap between automated gating and oracle performance and exploring the module's effectiveness across diverse anatomical regions beyond the brain.
Summary updated