Self-supervised representation learning for surgical activity recognition

Daniel Paysan, Luis Haug, Michael Bajka, Markus Oelhafen, Joachim M. BuhmannInt. J. Comput. Assist. Radiol. Surg 2021

Abstract

Our work is an important first step in the direction of making efficient use of features obtained from deep representation learning for surgical activity recognition in settings where only a small fraction of the existing data is annotated by human domain experts and where those annotations are potentially incomplete.

Introduction

Surgical Activity Recognition (SAR) represents a critical milestone for the development of intelligent operating rooms and advanced surgical simulators. By enabling computers to understand surgical workflows in real-time, SAR facilitates automated feedback, objective skill assessment, and enhanced intraoperative safety. However, the current state-of-the-art in SAR relies heavily on supervised deep learning models. These models are notoriously "data-hungry," requiring vast amounts of expert-labeled data. In the surgical domain, this creates a significant bottleneck: obtaining high-quality annotations requires the time of highly-paid, busy surgeons to manually label thousands of video frames.

This research addresses the scarcity of annotated data by exploring whether useful features can be learned directly from raw surgical video and sensor data without the need for human-provided labels.

Methods: A Two-Stage Pipeline

The authors propose a novel framework that integrates self-supervised learning (SSL) with probabilistic modeling to recognize surgical activities.

The proposed two-stage pipeline: self-supervised representation learning followed by unsupervised surgical activity recognition.

The pipeline consists of three primary components:

  1. Self-Supervised Pretext Task: A deep encoder-decoder architecture (CNN + RNN) is trained on a "pretext task" known as Remaining Surgery Progress (RSP). Instead of identifying specific actions, the model predicts the percentage of the surgery remaining at any given time ($y_t = 1 - t/\tau$). Since the total duration ($\tau$) is automatically recorded by the simulator, these labels are generated without human intervention.
  2. Representation Analysis: By analyzing the internal activations of the model, specifically the Gated Recurrent Unit (GRU), the researchers discovered that certain components (e.g., "update gate 14") exhibited sharp spikes in activity corresponding to major surgical milestones, such as the transition from a diagnostic phase to an operative one.
  3. Unsupervised Activity Recognition: These learned "event indicators" are combined with raw sensor data (e.g., instrument kinematics, pedal presses) and fed into a Hidden Semi-Markov Model (HSMM). The HSMM treats these features as observations to infer the most likely sequence of surgical activities, such as cutting, coagulation, or tissue removal.

Dataset: VRSHM

The study utilizes the Virtual Reality Simulated Hysteroscopic Myomectomy (VRSHM) dataset. This dataset includes 38 trials performed by 10 surgeons on a high-fidelity simulator. Unlike many existing datasets that focus solely on video or motion data, VRSHM provides synchronized multi-modal data (40 fps video and motion sensors) for a complex, multi-step surgical procedure.

Key Insights

The core innovation lies in using RSP as a proxy for milestones. To accurately estimate the remaining time in a procedure, a model must implicitly learn to recognize major transitions. For instance, once a "diagnosis" phase concludes, the remaining time estimate becomes significantly more precise.

Furthermore, the discovery of the "Update Gate" suggests that neural networks naturally dedicate specific neurons to tracking semantic boundaries. By applying change-point detection to these internal activations, the researchers could semi-automatically extract features that signal activity boundaries. This multi-modal synergy allows the model to use sensor data for action detection (e.g., coagulation) while using video features for broader context (e.g., determining if the procedure has actually begun).

Results and Performance

The proposed model, UpdateGateHSMM, was compared against a standard sensor-only model (SensorHSMM). Performance was evaluated using the mean Intersection-over-Union (mIoU) metric, revealing significant improvements:

  • Diagnosis Activity: mIoU increased from 0.74 to 0.84.
  • Handle Chips (Tissue Removal): mIoU saw a dramatic rise from 0.11 to 0.73.

Qualitatively, the self-supervised video features allowed the model to correctly identify the initial diagnosis phase, which the sensor-only model often misclassified because the physical movements in that phase closely resemble later stages of the operation.

Limitations and Future Outlook

While promising, this work is a proof of concept. The dataset size (38 trials) is relatively small, and the use of simulator data avoids real-world challenges like blood, smoke, and lighting variations that could complicate the RSP task. Additionally, the process of selecting which internal gates to use as features is currently semi-automatic. Future research will focus on automating this selection and testing the framework on real-world clinical data.

Summary updated

BibTeX
@article{paysan2021self,
  author = {Daniel Paysan and Luis Haug and Michael Bajka and Markus Oelhafen and Joachim M. Buhmann},
  title = {{Self-supervised representation learning for surgical activity recognition}},
  journal = {Int. J. Comput. Assist. Radiol. Surg.},
  year = {2021},
  doi = {10.1007/s11548-021-02493-z},
}
Figure