Abstract
We present a novel interactive multi-agent simulation algorithm to model pedestrian movement dynamics. We use statistical techniques to compute the movement patterns and motion dynamics from 2D trajectories extracted from crowd videos. Our formulation extracts the dynamic behavior features of real-world agents and uses them to learn movement characteristics on the fly. The learned behaviors are used to generate plausible trajectories of virtual agents as well as for long-term pedestrian trajectory prediction. Our approach can be integrated with any trajectory extraction method, including manual tracking, sensors, and online tracking methods. We highlight the benefits of our approach on many indoor and outdoor scenarios with noisy, sparsely sampled trajectory in terms of trajectory prediction and data-driven pedestrian simulation.
Introduction
Simulating how people move in a crowd is a cornerstone of urban planning, robotics, and digital entertainment. Traditionally, researchers have relied on "agent-based models" that utilize fixed mathematical rules like social forces or velocity obstacles. While efficient, these models often fail to capture the subtle, time-varying, and site-specific behaviors of real humans, often appearing "robotic."
Existing data-driven approaches attempt to bridge this gap by learning from real-world videos, but they face significant hurdles regarding data noise and static assumptions. Video tracking data is often messy, and crowd dynamics change over time—a morning commute differs significantly from a lunch rush. We introduce TVPMD (Time-Varying Pedestrian Movement Dynamics), a framework designed to learn these dynamic, trajectory-level behaviors interactively and in real-time.
Methodology: The TVPMD Framework
The core of the TVPMD algorithm breaks down pedestrian dynamics into three learned components: Entry Points, Movement Flows, and Local Navigation.
State Estimation and De-noising
To handle noisy video data, we utilize an Ensemble Kalman Filter (EnKF) combined with Expectation Maximization (EM). This allows the system to estimate the "true" state of a pedestrian (position and velocity) even when input data is low-quality or sparsely sampled.
Dynamic Learning
The system extracts a six-dimensional feature vector for each pedestrian, including position and preferred velocity. It then uses K-means clustering to group these features into "flow clusters," mapping out common paths in a scene. Simultaneously, a Gaussian Mixture Model (GMM) learns the spatial distribution of entry points, which is crucial for seeding new virtual agents in realistic locations. By using a sliding time window, TVPMD adapts to new behaviors as they happen, capturing the "rhythm" of the crowd.
Experimental Results
We evaluated our approach across a diverse set of indoor and outdoor benchmarks, including Students, Campus, and Manko.
Prediction Accuracy and Efficiency
TVPMD outperformed standard baselines such as Constant Velocity and Kalman Filters. It showed a significant boost in long-term prediction (5 seconds out), with up to a 12% improvement in accuracy on the Students and Campus datasets. Computationally, the system is highly efficient; using previous frame parameters as an initial guess for the EM algorithm reduced iterations by over 3x, resulting in a 3.5e-01 second improvement in feature computation time.
Qualitative Realism
In the Manko benchmark, virtual agents successfully learned to form lanes simply by observing the flow of real pedestrians—a behavior that typically requires complex manual tuning in traditional models. Furthermore, in interactive simulations, we implemented "asymmetric responsibility" in collision avoidance, making the virtual crowd feel more natural when interacting with user-controlled agents.
Conclusion and Future Work
TVPMD provides a robust framework for learning and simulating time-varying crowd dynamics from real-world data. While the model is currently dependent on the quality of underlying video trackers and treats pedestrians as 2D points, future work will explore integrating high-fidelity character synthesis and multi-character motion to better model groups and body language.
Summary updated