Tapestry of Time and Actions: Modeling Human Activity Sequences using Temporal Point Process Flows

Vinayak Gupta, Srikanta Bedathur · DOI

Abstract

Human activities are characterized by sequences of discrete actions occurring at irregular intervals, driven by underlying goals. Modeling these Continuous-Time Action Sequences (CTAS) requires capturing both the timing and the categorical nature of actions. We present ProActive, a neural framework that leverages temporal normalizing flows and self-attention to model human activity. Unlike traditional methods, ProActive enables end-to-end generation of action sequences from a single goal and handles the inherent variability in human behavior through permutation-invariant embeddings. Our results demonstrate significant improvements in next-action prediction, timing accuracy, and early goal detection across multiple benchmark datasets.

Introduction

Human activities, such as preparing a meal or engaging in sports, are complex sequences of actions (e.g., "pour milk," "stir") that occur at specific, often irregular, timestamps. These are formally known as Continuous-Time Action Sequences (CTAS). Modeling these sequences is challenging due to high temporal variance, the need for task-specific flexibility, and the non-linear order of actions. Traditional Marked Temporal Point Processes (MTPPs) often struggle with the generative aspects of these sequences and the flexible nature of human behavior.

This paper introduces ProActive, a neural MTPP framework designed to address these hurdles. By integrating normalizing flows for timing and self-attention for history encoding, ProActive provides a robust solution for both predictive and generative tasks in human activity modeling.

Problem Statement

Existing models for CTAS face three primary challenges:

  1. High Variance: Individual differences in speed and style lead to significant variations in the time taken to complete the same task.
  2. Task Specificity: Most models are specialized for a single task, such as predicting the next action or identifying the goal, but rarely both simultaneously.
  3. Order Variability: Many activities do not follow a rigid chronological order. For instance, in cooking, certain ingredients can be added in different sequences without changing the final goal. Standard causal models often fail to capture this flexibility.

Methodology

ProActive addresses these challenges through several innovative architectural choices:

Normalizing Flows for Timing

Instead of relying on traditional intensity functions, which are often mathematically cumbersome for sampling, ProActive utilizes LogNormal flows. This approach allows the model to learn complex probability distributions for action timing and enables fast, closed-form sampling, which is essential for generating new sequences.

Self-Attention Encoder

The framework employs a Transformer-like architecture to embed the history of actions. This self-attention mechanism allows the model to capture long-term dependencies, such as the relationship between an action performed at the start of a sequence and the current state.

Cluster-based Modeling

ProActive clusters actions based on their typical completion times. This recognizes that certain actions, like "stirring" or "whisking," share similar temporal dynamics across different activities, allowing the model to generalize temporal patterns more effectively.

Early Goal Detection

To facilitate real-time applications, the authors implement a margin-based ranking loss. This loss function encourages the model to increase its confidence in the sequence's goal as more actions are observed, enabling accurate goal detection well before the activity is completed.

ProActive++: Handling Permutation Invariance

A variant of the model, ProActive++, uses "set embeddings" to handle variations in action order. By treating past actions as a collection rather than a strict chronological list, the model becomes more robust to personalized styles and non-linear task execution.

Experimental Setup

The model was evaluated on three diverse activity recognition datasets:

  • Breakfast: 1,712 videos of breakfast preparation (48 action types, 9 goals).
  • Multi-THUMOS: A sports dataset (65 action types, 9 goals) with high action density.
  • Activity-Net: Diverse YouTube clips (49 action types, 14 goals).
  • Activity-Sparse: A subset of Activity-Net used to test performance under data-limited conditions.

Key Results

ProActive demonstrates state-of-the-art performance across several metrics:

  • Superior Prediction: The model outperformed strong baselines (e.g., RMTPP and THP) by 8–27% in Mean Absolute Error (MAE) for time prediction and 2–7% in action category accuracy.
  • Early Detection: ProActive can identify the final goal with high accuracy after observing only 30–60% of the action sequence.
  • Generative Success: This framework is the first MTPP-based model to successfully generate coherent, multi-step action sequences from a single goal label.
  • Robustness: ProActive++ maintained high accuracy even when 40-60% of the data was synthetically removed, proving its effectiveness in noisy, real-world environments.

Discussion and Future Work

While ProActive represents a significant advancement, several areas for future research remain. Modeling the "stopping criteria"—the exact point where a human sequence ends—remains a challenge, as reflected in the Correct-Length ratio metrics. Additionally, future iterations could benefit from integrating raw visual features directly into the flow-based framework, potentially creating a more holistic end-to-end vision system. Finally, exploring adversarial training (GANs) could further enhance the realism of generated sequences.

Summary updated

BibTeX
@article{gupta2024tapestry,
  author = {Vinayak Gupta and Srikanta Bedathur},
  title = {{Tapestry of Time and Actions: Modeling Human Activity Sequences using Temporal Point Process Flows}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2024},
  doi = {10.1145/3650045},
}
Figure