Abstract
E-commerce platforms generate continuous clickstream data from product views, searches, cart additions, checkout attempts, payment redirects, session duration, and user-device interactions. These behavioral streams change rapidly during promotions, seasonal sales, recommendation updates, and traffic campaigns, making anomaly detection difficult for static clustering methods. This study proposes a habituation-controlled behavioral clustering method for real-time anomaly detection in e-commerce clickstream data. The method constructs evolving behavior clusters for normal user sessions and introduces a habituation-control factor to prevent repeated suspicious behaviors, such as bot browsing and abnormal checkout attempts, from being absorbed too quickly into normal clusters. A session-transition scoring module is further designed to measure deviations in browsing paths, cart behavior, device switching, and payment-entry frequency. Experiments are conducted on an e-commerce clickstream dataset containing 38.6 million user sessions, 412 million page-event records, 1.9 million product identifiers, and 86 behavioral indicators collected over 72 days. The dataset includes 2,740 annotated abnormal episodes, including bot-driven page traversal, abnormal cart stuffing, coupon abuse, repeated checkout failure, and coordinated traffic bursts. The proposed method reduces median detection delay from 13.6 minutes to 4.1 minutes compared with a conventional streaming k-means baseline. False alerts are controlled at 3.2 investigation cases per million sessions. The system processes 92,000 page events per second and maintains 8,460 active behavioral clusters during peak traffic. Cluster displacement remains below 0.22 normalized units during normal promotion-period traffic shifts. The results show that habituation-controlled clustering can improve real-time anomaly detection in high-volume, non-stationary clickstream data.
References
1. Chen, X., Xiao, H., Zeng, Z., Zhang, S., & Xiao, R. (2025). Fine-Grained Multivariate Time Series Anomaly Detection via Causal Inference. Knowledge-Based Systems, 114765.
2. Yang, J. (2026). Stage‐Coupled Computational Framework for Stratified Accessibility and Equity Analysis in Community‐Based Elderly Care Services.
3. Chandrasekhar, K., Das, S., Gupta, N., & Jena, S. K. (2024). Comparative analysis of impulse buying behaviour across retail channels: a study of physical stores, e-commerce websites and mobile shopping apps. Economic Affairs, 69(2), 1109-1120.
4. Zhang, Z. (2026). A Study on the Identification of Manipulative Design in Subscription and Payment Interfaces of Digital Consumer Platforms and Its Behavioral Effects. Available at SSRN 6734760.
5. Qi, C., & Qiao, X. (2026). Using AI to Monitor AI: Automated Operations Through Log-Driven Intelligence. Available at SSRN 6795840.
6. Purnomo, Y. J. (2023). Digital marketing strategy to increase sales conversion on e-commerce platforms. Journal of Contemporary Administration and Management (ADMAN), 1(2), 54-62.
7. Thiyagarajan, G. (2025, March). Temporal Dynamics of Consumer Engagement in E-Commerce. In 2025 International Conference on Computing for Sustainability and Intelligent Future (COMP-SIF) (pp. 1-6). IEEE.
8. Su, D., & Dong, Y. (2026). Classroom-Based Assessment with Bayesian Learning Analytics for Instructional Decision-Making in ASD Inclusive Education.
9. Ma, Y. (2026). Industrial Financial Risk Prediction Model Based on Graph Neural Network and Knowledge Graph Inference. Journal of Circuits, Systems and Computers, 35(16), 2650103.
10. SAMUEL, A. (2023). Enhancing financial fraud detection with AI and cloud-based big data analytics: Security implications. Available at SSRN 5273292.
11. Gao, G., Gao, R., Lu, C., Gao, R., & Kuang, Y. (2026, March). Security Governance Methods and Quantitative Evaluation for Enterprise SMS and Verification Code Systems. In 2026 International Conference on Generative Artificial Intelligence and Information Security (GAIIS) (pp. 455-458). IEEE.
12. Zhang, Z., Gao, Y., & Tong, Y. (2026). Semantic-Temporal Graph Learning for Demand Forecasting and Resource Allocation in Public Information Systems. Available at SSRN 6792279.
13. Zamanzadeh Darban, Z., Webb, G. I., Pan, S., Aggarwal, C., & Salehi, M. (2024). Deep learning for time series anomaly detection: A survey. ACM Computing Surveys, 57(1), 1-42.
14. Li, Y., & Liu, S. (2026, May). A Study on Dynamic Optimization of Alerting Policies and Multi-Agent Decision-Making Mechanisms in Cloud Environments. In 2026 7th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT) (pp. 703-706). IEEE.
15. Xu, T., Zhang, J., & Zhu, W. (2026). Reproducible Modeling Pipelines and Cross-Window Stability in Subprime Auto Loan Credit Risk Assessment. Available at SSRN 6893861.
16. El-Hajj, M., & Zeineddine, M. A. J. (2026). Advanced behavioral malware detection: a comprehensive MLOps framework with federated learning and real-time drift detection. Frontiers in Artificial Intelligence, 9, 1811692.
17. Gui, H., Wang, B., Lu, Y., & Fu, Y. (2025). Computational Modeling-Based Estimation of Residual Stress and Fatigue Life of Medical Welded Structures.
18. Koistinen, K., Hellsten, K., Herttuainen, J., & Kaski, K. K. (2026). Spatio-Temporal Attention Graph Neural Network: Explaining causalities with Attention. IEEE Access.
19. Chen, H., Ning, P., Li, J., & Mao, Y. (2025). Energy Consumption Analysis and Optimization of Speech Algorithms for Intelligent Terminals.
20. Liang, R., Ye, Z., Liang, Y., & Li, S. (2025). Deep Learning-Based Player Behavior Modeling and Game Interaction System Optimization Research.
21. Kilincdemir, E. C., & Celiktas, B. (2025). Analyst-Aware Incident Assignment in Security Operations Centers: A Multi-Factor Prioritization and Optimization Framework. Black Sea Journal of Engineering and Science, 8(4), 1160-1180.
22. Lopez-Lopez, D., Plaza-Navas, M. A., Torres-Pruñonosa, J., & Martinez, L. F. (2025). Navigating the landscape of e-commerce: thematic clusters, intellectual turning points, and burst patterns in online reputation management. Electronic Commerce Research, 25(1), 1-38.
23. Yang, M., Wu, J., Tong, L., & Shi, J. (2025). Design of Advertisement Creative Optimization and Performance Enhancement System Based on Multimodal Deep Learning.
24. Yin, J., Huang, Y., & Rao, H. (2026). A Study on User Behavior Signal-Driven Predictive Models for Digital Platform Consumption Trends. Available at SSRN 6607298.
25. Paparrizos, J., Li, H., Yang, F., Wu, K., d'Hondt, J. E., & Papapetrou, O. (2024). A survey on time-series distance measures. arXiv preprint arXiv:2412.20574.
26. Xu, T., Zhu, W., & Zhang, J. (2026). Stability and Consistency of Explainable Deep Learning Methods in Credit Risk Assessment. Available at SSRN 6893938.
27. Anaya, E. D. (2025). From Process to Outcome: Bridging Gaze, Behavior, and Performance for Evidence-Informed Literacy Education (Doctoral dissertation, Vanderbilt University).
28. Zhou, Y., & Long, L. (2026). Causal Effect Evaluation of Personalized Reminder Strategies on Government Welfare Program Enrollment: A Propensity Score Matching Approach. Journal of Computing Innovations and Applications, 4(1), 106-116.
29. Ariyaluran Habeeb, R. A., Nasaruddin, F., Gani, A., Amanullah, M. A., Abaker Targio Hashem, I., Ahmed, E., & Imran, M. (2022). Clustering‐based real‐time anomaly detection—A breakthrough in big data technologies. Transactions on Emerging Telecommunications Technologies, 33(8), e3647.
30. Pei, Z., Huang, Q., & Wang, S. (2026). When LLMs Develop Languages: Symbolic Communication for Efficient Multi-Agent Reasoning. arXiv preprint arXiv:2606.29354.

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Copyright (c) 2026 Li Wei, Tan Ming, Chen Jiahao (Author)
