Data Augmentation for Object Detection via Progressive and Selective Instance-Switching

Hao Wang, Qilong Wang, Fan Yang, Weiqi Zhang, Wangmeng ZuoarXiv 2019

Abstract

Training deep learning models for object detection requires massive amounts of labeled data, which is expensive and time-consuming to collect. This paper presents Progressive and Selective Instance-Switching (PSIS), a smart data augmentation technique that boosts performance without requiring new data. By swapping objects of the same class between images, PSIS increases dataset diversity while preserving visual context. This method effectively tackles the "long-tail" problem where rare classes underperform due to insufficient training examples.

Introduction

Real-world datasets for object detection are often "long-tailed"—a few common classes have thousands of examples, while many others are rare. Standard training often ignores these rare classes, leading to poor overall accuracy. While traditional "Cut-Paste" augmentation (pasting an object onto a random background) can increase data volume, it frequently results in context mismatch (e.g., a boat in a forest) and often depends on external datasets.

Methods: Progressive and Selective Instance-Switching

The core of the proposed approach is Instance-Switching (IS). Instead of random pasting, IS identifies two images containing the same class and swaps the objects. Because the new object is placed exactly where an existing one was, the visual context—such as the floor, lighting, and scale—remains coherent.

The PSIS Pipeline

The advanced PSIS framework builds on IS with several key components:

  1. Selective Re-sampling: To fix class imbalance, a "drop-pick" strategy is used to selectively pick more images from underrepresented classes and drop images from overrepresented ones.
  2. Shape and Scale Matching: The algorithm ensures the new object fits the original's shape and scale by calculating the sum square difference of segmentation masks.
  3. Progressive Augmentation: The system monitors the model's performance during training and progressively generates more synthetic data for classes with the lowest Average Precision (AP), creating a self-supervised feedback loop.
  4. Class-Balanced Loss: A specialized loss function puts more weight on rare instances to prevent overfitting on common objects.

Experimental Results

The researchers evaluated PSIS on the MS COCO and PASCAL VOC benchmarks. The method showed consistent improvements across various state-of-the-art detectors:

  • Faster R-CNN: Improved mean Average Precision (mAP) by 2.4% on MS COCO.
  • Mask R-CNN: Achieved a 1.3% gain in detection and improved instance segmentation.
  • Generality: Boosted performance for architectures like FPN, SNIPER, and BlitzNet.
  • Efficiency: PSIS outperformed "Context-DA" (a competing context-aware method) by 2.8% mAP on the BlitzNet architecture.

Conclusion

PSIS provides a robust, self-supervised feedback loop that focuses resources on the most challenging classes. While it currently relies on segmentation masks and can occasionally produce minor boundary artifacts, it significantly improves object detection without the need for additional manual labeling. Future work may extend this "switching" logic to tasks like keypoint detection, where maintaining anatomical context is vital.

Summary updated

BibTeX
@misc{wang2019data,
  author = {Hao Wang and Qilong Wang and Fan Yang and Weiqi Zhang and Wangmeng Zuo},
  title = {{Data Augmentation for Object Detection via Progressive and Selective Instance-Switching}},
  year = {2019},
  eprint = {1906.00358},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.00358},
}
Figure