Skip to main navigation menu Skip to main content Skip to site footer

Articles

Vol. 1 (2025)

Behavioural Insights into Online Shoppers’ Purchase Intention Using Machine Learning Models

Submitted
December 11, 2025
Published
2025-12-12

Abstract

With evolving dynamics in e-commerce, user behavior analysis on e-commerce websites has grown more crucial in customer experience improvement and conversion rate optimization. Predictive analytics is instrumental in deriving hidden patterns from user behavior and enabling data-informed decisions. However, amidst vast amounts of web traffic data, the majority of online retailers struggle to identify actionable behavioral cues that accurately predict buying intent on a consistent basis. This study addresses the issue of accurately predicting purchasing intention based on session-based user behavior and demographic data. By examining the "Online Shoppers Purchasing Intention" dataset available at the UCI Machine Learning Repository, this project aims to predict whether or not a user will make a purchase during a session. Using Python as the primary tool, the study employs data preprocessing, exploratory data analysis, feature selection, and machine learning algorithms like Logistic Regression, Random Forest, and Support Vector Machines. The performance of these algorithms is evaluated using accuracy, precision, recall, and F1-score. Preliminary results show that page value, bounce rate, and visit month have a significant influence on purchase likelihood. The results highlight the importance of behavioral data in predicting e-commerce outcomes. The results can be utilized to inform strategic planning in UX design, online marketing, and inventory management.

