Computer Science and Information Technologies
Vol 6, No 3: November 2025

A machine learning approach for early prediction of mental health crises

Chigagure, Hassan (Unknown)
Sakala, Lucy Charity (Unknown)



Article Info

Publish Date
01 Nov 2025

Abstract

The global mental health crisis, intensified by the COVID-19 pandemic, placed unprecedented strain on healthcare systems and highlighted the urgent need for proactive crisis prevention strategies. This study investigated the effectiveness of various machine learning (ML) models in predicting mental health crises within 28 days post-hospitalization, leveraging an eight-year longitudinal dataset. Multiple data preprocessing techniques, including feature selection (EFSA, RFECV), imputation, and class imbalance handling (SMOTE, Tomek links), were systematically applied to enhance model performance. Six traditional classifiers—logistic regression, support vector machine, k-nearest neighbors, naive Bayes, XGBoost, and AdaBoost—were evaluated alongside ensemble learning (EL) methods (bagging, boosting, stacking). Performance metrics such as accuracy, precision, recall, F1 score, and AUC-ROC were used for comprehensive assessment. Results demonstrated that ensemble methods, particularly boosting and bagging, consistently achieved high predictive accuracy (up to 93%), with XGBoost and AdaBoost emerging as top performers. Feature selection and class imbalance techniques further improved model robustness and generalizability. The findings underscored the potential of ML-driven approaches for early identification of at-risk patients, enabling more effective resource allocation and timely interventions in mental health care. Recommendations for integrating these predictive tools into clinical workflows were discussed to support data-driven decision-making.

Copyrights © 2025






Journal Info

Abbrev

csit

Publisher

Subject

Computer Science & IT Engineering

Description

Computer Science and Information Technologies ISSN 2722-323X, e-ISSN 2722-3221 is an open access, peer-reviewed international journal that publish original research article, review papers, short communications that will have an immediate impact on the ongoing research in all areas of Computer ...