Introduction
Object detection in remote sensing (RS) imagery—captured via satellites or drones—presents unique challenges that traditional computer vision models often fail to address. Specifically, objects in aerial views appear in arbitrary orientations and are frequently packed in dense clusters. Furthermore, obtaining high-quality annotations for RS data is a labor-intensive process requiring domain expertise, leading to significant data scarcity.
This paper introduces FOMC (Few-shot Oriented object detection with Memorable Contrastive learning), a novel framework designed to detect objects in RS images using only a few annotated examples. By transitioning from standard horizontal bounding boxes to oriented bounding boxes (OBB) and integrating a dynamic memory-based contrastive learning module, FOMC establishes a new state-of-the-art for Few-Shot Oriented Object Detection (FSOOD).
The Challenges of Remote Sensing Detection
Standard Few-Shot Object Detection (FSOD) typically relies on axis-aligned horizontal bounding boxes (HBB). In remote sensing, this approach is suboptimal for two primary reasons:
- Arbitrary Orientation: Unlike natural images where objects usually follow a gravity-aligned vertical axis, aerial objects like ships, vehicles, and bridges can appear at any angle. HBBs often capture excessive background noise or overlap significantly with neighboring objects in dense scenes (e.g., ships in a harbor).
- Discriminative Feature Learning: In few-shot scenarios (3–20 examples), models struggle to distinguish between visually similar novel classes. Without a large dataset to define class boundaries, the model's feature space often becomes cluttered, leading to high misclassification rates.
The FOMC Framework
FOMC adopts a two-stage training paradigm: base training on categories with abundant data, followed by fine-tuning on a balanced set of base and novel classes. The framework introduces three core innovations to address the specificities of RS imagery.
1. Oriented Bounding Boxes (OBB)
Instead of the standard four-parameter box $(x, y, w, h)$, FOMC predicts a five-parameter rotated box $(x, y, w, h, \theta)$. This geometric shift allows the model to tightly bound objects regardless of their rotation. Beyond better localization, OBBs act as a spatial filter, ensuring that the features extracted for classification are "pure" and free from the background interference typically found in the corners of a horizontal box.
2. Memorable Contrastive Learning (MCL)
To enhance the discriminative power of the model under data-scarce conditions, the authors propose the MCL module. Inspired by momentum-based contrastive learning, MCL utilizes a dynamically updated memory bank to store feature embeddings and Intersection-over-Union (IoU) scores from previous training iterations.
This memory bank allows the model to compare current samples against a vast pool of positive (same class) and negative (different class) samples, effectively decoupling the contrastive pool size from the hardware's GPU memory limits. By forcing the model to pull similar features together and push dissimilar ones apart in the embedding space, MCL ensures that even with few examples, the model learns clear boundaries between categories.
3. Shot Masking
A common issue in few-shot learning is "incomplete annotation." In a training image containing multiple instances of a class (e.g., ten cars), only a few might be labeled for the few-shot task. Standard training treats the unlabeled cars as background, confusing the detector. FOMC introduces Shot Masking, which applies Gaussian blurring to all unannotated objects. This effectively hides potential false negatives, ensuring the model only receives high-quality supervisory signals from the provided labels.
Experimental Results
The authors validated FOMC on three major remote sensing benchmarks: DOTA, HRSC2016, and NWPU VHR-10.
- DOTA: On this large-scale dataset featuring 15 diverse categories, FOMC outperformed the baseline ($S^2A$-Net) by 20%, 20%, and 26% in 5-shot, 10-shot, and 20-shot settings, respectively.
- HRSC2016: In specialized ship detection tasks, the model achieved a mean Average Precision (mAP) of 81% in the 10-shot setting, representing a substantial leap over existing methods.
- Ablation Studies: Results indicated that the MCL module alone contributed to a 19% improvement in accuracy for novel classes, highlighting the importance of contrastive learning in low-data regimes.
Discussion and Insights
The success of FOMC stems from its ability to treat geometry and feature representation as interconnected problems. The use of OBBs provides the clean feature extraction necessary for contrastive learning to be effective. Simultaneously, the memory bank mechanism solves the practical limitation of small batch sizes in few-shot training, providing the "global" perspective required to organize a robust feature space.
While the model shows exceptional performance, the authors acknowledge that extreme intra-class variance (e.g., the vast difference in appearance between a small private plane and a large cargo jet) remains a challenge in 1-shot or 3-shot scenarios. Future work will likely explore transformer-based architectures to better capture global context and further improve performance in highly cluttered environments.
Conclusion
FOMC represents a significant advancement in remote sensing by formalizing the task of Few-Shot Oriented Object Detection. By combining oriented geometry with a memorable contrastive learning strategy, the framework successfully bridges the gap between data scarcity and high-precision localization, providing a robust solution for real-world aerial surveillance and monitoring tasks.
Summary updated