Online Semantic Activity Forecasting with DARKO

Nicholas Rhinehart, Kris M. Kitani

Abstract

We address the problem of incrementally modeling and forecasting long-term goals of a first-person camera wearer: what the user will do, where they will go, and what goal they seek. In contrast to prior work in trajectory forecasting, our algorithm, DARKO, goes further to reason about semantic states (will I pick up an object?), and future goal states that are far in terms of both space and time. DARKO learns and forecasts from first-person visual observations of the user's daily behaviors via an Online Inverse Reinforcement Learning (IRL) approach. Classical IRL discovers only the rewards in a batch setting, whereas DARKO discovers the states, transitions, rewards, and goals of a user from streaming data. Among other results, we show DARKO forecasts goals better than competing methods in both noisy and ideal settings, and our approach is theoretically and empirically no-regret.

Introduction: Beyond Coordinates

Traditional trajectory forecasting focuses on predicting physical coordinates over short time horizons. However, human behavior is fundamentally goal-oriented. Predicting a person's intent—the "why" behind their movement—requires reasoning about semantic goals that may be far beyond their current field of view. DARKO (Discovering Agent Rewards for K-futures Online) addresses this by modeling human activity as an online learning problem, where the system discovers the user's internal reward function from a continuous stream of egocentric video.

Methodology: The DARKO Framework

DARKO models human behavior as a Markov Decision Process (MDP). Unlike standard IRL, which requires a pre-defined state space, DARKO builds its state-transition graph incrementally. The state space incorporates both spatial location and semantic context, such as objects currently held by the user.

DARKO integrates first-person visual observations with a learned map to forecast future positions and semantic goals.

The system employs Online Gradient Descent to update reward parameters after each completed episode. By leveraging "state visitation functions," DARKO can forecast not just the final destination, but also the likelihood of future object interactions and the expected duration of the trajectory. A key theoretical contribution is the proof that DARKO is a "no-regret" algorithm, ensuring its performance converges to the optimal model over time.

The First-Person Continuous Activity Dataset

To evaluate DARKO, the researchers introduced the First-Person Continuous Activity Dataset. This dataset spans five distinct environments (homes, offices, and a lab) and includes over 15 days of continuous recording. It features 250+ actions and 19 object types, providing the long-form sequences necessary for testing life-long learning and long-term forecasting in realistic settings.

Results and Performance

DARKO consistently outperforms baselines like RNNs and Max-Margin Event Detectors. In "noisy" real-world settings using SLAM and object recognition, DARKO achieved mean goal probabilities between 0.37 and 0.66. With idealized visual labels, this accuracy improved to 0.66–0.88.

Empirical results showing the convergence of average log loss (regret) across different environments as the agent observes more trajectories.

The system also demonstrated high precision in predicting trajectory lengths, with a median error of only 6.3% in the Lab environment. Crucially, empirical tests confirmed the theoretical no-regret property, as shown in the convergence of log loss across various environments.

Conclusion

DARKO represents a significant step toward intelligent assistants that can anticipate human needs. By prioritizing semantic context—such as the objects a user interacts with—over simple physical trajectories, the system provides a more robust and human-centric approach to activity forecasting. Future work will focus on better handling visual detector noise and incorporating more complex environmental states.

Summary updated

Abstract

We address the problem of incrementally modeling and forecasting long-term goals of a first-person camera wearer: what the user will do, where they will go, and what goal they seek. In contrast to prior work in trajectory forecasting, our algorithm, DARKO, goes further to reason about semantic states (will I pick up an object?), and future goal states that are far in terms of both space and time. DARKO learns and forecasts from first-person visual observations of the user's daily behaviors via an Online Inverse Reinforcement Learning (IRL) approach. Classical IRL discovers only the rewards in a batch setting, whereas DARKO discovers the states, transitions, rewards, and goals of a user from streaming data. Among other results, we show DARKO forecasts goals better than competing methods in both noisy and ideal settings, and our approach is theoretically and empirically no-regret.
BibTeX
@inproceedings{rhinehart2017online,
  author = {Nicholas Rhinehart and Kris M. Kitani},
  title = {{Online Semantic Activity Forecasting with DARKO}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.399},
}
Figure