Welcome to the Crop Disease Detection project! This repository contains the code for an intelligent system that uses deep learning to identify diseases in plant leaves, helping farmers and botanists protect their crops and increase yields.

Have you ever wondered if an AI could tell a healthy leaf from a sick one just by looking at it? That's what this project is all about. We've built a powerful image classification model that can instantly recognize and diagnose common plant diseases.
Dataset : PlantVillage-Dataset ➡️ https://github.com/spMohanty/PlantVillage-Dataset
Model: We've used a Convolutional Neural Network (CNN), the go-to architecture for image classification. The notebook includes a custom-built CNN as well as a more advanced transfer learning approach using a pre-trained EfficientNetB0 model.
Data Augmentation: To make our model more robust, we've applied extensive data augmentation techniques. This means we artificially expanded our dataset by rotating, flipping, and zooming into images, teaching the model to recognize diseases from all angles.
Technologies: This project is built using a powerful stack of Python libraries.
TensorFlow & Keras: The core of our deep learning model.
Numpy & Matplotlib: For numerical operations and visualizing our model's performance.
Scikit-learn: For generating classification reports and confusion matrices.
ImageDataGenerator: Our workhorse for efficient data preprocessing and loading.


At last epoch these are the metrics ⏬
accuracy | 0.8125 |
---|---|
loss | 0.5851 |
val_accuracy | 0.8138 |
val_loss | 0.5858 |
Ready to explore the code? The heart of this project is the CropDiseaseDetection.ipynb Jupyter Notebook.
To download the model : https://drive.google.com/file/d/1wo2emgwSwMDEUv4svqiNhw1clWtKaBf8/view?usp=sharing
To run the project locally:
Clone the Repository:
git clone https://github.com/ShubhamP1028/Crop-Disease-Detection.git
Install Dependencies:
pip install -r requirements.txt