Comparative Analysis of Gaussian Naïve Bayes and Categorical Naïve Bayes Algorithms with Laplace Smoothing in COVID-19 Detection

In January 2020, it was confirmed that COVID-19 can be transmitted from human to human through the upper respiratory tract with a high infection rate. The number of COVID-19 cases worldwide continued to increase rapidly through close contact, droplets, and airborne transmission. In response, governments and the WHO implemented preventive measures, including COVID-19 treatment preparation, increased emergency healthcare capacity, and patient screening. Early detection of COVID-19 became crucial in taking action, providing treatment, and protecting others. In the Naïve Bayes algorithm, a potential issue arises with the possibility of zero probabilities for some features or attributes in the COVID-19 prediction training data. Therefore, Laplace Smoothing is used to address this problem. This study aims to compare the average accuracy rates of Gaussian Naïve Bayes and Categorical Naïve Bayes algorithms using different proportions of training data but the same testing data for COVID-19 detection. The methods used in this research are Gaussian Naïve Bayes and Categorical Naïve Bayes with Laplace Smoothing implemented using the Python library called scikit-learn. The research results show that the Gaussian Naïve Bayes algorithm without Laplace Smoothing has an average accuracy of 0.902165, while with Laplace Smoothing, it has an average accuracy of 0.973448. For the Categorical Naïve Bayes algorithm, without Laplace Smoothing, it has an average accuracy of 0.983864, while with Laplace Smoothing, it has an average accuracy of 0.984273. In conclusion, Laplace Smoothing plays a significant role in improving the average accuracy of Naïve Bayes algorithms. Categorical Naïve Bayes achieves the highest average accuracy of 0.9840685 (with and without Laplace Smoothing), while Gaussian Naïve Bayes achieves 0.947549 (with and without Laplace Smoothing). Categorical Naïve Bayes has a higher average accuracy compared to Gaussian Naïve Bayes.

Institutions

Publication Details

Journal
Jurnal Ilmu Komputer dan Informatika
Published
2025-08-30
DOI
https://doi.org/10.54082/jiki.286
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 Gaussian Naïve Bayes and Categorical Naïve Bayes Algorithms with Laplace Smoothing in COVID-19 Detection

Jurnal Ilmu Komputer dan Informatika
Geochemistry and Geologic Mapping
article

Comparative Analysis of Gaussian Naïve Bayes and Categorical Naïve Bayes Algorithms with Laplace Smoothing in COVID-19 Detection

article en

Abstract

In January 2020, it was confirmed that COVID-19 can be transmitted from human to human through the upper respiratory tract with a high infection rate. The number of COVID-19 cases worldwide continued to increase rapidly through close contact, droplets, and airborne transmission. In response, governments and the WHO implemented preventive measures, including COVID-19 treatment preparation, increased emergency healthcare capacity, and patient screening. Early detection of COVID-19 became crucial in taking action, providing treatment, and protecting others. In the Naïve Bayes algorithm, a potential issue arises with the possibility of zero probabilities for some features or attributes in the COVID-19 prediction training data. Therefore, Laplace Smoothing is used to address this problem. This study aims to compare the average accuracy rates of Gaussian Naïve Bayes and Categorical Naïve Bayes algorithms using different proportions of training data but the same testing data for COVID-19 detection. The methods used in this research are Gaussian Naïve Bayes and Categorical Naïve Bayes with Laplace Smoothing implemented using the Python library called scikit-learn. The research results show that the Gaussian Naïve Bayes algorithm without Laplace Smoothing has an average accuracy of 0.902165, while with Laplace Smoothing, it has an average accuracy of 0.973448. For the Categorical Naïve Bayes algorithm, without Laplace Smoothing, it has an average accuracy of 0.983864, while with Laplace Smoothing, it has an average accuracy of 0.984273. In conclusion, Laplace Smoothing plays a significant role in improving the average accuracy of Naïve Bayes algorithms. Categorical Naïve Bayes achieves the highest average accuracy of 0.9840685 (with and without Laplace Smoothing), while Gaussian Naïve Bayes achieves 0.947549 (with and without Laplace Smoothing). Categorical Naïve Bayes has a higher average accuracy compared to Gaussian Naïve Bayes.

Jurnal Ilmu Komputer dan InformatikaVol. 5(1)
Jenderal Soedirman University (ID)
Openalex Percentile: Top 38%
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.