Learning RoI Transformer for Oriented Object Detection in Aerial Images

Jian Ding, Nan Xue, Yang Long, Gui-Song Xia, Qikai LuCVPR 2019

Abstract

Object detection in aerial images is a challenging task due to the bird's-eye view perspective, complex backgrounds, and varying object appearances. Standard methods using horizontal proposals often lead to a mismatch between Region of Interests (RoIs) and objects, causing misalignment between classification confidence and localization accuracy. We propose the RoI Transformer, a lightweight module that applies learned spatial transformations to RoIs under the supervision of oriented bounding box (OBB) annotations. When integrated into a light-head R-CNN, the RoI Transformer achieves state-of-the-art performance on the DOTA and HRSC2016 datasets with minimal impact on detection speed, outperforming implicit methods like deformable RoI pooling.

Introduction: The Challenge of Aerial Detection

In traditional computer vision, object detectors like Faster R-CNN typically utilize horizontal bounding boxes. While effective for ground-level photography where objects are generally upright, this approach falters in aerial imagery. From a bird’s-eye view, objects such as ships, vehicles, and aircraft appear at arbitrary orientations.

When a horizontal box is used to encapsulate a diagonal object, two primary issues arise:

  1. Feature Pollution: The bounding box inevitably includes significant background noise or parts of adjacent objects, which is particularly problematic in dense environments like parking lots or harbors.
  2. Misalignment: The RoI does not accurately represent the object's geometry. This leads to a disconnect where a model might be highly confident in its classification but provide poor localization.
Horizontal RoIs in aerial imagery often capture excessive background and neighboring objects, leading to feature pollution.

Previous attempts to solve this involved "rotated anchors"—pre-defining numerous boxes at various angles. However, this brute-force method is computationally expensive and inefficient.

Methodology: The RoI Transformer

The RoI Transformer is a plug-and-play module designed to transform standard horizontal proposals into oriented ones. It consists of two stages:

1. Rotated RoI (RRoI) Learner

Instead of relying on a massive set of pre-defined anchors, the RRoI Learner takes a standard horizontal RoI and learns the necessary transformation parameters to convert it into a Rotated RoI. It predicts five specific offsets: center coordinates $(x, y)$, width, height, and the rotation angle $\theta$. Unlike unsupervised spatial transformers, this process is directly supervised by ground-truth oriented bounding box (OBB) annotations, ensuring precise geometric modeling.

2. RRoI Warping

Once the RRoI is defined, the model must extract features from that tilted region. The authors introduced a specialized "warping" layer—Rotated Position Sensitive RoI Align. This layer samples features from the rotated rectangle and maps them back into a fixed-size horizontal feature map. This process ensures that the final classifier receives rotation-invariant features, allowing the network to recognize an object regardless of its orientation.

The RoI Transformer learns to align the RoI with the object's orientation, ensuring the extracted features are rotation-invariant.

To maintain high inference speeds, the architecture employs a "light-head" design, which reduces feature map dimensionality before the computationally intensive fully-connected layers.

Experiments and Key Results

The RoI Transformer was evaluated on two major benchmarks: DOTA (the largest dataset for oriented object detection) and HRSC2016 (focused on ship detection).

  • State-of-the-Art Accuracy: On the DOTA dataset, the model achieved a mean Average Precision (mAP) of 69.56, significantly outperforming existing methods like R2CNN and RRPN.
  • Efficiency: The module is highly efficient, adding negligible memory overhead (273MB) and maintaining a fast inference speed of 0.17s per image on a Titan X.
  • Supervision vs. Implicit Learning: Ablation studies showed that the RoI Transformer outperformed Deformable PS RoI Pooling by 3.85 points on DOTA. This suggests that for rigid objects in aerial views, explicit geometric supervision is superior to implicit deformable sampling.
  • Contextual Sensitivity: Interestingly, the researchers found that slightly enlarging the RRoI (by 20-40%) improved performance, as it allowed the model to capture edge-contrast information necessary for distinguishing objects from their backgrounds.

Conclusion

The RoI Transformer provides an elegant, efficient solution to the misalignment problem in aerial object detection. By replacing brute-force rotated anchors with a learned, supervised transformation, it achieves superior accuracy without sacrificing speed. While future work may explore better integration of global context and non-rigid transformations, the RoI Transformer currently stands as a robust state-of-the-art component for oriented object detection tasks.

Summary updated

BibTeX
@inproceedings{ding2019learning,
  author = {Jian Ding and Nan Xue and Yang Long and Gui-Song Xia and Qikai Lu},
  title = {{Learning RoI Transformer for Oriented Object Detection in Aerial Images}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=cvKKJ7yUk6},
}
Figure