Introduction

Antiseizure medications (ASMs) play an important role in managing seizures in epilepsy and mood stabilization in psychiatric conditions. However, using an ASM during pregnancy presents complex challenges due to risks to fetal development. Some ASMs, such as valproate, are well-established teratogens and contraindicated in pregnancy regardless of the indication1,2.

Mounting evidence suggests that certain ASMs are associated with both fetal malformations and the long-term neurodevelopment of offspring3,4,5,6,7,8,9,10. Notably, landmark studies such as the Neurodevelopmental Effects of Antiepileptic Drugs study (N = 311) have demonstrated that children exposed to valproate in utero have lower IQs at age six5. However, less is known about the long-term effects of newer or less commonly used ASMs11,12.

Recent research13,14,15,16,17 (see Supplementary Background), including a large-scale Nordic study15, has raised concerns about the potential risks of drugs other than valproate. Amongst several findings, the Nordic study15 reported a twofold increase in the rate of neurodevelopmental conditions among children born to mothers with epilepsy who were prescribed topiramate during pregnancy versus no ASM (HR 2.13, 95% CI 1.13–4.01). This finding could not be replicated by a large-scale US study of autism18, where the association between topiramate and children’s autism diminished after controlling for confounders. However, the small number of pregnancies exposed to monotherapy topiramate (N = 246 in the Nordic15 & N = 623 in the US18), the few cases of neurodevelopmental outcomes (N = 10 in the Nordic15 & N < 11 in the US18) and the short follow-up of the children (median 5.7 years in the Nordic15 & 2 years in the US study18), mean more evidence is needed from large populations with longitudinal follow-up about the risks associated with these medications.

Determining whether these associations are due to causal effects of the medications, or confounding is extremely challenging because randomized controlled trials have not been possible for practical and ethical reasons11,12. Confounding is especially concerning since the indications for ASMs are likely to be affected by similar genetic variation to neurodevelopmental conditions19. Despite considerable research attention, few studies have been able to credibly identify the causal effects of these medications distinct from genetic confounding.

To contribute to the current evidence and aid ongoing reviews by regulatory agencies, such as the European Medicines Agency20 and the Medicines and Healthcare Products Regulatory Agency (MHRA)21, we conducted a study combining evidence from the UK primary care-based Clinical Practice Research Datalink (CPRD) GOLD and nationwide Swedish registries. By meta-analyzing across these datasets, we constructed a large-scale cohort of exposed children and accounted for observed confounding through conventional epidemiological methods, and time-invariant unobserved confounding by comparing exposed and unexposed siblings.

Results

Descriptives

Among the 3,182,773 children, 17,495 were exposed to ASMs (Table 1). ASM users had more health care visits, co-prescription of antidepressants and antipsychotics, were more likely to have a neurodevelopmental diagnosis, and were more likely to have given birth in more recent years. There were 78,442 children diagnosed with autism, 26,787 diagnosed with intellectual disability, and 155,329 diagnosed with attention deficit hyperactivity disorder (ADHD). Table S1 shows the number exposed to each ASM and summary statistics for the length of follow-up in each country.

Table 1 Characteristics of offspring included at each data source, by ASM exposure during pregnancy

Primary analyzes: ASM use and offspring neurodevelopmental conditions

After adjusting for differences in covariates between children unexposed and exposed to ASMs during pregnancy, and meta-analyzing across countries, at age 12 the expected absolute risk of autism, intellectual disability, and ADHD among children unexposed to ASMs was 3.01% (95% CI: 2.94–3.08), 0.92% (95% CI: 0.90–0.94), and 2.50% (95% CI: 2.39–2.63), respectively (Fig. 1). The ASM with the highest expected absolute risk varied by outcome. For autism, the highest absolute risk at age 12 was observed for valproate monotherapy (4.85%; 95% CI: 4.07–5.78), followed by polytherapy (4.29%; 95% CI: 3.49–5.28) and gabapentin monotherapy (3.67%: 95% CI: 2.70–4.09). For intellectual disability, the greatest risk at age 12 was observed for valproate monotherapy (2.36%; 95% CI: 1.83–3.05), topiramate monotherapy (2.14%: 95% CI: 1.08–4.24) and polytherapy (1.80%; 95% CI: 1.33–2.43). For ADHD the greatest risk at age 12 was observed for valproate (6.34%; 95% CI: 5.32–7.56), phenytoin (6.30%: 95% CI: 4.38–9.07), and polytherapy (5.88%: 95% CI: 4.78–7.22). Combined and country-specific values for all ASMs, as well as risk difference values are presented in Supplementary Results Tables S25 and Figs. S36.

