Bulletin of Computer Science Research
Vol. 6 No. 2 (2026): February 2026

Identifikasi Indikasi Risiko Depresi pada Unggahan Media Sosial X Menggunakan Natural Language Processing dan Algoritma Random Forest

Arif Siswandi (Universitas Pelita Bangsa, Bekasi)
Arif Susilo (Universitas Pelita Bangsa, Bekasi)



Article Info

Publish Date
28 Feb 2026

Abstract

Depression among university students has become an important mental health concern due to its potential impact on quality of life and academic performance. Social media platform X, as a text-based communication medium, provides a space for spontaneous expression that may reflect users’ emotional states. This study aims to analyze linguistic patterns associated with indicative depressive expressions in social media posts using a Natural Language Processing (NLP) approach and the Random Forest algorithm. Data were collected through web scraping between January and November 2024 using keywords conceptually derived from the Patient Health Questionnaire-9 (PHQ-9) indicators and adapted to linguistic expressions commonly used in social media communication. From an initial collection of 36,081 posts, several filtering stages were conducted, including duplicate removal, language filtering, and elimination of irrelevant content, resulting in a final dataset of 1,070 posts used in this study. The high filtering rate indicates that many scraped posts did not directly represent relevant emotional expressions. The dataset was manually labeled into three indicative categories of depressive expressions: mild, moderate, and severe. The analytical process included text preprocessing, TF-IDF feature extraction, and classification modeling using the Random Forest algorithm. The evaluation results show an accuracy of 97%. However, this value should be interpreted cautiously because model performance may be influenced by dataset characteristics and the manual labeling process. Therefore, the proposed model should be regarded as an exploratory approach for identifying linguistic patterns associated with emotional expressions in social media text rather than a clinical diagnostic tool for depression.

Copyrights © 2026






Journal Info

Abbrev

bulletincsr

Publisher

Subject

Computer Science & IT

Description

Bulletin of Computer Science Research covers the whole spectrum of Computer Science, which includes, but is not limited to : • Artificial Immune Systems, Ant Colonies, and Swarm Intelligence • Bayesian Networks and Probabilistic Reasoning • Biologically Inspired Intelligence • Brain-Computer ...