Open Access
ARTICLE
Explainable Artificial Intelligence Solution for Online Retail
1 Department of Computer Science, University of South Asia, Lahore, 54000, Pakistan
2 Department of Mechatronics and Control Engineering, University of Engineering and Technology, Lahore, 54000, Pakistan
3 Department of Information Sciences, Division of Science and Technology, University of Education, Lahore, 54000, Pakistan
4 Riphah School of Computing and Innovation, Faculty of Computing, Riphah International University, Lahore Campus, Lahore, 54000, Pakistan
5 Division of Science and Technology, University of Education, Lahore, 54000, Pakistan
6 Pattern Recognition and Machine Learning Lab, Department of Software, Gachon University, Seongnam, 13557, Korea
* Corresponding Author: Muhammad Adnan Khan. Email:
Computers, Materials & Continua 2022, 71(3), 4425-4442. https://doi.org/10.32604/cmc.2022.022984
Received 24 August 2021; Accepted 27 September 2021; Issue published 14 January 2022
Abstract
Artificial intelligence (AI) and machine learning (ML) help in making predictions and businesses to make key decisions that are beneficial for them. In the case of the online shopping business, it’s very important to find trends in the data and get knowledge of features that helps drive the success of the business. In this research, a dataset of 12,330 records of customers has been analyzed who visited an online shopping website over a period of one year. The main objective of this research is to find features that are relevant in terms of correctly predicting the purchasing decisions made by visiting customers and build ML models which could make correct predictions on unseen data in the future. The permutation feature importance approach has been used to get the importance of features according to the output variable (Revenue). Five ML models i.e., decision tree (DT), random forest (RF), extra tree (ET) classifier, Neural networks (NN), and Logistic regression (LR) have been used to make predictions on the unseen data in the future. The performance of each model has been discussed in detail using performance measurement techniques such as accuracy score, precision, recall, F1 score, and ROC-AUC curve. RF model is the best model among all five chosen based on accuracy score of 90% and F1 score of 79% followed by extra tree classifier. Hence, our study indicates that RF model can be used by online retailing businesses for predicting consumer buying behaviour. Our research also reveals the importance of page value as a key feature for capturing online purchasing trends. This may give a clue to future businesses who can focus on this specific feature and can find key factors behind page value success which in turn will help the online shopping business.Keywords
Cite This Article
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.