Skip to content
Open access

Machine Learning-Based Crop Yield Prediction Using FAO Global Agricultural Data: A Comparative Study of Linear Regression, Random Forest, and XGBoost

Aug 2026 · International Journal For Multidisciplinary Research · 0 citations · 28 references

TL;DR

Three machine learning models Linear Regression, Random Forest, and XGBoost are developed and compared for predicting crop yield using the FAO global agricultural dataset to confirm that ensemble learning methods, particularly Random Forest, are well-suited for modelling complex agricultural yield patterns at global scale.

Abstract

Accurate crop yield prediction is essential for food security planning, agricultural policy-making, and sustainable farming management. This study develops and compares three machine learning models Linear Regression, Random Forest, and XGBoost for predicting crop yield using the FAO (Food and Agriculture Organization) global agricultural dataset. The dataset spans 212 countries and regions, covers 10 major crop types, and encompasses the period 1961–2016, comprising 56,717 records. Following a systematic preprocessing pipeline including missing value verification, duplicate removal, and label encoding, all models were trained and evaluated under identical experimental conditions using an 80:20 train-test split (45,373 training / 11,344 testing records). Performance was assessed using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and the coefficient of determination (R²). Random Forest achieved the best predictive performance with R² = 0.9586, MAE = 6,724.19 hg/ha, and RMSE = 13,829.60 hg/ha. XGBoost demonstrated competitive performance with R² = 0.8115, while Linear Regression showed limited effectiveness with R² = 0.0608, confirming its inability to model the nonlinear dynamics of global agricultural data. Feature importance analysis identified Item Code (crop type) as the most influential predictor, followed by geographic region and temporal factors. These findings confirm that ensemble learning methods, particularly Random Forest, are well-suited for modelling complex agricultural yield patterns at global scale.

Read PDF

Similar papers

Open access Sep 2026

Machine Learning-Based Crop Yield Forecasting Using Environmental and Agricultural Parameters

A comparative crop yield forecasting framework that combines agricultural and environmental variables with multi-model evaluation, cross-validation, feature-importance analysis, and multiple error metrics is developed.

Pavan Sahu, Om Prakash Karada · 0 citations
Open access Aug 2026

Evaluating Tree-Based Machine Learning Regression Models for Crop Yield Prediction Using Indian Agricultural Data

Accurate crop yield prediction supports agricultural planning and resource allocation. This study evaluates three tree-based regression configurations Coarse, Medium and Fine Regression Trees for predicting district-level crop production in India. The analysis uses a single secondary tabular source, the open-access Cro...

Neha Chauhan, Dinesh Sharma, G. Tomar · 1 citation
Open access Oct 2026

Cross Validation of Machine Learning Models for Paddy Yield Prediction

The findings highlight the essential role of mean baselines and leakage-safe validation in evaluating agricultural predictive models and identify temperature as the most influential predictor, followed by rainfall.

A. Rao, P. Bhat, S. Yamagar · 0 citations
Open access Sep 2026

Crop Yield Prediction in Maharashtra Using Machine Learning: A Comparative Analysis of Multiple Models

The results indicate that ensemble models outperform traditional approaches in crop yield prediction, with XGBoost achieving the highest performance, and the effectiveness of machine learning techniques, particularly ensemble methods, in improving crop yield prediction.

Janhvi Kirtane, Mangal A. Patil, S. Vinayak et al. · 0 citations
Open access Sep 2026

Benchmark study of ensemble machine learning with feature selection for rice yield prediction

The results demonstrate the effectiveness of combining ensemble learning and feature selection for improving prediction accuracy and model interpretability and verify that prediction accuracy, resilience, and interpretability are slightly improved when ensemble learning and feature selection are combined.

F. Adugna, Yonatan Motbaynor Tebabal, Esubalew Asmara Desta · 0 citations
Open access Sep 2026

District-Level Crop Yield Prediction for Smallholder Farmers in Uttar Pradesh Using a Hybrid Random Forest–XGBoost Ensemble: A Transparent and Accessible Decision Support Framework

Delivering tailored agricultural advice for efficient use by farmers requires precise, localized crop production forecasts under data-constrained conditions. Most AI-based tools that are currently available are only useful at the state or national level and don't show validation metrics, which makes it harder to reprod...

U. K. Farooqui, Mohammad Hussain, Ubaid Asif Farooqui · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.