Smart Crop Advisor
Enter your soil nutrients and climate conditions. Our KNN-based model will recommend the best crop for your field.
Adjust parameters and click
Analyze & Predict to get recommendations
Model Analytics
Performance metrics, algorithm comparisons, and dataset insights from the Kaggle Crop Recommendation Dataset.
Crop Database
All 22 crop profiles with average nutrient and climate requirements from the 2,200-row Kaggle dataset.
| Crop | Type | N (avg) | P (avg) | K (avg) | Temp ยฐC | Humidity % | pH | Rainfall mm |
|---|
Crop Radar View
Compare the nutrient and climate profile of any two crops side by side.
About This Project
๐ฏ Problem Statement
Indian farmers often struggle to choose the right crop due to variations in soil quality and climate. This leads to low yield and financial losses. We built a data-driven solution that uses machine learning to recommend the most suitable crop based on soil nutrients (N, P, K), temperature, humidity, pH, and rainfall.
๐ฆ Dataset
Source: Kaggle โ Crop Recommendation Dataset by Atharva Ingle
Records: 2,200 rows ยท 22 crop types ยท 7 features
Features: N, P, K (soil nutrients), Temperature, Humidity, pH, Rainfall
๐ค Algorithms Used
Decision Tree
max_depth=10, criterion='gini'
Random Forest
n_estimators=100, random_state=42
KNN Classifier
n_neighbors=5, metric='minkowski'
๐๏ธ Data Warehouse Design
Star Schema: Crop_Yield_Fact connected to Soil_Dimension, Climate_Dimension, Crop_Dimension โ simple structure with faster query performance.
Snowflake Schema: Normalized extension of Star Schema with sub-dimension tables (Soil_Type, Season, Crop_Type) โ reduces data redundancy.
๐ Future Scope
Real-time soil sensor data integration ยท Weather API for live climate feed ยท Mobile app for farmers ยท Yield quantity prediction using regression models