Perbandingan Kinerja Naïve Bayes dengan dan Tanpa SMOTE untuk Klasifikasi Gangguan Kecemasan Mahasiswa pada Data Tidak Seimbang
DOI:
https://doi.org/10.47065/bulletincsr.v6i2.1021Keywords:
Naïve Bayes; SMOTE; Multi-Class Classification; Student Mental Health; Imbalanced DatasetAbstract
Anxiety disorders are one of the most common mental health problems experienced by university students and may affect learning concentration and academic performance. The analysis of psychological survey data using machine learning techniques can support early detection of student anxiety conditions. However, one of the main challenges in mental health data analysis is the presence of class imbalance within the dataset. This study aims to analyze the effect of applying the Synthetic Minority Oversampling Technique (SMOTE) on the performance of the Naïve Bayes algorithm for multi-class classification of student anxiety levels, which are categorized into three classes: No Stress, Eustress, and Distress. The dataset used in this research was obtained from student questionnaire data and underwent several preprocessing steps including data cleaning, feature transformation, and dataset splitting using the hold-out method with a ratio of 80% training data and 20% testing data. Model performance was evaluated using a confusion matrix with evaluation metrics including accuracy, precision, recall, and F1-score. The results show that the Naïve Bayes model without SMOTE achieved an accuracy of 0.84, precision 0.78, recall 0.41, and F1-score 0.54. After applying SMOTE, the model achieved an accuracy of 0.82, precision 0.74, recall 0.69, and F1-score 0.71. These results indicate that SMOTE improves the model's ability to detect minority classes in multi-class classification problems, although a slight decrease in overall accuracy is observed.
Downloads
References
T. Anjarsari, I. R. I. Astutik, and U. Indahyanti, “Deteksi Dini Gangguan Kecemasan Menggunakan Metode Naive Bayes,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 7, no. 4, pp. 1198–1210, Nov. 2022, doi: 10.29100/jipi.v7i4.3197.
M. Sun, M. Piao, and Z. Jia, “The impact of alexithymia, anxiety, social pressure, and academic burnout on depression in Chinese university students: an analysis based on SEM,” BMC Psychol., vol. 12, no. 1, p. 757, Dec. 2024, doi: 10.1186/s40359-024-02262-y.
Y. Wang et al., “Stressors in university life and anxiety symptoms among international students: a sequential mediation model,” BMC Psychiatry, vol. 23, no. 1, p. 556, Aug. 2023, doi: 10.1186/s12888-023-05046-7.
S. Fisher and B. Hood, “The stress of the transition to university: A longitudinal study of psychological disturbance, absent?mindedness and vulnerability to homesickness,” British Journal of Psychology, vol. 78, no. 4, pp. 425–441, Nov. 1987, doi: 10.1111/j.2044-8295.1987.tb02260.x.
E. Kroshus, M. Hawrilenko, and A. Browning, “Stress, self-compassion, and well-being during the transition to college,” Soc. Sci. Med., vol. 269, p. 113514, Jan. 2021, doi: 10.1016/j.socscimed.2020.113514.
W. Amalia, H. Abdilah, and K. Tarwati, “Gambaran Tingkat Kecemasan Mahasiswa Tingkat Akhir Program Studi Pendidikan Profesi Ners,” MAHESA?: Malahayati Health Student Journal, vol. 3, no. 10, pp. 3326–3337, Oct. 2023, doi: 10.33024/mahesa.v3i10.11298.
A. Poots and T. Cassidy, “Academic expectation, self-compassion, psychological capital, social support and student wellbeing,” Int. J. Educ. Res., vol. 99, p. 101506, 2020, doi: 10.1016/j.ijer.2019.101506.
A. F. Akhnaf, R. P. Putri, A. Vaca, N. P. Hidayat, R. I. Az-Zahra, and A. Rusdi, “Self Awareness Dan Kecemasan Pada Mahasiswa Tingkat Akhir,” Jurnal Muara Ilmu Sosial, Humaniora, dan Seni, vol. 6, no. 1, pp. 107–118, Apr. 2022, doi: 10.24912/jmishumsen.v6i1.13201.2022.
M. Z. A. Rustam and L. Nurlela, “Gangguan Kecemasan dengan Menggunakan Self Reporting Questionaire (SRQ-29) di Kota Surabaya,” Jurnal Kesehatan Masyarakat Mulawarman (JKMM), vol. 3, no. 1, p. 39, Aug. 2021, doi: 10.30872/jkmm.v3i1.5752.
M. N. Sulistyani and W. S. Hertinjung, “Memahami Kecemasan Mahasiswa di Solo Raya: Kontribusi Kepribadian, Dukungan Sosial, dan Gender,” JURNAL Al-AZHAR INDONESIA SERI HUMANIORA, vol. 9, no. 3, p. 230, Dec. 2024, doi: 10.36722/sh.v9i3.3454.
D. A. Punkastyo, F. Septian, and A. Syaripudin, “Implementasi Data Mining Menggunakan Algoritma Naïve Bayes Untuk Prediksi Kelulusan Siswa,” Journal of System and Computer Engineering (JSCE), vol. 5, no. 1, pp. 24–35, Jan. 2024, doi: 10.61628/jsce.v5i1.1073.
T. Anjarsari, I. R. I. Astutik, and U. Indahyanti, “Deteksi Dini Gangguan Kecemasan Menggunakan Metode Naive Bayes,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 7, no. 4, pp. 1198–1210, Nov. 2022, doi: 10.29100/jipi.v7i4.3197.
N. J. Fauziyah, F. Rahmania, M. Daniyal, and N. F. A. T. Sari, “Analisis dan Optimalisasi Performa Algoritma Gaussian Naive Bayes pada Prediksi Metabolic Syndrome Menggunakan SMOTE,” JISKA (Jurnal Informatika Sunan Kalijaga), vol. 9, no. 2, pp. 112–122, May 2024, doi: 10.14421/jiska.2024.9.2.112-122.
K. Rahayu, V. Fitria, D. Septhya, R. Rahmaddeni, and L. Efrizoni, “Klasifikasi Teks untuk Mendeteksi Depresi dan Kecemasan pada Pengguna Twitter Berbasis Machine Learning,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 3, no. 2, pp. 108–114, Sep. 2023, doi: 10.57152/malcom.v3i2.780.
W. L. Ku and H. Min, “Evaluating Machine Learning Stability in Predicting Depression and Anxiety Amidst Subjective Response Errors,” Healthcare, vol. 12, no. 6, p. 625, Mar. 2024, doi: 10.3390/healthcare12060625.
M. Vaz, T. Summavielle, R. Sebastião, and R. P. Ribeiro, “Multimodal Classification of Anxiety Based on Physiological Signals,” Applied Sciences, vol. 13, no. 11, p. 6368, May 2023, doi: 10.3390/app13116368.
R. Gelar Guntara, “Pemanfaatan Google Colab Untuk Aplikasi Pendeteksian Masker Wajah Menggunakan Algoritma Deep Learning YOLOv7,” Jurnal Teknologi Dan Sistem Informasi Bisnis, vol. 5, no. 1, pp. 55–60, Feb. 2023, doi: 10.47233/jteksis.v5i1.750.
K. Rahayu, V. Fitria, D. Septhya, R. Rahmaddeni, and L. Efrizoni, “Klasifikasi Teks untuk Mendeteksi Depresi dan Kecemasan pada Pengguna Twitter Berbasis Machine Learning,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 3, no. 2, pp. 108–114, Sep. 2023, doi: 10.57152/malcom.v3i2.780.
N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic Minority Over-sampling Technique,” Journal of Artificial Intelligence Research, vol. 16, pp. 321–357, Jun. 2002, doi: 10.1613/jair.953.
B. Z. Ramadhan, R. I. Adam, and I. Maulana, “Analisis Sentimen Ulasan pada Aplikasi E-Commerce dengan Menggunakan Algoritma Naïve Bayes,” Journal of Applied Informatics and Computing, vol. 6, no. 2, pp. 220–225, Dec. 2022, doi: 10.30871/jaic.v6i2.4725.
M. A. Hermawan, A. Faqih, and G. Dwilestari, “Implementasi Akurasi Model Naive Bayes Menggunakan SMOTE dalam Analisis Sentimen Pengguna Aplikasi Brimo,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 13, no. 1, Jan. 2025, doi: 10.23960/jitet.v13i1.5748.
D. Nurfitriana, T. Ridwan, and A. Voutama, “Analisis Opini Terhadap Aplikasi Riliv di Twitter Menggunakan Algoritma Naïve Bayes dan Random Forest,” Jurnal SAINTEKOM, vol. 14, no. 1, pp. 26–37, Mar. 2024, doi: 10.33020/saintekom.v14i1.526.
C. B. Handoko and C. S. K. Aditya, “Penerapan Teknik SMOTE Dalam Mengatasi Imbalance Data Penyakit Diabetes Menggunakan Algoritma ANN,” Smart Comp: Jurnalnya Orang Pintar Komputer, vol. 14, no. 1, Jan. 2025, doi: 10.30591/smartcomp.v14i1.7045.
M. I. Fikri, T. S. Sabrila, and Y. Azhar, “Perbandingan Metode Naïve Bayes dan Support Vector Machine pada Analisis Sentimen Twitter,” SMATIKA JURNAL, vol. 10, no. 02, pp. 71–76, Dec. 2020, doi: 10.32664/smatika.v10i02.455.
V. Oktaviani, N. Rosmawarni, and M. P. Muslim, “Perbandingan Kinerja Random Forest Dan Smote Random Forest Dalam Mendeteksi Dan Mengukur Tingkat Stres Pada Mahasiswa Tingkat Akhir,” Informatik?: Jurnal Ilmu Komputer, vol. 20, no. 1, pp. 43–49, Apr. 2024, doi: 10.52958/iftk.v20i1.9158.
Y. Yunita, M. Fahmi, and S. Salmon, “Penerapan Algoritma K-Means Data Mining Pada Clustering Kelayakan Penerima UKT Dengan Normalisasi Data Model Z-Score,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 3, pp. 1977–1986, Dec. 2024, doi: 10.47065/bits.v6i3.6475.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Perbandingan Kinerja Naïve Bayes dengan dan Tanpa SMOTE untuk Klasifikasi Gangguan Kecemasan Mahasiswa pada Data Tidak Seimbang
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2026 Nurhadi Surojudin, Sufajar Butsianto, Andri Firmansyah

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).













