This project is an innovative approach to leveraging cutting-edge image processing, machine learning, and deep learning techniques for the detection of plant diseases from leaf images. By creating a comprehensive and efficient pipeline, we aim to revolutionize agricultural diagnostics.
- End-to-End Solution: From preprocessing to deployment.
- Accurate Predictions: Achieving state-of-the-art results with machine learning and deep learning models.
- User-Friendly Deployment: A fully functional web application for real-time disease detection.
- 🖼️ Image Augmentation: Enhances dataset diversity to improve model generalization.
- ❌ Noise Removal: Filters out irrelevant artifacts for cleaner inputs.
- 🌟 Contrast Enhancement: Boosts the visibility of critical features.
Sophisticated feature extraction techniques:
- 📊 GLCM (Gray Level Co-occurrence Matrix): Captures textural patterns.
- 🖼️ LBP (Local Binary Patterns): Extracts local texture descriptors.
- 🌈 RGB Histogram: Analyzes color distribution.
- 🎨 HSV Histogram: Captures hue, saturation, and value properties.
Hyperparameter tuning conducted with Optuna on:
- 🌟 XGBoost: Delivered the best results.
- 🌳 Random Forest
- 📈 KNN
- 📉 SVM
- 🌲 Decision Tree
- XGBoost with HSV features:
- ✅ Validation Accuracy: 96%
- ✅ Test Accuracy: 84%
- Achieved exceptional results:
- ✅ Test Accuracy: 95%
The project integrates a powerful backend and an intuitive frontend:
- 🔧 Backend: Flask, providing a robust API for model inference.
- 🌐 Frontend: React, ensuring a seamless user experience.
The dataset used for this project is publicly available and can be downloaded from: 🔗 Plant Disease Dataset
- Install the required libraries:
pip install -r requirements.txt
- Run the Flask app:
python app.py
- Navigate to the frontend directory:
cd frontend
- Install the required packages:
npm install
- Run the React app:
npm start
- Open your browser and navigate to http://localhost:3000.
- Upload an image of a plant leaf.
- View predictions and analysis in real-time with detailed results.
- ✅ Validation Accuracy: 96%
- ✅ Test Accuracy: 84%
- ✅ Test Accuracy: 95%
- 🌟 Fully functional web application combining Flask backend and React frontend.
- 🌟 Real-time predictions with a user-friendly interface.
- 🌍 Multi-Language Support: Expand the application to support multiple languages for global accessibility.
- 📱 Mobile App: Develop a mobile version for on-the-go disease detection.
- 📈 Continuous Learning: Implement a feedback loop to improve model accuracy with user-uploaded images.
- 🌟 Cloud Integration: Deploy on cloud platforms for scalable and fast inference.
We welcome contributions to enhance the project. Please follow these steps:
- Fork the repository.
- Create a new branch for your feature.
- Submit a pull request with detailed explanations.
Salma Muhammed |
Mostafa Rabie |
Abdulrahman Mostafa |
Mohamed Khaled |
This project is licensed under the MIT License. Feel free to use, modify, and distribute this project as per the license terms.
Thank you for exploring the Plant Disease Detection Project. Together, let's make agriculture smarter and more sustainable!