Penerapan Algoritma Naïve Bayes untuk Prediksi Penyakit Depresi pada Mahasiswa

  • Adie Wahyudi Oktavia gama Universitas Pendidikan Nasional
  • Agustini Degni Melsy Grren Universitas Pendidikan Nasional
  • I Gusti Ngurah Darma Paramartha Universitas Pendidikan Nasional
  • Gede Humaswara Prathama Universitas Pendidikan Nasional
  • Ni Made Widnyani Universitas Bali Internasional
  • Md. Wira Putra Dananjaya Universitas Bali Internasional
Keywords: depresi, kesehatan mental, machine learning, mahasiswa, naïve bayes, prediksi

Abstract

Depression is one of the most serious mental health problems among college students, but it often goes unnoticed due to social stigma and limited access to psychological services. This study aims to apply the Naïve Bayes algorithm to predict depression in college students based on various factors, such as academic pressure, sleep duration, eating habits, financial stress, and family history of mental disorders. The model was built using 502 data obtained from the Kaggle platform, through the stages of data preprocessing, transformation, classification using Gaussian Naïve Bayes, and evaluation using a confusion matrix. The implementation process was carried out in Google Colab using the scikit-learn library. The evaluation results showed very good model performance with an accuracy of 97%, precision of 96%, recall of 98%, and F1-score of 97%. These findings indicate that the Naïve Bayes algorithm can be used effectively as an anonymous and efficient early screening tool for depression and has the potential to support increased awareness and mental health interventions in the college student environment.

 

References

American Psychiatric Association. (2022). Diagnostic and Statistical Manual of Mental Disorders. American Psychiatric Association Publishing. https://doi.org/10.1176/appi.books.9780890425787

Devi Nurhayati, S., & Widayani, W. (2021). Sistem Rekomendasi Wisata Kuliner di Yogyakarta dengan Metode Item-Based Collaborative Filtering Yogyakarta Culinary Recommendation System with Item-Based Collaborative Filtering Method. In JACIS : Journal Automation Computer Information System (Vol. 1, Issue 2). https://manganenakyog.my.id/,

Diva Yuda, T., Sarifah, F., Syaefanhas Mulyadi, D., Sri Rahma Ayu, W., Nadhir Fasya, N., Adityas Noerdiansyah, I., & Teknik Sipil, J. (2024). Tresna Diva Yuda: Analisis Kontribusi Perusahaan terhadap … Analisis Kontribusi Perusahaan terhadap Suistanable Development Goals (SDGs). In Indonesian Journal of Engineering and Technology (INAJET) (Vol. 6, Issue 2). https://journal.unesa.ac.id/index.php/inajet

Gama, A. W. O., Dennatan, M., Dharmayasa, I. G. N. P., Maw, M. M., Sugiana, I. P., & Suryanti, I. (2025). Identifying Key Factors Causing Flooding Using Machine Learning. Journal of Applied Data Sciences, 6(1), 115–130. https://doi.org/10.47738/jads.v6i1.463

Gama, A. W. O., & Wardhiana, I. N. G. A. M. (2023). Naïve bayes on diagnostic expert system for menstrual disorders. In Journal of Intelligent Decision Support System (IDSS) (Vol. 6, Issue 2). https://doi.org/https://doi.org/10.35335/idss.v6i2.130

Hasbie, R., Wahiddin, D., & Ratna Juwita, A. (2023). Algoritma Certainty Factor Untuk Diagnosa Penyakit Depresi Pada Remaja. IV(1).

Nurabsharina, A. P., & Kosasih, R. (2020). APLIKASI SISTEM PAKAR DIAGNOSIS TINGKAT DEPRESI PADA REMAJA BERBASIS ANDROID. Jurnal Ilmiah Informatika Komputer, 25(1), 76–85. https://doi.org/10.35760/ik.2020.v25i1.2418

Ridha Dwiki Putri, D., Reza Fahlevi, M., Sadikin, M., Utami, R., Rizki Fajar Utomo, M., & Studi Rekayasa Perangkat Lunak, P. (2024). Prediksi Tingkat Depresi Remaja Menggunakan Metode Naïve Bayes Classifier: Analisis Faktor Psikologis Dan Lingkungan. 5(4), 2034–2043.

Rully Desthian Pahlephi. (2022). Depresi Adalah: Penyebab, Gejala, dan Cara Mengatasinya. Detik.Com.

Sari, L., Romadloni, A., Lityaningrum, R., & Hastuti, H. D. (2023). Implementation of LightGBM and Random Forest in Potential Customer Classification. TIERS Information Technology Journal, 4(1), 43–55. https://doi.org/10.38043/tiers.v4i1.4355

Subarkah, P., Solikhatin, S. A., Darmayanti, I., Ikhsan, A. N., Hidayah, D. U., & Anjani, R. M. (2022). Prediction of Education Level in Population Data Using Naïve Bayes Algorithm. TIERS Information Technology Journal, 3(2), 69–75. https://doi.org/10.38043/tiers.v3i2.3865

Surya Wisnugraha, W., Farida, I. N., & Widyadara, M. A. D. (2023). Implementasi Algoritma Naïve Bayes Dalam Menentukan Diagnosa Tingkat Depresi Mahasiswa Akhir Terhadap Pengerjaan Skripsi. In Agustus (Vol. 7). Online.

Tyas, D. M., Pertiwi, A., & Nisa, V. Z. (2023). Sosialisasi Peningkatan Pemahaman Kesehatan Mental Pada Remaja. Jurnal Pengabdian Masyarakat Bangsa, 1(10). https://jurnalpengabdianmasyarakatbangsa.com/index.php/jpmba/article/view/567/458

Tengku Omri Wikana, Tioria Pasaribu, & Hotler Manurung. (2024). Penerapan Metode Naïve Bayes untuk Memprediksi Tingkat Kesehatan Mental Siswa Menjelang Akhir Masa Sekolah. Saturnus : Jurnal Teknologi Dan Sistem Informasi, 2(4), 296–306. https://doi.org/10.61132/saturnus.v2i4.364

Zuriah, T. S., & Wardono, G. (2023). HUBUNGAN ANTARA ALEXITHYMIA DENGAN DEPRESI PADA REMAJA. Blantika: Multidisciplinary Jornal, 2(1). https://blantika.publikasiku.id/

Published
2025-06-30
How to Cite
gama, A. W. O., Grren, A. D. M., Paramartha, I. G. N. D., Prathama, G. H., Widnyani, N. M., & Dananjaya, M. W. P. (2025). Penerapan Algoritma Naïve Bayes untuk Prediksi Penyakit Depresi pada Mahasiswa. Journal of Language and Health, 6(2), 199-216. https://doi.org/10.37287/jlh.v6i2.6926

Most read articles by the same author(s)

1 2 > >>