Computer Vision-Based Retrieval of Steps and Errors in Laparoscopic Cholecystectomy

Elaine Sui, Charlotte Egeland, Xiaohan Wang, Alfred Song, Rui Li, Joshua Villarreal, Anita Rau, Josiah Aklilu, Alan Brown, Shelly Goel, Brian Sutjiadi, Roger E. Bohn, Eric C. Sorenson, Vanessa N. Palter, Teodor Grantcharov, Jeffrey K. Jopling, Serena Yeung-LevymedRxiv 2026

Abstract

Traditional surgical training relies heavily on hands-on experiences gained through relatively infrequent procedures during apprenticeships. Recently, postoperative review has become a valuable supplement to this model, offering learning opportunities outside the operating room. However, its adoption remains limited due to its inefficiencies. In this study, we developed a Computer Vision-based system designed to efficiently navigate and retrieve critical segments from laparoscopic cholecystectomy videos. Trained on a manually annotated dataset of 683 videos from six different sources, our model is taught to identify five distinct surgical steps and three common intraoperative errors: bleeding, bile spillage, and thermal injury. The resulting models demonstrated strong generalizability in identifying steps to unseen data from new hospitals. Large-scale analysis further revealed correlations between model-predicted error events and surgical step, disease severity, and surgical skill that align with established clinical knowledge. By facilitating the rapid retrieval of clinically relevant events, this tool enhances postoperative review practical, ultimately expediting surgical training.

Introduction

Surgical training is shifting from a purely apprenticeship-based model to one that includes data-driven, competency-based approaches like postoperative video review. Reviewing surgical videos helps trainees acquire skills faster and improves patient outcomes. However, watching full-length procedure videos is incredibly time-consuming. Surgeons and trainees often lack the time to manually sift through hours of footage to find the specific moments that matter—like critical dissection steps or intraoperative errors.

This research introduces a computer vision (CV) system designed to act as a smart search engine for surgical videos. Instead of scrubbing through a two-hour video, a trainee can use this system to instantly jump to the exact moments where bleeding occurred or where a specific anatomical structure was dissected.

Methods

The authors developed a temporal CV model tailored to two distinct temporal scales: coarse-grained surgical steps and fine-grained surgical errors.

System architecture for step and error identification.

Both models use a base architecture consisting of a per-frame image feature extractor followed by a temporal modeling layer to capture the context between video frames.

  • Step Recognition (Coarse): This model processes the video at 1 frame per second (fps) to output a step label for every frame of the full procedure across five defined surgical steps (e.g., Exposure, Dissection).
  • Error Detection (Fine): Because errors like bleeding or thermal injury are brief, this model operates at a higher temporal resolution of 10 fps. It analyzes short 16-frame clips using a sliding-window approach to output a binary label indicating if an injury occurred within that specific window.

Dataset

The researchers assembled and manually annotated a massive dataset of 683 full-length videos (over 650 hours of footage). Data was pulled from six different sources, including three medical institutions, one private company (Surgical Safety Technologies), and two public datasets (Cholec80 and Hei-Chole). This dataset is over 8 times larger than the current largest annotated dataset for surgical steps, and over 5 times larger than the equivalent for surgical errors. Videos were labeled at 10 fps for steps and errors, alongside metadata for disease severity and surgeon experience level.

Results and Discussion

The model demonstrated high performance and remarkable robustness. For step recognition, it achieved an average framewise accuracy of 88.3%, precision of 83.1%, and recall of 86.6%. Crucially, the model showed strong generalizability; when tested on completely unseen hospitals or public datasets, the performance drop was minimal (between 0.7% and 3.1%), proving its viability for real-world deployment.

Model performance and generalizability across diverse datasets.

Beyond raw metrics, the model's automated error predictions mirrored known clinical realities:

  • Clinical Alignment: The model found the highest rate of bleeding during the "Dissection of the Hepatocystic Triangle" step—clinically known as the riskiest part of the procedure.
  • Automated Skill Assessment: Even without being told who was operating, the model's error detection rates clearly differentiated between residents and attending surgeons. Residents triggered more error instances, highlighting the model's potential for objective, automated skill assessment.
  • Disease Severity: The model revealed that severe gallbladder disease correlates with more bleeding and bile spillage, but fewer thermal injuries, suggesting surgeons naturally adopt a more careful, slower dissection strategy in complex cases.

Conclusion

While the current model is restricted to intracorporeal views and binary error detection, it represents a significant step toward making postoperative review a practical reality. Future work will focus on expanding the system to other laparoscopic procedures, incorporating injury severity levels, and exploring real-time intraoperative warnings to prevent complications before they escalate. By automating the retrieval of clinically significant events, this technology paves the way for more efficient and effective surgical education.

Summary updated

BibTeX
@misc{sui2026computer,
  author = {Elaine Sui and Charlotte Egeland and Xiaohan Wang and Alfred Song and Rui Li and Joshua Villarreal and Anita Rau and Josiah Aklilu and Alan Brown and Shelly Goel and Brian Sutjiadi and Roger E. Bohn and Eric C. Sorenson and Vanessa N. Palter and Teodor Grantcharov and Jeffrey K. Jopling and Serena Yeung-Levy},
  title = {{Computer Vision-Based Retrieval of Steps and Errors in Laparoscopic Cholecystectomy}},
  year = {2026},
  doi = {10.64898/2026.01.15.25343153},
  howpublished = {medRxiv},
}
Figure