Motion-guided Non-local Spatial-Temporal Network for Video Crowd Counting

Haoyue Bai, S.-h. Gary ChanarXiv 2021

Abstract

Monet (Motion-guided Non-local Spatial-Temporal Network) is a novel framework designed to enhance video crowd counting by leveraging motion flow to guide a non-local neural network. To address data scarcity, the authors also introduce VidCrowd, a large-scale, high-resolution dataset captured via drones. Monet achieves state-of-the-art performance across multiple benchmarks by effectively capturing long-range temporal correlations and filtering background noise using motion priors.

Introduction

Crowd counting—estimating the number of people in a scene—is vital for public safety and urban planning. While researchers have made great strides in counting people in still images, video crowd counting remains a significant challenge. Existing methods often struggle with capturing long-range temporal correlations, treating frames independently or using local operators like 3D convolutions that fail to track crowd continuity over time. Furthermore, the field has been hampered by a lack of high-quality, diverse video datasets.

The Monet Architecture

The authors propose Monet, a three-step architecture designed to exploit temporal information through motion guidance:

  1. Motion Estimation: Utilizing a pre-trained PWCNet, the model calculates "people flow" (optical flow) between consecutive frames. This serves as a coarse segmentation mask, identifying regions of motion and allowing the network to ignore static background noise.
  2. Non-local Spatial-Temporal Network: To overcome the limited receptive field of standard CNNs, Monet incorporates non-local modules. These modules compute relationships between pixels across distant spatial and temporal locations, which is essential for tracking dynamics in a video sequence.
  3. Motion-guided Refinement: Motion priors and non-local features are fused through residual attention blocks. The system is trained end-to-end with a fused loss function optimizing both density map accuracy and motion segmentation quality.
The Monet architecture uses motion flow from PWCNet to guide a non-local spatial-temporal network for density estimation.

Datasets: Introducing VidCrowd

A core contribution of this work is VidCrowd, a massive high-resolution dataset (2560 × 1440) containing 9,000 frames and over 1.15 million head annotations. Captured via drones across 20 different scenes, it offers diverse lighting (day/night) and density levels, providing a more realistic benchmark than older datasets like Mall (2,000 frames, surveillance) or UCSD (2,000 frames, campus walkway).

Experimental Results

Monet achieved state-of-the-art (SOTA) performance across all tested benchmarks. On the new VidCrowd dataset, it significantly outperformed existing methods like ConvLSTM, achieving an MAE of 15.06.

Comparison of Monet against other state-of-the-art methods on the VidCrowd dataset, showing superior MAE and MSE.

Key results across benchmarks include:

  • VidCrowd: MAE of 15.06 (vs. 17.23 for ConvLSTM).
  • Mall Dataset: MAE of 1.54 (vs. 1.64 for E3D).
  • UCSD Dataset: MAE of 1.17 (vs. 1.30 for ConvLSTM).

Ablation studies confirmed that both motion guidance and non-local modules are critical for these performance gains, as removing either component led to a measurable drop in accuracy.

Conclusion

Monet demonstrates that using motion as a "filter" effectively denoises input for crowd counting. By breaking the "local" barrier with non-local modules, the model captures global context necessary for fast-moving crowds. While the reliance on optical flow may be sensitive to extreme camera motion, Monet sets a new standard for video crowd analysis, supported by the robust VidCrowd dataset.

Summary updated

BibTeX
@misc{bai2021motion,
  author = {Haoyue Bai and S.-H. Gary Chan},
  title = {{Motion-guided Non-local Spatial-Temporal Network for Video Crowd Counting}},
  year = {2021},
  eprint = {2104.13946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.13946},
}
Figure