Enhancing road crack detection using hybrid PSO-WOA feature selection and random forest classifier
Pallav Kumar 1 and Shivangi Mishra2
Assitant Town Planning Supervisor,Urban Development and Housing Department, Patna, 800015,Bihar,India2
Corresponding Author : Pallav Kumar
Recieved : 05-Oct-2024; Revised : 10-Sep-2025; Accepted : 16-Sep-2025
Abstract
Road crack detection plays a vital role in maintaining infrastructure safety and preventing accidents. A robust approach was presented for road crack detection using a hybrid feature extraction method and a feature selection technique, coupled with a powerful classification algorithm. The hybrid approach combines texture-based features, including multiscale local binary pattern (MSLBP), discrete cosine transform (DCT), speeded-up robust features (SURF), and convolutional neural network (CNN) features, to capture both local and global characteristics of road crack images. To further enhance classification accuracy and reduce dimensionality, a hybrid particle swarm optimization and whale optimization algorithm (PSO-WOA) is employed for feature selection. Hybrid PSO-WOA ensures that the selected features have high relevance to the classification task while minimizing redundancy among them. By leveraging PSO-WOA, the most discriminative features for accurate road crack detection are identified. Subsequently, the selected features are utilized to train a random forest (RF) classifier, a robust and ensemble-based algorithm known for handling complex datasets and maintaining strong generalization capabilities. The RF classifier accurately classifies road crack images into relevant categories, enabling effective detection and localization of cracks on road surfaces. Extensive experiments on a dataset of road crack images were conducted to evaluate the performance of the proposed approach. Various performance metrics, including accuracy, sensitivity, specificity, precision, and F1-Score, were measured to assess the quality of the approach. The results demonstrated that the hybrid feature extraction, PSO-WOA-based feature selection, and RF classification method significantly enhanced road crack detection accuracy and reliability compared to existing techniques.
Keywords
Road crack detection, Hybrid feature extraction, PSO-WOA optimization, Random forest classifier, Image classification, Infrastructure safety.
Cite this article
Kumar P, Mishra S. Enhancing road crack detection using hybrid PSO-WOA feature selection and random forest classifier. International Journal of Advanced Technology and Engineering Exploration. 2025; 12(130):1360-1378
References
[1] Shi Z, Jin N, Chen D, Ai D. A comparison study of semantic segmentation networks for crack detection in construction materials. Construction and Building Materials. 2024; 414:134950.
[2] Inam H, Islam NU, Akram MU, Ullah F. Smart and automated infrastructure management: a deep learning approach for crack detection in bridge images. Sustainability. 2023; 15(3):1-35.
[3] Ashraf A, Sophian A, Shafie AA, Gunawan TS, Ismail NN. Machine learning-based pavement crack detection, classification, and characterization: a review. Bulletin of Electrical Engineering and Informatics. 2023; 12(6):3601-19.
[4] Zuo H, Li Z, Gong J, Tian Z. Intelligent road crack detection and analysis based on improved YOLOv8. In 8th international conference on advanced algorithms and control engineering (ICAACE) 2025 (pp. 1192-5). IEEE.
[5] Guo W, Zhong L, Zhang D, Li Q. Pavement crack detection using fractal dimension and semi-supervised learning. Fractal and Fractional. 2024; 8(8):1-16.
[6] Xu C, Zhang Q, Mei L, Chang X, Ye Z, Wang J, et al. Cross-attention-guided feature alignment network for road crack detection. ISPRS International Journal of Geo-Information. 2023; 12(9):1-25.
[7] Ma N, Song Z, Hu Q, Liu CW, Han Y, Zhang Y, et al. Vehicular road crack detection with deep learning: a new online benchmark for comprehensive evaluation of existing algorithms. IEEE Transactions on Intelligent Vehicles.18082. 2025:1-16.
[8] Zhu G, Shen SL, Yao J, Wang M, Zhuang J, Fan Z. Automatic lightweight networks for real-time road crack detection with DPSO. Advanced Engineering Informatics. 2025; 68:103610.
[9] Wang Z, Qiu D, Wu R, Shi Y, Niu W. Research on road crack detection based on RGB-LPC-GPR data fusion. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences. 2025; 48:1543-50.
[10] Wang T, Gopalakrishnan K, Smadi O, Somani AK. Automated shape-based pavement crack detection approach. Transport. 2018; 33(3):598-608.
[11] Amhaz R, Chambon S, Idier J, Baltazart V. Automatic crack detection on two-dimensional pavement images: an algorithm based on minimal path selection. IEEE Transactions on Intelligent Transportation Systems. 2016; 17(10):2718-29.
[12] Lins RG, Givigi SN. Automatic crack detection and measurement based on image analysis. IEEE Transactions on Instrumentation and Measurement. 2016; 65(3):583-90.
[13] Ai D, Jiang G, Kei LS, Li C. Automatic pixel-level pavement crack detection using information of multi-scale neighborhoods. IEEE Access. 2018; 6:24452-63.
[14] Wang B, Li Y, Zhao W, Zhang Z, Zhang Y, Wang Z. Effective crack damage detection using multilayer sparse feature representation and incremental extreme learning machine. Applied Sciences. 2019; 9(3):1-21.
[15] Cha YJ, Choi W, Büyüköztürk O. Deep learning‐based crack damage detection using convolutional neural networks. Computer‐Aided Civil and Infrastructure Engineering. 2017; 32(5):361-78.
[16] Cheng J, Xiong W, Chen W, Gu Y, Li Y. Pixel-level crack detection using U-Net. In TENCON 2018 (pp. 462-6). IEEE.
[17] Bang S, Park S, Kim H, Yoon YS, Kim H. A deep residual network with transfer learning for pixel-level road crack detection. In proceedings of the international symposium on automation and robotics in construction 2018 (pp. 1-4). IAARC Publications.
[18] Xu G, Chen F, Wu G, Li X. Active solution of homography for pavement crack recovery with four laser lines. Scientific Reports. 2018; 8(1):1-10.
[19] Hoang ND, Nguyen QL. A novel method for asphalt pavement crack classification based on image processing and machine learning. Engineering with Computers. 2019; 35(2):487-98.
[20] Ibrahim A, Osman MK, Yusof NA, Ahmad KA, Harun NH, Raof RA. Characterization of cracking in pavement distress using image processing techniques and k-nearest neighbour. Indonesian Journal of Electrical Engineering and Computer Science. 2019; 14(2):810-8.
[21] Ahmadi A, Khalesi S, Bagheri M. Automatic road crack detection and classification using image processing techniques, machine learning and integrated models in urban areas: a novel image binarization technique. Journal of Industrial and Systems Engineering. 2018:85-97.
[22] Kim H, Ahn E, Shin M, Sim SH. Crack and noncrack classification from concrete surface images using machine learning. Structural Health Monitoring. 2019; 18(3):725-38.
[23] Li B, Wang KC, Zhang A, Yang E, Wang G. Automatic classification of pavement crack using deep convolutional neural network. International Journal of Pavement Engineering. 2020; 21(4):457-63.
[24] Li L, Sun L, Ning G, Tan S. Automatic pavement crack recognition based on BP neural network. PROMET-Traffic &Transportation. 2014; 26(1):11-22.
[25] Cubero-fernandez A, Rodriguez-lozano FJ, Villatoro R, Olivares J, Palomares JM. Efficient pavement crack detection and classification. EURASIP Journal on Image and Video Processing. 2017; 2017(1):1-11.
[26] Pandey V, Mishra SS. A review of image-based deep learning methods for crack detection. Multimedia Tools and Applications. 2025; 84:35469-511.
[27] Lu KL. Comparison of deep learning methods and a transfer-learning semisupervised generative-adversarial-network combined framework for pavement crack image identification. Pattern Recognition and Image Analysis. 2025; 35(1):19-30.
[28] Liu Z, Gu X, Chen J, Wang D, Chen Y, Wang L. Automatic recognition of pavement cracks from combined GPR B-scan and C-scan images using multiscale feature fusion deep neural networks. Automation in Construction. 2023; 146:104698.
[29] Kim Y, Yi S, Ahn H, Hong CH. Accurate crack detection based on distributed deep learning for IoT environment. Sensors. 2023; 23(2):1-12.
[30] Huang S, Chen H, Yan L, Zou X, Li B, Bi Y. A review of the progress in machine vision-based crack detection and identification technology for asphalt pavements. Digital Transportation and Safety. 2025; 4(1):65-79.
[31] Zaheer Q, Qiu S, Hassan SSM, Ai C, Wang J. Intelligent multitasking framework for boundary-preserving semantic segmentation, width estimation, and propagation modeling of concrete cracks. Journal of Infrastructure Systems. 2025; 31(3):04025009.
[32] Li M. A better color space conversion based on learned variances for image compression. In proceedings of the conference on computer vision and pattern recognition workshops 2019 (pp. 1-5). IEEE.
[33] https://www.kaggle.com/datasets/lakshaymiddha/crack-segmentation-dataset. Accessed 10 August 2025.
[34] Anand S, Gupta S, Darbari V, Kohli S. Crack-pot: autonomous road crack and pothole detection. In digital image computing: techniques and applications (DICTA) 2018 (pp. 1-6). IEEE.
[35] Zhang C, Nateghinia E, Miranda-moreno LF, Sun L. Pavement distress detection using convolutional neural network (CNN): a case study in Montreal, Canada. International Journal of Transportation Science and Technology. 2022; 11(2):298-309.
[36] Minhas MS, Zelek JS. Defect detection using deep learning from minimal annotations. In proceedings of the 15th international joint conference on computer vision, imaging and computer graphics theory and applications 2020 (pp. 506-13). Science and Technology Publications.