Human Action Forecasting by Learning Task Grammars

Tengda Han, Jue Wang, Anoop Cherian, Stephen GouldarXiv 2017

Introduction

For a robotic assistant to be truly effective—for instance, handing a user a screwdriver precisely when needed—it must anticipate the human's next move. However, forecasting actions in real-world scenarios like furniture assembly or car maintenance is notoriously difficult. These tasks are long, repetitive, and composed of fine-grained actions with highly variable durations.

Traditional Markovian models often fail because they rely only on the immediate past, losing the "big picture" context. Conversely, standard deep recurrent models struggle to map these variable actions to a simple, continuous progress score. This paper introduces a framework that bridges this gap by implicitly learning "task grammars" through a combination of local action cues and global progress estimation.

Conceptual overview of combining local action IDs and global subsequence IDs to forecast the next action.

Proposed Framework

The authors propose an end-to-end trainable architecture that integrates a Local Forecasting Model with a Global Task Grammar Model. The process begins with a two-stream Residual CNN (ResNet-152) that extracts spatial features from RGB frames and temporal features from optical flow.

Local vs. Global Modeling

  • Local Model: A stacked LSTM network processes the CNN features to predict the next action based on the most recent sequence of frames.
  • Global Model: Instead of a single continuous progress metric, the authors utilize a multi-granularity stacked LSTM. This network discretizes the task into multiple parallel bin sizes (e.g., 5, 10, and 20 steps). By tracking progress at multiple scales, the model captures the temporal variance inherent in tasks that mix short actions (picking up a screw) with long ones (tightening a table leg).
The proposed architecture featuring a Two-Stream Residual Network feeding into local and multi-granularity global LSTM branches.

Cumulative Probability Loss (CPLoss)

A key innovation of this work is the Cumulative Probability Loss (CPLoss). Standard cross-entropy loss treats all incorrect predictions equally, which is suboptimal for progress estimation where being "slightly off" is better than being "completely off." CPLoss converts predictions into a cumulative distribution function, penalizing the network based on the distance between the predicted bin and the ground truth. This approach combines the stability of classification with the ordinal awareness of regression.

Experimental Results

The model was evaluated on two challenging datasets:

  1. Ikea Furniture Assembly (IFA): Includes 101 videos of table assembly, split into "Ikea-Bench" (controlled) and "Ikea-Ground" (occluded/irregular).
  2. Changing Car Tires (CCT): 30 unconstrained YouTube videos with massive variations in camera angles and action sequences.

Key Findings

  • Accuracy Gains: The combined Local + Global model achieved a 9.6% improvement in forecasting accuracy on the Ikea-Bench dataset over the baseline local-only model.
  • Loss Function Impact: CPLoss improved accuracy by 5.9% on Ikea-Bench and 9.4% on the more difficult Ikea-Ground dataset compared to standard cross-entropy.
  • Generalization: The architecture demonstrated robustness on the noisy CCT dataset, showing a 2.4% improvement, suggesting it can handle real-world, unconstrained environments.

Conclusion

By forcing a neural network to estimate its progress within a task at multiple granularities, it naturally learns the underlying temporal grammar without the need for manual rule-coding. While the current model relies on 2D video, future work may incorporate 3D sensors or expand to multi-actor scenarios to further refine the accuracy of human-robot collaboration.

Summary updated

BibTeX
@misc{han2017human,
  author = {Tengda Han and Jue Wang and Anoop Cherian and Stephen Gould},
  title = {{Human Action Forecasting by Learning Task Grammars}},
  year = {2017},
  eprint = {1709.06391},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.06391},
}
Figure