Machine Learning–Based Random Forest Prediction of Online Shopping Behavior in the Digital Economy
Against the backdrop of the continuous development of the digital economy, consumers' online shopping behaviors have become increasingly complex. Predicting consumers' purchasing behavior has become a major challenge. Based on the e-commerce behavior data in February 2021, this study constructed a consumer online purchase prediction model using Random Forest. The performance of prediction model for out-of-sample data has been enhanced through rigorous data cleaning, feature engineering, and class balancing. The accuracy and recall exceed the 0.90, and the F1-score exceeds 0.80. Exploratory data analysis has demonstrated to reveal behavioral patterns related to time and price. Furthermore, this study has proposed significant strategies for the enhancement of conversion of shopping carts into purchases. Feature importance analysis in this study has found that the four important factors influencing purchase intention are as follows: cart_event_ratio, total_events, cart_per_product and view_count. This study proposes a practical, data-driven framework for e-commerce practitioners to predict consumers' online purchasing behavior more accurately. Furthermore, the conversion strategies for online shopping will be effectively improved in the highly competitive digital economy.
Authors
- Jiajing Zhang
- Jianbang Lin (ORCID: https://orcid.org/0000-0001-5878-5806)
- Yingpeng Zhang
- Tian Wang (ORCID: https://orcid.org/0000-0003-3431-158X)
Institutions
- Guangdong University of Foreign Studies (CN)
- Guilin University of Technology (CN)
- Nanfang Hospital (CN)
- Guilin Tourism University
- Nanfang College Guangzhou
Publication Details
- Published
- 2025-04-25
- DOI
- https://doi.org/10.1145/3745133.3745186
- Citations
- 2
- Primary Topic
- Customer churn and segmentation
- Type
- article
- Field-Weighted Citation Impact
- 4.15