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