README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,105 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-nc-sa-4.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
metrics:
|
| 6 |
+
- accuracy
|
| 7 |
+
- precision
|
| 8 |
+
- recall
|
| 9 |
+
- f1
|
| 10 |
+
base_model:
|
| 11 |
+
- google/mobilenet_v2_1.0_224
|
| 12 |
+
pipeline_tag: image-classification
|
| 13 |
+
library_name: keras
|
| 14 |
+
tags:
|
| 15 |
+
- Convolution-Neural-Network
|
| 16 |
+
- Agriculture
|
| 17 |
+
- Deep-Learning
|
| 18 |
+
- Lemons
|
| 19 |
+
---
|
| 20 |
+
# Lemon Disease Detector
|
| 21 |
+
|
| 22 |
+
[](https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
| 23 |
+
|
| 24 |
+
## Overview
|
| 25 |
+
|
| 26 |
+
This is Bi-Model Deep Learning Architecture that uses 2 Convolutional Neural Networks to detect the if a lemon leaf is healthy or is diseased.
|
| 27 |
+
|
| 28 |
+
1. **Binary Classification**: Determines if the leaf is from a Lemon tree.
|
| 29 |
+
2. **Multi-Class Classification**: If it does, this model predicts whether the leaf is healthy or affected by one or more diseases.
|
| 30 |
+
|
| 31 |
+
The models are trained using *Transfer Learning* from **MobileNetV2**, pretrained on ImageNet.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## Use Cases
|
| 36 |
+
|
| 37 |
+
- Early disease detection in agriculture
|
| 38 |
+
- Educational applications in plant pathology
|
| 39 |
+
- Research and experimentation (non-commercial)
|
| 40 |
+
|
| 41 |
+
> **Not suitable for real-world diagnostics without domain expert validation.**
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Architecture
|
| 46 |
+
|
| 47 |
+
### Binary Model
|
| 48 |
+
- **Base**: MobileNetV2
|
| 49 |
+
- **Input**: 224x224 RGB leaf image
|
| 50 |
+
- **Output**: Binary classification (Target species or not)
|
| 51 |
+
|
| 52 |
+
### Multi-Class Classifier
|
| 53 |
+
- **Base**: MobileNetV2
|
| 54 |
+
- **Input**: 224x224 RGB leaf image (if species matched)
|
| 55 |
+
- **Output**: Multi-label classification (Healthy or 1+ diseases)
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## Performance
|
| 60 |
+
|
| 61 |
+
| Metric | Binary Model | Multi-Class Model |
|
| 62 |
+
|----------------|---------------|-------------------|
|
| 63 |
+
| Accuracy | 1.00 | 0.96 |
|
| 64 |
+
| Precision | 1.00 | 0.95 |
|
| 65 |
+
| Recall | 1.00 | 0.95 |
|
| 66 |
+
| F1 Score | 0.99 | 0.95 |
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## Datasets Used
|
| 71 |
+
|
| 72 |
+
- **[Lemon Leaf Disease Dataset](https://www.kaggle.com/datasets/mahmoudshaheen1134/lemon-leaf-disease-dataset-lldd)**: — Licensed under **CC0 Public Domain**
|
| 73 |
+
- **[PlantVillage Dataset](https://www.kaggle.com/datasets/abdallahalidev/plantvillage-dataset)**: — Licensed under **CC BY-NC-SA 4.0**
|
| 74 |
+
- **[Natural Images Dataset](https://www.kaggle.com/datasets/prasunroy/natural-images)**: — Licensed under **CC BY-NC-SA 4.0**
|
| 75 |
+
|
| 76 |
+
**Lemon Leaf Disease Dataset** was used to train both models, and images from **PlantVillage Dataset** and **Natural Images Dataset** were used as negatives for training the **Binary Model**.
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## License
|
| 81 |
+
|
| 82 |
+
This project is licensed under the **Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)** license, due to the inclusion of CC BY-NC-SA 4.0-licensed datasets.
|
| 83 |
+
|
| 84 |
+
You may:
|
| 85 |
+
- Use and share the model for non-commercial purposes
|
| 86 |
+
- Modify it and publish derivatives under the same license
|
| 87 |
+
- Must give proper attribution to the original data providers
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## Author
|
| 92 |
+
Muhammad Ishaque Junejo
|
| 93 |
+
- GitHub: @IshaqJunejo
|
| 94 |
+
- LinkedIn: [Ishaque Junejo](https://www.linkedin.com/in/ishaque-junejo/)
|
| 95 |
+
- Mail: [Ishaque Junejo](mailto:ishaque.junejo.dev@gmail.com)
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
## Acknowledgement
|
| 100 |
+
|
| 101 |
+
Creators of **MobileNetV2**
|
| 102 |
+
Dataset Providers:
|
| 103 |
+
- Lemon-Leaf-Disease-Dataset
|
| 104 |
+
- PlantVillage Dataset
|
| 105 |
+
- Natural Images
|