Analysis of Adolescent Depression Tendencies in Social Media Use with the Random Forest Algorithm

Authors:

Abstract
This study examines the impact of social media on depression tendencies among adolescents in Bali using the Random Forest algorithm with Regression, focusing on usage intensity and addiction. Given the high suicide rates in Bali, the study aims to understand the relationship between social media and mental health and propose algorithm-based solutions. The methodology includes problem identification, data collection, data mining processing, and Random Forest model evaluation. Results show a strong negative correlation between social media addiction and mental health (-0.6257) and a moderate negative correlation with depression (-0.339636). Addiction scores (29.00) more significantly affect sleep quality and mental health (35.33) compared to usage frequency, with high predictive accuracy (R-squared mental health: 0.38, Mean Squared Error: 33.18; sleep quality: 0.19, Mean Squared Error: 1.22). Recommendations include limiting social media use (maximum 2 hours/day) and addressing addiction through counseling and digital awareness programs.