Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sugarcane_disease_pred #128

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.zip filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions notebooks/Sugarcane Disease Prediction/Dataset/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- The link for the dataset used in this project: https://www.kaggle.com/datasets/nirmalsankalana/sugarcane-leaf-disease-dataset

- Manually collected image dataset of sugarcane leaf disease. It has mainly five main categories in it. Healthy, Mosaic, Redrot, Rust, and Yellow disease. The dataset has been captured with smartphones of various configurations to maintain the diversity. It contains a total of 2569 images including all categories. This database has been collected in Maharashtra, India. The database is balanced and contains good variety. The image sizes are not constant as they originate from various capturing devices. All images are in RGB format.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10,962 changes: 10,962 additions & 0 deletions notebooks/Sugarcane Disease Prediction/models/ensemble_model.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions notebooks/Sugarcane Disease Prediction/models/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
You can easily download the output model files (.h5/.keras) from my Kaggle notebook. These files contain the trained ensemble model for predicting sugarcane diseases, allowing you to leverage the model for your own applications or further research.

For access to these files, please visit the following link to my Kaggle notebook:
Link : https://www.kaggle.com/code/ikkiocean/sugarcane-leaf-disease-prediction
80 changes: 80 additions & 0 deletions notebooks/Sugarcane Disease Prediction/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Sugarcane Disease Prediction Using Ensemble Model

## AIM
To develop an ensemble model that predicts sugarcane diseases using various deep learning architectures.

## DATASET LINK
[Sugarcane Leaf Disease Dataset](https://www.kaggle.com/datasets/nirmalsankalana/sugarcane-leaf-disease-dataset)

## MY NOTEBOOK LINK
Refer to the notebook in the `/models` directory.

## DESCRIPTION
This project focuses on predicting diseases in sugarcane using an ensemble model that combines several well-known architectures: MobileNet, InceptionV3, VGG16, Conv2D, and ResNet152.

- **Requirement**: With the rise of agricultural challenges, timely diagnosis of plant diseases is crucial for ensuring crop health and yield.
- **Necessity**: This model provides farmers with a tool to quickly identify disease types, enabling timely intervention.
- **Benefits**: It helps in maintaining crop health, increasing agricultural productivity, and reducing economic losses due to diseases.
- **Approach**: The project began with data collection and exploration, followed by model selection based on their individual performance metrics.

## EXPLANATION

### DETAILS OF THE DIFFERENT FEATURES
- **MobileNet**: A lightweight model suitable for mobile applications, known for its efficiency and speed.
- **InceptionV3**: A deep convolutional network designed to improve accuracy by utilizing parallel convolutional layers.
- **VGG16**: A widely used model recognized for its simplicity and deep architecture.
- **Conv2D**: Custom convolutional layers designed for feature extraction specific to sugarcane diseases.
- **ResNet152**: A deep network that uses skip connections to combat the vanishing gradient problem, enhancing learning.

### WHAT I HAVE DONE
1. Initial data exploration and understanding.
2. Data cleaning and preprocessing.
3. Feature engineering and selection.
4. Model training and evaluation.
5. Model optimization and fine-tuning.
6. Validation and testing.

### LIBRARIES NEEDED
- pandas
- numpy
- scikit-learn
- matplotlib
- seaborn
- tensorflow
- keras

### Images

- ![Input](./Images/input.png)
- ![vgg16](./Images/vgg16_graph.png)
- ![confusion_matrix](./Images/confusion_matrix.png)
- ![report](./Images/classification_report.png)
### MODELS USED AND THEIR ACCURACIES
| Model | Accuracy
|------------|----------
| MobileNet | 83.20%
| VGG16 | 79.76%
| Conv2D | 86.06%
| ResNet152 | 81.21%
| InceptionV3| 86.06%
| **Ensemble** | **90.94%**



### USE CASES OF THIS MODEL
1. **Application in Agriculture**: Farmers can use this model to diagnose sugarcane diseases quickly, ensuring better crop management.
2. **Research and Development**: Agricultural researchers can utilize this model to study disease patterns and develop better disease-resistant sugarcane varieties.

### HOW TO INTEGRATE THIS MODEL IN REAL WORLD
1. Prepare the data pipeline to ensure real-time data feeding.
2. Deploy the model using appropriate tools (e.g., Flask, Docker) to create an accessible web application.
3. Monitor and maintain the model in production to ensure continued accuracy and performance.

### FEATURES PLANNED BUT NOT IMPLEMENTED
- **Feature 1**: Integration of real-time data input for immediate predictions; not implemented due to time constraints.
- **Feature 2**: Development of a user-friendly mobile application; not implemented due to lack of mobile development experience.

### Signature
*Vivek Prakash*

[Linkedin](https://www.linkedin.com/in/vivek-prakash-b46830283/)
Loading