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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Classification of Mushroom Edibility Using K-Nearest Neighbors: A Machine Learning Approach

Fadhila Tangguh Admojo, Made Leo Radhitya, Hamada Zein, Ahmad Naswin
1 citations
Indonesian Journal of Data and Science
Fungal Biology and Applications
0.45
article

Classification of Mushroom Edibility Using K-Nearest Neighbors: A Machine Learning Approach

Fadhila Tangguh Admojo, Made Leo Radhitya, Hamada Zein, Ahmad Naswin
article en
1 citations

Abstract

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.

Indonesian Journal of Data and ScienceVol. 5(3)
Institut Teknologi dan Bisnis Kalbe (ID), Universitas Muhammadiyah Kalimantan Timur, State University of Makassar (ID), University of Kuala Lumpur (MY)
Zero hunger
Openalex Percentile: Top 28%
Fungal Biology and Applications
0.45
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.

Classification of Mushroom Edibility Using K-Nearest Neighbors: A Machine Learning Approach — Fadhila Tangguh Admojo, Made Leo Radhitya, et al. · Indonesian Journal of Data and Science (2024) | TGRS Research Map | TGRS