Open Access iconOpen Access



Explainable Artificial Intelligence Solution for Online Retail

Kumail Javaid1, Ayesha Siddiqa2, Syed Abbas Zilqurnain Naqvi2, Allah Ditta3, Muhammad Ahsan2, M. A. Khan4, Tariq Mahmood5, Muhammad Adnan Khan6,*

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: email

Computers, Materials & Continua 2022, 71(3), 4425-4442.


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.


Cite This Article

APA Style
Javaid, K., Siddiqa, A., Naqvi, S.A.Z., Ditta, A., Ahsan, M. et al. (2022). Explainable artificial intelligence solution for online retail. Computers, Materials & Continua, 71(3), 4425-4442.
Vancouver Style
Javaid K, Siddiqa A, Naqvi SAZ, Ditta A, Ahsan M, Khan MA, et al. Explainable artificial intelligence solution for online retail. Comput Mater Contin. 2022;71(3):4425-4442
IEEE Style
K. Javaid et al., "Explainable Artificial Intelligence Solution for Online Retail," Comput. Mater. Contin., vol. 71, no. 3, pp. 4425-4442. 2022.

cc 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.
  • 1688


  • 1417


  • 0


Share Link