Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Dec 19.
Published in final edited form as: Nat Aging. 2024 May 7;4(6):783–790. doi: 10.1038/s43587-024-00621-3

Associations of hospital-treated infections with subsequent dementia: Nationwide 30-year analysis

Leah S Richmond-Rakerd 1, Monica T Iyer 1,2, Stephanie D’Souza 3,4, Lara Khalifeh 1, Avshalom Caspi 5,6,7,8, Terrie E Moffitt 5,6,7,8, Barry J Milne 3,4
PMCID: PMC12713650  NIHMSID: NIHMS2120667  PMID: 38714911

Abstract

Infections, which can prompt neuroinflammation, may be a risk factor for dementia15. More information is needed concerning associations across different infections and different dementias, and from longitudinal studies with long follow-ups. This New Zealand-based population-register study tested whether infections antedate dementia across three decades. We identified individuals born between 1929–1968 and followed them from 1989–2019 (N=1,742,406, baseline age=21–60y). Infection diagnoses were ascertained from public-hospital records. Dementia diagnoses were ascertained from public-hospital, mortality, and pharmaceutical records. Relative to individuals without an infection, those with an infection were at increased risk of dementia (HR=2.93 [95% CI: 2.68–3.20]). Associations were evident for dementia diagnoses made up to 25–30y after infection diagnoses. Associations held after accounting for pre-existing physical diseases, mental disorders, and socioeconomic deprivation. Associations were evident for viral, bacterial, parasitic, and other infections; and for Alzheimer’s disease and other dementias, including vascular dementia. Preventing infections might reduce the burden of neurodegenerative conditions.

Introduction

Prevention and control of infectious diseases through vaccination and antibiotic treatment have lengthened life expectancy6. However, many low- and low-middle-income countries have limited vaccine coverage7, and infection prevalence remains high in some industrialized nations810. Here, we leverage nationwide administrative data from New Zealand to investigate the link between infections and dementia.

Common infections have been associated with cognitive impairment in older adults11,12, and reports also indicate associations with dementia14,1317. A number of mechanisms have been hypothesized to explain this association2,3,1820. With few exceptions24,13,16, prior studies linking infections and dementia have generally used cross-sectional designs, or longitudinal designs with follow-up periods less than 10 years; considered a narrow range of infections; and have not tested associations across different dementia types. Studies that ascertain participants from younger ages and follow them for long periods are necessary to improve understanding of the temporal relation between infections and dementia. Further, as dementia has a long pre-diagnosis phase, long follow-ups are necessary to reduce the potential for reverse-causation. Measuring a broad range of infections and dementias can also aid in determining the specificity of associations and provide insight into underlying mechanisms, for instance, by identifying whether associations are unique to certain pathogens.

The current study addressed these gaps. We analyzed prospective associations between infections and dementia using population-register data on 1.7 million individuals followed for up to 30 years. We tested the hypothesis that hospital-treated infections are associated with elevated risk of dementia. We tested whether associations are present across different types of infections (viral, bacterial, parasitic, and other infections), and for Alzheimer’s disease, other dementias (e.g., vascular dementia, Parkinson’s-disease dementia, frontotemporal dementia), and unspecified dementias. To address the potential for ascertainment bias and reverse-causation related to dementia’s long pre-diagnosis phase, we also tested whether associations with dementia held across varying follow-up intervals, up to 25–30 years following infection. We tested whether associations held after controlling for pre-existing mental disorders and chronic physical diseases, because poor mental and physical health may increase risk for both infection and dementia2124. In addition, we tested whether associations held after controlling for socioeconomic deprivation, because both infections and dementias are more common among individuals living in deprived circumstances8,2527.

Results

The study population included 1,742,406 individuals (881,877 [50.6%] male, baseline age=21–60y). Of these individuals, 254,601 (14.6%) were born between 1929–38, 373,419 (21.4%) between 1939–48, 511,041 (29.3%) between 1949–58, and 603,348 (34.6%) between 1959–68.

During the 30-year period, 465,330 individuals (26.7%) were identified as having an infection and 37,212 (2.1%) were identified as having dementia. Similar percentages of men and women and more older than younger individuals were identified as having an infection and as having dementia (Table 1).

Table 1.

Associations between infections and subsequent dementia in the New Zealand population.

Men Women
Birth years and ages Total N N (%) men N (%) with infection N (%) with dementia Hazard ratio [CI] N (%) with infection N (%) with dementia Hazard ratio [CI]
Born 1959–68; aged 21–60y 603,348 306,375 (50.8) 63,132 (20.6) 369 (0.1) 4.51 [3.63, 5.60] 70,059 (23.6) 270 (0.1) 4.12 [3.21, 5.29]
Born 1949–58; aged 31–70y 511,041 259,482 (50.8) 61,017 (23.5) 1,410 (0.5) 3.14 [2.81, 3.50] 50,598 (20.1) 1,056 (0.4) 4.54 [4.01, 5.14]
Born 1939–48; aged 41–80y 373,419 188,718 (50.5) 60,414 (32.0) 5,121 (2.7) 2.48 [2.34, 2.62] 48,810 (26.4) 4,377 (2.4) 3.55 [3.34, 3.77]
Born 1929–38; aged 51–90y 254,601 127,302 (50.0) 57,252 (45.0) 11,589 (9.1) 2.55 [2.46, 2.65] 54,051 (42.5) 13,014 (10.2) 3.14 [3.03, 3.25]

