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

Cassava Leaf Disease Classification using DL #455

Merged
67 changes: 67 additions & 0 deletions Cassava Leaf Disease Classification using DL/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# <h1 align = "center"> Cassava Leaf Disease Classification using DL</h1>
## Aim of the project:
### The project focuses on classification of different diseases of cassava leaves using various Deep Learning Algorithms.

### Libraries and Frameworks used:
1. Pandas
2. Numpy
3. Matplotlib
4. Seaborn
5. Tensorflow
6. Keras
7. sklearn
8. glob
9. OpenCV


## Deep Learning Algorithms used:
1. MobileNet
2. ResNet
3. DenseNet
4. InceptionNet
5. EfficientNet

## Accuracy and training time comparison of all the Deep Learning Algorithms
| | Accuracy |
|--------------------|---------------|
| MobileNet | 59% |
| ResNet | 60% |
| DenseNet | 68% |
| InceptionNet | 61% |
| EfficientNet | 54% |

# Representation of diseases of cassava leaves
![EDA](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/diseases.png)

# Counts of disease cases
![values](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/bar%20plot.png)

# Pie chart for the count of cases
![ri](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/pie%20chart.png)

# Orignal image vs grayscale image
![ovsg](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/gray.png)

# Original vs Resized image(224*224 pixels)
![ovri](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/original%20vs%20res.png)


# Accuracy and plots of all models

## InceptionNetV2
![inv2](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/inceptionNet_1.png)

## DenseNet
![densenet](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/denseNet.png)

## ResNet50
![resnet](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/ResNet50_1.png)

## EfficientNet
![effnet](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/efficientNet_1.png)

## MobileNet
![mnet](https://github.com/the-silent-geek/DL-Simplified/blob/a3ed67cd7eaae3e9c9c4e25c9316a484083387c3/Cassava%20Leaf%20Disease%20Classification%20using%20DL/images/mobileNetV2_1.png)

# Conclusion
DenseNet model performs better comparative to other models used on the above dataset.
12 changes: 12 additions & 0 deletions Cassava Leaf Disease Classification using DL/dataset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Dataset

The dataset used in this project is take from the Kaggle website.
<br>
<b>Dataset Link:- https://www.kaggle.com/datasets/nirmalsankalana/cassava-leaf-disease-classification</b>
<br>

<br>
This dataset consists of 21,367 labeled images collected during a regular survey in Uganda. Most images were crowdsourced from farmers taking photos of their gardens, and annotated by experts at the National Crops Resources Research Institute (NaCRRI) in collaboration with the AI lab at Makerere University, Kampala. This is in a format that most realistically represents what farmers would need to diagnose in real life.

The task is to classify each cassava image into four disease categories or a fifth category indicating a healthy leaf.
<br>
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.
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.
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.
1,659 changes: 1,659 additions & 0 deletions Cassava Leaf Disease Classification using DL/model/model.ipynb

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions Cassava Leaf Disease Classification using DL/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pandas
numpy
matplotlib
glob
tensorflow
opencv
scikit-learn
seaborn
glob