WebBased Sales Forecasting of Batik Products Using CatBoost Algorithm with Calendar Features and Promotional Effects
DOI:
https://doi.org/10.24269/mtkind.v20i2.14757Keywords:
CatBoost, Sales Forecasting, Time Series, Feature Engineering, Calendar Features, Promotional EffectsAbstract
Inventory management in traditional apparel (batik) retail presents unique operational challenges due to volatile, non-linear demand driven by calendar seasonality and promotional activities. Conventional forecasting relies heavily on manual intuition or linear statistical models, frequently leading to stock-outs or over-stocking. This paper presents an integrated web-based sales forecasting system powered by the Categorical Boosting (CatBoost) algorithm to model complex temporal patterns and promotional effects automatically. The system architecture seamlessly connects a React.js front end, a PHP Native back end, and a Flask-based CatBoost inference microservice linked to a MySQL database. The preprocessing workflow eliminates duplicate records, applies median imputation for missing values, and normalizes statistical outliers. Automated feature engineering extracts essential time variables (day, month, weekend status, and national holidays) alongside short-term lag features (H-1 and H-7) directly from the database. Experimental evaluations demonstrate strong predictive accuracy, achieving a Root Mean Square Error (RMSE) of 56.88 and a Mean Absolute Percentage Error (MAPE) of 8.87% for the primary product line (Kemeja Pria), while maintaining stable MAPE values between 16.22% and 26.10% across other apparel lines. The deployed web application provides store administrators with real-time demand estimates, pessimistic-to-optimistic inventory bounds, and clear feature importance attributions to support data-driven inventory allocation.
Downloads
References
[1] J. Wang and L. Luo, “A forecasting method of multi-category product sales: analysis and application,” Management System Engineering, vol. 2, no. 1, Mar. 2023, doi: 10.1007/s44176-023-00012-9.
[2] K. T. Kizgin, S. Alp, N. Aydin, and H. Yu, “Machine learning-based sales forecasting during crises: Evidence from a Turkish women’s clothing retailer,” Sci. Prog., vol. 108, no. 1, Jan. 2025, doi: 10.1177/00368504241307719.
[3] A. Pujara, V. Pattabiraman, and R. Parvathi, “Food Demand Forecast for Online Food Delivery Service Using CatBoost Model,” 2022, pp. 129–142. doi: 10.1007/978-3-030-78750-9_9.
[4] Y. Mousset, “How Did We Forecast Croissant Sales with Catboost?,” Medium (Artefact Engineering and Data Science).
[5] M. Muflih and E. Karyadiputra, “PREDIKSI PENJUALAN MENGGUNAKAN METODE HYBRID ENSEMBLE LEARNING”, [Online]. Available: https://ojs.uniska-bjm.ac.id/index.php/JIT/index
[6] R. J. Hyndman and A. B. Koehler, “Another look at measures of forecast accuracy,” 2005. [Online]. Available: http://www.forecasters.org/data/m3comp/m3comp.htm
[7] J. H. Friedman, “Greedy Function Approximation: A Gradient Boosting Machine,” 2001. [Online]. Available: http://www.jstor.orgURL:http://www.jstor.org/stable/2699986
[8] J. Ding, Z. Chen, L. Xiaolong, and B. Lai, “Sales Forecasting Based on CatBoost,” in Proceedings - 2020 2nd International Conference on Information Technology and Computer Application, ITCA 2020, Institute of Electrical and Electronics Engineers Inc., Dec. 2020, pp. 636–639. doi: 10.1109/ITCA52113.2020.00138.
[9] L. Prokhorenkova, G. Gusev, A. Vorobev, A. V. Dorogush, and A. Gulin, “CatBoost: unbiased boosting with categorical features.” [Online]. Available: https://github.com/catboost/catboost
[10] V. K. R. Chimmula and L. Zhang, “Time series forecasting of COVID-19 transmission in Canada using LSTM networks,” Chaos Solitons Fractals, vol. 135, p. 109864, Jun. 2020, doi: 10.1016/j.chaos.2020.109864.
[11] F. W. S. Djawas, M. N. D. Miharja, and N. Tedi K, “Implementasi Sistem Prediksi Harga Motor Bekas Menggunakan Algoritma Categorical Boosting,” Jutisi: Jurnal Ilmiah Teknik Informatika dan Sistem Informasi, vol. 15, no. 3, pp. 1031–1040, Jun. 2026, doi: 10.35889/jutisi.v15i3.3730.
[1] J. Wang and L. Luo, “A forecasting method of multi-category product sales: analysis and application,” Management System Engineering, vol. 2, no. 1, Mar. 2023, doi: 10.1007/s44176-023-00012-9.
[2] K. T. Kizgin, S. Alp, N. Aydin, and H. Yu, “Machine learning-based sales forecasting during crises: Evidence from a Turkish women’s clothing retailer,” Sci. Prog., vol. 108, no. 1, Jan. 2025, doi: 10.1177/00368504241307719.
[3] A. Pujara, V. Pattabiraman, and R. Parvathi, “Food Demand Forecast for Online Food Delivery Service Using CatBoost Model,” 2022, pp. 129–142. doi: 10.1007/978-3-030-78750-9_9.
[4] Y. Mousset, “How Did We Forecast Croissant Sales with Catboost?,” Medium (Artefact Engineering and Data Science).
[5] M. Muflih and E. Karyadiputra, “PREDIKSI PENJUALAN MENGGUNAKAN METODE HYBRID ENSEMBLE LEARNING”, [Online]. Available: https://ojs.uniska-bjm.ac.id/index.php/JIT/index
[6] R. J. Hyndman and A. B. Koehler, “Another look at measures of forecast accuracy,” 2005. [Online]. Available: http://www.forecasters.org/data/m3comp/m3comp.htm
[7] J. H. Friedman, “Greedy Function Approximation: A Gradient Boosting Machine,” 2001. [Online]. Available: http://www.jstor.orgURL:http://www.jstor.org/stable/2699986
[8] J. Ding, Z. Chen, L. Xiaolong, and B. Lai, “Sales Forecasting Based on CatBoost,” in Proceedings - 2020 2nd International Conference on Information Technology and Computer Application, ITCA 2020, Institute of Electrical and Electronics Engineers Inc., Dec. 2020, pp. 636–639. doi: 10.1109/ITCA52113.2020.00138.
[9] L. Prokhorenkova, G. Gusev, A. Vorobev, A. V. Dorogush, and A. Gulin, “CatBoost: unbiased boosting with categorical features.” [Online]. Available: https://github.com/catboost/catboost
[10] V. K. R. Chimmula and L. Zhang, “Time series forecasting of COVID-19 transmission in Canada using LSTM networks,” Chaos Solitons Fractals, vol. 135, p. 109864, Jun. 2020, doi: 10.1016/j.chaos.2020.109864.
[11] F. W. S. Djawas, M. N. D. Miharja, and N. Tedi K, “Implementasi Sistem Prediksi Harga Motor Bekas Menggunakan Algoritma Categorical Boosting,” Jutisi: Jurnal Ilmiah Teknik Informatika dan Sistem Informasi, vol. 15, no. 3, pp. 1031–1040, Jun. 2026, doi: 10.35889/jutisi.v15i3.3730.
[12] M. A. Fahmi and D. Kurniawan, “Implementasi K-Means sebagai Mekanisme Self-Labeling dalam Arsitektur Ensemble Voting Classifier untuk Prediksi Penjualan Usaha Mikro Kecil dan Menengah (UMKM) pada Data Tanpa Label,” Building of Informatics, Technology and Science (BITS), vol. 7, no. 3, pp. 2006–2016, Dec. 2025, doi: 10.47065/bits.v7i3.8779.
[13] W. McKinney, Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython. O’Reilly Media, 2022.
[14] Z. Zhang, “Time series forecasting using machine learning methods,” in Journal of Physics: Conference Series, IOP Publishing Ltd, Mar. 2021. doi: 10.1088/1742-6596/1827/1/012065.
[15] T. Chen and C. Guestrin, “XGBoost: A Scalable Tree Boosting System,” Jun. 2016, doi: 10.1145/2939672.2939785.
[16] G. Ke et al., “LightGBM: A Highly Efficient Gradient Boosting Decision Tree.” [Online]. Available: https://github.com/Microsoft/LightGBM.
[17] C. Willmott and K. Matsuura, “Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance,” Clim. Res., vol. 30, pp. 79–82, 2005, doi: 10.3354/cr030079.
[18] R. T. Fielding, “REST: Architectural Styles and the Design of Network-based Software Architectures,” University of California, Irvine.
[19] A. Banks and E. Porcello, Learning React: Modern Patterns for Developing React Apps, 2nd ed. Sebastopol, CA, USA: O’Reilly Media, 2020.
[20] E. Brown, Web Development with Node and Express: Leveraging the JavaScript Stack, 2nd ed. Sebastopol, CA, USA: O’Reilly Media, 2019.
[21] M. Grinberg, Flask Web Development: Developing Web Applications with Python, 2nd ed. Sebastopol, CA, USA: O’Reilly Media, 2018.
[22] A. Silberschatz, H. F. Korth, and S. Sudarshan, Database System Concepts, 7th ed. New York, NY, USA: McGraw-Hill Education, 2019.
[23] Oracle Corporation, “MySQL 8.0 Reference Manual,” MySQL. [Online]. Available: https://dev.mysql.com/doc/refman/8.0/en/. [Accessed: Oct. 20, 2026]
Downloads
Published
How to Cite
Issue
Section
Citation Check
License
Copyright (c) 2026 Multitek Indonesia : Jurnal Ilmiah

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




