Mission Balance: Generating Under-Represented Class Samples Using Video Diffusion Models

Danush Kumar Venkatesh, Isabel Funke, Micha Pfeiffer, Fiona R. Kolbinger, Hanna Maria Schmeiser, Marius Distler, Jürgen Weitz, Stefanie Speidel

Introduction

The efficacy of deep learning models in surgical applications is fundamentally constrained by the quality and distribution of training data. Surgical datasets are characterized by a profound "long-tail" distribution: while routine background movements are abundant, critical events—such as staple line bleeding or complex needle maneuvers—are exceedingly rare. This data imbalance leads to biased models that often fail to recognize the most clinically significant moments during a procedure.

While traditional data augmentation techniques like rotation or flipping can improve spatial robustness, they fail to capture the complex temporal dynamics required for surgical action recognition. Previous attempts to synthesize surgical video data have struggled with temporal consistency or required labor-intensive manual annotations. To address these challenges, we introduce SurV-Gen, a lightweight, two-stage video diffusion framework designed to generate high-fidelity, temporally consistent samples of under-represented surgical events.

The SurV-Gen Framework

SurV-Gen adopts a decoupled approach to video generation, separating the learning of spatial textures from temporal dynamics. This strategy allows the model to leverage the extensive prior knowledge embedded in large-scale generative models while remaining computationally efficient.

Two-Stage Training

  1. Spatial Fine-tuning: The process begins with a pre-trained 2D Stable Diffusion (SD) model. This model is fine-tuned on individual surgical frames paired with descriptive text prompts (e.g., "action recognition task of cutting the suture"). This stage ensures the model accurately captures the appearance of surgical instruments, anatomical structures, and textures.
  2. Temporal Learning: Following spatial tuning, the spatial layers are frozen, and temporal transformer layers (self-attention blocks) are integrated into the architecture. This stage focuses exclusively on learning the motion patterns and dynamics of surgical actions without degrading the visual quality established in the first stage.

Rejection Sampling (RS)

To ensure that the synthetic data provides a positive contribution to downstream tasks, SurV-Gen incorporates a Rejection Sampling mechanism. A separate classifier, trained on real-world data, evaluates the generated videos. If the classifier exhibits low confidence in a synthetic video's class label, the sample is discarded. This quality control step ensures that only representative and high-quality samples are used to augment the training set, preventing the introduction of "noise" that could confuse the primary model.

Experimental Evaluation

The researchers evaluated SurV-Gen across two distinct surgical contexts:

  • SAR-RARP50: A public dataset of robot-assisted radical prostatectomy. The study focused on three rare actions: "Picking-up the needle" (G1), "Cutting the suture" (G6), and "Returning/dropping the needle" (G7).
  • Internal SLB Dataset: A private dataset comprising 39 videos of pancreas transection, specifically targeting the detection of Staple Line Bleeding (SLB), a rare but critical complication.

Results and Analysis

Image Quality and Realism

SurV-Gen demonstrated superior performance compared to existing baselines such as LVDM and Endora. It achieved the highest scores in CFID (realism) and CMMD (unbiased quality), indicating that the generated tools and anatomy are more realistic and less prone to artifacts than those produced by competing models.

Downstream Task Performance

The integration of SurV-Gen samples led to significant improvements in model accuracy:

  • Action Recognition: On the SAR-RARP50 dataset, the Jaccard index (measuring overlap and accuracy) for "Cutting the suture" improved from 0.11 to 0.23. For "Returning the needle," the index rose from 0.23 to 0.37.
  • Event Prediction: In the detection of staple line bleeding, the model's Balanced Accuracy increased from 0.74 (using real data only) to 0.81 when augmented with SurV-Gen and Rejection Sampling.

Efficiency

By decoupling spatial and temporal training, SurV-Gen is significantly more efficient than its predecessors. It utilizes 435M trainable parameters compared to Endora’s 675M and generates video samples more than twice as fast (6.55s vs. 15.3s).

Conclusion

SurV-Gen represents a significant advancement in addressing the data scarcity problem in surgical AI. By combining efficient video diffusion with a rigorous rejection sampling process, the framework generates high-quality synthetic data that directly improves the recognition of rare, critical surgical events. Future work will explore more granular conditioning methods, such as using segmentation maps or simulator signals, to further refine the control over generated surgical scenes.

Implementation Note: The authors have open-sourced their implementation at https://gitlab.com/nct_tso_public/surgvgen.

Summary updated

BibTeX
@inproceedings{venkatesh2025mission,
  author = {Danush Kumar Venkatesh and Isabel Funke and Micha Pfeiffer and Fiona R. Kolbinger and Hanna Maria Schmeiser and Marius Distler and Jürgen Weitz and Stefanie Speidel},
  title = {{Mission Balance: Generating Under-Represented Class Samples Using Video Diffusion Models}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2025},
}
Figure