Introduction

The spread of the coronavirus disease 2019 (COVID-19) pandemic worldwide in early 2020 had an immense impact on all socioeconomic sectors, including education1. Following the declaration of the COVID-19 pandemic in March 2020 by the World Health Organization (WHO), world leaders were faced with the challenge of maintaining the normal operation of different sectors amid the pandemic2. The first approach used by both heavily and minimally affected countries was to impose a total or partial lockdown in order to minimize the spread of COVID-193. Education institutions, including universities and colleges, were among the most affected as the students were caught by surprise with the sudden halt of classes and the requirement to stay at home for an unknown period of time1,4,5. However, in most developed countries, teaching and assessments were shifted online1. This was not the case in most developing countries due to the lack of developed and resilient digital technology at universities4,5. As a results, students in developing countries faced uncertainty regarding the continuation of their studies and when they would be able to resume their academic life6.

During the COVID-19 pandemic, the younger population including university students were clinically not regarded as a risky or vulnerable population, however, there was a great concern about their mental health as a result of the pandemic7,8,9,10. To date, in various parts of the world, especially in developed countries, studies have shown that there is an increase in mental health conditions, such as stress, anxiety, and depression11,12,13,14,15,16,17. Given the fact that mental health conditions among university students were also prevalent even before the COVID-19 pandemic18,19,20, the evidence shows that the pandemic has increased its prevalence and magnitude21,22.

Since the onset of the COVID-19 pandemic, the study of mental health among students has been given great attention in social science research. Various studies conducted around the globe have documented the detrimental effect of the pandemic on diverse aspects of mental well-being among students of from diverse groups. According to these studies, stress, anxiety, and depression were the main mental health conditions reported among students in higher learning institutions during the pandemic23. For instance, a cross-sectional study conducted in countries of Eastern Europe, the Middle East, and South America, involving 2349 university students revealed that the average prevalence of stress, depression, and generalized anxiety symptoms was 61.3%, 40.3%, and 30%, respectively12. In the United Kingdom, one study found that more than 50% of university students experienced high levels of anxiety and depression above the clinical cut-offs. This was due to low levels of resilience as a result of lockdown-related isolation and restrictions13. In China, a large cross-sectional survey during early 2020 among 821,218 college students reported that the prevalence rates of acute stress, depression, and anxiety symptoms were 34.0%, 21.1%, and 11.0, respectively14. Furthermore, a systematic review and meta-analysis of cross-sectional studies in China revealed that the pooled prevalence of anxiety symptoms was 25.0% (95% CI 21–29%, p < 0.001) among college students15. In Africa, there have been few studies that reported the mental health impact of to COVID-19 pandemic among university students24,25. In South Africa, the prevalence of anxiety and depression during lockdown was 45.6% and 35.0%, respectively16. In Uganda, one study reported a significantly higher prevalence of depression (80.7%), anxiety (98.4%), and stress (77.9%) as a result of the pandemic17.

The majority of the research on the mental health impact due to COVID-19 pandemic has been carried out in Europe, China, and North America compared to African countries including Tanzania24,25. Furthermore, few African countries including Tanzania imposed partial or total lockdowns in the first wave of the pandemic and lifted the lockdown in the subsequent waves3. This was because the federal government was unable to support and maintain the socioeconomic activities of the citizens due to poverty3. In this accord, together with other factors, the prevalence and magnitude of mental health among students of higher learning institutions due to the impact of the pandemic in African countries have been different from other countries across the world25,26.

Tanzania had a unique approach to the COVID-19 pandemic: a brief total lockdown in the first wave of the pandemic followed by unscientific denial of the pandemic and resuming of normal life27,28,29. The denial of the existence of the pandemic had a strong political influence and enforcement and hence it was very difficult to conduct social science studies on the impact of the COVID-19 pandemic27,28,29. It was then, in late 2021 when the government re-declared the existence of the pandemic and implemented the rollout of the COVID-19 vaccines30. Therefore, the impact of the COVID-19 pandemic on mental health among university students in Tanzania can have a different picture if compared to other countries context within Africa and across the world. To date, less is known about the impact of the COVID-19 pandemic on the mental health of the general population including students in higher learning institutions in Tanzania. Therefore, the current study sought to determine the prevalence and the factors associated with mental health conditions among university students in Tanzania during the COVID-19 pandemic.

