Klasifikasi Kesehatan Mental Menggunakan Support Vector Machine Berdasarkan Screen Time dan Interaksi Sosial Digital
Abstract
Mental health is an important aspect that influences the quality of life of individuals, especially in adolescents and young adults who are vulnerable to stress due to the increased use of digital devices. Technological developments have led to increased screen time and the intensity of digital social interactions, which have the potential to affect mentsal health conditions. This study aims to develop a mental health classification model using the Support Vector Machine (SVM) method with a Radial Basis Function (RBF) kernel based on digital behavior data, including daily device usage time, social media time, number of positive interactions, and number of negative interactions. The dataset used is secondary data obtained from Kaggle and goes through the stages of pre-processing, feature selection, data normalization, and division of training and test data with a ratio of 80:20. The built SVM model is able to classify mental health conditions into three classes, namely Healthy, Stressed, and Risky. The evaluation results show that the accuracy of the resulting model is 94.3%, with a precision value of 66.3%, a recall of 96.1%, and an f1-score of 74.1%. These results indicate that the variables of screen time and digital social interaction have strong potential to be used as a basis for objective and data-based mental health classification.
Downloads
References
J. M. Nagata et al., “Screen time and mental health: a prospective analysis of the Adolescent Brain Cognitive Development (ABCD) Study,” BMC Public Health, vol. 24, no. 1, 2024, doi: 10.1186/s12889-024-20102-x.
L. Marciano, M. Ostroumova, P. J. Schulz, and A. L. Camerini, “Digital Media Use and Adolescents’ Mental Health During the Covid-19 Pandemic: A Systematic Review and Meta-Analysis,” Front. Public Heal., vol. 9, no. February, 2022, doi: 10.3389/fpubh.2021.793868.
M. D. A. Putera, “Mental Health Impacts By Elevated Digital Screen Time During Covid-19,” J. Psychiatry Psychol. Behav. Res., vol. 5, no. 2, pp. 28–31, 2024, doi: 10.21776/ub.jppbr.2024.005.02.7.
M. Sechi, V. Saladino, D. Calaresi, and V. Verrastro, “Adolescent Mental Health in the Digital Era: Social Media, Screen Time, and Digital Literacy,” J. Clin. Dev. Psychol., vol. 2025, no. 1, pp. 92–115, 2025, [Online]. Available: https://doi.org/10.13129/2612-4033/0110-4799
M. Maulyanda and Sri Azizah Nazhifah, “Sentiment Analysis of Mental Health Using Support Vector Machine (SVM) with FastAPI Implementation,” Brill. Res. Artif. Intell., vol. 5, no. 1, pp. 568–575, 2025, doi: 10.47709/brilliance.v5i1.6580.
Uswatun Hasanah and Zaehol Fatah, “Prediksi Tingkat Stress dan Kesehatan Mental Mahasiswa Menggunakan Algoritma SVM,” J. Mhs. Tek. Inform., vol. 4, no. 2, pp. 200–207, 2025, doi: 10.35473/jamastika.v4i2.4542.
S. Aleem, N. ul Huda, R. Amin, S. Khalid, S. S. Alshamrani, and A. Alshehri, “Machine Learning Algorithms for Depression: Diagnosis, Insights, and Research Directions,” Electronics, vol. 11, no. 7, p. 1111, Mar. 2022, doi: 10.3390/electronics11071111.
Styawati, Andi Nurkholis, Zaenal Abidin, and Heni Sulistiani, “Optimasi Parameter Support Vector Machine Berbasis Algoritma Firefly Pada Data Opini Film,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 5, no. 5, pp. 904–910, Oct. 2021, doi: 10.29207/resti.v5i5.3380.
G. Cho, J. Yim, Y. Choi, J. Ko, and S. H. Lee, “Review of machine learning algorithms for diagnosing mental illness,” Psychiatry Investig., vol. 16, no. 4, pp. 262–269, 2019, doi: 10.30773/pi.2018.12.21.2.
E. E. Pratiwi, A. R. Aisy, R. Rahmaddeni, and N. Ananta, “Klasifikasi Kesehatan Mental Pada Usia Remaja Menggunakan Metode SVM,” J. Inform. dan Tek. Elektro Terap., vol. 13, no. 2, Apr. 2025, doi: 10.23960/jitet.v13i2.6232.
B. Kadirvelu, T. B. Bel, A. Freccero, M. Di Simplico, D. Nicholls, and A. A. Faisal, “Digital Phenotyping for Adolescent Mental Health: A Feasibility Study Employing Machine Learning to Predict Mental Health Risk From Active and Passive Smartphone Data (Preprint),” Feb. 11, 2025. doi: 10.2196/preprints.72501.
J. Angskun, S. Tipprasert, and T. Angskun, “Big data analytics on social networks for real-time depression detection,” J. Big Data, vol. 9, no. 1, 2022, doi: 10.1186/s40537-022-00622-2.
W. Kurniawan, A. Musthafa, and A. Kirani, “Analisis Klasifikasi Tingkat Kesehatan Mental pada Mahasiswi Akhir dalam Menempuh Tugas Akhir Menggunakan Algoritma Support Vector Machine.,” vol. 9, no. 2502, p. 2024, 2024, doi: https://doi.org/10.46880/tamika.vol4no1.pp102-109.
F. A. Sumantri and Y. H. Chrisnanto, “Prediksi Risiko Kesehatan Mental Mahasiswa Menggunakan Klasifikasi Naive Bayes,” vol. 12, no. 3, pp. 383–393, 2025, doi: 10.30865/jurikom.v12i3.8648.
T. Muthia and Y. E. Putra, “Perbandingan Akurasi Model Pembelajaran Mesin SVM , KNN , Decision Tree , dan Naive Bayes pada Klasifikasi Gangguan Kesehatan Mental”, doi: https://doi.org/10.23960/elc.v18n3.2758.
S. Selatan, “COMPARISON OF SVM , RANDOM FOREST , AND LOGISTIC REGRESSION PERFORMANCE IN STUDENT MENTAL,” vol. 9, no. 2, pp. 173–184, 2024, doi: https://doi.org/10.36418/syntax-literate.v7i12.10699.
K. Kaewpradit, P. Ngamchaliew, and N. Buathong, “Digital screen time usage, prevalence of excessive digital screen time, and its association with mental health, sleep quality, and academic performance among Southern University students,” Front. Psychiatry, vol. 16, no. March, pp. 1–10, 2025, doi: 10.3389/fpsyt.2025.1535631.
D. Alita, Y. Fernando, and H. Sulistiani, “Implementasi Algoritma Multiclass Svm Pada Opini Publik Berbahasa Indonesia Di Twitter,” J. Tekno Kompak, vol. 14, no. 2, p. 86, 2020, doi: 10.33365/jtk.v14i2.792.
M. T. Riaz, M. T. Riaz, A. Rehman, A. A. Bindajam, J. Mallick, and H. G. Abdo, “An integrated approach of support vector machine (SVM) and weight of evidence (WOE) techniques to map groundwater potential and assess water quality,” Sci. Rep., vol. 14, no. 1, 2024, doi: 10.1038/s41598-024-76607-3.
C. Fibriani and D. N. Kristiyani, “Model Klasifikasi Mental Siswa Menggunakan Algoritma Support Vector Machine,” Progresif J. Ilm. Komput., vol. 21, no. 2, p. 472, 2025, doi: 10.35889/progresif.v21i2.2813.
R. M. S. Santos et al., “The Associations Between Screen Time and Mental Health in Adults: A Systematic Review,” J. Technol. Behav. Sci., vol. 9, no. 4, pp. 825–845, 2024, doi: 10.1007/s41347-024-00398-7.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Klasifikasi Kesehatan Mental Menggunakan Support Vector Machine Berdasarkan Screen Time dan Interaksi Sosial Digital
Pages: 2312-2321
Copyright (c) 2026 Pendi Pendi, Heni Sulistiani

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





















