ProTAL: A Drag-and-Link Video Programming Framework for Temporal Action Localization

Yuchen He, Jianbing Lv, Liqi Cheng, Lingyu Meng, Dazhen Deng, Yingcai WuarXiv 2025

TL;DR

ProTAL introduces an interactive "drag-and-link" video programming framework that slashes the massive manual effort traditionally required to train Temporal Action Localization (TAL) models. By allowing users to visually define complex actions as a sequence of geometric constraints between body parts and objects, it automatically generates high-quality training labels across large unlabeled datasets, reducing annotation time by over 30x while achieving near fully-supervised performance.

What Problem Does This Paper Address?

Deep learning models for Temporal Action Localization (TAL)—identifying exactly when an action starts and ends in an untrimmed video—are notoriously "data-hungry." Manually labeling frame-by-frame video data is incredibly tedious, expensive, and non-scalable.

While "data programming" (using human-defined rules or labeling functions to programmatically tag data) has succeeded in text and image processing, applying it to video is exceptionally challenging. Videos are spatiotemporal; actions involve complex, fluid relationships between human poses and objects over time. Translating a conceptual action (like a table tennis serve or a weightlifting clean-and-jerk) from a human expert's mind into rigid programmatic code is highly complex and impractical for standard workflows.

Methods

ProTAL bridges this gap by breaking down complex, dynamic actions into a series of discrete "key events" (inspired by keyframes in animation). The framework operates in three main stages:

  1. Visual Element Extraction: Pre-trained computer vision models automatically extract fine-grained visual elements frame-by-frame. It uses pose estimation models (like RTMPose) for human skeletons and object detection models (like Grounding DINO) for relevant props (e.g., balls, rackets, barbells).
  2. Interactive Key Event Definition: Instead of writing code, users define rules using an intuitive graph-based canvas. Skeletons and objects are represented as nodes. Users literally drag nodes and link them to establish spatial constraints such as direction (angles), relative distance, contact, and person-object association.
Figure 1: The space of visual elements and constraints in key event definitions. Visual elements include two categories: human-related visual elements, mainly human body parts, usually represented as skeletons; and object-related visual elements, including objects involved in the action. Constraints include direction, relative distance, contact, and association constraint.
  1. Label Generation & Model Training: The system treats the user-defined rules as a subgraph matching problem to scan the unlabeled dataset and retrieve matching frame sequences. These programmatically generated weak labels are then fed into a semi-supervised TAL model (extending SF-Net) equipped with a specialized state-order loss to ensure the sequential integrity of the action is learned.
Figure 2: Framework of ProTAL. The first stage is (A) the automatic extraction of action-relevant visual elements. The second stage is (B) the defining of key events based on interactions, followed by (C) the generation of key event labels. The third stage is (D) the model training with a semi-supervised TAL method based on the generated labels.

Datasets

The authors evaluated ProTAL using:

  • Table Tennis Dataset: A custom dataset consisting of 470 unlabeled video clips for training and 130 videos for testing, specifically focusing on localizing the "serve" action.
  • FineGym: A standard gymnastics dataset used during the controlled user study to evaluate how well participants could program rules for "turns" and "tumbling" actions.

Key Insights and Ideas

  • Dynamic Actions as Static State Transitions: The core "aha moment" is that a continuous, complex action can be effectively captured by defining a sequence of static states. For instance, a weightlifting "clean and jerk" can be simplified into State 1 (barbell below the head) transitioning to State 2 (barbell above the head) within a specific time threshold. This strategic decomposition turns a messy spatiotemporal problem into a straightforward subgraph matching task.
  • Direct Manipulation Over Code: Translating spatial intuition (e.g., "the ball is above the head") into numerical code ranges is cognitively exhausting for humans. By providing an interactive visual arc to define angle tolerances and physical links to denote contact, ProTAL shifts the user's task from abstract programming to intuitive visual editing.
Figure 3: System screenshot. Users can navigate the video dataset and identify key events in Dataset View (A). They can add key events in Event View (B) and define them through drag-and-link interactions in Defining View (C). The distribution of generated labels and the labeled frames can be reviewed in Dataset View and Frame View (D) to guide the refinement of definitions. Training View (E) shows the progress of TAL model training based on the generated labels.

Key Results

The framework was evaluated through both a practical case study and a user study comparing it to a form-based baseline:

  • Massive Efficiency Gains: In the table tennis case study, generating labels with ProTAL took just 26.6 minutes, compared to the 15.7 hours required for traditional manual frame-by-frame annotation—a 30x speedup.
  • High Competitive Accuracy: Despite using weak, programmatically generated labels, the ProTAL-trained model achieved an average mAP (Mean Average Precision) of 0.825. This drastically outperformed single-frame supervision (0.650) and closely approached the performance of a model trained on full, expensive manual labels (0.833).
  • Superior Usability: The user study with 12 professional data analysts revealed that the drag-and-link interface allowed users to define accurate rules significantly faster (518.8s vs. 622.1s) and required far fewer iterative refinements (1.7 iterations vs. 2.8) than a standard form-based input interface.

Limitations and Future Work

While highly effective, ProTAL faces challenges in "in-the-wild" scenarios:

  • Visual Occlusions: Dense or overlapping objects can cause the underlying vision models to fail during the initial element extraction phase.
  • Camera Viewpoints: Highly dynamic or drastically changing camera angles disrupt the static 2D spatial rules defined by the user.

Future Directions: The authors plan to expand the constraint space to handle more nuanced actions, incorporate 3D spatial tracking to alleviate viewpoint issues, and integrate Large Multimodal Models (LMMs) to allow users to generate these spatial constraints using natural language prompts.

Summary updated

BibTeX
@misc{he2025protal,
  author = {Yuchen He and Jianbing Lv and Liqi Cheng and Lingyu Meng and Dazhen Deng and Yingcai Wu},
  title = {{ProTAL: A Drag-and-Link Video Programming Framework for Temporal Action Localization}},
  year = {2025},
  eprint = {2505.17555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17555},
}
Figure