Introduction

Certain parasite, viral and severe bacterial infections mainly in hospitalized cases have been shown to increase the risk for psychotic disorders and mood disorders1,2,3. A few cross-sectional studies in adults have reported that also certain non-hospitalized infection events were associated with an overrepresentation of psychotic, mood or anxiety disorders4,5,6. Further, nation-wide population-based registry studies in Denmark reported elevated risks for a spectrum of mental disorders after infections and anti-infective drug exposures, especially antibiotics, in childhood/adolescence7,8. There are reports of an increased peripheral immune activation in most psychiatric disorders in pediatric populations9, and the peripheral immune system is being recognized for its importance in neurodevelopment10.

Very early life, ie the prenatal period and infancy, may imply a more pronounced vulnerability to the exposure due to the ongoing complex neurodevelopmental events including, but not limited to, neurogenesis, axonal and dendritic growth, synaptogenesis, and refinement of these synaptic connections11. Maternal infections and inflammation during pregnancy have been reported to affect the fetal brain, increasing the risk of offspring mental disorder with a focus mainly on psychotic disorders3,12,13,14. However, not all fetal exposure studies considered potential confounders e.g. maternal psychiatric diagnoses or socioeconomic factors. In a recent nation-wide registry study of a Danish birth cohort, maternal use of anti-infective agent during pregnancy was after adjustment for maternal and birth-related factors associated with an increased risk of any offspring psychiatric disorder, with a higher risk estimate than that of paternal anti-infective agent use. However, the risk estimates were similar for exposure during and outside the pregnancy period suggesting that the association was explained by unmeasured confounding15. On the other hand, a large cohort study in New Zeeland reported association for first year’s antibiotic exposure with behavioral difficulties and mood symptoms16, while no association between exposure during the first two postnatal years and autism and attention-deficit hyperactivity disorder (ADHD) was reported from registry studies in Canada17,18.

A putative association between antibiotic drug exposure and later psychiatric disorder might not only reflect the targeted bacterial infection and immune response thereto. Antibiotic treatment generally disrupts the bacterial microbiota in the intestine and other barriers, which in early developmental windows has resulted in marked behavioral effects in rodents, e.g. depressive-like and anxiety-like behaviors and cognitive changes19,20,21,22. The induced changes in barrier microbiota open up for opportunistic infections. Specifically the gut-brain axis works through modulation of brain activity via neural pathways and endocrine and immune mechanisms23,24,25. Thus, it is possible that the instability and immaturity of the bacterial microbiota during the first years of life imply a vulnerability to antibiotic drug exposure that could increase the risk for altered barrier microbiota, opportunistic infections and psychiatric disorder later in life26,27,28,29.

The aim of this study was to investigate if exposure to antibiotics, prenatally and in the first 2 years of life, influences the risk for a wide spectrum of psychiatric disorder up to 18 years of age using Finnish nation-wide registers.

Methods

Study population and data sources

All pregnancies ending in live birth in Finland between 1996 and 2012 were identified using the Drugs and Pregnancy database30 and included 990,098 births (Supplementary Data, Tables S1 and S2). There were no exclusion criteria. The Drugs and Pregnancy database is derived from the Medical Birth Register (MBR), the Register on Induced Abortions and the Register of Congenital Malformations, all currently kept at the Finnish National Institute for Health and Welfare (THL). MBR includes information since 1987 on all live births and stillbirths in Finland with a gestational age (pregnancy length) of 22 weeks or more, or with a birth weight of 500 g or more. The MBR data are supplemented from birth and death certificates and are complemented from the Cause-of-Death Register and from the maternity hospital records. According to data quality studies of the MBR, the majority of the register content corresponded well or satisfactorily with hospital record data31. Information on maternal and offspring (child) drug purchases was obtained from the Finnish Register on Reimbursement Drugs (RRD) maintained by the National Social Insurance Institution (SII). The Nordic countries are in a unique position concerning statistics on the consumption of medicines with registries showing high validity32. In Finland, all antibiotic drugs are prescription-only medicines. Prescription-only medicines are sold only in pharmacies, and dispensing requires a prescription issued by a physician or a dentist. All Finnish citizens are covered with health insurance and the use of health care services are free of charge or heavily subsidized. All Finnish citizens and permanent residents are entitled to reimbursement of prescribed medicine33. The RRD automatically registers all reimbursed drug prescriptions (Anatomical Therapeutic Chemical (ATC) codes) that were since 1996 dispensed at pharmacies. The Drugs and Pregnancy database includes all RRD records of purchases during pregnancy. Thus, the information on maternal drug purchases during pregnancy, stratified in trimesters T1, T2, and T3, were obtained from the Drugs and Pregnancy database, while the offspring purchases were obtained directly from RRD.

