Skip to content

Latest commit

Β 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Car Damage Classification

Classifying the severity of car damage is crucial for insurance claims, safety evaluations, and automated vehicle assessments.
In this project, we compare four different deep learning models to classify car damage into three categories:

  • 🟒 Minor
  • 🟑 Moderate
  • πŸ”΄ Severe

πŸ“Š Dataset

Source: Kaggle - Car Damage Severity Dataset

The dataset is well-balanced with samples across three classes and is used to evaluate performance across all four models.

πŸ“ˆ Dataset Distribution

Dataset Distribution


πŸ§ͺ Model Comparisons

We applied and evaluated the following models:


πŸ”§ 1. CNN Model (Built from Scratch)

πŸ“‰ Training vs Validation Loss

CNN Loss

πŸ“ˆ Training vs Validation Accuracy

CNN Accuracy

🧩 Confusion Matrix

CNN Confusion Matrix

🧾 Classification Report

CNN Classification


πŸ“± 2. MobileNetV2 (Transfer Learning)

πŸ—οΈ Model Architecture

MobileNetV2 Architecture

πŸ“‰ Loss Curve

MobileNetV2 Loss

πŸ“ˆ Accuracy Curve

MobileNetV2 Accuracy

🧩 Confusion Matrix

MobileNetV2 Confusion Matrix

🧾 Classification Report

MobileNetV2 Classification


πŸ›οΈ 3. VGG16 (Transfer Learning)

πŸ—οΈ Model Architecture

VGG16 Architecture

πŸ“‰ Loss Curve

VGG16 Loss

πŸ“ˆ Accuracy Curve

VGG16 Accuracy

🧩 Confusion Matrix

VGG16 Confusion Matrix

🧾 Classification Report

VGG16 Classification


🧠 Conclusion

This project provides a comprehensive comparison between custom CNN and popular pretrained architectures (MobileNetV2, VGG16).
It reveals:

  • πŸ“‰ Training loss trends
  • πŸ“ˆ Accuracy performance
  • 🧩 Confusion matrices
  • πŸ“ Detailed classification reports

Each model has strengths, and the choice depends on the deployment constraints and accuracy requirements.


πŸš€ Future Work

  • βœ… Add more advanced architectures (e.g., EfficientNet, ResNet)
  • πŸ§ͺ Integrate cross-validation
  • πŸ’‘ Deploy as a web app for user upload and real-time predictions

πŸ› οΈ Tech Stack

  • Python 🐍
  • TensorFlow / Keras
  • OpenCV
  • Scikit-learn
  • Matplotlib / Seaborn
  • NumPy / Pandas

πŸ› οΈ Getting Started

πŸ“¦ Prerequisites

Make sure you have the following installed:

  • Python
  • Git
  • Jupyter Notebook or JupyterLab
  • A modern GPU (recommended for training)
  • pip or conda for package management

🧰 Installation

Clone the repository:

git clone https://github.com/your-username/car-damage-classification.git
cd car-damage-classification

About

This project compares a custom CNN with pretrained models (MobileNetV2, VGG16) for car damage severity classification. Evaluates accuracy and efficiency for applications in insurance claims, safety checks, and automated assessments using deep learning and transfer learning.

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages