Unsupervised temporal context learning using convolutional neural networks for laparoscopic workflow analysis

Sebastian Bodenstedt, Martin Wagner, Darko Katic, Patrick Mietkowski, Benjamin F. B. Mayer, Hannes Kenngott, Beat P. Müller-Stich, Rüdiger Dillmann, Stefanie SpeidelarXiv 2017

Abstract

Automated surgical workflow analysis is a critical component of computer-assisted surgery, yet it typically relies on large-scale manually labeled datasets. This paper introduces an unsupervised pretraining strategy that leverages the inherent temporal structure of surgical videos. By training a Siamese Convolutional Neural Network (CNN) to predict the temporal order of two random video frames, the model learns to extract meaningful surgical features from 2.2 million unlabeled images. The resulting features are then utilized in a Laparoscopic WorkFlow Network (LWFNet), which combines the CNN with a Gated Recurrent Unit (GRU) to capture temporal dependencies. Evaluation on gallbladder and colorectal surgery datasets demonstrates that this unsupervised approach significantly enhances phase recognition accuracy, particularly when labeled data is scarce.

Introduction

Computer-assisted surgery (CAS) aims to enhance surgical safety and efficiency by providing real-time intraoperative support. A fundamental requirement for such systems is the ability to recognize the current surgical phase—a task known as surgical workflow analysis. While supervised deep learning has shown promise, the requirement for expert-labeled video data presents a significant barrier to scaling these technologies across diverse surgical procedures.

This research addresses this bottleneck by proposing an unsupervised learning method. The core hypothesis is that the temporal progression of a surgery contains sufficient information to learn relevant visual features without explicit human annotation. By learning to distinguish "before" from "after," a model can develop an implicit understanding of surgical logic and procedural changes.

Methods

Unsupervised Pretraining: The Temporal Ordering Task

The authors propose a pretraining phase where a Siamese CNN is tasked with determining the relative temporal order of two frames sampled from the same surgical video. To succeed, the network must identify semantic changes in the surgical field, such as the introduction of a tool, the application of a clip, or the removal of tissue.

The temporal ordering task: the model must predict which frame occurred first in the surgical sequence.

LWFNet Architecture

The architecture, based on AlexNet, uses two identical CNN branches with shared weights. Features from both frames are concatenated and passed through fully connected layers to produce a binary classification (Frame 1 before Frame 2, or vice versa).

The Siamese CNN architecture used for unsupervised temporal context learning.

Following pretraining, the CNN is integrated into the Laparoscopic WorkFlow Network (LWFNet). To address the limitations of frame-by-frame analysis, LWFNet incorporates a Gated Recurrent Unit (GRU). The GRU provides a temporal "memory," allowing the system to maintain context over long sequences and resolve visual ambiguities between different surgical phases.

Datasets

The study utilized three primary datasets:

  • Pretraining Dataset: 324 unlabeled laparoscopic videos from the University Hospital of Heidelberg, comprising approximately 2.2 million images.
  • EndoVis15Workflow: A benchmark dataset of 7 laparoscopic cholecystectomies (gallbladder removals) with 7 annotated phases.
  • Colorectal Dataset: A new, more complex dataset of 9 colorectal interventions with 8 phases, characterized by high anatomical variability and non-linear workflows.

Results

The experimental results highlight the efficacy of unsupervised pretraining and temporal modeling:

  • Impact of Pretraining: On the EndoVis dataset, LWFNet initialized with unsupervised weights achieved 74.5% accuracy, compared to 66.0% for a randomly initialized model. This confirms that the temporal ordering task successfully extracts useful surgical features.
  • Importance of Temporal Memory: The GRU-based LWFNet (74.5% accuracy) vastly outperformed a "naive" CNN-only version (56.3% accuracy). This underscores that surgical phases are defined by their position in a sequence, not just their visual appearance.
  • Performance on Complex Procedures: In the challenging colorectal dataset, the model achieved 67.2% accuracy. While lower than the gallbladder results, this demonstrates the method's robustness in less standardized, more complex surgical environments.

Discussion and Conclusion

This work demonstrates that unsupervised temporal context learning is a powerful tool for surgical AI. By leveraging the "free" labels provided by the chronological order of video frames, models can be pretrained on massive unlabeled datasets to improve performance on downstream tasks.

However, challenges remain in highly variable procedures like colorectal surgery, where phases may overlap or occur in different orders. Future research will focus on incorporating larger, more diverse datasets and exploring post-processing techniques, such as Hidden Markov Models (HMMs), to further refine phase transitions and improve the temporal consistency of predictions.

Summary updated

BibTeX
@misc{bodenstedt2017unsupervised,
  author = {Sebastian Bodenstedt and Martin Wagner and Darko Katic and Patrick Mietkowski and Benjamin F. B. Mayer and Hannes Kenngott and Beat P. Müller-Stich and Rüdiger Dillmann and Stefanie Speidel},
  title = {{Unsupervised temporal context learning using convolutional neural networks for laparoscopic workflow analysis}},
  year = {2017},
  eprint = {1702.03684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.03684},
}
Figure