Classification of Mushroom Edibility Using K-Nearest Neighbors: A Machine Learning Approach
This study investigates the use of the K-Nearest Neighbors (KNN) algorithm for the binary classification of mushroom edibility using a cleaned version of the UCI Mushroom Dataset. The dataset underwent pre-processing techniques such as modal imputation, one-hot encoding, z-score normalization, and feature selection to ensure data quality. The model was trained on 80% of the dataset and evaluated on the remaining 20%, achieving an overall accuracy of 99%. Evaluation metrics, including precision, recall, and F1-score, confirmed the model's effectiveness in distinguishing between edible and poisonous mushrooms, with minimal misclassification errors. Despite its high performance, the study identified scalability as a limitation due to the computational complexity of KNN, suggesting that future research should explore alternative algorithms for enhanced efficiency. This research underscores the importance of pre-processing and hyperparameter optimization in building reliable classification models for food safety applications.
Authors
- Fadhila Tangguh Admojo
- Made Leo Radhitya
- Hamada Zein
- Ahmad Naswin
Institutions
- Institut Teknologi dan Bisnis Kalbe (ID)
- Universitas Muhammadiyah Kalimantan Timur
- State University of Makassar (ID)
- University of Kuala Lumpur (MY)
Publication Details
- Journal
- Indonesian Journal of Data and Science
- Published
- 2024-12-31
- DOI
- https://doi.org/10.56705/ijodas.v5i3.199
- Citations
- 1
- Primary Topic
- Fungal Biology and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.45