Maternal and offspring medical diagnoses, classified according to the WHO International Classification of Diseases (ICD), were obtained from the Finnish Care Registers for Health Care (HILMO), which covers adult psychiatric diagnoses well according to validation studies34 and one study reported good validity for pediatric ASD in HILMO35. Information from the registers was linked through the unique personal identification numbers assigned to all Finnish citizens and permanent residents, as set out in the permission from the register administrators (SII and THL). The Drugs and Pregnancy-database steering committee and the data protection authority in Finland authorized this study. The registered women and their children were not contacted, and informed consents were therefore not required.

Definition of exposures: in utero (fetal) and offspring postnatal antibiotic treatment

The exposure was based on purchases of antibiotic drugs in ten ATC codes J01A-J01X (A, B, C, D, E, F, G, M, R, X). The analysis included (a) any antibiotic drug (J01A-X), and (b) antibiotic drugs categorized into (i) “airway antibiotics”, i.e. those against gram-positive bacteria commonly used to treat respiratory infections (J01C, D and F) and (ii) “urinary tract antibiotics”, i.e., those against urinary tract or skin or soft tissue infections (J01E and M). A separate analysis included broad-spectrum (J01A, B, E, F, G, M, R, X) and narrow spectrum (J01C) antibiotics. For fetal exposure, mothers’ purchases during pregnancy were used. Offspring exposure to antibiotics postnatally was stratified: the first 6 months, 6–11 months, 1–2 years.

Information on offspring in-patient care for infectious disorder, previously shown to commonly be treated with antibiotics36, was retrieved from HILMO: ICD10 A00-B99, G00-G03, J00-J22, K35, L08, N10, and N30 as primary or secondary diagnoses. Maternal in- and out-patient data on infections during pregnancy were obtained from HILMO and MBR: ICD10 A00-B99, J00-J22, K35, L00-08, and O23.

Definition of outcomes: offspring psychiatric disorders

Data on psychiatric disorders for the offspring, as primary or secondary diagnoses between birth and December 2014, was obtained from HILMO. The diagnosis-groups indicated by the following ICD–10 codes were studied: F20–39, F92 (Mood disorders), F40–43, F93 (Anxiety disorders), F50 (Eating disorders), F51 (Non-organic sleeping disorders), F84 (autism), F90–F91 (ADHD and Conduct disorders) and F98 (Other behavioral and emotional disorders with onset usually occurring in childhood and adolescence) (Supplementary Table S1).

Information on prescription of psychotropic drugs to offspring was obtained from the RRD and used as outcome in a second model: ATC code N05 (antipsychotics, anxiolytics, hypnotics and sedatives), N06A (antidepressants) and N06B (psychostimulants and nootropics).

Other variables used as covariates

Information on offspring birth year, sex, perinatal problems (birth before gestational week 37, birth weight < 2500 grams, or small birth weight or length for the gestational age according to Finnish sex-specific standards37,38), number of fetuses, mode of delivery, maternal age at delivery, parity, the mother’s country of birth and marital status, and maternal smoking, were obtained from the Drugs and Pregnancy database. Smoking and marital status correlate highly with socioeconomic status39. Data on the mother’s diagnoses related to systemic inflammatory disorders (ICD–10: M30–M36 in 1996–2014, i.e., systemic connective tissue disorders) and previous in-patient care due to mental health disorders (ICD–8: 290–317 in 1969–1986, ICD–9: 290–319 in 1987–1995, and ICD–10: F00–F99 in 1996–2014), as primary or secondary diagnoses, was obtained from HILMO.

