Abstract
We present an unsupervised learning method for dense crowd count estimation. Marred by large variability in appearance of people and extreme overlap in crowds, enumerating people proves to be a difficult task even for humans. This implies creating large-scale annotated crowd data is expensive and directly takes a toll on the performance of existing CNN based counting models on account of small datasets. Motivated by these challenges, we develop Grid Winner-Take-All (GWTA) autoencoder to learn several layers of useful filters from unlabeled crowd images. Our GWTA approach divides a convolution layer spatially into a grid of cells. Within each cell, only the maximally activated neuron is allowed to update the filter. Almost 99.9% of the parameters of the proposed model are trained without any labeled data while the rest 0.1% are tuned with supervision. The model achieves superior results compared to other unsupervised methods and stays reasonably close to the accuracy of supervised baseline. Furthermore, we present comparisons and analyses regarding the quality of learned features across various models.
Introduction
Counting people in dense crowds is a significant challenge for both human annotators and automated systems. In high-density scenarios, individuals often appear as indistinct blobs due to severe occlusion and perspective distortion. Training standard Convolutional Neural Networks (CNNs) for this task typically requires humans to manually annotate every single head in thousands of images—a process that is expensive, slow, and prone to error.
This paper introduces an "almost unsupervised" approach that addresses the bottleneck of high-quality annotated data. By training 99.9% of its parameters without human labels, the proposed model learns to identify complex human patterns in crowded scenes, achieving results that rival fully supervised models while requiring a fraction of the annotation effort.
The Grid Winner-Take-All (GWTA) Autoencoder
Traditional unsupervised methods, such as standard autoencoders, often fall into the "identity trap," where they learn simple identity filters that pass pixels through without extracting meaningful structural information. To combat this, the authors propose the Grid Winner-Take-All (GWTA) autoencoder.
The GWTA mechanism works through several key steps:
- Spatial Gridding: A convolutional layer is divided into a grid of cells (e.g., $32 \times 32$ pixels).
- Competitive Activation: Within each cell, only the neuron with the highest activation (the "winner") is allowed to update its weights during training. All other activations are zeroed out.
- Forced Specialization: This sparsity forces the encoder to learn highly specialized, non-trivial features—such as the curve of a shoulder or the shape of a head—to enable the decoder to reconstruct the image from a limited set of winners.
- Stage-wise Training: The model is trained layer-by-layer. Once the first four layers (99.9% of parameters) are trained on unlabeled images, they are frozen. Only the final two layers (0.1% of parameters) are tuned using labeled data to map these features to a crowd density map.
Experimental Results
The model was evaluated on two major benchmarks: ShanghaiTech (Part A), containing 482 images with ~200,000 annotations, and UCF_CC_50, a challenging 50-image dataset with counts up to 4,500 people per image.
Quantitative Performance
On the ShanghaiTech dataset, the GWTA-CCNN achieved a Mean Absolute Error (MAE) of 154.7. While the fully supervised baseline scored 124.6, the GWTA version significantly outperformed other unsupervised methods like standard Autoencoders (162.1) and Denoising Autoencoders (181.9). Notably, when labeled data is extremely scarce (e.g., only 10-20% of the dataset is available), the GWTA model actually outperforms fully supervised models.
Qualitative Analysis
Visualizations demonstrate that GWTA prevents the network from taking the "easy way out." Unlike normal autoencoders that produce blurry reconstructions of the input, GWTA reconstructions highlight learned structural features that align closely with the patterns needed for counting.
Conclusion
The GWTA-CCNN demonstrates that it is possible to learn robust features for crowd counting with minimal supervision. By enforcing spatial competition, the model avoids identity mapping and learns features that are naturally suited for density estimation. While a 25% performance gap remains compared to state-of-the-art supervised models, the data efficiency of this approach offers a promising path for scaling crowd counting to even larger, unannotated datasets.
Summary updated