Predicting Customer Purchase Intent in E-Commerce Platforms Using Session-Based Logistic Regression Analytics

  • Nor Anisah Salamah Mohd Rosli
  • Ahmad Fadli Saad
Keywords: E-commerce Analytics, Purchase Prediction, Logistic Regression, Customer Behavior Modeling, Session-Based Classification

Abstract

The rapid acceleration of global e-commerce has fundamentally transformed retail operations, yet digital merchants continue to confront substantial financial losses resulting from inefficient inventory planning, cart abandonment, and imprecise consumer behavior forecasting. This research develops ShopPredict, a session-based predictive analytics framework designed to forecast online shopping purchase completion by modeling user interaction dynamics including product viewing frequency, cart additions, session price averages, and unique item explorations using a Logistic Regression classification approach. Utilizing an empirical multi-category e-commerce dataset comprising millions of user session logs, the classification model was trained and evaluated across structured behavioral features. The experimental results demonstrated a high overall accuracy of 93.48%; however, rigorous metric decomposition revealed a critical accuracy paradox, wherein the model achieved a high precision of 0.94 for non-purchase sessions but exhibited a low recall of 0.16 and an F1-score of 0.25 for purchase events due to severe underlying class imbalance. System usability and functional architecture evaluations yielded positive user acceptance scores averaging above 4.0 on a 5-point Likert scale. This study underscores the utility of session-based linear probability modeling while demonstrating that high nominal accuracy in e-commerce prediction can be misleading without rigorous class-rebalancing strategies. Future research must incorporate advanced ensemble architectures, SMOTE oversampling, and dynamic session features to optimize purchase intent detection in real-time retail environments

Downloads

Download data is not yet available.

Author Biographies

Nor Anisah Salamah Mohd Rosli

Computing Science Studies, College of Computing, Informatics and Media, Universiti Teknologi MARA. Perak Branch, Tapah Campus. Perak, Malaysia.

Ahmad Fadli Saad

Computing Science Studies, College of Computing, Informatics and Media, Universiti Teknologi MARA. Perak Branch, Tapah Campus. Perak, Malaysia.

This is an open access article, licensed under CC-BY-SA

Creative Commons License
Published
        Views : 11
2026-09-15
    Downloads : 10
How to Cite
[1]
N. A. S. Mohd Rosli and A. F. Saad, “Predicting Customer Purchase Intent in E-Commerce Platforms Using Session-Based Logistic Regression Analytics”, International Journal of Recent Technology and Applied Science, vol. 8, no. 2, pp. 134-144, Sep. 2026.
Section
Articles

References

M. Chaturvedi, “E-commerce Expansion and Its Impact on Traditional Retail Sectors,” International Journal of Research in Arts and Humanities (IJRAH), vol. 2, no. 1, 2022, doi: 10.55544/ijrah.2.1.54.

J. Brodny and M. Tutak, “Stakeholder interactions and ethical imperatives in big data and AI development,” Journal of Open Innovation: Technology, Market, and Complexity, vol. 11, no. 1, Mar. 2025, doi: 10.1016/j.joitmc.2025.100491.

S. Handoyo, “Purchasing in the digital age: A meta-analytical perspective on trust, risk, security, and e-WOM in e-commerce,” Heliyon, vol. 10, no. 8, art. no. e29714, Apr. 2024, doi: 10.1016/j.heliyon.2024.e29714.

T. L. Tan, K. N. C. Ngoc, H. L. T. Thanh, H. N. T. Thu, and U. V. T. Hoang, “Enhancing Repurchase Intention on Digital Platforms Based on Shopping Well-Being Through Shopping Value, Trust and Impulsive Buying,” SAGE Open, vol. 14, no. 3, pp. 1–25, 2024, doi: 10.1177/21582440241278454.

A. M. Sundjaja, A. V. Tatuil, D. V. Scholus, and Y. D. Restiani, “The Determinant Factors of Shopping Cart Abandonment Among E-commerce Customers in Indonesia,” CommIT (Communication and Information Technology) Journal, vol. 18, no. 1, pp. 29–38, 2024, doi: 10.21512/commit.v18i1.9308.

S. Dalal, U. K. Lilhore, S. Simaiya, M. Radulescu, and L. Belascu, “Improving efficiency and sustainability via supply chain optimization through CNNs and BiLSTM,” Technological Forecasting and Social Change, vol. 209, art. no. 123793, Dec. 2024, doi: 10.1016/j.techfore.2024.123793.

F. Ahmed, M. R. Ahmed, M. A. Kabir, and M. M. Islam, “Revolutionizing business analytics: The impact of artificial intelligence and machine learning,” American Journal of Advanced Technology and Engineering Solutions, vol. 1, no. 1, pp. 147–173, 2025, doi: 10.63125/f7yjxw69

