Iterative Crowd Counting

Viresh Ranjan, Hieu Le, Minh Hoai

Abstract

In this work, we tackle the problem of crowd counting in images. We present a Convolutional Neural Network (CNN) based density estimation approach to solve this problem. Predicting a high resolution density map in one go is a challenging task. Hence, we present a two branch CNN architecture for generating high resolution density maps, where the first branch generates a low resolution density map, and the second branch incorporates the low resolution prediction and feature maps from the first branch to generate a high resolution density map. We also propose a multi-stage extension of our approach where each stage in the pipeline utilizes the predictions from all the previous stages. Empirical comparison with the previous state-of-the-art crowd counting methods shows that our method achieves the lowest mean absolute error on three challenging crowd counting benchmarks: Shanghaitech, WorldExpo’10, and UCF datasets.

Introduction

Crowd counting in dense images is notoriously difficult due to extreme variations in scale and perspective. A person in the foreground might occupy hundreds of pixels, while someone in the background is just a tiny dot. Manual counting is slow and humans are biologically limited at "subitizing" (instantly recognizing the number of items) once a group exceeds a few individuals.

From a computer vision perspective, traditional "detection-then-counting" methods fail in dense crowds because individual bodies overlap. Modern methods use density estimation, where the network predicts a heat map of people. However, predicting a high-resolution density map in a single pass is computationally taxing and often inaccurate. This paper introduces ic-CNN, an iterative convolutional neural network that breaks the problem into stages: first generating a low-resolution "coarse" density map and then refining it into a high-resolution "fine" map.

Methods

The core of the paper is the Iterative Counting CNN (ic-CNN). Instead of one giant network, the authors utilize a two-branch architecture designed for coarse-to-fine refinement.

The ic-CNN architecture featuring low-resolution (LR) and high-resolution (HR) branches.
  1. Low-Resolution Branch (LR-CNN): This branch takes the input image and predicts a density map at 1/4th the original resolution. This acts as a spatial prior, identifying where the "blobs" of people are.
  2. High-Resolution Branch (HR-CNN): This branch takes the original image plus the feature maps and the low-resolution prediction from the first branch. It uses this context to produce a final, full-resolution density map.

Multi-stage Extension: The authors also propose stacking these ic-CNN blocks. In a multi-stage setup, each subsequent stage receives the predictions from all previous stages, allowing the model to progressively correct its errors. The model is trained by minimizing the squared error between the predicted and ground-truth density maps for both the low and high-resolution outputs.

Datasets and Evaluation

The authors evaluated their model on three major benchmarks:

  • Shanghaitech (Part A & B): A large-scale dataset with nearly 1,200 images and over 330,000 annotations. Part A contains high-density internet images; Part B contains lower-density street scenes.
  • WorldExpo ’10: Consists of 1,132 video sequences from 108 surveillance cameras.
  • UCF Crowd Counting: A smaller but very challenging dataset with extremely high crowd counts (averaging 1,280 people per image).

Key Results

The ic-CNN achieved impressive quantitative results across the board. On Shanghaitech Part B, the model achieved a 48.3% improvement in Mean Absolute Error (MAE) over the previous state-of-the-art. On the UCF dataset, it reduced the MAE from 295.8 to 260.9, a significant jump for such a dense dataset.

Performance comparison of ic-CNN against other state-of-the-art methods on the Shanghaitech dataset.

Beyond accuracy, efficiency is a major advantage. Unlike previous "Multi-Column" networks (MCNN) that use three or more parallel branches with different filter sizes to handle scale, ic-CNN uses just two branches. This makes it significantly leaner—ic-CNN has roughly 7.9 million parameters, compared to the 63 million in the previous state-of-the-art (CP-CNN).

Conclusion

The "coarse-to-fine" approach is key to ic-CNN's success. The low-resolution map provides a global view of crowd distribution, which helps the high-resolution branch focus on local details without getting lost in the noise. While the model achieves state-of-the-art performance, it still faces challenges with semantic confusion, occasionally misclassifying high-texture objects like tree leaves as people. Future work may involve incorporating more semantic information to help the network distinguish between dense crowds and similar-looking background textures.

Summary updated

BibTeX
@inproceedings{ranjan2018iterative,
  author = {Viresh Ranjan and Hieu Le and Minh Hoai},
  title = {{Iterative Crowd Counting}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=SkbBU9-_WB},
}
Figure