Journal of Science Technology and Education
Vol 2 No 1 (2026): February

Early Detection of Mental Health on Social Media Using Bidirectional Architecture LSTM and Word Embedding

Pasha Khatami Hasibuan (Universitas Negeri Yogyakarta)



Article Info

Publish Date
20 Apr 2026

Abstract

Linguistic digital footprints on social media platforms have transformed into psychological biomarkers that offer real-time mental health screening opportunities. However, the main challenge in automated clinical text processing is semantic ambiguity and class imbalances (imbalanced datasets) that lead to predictive bias in conventional models. This study aims to develop a multiclass classification system for seven mental health categories (including Suicidal, Biopolar, and Anxiety) using a Deep Learning approach. The proposed method integrates Bidirectional Long Short-Term Memory (Bi-LSTM) architecture with Word Embedding to capture the context of a two-way narrative, as well as apply Class Weighting techniques to address data distribution disparities. The experiment was conducted on a public dataset containing 52,680 text entries. The test results showed that the model was able to overcome the majority bias very effectively, as evidenced by the high Recall values in critical classes such as Biopolar (0.84) and Suicidal (0.76), as well as an F1-Score of 0.91 in the Normal class. This study concludes that the Bi-LSTM architecture with adaptive class weighting is able to be an early warning system that is sensitive to high-risk disturbance signals.

Copyrights © 2026






Journal Info

Abbrev

JSTE

Publisher

Subject

Chemical Engineering, Chemistry & Bioengineering Computer Science & IT Education Electrical & Electronics Engineering Engineering

Description

Journal Of Science and Education (JSTE) is a scientific journal that was established in 2025. JSTE accepts scientific papers in the form of research reports (original research papers) with a focus on the development of issues of Science, Technology and Education in Indonesia. JSTE collaborates with ...