Abstract
Autism spectrum disorder (ASD) is a neurodevelopmental disorder typically diagnosed in children. Early detection of ASD, particularly in girls who are often diagnosed late, can aid long-term development for children. We aimed to develop machine learning models for predicting ASD diagnosis in children, both boys and girls, using child-mother linked electronic health records (EHRs) data from a large clinical research network. Model features were children and mothers' risk factors in EHRs, including maternal health factors. We tested XGBoost and logistic regression with Random Oversampling (ROS) and Random Undersampling (RUS) to address imbalanced data. Logistic regression with RUS considering a three-year observation window for children's risk factors achieved the best performance for predicting ASD among the overall study population (AUROC = 0.798), boys (AUROC = 0.786), and girls (AUROC = 0.791). We calculated SHAP values to quantify the impacts of important clinical and sociodemographic risk factors.
Introduction
Autism Spectrum Disorder (ASD) is a neurodevelopmental condition that is typically diagnosed around the age of four, despite the fact that reliable clinical signs often manifest by age two. This "diagnostic gap" is a significant barrier to early intervention, which is critical for improving long-term cognitive and social outcomes. The challenge is particularly acute for girls, who frequently experience even greater diagnostic delays due to differences in clinical presentation and systemic biases.
Existing screening tools, such as the Modified Checklist for Autism in Toddlers (MCHAT), often require manual administration and exhibit sub-optimal sensitivity (as low as 39%). This study investigates whether automated machine learning models can leverage longitudinal Electronic Health Record (EHR) data—specifically by linking a child's record to their mother's—to create a more accurate and passive screening mechanism.
Methodology
The researchers developed a predictive pipeline utilizing two primary model classes: Logistic Regression (LR) and XGBoost. A central innovation of this study is the linking of children’s records to their mothers’ EHR data across three distinct temporal windows: 12 months pre-pregnancy, 10 months during pregnancy, and the child's health up to 3 years post-birth.
Data Source and Cohort Selection
Data was sourced from the OneFlorida+ Clinical Research Consortium, covering over 20 million residents. The final study cohort consisted of 2,143 children with ASD and 4,286 matched non-ASD controls (1:2 ratio). To ensure the model predicted new diagnoses, children diagnosed with ASD before age two were excluded.
Feature Engineering and Imbalance Handling
The team extracted 27 key risk factors, including maternal obesity, autoimmune diseases, and antidepressant use, alongside child-specific factors like developmental delays and ADHD. To address the inherent class imbalance in ASD prevalence, the researchers compared Random Oversampling (ROS) and Random Undersampling (RUS) techniques.
Results
The most effective model was Logistic Regression with Random Undersampling (RUS) using a three-year observation window for child health factors. This model achieved an AUROC of 0.798 for the overall population. Notably, the model performed consistently across genders, with an AUROC of 0.786 for boys and 0.791 for girls, suggesting its potential to mitigate existing diagnostic disparities.
SHAP (SHapley Additive exPlanations) analysis revealed that child-specific factors such as Developmental Delay (DD) and ADHD were the strongest predictors. Among maternal factors, autoimmune diseases and obesity during pregnancy emerged as high-impact features. Interestingly, the simpler Logistic Regression model slightly outperformed the more complex XGBoost, which is advantageous for clinical interpretability.
Discussion and Future Work
This study demonstrates that linking maternal health data to child EHRs significantly enhances ASD prediction. The comparable performance for girls is a promising step toward closing the gender gap in diagnosis.
However, several limitations remain. The models require external validation on diverse geographic datasets to ensure generalizability. Additionally, the current EHR data lacks information on paternal health and environmental exposures. Future research should explore the integration of unstructured data (e.g., clinical notes via NLP), genomic data, and social determinants of health. The ultimate objective is to integrate these models into clinical decision support tools to facilitate earlier intervention and better outcomes for children with ASD.
Summary updated