TL;DR
Instead of classifying surgical videos frame-by-frame—which often leads to noisy, fragmented predictions—this paper introduces the Transition Retrieval Network (TRN). By using multi-agent reinforcement learning to directly locate the timestamps of phase transitions, TRN guarantees contiguous, noise-free surgical phases while significantly reducing the number of video frames that need to be processed.
What Problem Does This Paper Address?
Automating surgical workflow analysis from laparoscopic videos is crucial for auditing, training, and providing real-time surgeon assistance. Traditionally, this is treated as a frame-by-frame multi-class classification problem using deep learning architectures like CNNs combined with LSTMs, Temporal Convolutional Networks (TCNs), or Transformers.
However, these conventional frame-based models suffer from a persistent flaw: they produce small, frequent classification errors throughout a video. This results in "spurious transitions"—momentary, incorrect flips between surgical phases—making it incredibly difficult to pinpoint exactly when a specific surgical phase begins and ends.
Methods
The authors flip the paradigm by treating workflow segmentation as an offline phase transition retrieval task. Instead of asking "What phase is this frame?", the model asks "Where does this phase start and end?".
The proposed Transition Retrieval Network (TRN) consists of three main components:
- Feature Extractor: A standard ResNet50 encoder extracts spatial features, which are then averaged over 16-frame clips to temporally down-sample the video.
- DQN Transition Retrieval: For each surgical phase, the task is modeled as a reinforcement learning problem with two discrete Deep Q-Learning Network (DQN) agents ($W_b$ and $W_e$). These agents control a pair of search windows centered on the estimated start and end frames of a phase. The agents iteratively choose to move their search windows left or right. They receive a $+1$ reward if they move closer to the ground-truth transition boundary and a $-1$ reward otherwise.
- Gaussian Composition Operator: Because independent agents might predict overlapping phases or leave gaps, TRN applies a Gaussian distribution centered at the midpoint of each predicted phase. The final multi-class prediction for any given clip is simply the phase with the maximum distribution value at that time index.
The authors propose two agent initialization strategies:
- Fixed Initialization (FI): Windows are initialized based on the average statistical location of phases in the training data. This allows the model to find boundaries by looking at only a fraction of the video.
- ResNet Modified Initialization (RMI): Windows are initialized based on a preliminary pass from the base ResNet50 predictions, offering higher accuracy at the cost of processing the full video.
Datasets
The model was validated on two distinct datasets:
- Cholec80: A widely used public benchmark containing 80 videos of cholecystectomy (gallbladder removal) surgeries, divided into 7 sequential phases.
- Laparoscopic Sacrocolpopexy: An in-house dataset containing 38 videos of a complex pelvic floor reconstruction procedure. The authors focused on a simplified binary segmentation task: identifying the critical "suturing" phase versus "non-suturing" phases.
Key Insights and Ideas
- Contiguity by Design: By predicting boundaries ($f_{start}, f_{end}$) rather than individual frame labels, the model inherently eliminates frame-level noise. Phases are forced to be continuous blocks.
- The Power of Partial Coverage: With Fixed Initialization (FI), the RL agents can successfully navigate to phase boundaries without ever "seeing" the entire video. This creates a highly efficient trade-off where the model can ignore large portions of the video data while maintaining competitive accuracy.
Key Results
The authors compared TRN against state-of-the-art frame-based models, TeCNO and Trans-SVNet.
- Cholec80 (Full Coverage): The
TRN41 RMIconfiguration achieved a micro-accuracy of 90.1% and an F1-score of 0.846, outperforming Trans-SVNet (89.1% accuracy, 0.800 F1). - Event-Based Metrics: TRN achieved a perfect Event Ratio of 1.0 across configurations, proving it completely eliminated the noisy, fragmented phase-switching behavior seen in baseline models (Trans-SVNet scored a fragmented 0.316).
- Efficiency Gains (Partial Coverage): On the Sacrocolpopexy dataset, the
TRN21 FImodel achieved an accuracy of 89.8% while processing only 14.6% of the video frames, drastically reducing the computational cost compared to full-coverage baselines.
Limitations and Future Work
While promising, TRN has a few notable limitations:
- No Repeating Phases: The current formulation assumes that surgical phases occur in a predictable sequence and do not repeat. If a surgeon jumps back and forth between phases, this retrieval formulation fails.
- Offline Only: Because the RL agents must be free to navigate backward and forward through the video timeline to find boundaries, the system cannot be used for real-time, online intraoperative assistance.
- Scalability: The architecture requires training a separate pair of DQN agents for every single phase, which could become computationally cumbersome for workflows with dozens of fine-grained steps. Future work aims to expand the framework to handle multiple phase transitions simultaneously.
Summary updated