Abstract
In this paper, we propose a novel regression-based RGBD crowd counting method. Compared with previous RGBD crowd counting methods which mainly exploit depth cues to facilitate person/head detection, our approach adopts density map regression and is more robust to severe occlusion under dense crowded scenarios. We develop a cascaded depth-aware counting network (Cascaded-DCNet) that jointly performs head segmentation and density map regression. Our network explicitly feeds the depth map at each stage so that depth cues are sufficiently exploited. The multi-task strategy allows the network to explicitly attend to foreground regions of a crowd scene and improve density regression. To generate the ground truth of head segmentation and density map, we propose a head scale estimation method according to basic geometric assumptions and camera projection functions. Experiments on two public RGBD crowd counting benchmarks, ShanghaiTechRGBD and MICC, show that the proposed method achieves new state-of-the-art results. Further, our method can be easily extended to RGB datasets, achieving comparable performance on WorldExpo'10 and UCF-QNRF.
Introduction
Accurately counting people in dense crowds is notoriously difficult due to severe occlusion, perspective distortion, and cluttered backgrounds. While adding depth sensors (RGB-D) helps, existing methods usually use depth to draw bounding boxes around people (detection). This approach often fails in ultra-dense crowds where only tiny, overlapping heads are visible.
Furthermore, real-world depth maps are often noisy and missing data right where it matters most: on people's heads and hair. Previous regression-based methods haven't fully exploited depth data, often ignoring it in the actual regression layers or failing to handle missing depth values effectively, leading to undercounting in dense scenarios.
Methodology: Cascaded-DCNet
The proposed Cascaded-DCNet is a two-stage network that shifts away from bounding-box detection in favor of density map regression.
Cascaded Architecture and Multi-Task Learning
The network operates in two stages. Stage 1 takes RGB and Depth inputs to generate an initial head segmentation mask and density map. Stage 2 takes these initial predictions, combines them with the depth map again, and refines the output. By simultaneously predicting a density map (for counting) and a head segmentation mask, the network is forced to pay attention to foreground head regions, which acts as an internal attention mechanism for the density regressor.
Depth Refinement and Scale-Awareness
Because raw depth maps often have "holes" over people's heads, we utilize a geometric trick. Assuming all heads in a crowd lie roughly on a single 3D plane, we use the heads that do have valid depth data to calculate the camera-to-plane projection. This mathematical plane is then used to infer missing depth values. Using this refined depth, we calculate the actual physical scale (radius) of each head. Instead of using a standard fixed-size Gaussian blur for ground truth, we use these custom scales, making the model naturally robust to perspective distortion.
Experimental Results
The model was evaluated on primary RGB-D benchmarks and generalized to RGB-only datasets:
- ShanghaiTechRGBD: Achieved a Mean Absolute Error (MAE) of 4.26 and Mean Squared Error (MSE) of 6.27, significantly outperforming the previous state-of-the-art (RDNet: MAE 4.96).
- MICC: Achieved an MAE of 0.836 and MSE of 1.031, again surpassing previous benchmarks.
- Ablation Studies: Results confirmed that every component contributed to success. Adding multi-task segmentation improved MAE by 0.27, while the cascaded architecture provided a massive 1.37 MAE improvement over a single-stage baseline.
- RGB Generalization: Even without depth inputs, the model achieved highly competitive results on WorldExpo'10 (MAE 7.05) and UCF-QNRF (MAE 101.3).
Conclusion and Future Work
Cascaded-DCNet demonstrates that geometry can effectively fix sensor limitations and that multi-task learning provides a powerful attention mechanism for regression tasks. While the current depth refinement relies on a single-plane assumption—which might struggle in environments like stadium seating—the results on metropolitan streets and indoor surveillance are state-of-the-art. Future work will explore integrating monocular depth estimation to provide precise head scales for datasets where hardware depth sensors are unavailable.
Summary updated