Statistical analysis

Cox proportional hazards modeling was used to estimate the effect of antibiotic drug exposure, in utero and postnatally, on the outcomes (i) offspring psychiatric diagnosis and (ii) offspring prescription of psychotropic drug. As the different neurodevelopmental events have certain time-windows11, and the gut microbiota develops extensively during the first 2 postnatal years25, the analyses measuring postnatal antibiotic drug exposure were stratified for age groups: first 6 months, 6–11 months, 1–2 years. The same covariates were adjusted for (see Table 1) in both the fetal and the postnatal exposure models because of possible confounding26,40,41,42,43, except for that the postnatal exposure model was adjusted also for mother’s purchases of antibiotics during pregnancy [yes/no].

Table 1 Adjusted Cox hazard ratios (HR) and 99% confidence intervals (CI) for the outcomes (columns) (i) psychiatric disorder (ICD-10 F diagnoses), and (ii) psychotropic medication until 2014, in relation to exposure to antibiotics (rows) in fetal life, trimesters 1–3 (i.e. maternal purchase of antibiotic drug at least during pregnancy), among the 990 098 births (1996–2012). Outcomes after birth are considered.

Five sensitivity analyses were performed: (1) Sibling pair analysis controlling for unmeasured familial confounding estimated the risk for the second sibling to have any F diagnosis or any psychotropic drug treatment after fetal exposure to any antibiotic drug (any J01). Mothers where only the first pregnancy was exposed were compared to mothers where both pregnancies were exposed. These Cox proportional hazards modeling sibling pair analyses were made for mothers exposed to any J01 during at least one of the two pregnancies, with mothers not exposed during any pregnancy as reference, adjusted for the above list of covariates as well as intra-pregnancy interval, and any F diagnosis or psychotropic medication in the first child. The first two subsequent singleton pregnancies of the same mother during the study period were included. The first child was not necessarily the first child of the mother. The siblings from both pregnancies were follow-up for psychiatric diagnoses or psychotropic medication until 2014. (2) For additional exploration of unmeasured confounding, offspring risks after any maternal J01 purchase was compared between the different exposure periods: only after pregnancy, only before pregnancy, and only during pregnancy. (3) Further, we estimated offspring risk after any maternal J01 purchase after adjustment for maternal infection during pregnancy. (4) In the postnatal exposure analysis, the offspring with an in-patient care for an infectious disorder, (ICD-10 A00-B99, G00-G03, J00-J22, K35, L08, N10, N30), were excluded, as these disorders were previously shown to commonly be treated with antibiotic drugs36, and the RRD does not cover in-patient care antibiotic treatment data. (5) These same in-patient care offspring with infections were included in the exposed group.

Hazard risk ratios (HRs) with 99% confidence intervals (CIs) were reported as measures of effect size. All statistical analyses were performed using SAS version 9.3 (SAS Institute Cary, USA).

Results

Description of the study population

All births in Finland between 1996 and 2012 were studied, being 990,098 births providing a longitudinal dataset with 9.7 million person-years. Characteristics of the birth cohort and pregnancy-related characteristics are described in Table S2. Of the births, 25.7% had reported use of any antibiotic drug any time during pregnancy (trimester T1 to T3). Maternal factors that associated with higher antibiotic use during pregnancy were smoking, previous inpatient care for psychiatric disorder or systemic inflammatory diagnoses and Finnish background (p < 0.001). From birth to 2 years of age, 81.7% of the offspring had at least one prescription of antibiotic drugs. The above maternal factors, as well as offspring male sex, was associated with higher offspring antibiotic use between birth and 2 years of age (p < 0.001). These factors were adjusted for in the following analyses. Of the offspring, 14.9% had no antibiotic exposure, neither prenatally nor during the first 2 years after birth, and 10.7% received a diagnosis of psychiatric disorder (ICD-10 codes F30–F51, and F84–F98, Supplementary Table S1) up to year 2014, that is the oldest offspring being 18 years (Table 1).

Fetal exposure to antibiotic drugs

