Artificial intelligence for detecting bipolar disorder in electronic health records of patients with affective diagnoses: a diagnostic accuracy study
Journal:
medRxiv
Published Date:
May 10, 2026
Abstract
Background: Bipolar disorder (BD) is frequently underdiagnosed, particularly in patients presenting with depressive disorders, leading to delays in appropriate treatment. Artificial intelligence (AI) applied to electronic health records (EHRs) may improve early detection by identifying clinically relevant symptom patterns. Objective: To evaluate the diagnostic performance of a natural language processing (NLP)-based AI model for detecting BD-related features in EHRs of patients with affective diagnoses. Methods: A retrospective diagnostic accuracy study was conducted using 500 EHRs from a psychiatric referral hospital in Bogota, Colombia (2020-2024). The model extracted 18 predefined clinical domains from unstructured text and classified patients into four risk categories. Diagnostic performance was assessed in a validation subset of 100 records using independent psychiatric evaluation as the reference standard. Sensitivity, specificity, positive and negative predictive values, F1-score, and area under the receiver operating characteristic curve (AUC-ROC) were calculated. Results: The model achieved high agreement in symptom extraction (mean 91.1%).