Deep Learning- Based Structural Crack Detection, Segmentation, Width Estimation & Severity Classification Using YOLOv11s-seg
Description
Deep Learning-Based Structural Crack Detection Using YOLOv11s-segThis project presents an automated system for detecting, segmenting, measuring, and classifying cracks in concrete structures — a key problem in Structural Health Monitoring (SHM).Traditional manual inspection is slow, subjective, and struggles with tiny sub-millimetre cracks. This system solves that by using YOLOv11s-seg, a deep learning model, to automatically detect and segment cracks from images.
Objectives
The study aimed to develop an integrated deep learning framework with the following goals: Develop an automated end-to-end pipeline for crack detection, segmentation, and quantitative width estimation Compare YOLOv8s-seg and YOLOv11s-seg under the same training conditions to identify the superior model Implement a coin-based reference calibration method for reliable pixel-to-millimeter conversion Propose an empirical bias correction strategy to reduce systematic overestimation of crack width Classify crack severity according to ACI 224R-01 engineering guidelines Detect and eliminate dataset leakage to ensure unbiased and realistic model evaluation Validate generalization on external datasets including Roboflow and the self-collected CUI Wah dataset
Socio-economic benefit
The following practical benefits are clearly mentioned throughout: Safety — Early detection of sub-millimeter cracks prevents catastrophic structural failures in bridges, buildings, tunnels, and pavements Cost Reduction — Automated inspection reduces the need for expensive manual surveys and large inspection teams Time Saving — The system inspects structures far faster than traditional manual methods Scalability — Suitable for large-scale infrastructure monitoring where manual inspection is not practical Maintenance Planning — ACI-based severity classification helps engineers prioritize repairs, reducing unnecessary spending Practical Deployment — Smartphone-captured images are supported, making it accessible without specialized equipment
Methodologies
Project Methodology: 1. Dataset Preparation 4,028 crack images from Roboflow Universe, augmented to 9,076. Additional 137 real wall images collected at CUI Wah campus. Annotations created using SAM on Roboflow. 2. Preprocessing & Augmentation Images resized to 640×640 and 1024×1024. Augmentation included flipping, rotation, scaling, brightness adjustment and shearing. Cracks smaller than 10 pixels were ignored. 3. Model Training YOLOv8s-seg and YOLOv11s-seg trained under identical conditions. Phase 1: Google Colab Tesla T4, 30 epochs, batch size 28, image size 640 Phase 2: NVIDIA RTX 3050, 100 epochs, batch size 4, image size 1024 Optimizer: SGD, Learning rate: 1×10?³ 4. Coin-Based Calibration A coin used as reference object. Its real diameter measured via vernier caliper. A dedicated YOLOv11s-seg model detects the coin and computes scale factor: S = D_real / D_pixel 5. Crack Width Estimation Width extracted from segmentation mask and converted using: W_mm = W_px × S Empirical bias correction applied to reduce overestimation. Best scale factor: S = 0.80. 6. Leakage Correction ~13% data leakage detected and corrected between training and validation sets for unbiased evaluation. 7. Severity Classification Crack widths classified per ACI 224R-01 into Hairline (<0.10mm), Minor (0.10–0.30mm), Moderate (0.30–0.50mm), and Severe (>0.50mm).
Outcome
1. Superior Segmentation Model YOLOv11s-seg outperformed YOLOv8s-seg across all metrics: Precision: 0.8895 mAP@50-95: 0.6851 IoU: 0.6480 Dice Score: 0.8058 2. Accurate Crack Width Estimation Sub-millimeter crack width estimation achieved: MAE: 0.089 mm RMSE: 0.121 mm R²: 0.973 on CUI Wah dataset 3. Reliable Coin-Based Calibration Dedicated coin detection model performed with near-perfect accuracy: Precision: 0.996 Recall: 1.000 mAP@50: 0.995 4. Leakage-Free Evaluation ~13% dataset leakage detected and corrected, producing more realistic and scientifically valid performance metrics. 5. Strong Generalization Model tested successfully on two external datasets — Roboflow and CUI Wah — showing consistent detection and segmentation across different surfaces, textures and lighting conditions. 6. ACI-Based Severity Classification Automated classification of cracks into four engineering severity levels, bridging the gap between computer vision results and real-world structural decision-making. 7. End-to-End SHM Pipeline A complete structural health monitoring framework delivered — from raw image input to actionable severity assessment — suitable for practical infrastructure inspection.
Gallery
More from Civil Engineering
Effect of Addition of GNMPs on Durability Properties of Locally Produced Sustainable Ultra…
This FYP, conducted by Muhammad Akif, Muhammad Huzaifa Saddique, and Talal Hassan at COMSATS University Islama…
Supervisor: Engr. Raja Tasaddiq
Effect of Addition of Graphite Nano Micro Platelets (GNMPs) on Mechanical Properties of Lo…
This FYP at COMSATS University Islamabad (Wah Campus) investigates the mechanical performance of Reactive Powd…
Supervisor: Engr. Raja Tasaddiq
BIM to Augmented Reality: A Standardized Multimodal Deployment Framework for Construction…
The construction industry's digital transformation highlights Building Information Modelling (BIM) as a core m…
Supervisor: Dr. Hassan Ashraf
SPREADSHEETS TO SMART DASHBOARD A COMPARATIVE STUDY OF MANUAL AND BIM-BASED QTO USING VI…
This study develops a fully automated BIM-based workflow for quantity take-off (QTO) and cost estimation. An I…
Supervisor: Dr. Hassan Ashraf