Early detection of adults ADHD using electronic health records: A machine learning study

BackgroundAttention Deficit Hyperactivity Disorder (ADHD) affects 5-7.2% of children and 2.5% of adults.Despite its prevalence, ADHD remains underdiagnosed and undertreated, leading to significant challenges for affected individuals.Early diagnosis and intervention can prevent adverse outcomes and improve quality of life. MethodsWe developed a predictive model to identify adults with ADHD using Electronic Health Records (EHR).The dataset comprised 2,973 adult patients (aged 18 and above) diagnosed with ADHD and a control group of 4,447 adults referred to psychologists with no ADHD diagnosis.A transformer-based architecture was implemented, utilizing only clinical codes and gender as input features.Five folds cross-validation were adopted, and model performance was evaluated on held-out test data consisting of 800 patients, 400 of whom had an ADHD diagnosis. ResultsOur study demonstrated the ability to predict adult ADHD using clinical data, with a 6-month prediction period achieving an AUC of 0.79 (95% CI: 0.76-0.81),F1-score of 0.79 (95% CI: 0.76-0.81),sensitivity of 0.80 (95% CI: 0.77-0.84),and specificity of 0.77 (95% CI: 0.73-0.81).SHAP analysis revealed key clinical codes influencing ADHD predictions, including 'F158: Other specified mental and behavioral disorders due to use of other stimulants' and 'Y903: Blood alcohol level 0.60 -0.79 mg per 100 ml', reflecting established links between ADHD, substance use, and alcohol disorders. ConclusionsOur findings show that machine learning can effectively use clinical codes and demographic data from routine electronic health records to support early, cost-efficient diagnosis of adult ADHD, paving the way for earlier intervention and improved outcomes.

Authors

Institutions

Publication Details

Journal
European Psychiatry
Published
2026-02-16
DOI
https://doi.org/10.1192/j.eurpsy.2026.10171
Primary Topic
Attention Deficit Hyperactivity Disorder
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Early detection of adults ADHD using electronic health records: A machine learning study

Peter Jacobsson, Kobra Etminani, Thomas Davidsson, Omar Hamed
European Psychiatry
Attention Deficit Hyperactivity Disorder
article

Early detection of adults ADHD using electronic health records: A machine learning study

Peter Jacobsson, Kobra Etminani, Thomas Davidsson, Omar Hamed
article en

Abstract

BackgroundAttention Deficit Hyperactivity Disorder (ADHD) affects 5-7.2% of children and 2.5% of adults.Despite its prevalence, ADHD remains underdiagnosed and undertreated, leading to significant challenges for affected individuals.Early diagnosis and intervention can prevent adverse outcomes and improve quality of life. MethodsWe developed a predictive model to identify adults with ADHD using Electronic Health Records (EHR).The dataset comprised 2,973 adult patients (aged 18 and above) diagnosed with ADHD and a control group of 4,447 adults referred to psychologists with no ADHD diagnosis.A transformer-based architecture was implemented, utilizing only clinical codes and gender as input features.Five folds cross-validation were adopted, and model performance was evaluated on held-out test data consisting of 800 patients, 400 of whom had an ADHD diagnosis. ResultsOur study demonstrated the ability to predict adult ADHD using clinical data, with a 6-month prediction period achieving an AUC of 0.79 (95% CI: 0.76-0.81),F1-score of 0.79 (95% CI: 0.76-0.81),sensitivity of 0.80 (95% CI: 0.77-0.84),and specificity of 0.77 (95% CI: 0.73-0.81).SHAP analysis revealed key clinical codes influencing ADHD predictions, including 'F158: Other specified mental and behavioral disorders due to use of other stimulants' and 'Y903: Blood alcohol level 0.60 -0.79 mg per 100 ml', reflecting established links between ADHD, substance use, and alcohol disorders. ConclusionsOur findings show that machine learning can effectively use clinical codes and demographic data from routine electronic health records to support early, cost-efficient diagnosis of adult ADHD, paving the way for earlier intervention and improved outcomes.

European Psychiatry
Society of Health and Physical Educators (US), Halmstad University (SE), University of Gothenburg (SE)
Quality Education
Openalex Percentile: Top 57%
Attention Deficit Hyperactivity Disorder
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.