Antibiotic exposure during pregnancy (T1–T3) associated with a 14–15% increased risk for any offspring psychiatric diagnosis from birth until 2014, after adjusting for pregnancy- and birth-related factors (HRT1 = 1.15 [1.13–1.18]; HRT2 = 1.14 [1.12–1.16]; HRT3 = 1.14 [1.12–1.17], for HRT1-T3 see Fig. 1). When assessing F-diagnosis groups separately, the risk increase was strongest for sleep disorders (F51, HRT1–T3 = 1.36 [1.25–1.46]), while there was no increased risk for eating disorders (F50) or autism (F84) (Fig. 1). The antibiotic drugs were categorized into (i) airway antibiotics (J01C, D or F), (ii) urinary tract or soft tissue antibiotics (J01E or M), narrow spectrum antibiotics (J01C) and broad spectrum antibiotics (J01A, B, E, F, G, M, R or X; dominated by J01A, E, F and M). The adjusted risk for any psychiatric diagnosis was similarly low for airway antibiotics (HRT1–T3 = 1.16 [1.14–1.18]), urinary tract antibiotics (HRT1–T3 = 1.20 [1.02–1.40]), after exposure to both (HRT1–T3 = 1.18 [1.02–1.36], after narrow spectrum (HRT1–T3 = 1.12 [1.10–1.15], and even after broad spectrum antibiotics (HRT1–T3 = 1.19 [1.14–1.24], Table 1). When, for these exposures, assessing F-diagnosis groups separately, sample sizes were generally low for the urinary tract antibiotics resulting in wide 99% CIs. However, looking at exposure to the other antibiotic groups (airway, narrow spectrum and broad spectrum antibiotics) revealed that the risk increase was strongest for sleep disorders (F51, point-wise HRT1–T3 = 1.32–1.41, Table 1). A robust effect was seen also on mood disorders (F30–39, F92, point-wise HRT1–T3 = 1.12–1.41), anxiety disorders (F40-43, F93, point-wise HRT1–T3 = 1.13–1.43), ADHD/conduct disorder (F90-91, point-wise HRT1–T3 = 1.17–1.53) and on other behavioral and emotional disorders (F98, point-wise HRT1–T3 = 1.14–1.29) (Table 1). This was supported by a slightly increased risk for purchase of any psychotropic drug (N05, N06A or N06B) after antibiotic exposure (point-wise HRT1–T3 = 1.14–1.17), with highest HR being for antidepressants (N06A, HR = 1.28 [99% CI: 1.15–1.42], Table 1). Broad spectrum compared to narrow spectrum antibiotics implied a slightly higher risk for mood and anxiety disorders, other behavioral and emotional disorders (F98) and purchase of antidepressants (N06A) (Table 1).

Fig. 1: Overview of adjusted Cox Hazard Ratios for (i) psychiatric diagnoses (ICD-10 F diagnoses), and (ii) psychotropic medication, in relation to exposure to any antibiotic drug prenatally (trimester 1–3) or in the first 2 years of life, among 990,098 births (1996–2012).
figure 1

For prenatal exposure, outcomes after birth until 2014 were considered. For postnatal exposure (first 6 months, 6–11 month after birth, 1–2 years after birth), outcomes after 2 years of age until 2014 were considered. The following factors were adjusted for: maternal age, parity, maternal smoking during pregnancy [yes/no], mother unmarried [yes/no], mother born elsewhere than Finland [yes/no], cesarean section [yes/no], mother’s inpatient care due to mental health disorders [yes/no], mother’s purchase of psychotropic drugs (N05 or N06) during pregnancy [yes/no], mother’s diagnoses related to systemic inflammatory disorders [yes/no], multiple birth [yes/no], offspring sex, perinatal health problems (birth weight < 2500 grams, gestational age < 37 weeks or small for gestational age according to Finnish sex-specific standards) [yes/no]. For postnatal exposure we adjusted also for mother’s prescriptions for antibiotics during pregnancy [yes/no]. Error bars indicate 99% confidence interval. Reference: Births where the fetuses or offspring were not exposed to any antibiotic drug during the exposure period studied.

Table 2 Cox hazard ratios (HR) and 99% confidence intervals (CI) for the outcomes (columns) (i) any psychiatric disorder (ICD-10 F diagnoses), and (ii) any psychotropic medication (ATC N05 and N06) until 2014, in relation to A) maternal purchase of antibiotic drug within 3 months before pregnancy, during pregnancy, and within 3 month after pregnancy, and B) maternal infection and/or purchase of antibiotic drug at least during pregnancy.

