Evaluation of Machine Learning and Ensemble Models for Multi-SKU Demand Forecasting with Time-Series Validation

Sri Devi, Ida Nurhaida

Abstract


Inventory planning in agricultural supply distribution warehouses is often constrained by seasonal fluctuations in orders and a high proportion of weeks with zero transactions. This study evaluates ten forecasting methods—statistical baselines (Naïve, MA-4, ETS, and Croston-SBA), machine learning models (RF and SVR), deep learning (LSTM), a hybrid model (LSTM+RF), and ensemble methods (Voting and Weighted Average)—for multi-SKU demand patterns using time series validation designed to prevent data leakage. A data-cleaning audit of 20,051 transaction records from January 2024 to August 2026 identified and separated 195 negative-return records and 204 duplicate records, resulting in 19,652 cleaned transactions covering 145 SKUs and 137 effective weeks (109 training weeks and 28 testing weeks). Based on the Syntetos–Boylan classification applied to the training data, the SKUs were categorized as 7 Smooth (4.83%), 26 Erratic (17.93%), 18 Intermittent (12.41%), 85 Lumpy (58.62%), and 9 Inactive (6.21%). In five-fold rolling-origin cross-validation, with median MASE values ranging from 0.779 to 1.242, the Weighted Ensemble was selected for the Smooth (0.799) and Lumpy (0.878) demand categories, whereas LSTM was selected for the Erratic (0.779) and Intermittent (0.993) categories. During the testing period, among 136 active SKUs, the models selected through validation achieved median MASE values of 0.901 (Smooth), 0.797 (Erratic), 0.633 (Intermittent), and 0.825 (Lumpy). Overall, the selected models achieved a median MASE of 0.804 (mean: 0.992), outperforming seven of the ten individual models, although their performance was slightly lower than that of MA-4 (0.778), ETS (0.780), and LSTM (0.793). Theoretically, these findings highlight a shift in model performance between validation and testing, indicating that complex models do not necessarily outperform parsimonious statistical methods when applied to short and intermittent time series. This study contributes an integrated, leakage-free multi-SKU evaluation framework that incorporates Cycle Service Level (CSL), Safety Stock, and Reorder Point simulations into a Streamlit dashboard.

Keywords


demand forecasting; ensemble learning; klasifikasi ADI-CV²; random forest; validasi deret waktu

Full Text:

PDF

References


S. Chopra and P. Meindl, Supply Chain Management: Strategy, Planning, and Operation, 6th ed. Boston, MA, USA: Pearson, 2016.

S. Alam Khan and A. Erdoğdu, “A Study on the Impact of Artificial Intelligence on Demand Forecasting in Food Industries,” Journal of Life Economics, Vol. 12, No. 1, pp. 45–58, 2025, DOI: 10.15637/jlecon.2682.

R. J. Hyndman and G. Athanasopoulos, Forecasting: Principles and Practice, 3rd ed. Melbourne, Australia: OTexts, 2021.

A. A. Syntetos and J. E. Boylan, “The Accuracy of Intermittent Demand Estimates,” International Journal of Forecasting, Vol. 21, No. 2, pp. 303–314, 2005, DOI: 10.1016/j.ijforecast.2004.10.001.

S. Makridakis, E. Spiliotis, and V. Assimakopoulos, “M5 Accuracy Competition: Results, Findings, and Conclusions,” International Journal of Forecasting, Vol. 38, No. 4, pp. 1346–1364, 2022, DOI: 10.1016/j.ijforecast.2021.11.013.

R. Carbonneau, K. Laframboise, and R. Vahidov, “Application of Machine Learning Techniques for Supply Chain Demand Forecasting,” European Journal of Operational Research, Vol. 184, No. 3, pp. 1140–1154, 2008, DOI: 10.1016/j.ejor.2006.12.004.

L. Breiman, “Random Forests,” Machine Learning, Vol. 45, No. 1, pp. 5–32, 2001, DOI: 10.1023/A:1010933404324.

J. E. Boylan and A. A. Syntetos, Intermittent Demand Forecasting: Context, Methods and Applications. Chichester, UK: John Wiley & Sons, 2021.