Note. Estimates show the associations between individuals’ index infection (their first diagnosed infection during the observation period) and subsequent dementia, controlling for birth year and for mental disorders and chronic physical diseases diagnosed before the index infection. Mental disorders included substance-use, psychotic, mood, neurotic (i.e., anxiety), physiological-disturbance, personality, developmental, behavioral, and unspecified disorders; and also self-harm. Physical diseases included coronary heart disease, gout, chronic obstructive pulmonary disease, diabetes, cancer, traumatic brain injury, stroke, and myocardial infarction. Counts were randomly rounded to a base of three per the confidentiality rule of Statistics New Zealand. Age ranges indicate ages during the 30-year observation period. CI= 95% confidence interval.

Figure 1 shows the distributions of age-at-first-infection and age-at-first-dementia diagnosis, among individuals who received both diagnoses during the observation period. The median age-at-first-dementia diagnosis was 9.3 years later than the median age-at-first-infection diagnosis in the population, with similar degrees of temporal separation in men and women. The timespan between median age-at-first-diagnosis for infection and dementia ranged from 8.5 years in the earliest-born, eldest cohort to 13.0 years in the latest-born, youngest cohort.

Figure 1. Distributions of age-at-first-diagnosis for infection and dementia.

Figure 1.

The figure shows the degree of temporal separation between first inpatient-hospital diagnoses of infection and dementia. Box plots display the median, first and third quartiles, and bottom 1st and upper 99th percentiles of the distributions of age-at-first-diagnosis, within the total population, men, and women. The confidentiality rules of Statistics New Zealand do not permit reporting of minimum and maximum values. Distributions were calculated among individuals who received both an infection and a dementia diagnosis during the observation period (N=24,696).

Associations of infections with dementia

Dementia was overrepresented among individuals with an infection: of individuals diagnosed with an infection, 5.3% (24,696/465,330) were also diagnosed with dementia during the observation period, compared with 1.0% of individuals (12,519/1,277,076) without an infection (Figure 2A). Dementia was overrepresented among infection cases in men, women, and all age-bands (Figure 2B,C).

Figure 2. Overrepresentation of dementia among individuals with an infection.

Figure 2.

The prevalence of dementia diagnoses was higher among individuals diagnosed with an infection than among those without an infection diagnosis. This was the case in the total population (A) and among men (B) and women (C) of all ages. Estimates were calculated over the 30-year observation period. Counts were randomly rounded to a base of three per the confidentiality rules of Statistics New Zealand. Therefore, counts do not always sum to totals. Age ranges indicate ages during the 30-year observation period.

A substantial portion of individuals with dementia had an infection history: of individuals diagnosed with dementia, 66.4% (24,696/37,212) were also diagnosed with an infection during the observation period, compared with 25.8% of individuals (440,634/1,705,194) without dementia.

Individuals with an infection diagnosis were at elevated risk of subsequent dementia; this was the case even after accounting for individuals who received a mental-disorder or physical-disease diagnosis before their index infection diagnosis (hazard ratio (HR)=2.93 [95% confidence interval (CI): 2.68–3.20]). Increased risk was maintained across all follow-up intervals from the index infection, ranging from 0–1 years (HR=2.64 [95% CI: 2.38–2.94]) to 25–30 years (HR=3.60 [95% CI: 3.08–4.20]; Extended Data Figure 1). Among individuals diagnosed with dementia, those diagnosed with an infection developed dementia, on average, 2.72 years earlier than those without an infection diagnosis (mean time-to-dementia: infection=8.75y, no infection=11.47y; Supplementary Results 1). Associations of infection with dementia were observed across sex and age (Table 1). Associations were stronger among more recently-born, younger cohorts. Associations in earlier-born, older cohorts were stronger in women than men (Table 1).

Additionally, in a dose-response pattern, individuals who accumulated more infection-related hospital admissions, across a 20-year exposure period, were more likely to be diagnosed with dementia in the 10-year follow-up period. After accounting for pre-existing mental disorders and physical illnesses, the RRs were 1.55 [95% CI: 1.50–1.60] for one infection-related admission and 2.43 [95% CI: 1.98–2.97] for two or more infection-related admissions, relative to no admission. The increase in risk was modest for the number of infection types: RRs ranged from 1.53 [1.48–1.59] for one type to 1.76 [1.33–2.32] for four types, relative to no infection diagnosis (Extended Data Figure 2).

Associations across infection types

Individuals diagnosed with viral, bacterial, parasitic, and all other infections were all more likely than those without an infection to be diagnosed with subsequent dementia, even after accounting for their mental-disorder and physical-disease histories (Figure 3A; Supplementary Table 1). HRs ranged from 3.19 [95% CI: 2.88–3.53] for other infections to 3.84 [95% CI: 3.37–4.38] for parasitic infections (Figure 3A).

