Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hierarchical VQA for Surgical Triplet Segmentation

Updated 25 May 2026
  • The paper introduces triplet segmentation for surgical videos that jointly classifies, detects, and localizes instrument-verb-target pairs with pixel-level precision.
  • It leverages a transformer-based TargetFusionNet and gated cross-attention to infuse weak anatomical priors, enhancing segmentation and target accuracy.
  • Quantitative and qualitative evaluations demonstrate significant mAP improvements in recognition, detection, and spatial grounding over conventional CAM and frame-level methods.

Hierarchical Visual Question Answering (VQA) in the surgical domain, exemplified by the DermaBench setting, centers on the spatially grounded recognition of <instrument, verb, target> triplets at the instance level in minimally invasive surgery videos. The task, termed "triplet segmentation," aims not only to classify and detect individual surgical actions but also to localize each action spatially—down to the pixel-precise mask of each instrument as it interacts with anatomical structures. This multifaceted formulation establishes a unified benchmark uniting recognition, detection, and fine-grained segmentation, advancing interpretability and robustness in surgical scene understanding (Alabi et al., 1 Nov 2025).

1. Formulation of Triplet Segmentation

Triplet segmentation is operationalized as follows: for every annotated frame, the system outputs, for each instrument instance, (1) a mask M^k\hat{M}_k identifying its spatial extent, (2) the action verb vkv_k being performed, and (3) the anatomical target tkt_k. Critically, each predicted triplet (Ik,vk,tk)(I_k, v_k, t_k) is spatially grounded by a binary (or probabilistic) mask. In supervised settings such as CholecTriplet-Seg, annotations provide dense linkage between instance masks, action labels, and anatomical targets, enabling strong supervision at both the semantic and pixel levels. This contrasts sharply with prior frame-level or class activation map (CAM) methods, which lack the granularity to link specific instruments to their actions and targets robustly.

2. Architecture: TargetFusionNet and Target-Aware Fusion

TargetFusionNet, a transformer-based architectural extension of Mask2Former, is developed to address the triplet segmentation task. Its key innovation is the introduction of anatomical priors via a gated cross-attention mechanism—referred to as target-aware fusion—within each transformer decoder layer. The primary inputs and internal representations comprise:

  • An RGB input image x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}.
  • Weak anatomical logits L∈RH×W×CaL \in \mathbb{R}^{H \times W \times C_a} from a pretrained EndoViT tissue-segmentation model (Ca=6C_a = 6 coarse tissue classes).
  • Pixel-level feature maps Fℓ∈R(H/2â„“)×(W/2â„“)×dF_\ell \in \mathbb{R}^{(H/2^\ell)\times(W/2^\ell)\times d}, extracted by a ResNet-50 backbone plus pixel decoder.
  • Anatomy feature maps Aℓ∈R(H/2â„“)×(W/2â„“)×dA_\ell \in \mathbb{R}^{(H/2^\ell)\times(W/2^\ell)\times d}, derived from LL via a small convolutional encoder.
  • A fixed set of vkv_k0 learnable query embeddings vkv_k1.

In each decoder layer, queries vkv_k2 (from the previous layer) first perform standard Mask2Former cross-attention over vkv_k3. The target fusion module then computes cross-attention over vkv_k4, yielding aggregated anatomical context vkv_k5 for each query. This is followed by a gating operation: a sigmoid-activated scalar vkv_k6 is applied channelwise to vkv_k7, and the resulting gated anatomy feature vkv_k8 (elementwise multiplication) is added to the query, producing the updated vkv_k9. This fusion is mathematically formalized as:

  • tkt_k0, where tkt_k1, tkt_k2, tkt_k3 (standard transformer projections).
  • tkt_k4, with a learnable tkt_k5 and sigmoid tkt_k6.
  • tkt_k7.

This repeated, gated anatomical conditioning is essential for accurate anatomical target prediction and refining query representations with contextually relevant information.

3. Prediction Heads, Loss Functions, and Optimization

At the output of the decoder, each query yields two heads:

  • Mask head: Computes mask coefficients which, via dot product with pixel features, yield the instance mask tkt_k8.
  • Classification head: Applies a softmax over tkt_k9 triplet classes, each encoding a unique (instrument, verb, target) combination, resulting in (Ik,vk,tk)(I_k, v_k, t_k)0. An optional multi-task extension replaces this with three parallel heads predicting instruments ((Ik,vk,tk)(I_k, v_k, t_k)1), verbs ((Ik,vk,tk)(I_k, v_k, t_k)2), and targets ((Ik,vk,tk)(I_k, v_k, t_k)3).

