Introduction

With more than 150,000 new infections per year [1], South Africa is home to the world’s largest population of people living with HIV (PLWH) [2]. Compared to other age cohorts, adolescents and young adults (AYA) experience worse HIV clinical outcomes, including high mortality rates [3] and lower rates of antiretroviral therapy initiation [4], antiretroviral adherence [5, 6] and viral suppression [4, 6]. In addition to navigating an inherent set of challenges related to the transition from childhood into adulthood (i.e. becoming self-sufficient, engaging in identity formation) [7,8,9], AYA living with HIV face disproportionate socioeconomic (lack of economic independence, difficulty accessing clinics), and psychological (difficulty adapting to sustained medication, higher rates of stigma), barriers that may complicate HIV care initiation and antiretroviral therapy (ART) adherence [5, 10]. These barriers may not only contribute to poor HIV clinical outcomes but may also manifest in the high rates of poor psychological well-being observed among AYA living with HIV [11,12,13,14,15,16]. A particularly acute barrier recently faced by AYA was national lockdowns due to COVID-19, which may have further contributed to poor psychological outcomes in this population.

Indeed, the psychological well-being of AYA living with HIV may have been further impacted by the numerous disruptions related to the COVID-19 pandemic and subsequent infection control measures [1718], which disrupted access to mental health care, social support networks, and employment opportunities [19,20,21,22,23]. These effects may have been particularly pronounced in South Africa, which in March 2020 instituted a stringent lockdown involving the banning of nonessential travel outside of the home, the closure of schools and businesses, and a prohibition on all public gatherings [24, 25]. The initial five-week lockdown was followed by the implementation of a staged system of social and economic restrictions that ended only in April 2022 and whose stringency depended on provincial rates of COVID-19 infection. The economic toll of the lockdown measures included the loss of an estimated 3 million jobs [26], predominantly affecting South Africans from key and vulnerable populations, including PLWH [27,28,29]. Given both AYA with HIV’s high pre-pandemic baseline levels of food insecurity and unemployment [30,31,32] and the disproportionate effect of COVID-19-related employment losses on young South Africans [33], there is therefore reason to believe that measures of socioeconomic vulnerability, such as food insecurity and unemployment, may have increased among young PLWH during the pandemic.

Social stress theory (SST) provides a useful framework for understanding how macrolevel economic processes occurring during the pandemic may have influenced stress processes at the individual level, thus promoting differential levels of psychological well-being across social groups [34]. According to the social stress framework, economic disturbances, such as those experienced during the COVID-19 pandemic, may lead to individually experienced life-events (unemployment, food insecurity) that in turn may promote psychological stress. These macrolevel processes are thought to provoke psychological stress primarily through social and structural factors, potentially through dependency on income for survival and the negative effects of disadvantaged social status [35]. However, social stress theory also holds that the degree to which these economic disruptions promote poor psychological and social functioning depends greatly on the distribution of social vulnerabilities; that is, the relationship between economic disruption and psychological distress is moderated greatly by one’s health, sociodemographic, and other personal characteristics (e.g., physical health, gender, and ability to cope). Based on social stress theory, our study sampled young South African adults who were newly diagnosed with HIV, who were posited to be at particular risk of poor psychological outcomes related to COVID-19 induced disturbances.

To our knowledge, there have been a dearth of studies evaluating the socioeconomic vulnerability of AYA living with HIV during the COVID-19 pandemic. While several studies have elucidated the effect of social distancing and isolation on depression and anxiety [36,37,38], few have evaluated the degree to which COVID-19-related economic disruptions affected psychological functioning in youth living with HIV. Considering that depression [39], anxiety [40], and self-esteem [41] have been found to be directly associated with worse HIV clinical outcomes, it is critical to understand the broader structural forces affecting psychological and social functioning in AYA living with HIV during the COVID-19 pandemic.

