Implementasi dan Optimalisasi Metode Naive Bayes Dalam Sistem Deteksi Dini Penyakit Tiroid
Abstract
This study aims to develop an early detection system for thyroid disease using the Naive Bayes algorithm. The dataset used is the Thyroid Disease Dataset from the UCI Machine Learning Repository, consisting of thousands of patient records. Prior to model training, the data undergoes preprocessing steps such as handling missing values, numerical normalization, and categorical encoding. The classification process involves calculating the prior probability, likelihood, and posterior probability for each class: normal, hypothyroid, and hyperthyroid. The system also presents the probability percentage for each class as an automated diagnosis result. Model accuracy is evaluated using a Confusion Matrix, achieving an accuracy score of 98.01% on the test data. These results indicate that the proposed approach can effectively and accurately classify thyroid conditions for early diagnosis purposes.
Downloads
References
M. S. A. Khan et al., “Thyroid dysfunctions and their health implications: A review,” Clinica Chimica Acta, vol. 505, pp. 190–194, 2020. DOI: 10.1016/j.cca.2020.06.003.
J. Vanderpump, “The epidemiology of thyroid disease,” British Medical Bulletin, vol. 99, no. 1, pp. 39–51, 2011. DOI: 10.1093/bmb/ldr006.
B. Demers and H. Spencer, “Laboratory medicine practice guidelines for thyroid function tests,” Clin. Chem., vol. 48, no. 3, pp. 506–508, 2012. DOI: 10.1373/clinchem.2012.174034.
N. Hollowell et al., “Serum TSH, T4, and thyroid antibodies in the United States population,” J. Clin. Endocrinol. Metab., vol. 87, no. 2, pp. 489–499, 2002. DOI: 10.1210/jcem.87.2.8182.
Kementerian Kesehatan RI, Riset Kesehatan Dasar (Riskesdas) 2018, Jakarta: Badan Litbangkes, 2018.
R. Sahay and V. Nagesh, “Hypothyroidism: detection and treatment,” Journal of Clinical Research, vol. 3, no. 2, pp. 14–18, 2017.
D. Dean et al., “Artificial intelligence applications in health care practice,” J. Clin. Med., vol. 8, no. 5, 2019. DOI: 10.3390/jcm8050675.
M. Topol, “High-performance medicine: the convergence of human and artificial intelligence,” Nature Medicine, vol. 25, pp. 44–56, 2019. DOI: 10.1038/s41591-018-0300-7.
R. Kohavi, “A study of cross-validation and bootstrap for accuracy estimation and model selection,” in IJCAI, 1995, pp. 1137–1143.
S. Kumar et al., “Machine Learning for Thyroid Disease Diagnosis,” Procedia Computer Science, vol. 167, pp. 2290–2297, 2020. DOI: 10.1016/j.procs.2020.03.319.
R. Singh and A. Thakur, “Performance analysis of classification algorithms for thyroid disease detection,” IJCA, vol. 178, no. 7, pp. 12–16, 2019.
A. Ahmed et al., “Comparative analysis of machine learning algorithms for thyroid disease detection,” IJRTE, vol. 8, no. 1, pp. 345–350, 2019.
M. Ahmed and B. Naeem, “Smart diagnosis system using data mining techniques,” Int. J. Adv. Comput. Sci., vol. 8, no. 4, pp. 78–85, 2018.
H. Abdar et al., “A new machine learning method for diagnosis of liver disease: SVM optimized by whale optimization algorithm,” J. Biomed. Inform., vol. 94, p. 103199, 2019. DOI: 10.1016/j.jbi.2019.103199.
F. Al‑Dhief et al., “Review on heart disease detection using machine learning and data mining techniques,” J. Telecommun. Electron. Comput. Eng., vol. 10, no. 1–6, pp. 35–40, 2018.
R. Mohapatra and R. Padhy, “Thyroid disease detection using machine learning classification techniques,” Procedia Computer Science, vol. 167, pp. 1614–1623, 2020. DOI: 10.1016/j.procs.2020.03.299.
G. Ditzler et al., “Learning in nonstationary environments: A survey,” IEEE Comput. Intell. Mag., vol. 10, no. 4, pp. 12–25, 2015. DOI: 10.1109/MCI.2015.2418532.
D. Dua and C. Graff, “UCI Machine Learning Repository: Thyroid Disease Dataset,” University of California, Irvine, 2020.
L. Yu and H. Liu, “Feature selection for high-dimensional data: A fast correlation-based filter solution,” in ICML, 2003, pp. 856–863.
N. V. Chawla et al., “SMOTE: Synthetic Minority Over‑sampling Technique,” J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002. DOI: 10.1613/jair.953.
K. P. Murphy, “Naive Bayes classifiers,” in Machine Learning: A Probabilistic Perspective, MIT Press, 2012, pp. 225–229.
B. S. Islam, F. Hoque, and M. A. Rahman, “An Expert System to Diagnose Thyroid Disease Using Rule‑Based Reasoning and Naïve Bayes Classifier,” J. Comput. Commun., vol. 10, no. 7, pp. 1–12, 2022. DOI: 10.4236/jcc.2022.107001.
I. Dutta, S. Dey, and S. Ghosh, “Diagnosis of thyroid disease using machine learning algorithms,” Int. J. Adv. Comput. Sci. Appl., vol. 13, no. 4, pp. 65–71, 2022.
Y. S. Siregar and A. R. Prabowo, “Naive Bayes Classifier for Thyroid Disease Diagnosis: Implementation and Analysis,” Indonesian J. Electr. Eng. Comput. Sci., vol. 28, no. 2, pp. 356–362, 2022. DOI: 10.11591/ijeecs.v28.i2.pp356-362.
M. S. Raza, A. Hasan, and M. Khan, “Application of Gaussian Naive Bayes in Predictive Healthcare Systems,” J. Healthcare Eng., vol. 2021, Article ID 1147109, 2021. DOI: 10.1155/2021/1147109.
D. Dua and C. Graff, “UCI Machine Learning Repository: Thyroid Disease Data Set,” University of California, Irvine, School of ICS, 2020.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Implementasi dan Optimalisasi Metode Naive Bayes Dalam Sistem Deteksi Dini Penyakit Tiroid
Pages: 2187-2198
Copyright (c) 2025 Nurhasanah Nurhasanah, Nilovar Asyiah, Okta Irawati

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).






















