COUNT Forest: CO-Voting Uncertain Number of Targets Using Random Forest for Crowd Density Estimation

Viet-Quoc Pham, Tatsuo Kozakaya, Osamu Yamaguchi, Ryuzo OkadaICCV 2015

Introduction

Crowd counting in dense public environments presents significant challenges for computer vision, primarily due to severe occlusions, perspective distortions, and complex backgrounds. While traditional detection-based methods often fail in these scenarios, "counting by regression" has emerged as a robust alternative. This approach estimates a continuous density map where the integral over a region yields the total count. However, mapping raw pixels to density is highly non-linear, and previous random forest implementations suffered from prohibitive memory requirements.

Methodology

The proposed COUNT Forest (CO-voting Uncertain Number of Targets) framework addresses these limitations by treating density estimation as a structured learning problem. The system processes image patches to predict local density, which is then aggregated into a global map.

The COUNT Forest inference pipeline, illustrating the transition from patch features to a global density map.

Coarse-to-Fine Forest Structure

A core innovation of COUNT Forest is its two-layered hierarchical splitting strategy. Unlike standard decision trees, this structure optimizes for both spatial arrangement and target quantity:

  • Upper Layer: Partitions patches based on the spatial distribution of objects using the Frobenius norm of location histograms. This groups patches where people are arranged similarly.
  • Lower Layer: Refines these groups based on the specific number of objects, utilizing Shannon entropy of label sizes.
Hierarchical structure of the COUNT Forest, featuring upper layers for spatial distribution and lower layers for object count refinement.

Efficiency and Optimization

To achieve real-time performance (30 fps) and a low memory footprint, the authors introduced two key techniques:

  1. Vector Labels: Instead of storing high-dimensional dense labels at leaf nodes, the model stores compact displacement vectors. This reduces memory usage by approximately 30x compared to previous state-of-the-art forest models, making it viable for embedded hardware.
  2. Forest Permutation: To maintain speed without sacrificing accuracy, the system employs a "circular shift" strategy. Only a subset of the forest processes any given patch, leveraging spatial redundancy in overlapping patches to maintain the "wisdom of the crowd" effect without the full computational cost.

Results and Discussion

The model was rigorously tested on standard benchmarks, including the Mall, UCSD, and Train Station datasets. On the Mall dataset, COUNT Forest achieved a Mean Absolute Error (MAE) of 2.50, representing a 27% improvement over the previous best of 3.43.

Beyond global counts, the model demonstrated high spatial accuracy. Localization metrics indicated that 96% of estimated individuals were within 50% of their ground-truth positions. Furthermore, the framework proved robust in multi-class scenarios, successfully counting both pedestrians and vehicles in complex intersection datasets by utilizing class layers and scale normalization.

Conclusion

COUNT Forest provides a highly efficient, accurate, and memory-lean solution for real-time crowd density estimation. By combining a hierarchical forest structure with optimized label storage and inference strategies, it bridges the gap between high-performance regression and the constraints of embedded hardware. Future work will focus on automating camera perspective map estimation to create a fully autonomous "plug-and-play" system.

Summary updated

BibTeX
@inproceedings{pham2015count,
  author = {Viet-Quoc Pham and Tatsuo Kozakaya and Osamu Yamaguchi and Ryuzo Okada},
  title = {{COUNT Forest: CO-Voting Uncertain Number of Targets Using Random Forest for Crowd Density Estimation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2015},
  doi = {10.1109/iccv.2015.372},
}
Figure