Illumination Invariant Foreground Object Segmentation using ForeGANs

Maryam Sultana, Soon Ki JungarXiv 2019

Abstract

Foreground object segmentation, or background subtraction, is a fundamental task in computer vision often hampered by dynamic backgrounds and fluctuating illumination. This paper introduces ForeGAN, a novel approach utilizing Generative Adversarial Networks (GANs) to reconstruct scene-specific backgrounds. By leveraging GAN inversion through back-propagation, ForeGAN "hallucinates" a clean background matching the current lighting conditions, effectively isolating moving objects. Evaluated on the Wallflower and I2R benchmarks, ForeGAN demonstrates superior performance over traditional methods, achieving F-measures of 0.8225 and 0.7782, respectively.

Introduction

Background subtraction is the process of isolating moving foreground objects from a static or semi-static environment. While foundational for surveillance and motion tracking, the technique faces significant hurdles in real-world scenarios. Specifically, dynamic backgrounds (e.g., swaying trees, water ripples) and illumination variations (e.g., sudden shadows, flickering lights) often lead to "ghosting" artifacts where the system incorrectly identifies background changes as foreground objects. Traditional statistical models like Gaussian Mixture Models (GMM) frequently fail to adapt to these rapid temporal changes.

Methodology: The ForeGAN Framework

ForeGAN treats background subtraction as an image reconstruction problem using a modified Deep Convolutional GAN (DCGAN) architecture. The approach operates in two distinct phases:

Phase 1: Scene-Specific Training

The GAN is trained on video sequences containing only the background of a specific scene under various lighting conditions. The Generator ($G$) learns to map a latent noise vector ($z$) to realistic background images, effectively learning the "manifold" of all possible appearances for that specific environment. Simultaneously, the Discriminator ($D$) is trained to distinguish between real background frames and those synthesized by the Generator.

Phase 2: Inference via GAN Inversion

When a test frame containing a foreground object is processed, the system performs "GAN inversion." Instead of a simple forward pass, ForeGAN uses back-propagation to optimize the noise vector ($z$) to find the specific point on the learned manifold that best matches the current frame's background and lighting.

Qualitative results of ForeGAN on Wallflower (top) and I2R (bottom) datasets, showing the input, generated background, ground truth (GT), and final segmentation.

Because the Generator was never trained on foreground objects, it is incapable of reconstructing them. Consequently, the "hallucinated" background contains only the environmental elements. Subtracting this generated background from the original input frame yields a clean foreground mask.

Experimental Results

The model was rigorously tested against two benchmark datasets:

  1. Wallflower (Bootstrap sequence): Tests the model's ability to handle initial training data. ForeGAN achieved an F-measure of 0.8225, surpassing the state-of-the-art RAMAR method (0.8004).
  2. I2R (WaterSurface sequence): Evaluates robustness against highly dynamic backgrounds. ForeGAN reached an F-measure of 0.7782, significantly outperforming RAMAR's 0.7505.

Qualitative analysis confirms that ForeGAN produces significantly fewer artifacts in regions with moving water or shifting light compared to traditional RPCA or GMM-based approaches.

Discussion and Conclusion

ForeGAN represents a significant step forward in illumination-invariant segmentation by treating backgrounds as a learnable manifold rather than a static reference. However, several challenges remain. The current implementation requires 2,000 optimization steps per frame, which is computationally intensive for real-time applications. Additionally, the model is scene-specific and currently operates at a low resolution ($64 \times 64$). Future work will focus on optimizing the inversion process and scaling the architecture for high-definition video streams.

Summary updated

BibTeX
@misc{sultana2019illumination,
  author = {Maryam Sultana and Soon Ki Jung},
  title = {{Illumination Invariant Foreground Object Segmentation using ForeGANs}},
  year = {2019},
  eprint = {1902.03120},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.03120},
}
Figure