journal article·2026-02-05Open access

Attention-Based Deep Learning Hybrid Model for Cash Crop Price Forecasting: Evidence from Global Futures Markets with Implications for West Africa

Mohammed Gadafi Tamimu, Shurong Zhao, Qianwen Xu, Jie Zhang

Applied Sciences· Volume 16· Issue 3

Abstract

Accurate forecasting of agricultural commodity prices is essential for managing market volatility, improving supply chain coordination, and supporting food security-related decision-making. Recent advances in deep learning have demonstrated strong potential for capturing nonlinear and temporal dependencies in commodity price dynamics. In this study, we propose a hybrid long short-term memory–multi-head attention (LSTM–MHA) framework for agricultural commodity price forecasting using global futures market data. The model is trained and evaluated on multivariate global commodity futures prices, reflecting internationally traded benchmark markets rather than region-specific domestic prices. While the empirical analysis is based on global data, the study is motivated by the relevance of international price movements for import-dependent regions, particularly West Africa, where global price transmission plays a critical role in domestic market dynamics. The experimental results demonstrate that the proposed model effectively captures short-term temporal dependencies and provides interpretable attention-based insights into lag relevance. An ablation study further highlights the trade-offs between forecasting accuracy and interpretability across different model configurations. The hybrid architecture combines the time-based pattern identification and weighting capabilities of multi-head attention with the sequential learning capabilities of LSTM. Mean absolute error (MAE), root mean squared error (RMSE), and mean squared error (MSE) were used to evaluate the model’s performance. With an MSE of 0.0124, an RMSE of 0.1114, and an MAE of 0.1097, the model outperformed conventional models like ARIMA and standalone LSTM by three to four times in error reduction. The findings suggest that attention-enhanced deep learning models can serve as valuable analytical tools for understanding global price dynamics and informing policy analysis and risk management in West African agricultural markets.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Market Dynamics and Volatility · Stock Market Forecasting Methods · Forecasting Techniques and Applications

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Economics and Management, University of Electronic Science and Technology of China, No. 2006, Xiyuan Ave, West Hi-Tech Zone, Chengdu 611731, China

Center for West African Studies, University of Electronic Science and Technology of China, No. 2006, Xiyuan Ave, West Hi-Tech Zone, Chengdu 611731, China

School of Logistics, Sichuan University of Culture and Arts, No. 32, Yandong Road, Economic and Technological Development Zone, Mianyang 621000, China

School of Public Administration, University of Electronic Science and Technology of China, No. 2006, Xiyuan Ave, West Hi-Tech Zone, Chengdu 611731, China

Funding

Sichuan Social Science Planned Key Research Project · 2022 Central Chinese University Fundamental Research Program for Humanities and Social Science Cultivation Key Project · Regional funded Studies of the Ministry of Education of China

References (61)

