[Paper Review] Detection of Pavement Cracks by Deep Learning Models of Transformer and UNet
This study evaluates nine deep learning models—combining Vision Transformers and U-Net architectures—for automated pavement crack detection. SwinUNet achieves the highest accuracy, demonstrating that transformer-based models outperform traditional CNNs in crack segmentation while requiring higher computational resources.
Fracture is one of the main failure modes of engineering structures such as buildings and roads. Effective detection of surface cracks is significant for damage evaluation and structure maintenance. In recent years, the emergence and development of deep learning techniques have shown great potential to facilitate surface crack detection. Currently, most reported tasks were performed by a convolutional neural network (CNN), while the limitation of CNN may be improved by the transformer architecture introduced recently. In this study, we investigated nine promising models to evaluate their performance in pavement surface crack detection by model accuracy, computational complexity, and model stability. We created 711 images of 224 by 224 pixels with crack labels, selected an optimal loss function, compared the evaluation metrics of the validation dataset and test dataset, analyzed the data details, and checked the segmentation outcomes of each model. We find that transformer-based models generally are easier to converge during the training process and have higher accuracy, but usually exhibit more memory consumption and low processing efficiency. Among nine models, SwinUNet outperforms the other two transformers and shows the highest accuracy among nine models. The results should shed light on surface crack detection by various deep-learning models and provide a guideline for future applications in this field.
Motivation & Objective
- To evaluate the performance of diverse deep learning models, including Vision Transformers and U-Net variants, in detecting pavement surface cracks.
- To assess model accuracy, computational complexity, and training stability for crack segmentation tasks.
- To identify the optimal loss function and evaluate model generalization using validation and test datasets.
- To provide a comparative benchmark for future applications in infrastructure health monitoring and maintenance.
Proposed method
- Collected and curated 711 high-resolution (224×224) pavement images with pixel-level crack annotations.
- Trained nine deep learning models, including two Vision Transformer-based architectures and seven U-Net variants, on the annotated dataset.
- Optimized and selected the best-performing loss function through empirical evaluation on validation data.
- Evaluated models using standard segmentation metrics on both validation and independent test sets.
- Analyzed model convergence behavior, inference efficiency, and memory consumption across all architectures.
- Performed qualitative and quantitative analysis of segmentation outputs to assess robustness and precision.
Experimental results
Research questions
- RQ1How do Vision Transformer-based models compare to U-Net architectures in terms of segmentation accuracy for pavement cracks?
- RQ2Which deep learning model architecture achieves the highest accuracy while maintaining training stability and generalization?
- RQ3What is the impact of model architecture on computational complexity and inference efficiency in crack detection tasks?
- RQ4How does the choice of loss function affect model convergence and segmentation performance?
- RQ5To what extent do transformer-based models improve generalization and robustness compared to standard CNN-based models?
Key findings
- SwinUNet achieved the highest segmentation accuracy among all nine models evaluated, outperforming both standard U-Net and other Vision Transformer-based architectures.
- Transformer-based models demonstrated faster convergence during training compared to CNN-based models, indicating improved optimization dynamics.
- Despite higher accuracy, transformer-based models exhibited significantly greater memory consumption and lower inference efficiency.
- The selected loss function improved model generalization, as evidenced by consistent performance across validation and test datasets.
- Model stability was higher in Vision Transformer-based architectures, with fewer training fluctuations and better robustness to input variations.
- The results confirm that hybrid architectures like SwinUNet effectively combine local inductive bias from U-Net with global attention from Vision Transformers for superior crack segmentation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.