Figure 3. Specificity of associations.

Figure 3.

Infections of different types were associated with subsequent onset of any dementia (A), and infections were associated with Alzheimer’s disease, other dementias (e.g., vascular dementia, Parkinson’s-disease dementia, frontotemporal dementia), and unspecified dementias (B). Estimates are hazard ratios. Error bars indicate 95% confidence intervals. Total-population Ns including infection cases and controls were 1,316,880 (viral infection), 1,489,080 (bacterial infection), 1,288,707 (parasitic infection), and 1,538,523 (other infection). Total-population Ns including dementia cases and controls were 1,710,144 (Alzheimer’s disease), 1,716,513 (other dementia), and 1,727,412 (unspecified dementia). Controls were individuals without any infection diagnosis (Panel A) and individuals without any dementia diagnosis (Panel B). Due to computational constraints, hazard models could not be estimated in the total population. Total-population estimates were derived using meta-analysis to pool associations across four randomly-selected 25% subsets of males and of females. Associations estimated within subsets controlled for birth year, and for pre-existing metal-disorder and chronic-physical-disease diagnoses (see Methods). Because anti-dementia drug prescriptions in pharmaceutical records do not permit determination of dementia subtype, diagnoses of Alzheimer’s disease and other dementias were ascertained using ICD-10 and corresponding ICD-9 codes from public-hospital and mortality records; dementias with diagnostic codes of “unspecified” in hospital or mortality records and those ascertained only through pharmaceutical prescriptions were coded as unspecified. Associations by age and sex are shown in Supplementary Tables 1 and 2.

Associations across dementia types

Individuals diagnosed with infections were more likely than those without an infection to develop different types of dementia, even after accounting for their mental-disorder and physical-disease histories (Figure 3B; Supplementary Table 1). Individuals with an infection diagnosis were at elevated risk for Alzheimer’s disease (HR=2.28 [95% CI: 2.11–2.48]), other dementias (HR=4.39 [95% CI: 3.83–5.04]) including vascular dementia (HR=4.60 [95% CI: 4.31–4.92]; Supplementary Table 2), and unspecified dementias (HR=2.65 [95% CI: 2.38–2.96]; Figure 3B).

Sensitivity analyses

The dementia ascertainment scheme drew on information gathered from hospital records over 30 years, death records over 29 years, and pharmaceutical records available for nine years. To determine whether findings depended on these information sources, we re-estimated associations after removing mortality and pharmaceutical records, separately, from the ascertainment scheme. Associations after removing pharmaceutical records were larger (Supplementary Table 3). Associations after removing mortality records were smaller, but robust (Supplementary Table 4).

We evaluated additional sources of potential confounding of the infection-dementia association (Supplementary Table 5). To test whether associations were attributable to socioeconomic differences, we controlled for neighborhood deprivation. Effect sizes were attenuated, but robust (from HR=2.93 [95% CI: 2.68–3.20] to HR=2.08 [95% CI: 2.04–2.13]). To assess the potential for unmeasured confounding to explain the association, we computed an E-value28. The association between infection and dementia (HR=2.08 [95% CI: 2.04–2.13]) could only be explained away by an unmeasured confounder associated with both infection and dementia by a risk ratio of at least 3.58-fold each, above and beyond the measured confounders of mental-disorder and physical-disease histories and deprivation.

Discussion

In this nationwide health-register study of 1.7 million citizens followed for up to 30 years, hospital-treated infections were associated with increased risk for subsequent dementia, and younger dementia onset. Associations were evident across viral, bacterial, parasitic, and other infections; early-onset and later-onset dementias; Alzheimer’s disease and other, related dementias; men and women; and all age-groups. They also persisted across varying follow-up intervals from the index infection, up to 25–30 years after infection, suggesting that associations were not attributable to ascertainment bias or reverse-causation. Associations remained after accounting for pre-existing mental disorders and physical diseases, and socioeconomic deprivation.

These results have several implications. First, if associations are causal, preventing infections–at least more severe infections requiring hospital treatment–may reduce dementia risk. We identified associations with multiple infection types, suggesting that preventing any type of infection might benefit cognitive health. It is important to note that these data cannot confirm causality. We established the temporal ordering of infections before dementia, addressed reverse-causation, and ruled out poor mental and physical health and neighborhood deprivation as alternative explanations for associations. However, there may be other shared risk factors for infections and dementia; for instance, a general vulnerability to both poor body and brain health (including age-related vulnerabilities such as frailty), and low education. Even if infections are not a causal dementia risk factor, our results indicate they are an important early-warning sign of risk for cognitive decline and neurodegenerative disease.

