From Spore to Score: Performance Analysis of Naive Bayes and K-Nearest Neighbors on the UCI Mushroom Classification Dataset
From Spore to Score: Performance Analysis of Naive Bayes and K-Nearest Neighbors on the UCI Mushroom Classification Dataset
Author(s): Melca M. Abogado, Gardenia B. Concillo, Hazel D. Bantugan, Jose C. Agoylo Jr., Jimson A. Olaybar, Joedee Mark RodriguezSubject(s): ICT Information and Communications Technologies
Published by: UIKTEN - Association for Information Communication Technology Education and Science
Keywords: mushroom classification; Naive Bayes; K-Nearest Neighbors (KNN); predictive modeling; edibility prediction; Machine learning
Summary/Abstract: This study used two machine learning algorithms (Naive – Bayes & K-Nearest Neighbors (KNN)) to predict whether a mushroom is edible or not, based on its morphological features. The study attempts to use a public mushroom dataset containing 8,124 instances and 22 categorical attributes to determine the model that can show more accuracy and reliability in the classification of mushrooms as edible or poisonous. Pre-processed data was used, and the results showed that the KNN classifies with an accuracy of 99.63% whereas the Naive Bayes classifies with an accuracy of 92.18%, which is still a good result, although lower than that of KNN. These results indicate that KNN performs effectively on the selected benchmark dataset and may serve as a useful baseline approach for future mushroom classification studies.
Journal: SAR Journal - Science and Research
- Issue Year: 9/2026
- Issue No: 2
- Page Range: 145-150
- Page Count: 6
- Language: English
