Predicting Diagnostic Progression to Schizophrenia or Bipolar Disorder via Machine Learning
- PMID: 39969874
- DOI: 10.1001/jamapsychiatry.2024.4702
Predicting Diagnostic Progression to Schizophrenia or Bipolar Disorder via Machine Learning
Abstract
Importance: The diagnosis of schizophrenia and bipolar disorder is often delayed several years despite illness typically emerging in late adolescence or early adulthood, which impedes initiation of targeted treatment.
Objective: To investigate whether machine learning models trained on routine clinical data from electronic health records (EHRs) can predict diagnostic progression to schizophrenia or bipolar disorder among patients undergoing treatment in psychiatric services for other mental illness.
Design, setting, and participants: This cohort study was based on data from EHRs from the Psychiatric Services of the Central Denmark Region. All patients aged 15 to 60 years with at least 2 contacts (at least 3 months apart) with the Psychiatric Services of the Central Denmark Region between January 1, 2013, and November 21, 2016, were included. Analysis occurred from December 2022 to November 2024.
Exposures: Predictors based on EHR data, including medications, diagnoses, and clinical notes.
Main outcomes and measures: Diagnostic transition to schizophrenia or bipolar disorder within 5 years, predicted 1 day before outpatient contacts by means of elastic net regularized logistic regression and extreme gradient boosting (XGBoost) models. The area under the receiver operating characteristic curve (AUROC) was used to determine the best performing model.
Results: The study included 24 449 patients (median [Q1-Q3] age at time of prediction, 32.2 [24.2-42.5] years; 13 843 female [56.6%]) and 398 922 outpatient contacts. Transition to the first occurrence of either schizophrenia or bipolar disorder was predicted by the XGBoost model, with an AUROC of 0.70 (95% CI, 0.70-0.70) on the training set and 0.64 (95% CI, 0.63-0.65) on the test set, which consisted of 2 held-out hospital sites. At a predicted positive rate of 4%, the XGBoost model had a sensitivity of 9.3%, a specificity of 96.3%, and a positive predictive value (PPV) of 13.0%. Predicting schizophrenia separately yielded better performance (AUROC, 0.80; 95% CI, 0.79-0.81; sensitivity, 19.4%; specificity, 96.3%; PPV, 10.8%) than was the case for bipolar disorder (AUROC, 0.62, 95% CI, 0.61-0.63; sensitivity, 9.9%; specificity, 96.2%; PPV, 8.4%). Clinical notes proved particularly informative for prediction.
Conclusions and relevance: These findings suggest that it is possible to predict diagnostic transition to schizophrenia and bipolar disorder from routine clinical data extracted from EHRs, with schizophrenia being notably easier to predict than bipolar disorder.
Similar articles
-
Immune-based Machine learning Prediction of Diagnosis and Illness State in Schizophrenia and Bipolar Disorder.Brain Behav Immun. 2024 Nov;122:422-432. doi: 10.1016/j.bbi.2024.08.013. Epub 2024 Aug 14. Brain Behav Immun. 2024. PMID: 39151650
-
Predicting cardiovascular disease in patients with mental illness using machine learning.Eur Psychiatry. 2025 Jan 8;68(1):e12. doi: 10.1192/j.eurpsy.2025.1. Eur Psychiatry. 2025. PMID: 39773769 Free PMC article.
-
Predicting Conversion From Unipolar Depression to Bipolar Disorder and Schizophrenia: A 10-Year Retrospective Cohort Study on 12,182 Inpatients.Depress Anxiety. 2025 Feb 20;2025:4048082. doi: 10.1155/da/4048082. eCollection 2025. Depress Anxiety. 2025. PMID: 40225731 Free PMC article.
-
Comparative Effectiveness of Machine Learning Approaches for Predicting Gastrointestinal Bleeds in Patients Receiving Antithrombotic Treatment.JAMA Netw Open. 2021 May 3;4(5):e2110703. doi: 10.1001/jamanetworkopen.2021.10703. JAMA Netw Open. 2021. PMID: 34019087 Free PMC article.
-
Family Genetic Risk Scores and the Genetic Architecture of Major Affective and Psychotic Disorders in a Swedish National Sample.JAMA Psychiatry. 2021 Jul 1;78(7):735-743. doi: 10.1001/jamapsychiatry.2021.0336. JAMA Psychiatry. 2021. PMID: 33881469 Free PMC article.
Cited by
-
From Prediction to Action: Moving Beyond Machine Learning to Implementing Evidence-Based Perinatal Mental Health Care.Am J Psychiatry. 2025 Jun 1;182(6):506-508. doi: 10.1176/appi.ajp.20250241. Am J Psychiatry. 2025. PMID: 40450552 No abstract available.