PCC Net: Perspective Crowd Counting via Spatial Convolutional Network

Junyu Gao, Qi Wang, Xuelong Li

This blog post summarizes the paper "PCC Net: Perspective Crowd Counting via Spatial Convolutional Network" by Junyu Gao, Qi Wang, and Xuelong Li, published in IEEE Transactions on Circuits and Systems for Video Technology.

TL;DR

PCC Net is a multi-task deep learning framework designed to count people in highly congested images by explicitly modeling perspective changes. By combining density estimation with random patch classification and foreground segmentation, it achieves state-of-the-art accuracy with a remarkably small model footprint (only 2.0MB).

What Problem Does This Paper Address?

Crowd counting from a single image is notoriously difficult due to three main factors:

  1. High Appearance Similarity: Background elements (like trees or complex architecture) often look like crowds to a standard neural network.
  2. Severe Congestion: In dense crowds, heads are tiny and overlap, making individual detection nearly impossible.
  3. Perspective Distortion: This is the "big one." In a 2D image, people further from the camera appear smaller and more densely packed. Most models focus on local features and fail to understand this global "trend" of density changing across the frame.

The authors argue that to count accurately, a model needs to understand not just what a person looks like, but how the scene's geometry affects their appearance.

Methods

The authors propose the Perspective Crowd Counting Network (PCC Net), which uses a three-pronged multi-task approach:

  • Density Map Estimation (DME): The core task that predicts a pixel-level map where the sum of all values equals the total count.
  • Random High-level Density Classification (R-HDC): This module extracts global features. During training, it randomly crops regions of interest (ROIs) and classifies them into ten density levels. This acts as a powerful data augmentation technique and helps the model learn global context.
  • Fore-/Background Segmentation (FBS): This branch learns to distinguish between "human" regions and "background" regions. It effectively acts as a filter to prevent the model from "hallucinating" people in trees or buildings.

The DULR Module

The most novel component is the DULR module (Down, Up, Left, Right). Inspired by Spatial CNNs, it propagates information across the feature map in four directions. This allows the network to "see" the gradual change in perspective across the image, effectively encoding the geometric layout of the scene into the density estimation process.

Datasets

The model was validated on five major benchmarks:

  • ShanghaiTech (Part A & B): Standard datasets for diverse crowd scenes.
  • UCF_CC_50: A small but extremely dense dataset (averaging 1,279 people per image).
  • WorldExpo’10: Focused on cross-scene surveillance.
  • UCF-QNRF: A large-scale, high-resolution dataset with massive counts (up to 12,865 people in one image).

Key Insights and Ideas

  • Perspective as a Global Trend: Instead of just trying to handle different scales locally, the DULR module treats perspective as a global spatial relationship. By passing information across rows and columns, the model learns that density typically increases or decreases in specific directions.
  • Segmentation as Noise Reduction: The authors found that simply adding a segmentation task significantly reduced errors in background regions. By forcing the model to decide "is this even a foreground object?" it becomes much more robust to "cluttered" environments.
  • Efficiency Matters: Despite its multi-task complexity, PCC Net is incredibly lean. At 2.0MB and 0.55M parameters, it is orders of magnitude smaller than competitors like CP-CNN (>500MB), making it far more suitable for real-world deployment on edge devices.

Key Results

PCC Net demonstrated superior performance across the board, particularly in congested scenes:

  • ShanghaiTech Part A: Achieved a Mean Absolute Error (MAE) of 73.5, outperforming the then-SOTA CSRNet.
  • UCF_CC_50: Showed a massive improvement, reducing MAE to 240.0 (a 26.1-point jump over previous bests).
  • UCF-QNRF: Achieved an MAE of 148.7, proving its scalability to massive crowds.
  • Qualitative Success: Visualization shows that while other models (like CSRNet) often over-estimate density in background trees, PCC Net remains "calm" in the background while accurately capturing the steep density gradients in the foreground.

Limitations and Future Work

The authors note that the DULR module's impact is most significant in high-density scenes with clear perspective shifts. In low-density, uniform scenes, the benefits are more limited.

For future work, they suggest exploring invariant features that remain consistent across both low and high-density regions to further bridge the gap in performance for extremely varied environments. They also aim to explore more complex scene geometries beyond simple four-way spatial propagation.

Summary updated

Abstract

Crowd counting from a single image is a challenging task due to high appearance similarity, perspective changes, and severe congestion. Many methods only focus on the local appearance features and they cannot handle the aforementioned challenges. In order to tackle them, we propose a perspective crowd counting network (PCC Net), which consists of three parts: 1) density map estimation (DME) focuses on learning very local features of density map estimation; 2) random high-level density classification (R-HDC) extracts global features to predict the coarse density labels of random patches in images; and 3) fore-/background segmentation (FBS) encodes mid-level features to segments the foreground and background. Besides, the Down, Up, Left, and Right (DULR) module is embedded in PCC Net to encode the perspective changes on four directions (DULR). The proposed PCC Net is verified on five mainstream datasets, which achieves the state-of-the-art performance on the one and attains the competitive results on the other four datasets. The source code is available at https://github.com/gjy3035/PCC-Net.
BibTeX
@article{gao2020pcc,
  author = {Junyu Gao and Qi Wang and Xuelong Li},
  title = {{PCC Net: Perspective Crowd Counting via Spatial Convolutional Network}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2020},
  url = {https://openreview.net/forum?id=hDjiaw611i},
}

Loading related content...

Figure