Road images augmentation with synthetic traffic signs using neural networks

Anton Konushin, Boris Faizov, Vlad Shakhuro

Abstract

This paper addresses the "long-tail" problem in computer vision—the scarcity of training data for rare object classes—specifically within the context of traffic sign recognition for autonomous driving. We present a framework that combines Generative Adversarial Networks (GANs) for realistic appearance consistency and Variational Autoencoders (VAEs) for plausible spatial placement. By synthesizing rare signs that match the environmental context of real road imagery, we demonstrate significant performance gains in both detection and classification tasks, particularly in zero-shot scenarios.

Introduction

Traffic sign recognition is a critical component of autonomous vehicle systems. However, standard datasets suffer from massive class imbalance. While common signs like "Stop" are abundant, hundreds of rare sign types appear so infrequently that models fail to learn them effectively. Manual data collection is expensive, and simple "cut-and-paste" synthetic methods often fail because the resulting images lack lighting consistency, motion blur, and realistic spatial context. This paper proposes a dual-module pipeline to solve both the "what" (appearance) and "where" (placement) of synthetic augmentation.

Methodology

Appearance Consistency (The "What")

To ensure synthetic signs blend seamlessly into real-world backgrounds, the authors explored several GAN-based architectures. The most effective approach, termed "Styled," utilizes a StyleGAN-inspired architecture. Instead of merely refining a pasted icon, this method uses convolutional subnets to extract features from both the sign icon and the background. It then generates a sign that is natively consistent with the scene's lighting, texture, and environmental conditions.

Plausible Placement (The "Where")

Randomly placing signs can degrade detector performance by teaching the model incorrect spatial priors. To solve this, the researchers adapted a Variational Autoencoder (VAE). The system generates a semantic segmentation map of the road scene, which the VAE samples to predict realistic coordinates and scales for new signs (e.g., ensuring signs appear at appropriate heights near the road shoulder).

Experiments and Results

The framework was evaluated using the Russian Traffic Sign Dataset (RTSD), which contains 205 classes, 99 of which are absent from the standard training set. This setup allowed for testing "zero-shot" augmentation.

Key results include:

  • Classification Accuracy: The "Styled" augmentation improved overall accuracy on the RTSD dataset from 88.87% to 92.82%.
  • Rare Class Recall: For classes with zero real training examples, the model achieved a recall of up to 76.33% using synthetic data.
  • Detection Performance: The detector's Area Under Curve (AUC) for rare signs improved from 58.56 to 64.20.
  • Synthetic-Only Training: When trained exclusively on synthetic data, the "Styled" method achieved 73.03% accuracy, outperforming previous state-of-the-art synthetic methods like CGI-GAN by nearly 13%.

Conclusion

The integration of GAN-based style transfer and VAE-based placement provides a robust solution for the data imbalance problem in traffic sign recognition. By focusing on environmental context and spatial logic, the proposed pipeline enables models to recognize rare objects with high reliability. Future work will focus on 3D spatial constraints and more complex weather conditions like heavy rain or night scenes.

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