To determine the relationships among the COVID-19 pandemic, individual socioeconomic variables, and psychological well-being of AYA ages 18–24 living with HIV, this secondary analysis sought to (1) compare levels of food insecurity and unemployment between cohorts of AYAs newly diagnosed with HIV either before (2018–2019) or during the COVID-19 pandemic (2020–2022) ; (2) determine whether key baseline demographic factors are predictors of individual socioeconomic variables such as food insecurity and unemployment; and (3) determine whether food insecurity and unemployment mediated the relationship between time of diagnosis in relation to the COVID-19 pandemic and psychological well-being. In particular, we hypothesized that relative to AYA diagnosed with HIV before the pandemic, those diagnosed during the pandemic would exhibit higher levels of food insecurity and unemployment. In addition, based on SST’s premise that macrolevel economic disruptions can provoke psychological distress, we hypothesized that food insecurity and unemployment would significantly mediate the relationship between time of diagnosis and psychological well-being in this population.

Methods

Population

The data for this secondary analysis come from a sequential prospective cohort study conducted in 2018–2019 and a subsequent pilot randomized controlled trial conducted in 2020–2022, which was conducted as part of a larger study called Standing Tall (NIH 1R34MH114897-01A1). The first study was conducted in Cape Town in, and the second study was conducted in Cape Town and East London, South Africa. Both studies recruited 100 newly diagnosed HIV positive participants aged 18–24 years. The data for these analyses were drawn from baseline surveys, which were conducted at the time of enrollment in both studies.

Participants in the first study were recruited from community-based centers and well-established mobile clinics operating in and around several communities in Cape Town. The mobile clinics offered a variety of services including family planning, HIV testing and counseling, and STI testing and treatment. Participants in the second study were recruited from the same mobile clinics operating in and around Cape Town, in addition to three clinics in the East London area.

To be eligible for participation in the studies, individuals had to present to mobile testing clinics or physical clinics and be newly diagnosed with HIV, be ART naïve, speak English and/or isiXhosa, and reside in the Cape Town or East London (for the second study) metro areas. Individuals were eligible for participation in the first study if they resided in out of five communities in the Western Cape (Langa, Mfuleni, Philippi, Dunoon, and Joe Slovo) whereas participants in the second study were eligible if they resided in either one of these five communities or two in East London (Gompo, Duncan Village). Individuals who were currently pregnant or diagnosed with TB disease, and persons under the age of 18 years were excluded. AYAs unable to understand the informed consent process were also excluded. Individuals in the pre-COVID cohort were recruited between 2018 and 2019 and those in the during-COVID cohort were recruited between 2020 and 2022.

This study was approved by the Partners Healthcare Institutional Review Board at Brigham and Women’s Hospital and Massachusetts General Hospital, Harvard Medical School, Boston, MA and the Human Research Ethics Committee at the University of Cape Town, South Africa and was conducted in compliance with applicable laws and regulations. Informed consent was obtained from all participants engaging in both studies. Written informed consent was obtained in isiXhosa and/or English, To facilitate understanding among participants, all consent forms were read aloud to participants in the language of their choice.

Measures

Primary predictors

Time of diagnosis in relation to the pandemic was the primary predictor in our mediation analyses. Based on the trial in which they participated, study participants were categorized into dichotomous pre- (2018–2019) and during-COVID (2020–2022) groups. While our sample size was not powered for a longitudinal analysis of trends across the pre-pandemic and intra-pandemic cohorts, all participants recruited in the pre- and post-pandemic cohorts were recruited before and during South Africa’s COVID-19 era National State of Disaster [37] such that our dichotomization accurately reflects diagnosis before or after COVID-19 related economic and social restrictions were implemented. While there was a degree of heterogeneity in the exact COVID-19 related economic and social restrictions implemented across the 2020–2022 period [4243], data from the period does suggest that the economic effects of the COVID-19 pandemic lingered throughout the study period, with employment levels only recovering to pre-pandemic levels in late 2023 [44].

Additional dichotomous baseline characteristics included as predictor variables in our analysis included: age (≥ 21 years vs. <21 years), gender (male vs. female), education level (did not complete high school vs. completed high school) and living status (alone vs. with others). All o these variables were used as dichotomous predictor variables in our bivariate logistic regression analysis.

Psychological outcomes