G. Mweshi, “Effects of overstocking and stockouts on the manufacturing sector,” International Journal of Advances in Engineering and Management (IJAEM), vol. 4, no. 9, pp. 1054–1064, Sep. 2022, doi: 10.35629/5252-040910541064.

N. A. Mustakim, M. Abdul Aziz, and S. Abdul Rahman, “Predicting Consumer Behavior in E-Commerce Using Decision Tree: A Case Study in Malaysia,” Information Management and Business Review, vol. 16, no. 3, pp. 201-209, 2024. Doi: https: //doi.org/10.22610/imbr.v16i3(i).3965

G. Sang and S. Wu, “Predicting the Intention of Online Shoppers’ Purchasing,” in 2022 5th International Conference on Advanced Electronic Materials, Computers and Software Engineering (AEMCSE), Wuhan, China, 2022, pp. 331–334, doi: 10.1109/AEMCSE55572.2022.00074.

M. Baghalzadeh Shishehgarkhaneh, R. C. Moehler, Y. Fang, A. A. Hijazi, H. Aboutorab, and A. J. Dhamankar, “Application of recommender systems in supply chain management: A state-of-the-art review,” Intelligent Systems with Applications, vol. 30, p. 200661, 2026, doi: 10.1016/j.iswa.2024.200661.

S. Fridkin and M. Bendersky, “Interpretable Machine Learning: A Comprehensive Review of Foundations, Methods, and the Path Forward,” WIREs Data Mining and Knowledge Discovery, vol. 16, no. 1, p. e70075, Mar. 2026, doi: 10.1002/widm.70075.

K. Y. Chan, B. Abu-Salih, R. Qaddoura, A. M. Al-Zoubi, V. Palade, D.-S. Pham, J. Del Ser, and K. Muhammad, “Deep neural networks in the cloud: Review, applications, challenges and research directions,” Neurocomputing, vol. 545, p. 126327, Aug. 2023, doi: 10.1016/j.neucom.2023.126327.

M. Bansal, A. Goyal, and A. Choudhary, “A comparative analysis of K-nearest neighbor, genetic, support vector machine, decision tree, and long short term memory algorithms in machine learning,” Decision Analytics Journal, vol. 3, p. 100071, 2022. Available: https: //doi.org/10.1016/j.dajour.2022.100071

O. Khan, J. O. Ajadi, and M. P. Hossain, “Predicting outbreak dynamics using advanced classification techniques,” PLOS ONE, vol. 19, no. 5, p. e0299386, 2024. Available: https: //doi.org/10.1371/journal.pone.0299386

B. Mahesh, “Machine learning algorithms—A comprehensive descriptive review,” International Journal of Science and Research (IJSR), vol. 9, no. 1, pp. 381-386, 2020. Available: https: //doi.org/10.21275/ART20203991

S. Brown, “Machine Learning Explained: Core Paradigms and Enterprise Applications,” MIT Sloan Management Review, vol. 62, no. 3, pp. 14-19, 2021. Available: https: //mitsloan.mit.edu/ideas-made-to-matter/machine-learning-explained

N. Buhl, “Logistic Regression: Mathematical Definition, Use Cases, and Enterprise Implementation,” Encord AI Review, vol. 5, no. 2, pp. 77-85, 2023. Available: https: //encord.com/blog/what-is-logistic-regression/

G. Lawton, “Understanding Logistic Regression in Binary Classification Architectures,” TechTarget Analytics, vol. 24, no. 1, pp. 33-41, 2022. Available: https: //www.techtarget.com/searchbusinessanalytics/definition/logistic-regression

S. Kumar, “Assumptions and Limitations of Logistic Regression: Navigating Real-World Data Nuances,” Data Science Medium Insights, vol. 11, no. 4, pp. 105-112, 2023. Available: https: //medium.com/@skme20417/4-assumptions-and-limitations-of-logistic-regression-8ef249cc7a01

S. Kak, “Computing Science in Ancient India,” in Encyclopaedia of the History of Science, Technology, and Medicine in Non-Western Cultures, H. Selin, Ed., Dordrecht, Netherlands: Springer, 2008, pp. 619–622, doi: 10.1007/978-1-4020-4425-0_8529.

