Learning Extremely High Density Crowds as Active Matters

Feixiang He, Jiangbei Yue, Jialin Zhu, Armin Seyfried, Dan Casas, Julien Pettré, He Wang

TL;DR

This paper introduces CrowdMPM, a novel differentiable physics framework that models extremely high-density crowds ($\ge 5 \text{ people/m}^2$) as "active matter"—a continuum of self-propelled particles governed by stochastic forces. By combining neural networks with a custom Material Point Method (MPM), the system accurately forecasts complex crowd dynamics and simulates "what-if" safety scenarios directly from low-quality, in-the-wild videos.

What Problem Does This Paper Address?

Predicting how crowds move in extremely dense scenarios (like music festivals, pilgrimages, or emergency evacuations) is vital for public safety, yet it remains an open challenge in computer vision. When crowd density exceeds 5 people per square meter, the dynamics become violently chaotic and fluid-like, occasionally triggering dangerous spatiotemporal shockwaves or crowd crushes.

Existing methods fall short in two main ways:

  1. Data Scarcity and Noise: High-density crowd data usually comes from distant, low-quality CCTV cameras. Individual tracking or head-counting (agent-based modeling) becomes practically impossible.
  2. Modeling Limitations: Purely data-driven deep learning models act as black boxes that lack physical interpretability and struggle with long-horizon forecasting. Conversely, traditional fluid dynamics models are explicit but rigid, failing to capture the autonomous, self-propelled nature of human beings.

Methods

The authors bridge this gap by treating the crowd as a "crowd material"—a specialized form of active matter. They implement a hybrid Eulerian-Lagrangian scheme called CrowdMPM, where a background Eulerian grid handles space discretization while Lagrangian particles represent individuals.

Figure 1. Overview. From left to right: optical flow estimation, velocity field generation, initial particle sampling, crowd simulation and loss calculation.

Key innovations include:

  • New Learnable Stress Tensor ($\sigma^{cm}$): Unlike standard physical materials (like water), crowd material exhibits elastic asymmetry (easy to scatter, hard to compress), exponential resistance (repulsive forces spike as personal space vanishes), and compression dominance (low resistance to shearing or rotating past one another).
  • Toner-Tu (TT) Equation Integration: The physics model incorporates the TT equation to account for the collective dynamics of self-propelled agents and velocity saturation.
  • Neural Stochastic Differential Equations (SDEs): Neural networks parameterize the unknown physical constants (like Young's modulus) and learn active forces. A Conditional Variational Autoencoder (CVAE) is used to decode the complex, non-Gaussian stochastic forces driving individual behaviors.
Standard MPM steps modified to incorporate particle-to-particle traction modeling.

Datasets

The framework was evaluated on four distinct high-density real-world datasets featuring diverse crowd dynamics:

  • Evacuation Drill: Controlled lab videos of ~100 participants rushing through an exit, categorized by competitiveness levels: Low (Drill1), Moderate (Drill2), and High (Drill3).
  • Hajj: YouTube footage of pilgrims peacefully circulating the Kaaba in a counter-clockwise direction.
  • Hellfest: YouTube videos of a high-speed concert mosh pit where two groups intentionally collide.
  • Marathon: A U-shaped road racing scenario selected from the UCF Dataset.
Figure 3. Four crowd scenes with diverse dynamics. The yellow arrows indicate the main movement.

Key Insights and Ideas

  • The Power of Physics Priors: Because the model learns a parameterized partial differential equation (PDE) rather than raw pixel translations, it is incredibly parameter-efficient. CrowdMPM uses just 3.06M parameters and a single optical flow frame as input, drastically outperforming massive deep learning baselines (up to 44M parameters) that require long sequences of frames.
  • Inherent Noise Filtering: By projecting noisy optical flow vectors onto a physical grid (the Particle-to-Grid step), the model naturally filters out high-frequency visual noise (e.g., lighting changes, compression artifacts), enforcing mass and momentum conservation.
  • Continuous-Time Flexibility: Unlike discrete-time deep learning models that require perfectly spaced frame sequences, CrowdMPM operates in continuous time. It can easily train on data with missing frames or temporal discontinuities (e.g., masking up to 70% of frames) without losing accuracy.

Key Results

CrowdMPM was compared against several state-of-the-art baselines, including video prediction networks (SimVP, TAU) and physics-informed neural networks (HINN).

Quantitative Performance

CrowdMPM achieved the highest performance across almost all datasets for both velocity field error ($Err_{vel}$) and optical flow error ($Err_{flow}$), demonstrating a substantial advantage in long-horizon forecasting. For instance, it achieved up to an 18.69% improvement in $Err_{vel}$ on the Drill2 dataset.

Figure 4. Comparison on velocity field and optical flow. The right and left vertical axes are for PredFrow and the rest methods respectively, due to the scale of PredFlow results is much larger. Vertical axes are logscaled.

Qualitative "What-If" Simulations

Because the model learns an interpretable physical system, it can function as a simulator for architectural design. The authors tested alternative environments on the learned Drill2 behavior, demonstrating that widening an exit or strategically placing a pillar obstacle in front of a bottleneck successfully reduces crowd stress.

Figure 7. Evacuation simulations in the original scene (top), with a wider exit (middle) and a pillar (bottom). The color indicates the magnitude of stress.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Single-View Constraints: Relying on a single-view video limits the model's ability to generalize across different camera angles. Incorporating multi-view perspectives could resolve this.
  • Simplified Behavioral Modeling: The current framework does not explicitly account for structured social behaviors like queuing, distinct social grouping, lane formation, or interactions with non-pedestrian obstacles like vehicles.
  • Unseen Environments: Generalizing to entirely unseen architectural layouts without retraining remains an open challenge.

Summary updated

BibTeX
@inproceedings{he2025learning,
  author = {Feixiang He and Jiangbei Yue and Jialin Zhu and Armin Seyfried and Dan Casas and Julien Pettré and He Wang},
  title = {{Learning Extremely High Density Crowds as Active Matters}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00059},
}
Figure