Three psychological measures were assessed in this analysis.

  1. 1.

    Depressive symptoms. The 9-question Patient Health Questionnaire (PHQ-9) was utilized to measure the severity of depressive symptomsOnly baseline measures were used in this study. The 9 items assess symptoms associated with the diagnosis of clinical depression. The PHQ-9 has validity and reliability when used among PLWH in sub-Saharan Africa [45]. Responses on each item range from 0 (‘not at all’) to 3 (‘nearly every day’). Higher scores reflect greater degrees of depressive symptoms, with scores ≥ 10 indicating moderate-severe depressive symptoms. In this analysis, we used the continuous PHQ-9 total score. Cronbach’s alpha for the PHQ-9 questionnaire was ⍺ = 0.920.

  2. 2.

    Generalized anxiety symptoms. The 7-item Generalized Anxiety Disorder (GAD-7) Scale was used to identify symptoms of generalized anxiety disorder (GAD) and determine the severity of symptoms known to be associated with GAD [46]. The GAD-7 has demonstrated construct validity and reliability when used in the South African context [47]. Responses to each item range from 0 (‘not at all’) to 3 (‘nearly every day’), with total scores ranging from 0 to 21. Higher scores reflect a greater degree of anxiety symptoms, with scores ≥ 10 reflecting moderate-severe anxiety symptoms. In our analyses, continuous GAD-7 total scores were used. Cronbach’s alpha for the GAD-7 questionnaire was ⍺ = 0.886.

  3. 3.

    Self-esteem. The Rosenberg Self-Esteem Scale (RSES) was used to evaluate individual self-esteem [48]. The RSES scale has demonstrated psychometric validity within the South African context [49]. All items are answered using a 4-point Likert scale with scores ranging from 1 (‘strongly disagree’) to 4 (‘strongly agree’). Five of the items, reflecting negative feelings about the self, are reverse scored and totaled with the other items to create a composite score. Total RSES scores were utilized as a continuous outcome variable throughout the study. Lower scores indicate higher degrees of self-esteem/self-efficacy. Cronbach’s alpha for the RSES questionnaire was ⍺ = 0.724.

Economic variables

Two measures of socioeconomic vulnerability were assessed at baseline.

  1. 1.

    Food insecurity was divided into three separate domains, including food anxiety, insufficient quality, and insufficient quantity. Each of the items representing these three domains were taken from the Household Food Insecurity Access Scale (HFIAS), which asks respondents to recall whether they have experienced different aspects of food insecurity, including feelings of anxiety over food and perceptions that food is of insufficient quantity and quality (including diversity or nutritional preference), within a recall period of 30 days (4 weeks) [50]. The validity and reliability of the scale has been demonstrated in several diverse contexts [51,52,53]. All items are answered using a 4-point Likert scale format with answers ranging from 1 (‘never,’ i.e., 0 times a month ) to 4 (‘often,’ i.e., 10x or more per month), with total scores ranging from 3 to 12. Answers to each domain were dichotomized to create a binary variable presenting high (‘often,’ ‘sometimes’) or low (‘rarely,’ ‘never’) levels of anxiety, insufficient quality, and insufficient intake. In our logistic regression analysis, total food insecurity was dichotomized into high food insecurity (scores ≥ 6, indicating that the participant experienced food insecurity more than 1-2x in the past month) and low food insecurity (scores ≤ 6, indicating that the participant experienced food insecurity on average less than 1-2x in the past month).

  2. 2.

    Employment status was treated as a categorical variable based on responses to the question ‘are you currently employed’?. In this analysis, employment was treated both as binned dichotomous variable (employed vs. unemployed).

Covariates

Our directed acyclic graph (DAG) analysis did not identify any covariates that could reasonably act as confounders of the relationship between time of diagnosis and our psychological outcomes of interest. Covariates analyzed via the DAG method included age, gender, education level, and living status.

Statistical analysis

Descriptive statistics were used to describe study participants’ baseline demographic and economic characteristics. For dichotomous characteristics, chi-square tests of association were conducted to determine whether a statistically significant association existed between time of diagnosis (pre- vs. during-COVID-19) and each demographic and economic characteristic (age, gender, education level, living status, employment, and food insecurity). For continuous characteristics, a two-sided independent sample t-test was utilized to evaluate whether means were statistically different between the two cohorts.

Following aggregation of the two datasets, bivariate logistic regression analysis was performed in which four dichotomous socio-demographic predictor variables (e.g., age, gender, living status, and education level) were used to predict dichotomous levels of food insecurity (high/low) and unemployment (yes/no). Odds ratios (OR) were calculated to determine the constant effect of our predictors on the likelihood of an outcome (i.e. having food insecurity or unemployment). The Wald test was used to determine the statistical significance of each of the predictor variables.

