SurgicaL-CD: Generating Surgical Images via Unpaired Image Translation with Latent Consistency Diffusion Models

Danush Kumar Venkatesh, Dominik Rivoir, Micha Pfeiffer, Stefanie Speidel

TL;DR

SurgicaL-CD introduces a fast, few-step latent consistency diffusion method for translating simulated surgical images into highly realistic ones without requiring paired data. By bridging the simulation-to-reality gap in just 1 to 4 steps, it enables the automatic creation of high-quality, labeled surgical datasets that significantly boost the performance of downstream medical segmentation models.

What Problem Does This Paper Address?

Training machine learning models for Computer-Assisted Surgery (CAS) systems requires massive amounts of annotated data. However, real surgical images are notoriously difficult to open-source due to patient privacy concerns, and getting medical experts to manually label them is incredibly time-consuming and expensive.

While 3D simulation environments can automatically generate infinite synthetic data alongside perfect ground-truth labels (like semantic masks and depth maps), these simulated images lack real-world realism. They miss the complex textures, lighting, and fine details (like blood vessels) found in real anatomy. Existing methods using Generative Adversarial Networks (GANs) or standard diffusion models to bridge this "sim-to-real" gap often suffer from poor image quality, slow generation speeds, or require complex, patient-specific pre-texturing steps.

Methods

The authors propose a multi-stage unpaired image-to-image translation pipeline that leverages Latent Consistency Models (LCMs) to achieve high-quality synthesis with ultra-fast inference:

  1. Stable Diffusion Fine-Tuning: A pre-trained Stable Diffusion (SD) model is first fine-tuned on real surgical datasets using text prompts to teach it the visual style of real surgeries.
  2. Latent Consistency Distillation: To solve the slow inference bottleneck of standard diffusion models, the fine-tuned SD model is distilled into a consistency model (SurgicaL-CD). This allows the network to map any point on the denoising trajectory to its origin in just 1 to 4 steps.
  3. Image Translation via SDEdit: Simulated images are guided through the translation process using SDEdit, which adds a controlled amount of noise to the simulation and denoises it using the distilled SurgicaL-CD model.
  4. Optimal Transport (OT) Color Mapping: A straightforward color alignment step based on optimal transport is optionally used to match the color distribution of the simulation to the real domain without needing complex pre-extracted textures.
  5. Spatial Conditioning: Pre-trained ControlNets (depth and soft edges) are optionally plugged in zero-shot to ensure the structural layout of the organs remains perfectly intact during translation.
Overview of the SurgicaL-CD framework showing fine-tuning, distillation, and image translation stages.

Datasets

The approach was validated using a mix of real and simulated datasets:

  • Real Surgical Datasets: CholecSeg8K and CholecT50 (laparoscopic cholecystectomy/gallbladder removal datasets) and the Dresden Surgical Anatomy Dataset (DSAD) for multi-class abdominal organ segmentation.
  • Surgical Simulation Datasets: Lap scenes (10,000 simulated cholecystectomy images) and Gast scenes (4,000 simulated gastric surgery images) used as the source domain for translation.

Key Insights and Ideas

  • Speed Meets Quality: By utilizing consistency distillation in the latent space, diffusion models can finally compete with GANs on inference speed while maintaining the superior image diversity and structural realism inherent to diffusion processes.
  • Eliminating Pre-Texturing: Previous diffusion methods for this task relied on extracting textures from real patient data before translation. SurgicaL-CD replaces this with a global Optimal Transport color mapping, making the pipeline highly scalable and less reliant on patient-specific data.
  • Downstream Utility as a Metric: Instead of just looking at visual appeal, the authors emphasize evaluating synthetic data by how much it helps train downstream models. Generating realistic textures on top of simulated labels creates a powerful data augmentation tool.

Key Results

  • High-Quality Realism: SurgicaL-CD outperformed both GAN baselines (like CycleGAN and ConStructS) and diffusion baselines in perceptual metrics, achieving top scores in Density and Coverage, which signify high image diversity and fidelity.
  • 10x Speedup: The method achieved an inference time of just 0.14 seconds for 1-step generation and 0.17 seconds for 2-step generation, outperforming previous diffusion methods like LC-SD (5.52 seconds) by more than tenfold.
  • Segmentation Boost: When synthetic images generated by SurgicaL-CD were mixed with real images to train a DeepLabV3+ segmentation model, performance jumped by 9% in Dice score and 8% in IoU compared to training on real data alone.
Fig. 1: The realistic surgical images (3rd-5th column) generated using our (few) step diffusion approach in an unpaired fashion with their corresponding semantic labels. The diffusion models are trained using the real images (1st column), and the simulated images (2nd column) are used as inputs during inference. There exists no one-on-one spatial correspondence between the real and simulated domains. Or approach is able to add fine details like vessels similar to real images.

Limitations and Future Work

Despite the strong results, the authors note a few limitations:

  • Hyperparameter Tuning: The visual quality is highly sensitive to the balance between the Classifier-Free Guidance (CFG) scale and the denoising strength.
  • Semantic Leakage: Occasionally, textures from one organ type can "leak" onto another during the translation process.

For future work, the authors suggest exploring GAN-based hybrid loss functions or cross-attention style injection to prevent texture leakage, as well as extending the framework to handle temporally consistent video generation.

Summary updated

BibTeX
@inproceedings{venkatesh2024surgical,
  author = {Danush Kumar Venkatesh and Dominik Rivoir and Micha Pfeiffer and Stefanie Speidel},
  title = {{SurgicaL-CD: Generating Surgical Images via Unpaired Image Translation with Latent Consistency Diffusion Models}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  doi = {10.1007/978-3-031-91907-7\_13},
}
Figure