Evaluating of KNN, Random Forest, and ResNet18 for Identifying Cracks in Historical Buildings

AI-Based Crack Detection Methods

Authors

  • Taha Rashid Universiti Teknologi Malaysia, Malaysia
  • Musa Mokji Faculty of Electrical Engineering, Universiti Teknologi Malaysia, 81310 UTM Skudai, Johor, Malaysia.
  • Mohammed RASHEED MOLTECH Anjou, Universite d’Angers/UMR CNRS 6200, 2, Bd Lavoisier, 49045 Angers, France. https://orcid.org/0000-0002-0768-2142

DOI:

https://doi.org/10.11113/elektrika.v24n2.685

Keywords:

crack detection, historical buildings, deep learning, machine learning, structural health monitoring

Abstract

A key element of structural damage monitoring and restoration efforts in old structures is crack detection. Conventional manual inspection techniques lack scalability, are labor intensive, and are susceptible to human error. This work investigated the performance of K-Nearest Neighbors (KNN), Random Forest, and ResNet18 models in autonomously finding cracks from the Historical-Crack18-19 dataset. The classes were balanced by increasing the dataset, which consists of, 3139 non-cracked images and 757 cracked images before training. Classification reports, confusion matrices, and predictions based on samples helped assess the models. The tests produced findings demonstrating that ResNet18 far outperformed Random Forest and KNN. Comparatively, KNN is 82% and Random Forest is 88%; the accuracy of ResNet18 is 99%. ResNet18, which is based on deep learning, had the best accuracy, Recall, and F1-Score metrics. It also had a way to tell the difference between surfaces that are cracked and those that are not. These findings show image convolutional neural networks (CNNs) are better at finding cracks, which means they could be used to keep an eye on old buildings in the real world. We will use sophisticated deep learning architectures and domain adaptation methods in future work to increase the model's resilience on many datasets even further.

Author Biography

Mohammed RASHEED, MOLTECH Anjou, Universite d’Angers/UMR CNRS 6200, 2, Bd Lavoisier, 49045 Angers, France.

Mohammed Siham Rasheed is an assistant professor Dr. and scientist in the field of applied sciences. The scope of his research is quite abroad, covering nanotechnology, thin films, numerical analysis, optical communication, material science, image processing, ceramics, polymer, laser applications knowledge-based system development, and the implementation of data analytic, simulation and solid-state physics models, molecular biology, environment. He has published over 142 research articles within international journals and total number of citations over 5859 (Google Scholar H-Index = 50). He has collaborated with 5 international countries (France, Morocco, Tunisia, Algeria, and Turkey) Malaysia, and more than 50 researchers. He has served as a reviewer for more than 50 international journals.

Downloads

Published

2025-08-29

How to Cite

Rashid, T., Mokji, M., & RASHEED, M. (2025). Evaluating of KNN, Random Forest, and ResNet18 for Identifying Cracks in Historical Buildings: AI-Based Crack Detection Methods. ELEKTRIKA- Journal of Electrical Engineering, 24(2), 201–210. https://doi.org/10.11113/elektrika.v24n2.685

Issue

Section

Articles