Improved Activity Forecasting for Generating Trajectories

Daisuke Ogawa, Toru Tamaki, Tsubasa Hirakawa, Bisser Raytchev, Kazufumi Kaneda, Ken YodaarXiv 2019

TL;DR

Researchers have developed a highly efficient 2D Inverse Reinforcement Learning (IRL) framework that generates realistic animal trajectories by filling in missing GPS data. By incorporating a distance-aware reward function and a novel "convolutional value iteration" step, their method produces paths that look more natural and is over 1,000 times faster than complex 3D models.

What Problem Does This Paper Address?

Predicting and understanding animal movement is crucial for ecology, but it’s a difficult computational task. While deep learning has revolutionized many fields, it struggles here because animal movement datasets (like GPS tracks of seabirds) are often tiny—sometimes only a few dozen trajectories.

Previous attempts to fill gaps in these trajectories using Inverse Reinforcement Learning (IRL) faced a trade-off:

  1. 2D Models: Fast, but they often produce overly simplistic, straight-line paths that don't look "real."
  2. 3D Models: By adding time as a third dimension, they become more accurate but suffer from massive computational costs in both memory and processing time.

The authors aim to bridge this gap by creating a 2D model that retains the speed of low-dimensional approaches while achieving the realism and accuracy of more complex ones.

Methods

The paper builds on Maximum Entropy (MaxEnt) IRL, where the goal is to learn a "reward function" that explains observed behavior. They introduce four key improvements:

  • $L_p$ Norm Rewards: In a standard grid, moving diagonally is physically longer than moving horizontally. Most models ignore this. The authors redefine the reward to be inversely proportional to the distance between states ($L_p$ distance), ensuring the model understands that diagonal moves have a different "cost."
  • Convolutional Value Iteration: To speed up the learning process, they introduce a Gaussian blur step into the value iteration. By convolving the state-value function with a Gaussian kernel, they accelerate the propagation of information across the grid, leading to faster convergence.
  • Stochastic Trajectory Generation: Instead of always picking the "best" next move (deterministic), they sample from the learned policy (stochastic). This introduces the natural "wiggles" seen in real animal movement.
  • Simplified 2D State Space: By sticking to 2D coordinates $(x, y)$ rather than $(x, y, t)$, they keep the state space manageable.

Datasets

The authors evaluated their method using a real-world dataset of seabird trajectories.

  • Training set: 43 trajectories.
  • Test set: 10 trajectories with missing segments to be interpolated. The task was to "fill in the blanks" for the missing parts of the test trajectories and compare the generated paths to the ground truth.

Key Insights and Ideas

  • The Geometry of the Grid Matters: Simply accounting for the fact that diagonal moves are $\sqrt{2}$ times longer than orthogonal moves significantly improves the realism of generated paths.
  • Stochasticity is Key to Realism: Deterministic models tend to produce "robotic" straight lines. Stochastic sampling captures the inherent uncertainty and variability of biological movement. You can see this contrast in Figure 2, where the red lines (the authors' method) follow the blue ground truth much more naturally than the straight green lines of standard 2D approaches.
Fig. 2. Five different results of stochastic interpolation of the missing part in a trajectory by the proposed method and 2D approach. “gt” is ground-truth of the trajectory.
  • Efficiency without Sacrifice: You don't necessarily need a 3D model to get good results. By refining the reward and policy definitions in 2D, the authors achieved better accuracy than previous 2D methods and comparable accuracy to 3D methods at a fraction of the cost.

Key Results

The quantitative results, summarized in the table below, highlight a massive leap in efficiency:

  • Speedup: The proposed method is roughly 1,191 times faster in value iteration and 2,064 times faster in weight updates compared to the 3D approach.
  • Accuracy: Using the Modified Hausdorff Distance (MHD) as a metric, the stochastic version of their method ($p=2$) achieved an error of 5.13, outperforming the standard 2D approach (6.02) and even the deterministic 3D approach (5.33).
  • Qualitative Realism: As shown in Figure 4, the method consistently generates paths that mimic the complexity of real bird flight across different parameter settings.
Comparison of performance metrics and computation times across different methods.
Fig. 4. Five different results of stochastic interpolation of the missing part in a trajectory by the proposed method with different parameters. “gt” is ground-truth of the trajectory.

Limitations and Future Work

The primary limitation acknowledged is the lack of explicit temporal information in the 2D model. While the 2D approach is incredibly fast, time is a critical factor in animal behavior (e.g., foraging vs. migrating). The authors note that finding a way to re-incorporate temporal factors without re-introducing the massive computational overhead of 3D models remains a challenging open problem for future research.

Summary updated

BibTeX
@misc{ogawa2019improved,
  author = {Daisuke Ogawa and Toru Tamaki and Tsubasa Hirakawa and Bisser Raytchev and Kazufumi Kaneda and Ken Yoda},
  title = {{Improved Activity Forecasting for Generating Trajectories}},
  year = {2019},
  eprint = {1912.05729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.05729},
}
Figure