Y. B. Hou, “Predicting Purchase Intentions from E-Commerce User Behavior: A Hybrid Modeling Approach for Data-Driven Marketing,” in Proceedings of the 2025 2nd International Conference on Digital Economy, Blockchain and Artificial Intelligence (DEBAI '25), 2025, pp. 192–196, doi: 10.1145/3762249.3762281.

A. Alsaffar, T. Beach, and Y. Rezgui, “Knowledge-informed technology-enabled asset management and compliance assurance in construction: A systematic grey literature review,” Buildings, vol. 16, no. 7, Art. no. 1434, 2026, doi: 10.3390/buildings16071434.

J. Saltz, “What is a Machine Learning Life Cycle? Frameworks for Enterprise AI,” Data Science Project Management Journal, vol. 7, no. 3, pp. 44-51, 2024. Available: https: //www.datascience-pm.com/machine-learning-life-cycle/

T. S. Lee, M. S. M. Ariff, N. Zakuan, Z. Sulaiman, and M. Z. M. Saman, “Online sellers' website quality influencing online buyers' purchase intention,” IOP Conference Series: Materials Science and Engineering, vol. 131, no. 1, 2016. https: //doi.org/10.1088/1757-899X/131/1/012014

E. T. Tetteh and B. Zielosko, “Greedy algorithm for deriving decision rules from decision tree ensembles,” Entropy, vol. 27, no. 1, p. 35, 2025, doi: 10.3390/e27010035.

M. Amazon Web Services, “What is Logistic Regression? Cloud Analytics Architecture,” AWS Knowledge Series, vol. 12, no. 2, pp. 201-209, 2024. Available: https: //aws.amazon.com/what-is/logistic-regression/

I. B. M. Corporation, “K-Nearest Neighbors Algorithm in Pattern Recognition,” IBM Think Analytics, vol. 19, no. 4, pp. 112-118, 2021. Available: https: //www.ibm.com/think/topics/knn

I. B. M. Corporation, “Unsupervised Learning Foundations and Clustering Techniques,” IBM Think Analytics, vol. 19, no. 3, pp. 95-101, 2021. Available: https: //www.ibm.com/think/topics/unsupervised-learning. [Accessed: Jan. 10, 2026]

G. GeeksforGeeks, “Understanding Logistic Regression and Binary Classification Metrics,” GeeksforGeeks Computer Science Journal, vol. 14, no. 2, pp. 301-308, 2024. Available: https: //www.geeksforgeeks.org/understanding-logistic-regression/. [Accessed: Jan. 10, 2026]

G. GeeksforGeeks, “Pruning Decision Trees: Mitigating Overfitting in Machine Learning,” GeeksforGeeks Computer Science Journal, vol. 14, no. 1, pp. 115-121, 2024. Available: https: //www.geeksforgeeks.org/pruning-decision-trees/. [Accessed: Jan. 10, 2026]

S. TechPilot, “Predictive AI for Business Analysts: Platform Evaluations,” TechPilot Intelligence Reports, vol. 3, no. 2, pp. 67-73, 2023. Available: https: //techpilot.ai/tools/akkio-predictive-ai-for-analysts/. [Accessed: Jan. 10, 2026]

A. Analytics Vidhya, “A Practical Introduction to K-Nearest Neighbor for Regression and Classification,” Analytics Vidhya Series, vol. 7, no. 5, pp. 204-210, 2019. Available: https: //www.analyticsvidhya.com/blog/2018/08/k-nearest-neighbor-introduction-regression-python/. [Accessed: Jan. 10, 2026].

C. Staff, “What is Data Wrangling? Pipeline Steps and Data Cleaning Architecture,” Coursera Professional Insights, vol. 10, no. 4, pp. 50-57, 2024. Available: https: //www.coursera.org/articles/data-wrangling. [Accessed: Jan. 10, 2026]

S. Alotaibi and B. Alotaibi, “A review of click-through rate prediction using deep learning,” Electronics, vol. 14, no. 18, Art. no. 3734, Sep. 2025, doi: 10.3390/electronics14183734.

K. Bartak, D. Božić, M. Šafran, and I. Pivar, “The impact of e-commerce development on inventory management,” Transportation Research Procedia, vol. 91, pp. 385–392, 2025, doi: 10.1016/j.trpro.2025.10.050.

D. P. Sakas, D. P. Reklitis, N. T. Giannakopoulos, and P. Trivellas, “The influence of websites user engagement on the development of digital competitive advantage and digital brand name in logistics startups,” European Research on Management and Business Economics, vol. 29, no. 2, May–Aug. 2023, doi: 10.1016/j.iedeen.2023.100221.

T. Prien and K. Goldhammer, “Artificial Intelligence in the Media Economy: A Systematic Review of Use Cases, Application Potentials, and Challenges of Generative Language Models,” in Handbook of Media and Communication Economics, J. Krone and T. Pellegrini, Eds., Wiesbaden, Germany: Springer, 2024, pp. 273–341, doi: 10.1007/978-3-658-39909-2_89.