Prediksi Kesehatan Mental Remaja Berdasarkan Faktor Lingkungan Sekolah Menggunakan Machine Learning
Abstract
Adolescent mental health is a crucial aspect that affects academic performance, social relationships, and overall well-being. The school environment is one of the primary factors influencing adolescents' mental conditions. This study aims to predict adolescent mental health levels based on school environmental factors using the Random Forest algorithm. Data were collected from 229 adolescents in Lhokseumawe and categorized into four classes of mental health conditions. The research methodology includes data preprocessing, model training, and performance evaluation using accuracy and other relevant metrics. The results show that the model achieved an accuracy of 80.43%, with the highest F1-score of 0.90 in the category indicating no mental health issues. Feature importance analysis identified loneliness, feelings of worthlessness, academic pressure, and home-related stress as the most influential factors in the predictions. While the model effectively classified most data, some misclassifications occurred at certain mental health levels. Thus, the Random Forest model proves to be an effective predictive tool for detecting potential adolescent mental health issues. The findings of this study can serve as a reference for educational institutions in designing more targeted intervention strategies to support adolescent mental well-being.
References
dan Salvia, “Analisis Kesehatan Mental Mahasiswa Perguruan Tinggi Pada Awal Terjangkitnya Covid-19 di Indonesia,” Jurnal Citizenship Virtues, vol. 2021, no. 2, pp. 83–97.
who.int, “Mental health,” who.int.
O. Shisana, D. J. Stein, N. P. Zungu, and G. Wolvaardt, “The rationale for South Africa to prioritise mental health care as a critical aspect of overall health care,” Compr Psychiatry, vol. 130, Apr. 2024, doi: 10.1016/j.comppsych.2024.152458.
who.int, “Mental health of adolescents,” who.int.
kemenpppa.go.id, “Kolaborasi KemenPPPA dan UNICEF: Sinergikan Dukungan Kesehatan Mental dan Psikososial di Kementerian dan Lembaga,” kemenpppa.go.id.
M. Fikry, Bustami, and E. Suzanna, “IOT-Based Environmental Monitoring and Its Implications For Student Mental Health”, RGSA, vol. 19, no. 2, p. e011183, Feb. 2025.
E. Long, C. Zucca, and H. Sweeting, “School Climate, Peer Relationships, and Adolescent Mental Health: A Social Ecological Perspective,” Youth Soc, vol. 53, no. 8, pp. 1400–1415, Nov. 2021, doi: 10.1177/0044118X20970232.
U. Chourasia, S. Tendulkar, K. Gogia, N. Beerakayala, and K. Sumit, “Health Impact of School Built Environment on Children,” National Journal of Community Medicine, vol. 14, no. 9, pp. 618–623, Sep. 2023, doi: 10.55489/njcm.140920233063.
M. Fikry and S. Inoue, "Optimizing Forecasted Activity Notifications with Reinforcement Learning," Sensors, vol. 23, no. 14, p. 6510, 2023.
N. Moningka, M. Hafidurrohman, and W. R. Ajri Tri, “Klasifikasi Mental Mahasiswa Menggunakan Metode Machine Learning,” 2023. [Online]. Available: https://www.kaggle.com/datasets/shariful07/student-mental-
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
S. Sza et al., “PENERAPAN DECISION TREE DAN RANDOM FOREST DALAM DETEKSI TINGKAT STRES MANUSIA BERDASARKAN KONDISI TIDUR”, doi: 10.25126/jtiik.2024117993.
S. Oleh, “KLASIFIKASI KESEHATAN MENTAL USIA REMAJA MENGGUNAKAN ALGORITMA DECISION TREE DAN NAÏVE BAYES.”
S. Sinikumpu, J. Jokelainen, K. Tasanen, M. Timonen, and L. Huilaja, “Association of Rosacea With Depressive and Anxiety Symptoms: A General Population Study,” Dermatology, vol. 240, no. 2, pp. 189–194, 2023, doi: 10.1159/000535034.
M. Rodríguez-Barragán et al., “Validation and psychometric properties of the spanish version of the hopkins symptom checklist-25 scale for depression detection in primary care,” Int J Environ Res Public Health, vol. 18, no. 15, Aug. 2021, doi: 10.3390/ijerph18157843.
H. Dwi Putra, L. Khairani, D. Hastari, P. Studi Sistem Informasi, F. Sains dan Teknologi, and C. Author, “SENTIMAS: Seminar Nasional Penelitian dan Pengabdian Masyarakat Comparison of Naive Bayes Classifier and Support Vector Machine Algorithms for Classifying Student Mental Health Data Perbandingan Algoritma Naive Bayes Classifier dan Support Vector Machine untuk Klasifikasi Data Kesehatan Mental Mahasiswa.” [Online]. Available: https://journal.irpi.or.id/index.php/sentimas
E. S. Mohamed, T. A. Naqishbandi, S. A. C. Bukhari, I. Rauf, V. Sawrikar, and A. Hussain, “A hybrid mental health prediction model using Support Vector Machine, Multilayer Perceptron, and Random Forest algorithms,” Healthcare Analytics, vol. 3, Nov. 2023, doi: 10.1016/j.health.2023.100185.
D. Deasyanti and F. Muzdalifah, “Kesehatan mental mahasiswa ditinjau dari two continua model: Pengujian multiple analysis of variance,” Persona:Jurnal Psikologi Indonesia, vol. 10, no. 1, pp. 147–166, Jun. 2021, doi: 10.30996/persona.v10i1.4660.
S. Park, P. Bangirana, E. Mupere, R. I. Baluku, E. S. Helgeson, and S. E. Cusick, “Association of COVID-19-related perceptions and experiences with depression and anxiety in Ugandan caregivers of young children with malaria and iron deficiency: A cross-sectional study,” PLoS One, vol. 19, no. 12, Dec. 2024, doi: 10.1371/journal.pone.0314409.
R. Zhou et al., “Prediction Model for Infectious Disease Health Literacy Based on Synthetic Minority Oversampling Technique Algorithm,” Comput Math Methods Med, vol. 2022, 2022, doi: 10.1155/2022/8498159.
U. J. Ganai, S. Sachdev, and B. Bhushan, “Predictive modelling of stress, anxiety and depression: A network analysis and machine learning study,” British Journal of Clinical Psychology, vol. 63, no. 4, pp. 522–542, Nov. 2024, doi: https://doi.org/10.1111/bjc.12487.
N. Acharya, P. Kar, M. Ally, and J. Soar, “Predicting Co-Occurring Mental Health and Substance Use Disorders in Women: An Automated Machine Learning Approach,” Applied Sciences (Switzerland), vol. 14, no. 4, Feb. 2024, doi: 10.3390/app14041630.
A. H. Januansyah, M. Fikry, and Y. Afrillia, “Machine Learning Algorithms Comparison for Gender Identification,” p. 7, 2024, doi: 10.29103/micoms.v4.2024.
Jubeile Mark Baladjay, Nisce Riva, Ladine Ashley Santos, Dan Michael Cortez, Criselle Centeno, and Ariel Antwaun Rolando Sison, “Performance evaluation of random forest algorithm for automating classification of mathematics question items,” World Journal of Advanced Research and Reviews, vol. 18, no. 2, pp. 034–043, May 2023, doi: 10.30574/wjarr.2023.18.2.0762.
DOI: https://doi.org/10.30591/jpit.v10i2.8556
Refbacks

This work is licensed under a Creative Commons Attribution 4.0 International License.
JPIT INDEXED BY
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | |

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








