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

Nicholas Konz, Yuwen Chen, Haoyu Dong, Maciej A. Mazurowski
2/7/2024
121 citations
eess.IVcs.CVcs.LG
diffusion-flow

Official code: mazurowski-lab/segmentation-guided-diffusion (224 stars, Python, last commit 2025-06-18).

Abstract

Diffusion models have enabled remarkably high-quality medical image generation, yet it is challenging to enforce anatomical constraints in generated images. To this end, we propose a diffusion model-based method that supports anatomically-controllable medical image generation, by following a multi-class anatomical segmentation mask at each sampling step.

Show full abstract

We additionally introduce a random mask ablation training algorithm to enable conditioning on a selected combination of anatomical constraints while allowing flexibility in other anatomical areas. We compare our method ("SegGuidedDiff") to existing methods on breast MRI and abdominal/neck-to-pelvis CT datasets with a wide range of anatomical objects. Results show that our method reaches a new state-of-the-art in the faithfulness of generated images to input anatomical masks on both datasets, and is on par for general anatomical realism. Finally, our model also enjoys the extra benefit of being able to adjust the anatomical similarity of generated images to real images of choice through interpolation in its latent space. SegGuidedDiff has many applications, including cross-modality translation, and the generation of paired or counterfactual data. Our code is available at https://github.com/mazurowski-lab/segmentation-guided-diffusion.

View on arXivView PDF

Code Implementations(1)

[MICCAI 2024] Easy diffusion models (optionally with segmentation guidance) for medical images and beyond.

22420PythonJan 31, 20241 years agoNOASSERTION
conditional-diffusionddpmdiffusersdiffusion-modelsmiccai2024+1 more

Similar Papers

Cite this paper

@article{konz2024anatomicallycontrollable,
  title  = {Anatomically-Controllable Medical Image Generation with Segmentation-Guided Diffusion Models},
  author = {Nicholas Konz and Yuwen Chen and Haoyu Dong and Maciej A. Mazurowski},
  year   = {2024},
  eprint = {2402.05210},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.05210v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.05210.svg)](https://codeofpaper.com/paper/2402.05210)

Discussion