GAN-based Data Augmentation for Semantic Segmentation in Multiple Weathers

Kodai Nakashima, Yutaka Satoh, Hirokatsu KataokaJournal of the Japan Society for Precision Engineering 2021

Abstract

Datasets play a crucial role in the performance of deep neural networks, yet they often contain unintended environmental biases. The BDD100K dataset, widely used for semantic segmentation in autonomous driving, exhibits a significant imbalance in weather conditions, leading to poor model performance in rare scenarios like fog or heavy rain. This paper presents a data augmentation framework using Generative Adversarial Networks (GANs) to synthesize high-quality images of underrepresented weather conditions. By balancing the training distribution and employing a semantic loss to maintain label consistency, our method improves mean Intersection over Union (mIoU) by approximately 15% in wet weather and 7% overall.

Introduction

Semantic segmentation—the pixel-level classification of images—is essential for autonomous vehicle perception. However, the efficacy of these models is limited by the data they are trained on. Real-world datasets are naturally biased toward fair weather; for instance, the BDD100K dataset is dominated by "clear" and "partly cloudy" scenes. Consequently, models struggle in hazardous conditions where reliable vision is most critical for safety. Collecting sufficient real-world data for these "long-tail" scenarios is often impractical or dangerous.

Methodology

To address this imbalance, we propose a data augmentation pipeline based on the GauGAN (SPADE) architecture. Our approach introduces several technical refinements to ensure the synthetic data is effective for training segmentation models:

  • Feature Separation: We utilize dual encoders to decouple "weather features" from "scene features" (layout and objects). This allows the GAN to transform the environmental style of an image while preserving the underlying semantic structure.
  • Semantic Loss ($L_{SEM}$): To ensure that a synthetic "car" or "road" remains recognizable to a computer vision model, we incorporate a semantic loss. A pre-trained segmentation network evaluates the generated images, penalizing the GAN if the synthetic objects do not align with the original labels.
  • Latent Space Regularization: Latent and KL divergence losses are used to organize the style distribution, enabling the generation of diverse weather effects from the same semantic map.
Overview of the data augmentation process. (a) illustrates the initial weather bias in the BDD100K dataset. (b) shows the balanced distribution achieved through GAN-based augmentation. The bottom panels compare segmentation results, highlighting improvements in object boundary definition and reduced artifacts when using augmented data.

Experimental Results

We evaluated our augmentation strategy using FCN and DeepLabv3 architectures with ResNet backbones on the BDD100K dataset.

Quantitative Performance

The inclusion of synthetic data led to substantial improvements in segmentation accuracy. The overall mIoU increased from 40.6% to 48.5% (using FCN-ResNet50). The most dramatic gains were observed in rare weather categories; for example, performance in rainy weather improved by 12.1 points (from 36.6% to 48.7%). Additionally, the model showed a 9% improvement in nighttime scenarios.

Qualitative Insights

Beyond numerical gains, the GAN-augmented models demonstrated greater robustness. The generative model learned to synthesize context-aware details, such as reflections on wet pavement and snow accumulation on trees. These visual cues helped the segmentation models learn more generalized features, leading to better performance even in "clear" weather conditions.

Conclusion

Targeted data augmentation using weather-controllable GANs is an effective solution for mitigating dataset bias in autonomous driving. By synthesizing high-fidelity training examples for rare environmental conditions, we can develop more robust semantic segmentation models that perform reliably in the diverse and unpredictable conditions of the real world.

Summary updated

BibTeX
@article{nakashima2021gan,
  author = {Kodai Nakashima and Yutaka Satoh and Hirokatsu Kataoka},
  title = {{GAN-based Data Augmentation for Semantic Segmentation in Multiple Weathers}},
  journal = {Journal of the Japan Society for Precision Engineering},
  year = {2021},
  doi = {10.2493/jjspe.87.107},
}
Figure