Illumination-Based Data Augmentation for Robust Background Subtraction

Dimitrios Sakkos, Hubert P. H. Shum, Edmond S. L. Ho · DOI

Introduction

Background Subtraction (BGS) is a fundamental computer vision task aimed at isolating moving objects (foreground) from their static environment (background). Despite its conceptual simplicity, BGS remains challenging in dynamic environments. Sudden illumination changes—such as clouds passing over the sun, flickering streetlights, or indoor light switches—often lead to significant "ghost" detections, where static background regions are incorrectly identified as moving objects. Deep learning models offer a potential solution, but they require extensive datasets capturing these specific lighting anomalies to achieve robustness.

Proposed Methodology

To address the scarcity of labeled data featuring complex lighting shifts, this research introduces a novel data augmentation pipeline that synthesizes realistic local and global illumination changes.

Synthetic Illumination Generation

The core innovation lies in a two-pronged approach:

  1. Global Illumination Changes: These simulate broad environmental shifts, such as day-to-night transitions or sudden flashes, by applying a uniform brightness adjustment across the entire image frame.
  2. Local Illumination Changes: To mimic localized effects like a lamp turning on or a shadow being cast, the method generates circular masks at random locations. Crucially, a Euclidean Distance Transform (EDT) is applied to these masks to create a smooth gradient, or "halo" effect. This mimics the natural diffusion of light, avoiding the sharp, unrealistic edges produced by standard binary masks.
Figure 2: A circular mask processed with Euclidean Distance Transform (EDT) to create a smooth gradient for realistic light diffusion.

These synthetic masks are then added to or subtracted from the original frames to "hallucinate" new lighting conditions during training.

Figure 3: An example of the local illumination augmentation applied to a street scene, simulating a bright spot from an external light source.

Model Architecture

The augmentation pipeline was used to train an illumination-invariant deep neural network based on a U-Net architecture. The model utilizes a pre-trained VGG16 encoder to extract high-level features and a custom decoder to generate the final foreground mask. To prevent overfitting on limited source data, the encoder weights were frozen during the training phase.

Experimental Results

The methodology was evaluated using the Stuttgart Artificial Background Subtraction (SABS) dataset. The model was trained on the "Darkening" sequence (gradual evening-to-night transition) and tested on the "Light Switch" sequence, which features sudden illumination changes not present in the training set.

The proposed "GL" (Global and Local) augmentation model demonstrated superior performance compared to baseline models:

  • Accuracy: The GL model achieved an F-measure of 0.7624, significantly outperforming models trained with no augmentation (0.5288) or standard geometric/noise augmentation (0.6025).
  • Robustness: Qualitatively, the GL-trained model maintained clean foreground masks during sudden light toggles, whereas other models suffered from massive false positives or failed to detect moving vehicles entirely.

Conclusion

By incorporating "semantic" noise that reflects the physics of light and shadow, this data augmentation technique enables deep learning models to learn illumination invariance effectively. The use of EDT-smoothed masks was critical in bridging the gap between synthetic training data and real-world performance. Future work will explore more complex, non-circular shadow geometries and temporal consistency across video sequences to further enhance BGS robustness in the wild.

Summary updated

BibTeX
@inproceedings{sakkos2019illumination,
  author = {Dimitrios Sakkos and Hubert P. H. Shum and Edmond S. L. Ho},
  title = {{Illumination-Based Data Augmentation for Robust Background Subtraction}},
  booktitle = {Skima},
  year = {2019},
  doi = {10.1109/skima47702.2019.8982527},
}
Figure