Materials and methods

Study design

A descriptive-analytical cross-sectional study (online survey) was conducted from January to March 2022.

Study participants and study setting

Medical students were recruited from six (three public and three private) medical universities in Tanzania. The public universities are (i) The University of Dodoma (UDOM), (ii) Muhimbili University of Health and Allied Sciences (MUHAS), (iii) University of Dar Es Salaam (UDSM-Mbeya) while the private universities are (iv) Catholic University of Health and Allied Sciences (CUHAS), (v) Hubert Kairuki Memorial University (HKMU) and (vi) St. Francis University College of Health and Allied Sciences (SFUCHAS). These medical universities are located in the five major cities in Tanzania which are Dar es Salaam, Dodoma, Mbeya, Morogoro, and Mwanza.

Sample size and sampling procedures

The sample size was determined by using a single population proportion by taking the prevalence of mental distress 45.9%; a study reported from University of Gondar, Northern Ethiopia31 with; a 5% margin of error, 95% confidence, population size of 5010 and assuming 20% nonresponse rate. Finally, a sample size of 426 medical students were achieved.

Recruitment, enrolment, and data collection

In Tanzania, each medical university enroll about 135 to 200 student per year (an average of 167 students per year). As medical school in Tanzania taking 5 years, therefore a total average of 835 students per each university was estimated. For the six universities involved in this study brings a total population size of 5010 medical students. To determine the representative sample, authors considered sending email invitation to at least 1/10th of the medical students in Tanzania (0.1 × 5010 = 501). Therefore. email invitations with a link to a voluntary, de-identified survey were sent to 501 medical students. The information from all medical students remained anonymous to ensure the confidentiality and reliability of the data. Medical students who accepted the invitation to take part in the study clicked the link to complete the online questionnaire.

Data collection and tools

The online questionnaire consisted of three sections; university students’ demographic information, academic profile (type of university and students’ current academic year), and information regarding symptoms of mental health disorders during the COVID-19 pandemic., DASS 21 questions were used to assess for the presence of symptoms related to mental health disorders. The original DASS comprised 42 items on a four-point Likert scale to assess the negative emotional states of depression, anxiety, and stress, with 14 questions for each subscale. However, Henry and Crawford in 2005, developed and validated a shorter version of the DASS, known as DASS 21, which comprised 21 items, where each of its sub-scales of depression, anxiety, and stress contained seven items.

The online English version of self-administered questionnaires was used during data collection because the study population used the English language which is the media of communication for medical training in Tanzania. The use of online questionnaires helps simplify the process of data collection as it saves time, is cheap, more affordable, and easily accessible.

This questionnaire included two sections. The first part contained the personal characteristics of the study participants such as age, marital status, year of the study, name of university, etc. The second section included information on the short form of the Depression, Anxiety, and Stress scale (DASS-21) which consists of 21 items that have been divided into three subscales of anxiety, stress, and depression, each with seven items. The subscale for depression assessed inadequacy, dissatisfaction, hopelessness, devaluation, and inertia. The subscale for anxiety is used to assess acute responses to fear as well as physical and mental symptoms of anxiety, while the stress subscale evaluates tension, restlessness, irritability, and difficulty relaxing. Questions 3, 5, 10, 13, 16, 17, and 21 form the depression scale; questions 2, 4, 7, 9, 15, 19, and 20 form the anxiety scale while questions 1, 6, 8, 11, 12, 14, and 18 are covered in stress scale. The sum of the scores for each sub-seven scale’s items was used to assess the presence and absence of depression, anxiety, and stress. The presence of depression, anxiety, and stress were indicated by a sum of scores ≥ 10, ≥ 8, and ≥ 15 respectively. The details regarding DASS 21 cut-off points for conventional severity labels are indicated in Table 1.

