Krishi Lens
Soil & climate → crop recommendation

Read the soil.
Name the crop.

Set seven readings the way a farmer would read them off field instruments — nitrogen, phosphorus, potassium, temperature, humidity, pH and rainfall — and see which of 22 crops this soil is actually suited to, trained on 2,200 real agronomic samples.

2200 field samples
22 crops covered
best model Random Forest at 95.0% accuracy

Field readings

drag to set, or try a preset

Turn the dials to match a field, then read it — the recommendation, confidence and typical economics for that crop show up here.

—
neighbor agreement —

Why trust the recommendation

Seven algorithms were trained and compared on the same held-out test split. The predictor above runs a lightweight nearest-neighbor match in your browser (no server); the full Random Forest pipeline behind these numbers lives in the companion notebook.

Test accuracy by model

What the model actually looks at

The data behind it

2,200 samples, one row per field observation, perfectly balanced across 22 crops. Pick a crop to see the soil and climate band it actually occupies in the dataset.

2,200
field samples
22
crops, 100 each
0.70
P↔️K correlation, strongest in the set
7
raw soil & climate readings
Companion notebook

See the full pipeline behind this page

EDA, preprocessing, the 7-model comparison, cross-validation, hyperparameter tuning and diagnostics that produced every number above — all in one end-to-end Jupyter notebook.

Open the notebook