Behavioral Session Segmentation and Leakage-Safe Purchase-Intent Modeling: A Methodological Framework
DOI:
https://doi.org/10.57159/jcmm.5.5.261319Keywords:
Behavioral Session Segmentation, Purchase-Intent Modeling, Mixture of Experts, Out-of-Fold Stacking, LightGBM, E-Commerce AnalyticsAbstract
Background: E-commerce clickstream records can be used to describe browsing patterns and to develop session-level purchase-intent classifiers, but conclusions about predictive effectiveness require estimates obtained on observations excluded from every training step.
Objectives: This methodological study specifies a sequential Hybrid Hierarchical Machine Learning (HH-ML) framework for behavioral session segmentation and cross-fitted purchase-intent modeling.
Methods: The reference dataset is the UCI Online Shoppers Purchasing Intention benchmark, with 12,330 distinct sessions, 17 predictors, and a binary Revenue outcome; 1,908 sessions (15.47%) are purchase-positive. The descriptive segmentation analysis compares standardized engagement-feature K-Means with K-Means on a four-dimensional deep-autoencoder embedding. The proposed predictive design combines a global LightGBM classifier, eligible segment-specific experts, and a logistic second-level model fitted from strictly inner-fold out-of-fold probabilities. The specification defines nested representation fitting, numerical expert-support rules, fixed training budgets, a decision threshold, matched ablations, probabilistic scores, cluster-stability analyses, and paired statistical inference.
Results: Previously documented, full-data clustering summaries are separated from any test-fold evidence: reported best silhouettes are 0.494 at three clusters for classical K-Means and 0.658 at two clusters for the embedding approach, a contrast confounded by different cluster counts. The available empirical evidence supports only descriptive session profiles; no comparative purchase-intent performance or calibration result is established by those profiles.
Conclusions: This article characterizes a reproducible evaluation framework rather than claiming demonstrated predictive superiority or deployment readiness.
References
[1] 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.
[2] C. Sakar and Y. Kastro, "Online shoppers purchasing intention dataset." UCI Machine Learning Repository, Dataset 468, 2018. https://doi.org/10.24432/C5F88Q.
[3] S. Kim, W. Shin, and H.-W. Kim, "Predicting online customer purchase: The integration of customer characteristics and browsing patterns," Decision Support Systems, vol. 177, p. 114105, 2024.
[4] T. Chen and C. Guestrin, "XGBoost: A scalable tree boosting system," in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 785–794, 2016.
[5] G. Ke, Q. Meng, T. Finley, T. Wang, W. Chen, W. Ma, Q. Ye, and T.-Y. Liu, "LightGBM: A highly efficient gradient boosting decision tree," in Advances in Neural Information Processing Systems, vol. 30, pp. 3146–3154, 2017.
[6] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, "Adaptive mixtures of local experts," Neural Computation, vol. 3, no. 1, pp. 79–87, 1991.
[7] D. H. Wolpert, "Stacked generalization," Neural Networks, vol. 5, no. 2, pp. 241–259, 1992.
[8] W. Gan, Z. Ning, Z. Qi, and P. S. Yu, "Mixture of experts (MoE): A big data perspective," Information Fusion, vol. 127, p. 103664, 2026.
[9] P. Anitha and M. M. Patil, "RFM model for customer purchase behavior using K-Means algorithm," Journal of King Saud University - Computer and Information Sciences, vol. 34, no. 5, pp. 1785–1792, 2022.
[10] A. J. Christy, A. Umamakeswari, L. Priyatharsini, and A. Neyaa, "RFM ranking: An effective approach to customer segmentation," Journal of King Saud University - Computer and Information Sciences, vol. 33, no. 10, pp. 1251–1257, 2021.
[11] H. Abbasimehr and A. Bahrini, "An analytical framework based on the recency, frequency, and monetary model and time series clustering techniques for dynamic segmentation," Expert Systems with Applications, vol. 192, p. 116373, 2022.
[12] A. Ashraf, C. A. Rayed, N. A. Awad, and H. M. Sabry, "A framework for customer segmentation to improve marketing strategies using machine learning," Procedia Computer Science, vol. 260, pp. 616–625, 2025.
Downloads
Published
How to Cite
Issue
Section
Categories
License
Copyright (c) 2026 The Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Articles published in the Journal of Computers, Mechanical and Management are licensed under a CC BY-NC 4.0 license. Authors retain copyright of their work and grant the journal a non-exclusive license to publish, distribute, and archive the article. Full terms are on the Copyright and Licensing page.