Video Relation Detection via Tracklet based Visual Transformer

Kaifeng Gao, Long Chen, Yifeng Huang, Jun XiaoACM Multimedia 2021 · DOI

Abstract

Video Visual Relation Detection (VidVRD) has received significant attention in recent years. In this paper, we apply the state-of-the-art video object tracklet detection pipeline MEGA and deepSORT to generate tracklet proposals. We then perform VidVRD in a tracklet-based manner without any pre-cutting operations. Specifically, we design a tracklet-based visual Transformer featuring a temporal-aware decoder that performs feature interactions between tracklets and learnable predicate query embeddings to predict relations. Experimental results demonstrate the superiority of our method, which outperformed other methods by a large margin on the Video Relation Understanding (VRU) Grand Challenge in ACM Multimedia 2021.

Introduction

Detecting relationships in video (VidVRD) is significantly more challenging than in static images. Relationships such as "moving towards" or "passing by" are defined not only by the spatial arrangement of objects but also by their relative motion over time.

Traditional models often employ a "segment-based" approach, dividing videos into short clips (1-2 seconds), detecting relations within these clips, and then stitching them together. This method is inherently limited as it fails to capture long-term interactions and often breaks down when a relationship spans across artificial segment boundaries. To address this, we propose processing videos as continuous streams of object "tracklets"—trajectories of objects over time—to maintain global temporal context.

Proposed Architecture

Our pipeline treats relation detection as a set-prediction problem, utilizing a tracklet-based Visual Transformer that processes the entire video sequence holistically.

Overview of the tracklet-based visual Transformer architecture for Video Visual Relation Detection.

The architecture consists of four main stages:

  1. Object Detection and Tracking: We utilize MEGA for high-quality frame-level detection and deepSORT to link these detections into continuous tracklets, ensuring object identity is preserved throughout the sequence.
  2. Feature Initialization: For each tracklet, appearance features are extracted from a CNN backbone, while spatial features are derived from bounding box coordinates and their velocities.
  3. Tracklet-based Visual Transformer:
    • Encoder: A standard Transformer encoder enables interaction between all tracklets in a video, generating contextualized features.
  4. Temporal-aware Decoder: This core component uses learnable "predicate queries" assigned to specific temporal windows. It performs RoI pooling on tracklets within these windows and employs role-specific attention to distinguish between "subject" and "object" roles.
  5. Relation Prediction: The decoder output is processed by two branches: one for predicate classification (e.g., "riding," "behind") and another for linking the predicate to specific subject and object tracklets.

Experimental Results

The model was evaluated on the VidOR (Video Object Relation) dataset, which contains 10,000 videos with 80 object categories and 50 predicate categories.

Comparison of the proposed method against state-of-the-art models on the VidOR dataset.

Our proposed method achieved 1st place in the Video Relation Understanding (VRU) Grand Challenge at ACM Multimedia 2021. As shown in the competition results, the model achieved a 9.48 mAP on Relation Detection (RelDet) and 63.46 P@1 on Relation Tagging (RelTag). It significantly outperformed several state-of-the-art models, including RELAbuilder and MAGUS.Gamma. Ablation studies further revealed that incorporating "classeme" features and "frequency bias" (prior knowledge of object interaction likelihoods) improved the RelDet mAP from 8.06 to 8.67 in single-model tests.

Conclusion

This work demonstrates the effectiveness of a tracklet-based approach for VidVRD. By avoiding artificial video segmentation, the model captures long-term temporal context more effectively. However, performance remains dependent on the quality of the initial object tracklets; if the tracker fails, the relation cannot be recovered. Future work will explore tighter integration between tracking and relation detection to allow relational context to refine object trajectories.

Summary updated

BibTeX
@inproceedings{gao2021video,
  author = {Kaifeng Gao and Long Chen and Yifeng Huang and Jun Xiao},
  title = {{Video Relation Detection via Tracklet based Visual Transformer}},
  booktitle = {ACM Multimedia},
  year = {2021},
  doi = {10.1145/3474085.3479231},
}
Figure