Introduction
Object counting is a fundamental task in computer vision with applications ranging from urban planning to environmental monitoring. While significant progress has been made in single-category counting (e.g., crowd counting), real-world scenarios often require the simultaneous counting of multiple object classes, such as vehicles and pedestrians in traffic scenes. This paper presents DSACA, a novel convolutional neural network designed for high-accuracy multi-class object counting using efficient point-level annotations.
The Annotation Bottleneck
Existing approaches to multi-class counting generally fall into two categories, each with significant drawbacks:
- Detection-based methods: These rely on bounding box annotations. While accurate, drawing boxes around every object in dense scenes is prohibitively expensive and labor-intensive.
- Regression-based methods: These use simple point annotations to generate density maps. Although much cheaper to produce, mainstream regression methods typically struggle to differentiate between classes, often merging them into a single total count and losing category-specific information.
The authors address this bottleneck by developing a system that provides the class-specific granularity of detection while maintaining the low cost of point-level regression.
The DSACA Architecture
The proposed DSACA (Dilated-Scale-Aware Category-Attention ConvNet) architecture utilizes a VGG-16 backbone and introduces two innovative modules to handle the complexities of multi-class scenes:
Dilated-Scale-Aware Module (DSAM)
Objects in a single image can vary significantly in size due to perspective effects. DSAM addresses this by fusing features from multiple network layers and applying varying dilation rates. This allows the model to capture a broad range of object scales, from distant, tiny pedestrians to large, foreground vehicles, within a unified framework.
Category-Attention Module (CAM)
A major challenge in multi-class counting is "inter-class interference," where features from different categories overlap in the shared feature space. The CAM generates spatial attention masks for each specific category. These masks act as filters that suppress noise from irrelevant classes, ensuring that the density map for one category (e.g., "cars") is not contaminated by another (e.g., "pedestrians").
The model is trained using a multi-task loss function: an $L_2$ loss to ensure density map accuracy and a Binary Cross Entropy (BCE) loss to optimize the category-specific attention masks.
Experimental Evaluation
The researchers evaluated DSACA on two challenging datasets adapted for multi-class point counting:
- VisDrone-DET: A drone-based dataset where categories were merged into Vehicle and Person groups.
- RSOC (Remote Sensing Object Counting): A satellite imagery dataset used to test the model's ability to distinguish between similar classes (e.g., small vs. large vehicles) against noisy backgrounds.
Key Results
DSACA significantly outperformed state-of-the-art baselines like CSRNet and CAN:
- VisDrone-DET: Achieved a 35.3% improvement in Mean Absolute Error (MAE) and a 28.8% improvement in Mean Squared Error (MSE) over the previous best-performing baseline.
- RSOC: Reduced the MAE for the challenging small-vehicle category by 31.0%.
- Qualitative Analysis: Visualizations confirm that the Category-Attention Module effectively eliminates "ghost" responses, producing clean, class-separated density maps even in highly congested areas.
Conclusion and Future Work
DSACA demonstrates that point-level supervision, when augmented with scale-aware features and spatial attention, is a powerful and cost-effective alternative to bounding-box-based detection for multi-class counting. While the model currently treats classes as independent, future research could explore leveraging inter-class correlations to further enhance counting accuracy in extremely dense environments.
Summary updated