Ultrasound Image Generation using Latent Diffusion Models

Benoît Freiche, Anthony El-Khoury, Ali Nasiri-Sarvi, Mahdi S. Hosseini, Damien Garcia, Adrian Basarab, Mathieu Boily, Hassan RivazarXiv 2025 · DOI

Introduction

In medical artificial intelligence, the scarcity of high-quality, labeled data remains a primary bottleneck. While natural image datasets are vast, medical imaging—particularly ultrasound—is constrained by privacy regulations, the high cost of expert annotation, and the rarity of specific pathologies. Traditional synthetic data generation relies on physics-based simulators like Field II or MUST. Although accurate to acoustic principles, these methods are computationally intensive and often fail to capture the complex textures and morphological variations seen in real clinical practice.

This research explores a novel alternative: fine-tuning large-scale "foundation models" originally trained on natural images to generate realistic medical sonograms. By leveraging the visual priors of models like Stable Diffusion, researchers can synthesize high-fidelity ultrasound images that preserve clinical relevance.

Methodology: Latent Diffusion and Spatial Control

The proposed framework utilizes a two-stage approach to adapt general-purpose generative models to the medical domain.

Latent Diffusion Fine-Tuning

The researchers employed Stable Diffusion v1.5, a Latent Diffusion Model (LDM) that operates within a compressed latent space rather than on raw pixels. This architectural choice ensures computational efficiency during training. The model was fine-tuned on a specialized breast ultrasound dataset using descriptive text prompts (e.g., "Ultrasound image of breast with a malignant tumor") to align the model's output with the specific visual characteristics of sonography.

Conditional Generation with ControlNet

To provide the precise spatial control required for clinical applications, the team integrated ControlNet. This architecture allows the model to accept secondary inputs, such as segmentation masks, which define the exact shape and location of lesions. While the core Stable Diffusion weights remain fixed, ControlNet learns to modulate the generation process to match the provided mask, effectively turning the generator into a controllable clinical simulator.

Architecture of the proposed system combining Stable Diffusion with ControlNet for mask-conditioned generation.

Dataset and Training

The model was trained using the Breast Ultrasound Images (BUSI) dataset, which consists of 780 images categorized into three classes: Normal (133), Benign (437), and Malignant (210). The inclusion of ground-truth segmentation masks for benign and malignant cases was critical for training the ControlNet component, enabling the synthesis of lesions with specific pathological features.

Results and Clinical Validation

The generated images demonstrate a high degree of morphological realism. Benign tumors are typically rendered as round, well-defined hypoechoic regions, while malignant tumors exhibit the irregular, spiculated margins characteristic of invasive cancer.

Comparison of segmentation masks, ground truth images, and synthetic samples generated by the model across normal, benign, and malignant classes.

Expert Assessment

A panel of three ultrasound scientists and an experienced radiologist evaluated the synthetic images. The experts confirmed that the generated samples were indistinguishable from real clinical images and accurately represented the intended pathologies.

Downstream Performance Gains

The utility of these synthetic images was further validated through data augmentation experiments. A ResNet-50 classifier trained on a combination of real and synthetic data saw its AUC (Area Under the Curve) jump from 81% to 87% when tested on a separate breast imaging dataset. Furthermore, a model trained on synthetic data generated from only 20% of the original dataset reached a 94% AUC on the training distribution, indicating that the diffusion model successfully captured the underlying statistical properties of the medical data.

Conclusion and Future Directions

This study demonstrates that foundation models trained on natural images can be effectively "re-purposed" for niche medical domains. By combining latent diffusion with spatial conditioning, researchers can generate high-quality, controllable synthetic data that enhances the performance of diagnostic AI models. Future work will focus on expanding this approach to multi-organ datasets and exploring hybrid models that combine physics-based constraints with the generative power of diffusion models to ensure both visual realism and acoustic accuracy.

Summary updated

BibTeX
@misc{freiche2025ultrasound,
  author = {Benoît Freiche and Anthony El-Khoury and Ali Nasiri-Sarvi and Mahdi S. Hosseini and Damien Garcia and Adrian Basarab and Mathieu Boily and Hassan Rivaz},
  title = {{Ultrasound Image Generation using Latent Diffusion Models}},
  year = {2025},
  eprint = {2502.08580},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08580},
}
Figure