Shape-Adaptive Selection and Measurement for Oriented Object Detection

Liping Hou, Ke Lu, Jian Xue, Yuqiu LiAAAI 2022

Abstract

Detecting oriented objects—such as ships or tilted text—presents unique challenges due to extreme variations in aspect ratio. Traditional sample selection strategies often ignore object shape, leading to suboptimal training for elongated objects. This paper introduces two novel strategies: Shape-Adaptive Selection (SA-S) and Shape-Adaptive Measurement (SA-M). SA-S dynamically adjusts the Intersection over Union (IoU) threshold based on an object's aspect ratio, while SA-M weights samples by their proximity to the object's center. These strategies are architecture-agnostic and achieve state-of-the-art performance on major benchmarks like HRSC2016 and DOTA.

Introduction: The Geometry Challenge

In computer vision, oriented object detection is notoriously difficult. Standard detectors use a fixed IoU threshold (e.g., 0.5) to distinguish positive training samples from background. However, IoU is highly sensitive to shape; for a long, slender object, even a minor misalignment causes a sharp drop in IoU. This "sensitivity gap" means that elongated objects often lack sufficient positive samples during training, leading to poor detection performance. Furthermore, existing methods often fail to distinguish between high-quality samples near the center and noisier samples near the boundaries.

Proposed Strategies: SA-S and SA-M

To address these issues, the researchers proposed a two-pronged approach to make detection "shape-aware":

  1. Shape-Adaptive Selection (SA-S): Instead of a fixed threshold, SA-S calculates a dynamic IoU threshold for each object using a monotonic decreasing function of its aspect ratio. As objects become more elongated, the threshold is lowered, ensuring the model captures enough representative samples for training.
  2. Shape-Adaptive Measurement (SA-M): This strategy refines the quality of selected samples. It calculates a "normalized shape distance" from each sample to the object's center. Samples closer to the center receive higher quality scores, which are used to weight the loss function, prioritizing the most informative parts of the object.
Comparison of sample selection strategies: (a) K-Nearest, (b) MaxIoU, (c) ATSS, and (d) the proposed shape-adaptive approach.

These strategies are "plug-and-play," compatible with both anchor-free (e.g., RepPoints) and anchor-based (e.g., $S^2A$-Net) frameworks. Additionally, a Boundary-Center Loss ($L^{bc}$) was introduced to tighten predictions around the object's actual edges.

Experimental Results

The proposed method was evaluated on four major datasets: DOTA, HRSC2016, UCAS-AOD, and ICDAR2015. The results demonstrate significant improvements across various architectures.

On the HRSC2016 dataset, which is dominated by high-aspect-ratio ship images, the method achieved a state-of-the-art 90.27% mAP. Notably, applying these strategies to the anchor-free RepPoints baseline resulted in a performance boost of 13.49% mAP.

Ablation study showing the impact of SA-S and SA-M on anchor-free and anchor-based baselines.

Ablation studies further confirmed that the greatest gains occurred in categories with extreme aspect ratios, such as Bridges and Harbors in the DOTA dataset, where accuracy improved by up to 15.6%. This confirms that the shape-adaptive logic effectively mitigates the geometric biases of traditional IoU-based selection.

Conclusion

By making the training process respect the geometry of the target objects, SA-S and SA-M provide a robust solution for oriented object detection. The strategies effectively bridge the "sensitivity gap" for elongated objects and prioritize high-quality central samples. Future work may explore self-tuning parameters to further generalize these benefits across diverse datasets and complex non-rectangular shapes.

Summary updated

BibTeX
@inproceedings{hou2022shape,
  author = {Liping Hou and Ke Lu and Jian Xue and Yuqiu Li},
  title = {{Shape-Adaptive Selection and Measurement for Oriented Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=gVaOVWqC5Vk},
}
Figure