Road Crack Detection Using Deep Convolutional Neural Network and Adaptive Thresholding

Rui Fan, Mohammud Junaid Bocus, Yilong Zhu, Jianhao Jiao, Li Wang, Fulong Ma, Shanshan Cheng, Ming Liu

Abstract

This paper presents a robust two-stage pipeline for automated road crack detection and segmentation. The first stage utilizes a Deep Convolutional Neural Network (DCNN) to classify images as containing cracks or not, achieving a near-perfect accuracy of 99.92%. For positive detections, a second stage employs a novel adaptive thresholding algorithm based on k-means clustering of 2D histograms to precisely extract crack geometries. This hybrid approach effectively filters out environmental noise and outperforms traditional segmentation methods like Otsu’s thresholding.

Introduction

Maintaining extensive road networks is a multi-billion dollar global challenge. Traditional manual inspection methods are slow, subjective, and potentially hazardous. While automated systems have been developed, they often struggle with real-world complexities such as shadows, oil stains, and varying pavement textures. This research addresses these challenges by combining the high-level feature extraction capabilities of deep learning with the mathematical precision of adaptive segmentation.

Methods

The proposed system operates in two distinct phases: classification and segmentation.

Image Classification

A DCNN acts as a gatekeeper to identify images containing cracks. The architecture is designed as a hierarchical feature extractor using blocks consisting of a convolutional layer, batch normalization, and ReLU activation (Figure 1). This stage ensures that only relevant images proceed to the more computationally intensive segmentation phase.

Figure 1: Architecture of the Deep Convolutional Neural Network used for crack classification.

Image Segmentation

For images classified as "positive," a segmentation routine is applied. First, bilateral filtering is used to smooth the image while preserving crack edges. Then, adaptive thresholding is performed using 2D histograms. By analyzing a pixel's intensity relative to its neighbors and applying k-means clustering, the algorithm distinguishes local intensity drops (cracks) from global lighting variations (shadows).

Datasets

The model was trained and evaluated using a dataset of 40,000 RGB images (227x227 resolution) from the Middle East Technical University. The dataset is balanced, containing 20,000 positive and 20,000 negative samples. 30,000 images were used for training, and 10,000 for testing.

Results

The DCNN classifier achieved an accuracy of 99.92%, with only 8 misclassifications out of 10,000 test images. The classification process is highly efficient, requiring only 4.8 ms per image on a standard CPU. In the segmentation stage, the proposed method demonstrated superior performance compared to Otsu’s thresholding, achieving a Precision of 0.9774 and an F1-measure of 0.9548. Figure 3 illustrates the progression from the original noisy image to the final segmented crack mask.

Figure 3: Segmentation pipeline showing (a) original image, (b) filtered image, and (c) final segmented crack geometry.

Conclusion

The hybrid DCNN and adaptive thresholding approach provides a highly accurate and efficient solution for road crack detection. While extremely noisy surfaces remain a challenge, the system significantly improves upon traditional computer vision techniques. Future research will focus on end-to-end semantic segmentation to directly classify and segment various types of road distress in a single pass.

Summary updated

BibTeX
@inproceedings{fan2019road,
  author = {Rui Fan and Mohammud Junaid Bocus and Yilong Zhu and Jianhao Jiao and Li Wang and Fulong Ma and Shanshan Cheng and Ming Liu},
  title = {{Road Crack Detection Using Deep Convolutional Neural Network and Adaptive Thresholding}},
  booktitle = {IV},
  year = {2019},
  url = {https://openreview.net/forum?id=oUcK1HIRTmL_},
}
Figure