Fig. 1: The pooled absolute adjusted risk (%) of offspring neurodevelopmental conditions by ASM exposure during pregnancy at ages 4, 8, and 12.
figure 1

All estimates are adjusted for maternal age, region, diagnosis of neurodevelopmental conditions before pregnancy, evidence of hazardous drinking and illicit drug use during pregnancy, gravidity, health care utilization, seizure events, use of antipsychotics and antidepressants in the year prior to pregnancy, vomiting or antiemetic prescriptions during pregnancy, and socioeconomic position. Data are presented as pooled absolute adjusted risk (end line of bars) ± 95% confidence limits (grey error bars). Presented measures were estimated using fixed-effects meta-analysis on the log-risk scale. Note that pooled estimates of the risk of ADHD among those not exposed to an ASM are heavily weighted towards the UK (risk age 12 = 2.10; 95% CI = 1.99–2.21), where a lower risk was estimated than in Sweden (risk age 12 = 5.70; 95% CI = 5.09–6.38), due to the calculation of lower standard errors for estimated risks closer to 0 (see Supplementary Results Tables S2 and S3). Sample size for figure: Total cohort = 3,182,771, No ASM = 3,165,276, Carbamazepine = 3030, Gabapentin = 1428, Lamotrigine = 5974, Levetiracetam = 806, Phenytoin = 240, Pregabalin = 1715, Topiramate = 418, Valproate = 1601, Other ASM = 543, Polytherapy = 1740. Source data are provided as a Source Data file. ADHD attention deficit hyperactivity disorder, ASM antiseizure medication.

Figure 2 shows meta-analyzed hazard ratios (HR) of each outcome for each ASM monotherapy compared to no ASM exposure during pregnancy. Children exposed to valproate (HR: 1.78; 95% CI: 1.48–2.14), polytherapy (HR: 1.51; 95% CI: 1.22–1.88), and carbamazepine (HR: 1.25; 95% CI: 1.05–1.48) were more likely to have an autism diagnosis than unexposed children. Children exposed to these drugs also had an increased hazard of intellectual disability (valproate HR: 2.56, 95% CI:1.97–3.32; polytherapy HR: 2.02, 95% CI: 1.49–2.75; carbamazepine HR: 1.30, 95% CI: 1.01–1.69) in addition to increased hazard associated with topiramate (HR: 2.48; 95% CI: 1.23–4.98). Children exposed to valproate (HR: 1.20; 95% CI: 1.02–1.40) had an increased hazard of ADHD, while children exposed to pregabalin had decreased hazard of ADHD (HR: 0.67; 95% CI: 0.55–0.83). Country-specific and combined HRs for all ASM monotherapies are presented in Supplementary Results Table S6 and Fig. S7. There was little evidence to suggest that the estimates in primary analyzes differed between countries, except for the HR of ADHD for lamotrigine where the estimate in the UK was greater than in Sweden (see Supplementary Results Table S7).

Fig. 2: The pooled adjusted hazard ratios of offspring neurodevelopmental conditions by ASM exposure during pregnancy.
figure 2

