Forecasting onion waste at the wholesale level in South Africa using time series and machine learning models
Postharvest waste of onions represents a pressing challenge for the South African agricultural sector, given their significant culinary and economic importance. Despite their nutritional value and economic contribution, studies quantifying onion waste at the South African wholesale value chain remain limited. This study presents a comparative forecasting-based approach to quantifying onion waste at the wholesale market level in South Africa using ARIMA, SARIMA, random forest, XGBoost, and LSTM models. The models were trained using onion waste data collected from 2021 to 2023 at a South African wholesale fresh produce market, along with historical temperature and relative humidity records from the study area. Waste estimates showed seasonal patterns and considerable volatility, ranging from 72 to 4085.71 kg over the study period. The LSTM model outperformed other models, with the lowest MAE of 175.19, RMSE of 290.24, and MAPE of 31.20%. This superior performance shows the predictability of the LSTM model to capture nonlinear and temporal dynamics in the dataset. Notably, the findings suggest that while the climatic variables influence model predictive accuracy for onion waste, incorporating more market produce variables alongside climatic conditions may further improve forecast performance. These findings highlight the potential of machine learning-based forecasting models to inform strategic, evidence-based decisions that reduce postharvest onion waste. Such models can strengthen value chain management by giving market operators and policymakers actionable forecasting tools to optimise procurement, logistics, and waste-reduction interventions across the South African fresh-produce wholesale value chain.
Authors
- Taiwo Gabriel Omomule (ORCID: https://orcid.org/0000-0002-0293-7003)
- Yardjouma Silué (ORCID: https://orcid.org/0000-0001-5153-3518)
- Ikechukwu Kingsley Opara (ORCID: https://orcid.org/0000-0003-0747-5319)
- Umezuruike Linus Opara (ORCID: https://orcid.org/0000-0001-8056-7215)
- Olaniyi Amos Fawole (ORCID: https://orcid.org/0000-0001-5591-4633)
Institutions
- University of Johannesburg (ZA)
- Stellenbosch University (ZA)
- International Centre for Biotechnology (NG)
- University of the Western Cape (ZA)
Publication Details
- Journal
- Discover Artificial Intelligence
- Published
- 2026-11-26
- DOI
- https://doi.org/10.1007/s44163-026-02881-x
- Primary Topic
- Food Waste Reduction and Sustainability
- Type
- article
- Field-Weighted Citation Impact
- 0.00