EMIT-Diff: Enhancing Medical Image Segmentation via Text-Guided Diffusion Model

Zheyuan Zhang, Lanhong Yao, Bin Wang, Debesh Jha, Elif Keles, Alpay Medetalibeyoglu, Ulas Bagci · DOI

Introduction

Deep learning has revolutionized medical image segmentation, yet its performance remains heavily dependent on the availability of large, high-quality annotated datasets. In the medical domain, acquiring such data is notoriously difficult due to the high cost of expert labeling, privacy concerns, and the rarity of specific pathologies. Traditional data augmentation techniques, such as geometric transformations, often fail to capture the complex anatomical variations present in real-world patient populations.

To address these challenges, this work introduces DiffBoost, a novel data augmentation framework that leverages text-guided diffusion models. Unlike previous generative approaches like Generative Adversarial Networks (GANs), which often suffer from training instability and mode collapse, DiffBoost provides a stable and controllable method for synthesizing diverse medical images to bolster training sets.

The DiffBoost Framework

The DiffBoost framework is designed to generate medically realistic images that adhere to specific anatomical structures. It operates through a multi-stage process involving large-scale pre-training and fine-grained control mechanisms.

Overview of the DiffBoost generative framework for medical image synthesis.

1. Medical Domain Pre-training

Rather than initializing with models trained on natural images (like ImageNet), DiffBoost begins with a diffusion model pre-trained on RadImageNet. This dataset contains over 1.3 million radiologic images, allowing the model to develop an inherent "medical intuition" for the textures and structural nuances of CT, MRI, and ultrasound modalities.

2. Controllable Synthesis with ControlNet

To ensure that generated images are not just realistic but also anatomically accurate, the framework employs ControlNet. This architecture allows the model to be conditioned on two primary inputs:

  • Text Prompts: Categorical labels or specific augmentation instructions (e.g., "CT, Abdomen, Normal") provide high-level semantic guidance.
  • Edge Maps: Structural boundaries are extracted from segmentation masks using the Holistically-Nested Edge Detection (HED) algorithm. These edge maps serve as a structural skeleton, preventing the model from "hallucinating" incorrect anatomy and ensuring the synthetic organs align perfectly with the intended masks.

3. Patch-Level Fusion Strategy

A key innovation of DiffBoost is its training strategy for downstream segmentation tasks. Instead of simply adding synthetic images to the training set, the authors implement a Random Merging Mask. This strategy creates hybrid training samples by mixing patches of real and synthetic data. This approach encourages the segmentation model to become "intensity-independent," focusing on underlying morphology rather than specific pixel distributions of the training set.

Experimental Results

The effectiveness of DiffBoost was evaluated across three distinct medical imaging modalities: Breast Ultrasound (BUSI), Spleen CT, and Prostate MRI.

Performance Gains

The framework demonstrated significant improvements over baseline models and traditional augmentation methods:

  • Breast Ultrasound: The Dice score improved from 62.92% to 71.65%, representing a substantial 13.87% relative gain.
  • Prostate MRI: Performance increased from 78.46% to 84.56% (+7.78% relative improvement).
  • Spleen CT: Even on tasks with high baseline performance, the framework achieved a boost to 94.78%, showing its utility even in less challenging scenarios.

Qualitative Analysis

Visual comparisons indicate that DiffBoost produces images with superior structural integrity compared to GAN-based methods like Pix2Pix. By anchoring the generation process to edge maps, the model avoids the anatomical distortions and "hallucinations" common in earlier generative models.

Discussion and Conclusion

DiffBoost represents a significant step forward in medical data augmentation. By combining the stability of diffusion models with the precision of edge-based conditioning, it effectively mitigates the data scarcity problem.

However, some limitations remain. The current reliance on simple categorical prompts suggests that future iterations could benefit from more complex natural language descriptions. Additionally, while edge maps ensure structural accuracy, they may limit the model's ability to simulate extreme anatomical variations if the maps are too rigid. Future work will also focus on optimizing the sampling speed of diffusion models to reduce the computational overhead of data generation.

In conclusion, EMIT-Diff and its underlying DiffBoost framework provide a robust, scalable solution for enhancing medical image segmentation, particularly in data-constrained environments.

Source Code: github.com/NUBagciLab/DiffBoost

Summary updated

BibTeX
@article{zhang2024emit,
  author = {Zheyuan Zhang and Lanhong Yao and Bin Wang and Debesh Jha and Elif Keles and Alpay Medetalibeyoglu and Ulas Bagci},
  title = {{EMIT-Diff: Enhancing Medical Image Segmentation via Text-Guided Diffusion Model}},
  journal = {IEEE Transactions on Medical Imaging},
  year = {2024},
  doi = {10.1109/tmi.2024.3519307},
}
Figure