AI-Powered Mango Leaf Disease Prediction System
MangoMediX is a deep learningโbased web application that predicts mango leaf diseases from uploaded images.
With an accuracy of 92%, it empowers farmers and researchers with real-time diagnosis and actionable treatment recommendations, reducing reliance on manual inspections.
- ๐ธ Upload mango leaf images via a clean web interface
- ๐ค Predicts 8 mango leaf conditions:
- Anthracnose
- Bacterial Canker
- Cutting Weevil
- Die Back
- Gall Midge
- Healthy
- Powdery Mildew
- Sooty Mould
- ๐ Displays prediction confidence score
- ๐ก Provides disease-specific treatment suggestions
- ๐ฅ๏ธ User-friendly, responsive design
- ๐ง Model built on ResNet50 transfer learning with TensorFlow/Keras
- Frontend: HTML, CSS, JavaScript
- Backend: Python, Flask, Flask-CORS
- Deep Learning: TensorFlow, Keras, ResNet50 (Transfer Learning)
- Storage/Reports: JSON (training history & evaluation metrics)
-
Clone the repository
- git clone https://github.com/vignesh-p3007/MangoMedix.git
- cd MangoMedix
-
Create a virtual environment (recommended)
- python -m venv venv
- source venv/bin/activate # for Linux/Mac
- .\venv\Scripts\activate # for Windows
-
Install dependencies
- pip install -r requirements.txt
-
Run the web app
- python backend/app.py
-
Access in browser
Here are some screenshots of the MangoMedix web application:
The trained model disease_detector.h5 (~271 MB) is hosted externally due to GitHub file size limits.
Download the model here: Google Drive Link
Instructions:
- Download the
disease_detector.h5file from the link above. - Place the file in the
backend/folder of the MangoMedix project. - Run the web application as usual:
python backend/app.py
Watch the MangoMedix web app in action:
Demo Video: Click Here to View
Check out the live demo of MangoMediX here:
๐ Click to View
- Achieved 92% prediction accuracy using ResNet50 with transfer learning
- Early detection helps prevent disease spread and optimize resource usage
- Scalable to larger datasets and adaptable for other crops
- Expand dataset to include more diseases
- Mobile-friendly version for farmers
- Deploy on cloud (Render, Hugging Face Spaces, or AWS)
- Add notifications for disease alerts
- Multilingual support
This project is licensed under the MIT License.
Guided by: Mrs. Usha C S, Assistant Professor, AJIET Mangalore


