Learning latent temporal structure for complex event detection

Kevin D. Tang, L. Fei-Fei, Daphne KollerCVPR 2012

Abstract

In this paper, we tackle the problem of understanding the temporal structure of complex events in highly varying videos obtained from the Internet. Towards this goal, we utilize a conditional model trained in a max-margin framework that is able to automatically discover discriminative and interesting segments of video, while simultaneously achieving competitive accuracies on difficult detection and recognition tasks. We introduce latent variables over the frames of a video, and allow our algorithm to discover and assign sequences of states that are most discriminative for the event. Our model is based on the variable-duration hidden Markov model, and models durations of states in addition to the transitions between states. The simplicity of our model allows us to perform fast, exact inference using dynamic programming, which is extremely important when we set our sights on being able to process a very large number of videos quickly and efficiently. We show promising results on the Olympic Sports dataset [16] and the 2011 TRECVID Multimedia Event Detection task [18]. We also illustrate and visualize the semantic understanding capabilities of our model.

Introduction

Most traditional computer vision models for activity recognition are designed for "trimmed" clips—short videos where a specific action occurs from start to finish. However, real-world Internet videos are typically "unconstrained." A ten-minute video titled "Grooming a Dog" might contain several minutes of introductory dialogue and only a brief window of the actual event.

This research addresses Complex Event Detection in these weakly-labeled settings, focusing on three primary challenges: temporal localization (identifying when the event occurs), high variance in video length and quality, and computational scale. To solve these, we propose a model that automatically discovers the most important parts of a messy video to identify complex events without requiring frame-by-frame manual annotations.

Methods: Variable-Duration Latent Models

The core of our approach is a Conditional Variable-Duration Hidden Markov Model (HMM). Unlike a standard HMM, where a state typically lasts for a single time step, this model introduces latent duration variables. This acts as a temporal "countdown": when the model enters a state (e.g., "swinging a golf club"), it simultaneously determines how many segments that state should persist.

The proposed model architecture. Videos are split into temporal segments represented by observed features (X), which are modeled by latent state variables (Z) and latent duration variables (D).

Key technical components include:

  • Latent Variables: The model treats the specific sequence of sub-events (states) and their lengths (durations) as hidden information inferred during training.
  • Max-Margin Learning: Trained within a Latent SVM framework, the model learns to assign high scores to the correct event sequences and low scores to background noise.
  • Efficient Inference: Using dynamic programming, we ensure that searching for the optimal state/duration sequence is fast ($O(n \cdot d_{max} \cdot S^2)$), making it feasible for large-scale datasets.
  • Feature Representation: Videos are divided into fixed-length segments, each represented by a "Bag-of-Words" (BoW) histogram of local visual features (HOG/HOF).

Datasets and Evaluation

We evaluated the model on two major benchmarks:

  1. Olympic Sports Dataset: 16 sport classes (e.g., high jump, snatch, bowling) collected from YouTube. These contain complex, multi-stage motions.
  2. 2011 TRECVID Multimedia Event Detection (MED): A challenging dataset with 15 complex events (e.g., "Feeding an animal," "Landing a fish"). These videos are highly varied and contain significant amounts of irrelevant background footage.

Key Insights and Semantic Discovery

A primary finding is that duration matters. Modeling how long a state lasts is crucial for distinguishing between the actual event and background noise. For example, a "background" state might be prolonged and erratic, while a discriminative "action" state is often shorter and more consistent across different videos.

The model automatically discovers semantically consistent segments across different videos of the same event class, such as the 'catch' in fishing or the 'bath' in grooming.

Even though the model is only provided with a video-level label, it naturally learns to associate specific latent states with semantic sub-events. This flexibility allows states to occur anywhere in the timeline, which is essential for Internet videos where the relevant content might appear at any point.

Results and Efficiency

  • Olympic Sports: The model achieved a Mean Average Precision (mAP) of 66.8%, outperforming the previous state-of-the-art (62.5%). It was particularly effective for events with distinct phases, such as the "snatch" in weightlifting (88.6% vs 54.2%).
  • TRECVID MED: On the difficult "DEV-T" set, the model nearly doubled baseline performance, increasing mAP from 5.72% to 11.25%.
  • Efficiency: By utilizing a linear kernel SVM and dynamic programming, the system processes large volumes of video significantly faster than models requiring complex kernels or exhaustive spatial searches.

Conclusion and Future Work

While the model excels at temporal structure, it currently lacks spatial awareness, focusing entirely on when an action happens rather than where in the frame it occurs. Future work will involve incorporating spatial information to further refine detection. Additionally, because the model identifies the most discriminative segments, it holds significant potential for automatic video summarization—automatically extracting the "highlights" from long, unconstrained clips.

Summary updated

BibTeX
@inproceedings{tang2012learning,
  author = {Kevin D. Tang and L. Fei-Fei and Daphne Koller},
  title = {{Learning latent temporal structure for complex event detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2012},
  url = {https://openreview.net/forum?id=SyEZfJzdbH},
}
Figure