OPTIMIZING THE CLASSIFICATION OF SOCIAL MEDIA'S IMPACT ON MENTAL HEALTH USING RANDOM FOREST WITH GRIDSEARCHCV HYPERPARAMETER TUNING
DOI:
https://doi.org/10.54314/80kre693Keywords:
Random Forest, GridSearchCV, Classification, Social Media, Mental HealhAbstract
The rapid growth of social media has significantly impacted various aspects of life, including individual mental health. This study aims to optimize a classification model for identifying the impact of social media usage on mental health using the Random Forest algorithm. The dataset incorporates various indicators of social media usage behavior and the psychological conditions of respondents. The research process encompasses data preprocessing, model training, and hyperparameter optimization via the GridSearchCV method to enhance model performance. The results demonstrate that hyperparameter tuning improves accuracy, precision, recall, and F1-score compared to the baseline Random Forest model. The resulting optimal model is expected to assist in the early detection of the negative impacts of social media on mental health, thereby serving as a basis for decision-making in the fields of education, healthcare, and public policy.
Downloads
References
D. Wiryany, S. Natasha, R. Kurniawan, J. I. Komunikasi, and M. Bandung, “PERKEMBANGAN TEKNOLOGI INFORMASI DAN KOMUNIKASI TERHADAP PERUBAHAN SISTEM KOMUNIKASI INDONESIA,” 2022.
N. Zuanda and R. Dini, “TREN PENELITIAN CYBERBULLYING DI INDONESIA,” 2024.
R. Al Yasin, R. Roro Kirani Annisa Anjani, S. Salsabil, T. Rahmayanti, and R. Amalia, “PENGARUH SOSIAL MEDIA TERHADAP KESEHATAN MENTAL DAN FISIK REMAJA: A SYSTEMATIC REVIEW,” vol. 3, no. 2, 2022.
S. Azfa and N. ’ Mah, “Prosiding Seminar Nasional Bahasa.”
A. Al Rivaldi, J. Soedarto, K. Tembalang, K. Semarang, and J. Tengah, “Analisis Faktor Penyebab Stres pada Mahasiswa dan Dampaknya terhadap Kesehatan Mental,” Jurnal Inovasi Riset Ilmu Kesehatan, no. 4, pp. 11–18, 2024, doi: 10.55606/detector.v2i3.4378.
P. Silitonga, “PENGARUH POSITIF DAN NEGATIF MEDIA SOSIAL TERHADAP PERKEMBANGAN SOSIAL, PSIKOLOGIS, DAN PERILAKU REMAJA YANG TIDAK TERBIASA DENGAN TEKNOLOGI SOSIAL MEDIA DI INDONESIA,” 2023. [Online]. Available: https://publisherqu.com/index.php/pediaqu
S. Hasna, “TINDAKAN KOLEKTIF MASYARAKAT JARINGAN DI INDONESIA: AKTIVISME SOSIAL MEDIA PADA AKSI #GEJAYANMEMANGGIL,” 2022.
T. Febriyanti and R. Mesra, “Trias Febriyanti, Romi Mesra (Perubahan Kehidupan Sosial Sebagai …) Perubahan Kehidupan Sosial Sebagai Dampak Dari Penggunaan Media Sosial di Masyarakat Indonesia,” 2024.
V. Marcella Angela Simalango and W. Franciska Senjaya, “Evaluasi Algoritma Decision Tree dan Random Forest serta Efektivitas Feature Selection dalam Memprediksi Kesehatan Mental,” 2025.
E. Rosta Br Sebayang, Y. Herry Chrisnanto, U. Jenderal Achmad Yani Cimahi, J. Terusan Jend Sudirman, C. Selatan, and J. Barat, “Klasifikasi Data Kesehatan Mental di Industri Teknologi Menggunakan Algoritma Random Forest,” 2023. [Online]. Available: http://ijespgjournal.org
Adil Setiawan, Andri Armaginda Siregar, N. Setiawan, Jalaluddin Nasution, Naufal Dhiya Putra Dalimunthe, and Farhan Sardy Abdillah, “Optimasi Performa Model SVM dan Random Forest untuk Klasifikasi Kanker Payudara Menggunakan Penyetelan Hyperparameter,” Jurnal Komputer Teknologi Informasi Sistem Informasi (JUKTISI), vol. 4, no. 3, pp. 2141–2149, Jan. 2026,
E. Sutanty, E. Setiyaningsih, and S. N. Yanti, “Optimasi Hyperparameter Pada Algoritma K-Nearest Neighbor untuk Analisis Sentimen terhadap Pembelajaran Jarak Jauh,” Decode: Jurnal Pendidikan Teknologi Informasi, vol. 5, no. 2, pp. 348–364, Jul. 2025, doi: 10.51454/decode.v5i2.1170.
M. Irfan Syahroni, D. STIT Al-Aziziyah, J. I. TGH Umar Abdul Aziz kapek Gunung Sari Lombok Barat, and kode pos, “PROSEDUR PENELITIAN KUANTITATIF,” Jurnal AlMusthafa STIT Al-Aziziyah
Lombok Barat, vol. 43, no. 3, 2022.
C. Azzaria, E. Daniati, A. Ristyawan, U. Nusantara, and P. Kediri, “Peningkatan Akurasi Deteksi Liver Disease melalui Hyperparameter Tuning pada Algoritma Random Forest,” 2025. [Online]. Available: https://subset.id/index.php/IJCSR
A. Fajriansi, S. Tinggi Ilmu Kesehatan Nani Hasanuddin, J. Perintis Kemerdekaan VIII, and K. Makassar, “Hubungan Antara Pengetahuan Dan Sikap Dengan Kontrol Diet Rendah Garam Pada Penderita Hipertensi.”
I. Ameer, M. Arif, G. Sidorov, H. Gòmez-Adorno, and A. Gelbukh, “Mental Illness Classification on Social Media Texts using Deep Learning and Transfer Learning,” Jul. 2022, [Online]. Available: http://arxiv.org/abs/2207.01012
A. Priyono, M. Shodiq, D. P. Alvinsyah, and S. A. Hidayah, “METODE RANDOM FOREST UNTUK MEMUDAHKAN KLASIFIKASI DIAGNOSIS PENYAKIT MENTAL,” Jurnal Informatika Medis (J-INFORMED), vol. 2, no. 1, pp. 1–4, Jun. 2024, doi:
` 10.52060/im.v2i1.2119.
N. Rohmah, N. Aminudin, A. Wantoro, D. Yana, and A. Andini, “Analisis Sentimen Kesehatan Mental di TikTok pada Generasi Milenial, Gen Z, dan Alpha Menggunakan SVM dan Random Forest,” Jurnal Rekayasa Perangkat Lunak, vol. 04, no. 2, 2025, [Online]. Available: https://journal.aisyahuniversity.ac.id/index.php/J-Rapa
S. Octarina, F. M. Puspita, E. Yuliza, and I. Indrawati, “PENDAMPINGAN PENGGUNAAN GOOGLE COLAB PADA PEMBELAJARAN PYTHON DAN MACHINE LEARNING BAGI DOSEN MATEMATIKA DI PALEMBANG,” Jurnal Pepadu, vol. 6, no. 1, pp. 56–66, Mar. 2025, doi: 10.29303/pepadu.v6i1.6457.
A. Gumelar and S. Moeslim, “Big Data Analysis of Indonesian Health Q&A for Identifying Dominant Disease Topics and Mitigation Information Patterns Using the Random Forest Algorithm Powered by Apache Spark on Google Colab”, doi: 10.3390/xxxxx.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Oloan Sihombing, Jefry So, Geby Stevanie (Author)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.