All estimates are adjusted for maternal age, region, diagnosis of neurodevelopmental conditions before pregnancy, evidence of hazardous drinking and illicit drug use during pregnancy, gravidity, health care utilization, seizure events, use of antipsychotics and antidepressants in the year prior to pregnancy, vomiting or antiemetic prescriptions during pregnancy, and socioeconomic position. Error bars show 95% confidence limits. The presented measures were estimated using fixed-effects meta-analysis on the log-hazard ratio scale. Sample size for figure: Total cohort = 3,182,771, No ASM = 3,165,276, Carbamazepine = 3030, Gabapentin = 1428, Lamotrigine = 5974, Levetiracetam = 806, Phenytoin = 240, Pregabalin = 1715, Topiramate =  418, Valproate = 1601, Other ASM = 543, Polytherapy = 1740. Source data are provided as a Source Data file. ADHD attention deficit hyperactivity disorder, ASM antiseizure medication, HR hazard ratio.

Secondary analyzes: sibling, active comparator and indication restricted analyzes

Sibling analyzes, presented in Fig. 3A, account for unmeasured genetic and environmental confounding shared between siblings. Results were largely consistent with the primary analyzes (see Supplementary Results Table S8), except for phenytoin where large HRs were found for autism (within-family HR: 11.53; 95% CI: 4.00–33.20) and ADHD (within-family HR: 9.48; 95% CI: 3.60–24.95). These estimates were heavily weighted towards CPRD, where there were a small number of exposed individuals (see Table S1). Within-family HRs for ADHD were also not consistent for pregabalin, other ASMs and polytherapy. Country-specific and combined values are presented in Supplementary Results Table S8 and Fig. S8.

Fig. 3: Sibling comparisons and active comparison with lamotrigine by ASM exposure during pregnancy.
figure 3

The pooled estimates for (A) sibling comparisons (within-family hazard ratio) and (B) active comparison with lamotrigine (hazard ratio) by ASM prescription during pregnancy. All estimates are adjusted for maternal age, region, diagnosis of neurodevelopmental conditions before pregnancy, evidence of hazardous drinking and illicit drug use during pregnancy, gravidity, health care utilization, seizure events, use of antipsychotics and antidepressants in the year prior to pregnancy, vomiting or antiemetic prescriptions during pregnancy, and socioeconomic position. Error bars show 95% confidence limits. The presented measures were estimated using fixed-effects meta-analysis on the log-hazard ratio scale. Sample size for figure: Total cohort = 3,182,771, No ASM = 3,165,276, Carbamazepine = 3030, Gabapentin = 1428, Lamotrigine = 5974, Levetiracetam = 806, Phenytoin = 240, Pregabalin = 1715, Topiramate = 418, Valproate = 1601, Other ASM = 543, Polytherapy = 1740. * Sibling comparison results for phenytoin are presented in the text. Source data are provided as a Source Data file. ADHD attention deficit hyperactivity disorder, ASM antiseizure medication, HR hazard ratio.

We present our active comparison analysis, using lamotrigine as the reference group, in Fig. 3B. This analysis makes a comparison with children exposed to an ASM considered to be safe, thereby reducing the possibility of confounding by indication. Our analyzes showed that, relative to lamotrigine, children exposed to carbamazepine, valproate, other ASMs, and polytherapy had greater hazard for a diagnosis of autism. Children exposed to topiramate, valproate and polytherapy had greater hazard of an intellectual disability diagnosis than those exposed to lamotrigine. Children exposed to valproate and polytherapy had greater hazard of an ADHD diagnosis, while children exposed to pregabalin were less likely to receive an ADHD diagnosis. Country-specific and combined values are presented in Supplementary Results Table S9 and Fig. S9.

Indication restricted analyzes (including drug specific estimates) are presented in Table 2, and Supplementary Results Tables S10S12 and Figs. S10S14. Children born to mothers with epilepsy were more likely to be diagnosed with autism, ID, and ADHD at age 12, irrespective of ASM exposure (unexposed risk: autism 5.03%; 95% CI: 4.45–5.69, intellectual disability 1.91%; 95% CI: 1.62–2.25, ADHD 10.77%; 95% CI: 9.85–11.77), when compared to the risk in the entire population. Similarly, children born to mothers with psychiatric indications (unexposed risk: autism 6.11%; 95% CI: 5.82–6.42, intellectual disability 1.19%; 95% CI: 1.11–1.29, ADHD 3.87%; 95% CI: 3.60–4.17) and children born to mothers with somatic indications (unexposed risk: autism 5.54%; 95% CI: 5.15–5.96, intellectual disability 1.15%; 95% CI: 1.05–1.25, ADHD 3.87%; 95% CI: 3.44–4.36) exhibited a higher risk, irrespective ASM exposure, when compared to the general population. We recommend caution when interpreting results from indication restricted analysis as we have shown that, in the presence of unmeasured confounding, these may be more biased than standard analysis22.

