Crop Recommendation System Based on Soil and Weather Conditions: A PythonBased Approach

Accurate crop selection plays a pivotal role in enhancing agricultural productivity and ensuring sustainable farming practices. This research proposes a machine learning–based crop recommendation system that leverages soil parameters (e.g., pH, nitrogen (N), phosphorus (P), potassium (K)), climate variables (rainfall, temperature, humidity), and agronomic indicators to suggest optimal crops for specific agro ecological zones. Utilizing publicly available datasets and preprocessing techniques, a suite of classification models—including Random Forest, XGBoost, Decision Tree, K Nearest Neighbors, SVM, and Logistic Regression—is trained and evaluated in Python. Model performance is assessed through metrics such as accuracy, precision, recall, and F1 score. The ensemble-based models, particularly Random Forest and Gradient Boosting, exhibit superior performance. The proposed system supports decision-making for farmers and extension services, enabling data-driven crop planning and contributing to resource optimization and food security.

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-10-25
DOI
https://doi.org/10.5281/zenodo.17441576
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Crop Recommendation System Based on Soil and Weather Conditions: A PythonBased Approach

Zenodo (CERN European Organization for Nuclear Research)
Smart Agriculture and AI
article

Crop Recommendation System Based on Soil and Weather Conditions: A PythonBased Approach

article en

Abstract

Accurate crop selection plays a pivotal role in enhancing agricultural productivity and ensuring sustainable farming practices. This research proposes a machine learning–based crop recommendation system that leverages soil parameters (e.g., pH, nitrogen (N), phosphorus (P), potassium (K)), climate variables (rainfall, temperature, humidity), and agronomic indicators to suggest optimal crops for specific agro ecological zones. Utilizing publicly available datasets and preprocessing techniques, a suite of classification models—including Random Forest, XGBoost, Decision Tree, K Nearest Neighbors, SVM, and Logistic Regression—is trained and evaluated in Python. Model performance is assessed through metrics such as accuracy, precision, recall, and F1 score. The ensemble-based models, particularly Random Forest and Gradient Boosting, exhibit superior performance. The proposed system supports decision-making for farmers and extension services, enabling data-driven crop planning and contributing to resource optimization and food security.

Zenodo (CERN European Organization for Nuclear Research)
Zero hunger
Openalex Percentile: Top 30%
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.