Datasets:
Update README.md
Browse filesUpdated README.md file, to add extra informations.
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
task_categories:
|
| 4 |
- tabular-classification
|
| 5 |
language:
|
|
@@ -15,4 +15,281 @@ tags:
|
|
| 15 |
pretty_name: Crop Recommendation Dataset
|
| 16 |
size_categories:
|
| 17 |
- 1K<n<10K
|
| 18 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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Recommendation Dataset
|
| 20 |
+
|
| 21 |
+
## Dataset Details
|
| 22 |
+
|
| 23 |
+
### Dataset Description
|
| 24 |
+
|
| 25 |
+
The Crop Recommendation Dataset is a structured tabular dataset designed for machine learning models that recommend the most suitable crop based on soil nutrient composition and environmental conditions.
|
| 26 |
+
|
| 27 |
+
Each record consists of seven numerical input features representing soil nutrients and climatic conditions, along with a target label indicating the recommended crop.
|
| 28 |
+
|
| 29 |
+
The dataset is suitable for supervised classification tasks and can be used for benchmarking machine learning, deep learning, and explainable AI models in precision agriculture.
|
| 30 |
+
|
| 31 |
+
- **Curated by:** Abhinav Manoj
|
| 32 |
+
- **Funded by:** Self Project
|
| 33 |
+
- **Shared by:** Gagan Dev, Jyothis C R, Adthyan M C
|
| 34 |
+
- **Language(s):** English
|
| 35 |
+
- **License:** MIT
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## Dataset Sources
|
| 40 |
+
|
| 41 |
+
- **Repository:** Hugging Face Dataset Repository
|
| 42 |
+
- **Paper:** Not Applicable
|
| 43 |
+
- **Demo:** Not Available
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
# Uses
|
| 48 |
+
|
| 49 |
+
## Direct Use
|
| 50 |
+
|
| 51 |
+
This dataset is intended for:
|
| 52 |
+
|
| 53 |
+
- Crop recommendation systems
|
| 54 |
+
- Precision agriculture
|
| 55 |
+
- Machine learning classification
|
| 56 |
+
- Deep learning research
|
| 57 |
+
- Agricultural analytics
|
| 58 |
+
- Educational purposes
|
| 59 |
+
- Explainable AI (XAI)
|
| 60 |
+
- Model benchmarking
|
| 61 |
+
|
| 62 |
+
Supported algorithms include:
|
| 63 |
+
|
| 64 |
+
- Logistic Regression
|
| 65 |
+
- Decision Tree
|
| 66 |
+
- Random Forest
|
| 67 |
+
- XGBoost
|
| 68 |
+
- CatBoost
|
| 69 |
+
- LightGBM
|
| 70 |
+
- Support Vector Machine
|
| 71 |
+
- K-Nearest Neighbors
|
| 72 |
+
- Artificial Neural Networks
|
| 73 |
+
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
## Out-of-Scope Use
|
| 77 |
+
|
| 78 |
+
This dataset should **not** be used for:
|
| 79 |
+
|
| 80 |
+
- Real-world farming decisions without expert validation
|
| 81 |
+
- Predicting crop yield
|
| 82 |
+
- Fertilizer recommendation
|
| 83 |
+
- Disease detection
|
| 84 |
+
- Weather forecasting
|
| 85 |
+
- Irrigation planning
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
+
|
| 89 |
+
# Dataset Structure
|
| 90 |
+
|
| 91 |
+
## Features
|
| 92 |
+
|
| 93 |
+
| Feature | Type | Description |
|
| 94 |
+
|----------|------|-------------|
|
| 95 |
+
| N | Integer | Nitrogen content in soil |
|
| 96 |
+
| P | Integer | Phosphorus content in soil |
|
| 97 |
+
| K | Integer | Potassium content in soil |
|
| 98 |
+
| temperature | Float | Temperature (°C) |
|
| 99 |
+
| humidity | Float | Relative humidity (%) |
|
| 100 |
+
| ph | Float | Soil pH value |
|
| 101 |
+
| rainfall | Float | Rainfall (mm) |
|
| 102 |
+
| label | String | Recommended crop |
|
| 103 |
+
|
| 104 |
+
### Target Variable
|
| 105 |
+
|
| 106 |
+
The **label** column contains the recommended crop category.
|
| 107 |
+
|
| 108 |
+
Examples include:
|
| 109 |
+
|
| 110 |
+
- Rice
|
| 111 |
+
- Maize
|
| 112 |
+
- Chickpea
|
| 113 |
+
- Kidney Beans
|
| 114 |
+
- Pigeon Peas
|
| 115 |
+
- Moth Beans
|
| 116 |
+
- Mung Bean
|
| 117 |
+
- Black Gram
|
| 118 |
+
- Lentil
|
| 119 |
+
- Pomegranate
|
| 120 |
+
- Banana
|
| 121 |
+
- Mango
|
| 122 |
+
- Grapes
|
| 123 |
+
- Watermelon
|
| 124 |
+
- Muskmelon
|
| 125 |
+
- Apple
|
| 126 |
+
- Orange
|
| 127 |
+
- Papaya
|
| 128 |
+
- Coconut
|
| 129 |
+
- Cotton
|
| 130 |
+
- Jute
|
| 131 |
+
- Coffee
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## Dataset Splits
|
| 136 |
+
|
| 137 |
+
| Split | Description |
|
| 138 |
+
|--------|-------------|
|
| 139 |
+
| Full | Complete dataset |
|
| 140 |
+
| Train | 80% of the dataset used for model training |
|
| 141 |
+
|
| 142 |
+
---
|
| 143 |
+
|
| 144 |
+
# Dataset Creation
|
| 145 |
+
|
| 146 |
+
## Curation Rationale
|
| 147 |
+
|
| 148 |
+
The dataset was created to facilitate research and development of intelligent crop recommendation systems that leverage soil nutrient information and environmental conditions to predict suitable crops.
|
| 149 |
+
|
| 150 |
+
It provides a benchmark dataset for evaluating supervised learning algorithms in agriculture.
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
## Source Data
|
| 155 |
+
|
| 156 |
+
The dataset consists of structured agricultural measurements.
|
| 157 |
+
|
| 158 |
+
### Data Collection and Processing
|
| 159 |
+
|
| 160 |
+
The dataset contains numerical observations of:
|
| 161 |
+
|
| 162 |
+
- Soil Nitrogen
|
| 163 |
+
- Soil Phosphorus
|
| 164 |
+
- Soil Potassium
|
| 165 |
+
- Temperature
|
| 166 |
+
- Humidity
|
| 167 |
+
- Soil pH
|
| 168 |
+
- Rainfall
|
| 169 |
+
|
| 170 |
+
Standard preprocessing includes:
|
| 171 |
+
|
| 172 |
+
- Removal of missing values
|
| 173 |
+
- Consistent numerical formatting
|
| 174 |
+
- Structured tabular representation
|
| 175 |
+
|
| 176 |
+
---
|
| 177 |
+
|
| 178 |
+
### Who are the source data producers?
|
| 179 |
+
|
| 180 |
+
The original data was compiled for agricultural machine learning research.
|
| 181 |
+
|
| 182 |
+
If redistributed from a public source (such as Kaggle or UCI), users should also acknowledge the original dataset creators.
|
| 183 |
+
|
| 184 |
+
---
|
| 185 |
+
|
| 186 |
+
# Annotations
|
| 187 |
+
|
| 188 |
+
## Annotation Process
|
| 189 |
+
|
| 190 |
+
No manual annotations were added.
|
| 191 |
+
|
| 192 |
+
The target crop label is included as part of the original dataset.
|
| 193 |
+
|
| 194 |
+
---
|
| 195 |
+
|
| 196 |
+
## Who are the annotators?
|
| 197 |
+
|
| 198 |
+
Not Applicable.
|
| 199 |
+
|
| 200 |
+
---
|
| 201 |
+
|
| 202 |
+
## Personal and Sensitive Information
|
| 203 |
+
|
| 204 |
+
This dataset contains **no personal, private, or sensitive information**.
|
| 205 |
+
|
| 206 |
+
No personally identifiable information (PII) is included.
|
| 207 |
+
|
| 208 |
+
---
|
| 209 |
+
|
| 210 |
+
# Bias, Risks, and Limitations
|
| 211 |
+
|
| 212 |
+
Although useful for benchmarking, the dataset has several limitations.
|
| 213 |
+
|
| 214 |
+
- Limited geographic diversity
|
| 215 |
+
- Fixed environmental variables
|
| 216 |
+
- Does not include seasonal changes
|
| 217 |
+
- Does not account for local farming practices
|
| 218 |
+
- Cannot replace agricultural experts
|
| 219 |
+
- Limited feature set
|
| 220 |
+
- May not generalize globally
|
| 221 |
+
|
| 222 |
+
---
|
| 223 |
+
|
| 224 |
+
## Recommendations
|
| 225 |
+
|
| 226 |
+
Users should:
|
| 227 |
+
|
| 228 |
+
- Normalize numerical features before training.
|
| 229 |
+
- Evaluate models using cross-validation.
|
| 230 |
+
- Consider adding weather forecasts, soil texture, and satellite imagery for production systems.
|
| 231 |
+
- Validate predictions with agricultural experts before deployment.
|
| 232 |
+
|
| 233 |
+
---
|
| 234 |
+
|
| 235 |
+
# Citation
|
| 236 |
+
|
| 237 |
+
If you use this dataset in your work, please cite it as:
|
| 238 |
+
|
| 239 |
+
**BibTeX**
|
| 240 |
+
|
| 241 |
+
```bibtex
|
| 242 |
+
@dataset{crop_recommendation_dataset,
|
| 243 |
+
title={Crop Recommendation Dataset},
|
| 244 |
+
author={Abhinav Manoj},
|
| 245 |
+
year={2026},
|
| 246 |
+
publisher={Hugging Face}
|
| 247 |
+
}
|
| 248 |
+
```
|
| 249 |
+
|
| 250 |
+
**APA**
|
| 251 |
+
|
| 252 |
+
Abhinav Manoj. (2026). *Crop Recommendation Dataset*. Hugging Face.
|
| 253 |
+
|
| 254 |
+
---
|
| 255 |
+
|
| 256 |
+
# Glossary
|
| 257 |
+
|
| 258 |
+
**N** – Nitrogen concentration
|
| 259 |
+
|
| 260 |
+
**P** – Phosphorus concentration
|
| 261 |
+
|
| 262 |
+
**K** – Potassium concentration
|
| 263 |
+
|
| 264 |
+
**pH** – Soil acidity or alkalinity
|
| 265 |
+
|
| 266 |
+
**Humidity** – Relative humidity percentage
|
| 267 |
+
|
| 268 |
+
**Rainfall** – Rainfall in millimeters
|
| 269 |
+
|
| 270 |
+
---
|
| 271 |
+
|
| 272 |
+
# More Information
|
| 273 |
+
|
| 274 |
+
This dataset is intended for educational, research, and benchmarking purposes.
|
| 275 |
+
|
| 276 |
+
Researchers are encouraged to extend the dataset with additional environmental variables such as:
|
| 277 |
+
|
| 278 |
+
- Soil texture
|
| 279 |
+
- Soil moisture
|
| 280 |
+
- Elevation
|
| 281 |
+
- Weather forecasts
|
| 282 |
+
- Satellite imagery
|
| 283 |
+
- Historical crop yield
|
| 284 |
+
|
| 285 |
+
---
|
| 286 |
+
|
| 287 |
+
# Dataset Card Authors
|
| 288 |
+
|
| 289 |
+
Ambu
|
| 290 |
+
|
| 291 |
+
---
|
| 292 |
+
|
| 293 |
+
# Dataset Card Contact
|
| 294 |
+
|
| 295 |
+
For questions or feedback, please open an issue on the Hugging Face repository.
|