IDEAS home Printed from https://ideas.repec.org/a/gam/jforec/v7y2025i2p19-d1654897.html
   My bibliography  Save this article

A Deep Learning-Based Prediction and Forecasting of Tomato Prices for the Cape Town Fresh Produce Market: A Model Comparative Analysis

Author

Listed:
  • Emmanuel Ekene Okere

    (Department of Electrical, Electronics and Computer Engineering, Faculty of Engineering & the Built Environment, Cape Peninsula University of Technology, Bellville, Cape Town 7535, South Africa)

  • Vipin Balyan

    (Department of Electrical, Electronics and Computer Engineering, Faculty of Engineering & the Built Environment, Cape Peninsula University of Technology, Bellville, Cape Town 7535, South Africa)

Abstract

The fresh produce supply chain sector is a vital pillar of any society and an indispensable part of the national economic structure. As a significant segment of the agricultural market, accurately forecasting vegetable prices holds significant importance. Vegetable market pricing is subject to a myriad of complex influences, resulting in nonlinear patterns that conventional time series methodologies often struggle to decode. Future planning for commodity pricing is achievable by forecasting the future price anticipated by the current circumstances. This paper presents a price forecasting methodology for tomatoes which uses price and production data taken from 2008 to 2021 and analyzed by means of advanced deep learning-based Long Short-Term Memory (LSTM) networks. A comparative analysis of three models based on Root Mean Square Error (RMSE) identifies LSTM as the most accurate model, achieving the lowest RMSE (0.2818), while SARIMA performs relatively well. The proposed deep learning-based method significantly improved the results versus other conventional machine learning and statistical time series analysis methods.

