Background-Mixed Augmentation for Weakly Supervised Change Detection

Rui Huang, Ruofei Wang, Qing Guo, Jieda Wei, Yuxiang Zhang, Wei Fan, Yang Liu

Abstract

Change detection (CD) is to decouple object changes (i.e., object missing or appearing) from background changes (i.e., environment variations) like light and season variations in two images captured in the same scene over a long time span, presenting critical applications in disaster management, urban development, etc. In particular, the endless patterns of background changes require detectors to have a high generalization against unseen environment variations, making this task significantly challenging. Recent deep learning-based methods develop novel network architectures or optimization strategies with paired-training examples, which do not handle the generalization issue explicitly and require huge manual pixel-level annotation efforts. In this work, for the first attempt in the CD community, we study the generalization issue of CD from the perspective of data augmentation and develop a novel weakly supervised training algorithm that only needs image-level labels. Different from general augmentation techniques for classification, we propose the background-mixed augmentation that is specifically designed for change detection by augmenting examples under the guidance of a set of background changing images and letting deep CD models see diverse environment variations. Moreover, we propose the augmented & real data consistency loss that encourages the generalization increase significantly. Our method as a general framework can enhance a wide range of existing deep learning-based detectors. We conduct extensive experiments in two public datasets and enhance four state-of-the-art methods, demonstrating the advantages of our method.

Introduction

Change detection (CD) models often get confused by harmless environmental changes like lighting, weather, or seasonal shifts, especially when trained with limited "weak" supervision. This paper introduces BGMix, a novel data augmentation strategy that dynamically swaps the backgrounds of training images while keeping the actual object changes intact. Paired with a custom consistency loss, BGMix forces models to ignore environmental noise, significantly boosting the accuracy of state-of-the-art weakly supervised change detectors.

The real world is messy; between two photos taken months apart, the background environment will inevitably change—grass turns brown, shadows shift, and lighting varies. A robust CD model must ignore these background variations and only flag actual object changes. Historically, training these models required expensive, pixel-perfect human annotations. To save time, researchers use weakly supervised learning, where the model is only told if an image pair contains a change, not where it is. Unfortunately, without pixel-level guidance, these models frequently mistake seasonal or lighting shifts for actual object changes.

Methodology

To solve this, the authors propose BGMix (Background-Mixed Augmentation), a training framework designed specifically for change detection.

  1. The Background-Guided Set: The researchers curate a separate set of image pairs that only contain environmental/background changes (no objects appearing or disappearing).
  2. Background-Aware Augmentation: During training, the model attempts to predict a change mask for an input image pair. BGMix uses this predicted mask to isolate the "changed" objects. It then swaps the original background with a random background from the Background-Guided Set.
  3. Multi-Depth Mixing: This background-swapped image is passed through a pipeline of standard geometric and color augmentations (rotation, shear, posterize) to create a highly diverse, synthetic training pair.
  4. Augmented & Real Data Consistency Loss: The authors apply a custom loss function that forces the neural network to predict the exact same change mask for the original image pair as it does for the augmented BGMix pair. This loss incorporates perceptual similarity (via VGG16), structural similarity (SSIM) to enforce the prior that object changes usually occupy a small percentage of the image, and adversarial discriminators to ensure realistic masks.

Datasets and Evaluation

The authors evaluated their method on two widely used remote sensing datasets:

  • AICD (Aerial Image Change Detection): Contains 1,000 aerial image pairs with simulated object changes under varying conditions.
  • BCD (Building Change Detection): A high-resolution dataset specifically focused on building construction and demolition.

Key Results

The authors applied BGMix to four state-of-the-art (SOTA) weakly supervised models: AFA, FCD, WCDNet, and SGCD.

Qualitative and quantitative comparison of change detection models with and without BGMix augmentation.

As illustrated in the figure above, BGMix improved the performance of all four baselines by large margins. On the AICD dataset, the F1 score of SGCD jumped from 0.771 to 0.854, while WCDNet improved from 0.605 to 0.749. On the harder BCD dataset, SGCD improved from 0.431 to 0.624. When compared to standard augmentations like CutMix or MixUp, BGMix was the only method that consistently improved performance; in several cases, standard augmentations actually lowered the baseline models' F1 scores.

Discussion and Future Work

Targeted augmentation beats random augmentation in the context of change detection. General-purpose augmentations can destroy the delicate spatial relationship between an image pair. By explicitly separating the foreground change from the background, BGMix provides a much stronger learning signal. Furthermore, by forcing the model to output the same prediction regardless of the background, the network naturally learns to treat lighting, weather, and seasons as irrelevant noise.

While the method relies on a "background-guided set," which might require some manual verification in real-world scenarios, it remains a powerful plug-and-play framework. Future work could use adversarial attacks to actively search for the specific background variations that confuse the model the most, using those to guide the augmentation and further harden the detector.

Summary updated

BibTeX
@inproceedings{huang2023background,
  author = {Rui Huang and Ruofei Wang and Qing Guo and Jieda Wei and Yuxiang Zhang and Wei Fan and Yang Liu},
  title = {{Background-Mixed Augmentation for Weakly Supervised Change Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=26qB7mfgux},
}
Figure