Skip to content

This project uses a Convolutional Neural Network (CNN) to classify potato plant images as Healthy, Early Blight, or Late Blight. Built with TensorFlow and Keras, it helps in quickly identifying plant diseases for better crop management.

Notifications You must be signed in to change notification settings

gaurank11/PlantDiseaseClassifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Potato Disease Classifier

Project Overview

This project aims to classify images of potato plants into different categories based on their health status. Using a Convolutional Neural Network (CNN), the model predicts whether a potato plant is affected by early blight, late blight, or is healthy. The project utilizes TensorFlow and Keras for building and training the model.

Table of Contents

Installation

To run this project, you need to install the necessary Python packages. You can do this using pip. Here are the required libraries:

  • numpy
  • matplotlib
  • opencv-python
  • tensorflow

You can install these packages by running the following command:

pip install numpy matplotlib opencv-python tensorflow

Clone the Repository

After installing the required packages, clone this repository to your local machine using:

git clone https://github.com/gaurank11/PlantDiseaseClassifier

Dataset

Download Dataset - https://www.kaggle.com/datasets/emmarex/plantdisease

The dataset used for this project is the PlantVillage dataset, which contains images of potato plants categorized as healthy, early blight, or late blight. Ensure that you have the dataset organized as follows:

PlantVillage/
├── Potato___Early_blight/
├── Potato___Late_blight/
└── Potato___healthy/

Usage

To run the classification model, ensure you have the dataset in the correct directory structure. You can then run the main script that includes data preprocessing, model building, training, and evaluation.

Model Architecture

The model architecture consists of a Convolutional Neural Network (CNN) with the following layers:

  • Convolutional layers for feature extraction.
  • Max pooling layers for down-sampling.
  • Dense layers for classification using Softmax activation.

Training the Model

To train the model, execute the main script. The model will be trained on the training dataset and validated using a portion of the dataset. The training process can be monitored through the console output.

image

Results

After training, the model can predict the health status of potato plants based on new images. Evaluate the model's performance using the validation accuracy and loss metrics printed during training.

image

About

This project uses a Convolutional Neural Network (CNN) to classify potato plant images as Healthy, Early Blight, or Late Blight. Built with TensorFlow and Keras, it helps in quickly identifying plant diseases for better crop management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published