Comparing K-Nearest Neighbors And Naive Bayes In Real-Time Recommendation Systems

This study evaluates and compares the performance of K-Nearest Neighbors (KNN) and Naive Bayes (NB) algorithms in the context of real-time recommendation systems. We analyzed several key metrics, including accuracy, precision, recall, F1 Score, training time, prediction time, and memory usage, using datasets that simulate user-item interactions. Our findings reveal that KNN, particularly with k=10k=10k=10, achieves superior accuracy, precision, recall, and F1 Score compared to Naive Bayes, indicating its effectiveness in delivering relevant recommendations. However, Naive Bayes demonstrates significant advantages in computational efficiency, with faster training and prediction times, and lower memory usage. This suggests that while KNN excels in recommendation quality, Naive Bayes is more resource-efficient. The choice of algorithm depends on the specific needs of the recommendation system, balancing between accuracy and computational efficiency

Authors

Publication Details

Journal
Global Journal of Engineering Innovations and Interdisciplinary Research
Published
2025-02-28
DOI
https://doi.org/10.33425/3066-1226.1075
Primary Topic
Text and Document Classification Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparing K-Nearest Neighbors And Naive Bayes In Real-Time Recommendation Systems

Suda Rani Medarametla, Glory Thallapally
Global Journal of Engineering Innovations and Interdisciplinary Research
Text and Document Classification Technologies
article

Comparing K-Nearest Neighbors And Naive Bayes In Real-Time Recommendation Systems

Suda Rani Medarametla, Glory Thallapally
article en

Abstract

This study evaluates and compares the performance of K-Nearest Neighbors (KNN) and Naive Bayes (NB) algorithms in the context of real-time recommendation systems. We analyzed several key metrics, including accuracy, precision, recall, F1 Score, training time, prediction time, and memory usage, using datasets that simulate user-item interactions. Our findings reveal that KNN, particularly with k=10k=10k=10, achieves superior accuracy, precision, recall, and F1 Score compared to Naive Bayes, indicating its effectiveness in delivering relevant recommendations. However, Naive Bayes demonstrates significant advantages in computational efficiency, with faster training and prediction times, and lower memory usage. This suggests that while KNN excels in recommendation quality, Naive Bayes is more resource-efficient. The choice of algorithm depends on the specific needs of the recommendation system, balancing between accuracy and computational efficiency

Global Journal of Engineering Innovations and Interdisciplinary ResearchVol. 5(1)
Openalex Percentile: Top 97%
Text and Document Classification Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparing K-Nearest Neighbors And Naive Bayes In Real-Time Recommendation Systems — Suda Rani Medarametla, Glory Thallapally · Global Journal of Engineering Innovations and Interdisciplinary Research (2025) | TGRS Research Map | TGRS