Think Step by Step: Chain-of-Gesture Prompting for Error Detection in Robotic Surgical Videos

Zhimin Shao, Jialang Xu, Danail Stoyanov, Evangelos B. Mazomenos, Yueming Jin

Abstract

In Robot-Assisted Minimally Invasive Surgery (RMIS), the real-time detection of technical errors is paramount for patient safety and surgical training. Traditional error detection methods often rely on a rigid two-step pipeline: first identifying a surgical gesture and then evaluating it for errors. However, this dependency often leads to error propagation and ignores the rich temporal and semantic context of the surgical field. This paper presents Chain-of-Gesture (COG), a novel end-to-end framework that integrates vision-language models with multi-scale temporal analysis. By mimicking the reasoning process of expert surgeons, COG achieves state-of-the-art performance, outperforming existing methods by over 4% in accuracy while maintaining real-time processing speeds.

Introduction

Detecting technical errors—such as unintended instrument movements, procedural slips, or tissue trauma—is a critical component of automated surgical assessment. Historically, the field has approached this problem through a fragmented lens. Most models first attempt to classify a "gesture" (e.g., "pulling a suture") and subsequently check for errors within that specific segment. This approach suffers from three primary limitations:

  1. Error Propagation: If the initial gesture recognition is incorrect, the error detection module is fundamentally compromised.
  2. Kinematic Dependency: Many models rely heavily on robot kinematic data (joint angles and velocities), which lacks the visual context of tool-tissue interactions.
  3. Temporal Variability: Surgical errors occur across different time scales; some are instantaneous (e.g., a tool slipping out of view), while others are procedural and span several seconds.

To address these challenges, the Chain-of-Gesture (COG) framework introduces a reasoning-based approach that analyzes surgical video through a semantic and multi-scale temporal lens.

Methodology

The COG framework moves away from rigid labels in favor of a "reasoning" architecture composed of two primary modules: Gestural-Visual Reasoning (GVR) and Multi-Scale Temporal Reasoning (MSTR).

Gestural-Visual Reasoning (GVR)

Instead of treating gestures as discrete, hard-coded labels, GVR utilizes a vision-language approach. Leveraging a CLIP-based text encoder, the model generates "gesture prompts" from natural language descriptions (e.g., "A surgeon is pushing a needle"). A Transformer-based attention mechanism then queries the video frames to identify visual features that align with these gestural descriptions. This allows the model to understand the semantic context of the surgery without requiring manual frame-by-frame gesture annotations during the inference phase.

Multi-Scale Temporal Reasoning (MSTR)

Inspired by the "SlowFast" architecture used in general video recognition, the MSTR module processes video through two distinct paths:

  • The Slow Path: Analyzes fine-grained, frame-by-frame details to capture rapid, execution-based errors.
  • The Fast Path: Down-samples the video to observe broader segments, enabling the detection of procedural errors that manifest over longer durations.

By training the system end-to-end, COG learns to recognize the surgical context and potential errors simultaneously, creating a "chain" of logic that mirrors how a human supervisor might evaluate a trainee.

Experimental Setup

The framework was evaluated using the JIGSAWS (JHU-ISI Gesture and Skill Assessment Working Set) dataset, a gold-standard benchmark in robotic surgery research. The study focused on three fundamental tasks: suturing, knot tying, and needle passing. The authors utilized frame-level error annotations (encompassing both executional and procedural errors) provided by previous extensions of the dataset. Performance was measured against both kinematic-based and vision-based state-of-the-art (SOTA) models.

Key Insights and Results

Superior Performance and Speed

COG achieved a 72.3% F1 score and 68.3% Accuracy at the frame level, representing a 4.6% improvement over previous SOTA methods. Crucially, the model is highly efficient, processing each frame in just 6.69 milliseconds. Given that standard surgical video is captured at 30 frames per second (33.3 ms per frame), COG is more than capable of providing real-time feedback in a clinical setting.

The Power of Visual Context

The research highlights that video data consistently outperforms kinematic data for error detection. Visual features capture the nuances of tool-tissue interaction—such as the tension on a suture or the deformation of tissue—that robot sensors cannot detect. The GVR module's ability to "think" about the gesture context was proven essential; ablation studies showed a significant performance drop when the gesture-prompting mechanism was removed.

Conclusion and Future Work

The Chain-of-Gesture framework demonstrates that semantic reasoning and multi-scale temporal analysis are vital for robust surgical error detection. By bridging the gap between computer vision and natural language, COG provides a more human-like understanding of surgical tasks.

Future research will focus on expanding the model's vocabulary beyond the 15 gestures found in the JIGSAWS dataset to accommodate more complex, "in-the-wild" surgical procedures. Additionally, the authors aim to move beyond binary error detection (error vs. no error) toward semantic error categorization, providing specific feedback such as "excessive force applied" or "incorrect needle angle" to further enhance surgeon training and patient safety.

Summary updated

BibTeX
@article{shao2024think,
  author = {Zhimin Shao and Jialang Xu and Danail Stoyanov and Evangelos B. Mazomenos and Yueming Jin},
  title = {{Think Step by Step: Chain-of-Gesture Prompting for Error Detection in Robotic Surgical Videos}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2024},
  doi = {10.1109/lra.2024.3495452},
}
Figure