Table 1 Summary of suggested cut-off scores for conventional severity labels in DASS 21.

Validity and reliability of DASS 21

The reliability was tested by calculating the overall Cronbach’s alpha of the DASS 21 which was 0.92, indicating excellent internal consistency, while the Cronbach’s alpha of each sub-scale (Depression = 0.76, anxiety = 0.86, and stress = 0.87 (Supplementary Table 1).

Measurement of variables

Outcome variables

Mental health disorders were considered if study participants were identified to have symptoms related to (i) Depression, (ii) Anxiety, and (iii) Stress based on DAS 21. Each of these three had a sub-seven scale containing seven factors rated from 0 to 3 on a Likert scale (0: “Did not apply to me at all,” 1: “Applied to me to some degree or some of the time,” 2: “Applied to me to a considerable degree or a good part of the time,” and 3: “Applied to me very much or most of the time”).

Medical students who fall under moderate, severe, or extremely severe groups in each sub-seven scale were considered as having depression, anxiety, or stress. In addition, medical students with any of these three were regarded as having mental health disorders.

Independent variables

In this study age was grouped into four categories which are “18–21,” “22–25,” “26–29” and “30 or more”. Year level of study was grouped into “first,” “second,” “third,” “fourth,” and “fifth”. Marital status was categorized as “single” and “married/cohabiting”. The university type was categorized as “public” for government-owned universities and “private” for private and faith-based universities. Clinical rotation “Yes” for medical students in the fourth or fifth year (attached in the hospital) and “No" for first, second, and third year who doing basic sciences. Lastly, vaccination status was coded as vaccinated for those who reported having been vaccinated with any type of vaccine against COVID-19.

Data processing and statistical analysis

Data was cleaned, edited, coded, and analyzed by using STATA version 17. During descriptive analysis, continuous variables were summarized using median and interquartile (IQR) while categorical variables were summarized using proportions, then presented in tables and graphs. Furthermore, a series of individual unadjusted logistics regression analyses were constructed across all three outcome variables; depression (model 1a), anxiety (model 2a), and stress (model 3a). Thereafter, all independent variables that showed an association with P < 0.2 from each unadjusted model were eligible for inclusion in their corresponding multivariable logistics regression analyses (model 1b, 2b, and 3b). All models were fitted using a stepwise (backward) elimination method and P < 0.05 was taken to indicate statistical significance. The odds ratio (OR) and 95% confidence interval (95% CI) for each variable were computed and used to measure the association with the outcome variables.

Ethical statement

The ethical approval to conduct this study was obtained from the Ethical Research Committee of the University of Dodoma (reference MA.84/261/02 dated 17th January 2022). All study participants signed written informed consent and agreed to the publishing of their anonymized data. This study did not expose study participants to unnecessary risks. Confidentiality was kept at all levels of the study; it was assured by excluding names and identifiers in the questionnaire and the data were used only for this study purpose. The study was conducted by the guidelines and regulations of the Declaration of Helsinki.

Results

Respondents’ characteristics

As presented in Table 2, out of 501 who were invited a total of 425 medical students responded, completed the online questionnaire and their information was included in the analysis. The median age (IQR) of the respondents was 24 (22–26) years. More than a quarter (27.3%) of the respondents were living with their spouse at the time of the pandemic. Nearly 80% of the respondents were from publicly owned universities. Furthermore, more than half of the respondents reported having been vaccinated against COVID-19.

Table 2 Percent distribution of medical students by selected background characteristics, Tanzania, 2021 (n = 425).

Prevalence of mental health disorder

Table 3 shows the percentage distribution of depression, anxiety, stress, and any form of mental health disorders among medical students in Tanzania. Most of the respondents presented with normal ranges for depression (44%), anxiety (36%), and stress (77%) compared to other ranges. However, a significant proportion of 29%, 54% and 15% of respondents clinically presented with depression, anxiety, and stress respectively. Furthermore, nearly 60% of respondents clinically presented with any form of the above mental disorders.

Table 3 Prevalence estimates of depression, anxiety, and stress among medical students during the COVID-19 pandemic, Tanzania, 2021 (n = 425). Significant values are in bold.

Predictors of mental health disorders

Table 4 shows the results of a series of logistic regression models to examine the associations between selected independent variables and mental health disorders. For depression, model 1a and the corresponding model 1b that adjusted for all selected factors from model 1a, the odds of having depression were nearly six times higher for years four and five and two times higher for married/cohabiting respondents compared to their counterparts. For anxiety, model 2a and the corresponding model 2b that adjusted for all selected factors from model 2a, the odds of having anxiety were two times higher for married/cohabiting respondents and those from privately owned universities compared to their counterparts. For stress, model 3a and the corresponding model 3b that adjusted for all selected factors from model 3a, the odds of having stress were three times higher for respondents from privately owned universities compared to their counterparts. For having any mental disorders, model 4a and the corresponding model 4b that adjusted for all selected factors from model 4a, the odds for having any mental health disorders were almost three times higher for married/cohabiting respondents, two times higher for those from privately owned universities and those who are in clinical rotations compared to their counterparts.

Table 4 logistics regression models for factors associated with different types of mental health disorders among medical students during COVID-19 pandemic, Tanzania, 2021 (n = 425). Significant values are in bold.

Discussion

In general, the academic life and job descriptions of medical students necessitate the utilization of patients who sometimes present with infectious conditions to comprehend diverse medical conditions and their appropriate management. This exacerbates their vulnerability to mental health disorders such as depression, anxiety, and stress. In addition, situations such as pandemic of highly infectious and fatal diseases such as COVID-19 may augment the detrimental effects experienced by medical students during their learning process32,33. Therefore, the current study aimed to assess the mental health status among medical students in Tanzania during the COVID-19 pandemic. The findings from the current study revealed high proportions (nearly 60%) of respondents had clinical symptoms related either to depression, anxiety, or stress. Furthermore, it revealed that being in the fourth/fifth year (clinical rotation), living with a partner, and studying in private universities were significant predictors of presenting symptoms related to mental health disorders.

The observed high proportion of symptoms related to mental health disorders among medical students in the current study is lower than that observed in other studies conducted in Egypt32 and Sudan34. The observed disparities in findings between current and previous studies might be due to differences in the type and number of tools used to assess symptoms of mental health disorders. The current study assessed depression, anxiety, and stress using single tool namely DASS-21, while the study in Egypt utilized two tools DASS-21 and the Impact of Event Stress Scale-Revised (IES-R). Hence, the aforementioned approach increased the sensitivity to identify individuals with symptoms related to mental health disorders. Furthermore, it is plausible that the disparity in findings between these studies may be attributable to the absence of lockdown as a measure to prevent the spread of COVID-19 infection in Tanzania, as compared to Egypt, Sudan, and other African nations. This assertion is substantiated by the findings of previous studies that have demonstrated that the implementation of a lockdown strategy to fight against COVID-19 infection has been associated with reported instances of mental health disorders such as depression, anxiety, and stress35,36. Furthermore, it is possible that the disparities may be attributable to variations in the socio-political context. The medical students in Sudan were subjected to social instability, economic suffering, and changes in the political environment. All of these situations, together with the COVID-19 pandemic, resulted in frequent and prolonged closures of public institutions including universities and colleges. The high proportion of symptoms related to mental health disorders among medical students in these studies calls on local authorities and international agencies to design appropriate immediate interventions for curbing this burden.

The current study shows that of the three assessed mental health disorders, the majority of medical students had symptoms related to anxiety (54%). This pattern is similar to that reported in previous studies conducted in Palestine, although it reported a high proportion of anxiety (89%)37 and Pakistani (88%)38. The patterns of anxiety being highly prevalent compared to depression and stress might be observed even in the general population. This has been demonstrated by previous systematic and meta-analyses, which observed similar patterns in the general population39. Furthermore, the current and previous studies utilized the psychometric scale DASS-21 to assess symptoms related to mental health disorders. As a results, they are more likely to capture a similar tendency irrespective of the settings or study populations. These findings suggest that anxiety is more prevalent than depression and stress not only among medical students or during COVID-19 but also among the general population and even before the pandemic.

The current study also assessed the factors associated with having symptoms of mental health disorders among medical students during the COVID-19 pandemic. The findings showed that being in clinical rotation during the pandemic was associated with having symptoms related to mental health disorders. In Tanzania, the majority of these students are in the fourth and fifth years of their studies, and as a result, they are six times more likely to experience depression compared to pre-clinical students (first to third year). Nonetheless, this observation contrasts with from the findings of previous study conducted among medical students in Peru, which revealed that pre-clinical students were more likely to experience symptoms related to mental health disorders40. This is supported by the findings from other study that suggested that mental health problems in medical students are more frequent during the early years of their schooling and decreases as their education progresses41. The observed differences may be due to differences in the medical school lifestyles between the study areas. In Tanzania, medical students are easily adapting the teaching styles during the pre-clinical that is not much different from high school education. However, previous studies have indicated that pre-clinical medical students may encounter certain challenges, possibly owing to relocation and a lack of medical school experience, which may have been negatively impacted by the COVID-19 pandemic, resulting in prominent symptoms related to mental health disorders even during the initial stage of their university schooling40,42.

Furthermore, the current study revealed that living with a partner (married/cohabiting) was significantly associated with having symptoms related to depression and anxiety. to the reason for this could be that being closer to someone such as a spouse increases the risk of COVID-19 transmission, as spouses spend more time together. This might have increased the fear of being contracted with this disease for medical students who were living with partners considering there was no lockdown in Tanzania during the pandemic. Therefore, were more likely to present with symptoms related to depression and anxiety during the COVID-19 pandemic compared to single individuals. This finding is supported by previous studies43,44 which suggested that living with close family members such as a spouse increases the risk of depression and anxiety among healthcare workers. However, these findings contradict those reported from other previous studies which suggested that single individuals were more likely to present with symptoms related to depression and anxiety45,46.

Last but not least, our study has highlighted that being medical students in private universities increased the likelihood of having symptoms related to anxiety and stress. This might be due to fear of freezing or lockdown which could have resulted in repayment of tuition fees which are nearly four times higher in private universities compared to public ones. Several previous studies have reported similar findings47,48.

To the best of our knowledge, this is the first study in Tanzania to assess mental health status among medical students who were required to continue learning even in a terrifying situation such as the COVID-19 pandemic. The inclusion of both private and public universities across all zones of Tanzania ensures that the collected data is representative. This implies a high degree of generalizability and accuracy in characterizing the mental health status among medical students during the COVID-19 pandemic in Tanzania.

Nonetheless, the cross-sectional nature of the study presents a limitation, as it failed to document whether the exposures occurred prior to the outcome, which could have affected the observed association. Furthermore, the utilization of the validated DASS-21 tool based on general populations of the United Kingdom (UK) possible might have introduced measurement variance owing to the absence of cross-cultural equivalence of the items. Therefore, it is important to interpret the present findings with caution. In addition, there might be possibility of misclassification bias due to the use of an arbitrary approach to dichotomize the outcome variables. This might have either under or overestimated the prevalence of outcome variables and their associations with independent variables.

Conclusions

The findings from the current study indicate the need for regular checkups for medical students regarding their mental health status. Additionally, it recommends to the government and other stakeholders to establish mental health services within the universities to effectively mitigate the rising burden of mental health problems among universities in Tanzania and other countries with similar settings. Furthermore, medical students especially those in their clinical rotations (fourth and fifth year) should be given mental health education to expand their sense of self-esteem so that they can easily adapt in case they face difficult situations during their medical school programs such as the COVID-19 pandemic. This might be an effective way to manage symptoms related to mental health disorders among medical students in Tanzania.