Applying Machine Learning in Retail Demand Prediction—A Comparison of Tree-Based Ensembles and Long Short-Term Memory-Based Deep Learning
Source abstract
Abstract
In the realm of retail supply chain management, accurate forecasting is paramount for informed decision making, as it directly impacts business operations and profitability. This study delves into the application of tree-based ensemble forecasting, specifically using extra tree Regressors (ETRs) and long short-term memory (LSTM) networks. Utilizing over six years of historical demand data from a prominent retail entity, the dataset encompasses daily demand metrics for more than 330 products, totaling 5.2 million records. Additionally, external variables, such as meteorological and COVID-19-related data, are integrated into the analysis. Our evaluation, spanning three perishable product categories, reveals that the ETR model outperforms LSTM in metrics including MAPE, MAE, RMSE, and R2. This disparity in performance is particularly pronounced for fresh meat products, whereas it is marginal for fruit products. These ETR results were evaluated alongside three other tree-based ensemble methods, namely XGBoost, Random Forest Regression (RFR), and Gradient Boosting Regression (GBR). The comparable performance across these four tree-based ensemble techniques serves to reinforce their comparative analysis with LSTM-based deep learning models. Our findings pave the way for future studies to assess the comparative efficacy of tree-based ensembles and deep learning techniques across varying forecasting horizons, such as short-, medium-, and long-term predictions.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Forecasting Techniques and Applications · Stock Market Forecasting Methods · Energy Load and Power Forecasting
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Logistics, University of Applied Sciences Upper Austria, 4400 Steyr, Austria
Josef Ressel Centre for Predictive Value Network Intelligence, 4400 Steyr, Austria
Funding
Christian Doppler Research Association
References (54)
Show source-provided references
1. Forecasting: Theory and practice10.1016/j.ijforecast.2021.11.001 ↗
2. Brandtner, P., Udokwu, C., Darbanian, F., and Falatouri, T. (February, January 30). Applications of Big Data Analytics in Supply Chain Management: Findings from Expert Interviews. Proceedings of the ICCMB 2021: 2021 the 4th International Conference on Computers in Management and Business, Singapore.10.1145/3450588.3450603 ↗
3. Predictive Analytics and Intelligent Decision Support Systems in Supply Chain Risk Management—Research Directions for Future Studies
4. Brandtner, P. (2020). ISPIM Conference Proceedings, LUT Scientific and Expertise Publications.
5. Predictive Analytics for Demand Forecasting—A Comparison of SARIMA and LSTM in Retail SCM10.1016/j.procs.2022.01.298 ↗
6. Retail forecasting: Research and practice10.1016/j.ijforecast.2019.06.004 ↗
7. Retail sales forecasting with meta-learning10.1016/j.ejor.2020.05.038 ↗
8. Akyuz, A.O., Bulbul, B.A., and Uysal, M.O. (2017, January 3–5). Ensemble approach for time series analysis in demand forecasting: Ensemble learning. Proceedings of the 2017 IEEE International Conference on Innovations in Intelligent Systems and Applications (INISTA), Gdynia, Poland.10.1109/INISTA.2017.8001123 ↗
9. Forecast combinations: An over 50-year review10.1016/j.ijforecast.2022.11.005 ↗
10. Forecasting with trees10.1016/j.ijforecast.2021.10.004 ↗
11. Kotu, V., and Deshpande, B. (2019). Data Science, Elsevier.10.1016/B978-0-12-814761-0.00002-2 ↗
12. River Water Quality Prediction in Malaysia Based on Extra Tree Regression Model Coupled with Linear Discriminant Analysis (LDA)10.1016/B978-0-323-88506-5.50230-8 ↗
13. Sumaiya Farzana, G., and Prakash, N. (2020, January 29–30). Machine Learning in Demand Forecasting—A Review. Proceedings of the 2nd International Conference on IoT, Social, Mobile, Analytics & Cloud in Computational Vision & Bio-Engineering, Thoothukudi, India.
14. Application of SARIMAX model to forecast daily sales in food retail industry10.4018/IJORIS.2016040101 ↗
15. Da Marques, F., and Alexandre, R. (2020). A Comparison on Statistical Methods and Long Short Term Memory Network Forecasting the Demand of Fresh Fish Products. [Master’s Thesis, Faculty of Engineering of the University of Porto].
16. Forecasting aggregate retail sales: A comparison of artificial neural networks and traditional methods10.1016/S0969-6989(00)00011-4 ↗
17. Cankurt, S. (2016, January 4–6). Tourism demand forecasting using ensembles of regression trees. Proceedings of the 2016 IEEE 8th International Conference on Intelligent Systems (IS), Sofia, Bulgaria.10.1109/IS.2016.7737388 ↗
18. Cluster-based demand forecasting using Bayesian model averaging: An ensemble learning approach10.1016/j.dajour.2022.100033 ↗
19. Ensemble forecasting system for short-term wind speed forecasting based on optimal sub-model selection and multi-objective version of mayfly optimization algorithm10.1016/j.eswa.2021.114974 ↗
20. A novel decomposition ensemble model with extended extreme learning machine for crude oil price forecasting10.1016/j.engappai.2015.04.016 ↗
21. Enhanced ensemble structures using wavelet neural networks applied to short-term load forecasting10.1016/j.engappai.2019.03.012 ↗
22. A hybrid model based on bidirectional long short-term memory neural network and Catboost for short-term electricity spot price forecasting10.1080/01605682.2020.1843976 ↗
23. A novel decomposition-ensemble learning framework for multi-step ahead wind energy forecasting10.1016/j.energy.2020.119174 ↗
24. Realized volatility forecast of agricultural futures using the HAR models with bagging and combination approaches10.1016/j.iref.2017.01.030 ↗
25. Short-Term Origin-Destination Based Metro Flow Prediction with Probabilistic Model Selection Approach10.1155/2018/5942763 ↗
26. Ensemble approach based on bagging, boosting and stacking for short-term prediction in agribusiness time series10.1016/j.asoc.2019.105837 ↗
27. An Approach for Demand Forecasting in Steel Industries Using Ensemble Learning10.1155/2022/9928836 ↗
28. Das Adhikari, N.C., Garg, R., Datt, S., Das, L., Deshpande, S., and Misra, A. (2017, January 7–8). Ensemble methodology for demand forecasting. Proceedings of the 2017 International Conference on Intelligent Sustainable Systems (ICISS), Palladam, India.10.1109/ISS1.2017.8389297 ↗
29. What matters for global food price volatility?10.1007/s00181-017-1311-9 ↗
30. Demand forecasting at retail stage for selected vegetables: A performance analysis10.1108/JM2-11-2018-0192 ↗
31. Demand Forecasting In Wholesale Alcohol Distribution: An Ensemble Approach
32. Sharma, A., and Shafiq, M.O. (2020, January 14–17). Predicting purchase probability of retail items using an ensemble learning approach and historical data. Proceedings of the 2020 19th IEEE International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA.10.1109/ICMLA51294.2020.00118 ↗
33. Zhang, Y., Zhu, H., Wang, Y., and Li, T. (2022, January 11–12). Demand Forecasting: From Machine Learning to Ensemble Learning. Proceedings of the 2022 IEEE Conference on Telecommunications, Optics and Computer Science (TOCS), Dalian, China.10.1109/TOCS56154.2022.10015992 ↗
34. Comparative Analysis of Supervised Machine Learning Techniques for Sales Forecasting
35. Ma, X., Yin, Y., Jin, Y., He, M., and Zhu, M. (2022). Short-Term Prediction of Bike-Sharing Demand Using Multi-Source Data: A Spatial-Temporal Graph Attentional LSTM Approach. Appl. Sci., 12.10.3390/app12031161 ↗
36. Selecting critical features for data classification based on machine learning methods10.1186/s40537-020-00327-4 ↗
37. Khalid, S., Khalil, T., and Nasreen, S. (2014, January 27–29). A survey of feature selection and feature extraction techniques in machine learning. Proceedings of the 2014 Science and Information Conference (SAI), London, UK.10.1109/SAI.2014.6918213 ↗
38. Variable Importance Assessment in Regression: Linear Regression versus Random Forest10.1198/tast.2009.08199 ↗
39. Random forests10.1023/A:1010933404324 ↗
40. Deep learning with long short-term memory networks and random forests for demand forecasting in multi-channel retail10.1080/00207543.2020.1735666 ↗
41. Scikit-learn: Machine learning in Python
42. Extremely randomized trees10.1007/s10994-006-6226-1 ↗
43. Almuhammadi, S., Alnajim, A., and Ayub, M. (2023). QUIC Network Traffic Classification Using Ensemble Machine Learning Techniques. Appl. Sci., 13.10.3390/app13084725 ↗
44. Abadi, M., Agarwal, A., Barham, P., Brevdo, E., Chen, Z., Citro, C., Corrado, G.S., Davis, A., Dean, J., and Devin, M. (2016). TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems. arXiv.
45. Long short-term memory10.1162/neco.1997.9.8.1735 ↗
46. Dou, Z., Sun, Y., Zhu, J., and Zhou, Z. (2023). The Evaluation Prediction System for Urban Advanced Manufacturing Development. Systems, 11.10.3390/systems11080392 ↗
47. Dou, Z., Sun, Y., Zhang, Y., Wang, T., Wu, C., and Fan, S. (2021). Regional Manufacturing Industry Demand Forecasting: A Deep Learning Approach. Appl. Sci., 11.10.3390/app11136199 ↗
48. Shi, Y., Zhang, L., Lu, S., and Liu, Q. (2023). Short-Term Demand Prediction of Shared Bikes Based on LSTM Network. Electronics, 12.10.3390/electronics12061381 ↗
49. Salih, A., Raisi-Estabragh, Z., Galazzo, I.B., Radeva, P., Petersen, S.E., Menegaz, G., and Lekadir, K. (2023). Commentary on explainable artificial intelligence methods: SHAP and LIME. arXiv.
50. Brusa, E., Cibrario, L., Delprete, C., and Di Maggio, L.G. (2023). Explainable AI for Machine Fault Diagnosis: Understanding Features’ Contribution in Machine Learning Models for Industrial Condition Monitoring. Appl. Sci., 13.10.3390/app13042038 ↗
51. Cordeiro-Costas, M., Villanueva, D., Eguía-Oller, P., Martínez-Comesaña, M., and Ramos, S. (2023). Load Forecasting with Machine Learning and Deep Learning Methods. Appl. Sci., 13.10.3390/app13137933 ↗
52. Wang, J., Chong, W.K., Lin, J., and Hedenstierna, C.P.T. (2023). Retail Demand Forecasting Using Spatial-Temporal Gradient Boosting Methods. J. Comput. Inf. Syst., 1–13.10.1080/08874417.2023.2240753 ↗
53. Time Series Forecasting and Modeling of Food Demand Supply Chain Based on Regressors Analysis10.1109/ACCESS.2023.3266275 ↗
54. Alyoubi, B., Ben Ncir, C.-E., Alharbi, I., and Jarboui, A. (2022). Machine Learning and Data Analytics for Solving Business Problems. Unsupervised and Semi-Supervised Learning, Springer International Publishing.10.1007/978-3-031-18483-3 ↗