Road images augmentation with synthetic traffic signs using neural networks

Anton Konushin, Boris Faizov, Vlad Shakhuro

Abstract

Traffic sign recognition is a well-researched problem in computer vision. However, state-of-the-art methods typically only perform well for frequent sign classes that are well-represented in training datasets. This paper addresses the challenge of rare traffic sign detection and classification by utilizing synthetic training data. We propose a framework for embedding synthetic sign images into real-world photos using three appearance-consistency methods based on Generative Adversarial Networks (GANs). Additionally, we adapt a Variational Autoencoder (VAE) to sample plausible locations for new signs. Our results demonstrate that augmenting real data with these realistic synthetic samples improves the accuracy of both classifiers and detectors, particularly for rare sign classes.

Introduction

Traffic sign recognition (TSR) is a cornerstone of autonomous driving and driver assistance systems. While modern deep learning models excel at recognizing common signs (like speed limits), they struggle with "rare" classes—signs that appear infrequently in the real world and, consequently, in training datasets. Manually collecting and labeling thousands of images for every possible sign is prohibitively expensive. Simple data augmentation (like rotating or blurring icons) often fails because the resulting images do not look "natural" within their environment. This paper tackles two main challenges: ensuring appearance consistency (matching lighting, weather, and blur) and determining plausible placement (ensuring geometric and contextual sense).

Methodology

The proposed pipeline consists of two primary stages: Intelligent Placement and Realistic Embedding.

1. Intelligent Placement

Instead of random placement, the authors use a Variational Autoencoder (VAE) to predict plausible locations and sizes for new signs. This module takes a semantic segmentation map of the road as input and samples locations that are contextually appropriate, avoiding unrealistic placements like the middle of the sky or a tree.

2. Realistic Embedding

To process synthetic icons and blend them into real backgrounds, three GAN-based architectures were developed:

  • "Pasted": Employs two generators—one for inpainting the background and another for processing the icon to match that background.
  • "Cycled": Enhances the "Pasted" approach with a CycleGAN-like stream to ensure the synthetic sign remains recognizable as its intended class.
  • "Styled": Based on StyleGAN, this method replaces random noise with a "descriptor vector" derived from the sign icon and local background. This allows the network to generate a sign that inherits the scene's lighting and texture while maintaining its identity.
The GAN-based embedding pipeline for realistic traffic sign synthesis

Experimental Results

The framework was evaluated using the Russian Traffic Sign Dataset (RTSD), which contains 205 classes, 99 of which are "rare" (absent from the standard training set). The inclusion of synthetic data led to measurable gains across the board:

  • Classification: The "Styled" and "Cycled" methods were the top performers. For rare classes, the micro-averaged recall improved from 70.16% (using previous state-of-the-art CGI-GAN) to 76.33% with the new "Styled" approach.
  • Detection: Using VAE-based placement combined with "Styled" embedding, the detector's Average AUC for rare signs jumped from 58.56 to 64.20.
  • Realism: Qualitative results show that the "Styled" method produces signs that are nearly indistinguishable from real ones, capturing subtle effects like motion blur and low-light graininess.
Comparison of (a) real image, (b) synthetic placement, (c) VAE-generated heatmap of plausible locations, and (d) the final augmented result

Conclusion

This paper presents an effective method for augmenting road image datasets with realistic synthetic traffic signs. By combining intelligent placement via VAEs and sophisticated embedding via GANs, the framework significantly improves the performance of TSR systems on rare sign classes. While the pipeline relies on accurate semantic segmentation and is computationally intensive, it offers a robust solution for training models on underrepresented data.

Summary updated

BibTeX
@inproceedings{konushin2021road,
  author = {Anton Konushin and Boris Faizov and Vlad Shakhuro},
  title = {{Road images augmentation with synthetic traffic signs using neural networks}},
  booktitle = {Computer},
  year = {2021},
  doi = {10.18287/2412-6179-co-859},
}
Figure