To explore if the modest effect sizes where because of unmeasured familial confounding a sibling pair analysis was performed. Any antibiotic drug (any J01) exposure prenatally for the first child was associated with a slightly increased risk of any F-diagnosis for the unexposed second child, using as reference the risk for the second child in sibling pairs where none of the first or second pregnancies were exposed to any antibiotic drug (HR = 1.06 [95% CI: 1.00–1.13]). When also the second child was exposed prenatally the risk was larger (HR = 1.24 [95% CI: 1.16–1.33]). The risk for any psychotropic medication in the second child was not increased for those where only the first child was exposed (HR = 1.08 [95% CI: 0.98–1.18]). However, when exposure also during the second pregnancy, this second child had an increased risk of any psychotropic medication (HR = 1.22 [95% CI: 1.10–1.36]) (Supplementary Table S3).

Moreover, maternal antibiotic drug purchase during the 3 months before (3 mB) or 3 months after (3 mA) pregnancy had smaller risk effect size for any F-diagnosis in offspring (HR3mB = 1.07 [99% CI: 1.03–1.10] and HR3mA = 1.02 [99% CI: 1.00–1.09], respectively) than the purchase during pregnancy (P) HRP = 1.16 [99% CI: 1.14–1.18]. This was supported by lower risk estimates also for offspring N05 and N06 purchases upon maternal exposure before or after pregnancy (HR3mB = 1.06 [99% CI: 1.01–1.10], HR3mA = 1.03 [99% CI: 1.00–1.06] than during pregnancy HRP = 1.16 [99% CI: 1.13–1.19], respectively) Table 2). This together with the sibling pair analysis suggest that the exposure effects detected are not only because of familial confounding. Accordingly, there was a modest dose effect of any antibiotic exposure on any psychiatric disorder (Fig. 2).

Fig. 2: Risk for any offspring psychiatric diagnosis by increasing number of mother’s antibiotic drug purchases during pregnancy (trimester 1–3).
figure 2

All types of antibiotic drugs were considered. The covariates adjusted for are those listed in Fig. 1. Error bars indicate 99% confidence interval. Reference: Births where the mother had no antibiotic purchase during pregnancy.

Maternal infection during pregnancy implied a higher risk for offspring psychotropic drug purchase than maternal purchase of antibiotic drug did HRInfection = 1.28 [99% CI: 1.18–1.38] HRAntibiotic drug = 1.16 [99% CI: 1.13–1.19] (Table 2). However, adjustment for maternal infection during pregnancy did not change the risk estimates of maternal antibiotic drug purchase on offspring F-diagnosis (HR = 1.16 [99% CI: 1.14–1.18]) or on psychotropic drug purchase (HR = 1.16 [99% CI: 1.13–1.19]) (Table 2).

Postnatal exposure to antibiotic drugs

The exposure was stratified in the age groups: the first 6 months (proportionexposed = 13.8%), 6–11 months (proportionexposed = 41.1%) and 1–2 years of age (proportionexposed = 53.9%). The adjusted risk for any psychiatric diagnosis after 2 years of age by purchase of any antibiotic drug (any J01) was only slightly increased, irrespective of age at exposure (point-wise HR = 1.10–1.16; Table 3 and Fig. 1). However, the risks of any antibiotic drug for specific psychiatric diagnosis groups were higher. The strongest risk was seen on sleep disorders after exposure during the second year (F51, HR1-2 years = 1.40 [1.24–1.60]), followed by ADHD/conduct disorder (F90–91, HR1-2 years = 1.26 [1.20–1.33]) and other behavioral and emotional disorders (F98, HR1–2 years = 1.24 [1.17–1.31]). Only autism (F84) showed no risk increase for any age group (Table 3 and Fig. 1). Excluding the offspring with an in-patient care for infectious disorder (A00-B99, G00-G03, J00-J22, K35, L08, N10, N30) before 2 years of age (12.3%), because of lack of in-patient antibiotic treatment data, reduced the adjusted HRs slightly for the largest psychiatric diagnosis groups (Supplementary Table S4 Model 2). However, the risk estimates in Model 2 remained significantly above reference indicating that the risk estimates in the original sample (Model 1) were not completely explained by the hospitalized infection cases. Including these same in-patient care offspring with infections in the exposed group resulted in an overall increase of the HRs that was strongest for offspring exposed before 6 months of age (Table S4 Model 3). This latter finding supports an association for early infection or antibiotic drug exposure with later psychiatric disorders. That the HR increase was strongest in those exposed before 6 months of age probably reflects that this group enlarged the most in size in Model 3 compared to Model 2 and Model 1.

