1. Introduction
The Coronavirus Disease 2019 (COVID-19) pandemic has had a profound impact on mental health globally [
1,
2]. Estimates suggest that the global prevalence of depression and anxiety symptoms during the pandemic ranged from about 20 to 35 percent [
1]. In the United States, the prevalence of depressive symptoms was more than three times higher during the pandemic compared to pre-pandemic levels, with disproportionate burdens observed among individuals with limited socioeconomic resources and greater exposure to stressors such as job loss and housing insecurity [
3]. Contributing factors to this surge in mental health disorders included fear of infection, enforced social isolation, financial instability, bereavement, and persistent uncertainty regarding the pandemic’s long-term effects [
4,
5,
6].
Beyond these population-wide psychosocial stressors, some evidence suggests that the COVID-19 infection itself may lead to neuropsychiatric sequelae. Coronaviruses are known to induce a robust systemic inflammatory response, characterized by elevated levels of cytokines and chemokines that can cross the blood–brain barrier and provoke neuroinflammation, an established pathophysiological mechanism in the development of mood and anxiety disorders [
7,
8]. Depression and anxiety are not only distressing in their own right, but they are also associated with systemic physiological consequences. These conditions may promote a chronic pro-inflammatory state [
9,
10,
11,
12,
13,
14,
15], thereby elevating the risk for cardiometabolic disorders such as cardiovascular disease and diabetes [
13]. Individuals with depression or anxiety also face higher rates of chronic pain, poor dietary behaviors [
9,
11], reduced physical activity [
12], and greater susceptibility to maladaptive coping strategies such as illicit substance use [
10]. Additionally, infection-specific factors such as social stigma, prolonged “long COVID” symptoms, and the psychological toll of managing with a novel and often unpredictable illness may further heighten vulnerability to psychiatric disorders [
5].
Prior studies have reported an elevated risk of psychiatric conditions following COVID-19 infection, independent of broader pandemic stressors [
3,
15,
16]. For example, a cohort study found that individuals with COVID-19 were 60 percent more likely to develop mental health disorders compared to uninfected individuals [
17]. However, many of these studies rely on self-reported symptoms, cross-sectional surveys, or electronic health records from limited healthcare systems, which may underrepresent clinically diagnosed outcomes and confounding factors. Additionally, while some global health authorities such as the World Health Organization have issued broad statements on the mental health burden of COVID-19 [
2], population-level estimates based on rigorous administrative claims data remain sparse. Building on this foundational work, the current study utilizes a comprehensive statewide claims database to examine the association between COVID-19 infection and the risk of depression and anxiety among adults.
2. Materials and Methods
Study Design and Data: This retrospective cohort study utilized data from the Utah All Payers Claims Database (APCD) from 2019 to 2021. The Utah APCD includes medical and pharmacy claims, as well as enrollment information, for approximately 70 percent of insured individuals in Utah, including individuals covered by private insurance, Medicaid, and Medicare Advantage [
16,
18,
19]. For this analysis, only data from private insurance and Medicaid were used. The APCD consists of enrollment and claims files. Enrollment data provide demographic and coverage information, including insurance type, coverage dates, age, sex, and race/ethnicity. Claims data capture medical, pharmacy, and dental service records, including service dates, place of service, provider specialty, diagnosis codes—International Classification of Diseases, Tenth Revision (ICD-10) and procedure codes—Current Procedure Terminology (CPT), as well as medication data such as National Drug Codes, NDC and drug names. This study was approved by Institutional Review Board (IRB) at the University of Utah (IRB 00151091).
Study Population: The study cohort included adults aged 18 to 62 years with continuous enrollment in either private insurance or Medicaid from 2019 through 2021. This age range was selected to represent adults covered by private insurance and Medicaid, and to minimize confounding due to Medicare enrollment, which is not comprehensively captured in the Utah APCD. This restriction ensures uniform insurance exposure and improves the interpretability of comparisons across demographic subgroups. Individuals dually eligible for Medicare and Medicaid were excluded. For each outcome (depression or anxiety), we excluded individuals with documented diagnoses of the respective condition in 2019 or 2020, ensuring assessment of incident mental health diagnoses occurring in 2021.
Exposure Variable: The primary independent variable was a diagnosed COVID-19 infection in 2020, identified using a combination of ICD-10 diagnosis codes (J1281, J1282, U071, U099, B948, B9729, Z8616, O985, Z20828); and CPT codes associated with COVID-19 testing and diagnosis (86413, 86328, 86769, 87426, 87428, 87635, 87636, 87637, 87811, 87913, C9803) [
20,
21]. These codes capture clinically confirmed COVID-19 infections documented within healthcare encounters. Cases without formal diagnostic or testing codes, including suspected or asymptomatic infections not recorded in claims, were not included.
Outcome Measures: The primary outcomes were incident diagnoses of depression and anxiety occurring in 2021. These were identified using ICD-10 codes defined by the Centers for Medicare and Medicaid Services (CMS) and the Agency for Healthcare Research and Quality (AHRQ) Clinical Classification Software Refined (CCSR-v2024.1) [
22,
23]. Diagnoses were captured from both inpatient and outpatient claims.
Covariates: Covariates included age in 2019, sex, race/ethnicity (categorized as non-Hispanic White, non-Hispanic Other, Hispanic, or unknown), Medicaid enrollment status (yes/no), and comorbidity burden. Comorbidity was measured using the Elixhauser Comorbidity Index, which aggregates diagnostic data from 2019 to generate a weighted comorbidity severity score. In addition to the composite index, individual physical and mental health conditions such as hypertension, diabetes, cognitive disorders, ADHD, personality disorders, schizophrenia, and bipolar disorder were identified through ICD-10 codes using CMS and AHRQ CCSR classification [
22,
24].
Statistical Analysis: Descriptive statistics were used to summarize baseline characteristics of the study population. Continuous variables were reported as means and standard deviations (SD), while categorical variables were presented as frequencies and percentages. Group comparisons between individuals with and without documented COVID-19 infection in 2020 were conducted using t-tests for continuous variables and chi-square tests for categorical variables. The Least Absolute Shrinkage and Selection Operator (LASSO) approach was utilized to select covariates for inclusion in the regression. LASSO is a regularization method that applies a penalty to regression coefficients, shrinking less informative variables toward zero and thereby selecting the most relevant predictors. This improves model interpretability and reduces overfitting, especially in high-dimensional datasets with many potential covariates. A 10-fold Cross-validation procedure (CV) was applied to determine the optimal penalty term (lambda). The selected lambda value (0.0002) was the same for both depression and anxiety models, suggesting a low risk of underfitting. Out of 35 candidate variables, LASSO retained 19 predictors for the depression model, and 23 the anxiety outcome model.
To reduce confounding and ensure comparability between groups, Entropy Balancing (EB) was applied to reweight individuals with and without COVID-19 infection. Entropy balancing is a multivariate reweighting method used to achieve covariate balance between groups by aligning the first three statistical moments (mean, variance, and skewness) of selected covariates. This technique allows for improved control of confounding in observational data and is particularly effective when used in conjunction with weighted regression models [
22,
23]. Covariates included age, sex, race/ethnicity, Medicaid coverage, Elixhauser Comorbidity Index, and specific psychiatric diagnoses (ADHD, schizophrenia, bipolar disorder) [
25]. Covariate balance was assessed using standardized differences, with a threshold of <0.1 indicating acceptable balance. After weighting, all variables met this criterion, suggesting successful balancing (
Supplementary Materials,
Table A1,
Table A2,
Table A3 and
Table A4).
Weighted logistic regression models were used to estimate the association between COVID-19 infection and the incidence of depression and anxiety, adjusting for the entropy-balanced covariates. To evaluate the robustness of these associations to unmeasured confounding, E-values were calculated for the COVID-19 infection variable in each model [
26]. All analyses were conducted using Stata version 18 (College Station, TX, USA), with a two-sided significance threshold set at
p < 0.05.
4. Discussion
In this large, population-based study using the Utah All Payers Claims Database, adults with a documented COVID-19 infection in 2020 were significantly more likely to receive new diagnoses of depression and anxiety in 2021 compared to those without infection. These associations remained robust after adjustment for demographic characteristics, comorbidity burden, Medicaid coverage, and pre-existing psychiatric conditions. Sensitivity analyses using E-values indicated that substantial unmeasured confounding would be required to fully explain away these associations, supporting the validity of the findings.
Our findings align with prior studies demonstrating an increased risk of mental health disorders following COVID-19 infection. A case-control study by Zhang et al., reported a higher incidence of depression (29.2%) among individuals who contracted COVID-19 compared to those in quarantine or the general population [
27]. Similarly, a study of 714 COVID-19 patients found that 96.2% experienced posttraumatic stress symptoms associated with the infection [
18]. In another study, Mazza et al. assessed psychiatric outcomes in over 400 adults recovering from COVID-19 and found that 31% had clinical depression, while 42% were diagnosed with anxiety [
19]. These patterns suggest that the psychiatric sequelae of COVID-19 extend beyond acute illness, reflecting a combination of biological vulnerability, psychosocial stressors, and gaps in mental health support during recovery.
Consistent with previous literature, we found that women were substantially more likely to be diagnosed with depression following COVID-19 infection [
29]. This gender disparity is well documented in mental health research, with women generally facing higher lifetime risks of depression and anxiety [
7,
16,
30,
31]. The pandemic may have amplified this risk through increased caregiving responsibilities, job loss, and financial strain [
32]. Biological mechanisms may also play a role. For instance, inflammatory responses to COVID-19 infection may interact with sex-based differences in immune function. Eisenberger and colleagues have shown that women may be more susceptible to dysphoric reactions linked to inflammation, underscoring the complex interplay between biological and psychosocial determinants of mental health [
16].
We also observed elevated risk among younger adults, who were more likely than older age groups to be diagnosed with depression after infection. This finding is consistent with studies by Mazza et al. and Wang et al., which reported higher rates of depressive symptoms among younger individuals during the pandemic [
7,
33]. Although causality cannot be inferred, several plausible explanations exist. Younger individuals faced unique disruptions such as school closures, interruptions to academic and career plans, reduced social interaction, economic uncertainty, and heightened fear of infection that may have intensified psychological distress [
33].
Furthermore, individuals covered by Medicaid—a proxy for lower socioeconomic status were 3% more likely to receive a depression diagnosis compared to those with private insurance. While the effect size was modest, the direction of the association is also aligns with prior studies showing that lower-income and socially disadvantaged populations were disproportionately affected by pandemic-related stressors and exhibited higher rates of mental health disorders [
33].
This study has several limitations. First, the database did not record the severity of COVID-19 symptoms, which could potentially influence the association between COVID-19 infection and the incidence of depression and anxiety. However, the primary focus of the study was to examine how COVID-19 infection could be associated with the incidence of depression or anxiety. Second, the dataset captured only medically confirmed cases of COVID-19 i.e., those for which individuals sought clinical care. Asymptomatic cases or individuals who self-managed without formal diagnosis were excluded, potentially leading to underestimation of COVID-19 exposure and attenuation of the observed association. Furthermore, although individuals with documented depression or anxiety diagnoses in 2019 and 2020 were excluded, undiagnosed or subclinical cases may have been missed due to inconsistent or limited mental health screening practices in primary care settings. This potential under-detection could lead to misclassification bias, resulting in an overestimation of incident cases in 2021. We acknowledge this limitation may affect the precision of our findings and highlight the need for cautious interpretation. Third, the generalizability of the findings is limited. The study population was restricted to adults aged 18 to 64 years, excluding children and elderly individuals who may experience different mental health trajectories following infection. Furthermore, a substantial proportion of individuals in the dataset have missing race and ethnicity information, hindering the ability to fully explore disparities in mental health outcomes across demographic groups. Finally, we did not include data on pharmacologic treatment. Diagnoses were identified using ICD-10 codes, without linked prescription information. Some individuals may have received mental health treatment without a recorded diagnosis, or vice versa, leading to further potential misclassification.
Despite these limitations, our findings have important implications for public health practice. The increased risk of depression and anxiety following COVID-19 infection underscores the need for targeted mental health interventions [
34,
35,
36].
Public awareness campaigns should highlight the potential mental health consequences of COVID-19, normalize help-seeking behavior, and promote available support resources. Additionally, training healthcare professionals to identify and manage psychiatric symptoms among COVID-19 patients particularly in primary care and acute care settings may help close existing gaps in mental health detection and treatment.
Efforts to enhance access to mental health services must be prioritized, especially for vulnerable groups such as women, economically disadvantaged individuals, and those with limited insurance coverage. Policy measures aimed at broadening Medicaid eligibility and improving coverage for mental health services are critical. In sum, addressing the mental health aftermath of the COVID-19 pandemic requires coordinated public health strategies and a deliberate focus on equity in mental health care access and delivery.