This study addresses the escalating mental health crisis among university students in Kenya, where psychological distress, driven by academic, financial, social, and transitional pressures, is increasingly prevalent yet under-prioritized in public health discourse. While global studies report distress rates exceeding 75% and Kenyan prevalence exceeds 40%, there remains a critical lack of localized, data-driven models to enable early detection in sub-Saharan African university settings. To address this gap, we developed transparent ensemble machine learning models, Random Forest (RF) and Extreme Gradient Boosting (XGBoost), to predict mental health distress levels (low, moderate, high) among 1,128 students across universities in Tharaka Nithi County, Kenya. Using a structured questionnaire incorporating demographic, academic, financial, psychosocial, and Quarter-Life Crisis (QLC) factors, we trained the models on 70% of the data and evaluated them on the remaining 30%. Both models achieved high performance: RF and XGBoost attained 98.8% accuracy (95% CI: 96.9–99.7%), Cohen’s Kappa of 0.978, and multi-class AUCs of 1.000 (RF) and ≥0.997 (XGBoost). Class-specific metrics revealed near-perfect precision, recall, and F1-scores; for high distress, both models achieved 100% sensitivity and specificity, with F1-scores of 1.000 (RF) and 0.988 (XGBoost). SHAP and feature importance analyses identified “Quarter-Life Crisis,” faculty of study (especially Science, Technology, Nursing, and Engineering), personal/mental health history, financial stress, and residence as top predictors. These findings support the use of interpretable AI for equitable, early-risk screening. However, careful attention must be paid to ethical considerations, including data privacy, potential algorithmic bias, and mental health stigma. We recommend integrating such models into university wellness platforms to enable proactive, targeted support for at-risk students.
| Published in | International Journal of Psychological and Brain Sciences (Volume 11, Issue 2) |
| DOI | 10.11648/j.ijpbs.20261102.12 |
| Page(s) | 35-51 |
| Creative Commons |
This is an Open Access article, distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution and reproduction in any medium or format, provided the original work is properly cited. |
| Copyright |
Copyright © The Author(s), 2026. Published by Science Publishing Group |
Ensemble Learning, Mental Health Risk Prediction, Random Forest, XGBoost, Quarter Life Crisis, Explainable AI, University Students
Features | Description | Measurement |
|---|---|---|
Demographic Information | ||
Age | The age category of the student respondent. | Categorical: 1 = 18–20 years, 2 = 21–23 years, 3 = 24–26 years, 4 = Above 26 years |
Gender | The gender of the student respondent. | Categorical: 0 = Female, 1 = Male |
Year of Study | The current academic year of the student. | Categorical: 1 = First Year, 2 = Second Year, 3 = Third Year, 4 = Fourth Year, 5 = Fifth Year |
Faculty | The academic faculty or school to which the student belongs. | Categorical: 1 = Business, 2 = Education, 3 = Environmental Studies, 4 = Engineering, 5 = Science & Technology, 6 = Humanities, 7 = Law, 8 = Nursing |
Relationship Status | The student’s current romantic relationship status. | Categorical: 1 = Single, 2 = Single & Searching, 3 = In a Relationship, 4 = Married |
Residence | The student’s place of residence relative to the university. | Categorical: 1 = Within the School, 2 = Outside the School |
Risk Factors for Mental Health Distress | ||
Academic Pressure | Stress and anxiety are related to academic workload, performance expectations, and fear of failure. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Financial Stress | Worry and anxiety related to tuition fees, living expenses, and student debt. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Social and Environmental Factors | Effects of peer relationships, isolation, and discrimination on mental well-being. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Personal and Family Issues | Stress due to family expectations, romantic relationship problems, and conflicts. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Lifestyle and Health Factors | Impact of poor sleep, substance use, and neglect of physical health. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Transition to University Life | Stress in adapting to a new environment, independence, and routines. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Cultural Identity Factors | Stress from cultural adjustment, discrimination, and balancing beliefs. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Technology and Social Media Use | Negative effects of excessive social media use and online image pressure. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Personal and Mental Health | Influence of chronic illness, weight changes, and stress symptoms. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Quarter-Life Crisis | Anxiety about future uncertainty, milestones, and expectations. | 5-point Likert scale (1 = Strongly Disagree to 5 = Strongly Agree) |
Outcome Variable | ||
Mental Health Distress | Overall psychological distress over the past 30 days. | Derived from Kessler Psychological Distress Scale (K-6): Low (0–4), Moderate (5–12), High (13–24) |
Variable | Raw Alpha | Std Alpha | G6 (SMC) | Average r | S/N | alpha se | Var r | Med r |
|---|---|---|---|---|---|---|---|---|
Academic Pressure | 0.888 | 0.888 | 0.91 | 0.216 | 7.981 | 0.005 | 0.008 | 0.215 |
Financial Stress | 0.889 | 0.89 | 0.91 | 0.217 | 8.044 | 0.005 | 0.009 | 0.217 |
Social Environment | 0.887 | 0.888 | 0.91 | 0.214 | 7.896 | 0.005 | 0.009 | 0.214 |
Personal and Family Issues | 0.886 | 0.886 | 0.909 | 0.212 | 7.81 | 0.005 | 0.008 | 0.211 |
Lifestyle and Health Factors | 0.887 | 0.888 | 0.91 | 0.214 | 7.902 | 0.005 | 0.008 | 0.212 |
Transition to University Life | 0.887 | 0.888 | 0.909 | 0.214 | 7.884 | 0.005 | 0.008 | 0.214 |
Cultural Identity | 0.887 | 0.888 | 0.91 | 0.214 | 7.904 | 0.005 | 0.008 | 0.214 |
Technology and social media | 0.886 | 0.887 | 0.909 | 0.213 | 7.832 | 0.005 | 0.008 | 0.212 |
Personal Health Challenges | 0.887 | 0.887 | 0.91 | 0.213 | 7.857 | 0.005 | 0.008 | 0.213 |
Quarter Life Crisis | 0.887 | 0.888 | 0.91 | 0.215 | 7.936 | 0.005 | 0.008 | 0.214 |
Mean Score | 0.891 | 0.891 | 0.913 | 0.214 | 8.177 | 0.005 | 2.543 | 0.635 |
Sample | Distress | Total | ||
|---|---|---|---|---|
High | Low | Moderate | ||
Test | 30 | 106 | 201 | 337 |
8.9% | 31.5% | 59.6% | 100% | |
30% | 29.8% | 29.9% | 29.9% | |
Train | 70 | 250 | 471 | 791 |
8.8% | 31.6% | 59.5% | 100% | |
70% | 70.2% | 70.1% | 70.1% | |
Total | 100 | 356 | 672 | 1128 |
8.9% | 31.6% | 59.6% | 100% | |
100% | 100% | 100% | 100% | |
Characteristic | High | 95% CI | Low | 95% CI | Moderate | 95% CI | p-value2 |
|---|---|---|---|---|---|---|---|
N = 1001 | N = 3561 | N = 6721 | |||||
Age | <0.001 | ||||||
18-20 years | 16 (16%) | 9.7%, 25% | 120 (34%) | 29%, 39% | 124 (18%) | 16%, 22% | |
21-23 years | 32 (32%) | 23%, 42% | 132 (37%) | 32%, 42% | 276 (41%) | 37%, 45% | |
24-26 years | 36 (36%) | 27%, 46% | 88 (25%) | 20%, 30% | 196 (29%) | 26%, 33% | |
above 26 years | 16 (16%) | 9.7%, 25% | 16 (4.5%) | 2.7%, 7.3% | 76 (11%) | 9.1%, 14% | |
Gender | 0.13 | ||||||
Female | 56 (56%) | 46%, 66% | 160 (45%) | 40%, 50% | 308 (46%) | 42%, 50% | |
Male | 44 (44%) | 34%, 54% | 196 (55%) | 50%, 60% | 364 (54%) | 50%, 58% | |
Relationship | <0.001 | ||||||
Single | 32 (32%) | 23%, 42% | 184 (52%) | 46%, 57% | 256 (38%) | 34%, 42% | |
Single and searching | 20 (20%) | 13%, 29% | 64 (18%) | 14%, 22% | 132 (20%) | 17%, 23% | |
In a relationship | 24 (24%) | 16%, 34% | 76 (21%) | 17%, 26% | 184 (27%) | 24%, 31% | |
Married | 24 (24%) | 16%, 34% | 32 (9.0%) | 6.3%, 13% | 100 (15%) | 12%, 18% | |
Residence | <0.001 | ||||||
Within the School | 32 (32%) | 23%, 42% | 176 (49%) | 44%, 55% | 208 (31%) | 28%, 35% | |
Outside the School | 68 (68%) | 58%, 77% | 180 (51%) | 45%, 56% | 464 (69%) | 65%, 72% |
Characteristic | High | 95% CI | Low | 95% CI | Moderate | 95% CI | p-value2 |
|---|---|---|---|---|---|---|---|
N = 1001 | N = 3561 | N = 6721 | |||||
Year of Study | <0.001 | ||||||
First Year | 12 (12%) | 6.6%, 20% | 116 (33%) | 28%, 38% | 72 (11%) | 8.5%, 13% | |
Second Year | 24 (24%) | 16%, 34% | 92 (26%) | 21%, 31% | 192 (29%) | 25%, 32% | |
Third Year | 16 (16%) | 9.7%, 25% | 60 (17%) | 13%, 21% | 192 (29%) | 25%, 32% | |
Fourth Year | 28 (28%) | 20%, 38% | 64 (18%) | 14%, 22% | 128 (19%) | 16%, 22% | |
Fifth Year | 20 (20%) | 13%, 29% | 24 (6.7%) | 4.5%, 10% | 88 (13%) | 11%, 16% | |
Faculty | <0.001 | ||||||
Business | 8 (8.0%) | 3.8%, 16% | 76 (21%) | 17%, 26% | 132 (20%) | 17%, 23% | |
Education | 20 (20%) | 13%, 29% | 32 (9.0%) | 6.3%, 13% | 136 (20%) | 17%, 24% | |
Environmental Studies | 4 (4.0%) | 1.3%, 11% | 60 (17%) | 13%, 21% | 80 (12%) | 9.6%, 15% | |
Engineering | 16 (16%) | 9.7%, 25% | 24 (6.7%) | 4.5%, 10% | 76 (11%) | 9.1%, 14% | |
Science and Technology | 24 (24%) | 16%, 34% | 72 (20%) | 16%, 25% | 108 (16%) | 13%, 19% | |
Humanities | 0 (0%) | 0.00%, 4.6% | 32 (9.0%) | 6.3%, 13% | 48 (7.1%) | 5.4%, 9.4% | |
Law | 16 (16%) | 9.7%, 25% | 12 (3.4%) | 1.8%, 6.0% | 36 (5.4%) | 3.8%, 7.4% | |
Nursing | 12 (12%) | 6.6%, 20% | 48 (13%) | 10%, 18% | 56 (8.3%) | 6.4%, 11% |
MTRY | Accuracy | Kappa | Accuracy SD | Kappa SD |
|---|---|---|---|---|
2 | 0.9751266 | 0.9527738 | 0.02166036 | 0.04158184 |
3 | 0.982711 | 0.9673928 | 0.01864756 | 0.03522363 |
5 | 0.9848207 | 0.9714572 | 0.01977287 | 0.03705547 |
6 | 0.9848207 | 0.9714572 | 0.01977287 | 0.03705547 |
8 | 0.9839768 | 0.9699281 | 0.02126335 | 0.03972384 |
9 | 0.9839768 | 0.9699281 | 0.02126335 | 0.03972384 |
11 | 0.9835549 | 0.9691574 | 0.0213198 | 0.03981973 |
12 | 0.982711 | 0.9676212 | 0.02216725 | 0.04131741 |
14 | 0.982711 | 0.9676212 | 0.02216725 | 0.04131741 |
16 | 0.9839768 | 0.9699281 | 0.02126335 | 0.03972384 |
ETA | Max Depth | Gamma | Col-sample by Tree | Min child weight | Subsample | N rounds | Accuracy | Kappa | Accuracy SD | Kappa SD |
|---|---|---|---|---|---|---|---|---|---|---|
0.300 | 3.000 | 0.000 | 0.600 | 1.000 | 0.750 | 150.000 | 0.987 | 0.977 | 0.012 | 0.022 |
0.400 | 3.000 | 0.000 | 0.600 | 1.000 | 0.500 | 150.000 | 0.987 | 0.976 | 0.015 | 0.027 |
0.300 | 3.000 | 0.000 | 0.800 | 1.000 | 0.750 | 150.000 | 0.986 | 0.974 | 0.014 | 0.026 |
0.400 | 3.000 | 0.000 | 0.600 | 1.000 | 0.750 | 150.000 | 0.986 | 0.974 | 0.014 | 0.026 |
0.400 | 3.000 | 0.000 | 0.600 | 1.000 | 1.000 | 150.000 | 0.986 | 0.974 | 0.014 | 0.026 |
0.400 | 3.000 | 0.000 | 0.800 | 1.000 | 0.500 | 150.000 | 0.985 | 0.972 | 0.014 | 0.027 |
0.300 | 3.000 | 0.000 | 0.800 | 1.000 | 1.000 | 150.000 | 0.984 | 0.969 | 0.016 | 0.030 |
0.400 | 3.000 | 0.000 | 0.800 | 1.000 | 0.750 | 150.000 | 0.982 | 0.967 | 0.016 | 0.030 |
0.400 | 3.000 | 0.000 | 0.800 | 1.000 | 1.000 | 150.000 | 0.982 | 0.967 | 0.016 | 0.030 |
0.400 | 3.000 | 0.000 | 0.600 | 1.000 | 0.500 | 100.000 | 0.981 | 0.964 | 0.014 | 0.026 |
Metrics | Random Forest | Extreme Gradient Boosting |
|---|---|---|
Accuracy | 0.988 | 0.988 |
95% Confidence Interval | (0.969, 0.997) | (0.969, 0.997) |
No Information Rate | 0.596 | 0.596 |
P-Value (Acc > NIR) | < 2.2e-16 | < 2.2e-16 |
Kappa | 0.978 | 0.978 |
McNemar’s Test P-Value | NA | NA |
Metrics | Random Forest Model | XGBoost | ||||
|---|---|---|---|---|---|---|
High | Low | Moderate | High | Low | Moderate | |
Sensitivity | 1.000 | 1.000 | 0.980 | 1.000 | 1.000 | 0.980 |
Specificity | 1.000 | 0.983 | 1.000 | 1.000 | 0.983 | 1.000 |
PPV | 1.000 | 0.964 | 1.000 | 1.000 | 0.964 | 1.000 |
NPV | 1.000 | 1.000 | 0.971 | 1.000 | 1.000 | 0.971 |
Precision | 1.000 | 0.964 | 1.000 | NA | NA | NA |
Recall | 1.000 | 1.000 | 0.980 | NA | NA | NA |
F1 Score | 1.000 | 0.982 | 0.990 | NA | NA | NA |
Prevalence | 0.089 | 0.315 | 0.596 | 0.089 | 0.315 | 0.596 |
DR | 0.089 | 0.315 | 0.585 | 0.089 | 0.315 | 0.585 |
DP | 0.089 | 0.326 | 0.585 | 0.089 | 0.326 | 0.585 |
BA | 1.000 | 0.991 | 0.990 | 1.000 | 0.991 | 0.990 |
AUC | 1.000 | 1.000 | 1.000 | 1.000 | 0.997 | 0.998 |
QLC | Quarter Life Crisis |
RF | Random Forest |
XGBoost | Extreme Gradient Boosting |
SMOTE | Synthetic Minority Over-sampling Technique |
SHAP | SHapley Additive exPlanations |
AUC | Area Under the Curve |
CI | Confidence Interval |
NIR | No Information Rate |
PPV | Positive Predictive Value |
NPV | Negative Predictive Value |
| [1] | Van de Velde, S., Buffel, V., van der Heijde, C., Çoksan, S., Bracke, P., Abel, T., Busse, H., Zeeb, H., Rabiee-khan, F., Stathopoulou, T., Van Hal, G., Ladner, J., Tavolacci, M., Tholen, R., & Wouters, E. (2021). Depressive symptoms in higher education students during the first wave of the COVID-19 pandemic. An examination of the association with various social risk factors across multiple high- and middle-income countries. SSM - Population Health, 16, 100936. |
| [2] | Caldarelli, G., Pizzini, B., Cosenza, M., & Troncone, A. (2024). The prevalence of mental health conditions and effectiveness of psychological interventions among university students in Italy: A systematic literature review. Psychiatry Research, 342, 116208–116208. |
| [3] | World Health Organization. (2022, March 2). COVID-19 pandemic triggers 25% increase in prevalence of anxiety and depression worldwide. World Health Organization; World Health Organization. |
| [4] | Chang, J.-J., Ji, Y., Li, Y.-H., Pan, H.-F., & Su, P.-Y. (2021). Prevalence of anxiety symptoms and depressive symptoms among college students during the COVID-19 pandemic: A meta-analysis. Journal of Affective Disorders, 292, 242–254. |
| [5] | Beiter, R., Nash, R., McCrady, M., Rhoades, D., Linscomb, M., Clarahan, M., & Sammut, S. (2015). The prevalence and correlates of depression, anxiety, and stress in a sample of college students. Journal of Affective Disorders, 173(1), 90–96. |
| [6] | Hill, M., Farrelly, N., Clarke, C., & Cannon, M. (2020). Student mental health and well-being: Overview and Future Directions. Irish Journal of Psychological Medicine, 41(2), 1–8. |
| [7] | Shatte, A. B. R., Hutchinson, D. M., & Teague, S. J. (2019). Machine learning in mental health: a scoping review of methods and applications. Psychological Medicine, 49(09), 1426–1448. |
| [8] | Lumumba, V., Muriithi, D., & Oundo, M. (2025). Evaluating the Performance of Selected Single Classifiers with Incorporated Explainable Artificial Intelligence (XAI) in the Prediction of Mental Health Distress Among University Students. American Journal of Artificial Intelligence, 9(2), 133–144. |
| [9] | Muriithi, D. K., Lumumba, V. W., Awe, O. O., & Muriithi, D. M. (2025). An Explainable Artificial Intelligence Models for Predicting Malaria Risk in Kenya. European Journal of Artificial Intelligence and Machine Learning, 4(1), 1–8. |
| [10] | Rane, N., Choudhary, S., & Rane, J. (2024). Ensemble Deep Learning and Machine Learning: Applications, Opportunities, Challenges, and Future Directions. Social Science Research Network. |
| [11] | Zhao, S., Zhou, D., Wang, H., Chen, D., & Yu, L. (2025). Enhancing Student Academic Success Prediction Through Ensemble Learning and Image-Based Behavioral Data Transformation. Applied Sciences, 15(3), 1231–1231. |
| [12] | Fatima, S., Hussain, A., Amir, S. B., Ahmed, S. H., & Syed. (2023). XGBoost and Random Forest Algorithms: An in Depth Analysis. Pakistan Journal of Scientific Research, 3(1), 26–31. |
| [13] | Ku, W. L., & Min, H. (2024). Evaluating Machine Learning Stability in Predicting Depression and Anxiety Amidst Subjective Response Errors. Healthcare, 12(6), 625–625. |
| [14] | Kruzan, K. P., Fitzsimmons-Craft, E. E., Dobias, M., Schleider, J. L., & Pratap, A. (2022). Developing, Deploying, and Evaluating Digital Mental Health Interventions in Spaces of Online Help- and Information-Seeking. Procedia Computer Science, 206, 6–22. |
| [15] | Franken, K., Klooster, P. ten, Bohlmeijer, E., Westerhof, G., & Kraiss, J. (2023). Predicting non-improvement of symptoms in daily mental healthcare practice using routinely collected patient-level data: a machine learning approach. Frontiers in Psychiatry, 14. |
| [16] | WHO. (2021, November 17). Mental health of adolescents. Who. int; World Health Organization: WHO. |
| [17] | Mutie, C., Kyalo, I. W., Mulala, K. M., Njeri, K. L., & Mwenda, C. S. M. (2023, August 1). Determinants of Mental Distress Among University Students: A Narrative Review of Global, Regional, and Local Perspectives. Kenyan Journal of Nursing & Midwifery. |
| [18] | Mugotitsa, B., Momanyi, R., Kuria, J., Amadi, D., Masai, J., Angula, E., Tsofa, B., Greenfield, J., Todd, J., & Kiragga, A. (2025). Understanding mental health among university students in Kenya: what role do family support and age play? Frontiers in Public Health, 13. |
| [19] | Simões de Almeida, R., Rodrigues, A., Tavares, S., Barreto, J. F., Marques, A., & Trigueiro, M. J. (2025). Mental Health and Lifestyle Factors Among Higher Education Students: A Cross-Sectional Study. Behavioral Sciences, 15(3), 253. |
| [20] | Njoroge, M., & Omondi, P. (2020). Cultural identity and mental health among Kenyan university students. Kenya Journal of Counseling and Psychotherapy, 24(4), 172-180. |
| [21] | Yoon, E., Lee, R., & Goh, M. (2021). The role of cultural identity in mental health among university students. Journal of Counseling Psychology, 68(4), 479-490. |
| [22] | Patel, V., Saxena, S., Lund, C., Thornicroft, G., Baingana, F., Bolton, P., Chisholm, D., Collins, P. Y., Cooper, J. L., Eaton, J., Herrman, H., Herzallah, M. M., Huang, Y., Jordans, M. J. D., Kleinman, A., Medina-Mora, M. E., Morgan, E., Niaz, U., Omigbodun, O., & Prince, M. (2018). The Lancet Commission on global mental health and sustainable development. The Lancet, 392(10157), 1553–1598. |
| [23] | Thornicroft, G., Deb, T., & Henderson, C. (2016). Community mental health care worldwide: current status and further developments. World Psychiatry, 15(3), 276–286. |
| [24] | Owomugisha, E., Atibuni, D. Z., & Olema, D. K. (2025). Challenges and Implications of Mental Health on Educational Outcomes in Sub-Saharan Africa. East African Journal of Education Studies, 8(3), 84–98. |
| [25] | Oswalt, S. B., Lederer, A. M., & Day, C. (2020). Understanding student mental health in higher education: A review of key issues. Journal of College Student Psychotherapy, 34(2), 83-98. |
| [26] | Tao, S., Dong, Q., & Zhao, X. (2021). Gender differences in student mental health. Journal of Behavioral Health, 10(3), 240-249. |
| [27] | Kim, S. H., & Seo, J. (2021). The effects of academic stress on mental health among university students in East Asia. Educational Review, 73(3), 409-422. |
| [28] | Li, J., Li, L., & Zhang, Y. (2021). Financial stress, student debt, and mental health. Journal of Financial Counseling and Planning, 32(1), 76-92. |
| [29] | Hefner, J., & Eisenberg, D. (2020). Social support and mental health among college students. American Journal of College Health, 61(6), 348-356. |
| [30] | Saleem, S., & Mahmood, Z. (2020). The effects of family expectations on student mental health. Journal of Family Psychology, 34(2), 189-202. |
| [31] | Tripoli, G., Sofia Lo Duca, Ferraro, L., Zahid, U., Mineo, R., Seminerio, F., Bruno, A., Vanessa Di Giorgio, Maniaci, G., Marrazzo, G., Sartorio, C., Scaglione, A., Daniele La Barbera, & Caterina La Cascia. (2023). Lifestyles and Quality of Life of People with Mental Illness During the COVID-19 Pandemic. Community Mental Health Journal. |
| [32] | Berryman, C., Ferguson, C. J., & Negy, C. (2021). Social media use and mental health. Journal of Youth and Adolescence, 49(6), 1217-1236. |
| [33] | Roberts, C., & Chesney, T. (2021). The quarter-life crisis: A developmental perspective. Journal of Adolescent Research, 37(2), 105-120. |
| [34] | Prochaska, J. J., Sung, H.-Y., Max, W., Shi, Y., & Ong, M. (2012). Validity study of the K6 scale as a measure of moderate mental distress based on mental health treatment need and utilization. International Journal of Methods in Psychiatric Research, 21(2), 88–97. |
| [35] | Chen, Y., Zhang, X., Lu, L., Wang, Y., L iu, J., Qin, L., Ye, L., Zhu, J., Shia, B.-C., & Chen, M.-C. (2022). Machine Learning Methods to Identify Predictors of Psychological Distress. Processes, 10(5), 1030–1030. |
| [36] | Chung, J., & Teo, J. (2023). Single classifier vs. ensemble machine learning approaches for mental health prediction. Brain Informatics, 10(1). |
| [37] | Tahseen, S., & Danti, A. (2023). Classification of Psychological Disorders by Feature Ranking and Fusion using Gradient Boosting. International Journal of Advanced Computer Science and Applications/International Journal of Advanced Computer Science & Applications, 14(2). |
| [38] | Alnuaimi, A. F. A. H., & Hasan, T. (2024, April 5). An overview of machine learning classification techniques. ResearchGate; EDP Sciences. |
| [39] | Capili, B. (2021). Cross-Sectional Studies. The American Journal of Nursing/American Journal of Nursing, 121(10), 59–62. |
APA Style
Lumumba, V. W., Muriithi, D. K., Oundo, M. (2026). A Transparent AI-Driven Ensemble Learning Approach for Predicting Mental Health Risks among University Students in Kenya. International Journal of Psychological and Brain Sciences, 11(2), 35-51. https://doi.org/10.11648/j.ijpbs.20261102.12
ACS Style
Lumumba, V. W.; Muriithi, D. K.; Oundo, M. A Transparent AI-Driven Ensemble Learning Approach for Predicting Mental Health Risks among University Students in Kenya. Int. J. Psychol. Brain Sci. 2026, 11(2), 35-51. doi: 10.11648/j.ijpbs.20261102.12
AMA Style
Lumumba VW, Muriithi DK, Oundo M. A Transparent AI-Driven Ensemble Learning Approach for Predicting Mental Health Risks among University Students in Kenya. Int J Psychol Brain Sci. 2026;11(2):35-51. doi: 10.11648/j.ijpbs.20261102.12
@article{10.11648/j.ijpbs.20261102.12,
author = {Victor Wandera Lumumba and Dennis Kariuki Muriithi and Monica Oundo},
title = {A Transparent AI-Driven Ensemble Learning Approach for Predicting Mental Health Risks among University Students in Kenya},
journal = {International Journal of Psychological and Brain Sciences},
volume = {11},
number = {2},
pages = {35-51},
doi = {10.11648/j.ijpbs.20261102.12},
url = {https://doi.org/10.11648/j.ijpbs.20261102.12},
eprint = {https://article.sciencepublishinggroup.com/pdf/10.11648.j.ijpbs.20261102.12},
abstract = {This study addresses the escalating mental health crisis among university students in Kenya, where psychological distress, driven by academic, financial, social, and transitional pressures, is increasingly prevalent yet under-prioritized in public health discourse. While global studies report distress rates exceeding 75% and Kenyan prevalence exceeds 40%, there remains a critical lack of localized, data-driven models to enable early detection in sub-Saharan African university settings. To address this gap, we developed transparent ensemble machine learning models, Random Forest (RF) and Extreme Gradient Boosting (XGBoost), to predict mental health distress levels (low, moderate, high) among 1,128 students across universities in Tharaka Nithi County, Kenya. Using a structured questionnaire incorporating demographic, academic, financial, psychosocial, and Quarter-Life Crisis (QLC) factors, we trained the models on 70% of the data and evaluated them on the remaining 30%. Both models achieved high performance: RF and XGBoost attained 98.8% accuracy (95% CI: 96.9–99.7%), Cohen’s Kappa of 0.978, and multi-class AUCs of 1.000 (RF) and ≥0.997 (XGBoost). Class-specific metrics revealed near-perfect precision, recall, and F1-scores; for high distress, both models achieved 100% sensitivity and specificity, with F1-scores of 1.000 (RF) and 0.988 (XGBoost). SHAP and feature importance analyses identified “Quarter-Life Crisis,” faculty of study (especially Science, Technology, Nursing, and Engineering), personal/mental health history, financial stress, and residence as top predictors. These findings support the use of interpretable AI for equitable, early-risk screening. However, careful attention must be paid to ethical considerations, including data privacy, potential algorithmic bias, and mental health stigma. We recommend integrating such models into university wellness platforms to enable proactive, targeted support for at-risk students.},
year = {2026}
}
TY - JOUR T1 - A Transparent AI-Driven Ensemble Learning Approach for Predicting Mental Health Risks among University Students in Kenya AU - Victor Wandera Lumumba AU - Dennis Kariuki Muriithi AU - Monica Oundo Y1 - 2026/08/20 PY - 2026 N1 - https://doi.org/10.11648/j.ijpbs.20261102.12 DO - 10.11648/j.ijpbs.20261102.12 T2 - International Journal of Psychological and Brain Sciences JF - International Journal of Psychological and Brain Sciences JO - International Journal of Psychological and Brain Sciences SP - 35 EP - 51 PB - Science Publishing Group SN - 2575-1573 UR - https://doi.org/10.11648/j.ijpbs.20261102.12 AB - This study addresses the escalating mental health crisis among university students in Kenya, where psychological distress, driven by academic, financial, social, and transitional pressures, is increasingly prevalent yet under-prioritized in public health discourse. While global studies report distress rates exceeding 75% and Kenyan prevalence exceeds 40%, there remains a critical lack of localized, data-driven models to enable early detection in sub-Saharan African university settings. To address this gap, we developed transparent ensemble machine learning models, Random Forest (RF) and Extreme Gradient Boosting (XGBoost), to predict mental health distress levels (low, moderate, high) among 1,128 students across universities in Tharaka Nithi County, Kenya. Using a structured questionnaire incorporating demographic, academic, financial, psychosocial, and Quarter-Life Crisis (QLC) factors, we trained the models on 70% of the data and evaluated them on the remaining 30%. Both models achieved high performance: RF and XGBoost attained 98.8% accuracy (95% CI: 96.9–99.7%), Cohen’s Kappa of 0.978, and multi-class AUCs of 1.000 (RF) and ≥0.997 (XGBoost). Class-specific metrics revealed near-perfect precision, recall, and F1-scores; for high distress, both models achieved 100% sensitivity and specificity, with F1-scores of 1.000 (RF) and 0.988 (XGBoost). SHAP and feature importance analyses identified “Quarter-Life Crisis,” faculty of study (especially Science, Technology, Nursing, and Engineering), personal/mental health history, financial stress, and residence as top predictors. These findings support the use of interpretable AI for equitable, early-risk screening. However, careful attention must be paid to ethical considerations, including data privacy, potential algorithmic bias, and mental health stigma. We recommend integrating such models into university wellness platforms to enable proactive, targeted support for at-risk students. VL - 11 IS - 2 ER -