Abstract: Acquiring surgical data for research and development is significantly hindered by high annotation costs and practical and ethical constraints. Utilizing synthetically generated images could offer a valuable alternative. In this work, we explore adapting text-to-image generative models for the surgical domain using the CholecT50 dataset, which provides surgical images annotated with action triplets (instrument, verb, target). We investigate several language models and find T5 to offer more distinct features for differentiating surgical actions on triplet-based textual inputs, and showcasing stronger alignment between long and triplet-based captions. To address challenges in training text-to-image models solely on triplet-based captions without additional inputs and supervisory signals, we discover that triplet text embeddings are instrument-centric in the latent space. Leveraging this insight, we design an instrument-based class balancing technique to counteract data imbalance and skewness, improving training convergence. Extending Imagen, a diffusion-based generative model, we develop Surgical Imagen to generate photorealistic and activity-aligned surgical images from triplet-based textual prompts. We assess the model on quality, alignment, reasoning, and knowledge, achieving FID and CLIP scores of 3.7 and 26.8% respectively. Human expert survey shows that participants were highly challenged by the realistic characteristics of the generated samples, demonstrating Surgical Imagen's effectiveness as a practical alternative to real data collection.
Introduction
The development of AI for surgical applications is significantly hindered by "data poverty." High-quality surgical video is not only expensive to annotate but also subject to strict privacy and ethical constraints. Furthermore, surgical datasets are often highly imbalanced; critical but brief events, such as specific complications or precise clipping phases, are rarely captured in sufficient quantities for robust model training. While general-purpose text-to-image models like DALL-E or Stable Diffusion have shown remarkable capabilities, they lack the domain-specific knowledge required to render anatomically correct and instrument-accurate surgical scenes.
Methods
The researchers developed Surgical Imagen, a framework built upon the Google Imagen architecture specifically adapted for the surgical domain.
Key technical innovations include:
- Language Modeling with T5: Evaluation of various text encoders revealed that the T5 (Text-to-Text Transfer Transformer) provided superior semantic separation for surgical actions compared to alternatives like Sentence-BERT.
- Instrument-Based Class Balancing: A core discovery was that surgical "action triplets" (Instrument, Verb, Target) cluster in the latent space primarily based on the instrument used. The authors implemented a class-balancing technique that oversamples rare instruments during training to prevent model collapse into common scenes.
- Two-Stage Diffusion: The pipeline generates a 64x64 base image followed by a text-conditioned super-resolution model to upscale to 256x256. This second stage is "text-aware," allowing it to add fine-grained anatomical details like cautery smoke that match the prompt.
Results
The model was trained on the CholecT50 dataset, consisting of approximately 101,000 image-text pairs from laparoscopic cholecystectomy procedures.
Surgical Imagen achieved a Fréchet Inception Distance (FID) of 3.7, significantly outperforming baselines like StackGAN (5.83). In a survey of 88 medical professionals, experts identified synthetic images as "real" 37.6% of the time, demonstrating high photorealism. To test the model's reasoning, the authors prompted it to generate clinically impossible scenes (e.g., two gallbladders); the model successfully rendered these, indicating it learns to compose scenes rather than just memorizing training data. Furthermore, downstream utility was confirmed by running synthetic images through pre-trained tool detection and segmentation models, which successfully identified instruments and tissues despite being trained only on real data.
Discussion and Limitations
While Surgical Imagen demonstrates that simple action triplets are sufficient for generating complex, photorealistic scenes, several challenges remain. The current model is specific to laparoscopic cholecystectomy; expansion to other specialties would require additional large-scale annotated datasets. Additionally, as a diffusion-based model, it requires significant computational resources. Future work will focus on temporal consistency to generate realistic surgical video sequences and continuous validation to mitigate the risk of model hallucinations in clinical settings.
Summary updated