Table 3 Adjusted Cox hazard ratios (HR) and 99% confidence intervals (CI) for the outcomes (columns) (i) psychiatric diagnoses (ICD-10 F diagnoses), and (ii) psychotropic medication until 2014, in relation to postnatal exposure to antibiotics (rows) in the first 2 years of life, among the 990 098 births (1996-2012). Outcomes after 2 years of age are considered.

Stratifying for type of antibiotic drug, the strongest risk for any psychiatric diagnosis (Any F diagnosis) after 2 years of age was seen for the offspring exposed before 6 months of age to urinary tract and soft tissue antibiotics with or without combination with airway antibiotics (HR~1.4) (Table 3). Consistent between most exposure categories (defined by antibiotic drug group and exposure age), increased risks were seen for ADHD/conduct disorder (F90–91, point-wise HR = 1.12–1.45), anxiety disorders (F40–43 and F93, point-wise HR = 1.10–1.45), other behavioral and emotional disorders (F98, point-wise HR = 1.07–1.48), and, albeit weaker, for mood disorders (F30–39 and F92, point-wise HR = 1.10–1.23), while the risk was significantly increased for sleep disorders only after exposure to the ‘both’ antibiotic group (airway and urinary tract antibiotics) after 6 months of age (F51, point-wise HR = 1.48–1.50).

The HRs for any psychotropic medication purchase to offspring after two years of age were stronger (point-wise HR: 1.17–1.40) than the corresponding HRs for any psychiatric diagnosis (Fig. 1). High risk estimates were seen primarily for purchase of N05 medication (point-wise HR: 1.19–1.94, Table 3), in this cohort corresponding primarily to anxiolytics (N05B) and sedatives (N05C) used for treatment of anxieties and sleep problems. Further, there was a robustly increased risk for purchase of stimulants for most exposure categories (N06B, point-wise HR: 1.13–1.54) which are used in the treatment of ADHD. Dose effects were detected among children exposed during their second year comparing the ‘CDF and EM’ antibiotic category corresponding to at least two drugs, with the ‘EM’ category for any psychiatric diagnosis and any psychotropic medication (Table 3).

Discussion

