Analisis Sentimen Terhadap Kesehatan Mental Remaja Menggunakan Metode Naive Bayes
Abstract
Everyday life, especially for teenagers, now involves internet technology. Twitter (now known as X) is one of the most popular social media platforms. Sentiment analysis of social media data can improve people's understanding of mental health problems. This research uses the Naive Bayes algorithm to analyze the sentiments of X social media users regarding adolescent mental health. Another goal of this research is to measure how effective and accurate the technique is in identifying sentiment and presenting analysis results in the form of word clouds and graphs. Data was collected from the beginning of 2024 to the present from tweets with the hashtag Mental Health. The research results show that the Naive Bayes algorithm has an effective level of accuracy in classifying sentiment towards health using the InSetLexicon dictionary. The data preprocessing process also includes cleaning, tokenizing, normalization, stockwords, and stemming. In addition, performance evaluation is carried out using confusion matirx to calculate precision, recall, F-1 Score, and accuracy. The classification results obtained obtained an accuracy of 0.8049792531120332 or around 80%, precision of 83%, recall of 68% and F-1 Score of 74.9%.
Downloads
References
I. Irwanto, “Perancangan Sistem Informasi Sekolah Kejuruan dengan Menggunakan Metode Waterfall (Studi Kasus SMK PGRI 1 Kota Serang-Banten),” Lect. J. Pendidik., vol. 12, no. 1, pp. 86–107, 2021, doi: 10.31849/lectura.v12i1.6093.
R. P. Prasanti and A. I. N. Dewi, “Dampak Drama Korea (Korean Wave) terhadap Pendidikan Remaja,” Lect. J. Pendidik., vol. 11, no. 2, pp. 256–269, 2020.
S. D. Alyusi, Media sosial: Interaksi, identitas dan modal sosial. Prenada Media, 2019.
M. Furqan, S. Sriani, and S. M. Sari, “Analisis Sentimen Menggunakan K-Nearest Neighbor Terhadap New Normal Masa Covid-19 Di Indonesia,” Techno.Com, vol. 21, no. 1, pp. 52–61, Feb. 2022, doi: 10.33633/tc.v21i1.5446.
F. Annisya, “Pengaruh Media Sosial Terhadap Penguatan Civic Disposition Peserta Didik Smp Wiyata Bhakti Natar Lampung Selatan,” 2024.
M. A. Chandra, “Strategi Komunikasi Content Creator Rian Fahardi (Presiden Gen Z) Dalam Membahas Isu-Isu Politik Di Sosial Media TikTok.” Fakultas Dakwah dan Ilmu Komunikasi Universitas Islam Negeri Syarif …, 2023.
N. E. W. Wuryaningsih et al., Buku ajar keperawatan kesehatan jiwa 1. UPT Percetakan & Penerbitan, Universitas Jember, 2020.
R. R. Fauzi, “Analisis sentimen dampak ekonomi masyarakat Indonesia akibat pandemi covid-19 pada media sosial twitter menggunakan metode naïve bayes classifier, support vector machine dan lexicon.” Fakultas Sains dan Teknologi UIN Syarif Hidayatullah Jakarta, 2022.
P. Burlian, Patologi sosial. Bumi Aksara, 2022.
M. H. Asnawi, I. Firmansyah, R. Novian, and R. S. Pontoh, “Perbandingan algoritma naïve bayes, k-NN, dan SVM dalam pengklasifikasian sentimen media sosial,” in E-Prosiding Seminar Nasional Statistika| Departemen Statistika FMIPA Universitas Padjadjaran, 2021, p. 20.
B. Ramadhani and R. R. Suryono, “Komparasi Algoritma Naïve Bayes dan Logistic Regression Untuk Analisis Sentimen Metaverse,” J. MEDIA Inform. BUDIDARMA, vol. 8, no. 2, pp. 714–725, 2024.
M. A. Zakariah, V. Afriani, and K. M. Zakariah, metodologi penelitian kuantitatif, kualitatif action research, research and development (R&D). Yayasan Pondok Pesantren Al-Mawaddah Warrahmah, 2020.
F. Novianti and K. R. N. Wardani, “Analisis Sentimen Masyarakat Terhadap Data Tweet Traveloka Selama Rapid Test Antigen Menggunakan Algoritma Naïve Bayes,” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., vol. 8, no. 3, pp. 922–933, 2023.
S. Legianto, “Implementasi Text Mining Untuk Mendeteksi Hate Speech Pada Twitter.” Universitas Islam Indonesia, 2019.
R. Y. Hayuningtyas, “Penerapan Algoritma Naïve Bayes untuk Rekomendasi Pakaian Wanita,” J. Inform., vol. 6, no. 1, pp. 18–22, 2019.
M. F. Rifai, H. Jatnika, and B. Valentino, “Penerapan Algoritma Naïve Bayes Pada Sistem Prediksi Tingkat Kelulusan Peserta Sertifikasi Microsoft Office Specialist (MOS),” 2019.
A. Karim, S. Esabella, K. Kusmanto, S. Suryadi, and E. Purba, “Penerapan Metode Teorema Bayes Dalam Mendiagnosa Penyakit Autoimun,” Build. Informatics, Technol. Sci., vol. 5, no. 1, pp. 254–263, 2023.
C. Nilam, “Analisis Sentimen Mengenai Program MSIB Pada Media Sosial Twitter Menggunakan Algoritma Naive Bayes Classifier,” 2023.
V. P. Rantung and M. ST, Teknik-Teknik Pemrosesan Bahasa Alami (NLP). Lakeisha, 2023.
N. L. Amalia, “Analisis sentimen pada perpindahan Ibukota Indonesia dengan algoritma support vector machine: evaluasi leksikon, metode ekstraksi fitur, dan kernel trick.” Fakultas Sains dan Teknologi Universitas Islam Negeri Syarif Hidayatullah …, 2022.
F. Baehaqi and N. Cahyono, “Analisis Sentimen Terhadap Cyberbullying Pada Komentar Di Instagram Menggunakan Algoritma Naïve Bayes,” Indones. J. Comput. Sci., vol. 13, no. 1, 2024.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Sentimen Terhadap Kesehatan Mental Remaja Menggunakan Metode Naive Bayes
Pages: 1216-1224
Copyright (c) 2024 Pii Syahputra, Rakhmat Kurniawan

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






















