Abstract :
This study investigates the use of machine learning to predict user purchase intentions based on behavioral data in a multi-category e-commerce platform. By analyzing seven months of user interaction logs—comprising product views, cart additions, and purchases—the research applies feature engineering to generate variables such as event weekday, product category levels, session activity count, and cart-to-view ratios. Four classification models were developed and evaluated: logistic regression, decision tree, random forest, and gradient boosting. Among these, the Random Forest algorithm outperformed the others, achieving the highest accuracy and F1-score, effectively balancing precision and recall. The results demonstrate that machine learning can reliably predict purchase intent and support more targeted marketing, personalized recommendations, and improved conversion strategies in e-commerce environments.
Keywords :
E-Commerce, Machine learning, purchase, User BehaviorReferences :
- Alojail and S. Bhatia, “A Novel Technique for Behavioral Analytics Using Ensemble Learning Algorithms in E-Commerce,” IEEE Access, vol. 8, pp. 150072–150080, 2020, doi: 10.1109/ACCESS.2020.3016419.
- Karl, “Forecasting e-commerce consumer returns: a systematic literature review,” Manag. Rev. Q., pp. 1–56, May 2024, doi: 10.1007/S11301-024-00436-X/FIGURES/6.
- Habib, M. Irfan, and M. Shahzad, “Modeling the enablers of online consumer engagement and platform preference in online food delivery platforms during COVID-19,” Futur. Bus. J. 2022 81, vol. 8, no. 1, pp. 1–18, Apr. 2022, doi: 10.1186/S43093-022-00119-7.
- N. Sevastianova, “Trademarks in the Age of Automated Commerce: Consumer Choice and Autonomy,” IIC Int. Rev. Intellect. Prop. Compet. Law, vol. 54, no. 10, pp. 1561–1589, Nov. 2023, doi: 10.1007/S40319-023-01402-Y/METRICS.
- André et al., “Consumer choice and autonomy in the age of artificial intelligence and big data,” CNS, vol. 5, no. 1–2, pp. 28–37, Mar. 2018, doi: 10.1007/s40547-017-0085-8.
- Ianni, E. Masciari, and G. Sperlí, “A survey of Big Data dimensions vs Social Networks analysis,” J. Intell. Inf. Syst., vol. 57, no. 1, pp. 73–100, Aug. 2021, doi: 10.1007/S10844-020-00629-2/METRICS.
- Xiong, N. Wei, K. Qiao, Z. Li, and Z. Li, “Exploring Consumption Intent in Live E-Commerce Barrage: A Text Feature-Based Approach Using BERT-BiLSTM Model,” IEEE Access, vol. 12, pp. 69288–69298, 2024, doi: 10.1109/ACCESS.2024.3399095.
- Wistedt, “Consumer purchase intention toward POI-retailers in cross-border E-commerce: An integration of technology acceptance model and commitment-trust theory,” J. Retail. Consum. Serv., vol. 81, p. 104015, Nov. 2024, doi: 10.1016/J.JRETCONSER.2024.104015.
- A. Huwaida et al., “Generation Z and Indonesian Social Commerce: Unraveling key drivers of their shopping decisions,” J. Open Innov. Technol. Mark. Complex., vol. 10, no. 2, p. 100256, Jun. 2024, doi: 10.1016/J.JOITMC.2024.100256.
- Chandraa, D. W. Sukmaningsih, and E. Sriwardiningsih, “The Impact of Live Streaming On Purchase Intention In Social Commerce In Indonesia,” Procedia Comput. Sci., vol. 234, pp. 987–995, Jan. 2024, doi: 10.1016/J.PROCS.2024.03.088.

