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.
- 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
- Uses Convolutional Neural Networks (CNN)
- High accuracy image classification model
- Trained using TensorFlow/Keras
Classifies potato leaves into:
- Healthy
- Early Blight
- Late Blight
- High-performance REST API
- Fast image prediction response
- Easy integration with frontend and mobile apps
- User-friendly React.js frontend
- Upload leaf images easily
- Instant prediction results
- Upload image
- Process image
- Predict disease
- Display confidence score
| 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 |
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/The dataset used for this project is publicly available on Kaggle.
The dataset contains:
- Healthy potato leaf images
- Early Blight infected leaf images
- Late Blight infected leaf images
The CNN model was trained using:
- Image Augmentation
- Data Preprocessing
- TensorFlow/Keras
- Multi-class Classification Techniques
Dataset Collection
β
Image Preprocessing
β
CNN Model Training
β
Model Evaluation
β
Model Saving
β
API Deployment
git clone https://github.com/nasim-dev0459/Potato-Disease-Classification.gitcd Potato-Disease-Classificationpython -m venv venv
venv\Scripts\activatepython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtuvicorn api.main:app --reloadServer will run on:
http://127.0.0.1:8000cd frontend
npm install
npm startUser Uploads Potato Leaf Image
β
Image Sent to FastAPI Backend
β
CNN Model Processes Image
β
Disease Prediction Generated
β
Prediction Displayed on Frontend
- π± Mobile Application Integration
- βοΈ Cloud Deployment
- π Multi-Crop Disease Detection
- π Disease Analytics Dashboard
- π Farmer Notification System
- π€ Advanced Transfer Learning Models
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
Through this project, I gained experience in:
- CNN Architecture Design
- TensorFlow & Keras
- Image Classification
- REST API Development
- Frontend & Backend Integration
- AI System Deployment
Contributions are welcome.
If you would like to improve this project:
- Fork the repository
- Create a new branch
- Commit changes
- Submit a Pull Request
This project is developed for:
- Educational Purposes
- Research
- Portfolio Showcase
Computer Engineering Student
- Artificial Intelligence
- Machine Learning
- Deep Learning
- Computer Vision
- Full Stack Development
If you found this project useful, please give it a β on GitHub. Your support motivates future AI and research projects π