IDEAS home Printed from https://ideas.repec.org/a/gam/jforec/v7y2025i2p19-d1654897.html

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. Beckert, Jens, 2011. "Where do prices come from? Sociological approaches to price formation," MPIfG Discussion Paper 11/3, Max Planck Institute for the Study of Societies.
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    6. 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.
    7. 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.
    8. Baiyegunhi, Lloyd & Sharaunga, Stanley & Dlangis, Sphelele & Ndaba, Nonkhululeko, . "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).
    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. 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.
    2. Jean Finez & Pierre Brasseur, 2020. "The economies of sexuality [Les économies de la sexualité]," Post-Print hal-03022199, HAL.
    3. 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.
    4. 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.
    5. 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.
    6. 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.
    7. Wang, Pengfei, 2019. "Price space and product demography: Evidence from the workstation industry, 1980–1996," Research Policy, Elsevier, vol. 48(9), pages 1-1.
    8. 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.
    9. 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.
    10. Fabien Eloire & Jean Finez, 2023. "Prices as social facts: A sociological approach to price setting," Post-Print hal-03816307, HAL.
    11. Ingrid Soraya Ortiz Baquero, 2022. "Estudios de Derecho de la Competencia," Books, Universidad Externado de Colombia, Facultad de Derecho, number 1351.
    12. 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.
    13. Shailendra Gurjar & Usha Ananthakumar, 2023. "The economics of art: price determinants and returns on investment in Indian paintings," International Journal of Social Economics, Emerald Group Publishing Limited, vol. 50(6), pages 839-859, January.
    14. Xiangjuan Liu & Yunlong Li & Fengtong Wang & Yujie Qin & Zhongyu Lyu, 2025. "Decomposition-reconstruction-optimization framework for hog price forecasting: Integrating STL, PCA, and BWO-optimized BiLSTM," PLOS ONE, Public Library of Science, vol. 20(6), pages 1-29, June.
    15. Lis-Plesińska, Aleksandra, 2022. "Predictions of electricity prices as embedded devices for coordinating European futures," economic sociology. perspectives and conversations, Max Planck Institute for the Study of Societies, vol. 24(1), pages 11-17.
    16. 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.
    17. 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.
    18. Nasiha Hashim & Putra Faizurrahman Zahid, 2025. "Stock Return’s Prediction Using Financial Ratios for Malaysian Construction Firms," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 9(6), pages 4723-4733, June.
    19. Tröster, Bernhard & Staritz, Cornelia & Grumiller, Jan & Maile, Felix, 2019. "Commodity dependence, global commodity chains, price volatility and financialisation: Price-setting and stabilisation in the cocoa sectors in Côte d'Ivoire and Ghana," Working Papers 62, Austrian Foundation for Development Research (ÖFSE).
    20. Kmytiuk, Tetiana & Majore, Ginta & Bilyk, Tetiana, . "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).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    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.