Science and Research |
|
SAR Journal |
|
ISSN 2619-9955 | eISSN 2619-9963 | Frequency:4/year | Peer Reviewed: Yes | UIKTEN Publisher | ![]() |
Comparative Analysis of Soil Microbial Communities Using K-Nearest Neighbors and Naive Bayes Classification Models
Jose C. Agoylo Jr.
© 2025 Jose C. Agoylo Jr., published by UIKTEN. This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International. (CC BY-NC 4.0).
Citation Information: SAR Journal. Volume 8, Issue 3, Pages 233-239, ISSN 2619-9955, https://doi.org/10.18421/SAR83-03, September 2025.
Received: 31 July 2025.
Revised: 04 September 2025.
Accepted: 09 September 2025.
Published: 27 September 2025.
Abstract:
This study aims to compare the performance of K-Nearest Neighbors (KNN) and Naive Bayes algorithms in classifying soil microbial communities based on various soil properties. The objective was to determine which model offers higher accuracy and computational efficiency for microbial classification. The study utilized publicly available soil microbial datasets containing features like pH, temperature, and soil texture, along with microbial abundance data. After pre-processing, data was split into training and test sets, and both models were evaluated using metrics such as accuracy, precision, recall, and F1 score. Results showed that KNN outperformed Naive Bayes, achieving an accuracy of 85% compared to Naive Bayes' 80%. KNN provided better classification performance by capturing complex, non-linear relationships in the data, while Naive Bayes was faster, with lower computational costs. In conclusion, KNN is recommended for tasks where accuracy is critical, while Naive Bayes is suited for larger datasets requiring faster computation.
Keywords – Soil microbial communities, K-Nearest Neighbors (KNN), naive bayes, machine learning, ecological zones.