Temporally-Constrained Video Reasoning Segmentation and Automated Benchmark Construction

Yiqing Shen, Chenjia Li, Chenxiao Fan, Mathias Unberath

Introduction

Traditional video segmentation models typically operate in an "always-on" mode, attempting to track and segment a target object throughout every frame of a video clip. Even modern Reasoning Segmentation (RS) models, which utilize complex natural language queries to identify objects, generally assume that the target remains relevant for the duration of the sequence. However, in dynamic and high-stakes environments like a surgical Operating Room (OR), this assumption is often invalid. A specific medical instrument or piece of equipment may only be contextually relevant during a particular procedural phase.

Comparison between standard Video Reasoning Segmentation and the proposed Temporally-Constrained approach.

To address this, we introduce temporally-constrained video reasoning segmentation. In this task, a model must not only identify "what" to segment based on a reasoning query but also infer "when" the object is relevant. As shown in Figure 1, while a standard RS model might segment a patient throughout an entire MRI procedure, a temporally-constrained model must recognize that the query specifically refers to the patient during the "MRI Machine Setup" phase, leaving other frames unmasked.

Methodology: The Digital Twin Pipeline

The primary obstacle to developing such models is the lack of annotated data. Manually labeling temporal boundaries and pixel-level masks for complex reasoning queries is prohibitively expensive. To overcome this, we propose an automated pipeline that leverages a suite of foundation models to construct a Digital Twin (DT) of the video.

The automated pipeline for Digital-Twin construction and query generation.

As illustrated in Figure 2, the pipeline consists of several key stages:

  1. Stage Labeling & Describing: Using models like TwelveLabs Pegasus to identify surgical phases and time boundaries.
  2. Visual Understanding: Employing SAM2 for instance tracking, DepthAnything2 for spatial measurement, and LLaVA/Qwen2.5-VL for semantic and action descriptions.
  3. Representation-to-Text Distillation: Aggregating these multi-modal outputs into a structured textual representation (the Digital Twin).
  4. Query Generation: An ensemble of Large Language Models (LLMs) "interrogates" the Digital Twin to identify interesting objects and phases, synthesizing natural language queries with implicit temporal constraints.

The TCVideoRSBenchmark

Using this automated pipeline, we developed TCVideoRSBenchmark, the first dataset specifically designed for time-sensitive surgical video reasoning. The benchmark is derived from the MVOR dataset, featuring authentic multi-view operating room footage.

It contains 52 high-quality samples across four representative surgical videos, covering diverse scenarios such as medical instrument carts during setup, personnel during draping, and monitors during post-processing. Each sample includes a reasoning query, the video sequence, and ground-truth masks that are only active during the specific, contextually relevant time windows. This forces models to understand the underlying workflow of the surgery to succeed.

Key Insights and Future Work

This research highlights that time is a semantic attribute. A model's failure to respect temporal boundaries in a reasoning task is a failure of understanding, not just tracking. By converting raw video into a structured Digital Twin, we can use LLMs as "data factories" to generate complex training and evaluation sets automatically.

While the current benchmark is a significant step forward, it is relatively small for training large-scale models from scratch and currently serves best as a specialized evaluation tool. Future work will focus on scaling the dataset and testing the performance of state-of-the-art video reasoning models—such as LISA or Video-LLaVA—to determine their current capabilities in handling implicit temporal constraints.

Summary updated

BibTeX
@inproceedings{shen2025temporally,
  author = {Yiqing Shen and Chenjia Li and Chenxiao Fan and Mathias Unberath},
  title = {{Temporally-Constrained Video Reasoning Segmentation and Automated Benchmark Construction}},
  booktitle = {MedAGI},
  year = {2025},
  doi = {10.1007/978-3-032-07845-2\_15},
}
Figure