Exploiting Segment-level Semantics for Online Phase Recognition from Surgical Videos

Xinpeng Ding, Xiaomeng LiarXiv 2021

Introduction

In the evolving field of robot-assisted surgery, real-time decision support systems are becoming increasingly vital. A core component of these systems is online phase recognition, the ability to identify the current stage of a surgical procedure from a live video feed. Accurately pinpointing the current phase—such as "Coagulation" or "Gallbladder Retraction"—is essential for providing context-aware assistance, monitoring surgical progress, and detecting potential anomalies. However, achieving high accuracy in an "online" setting (where future frames are unavailable) remains a significant challenge due to visual ambiguity.

The Challenge of Frame-Level Ambiguity

The primary obstacle in surgical phase recognition is the inherent ambiguity of individual video frames. Surgical procedures often exhibit high intra-phase variance (frames within the same phase look very different) and low inter-phase variance (frames from different phases look nearly identical). For instance, a frame showing a specific tool interaction during "Gallbladder Packaging" might be visually indistinguishable from a frame in "Gallbladder Retraction."

Figure 1: (a) Demonstrates how frame-level ambiguity leads to 'flickering' and misclassification in predictions. (b) Shows how segment-level semantics can differentiate between phases even when individual frames are similar.

When models rely solely on frame-by-frame analysis or short temporal windows, this ambiguity leads to "flickering" errors, where the predicted phase jumps erratically, or sustained misclassifications. While previous research has utilized memory banks and multi-stage refinement to capture temporal context, these methods often fail to leverage the more stable, high-level semantic information inherent in longer video segments.

The SAHC Framework

To address these limitations, this paper introduces the Segment-Attentive Hierarchical Consistency Network (SAHC). The core philosophy of SAHC is to move beyond fine-grained frame analysis by learning and exploiting "segment-level semantics." The framework consists of three innovative components:

1. Hierarchical Temporal Feature Extraction

The process begins with a ResNet-50 backbone to extract spatial features from each frame. These are then processed by Residual Causal Dilated Temporal Convolution Layers (RCDL) to capture local temporal relationships. The key innovation is the Segment-wise Feature Extractor (SFE), which downsamples these features into multiple scales. This creates a hierarchy of temporal context, representing the video at various granularities from individual frames to broader segments.

2. Segment-Frame Attention (SFA)

The SFA module is a Transformer-based mechanism designed to "rectify" frame-level representations. In this module, the feature of the current frame acts as a "query," while the hierarchical segment features serve as "keys" and "values." This allows the model to consult the broader, more stable segment-level context to refine the representation of an ambiguous frame. By attending to the segment, the model can effectively "pull" the frame's feature toward the correct phase-level semantic space.

3. Multi-scale Consistency Loss

To ensure the hierarchy is effective, the authors implement a Multi-scale Consistency Loss. This loss function regularizes the network by penalizing discrepancies between predictions made at the frame level and those made at the segment level. If a segment is clearly identified as "Coagulation," the individual frames within that segment are pressured to align with that classification. This mechanism allows high-level semantic certainty to override low-level frame uncertainty.

Experimental Evaluation

The SAHC model was rigorously tested on two benchmark datasets: M2CAI16 (41 laparoscopic videos) and Cholec80 (80 cholecystectomy videos). These datasets are known for their long durations and high variability between surgeons.

The results demonstrate that SAHC achieves state-of-the-art (SOTA) performance:

  • M2CAI16: The model reached 91.6% accuracy, a 4.4% improvement over previous leading methods like Trans-SVNet. It also showed a significant boost in the Jaccard Index (85.7%), indicating superior performance in identifying phase boundaries and maintaining stable predictions.
  • Cholec80: SAHC achieved 91.8% accuracy, outperforming the previous best by 1.5%.

Importantly, the model maintains high efficiency. The added computational overhead results in only approximately 0.04 seconds of latency per video compared to baseline models, making it highly suitable for real-time clinical applications.

Conclusion and Future Directions

The SAHC framework demonstrates that segment-level semantics are a powerful tool for overcoming frame-level ambiguity in surgical video analysis. By enforcing consistency across temporal scales and using attention to bridge the gap between frames and segments, the model provides more robust and accurate phase recognition.

Future work will focus on addressing "boundary noise"—the inherent difficulty in defining the exact frame where one phase ends and another begins—and handling more complex, non-linear surgical workflows where phases may be repeated or performed in varying sequences. Incorporating uncertainty estimation could also help the model better navigate the subjective nature of surgical phase transitions.

Summary updated

BibTeX
@misc{ding2021exploiting,
  author = {Xinpeng Ding and Xiaomeng Li},
  title = {{Exploiting Segment-level Semantics for Online Phase Recognition from Surgical Videos}},
  year = {2021},
  url = {https://openreview.net/forum?id=5RREPaIkPz},
}
Figure