Table 2 The pooled adjusted hazard ratios of offspring neurodevelopmental conditions by ASM exposure during pregnancy, stratified according to maternal diagnosis of epilepsy, and psychiatric or somatic indications

Sensitivity analyzes

Results of sensitivity analyzes 1–3 are presented in Supplementary Results Table S13. Briefly, the findings were largely consistent with the primary analysis, albeit some values were estimated with more uncertainty. That is, restricting the cohorts to ensure a minimum follow-up of 4 years did not change the conclusions of our primary analyzes. When exploring exposure during the first trimester, all ASM and NDD combinations were comparable to the primary analyzes except for phenytoin, which became associated with ADHD with large uncertainty. When modifying the exposure definition to require two prescriptions/dispensations, the results were comparable with the primary analyzes for all ASM-outcome combinations, except topiramate and intellectual disability where the estimate was increased under the new definition. Repeating primary analyzes excluding the covariate for vomiting or antiemetic prescriptions from the adjustment set only changed hazard ratio estimates beyond the second decimal (see Supplementary Results Table S14).

Discussion

The findings of this large-scale study support prior findings that valproate, topiramate, carbamazepine, and polytherapy use during pregnancy are associated with neurodevelopmental conditions in offspring. For example, children exposed to topiramate during pregnancy were 2.5 times more likely to be diagnosed with intellectual disability, as compared to children not exposed to ASMs, corresponding to an absolute risk increase of 1.2% at age 12. Our findings also found little evidence that in utero exposure to lamotrigine increase the risk of neurodevelopmental conditions.

Comparison with previous literature

Our study represents one of the largest studies of children diagnosed with neurodevelopmental conditions after ASM exposure in pregnancy, as most previous studies have been based on few exposed children diagnosed with neurodevelopmental conditions13,14,15,16,17,18. We replicated the association between in utero exposure to topiramate and intellectual disability found in a recent Nordic study15, but did not replicate an association with autism in the general population. Our findings are consistent with those of a recent US study of autism diagnoses in children exposed to toprimate18. In contrast to recent findings, we found little evidence that children exposed to topiramate or levetiracetam were more likely to be diagnosed with ADHD in the general population or in children of mothers with epilepsy16. Previous findings for carbamazepine have been conflicting; associations have been found with autism15 and intellectual disability14,15 (though only when not accounting for indication), but not in all studies and not for ADHD3,16. In the Supplementary Background, we briefly summarize recent studies on carbamazepine and neurodevelopmental conditions (Supplementary Background Fig. 1); the association across recent studies appears largely consistent with ours, albeit some studies have not reported statistically significant associations, possibly because the number of exposed cases have been smaller than presented here. Our study provides evidence suggesting that carbamazepine is associated with an increased likelihood of autism and intellectual disability after accounting for indication through multivariable regression, albeit there is still some uncertainty in the indication stratified data.

Specific polytherapy combinations, including levetiracetam with carbamazepine and lamotrigine with topiramate, have been suggested to be associated with neurodevelopmental conditions. Our results suggest an increased risk of autism and intellectual disability in the children of mothers exposed to polytherapy during pregnancy, though we did not explore specific combinations. As valproate and carbamazepine were more commonly used in the polytherapy-exposed group, this may account for the observed excess risks (see Supplementary Results Table S15). It is worth caveating that such findings may be particularly susceptible to confounding by severity of indication as mothers taking more than one ASM may be more likely to suffer from more severe epilepsy or other indications than mothers taking monotherapy.

