Diffuse-UDA: Addressing Unsupervised Domain Adaptation in Medical Image Segmentation with Appearance and Structure Aligned Diffusion Models

Haifan Gong, Yitao Wang, Yihan Wang, Jiashun Xiao, Xiang Wan, Haofeng LiarXiv 2024

TL;DR

This paper introduces Diffuse-UDA, a novel method that uses diffusion models to bridge the gap between medical image datasets from different sources (e.g., hospitals, scanners). By generating high-quality synthetic image-mask pairs, Diffuse-UDA significantly improves the performance of segmentation models in new domains, even surpassing the performance of models trained directly on target domain data.

What Problem Does This Paper Address?

Medical image segmentation, a crucial task for diagnosis and treatment, heavily relies on deep learning models. However, these models perform poorly when applied to data from different sources (e.g., different hospitals or scanner types) due to a "domain gap." This gap arises from variations in imaging equipment, patient populations, and acquisition protocols. Obtaining large, expertly annotated datasets for every new domain is prohibitively expensive and time-consuming, especially for 3D medical images. This disparity leads to unfairness in AI healthcare applications, where models trained in well-resourced centers may not work well in less-resourced ones. Unsupervised Domain Adaptation (UDA) aims to solve this by adapting models to new domains using only unlabeled target data.

Methods

Diffuse-UDA tackles UDA through a multi-stage approach leveraging diffusion models:

  • Pseudo-labeling with ASCPlus: The core idea is to generate high-quality "pseudo-labels" for the unlabeled target domain data. The ASCPlus framework is introduced for this, focusing on aligning appearance and structure between source and target domains.
  • Adaptive Frequency-based Transformation: To bridge the appearance gap, they use Fourier Transforms to swap amplitude spectra between source and target images, creating a more aligned representation.
  • Structure Consistency Learning: To handle variations in anatomical structures, they employ a teacher-student model with CutMix augmentation to enforce prediction consistency under structural perturbations.
  • Pseudo-label Generation: The ASCPlus model, trained on source data and its transformed versions, generates pseudo-labels for target domain images. Confidence thresholding and ensembling are used to ensure label quality.
  • Diffusion Model for Generation: A conditional diffusion model is trained using both labeled source domain data and the generated pseudo-labeled target domain data. This model learns to generate realistic image-mask pairs that exhibit target domain characteristics and diverse structures.
  • Deformable Augmentation: To further enhance diversity and robustness, a deformable augmentation module is integrated, which can apply affine and elastic transformations to masks. This allows for simulating a wider range of anatomical variations.
  • UDA Training: The diffusion model acts as a generator, creating synthetic image-mask pairs that are then used to train the final segmentation model. This process effectively bridges the domain gap by providing the model with data that is stylistically and structurally aligned with the target domain.

Datasets

The paper evaluates Diffuse-UDA on two main benchmarks:

  • FeTA dataset: This dataset is used for fetal brain segmentation. The source domain is a fetal atlas, and the target domain is from the FeTA benchmark. It includes T2-weighted MRI volumes with annotations for various brain tissues. The dataset is stratified into neurologically typical and abnormal fetuses.
  • MMWHS (Multi-Modality Whole Heart Segmentation) dataset: This dataset is used for cardiac tissue segmentation and involves cross-modality adaptation. It includes both MRI (source) and CT (target) volumes with annotations for cardiac tissues.

Key Insights and Ideas

  • Diffusion Models as powerful UDA tools: The paper demonstrates that diffusion models, known for their generative capabilities, can be effectively repurposed for UDA by generating high-quality synthetic data that bridges domain gaps.
  • Pseudo-label quality is paramount: The success of UDA heavily relies on the accuracy of pseudo-labels. The ASCPlus framework's focus on appearance and structure consistency is key to generating reliable pseudo-labels.
  • Deformable augmentation enhances diversity: The integration of deformable transformations in the diffusion model's generation process is crucial for simulating anatomical variations and improving model generalization.
  • Surpassing the theoretical upper bound: Remarkably, Diffuse-UDA achieves performance that not only outperforms existing UDA methods but also approaches or even surpasses the performance of models trained directly on target domain data (the theoretical upper bound). This highlights the effectiveness of the synthetic data generation strategy.

Key Results

  • State-of-the-art performance: Diffuse-UDA outperforms leading UDA and semi-supervised learning (SSL) strategies on both the FeTA and MMWHS benchmarks.
  • FeTA Benchmark: Achieved a Dice Similarity Coefficient (DSC) of 81.3±0.4 for abnormal fetal brain segmentation and 84.5±0.5 for normal fetal brain segmentation, surpassing other methods and even approaching the upper bound (81.1±0.2 and 83.6±0.3 respectively).
  • MMWHS Benchmark: Achieved DSC of 84.1±0.6 and ASD of 2.0±0.2 for CT to MR adaptation, and 88.3±0.3 and 1.6±0.1 for MR to CT adaptation, outperforming existing methods.
  • Qualitative improvements: Visual comparisons show that Diffuse-UDA produces more accurate segmentations, particularly in complex junction areas of brain tissues.
  • Feature alignment: t-SNE visualizations demonstrate that Diffuse-UDA effectively aligns features from different domains, reducing the gap between source and target data representations.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, diffusion models are generally computationally intensive, which could be a factor in real-world deployment.
  • Pseudo-labeling Sensitivity: The performance is still dependent on the quality of the initial pseudo-labels, although ASCPlus aims to mitigate this.
  • Future Work: The paper suggests that this approach can be extended to other medical imaging tasks and potentially other domains beyond medical imaging. The generation of synthetic datasets for public use is also highlighted as a contribution and a path for future research.

Summary updated

BibTeX
@misc{gong2024diffuse,
  author = {Haifan Gong and Yitao Wang and Yihan Wang and Jiashun Xiao and Xiang Wan and Haofeng Li},
  title = {{Diffuse-UDA: Addressing Unsupervised Domain Adaptation in Medical Image Segmentation with Appearance and Structure Aligned Diffusion Models}},
  year = {2024},
  eprint = {2408.05985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.05985},
}
Figure