References

  1. H. GhorbanTanhaei, P. Boozary, S. Sheykhan, M. Rabiee, F. Rahmani, and I. Hosseini, "Predictive analytics in customer behavior: Anticipating trends and preferences," Results in Control and Optimization, vol. 17, p. 100462, 2024. https://doi.org/10.1016/j.rico.2024.100462
  2. S.-S. M. Ajibade, M. B. Jasser, D. O. Alebiosu, B. Issa, L. W. San, and G. S. ALDharhani, "A Comparative Analysis of Detection Methods for Phishing Websites Using Machine Learning," in 2025 IEEE International Conference on Automatic Control and Intelligent Systems (I2CACIS), 2025, vol. 1: IEEE, pp. 443-448. https://doi.org/10.1109/I2CACIS65476.2025.11100418
  3. P. Venkateswaran and S. Mm, "Predictive Analytics: Utilizing Machine Learning and Big Data for Forecasting Future Trends in Business and Consumer Behavior," in Strategic Brand Management in the Age of AI and Disruption: IGI Global Scientific Publishing, 2025, pp. 463-492. https://doi.org/10.4018/979-8-3693-9461-8.ch019
  4. H. S. Yen et al., "Evaluation of KNN-NMF Algorithm for Recommendation Systems in E-Commerce," in 2024 IEEE 12th Conference on Systems, Process & Control (ICSPC), 2024: IEEE, pp. 328-332. https://doi.org/10.1109/ICSPC63060.2024.10862917
  5. D. C. Gkikas and P. K. Theodoridis, "Predicting online shopping behavior: Using machine learning and google analytics to classify user engagement," Applied Sciences, vol. 14, no. 23, p. 11403, 2024. https://doi.org/10.3390/app142311403
  6. C. O. Sakar, S. O. Polat, M. Katircioglu, and Y. Kastro, "Real-time prediction of online shoppers’ purchasing intention using multilayer perceptron and LSTM recurrent neural networks," Neural Computing and Applications, vol. 31, no. 10, pp. 6893-6908, 2019. https://doi.org/10.1007/s00521-018-3523-0
  7. B. A. S. Emambocus et al., "A clustering algorithm employing salp swarm algorithm and K-means," in 2024 20th IEEE International Colloquium on Signal Processing & Its Applications (CSPA), 2024: IEEE, pp. 108-113. https://doi.org/10.1109/CSPA60979.2024.10525648
  8. S. Khaleelahmed et al., "Task scheduling algorithm using grey wolf optimization technique in cloud computing environment," Bulletin of Electrical Engineering and Informatics, vol. 14, no. 4, pp. 2762-2771, 2025. https://doi.org/10.11591/eei.v14i4.7695
  9. L. Qi, Y. Xie, Q. Zhang, J. Zhang, and Y. Ma, "Multi-feature fusion-based consumer perceived risk prediction and its interpretability study," PloS one, vol. 20, no. 1, p. e0316277, 2025. https://doi.org/10.1371/journal.pone.0316277
  10. O. Bellar, A. Baina, and M. Ballafkih, "Sentiment analysis: Predicting product reviews for E-commerce recommendations using deep learning and transformers," Mathematics, vol. 12, no. 15, p. 2403, 2024. https://doi.org/10.3390/math12152403
  11. E. S. El-Shaer, G. T. McKee, and A. Hamdy, "A Hybrid LSTM and Probabilistic Model for Modeling Repeat Purchase Behavior," in 2023 International Conference on Computer and Applications (ICCA), 2023: IEEE, pp. 1-6. https://doi.org/10.1109/ICCA59364.2023.10401585
  12. T. Sangsawang, "Predicting ad click-through rates in digital marketing with support vector machines," Journal of Digital Market and Digital Currency, vol. 1, no. 3, pp. 225-246, 2024. https://doi.org/10.47738/jdmdc.v1i3.20
  13. A. Sikder, M. J. Islam, and M. W. R. Miah, "Predicting Purchase Intentions in Bangladesh’s Youth Market: A Competent Analysis of Machine Learning and Deep Learning Models," in 2025 International Conference on Electrical, Computer and Communication Engineering (ECCE), 2025: IEEE, pp. 1-6. https://doi.org/10.1109/ECCE64574.2025.11013434
  14. R. Alamsyah and S. Wahyuni, "Using Random Forest and Support Vector Machine Algorithms to Predict Online Shopper Purchase Intention from E-Commerce Session Data," International Journal for Applied Information Management, vol. 4, no. 2, 2024. https://doi.org/10.47738/ijaim.v4i2.81
  15. C. Zhou, Q. Zhu, X. Zhang, and Y. Hou, "Customer Purchase Intention Prediction Based on Stacking Ensemble Learning," in 2025 IEEE 17th International Conference on Computer Research and Development (ICCRD), 2025: IEEE, pp. 36-41. https://doi.org/10.1109/ICCRD64588.2025.10963249
  16. M. S. Satu and S. F. Islam, "Modeling online customer purchase intention behavior applying different feature engineering and classification techniques," Discover Artificial Intelligence, vol. 3, no. 1, p. 36, 2023. https://doi.org/10.1007/s44163-023-00086-0
  17. M. Kulandaivel, R. Agarwal, and A. Singh, "Customer purchasing intention prediction using machine learning," in AIP Conference Proceedings, 2024, vol. 3075, no. 1: AIP Publishing LLC, p. 020234. https://doi.org/10.1063/5.0217545
  18. I. A. Khandokar, A. M. Islam, S. Islam, and S. Shatabda, "A gradient boosting classifier for purchase intention prediction of online shoppers," Heliyon, vol. 9, no. 4, 2023. https://doi.org/10.1016/j.heliyon.2023.e15163
  19. Q. Xiong, "Deep Learning in Predicting Consumer Purchase Intentions," in Proceedings of the 3rd International Conference on Signal Processing, Computer Networks and Communications, 2024, pp. 525-530. https://doi.org/10.1145/3712335.3712425
  20. S.-S. M. Ajibade et al., "A Text Mining Approach for Analyzing Consumer Sentiment and Behavior," in 2025 IEEE 8th International Conference on Electrical, Control and Computer Engineering (InECCE), 2025: IEEE, pp. 660-665. https://doi.org/10.1109/InECCE64959.2025.11150868
  21. L. W. San, S. S. M. Ajibade, M. B. Jasser, A. Ayodele, B. A. Ajayi, and M. A. Bassey, "A Literature Review of Machine Learning Techniques for Dance Recognition and Robotic Vision," in 2025 IEEE International Conference on Robotics and Technologies for Industrial Automation (ROBOTHIA), 2025: IEEE, pp. 1-6. https://doi.org/10.1109/ROBOTHIA63806.2025.10986414
  22. C. S. Ma, X. R. Du, J. Lou, and M.-Q. Wang, "A User Behavior Prediction Method for Web Applications Based on Deep Forest," Journal of Web Engineering, vol. 24, no. 1, pp. 39-56, 2025.