See clearer at night: towards robust nighttime semantic segmentation through day-night image conversion

Lei Sun, Kaiwei Wang, Kailun Yang, Kaite Xiang

Researchers from Zhejiang University have addressed a critical "blind spot" in autonomous driving: accurate semantic segmentation at night. While labeling pixels (e.g., "road," "car," "pedestrian") is highly accurate in daylight, performance typically degrades in nighttime conditions due to obscured textures and artificial glare.

The Challenge of Nighttime Vision

Most state-of-the-art models are trained on well-lit datasets like Cityscapes or BDD100K. When these models encounter nighttime scenes, they struggle because the visual features they rely on are distorted. While collecting a massive nighttime dataset is an obvious solution, pixel-wise annotation is incredibly labor-intensive. This paper explores how to leverage existing daytime labels to improve nighttime performance using Generative Adversarial Networks (GANs).

Proposed Methodology

The researchers employ CycleGAN, an unsupervised GAN that translates images between domains (Day and Night) without requiring paired examples. They evaluated two distinct strategies:

  1. Night-to-Day Inference: Nighttime images captured by the vehicle are converted into synthetic daytime images before being processed by a standard segmentation model (ERF-PSPNet).
  2. Day-to-Night Training (Data Augmentation): The GAN generates synthetic nighttime images from a daytime dataset. Since objects remain stationary, the original daytime labels are preserved. The model is then trained on this hybrid dataset.
Overview of the proposed day-night conversion framework and training strategies.

Key Insights: The "Sweet Spot"

A major finding was that the ratio of synthetic data matters. Simply replacing all daytime images with synthetic night images was less effective than a balanced approach. The authors identified a "sweet spot"—using 2,000 synthetic nighttime images alongside 5,000 real daytime images—which allowed the model to learn nighttime illumination while retaining fine-grained daytime textures.

Detailed view of the Night-Model Training pipeline and the impact of different conversion ratios.

Experimental Results

The Day-to-Night Training approach emerged as the superior strategy:

  • Quantitative Gains: On the BDD nighttime test set, the Mean Intersection over Union (mIoU) jumped from 32.72% (baseline) to 43.14%.
  • Benchmarking: The method achieved an mIoU of 45.09% on the Nighttime Driving test set, outperforming previous state-of-the-art baselines like DarkModelAdaptation (41.60%).
  • Efficiency: Unlike inference-time conversion, which takes roughly 1 second per frame and is too slow for real-time use, the training-based approach adds zero overhead during vehicle deployment.

Limitations and Future Work

Despite the success, the authors noted that GANs can sometimes "hallucinate" artifacts or lose resolution due to GPU memory constraints. Future research will focus on optimizing these translation networks for higher speeds and reducing synthetic biases to further improve safety in autonomous nighttime navigation.

Summary updated

Abstract

In recent years, intelligent driving navigation and security monitoring have made considerable progress with the help of deep Convolutional Neural Networks (CNNs). As one of the state-of-the-art perception approaches, semantic segmentation unifies distinct detection tasks widely desired by both autonomous driving and security monitoring. Currently, semantic segmentation shows remarkable efficiency and reliability in standard scenarios such as daytime scenes with favorable illumination conditions. However, in face of adverse conditions such as the nighttime, semantic segmentation loses its accuracy significantly. One of the main causes of the problem is the lack of sufficient annotated segmentation datasets of nighttime scenes. In this paper, we propose a framework to alleviate the accuracy decline when semantic segmentation is taken to adverse conditions by using Generative Adversarial Networks (GANs). To bridge the daytime and nighttime image domains, we made key observation that compared to datasets in adverse conditions, there are considerable amount of segmentation datasets in standard conditions such as BDD and our collected ZJU datasets. Our GAN-based nighttime semantic segmentation framework includes two methods. In the first method, GANs were used to translate nighttime images to the daytime, thus semantic segmentation can be performed using robust models already trained on daytime datasets. In another method, we use GANs to translate different ratio of daytime images in the dataset to the nighttime but still with their labels. In this sense, synthetic nighttime segmentation datasets can be generated to yield models prepared to operate at nighttime conditions robustly. In our experiment, the later method significantly boosts the performance at the nighttime evidenced by quantitative results using Intersection over Union (IoU) and Pixel Accuracy (Acc). We show that the performance varies with respect to the proportion of synthetic nighttime images in the dataset, where the sweet spot corresponds to most robust performance across the day and night. The proposed framework not only makes contribution to the optimization of visual perception in intelligent vehicles, but also can be applied to diverse navigational assistance systems.
BibTeX
@misc{sun2019see,
  author = {Lei Sun and Kaiwei Wang and Kailun Yang and Kaite Xiang},
  title = {{See clearer at night: towards robust nighttime semantic segmentation through day-night image conversion}},
  year = {2019},
  eprint = {1908.05868},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.05868},
}
Figure