Skip to content

sayedgamal99/Plant-Disease-Classifier

Repository files navigation

🌿 Plant Disease Classifier

Project Logo

License Python PyTorch Streamlit

A deep learning-based web application that diagnoses diseases in plant leaves using convolutional neural networks (CNNs).

Plant Disease Classifier Demo

🚀 Live Demo

The application is currently deployed and available at: https://plant-disease-classifier-cnn.streamlit.app/

Video Demonstration

Plant.Disease.Classifier.-.Made.with.Clipchamp.2.mp4

✨ Features

  • Instant Disease Detection: Upload an image of a plant leaf and get immediate diagnosis results
  • Comprehensive Diagnosis: Provides detailed information on detected diseases, including causes, treatments, and prevention
  • User-Friendly Interface: Clean, intuitive UI with image previews and visualization of results
  • Multiple Plant Support: Currently supports tomatoes, potatoes, and bell peppers
  • High Accuracy: 96.5% accuracy on test datasets
  • Example Images: Try the application with pre-loaded example images

🧪 Supported Plant Diseases

The model can currently identify the following plants and diseases:

  • Tomato:

    • Healthy
    • Bacterial Spot
    • Early Blight
    • Late Blight
    • Leaf Mold
    • Septoria Leaf Spot
    • Spider Mites
    • Target Spot
    • Yellow Leaf Curl Virus
    • Mosaic Virus
  • Potato:

    • Healthy
    • Early Blight
    • Late Blight
  • Bell Pepper:

    • Healthy
    • Bacterial Spot

🔧 Model Architecture

The application uses a custom CNN architecture with the following components:

  • 5 convolutional blocks with batch normalization and ReLU activation
  • Global Average Pooling
  • Fully connected layers with dropout for regularization
  • Trained on the PlantVillage dataset with data augmentation techniques
  • Achieves 96.5% accuracy on the test set