Classification of Adolescent Depression Risk Using Naïve Bayes Algorithm and SMOTE Method to Handle Social Media Activity Data Imbalance

Authors

DOI:

https://doi.org/10.26905/jeemecs.v9i2.17345

Keywords:

Adolescent Depression, Mental Health, Naive Bayes, SMOTE, Data Imbalance

Abstract

Advances in information technology have transformed the way adolescents communicate through social media, yet excessive use negatively impacts psychological well-being. This study aims to develop a Naïve Bayes classification model to identify adolescent depression risks and evaluate the effectiveness of the SMOTE method in addressing data imbalance challenges. This research utilizes the "Social Media Impact on Teen Mental Health" dataset from Kaggle, consisting of 1,200 rows of data, with the entire modeling process validated using 10-fold Cross Validation. The results indicate that the application of the SMOTE method was successful in optimizing detection for the minority class or at risk groups. Through the integration of SMOTE, this classification system achieved a Recall value of 96.77% and an F1-Score of 74.07%, with false negative errors reduced to just 1 case. The combination of the Naïve Bayes algorithm and SMOTE has proven to produce a classification system that is fairer, more sensitive, and relevant for early mental health detection, enabling faster and more accurate identification of depression risks in the digital era.  

Downloads

Download data is not yet available.

References

[1] Fiqih Satria and Hermanto, “IMPLEMENTASI ALGORITMA NAÏVE BAYES UNTUK MEMPREDIKSI PENGARUH MEDIA SOSIAL TERHADAP SEMANGAT BELAJAR MAHASISWA DI MASA PANDEMI COVID 19,” J. Inf. dan Komput., vol. 10, no. 1, pp. 50–56, Apr. 2022, doi: 10.35959/jik.v10i1.290.

[2] L. Lovita, U. Dzakiyah, R. Angelika, and Y. Natasya, “ANALISIS PENGARUH MEDIA SOSIAL MELALUI APLIKASI DIGITAL TIKTOK SEBAGAI MEDIA PERSUASIF TERHADAP PENERAPAN ETIKA BERKOMUNIKASI PADA MAHASISWA,” EDUSAINTEK J. Pendidikan, Sains dan Teknol., vol. 10, no. 1, pp. 181–192, Jan. 2023, doi: 10.47668/edusaintek.v10i1.653.

[3] M. I. Fikri, E. Budianita, I. Iskandar, and E. P. Cynthia, “KLASIFIKASI TINGKAT KECANDUAN INTERNET TERHADAP REMAJA PEKANBARU MELALUI PENDEKATAN ALGORITMA NAÏVE BAYES,” Zo. J. Sist. Inf., vol. 6, no. 2, pp. 424–436, May 2024, doi: 10.31849/zn.v6i2.20191.

[4] M. Nur Cahya, W. Ningsih, and A. Lestari, “Dampak Media Sosial terhadap Kesejahteraan Psikologis Remaja: Tinjauan Pengaruh Penggunaan Media Sosial pada Kecemasan dan Depresi Remaja,” J. Sos. Teknol., vol. 3, no. 8, pp. 704–706, Aug. 2023, doi: 10.59188/jurnalsostech.v3i8.917.

[5] V. V Taddi, R. K. Kohli, and P. Puri, “Perception, use of social media, and its impact on the mental health of Indian adolescents: A qualitative study,” World J. Clin. Pediatr., vol. 13, no. 3, Sep. 2024, doi: 10.5409/wjcp.v13.i3.97501.

[6] P. Aribowo and M. I. Bagaskara, “Dampak Penggunaan Media Sosial ‘Brain Rot’ terhadap Kesehatan Mental Remaja,” J. Sos. Teknol., vol. 5, no. 3, pp. 350–357, Mar. 2025, doi: 10.59188/jurnalsostech.v5i3.32020.

[7] T. D. Simanjuntak, A. E. Noveyani, and C. A. Kinanthi, “Prevalensi dan Faktor-faktor yang Berhubungan dengan Simtom Depresi pada Penduduk di Indonesia (Analisis Data IFLS5 Tahun 2014-2015,” J. Epidemiol. Kesehat. Indones., vol. 6, no. 2, pp. 97–104, Jan. 2023, doi: 10.7454/epidkes.v6i2.6313.

[8] K. N. B. Tsania, R. Wardani, and A. I. Hanifah, “Predicting the Impact of Mobile Phone Use on Anxiety and Insomnia Among University of Islam Lamongan Students Through the Naïve Bayes Method,” J. Ilm. Sist. Inf., vol. 5, no. 1, pp. 156–165, Jan. 2026, doi: 10.51903/syn92p96.

[9] J. Meynadier, J. M. Malouff, N. S. Schutte, N. M. Loi, and M. D. Griffiths, “Relationships Between Social Media Addiction, Social Media Use Metacognitions, Depression, Anxiety, Fear of Missing Out, Loneliness, and Mindfulness,” Int. J. Ment. Health Addict., no. 0123456789, Jan. 2025, doi: 10.1007/s11469-024-01440-8.

[10] T. Chyquitita, “Mengurai Fenomena FoMo dikalangan Remaja,” EDUKATIF J. ILMU Pendidik., vol. 6, no. 4, pp. 3763–3771, Jul. 2024, doi: 10.31004/edukatif.v6i4.7406.

[11] D. Rizqa Khalaida, S. Shofia, T. Tukino, and E. Novalia, “KLASIFIKASI KARAKTERISTIK PENGGUNA MEDIA SOSIAL MENGGUNAKAN METODE NAIVE BAYES,” JATI (Jurnal Mhs. Tek. Inform., vol. 9, no. 5, pp. 8906–8912, Jul. 2025, doi: 10.36040/jati.v9i5.15225.

[12] I. M. C. Silalahi, U. Athiyah, and D. C. Fransisca, “Classification of Instagram and TikTok Addiction Levels among University Students Using the Naive Bayes Classifier,” sinkron, vol. 10, no. 1, pp. 253–262, Jan. 2026, doi: 10.33395/sinkron.v10i1.15583.

[13] N. Khalid, S. Abdul-Rahman, W. Wibowo, N. A. S. Abdullah, and S. Mutalib, “Leveraging social media data using latent dirichlet allocation and naïve bayes for mental health sentiment analytics on Covid-19 pandemic,” Int. J. Adv. Intell. Informatics, vol. 9, no. 3, p. 457, Nov. 2023, doi: 10.26555/ijain.v9i3.1367.

[14] G. Samudra, A. W. Anggraeni, A. R. B. Jamroni, A. Sarif, and W. Wiyanto, “Efektivitas Teknik SMOTE Dalam Meningkatkan Performa Naïve Bayes Deteksi Gangguan Kecemasan Mahasiswa,” JATISI (Jurnal Tek. Inform. dan Sist. Informasi), vol. 12, no. 3, Sep. 2025, doi: 10.35957/jatisi.v12i3.12197.

[15] T. Anjarsari, I. R. I. Astutik, and U. Indahyanti, “Deteksi Dini Gangguan Kecemasan Menggunakan Metode Naive Bayes,” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., vol. 7, no. 4, pp. 1198–1210, Nov. 2022, doi: 10.29100/jipi.v7i4.3197.

[16] I. Manfaati Nur, Ismatullah, and L. Muntasiroh, “Implementasi Adaptive Synthetic Bernoulli Naïve Bayes untuk Mengatasi Imbalance Class Data pada Kasus Mental Health di Indonesia,” J. Data Insights, vol. 1, no. 1, pp. 10–18, May 2023, doi: 10.26714/jodi.v1i1.134.

[17] P. S. Rahmadani, F. C. Tampubolon, A. N. Jannah, N. L. H. Hutabarat, and A. M. Simarmata, “Tiktok Social Media Sentiment Analysis Using the Nave Bayes Classifier Algorithm,” SinkrOn, vol. 7, no. 3, pp. 995–999, Jul. 2022, doi: 10.33395/sinkron.v7i3.11579.

[18] J. L. Putra and A. Subekti, “Prediksi Kinerja Siswa Pada E-Learning Moodle Platform Menggunakan Algoritma Adaptive Boosting,” J. Inform., vol. 10, no. 1, pp. 79–84, Mar. 2023, doi: 10.31294/inf.v10i1.15525.

[19] A. Faqih, Y. M. I. Mahendra, and Kaslani, “SMOTE untuk Meningkatkan Performa Naïve Bayes dan Random Forest dalam Analis Sentimen aplikasi Digitalent,” J. Din. Inform., vol. 14, no. 2, pp. 13–25, Jan. 2026, doi: 10.31316/jdi.v14i2.347.

[20] Hizbul Izzi, Arief Setyanto, and Anggit Dwi Hartanto, “Optimalisasi Akurasi Algoritma Naïve Bayes Dengan Metode Syntetic Minority Oversampling Technique (Smote) Pada Data Numerik,” Infotek J. Inform. dan Teknol., vol. 8, no. 1, pp. 217–227, Jan. 2025, doi: 10.29408/jit.v8i1.28340.

[21] M. Z. Haq, C. S. Octiva, A. Ayuliana, U. W. Nuryanto, and D. Suryadi, “Algoritma Naïve Bayes untuk Mengidentifikasi Hoaks di Media Sosial,” J. Minfo Polgan, vol. 13, no. 1, pp. 1079–1084, Jul. 2024, doi: 10.33395/jmp.v13i1.13937.

[22] A. Andreyestha and Q. N. Azizah, “Analisa Sentimen Kicauan Twitter Tokopedia Dengan Optimalisasi Data Tidak Seimbang Menggunakan Algoritma SMOTE,” Infotek J. Inform. dan Teknol., vol. 5, no. 1, pp. 108–116, Jan. 2022, doi: 10.29408/jit.v5i1.4581.

[23] M. A. Hermawan, A. Faqih, and G. Dwilestari, “IMPLEMENTASI AKURASI MODEL NAIVE BAYES MENGGUNAKAN SMOTE DALAM ANALISIS SENTIMEN PENGGUNA APLIKASI BRIMO,” J. Inform. dan Tek. Elektro Terap., vol. 13, no. 1, Jan. 2025, doi: 10.23960/jitet.v13i1.5748.

[24] J. Saputra, L. Maryani, Rahmaddeni, D. Wulandari, and W. Eka, “ANALISIS PERFORMA NAIVE BAYES DAN SVM TERHADAP SENTIMEN TEKS MEDIA SOSIAL DENGAN WORD2VEC DAN SMOTE,” J. INSTEK (Informatika Sains dan Teknol., vol. 10, no. 1, pp. 143–155, May 2025, doi: 10.24252/instek.v10i1.54889.

Published

2026-08-31

Issue

Section

Articles