Journal of Social Research
Vol. 5 No. 8 (2026): Journal of Social Research

Analysis of the Accuracy of Machine Learning Models Using the Confusion Matrix Method for the Naive Bayes and CatBoost Algorithms in Diagnosing Diabetes

Basyach Aryodito Tranggono Heryanto (Universitas Gunadarma)
Onny Marleen (Universitas Gunadarma)



Article Info

Publish Date
30 Jul 2026

Abstract

Diabetes is a chronic metabolic disease characterized by high blood glucose levels that can lead to severe complications affecting various organs. The increasing prevalence of diabetes requires an accurate and efficient diagnostic approach to support early detection and medical decision-making. The development of machine learning technology provides opportunities to assist disease diagnosis by analyzing patient health data and identifying patterns associated with diabetes conditions. This study aims to compare the accuracy performance of the Naive Bayes and CatBoost algorithms in diagnosing diabetes using the confusion matrix evaluation method. The research method consists of several stages, including data collection, data preprocessing, model selection, model training, and model evaluation. The dataset used was obtained from Kaggle, consisting of 768 records with nine attributes, including pregnancies, glucose level, blood pressure, skin thickness, insulin, body mass index, diabetes pedigree function, age, and outcome classification. The models were trained using 80% training data and 20% testing data. The evaluation results showed that the Naive Bayes algorithm achieved an accuracy of 79%, while the CatBoost algorithm obtained a higher accuracy of 81%. These findings indicate that CatBoost provides better classification performance compared to Naive Bayes for diabetes diagnosis in this dataset. Therefore, CatBoost can be considered a more effective machine learning approach to support diabetes prediction. Future research is recommended to utilize larger datasets, optimize model parameters, and explore other advanced algorithms to improve diagnostic accuracy.

Copyrights © 2026






Journal Info

Abbrev

ijsr

Publisher

Subject

Humanities Computer Science & IT Economics, Econometrics & Finance Education Social Sciences

Description

The Journal of Social Research is a double blind peer-reviewed academic journal and open access to social and scientific fields. The journal is published monthly by International Journal Labs. The Journal of Social Research provides a means for sustained discussion of relevant issues that fall ...