Datasets:
Tasks:
Image Classification
Modalities:
Image
Formats:
imagefolder
Sub-tasks:
multi-class-classification
Languages:
English
Size:
1K - 10K
License:
update readme file
Browse files
README.md
CHANGED
|
@@ -1,3 +1,208 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- agriculture
|
| 7 |
+
- crop-disease
|
| 8 |
+
- computer-vision
|
| 9 |
+
- image-classification
|
| 10 |
+
- deep-learning
|
| 11 |
+
- cnn
|
| 12 |
+
- smart-farming
|
| 13 |
+
- iot
|
| 14 |
+
task_categories:
|
| 15 |
+
- image-classification
|
| 16 |
+
task_ids:
|
| 17 |
+
- multi-class-classification
|
| 18 |
+
pretty_name: Crop Disease Image Dataset (5 Crops, 19 Classes)
|
| 19 |
+
size_categories:
|
| 20 |
+
- 10K<n<100K
|
| 21 |
---
|
| 22 |
+
|
| 23 |
+
# Crop Disease Image Dataset (5 Crops, 19 Classes)
|
| 24 |
+
|
| 25 |
+
## Dataset Summary
|
| 26 |
+
|
| 27 |
+
The **Crop Disease Image Dataset** is a curated, high-quality agricultural image dataset designed for computer vision, deep learning, and smart farming applications. It contains **22,169 RGB leaf images** spanning **5 major crops** across **19 distinct healthy and diseased classes**.
|
| 28 |
+
|
| 29 |
+
This dataset was constructed by collecting, filtering, and standardizing images from multiple open-source agricultural repositories (such as the *PlantVillage Dataset* and Mendeley's *15 Crop and 45 Disease Dataset*) to create a unified resource for training models like MobileNetV3, ResNet, EfficientNet, and Vision Transformers (ViT).
|
| 30 |
+
|
| 31 |
+
This dataset forms the core AI vision module for the **IoT-Based Crop Disease Detection System for Smart Agriculture** project.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## Key Overview & Metrics
|
| 36 |
+
|
| 37 |
+
| Property | Description / Value |
|
| 38 |
+
|---|---|
|
| 39 |
+
| **Dataset Type** | Image Classification |
|
| 40 |
+
| **Domain** | Agriculture / Smart Farming |
|
| 41 |
+
| **Total Crops** | 5 (Corn, Potato, Rice, Tomato, Wheat) |
|
| 42 |
+
| **Total Classes** | 19 (Healthy & Diseased) |
|
| 43 |
+
| **Total Images** | 22,169 |
|
| 44 |
+
| **Image Format** | RGB (JPG / JPEG) |
|
| 45 |
+
| **Dataset Size** | ~1.36 GB |
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
## Crop & Class Distribution
|
| 50 |
+
|
| 51 |
+
### 🌽 Corn (Maize) — *6,617 images*
|
| 52 |
+
| Class Name | Image Count |
|
| 53 |
+
|---|---|
|
| 54 |
+
| Cercospora Leaf Spot (Gray Leaf Spot) | 513 |
|
| 55 |
+
| Common Rust | 1,192 |
|
| 56 |
+
| Healthy | 1,662 |
|
| 57 |
+
| Northern Leaf Blight | 985 |
|
| 58 |
+
| Leaf Spot | 1,261 |
|
| 59 |
+
| Maize Streak Virus | 1,004 |
|
| 60 |
+
|
| 61 |
+
### 🥔 Potato — *2,968 images*
|
| 62 |
+
| Class Name | Image Count |
|
| 63 |
+
|---|---|
|
| 64 |
+
| Early Blight | 1,000 |
|
| 65 |
+
| Late Blight | 1,000 |
|
| 66 |
+
| Healthy | 968 |
|
| 67 |
+
|
| 68 |
+
### 🌾 Rice — *3,637 images*
|
| 69 |
+
| Class Name | Image Count |
|
| 70 |
+
|---|---|
|
| 71 |
+
| Brown Spot | 1,210 |
|
| 72 |
+
| Leaf Blast | 957 |
|
| 73 |
+
| Healthy | 1,470 |
|
| 74 |
+
|
| 75 |
+
### 🍅 Tomato — *6,627 images*
|
| 76 |
+
| Class Name | Image Count |
|
| 77 |
+
|---|---|
|
| 78 |
+
| Bacterial Spot | 2,127 |
|
| 79 |
+
| Early Blight | 1,000 |
|
| 80 |
+
| Late Blight | 1,909 |
|
| 81 |
+
| Healthy | 1,591 |
|
| 82 |
+
|
| 83 |
+
### 🌾 Wheat — *2,820 images*
|
| 84 |
+
| Class Name | Image Count |
|
| 85 |
+
|---|---|
|
| 86 |
+
| Brown Rust | 860 |
|
| 87 |
+
| Yellow Rust | 880 |
|
| 88 |
+
| Healthy | 1,080 |
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
+
|
| 92 |
+
## Dataset Structure
|
| 93 |
+
|
| 94 |
+
The raw image archive is organized using standard class-folder hierarchy:
|
| 95 |
+
|
| 96 |
+
```text
|
| 97 |
+
Crop_Disease_Image_Dataset/
|
| 98 |
+
│
|
| 99 |
+
├── Corn_(Maize)___Cercospora_Leaf_Spot_(Gray_Leaf_Spot)/
|
| 100 |
+
├── Corn_(Maize)___Common_Rust/
|
| 101 |
+
├── Corn_(Maize)___Healthy/
|
| 102 |
+
├── Corn_(Maize)___Northern_Leaf_Blight/
|
| 103 |
+
├── Corn_(Maize)___Leaf_Spot/
|
| 104 |
+
├── Corn_(Maize)___Maize_Streak_Virus/
|
| 105 |
+
│
|
| 106 |
+
├── Potato___Early_Blight/
|
| 107 |
+
├── Potato___Healthy/
|
| 108 |
+
├── Potato___Late_Blight/
|
| 109 |
+
│
|
| 110 |
+
├── Rice___Brown_Spot/
|
| 111 |
+
├── Rice___Healthy/
|
| 112 |
+
├── Rice___Leaf_Blast/
|
| 113 |
+
│
|
| 114 |
+
├── Tomato___Bacterial_Spot/
|
| 115 |
+
├── Tomato___Early_Blight/
|
| 116 |
+
├── Tomato___Healthy/
|
| 117 |
+
├── Tomato___Late_Blight/
|
| 118 |
+
│
|
| 119 |
+
├── Wheat___Brown_Rust/
|
| 120 |
+
├── Wheat___Healthy/
|
| 121 |
+
└── Wheat___Yellow_Rust/
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
---
|
| 125 |
+
|
| 126 |
+
## Dataset Creation Pipeline
|
| 127 |
+
|
| 128 |
+
```text
|
| 129 |
+
Multiple Public Datasets (PlantVillage, Mendeley, etc.)
|
| 130 |
+
│
|
| 131 |
+
▼
|
| 132 |
+
Data Collection
|
| 133 |
+
│
|
| 134 |
+
▼
|
| 135 |
+
Class Standardization
|
| 136 |
+
│
|
| 137 |
+
▼
|
| 138 |
+
Duplicate Removal
|
| 139 |
+
│
|
| 140 |
+
▼
|
| 141 |
+
Dataset Consolidation
|
| 142 |
+
│
|
| 143 |
+
▼
|
| 144 |
+
Final Cleaned Dataset (22,169 Images, 19 Classes)
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## Recommended Usage & Preprocessing
|
| 150 |
+
|
| 151 |
+
### Data Splitting Strategy
|
| 152 |
+
For robust evaluation and avoiding data leakage across classes, a **stratified split** is strongly recommended:
|
| 153 |
+
* **Train:** 70%
|
| 154 |
+
* **Validation:** 15%
|
| 155 |
+
* **Test:** 15%
|
| 156 |
+
|
| 157 |
+
### Data Augmentation & Pipelines
|
| 158 |
+
When loading data into frameworks like PyTorch (`torchvision`) or TensorFlow (`tf.keras`), standard spatial transformations improve model generalization:
|
| 159 |
+
* Resize & Center Crop (e.g., `224x224` or `256x256`)
|
| 160 |
+
* Pixel Normalization (ImageNet mean & std)
|
| 161 |
+
* Random Flips, Rotations, and Color Jittering
|
| 162 |
+
|
| 163 |
+
---
|
| 164 |
+
|
| 165 |
+
## Project Context: Dual-Module IoT System
|
| 166 |
+
|
| 167 |
+
This vision dataset forms Module 1 of a broader smart agriculture framework:
|
| 168 |
+
|
| 169 |
+
1. **Vision Module (This Dataset):** Image-based leaf diagnosis using Deep Learning models deployed on local/edge devices.
|
| 170 |
+
2. **Sensor Module:** Environmental monitoring using IoT sensors (Temperature, Humidity, Soil Moisture) fed into tabular ML models to assess environmental risk.
|
| 171 |
+
|
| 172 |
+
---
|
| 173 |
+
|
| 174 |
+
## Source Datasets & Attributions
|
| 175 |
+
|
| 176 |
+
This aggregated dataset builds upon key open-access research contributions:
|
| 177 |
+
|
| 178 |
+
1. **PlantVillage Dataset**
|
| 179 |
+
* *Paper:* Mohanty, S. P., Hughes, D. P., & Salathé, M. (2016). *Using deep learning for image-based plant disease detection*. Frontiers in Plant Science, 7, 1419. [DOI: 10.3389/fpls.2016.01419](https://doi.org/10.3389/fpls.2016.01419)
|
| 180 |
+
* *Repository:* [GitHub - PlantVillage Dataset](https://github.com/spMohanty/PlantVillage-Dataset)
|
| 181 |
+
|
| 182 |
+
2. **15 Crop and 45 Disease and Healthy Dataset**
|
| 183 |
+
* *Citation:* Jain, A. (2026). *15 Crop and 45 Disease and Healthy dataset* (Version 1). Mendeley Data. [DOI: 10.17632/8fr7grr73p.1](https://data.mendeley.com/datasets/8fr7grr73p/1)
|
| 184 |
+
|
| 185 |
+
---
|
| 186 |
+
|
| 187 |
+
## Limitations
|
| 188 |
+
|
| 189 |
+
* **Lighting & Occlusion:** Images originate from controlled and semi-controlled settings; real field conditions (direct glare, severe shadows, partial leaves) might require targeted fine-tuning.
|
| 190 |
+
* **Class Imbalance:** Minor imbalance exists between classes (e.g., Potato healthy vs. Tomato Bacterial spot). Class-weighted loss functions are recommended.
|
| 191 |
+
|
| 192 |
+
---
|
| 193 |
+
|
| 194 |
+
## Citation & License
|
| 195 |
+
|
| 196 |
+
This dataset is shared under the **Creative Commons Attribution 4.0 International (CC BY 4.0)** license.
|
| 197 |
+
|
| 198 |
+
If you use this dataset in your research or project, please cite it as:
|
| 199 |
+
|
| 200 |
+
```bibtex
|
| 201 |
+
@dataset{crop_disease_dataset_2026,
|
| 202 |
+
title = {Crop Disease Image Dataset (5 Crops, 19 Classes)},
|
| 203 |
+
author = {IoT Based Crop Disease Detection System Project},
|
| 204 |
+
year = {2026},
|
| 205 |
+
publisher = {Hugging Face},
|
| 206 |
+
note = {Created by combining PlantVillage and Mendeley datasets}
|
| 207 |
+
}
|
| 208 |
+
```
|