FusionCount: Efficient Crowd Counting via Multiscale Feature Fusion

Yiming Ma, Victor Sanchez, Tanaya GuhaarXiv 2022 · DOI

TL;DR

FusionCount is a novel crowd counting architecture that achieves state-of-the-art accuracy with significantly lower computational costs by adaptively fusing feature maps from throughout the encoder. By leveraging the inherent scale diversity of early-stage features and introducing a saliency-enhancing channel reduction block, it effectively handles extreme perspective distortion without the need for heavy, specialized multiscale modules.

What Problem Does This Paper Address?

Crowd counting in real-world scenes is notoriously difficult due to perspective distortion. A single image can contain people at vastly different scales—from large figures in the foreground to tiny dots in the background.

Standard deep learning approaches use an encoder-decoder structure. To handle scale variation, most state-of-the-art (SOTA) models append a "multiscale module" (like spatial pyramid pooling) after the encoder. However, these modules are often computationally expensive and only cover a limited range of receptive field sizes. Furthermore, they often ignore the rich, multiscale information already generated by the shallower layers of the encoder. The authors of FusionCount aimed to create a model that is both more accurate and more efficient by better utilizing these "underused" features.

Methods

FusionCount introduces two primary innovations to the standard encoder-decoder pipeline:

  1. Adaptive Feature Fusion: Instead of just using the final output of the encoder, FusionCount collects 15 different feature maps from across a VGG-16 backbone. These maps are grouped by spatial resolution. Within each group, the model learns to fuse features by calculating "contrast features"—the difference between a convolutional feature and a reference pooling feature. These contrasts help the model learn spatial weights to adaptively average features, covering a massive range of receptive field sizes (from 6 to 192 pixels).

    Fig. 1. The encoder of our proposed model FusionCount: Only the first 17 layers of the original VGG-16 are leveraged, and feature maps are collected starting from the third layer. Numbers in purple are features’ receptive field sizes and those tuples (h × w × c) in gray indicate their sizes, assuming the input image has the size of 224 × 224 × 3. Features with the same spatial resolution are grouped together for the first-phase fusion.
  2. Two-Stream Channel Reduction Block: During the decoding phase, the model must reduce the number of feature channels to eventually produce a 1D density map. Traditional $1 \times 1$ convolutions can lose detail. FusionCount proposes a new block that combines a standard $1 \times 1$ convolution path with a dilated convolution path. This dual-stream approach helps extract salient information and maintain spatial resolution while reducing dimensionality.

    Fig. 3. The decoding process of FusionCount: starting from f 4, the proposed channel reduction module first decreases its number of channels. The result is then upsampled and fused with another firs-phase multiscale feature f 3.

Datasets

The model was evaluated on two widely used benchmark datasets:

  • ShanghaiTech Part A: Contains 482 images of highly congested crowds collected from the internet, featuring diverse resolutions and extreme scale variations.
  • ShanghaiTech Part B: Consists of 716 images taken from surveillance views in shopping streets. These have a fixed resolution ($768 \times 1024$) and are generally less crowded than Part A.

Key Insights and Ideas

  • Reusing "Free" Information: The most elegant insight is that the encoder itself is a multiscale feature generator. By intelligently fusing early and late layers, the authors avoid the need for heavy, dedicated multiscale modules, leading to a leaner model.
  • Contrast-Based Weighting: Simply averaging features isn't enough. By using the difference between features (contrast) to learn weights, the model can better identify boundaries and determine which receptive field size is most important for a specific part of the image.
  • Saliency in the Decoder: The two-stream channel reduction block proves that how you shrink feature maps matters. Adding a dilated path allows the decoder to "see" more context, which is crucial for distinguishing people from background noise in dense crowds.

Key Results

FusionCount demonstrates that efficiency doesn't have to come at the cost of performance:

  • State-of-the-Art Accuracy: On the ShanghaiTech Part B dataset, FusionCount achieved a Mean Absolute Error (MAE) of 6.9, outperforming previous leaders like DM-Count (7.4) and CAN (7.8).
  • Competitive Performance: On the more challenging ShanghaiTech Part A, it achieved the second-lowest MAE (62.2), remaining highly competitive with much heavier models.
  • Computational Efficiency: FusionCount requires only 815.00 G Mult-Adds for a standard HD image, making it more efficient than CSRNet (856.99 G) and CAN (908.05 G).
Fig. 4. Qualitative results of FusionCount: Four ground-truth den- sity maps are visualised along with their estimations by our model FusionCount. The top two images are from ShanghaiTech A and the bottom two are from ShanghaiTech B. Ground-truth annotations are marked by blue dots, and the orange shades represent the estimated densities. We also report ‘GT’ i.e., ground-truth counts of people in the images, ‘Pred’ i.e., the predicted counts. ‘RE’ denotes the correpsonding relateive error.

Limitations and Future Work

The authors note that while their first-stage fusion (in the encoder) is highly effective at handling scale, the current decoding process could be further improved. Specifically, the model does not yet explicitly account for contextual information during the final stages of feature fusion in the decoder. The authors plan to explore how incorporating global or local context during decoding can help the model deal even more effectively with continuous scale changes across an image.

Summary updated

BibTeX
@misc{ma2022fusioncount,
  author = {Yiming Ma and Victor Sanchez and Tanaya Guha},
  title = {{FusionCount: Efficient Crowd Counting via Multiscale Feature Fusion}},
  year = {2022},
  eprint = {2202.13660},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.13660},
}
Figure