Mediation analyses, informed by Baron and Kenny [54], were conducted to test the mediation effect of each of our economic variables on the association between time of diagnosis and our four continuous psychological outcomes (see Fig. 1). First, the direct effect of time of diagnosis on each psychological outcome was determined (path c). Next, we determined whether time of diagnosis significantly predicted our mediator of interest (path a). Then, we determined whether our mediator of interest predicted our psychological outcome (path b). Finally, we determined if time of diagnosis remained a significant predictor of each psychological outcome after controlling for our mediator of interest (path c’). Full mediation occurs when the association between predictor and outcome is no longer statistically significant, whereas partial mediation occurs if the strength of association is reduced but still significant. The Sobel test was used to determine whether the mediating effects of each economic variable was statistically significant [55]. All data analyses were completed in the year 2024.

All analyses were conducted using SPSS 29.0.1.1.

Fig. 1
figure 1

Diagram of proposed mediation model

Results

All 200 of our participants identified as Black African and identified English or isiXhosa as their preferred language. The median age of the pre- and during-COVID cohorts were 22 (IQR: 19–23) and 21 (IQR: 19–22), respectively. Mean ages were similar in each study cohort (21.17 years in the pre-COVID cohort vs. 20.68 years in the during-COVID cohort, p = 0.078). Gender breakdown (χ2 = 0.207, p > 0.05), education level (χ2 = 0.322, p = 0.570), and living status (χ2 = 3.269, p = 0.071) was not significantly associated with time of diagnosis (Table 1).

In terms of economic characteristics of our two cohorts, there was no statistically significant association between employment status and time of diagnosis (χ2 = 1.339, p = 0.247). However, being diagnosed during the pandemic was significantly associated with less reported food anxiety (χ2 = 78.95, p < 0.001), less reported insufficient food quality (χ2 = 46.07, p < 0.001), and less insufficient food quantity (χ2 = 52.35, p < 0.001).

Table 1 Demographic and economic characteristics of young adults newly diagnosed with HIV by time of diagnosis (pre- vs. during-COVID)

In bivariate regression analyses (Table 2), female participants had a 62.6% lower odds of reporting high food insecurity than male participants (OR 0.374, CI 0.156–0.899, p = 0.028). Female gender (OR 2.778, CI 1.088–7.095, p = 0.033) and living alone (OR 4.666, CI 1.793–12.138, p = 0.002) were associated with significantly greater odds of unemployment whereas completing high school was associated with significantly lower odds of unemployment (OR 0.333, CI 0.142, 0.784, p = 0.012).

Table 2 Logistic regression models of relationship between demographic variables and economic variables (n = 200)

Results from the mediation analyses evaluating the effect of our mediator on the relationship between our economic variables (food anxiety, insufficient food quality, and insufficient food quantity, and unemployment) and each of our three psychological outcomes are presented in Tables 3 and 4. Being diagnosed with HIV during the COVID-19 pandemic did not significantly predict depressive symptoms as measured by PHQ-9 scores (β = 0.214, p = 0.748) or anxiety symptoms as measured by GAD-7 scores (β = 0.325, p = 0.586). However, diagnosis during the COVID-19 pandemic did predict higher self-esteem, which was associated with lower RSES scores (β=-5.409, p = < 0.001) (Table 3).

Partial mediation of the relationship between time of diagnosis and PHQ-9 score was observed when food anxiety (Sobel z = -3.87, p < 0.001), insufficient food quality (Sobel z = -3.13, p = 0.0017), and insufficient food quality (Sobel z = -2.12, p = 0.034) were included in our regression model (Table 3). Similarly, food anxiety (z=-3.75, p < 0.001), insufficient food quality (-3.16, p = 0.0016), and insufficient food quantity (z=-2.61, p = 0.0091) all exhibited a partial mediation effect on the relationship between time of diagnosis and GAD-7 scores. In addition, partial mediation of the relationship between study cohort and self-esteem (RSES scores) were observed when food anxiety (Sobel z = -2.11, p = 0.035), insufficient food quality (Sobel z = -2.40, p = 0.017), and insufficient food quantity (Sobel z = -3.07, p = 0.002) were included in our model (Table 3).

