Journal article
Temporal feature engineering for agricultural commodity price forecasting in Nigeria: evaluating machine learning, deep learning and time-series approaches
Journal of Agribusiness in Developing and Emerging Economies, Vol.Advanced access
04-Sep-2026
Abstract
Purpose
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.
Design/methodology/approach
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.
Findings
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.
Research limitations/implications
The study relies primarily on historical price data and does not incorporate exogenous variables such as weather, inflation, transportation costs or policy interventions.
Originality/value
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.
Details
- Title
- Temporal feature engineering for agricultural commodity price forecasting in Nigeria: evaluating machine learning, deep learning and time-series approaches
- Authors
- Damilare Ogunjobi - Federal University of TechnologyRania Shibl (Corresponding Author) - Southern Cross UniversityShahrzad Saremi - University of the Sunshine Coast
- Publication details
- Journal of Agribusiness in Developing and Emerging Economies, Vol.Advanced access
- Publisher
- Emerald Publishing Limited
- DOI
- 10.1108/JADEE-05-2026-0385
- ISSN
- 2044-0847
- Copyright note
- © Damilare Ogunjobi, Rania Shibl and Shahrzad Saremi. Published by Emerald Publishing Limited. This article is published under the Creative Commons Attribution (CC BY 4.0) licence. Anyone may reproduce, distribute, translate and create derivative works of this article (for both commercial and non-commercial purposes), subject to full attribution to the original publication and authors. The full terms of this licence may be seen at Link to the terms of the CC BY 4.0 licence.
- Organisation Unit
- School of Science, Technology and Engineering
- Language
- English
- Record Identifier
- 991259384702621
- Output Type
- Journal article
Metrics
1 Record Views