Object-Centric Masked Image Modeling-Based Self-Supervised Pretraining for Remote Sensing Object Detection

Tong Zhang, Yin Zhuang, He Chen, Liang Chen, Guanqun Wang, Peng Gao, Hao DongIEEE JSTARS 2023

Abstract

Self-supervised pretraining (SSP) has revolutionized computer vision, yet its application to remote sensing (RS) object detection remains challenging due to significant scale misalignment and task discrepancies. This paper introduces Object-Centric Masked Image Modeling (OCMIM), a novel pretraining strategy that shifts the focus from random scene-level masking to targeted object-level reconstruction. By utilizing an Object-Centric Data Generator (OCDG) and an Attention-Guided Mask Generator (AGMG), OCMIM forces models to learn discriminative features of foreground objects. Experimental results across six benchmarks, including DIOR and NWPU VHR10, demonstrate that OCMIM significantly outperforms standard supervised and self-supervised methods, particularly for small and multi-scale objects.

Introduction

Remote sensing (RS) imagery presents unique challenges for object detection. Unlike natural images, RS scenes are typically vast, while the objects of interest—such as vehicles, ships, and aircraft—occupy only a tiny fraction of the total pixels. Standard self-supervised pretraining (SSP) methods, particularly Masked Image Modeling (MIM), often fail in this domain. In MIM, a model learns by reconstructing randomly masked patches. However, when applied to high-resolution RS scenes, random masking often targets background elements (e.g., grass, water, or pavement), leading to a "representation misalignment" where the model fails to capture the intricate details of small objects necessary for downstream detection tasks.

Methodology: The OCMIM Framework

To bridge the gap between pretraining and detection, the authors propose the OCMIM framework, which transitions from scene-level to object-level learning.

The OCMIM framework consists of (a) Object-Centric Data Generation, (b) Attention-Guided Mask Generation, and (c) a Vision Transformer backbone for feature extraction.

Object-Centric Data Generator (OCDG)

The OCDG addresses scale misalignment by creating targeted training samples. It employs multiscale object-centric cropping to focus on regions containing objects. To prevent tiny objects from being lost during resizing, a tiny object splicing technique is used: multiple small objects are rescaled and stitched into a single 224x224 patch. Furthermore, sample balancing is applied to mitigate the long-tail distribution common in RS datasets, ensuring rare categories are sufficiently represented during pretraining.

Attention-Guided Mask Generator (AGMG)

Unlike standard MIM which uses random masks, OCMIM utilizes an Attention-Guided Mask Generator. A pretrained Vision Transformer (ViT) generates attention maps for the input patches. The AGMG then selectively masks high-attention regions—typically the foreground objects. This "adversarial" masking strategy forces the encoder to reconstruct the most critical parts of the image using only the surrounding context, thereby learning more robust and discriminative object representations.

Experimental Evaluation

The efficacy of OCMIM was validated across six diverse RS benchmarks. For pretraining, the authors used ImageNet-1K followed by refinement on the Million-AID dataset using the OCMIM strategy.

Performance on General RS Detection

On the DIOR dataset, OCMIM achieved a mean Average Precision (mAP) of 69.5%, significantly surpassing standard scene-level MIM (68.3%) and supervised pretraining (56.1%). Similar gains were observed on NWPU VHR10, where OCMIM reached 89.3% mAP, outperforming other state-of-the-art self-supervised methods like CSPT and SoCo.

Small Object Detection

A key strength of OCMIM is its performance on small categories. Qualitative analysis via Precision-Recall curves indicates that OCMIM is particularly effective for detecting vehicles and storage tanks, categories where traditional scene-level pretraining often struggles due to the "background-heavy" nature of random masking.

Discussion: Why Object-Centric Masking Works

The core insight of OCMIM is that for detection tasks, foreground pixels carry more semantic weight than background pixels. By intentionally masking objects, the model is forced to understand the structural logic of those objects to perform reconstruction.

Comparison of scene-level vs. object-level masking. Object-level masking (bottom) focuses reconstruction efforts on the target entities, leading to better feature alignment for detection.

As shown in the qualitative results, scene-level masking often results in blurry reconstructions of objects because the model prioritizes learning the dominant background textures. In contrast, OCMIM's object-level focus ensures that the model develops a high-fidelity understanding of object shapes and features, which directly translates to better localization and classification performance during fine-tuning.

Conclusion

OCMIM represents a significant step forward in self-supervised learning for remote sensing. By addressing the fundamental discrepancies in scale and task between pretraining and detection, it provides a robust backbone for identifying small and multi-scale objects in complex satellite imagery. While the method introduces some computational complexity and relies on initial attention maps, its superior performance across multiple benchmarks establishes it as a powerful paradigm for domain-specific pretraining. Future work may extend this object-centric approach to other modalities like SAR or multispectral data.

Summary updated

BibTeX
@article{zhang2023object,
  author = {Tong Zhang and Yin Zhuang and He Chen and Liang Chen and Guanqun Wang and Peng Gao and Hao Dong},
  title = {{Object-Centric Masked Image Modeling-Based Self-Supervised Pretraining for Remote Sensing Object Detection}},
  journal = {IEEE J. Sel. Top. Appl. Earth Obs. Remote. Sens.},
  year = {2023},
  doi = {10.1109/jstars.2023.3277588},
}
Figure