ProjectRoadDamageDetection/Automated-Road-Damage-Detection
๐ฃ๏ธ Automated Road Damage Detection
YOLOv8s fine-tuned on the RDD2022 dataset โ detecting 4 road damage classes across 6 countries in real time.
   
๐ Overview
This project provides an automated road damage detection system powered by YOLOv8s, fine-tuned on the RDD2022 (Road Damage Dataset 2022). It detects four types of surface damage from road images and provides per-class counts, pothole severity assessments, and country-specific pothole density context.
Upload any road image and get instant visual annotations along with a structured damage report.
๐ฏ Damage Classes
๐ Supported Countries (Pothole Context)
๐ How to Use
- Upload a road image using the image input panel (drag & drop, camera capture, or paste from clipboard).
- Adjust thresholds (optional):
- Confidence Threshold (default:
0.25) โ minimum detection confidence score. - IoU Threshold (default:
0.45) โ suppresses overlapping boxes. - Select the country where the photo was taken for pothole density context.
- Click ๐ Detect Damage (or the image auto-triggers detection on upload).
- View the annotated output image + Detection Summary, Pothole Report, and Country Context tables.
๐ Output Explained
Detection Summary
A per-class breakdown table showing:
- Count of each damage type detected
- Percentage of total detections
Pothole (D40) Report
Severity thresholds:
- ๐ด CRITICAL โ Potholes > 30% of all detections โ Immediate repair needed
- ๐ MODERATE โ Potholes > 10% โ Schedule maintenance
- ๐ก LOW โ Any potholes detected โ Monitor road surface
- ๐ข NONE DETECTED โ Road surface OK
Country Context
Provides pothole density, dominant damage types, and data collection method for the selected country as documented in the RDD2022 dataset.
๐ง Model Details
๐ Dataset โ RDD2022
- Total images: 47,420
- Countries: India, Japan, United States, Czech Republic, China, Norway
- Annotation format: Bounding boxes (YOLO format)
- Reference: Arya et al., 2022 โ arxiv:2209.08538
๐๏ธ Repository Structure
Automated-Road-Damage-Detection/
โโโ app.py # Gradio UI + inference pipeline
โโโ predict.py # Standalone prediction script
โโโ yolov8s_best.pt # Fine-tuned YOLOv8s weights (22.5 MB)
โโโ rdd2022.yaml # Dataset config (class names, paths)
โโโ requirements.txt # Python dependencies
โโโ examples/ # Sample road images (6 countries)
โ โโโ india_test_image.jpg
โ โโโ China_Drone_000253.jpg
โ โโโ United_States_004798.jpg
โ โโโ Czech_test_image.jpg
โ โโโ China_Drone_000295.jpg
โ โโโ norway_road_test.jpg
โโโ README.md๐ง Local Setup
# Clone the Space
git clone https://huggingface.co/spaces/ProjectRoadDamageDetection/Automated-Road-Damage-Detection
cd Automated-Road-Damage-Detection
# Install dependencies
pip install -r requirements.txt
# Run the app
python app.pyThe app will be available at http://localhost:7860.
๐ฆ Requirements
gradio>=4.0
ultralytics
torch
torchvision
numpy
Pillow
opencv-python๐ License
This project is licensed under the MIT License โ see the LICENSE for details.
๐ Citation
If you use this work or the RDD2022 dataset, please cite:
@article{arya2022rdd2022,
title = {RDD2022: A multi-national image dataset for automatic Road Damage Detection},
author = {Arya, Deeksha and Maeda, Hiroya and Ghosh, Sanjay Kumar and Toshniwal, Durga and Mraz, Alexander and Kashiyama, Takehiro and Sekimoto, Yoshihide},
journal = {arXiv preprint arXiv:2209.08538},
year = {2022}
}๐ Acknowledgements
- Ultralytics YOLOv8 for the object detection framework
- RDD2022 Dataset for the training data
- Gradio for the web interface
