Machine learning-based mental health risk prediction and behavioural clustering among Malaysian undergraduates

Muhammad Noor Mathivanan, Norsyela and Debbie Foo, Yong Xi and Gerard Chong, Soon Lee and Shamsudin, Siti Fazilah and P. Jamison, Marizkays (2026) Machine learning-based mental health risk prediction and behavioural clustering among Malaysian undergraduates. Malaysian Journal of Computing (MJoC), 11 (2): 9. pp. 2619-2639. ISSN 2600-8238
Identification Number (DOI): 10.24191/mjoc.v11i2.12105
Abstract

Mental health issues among undergraduate students have become increasingly prevalent, affecting emotional well-being, academic performance, and overall quality of life. The growing number of students experiencing stress, anxiety, and depression highlights the need for effective predictive models to support early risk identification and personalized intervention strategies. This study investigates the performance of several machine learning approaches, including Logistic Regression (LR), Random Forest (RF), Gradient Boosting, LightGBM, Extra Trees, XGBoost, Support Vector Classifier (SVC), and a stacked ensemble model for predicting mental health risk among Malaysian undergraduate students. The study utilizes a dataset comprising demographic, academic, lifestyle, and psychological assessment attributes collected through structured self-assessment questionnaires. Model performance was evaluated using 10-fold cross-validation based on accuracy, precision, recall, and Macro F1-score metrics. Results indicate that Logistic Regression and Random Forest achieved superior predictive performance compared to other individual models and were subsequently integrated into a stacked ensemble framework to further improve classification capability. In addition, clustering analysis identified distinct behavioural characteristics among students with moderate and severe mental health risk levels. The findings highlight the potential of integrating predictive analytics and behavioural clustering in intelligent mental health support systems. This study contributes to the growing field of machine learning applications in mental health analytics and provides valuable insights for higher education institutions in supporting undergraduate well-being.

Item Details
Edit Item
Edit Item
Downloads & Files
[thumbnail of 149248.pdf]
Text
149248.pdf
Download (1MB)
Indexing & Metrics