Dot Distance for Tiny Object Detection in Aerial Images

Chang Xu, Jinwang Wang, Wen Yang, Lei Yu

Abstract

Detecting tiny objects—those smaller than 16×16 pixels—remains a significant challenge in computer vision, particularly in aerial imagery. Standard detection metrics like Intersection over Union (IoU) are highly sensitive to small pixel offsets in this regime, causing training instability and poor localization. We present Dot Distance (DotD), a novel metric that replaces IoU with a normalized Euclidean distance between center points. By providing a smoother training signal, DotD enables standard detectors to achieve state-of-the-art performance on tiny object benchmarks.

The Problem with IoU in the Tiny Regime

In modern object detection, IoU is the standard measure for evaluating the overlap between a predicted bounding box and a ground truth box. While effective for medium and large objects, IoU breaks down when objects are "tiny."

Consider a 4×4 pixel object. A mere 2-pixel shift in the prediction reduces the IoU drastically. A 4-pixel shift results in zero overlap, even though the prediction is spatially very close to the target. This "spiky" nature of the IoU function leads to two critical failures:

  1. Label Assignment: During training, the Region Proposal Network (RPN) fails to find enough positive samples because few anchors meet the required IoU threshold.
  2. Non-Maximum Suppression (NMS): During inference, NMS may fail to suppress redundant boxes because their mutual IoU is too low, despite them covering the same tiny object.

Proposed Method: Dot Distance (DotD)

To address these issues, the authors propose Dot Distance (DotD). Instead of measuring area overlap, DotD focuses on the proximity of center points. It is defined as:

$$DotD = e^{-\frac{D}{S}}$$

Where $D$ is the Euclidean distance between the center points of two bounding boxes, and $S$ is a normalization constant representing the average object size in the dataset.

Comparison of IoU and DotD definitions alongside other common metrics like GIoU and DIoU.

Unlike IoU, which drops to zero as soon as boxes stop overlapping, the exponential nature of DotD ensures a smooth, continuous value based on distance. This allows the model to receive a meaningful gradient even from "near misses," facilitating more stable learning.

Experimental Evaluation

The proposed metric was evaluated on the AI-TOD (Aero-Image Tiny Object Detection) dataset. AI-TOD is specifically designed for this task, featuring over 700,000 instances with a mean object size of only 12.8 pixels—significantly smaller than the objects found in COCO or DOTA.

Key Insights

The core advantage of DotD is visualized in the comparison of IoU and DotD curves. For small boxes, the IoU curve is extremely narrow (a "needle"), whereas the DotD curve provides a broader "hill" of positive signal. This allows for a much more effective anchor assignment process.

Visualization of (a) IoU vs (b) DotD curves for different box sizes and their corresponding detection performance on aerial imagery.

Performance Gains

Integrating DotD into standard architectures yielded impressive results:

  • Faster R-CNN: Average Precision (AP) improved from 7.8 to 12.2, a 56% relative increase.
  • Comparison with IoU Variants: DotD significantly outperformed other metrics like GIoU (6.0 AP), DIoU (3.8 AP), and CIoU (4.0 AP). Interestingly, these advanced metrics performed worse than standard IoU on tiny objects, likely because they still rely on the sensitive IoU term.
  • State-of-the-Art: A Cascade R-CNN equipped with DotD achieved 16.1 AP, surpassing specialized tiny-object detectors.

Conclusion

Dot Distance offers a simple yet powerful alternative to IoU for tiny object detection. By shifting the focus from boundary overlap to center-point proximity, it overcomes the inherent sensitivity of area-based metrics in low-resolution scenarios. While currently dependent on a dataset-wide scale constant $S$, future iterations exploring adaptive scaling could further enhance its robustness across diverse aerial scenes.

Summary updated

BibTeX
@inproceedings{xu2021dot,
  author = {Chang Xu and Jinwang Wang and Wen Yang and Lei Yu},
  title = {{Dot Distance for Tiny Object Detection in Aerial Images}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00130},
}
Figure