πŸ”¬ Skin Lesion Classification Model

An AI-powered deep learning model for classifying 8 different skin conditions using EfficientNetB0, achieving 81.75% test accuracy on 14,711 dermatoscopic images.

πŸ“Š Model Overview

  • Architecture: EfficientNetB0 (Transfer Learning)
  • Framework: TensorFlow / Keras
  • Input Size: 224x224x3
  • Classes: 8 skin conditions
  • Model Size: 25.63 MB

🎯 Skin Conditions Detected

  1. Acne
  2. Basal Cell Carcinoma
  3. Benign Keratosis
  4. Eczema
  5. Fungal Infection
  6. Melanocytic Nevi
  7. Melanoma
  8. Normal Skin

πŸ“ˆ Performance

Metric Value
Test Accuracy 81.75%
Validation Accuracy 83.60%
Weighted F1-Score 0.82

Per-Class Accuracy

Class Accuracy
Normal Skin 100.00%
Acne 93.82%
Basal Cell Carcinoma 86.00%
Melanoma 84.67%
Eczema 82.94%
Melanocytic Nevi 75.00%
Fungal Infection 69.14%
Benign Keratosis 66.33%

πŸš€ How to Use

Install requirements and load the model:

pip install tensorflow huggingface_hub pillow

Load the model in Python:

from huggingface_hub import hf_hub_download
from tensorflow.keras.models import load_model

model_path = hf_hub_download(
    repo_id="mahnoor-2722/skin-lesion-classifier",
    filename="efficientnetb0_8class_best.h5"
)
model = load_model(model_path)

πŸŽ“ Training Details

  • Dataset: 14,711 dermatoscopic images
  • Split: 70% train / 15% validation / 15% test
  • Base Model: EfficientNetB0 (ImageNet pretrained)
  • Optimizer: Adam (lr=1e-4)
  • Batch Size: 32
  • Epochs: 50 with early stopping

🌐 Live Application

⚠️ Medical Disclaimer

This model is for educational and research purposes only. It should NOT be used as a substitute for professional medical diagnosis. Always consult a qualified dermatologist for accurate assessment.

πŸ“„ License

Released under MIT License. Free to use with attribution.

πŸ‘€ Author

Mahnoor


Built with ❀️ for advancing medical AI research

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support