Enhancing Surgical Documentation through Multimodal Visual-Temporal Transformers and Generative AI

Hugo Georgenthum, Cristian Cosentino, Fabrizio Marozzo, Pietro LiòarXiv 2025 · DOI

Abstract

This paper introduces a hierarchical multi-modal pipeline that transforms raw surgical video into structured, human-readable medical reports. By stacking Vision Transformers (ViT/ViViT) for spatial-temporal feature extraction and Large Language Models (T5/GPT-4) for narrative synthesis, the system achieves 96% precision in tool detection and generates contextually accurate summaries of complex laparoscopic procedures.

Introduction

Surgical documentation is a cornerstone of modern medicine, yet it remains a manual, time-consuming process prone to human error and variability. While AI has made strides in "surgical data science," most existing models are siloed—they either detect tools, recognize phases, or generate short captions, but rarely do they synthesize a cohesive clinical narrative.

The authors identify a major gap: the lack of temporal awareness and clinical utility in automated systems. A single frame might show a "grasper," but it takes a sequence of frames to understand the "dissection of the Calot triangle." This paper tackles the challenge of bridging low-level computer vision (pixels and labels) with high-level clinical reasoning (structured reports).

Overview of the surgical documentation methodology and its clinical applications.

Methodology

The authors propose a three-stage "bottom-up" framework designed to mimic how a human might describe a scene, moving from specific details to a broad narrative.

The hierarchical pipeline for surgical video summarization, moving from frame-level to clip-level analysis.

1. Frame-Level Analysis

  • Object Detection: A Vision Transformer (ViT) identifies instruments, organs, and tissues within individual frames.
  • Frame Captioning: The system fuses visual features (from ViT) with textual labels (processed via DistilBERT) using a cross-attention module. A T5-Small head then generates a caption for that specific moment (e.g., "The grasper is holding the gallbladder").

2. Clip-Level Analysis

To capture motion and intent, the model groups 32 consecutive frames. It employs a ViViT (Video Vision Transformer) to extract spatiotemporal features. These features are combined with the previously generated frame captions to produce a "clip summary" using a FLAN-T5-Base model.

3. Report Synthesis

The individual clip summaries are aggregated and fed into GPT-4. Using a specialized prompt, the LLM acts as a clinical narrator, resolving redundancies and ensuring the final report follows standard medical conventions and temporal flow.

A key technical contribution is their "Robust" training strategy. Instead of training the captioning models on perfect "ground-truth" data, they train them on the noisy outputs of the previous stages. This teaches the model to handle and correct errors propagating through the pipeline.

Datasets and Results

The study utilizes the CholecT50 dataset, a benchmark in laparoscopic surgery consisting of 50 videos of laparoscopic cholecystectomies. The dataset includes over 151,000 annotated triplet instances (Instrument, Verb, Target) across nearly 90,000 frames.

Key Results

  • Precision: Achieved 96% precision in tool detection.
  • Captioning Quality: The "Robust" training method improved the frame-level BLEU score from 0.64 to 0.73.
  • Semantic Accuracy: The clip-level summarization achieved a BERTScore of 0.74, indicating high semantic alignment with human-annotated summaries.
  • Qualitative Success: The final reports successfully captured the duration of phases and the specific sequence of instrument usage, such as the transition from the "Preparation" phase to the "Calot triangle dissection."

Discussion and Future Work

The transition from static ViT to spatiotemporal ViViT allows the model to distinguish between similar-looking actions that differ only in their movement patterns (e.g., "retracting" vs. "dissecting"). Furthermore, the authors found that while intermediate captions often had lexical or syntactic imperfections, the final GPT-4 stage was able to use contextual reasoning to "clean" the text and produce a professional report.

Limitations

  • Procedural Narrowness: The model was only evaluated on cholecystectomies; its ability to generalize to other types of surgery remains to be seen.
  • Temporal Window: The vision module currently analyzes relatively short clips (32 seconds). Extending this to capture longer-range dependencies across an entire surgery could improve narrative flow.
  • Human-in-the-loop: The authors emphasize the need for a paradigm where surgeons can review and edit the AI-generated drafts before they become part of the official record.

Summary updated

BibTeX
@misc{georgenthum2025enhancing,
  author = {Hugo Georgenthum and Cristian Cosentino and Fabrizio Marozzo and Pietro Liò},
  title = {{Enhancing Surgical Documentation through Multimodal Visual-Temporal Transformers and Generative AI}},
  year = {2025},
  eprint = {2504.19918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.19918},
}
Figure