• Users Online: 858
  • Print this page
  • Email this page
Year : 2022  |  Volume : 5  |  Issue : 2  |  Page : 75-84

Comparison of the performance of machine learning-based algorithms for predicting depression and anxiety among University Students in Bangladesh: A result of the first wave of the COVID-19 pandemic

1 Quality Services and Compliance, Square Pharmaceutical Limited, Dhaka, Bangladesh
2 Department of Statistics, Jagannath University, Dhaka, Bangladesh
3 Department of Training, Eskayef Pharmaceuticals Limited, Dhaka, Bangladesh
4 Department of Pharmacy, East West University, Dhaka, Bangladesh
5 Department of Agricultural Statistics, Sher-e-Bangla Agricultural University, Dhaka, Bangladesh
6 Department of Pharmacology and Toxicology, Sher-e-Bangla Agricultural University, Dhaka, Bangladesh
7 Department of Statistics, Tejgaon College, Dhaka, Bangladesh

Correspondence Address:
Iqramul Haq
Department of Agricultural Statistics, Sher-e-Bangla Agricultural University, Dhaka 1207
Login to access the Email id

Source of Support: None, Conflict of Interest: None

DOI: 10.4103/shb.shb_38_22

Rights and Permissions

Introduction: The purpose of this research was to predict mental illness among university students using various machine learning (ML) algorithms. Methods: A structured questionnaire-based online survey was conducted on 2121 university students (private and public) living in Bangladesh. After obtaining informed consent, the participants completed a web-based survey examining sociodemographic variables and behavioral tests (including the Patient Health Questionnaire (PHQ-9) scale and the Generalized Anxiety Disorder Assessment-7 scale). This study applied six well-known ML algorithms, namely logistic regression, random forest (RF), support vector machine (SVM), linear discriminate analysis, K-nearest neighbors, Naïve Bayes, and which were used to predict mental illness among university students from Dhaka city in Bangladesh. Results: Of the 2121 eligible respondents, 45% were male and 55% were female, and approximately 76.9% were 21–25 years old. The prevalence of severe depression and severe anxiety was higher for women than for men. Based on various performance parameters, the results of the accuracy assessment showed that RF outperformed other models for the prediction of depression (89% accuracy), while SVM provided the best result than other models for the prediction of anxiety (91.49% accuracy). Conclusion: Based on these findings, we recommend that the RF algorithm and the SVM algorithm were more moderate than any other ML algorithm used in this study to predict the mental health status of university students in Bangladesh (depression and anxiety, respectively). Finally, this study proposes to apply RF and SVM classification when the prediction of mental illness status is the core interest.

Print this article     Email this article
 Next article
 Previous article
 Table of Contents

 Similar in PUBMED
   Search Pubmed for
   Search in Google Scholar for
 Related articles
 Citation Manager
 Access Statistics
 Reader Comments
 Email Alert *
 Add to My List *
 * Requires registration (Free)

 Article Access Statistics
    PDF Downloaded563    
    Comments [Add]    

Recommend this journal