Detecting Objects from No-Object Regions: A Context-Based Data Augmentation for Object Detection

Jun Zhang, Feiteng Han, Yutong Chun, Kangwei Liu, Wang ChenInternational Journal of Computational Intelligence Systems 2021

Abstract

Data augmentation is an important technique to improve the performance of deep learning models in many vision tasks such as object detection. Recently, some works proposed the copy-paste method, which augments training datasets by copying foreground objects and pasting them on background images. By designing a learning-based context model to predict realistic placement regions, these approaches have been proved to be more effective than traditional data augmentation methods. However, the performance of the existing context model was limited by three problems: (1) The definitions of positive and negative samples generate too much label noise. (2) The masking technique leads to information loss. (3) The sizes (i.e., scale and aspect ratios) of predicted regions are sampled from a prior shape distribution, which leads to a coarse estimation. In this work, we first explore the placement rules that generate realism and effective training examples for detectors. Then, we propose a trainable context model in order to find proper placement regions by classifying and refining dense prior default boxes. We also design a corresponding reasonable generation for training examples by annotating ground truth on free space according to the placement rules. The experimental results on PASCAL VOC show that our approach outperforms the state-of-the-art related work.

Introduction

Deep learning models for object detection are notoriously data-hungry, yet manual annotation remains a slow and expensive bottleneck. While "copy-paste" augmentation—taking a foreground object from one image and pasting it onto another—is a popular way to synthesize data, it has historically struggled with context. Pasting a boat in a living room, for instance, introduces unrealistic features that can degrade a model's performance on generic detection tasks.

Existing context-aware models attempted to solve this but suffered from significant issues: label noise (treating all empty regions as negative samples), information loss due to masking, and coarse estimation of object geometry. This paper addresses these challenges by introducing a framework that treats "no-object" regions as potential homes for synthetic data, refining their scale and aspect ratio to match the scene's perspective.

Methodology

The authors propose a two-stage "invisible-object" detection framework designed to identify optimal "empty" spots for new objects.

Placement Rules

To train the model, two common-sense rules were established:

  1. Shifting: Moving an object to nearby free space of a similar scale.
  2. Relationship Correlation: Ensuring semantic logic, such as placing a bottle on a table or a car on a road.

Context Region Proposal Module (CRPM)

Similar to the Region Proposal Network (RPN) in Faster R-CNN, the CRPM analyzes the entire background to propose candidate regions. Unlike previous methods, these proposals include the surrounding context rather than just the target bounding box, preserving the environmental data necessary for realistic placement.

Class-Location-Size Aware Module (CLSAM)

This module refines the proposals from the CRPM. It predicts the most suitable object category for a specific spot and adjusts the "default box" to ensure the pasted object maintains a realistic scale and aspect ratio relative to its surroundings. This anchor-based mechanism allows the model to learn perspective—for example, understanding that a person further away should be smaller.

Experimental Setup

The study utilized the PASCAL VOC (Visual Object Classes) datasets for training and evaluation:

  • VOC12val-seg: 1,449 images with segmentation masks used to train the context model.
  • VOC12train-seg: 1,464 images used as the baseline for detection.
  • VOC2007 test set: 4,952 images for final evaluation.
  • Custom Annotation: A subset of 2,389 annotated "placement" instances across 20 categories was created to teach the model the rules of "free space."

Key Results and Insights

The core innovation of this work is the realization that "no-object" regions are actually "potential-object" regions. By annotating free space as positive ground truth, the authors significantly reduced label noise.

Figure 3: Qualitative results showing the model's ability to place objects (sheep) in realistic natural contexts.

Quantitatively, the method showed consistent improvements across multiple architectures:

  • Faster R-CNN: mAP improved from 52.3% to 57.6% (+5.3%), outperforming previous SOTA "Context-DA" by 3.4%.
  • YOLOv3: Achieved a 2.4% mAP improvement.
  • Faster R-CNN + FPN: Achieved a 1.9% mAP improvement.
Figure 4: Qualitative results showing the model's ability to place objects (people) in realistic indoor urban settings.

Qualitatively, the model successfully learned to place "invisible" objects in logical locations, such as cats on sofas, birds on branches, and people in seating areas, as seen in the figures above.

Conclusion

While the proposed context-based data augmentation significantly boosts detection performance, it does introduce a dependency on manual annotation of "free space" for the initial context model training. Future work may explore more complex, multi-object interactions and extend this approach to tasks like instance segmentation. Nonetheless, the shift from treating empty space as "negative" to "potential" represents a major step forward in synthetic data generation.

Summary updated

BibTeX
@article{zhang2021detecting,
  author = {Jun Zhang and Feiteng Han and Yutong Chun and Kangwei Liu and Wang Chen},
  title = {{Detecting Objects from No-Object Regions: A Context-Based Data Augmentation for Object Detection}},
  journal = {International Journal of Computational Intelligence Systems},
  year = {2021},
  doi = {10.2991/ijcis.d.210622.003},
}
Figure