Valproate has been consistently associated with neurodevelopmental conditions in offspring3,7,9,10,14,15,16,18. Our findings support this for intellectual disability, ADHD, and autism, though our sibling analyzes which better accounted for potential unobserved genetic and environmental confounders showed substantially attenuated associations between valproate and autism which potentially implicates unmeasured confounding. These analyzes need further replication as they are lower powered than traditional analyzes. For example, the risk of intellectual disability in the sibling analysis excluded the null in Sweden (HR: 2.23; 95% CI: 1.01–4.92), but wide uncertainties in the UK pulled down the pooled estimate, resulting in confidence intervals that did not exclude the null (HR: 1.54; 95% CI: 0.76–3.14). We encourage future studies to employ similar and other causal inference methods to better understand the risk of neurodevelopmental outcomes following in utero exposure to valproate, as estimates may be inflated by such unmeasured confounding.

Strength and limitations

Our study has several strengths. We harmonized and combined UK and Swedish registry data. This approach resulted in a large sample size and allowed us to triangulate across two datasets representing two countries and healthcare systems with distinct biases and confounding structures, potentially enhancing the reliability of our findings. Differences in covariates across data sources were observed (e.g., the UK’s lower percentage of mothers with no identified indication, 3.4% vs 11.0% among ASM users; the higher percentage of mothers with more than ten healthcare visits in the UK, 59.0% vs 7.2% among ASM users; and Sweden’s higher percentage of mothers with neurodevelopmental conditions among ASM users, 17.5% vs 1.41%), and are likely due to the differing nature of the underlying data sources (such as the capture of primary or specialist outpatient care) and resulting definitions used (see Covariates section of the Supplementary Methods). It may be important to note that we observed differences in outcome frequencies, with Sweden having nearly twice the diagnostic prevalence of neurodevelopmental conditions in children, and even more so in mothers, albeit this is consistent with previous studies in the UK23 and Sweden24. Despite these differences, we found comparable effect estimates for most monotherapies (see data source-specific estimates and tests of heterogeneity in the Supplementary Results). We also compared our primary analyzes to results from methods such as the discordant sibling and active comparator designs, improving our ability to account for time-invariant unobserved confounding. Finally, our study may aid the clinical interpretability of the identified associations, as we estimated both relative and absolute risks across offspring age.

Our study has several limitations. Our results may be affected by measurement error in both the exposure and outcome. For our exposure, we used drug prescription (UK), dispensation and self-reported (Sweden) data rather than the direct assessment of drug consumption (e.g., via serum concentration), meaning that we may have overestimated true exposure during pregnancy. For our outcomes, we relied on diagnoses captured in electronic health records, which may be inaccurate. Reviews of medical records have indicated a high positive predictive value for Swedish data25, though it has been suggested that neurodevelopmental conditions are under-recorded in CPRD which may explain our lower estimated prevalence of these conditions in the UK26.

While we have attempted to account for confounding by indication, we are unlikely to have adequately captured confounding by severity of indication, whereby prescription of different ASMs, or combinations of ASMs, may be influenced by how active or severe the indication is, which may also have an impact on risk of neurodevelopmental outcomes. Such confounding is likely to be accounted for in sibling analyzes if it is stable across pregnancies, but not active comparator analyzes. Nonetheless, like any safety analysis on this topic, our study is observational, and there is always a risk that we have not accounted for all relevant confounders or other co-prescriptions. It may be important to recognize the differences between users and non-users of ASMs (Table 1) and consider these when interpreting our findings; even when comparing to lamotrigine users, or siblings to each other, important differences may persist.

Our results may also be affected by the necessary selection upon live births. There is debate about the impact of such selection with some authors suggesting that this will bias results if exposure also influences fetal or neonatal death27. Other authors suggest that selection would mean that the interpretation of the estimate is altered to be the effect conditional on livebirth instead of the total effect of in utero ASM exposure on neurodevelopmental outcomes28.

Although our combined efforts across the UK and Sweden have allowed us to amass one of the largest and longest follow-ups of children diagnosed with neurodevelopmental conditions following ASM exposure in pregnancy, we emphasize that further data on ASM safety are warranted. This need becomes more pertinent as the landscape of ASM continues to evolve, given changing indication prevalences, costs, and known teratogenicity profiles. To enable such large-scale analysis and enhance generalizability, it will remain crucial to involve data from multiple countries across the globe.

