Completely Occluded and Dense Object Instance Segmentation Using Box Prompt-Based Segmentation Foundation Models

Zhen Zhou, Junfeng Fan, Yunkai Ma, Sihan Zhao, Fengshui Jing, Min TanarXiv 2024 · DOI

TL;DR

This paper introduces OBSeg, a novel framework for instance segmentation in remote sensing images that leverages oriented bounding boxes (OBBs) as prompts for segmentation foundation models (BSMs). By using OBBs, OBSeg significantly reduces the dependency on precise bounding box detection, leading to more accurate and robust segmentation, especially for densely packed objects. The framework also incorporates a new OBB prompt encoder and a Gaussian smoothing-based knowledge distillation technique to improve efficiency and performance.

What Problem Does This Paper Address?

Instance segmentation in remote sensing images is a critical but challenging task. Objects in these images often appear at various scales, are densely packed, and have arbitrary orientations. Traditional methods often use horizontal bounding boxes (HBBs), which can include many irrelevant objects, leading to interference and reduced accuracy. While oriented bounding boxes (OBBs) offer a more precise localization, existing methods that rely on OBBs are heavily dependent on the performance of the OBB detection module. If the OBB detection is inaccurate, the subsequent segmentation suffers. This paper aims to overcome this limitation by developing a framework that uses OBBs as prompts for powerful segmentation foundation models (like SAM), making the segmentation process less sensitive to minor inaccuracies in the initial OBB detection.

Methods

OBSeg is built upon segmentation foundation models (BSMs) and introduces several key innovations:

  • OBB Prompting: Instead of relying on HBBs, OBSeg uses OBBs as prompts. This means the OBBs guide the BSM to segment the object, rather than being a strict boundary for the segmentation. This approach inherently reduces the dependence on perfect OBB detection.
  • OBB Prompt Encoder: A novel encoder is proposed to effectively process OBBs. It parameterizes OBBs using corner points and orientation, then uses adaptive Gaussian positional encoding (AGPE) to capture high-frequency information in these coordinates. This encoder separately processes positional and orientation information before fusing them.
  • Gaussian Smoothing-based Knowledge Distillation: To make the powerful BSMs more lightweight and practical for real-world applications, a knowledge distillation method is employed. Unlike standard distillation that might use ground truth labels, OBSeg distills knowledge from a teacher model (a larger, pre-trained BSM) to a student model. Crucially, it applies Gaussian smoothing to the teacher model's outputs (both for the prompt encoder and the mask decoder). This smoothing helps the student model learn more effectively, especially for boundary regions, and improves generalization.

Datasets

The paper evaluates OBSeg on three publicly available remote sensing datasets:

  • iSAID: A large-scale dataset with 15 categories of objects in aerial images, known for its dense annotations.
  • NWPU VHR-10: A dataset containing high-resolution optical and panchromatic infrared images, commonly used for geospatial tasks.
  • PSeg-SSDD: A dataset specifically designed for ship instance segmentation and detection using SAR images.

The paper notes that for datasets where OBB ground truth parameters are not provided, the smallest OBBs derived from instance masks are used as regression targets.

Key Insights and Ideas

  • OBBs as Prompts, Not Strict Boundaries: The core idea is that OBBs can serve as effective "hints" for segmentation models, guiding them towards the correct object without being overly constrained by their exact boundaries. This is a significant departure from the "segmentation within bounding box" paradigm.
  • OBB Encoding for Richer Information: The proposed OBB prompt encoder goes beyond simple coordinate encoding by using adaptive Gaussian positional encoding and learning specific embeddings for corners and orientation, capturing more nuanced spatial information.
  • Gaussian Smoothing for Better Distillation: Applying Gaussian smoothing to the teacher model's outputs during knowledge distillation is shown to be more effective than traditional methods, leading to better performance in the distilled student model. This technique helps bridge the gap between teacher and student models, especially for complex segmentation tasks.
  • Lightweight Yet Powerful: The combination of OBB prompting and knowledge distillation allows OBSeg to achieve high accuracy while maintaining competitive inference speeds, making it more practical for deployment.

Key Results

  • State-of-the-Art Performance: OBSeg significantly outperforms existing instance segmentation methods on the iSAID, NWPU VHR-10, and PSeg-SSDD datasets, achieving top accuracy metrics (e.g., 45.1% AP on iSAID with ViT-H, 43.7% AP with ViT-Tiny).
  • Robustness to OBB Inaccuracies: The framework demonstrates superior performance even when predicted OBBs deviate from ground truth, highlighting its reduced dependence on precise OBB detection.
  • Competitive Inference Speed: The distilled version of OBSeg achieves a competitive inference speed of 20.4 FPS, making it efficient for practical applications.
  • Ablation Studies Confirm Effectiveness: Experiments show that the OBB prompt encoder and Gaussian smoothing distillation both contribute significantly to the overall performance.

Limitations and Future Work

  • Object Scale and Aspect Ratio Sensitivity: The authors acknowledge that OBSeg's performance is not yet robust to objects with extremely large aspect ratios or very small/large scales. This is attributed to the underrepresentation of such objects in the training data.
  • Future Directions: To address these limitations, future work will focus on:
  • Adopting class-balanced sampling strategies.
  • Developing techniques for extreme-scale feature learning.
  • Implementing adaptive adjustment of loss functions.
  • Exploring further improvements in data, feature learning, and loss functions to handle long-tail distributions and challenging object characteristics.

Summary updated

BibTeX
@misc{zhou2024completely,
  author = {Zhen Zhou and Junfeng Fan and Yunkai Ma and Sihan Zhao and Fengshui Jing and Min Tan},
  title = {{Completely Occluded and Dense Object Instance Segmentation Using Box Prompt-Based Segmentation Foundation Models}},
  year = {2024},
  eprint = {2401.08174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.08174},
}
Figure