Optimasi Bobot Model Ensemble untuk Peramalan Penjualan Menggunakan Grey Wolf Optimizer

Authors

  • Bayu Nurcahyono Teknik Informatika S-2, Program Pascasarjana, Universitas Pamulang, Kota Tangerang Selatan, Banten
  • Agung Budi Susanto Teknik Informatika S-2, Program Pascasarjana, Universitas Pamulang, Kota Tangerang Selatan, Banten
  • Sudarno Wiharjo Teknik Informatika S-2, Program Pascasarjana, Universitas Pamulang, Kota Tangerang Selatan, Banten

Keywords:

Sales Forecast, ensemble learning, grey wolf optimizer, optimization, Machine Learning

Abstract

Sales forecasting plays a crucial role in supporting strategic corporate decision-making, such as production planning, inventory management, and the formulation of marketing strategies. However, sales data that is complex, non-linear, and seasonal causes conventional methods such as Moving Average (MA), Exponential Smoothing (ES), and Linear Regression (LR) to often produce limited accuracy. This study aims to optimize the ensemble model weights of these three methods using the Grey Wolf Optimizer (GWO) algorithm to improve sales forecasting accuracy. The proposed method evaluates a large-scale retail sales dataset comprising 3,000,888 raw daily transactions from 54 stores and 33 product families (2013–2017), aggregated into 1,674 daily time-series records and split chronologically into 80% training data (1,339 records) and 20% testing data (335 records). Individual baseline models of Seasonal MA, Holt-Winters ES, and LR were developed alongside a weighted ensemble model with weights optimized by GWO. The performance was evaluated using MAE, MSE, RMSE, MAPE, and R² metrics. The results show that the GWO-optimized ensemble model achieved a MAPE of 11.60%, outperforming all individual baseline models. Compared to the best baseline model (Seasonal MA with MAPE 12.62%), the GWO ensemble achieved an accuracy improvement of 1.02%, which was proven statistically significant via Diebold–Mariano and Wilcoxon tests (p < 0.001). The GWO algorithm demonstrated high stability with a standard deviation of only 0.000026% across 30 independent runs.

References

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

[2] S. Makridakis, E. Spiliotis, and V. Assimakopoulos, "The M4 Competition: 100,000 time series and 61 forecasting methods," Int. J. Forecast., vol. 36, no. 1, pp. 54–74, 2020, doi: 10.1016/j.ijforecast.2019.04.014.

[3] M. Aras, I. D. Kocak, and H. G. Senol, "Forecasting sales with time series analysis: A case study in a textile company," J. Eng. Technol. Sci., vol. 49, no. 4, pp. 505–517, 2017.

[4] S. Ganguly and S. Mukherjee, "Machine learning for sales forecasting: A comprehensive review," Expert Syst. Appl., vol. 238, p. 121789, 2024, doi: 10.1016/j.eswa.2023.121789.

[5] R. Adhikari and R. K. Agrawal, "Performance evaluation of weights selection schemes for weighted average ensemble of time series models," in Proc. Int. Conf. Comput. Sci. Inf. Technol., 2012, pp. 408–419.

[6] S. Mirjalili, S. M. Mirjalili, and A. Lewis, "Grey Wolf Optimizer," Adv. Eng. Softw., vol. 69, pp. 46–61, 2014, doi: 10.1016/j.advengsoft.2013.12.007.

[7] EL Mahjouby et al., "Recurrent neural networks for time series forecasting: A comprehensive review," Neural Comput. Appl., vol. 36, no. 5, pp. 2345–2370, 2024.

[8] Y. K. Saheed and S. Misra, "A grey wolf optimizer-based stacking ensemble for IoT intrusion detection," IEEE Internet Things J., vol. 11, no. 3, pp. 4567–4578, 2024, doi: 10.1109/JIOT.2023.3328910.

[9] M. Husayn, O. R. Adegboye, and A. Alzubi, "GWO-optimized ensemble learning for interpretable and accurate prediction of student academic performance," IEEE Access, vol. 13, pp. 11234–11248, 2025, doi: 10.1109/ACCESS.2025.3528912.

[10] L. Lou, W. Xia, Z. Sun, S. Quan, S. Yin, Z. Gao, and C. Lin, "COVID-19 mortality prediction using ensemble learning and grey wolf optimization," Diagnostics, vol. 13, no. 4, p. 765, 2023, doi: 10.3390/diagnostics13040765.

[11] T. Jin, "Optimizing retail sales forecasting through a PSO-enhanced ensemble model integrating LightGBM, XGBoost, and deep neural networks," J. Retail. Consum. Serv., vol. 82, p. 104089, 2025, doi: 10.1016/j.jretconser.2024.104089.

[12] J. Manokaran and G. Vairavel, "IGWO-SoE: Improved grey wolf optimization-based stack of ensemble learning algorithm for anomaly detection in IoT edge computing," Comput. Netw., vol. 228, p. 109739, 2023, doi: 10.1016/j.comnet.2023.109739.

Downloads

Published

2026-07-31