Big data analytics (BDA) has emerged as a transformative tool for decoding complex consumer behaviour patterns in digital marketplaces. However, its application within the context of emerging African economies, particularly Kenya, remains underexplored despite the rapid expansion of mobile-enabled e-commerce platforms. This study investigated the efficacy of BDA techniques in predicting customer purchase behaviour across Kenyan e-commerce platforms, combining a structured survey of 400 registered online shoppers with transaction log data extracted from three major platforms: Jumia Kenya, Kilimall, and Masoko. Five machine learning algorithms (Logistic Regression, Decision Tree, Random Forest, XGBoost, and Long Short-Term Memory, LSTM) were trained and evaluated using stratified 10-fold cross-validation and a held-out test partition, with a Hybrid Random Forest + XGBoost ensemble achieving the highest test-set classification accuracy of 93.1% (95% CI [83.8%, 97.2%]; F1-score = 92.8%). Key predictors identified through SHAP-based feature importance analysis included purchase frequency, session duration, cart abandonment rate, and M-Pesa transaction size, reflecting the mobile-payment-centric nature of Kenyan consumer behaviour. Platform-level analysis revealed that M-Pesa facilitated over 70% of transactions, and sentiment analysis of customer reviews yielded a positive polarity rate of 62.3% (95% CI [59.5%, 65.0%]). The findings demonstrate that culturally and infrastructurally contextualised BDA models can achieve accuracy levels competitive with those reported in technologically mature markets and provide actionable insights for platform optimisation, personalised recommendation delivery, and customer retention strategy in sub-Saharan digital markets.
Lutfi, A.; Alrawad, M.; Alsyouf, A.; Almaiah, M. A.; Al-Khasawneh, A.; Al-Khasawneh, A. L.; Alshira'h, A. F.; Alshirah, M. H.; Saad, M.; Ibrahim, N. (2023). Drivers and impact of big data analytic adoption in the retail industry: A quantitative investigation applying structural equation modeling. Journal of Retailing and Consumer Services, 70, 103129. https://doi.org/10.1016/j.jretconser.2022.103129.
Dekimpe, M. G. (2020). Retailing and retailing research in the age of big data analytics. International Journal of Research in Marketing, 37, 3–14. https://doi.org/10.1016/j.ijresmar.2019.09.001.
Van Hove, L.; Dubus, A. (2019). M-PESA and financial inclusion in Kenya: Of paying comes saving? Sustainability, 11, 568. https://doi.org/10.3390/su11030568.
Wu, X.; Wu, Z. (2023). Application of big data search based on collaborative filtering algorithm in cross-border e-commerce product recommendation. Soft Computing, 27, 11567–11578. https://doi.org/10.1007/s00500-023-08643-6.
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, 2188–2216. https://doi.org/10.3390/jtaer18040110.
Policarpo, L. M.; da Silveira, D. E.; Righi, R. D. R.; Stoffel, R. A.; da Costa, C. A.; Barbosa, J. L. V.; Scorsatto, R.; Arcot, T. (2021). Machine learning through the lens of e-commerce initiatives: An up-to-date systematic literature review. Computer Science Review, 41, 100414. https://doi.org/10.1016/j.cosrev.2021.100414.
Oesterreich, T. D.; Anton, E.; Teuteberg, F.; Dwivedi, Y. K. (2022). The role of the social and technical factors in creating business value from big data analytics: A meta-analysis. Journal of Business Research, 153, 128–149. https://doi.org/10.1016/j.jbusres.2022.08.012.
Roy, D.; Dutta, M. (2022). A systematic review and research perspective on recommender systems. Journal of Big Data, 9, 59. https://doi.org/10.1186/s40537-022-00592-5.
Biswas, P. K.; Liu, S. (2022). A hybrid recommender system for recommending smartphones to prospective customers. Expert Systems with Applications, 208, 118058. https://doi.org/10.1016/j.eswa.2022.118058.
Youssef, M. A. E.-A.; Eid, R.; Agag, G. (2022). Cross-national differences in big data analytics adoption in the retail industry. Journal of Retailing and Consumer Services, 64, 102827. https://doi.org/10.1016/j.jretconser.2021.102827.
Sundararaj, V.; Rejeesh, M. R. (2021). A detailed behavioral analysis on consumer and customer changing behavior concerning social networking sites. Journal of Retailing and Consumer Services, 58, 102190. https://doi.org/10.1016/j.jretconser.2020.102190.
Soava, G.; Mehedintu, A.; Sterpu, M. (2022). Analysis and forecast of the use of e-commerce in enterprises of the European Union states. Sustainability, 14, 8943. https://doi.org/10.3390/su14148943.
Punia, S.; Shankar, S. (2022). Predictive analytics for demand forecasting: A deep learning-based decision support system. Knowledge-Based Systems, 258, 109956. https://doi.org/10.1016/j.knosys.2022.109956.
Geiler, L.; Affeldt, S.; Nadif, M. (2022). A survey on machine learning methods for churn prediction. International Journal of Data Science and Analytics, 14, 217–242. https://doi.org/10.1007/s41060-022-00312-5.
Pondel, M.; Wuczynski, M.; Gryncewicz, W.; Lysik, L.; Hernes, M.; Rot, A.; Kozina, A. (2021). Deep learning for customer churn prediction in e-commerce decision support. Business and Information Systems Engineering, 1, 3–12. https://doi.org/10.52825/bis.v1i.42.
Gooljar, V.; Ramsohok, S.; Gunputh, R. P.; Naikoo, M. W.; Fagoonee, I. (2024). Sentiment-based predictive models for online purchases in the era of marketing 5.0: A systematic review. Journal of Big Data, 11, 107. https://doi.org/10.1186/s40537-024-00963-6.
Oh, S.; Ji, H.; Kim, J.; Park, E.; del Pobil, A. P. (2022). Deep learning model based on expectation-confirmation theory to predict customer satisfaction in hospitality service. Information Technology & Tourism, 24, 109–126. https://doi.org/10.1007/s40558-022-00222-z.
Sarker, I. H. (2021). Machine learning: Algorithms, real-world applications and research directions. SN Computer Science, 2, 160. https://doi.org/10.1007/s42979-021-00592-x.
Yıldız, E.; Güngör Şen, C.; Işık, E. E. (2023). A hyper-personalized product recommendation system focused on customer segmentation: An application in the fashion retail industry. Journal of Theoretical and Applied Electronic Commerce Research, 18, 571–596. https://doi.org/10.3390/jtaer18010029.
Alrawad, M.; Lutfi, A.; Alyatama, S.; Al Khattab, A.; Alsoboa, S. S.; Almaiah, M. A.; Ramadan, M. H.; Arafa, H. M.; Ahmed, N. A.; Alsyouf, A. (2023). Assessing customers perception of online shopping risks: A structural equation modeling-based multigroup analysis. Journal of Retailing and Consumer Services, 71, 103209. https://doi.org/10.1016/j.jretconser.2022.103209.
Karabila, I.; Darraz, N.; El-Ansari, A.; Alami, N.; El Mallahi, M. (2023). Enhancing collaborative filtering-based recommender system using sentiment analysis. Future Internet, 15, 235. https://doi.org/10.3390/fi15070235.
Afoudi, Y.; Lazaar, M.; Al Achhab, M. (2021). Hybrid recommendation system combined content-based filtering and collaborative prediction using artificial neural network. Simulation Modelling Practice and Theory, 113, 102375. https://doi.org/10.1016/j.simpat.2021.102375.
Deng, Q.; Guo, Y.; Meng, T. (2024). E-commerce commodity recommendation system based on social perception and mobile computing. Mobile Networks and Applications, 29, 401–412. https://doi.org/10.1007/s11036-023-02211-w.
Niu, B.; Dong, J.; Dai, Z.; Liu, Y. (2022). Sales data sharing to improve product development efficiency in cross-border e-commerce. Electronic Commerce Research and Applications, 51, 101112. https://doi.org/10.1016/j.elerap.2021.101112.
Gan, L. (2022). XGBoost-based e-commerce customer loss prediction. Computational Intelligence and Neuroscience, 2022, 1858300. https://doi.org/10.1155/2022/1858300.
Vidhya, V.; Donthu, S.; Veeran, L.; Sai Lakshmi, Y.; Yadav, B. (2023). The intersection of AI and consumer behavior: Predictive models in modern marketing. Remittances Review, 8, 2410–2424. https://doi.org/10.33182/rr.v8i4.166.
Sunarya, P. A.; Rahardja, U.; Chen, S. C.; Li, Y. M.; Hardini, M. (2024). Deciphering digital social dynamics: A comparative study of logistic regression and random forest in predicting e-commerce customer behavior. Journal of Applied Data Sciences, 5, 100–113. https://doi.org/10.47738/jads.v5i1.155.
Alsmadi, A. A.; Al-Gasaymeh, A.; Alhwaitat, A. K.; Al-Adwan, A. S. (2024). Big data analytics and innovation in e-commerce: Current insights and future directions. Journal of Financial Services Marketing, 29, 1635–1652. https://doi.org/10.1057/s41264-023-00244-4.
Stalidis, G.; Karaveli, I.; Diamantaras, K.; Delianidi, M.; Christantonis, K.; Tektonidis, D.; Katsalis, A.; Salampasis, M. (2023). Recommendation systems for e-shopping: Review of techniques for retail and sustainable marketing. Sustainability, 15, 16151. https://doi.org/10.3390/su152316151.
Awan, M. J.; Yasin, A.; Abu-Bakar, S. A. R.; Waheed, H.; Mahmood, Z. (2021). A recommendation engine for predicting movie ratings using a big data approach. Electronics, 10, 1215. https://doi.org/10.3390/electronics10101215.
SUBMITTED: 24 June 2026
ACCEPTED: 02 August 2026
PUBLISHED:
5 August 2026
SUBMITTED to ACCEPTED: 40 days