Suggested Citation

  • Emmanuel Ekene Okere & Vipin Balyan, 2025. "A Deep Learning-Based Prediction and Forecasting of Tomato Prices for the Cape Town Fresh Produce Market: A Model Comparative Analysis," Forecasting, MDPI, vol. 7(2), pages 1-18, May.
  • Handle: RePEc:gam:jforec:v:7:y:2025:i:2:p:19-:d:1654897
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2571-9394/7/2/19/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2571-9394/7/2/19/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Helin Yin & Dong Jin & Yeong Hyeon Gu & Chang Jin Park & Sang Keun Han & Seong Joon Yoo, 2020. "STL-ATTLSTM: Vegetable Price Forecasting Using STL and Attention Mechanism-Based LSTM," Agriculture, MDPI, vol. 10(12), pages 1-17, December.
    2. Lorenzo Menculini & Andrea Marini & Massimiliano Proietti & Alberto Garinei & Alessio Bozza & Cecilia Moretti & Marcello Marconi, 2021. "Comparing Prophet and Deep Learning to ARIMA in Forecasting Wholesale Food Prices," Forecasting, MDPI, vol. 3(3), pages 1-19, September.
    3. Qi Zhang & Weijia Yang & Anping Zhao & Xiaodong Wang & Zengfei Wang & Lin Zhang, 2024. "Short-term forecasting of vegetable prices based on LSTM model—Evidence from Beijing’s vegetable data," PLOS ONE, Public Library of Science, vol. 19(7), pages 1-33, July.
    4. Chenyun Zhao & Xiaodong Wang & Anping Zhao & Yunpeng Cui & Ting Wang & Juan Liu & Ying Hou & Mo Wang & Li Chen & Huan Li & Jinming Wu & Tan Sun, 2025. "A Vegetable-Price Forecasting Method Based on Mixture of Experts," Agriculture, MDPI, vol. 15(2), pages 1-19, January.
    5. Ikechukwu Kingsley Opara & Olaniyi Amos Fawole & Umezuruike Linus Opara, 2021. "Postharvest Losses of Pomegranate Fruit at the Packhouse and Implications for Sustainability Indicators," Sustainability, MDPI, vol. 13(9), pages 1-19, May.
    6. Feihu Sun & Xianyong Meng & Yan Zhang & Yan Wang & Hongtao Jiang & Pingzeng Liu, 2023. "Agricultural Product Price Forecasting Methods: A Review," Agriculture, MDPI, vol. 13(9), pages 1-20, August.
    7. Baiyegunhi, Lloyd & Sharaunga, Stanley & Dlangis, Sphelele & Ndaba, Nonkhululeko, 2018. "Tomato market integration: a case study of the Durban and Johannesburg fresh produce markets in south Africa," Journal of Agribusiness and Rural Development, University of Life Sciences, Poznan, Poland, vol. 49(3), March.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Emmanuel Ekene Okere & Ebrahiema Arendse & Alemayehu Ambaw Tsige & Willem Jacobus Perold & Umezuruike Linus Opara, 2022. "Pomegranate Quality Evaluation Using Non-Destructive Approaches: A Review," Agriculture, MDPI, vol. 12(12), pages 1-25, November.
    2. Badri Toppur & T. C. Thomas, 2023. "Forecasting Commercial Vehicle Production Using Quantitative Techniques," Contemporary Economics, University of Economics and Human Sciences in Warsaw., vol. 17(1), March.
    3. Arthanus Mutuku & Peter Murage & Stanley Sewe, 2024. "Application of SARIMAX model to forecast weekly Irish potato retail prices: a case study of Kitui County, Kenya," SN Business & Economics, Springer, vol. 4(11), pages 1-28, November.
    4. Alessandro Niccolai & Seyedamir Orooji & Andrea Matteri & Emanuele Ogliari & Sonia Leva, 2022. "Irradiance Nowcasting by Means of Deep-Learning Analysis of Infrared Images," Forecasting, MDPI, vol. 4(1), pages 1-11, March.
    5. Kun Zhang & Xing Huo & Kun Shao, 2023. "Temperature Time Series Prediction Model Based on Time Series Decomposition and Bi-LSTM Network," Mathematics, MDPI, vol. 11(9), pages 1-16, April.
    6. Hamid Ahaggach & Lylia Abrouk & Eric Lebon, 2024. "Systematic Mapping Study of Sales Forecasting: Methods, Trends, and Future Directions," Forecasting, MDPI, vol. 6(3), pages 1-31, July.
    7. Nikita V. Martyushev & Vladislav Spitsin & Roman V. Klyuev & Lubov Spitsina & Vladimir Yu. Konyukhov & Tatiana A. Oparina & Aleksandr E. Boltrushevich, 2025. "Predicting Firm’s Performance Based on Panel Data: Using Hybrid Methods to Improve Forecast Accuracy," Mathematics, MDPI, vol. 13(8), pages 1-33, April.
    8. Kmytiuk, Tetiana & Majore, Ginta & Bilyk, Tetiana, 2024. "Time series forecasting of price of the agricultural products using data science," Agricultural and Resource Economics: International Scientific E-Journal, Agricultural and Resource Economics: International Scientific E-Journal, vol. 10(3), September.
    9. Tendai Makoni & Delson Chikobvu, 2023. "Evaluating and Predicting the Long-Term Impact of the COVID-19 Pandemic on Manufacturing Sales within South Africa," Sustainability, MDPI, vol. 15(12), pages 1-18, June.
    10. Feihu Sun & Xianyong Meng & Yan Zhang & Yan Wang & Hongtao Jiang & Pingzeng Liu, 2023. "Agricultural Product Price Forecasting Methods: A Review," Agriculture, MDPI, vol. 13(9), pages 1-20, August.
    11. Dadasaheb G. Godase & P. R. Sheshagiri Rao & Anil Gore, 2022. "Favorit: farmers volatility risk treatment," Papers 2203.12395, arXiv.org, revised Mar 2022.
    12. Rui-Feng Wang & Wen-Hao Su, 2024. "The Application of Deep Learning in the Whole Potato Production Chain: A Comprehensive Review," Agriculture, MDPI, vol. 14(8), pages 1-30, July.
    13. Kai Ye & Yangheran Piao & Kun Zhao & Xiaohui Cui, 2021. "A Heterogeneous Graph Enhanced LSTM Network for Hog Price Prediction Using Online Discussion," Agriculture, MDPI, vol. 11(4), pages 1-14, April.
    14. Youzhu Li & Jinsi Liu & Hongyu Yang & Jianxin Chen & Jason Xiong, 2021. "A Bibliometric Analysis of Literature on Vegetable Prices at Domestic and International Markets—A Knowledge Graph Approach," Agriculture, MDPI, vol. 11(10), pages 1-17, September.
    15. Xiaojie Xu & Yun Zhang, 2023. "Steel price index forecasting through neural networks: the composite index, long products, flat products, and rolled products," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 36(4), pages 563-582, December.
    16. Mustafa Yurtsever, 2023. "Unemployment rate forecasting: LSTM-GRU hybrid approach," Journal for Labour Market Research, Springer;Institute for Employment Research/ Institut für Arbeitsmarkt- und Berufsforschung (IAB), vol. 57(1), pages 1-9, December.
    17. Fengyu Li & Xianyong Meng & Ke Zhu & Jun Yan & Lining Liu & Pingzeng Liu, 2025. "Research on Ginger Price Prediction Model Based on Deep Learning," Agriculture, MDPI, vol. 15(6), pages 1-23, March.
    18. Vaia I. Kontopoulou & Athanasios D. Panagopoulos & Ioannis Kakkos & George K. Matsopoulos, 2023. "A Review of ARIMA vs. Machine Learning Approaches for Time Series Forecasting in Data Driven Networks," Future Internet, MDPI, vol. 15(8), pages 1-31, July.
    19. Saeed, Naima & Nguyen, Su & Cullinane, Kevin & Gekara, Victor & Chhetri, Prem, 2023. "Forecasting container freight rates using the Prophet forecasting method," Transport Policy, Elsevier, vol. 133(C), pages 86-107.
    20. Yeong Hyeon Gu & Dong Jin & Helin Yin & Ri Zheng & Xianghua Piao & Seong Joon Yoo, 2022. "Forecasting Agricultural Commodity Prices Using Dual Input Attention LSTM," Agriculture, MDPI, vol. 12(2), pages 1-18, February.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jforec:v:7:y:2025:i:2:p:19-:d:1654897. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.