Unemployment did not exhibit a significant mediation effect on the relationship between time of diagnosis and any of our psychological variables.

Table 3 Simple mediation analysis for relationship between time of diagnosis and PHQ-9 scores, GAD-7 scores, and RSES scores
Table 4 Simple mediation analysis of relationship between time of diagnosis and RSES scores

Discussion

The major aims of this analysis were to compare the socioeconomic vulnerability of a pre- and during-COVID-19 cohort of newly diagnosed AYA living with HIV and to determine whether measures of socioeconomic vulnerability mediated the relationship between time of diagnosis and psychological well-being. Although it was hypothesized that diagnosis during the COVID-19 pandemic would be associated with poorer socioeconomic vulnerability [20, 26], the results of our analyses of baseline food insecurity and unemployment demonstrated that diagnosis during the pandemic was associated with a significantly lower level of reported food anxiety, insufficient food quality, and insufficient food quantity. No association was found between time of diagnosis and unemployment.

Concordant with our predictions based on social stress theory, our mediation analyses revealed that higher levels of food insecurity significantly predicted higher levels of depressive symptoms, anxiety symptoms, and lower self-esteem. Although diagnosis during the pandemic predicted only higher self-esteem, lower levels of food insecurity were associated with better overall psychological functioning. On the other hand, unemployment was not a significant predictor of any of our psychological outcomes. Interestingly, our results thus suggest that food security may have a more profound impact on psychological outcomes than employment status in this population. On the whole, while our findings do not indicate a relationship between unemployment and poor psychological well-being in this population, they do lend support to a previously identified relationship between food insecurity and indicators of poor psychological well-being known to be related to HIV treatment outcomes [5657].

Our results also add to our understanding of the understudied and likely complex relationships among the pandemic, macrolevel economic disruptions, and psychological outcomes among newly diagnosed young South Africans living with HIV. First, they suggest that at least among this population of urban youth newly diagnosed with HIV, reported food anxiety and insufficient food quality and quantity decreased during the COVID-19 pandemic, despite a background of increased unemployment [58, 59] and food insecurity in South Africa overall [28, 5860]. Though surprising, data collected by the South African government during the pre- and during-COVID-19 time periods does suggest some degree of heterogeneity in the effects of the pandemic on food insecurity, with some provinces experiencing greater food insecurity and others demonstrating declines during the pandemic [61].

Conceivably this lower food insecurity observed in our intra-pandemic cohort may be explained by the disproportionate insulating effect of pandemic-era government transfer payments on the income of poor, unemployed South Africans [59], who composed the majority of both of our cohorts. Indeed, in April 2020, South Africa’s government instituted both a series of existing grant top-ups in addition to a new Social Relief of Distress Grant of R350 ($21), which was offered to South Africans aged 18 and above who were already unemployed or who had lost employment due to the country’s lockdown [62]. Given that over 8 million economically vulnerable South Africans benefited from this 41 billion rand ($2.4 billion USD) social assistance package [63], it is plausible that the receipt of these grants had a particularly protective effect on our economically disadvantaged population of AYA. This increase in government support may have been complemented by both the efforts of local nongovernmental organizations, which engaged in extensive community outreach to alleviate intrapandemic food insecurity through the distribution of food and food vouchers [6465], and a notable increase in household agricultural production during the COVID-19 pandemic [48]. Thus, while our results may point to the well-documented efficacy of South Africa’s robust system of unconditional cash transfer payments [58, 66,67,68,69] on hunger [70], nongovernmental and individual efforts may have also contributed to the decline observed within this population.

Our findings suggest that the decrease in food insecurity, whether through an expanded social safety net, nongovernmental support, or other means, may have had a protective effect on mental health outcomes during the COVID-19 pandemic. In doing so, our results not only align with a growing body of research suggesting an association between food insecurity and poor mental health outcomes [71,72,73], but also indicate that improvements in food security may have buffered against the psychological distress associated with the COVID-19 pandemic [74,75,76]. Put another way, whereas social stress theory predicts that limited economic resources may lead to increased distress and poor psychological health [34], our results suggest that the reverse may also be true: that lower levels of food insecurity may facilitate improved psychological functioning despite the presence of a globally significant macrolevel stressor. Interestingly, the mediating effect of declining food insecurity on psychological well-being was strongest for self-esteem, a psychological outcome for which an association with food insecurity has not been clearly established. While poverty in general has been shown to be negatively associated with self-esteem [7778], further research is needed to identify the mechanism by which food security may affect one’s perception and confidence in oneself.

