Skip to content

vignesh-p3007/MangoMedix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฟMangoMediX

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.


โœจ Features

  • ๐Ÿ“ธ 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

๐Ÿ› ๏ธ Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Python, Flask, Flask-CORS
  • Deep Learning: TensorFlow, Keras, ResNet50 (Transfer Learning)
  • Storage/Reports: JSON (training history & evaluation metrics)

โš™๏ธ Setup Instructions

  1. Clone the repository

  2. Create a virtual environment (recommended)

    • python -m venv venv
    • source venv/bin/activate # for Linux/Mac
    • .\venv\Scripts\activate # for Windows
  3. Install dependencies

    • pip install -r requirements.txt
  4. Run the web app

    • python backend/app.py
  5. Access in browser


Screenshots

Here are some screenshots of the MangoMedix web application:

1. Home Page

Home Page

2. Upload Leaf Image

Upload Page

3. Prediction Result

Prediction Result


Pre-trained Model

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:

  1. Download the disease_detector.h5 file from the link above.
  2. Place the file in the backend/ folder of the MangoMedix project.
  3. Run the web application as usual:

python backend/app.py


Demo

Watch the MangoMedix web app in action:

Demo Video: Click Here to View


๐Ÿš€ Live Demo

Check out the live demo of MangoMediX here:
๐Ÿ‘‰ Click to View


๐Ÿ“Š Results & Accuracy

  • 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

๐Ÿš€ Future Improvements

  • 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

๐Ÿ“œ License

This project is licensed under the MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Authors

Guided by: Mrs. Usha C S, Assistant Professor, AJIET Mangalore

About

MangoMediX ๐ŸŒฟ โ€“ AI-powered mango leaf disease prediction system using ResNet50, Flask, and a user-friendly web interface. Detects 8 mango leaf diseases with 92% accuracy and provides treatment suggestions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors