Adaptation of Surgical Activity Recognition Models Across Operating Rooms

Ali Mottaghi, Aidean Sharghi, Serena Yeung, Omid Mohareri

Introduction

Automatic surgical activity recognition is a foundational component of the "intelligent operating room (OR)." By identifying specific phases of a procedure—such as sterile preparation, robot docking, or suturing—AI systems can optimize hospital workflows, provide objective assessments of surgeon skill, and anticipate potential safety risks. However, a significant barrier to the widespread deployment of these models is their inherent "brittleness." A model trained to high accuracy in one surgical environment often experiences a sharp decline in performance when deployed in a different OR. This phenomenon, known as domain shift, arises from variations in room layout, lighting conditions, camera angles, and the specific habits of different surgical teams.

To address this, researchers from Intuitive Surgical and Stanford University have developed a new domain adaptation framework designed to maintain high recognition performance across diverse environments without the need for exhaustive manual re-annotation.

The Challenge: Domain Shift and Data Scarcity

In the context of surgical AI, manually labeling thousands of hours of video for every new hospital or OR configuration is prohibitively expensive and time-consuming. The research explores two primary strategies to mitigate this:

  1. Unsupervised Domain Adaptation (UDA): The model learns to generalize to a new "target" room using only unlabeled video data from that environment.
  2. Semi-supervised Domain Adaptation (SSDA): The model is provided with a very small fraction of labeled data from the target room to guide its learning process.

Methodology: A Unified Adaptation Framework

The proposed architecture utilizes a two-tiered approach to process surgical video. It employs a TimeSformer (a transformer-based backbone) to analyze short-term spatial-temporal features within video clips, followed by a Gated Recurrent Unit (GRU) to capture the long-term temporal dependencies of a full-length surgery.

To facilitate adaptation between different OR environments, the authors introduced several technical innovations:

Prediction Queues for Distribution Alignment

Effective domain adaptation typically requires aligning the data distributions of the source and target environments. In image-based tasks, this is often achieved through large batch sizes. However, video data is memory-intensive, forcing researchers to use small batch sizes that provide poor estimates of the overall distribution. The authors solved this by implementing "prediction queues"—a running history of model outputs that allows for accurate distribution alignment even with limited hardware memory.

Balanced Pseudo-Labeling

In UDA, models often generate "pseudo-labels" for unlabeled data where they have high confidence. A major risk in surgical settings is the "long-tailed" nature of the data; common phases (like general preparation) occur much more frequently than rare, critical phases (like robot docking). To prevent the model from ignoring these rare classes, the framework uses a balanced sampling strategy that prioritizes infrequent or "hard" classes during the pseudo-labeling process.

Two-Step Training Strategy

The training pipeline begins with pretraining on the source domain. This ensures that the initial pseudo-labels generated for the target domain are sufficiently accurate to guide the subsequent adaptation phase, where the model is fine-tuned using a combination of source and target data.

Experimental Results

The framework was evaluated using a substantial dataset of 484 full-length surgical videos (averaging 2 hours each) captured via Time-of-Flight sensors. The data encompassed 28 different procedure types performed by 16 surgical teams using the daVinci Xi system, split between two distinct environments: OR1 (274 videos) and OR2 (210 videos).

Key findings include:

  • UDA Performance: When adapting from OR1 to OR2 with zero target labels, the model achieved 70.76% accuracy, compared to only 62.13% for a non-adapted baseline.
  • SSDA Efficiency: With only a small amount of labeled target data, the proposed method significantly outperformed standard supervised learning and existing adaptation techniques like Maximum Classifier Discrepancy (MCD).
  • Workflow Accuracy: In the most successful adaptation scenarios, the mean Average Precision (mAP) for the entire surgical workflow reached nearly 90%.

Conclusion and Future Directions

This research demonstrates that sophisticated domain adaptation can bridge the gap between different surgical environments, reducing the reliance on manual data labeling. While the current study focused on external OR cameras and specific architectures (TimeSformer and GRU), the underlying logic is model-agnostic. Future work may extend these techniques to endoscopic (internal) video and explore adaptation across different surgical robotic platforms or entirely different hospital systems. By solving the problem of environmental brittleness, this framework moves the field closer to scalable, plug-and-play surgical AI.

Summary updated

BibTeX
@inproceedings{mottaghi2022adaptation,
  author = {Ali Mottaghi and Aidean Sharghi and Serena Yeung and Omid Mohareri},
  title = {{Adaptation of Surgical Activity Recognition Models Across Operating Rooms}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  doi = {10.1007/978-3-031-16449-1\_51},
}
Figure