CycleGAN-based Object Detection under Night Environments

Sangheum Cho, Ryong Lee, Jaemin Na, Youngbin Kim, Minwoo Park, Sanghwan Lee, Wonjun HwangJournal of Korea Multimedia Society 2019

Abstract

Object detection in low-light and nighttime environments remains a significant challenge for autonomous driving systems due to the scarcity of labeled nighttime data. This paper proposes a framework that leverages Cycle-Consistent Generative Adversarial Networks (CycleGAN) to perform unsupervised image-to-image translation from the day domain to the night domain. By generating synthetic nighttime images that preserve the geometric structure of labeled daytime scenes, the authors enable the training of object detection models (YOLO) on augmented datasets without additional manual labeling. Experimental results on the Berkeley Deep Drive (BDD) dataset demonstrate a 4.26% absolute improvement in mean Average Precision (mAP) over models trained solely on daytime data.

Introduction

Deep learning models for object detection, such as YOLO, have achieved remarkable success in standard benchmarks. However, their performance often degrades significantly when deployed in nighttime conditions characterized by low contrast, glare, and deep shadows. The primary bottleneck in addressing this performance gap is the high cost and difficulty of manually labeling nighttime images.

This research addresses the data scarcity problem by utilizing unsupervised domain adaptation. Instead of collecting and labeling new nighttime data, the authors propose generating synthetic nighttime training data from existing labeled daytime datasets. The core idea is to translate the "style" of daytime images to nighttime while maintaining the "content" (object locations and classes), allowing for automatic label transfer.

Methodology

Image-to-Image Translation via CycleGAN

The researchers employed a two-stage pipeline centered on CycleGAN, an unsupervised generative model. Unlike traditional GANs that require paired training examples, CycleGAN learns the mapping between two domains (Day and Night) using unpaired data.

The CycleGAN architecture used for domain translation between Day and Night environments.

As shown in the architecture above, the model utilizes two generators ($G_{D \to N}$ and $G_{N \to D}$) and two discriminators. The inclusion of a cycle consistency loss is critical: it ensures that an image translated from day to night and back to day remains identical to the original. This constraint prevents the model from altering the structural integrity of the scene, ensuring that cars, roads, and signs remain in their original positions during the translation process.

Object Detection Training

Once the CycleGAN is trained, labeled daytime images are transformed into synthetic nighttime versions. Because the translation preserves geometry, the original daytime bounding box labels remain valid for the synthetic night images. A YOLO detection model is then trained on a hybrid dataset comprising both real daytime and synthetic nighttime images.

Datasets and Experimental Setup

The study utilized the Berkeley Deep Drive (BDD) dataset, which contains 100,000 images of diverse driving scenarios. For CycleGAN training, approximately 36,800 daytime and 28,028 nighttime images were used. For the detection experiments, subsets of 5,000 images per domain were sampled to evaluate performance across different training protocols.

Comparison of original daytime images, daytime images with bounding box labels, and real nighttime images from the BDD dataset.

Results and Discussion

The effectiveness of the proposed method was evaluated by testing on real nighttime images. The results were compared against a baseline and an upper bound:

  • Baseline (Day only): 19.14% mAP
  • Proposed (Day + Synthetic Night): 23.40% mAP
  • Upper Bound (Day + Real Night): 26.81% mAP

The synthetic data provided a 4.26% absolute improvement over the baseline. While a gap remains between synthetic and real nighttime data, the proposed method significantly narrows this gap without the need for manual annotation.

Key Insights

  1. Label Preservation: The most powerful aspect of this approach is the "label transfer" capability, bypassing the need for human annotators to label dark, low-visibility images.
  2. R-Channel Artifacts: Histogram analysis revealed that CycleGAN occasionally struggles with the Red (R) color channel during translation, leading to brightness shifts or artifacts. This suggests that future models might benefit from channel-specific constraints.
  3. Class Performance: The model showed notable improvements in detecting less frequent classes, such as trucks and buses, under nighttime conditions.

Conclusion and Future Work

This paper demonstrates that CycleGAN-based data augmentation is a viable strategy for improving nighttime object detection. By bridging the domain gap through synthetic data, the model becomes more robust to the textures and lighting conditions of the dark.

Future work will focus on refining the translation process to reduce visual artifacts and hallucinations in complex backgrounds. Additionally, exploring more recent architectures, such as diffusion-based models or StarGAN, may further improve the quality of synthetic data and address the current limitations in the red color channel translation.

Summary updated

BibTeX
@article{cho2019cyclegan,
  author = {Sangheum Cho and Ryong Lee and Jaemin Na and Youngbin Kim and Minwoo Park and Sanghwan Lee and Wonjun Hwang},
  title = {{CycleGAN-based Object Detection under Night Environments}},
  journal = {Journal of Korea Multimedia Society},
  year = {2019},
  doi = {10.9717/kmms.2019.22.1.044},
}
Figure