Learning from Single Timestamps: Complexity Estimation in Laparoscopic Cholecystectomy

Dimitrios Anastasiou, Santiago Barbarisi, Lucy Culshaw, Jayna Patel, Evangelos B. Mazomenos, Imanol Luengo, Danail StoyanovarXiv 2025

TL;DR

This paper introduces STC-Net, a deep learning framework that estimates surgical complexity in full-length laparoscopic cholecystectomy videos using only a single timestamp as weak temporal supervision. By jointly localizing the relevant surgical phase and grading gallbladder inflammation via the Parkland Grading Scale, STC-Net eliminates the need for tedious manual video trimming while outperforming non-localized baselines by over 10%.

What Problem Does This Paper Address?

Laparoscopic cholecystectomy (gallbladder removal) is one of the most common surgical procedures, but its difficulty varies wildly depending on the severity of gallbladder inflammation. Severe cases are linked to longer operative times and higher complication risks. To standardize how surgeons evaluate this, the Parkland Grading Scale (PGS) provides a validated 5-point scale based on visual anatomical features like adhesions and tissue distension.

While automating PGS estimation using computer vision could greatly assist in surgical training and post-operative analysis, existing AI models typically rely on carefully curated static images or manually trimmed video clips. In a real clinical workflow, an AI must process raw, full-length videos where the exact timing of the gallbladder inspection is unknown. Manually annotating the start and end times for thousands of videos is incredibly time-consuming and subjective. This paper tackles the challenge of training a model to both localize the correct grading window and classify surgical complexity using weak temporal supervision—specifically, just a single labeled timestamp per video.

Methods

The authors propose STC-Net (Single-Timestamp-based Complexity estimation Network). Instead of looking at the whole video uniformly, it uses a three-part architecture to find and grade the most informative segments:

  1. Feature Extraction: Frame-level visual representations are extracted using a frozen CLIP encoder pre-trained on an in-house dataset of laparoscopic videos.
  2. Localization Module (LM): An ASFormer network processes the full sequence to predict frame-wise probabilities ($\hat{y}_P$) indicating how likely each frame is to be the target grading moment.
  3. Window Proposal Module (WPM): Rather than using a fixed-size window, the WPM identifies peaks in the localization probabilities and fits asymmetric Gaussian distributions on either side of each peak. This allows the model to dynamically adjust the window boundaries based on its confidence.
  4. Grading Module (GM): The video features within the proposed windows are reweighted by their localization scores (amplifying high-confidence regions) and passed to a Multi-Stage Temporal Convolutional Network (MS-TCN) to predict the final PGS grade.
Fig. 2: Overview of STC-Net: A frozen CLIP encoder extracts frame features X ∈ RT ×D. The Localization Module (LM) predicts frame-wise probabilities ˆyP , which the Window Proposal Module (WPM) converts into candidate windows W. The Grading Module (GM) integrates X, ˆyP , and W to predict the final grade ˆcpgs.

To train this system effectively, the authors introduced a dual-loss localization strategy: a custom Binary Cross-Entropy (BCE) loss that ignores frames in a "neutral zone" around the target timestamp to handle annotation ambiguity, combined with a cosine similarity loss to encourage smooth probability distributions. Furthermore, the grading loss is background-aware, explicitly penalizing the model if it tries to assign a PGS grade to uninformative background video segments.

Datasets

The framework was trained and evaluated on a large private dataset of 1,859 laparoscopic cholecystectomy videos. Each video was labeled with a single overall PGS grade (1 to 5) and a single representative timestamp marking when the grade was apparent. The dataset contains 443 videos for Grade 1, 318 for Grade 2, 444 for Grade 3, 445 for Grade 4, and 209 for Grade 5. A held-out test set of 190 videos was used for final evaluation.

Key Insights and Ideas

  • Single Timestamps are "Just Enough" Supervision: The core "aha" moment is that a single timestamp provides sufficient signal for a model to learn where to look and what to see. STC-Net performs on par with models trained on ideal, manually trimmed 20-second clips.
  • Dynamic Windows Beat Fixed Slices: Using fitted Gaussians to dynamically size temporal windows around a detected peak outperforms fixed-size window slicing. This accommodates the natural variation in how long different surgeons take to inspect anatomy.
  • The Grade 5 Paradox: While temporal localization significantly improved performance for Grades 1–4, the baseline model that looked at the entire video actually performed better on Grade 5 (severe inflammation). The authors note that Grade 5 represents widespread, severe pathology that manifests across multiple surgical phases, meaning global video context is sometimes more valuable than strict local windows.

Key Results

STC-Net achieved an accuracy of 62.11% and an F1-score of 61.42% on full-length videos. This represents a massive >10% absolute improvement over the "Full" baseline, which processes the entire video without localization. Remarkably, STC-Net matched the performance of the "Trimmed (20s)" baseline, which has the unfair advantage of using ground-truth human-trimmed windows at test time.

Fig. 3: Confusion matrices for Full, Trimmed (20s), and STC-Net (left to right) on the PGS classification task. Numbers in [.] indicate the number of videos per class.

As shown in the confusion matrices, the model rarely makes extreme mistakes (e.g., confusing Grade 1 with Grade 5). Most misclassifications occur between adjacent grades, resulting in a low Average Distance (AD) score of 0.50, which makes the tool highly reliable for clinical risk stratification.

Limitations and Future Work

  • Intermediate Grade Ambiguity: The model experiences some confusion when distinguishing between intermediate grades (Grades 2, 3, and 4). This reflects clinical reality, where overlapping visual criteria (like the density of adhesions) make boundaries fuzzy even for expert surgeons.
  • Private Dataset Constraint: Because the model was trained and validated on a private dataset, direct benchmarking against open-source surgical datasets remains an open step.
  • Future Directions: The authors plan to extend this work toward real-time intraoperative adaptation, incorporating multi-scale temporal modeling, and leveraging semantic priors (such as anatomical tool-tissue interaction labels) to further boost grading accuracy.

Summary updated

BibTeX
@misc{anastasiou2025learning,
  author = {Dimitrios Anastasiou and Santiago Barbarisi and Lucy Culshaw and Jayna Patel and Evangelos B. Mazomenos and Imanol Luengo and Danail Stoyanov},
  title = {{Learning from Single Timestamps: Complexity Estimation in Laparoscopic Cholecystectomy}},
  year = {2025},
  eprint = {2511.04525},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.04525},
}
Figure