Clinical implications

Clinical recommendations should only be based on the literature as a whole, not individual studies29. However, using ASMs during pregnancy requires active monitoring to ensure safety and effectiveness. In cases where pregnant individuals have epilepsy, withdrawal of ASMs can lead to seizures, posing life-threatening risks to both the mother and the baby. Switching to less teratogenic alternatives, such as lamotrigine, well before conception could be a reasonable strategy. Any decisions regarding switching or withdrawal of ASMs should be planned in consultation with relevant clinical specialists and individualized to the patient’s clinical history.

The MHRA has stated that the risk of NDD is 30–40% following exposure to valproate30. We find substantially lower absolute risks in the UK and Sweden and corroborate results from the Nordic based SCAN-AED study14,15. The differences in estimates with those presented by the MHRA may be explained by our use of electronic health records and registry data with increased sample sizes and lengths of follow up as well as by different measures used to assess neurodevelopment. The difference also highlights the need for better quality evidence and communication of risk in this area.

The findings of this large-scale study suggest that topiramate, carbamazepine, and valproate, but not lamotrigine, use during pregnancy are associated with higher risks of neurodevelopmental conditions in exposed children. These observational associations translate to tangible absolute risk increases (ranging from 0.3 to 2.1 extra cases by age 12 per 100 children exposed in utero). These findings may support pregnant women and their physicians to make informed decisions regarding using ASMs during pregnancy.

Methods

We combined two harmonized cohort studies based on electronic health records from the UK (1995–2018) and Sweden (1995–2020) using meta-analysis. The definitions, processing, and analysis were harmonized across data sources. We developed a common analytical protocol, iterating it until consensus was reached with input from local topic experts. This protocol was then implemented at both sites with only minor revisions to the common protocol (e.g., a broader definition of pain-related indications in Sweden). We pooled the two cohorts using fixed-effects meta-analysis as we could not pool individual-level data because of practical and regulatory constraints. Data source-specific details and a STROBE checklist are provided in the Supplementary Methods, while the overarching methodology and points of departure are described here.

Data sources

In the UK, we used primary care data from CPRD GOLD with linkage to the CPRD Pregnancy Register, the CPRD Mother-Baby link, the Hospital Episode Statistics (HES) database (including inpatient, outpatient, and emergency care data), Office for National Statistics death certificate data, and Index of Multiple Deprivation (IMD) data. In Sweden, we used the Swedish Developmental Origins of Health and Disease (DOHaD) cohort, which is a registry study linking several national electronic data sources encompassing perinatal care, inpatient care, and specialized outpatient care (from 2005- onwards) throughout the country. Further details on specific data sources at the country level can be found in the Supplementary Methods (Data sources section).

Study population

In the UK, we included all liveborn children in the CPRD Pregnancy Register born between January 1, 1995, and December 31, 2018 (followed until August 01, 2021) who were linked to maternal information via the CPRD Mother-Baby Link (see Supplementary Methods – Data sources). The CPRD Pregnancy Register lists all pregnancies identified in the CPRD for women aged 11–49 years, with pregnancy episodes identified using an algorithm described in detail by Minassian et al.31 Briefly, the register includes pregnancy outcome derived from Read codes and Entity types, and estimates of pregnancy timings (including start and end of pregnancy) from date information accompanying the Read codes and Entity types. Validation work, comparing the Pregnancy Register against linked electronic maternity records in HES, has indicated overall good agreement, suggesting most pregnancies are well captured in the register31. The CPRD Mother-Baby link allows for linkage between individuals within the same family as a result of a practice specific family identifier32. This linkage allowed us to identify prescriptions/covariates in the mothers and diagnoses of neurodevelopmental outcomes in the live-born child. Additionally, we required mothers to be registered at a practice deemed to have continuous high-quality data (referred to as ‘up-to-standard’ in CPRD documentation33) for a minimum of 365 consecutive days before the estimated start of pregnancy, and they needed to remain registered until the expected end of their pregnancy.

