PREDICTION OF LONELINESS LEVELS FROM SOCIAL MEDIA PROFILES USING THE RANDOM FOREST ALGORITHM
DOI:
https://doi.org/10.30656/10rg3t91Abstract
In today's fast evolving digital world, social media has become a crucial part of modern life, especially for younger generations like Generation Z at SMK Tunas Media. Born at the start of the 21st century, they are the first generation to grow up with constant access to the internet, technology, and social media. However, recent studies have shown that, despite being raised in a highly connected world, Generation Z is experiencing higher levels of loneliness compared to previous generations. One of the main reasons for this is excessive use of social media, which leads them to prefer digital communication over face to face interactions. Around 73% of them report feeling isolated. This sense of isolation is impacting their mental health, with 91% feeling physically or emotionally stressed, and 68% worrying about the future. Because of this, it’s essential to detect early signs of loneliness in students at SMK Tunas Media who might be at risk. Machine learning, specifically using the Random Forest algorithm, can be used to predict students' loneliness levels based on their social media profiles. This algorithm can analyze data from social media activity, such as behavior patterns, the content shared, social interactions, emotional expressions, and network connections. Additionally, integrating the UCLA Loneliness Scale a widely used tool to measure loneliness into the machine learning model's predictions provides further validation in assessing loneliness. This study shows significant improvements in the classification model's performance after applying the Random Forest method optimized with Optuna. In this study, the model predicted loneliness levels based on social media profiles and achieved an impressive 90% accuracy. This suggests that the Random Forest model optimized with Optuna holds great promise for effectively classifying students' loneliness levels, whether low or high, in Generation Z.References
[1] A. Ahdiat, “Media Sosial Favorit Gen Z dan Milenial Indonesia,” Databoks. Diakses: 30 November 2024. [Daring]. Tersedia pada: https://databoks.katadata.co.id/infografik/2024/09/24/media-sosial-favorit-gen-z-dan-milenial-indonesia
[2] D. Russell, L. A. Peplau, dan C. E. Cutrona, “The Revised UCLA Loneliness Scale: Concurrent and Discriminant Validity Evidence,” Sep 1980.
[3] A. Asrori, “Generasi Z Dinobatkan Jadi Generasi Paling Kesepian, Berikut Efek Bahaya dan 3 Penyebab di Baliknya,” Jawa Pos. Diakses: 2 Desember 2024. [Daring]. Tersedia pada: https://www.jawapos.com/lifestyle/014629123/generasi-z-dinobatkan-jadi-generasi-paling-kesepian-berikut-efek-bahaya-dan-3-penyebab-di-baliknya
[4] B. d’Hombres dan C. Gentile, “Social Media Use and Loneliness,” 2024, hlm. 93–115. doi: 10.1007/978-3-031-66582-0_5.
[5] B. Prawira, S. Magdalena, M. Jenifer Siandita, H. Rachmadianti Sukma, dan A. Liem, “Seri Laporan ke-1 Laporan Perilaku Penggunaan Layanan Kesehatan Mental di Indonesia - Hasil Awal,” Sep 2021. [Daring]. Tersedia pada: www.intothelightid.org.
[6] J. Zhang dkk., “Predicting the Risk of Loneliness in Children and Adolescents: A Machine Learning Study,” Behavioral Sciences, vol. 14, no. 10, Okt 2024, doi: 10.3390/bs14100947.
[7] E. Ahmed dkk., “Predicting Loneliness through Digital Footprints on Google and YouTube,” Electronics (Switzerland), vol. 12, no. 23, Des 2023, doi: 10.3390/electronics12234821.
[8] M. Panayiotou, J. C. Badcock, M. H. Lim, M. J. Banissy, dan P. Qualter, “Measuring Loneliness in Different Age Groups: The Measurement Invariance of the UCLA Loneliness Scale,” Assessment, vol. 30, no. 5, hlm. 1688–1715, Jul 2023, doi: 10.1177/10731911221119533.
[9] R. Bottaro, G. D. Valenti, dan P. Faraci, “Assessment of an Epidemic Urgency: Psychometric Evidence for the UCLA Loneliness Scale,” Psychol Res Behav Manag, vol. 16, hlm. 2843–2855, 2023, doi: 10.2147/PRBM.S406523.
[10] C. J. Gosling, R. Colle, A. Cartigny, F. Jollant, E. Corruble, dan A. Frajerman, “Measuring loneliness: a head-to-head psychometric comparison of the 3- and 20-item UCLA Loneliness Scales,” Psychol Med, Okt 2024, doi: 10.1017/S0033291724002083.
[11] Utkarsh, “Knowledge Discovery in Databases.” Diakses: 4 Januari 2025. [Daring]. Tersedia pada: https://www.scaler.com/topics/data-mining-tutorial/kdd-in-data-mining/
[12] A. S. Bello-Valle, A. Martínez-Rebollar, W. Sánchez, dan H. Estrada-Esquivel, “A Predictive Model for Automatic Detection of Loneliness and Social Isolation using Machine Learning,” Computacion y Sistemas, vol. 26, no. 1, hlm. 113–124, 2022, doi: 10.13053/CyS-26-1-4157.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Hidayat, Asep Lukman Arip, Solichin, Achmad

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
- This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
-
Author(s)' Warranties
The author warrants that the article is original, written by stated author(s), has not been published before, contains no unlawful statements, does not infringe the rights of others, is subject to copyright that is vested exclusively in the author and free of any third party rights, and that any necessary written permissions to quote from other sources have been obtained by the author(s).
- Information
- Notice about change in the copyright policy of the journal 'Jurnal Sistem Informasi (JSiI)' : "From Vol 1, onwards the copyright of the article published in the journal 'Jurnal Sistem Informasi' will be retained by the author"


















