Applying Collaborative Filtering in E-Marketing Systems

Authors

  • Kasem Maher Ahmed Department of Computer Science, College of Computer Sciences and Mathematics, University of Mosul, Mosul, Iraq
  • Omar Muayad Abdullah Department of Computer Science, College of Computer Sciences and Mathematics, University of Mosul, Mosul, Iraq

DOI:

https://doi.org/10.29304/jqcsm.2026.18.12391

Keywords:

Machine Learning Algorithms, Collaborative Filtering, K-Nearest Neighbors (KNN) Algorithm, Decision Tree Algorithm

Abstract

Collaborative filtering is very important in e-marketing systems since it enables users to search through the large product lists and become better buyers. This paper will look into the application of machine learning algorithms for instance K-Nearest Neighbors (KNN) and Decision Tree Classifier in formulating a collaborative filtering for supermarket products like, food, dairy, canned goods, juices and detergents. Three data files were employed; a supermarket products file of five Categories each having ten products, a supermarket manager’s offers file of the same Categories with each set with four products, and a file of past user’s purchases. The methodology employed involves using a user product matrix to capture purchasing behavior, using KNN algorithms to predict user preferences using the distance of Euclidean, also, a decision tree to set up the decision-making rules for products recommendations implemented. The number of the previous user’s purchases is shown in a histogram. The paper compares the KNN algorithm with the decision tree algorithm on recommendation accuracy, precision, recall, F1-score and execution time. The KNN algorithm yielded the best accuracy (0.9651), precision (0.8233), recall (0.8430), F1 score (0.8293) and execution time (0.896). The decision tree algorithm yielded lower accuracy (0.8392), precision (0.2094), recall (0.2111), F1 score (0.2072), and execution time (3.686).

Downloads

Download data is not yet available.

References

H. Khatter, S. Arif, U. Singh, S. Mathur, and S. Jain, “Product recommendation system for E-commerce using collaborative filtering and textual clustering,” in 2021 Third International Conference on Inventive Research in Computing Applications (ICIRCA), 2021, pp. 612–618.

N. B. Munkholm, R. Alphinas, and T. Tambo, “Collaborative filtering, K-nearest neighbor and cosine similarity in home decor recommender systems,” arXiv Prepr. arXiv2402.06233, 2024.

D. Prasad, S. K. Goyal, A. Sharma, A. Bindal, and V. S. Kushwah, “System model for prediction analytics using k-nearest neighbors algorithm,” J. Comput. Theor. Nanosci., vol. 16, no. 10, pp. 4425–4430, 2019.

D. A. Adeniyi, Z. Wei, and Y. Yongquan, “Automated web usage data mining and recommendation system using K-Nearest Neighbor (KNN) classification method,” Appl. Comput. Informatics, vol. 12, no. 1, pp. 90–108, 2016.

M. S. Abd Rahman, N. A. A. Jamaludin, Z. Zainol, and T. M. T. Sembok, “The application of decision tree classification algorithm on decision-making for upstream business,” Int. J. Adv. Comput. Sci. Appl., vol. 14, no. 8, 2023.

H. Blockeel, L. Devos, B. Frénay, G. Nanfack, and S. Nijssen, “Decision trees: from efficient prediction to responsible AI,” Front. Artif. Intell., vol. 6, p. 1124553, 2023.

P. K. Singh, P. K. D. Pramanik, and P. Choudhury, “Collaborative filtering in recommender systems: Technicalities, challenges, applications, and research trends,” in New Age Analytics, Apple Academic Press, 2020, pp. 183–215.

G. Chornous, I. Nikolskyi, M. Wyszyński, G. Kharlamova, and P. Stolarczyk, “A hybrid user-item-based collaborative filtering model for e-commerce recommendations,” J. Int. Stud., vol. 14, no. 4, 2021.

Z. R. Basystiuk and Z. Rybchak, “Recommendation systems in e-commerce applications,” Inf. Syst. Networks, vol. 15, pp. 252–259, 2024.

H. H. L. Nguyen, T. N. Le, T.-T. Ha, and L. V. Nguyen, “Collaborative Filtering-Based Personalized Recommendations: Challenges, Limitations, and Applications,” in International Conference on Intelligence of Things, 2024, pp. 12–23.

E. Gündougan and M. Kaya, “A novel hybrid paper recommendation system using deep learning,” Scientometrics, vol. 127, no. 7, pp. 3837–3855, 2022.

M. Loukili, F. Messaoudi, and M. El Ghazi, “Machine learning based recommender system for e-commerce,” IAES Int. J. Artif. Intell., vol. 12, no. 4, pp. 1803–1811, 2023.

M. Ezz and A. Elshenawy, “Adaptive recommendation system using machine learning algorithms for predicting students best academic program,” Educ. Inf. Technol., vol. 25, no. 4, pp. 2733–2746, 2020.

S. Kongpeng and A. Hanskunatai, “Tourist Destination Recommendation System based on Machine Learning,” in Proceedings of the 2024 9th International Conference on Big Data and Computing, 2024, pp. 58–67.

M. D. R. Hasan and J. Ferdous, “Dominance of AI and machine learning techniques in hybrid movie recommendation system applying text-to-number conversion and cosine similarity approaches,” J. Comput. Sci. Technol. Stud., vol. 6, no. 1, pp. 94–102, 2024.

Downloads

Published

2026-03-30

How to Cite

Kasem Maher Ahmed, & Omar Muayad Abdullah. (2026). Applying Collaborative Filtering in E-Marketing Systems. Journal of Al-Qadisiyah for Computer Science and Mathematics, 18(1), Comp 380–388. https://doi.org/10.29304/jqcsm.2026.18.12391

Issue

Section

Computer Articles