Application of The Random Forest Algorithm in Classifying the Tendency of Impulsive Purchasing Behavior Among Gen Z Consumers in E-Commerce Based on Flash Sale Features
DOI:
https://doi.org/10.35335/jict.v17i1.329Keywords:
e-commerce, RANDOM FOREST, KLASIFIKASI, FLASH SALE, cashbackAbstract
The rapid growth of e-commerce in Indonesia, particularly on Shopee, has significantly influenced consumer behavior through promotional strategies such as flash sales. This study aims to classify impulsive buying tendencies among Generation Z, identify key influencing factors, and develop a web-based classification system for behavioral analysis. A quantitative data mining approach was applied using the Random Forest algorithm. The dataset consisted of 420 Gen Z respondents collected through a Likert-scale questionnaire using purposive sampling, and model evaluation was conducted using 10-fold cross-validation to ensure reliability. The results show that the Random Forest model achieved an accuracy of 83.16%, outperforming Decision Tree (78.42%) and Logistic Regression (75.08%), indicating its effectiveness in handling complex behavioral patterns. Feature importance analysis revealed that limited stock availability (39.85%) and discount magnitude (33.21%) are the most dominant factors influencing impulsive buying behavior, followed by promotional duration and notification attractiveness. These findings emphasize the role of urgency and scarcity in driving impulsive purchases among Gen Z consumers. Additionally, a web-based system was developed using the Flask framework in Python to support automated data processing, model training, and visualization of results. The system enables real-time behavioral analysis and decision support for digital marketing strategies. Overall, the study demonstrates that machine learning, particularly Random Forest, provides a more accurate and objective approach for analyzing impulsive buying behavior compared to conventional statistical methods, while also offering a practical tool for e-commerce analytics and strategy optimization.
References
Aggarwal, P., Jun, S. Y., & Huh, J. H. (2011). Scarcity messages and consumer behavior. Journal of Advertising, 40(3), 19–30. https://doi.org/10.2753/JOA0091-3367400302
Beatty, S. E., & Ferrell, M. E. (1998). Impulse buying: Modeling its precursors. Journal of Retailing, 74(2), 169–191. https://doi.org/10.1016/S0022-4359(99)80092-X
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
Biau, G., & Scornet, E. (2016). A random forest guided tour. TEST, 25(2), 197–227. https://doi.org/10.1007/s11749-016-0481-7
Chan, T. K. H., Cheung, C. M. K., & Lee, Z. W. Y. (2017). The state of online impulse-buying research. International Journal of Information Management, 36(3), 204–216. https://doi.org/10.1016/j.ijinfomgt.2015.11.001
Djafarova, E., & Bowes, T. (2021). Instagram and impulse buying in Gen Z. Journal of Retailing and Consumer Services, 59, 102345. https://doi.org/10.1016/j.jretconser.2020.102345
Hajli, N. (2015). Social commerce constructs and consumer behavior. Technological Forecasting and Social Change, 94, 311–324. https://doi.org/10.1016/j.techfore.2015.01.005
Inman, J. J., Winer, R. S., & Ferraro, R. (2014). The interplay among consumer decision factors. Journal of Marketing, 78(3), 109–121. https://doi.org/10.1509/jm.13.0185
Kotler, P., Kartajaya, H., & Setiawan, I. (2021). Marketing 5.0. Wiley.
Laudon, K. C., & Traver, C. G. (2021). E-commerce: Business, technology, society. Pearson.
Liaw, A., & Wiener, M. (2002). Classification and regression by randomForest. R News, 2(3), 18–22.
Mai, N. T. T., Jung, K., Lantz, G., & Loeb, S. G. (2003). Impulse buying behavior study. Journal of Retailing and Consumer Services, 10(2), 83–91. https://doi.org/10.1016/S0969-6989(02)00041-9
Priporas, C. V., Stylos, N., & Fotiadis, A. K. (2017). Generation Z consumer behavior. Journal of Tourism Futures, 3(3), 199–208. https://doi.org/10.1108/JTF-12-2016-0045
Probst, P., Wright, M. N., & Boulesteix, A. L. (2019). Hyperparameters in random forest. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 9(3), e1301. https://doi.org/10.1002/widm.1301
Rook, D. W. (1987). The buying impulse. Journal of Consumer Research, 14(2), 189–199. https://doi.org/10.1086/209105
Verplanken, B., & Herabadi, A. (2001). Individual differences in impulse buying. Journal of Economic Psychology, 22(1), 71–99. https://doi.org/10.1016/S0167-4870(00)00033-X
Zhang, X., Prybutok, V. R., & Koh, C. E. (2018). The role of urgency in online impulse buying. Decision Support Systems, 105, 1–11. https://doi.org/10.1016/j.dss.2017.11.001


Jurnal ICT : Information and Communication Technologies is licensed under a