Comparative Analysis of Soil Microbial Communities Using K-Nearest Neighbors and Naive Bayes Classification Models

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.

Institutions

Publication Details

Journal
SAR Journal - Science and Research
Published
2025-09-24
DOI
https://doi.org/10.18421/sar83-03
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Analysis of Soil Microbial Communities Using K-Nearest Neighbors and Naive Bayes Classification Models

SAR Journal - Science and Research
Geochemistry and Geologic Mapping
article

Comparative Analysis of Soil Microbial Communities Using K-Nearest Neighbors and Naive Bayes Classification Models

article en

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.

SAR Journal - Science and Research
Southern Leyte State University (PH)
Life in Land
Openalex Percentile: Top 28%
Geochemistry and Geologic Mapping
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.