Predicting five-year comorbid bipolar disorder after attention-deficit/hyperactivity disorder diagnosis: a population-based machine learning approach

Early detection and accurate prediction of bipolar disorders (BDs) comorbidity in individuals with attention-deficit/hyperactivity disorder (ADHD) are clinically critical. This study used machine-learning methods to identify features predictive of subsequent BD among patients initially diagnosed with ADHD. We analyzed claims from the Taiwan National Health Insurance Research Database (2000–2013) and included patients aged ≥ 12 years with at least two diagnoses of ADHD. Predictor features included demographics (sex, age at ADHD onset), healthcare utilization (psychiatric outpatient visit counts), comorbidities (International Classification of Diseases–coded diagnoses), psychiatric medications (Anatomical Therapeutic Chemical–coded prescriptions), and family psychiatric history. All features were extracted from prespecified windows around the ADHD diagnosis date (index date). The primary outcome was a subsequent BD diagnosis. We trained an extreme gradient boosting (XGBoost) classifier and tuned hyperparameters via grid search to maximize the area under the receiver operating characteristic curve (AUROC). Feature importance was interpreted with Shapley additive explanations (SHAP). Among 15,093 eligible patients, 266 (2%) developed BD during follow-up. The model achieved a ROC-AUC of 0.90 and a precision–recall AUC of 0.59; accuracy was 98%, specificity 99%, sensitivity 50%, and positive predictive value 43%. Twelve leading predictors emerged. The strongest behavioral signal was sparse psychiatric visits before ADHD diagnosis followed by frequent visits afterward (SHAP = 0.27 and 0.66, respectively). Core demographic risks were older age at ADHD onset (SHAP = 0.26) and male sex (SHAP = 0.08). Medication pattern included pre-diagnosis short-acting benzodiazepines (SHAP = 0.07) and post-diagnosis exposure to anticonvulsant mood stabilizers (SHAP = 0.34), “-dones” (SHAP = 0.06) and “-pines” (SHAP = 0.05) antipsychotics, selective serotonin-reuptake inhibitors (SHAP = 0.06), and Z-drugs (SHAP = 0.05). Protective features were having offspring with schizophrenia-spectrum disorders (SHAP = 0.11) and fewer new-onset upper-respiratory infections after ADHD diagnosis (SHAP = 0.06). Leveraging nationwide real-world data, we built a machine-learning model to predict subsequent comorbid BD in patients with ADHD. The identified clinical and medication prescribing profiles can alert clinicians to patients at heightened risk, facilitating earlier monitoring and timely intervention.

Authors

Institutions

Publication Details

Journal
Child and Adolescent Psychiatry and Mental Health
Published
2025-12-01
DOI
https://doi.org/10.1186/s13034-025-01002-3
Primary Topic
Bipolar Disorder and Treatment
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting five-year comorbid bipolar disorder after attention-deficit/hyperactivity disorder diagnosis: a population-based machine learning approach

Kuo‐Chuan Hung, Chih‐Sung Liang, Mu‐Hong Chen, Yang‐Chieh Brian Chen et al.
Child and Adolescent Psychiatry and Mental Health
Bipolar Disorder and Treatment
article

Predicting five-year comorbid bipolar disorder after attention-deficit/hyperactivity disorder diagnosis: a population-based machine learning approach

Kuo‐Chuan Hung, Chih‐Sung Liang, Mu‐Hong Chen, Yang‐Chieh Brian Chen, Liang‐Jen Wang, Chih‐Wei Hsu, Yen-Shan Yang
article en

Abstract

Early detection and accurate prediction of bipolar disorders (BDs) comorbidity in individuals with attention-deficit/hyperactivity disorder (ADHD) are clinically critical. This study used machine-learning methods to identify features predictive of subsequent BD among patients initially diagnosed with ADHD. We analyzed claims from the Taiwan National Health Insurance Research Database (2000–2013) and included patients aged ≥ 12 years with at least two diagnoses of ADHD. Predictor features included demographics (sex, age at ADHD onset), healthcare utilization (psychiatric outpatient visit counts), comorbidities (International Classification of Diseases–coded diagnoses), psychiatric medications (Anatomical Therapeutic Chemical–coded prescriptions), and family psychiatric history. All features were extracted from prespecified windows around the ADHD diagnosis date (index date). The primary outcome was a subsequent BD diagnosis. We trained an extreme gradient boosting (XGBoost) classifier and tuned hyperparameters via grid search to maximize the area under the receiver operating characteristic curve (AUROC). Feature importance was interpreted with Shapley additive explanations (SHAP). Among 15,093 eligible patients, 266 (2%) developed BD during follow-up. The model achieved a ROC-AUC of 0.90 and a precision–recall AUC of 0.59; accuracy was 98%, specificity 99%, sensitivity 50%, and positive predictive value 43%. Twelve leading predictors emerged. The strongest behavioral signal was sparse psychiatric visits before ADHD diagnosis followed by frequent visits afterward (SHAP = 0.27 and 0.66, respectively). Core demographic risks were older age at ADHD onset (SHAP = 0.26) and male sex (SHAP = 0.08). Medication pattern included pre-diagnosis short-acting benzodiazepines (SHAP = 0.07) and post-diagnosis exposure to anticonvulsant mood stabilizers (SHAP = 0.34), “-dones” (SHAP = 0.06) and “-pines” (SHAP = 0.05) antipsychotics, selective serotonin-reuptake inhibitors (SHAP = 0.06), and Z-drugs (SHAP = 0.05). Protective features were having offspring with schizophrenia-spectrum disorders (SHAP = 0.11) and fewer new-onset upper-respiratory infections after ADHD diagnosis (SHAP = 0.06). Leveraging nationwide real-world data, we built a machine-learning model to predict subsequent comorbid BD in patients with ADHD. The identified clinical and medication prescribing profiles can alert clinicians to patients at heightened risk, facilitating earlier monitoring and timely intervention.

Child and Adolescent Psychiatry and Mental HealthVol. 20(1)
National Yang Ming Chiao Tung University (TW), Chang Gung University (TW), Taipei Veterans General Hospital (TW), Kaohsiung Chang Gung Memorial Hospital (TW), Chi Mei Medical Center (TW), National Defense Medical Center (TW), The University of Texas Health Science Center at Houston (US)
Openalex Percentile: Top 56%
Bipolar Disorder and Treatment
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.