Journals / InTraders Uluslararası Ticaret Akademik Dergisi / 2026 / Volume: 9 Issue: Special Issue Special Issue

Explainable Machine Learning-Based Online Purchase Intention Prediction under Class Imbalance

Erol Özçekiç(BALIKESİR ÜNİVERSİTESİ, BALIKESİR MESLEK YÜKSEKOKULU)0000-0002-1896-6853
Pages
—
Publication Date
2026-10-28
🏛️Bibliographic metadata and full text access for this article are provided via DergiPark.
DergiPark Record ↗
✨

AI Summary & Key Takeaways

AI Insight
⚡ TL;DR(Too Long; Didn't Read)

The proposed framework integrates predictive modeling with post-hoc interpretability, offering actionable insights for e-commerce conversion optimization and data-driven marketing strategy development, and addresses the identified methodological gap by jointly handling class imbalance and interpretability within a single evaluation pipeline.

📌 3 Key Takeaways

🎯
Objective & Hypothesis:The combined challenge of class imbalance and model interpretability remains largely unaddressed in the online purchase intention literature, representing a significant methodological gap that this study aims to fill by developing an explainable machine learning framework for predicting online shopping behavior under severe class imbalance conditions.
📊
Key Findings & Data:The Online Shoppers Purchasing Intention Dataset, comprising 12,330 user sessions with 17 behavioral features, was used with purchase completion as the binary target variable, and four models, namely Logistic Regression (LR), AdaBoost (AB), Random Forest (RF), and CatBoost (CB), were developed and optimized using grid search with stratified cross-validation; given the severe class imbalance in the dataset, a comprehensive set of metrics, including ROC-AUC, balanced accuracy, precision, recall, and F1-score, were computed to ensure robust evaluation.
💡
Conclusion & Impact:The proposed framework integrates predictive modeling with post-hoc interpretability, offering actionable insights for e-commerce conversion optimization and data-driven marketing strategy development, and addresses the identified methodological gap by jointly handling class imbalance and interpretability within a single evaluation pipeline.
🔬Design:Modeling & Simulation
📍Scope:Comprehensive Sample
⚙️Variables:Online purchase intention · machine learning · class imbalance

Abstract

The combined challenge of class imbalance and model interpretability remains largely unaddressed in the online purchase intention literature, representing a significant methodological gap that this study aims to fill by developing an explainable machine learning framework for predicting online shopping behavior under severe class imbalance conditions. The Online Shoppers Purchasing Intention Dataset, comprising 12,330 user sessions with 17 behavioral features, was used with purchase completion as the binary target variable, and four models, namely Logistic Regression (LR), AdaBoost (AB), Random Forest (RF), and CatBoost (CB), were developed and optimized using grid search with stratified cross-validation; given the severe class imbalance in the dataset, a comprehensive set of metrics, including ROC-AUC, balanced accuracy, precision, recall, and F1-score, were computed to ensure robust evaluation. CatBoost outperformed all other models, achieving a ROC-AUC of 0.9256 and an F1-score of 0.6450, and SHAP-based interpretability analysis identified page values, seasonality, and exit rates as the dominant behavioral predictors of purchase intention. The proposed framework integrates predictive modeling with post-hoc interpretability, offering actionable insights for e-commerce conversion optimization and data-driven marketing strategy development, and addresses the identified methodological gap by jointly handling class imbalance and interpretability within a single evaluation pipeline.

🔖

Cite This Article

Özçekiç, E. (2026). Explainable Machine Learning-Based Online Purchase Intention Prediction under Class Imbalance. InTraders Uluslararası Ticaret Akademik Dergisi, Volume: 9 Issue: Special Issue Special Issue. https://doi.org/10.55065/intraders.1964752

📄 Full Text PDF Viewer

📄

PDF görüntüleyici hazırlanıyor...

References (47)

  1. Abdullah-All-Tanvir, Khandokar, I. A., Islam, A. K. M. M., Islam, S., & Shatabda, S. (2023). A gradient boosting classifier for purchase intention prediction of online shoppers. Heliyon, 9(4), e15163. https://doi.org/10.1016/j.heliyon.2023.e15163
  2. Alamuri, O. R. S. G., & Bondalapu, C. K. (2026). Predicting e-commerce purchase intention using machine learning. ASEAN Journal of Science and Technology Reports, 29(1), e260159. https://doi.org/10.55164/ajstr.v29i1.260159
  3. Ali, C. S. M., & Zeebaree, S. R. M. (2025). Personalization in digital marketing: Leveraging machine learning for e-commerce. Asian Journal of Research in Computer Science, 18(3), 105-129. https://doi.org/10.9734/ajrcos/2025/v18i3582
  4. Al-Otaibi, Y. D. (2024). Enhancing e-commerce strategies: A deep learning framework for customer behavior prediction. Engineering, Technology & Applied Science Research, 14(4), 15656-15664. https://doi.org/10.48084/etasr.7945
  5. Balyemah, A. J., Weamie, S. J. Y., Bin, J., Jarnda, K. V., & Joshua, F. J. (2024). Predicting purchasing behavior on e-commerce platforms: A regression model approach for understanding user features that lead to purchasing. International Journal of Communications, Network and System Sciences, 17, 81-103. https://doi.org/10.4236/ijcns.2024.176006
  6. Bauer, J., & Jannach, D. (2021). Improved customer lifetime value prediction with sequence-to-sequence learning and feature-based models. ACM Transactions on Knowledge Discovery from Data, 15(5), Article 80. https://doi.org/10.1145/3441444
  7. Buddula, D. V. K. R., Patchipulusu, H. H. S., Vattikonda, N., Polu, A. R., Narra, B., & Gupta, A. K. (2023). Predictive analytics in e-commerce: Effective business analysis through machine learning. JOETSR - Journal of Emerging Trends in Scientific Research, 1(1), 41-49. https://doi.org/10.5281/zenodo.15209435
  8. Chamberlain, B. P., Cardoso, Â., Liu, C. H. B., Pagliari, R., & Deisenroth, M. P. (2017). Customer lifetime value prediction using embeddings. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '17) (pp. 1753–1762). ACM. https://doi.org/10.1145/3097983.3098123
  9. Chaudhuri, N., Gupta, G., Vamsi, V., & Bose, I. (2021). On the platform but will they buy? Predicting customers' purchase behavior using deep learning. Decision Support Systems, 149, 113622. https://doi.org/10.1016/j.dss.2021.113622
  10. Ebrahimi, P., Basirat, M., Yousefi, A., Nekmahmud, M., Gholampour, A., & Fekete-Farkas, M. (2022). Social networks marketing and consumer purchase behavior: The combination of SEM and unsupervised machine learning approaches. Big Data and Cognitive Computing, 6(2), 35. https://doi.org/10.3390/bdcc6020035
  11. Gadgil, K., Gill, S. S., & Abdelmoniem, A. M. (2023). A meta-learning based stacked regression approach for customer lifetime value prediction. Journal of Economy and Technology, 1, 197-207. https://doi.org/10.1016/j.ject.2023.09.001
  12. Gopakumar, A., Shine, A., Ajim, A., & T, A. (2024). Consumer behaviour analysis for customer segmentation and purchase prediction. In 2024 10th International Conference on Advanced Computing and Communication Systems (ICACCS) (pp. 1127–1131). IEEE. https://doi.org/10.1109/ICACCS60874.2024.10717226
  13. Hesvindrati, N., Aminuddin, A., Mahadhni, J., Pambudi, A., & Sudaryatno, B. (2025). Behavior-based purchase intent prediction in e-commerce: A machine learning approach. International Journal of Current Science Research and Review, 8(8), 3970-3980. https://doi.org/10.5281/zenodo.16734788
  14. Hussein, R. M., Khaw, K. W., Gaber, A., & Chew, X. Y. (2024). Examining the behaviors and preferences of online shopping customers using clustering techniques. Journal of Soft Computing and Data Mining, 5(1), 104-121. https://doi.org/10.30880/jscdm.2024.05.01.009
  15. Islam, M. R., Hossain, M., Alam, M., Khan, M. M., Rabbi, M. M. K., Rabby, M. F., Bishnu, K. K., Das, B. C., & Tarafder, M. T. R. (2025). Leveraging machine learning for insights and predictions in synthetic e-commerce data in the USA: A comprehensive analysis. Journal of Ecohumanism, 4(2), 2394-2420. https://doi.org/10.62754/joe.v4i2.6635
  16. Jain, A. M. (2025). Predicting e-commerce purchase behavior using a DQN-inspired deep learning model for enhanced adaptability. International Journal of Intelligent Systems and Applications in Engineering, 13(1s), 45-56. https://doi.org/10.17762/ijisae.v13i1s.7419
  17. Jasek, P., Vrana, L., Sperkova, L., Smutny, Z., & Kobulsky, M. (2018). Modeling and application of customer lifetime value in online retail. Informatics, 5(1), 2. https://doi.org/10.3390/informatics5010002
  18. Jasek, P., Vrana, L., Sperkova, L., Smutny, Z., & Kobulsky, M. (2019). Comparative analysis of selected probabilistic customer lifetime value models in online shopping. Journal of Business Economics and Management, 20(3), 398-423. https://doi.org/10.3846/jbem.2019.9597
  19. Kasem, M. S., Hamada, M., & Taj-Eddin, I. (2024). Customer profiling, segmentation, and sales prediction using AI in direct marketing. Neural Computing and Applications, 36, 4995-5005. https://doi.org/10.1007/s00521-023-09339-6
  20. Kim, M., & Hwang, K.-B. (2022). An empirical evaluation of sampling methods for the classification of imbalanced data. PLoS ONE, 17(7), e0271260. https://doi.org/10.1371/journal.pone.0271260
  21. Kvíčala, D., Králová, M., & Suchánek, P. (2026). The impact of online purchase behaviour on customer lifetime value. Journal of Marketing Analytics, 14, 120-137. https://doi.org/10.1057/s41270-024-00328-9
  22. Lin, J. (2025). Application of machine learning in predicting consumer behavior and precision marketing. PLoS ONE, 20(5), e0321854. https://doi.org/10.1371/journal.pone.0321854
  23. Liu, D., Huang, H., Zhang, H., Luo, X., & Fan, Z. (2024). Enhancing customer behavior prediction in e-commerce: A comparative analysis of machine learning and deep learning models. Applied and Computational Engineering, 55, 181–195. https://doi.org/10.54254/2755-2721/55/20241475
  24. Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems, 30. https://doi.org/10.48550/arXiv.1705.07874
  25. Musunuri, A. (2023). Leveraging AI and deep learning for e-commerce customer segmentation. International Journal of Innovative Research in Science, Engineering and Technology, 12(6), 9081–9096. https://doi.org/10.15680/IJIRSET.2023.1206165
  26. Norouzi, V. (2024). Predicting e-commerce CLV with neural networks: The role of NPS, ATV, and CES. Journal of Economy and Technology, 2, 174-189. https://doi.org/10.1016/j.ject.2024.04.004
  27. Prasad, A. K., Kumar, D. M., Macedo, V. D. J., Mohan, B. R., & Prasad, N. A. (2023). Machine learning approach for prediction of the online user intention for a product purchase. International Journal on Recent and Innovation Trends in Computing and Communication, 11(1s), 43-51. https://doi.org/10.17762/ijritcc.v11i1s.5992
  28. Ridwan, I. B. (2025). Transforming customer segmentation with unsupervised learning models and behavioral data in digital commerce. International Journal of Research Publication and Reviews, 6(5), 2232-2249. https://doi.org/10.55248/gengpi.6.0525.1652
  29. Roychowdhury, S., Alareqi, E., & Li, W. (2021). OPAM: Online purchasing-behavior analysis using machine learning. In 2021 International Joint Conference on Neural Networks (IJCNN) (pp. 1–8). IEEE. https://doi.org/10.1109/IJCNN52387.2021.9533658
  30. Sakar, C., & Kastro, Y. (2018). Online Shoppers Purchasing Intention Dataset [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5F88Q
  31. Sakar, C. O., Polat, S. O., Katircioglu, M., & Kastro, Y. (2019). Real-time prediction of online shoppers' purchasing intention using multilayer perceptron and LSTM recurrent neural networks. Neural Computing and Applications, 31(10), 6893–6908. https://doi.org/10.1007/s00521-018-3523-0
  32. Salehi, A., & Khedmati, M. (2025). Hybrid clustering strategies for effective oversampling and undersampling in multiclass classification. Scientific Reports, 15, 3460. https://doi.org/10.1038/s41598-024-84786-2
  33. Sarkar, M., Ayon, E. H., Mia, M. T., Ray, R. K., Chowdhury, M. S., Ghosh, B. P., Al-Imran, M., Islam, M. T., Tayaba, M., & Puja, A. R. (2023). Optimizing e-commerce profits: A comprehensive machine learning framework for dynamic pricing and predicting online purchases. Journal of Computer Science and Technology Studies, 5(4), 186-193. https://doi.org/10.32996/jcsts.2023.5.4.19
  34. Satu, M. S., & Islam, S. F. (2023). Modeling online customer purchase intention behavior applying different feature engineering and classification techniques. Discover Artificial Intelligence, 3, 36. https://doi.org/10.1007/s44163-023-00086-0
  35. Saxena, A., Agarwal, A., Pandey, B. K., & Pandey, D. (2024). Examination of the criticality of customer segmentation using unsupervised learning methods. Circular Economy and Sustainability, 4, 1447-1460. https://doi.org/10.1007/s43615-023-00336-4
  36. Shen, B. (2021). E-commerce customer segmentation via unsupervised machine learning. In The 2nd International Conference on Computing and Data Science (pp. 1-7). ACM. https://doi.org/10.1145/3448734.3450775
  37. Shi, X. (2021). The application of machine learning in online purchasing intention prediction. In Proceedings of the 6th International Conference on Big Data and Computing (ICBDC 2021) (pp. 21-29). ACM. https://doi.org/10.1145/3469968.3469972
  38. Tabianan, K., Velu, S., & Ravi, V. (2022). K-means clustering approach for intelligent customer segmentation using customer purchase behavior data. Sustainability, 14(12), 7243. https://doi.org/10.3390/su14127243
  39. Tokuç, A. A., & Dag, T. (2025). Predicting user purchases from clickstream data: A comparative analysis of clickstream data representations and machine learning models. IEEE Access, 13, 43796-43817. https://doi.org/10.1109/ACCESS.2025.3548267
  40. Trivedi, S. K., Patra, P., Srivastava, P. R., Zhang, J. Z., & Zheng, L. J. (2024). What prompts consumers to purchase online? A machine learning approach. Electronic Commerce Research, 24, 2953-2989. https://doi.org/10.1007/s10660-022-09624-x
  41. Turkmen, B. (2023). Customer segmentation with machine learning for online retail industry. The European Journal of Social & Behavioural Sciences, 31(2), 111-136. https://doi.org/10.15405/ejsbs.316
  42. Wen, Z., Lin, W., & Liu, H. (2023). Machine-learning-based approach for anonymous online customer purchase intentions using clickstream data. Systems, 11(5), 255. https://doi.org/10.3390/systems11050255
  43. Yang, Y. (2025). E-commerce customer segmentation using machine learning. Advances in Economics, Management and Political Sciences, 240, 101-108. https://doi.org/10.54254/2754-1169/2025.BL29390
  44. Yeo, J., Hwang, S.-W., Kim, S., Koh, E., & Lipka, N. (2020). Conversion prediction from clickstream: Modeling market prediction and customer predictability. IEEE Transactions on Knowledge and Data Engineering, 32(2), 246-259. https://doi.org/10.1109/TKDE.2018.2884467
  45. Yu, Y. J., Tan, R. P., Kenneth, W., Lim, S. M., & Hew, K. E. (2025). Optimizing online retail: Uncovering opportunities with unsupervised learning techniques. JOIV: International Journal on Informatics Visualization, 9(5), 2220-2230. https://doi.org/10.62527/joiv.9.5.3082
  46. Zhang, X., Guo, F., Chen, T., Pan, L., Beliakov, G., & Wu, J. (2023). A brief survey of machine learning and deep learning techniques for e-commerce research. Journal of Theoretical and Applied Electronic Commerce Research, 18(4), 2188-2216. https://doi.org/10.3390/jtaer18040110
  47. Zhou, S., & Hudin, N. S. (2024). Advancing e-commerce user purchase prediction: Integration of time-series attention with event-based timestamp encoding and graph neural network-enhanced user profiling. PLoS ONE, 19(4), e0299087. https://doi.org/10.1371/journal.pone.0299087