Second, the lack of specificity that we observed in associations provides insights into potential underlying mechanisms. It has been proposed that specific infectious agents invade the brain and lead to dementia; studies linking pathogens such as Herpes simplex virus, Heliobacter pylori, Hepatitis C, and influenza viruses with dementia support this hypothesis16,2931. However, we detected associations with a broad range of infectious diseases, supporting the proposal that systemic inflammation (or some other general process), rather than specific pathogens, may lead to dementia. This conclusion is bolstered by prior human studies linking different types of infections with dementia14, as well as non-human animal studies that have identified associations between systemic inflammation and neuroinflammation32.

The antimicrobial-protection hypothesis states that amyloid-β plaques form in response to invading pathogens, then lead to neuroinflammation and Alzheimer’s disease20. Our findings extend beyond this hypothesis in that dementias other than Alzheimer’s (e.g., vascular, frontotemporal, and Parkinson’s-disease dementias) were associated with infections. This aligns with work implicating neuroinflammation in the etiology of many dementia types5, and a recent study demonstrating associations between infections and dementias beyond Alzheimer’s, including vascular dementia3. However, different hypotheses concerning factors that link infections with dementia may not be mutually exclusive, and multiple mechanisms may operate. For instance, infections may lead to dementia by increasing vulnerability to health conditions that confer dementia risk, including depression and stroke22,33,34. Moreover, neuropathologies such as amyloid-β plaques may be less specific than assumed to Alzheimer’s versus other dementia types35,36. Future research should aim to interrogate potential differences in how different types of infections may confer risk for Alzheimer’s versus other dementias, as the findings here suggest that all infections matter.

Third, our findings suggest that infections predict dementia more strongly among recently-born, younger adults than earlier-born, older adults. This age-cohort difference in effect size is consistent with prior studies documenting stronger associations with hospital-treated infections for early-onset than late-onset dementias3,4, suggesting that infections may confer greater risk for early-onset conditions. However, there are alternate explanations for this age-cohort difference. Individuals who have experienced infections–particularly severe infections requiring inpatient-hospital treatment–tend to die earlier than individuals without an infection history, and therefore not contribute dementia cases to the oldest age groups. Older adults also have more opportunity to accumulate dementia causes other than infection. It should be noted that although this age-cohort difference holds in relative-risk terms, when considering absolute risk differences, we observed larger differences among earlier-born, older cohorts, where baseline dementia risk was also higher (Figure 2).

Infections may represent a cause of dementia (“infectious-origin theory”) or accelerate a dementia disease pathology that is already underway (“infectious-accelerant theory”)18. Our study design did not enable us to determine whether individuals had subtle early-dementia signs when diagnosed with infection. If they did, this would suggest that the earlier dementia onset observed among adults with infections likely reflects an acceleration of dementia progression. However, we observed associations across 30 years, with increased risk maintained over time; and the mean time-to-dementia diagnosis following individuals’ first infection diagnosis was 8.8 years in the study population and 11.0 years in the youngest cohort. Most infection diagnoses in this cohort were received before the typical age of pre-diagnosis dementia onset. More detailed prospective data concerning dementia progression will adjudicate between infection-origin and infection-accelerant theories, which may not be mutually exclusive.

The results should be evaluated against several limitations. First, our results may not generalize to other nations, ancestry groups, or healthcare systems. However, associations between infections and dementia have been observed in other countries14,13,1517,37. Second, although nationwide data enabled us to ascertain a broad range of infections from inpatient-hospital records, inpatient records overlook less-severe cases treated in outpatient settings, and undetected cases. However, prior studies have identified associations between infections and dementia ascertained in primary-care and outpatient-treatment data2,4. Further, more severe infections are likely to prompt a greater inflammatory response, providing a stronger test of the potential role of infection-induced inflammation in dementia risk. Third, even with a 30-year observation period, we were selectively missing later-diagnosed dementias in the youngest cohort and earlier-diagnosed infections in the oldest cohort. Fourth, our results were limited to public-hospital records. However, only about 5% of NZ hospitalizations occur in private hospitals, primarily for elective surgeries8. Fifth, results might vary with historical changes in diagnostic practices. However, we observed associations between infections and dementia among individuals born up to 39 years apart. Different birth cohorts in New Zealand lived through different diagnosis and treatment regimens because there were historical changes in medical practice to manage infections and dementia during the 1900’s. For example, the first antibiotic, penicillin, became available in the 1940s, which markedly changed infectious-disease diagnosis and treatment. Thus, early-born cohorts did not have penicillin as a child, but later-borns did. However, our analysis of the association between infections and dementia focused on the link over a 30-year observation window, between 1989–2019. As such, all age groups in this study experienced the same conditions of diagnosis and treatment because the medical records used as data in this study began in 1989. Nevertheless, it is possible that early-life experiences could have affected medical status in ways unknown to us. Finally, we lacked data on all factors that could have contributed to an association between infection and dementia, such as chronic kidney disease. However, the E-value we computed indicates that unmeasured confounders would have to show associations with infections and dementia on the scale of 3.58 in terms of relative risk, above and beyond the measured confounders that were included in our analyses (e.g., mental disorders such as substance use and depression, chronic physical diseases such as coronary heart disease and stroke, and socioeconomic deprivation).

