Abstract
Object detection in Unmanned Aerial Vehicle (UAV) imagery faces a significant hurdle: the long-tail distribution of object classes. While common classes like cars are abundant, rare classes like tricycles or awnings are often overlooked by standard detectors. We present DSHNet (Dual Sampler and Head detection Network), a plug-and-play framework that employs object-level class-biased samplers and bilateral detection heads to specifically target tail-class performance without compromising head-class accuracy. Evaluated on VisDrone and UAVDT benchmarks, DSHNet achieves significant improvements in Average Precision (AP), particularly for rare categories, establishing a new state-of-the-art when combined with existing cropping methods.
The Long-Tail Challenge in UAV Imagery
Object detection from UAVs is notoriously difficult due to small object sizes and high-density clusters. However, a more fundamental statistical hurdle is the long-tail distribution. In typical drone datasets, a few "head" classes (e.g., cars) account for the vast majority of data, while "tail" classes (e.g., buses, tricycles) are extremely rare.
Standard "re-balancing" tricks used in general computer vision—such as repeating images containing rare classes—often fail in the UAV context. Because a single high-resolution drone image might contain one rare bus alongside 200 common cars, image-level repetition inadvertently over-trains the model on the common classes even further. This phenomenon, known as intra-image imbalance, necessitates a more granular approach.
The DSHNet Framework
To address this, the authors propose DSHNet, a dual-path architecture designed to handle head and tail classes separately but simultaneously at the proposal level.
1. Class-Biased Samplers (CBS)
Unlike standard random samplers, DSHNet utilizes two specialized samplers after the Region Proposal Network (RPN):
- CBS(T): Prioritizes sampling "tail" (rare) object proposals.
- CBS(H): Prioritizes sampling "head" (common) object proposals. This allows the model to balance classes within a single training batch, regardless of the original image-level distribution.
2. Bilateral Box Heads (BBH)
The network features two separate detection heads trained on these biased proposals. One head specializes in tail-class features, while the other focuses on head-class features. During training, a balance coefficient ($\lambda$) weights the loss between these two heads to ensure optimal learning across the entire distribution.
3. Inference Fusion
During inference, each head predicts only the classes it was specialized for. These predictions are then merged to produce the final detection results, ensuring specialization without the performance degradation typically seen when a single head tries to master an imbalanced dataset.
Experimental Results
The researchers evaluated DSHNet on two major UAV benchmarks: VisDrone (10 categories) and UAVDT (3 categories).
- Significant AP Gains: On VisDrone, DSHNet improved the Average Precision (AP) of a standard Faster R-CNN from 21.7 to 24.6.
- Tail Class Improvement: The most dramatic gains occurred in rare classes. For instance, using a Cascade R-CNN backbone, the AP for "tricycle" jumped from 14.8 to 19.1, and "bus" increased from 34.9 to 43.0.
- State-of-the-Art Synergy: When combined with DMNet (a popular cropping method for small objects), DSHNet achieved a new state-of-the-art performance of 30.3 AP on VisDrone.
Conclusion and Future Work
DSHNet demonstrates that object-level sampling is a powerful tool for overcoming intra-image imbalance in high-resolution UAV imagery. While the framework currently requires manual hyperparameter tuning for the balance coefficient and fixed head/tail class definitions, it provides a robust, plug-and-play solution for improving the reliability of drone-based detection systems. Future research may focus on automating class splits and dynamically adjusting loss weights during training.
Summary updated