Continuous Locomotive Crowd Behavior Generation

Inhwan Bae, Junoh Lee, Hae-Gon Jeon

TL;DR

CrowdES is a novel framework that automatically generates continuous, lifelong crowd trajectories from a single scene image. By alternating between a diffusion-based crowd emitter and a state-switching locomotion simulator, it creates realistic, heterogeneous, and user-controllable crowd behaviors in real-time.

What Problem Does This Paper Address?

Simulating how crowds move is essential for video games, urban planning, and training autonomous vehicles. However, existing methods suffer from a major limitation: they struggle with the continuous, evolving nature of real-world environments.

Traditional trajectory prediction models require past history to predict the immediate future over short, fixed time windows. Meanwhile, recent generative traffic models only place actors during the initial scene setup; once those initial vehicles leave, the scene becomes completely empty. To create a truly lifelike, long-term simulation, researchers have historically relied on labor-intensive manual animations. This paper introduces a way to automatically populate a static scene with a continuous stream of diverse agents (pedestrians, cyclists, cars) that enter, interact, stochastically change their behaviors, and exit naturally over hours of simulation.

Methods

The authors introduce CrowdES, a two-stage framework consisting of a Crowd Emitter and a Crowd Simulator that run alternately to generate endless crowd animations.

Overview of the CrowdES framework, showing the alternating pipeline between the crowd emitter and crowd simulator.
  1. The Crowd Emitter: Given a single input image, a vision backbone (SegFormer) predicts spatial layouts: a semantic segmentation map, an appearance map (where people typically enter/exit), and a population density map. A diffusion model then samples agent parameters—such as agent type, walking pace, spawn time, and start/destination coordinates—by denoising all agents simultaneously to naturally capture group behaviors.
  2. The Crowd Simulator: Once agents are placed on the timeline, the simulator guides them to their destinations. It uses a navigation mesh (NavMesh) to plan global paths around obstacles. To make local movements realistic, it incorporates a Switching Dynamical System (SDS) governed by a Markov chain. Instead of walking in a rigid, straight line, agents stochastically switch between different behavioral modes (e.g., walking normally, stopping to chat, or veering to avoid a collision).

Crucially, the entire pipeline is user-controllable. Users can manually toggle parameters like overall population size, specific agent types, walking paces, and spawn locations to tailor the simulation.

Datasets

The framework was evaluated across five diverse, real-world crowd datasets:

  • ETH & UCY: Standard pedestrian trajectory datasets.
  • Stanford Drone Dataset (SDD): Contains heterogeneous agent types (pedestrians, bicyclists, skateboarders, cars, buses).
  • Grand Central Station (GCS): A highly congested indoor terminal dataset.
  • Edinburgh (EDIN): A massive dataset tracking over 100,000 individuals over a year.

Because traditional trajectory metrics aren't designed for long-term generation from scratch, the authors proposed a new evaluation protocol. It splits assessment into scene-level realism (using Earth Mover's Distance to evaluate crowd density, frequency, and coverage distributions) and agent-level accuracy (evaluating kinematics, trajectory alignment via Dynamic Time Warping, diversity, and collision rates).

Key Insights and Ideas

  • Timeline Emission via Diffusion: Instead of just placing agents in space, treating crowd generation as an emission problem along a temporal timeline allows for infinite simulation loops.
  • Collective Denoising for Group Dynamics: By denoising the parameters of all spawned agents simultaneously within the diffusion model, the network implicitly learns group cohesion and shared destinations without explicit programmatic rules.
  • Stochastic Behavior Switching: Integrating a Markov chain to switch between discrete behavioral states allows the simulator to replicate complex, unprompted real-world phenomena like sudden crowd surges, group walking, and spontaneous stop-and-go motions.

Key Results

  • State-of-the-Art Realism: CrowdES consistently outperformed algorithmic (SE-ORCA) and learnable (VAE) baselines across nearly all scene-level and agent-level metrics on all five datasets.
  • High Efficiency: The framework operates in real-time, requiring only 48 seconds to generate a highly complex, one-hour crowd scenario.
  • Zero-Shot Generalization: The model successfully generated plausible crowd dynamics in challenging, unseen environments, ranging from sparse university campuses to dense, large-scale urban landscapes like Midtown Manhattan.

Limitations and Future Work

While CrowdES excels at generating diverse and natural behavioral transitions, it occasionally suffers from a slightly higher collision rate than strict algorithmic collision-avoidance methods (like pure ORCA). This happens because the model prioritizes diverse behavioral switching (like stopping to talk) over absolute mathematical separation. The authors note that future iterations could benefit from tighter integration between neighborhood-aware features and safety constraints to minimize these edge-case collisions without sacrificing behavioral diversity.

Summary updated

BibTeX
@inproceedings{bae2025continuous,
  author = {Inhwan Bae and Junoh Lee and Hae-Gon Jeon},
  title = {{Continuous Locomotive Crowd Behavior Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02088},
}
Figure