: A Visual Analytics Approach for Interactive Video Programming

Jianben He, Xingbo Wang, Kamkwai Wong, Xijie Huang, Changjian Chen, Zixin Chen, Fengjie Wang, Min Zhu, Huamin Qu

Introduction

Supervised machine learning thrives on labeled data, but labeling video remains a significant bottleneck. Unlike text or static images, video is high-dimensional and defined by complex temporal dependencies. The semantic meaning of a clip often resides in the sequence of actions rather than individual frames. While "data programming"—using programmatic rules or labeling functions—has streamlined text and image annotation, applying it to video is difficult. Experts struggle to write manual rules for nuanced behaviors like "student disengagement" or complex athletic maneuvers.

VideoPro addresses this challenge by introducing a visual analytics system that allows experts to define and refine "labeling templates" based on event sequences. This approach effectively transforms the manual labor of video tagging into an interactive, high-level pattern-matching exercise.

System Workflow and Methodology

VideoPro moves from raw pixels to high-level semantic programming through a structured pipeline. The process begins with Event Extraction, where off-the-shelf computer vision models (such as I3D and OpenPose) identify "atomic" events like "smile," "look center," or "arm flexion."

The VideoPro system pipeline, illustrating the transition from raw video frames to event sequences, template mining, and interactive labeling.

Once events are extracted, the system employs a Two-Stage Template Mining algorithm:

  1. Discovery: The seq2pat algorithm identifies frequent sequential patterns across the entire dataset.
  2. Refinement: The MinDL (Minimum Description Length) algorithm clusters these sequences into sub-templates. This helps users distinguish between nuanced variations, such as the specific sequence of movements that differentiates a "High Jump" from a "Javelin Throw."

The VideoPro Interface

The interface is designed to facilitate "model steering" by allowing users to interact with discovered patterns and apply labels at scale. It consists of three primary views:

  • Template View: Provides an overview of discovered patterns and their class distributions.
  • Labeling View: A workspace where users validate templates by inspecting keyframes and applying labels to entire clusters of similar videos simultaneously.
  • Info View: A diagnostic area utilizing UMAP projections and confusion matrices to visualize how programming iterations impact model performance.
The VideoPro interface, featuring the Template View (A), Labeling View (B), and Info View (C) for iterative model refinement.

Evaluation and Key Results

The system was evaluated through two case studies: student engagement classification (5,788 videos) and action recognition using a subset of the UCF101 benchmark (1,016 videos). The results demonstrate a massive boost in efficiency without sacrificing accuracy:

  • Efficiency Gains: In the engagement task, VideoPro achieved a 75.43% F1 score using only 452 labeled samples in 1 hour. In contrast, a traditional Active Learning baseline required 2,081 samples and 17.3 hours to reach a comparable score.
  • Action Recognition: For the UCF101 dataset, VideoPro reached a 93.98% F1 score in just 30 minutes, outperforming the baseline which took 48 minutes and required nearly 200 more manual labels.

Conclusion

VideoPro demonstrates that treating human-understandable events as the "atoms" of labeling functions bridges the gap between raw video data and expert domain knowledge. By labeling templates instead of individual instances, users can annotate hundreds of matching videos with a single click. While currently limited to visual data and discrete events, VideoPro represents a significant step toward making large-scale video labeling accessible and efficient for machine learning practitioners.

Summary updated

BibTeX
@article{he2024visual,
  author = {Jianben He and Xingbo Wang and Kamkwai Wong and Xijie Huang and Changjian Chen and Zixin Chen and Fengjie Wang and Min Zhu and Huamin Qu},
  title = {{: A Visual Analytics Approach for Interactive Video Programming}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2024},
  url = {https://openreview.net/forum?id=BzTh0wGuQ7},
}
Figure