Abstract
Object counting is a critical task in computer vision, traditionally focused on estimating the number of objects in a single category. However, real-world scenes often contain multiple object classes. While object detection can handle multi-class counting, it requires expensive bounding-box annotations. Conversely, mainstream regression-based counting methods use cheaper point-level annotations but struggle to distinguish between overlapping categories. This paper introduces the Dilated-Scale-Aware Attention ConvNet (DSACA), a novel framework that achieves accurate multi-class object counting using only point-level annotations. By integrating a Dilated-Scale-Aware Module (DSAM) and a Category-Attention Module (CAM), the proposed method effectively handles scale variations and suppresses inter-class interference. Extensive experiments on the VisDrone-DET and RSOC benchmarks demonstrate that DSACA achieves state-of-the-art performance.
The Challenge of Multi-Class Counting
In dense scenes like traffic intersections or crowded public spaces, counting objects is typically performed using density map regression. This approach relies on point-level annotations—a single dot per object—which are significantly easier and cheaper to produce than the bounding boxes required for object detection.
However, a major hurdle exists for multi-class scenarios. In standard regression-based methods, the features of different object categories (e.g., pedestrians and vehicles) often bleed into one another in the shared feature space. This leads to "inter-class interference," where the network cannot accurately separate the counts for individual categories, even if it can estimate the total count correctly.
Methodology: DSAM and CAM
To overcome these limitations, the DSACA architecture (built on a VGG-16 backbone) introduces two specialized components designed to handle scale and category separation simultaneously.
1. Dilated-Scale-Aware Module (DSAM)
Objects in a single image can vary drastically in size due to perspective distortion. DSAM addresses this by extracting feature maps from multiple depths of the network and applying dilated convolutions with varying rates. This allows the model to maintain a high resolution while expanding its receptive field, effectively capturing both tiny, distant objects and large, foreground objects without increasing the parameter count.
2. Category-Attention Module (CAM)
CAM is the primary solution to the interference problem. It generates spatial attention masks for each specific category. To train this module without bounding boxes, the authors use a "distance transform" on the point annotations to create pseudo-ground-truth masks. These masks act as filters: they highlight regions belonging to a specific class and suppress activations from other classes. By multiplying the estimated density map with these masks, the network can isolate and count each category independently.
Experimental Results
The authors evaluated DSACA on two challenging datasets adapted for multi-class point counting: VisDrone-DET (drone-based traffic) and RSOC (satellite imagery).
- VisDrone-DET: DSACA achieved a Mean Absolute Error (MAE) of 4.030, representing a 35.3% improvement over the previous best adapted regression model (CAN).
- RSOC: The model proved particularly robust against background noise in satellite images, achieving an overall MAE of 42.432. On the difficult "Small-Vehicle" category, it improved accuracy by 31% compared to baseline methods.
Ablation studies confirmed the necessity of both modules. Adding DSAM to the baseline reduced the error significantly, and the subsequent addition of CAM provided the final boost needed to reach state-of-the-art levels. Visualizations show that CAM successfully eliminates "ghost" counts where one class was previously mistaken for another.
Conclusion
DSACA demonstrates that high-fidelity multi-class object counting is possible without the prohibitive cost of bounding-box labels. By combining scale-aware feature extraction with category-specific attention, the model provides a scalable and efficient solution for complex, multi-category scene analysis. Future work will focus on refining the pseudo-label generation process and exploring how learning correlations between different classes can further enhance counting precision.
Summary updated