The infections we studied were treated, but still tended to be followed by dementia, pointing to the importance of primary prevention of infections, which is possible by personal hygiene behaviors, immunization, safe food, safe water, and safe sex. Results from our study and others14,13,14,16,17 raise the question of whether infections should be considered a key modifiable risk factor for dementia, alongside other established factors such as depression and physical inactivity22. Efforts to mitigate infection and dementia are needed in the context of an aging global population and growing concern about the effects of COVID-19 on neuroinflammation, cognitive decline and impairment, and risk for neurological disorders3841.

Methods

Data were from the New Zealand Integrated Data Infrastructure, a collection of de-identified, individually-linked, whole-of-population administrative-data sources42,43. Ethical approval was obtained from the Auckland Health Research Ethics Committee (ref AH24164). Output data underwent confidentiality review by Statistics New Zealand Tatauranga Aotearoa. Informed consent was not obtained per rule 11(2)(c)(iii) of the New Zealand Health Information Privacy Code44, which, under certain circumstances, allows for anonymized health data to be used for research without the authorization of the individual concerned. This study follows the Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) reporting guideline.

Study population

Our study population included all individuals born in New Zealand (NZ) between 1929–1968 who resided in NZ for any time between the July 1989-June 2019 fiscal years (age=21–90y, N=1,742,406). We included as wide an age range as possible while also capturing the period of risk for dementia (including early-onset conditions) during the 30-year period. We divided the population into 10-year age-bands (born 1929–38 (baseline age=51–60y), 1939–48 (41–50y), 1949–58 (31–40y), and 1959–68 (21–30y)).

Infections

We collected information about primary and secondary diagnoses of infections and medical conditions arising from infections (e.g., infectious mononucleosis) using ICD-9 and corresponding ICD-10 diagnostic codes in public inpatient-hospital records. We classified four types of infections: viral, bacterial, parasitic, and all other infections (Supplementary Table 6).

Alzheimer’s disease and related dementias

We collected information about dementia diagnoses using a previously-published scheme23,45. Dementias were ascertained via primary and secondary ICD-10 and corresponding ICD-9 dementia codes in public inpatient-hospital and mortality records maintained by the NZ Ministry of Health, and anti-dementia drug prescriptions in pharmaceutical records maintained by the NZ Pharmaceutical Management Agency (Supplementary Table 7). Hospital records were available for the 30-year observation period (July 1989-June 2019), mortality records were available July 1989-December 2018, and pharmaceutical records were available November 2010-June 2019. (Pharmaceutical data were available from July 2006, but the first dispensing for prescriptions in our dementia ascertainment scheme occurred in November 2010.) We classified three types of dementia: Alzheimer’s disease, other dementias (e.g., vascular dementia, Parkinson’s-disease dementia, frontotemporal dementia), and unspecified dementias. Although dementia in the community was likely under-identified through our medical register-based ascertainment scheme, we have shown that cases identified through this scheme are classified accurately, with the majority also diagnosed in community-based assessments23 (Supplementary Results 2).

Covariates

Mental disorders.

We classified nine broad categories of mental disorders: substance-use, psychotic, mood, neurotic (i.e., anxiety), physiological-disturbance, personality, developmental, behavioral, and unspecified disorders. We also obtained data about self-harm (Supplementary Table 8).

Chronic physical diseases.

We obtained information about eight physical diseases classified as chronic by the New Zealand Ministry of Health: coronary heart disease, gout, chronic obstructive pulmonary disease, diabetes, cancer, traumatic brain injury, stroke, and myocardial infarction (Supplementary Table 9).

Neighborhood deprivation.

We assessed neighborhood deprivation using the 2013 New Zealand Deprivation Index (NZDep201346), an area-level measure of deprivation. The NZDep2013 assigns census areas a deprivation decile value ranging from 1 (least deprived) to 10 (most deprived) based on socioeconomic indicators from the 2013 New Zealand Census. Neighborhood deprivation information was available from 2000 to the end of the study period (2019). We used deprivation information for individuals’ first registered address during the study period.

Statistics and reproducibility

We used Cox proportional hazards models, with infection diagnosis modeled as a time-varying covariate, to estimate associations between individuals’ index infection (first diagnosed infection during the observation period) and subsequent dementia, controlling for mental disorders and physical diseases diagnosed before the index infection. Individuals who died from causes other than dementia, out-migrated, or reached the end of the observation period without a dementia diagnosis were censored in analyses. We used generalized linear models to obtain unadjusted and covariate-adjusted estimates (least-squares means) of mean time-to-dementia diagnosis among individuals with and without an infection diagnosis.

To address the potential for ascertainment bias, analyses excluded individuals diagnosed with dementia within one month of their infection diagnosis. To further address the potential for ascertainment bias as well as reverse-causation related to dementia’s long pre-diagnosis phase, in addition to estimating associations across the full 30-year observation period, we estimated associations across varying follow-up intervals from the index infection (0–1, 1–5, 5–10, 10–15, 15–20, 20–25, and 25–30 years). For each follow-up interval, we censored cases where dementia occurred prior to the start of the interval. Follow-up intervals were non-overlapping, such that dementia risk estimated for a particular time interval considered only dementia diagnoses made in the specified interval, and did not include risk in the prior years. We analyzed associations for all infections together, then separately by infection type; and for all dementias together, then separately by dementia type.

