Incorporating soil information with machine learning for crop recommendation to improve agricultural output

The agriculture field is the basis of a country's change and financial system. Crops are the main source of revenue for the people. One of the farmer's most challenging problems is choosing the right crops for their land. This critical decision has a direct impact on productivity and profit. Wrong crop selection not only reduces yields but also causes food shortages, creating more problems for farmers. The best crop depends on many parameters such as illustration humidity, N, K, P, pH, rainfall, and temperature of the soil. Getting advice from experts is not an easy task. This requires intelligent models in crop recommendations that use machine-learning models to suggest suitable crops for soil and other environmental conditions. Temperature, humidity, and pH are important data for growing crops in agriculture. In this study, we gather and preprocess relevant data. To recommend the most suitable crop, we propose a novel ensemble learning approach called RFXG based on random forest (RF) and extreme gradient boosting (XGB) to suggest the best crop out of the twenty-two major crops. To measure the capability of the proposed approach, various machine learning models are utilized including extra tree classifier, multilayer perceptron, RF, decision trees, logistic regression, and XGB classifiers. To get the best performance, optimization of hyperparameter, and K-fold cross-validation procedures are performed. Experimental outcomes show that the proposed RFXG technique achieves a recommendation accuracy is 98%. Specifically, the proposed solution provides immediate recommendations to help farmers make timely decisions.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-03-12
DOI
https://doi.org/10.1038/s41598-025-88676-z
Citations
20
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
35.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Incorporating soil information with machine learning for crop recommendation to improve agricultural output

Santos Gràcia Villar, Kashif Munir, Luís Alonso Dzul López, Madiha Amjad et al.
20 citations
Scientific Reports
Smart Agriculture and AI
35.00
article

Incorporating soil information with machine learning for crop recommendation to improve agricultural output

Santos Gràcia Villar, Kashif Munir, Luís Alonso Dzul López, Madiha Amjad, H. M. Rehan Afzal, Ali Raza, Imran Ashraf
article en
20 citations

Abstract

The agriculture field is the basis of a country's change and financial system. Crops are the main source of revenue for the people. One of the farmer's most challenging problems is choosing the right crops for their land. This critical decision has a direct impact on productivity and profit. Wrong crop selection not only reduces yields but also causes food shortages, creating more problems for farmers. The best crop depends on many parameters such as illustration humidity, N, K, P, pH, rainfall, and temperature of the soil. Getting advice from experts is not an easy task. This requires intelligent models in crop recommendations that use machine-learning models to suggest suitable crops for soil and other environmental conditions. Temperature, humidity, and pH are important data for growing crops in agriculture. In this study, we gather and preprocess relevant data. To recommend the most suitable crop, we propose a novel ensemble learning approach called RFXG based on random forest (RF) and extreme gradient boosting (XGB) to suggest the best crop out of the twenty-two major crops. To measure the capability of the proposed approach, various machine learning models are utilized including extra tree classifier, multilayer perceptron, RF, decision trees, logistic regression, and XGB classifiers. To get the best performance, optimization of hyperparameter, and K-fold cross-validation procedures are performed. Experimental outcomes show that the proposed RFXG technique achieves a recommendation accuracy is 98%. Specifically, the proposed solution provides immediate recommendations to help farmers make timely decisions.

Scientific ReportsVol. 15(1)
University of Lahore (PK), Universidad Iberoamericana (MX), Universidad Internacional (MX), Khwaja Fareed University of Engineering and Information Technology (PK), Universidad Europea del Atlántico (ES), Universidade Internacional do Cuanza, Universidad de la Romana, Yeungnam University (KR), Ibero-American University Puebla (MX)
Zero hunger
Openalex Percentile: Top 0%
Smart Agriculture and AI
35.00
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.