Skip to content

nasim-dev0459/Potato-Disease-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯” Potato Disease Classification System using Deep Learning


πŸ“Œ Project Overview

The Potato Disease Classification System is an AI-powered agricultural solution developed using Deep Learning and Computer Vision technologies.

This project automatically detects and classifies potato leaf diseases from uploaded images, helping farmers and agricultural researchers identify plant diseases quickly and accurately.

The system can classify:

  • 🟒 Healthy Potato Leaves
  • 🟠 Early Blight Disease
  • πŸ”΄ Late Blight Disease

The project combines:

  • A CNN-based Deep Learning Model
  • A FastAPI Backend
  • A modern React.js Frontend
  • Image processing and prediction APIs

This solution demonstrates the practical application of Artificial Intelligence in Smart Agriculture and Precision Farming.


🎯 Objectives

  • Detect potato diseases automatically from leaf images
  • Reduce manual disease identification errors
  • Support smart farming and agricultural automation
  • Build a scalable AI-powered web application
  • Provide real-world experience in AI model deployment

✨ Key Features

🧠 Deep Learning-Based Disease Detection

  • Uses Convolutional Neural Networks (CNN)
  • High accuracy image classification model
  • Trained using TensorFlow/Keras

πŸ“· Image Classification

Classifies potato leaves into:

  • Healthy
  • Early Blight
  • Late Blight

⚑ FastAPI Backend

  • High-performance REST API
  • Fast image prediction response
  • Easy integration with frontend and mobile apps

🌐 Modern Web Interface

  • User-friendly React.js frontend
  • Upload leaf images easily
  • Instant prediction results

πŸ“Š Real-Time Prediction

  • Upload image
  • Process image
  • Predict disease
  • Display confidence score

πŸ› οΈ Technologies Used

Technology Purpose
Python Core Programming Language
TensorFlow Deep Learning Framework
Keras CNN Model Development
FastAPI Backend API
React.js Frontend Development
NumPy Numerical Computation
Pillow (PIL) Image Processing
Uvicorn API Server
Git & GitHub Version Control

πŸ“‚ Project Structure

Potato-Disease-Classification/
β”‚
β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ main.py                # FastAPI Backend
β”‚   β”œβ”€β”€ 1.keras                # Trained Deep Learning Model
β”‚
β”œβ”€β”€ saved_models/              # Model Checkpoints
β”‚
β”œβ”€β”€ training/                  # Model Training Notebooks
β”‚
β”œβ”€β”€ frontend/                  # React Frontend
β”‚
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”‚
└── dataset/

πŸ“Š Dataset

The dataset used for this project is publicly available on Kaggle.

πŸ”— Dataset Link

Potato Leaf Disease Dataset

The dataset contains:

  • Healthy potato leaf images
  • Early Blight infected leaf images
  • Late Blight infected leaf images

πŸ§ͺ Model Training

The CNN model was trained using:

  • Image Augmentation
  • Data Preprocessing
  • TensorFlow/Keras
  • Multi-class Classification Techniques

Training Workflow

Dataset Collection
        ↓
Image Preprocessing
        ↓
CNN Model Training
        ↓
Model Evaluation
        ↓
Model Saving
        ↓
API Deployment

πŸš€ Installation Guide

1️⃣ Clone Repository

git clone https://github.com/nasim-dev0459/Potato-Disease-Classification.git

2️⃣ Move Into Project Directory

cd Potato-Disease-Classification

3️⃣ Create Virtual Environment (Optional)

Windows

python -m venv venv
venv\Scripts\activate

Linux / Mac

python3 -m venv venv
source venv/bin/activate

4️⃣ Install Dependencies

pip install -r requirements.txt

▢️ Run Backend Server

uvicorn api.main:app --reload

Server will run on:

http://127.0.0.1:8000

🌐 Frontend Setup

cd frontend
npm install
npm start

πŸ“Έ Application Workflow

User Uploads Potato Leaf Image
                ↓
Image Sent to FastAPI Backend
                ↓
CNN Model Processes Image
                ↓
Disease Prediction Generated
                ↓
Prediction Displayed on Frontend

πŸ“ˆ Future Improvements

  • πŸ“± Mobile Application Integration
  • ☁️ Cloud Deployment
  • 🌍 Multi-Crop Disease Detection
  • πŸ“Š Disease Analytics Dashboard
  • πŸ”” Farmer Notification System
  • πŸ€– Advanced Transfer Learning Models

πŸŽ“ Academic & Research Value

This project demonstrates practical skills in:

  • Deep Learning
  • Computer Vision
  • AI Model Deployment
  • Backend API Development
  • Full Stack AI Applications
  • Smart Agriculture Systems

It is suitable for:

  • Final Year Projects
  • Research Portfolios
  • Internship Applications
  • Scholarship Applications
  • AI/ML Portfolio Showcase

πŸ’‘ Learning Outcomes

Through this project, I gained experience in:

  • CNN Architecture Design
  • TensorFlow & Keras
  • Image Classification
  • REST API Development
  • Frontend & Backend Integration
  • AI System Deployment

🀝 Contributing

Contributions are welcome.

If you would like to improve this project:

  1. Fork the repository
  2. Create a new branch
  3. Commit changes
  4. Submit a Pull Request

πŸ“œ License

This project is developed for:

  • Educational Purposes
  • Research
  • Portfolio Showcase

πŸ‘¨β€πŸ’» Developer

Md Nasim Hawlader

Computer Engineering Student

Interests

  • Artificial Intelligence
  • Machine Learning
  • Deep Learning
  • Computer Vision
  • Full Stack Development

⭐ Support

If you found this project useful, please give it a ⭐ on GitHub. Your support motivates future AI and research projects πŸš€

About

An AI-powered potato leaf disease classification system built with FastAPI, TensorFlow, and React.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors