Classification of Adolescent Depression Risk Using Naïve Bayes Algorithm and SMOTE Method to Handle Social Media Activity Data Imbalance
DOI:
https://doi.org/10.26905/jeemecs.v9i2.17345Keywords:
Adolescent Depression, Mental Health, Naive Bayes, SMOTE, Data ImbalanceAbstract
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
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
Issue
Section
License
Copyright (c) 2026 JEEMECS (Journal of Electrical Engineering, Mechatronic and Computer Science)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Our ethic statements are based on COPE’s Best Practice Guidelines for Journal Editors.
Publication decisions
The editor is responsible for deciding which of the articles submitted to the journal should be published.
The editor may be guided by the policies of the journal's editorial board and constrained by such legal requirements as shall then be in force regarding libel, copyright infringement and plagiarism. The editor may confer with other editors or reviewers in making this decision.
Fair play
An editor at any time evaluate manuscripts for their intellectual content without regard to race, gender, sexual orientation, religious belief, ethnic origin, citizenship, or political philosophy of the authors.
Confidentiality
The editor and any editorial staff must not disclose any information about a submitted manuscript to anyone other than the corresponding author, reviewers, potential reviewers, other editorial advisers, and the publisher, as appropriate.
Disclosure and conflicts of interest
Unpublished materials disclosed in a submitted manuscript must not be used in an editor's own research without the express written consent of the author.
Duties of Reviewers
Contribution to Editorial Decisions
Peer review assists the editor in making editorial decisions and through the editorial communications with the author may also assist the author in improving the paper.
Promptness
Any selected referee who feels unqualified to review the research reported in a manuscript or knows that its prompt review will be impossible should notify the editor and excuse himself from the review process.
Confidentiality
Any manuscripts received for review must be treated as confidential documents. They must not be shown to or discussed with others except as authorized by the editor.
Standards of Objectivity
Reviews should be conducted objectively. Personal criticism of the author is inappropriate. Referees should express their views clearly with supporting arguments.
Acknowledgement of Sources
Reviewers should identify relevant published work that has not been cited by the authors. Any statement that an observation, derivation, or argument had been previously reported should be accompanied by the relevant citation. A reviewer should also call to the editor's attention any substantial similarity or overlap between the manuscript under consideration and any other published paper of which they have personal knowledge.
Disclosure and Conflict of Interest
Privileged information or ideas obtained through peer review must be kept confidential and not used for personal advantage. Reviewers should not consider manuscripts in which they have conflicts of interest resulting from competitive, collaborative, or other relationships or connections with any of the authors, companies, or institutions connected to the papers.
Duties of Authors
Reporting standards
Authors of reports of original research should present an accurate account of the work performed as well as an objective discussion of its significance. Underlying data should be represented accurately in the paper. A paper should contain sufficient detail and references to permit others to replicate the work. Fraudulent or knowingly inaccurate statements constitute unethical behavior and are unacceptable.
Originality and Plagiarism
The authors should ensure that they have written entirely original works, and if the authors have used the work and/or words of others that this has been appropriately cited or quoted.
Multiple, Redundant or Concurrent Publication
An author should not in general publish manuscripts describing essentially the same research in more than one journal or primary publication. Submitting the same manuscript to more than one journal concurrently constitutes unethical publishing behaviour and is unacceptable.
Acknowledgement of Sources
Proper acknowledgment of the work of others must always be given. Authors should cite publications that have been influential in determining the nature of the reported work.
Authorship of the Paper
Authorship should be limited to those who have made a significant contribution to the conception, design, execution, or interpretation of the reported study. All those who have made significant contributions should be listed as co-authors. Where there are others who have participated in certain substantive aspects of the research project, they should be acknowledged or listed as contributors.
The corresponding author should ensure that all appropriate co-authors and no inappropriate co-authors are included on the paper, and that all co-authors have seen and approved the final version of the paper and have agreed to its submission for publication.
Disclosure and Conflicts of Interest
All authors should disclose in their manuscript any financial or other substantive conflict of interest that might be construed to influence the results or interpretation of their manuscript. All sources of financial support for the project should be disclosed.
Fundamental errors in published works
When an author discovers a significant error or inaccuracy in his/her own published work, it is the author’s obligation to promptly notify the journal editor or publisher and cooperate with the editor to retract or correct the paper.








