Anatomically-Controllable Medical Image Generation with Segmentation-Guided Diffusion Models

Nicholas Konz, Yuwen Chen, Haoyu Dong, Maciej A. Mazurowski

Introduction

In medical imaging, the utility of generative AI is measured not just by visual fidelity, but by anatomical accuracy. While diffusion models have set new benchmarks for image quality, their application in clinical settings is often hindered by "hallucinations"—biologically impossible structures that undermine the reliability of synthetic data. To address this, researchers from Duke University have developed SegGuidedDiff, a framework designed to enforce strict anatomical constraints on medical image synthesis through segmentation guidance.

The Problem: Precision vs. Hallucination

Standard Denoising Diffusion Probabilistic Models (DDPMs) excel at creating high-resolution textures but struggle with the rigid spatial requirements of medical scans. For example, a model might generate a visually convincing breast MRI where the fibroglandular tissue is placed in a way that defies human anatomy. Existing conditional generative models, such as ControlNet or GAN-based SPADE, often fail to maintain pixel-perfect faithfulness when faced with the high variance of medical structures. There is a critical need for models that treat anatomy as a hard constraint rather than a stylistic suggestion.

Methodology: SegGuidedDiff

The SegGuidedDiff framework introduces two primary technical innovations to ensure anatomical control:

1. Image-Space Segmentation Guidance

Unlike Latent Diffusion Models (LDMs) that operate in a compressed latent space, SegGuidedDiff performs denoising directly in the image space. By concatenating the multi-class anatomical mask to the noisy image at every step of the diffusion process, the model receives continuous spatial guidance. This approach avoids the loss of precision inherent in converting masks into abstract latent representations, ensuring that the generated pixels align strictly with the provided segmentation boundaries.

2. Mask-Ablated Training (MAT)

To enhance the model's flexibility, the authors introduced Mask-Ablated Training. During the training phase, specific anatomical classes are randomly "ablated" or hidden. This forces the model to learn the spatial relationships between different organs and tissues. Consequently, a MAT-trained model can intelligently "fill in" missing anatomy. For instance, if provided with only a bone mask from a CT scan, the model can realistically synthesize the surrounding soft tissues and organs based on learned biological priors.

Latent Space Interpolation

The framework also supports latent space interpolation. By halting the denoising process at an intermediate step and blending features from real and synthetic images, users can generate "counterfactual" images. This allows for the creation of datasets where specific anatomical features are varied while others remain constant, providing a powerful tool for data augmentation and clinical simulation.

Experimental Validation

The model was rigorously tested on two complex datasets:

  • Breast MRI: A subset of the Duke Breast Cancer MRI dataset, involving segmentations for the breast boundary, blood vessels, and fibroglandular tissue.
  • CT Organ: Multi-organ scans (neck-to-pelvis) including the liver, bladder, lungs, kidneys, and skeletal structures.

Key Findings

  • Anatomical Faithfulness: SegGuidedDiff achieved a Dice coefficient of >0.90 for breast MRI and ~0.89 for CT Organ. This indicates a near-perfect match between the input mask and the generated anatomy, significantly outperforming baselines like ControlNet and SPADE.
  • Functional Realism: To test if the synthetic images were clinically useful, the researchers trained a new segmentation model using only synthetic data. This model achieved performance levels nearly identical to those trained on real patient data (with a negligible Dice drop of ≤ 0.04), proving that the synthetic anatomy is functionally indistinguishable from real scans.
  • The FID Limitation: The study highlights that the Fréchet Inception Distance (FID)—a standard metric for image quality—is often misleading in medical tasks. A model can produce a low FID score while still generating anatomically incorrect structures, emphasizing the need for segmentation-based evaluation.

Conclusion and Future Work

SegGuidedDiff represents a significant step toward controllable medical image synthesis. By prioritizing image-space guidance and structural relationships, it provides a robust method for generating high-fidelity, anatomically accurate datasets.

Future research will focus on extending the framework from 2D slices to full 3D volumes, which is essential for many clinical workflows. Additionally, the team aims to incorporate guidance for pathological features, such as tumors, and explore cross-modality translation (e.g., generating CT scans from MRI masks) to further expand the utility of synthetic medical data.

Summary updated

BibTeX
@inproceedings{konz2024anatomically,
  author = {Nicholas Konz and Yuwen Chen and Haoyu Dong and Maciej A. Mazurowski},
  title = {{Anatomically-Controllable Medical Image Generation with Segmentation-Guided Diffusion Models}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  doi = {10.1007/978-3-031-72104-5\_9},
}
Figure