...

Start Your Academic Journey With Us!

Choose your program, complete the quick enrollment form, and our admissions team will guide you through every step.

Information

Follow Us

Predicting Student Depression using Machine Learning: A Comparative Analysis of Machine Learning Algorithms for Early Depression Detection in Students

author-img admin April 28, 2026 No Comments
  • Abdimalik Osman HassanICT Department, MyBank LTD Mogadishu. Somalia
  • Ismail Mohamed JamalJamhuriya University of Science and Technology
  • Shuab Daud AhmedJamhuriya University of Science and Technology
  • Abdifatah Ugas AbdullahiJamhuriya University of Science and Technology Mogadishu. Somalia

DOI:

https://doi.org/10.63094/AITUSRJ.25.4.1.4

Keywords:

Depression Prediction, Machine Learning Models, Logistic Regression, Random Forest, Support Vector Machine , SVM, SMOTE , Synthetic Minority Oversampling Technique , Academic Stress, Financial Stress

Abstract

Depression among students is emerging as a problem that seriously impairs their academic performance, personal life, and future career prospects. The authors apply machine learning to predict possibilities for depression among students with consideration of a number of personal, academic, and lifestyle variables. Different model types were tried, including logistic regression, random forest, and support vector machine. The performances of all these were checked; among all these, logistic regression yielded the best results with 85% accuracy, and all precision, recall, and F1-score values were also pretty well-balanced. Class imbalance was addressed using SMOTE to improve sensitivity for the model on underrepresented classes. Some of the actionable points to come out of this were focused counseling and support programs by mental health organizations within educational institutions. It also illustrated the use of machine learning, which makes the handling proactive as far as mental health challenges are concerned and opens wider vistas for applications both in the educational and healthcare fields.

References

X.-Q. Liu, Y.-X. Guo, W.-J. Zhang, and W.-J. Gao, “Influencing factors, prediction and prevention of depression in college students: A literature review,” WJP, vol. 12, no. 7, pp. 860–873, Jul. 2022, doi: 10.5498/wjp.v12.i7.860.

K. Hueniken et al., “Machine Learning–Based Predictive Modeling of Anxiety and Depressive Symptoms During 8 Months of the COVID-19 Global Pandemic: Repeated Cross-sectional Survey Study,” JMIR Ment Health, vol. 8, no. 11, p. e32876, Nov. 2021, doi: 10.2196/32876.

M. Firoz, M. M. Islam, M. Shidujaman, A. Islam, and Md. T. Habib, “University student’s mental stress detection using machine learning,” in Seventh International Conference on Mechatronics and Intelligent Robotics (ICMIR 2023), S. Patnaik and T. Shen, Eds., Kunming, China: SPIE, Sep. 2023, p. 113. doi: 10.1117/12.2690039.

R. Ahuja and A. Banga, “Mental Stress Detection in University Students using Machine Learning Algorithms,” Procedia Computer Science, vol. 152, pp. 349–353, 2019, doi: 10.1016/j.procs.2019.05.007.

S. Inamdar, R. Chapekar, S. Gite, and B. Pradhan, “Machine Learning Driven Mental Stress Detection on Reddit Posts Using Natural Language Processing,” HumCent Intell Syst, vol. 3, no. 2, pp. 80–91, Mar. 2023, doi: 10.1007/s44230-023-00020-8.

G. Deena, A. Sandhya, and K. Raja, “MACHINE LEARNING-BASED CLASSIFICATION AND PREDICTION OF STUDENT STRESS LEVELS: A COMPARATIVE STUDY OF ALGORITHMS,”. Vol., no. 19.

S. Ibbad, L. A. Baig, Z. Ahmer, and F. Shahid, “Prevalence of anxiety and depression in high school students of Karachi, Pakistan,” Pak J Med Sci, vol. 38, no. 4, Mar. 2022, doi: 10.12669/pjms.38.4.5093.