In Sweden, we included all liveborn children born between July 1, 1995, and December 31, 2020 (followed until December 31, 2021). Unique personal identifiers were used to link mothers and babies34, and no selection filter was applied due to the high quality of the linkage. Briefly, the Swedish Medical Birth Register covers 97% to >99% of all deliveries in Sweden between 1973 and 202035, as reporting to it is mandatory by all delivering hospitals and care units – the small fraction of missing may be explained by planned or unplanned home deliveries35 (see Supplementary Methods – Data sources).

The final analytical cohort consisted of 518,047 liveborn children in the UK and 2,664,726 liveborn children in Sweden (see Supplementary Results, Figs. S1 and S2 for flow charts illustrating the cohort derivation process).

Maternal antiseizure medication

Our primary exposure was fetal exposure to ASM monotherapy at any time during the pregnancy period or polytherapy, defined as exposure to more than one ASM in the pregnancy period. All ASMs were identified using Anatomical Therapeutic Chemical (ATC) codes N03A (ASMs) and N05BA09 (clobazam). In the UK, we identified prescriptions from primary care records, and any pregnancy with a prescription that started or ended during the pregnancy period was classified as exposed. Details of the cleaning procedure are presented in the Supplementary Methods Exposure section (see data availability statement for access to codelists). In Sweden, self-reported maternal consumption of ASMs were prospectively recorded at antenatal care visits (from a structured interview at the first visit at 8–10 weeks of gestation and with recording opportunity at every subsequent visit; the median number of visits in Sweden is ≈9), spanning the period from 1995 to 2020. Beginning the 1st of July 2005, we supplemented this information with drug dispensation data, encompassing all prescription dispensations in Sweden. To account for prescriptions lasting into pregnancy, we also include any prescriptions made up to 30 days before pregnancy. During the period where both self-reported and dispensation data were available, the tetrachoric correlation across the two was 0.98.

Children’s neurodevelopmental conditions

We defined diagnoses of autism, ADHD, and intellectual disability as our primary outcome measures. In the UK, diagnoses were obtained from primary care records using Read codes for all patients and from inpatient and outpatient HES using International Classification of Diseases 10th revision (ICD-10) codes where data linkage was available (details provided in the Supplementary Methods Outcome section). In Sweden, inpatient and specialized outpatient diagnoses were obtained using ICD-8/9/10 codes from the National Patient Registry. To further identify cases of ADHD, we also incorporated prescription information on licensed ADHD medications (recorded using ATC codes at both data sources), including methylphenidate, dexamfetamine, lisdexamfetamine, and atomoxetine. We chose not to include guanfacine due to its second/third-line nature.

Autism is characterized by impairments in social communication and interaction, along with restricted and repetitive behaviours or interests. ADHD involves symptoms in two primary domains: hyperactivity/impulsivity and inattention, with varying extents and presentations. Intellectual disability entails deficits in both intellectual and adaptive functioning, affecting conceptual, social, and practical skills, and typically manifests during the developmental period. Historically, intellectual disability was defined by an intelligence quotient below 70. However, diagnostic criteria have evolved to encompass a more comprehensive assessment, rather than relying solely on intelligence scores. Nonetheless, autism, ADHD and intellectual disability frequently co-occurs.

Covariates

The confounders were characteristics suspected or known to be associated with prescribing ASMs during pregnancy and with neurodevelopmental conditions in offspring. These covariates encompassed maternal characteristics, including the presumed indication for ASM use (including epilepsy and both psychiatric and somatic conditions), any maternal neurodevelopmental condition diagnoses, maternal age, residential region, evidence of hazardous drinking or illicit drug use during pregnancy, gravidity, maternal health care utilization and seizure events (hospital admission with a seizure ICD-code) in the year before pregnancy, use of antipsychotics and antidepressants in the year before pregnancy, and vomiting (hyperemesis) or antiemetic prescriptions during pregnancy. In the UK, we controlled for IMD quintile, a measure of relative deprivation in small areas, while in Sweden, household disposable income (quintile) and highest household education (categories) were utilized as proxies of socioeconomic position. Detailed definitions of all covariates, which differed between countries due to the availability of data and coding systems employed by each data source and following consultation with local clinical experts, can be found in the Supplementary Methods Covariates section. We further adjusted for year of birth to account for changes in prescribing practices36 and neurodevelopmental diagnoses37 over time.

