Automated Pest Disease Detection For Agriculture
No description available
π οΈ Technologies Used
HTML
Python
Python
Keras
Flask
TensorFlow
HTML
NumPy
π± Automated Pest & Disease Detection for Agriculture
------------------------------------------------------------------------------------------------------------------------------------------------------
This project is a Machine Learningβbased web application designed to automatically detect pests and plant diseases from crop images, helping farmers and agricultural experts take early preventive action and improve crop yield.
The system uses a trained deep learning model (TensorFlow/Keras) to analyze uploaded plant images and predict the presence of pests or diseases through a simple Flask-based web interface.
π Project Overview
------------------------------------------------------------------------------------------------------------------------------------------------------------
Agriculture faces significant losses due to late identification of pests and plant diseases. This project addresses that challenge by providing an automated image-based detection system that:
Accepts plant images from users
Processes images using a trained CNN model
Predicts pest or disease presence
Displays results through a user-friendly web interface
π οΈ Technologies Used
---------------------------------------------------------------------------------------------------------------------------------------------
Python
Flask β Web framework
TensorFlow / Keras β Deep learning model
NumPy β Numerical computations
Pillow (PIL) β Image processing
HTML/CSS β Frontend interface
-------------------------------------------------------------------------------------------------------------------------------------------
π Project Structure
project/
β
βββ app.py # Flask application (main server file)
βββ model.h5 # Trained deep learning model
βββ train_model.py # Model training script
βββ data_setup.py # Dataset preprocessing utilities
βββ requirements.txt # Project dependencies
βββ README.md # Project documentation
βββ RUN_GUIDE.md # Instructions to run the project
β
βββ dataset/ # Training and testing image dataset
β
βββ templates/
β βββ index.html # Web interface (image upload & results)
β
βββ static/ # Static files (CSS, images if any)
βββ Test/ # Test samples
βοΈ How It Works
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
User uploads a plant image through the web interface
Image is preprocessed using Pillow and NumPy
The trained TensorFlow model (model.h5) analyzes the image
The system predicts whether the plant is healthy or affected
Results are displayed on the web page
π― Key Features
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Automated pest and disease detection
Deep learningβbased image classification
Simple and interactive web interface
Easy to extend with more crop categories
Suitable for real-world agricultural use
πΎ Future Enhancements
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Add more crop and disease classes
Improve model accuracy with larger datasets
Provide treatment and prevention suggestions
Deploy on cloud platforms for real-time usage
Mobile application Integration
-------------------------------
My Requriements ---------------------------------
1. I require a camera option within the project for live detection of plant diseases.
2. The current output is quite small; I necessitate a multi-window output.
3. The output will be enhanced and presented in detail.