Weakly supervised learning of actions from transcripts

Hilde Kuehne, Alexander Richard, Juergen Gall · DOI

TL;DR

This paper presents a framework for training human action recognition models using only "transcripts"—a list of actions in the order they occur—instead of expensive frame-level timestamps. By iteratively refining Hidden Markov Models (HMMs) starting from a simple uniform temporal split, the authors achieve performance that rivals fully supervised systems while reducing annotation overhead by nearly 8x.

What Problem Does This Paper Address?

In computer vision, "supervised learning" usually means an annotator had to sit down and mark the exact start and end frame of every single action in a video. This is a massive bottleneck: labeling 10 short videos can take nearly two minutes of extra "overhead" just to get the timestamps right.

The authors address the scalability gap in action recognition. If we want to train models on the vast amounts of video available on platforms like YouTube, we can't rely on frame-by-frame labels. Instead, they ask: Can we learn to recognize and segment actions if we only know the sequence of events (e.g., "first he took a cup, then he poured coffee, then he added milk")?

Methods

The authors propose a "weakly supervised" approach that borrows the concept of "flat models" from speech recognition.

  1. Action Modeling: Each action class is represented by a Hidden Markov Model (HMM) with a strict left-to-right topology.
  2. Initialization: Since they don't have timestamps, they start with a "naive" assumption: they split the video into equal-length segments based on the number of actions in the transcript (Uniform Sampling).
  3. Iterative Refinement (The Core Loop):
    • Inference: Use the current HMMs and the Viterbi algorithm to find the most likely frame-to-action alignment that matches the transcript.
  4. Reestimation: Use these new, inferred boundaries to update the HMM parameters (using the Baum-Welch algorithm).
  5. This process repeats until the boundaries converge.
  6. CNN Extension: Once the HMM/GMM (Gaussian Mixture Model) system finds reasonable boundaries, those boundaries act as "pseudo-ground truth" to train a more powerful Convolutional Neural Network (CNN). They use Bayes' rule to convert the CNN's class probabilities back into the likelihoods needed by the HMM.

Datasets

The approach was evaluated on four diverse, large-scale datasets:

  • Hollywood Extended: 937 clips from movies (15 classes).
  • MPII Cooking: 8 hours of fine-grained kitchen activities (65 classes).
  • Breakfast: A massive 77-hour dataset of people preparing breakfast (48 classes).
  • CRIM13: 50 hours of mice behavior footage (13 classes), used to test if the model generalizes beyond human actions.

Key Insights and Ideas

  • The Power of the "Bad" Start: Surprisingly, initializing with a simple uniform split provides enough signal for the HMM to begin clustering similar features. As long as a few frames of the "true" action fall into the initial segment, the model can usually "crawl" toward the correct boundaries.
  • Annotation Efficiency: The authors conducted a user study showing that providing a transcript takes only 14.1 seconds of overhead for 10 videos, compared to 112.7 seconds for full segmentation. This makes the method highly practical for massive datasets.
  • Convergence vs. Overfitting: The model typically converges in 3 to 5 iterations. Interestingly, iterating too much (e.g., 10+ times) can lead to overfitting, where the model starts aggregating successive classes that always appear in the same order (like "smell spice" followed by "add spice").
  • Generative-Discriminative Hybrid: By using Bayes' rule to plug CNNs into an HMM, the authors combine the temporal modeling strengths of HMMs with the powerful feature-learning capabilities of deep learning.

Key Results

  • Alignment Quality: On the "Breakfast" dataset, the weakly supervised alignment reached a Mean over Frames (MoF) of 40.0%, which is remarkably close to the fully supervised performance of 73.8%, considering the model never saw a single manual timestamp.
  • State-of-the-Art: The system outperformed existing weakly supervised methods like OCDC and ECTC. For example, on the Breakfast dataset segmentation task, this method achieved 28.2% MoF, significantly higher than OCDC's 8.9%.
  • Speed: The training process is roughly an order of magnitude faster than competing discriminative clustering methods (e.g., Bojanowski et al.), largely because it requires far fewer iterations to converge.

Limitations and Future Work

  • Transcript Dependency: The system assumes the transcript is a perfect ordered list. If actions occur out of order or are missing from the transcript, the Viterbi alignment may fail.
  • Unbalanced Actions: If a video has one very long action and one very short action, the uniform initialization might fail to capture any frames of the short action, leading to a "degenerate" model.
  • Future Directions: The authors suggest that the inferred segments could be used as a starting point for even higher-level fully supervised models, effectively using weak supervision as a "pre-training" step for temporal segmentation.

Summary updated

BibTeX
@article{kuehne2017weakly,
  author = {Hilde Kuehne and Alexander Richard and Juergen Gall},
  title = {{Weakly supervised learning of actions from transcripts}},
  journal = {Comput. Vis. Image Underst.},
  year = {2017},
  doi = {10.1016/j.cviu.2017.06.004},
}
Figure