Customer Online Purchase Behavior Prediction and Performance Analysis Using Decision Tree and Random Forest

Authors

  • Wenjie Zheng

DOI:

https://doi.org/10.61173/pncab928

Keywords:

Online behavior, frequency of purchase, decision tree, random forest

Abstract

In the era of online shopping, understanding customer behavior has become increasingly crucial. By analyzing the detailed factors that influence customer actions, businesses can gain deeper insights into their clientele and enhance their targeted marketing strategies. This study investigates the influence of various factors on online customer purchasing frequency using a comprehensive dataset. The research is divided into two phases. Initially, the decision tree and random forest algorithms were utilized to analyze all dataset features, establishing a baseline model and determining feature importance. Subsequently, the second phase delved into the impact of feature count on model efficacy by incrementally eliminating less significant features. The study revealed that a model incorporating half of the features—namely purchase amount, age, review rating, previous purchases, location, color, purchased item, and shipping type—achieved comparable performance to the full-feature model. This streamlined approach not only expedited computation time but also reduced memory usage during the training process, offering valuable insights for businesses to refine their marketing strategies and enhance customer engagement. The findings underscore the potential of data-driven methods to optimize marketing efforts in the e-commerce sector, making a fundament for the future analysis.

References

[1] Statista Retail e-commerce sales worldwide from 2014 to 2027, 2023, https://www.statista.com/statistics/379046/ worldwide-retail-e-commerce-sales/

[2] Sundararaj V, Rejeesh MR. A detailed behavioral analysis on consumer and customer changing behavior with respect to social networking sites. Journal of Retailing and Consumer Services. 2021 Jan 1;58:102190.

[3] Pillai SG, Kim WG, Haldorai K, Kim HS. Online food delivery services and consumers‘ purchase intention: Integration of theory of planned behavior, theory of perceived risk, and the elaboration likelihood model. International journal of hospitality management. 2022 Aug 1;105:103275.

[4] Islam H, Jebarajakirthy C, Shankar A. An experimental based investigation into the effects of website interactivity on customer behavior in on-line purchase context. Journal of Strategic Marketing. 2021 Feb 17;29(2):117-40.Amjady N. Short-term hourly load forecasting using time series modeling with peak load estimation capability. IEEE Transactions on Power Systems, 2001, 16(4): 798-805.

[5] Ntoumanis N, Ng JY, Prestwich A, Quested E, Hancox JE, Thøgersen-Ntoumani C, Deci EL, Ryan RM, Lonsdale C, Williams GC. A meta-analysis of self-determination theoryinformed intervention studies in the health domain: Effects on motivation, health behavior, physical, and psychological health. Health psychology review. 2021 Apr 3;15(2):214-44.

[6] Wang Q, Jiao W, Wang P, Zhang Y. Digital twin for humanrobot interactive welding and welder behavior analysis. IEEE/ CAA Journal of Automatica Sinica. 2020 Nov 24;8(2):334-43.

[7] Wibowo A, Chen SC, Wiangin U, Ma Y, Ruangkanjanases A. Customer behavior as an outcome of social media marketing: The role of social media marketing activity and customer experience. Sustainability. 2020 Dec 28;13(1):189.

[8] Mach-Król M, Hadasik B. On a certain research gap in big data mining for customer insights. Applied Sciences. 2021 Jul 29;11(15):6993.

[9] Ernawati E, Baharin SS, Kasmin F. A review of data mining methods in RFM-based customer segmentation. InJournal of Physics: Conference Series 2021 Apr 1 (Vol. 1869, No. 1, p. 012085). IOP Publishing.

[10] Arefin S, Parvez R, Ahmed T, Ahsan M, Sumaiya F, Jahin F, Hasan M. Retail Industry Analytics: Unraveling Consumer Behavior through RFM Segmentation and Machine Learning. In2024 IEEE International Conference on Electro Information Technology (eIT) 2024 May 30 (pp. 545-551). IEEE.

[11] Sakalauskas V, Kriksciuniene D. Personalized Advertising in E-Commerce: Using Clickstream Data to Target High-Value Customers. Algorithms. 2024 Jan 10;17(1):27.

[12] Kaggle, Consumer Behavior and Shopping Habits Dataset, 2023, https://www.kaggle.com/datasets/zeesolver/consumerbehavior-and-shopping-habits-dataset?select=shopping_ behavior_updated.csv

[13] Chicco D, Jurman G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC genomics. 2020 Dec;21:1- 3.

[14] Jehad R, Yousif SA. Fake news classification using random forest and decision tree (j48). Al-Nahrain Journal of Science. 2020 Nov 30;23(4):49-55. Dean&Francis ISSN 2959-6157

[15] Madane N, Nanda S. Loan prediction analysis using decision tree. Journal of the Gujarat Research society. 2019 Dec;21(14):214-21.

[16] Aslam U, Tariq Aziz HI, Sohail A, Batcha NK. An empirical study on loan default prediction models. Journal of Computational and Theoretical Nanoscience. 2019 Aug 1;16(8):3483-8.

[17] Ali J, Khan R, Ahmad N, Maqsood I. Random forests and decision trees. International Journal of Computer Science Issues (IJCSI). 2012 Sep 1;9(5):272.

[18] Tariq A, Yan J, Gagnon AS, Riaz Khan M, Mumtaz F. Mapping of cropland, cropping patterns and crop types by combining optical remote sensing images with decision tree classifier and random forest. Geo-Spatial Information Science. 2023 Jul 3;26(3):302-20.

Downloads

Published

2024-12-31