Our findings indicate that exposure to antibiotic drugs, in utero and the first two postnatal years, is associated with a modestly increased risk for pediatric psychiatric disorders, including sleep disorders, ADHD and conduct disorder, mood and anxiety disorders, as well as the diagnosis group of other behavioral and emotional disorders with onset usually occurring in childhood and adolescence. The associations between antibiotic drug exposure and later psychiatric disorders might reflect direct effects of the targeted infections, as well as effects of antibiotic drugs on barrier microbiota with downstream opportunistic infections and altered gut-brain axis signaling. Specifically, fetal exposure was associated with a 32–41% (point-wise HR = 1.32–1.41) increased risk for sleep disorders spanning different types of antibiotics, whereas the risk estimates for ADHD/conduct disorder, mood, anxiety and other behavioral and emotional disorders increased with 12–53%. To strengthen these findings we estimated the risk for psychotropic medication given exposure to the antibiotic drugs. The elevated risk for mood disorders was supported by a 28% increased risk for antidepressant purchase after broad spectrum antibiotics exposure. Other support of an association between any prenatal antibiotic exposure and offspring psychiatric disorder included the dose–response effect observed illustrated in Fig. 2, the lower effect size of the association between maternal antibiotic use outside compared to during pregnancy, and finally the sibling pair analysis showing that, among singleton sibling pairs, the second child had a stronger increased risk for any F diagnosis or any psychotropic medication when it was exposed compared to when only its older sibling was exposed. Antibiotic exposure during the first two postnatal years showed similar modest effects as fetal exposure did on the aforementioned psychiatric diagnosis groups. Thus, there was no robust effect size difference between exposure prenatally, the first 6 month, the next 6 months or the second year on risk for any later psychiatric diagnosis. Notably however, after postnatal exposure the risks for later psychotropic medication were somewhat stronger than that for psychiatric diagnoses. Higher risk estimates were seen primarily for purchase of anxiolytic and sedative (N05) medication (19–94% elevated risk), used for treatment of anxieties and sleep problems. Further, there was a robustly increased risk for purchase of stimulants (N06B, 13–54% increased risk), which are used in the treatment of ADHD. Type of antibiotics, grouped into airway versus urinary tract and soft tissue antibiotics, had no robust influence on the effect of prenatal exposure, but broad spectrum antibiotics implied a slightly higher risk than narrow spectrum antibiotics for mood and anxiety disorders, other behavioral and emotional disorders, and purchase of antidepressants. For postnatal exposure, stronger effects on any psychiatric diagnosis and any psychotropic medication were detected among offspring exposed to urinary tract and soft tissue antibiotics, which often are broad spectrum, compared to the more commonly narrow spectrum airway antibiotics. However, when it comes to specific psychiatric diagnosis groups, due to small exposure groups for urinary tract and soft tissue antibiotics, differences in effects between antibiotic types could not be detected but cannot be ruled out.

Previous nation-wide longitudinal register studies on childhood infection and anti-infective drug exposure and later mental disorders have been performed primarily in Denmark. Köhler et al. found increased risks (HR = 1.3–1.7) for schizophrenia and mood disorders, in their study of antibiotic drug exposure from 10 to 28 years of age, while smaller or no effects were seen of other anti-infective drug7. They also followed all births from 1995 to 2013 and reported increased risks for several psychiatric disorders after infections and anti-infective drug exposure, especially for those treated with antibiotics (HR for any psychiatric diagnosis = 1.4–1.5) and infections requiring hospitalization (HR = 1.7–2.0)8. However, mental disorders were grouped differently than in our study prohibiting result comparison, e.g. sleeping disorders and ADHD/conduct disorders were not studied separately and both mood and anxiety disorders were split into several diagnosis groups. Finally, Lydholm et al. recently suggested that the associations of prenatal exposure to anti-infectives and infection with any offspring pediatric psychiatric diagnosis were explained by unmeasured factors, based on comparing risk estimates from maternal exposure during pregnancy with that of exposure before and after pregnancy, and comparing risks from maternal versus paternal exposures15. However, we found an increased risk estimate by exposure specifically during pregnancy. That we but not Lydholm et al.15 detected pregnancy specific effect might be because we studied specifically antibiotics, which have previously been reported to be associated with larger risk estimates than other anti-infectives at postnatal exposure7. In Canadian register studies investigating effects of antibiotic exposure during the first one-two years of life on risk for autism or ADHD no associations were found17,18, the former in agreement with our data.

