Tomato plants are highly susceptible to various diseases that can significantly reduce crop yield and quality. Early and accurate disease detection is crucial to preventing crop failure, minimizing economic losses, and ensuring food security. Traditional methods of disease diagnosis are often time-consuming, require expert knowledge, and may lead to misdiagnosis.
This project leverages Deep Learning and Computer Vision to build an automated tomato leaf disease detection system. Using a Convolutional Neural Network (CNN) trained on a dataset of tomato leaf images, this model can classify different types of tomato diseases with high accuracy. To make the solution accessible and easy to use, a Streamlit-based web application is developed, allowing users to upload images of tomato leaves and receive instant predictions.
β
Deep learning-based CNN model for disease classification
β
Trained on Tomato Leaf Dataset from Kaggle
β
Streamlit web app for user-friendly interaction
β
Supports multiple tomato diseases classification
β
Data Augmentation to improve model generalization
β
Model evaluation with accuracy visualization
Difficulty in identifying plant diseases without expert knowledge. Limited access to agricultural experts and resources, especially in rural areas. Overuse or misuse of pesticides due to improper diagnosis. Time-consuming and ineffective traditional methods of disease identification.
-
πΈ Image-Based Detection:
Upload a plant leaf image, and the app predicts the disease with accuracy. -
π Comprehensive Information:
Get details about the disease, its symptoms, and effective treatments. -
π Accessibility: Easy-to-use web interface, accessible even in rural areas via mobile or desktop.
-
π Continuous Learning: ML models improve over time with user feedback and updated datasets.
-
β‘ Real-Time Predictions: Quick and reliable results for actionable decisions.
-
π Multi-Language Support:
Expand the reach with local language options for diverse users. -
π Sustainability Focus: Recommendations encourage the judicious use of pesticides and eco-friendly practices.
Frontend:
- React/Streamlit
Backend:
- Flask/Django
Machine Learning:
- TensorFlow/PyTorch (CNN models) | OpenCV
Deployment:
- Vercel (Frontend) | AWS/Heroku (Backend)
- Primary Dataset: Tomato leaf disease detection
- Contains thousands of annotated images for supervised training and validation.
- Allows identifying diseases across tomato plants.
git clone https://github.com/yourusername/plant-disease-prediction.git
cd plant-disease-prediction
cd backend
python -m venv venv
source venv/bin/activate # For Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.py
cd frontend
npm install
npm start
Experience the app live: Plant Disease Predictor
-
π Multi-Platform App:
Extend the app to iOS and Android platforms. -
π Analytics Dashboard:
Provide users with disease statistics and trends across regions. -
π Alert System:
Notify users of potential disease outbreaks in their area. -
π°οΈ AI-Powered Insights:
Integrate satellite imaging for large-scale crop health monitoring.
Challenge | Solution |
---|---|
High model accuracy | Fine-tuning CNN models using advanced datasets. |
User-friendly interface | Regular feedback-driven UI/UX iterations. |
Scalability for rural areas | Lightweight deployment with minimal resources. |
- Fork the repo.
- Create a branch:
git checkout -b feature-name
- Make your changes, commit, and push:
git commit -m "Added feature X" git push origin feature-name
- Open a pull request on GitHub.
- Tomato leaf disease detection Dataset: For providing a robust and detailed dataset.
- The global open-source community for libraries and resources like TensorFlow, React, and Flask.
Thanks a lot for spending your time helping the project grow. Thanks a lot! Keep rocking π»
Distributed under the Apache License 2.0 License. See LICENSE for more information.
To maintain a safe and inclusive space for everyone to learn and grow, contributors are advised to follow the Code of Conduct.
βAgriculture is the foundation of civilization, and healthy plants are its heartbeat. Letβs use technology to nurture this lifeline.β