Sensitivity analyses tested whether associations were robust to exclusion of pharmaceutical and mortality records from the dementia ascertainment scheme, and to control for neighborhood deprivation. To assess the potential for unmeasured confounding to explain associations, we computed an E-value, which estimates what the risk ratio would need to be for an unmeasured confounder (or set of confounders) to explain away a relation28.

Associations were estimated by age-band and sex, among men (in four randomly-selected 25% subsets of the male population), and among women (in four randomly-selected 25% subsets of the female population), controlling for birth year. Due to computational constraints, hazard models could not be estimated in all men and all women, or in the total population. We therefore used fixed-effects meta-analysis to pool associations across the subsets to derive total-population estimates, using the “metafor” package in R47.

No sample-size calculation was performed because the study population comprised the entire NZ population with the birth years and residency characteristics of interest; we did not subsample from these individuals. These birth-year and residency characteristics were the starting point for study-population construction; no individuals with these characteristics were excluded. There was no randomization. Researchers were not blinded to experimental conditions as this population-register analysis comprised secondary data and participants were not allocated into experimental groups.

Per the confidentiality rules of Statistics NZ, reported frequencies/counts were randomly rounded to a base of three. Therefore, counts do not always sum to totals. Analyses were conducted using SAS Enterprise Guide version 8.3 (SAS Institute) and R (v4.1.2; R Core Team 2021). Statistical code has been archived (UM-GitHub repository: https://github.com/leahrr-umich/Infection-Dementia.git) and is available on request from the corresponding author.

Extended Data

Extended Data Fig. 1.

Extended Data Fig. 1

To address the potential for ascertainment bias as well as reverse-causation related to dementia’s long pre-diagnosis phase, we estimated associations across varying follow-up intervals from the index infection (0–1, 1–5, 5–10, 10–15, 15–20, 20–25, and 25–30 years). Increased risk of dementia was observed across varying follow-up intervals from infection, from 0–1 years to 25–30 years. Analyses comprised 1,732,080 individuals; individuals with dementia diagnoses that predated infection diagnoses were excluded. Estimates are hazard ratios. Error bars indicate 95% confidence intervals. Follow-up intervals were non-overlapping, such that dementia risk estimated for a particular time interval considered only dementia diagnoses made in the specified interval, and did not include risk in the prior years.

Extended Data Fig. 2.

Extended Data Fig. 2

In secondary analyses to test for a dose-response pattern, we counted infection-related hospital admissions and infection types across a 20-year exposure period (July 1989-June 2009), and as outcome ascertained dementia diagnoses across a 10-year follow-up period (July 2009-June 2019). We used Poisson regression models with relative risks to estimate the associations between number of infection-related hospital admissions and number of infection diagnoses of different types with subsequent dementia, controlling for mental disorders and physical diseases diagnosed before the index infection. Individuals who accumulated more infection-related hospital admissions (a) and more infection diagnoses of different types (b), across a 20-year exposure period, were more likely to be diagnosed with dementia in the 10-year follow-up period. Analyses excluded the 169,983 individuals who received a dementia diagnosis, died, or left the country during the exposure period. Error bars indicate 95% confidence intervals.

Supplementary Material

Supplementary Material

Acknowledgements:

This research was supported by grant P30AG066582 from the National Institute on Aging (NIA) through the Center to Accelerate Population Research in Alzheimer’s (LSR, TEM) and grant P30AG066589 from the NIA through the Center for Advancing Sociodemographic and Economic Study of Alzheimer’s Disease and Related Dementias (LSR). Additional support was provided by grants R01AG032282 and R01AG049789 from the NIA (AC, TEM) and grant MR/P005918 from the UK Medical Research Council (AC, TEM). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. We thank Statistics New Zealand and their staff for access to the IDI data and timely ethics review of output data. We thank the Public Policy Institute at the University of Auckland for access to their Statistics New Zealand data lab. We also thank Hamish Jamieson, Amanda Kvalsvig, and Alzheimers New Zealand for helpful comments on earlier drafts of this manuscript.

Footnotes

Competing Interests: The authors declare no competing interests.

Code Availability: Statistical code has been archived (UM-GitHub repository: https://github.com/leahrr-umich/Infection-Dementia.git) and is available on request from the corresponding author.

Statistics New Zealand disclaimer: These results are not official statistics. They have been created for research purposes from the Integrated Data Infrastructure (IDI) which is carefully managed by Statistics NZ. Statistics New Zealand approved the use of the Integrated Data Infrastructure for this project (ref MAA2022–15). For more information about the IDI please visit https://www.stats.govt.nz/integrated-data/.

Data Availability:

The following administrative databases from the Integrated Data Infrastructure (IDI) were used in the study: Publicly-funded hospital discharges, Pharmaceutical data, Mortality data, Address notification, Person overseas spell, Personal details, Resident population table, Births, and Deaths. Information about the databases is located here: https://www.stats.govt.nz/integrated-data/integrated-data-infrastructure/data-in-the-idi#geographic. The IDI register data used in this report are stored on Statistics New Zealand servers and cannot be shared by the authors. Access to the IDI is by application to Statistics New Zealand. Information about the application process is available here: https://www.stats.govt.nz/integrated-data/apply-to-use-microdata-for-research/.

References

  • 1.Morton CE, Forbes HJ, Pearce N, Smeeth L & Warren-Gash C Association Between common infections and incident post-stroke dementia: A cohort study using the Clinical Practice Research Datalink. Clin. Epidemiol. 12, 907–916 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Muzambi R et al. Assessment of common infections and incident dementia using UK primary and secondary care data: A historical cohort study. Lancet Healthy Longev. 2, e426–e435 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Sipilä PN et al. Hospital-treated infectious diseases and the risk of dementia: A large, multicohort, observational study with a replication cohort. Lancet Infect. Dis. 21, 1557–1567 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Sun J et al. Hospital-treated infections in early- and mid-life and risk of Alzheimer’s disease, Parkinson’s disease, and amyotrophic lateral sclerosis: A nationwide nested case-control study in Sweden. PLOS Med. 19, e1004092 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Pasqualetti G, Brooks DJ & Edison P The role of neuroinflammation in dementias. Curr. Neurol. Neurosci. Rep. 15, 17 (2015). [DOI] [PubMed] [Google Scholar]
  • 6.Crimmins EM Recent trends and increasing differences in life expectancy present opportunities for multidisciplinary research on aging. Nat. Aging 1, 12–13 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Vanderslott S, Dattani S, Spooner F & Roser M Vaccination. Our World in Data (2013). [Google Scholar]
  • 8.Baker MG et al. Increasing incidence of serious infectious diseases and inequalities in New Zealand: a national epidemiological study. Lancet Lond. Engl. 379, 1112–1119 (2012). [DOI] [PubMed] [Google Scholar]
  • 9.Publicly funded hospital discharges – 1 July 2018 to 30 June 2019. Ministry of Health NZ; https://www.health.govt.nz/publication/publicly-funded-hospital-discharges-1-july-2018-30-june-2019. [Google Scholar]
  • 10.Institute for Health Metrics and Evaluation. GBD Results Tool. https://ghdx.healthdata.org/gbd-results-tool. [Google Scholar]
  • 11.Kountouras J et al. Association between Helicobacter pylori infection and mild cognitive impairment. Eur. J. Neurol. 14, 976–982 (2007). [DOI] [PubMed] [Google Scholar]
  • 12.Shim S-M et al. Elevated Epstein-Barr virus antibody level is associated with cognitive decline in the Korean elderly. J. Alzheimers Dis. 55, 293–301 (2017). [DOI] [PubMed] [Google Scholar]
  • 13.Bohn B et al. Incidence of dementia following hospitalization with infection among adults in the Atherosclerosis Risk in Communities (ARIC) Study cohort. JAMA Netw. Open 6, e2250126 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Chiu W-C et al. Hepatitis C viral infection and the risk of dementia. Eur. J. Neurol. 21, 1068–e59 (2014). [DOI] [PubMed] [Google Scholar]
  • 15.Lam JO et al. Comparison of dementia risk after age 50 between individuals with and without HIV infection. AIDS 35, 821 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Levine KS et al. Virus exposure and neurodegenerative disease risk across national biobanks. Neuron 111, 1086–1093 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Maheshwari P & Eslick GD Bacterial infection and Alzheimer’s disease: A meta-analysis. J. Alzheimers Dis. 43, 957–966 (2014). [DOI] [PubMed] [Google Scholar]
  • 18.Butler L & Walker KA The role of chronic infection in Alzheimer’s Disease: Instigators, co-conspirators, or bystanders? Curr. Clin. Microbiol. Rep. 8, 199–212 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Itzhaki RF, Golde TE, Heneka MT & Readhead B Do infections have a role in the pathogenesis of Alzheimer disease? Nat. Rev. Neurol. 16, 193–197 (2020) [DOI] [PubMed] [Google Scholar]
  • 20.Moir RD, Lathe R & Tanzi RE The antimicrobial protection hypothesis of Alzheimer’s disease. Alzheimers Dement. 14, 1602–1614 (2018). [DOI] [PubMed] [Google Scholar]
  • 21.De Hert M et al. Physical illness in patients with severe mental disorders. I. Prevalence, impact of medications and disparities in health care. World Psychiatry 10, 52–77 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Livingston G et al. Dementia prevention, intervention, and care: 2020 report of the Lancet Commission. The Lancet 396, 413–446 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Richmond-Rakerd LS, D’Souza S, Milne BJ, Caspi A & Moffitt TE Longitudinal associations of mental disorders with dementia: 30-year analysis of 1.7 million New Zealand Citizens. JAMA Psychiatry 79, 333–340 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Ronaldson A et al. Prospective associations between depression and risk of hospitalisation for infection: Findings from the UK Biobank. Brain. Behav. Immun. 102, 292–298 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Wang A-Y et al. Socioeconomic status and risks of cognitive impairment and dementia: A systematic review and meta-analysis of 39 prospective studies. J. Prev. Alzheimers Dis. 10, 83–94 (2023). [DOI] [PubMed] [Google Scholar]
  • 26.Mamelund S-E, Shelley-Egan C & Rogeberg O The association between socioeconomic status and pandemic influenza: Systematic review and meta-analysis. PLOS ONE 16, e0244346 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Crichton J, Hickman M, Campbell R, Batista-Ferrer H & Macleod J Socioeconomic factors and other sources of variation in the prevalence of genital chlamydia infections: A systematic review and meta-analysis. BMC Public Health 15, 729 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.VanderWeele TJ & Ding P Sensitivity analysis in observational research: Introducing the E-value. Ann. Intern. Med. 167, 268–274 (2017). [DOI] [PubMed] [Google Scholar]
  • 29.Itzhaki RF et al. Microbes and Alzheimer’s disease. J. Alzheimers Dis. 51, 979–984 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Landry RL & Embers ME Does dementia have a microbial cause? NeuroSci 3, 262–283 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Vigasova D, Nemergut M, Liskova B & Damborsky J Multi-pathogen infections and Alzheimer’s disease. Microb. Cell Factories 20, 25 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Takeda S et al. Increased blood–brain barrier vulnerability to systemic inflammation in an Alzheimer disease mouse model. Neurobiol. Aging 34, 2064–2070 (2013). [DOI] [PubMed] [Google Scholar]
  • 33.Elkind MSV, Boehme AK, Smith CJ, Meisel A & Buckwalter MS Infection as a stroke risk factor and determinant of outcome after stroke. Stroke 51, 3156–3168 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Kalaria RN, Akinyemi R & Ihara M Stroke injury, cognitive impairment and vascular dementia. Biochim. Biophys. Acta BBA - Mol. Basis Dis. 1862, 915–925 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Boyle PA et al. Person-specific contribution of neuropathologies to cognitive loss in old age. Ann. Neurol. 83, 74–83 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Nichols E et al. The prevalence, correlation, and co-occurrence of neuropathology in old age: Harmonisation of 12 measures across six community-based autopsy studies of dementia. Lancet Healthy Longev. 4, e115–e125 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Chou C-H et al. Septicemia is associated with increased risk for dementia: A population-based longitudinal study. Oncotarget 8, 84300–84308 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Hadad R et al. Cognitive dysfunction following COVID-19 infection. J. Neurovirol. 28, 430–437 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Lyra e Silva NM, Barros-Aragão FGQ, De Felice FG & Ferreira ST Inflammation at the crossroads of COVID-19, cognitive deficits and depression. Neuropharmacology 209, 109023 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Tavares-Júnior JWL et al. COVID-19 associated cognitive impairment: A systematic review. Cortex 152, 77–97 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Liu Y-H et al. One-year trajectory of cognitive changes in older survivors of COVID-19 in Wuhan, China: A longitudinal cohort study. JAMA Neurol. 79, 509–517 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Milne BJ et al. Data Resource Profile: The New Zealand Integrated Data Infrastructure (IDI). Int. J. Epidemiol. 0, 6 (2019). [DOI] [PubMed] [Google Scholar]
  • 43.Statistics New Zealand. Integrated Data Infrastructure. https://www.stats.govt.nz/integrated-data/integrated-data-infrastructure.
  • 44.Statistics NZ. Integrated Data Infrastructure: Overarching privacy impact assessment. https://www.stats.govt.nz/privacy-impact-assessments/integrated-data-infrastructure-overarching-privacy-impact-assessment/. (2017).
  • 45.Walesby KE et al. Prevalence and geographical variation of dementia in New Zealand from 2012 to 2015: Brief report utilising routinely collected data within the Integrated Data Infrastructure. Australas. J. Ageing 39, 297–304 (2020). [DOI] [PubMed] [Google Scholar]
  • 46.Atkinson J, Salmond C & Crampton P NZDep2013 Index of Deprivation. (2014). [Google Scholar]
  • 47.Viechtbauer W Conducting meta-analyses in R with the metafor package. J. Stat. Softw. 36, 1–48 (2010). [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Material

Data Availability Statement

The following administrative databases from the Integrated Data Infrastructure (IDI) were used in the study: Publicly-funded hospital discharges, Pharmaceutical data, Mortality data, Address notification, Person overseas spell, Personal details, Resident population table, Births, and Deaths. Information about the databases is located here: https://www.stats.govt.nz/integrated-data/integrated-data-infrastructure/data-in-the-idi#geographic. The IDI register data used in this report are stored on Statistics New Zealand servers and cannot be shared by the authors. Access to the IDI is by application to Statistics New Zealand. Information about the application process is available here: https://www.stats.govt.nz/integrated-data/apply-to-use-microdata-for-research/.

RESOURCES