S. Hochreiter and J. Schmidhuber, “Long Short-Term Memory,” Neural Computation, Vol. 9, No. 8, pp. 1735–1780, 1997, DOI: 10.1162/neco.1997.9.8.1735.

A. A. Levis and L. G. Papageorgiou, “Customer Demand Forecasting via Support Vector Regression Analysis,” Journal of Intelligent Manufacturing, Vol. 16, No. 4–5, pp. 409–419, 2005, DOI: 10.1007/s10845-005-6892-1.

G. D. Palgunadi, R. Fitriana, A. N. Habyba, and Y. Liang, “Optimizing Demand Forecasting Method with Support Vector Regression for Improved Inventory Planning,” Jurnal Optimasi Sistem Industri, Vol. 24, No. 1, 2025.

C. Bergmeir and J. M. Benítez, “On the Use of Cross-Validation for Time Series Predictor Evaluation,” Information Sciences, Vol. 191, pp. 192–213, 2012, DOI: 10.1016/j.ins.2011.12.028.

L. Cao and F. E. H. Tay, “Support Vector Machines Experts for Time Series Forecasting,” Neurocomputing, Vol. 51, pp. 321–339, 2003, DOI: 10.1016/S0925-2312(02)00577-5.

H. Drucker, C. J. C. Burges, L. Kaufman, A. Smola, and V. Vapnik, “Support Vector Regression Machines,” in Advances in Neural Information Processing Systems, Vol. 9, pp. 155–161, 1997.

R. J. Hyndman and A. B. Koehler, “Another Look at Measures of Forecast Accuracy,” International Journal of Forecasting, Vol. 22, No. 4, pp. 679–688, 2006, DOI: 10.1016/j.ijforecast.2006.03.001.

J. D. Croston, “Forecasting and Stock Control for Intermittent Demands,” Operational Research Quarterly, Vol. 23, No. 3, pp. 289–303, 1972.

A. A. Syntetos, J. E. Boylan, and J. D. Croston, “On the Categorization of Demand Patterns,” Journal of the Operational Research Society, Vol. 56, No. 5, pp. 495–503, 2005.

E. A. Silver, D. F. Pyke, and D. J. Thomas, Inventory and Production Management in Supply Chains, 4th ed. Boca Raton, FL, USA: CRC Press, 2017.

S. Makridakis, E. Spiliotis, and V. Assimakopoulos, “Statistical and Machine Learning Forecasting Methods: Concerns and Ways Forward,” PLOS ONE, Vol. 13, No. 3, e0194889, 2018.

S. Smyl, “A Hybrid Method of Exponential Smoothing and Recurrent Neural Networks for Time Series Forecasting,” International Journal of Forecasting, Vol. 36, No. 1, pp. 75–85, 2020.

H. Hewamalage, C. Bergmeir, and K. Bandara, “Recurrent Neural Networks for Time Series Forecasting: Current Status and Future Directions,” International Journal of Forecasting, Vol. 37, No. 1, pp. 388–427, 2021.

F. Petropoulos et al., “Forecasting: Theory and Practice,” International Journal of Forecasting, Vol. 38, No. 3, pp. 705–871, 2022.

R. Fildes, S. Ma, and S. Kolassa, “Retail Forecasting: Research and Practice,” International Journal of Forecasting, Vol. 38, No. 4, pp. 1283–1318, 2022.

T. Januschowski, Y. Wang, K. Torkkola, T. Erkkilä, H. Hasson, and J. Gasthaus, “Forecasting with Trees,” International Journal of Forecasting, Vol. 38, No. 4, pp. 1473–1481, 2022.

X. Wang, R. J. Hyndman, F. Li, and Y. Kang, “Forecast Combinations: An Over 50-Year Review,” International Journal of Forecasting, Vol. 39, No. 4, pp. 1518–1547, 2023.

H. Hewamalage, K. Ackermann, and C. Bergmeir, “Forecast Evaluation for Data Scientists: Common Pitfalls and Best Practices,” Data Mining and Knowledge Discovery, Vol. 37, No. 2, pp. 788–832, 2023.




DOI: https://doi.org/10.32520/stmsi.v15i11.7178

Article Metrics

Abstract view : 0 times
PDF - 0 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.