Plant Disease Detection System - Madda Walabu University
# πΏ Plant Disease Detection System
**Madda Walabu University β College of Computing**
**Department of Computer Science**
**Course:** Artificial Intelligence Project
**Author:** Morketa Negash (Ugrr/51983/15)
**Instructor:** Shume. B
---
## π Project Overview
An end-to-end AI system that detects plant diseases from leaf images using a
**Convolutional Neural Network (CNN)** trained on 16,000 images from the
PlantVillage dataset. The model is deployed via a **Streamlit** web interface
that provides instant diagnosis, confidence scores, and treatment recommendations.
**Supported Crops:** Apple Β· Corn Β· Potato Β· Tomato
**Total Disease Classes:** 21 (including healthy classes)
---
## ποΈ Project Structure
```
Plant disease detection system/
β
βββ app.py β Main Streamlit web application
βββ requirements.txt β Python dependencies
βββ setup.bat β One-click setup script (Windows)
βββ run_app.bat β Launch the web app
βββ run_training.bat β Start model training
β
βββ model/
β βββ train_model.py β CNN training script (Chapter 4.4)
β βββ predictor.py β Inference / prediction module
β βββ disease_info.py β Disease database + treatment advice
β βββ plant_disease_cnn.h5 β Saved model (created after training)
β βββ class_names.json β Class index map (created after training)
β
βββ utils/
β βββ download_dataset.py β Kaggle dataset downloader
β βββ evaluate_model.py β Metrics + confusion matrix (Table 4.1)
β βββ demo_mode.py β Simulated predictions for UI testing
β
βββ dataset/ β PlantVillage images (you add this)
βββ Apple___Apple_scab/
βββ Apple___healthy/
βββ Tomato___Late_blight/
βββ ...
```
---
## π Quick Start (Windows)
### Step 1 β Install & Setup
Double-click **`setup.bat`** or run in CMD:
```cmd
setup.bat
```
This creates a virtual environment and installs all dependencies β¦