Introduction
Standard object detectors are highly effective at identifying objects within horizontal bounding boxes. However, in domains like aerial imagery—where ships in harbors or vehicles in parking lots are often angled—horizontal boxes capture significant background noise, leading to suboptimal performance. Oriented object detection addresses this by predicting rotated boxes, but traditional methods face significant mathematical hurdles.
A recent paper, "Projecting Points to Axes: Oriented Object Detection via Point-Axis Representation," proposes a novel framework called Oriented-DETR. By decoupling an object's spatial extent from its orientation using a point-axis representation, the authors resolve long-standing issues with "loss discontinuity" and set new performance benchmarks on major datasets.
The Challenge: Loss Discontinuity
Traditional oriented detection relies on five-parameter rotated bounding boxes $(x, y, w, h, \theta)$. A critical flaw in this representation is loss discontinuity. For nearly square objects, a marginal change in shape can cause the "long edge" (and thus the angle $\theta$) to flip by 90 degrees. This creates abrupt jumps in the loss function, making it difficult for neural networks to converge on stable representations. While point-set methods exist, they often struggle with directionality for complex or symmetrical shapes.
Methodology: Point-Axis Representation
The core innovation is the Point-Axis Representation, which separates the "where" and "shape" from the "which way."
1. Decoupled Representation
Instead of a single rigid box, an object is defined by:
- Points: A set of $K$ points that capture the spatial extent and contours.
- Axes: A "four-peak" label encoding representing the primary directionalities. This classification-based approach to orientation is axis-order invariant, ensuring a smooth loss function regardless of which edge is considered "long."
2. Specialized Loss Functions
To train this model effectively without additional manual annotations, the authors introduced:
- Max-Projection Loss: This supervises the point set by projecting predicted points onto ground truth boundaries. It ensures coverage of the object's extent without forcing points into arbitrary "corner" positions, allowing for more natural shape adaptation.
- Cross-Axis Loss: Orientation is treated as a classification problem across 360 angle bins. By supervising a distribution with four peaks (corresponding to the two perpendicular axes of a rectangle), the model avoids the mathematical instability of jumping angles.
3. Oriented-DETR Architecture
The representation is integrated into the DETR (Detection Transformer) framework. Oriented-DETR utilizes Object-to-Point Query Conversion, transforming a single object query into multiple point queries. A Group Self-Attention mechanism allows points belonging to the same object to interact, refining their collective positions to better represent the object's geometry.
Experimental Results
The model was rigorously tested on four major benchmarks, demonstrating superior performance and robustness:
- DOTA: Achieved 79.1% mAP with a ResNet-50 backbone and 82.26% mAP with a Swin-L backbone, surpassing previous state-of-the-art models like LSKNet.
- DIOR-R: Reached 74.26% mAP, representing a 3.21% improvement over existing methods.
- HRSC2016: Achieved a near-perfect 98.02% accuracy on this ship-focused dataset.
- Generalization: On the standard COCO2017 dataset, Oriented-DETR remained competitive (50.5 AP), proving its effectiveness even for non-oriented, horizontal detection tasks.
Conclusion
The Point-Axis representation offers a mathematically elegant solution to the instability of rotated bounding boxes. By treating orientation as a smooth distribution and shape as a flexible point set, Oriented-DETR achieves state-of-the-art results in aerial imagery. Future research may extend this logic to arbitrary polygonal boundaries, further enhancing the detection of complex, irregular structures.
Citation: Zhao, Z., et al. (2024). Projecting Points to Axes: Oriented Object Detection via Point-Axis Representation. arXiv:2407.08489v1 [cs.CV].
Summary updated