Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

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

Domain:

agriculture

Record type:

paper
Creator:
DamRanSha
Publisher:
Eme
Host:
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.

Visit

doi.org

Licenses

https://creativecommons.org/licences/by/4.0/

Similar

Ensemble Methods for Time Series Forecasting in Nigeria: Predicting Agricultural Yields Using Advanced Machine Learning ApproachesBenchmarking Deep Learning for Agricultural Potential Estimation from Multispectral Satellite Time SeriesForecasting agricultural commodity prices from satellite data satellite data using machine learningTime series forecasting of electrical energy consumption using deep learning algorithmMachine learning and deep learning approaches to model in vitro inflammatory responses of nanofibers scaffolds in tissue engineeringLeveraging satellite data with machine and deep learning techniques for corn yield and price forecasting

Ensemble Methods for Time Series Forecasting in Nigeria: Predicting Agricultural Yields Using Advanced Machine Learning Approaches

International audience Accurate forecasting of agricultural yields is essential for m

Benchmarking Deep Learning for Agricultural Potential Estimation from Multispectral Satellite Time Series

International audience

Agricultural potential estimation -assessing land suit

Forecasting agricultural commodity prices from satellite data satellite data using machine learning

Prévision des prix des produits agricoles à partir de données satellitaires par apprentissage automa

Time series forecasting of electrical energy consumption using deep learning algorithm

Energy consumption forecasting is an operation of predicting the future energy consumption of electr

Machine learning and deep learning approaches to model in vitro inflammatory responses of nanofibers scaffolds in tissue engineering

Machine learning and deep learning approaches to model in vitro inflammatory responses of nanofibers scaffolds in tissue engineering

Poster presented at the Deep Learning Indaba 2023 by Lakshmi SUJEEUN

Leveraging satellite data with machine and deep learning techniques for corn yield and price forecasting

This study introduces an innovative method for forecasting corn yield and price variations, critical