arXiv:2608.20154cs.CVAug 2026

Manuscript Offprint

arXiv:2608.20154

Artificial Intelligence for Workflow Analysis in Colorectal Surgery: A Multicentric, Cross-Procedural Development and Generalization Study

Pietro Mascagni, Julia Alekseenko, Pooja P Jain, Marta Goglia, Andrea Balla, Ludovica Baldari, Gianfranco Silecchia, Claudio Fiorillo, Vincenzo Tondolo, Salvador Morales-Conde, Luigi Boni, Sergio Alfieri, Nicolas Padoy

Abstract

Background: Minimally invasive colorectal surgeries (MIS-CRS) are characterised by significant variability and inconsistent outcomes. ColoWorkflow, a tool for the video-based assessment (VBA) of MIS-CRS workflow, was recently validated. However, manual VBA is time-consuming, limiting implementation. This study presents AI-ColoWorkflow, a deep learning model for automated surgical workflow analysis across MIS-CRS.

Method: Operative videos of MIS-CRS were collected from 4 centres and a publicly available dataset. Phases and steps were manually annotated according to ColoWorkflow. A deep learning model combining a fine-tuned DINOv3 vision transformer for per-frame visual feature extraction with a hierarchical multi-stage temporal convolutional network was jointly optimized for phase and step recognition. The model trained on pooled multicentric data, namely AI-ColoWorkflow was compared against centre-specific and procedure-specific models on a held-out test set. The following metrics were used for evaluation: macro F1 score, balanced accuracy, precision, and recall.

Results: AI-ColoWorkflow achieved a macro F1 of 73.01% ±\pm 10.27 (balanced accuracy 73.43%) for phase recognition and 39.82% ±\pm 7.06 (balanced accuracy 38.65%) for step recognition. The global model outperformed centre- and procedure-specific models in most experiments except procedure-specific step recognition. In the generalization analysis, mean F1 was 48.42% for phase recognition.

Conclusion: AI-ColoWorkflow can reliably recognize MIS-CRS phases. A single model trained on pooled, multicentric, multi-procedural data generalises at least as well as and often better than centre- or procedure-specific models for phase recognition in MIS-CRS, while procedure-specific step models retain advantages for certain procedure types, motivating hybrid training strategies for future surgical AI development.

1 Introduction

Minimally invasive colorectal surgery (MIS-CRS) is the gold standard approach for several diseases of the colon and rectum. However, MIS-CRS requires advanced technical skills and is characterised by significant variability in surgical workflows, the sequence of phases and steps composing a procedure, across centres and surgeons [9]. This variability is associated with inconsistent outcomes, underscoring the need for tools to objectively study and standardise surgical practice [6, 5].

Video-based assessment (VBA) has emerged as a promising approach to analyse and improve surgical procedures by extracting data-driven insights from operative videos [8]. Recently, ColoWorkflow, a generalizable framework for workflow analysis across minimally invasive colorectal procedures, was developed through a modified Delphi process involving over 40 international experts in colorectal surgery and VBA [10]. ColoWorkflow defines 9 procedure-agnostic phases and 34 procedure-specific steps and was validated on a multicentre dataset of laparoscopic and robotic colorectal procedures, demonstrating broad applicability and moderate inter-rater agreement [10]. However, manual annotation of colorectal surgical workflows remains time-consuming, requiring approximately 60% of the video duration, which limits scalability and practical implementation.

Artificial intelligence (AI) and computer vision (CV) have been trained to recognise surgical workflows in relatively standardised procedures such as laparoscopic cholecystectomy and gastric bypass [22, 25]. More recently, AI models have also been applied to well-defined procedures within colorectal surgery, including sigmoid resection and rectal surgery [11, 19]. Yet, no AI model has been developed to perform workflow analysis across different colorectal procedures using a unified, consensus-based ontology.

It was hypothesised that an AI model could learn to apply the ColoWorkflow, recognising phases and steps across minimally invasive colorectal procedures, from right hemicolectomies to rectal resections. This study aimed to develop AI-ColoWorkflow, a deep learning model for automated workflow analysis in MIS-CRS, and to evaluate its ability to generalise across procedures and centres.