Cut-and-Paste with Precision: a Content and Perspective-aware Data Augmentation for Road Damage Detection

Punnawat Siripathitti, Florent Forest, Olga Fink · DOI

Abstract

Damage to road pavement can develop into cracks, potholes, spallings, and other issues posing significant challenges to the integrity, safety, and durability of the road structure. Detecting and monitoring the evolution of these damages is crucial for maintaining the condition and structural health of road infrastructure. In recent years, researchers have explored various data-driven methods for image-based damage detection in road monitoring applications. The field gained attention with the introduction of the Road Damage Detection Challenge (RDDC2018), encouraging competition in developing object detectors on street-view images from various countries. Leading teams have demonstrated the effectiveness of ensemble models, mostly based on the YOLO and Faster R-CNN series. Data augmentations have also shown benefits in object detection within the computer vision field, including transformations such as random flipping, cropping, cutting out patches, as well as cut-and-pasting object instances. Applying cut-and-paste augmentation to road damages appears to be a promising approach to increase data diversity. However, the standard cut-and-paste technique, which involves sampling an object instance from a random image and pasting it at a random location onto the target image, has demonstrated limited effectiveness for road damage detection. This method overlooks the location of the road and disregards the difference in perspective between the sampled damage and the target image, resulting in unrealistic augmented images. In this work, we propose an improved Cut-and-Paste augmentation technique that is both content-aware (i.e. considers the true location of the road in the image) and perspective-aware (i.e. takes into account the difference in perspective between the injected damage and the target image).

Introduction

Automating road maintenance through computer vision requires massive amounts of labeled data. While "cut-and-paste" augmentation—taking a damage instance from one image and pasting it into another—is a popular way to expand datasets, it often produces unrealistic results. Standard methods might paste a pothole onto a sidewalk, a tree, or even the sky. Furthermore, they often ignore perspective: a large, high-resolution crack from the foreground of one image might be pasted into the distant background of another without being resized, creating a visual mismatch that confuses the model. This lack of content and perspective awareness limits the effectiveness of data augmentation in training robust road-monitoring systems.

Methodology

The proposed pipeline ensures that pasted damages (like potholes and cracks) are placed only on actual road surfaces and scaled according to camera perspective.

  1. Content-Awareness (Road Masking): The system uses a pretrained semantic segmentation model (Panoptic-DeepLab) to identify the road surface in the target image. This creates a binary mask that constrains the "injection" of damages to valid road areas only.
  2. Perspective-Awareness: To ensure the scale is correct, the authors transform the road mask into a "perspective map." They group images into bins based on the camera's pitch angle. When augmenting, they sample damage instances from images with similar pitch angles and apply a perspective transform to match the target image's geometry.
  3. Spatial Heatmaps: Damage isn't distributed uniformly across an image. For instance, in countries where cars drive on the left, damage patterns often concentrate on specific sides of the lane. Heatmaps are used to increase the probability of placing damages in these realistic regions.
  4. Poisson Blending: To avoid harsh edges, the method uses Poisson blending to seamlessly integrate the pasted damage into the background textures and lighting of the target image.
Overview of the proposed content and perspective-aware augmentation pipeline.

Experimental Setup

The study evaluated the method using the Japan subset of the RDDC2022 dataset. This dataset includes four specific classes of damage: Longitudinal Crack (D00), Transverse Crack (D10), Alligator Crack (D20), and Pothole (D40). The model used for evaluation was a Faster R-CNN with an X-101-FPN backbone, implemented via the Detectron2 framework.

Results and Discussion

The proposed method outperformed both the baseline and standard cut-and-paste techniques across several metrics.

Comparison of detection performance between the baseline, standard cut-and-paste, and the proposed method.

The "Ours" method achieved a mean Average Precision (mAP50) of 58.19, compared to the baseline of 56.52. Significant improvements were seen in detecting Potholes (D40), jumping from an AP of 21.58 to 24.29, and Longitudinal Cracks (D00), rising from 22.84 to 23.33. Furthermore, the test loss dropped from 0.86 (baseline) to 0.81, indicating that the model trained with perspective-aware data generalizes better to unseen images.

These results suggest that for specialized tasks like infrastructure monitoring, injecting domain knowledge (geometry and spatial context) into the augmentation process is more effective than purely random placement. The inclusion of heatmaps based on traffic flow further helps the model learn the spatial context of where damage is likely to occur.

Conclusion and Future Work

This work demonstrates that content and perspective-aware augmentation significantly improves road damage detection by respecting the laws of physics and geometry. However, the method relies on the accuracy of the initial semantic segmentation model and introduces computational overhead. Future research could explore handling global lighting mismatches through sophisticated style transfer to further enhance the realism of augmented images.

Summary updated

BibTeX
@misc{siripathitti2024cut,
  author = {Punnawat Siripathitti and Florent Forest and Olga Fink},
  title = {{Cut-and-Paste with Precision: a Content and Perspective-aware Data Augmentation for Road Damage Detection}},
  year = {2024},
  eprint = {2406.18586},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.18586},
}
Figure