A Road Crack Detection Method Based on Residual and Attention Mechanism
Abstract
:1. Introduction
2. Proposed Method
2.1. Unet Model
2.2. Feature Extraction Module
2.3. Convolutional Attention Module
- Channel attention module
- Spatial attention module
2.4. Our Method
3. Experimental Results and Analysis
3.1. Experimental Setup
- 2.
- Experimental platform: All network models in this article were implemented based on a deep learning architecture called PyTorch. In our proposed network structure, the SGD optimization method was used to update parameters, with a learning rate initialized to 0.01 and momentum optimization algorithm set to 0.9. All experiments in this paper were carried out using GeForce RTX 3060 GPU, which is from NVIDIA, Santa Clara, CA, USA.
- 3.
- Datasets: This study used three publicly available crack datasets, namely CrackTree260, CrackLS315, and DeepCrack [21]. The CrackTree260 dataset is a dataset of asphalt pavement images, which includes 260 pavement images with a size of 800 × 600 pixels. The CrackLS315 dataset includes 315 crack images with a size of 512 × 512 pixels. The DeepCrack dataset is a dataset of concrete pavement images, which includes 537 pavement images with dimensions of 544 × 384 pixels. The labeled images in these datasets were manually labeled. To address the issue of an insufficient number of images in the dataset, we employed four data augmentation methods: vertical reflection, mirror reflection, translation, and random rotation. Through the above operations, the number of training datasets can be expanded by 8 times. To validate the established neural network models, we selected 75% of each dataset as training data and 25% as test data.
- 4.
- Evaluation indicators: In this article, classic evaluation indicators in the field of semantic segmentation, such as precision (P), recall (R), and F1 score, were selected for evaluation. Formula (5) is a calculation method for accuracy, which can express the ratio of detection results to ground-truth. Formula (6) is the calculation method for recall rate, which represents the percentage of correctly detected crack pixels to detected crack pixels. Formula (7) is the calculation method for F1 value, which can measure both accuracy and recall. The higher the F1 value, the better the detection effect.
- 5.
- Comparison method: This article compared the advanced crack segmentation methods; all comparison methods were based on deep learning as follows:
- U-Net. Its network structure mainly consists of three parts: encoder, decoder, and skip connection, and is widely used in the field of image segmentation;
- Jing et al. [22] proposed a deep convolutional neural network based on attention mechanism and residual structure;
- Junzhou Chen et al. [23] proposed a refined crack detection method via LECSFormer for autonomous road inspection vehicles.
3.2. Visualization Analysis of Experimental Results
3.3. Ablation Experiment
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Zhang, D.J.; Li, Q.Q.; Chen, Y.; Cao, M.; He, L. Asphalt Pavement Crack Detection Based on Spatial Clustering Feature. Acta Autom. Sin. 2016, 42, 443–454. [Google Scholar]
- Jiang, W.B.; Luo, Q.R.; Zhang, X.H. A Review of Concrete Roads Crack Detection Methods Based on Digital Image. J. Xihua Univ. Nat. Sci. Ed. 2018, 37, 75–84. [Google Scholar]
- Maode, Y.; Shaobo, B.; Kun, X.; Yuyao, H. Pavement crack detection and analysis for high-grade highway. In Proceedings of the 2007 8th International Conference on Electronic Measurement and Instruments, Xi’an, China, 16–18 August 2007; pp. 4–548. [Google Scholar]
- Oliveira, H.; Correoa, P.L. Automatic road crack segmentation using entropy and image dynamic thresholding. In Proceedings of the European Signal Processing Conference, Glasgow, UK, 24–28 August 2009; pp. 622–626. [Google Scholar]
- Zhao, H.L.; Qin, G.F.; Wang, X.J. Improvement of canny algorithm based on pavement edge detection. In Proceedings of the 2010 3rd International Congress on Image and Signal Processing (CISP), Yantai, China, 16–18 October 2010; Volume 2, pp. 964–967. [Google Scholar]
- Ayenu-Prah, A.; Attoh-Okine, N. Evaluating pavement cracks with bidimensional empirical mode decomposition. EURASIP J. Adv. Signal Process. 2008, 2008, 861701. [Google Scholar] [CrossRef]
- Qu, Z.; Chen, Y.-X.; Liu, L.; Xie, Y.; Zhou, Q. The Algorithm of Concrete Surface Crack Detection Based on the Genetic Programming and Percolation Model. IEEE Access 2019, 7, 57592–57603. [Google Scholar] [CrossRef]
- Zhang, A.; Wang, K.C.P.; Li, B.; Yang, E.; Dai, X.; Peng, Y.; Fei, Y.; Liu, Y.; Li, J.Q.; Chen, C. Automated Pixel-Level Pavement Crack Detection on 3D Asphalt Surfaces Using a Deep-Learning Network. Comput.-Aided Civ. Infrastruct. Eng. 2017, 32, 805–819. [Google Scholar] [CrossRef]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015; Springer: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar]
- Liu, Z.; Cao, Y.; Wang, Y.; Wang, W. Computer vision-based concrete crack detection using U-net fully convolutional networks. Autom. Constr. 2019, 104, 129–139. [Google Scholar] [CrossRef]
- Gou, C.; Peng, B.; Li, T.; Gao, Z. Pavement Crack Detection Based on the Improved Faster-RCNN. In Proceedings of the 2019 IEEE 14th International Conference on Intelligent Systems and Knowledge Engineering (ISKE), Dalian, China, 14–16 November 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 962–967. [Google Scholar]
- Ren, Y.; Huang, J.; Hong, Z.; Lu, W.; Yin, J.; Zou, L.; Shen, X. Image-based concrete crack detection in tunnels using deep fully convolutional networks. Constr. Build. Mater. 2020, 234, 117367. [Google Scholar] [CrossRef]
- Fan, Z.; Li, C.; Chen, Y.; Wei, J.; Loprencipe, G.; Chen, X.; Di Mascio, P. Automatic crack detection on road pavements using encoder-decoder architecture. Materials 2020, 13, 2960. [Google Scholar] [CrossRef] [PubMed]
- Lau, S.L.; Chong, E.K.; Yang, X.; Wang, X. Automated pavement crack segmentation using u-net-based convolutional neural network. IEEE Access 2020, 8, 114892–114899. [Google Scholar] [CrossRef]
- Thitirat, S. Pixel-level thin crack detection on road surface using convolutional neural network for severely imbalanced data. Comput.-Aided Civ. Infrastruct. Eng. 2023, 11, 2300–2316. [Google Scholar]
- Zou, Q.; Zhang, Z.; Li, Q.; Qi, X.; Wang, Q.; Wang, S. Deepcrack: Learning hierarchical convolutional features for crack detection. IEEE Trans. Image Process. 2018, 28, 1498–1512. [Google Scholar] [CrossRef] [PubMed]
- Mandal, V.; Uong, L.; Adu-Gyamfi, Y. Automated Road Crack Detection Using Deep Convolutional Neural Networks. In Proceedings of the 2018 IEEE International Conference on Big Data, Seattle, WA, USA, 10–13 December 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 5212–5215. [Google Scholar]
- Hui, B.; Li, Y. Pavement crack detection method based on improved U-shaped neural network. Traffic Inf. Saf. 2023, 41, 105–114. [Google Scholar]
- Jiang, W.B.; Liu, M.; Peng, Y.N.; Wu, L.; Wang, Y. HDCB-net: A Neural Network with the Hybrid Dilated Convention for Pixel-level Crack Detection on Concrete Bridges. IEEE Trans. Ind. Inform. 2021, 17, 5485–5494. [Google Scholar] [CrossRef]
- Woo, S.; Park, J.; Lee, J.Y.; Kweon, I.S. CBAM: Convolutional block attention module. In Proceedings of the 15th European Conference on Computer Vision, Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar]
- Liu, Y.; Yao, J.; Lu, X.; Xie, R.; Li, L. DeepCrack: A deep hierarchical feature learning architecture for crack segmentation. Neurocomputing 2019, 338, 139–153. [Google Scholar] [CrossRef]
- Jing, P.; Yu, H.; Hua, Z.; Xie, S.; Song, C. Road Crack Detection Using Deep Neural Network Based on Attention Mechanism and Residual Structure. IEEE Access 2023, 11, 919–929. [Google Scholar] [CrossRef]
- Chen, J.; Zhao, N.; Zhang, R.; Chen, L.; Huang, K.; Qiu, Z. Refined Crack Detection via LECSFormer for Autonomous Road Inspection Vehicles. IEEE Trans. Intell. Veh. 2023, 3, 2049–2061. [Google Scholar] [CrossRef]
Methods | CrackTree260 | CrackLS315 | DeepCrack | ||||||
---|---|---|---|---|---|---|---|---|---|
P | R | F1 | P | R | F1 | P | R | F1 | |
UNet | 0.729 | 0.757 | 0.743 | 0.677 | 0.712 | 0.694 | 0.746 | 0.606 | 0.669 |
Ref. [22] | 0.773 | 0.791 | 0.782 | 0.709 | 0.694 | 0.702 | 0.749 | 0.766 | 0.757 |
Ref. [23] | 0.768 | 0.795 | 0.781 | 0.730 | 0.742 | 0.736 | 0.716 | 0.706 | 0.711 |
Our method | 0.786 | 0.784 | 0.785 | 0.744 | 0.732 | 0.738 | 0.751 | 0.765 | 0.758 |
UNet | BasicBlock | BottleNeck | CBAM | P | R | F1 |
---|---|---|---|---|---|---|
● | ○ | ○ | ○ | 0.693 | 0.690 | 0.691 |
● | ● | ○ | ○ | 0.740 | 0.714 | 0.727 |
● | ● | ● | ○ | 0.721 | 0.695 | 0.708 |
● | ○ | ○ | ● | 0.748 | 0.726 | 0.737 |
● | ● | ● | ● | 0.786 | 0.784 | 0.785 |
UNet | BasicBlock | BottleNeck | CBAM | P | R | F1 |
---|---|---|---|---|---|---|
● | ○ | ○ | ○ | 0.691 | 0.702 | 0.696 |
● | ● | ○ | ○ | 0.702 | 0.715 | 0.708 |
● | ● | ● | ○ | 0.732 | 0.709 | 0.720 |
● | ○ | ○ | ● | 0.723 | 0.708 | 0.715 |
● | ● | ● | ● | 0.744 | 0.732 | 0.738 |
UNet | BasicBlock | BottleNeck | CBAM | P | R | F1 |
---|---|---|---|---|---|---|
● | ○ | ○ | ○ | 0.721 | 0.712 | 0.716 |
● | ● | ○ | ○ | 0.732 | 0.725 | 0.728 |
● | ● | ● | ○ | 0.742 | 0.729 | 0.735 |
● | ○ | ○ | ● | 0.738 | 0.728 | 0.733 |
● | ● | ● | ● | 0.751 | 0.765 | 0.758 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Xie, J.; Li, W.; Liu, W.; Chen, H. A Road Crack Detection Method Based on Residual and Attention Mechanism. Appl. Sci. 2024, 14, 5749. https://doi.org/10.3390/app14135749
Xie J, Li W, Liu W, Chen H. A Road Crack Detection Method Based on Residual and Attention Mechanism. Applied Sciences. 2024; 14(13):5749. https://doi.org/10.3390/app14135749
Chicago/Turabian StyleXie, Jianwu, Weiwei Li, Wenwen Liu, and Hang Chen. 2024. "A Road Crack Detection Method Based on Residual and Attention Mechanism" Applied Sciences 14, no. 13: 5749. https://doi.org/10.3390/app14135749
APA StyleXie, J., Li, W., Liu, W., & Chen, H. (2024). A Road Crack Detection Method Based on Residual and Attention Mechanism. Applied Sciences, 14(13), 5749. https://doi.org/10.3390/app14135749