Perbandingan Algoritma C4.5 dan Naïve Bayes dalam Prediksi Kualitas Tidur pada Kesehatan
DOI:
https://doi.org/10.61132/vitamin.v3i4.1773Keywords:
Algorithm, C4.5, Comparison, Naive Bayes, Sleep QualityAbstract
Sleep is a fundamental human need that plays a crucial role in maintaining both physical and mental health. Poor sleep quality can trigger a variety of health problems, ranging from decreased concentration to an increased risk of chronic diseases. The complexity of factors influencing sleep quality—such as stress levels, heart rate, blood pressure, physical activity, and lifestyle—makes its assessment difficult through direct observation alone. Therefore, data mining approaches are increasingly utilized to identify relevant patterns in sleep-related data. This study aims to compare the performance of the C4.5 (Decision Tree) algorithm and the Naïve Bayes algorithm in predicting sleep quality using the Sleep Health and Lifestyle dataset, which contains information from 374 respondents. The research method applied is a quantitative comparative approach employing classification techniques with 10-fold cross-validation to ensure robust evaluation. Model performance is assessed using accuracy, precision, and recall metrics to provide a comprehensive understanding of the effectiveness of each algorithm. The findings indicate that the C4.5 algorithm achieves an accuracy of 96.26% and offers advantages in terms of interpretability through its decision tree visualization, enabling easier understanding of variable relationships. In contrast, the Naïve Bayes algorithm demonstrates superior predictive performance, achieving an accuracy of 98.66% along with consistently high precision and recall across nearly all classes. These results suggest that Naïve Bayes is more effective for predictive tasks involving sleep quality, while C4.5 remains highly valuable when the goal is to interpret variable interactions and decision rules. Overall, this research highlights the potential of data mining techniques in health informatics, particularly in improving the understanding and prediction of sleep quality, which in turn can contribute to better prevention and management of sleep-related health issues.
Downloads
References
Anggi Trifani, Agus Perdana Windarto, & Hendry Qurniawan. (2022). Penerapan Data Mining Klasifikasi C4.5 dalam Menentukan Tingkat Stres Mahasiswa Akhir. Jural Riset Rumpun Ilmu Teknik, 1(2), 91–105. https://doi.org/10.55606/jurritek.v1i2.414
Cahya, D., Buani, P., Rahmawati, A., Informatika, P. S., Mandiri, U. N., Studi, P., Informasi, S., Mandiri, U. N., Foundation, N. S., & Searchcv, R. (2025). PENERAPAN DECISION TREE UNTUK KLASIFIKASI GANGGUAN TIDUR. 10(1), 66–74.
Daewana, F. (2025). Perbandingan Algoritma Naïve Bayes Dan C4.5 Dalam Prediksi Keputusan Karyawan Untuk Meninggalkan Perusahaan. Innovative: Journal Of Social Science Research, 5(1), 1712–1726. https://doi.org/10.31004/innovative.v5i1.17664
Ekadewi, I., & Louisa Prayitno, L. (2024). Simpatik: Jurnal Sistem Informasi dan Informatika Penerapan Metode Algoritma C4.5 Pada Diagnosis Penyakit MonkeyPox. 4(1), 1–8. http://jurnal.bsi.ac.id/index.php/simpatik
F. Narti, “JTIM : Jurnal Teknologi Informasi dan Multimedia Perbandingan Algoritma C4 . 5 dan Naive Bayes dalam Klasifikasi Tingkat Kepuasan Mahasiswa Terhadap Pembelajaran Daring,” vol. 4, no. 1, 2022.
Hardian, A., Sitepu, E., Mulyapradana, A., Sitopu, J. W., Wardono, B. H., Bina, U., Informatika, S., Agung, U. D., & Simalungun, U. (2025). Indonesian Research Journal on Education. 5(2022), 1079–1085.
Imam Nawawi, & Zaehol Fatah. (2024). Penerapan Decision Trees dalam Mendeteksi Pola Tidur Sehat Berdasarkan Kebiasaan Gaya Hidup. Jurnal Ilmiah Sains Teknologi Dan Informasi, 2(4), 34–41. https://doi.org/10.59024/jiti.v2i4.969
Pratmanto, D., Widayanto, A., Kristania, Y. M., & Wijianto, R. (2024). Analisis Perbandingan Algoritma Naive Bayes Dan KNN Untuk Analisis Sentimen Ulasan Pengguna Aplikasi Vidio Di Google Play Store. 4(2), 119–124.
Putra, A. R., & Program. (2024). Penerapan Teknik Data Mining Terhadap Prediksi Masa Studi Mahasiswa. 1, 33–37.
Sastra, A., & Sabri, K. (2025). Analisis Data Science terhadap Kualitas Tidur dan Faktor-Faktor yang Mempengaruhinya : Studi Kasus Sleep Health and Lifestyle Dataset. 3(2), 92–99.
Schneider, K.-M. (2005). Techniques for Improving the Performance of Naive Bayes for Text Classification. Computational Linguistics and Intelligent Text Processing, (i), 682–693. https://doi.org/10.1007/978-3-540-30586-6_76
Song, J. H., & Woo, H. Y. (2015). A study on AQ (adversity quotient), job satisfaction and turnover intention according to work units of clinical nursing staffs in Korea. Indian Journal of Science and Technology, 8(November), 74–78. https://doi.org/10.17485/ijst/2015/v8i
Sukri, M. H., & Handrianto, Y. (2024). Penerapan Algoritma C4. 5 Dalam Menentukan Prediksi Prestasi Siswa Pada SMPN 51 Jakarta. Informatics and Computer Engineering Journal, 4(1), 11–24.
Suyadi, S., Setyanto, A., & Fattah, H. Al. (2017). Analisis Perbandingan Algoritma Decision Tree (C4.5) Dan K-Naive Bayes Untuk
Vidi, M. A., Ridha, A., Kansha, W. M., Studi, P., Rekayasa, T., Lunak, P., Vokasi, S., Studi, P., Komputer, I., Data, S. S., Informasi, S. T., Vidi, M. A., National, P., Of, C., & Indonesia, S. S. (2025). Proceeding National Conference of Research and Community Service Sisi Indonesia.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Vitamin : Jurnal ilmu Kesehatan Umum

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.