Most current nation-wide register data (e.g. the Finnish used here) are not reliable enough to determine whether the associations between antibiotic drug exposure and later psychiatric disorders reflect the targeted infections, or antibiotic drug-induced barrier dysmicrobiota with secondary opportunistic infections and/or possibly alterations in gut-brain axis signaling. This is primarily because less severe infections are under-reported, antibiotic drugs are overprescribed44,45, and compliance to these prescriptions is not complete46. The extent of these factors likely vary between countries. In our study, all recorded drugs were not only prescribed, but also purchased. Further, in our data maternal infection during pregnancy did increase the risk for offspring psychotropic drug purchase more than maternal purchase of any antibiotic drug did, but the risk estimates of the latter exposure were not affected by adjustment for the registered maternal infection. Because of considerable under-reporting of infection in our data we adjusted for maternal infections only in the aforementioned small sensitivity analysis. For the first two postnatal years, we had infection data only for certain hospitalized bacterial infections. However, these cases did not completely explain the risk estimates of antibiotic drug purchase on psychiatric disorder. Our tendencies for stronger effects of antibiotics with a broader target spectrum might reflect more severe infections, as well as larger effects on gut microbiota. Both infections and a dysfunctional gut microbiota can influence the immune system. The evidence for a proinflammatory state in pediatric population is strongest for ASD, but proinflammatory cytokines have been reported elevated in children with major depressive disorder, bipolar disorder, post-traumatic stress disorder, obsessive-compulsive disorder, Tourette’s disorder, ADHD and schizophrenia9. In adults there is support for immune activation in the pathophysiology of major depressive disorder47, and schizophrenia48. Immunomodulation by the gut microbiota is emerging as an important pathway that orchestrates the microbiota–gut–brain communication, and thereby it may affect neurodevelopment10,49,50,51. Further, reduction of gram-negative bacteria in the mouse gut microbiota, e.g., by exposure to antibiotics, caused inadequate regulation of circadian clocks in the intestinal epithelial cells, which has negative downstream effects on lipid metabolism52, and potentially on brain housekeeping functions53 and, as we hypothesize here, on sleep as well.

Other limitations include that the sample size of later onset psychiatric disorders was reduced as only the oldest birth year cohort was followed up for 18 years. We estimated the proportion identified in the complete cohort out of the number of cases predicted to be diagnosed before 19 years of age using the diagnosis rates in the 1996 birth cohort, thus not considering general changes over time in incidence of the diagnoses. Twenty-nine percent of eating disorders, 33% of mood disorders, 41% of anxiety disorders, and 60–85% of sleeping disorders, ASD, ADHD and conduct disorders, and other behavioral and emotional disorders (F98) were identified. This was in agreement with the data on mean age at onset of the diagnosis groups (Table S1). The risk estimates for offspring psychiatric diagnosis or medication did not follow the pattern of proportion picked up or mean age at onset. Second, the aim of this study was to explore effect of antibiotic exposure during fetal and the first 2 years of life. A lot can happen during the years between exposure and outcome, partly depending on outcome onset time (Table S1). However, adjustment in the fetal exposure model for exposure during the first 2 years did not change the risk estimates. We did not account for other treatment-confounder effects such as the influence of exposure to antibiotics after the second year birthday since its effect on the risk of any psychiatric diagnosis declined by increasing exposure age, and the vast majority (83.2%) of the full cohort was exposed to antibiotic drug up to the age of 18 years. Third, the validity of psychiatric diagnoses other than autism of the pediatric population in HILMO has not been reported. Fourth, early psychosocial adversity increases the risk for later psychopathology54,55. We adjusted for presence of maternal in-patient psychiatric diagnoses and psychotropic medication, and the sibling pair analysis, as well as analysis of maternal exposure outside the pregnancy period proposed that the effects where not completely explained by familial confounding. Still, the effect sizes reported should be considered to possibly be influenced by residual confounding from genetic and environmental influences related to paternal psychiatric conditions that could influence medical care seeking not possible to adjust for here. The estimated risk needed for such unmeasured confounding, conditional the measured covariates, to explain away the associations reported here would be at least HR = 2.1 [99% CI: 1.6–2.8] for prenatal exposure and HR = 3.3 [3.1–3.5] for postnatal exposure, towards both the exposure and the outcome56. Finally, the associative nature of the study prevents causal inference.

Conclusion

There is a modest association between early life antibiotic exposure and later childhood development of sleep disorders, ADHD, conduct disorder, mood and anxiety disorders, and other behavioral and emotional disorders. The magnitudes of the associations overlap considerably between diagnoses. Given the high occurrence of early-life antibiotic exposure, and the substantial prevalence of childhood- and adolescent-onset psychopathology, modest associations among these phenomena are of public health relevance. However, larger studies are needed to confirm the effect sizes of the individual diagnoses groups after controlling for confounding by family factors, and to explore whether the associations detected reflect effects of the antibiotic drug use or of the targeted infections.