E. M. Arias, J. Parraga-Alava, and D. Z. Montenegro, “Stress Detection among Higher Education Students: A Comprehensive Systematic Review of Machine Learning Approaches,” in 2024 Tenth International Conference on eDemocracy & eGovernment (ICEDEG), Lucerne, Switzerland: IEEE, Jun. 2024, pp. 1–8. doi: 10.1109/ICEDEG61611.2024.10702055.

S. Sawangarreerak and P. Thanathamathee, “Random Forest with Sampling Techniques for Handling Imbalanced Prediction of University Student Depression,” Information, vol. 11, no. 11, p. 519, Nov. 2020, doi: 10.3390/info11110519.

P. Chikersal et al., “Detecting Depression and Predicting its Onset Using Longitudinal Symptoms Captured by Passive Sensing: A Machine Learning Approach With Robust Feature Selection,” ACM Trans. Comput.-Hum. Interact., vol. 28, no. 1, pp. 1–41, Feb. 2021, doi: 10.1145/3422821.

J. C. Cassady, E. E. Pierson, and J. M. Starling, “Predicting Student Depression With Measures of General and Academic Anxieties,” Front. Educ., vol. 4, p. 11, Feb. 2019, doi: 10.3389/feduc.2019.00011.

M. Faramarzi and S. Khafri, “Role of Alexithymia, Anxiety, and Depression in Predicting Self-Efficacy in Academic Students,” The Scientific World Journal, vol. 2017, pp. 1–7, 2017, doi: 10.1155/2017/5798372.

R. Wang et al., “Tracking Depression Dynamics in College Students Using Mobile Phone and Wearable Sensing,” Proc. ACM Interact. Mob. Wearable Ubiquitous Technol., vol. 2, no. 1, pp. 1–26, Mar. 2018, doi: 10.1145/3191775.

N. B. Serin, O. Serin, and L. F. Özba¸s, “Predicting university students’ life satisfaction by their anxiety and depression level,” Procedia – Social and Behavioral Sciences, vol. 9, pp. 579–582, 2010, doi: 10.1016/j.sbspro.2010.12.200.

A. Singh, K. Singh, A. Kumar, A. Shrivastava, and S. Kumar, “Machine Learning Algorithms for Detecting Mental Stress in College Students,” in 2024 IEEE 9th International Conference for Convergence in Technology (I2CT), Apr. 2024, pp. 1–5. doi: 10.1109/I2CT61223.2024.10544243.

Uchechi Shirley Anaduaka, Ayomide Oluwaseyi Oladosu, Samantha Katsande, Clinton Sekyere Frempong, Success Awuku-Amador, “Leveraging Artificial Intelligence in the Prediction, Diagnosis and Treatment of Perinatal Depression and Anxiety: A Systematic Review,” BMJ Mental Health, vol. 28, no. 1, Article e301445, 2025. DOI: 10.1136/bmjment-2024-301445.

Evi Zafeiridi, Malik Muhammad Qirtas, Eleanor Bantry White, Dirk Pesch, “Using Passive Sensing to Identify Depression,” in Lecture Notes in Computer Science, vol. 14129, 2024, pp. 132–143. DOI: 10.1007/978-3-031-73741-1_9.

Gazi Hasan Al Masud, Rejaul Islam Shanto, Ishmam Sakin, Muhammad Rafsan Kabir, “Effective Depression Detection and Interpretation: Integrating Machine Learning, Deep Learning, Language Models, and Explainable AI,” Array, vol. 10, no. 2, pp. 78–89, 2025. DOI: 10.1016/j.array.2025.100375.

Article Link:

https://ojs.aitusrj.org/files/article/view/46

American International Theism University is a  Religious institution that meets the requirements found in Section 1005.06(1)(f), Florida Statutes and Rule 6E-5.001, Florida Administrative Code are not under the jurisdiction or purview of the Commission for Independent Education and are not required to obtain licensure.

Follow Us

Contact Us

Got Questions? Call us

Our Newsletter

Enter your email and we’ll send you
more information