Primary analysis

We describe the distribution of maternal characteristics for each data source stratified by any ASM exposure status during pregnancy. We estimate the unadjusted and adjusted HR of each offspring neurodevelopmental condition for each ASM monotherapy during pregnancy using flexible parametric survival models38,39 with three knots for the baseline hazard placed at the 25th, 50th and 75th percentile of the uncensored log survival times, and with cluster-robust standard errors (to account for clustering of children within families) in the UK and Sweden separately. Offspring were followed up from birth, with age as the time scale, to the earliest of diagnosis of a neurodevelopmental condition, end of data collection for the individual, death, or end of follow-up (further details provided in the Supplementary Methods Statistical analysis section). To improve clinical interpretability, we also calculate the absolute adjusted risk and risk difference relative to no ASM, for each outcome assessed at ages 4, 8 and 12 from these models.

We pool all results across data sources using fixed-effects meta-analysis and report these in the main text. Separate UK and Swedish results are reported in the Supplementary Results. We did not use random-effects as only two data sources were included40.

Secondary analysis

We performed additional analyzes to investigate whether detected associations were potentially causal and clinically relevant. We first employed sibling analyzes to account for unobserved genetic and environmental factors shared between siblings41,42. In the UK, we identified siblings with the same mother while in Sweden, we identified all full siblings with the same mother and father. In each data source we fit a between-within flexible parametric survival model, estimating a within-family effect of exposure43. We then used lamotrigine as an active comparator, typically considered the safest ASM in pregnancy44. This may aid clinical interpretability by providing a treatment reference as no ASM use may often not be a realistic alternative for patients prescribed ASM. We used the same models as the main analyzes but replaced the reference group. Finally, for each indication, we repeated primary analyzes restricted to individuals with the indication. For each analysis we pooled estimates across data sources using fixed-effects meta-analysis.

Sensitivity analysis

We conducted the following sensitivity analyzes: (1) we ensured a minimum follow-up of 4 years, replicating our primary analysis in cohorts born before 1st of Jan 2018 and 1st of Jan 2017 in Sweden and the UK respectively; (2) we examined exposure in the first trimester, given its relevance to fetal development; (3) we defined exposure by dispensation/prescription on at least two separate occasions during pregnancy (i.e., continued users), using the same definition of polytherapy as in the main analysis. This analysis makes it more likely that a woman uses the same therapeutic throughout a large part of the pregnancy. Finally, (4) recognizing that vomiting or antiemetic prescriptions could act as a mediator occurring after exposure, we repeated primary analyzes excluding this covariate from the adjustment set.

Tests of heterogeneity

We tested for heterogeneity in hazard ratio estimates between UK and Swedish primary analysis results, between pooled primary analysis and sibling comparison results and between pooled primary analysis and indication restricted analysis results. Results of the active comparator analyzes are necessarily consistent with primary analyzes due to being a rescaling of the model. We used a Wald test, as opposed to I2 statistics to compare coefficients due to the small number of studies included45.

Patient and public involvement statement

Patient and public involvement was not employed for this study.

Ethics approval statement

All research was performed in accordance with relevant guidelines/regulations. The Swedish Ethical Review Authority (DNR 2020-05516) gave ethical approval for the Swedish analysis. Ethics approval for CPRD was obtained from the Independent Scientific Advisory Committee for Medicines and Healthcare products Regulatory Agency database research (Reference: 20_000228). CPRD has obtained ethical approval from a National Research Ethics Service Committee, for all purely observational research using anonymised CPRD data; namely, studies which do not include patient involvement. The Independent Scientific Advisory Committee deemed that this was a non-interventional study and was exempt from the requirement for patient consent as it made use of only linked anonymised data for analysis. Patients were able to opt out of information being shared for research (further details are provided at https://www.cprd.com/public).

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.