Griya Journal of Mathematics Education and Application
Vol. 6 No. 3 (2026): September 2026

Student Mental Health Risk Classification Using Random Forest and BERTopic: A Tabular and Text Analysis Approach

Fairuz Arya Bagus Pramana Arya (Military Mathematic Student, FMIPA, Indonesian Defense University, Bogor)
Rumadi Rumadi (Research Center For Data And Information Sains, Badan Riset Dan Informasi Nasional)
Dian Anggraini (Military Mathematic Lecturer, FMIPA, Indonesian Defense University, Bogor)



Article Info

Publish Date
22 Sep 2026

Abstract

Student mental health has become a critical issue affecting academic performance and quality of life. Many previous studies have only used numerical data and have not explored textual data that reflects students' subjective conditions. This study develops a classification model using Random Forest on tabular data to predict the risk of student mental health issues. The dataset consists of 500 students with a training-to-testing data split of 80:20. The model uses features such as academic performance, sleep patterns, and psychological scores. The results show that the model achieves a macro F1 Score of 0.90 despite class imbalance. The most influential variables are depression scores, stress levels, and anxiety. In addition, the BERTopic method was used separately to analyze text data and identify thematic patterns from student responses. However, not all topics generated were directly related to mental health. The model also has limitations in detecting minority classes due to data imbalance. This study provides a classification approach supported by text analysis to comprehensively understand students' mental health conditions.

Copyrights © 2026






Journal Info

Abbrev

Griya

Publisher

Subject

Education Mathematics

Description

Griya Journal of Mathematics Education and Application adalah Jurnal Matematika dan Pendidikan Matematika yang dikelola oleh Program Studi S1 Pendidikan Matematika Universitas Mataram. Fokus dan ruang lingkup dari jurnal ini adalah artikel ilmiah baik berupa hasil penelitian, review artikel maupun ...