Skip to content

Temporal feature engineering for agricultural commodity price forecasting in Nigeria: evaluating machine learning, deep learning and time-series approaches

Sep 2026 · Journal of Agribusiness in Developing and Emerging Economies · 0 citations · 14 references

Abstract

This study investigates the effectiveness of machine learning, deep learning and traditional time-series approaches for predicting agricultural commodity prices in Nigeria, focussing on improving forecasting reliability through temporal feature engineering and time-aware evaluation using the WFP Nigeria dataset. The study uses 60,566 observations across Nigerian commodity markets (2002–2025). Linear Regression, Random Forest, ARIMA, and LSTM models were evaluated using lag and rolling-average temporal features, with walk-forward validation preserving temporal integrity for realistic assessment. Machine learning models outperformed traditional statistical approaches. Random Forest (R2 = 0.497) exceeded Linear Regression (R2 = 0.465), while ARIMA yielded a negative R2 (−0.259). LSTM achieved its strongest performance for maize (R2 = 0.640) and sorghum (R2 = 0.468), while several highly volatile commodities produced negative R2 values despite extended training and Early Stopping. These results highlight the role of commodity-specific characteristics in price forecasting, with walk-forward validation revealing considerable temporal performance variation. The study relies primarily on historical price data and does not incorporate exogenous variables such as weather, inflation, transportation costs or policy interventions. This study contributes to the agricultural forecasting literature by integrating temporal feature engineering, chronological validation, walk-forward evaluation, and comparative modelling within a unified framework using a Nigerian commodity price dataset, providing commodity-level evidence on the varying effectiveness of machine learning, deep learning and traditional statistical approaches under realistic forecasting conditions.

View source

Similar papers

Conference Open access 2026

Feature Engineering and Crop Yield Prediction using Agricultural Time-Series Data

The increasing availability of agricultural timeseries data enabled more accurate and data-driven crop yield prediction. However, raw meteorological, soil, and vegetation datasets often fail to capture complex temporal dependencies essential for robust forecasting. This study proposes a structured feature engineering...

K. Lata, A. Kumar, P. Sharma et al. · 0 citations
Open access Sep 2026

Forecasting agricultural commodity prices using machine learning models

Accurate forecasting of agricultural commodity prices is important for market planning, risk assessment, and agricultural policy support. This study develops a historical-price-based forecasting framework for nine agricultural commodities in Maharashtra, India, using mandi-level AGMARKNET data from 2001 to October 2025...

P. Mahajan, A. Muley, M. Fegade · 0 citations
Open access Oct 2026

Exploring SPI-Based Machine Learning and Statistical Models for Drought Prediction in Southeastern Romania

Analyzing the performance of several forecasting models applied to Standardized Precipitation Index time series for the 1967–2021 period revealed a clear scale-dependent pattern: absolute forecast accuracy increased with the SPI aggregation scale—alongside more pronounced temporal persistence—though this did not necess...

C. Șerban, Anata-Flavia Ionescu, C. Maftei et al. · 0 citations
Aug 2026

Forecasting black pepper prices in India: a comparison of time series and machine learning models

This study aims to evaluate the predictive performance of traditional econometric time series models and modern machine learning (ML) approaches for forecasting black pepper prices in India's Cochin market, a key benchmark market in the Indian spice trade, with the aim of identifying superior forecasting methods to...

S. Bhat, T. M. Kiran Kumara, Shiv Kumar · 0 citations
Open access Aug 2026

Oil production forecasting in a heterogeneous Niger Delta reservoir using ensemble machine learning and cognitive computing

This study improves oil production forecasting for a heterogeneous Niger Delta reservoir using an ensemble of Long Short-Term Memory, Prophet, and Random Forest models using a workflow that combines decline curve analysis with ensemble machine learning and DeepSeek-R1 cognitive analysis.

Fossong Guilianno, K. Okengwu, U. A. Okengwu · 0 citations
Open access Sep 2026

Dual Stacking for Rapid Crop Yield Prediction Using LSTM-Based Analytical Deep Learning

This paper presents a novel approach to rapid crop yield prediction through the integration of Dual Stacking and Long Short-Term Memory (LSTM)-based Analytical Deep Learning (ADL). The proposed DSA-LSTM framework leverages both short-term and long-term memory variables to efficiently forecast agricultural output. By ut...

Surbhi Tandon, Navneet Kaur · 0 citations

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