Overall, our results may lend further support for structural interventions, policies, and programs that improve access to quality food among people living with HIV. Although the impact of undernutrition and poor HIV clinical outcomes has been well-established [79,80,81], our results as well as those of a growing body of literature suggest that the benefits of improved food security may also extend to key indicators of mental health [72, 82,83,84]. Moreover, though there remains a dearth of best practice studies evaluating specific intervention strategies to address the HIV-food insecurity syndemic [85], initiatives that provide direct monetary or food assistance have demonstrated particular efficacy in improving food security in the sub-Saharan African context [8687]. Thus, given the association of food insecurity with both poor physical and mental health outcomes in PLWH, such direct provision interventions may be especially potent in terms of their ability to improve multiple, overlapping domains of health.

Conclusion

Our results demonstrated that in our sample of newly diagnosed South African AYA living with HIV, time of diagnosis during the COVID-19 pandemic was significantly associated with lower levels of food anxiety and insufficient food quality and quantity. Moreover, the relationships between time of diagnosis and psychological outcomes such as depressive symptoms, anxiety symptoms, and self-esteem were significantly mediated by food insecurity. Our findings build on our understanding of how the psychological well-being of AYA living with HIV was affected by the COVID-19 pandemic and lend support to interventions targeting food insecurity as a means of improving psychological outcomes in this vulnerable population.

Strengths, limitations, and future directions

This study has several key strengths. For one, our study adds to our understanding of psychological well-being and socioeconomic vulnerability across the pandemic among AYA living with HIV. Indeed, the timing of our cross-sectional surveys, which were conducted among two demographically similar South African samples of AYA before and during the pandemic, allowed us to evaluate important trends in economic and psychological well-being across this important juncture in time. In this manner, our analyses focusing on AYA living with HIV permitted the identification of intrapandemic changes that may have been particular to this unique population, and that may not have been observed in samples taken from the general population of PLWH. Our study thus provides important insight into the ways in which the pandemic may have uniquely impacted psychological and economic correlates of well-being among this vulnerable, disproportionately HIV affected population.

Nevertheless, despite identifying a promising association between food security and mental health amongst AYA living with HIV, our study has several limitations. First, given our focus on young people from urban South Africa, our results may not be generalizable to all South African PLWH. In fact, our own results suggest that levels of food insecurity may have differed significantly among different sub-populations of AYA living with HIV, such as young HIV positive men. Moreover, our mediation analyses were conducted using data from two cross-sectional surveys, and therefore, the directionality of our proposed mediator to outcome pathway cannot be directly assessed. Additionally, the time of diagnosis was treated as a dichotomous variable based on the recruitment of our two cohorts, and our classification of groups into pre- and during-pandemic cohorts may have disguised trends in food insecurity and or unemployment that may have changed longitudinally throughout South Africa’s pandemic-era State of Disaster. Finally, while our cohorts were recruited using similar procedures and did not differ significantly in terms of key sociodemographic characteristics (gender, unemployment status, education level, etc.), it is possible that the during-COVID cohort may have differed on the basis of other unmeasured factors. Therefore, we cannot rule out the possibility it may be that these unique characteristics of the group recruited during the pandemic, rather than the pandemic itself, that explain the lower food insecurity observed.

While our study adds to the literature about recent trends in food insecurity in South Africa, additional retrospective analyses of the effects of pandemic-era policies are needed to determine to what degree, if any, mental health and HIV clinical outcomes were affected by the increased economic support provided to vulnerable South Africans during the country’s COVID-19 lockdown. Public policy analyses investigating the differential effects of South Africa’s COVID-19 social grant system on subpopulations of South African PLWH would also be helpful in elucidating why AYA living with HIV may have been particularly buffered from the economic effects of the COVID-19 pandemic in comparison with other populations. Finally, translational research is needed to better understand how interventions targeting food insecurity may impact psychological and HIV clinical outcomes among PLWH.