Automated Detection of Potholes in Pavements using Deep Neural Networks with Fine Tuning and Data Augmentation Techniques

Juliana Peixoto Alencar, Gabriela M. P. Mendes, César Mattos, João P. P. Gomes, Lucas Feitosa de Albuquerque Lima Babadopulos, Jorge Barbosa Soares, Marcelo B. A. VerasResearch Square 2024

Abstract

Automatic detection of potholes for pavement condition assessment leads to great savings in expenses and allows a better spending of resources destined to road infrastructure management. Out of all the available pothole detection techniques, the use of image-based methods within neural networks frameworks is the one that has offered the best balance between cost and accuracy. Convolutional Neural Networks (CNN) are deep neural network models specially designed for image processing problems. They have achieved remarkable results in many applications. Inspired by the success of such models, in this paper, we have evaluated the performance of 8 CNN methods in the task of pothole detection from pavement images. Along with the evaluation of the CNN architectures, we have also tested the impact of using pre-trained models with fine tuning procedures and data augmentation techniques. Such procedures enable the use of fewer training images. Given the high cost and labor intensiveness of obtaining labeled images, the annotated images were intentionally randomly selected to reduce the dataset from its original size. The dataset of images is from Brazilian roads acquired from a typical setup of a camera attached to a vehicle. The results indicate that pre-trained CNN models with fine tuning constitute a promising technique for pothole detection in pavements, especially when a large amount of labeled data is not available.

Introduction

Maintaining road infrastructure is a significant financial challenge, particularly in developing regions where resources are constrained. Potholes, defined as bowl-shaped depressions in the pavement, represent a major safety hazard, contributing to vehicle damage and road accidents. Traditional methods for assessing pavement condition rely heavily on manual inspections, where trained personnel visually survey road segments. This process is inherently slow, labor-intensive, and prone to subjective bias.

While automated technologies such as vibration sensors or 3D laser scanners have been explored, they often involve high equipment costs or complex data processing. Image-based detection using Deep Learning offers a more cost-effective "sweet spot." However, standard deep learning models typically require millions of labeled images to achieve high accuracy. This study addresses the "data hunger" problem by investigating how to build a reliable pothole detector using a limited dataset of only a few hundred images.

Methodology

The research team implemented a three-pronged strategy to maximize model performance with minimal data:

1. Transfer Learning

Rather than training models from scratch, the study utilized eight state-of-the-art Convolutional Neural Network (CNN) architectures, including VGG, ResNet, Xception, and Inception. These models were pre-trained on the ImageNet dataset, allowing them to leverage pre-existing knowledge of basic visual features like edges and textures.

2. Two-Stage Training and Fine-Tuning

The training process was divided into two distinct phases:

  • Stage 1 (Feature Extraction): The early layers of the models were "frozen" to preserve their pre-trained weights. Only the final two layers were trained for 200 epochs to adapt the network to the specific task of pothole classification.
  • Stage 2 (Fine-Tuning): All layers were "unfrozen," and the entire network was trained for an additional 100 epochs at a very low learning rate. This allowed the models to subtly adjust their internal representations to better distinguish the specific textures and shapes associated with pavement distress.

3. Data Augmentation

To mitigate the risk of overfitting on a small dataset, data augmentation techniques were employed. Random horizontal flips, rotations, and zooms were applied to the training images, artificially increasing the variety of examples and improving the models' ability to generalize to new data.

Dataset Description

The study utilized a custom dataset collected from roads in Ceará, Brazil. A survey vehicle equipped with two cameras, GPS, and an odometer captured 449 georeferenced images (202 containing potholes and 247 without). The dataset was split into 60% for training, 20% for validation, and 20% for testing. Given the high cost and labor intensiveness of obtaining labeled images, the annotated images were intentionally randomly selected to reduce the dataset from its original size. Unlike many benchmark datasets, these images were acquired under real-world conditions, including varying lighting and shadows.

Results and Discussion

The experimental results demonstrate that the proposed approach is highly effective for automated pavement assessment.

Model Performance

The ResNet101V2 architecture emerged as the top performer, achieving an average accuracy of 89.44%. Most other models, including VGG16 and ResNet50V2, also performed consistently well, with average accuracies exceeding 80%.

The Impact of Fine-Tuning

A qualitative analysis of difficult test cases highlighted the importance of the fine-tuning stage. Before fine-tuning, models frequently misclassified images due to shadows or anomalous lighting conditions. After fine-tuning, the number of misclassifications in a set of 14 challenging images dropped from 14 to just 3. This suggests that fine-tuning is critical for helping the AI distinguish between simple shadows and actual physical depressions in the road surface.

Practical Implications

By simplifying the problem from "object detection" (locating every pothole) to "classification" (identifying if a road segment contains a pothole), the researchers created a system that is easier to train with limited data. This approach significantly lowers the barrier to entry for municipalities looking to automate road inspections without the need for massive, manually labeled datasets.

Conclusion

This study proves that transfer learning combined with fine-tuning and data augmentation can produce high-accuracy pothole detection models even with small datasets. Future research will focus on expanding the model's capabilities to detect other types of pavement distress, such as alligator cracking or patches. Ultimately, the goal is to integrate these automated tools into official pavement quality indices used by agencies like the Court of Audits of Ceará State, enabling more effective and objective prioritization of infrastructure spending.

Summary updated

BibTeX
@inproceedings{alencar2024automated,
  author = {Juliana Peixoto Alencar and Gabriela M. P. Mendes and César Mattos and João P. P. Gomes and Lucas Feitosa de Albuquerque Lima Babadopulos and Jorge Barbosa Soares and Marcelo B. A. Veras},
  title = {{Automated Detection of Potholes in Pavements using Deep Neural Networks with Fine Tuning and Data Augmentation Techniques}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-4437158/v1},
}
Figure