Shifted Window Temporal Transformer for YOLO-Guided Phase Recognition in Laparoscopic Cholecystectomy Surgery
Organizations: Department of Computer Science and Engineering, IUBAT—International University of Business Agriculture and Technology, 4 Embankment Drive Road, Sector-10, Uttara Model Town, Dhaka, 1230, Bangladesh. · Boston Children’s Hospital, Harvard Medical School, 401 Park Dr, Boston, USA.
Abstract
Intelligent operating rooms require accurate awareness of surgical workflow for better intra-operative decisions, teamwork, and surgical documentation. Therefore, accurately recognizing surgical phase during surgery is crucial. However, previous artificial intelligence-based methods provide fluctuating predictions for the transitions, restricting their clinical use. To address this challenge, we propose a clinically meaningful framework that integrates a Swin Transformer and Temporal Transformer Encoder (TTE) for effective surgical phase recognition and a parallel YOLOv11s network for real-time surgical instrument localization. To avoid phase flickering and to produce stable workflow predictions, a causal temporal smoothing is applied. The proposed framework is tested on the Cholec80 dataset for the simultaneous recognition of the surgical phases and instruments. The overall phase recognition accuracy of this model was 92%, and the macro average F1-score was 0.86. This performance surpasses CNN based methods such as EndoNet (81.7%) and SV-RCNet (85.3%), as well as temporal convolutional and transformer-based approaches including TeCNO (88.6%), Trans-SVNet (90.9%), and LoViT (91.5%). Besides, the module of instrument detection achieved [email protected] = 0.863. The reliability of the results is confirmed, obtaining a high recognition rate of the workflows, and a high accuracy of the localization of the instruments. The proposed framework can serve as a foundation for intelligent surgical assistance, enriching situation awareness, and potential robotic surgery applications. Code will be made publicly available at: https://github.com/ac005sheekar/LapChol-Surgery-Swin-Cholec80
Figures & tables
| Phases | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| Preparation | 0.94 | 0.79 | 0.86 | 2162 |
| CalotTriangleDissection | 0.93 | 0.97 | 0.95 | 17456 |
| ClippingCutting | 0.84 | 0.93 | 0.88 | 2951 |
| GallbladderDissection | 0.98 | 0.90 | 0.94 | 19144 |
| GallbladderPackaging | 0.82 | 0.94 | 0.88 | 2089 |
| CleaningCoagulation | 0.65 | 0.83 | 0.73 | 2293 |
| Metric | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| Accuracy | – | – | 0.92 | 47625 |
| Macro Average | 0.86 | 0.87 | 0.86 | 47625 |
| Weighted Average | 0.92 | 0.92 | 0.92 | 47625 |
| Method | Year | Acc. | Prec. | Rec. | F1 | Jacc. | Architecture |
|---|---|---|---|---|---|---|---|
| EndoNet [ 1 ] | 2017 | 81.7% | – | – | – | – | CNN + LSTM |
| SV-RCNet [ 46 ] | 2018 | 85.3% | – | – | – | – | CNN + LSTM |
| TeCNO [ 3 ] | 2020 | 88.6% | – | – | – | 75.1% | Multi-stage TCN |
| Trans-SVNet [ 4 ] | 2021 | 90.9% | – | – | – | 79.7% | Hybrid Transformer |
| LoViT [ 6 ] | 2023 | 91.5% | – | – | – | – | Long Video Transformer |
| Ours | 2026 | 92.0% | 0.92 | 0.92 | 0.86 | 76.2% | Swin + TTE + YOLOv11s |
Surgical Video Understanding
Surgical video understanding uses computer vision and multimodal AI to interpret procedures, instruments, actions, and events over time.
See all 118 papers