A one-to-one Hungarian matching (Ik,vk,tk)(I_k, v_k, t_k)4 is used to align predictions with ground-truth triplets during training. The total loss is:

(Ik,vk,tk)(I_k, v_k, t_k)5

where

(Ik,vk,tk)(I_k, v_k, t_k)6

For the multi-task setup, the triplet class cross-entropy is replaced by separate losses on instrument, verb, and target heads with corresponding weights.

4. Training Protocol and Implementation Details

TargetFusionNet is implemented in the MMDetection framework with a ResNet-50 backbone pre-trained on CholecTriplet-Seg instrument-segmentation data. EndoViT's tissue segmentation outputs, used as weak anatomical logits, are fed through a dedicated anatomy encoder (three 3×3 convolutional layers). Data augmentation includes random horizontal flips and crop/scale, with images resized to (Ik,vk,tk)(I_k, v_k, t_k)7. Training is conducted with AdamW (initial learning rate (Ik,vk,tk)(I_k, v_k, t_k)8, weight decay (Ik,vk,tk)(I_k, v_k, t_k)9, betas x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}0, x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}1) for 300k iterations. The best checkpoint is selected by validation mask mean Average Precision (x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}2). Loss weights are set as x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}3 (mask loss splits evenly between Dice and BCE).

5. Quantitative Performance and Ablation Results

TargetFusionNet achieves state-of-the-art triplet segmentation performance on CholecTriplet-Seg, particularly for accurate anatomical target linking. Ablation studies isolate the contribution of the gated cross-attention fusion. The following results (as x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}4 in %) compare fusion strategies for full triplet x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}5instrument+verb+targetx∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}6 segmentation:

Fusion Strategy mAP_I mAP_V mAP_T mAP_{IVT}
Early-concat 69.13 50.74 21.52 12.21
Late-concat 59.90 40.65 20.21 10.99
TargetFusionNet 67.19 46.27 21.55 13.47

TargetFusionNet's gated cross-attention achieves the highest full triplet segmentation mAP (13.47%), outperforming both early- and late-concatenation of anatomical features.

Comprehensive end-to-end results demonstrate TargetFusionNet's improved performance across recognition (mAP{rec}), detection (mAP{det}), and segmentation (mAP{seg}) for full triplets:

  • x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}7 (vs. x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}8 for Mask2Former-Triplet)
  • x∈RH×W×3x \in \mathbb{R}^{H \times W \times 3}9 (vs. L∈RH×W×CaL \in \mathbb{R}^{H \times W \times C_a}0)
  • L∈RH×W×CaL \in \mathbb{R}^{H \times W \times C_a}1 (vs. L∈RH×W×CaL \in \mathbb{R}^{H \times W \times C_a}2)

Notably, the pronounced gain in target accuracy (mAP_T) underscores the benefit of anatomical context integration.

6. Qualitative Insights and Diagnostic Scenarios

Qualitative analysis of challenging surgical frames reveals that TargetFusionNet robustly disambiguates instances where action-target distinction is subtle (e.g., clipping cystic duct vs. artery, irrigating fluid vs. tissue manipulation). In cases with occlusions, multiple interacting instruments, or rare target classes, TargetFusionNet links each instrument mask to the correct verb and anatomical target more reliably than CAM-based grounding (e.g., RDV-Det) or vanilla Mask2Former-Triplet. The refined semantic alignment produced by gated anatomy fusion is most evident on actions that require nuanced tissue-type discrimination.

7. Context, Significance, and Implications

Triplet segmentation formalizes hierarchical VQA as a spatially explicit, instance-level grounding problem, directly addressing the limitations of frame-level or weakly supervised recognition approaches. The introduction of weak anatomical priors, delivered through TargetFusionNet's gated cross-attention mechanism, contributes significantly to target-level accuracy without sacrificing mask quality or verb/instrument recognition. This unified approach facilitates richer surgical scene interpretation and paves the way for robust, interpretable AI assistance in minimally invasive procedures (Alabi et al., 1 Nov 2025).

A plausible implication is that future extensions of this methodology could generalize to other hierarchical, instance-grounded VQA tasks beyond surgical video analysis, particularly where weak spatial priors can be leveraged to improve fine-grained action recognition.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hierarchical VQA (DermaBench).