Show source-provided references
1. Trade policy coordination and food price volatility10.1093/ajae/aaw020 ↗
2. Food products pricing theory with application of machine learning and game theory approach10.1080/00207543.2022.2128921 ↗
3. Environmental friendly route design for a milk collection problem: The case of an Indian dairy
4. Two stages method-based on Africa smart irrigation system assessment for willingness to pay: A case of Ghana Northern Region10.1016/j.seps.2025.102318 ↗
5. A transfer learning CNN-LSTM network-based production progress prediction approach in IIoT-enabled manufacturing10.1080/00207543.2022.2056860 ↗
6. Lagi, M., Bertrand, K.Z., and Bar-Yam, Y. (2011). The Food Crises and Political Instability in North Africa and the Middle East. arXiv.10.2139/ssrn.1910031 ↗
7. Climate change impacts on global food security10.1126/science.1239402 ↗
8. Prakash, A. (2011). Organisation des Nations Unies pour l’alimentation et l’agriculture. Safeguarding Food Security in Volatile Global Markets, Food and Agriculture Organization of the United Nations.
9. Tomek, W.G., and Kaiser, H.M. (2014). Agricultural Product Prices, Cornell University Press.
10. Food security: The challenge of feeding 9 billion people10.1126/science.1185383 ↗
11. Rising food prices, food price volatility, and social unrest10.1093/ajae/aau038 ↗
12. Agricultural price forecasting using neural network model: An innovative information delivery system10.1007/s40003-013-0068-4 ↗
13. Box, G.E.P., Jenkins, G.M., Reinsel, G.C., and Ljung, G.M. (2016). Time Series Analysis: Forecasting and Control, John Wiley & Sons.
14. Graves, A. (2013). Generating Sequences with Recurrent Neural Networks. arXiv.10.1007/978-3-642-24797-2_3 ↗
15. Ian Goodfellow, Yoshua Bengio, and Aaron Courville: Deep learning—The MIT Press, 2016, 800 pp, ISBN: 026203561810.1007/s10710-017-9314-z ↗
16. Pascanu, R., Mikolov, T., and Bengio, Y. (July, January 26). On the difficulty of training recurrent neural networks. Proceedings of the International Conference on Machine Learning, Edinburgh, UK.
17. Vaswani, A., Shazeer, N.M., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017, January 4–9). Attention is All You Need. Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA.
18. Food supply chains during the COVID-19 pandemic10.1111/cjag.12237 ↗
19. Zhao, S., Tamimu, M.G., Luo, A., Sun, T., and Yang, Y. (2025). Hesitant Fuzzy-BWM Risk Evaluation Framework for E-Business Supply Chain Cooperation for China–West Africa Digital Trade. J. Theor. Appl. Electron. Commer. Res., 20.10.3390/jtaer20030233 ↗
20. The economics of grain price volatility10.1093/aepp/ppq033 ↗
21. The transmission of world commodity prices to domestic markets under policy reforms in developing countries10.1080/0951274032000175770 ↗
22. MacDonald, S., and Meyer, L.A. (2025, September 10). Long Run Trends and Fluctuations In Cotton Prices. In Proceedings of a Conference. Available online: https://mpra.ub.uni-muenchen.de/84484/.
23. Timber price dynamics following a natural catastrophe10.1111/0002-9092.00012 ↗
24. Trading more food: Implications for land use, greenhouse gas emissions, and the food system10.1016/j.gloenvcha.2011.09.013 ↗
25. Qin, Y., Song, D., Chen, H., Cheng, W., Jiang, G., and Cottrell, G. (2017). A dual-stage attention-based recurrent neural network for time series prediction. arXiv.10.24963/ijcai.2017/366 ↗
26. Informer: Beyond efficient transformer for long sequence time-series forecasting10.1609/aaai.v35i12.17325 ↗
27. Sustainable mining development in Ghana: An integrated AHP-TOPSIS-Manhattan distance approach10.1016/j.resourpol.2025.105757 ↗
28. Fuzzy logic-BWM-based risk assessment for E-business cooperation in China-West Africa digital trade: A path to sustainable business and policies10.1016/j.ecores.2025.100014 ↗
29. Tamimu, M.G., Zhao, S., Xu, Q., Zhang, J., and Yin, X. (2025). Pythagorean Fuzzy-AHP (PF-AHP) Approach for Emerging New Risk Evaluation in China-West Africa Digital Trade Collaboration. J. Theor. Appl. Electron. Commer. Res., 20.10.3390/jtaer20040327 ↗
30. Forecasting oil price volatility using spillover effects from uncertainty indices10.1016/j.frl.2020.101885 ↗
31. A comparison of artificial neural network and time series models for forecasting commodity prices10.1016/0925-2312(95)00020-8 ↗
32. Commonality in the LME aluminum and copper volatility processes through a FIGARCH lens
33. A combination method for interval forecasting of agricultural commodity futures prices10.1016/j.knosys.2015.01.002 ↗
34. Agricultural product forecasting using machine learning approach10.12988/ijma.2013.35113 ↗
35. Hochreiter, S. (1997). Long Short-term Memory. Neural Computation, MIT-Press.10.1162/neco.1997.9.8.1735 ↗
36. Bahdanau, D., Cho, K., and Bengio, Y. (2014). Neural Machine Translation by Jointly Learning to Align and Translate. arXiv.
37. Gold price volatility: A forecasting approach using the Artificial Neural Network–GARCH model10.1016/j.eswa.2015.04.058 ↗
38. Machine learning for demand forecasting in the physical internet: A case study of agricultural products in Thailand
39. Crude oil price prediction model with long short term memory deep learning based on prior knowledge data transfer10.1016/j.energy.2018.12.016 ↗
40. A CNN–LSTM model for gold price time-series forecasting10.1007/s00521-020-04867-x ↗
41. An ensemble deep learning approach for predicting cocoa yield10.1016/j.heliyon.2023.e15245 ↗
42. Mekala, K., Laxmi, V., Jagruthi, H., Dhondiyal, S.A., Sridevi, R., and Dabral, A.P. (2023, January 25–26). Coffee Price Prediction: An Application of CNN-BLSTM Neural Networks. Proceedings of the 2023 International Conference on Advances in Computing, Communication and Applied Informatics (ACCAI), Chennai, India.10.1109/ACCAI58221.2023.10199369 ↗
43. Forecasting Indonesia exports using a hybrid model ARIMA-LSTM10.1016/j.procs.2021.01.031 ↗
44. Forecasting pine sawtimber stumpage prices: A comparison between a time series hybrid model and an artificial neural network10.1016/j.forpol.2023.103028 ↗
45. Forecasting realized volatility of agricultural commodity futures with infinite Hidden Markov HAR models10.1016/j.ijforecast.2019.08.007 ↗
46. A hybrid commodity price-forecasting model applied to the sugar–alcohol sector10.1111/j.1467-8489.2011.00534.x ↗
47. Deepa, P.B., and Daisy, J. (2023, January 20–22). Deep Learning Based Prediction of Commodity Prices Using LSTM. Proceedings of the 2023 4th International Conference on Smart Electronics and Communication (ICOSEC), Trichy, India.10.1109/ICOSEC58147.2023.10276011 ↗
48. Ren, B., Xu, X., and Yu, H. (2021, January 29–31). Research of LSTM-RNN Model and Its Application Evaluation on Agricultural Products Circulation. Proceedings of the 2021 IEEE 3rd Eurasia Conference on IOT, Communication and Engineering (ECICE), Yunlin, Taiwan.10.1109/ECICE52819.2021.9645687 ↗
49. Tami, M., and Owda, A.Y. (2024). Efficient commodity price forecasting using long short-term memory model. IAES Int. J. Artif. Intell. (IJ-AI), 13.10.11591/ijai.v13.i1.pp994-1004 ↗
50. Various optimized machine learning techniques to predict agricultural commodity prices10.1007/s00521-024-09679-x ↗
51. Zhang, Q., Yang, W., Zhao, A., Wang, X., Wang, Z., and Zhang, L. (2024). Short-term forecasting of vegetable prices based on lstm model—Evidence from Beijing’s vegetable data. PLoS ONE, 19.10.1371/journal.pone.0304881 ↗
52. Zhang, T., and Tang, Z. (2024). Agricultural commodity futures prices prediction based on a new hybrid forecasting model combining quadratic decomposition technology and LSTM model. Front. Sustain. Food Syst., 8.10.3389/fsufs.2024.1334098 ↗
53. Terrada, L., El Khaili, M., and Ouajji, H. (2022). Demand forecasting model using deep learning methods for supply chain management 4.0. Int. J. Adv. Comput. Sci. Appl., 13.10.14569/IJACSA.2022.0130581 ↗
54. An ARIMA-LSTM model for predicting volatile agricultural price series with random forest technique10.1016/j.asoc.2023.110939 ↗
55. Application of Deep Learning to Production Forecasting in Intelligent Agricultural Product Supply Chain
56. Servera, G. (2024, October 02). Downloading Agricultural Products Futures [Dataset]. Kaggle. Available online: https://www.kaggle.com/code/guillemservera.
57. Comparative Analysis of LSTM and ARIMA Models in Stock Price Prediction: A Technology Company Example
58. Murugesan, R., Mishra, E., and Krishnan, A.H. (Res. Sq., 2021). Deep Learning Based Models: Basic LSTM, Bi LSTM, Stacked LSTM, CNN LSTM and Conv LSTM to Forecast Agricultural Commodities Prices, Res. Sq., preprint.10.21203/rs.3.rs-740568/v1 ↗
59. Gadafi, T.M., Mohammed, A.M.A., Ma, J., Muhammad, S.R., Darko, A.P., and Liang, D. (2025, January 12–13). BiLSTM-Based Climate and Agricultural Supply Chain Resilience Modeling Using Time Series Forecasting in Ghana. Proceedings of the 2nd International Conference on Image Processing, Machine Learning, and Pattern Recognition, Kunming, China.10.1145/3759928.3759967 ↗
60. Yun, B., Lai, J., Ma, Y., and Zheng, Y. (2024). Research on Grain Futures Price Prediction Based on a Bi-DSConvLSTM-Attention Model. Systems, 12.10.3390/systems12060204 ↗
61. Gadafi, T.M., Toufic, S., Sagoe, A.A., Decui, L., and Anwar, H. (2025, January 13–15). Enhancing Climate Resilience through Sustainable Agricultural Intensification: An Attention-Based Neural Network for Climate-Smart Agriculture Modeling in Ghana. Proceedings of the 2025 International Conference on Smart Agriculture and Artificial Intelligence, Xi’an, China.10.1145/3767624.3767648 ↗