Long-Term Anticipation of Activities with Cycle Consistency

Yazan Abu Farha, Qiuhong Ke, Bernt Schiele, Juergen Gall

TL;DR

This paper introduces an end-to-end framework for long-term activity anticipation that predicts a sequence of future actions and their durations directly from video features. By introducing a "cycle consistency" loss—forcing the model to reconstruct the past from its predicted future—the authors ensure that anticipated activities are logically plausible and grounded in the observed context.

What Problem Does This Paper Address?

Predicting what a human will do next is a hallmark of intelligence, essential for everything from autonomous driving to assistive robotics. While many AI models can predict the next few seconds of an action, "long-term anticipation" (predicting minutes into the future) is much harder.

Existing methods typically use a "two-step" approach: first, they convert the observed video into a sequence of text labels (e.g., "cutting," "stirring"), and then they use those labels to guess the future. This has three major flaws:

  1. Error Propagation: If the first step misidentifies an action, the prediction step is doomed.
  2. Information Loss: Text labels are a "lossy" representation; they discard rich visual cues in the video that might hint at future intent.
  3. Lack of Global Optimization: The two parts are trained separately, meaning the visual encoder isn't actually "looking" for features that help with future prediction.

Methods

The authors propose a unified, end-to-end architecture consisting of three main components:

  • Recognition Module: A Temporal Convolutional Network (TCN) that processes raw video features (I3D). Unlike previous models, this module is trained with a recognition loss to ensure it extracts discriminative features while remaining differentiable for the rest of the pipeline.
  • Sequence-to-Sequence (S2S) Model: An encoder-decoder setup using Gated Recurrent Units (GRUs). The encoder compresses the observed video features into a vector, and the decoder predicts a sequence of future action labels and their relative durations. A multi-head attention mechanism helps the model focus on specific past frames when predicting long sequences.
  • Cycle Consistency Module: This is the core innovation. It takes the predicted future actions and tries to predict the past actions that led to them. If the predicted future is missing a logical prerequisite (e.g., predicting "frying a pancake" when the model didn't see "pouring oil"), the cycle consistency error will be high. This forces the model to generate more plausible, logically consistent future timelines.

Datasets

The model was evaluated on two standard benchmarks for complex, multi-step activities:

  • Breakfast Dataset: 1,712 videos of people making breakfast (48 different fine-grained actions). Videos average 2.3 minutes.
  • 50Salads: 50 long videos (averaging 6.4 minutes) of salad preparation with 17 action classes.

Key Insights and Ideas

  • The "Plausibility Check": The cycle consistency module acts as a "sanity check." By reasoning backward from the future to the past, the model learns the causal dependencies between actions (e.g., you must "crack eggs" before you "fry eggs").
  • Visual Cues Matter: By training end-to-end, the model can pick up on subtle visual signals—like the amount of ingredients left on a counter—that a simple label-based model would ignore.
  • Auxiliary Tasks Boost Performance: Training the model to recognize the current action (Recognition Loss) serves as a powerful regularizer, ensuring the features passed to the anticipation module are meaningful.
  • Attention for Long Horizons: As the observation time increases, the encoder's single vector becomes a bottleneck. Multi-head attention allows the decoder to "reach back" into the video to find relevant context.

Key Results

The proposed framework achieved state-of-the-art (SOTA) results on both datasets, measured by Mean over Classes (MoC) accuracy:

  • Superiority over Two-Step Methods: On the Breakfast dataset, the end-to-end approach outperformed the two-step baseline by up to 2.3%.
  • Significant Gains over Previous SOTA: The model outperformed previous methods (like RNN and CNN-based anticipation) by a large margin—roughly 5% to 8% across various observation/prediction percentages on the Breakfast dataset.
  • Ablation Success: Removing the cycle consistency loss consistently dropped performance, proving that "reasoning backward" is a vital signal for "predicting forward."

Limitations and Future Work

  • Data Hunger: The authors noted that on the smaller 50Salads dataset, the benefits of end-to-end training were less pronounced. End-to-end models generally require more data to generalize well compared to modular two-step systems.
  • Multi-modal Futures: While the authors argue that cycle consistency helps handle different possible futures by ensuring whatever is predicted is plausible, the model currently predicts a single deterministic sequence. Future work could explore generating multiple diverse, plausible future paths.
  • Complexity: The addition of attention and cycle consistency modules increases the computational overhead during training.

Summary updated

BibTeX
@inproceedings{farha2020long,
  author = {Yazan Abu Farha and Qiuhong Ke and Bernt Schiele and Juergen Gall},
  title = {{Long-Term Anticipation of Activities with Cycle Consistency}},
  booktitle = {GCPR},
  year = {2020},
  url = {https://openreview.net/forum?id=QoOEczeNZexC},
}
Figure