Related Experiment Video
Updated: Jun 3, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Predicting cardiovascular disease in patients with mental illness using machine learning
Martin Bernstorff1,2,3, Lasse Hansen1,2,3, Kevin Kris Warnakula Olesen4
1Department of Affective Disorders, Aarhus University Hospital - Psychiatry, Aarhus, Denmark.
Insights
Machine learning accurately predicts cardiovascular disease (CVD) risk in individuals with mental illness using electronic health records. This tool can aid in early CVD prevention for this high-risk population.
Area of Science:
- Computational epidemiology
- Clinical informatics
- Public health
Background:
- Individuals with mental illness have double the prevalence of cardiovascular disease (CVD).
- Accurate CVD risk prediction is crucial for implementing effective prevention strategies in this population.
- Routine clinical data from electronic health records (EHRs) offer a valuable resource for risk prediction.
Purpose of the Study:
- To develop and validate a machine learning (ML) model for predicting incident CVD.
- To utilize routine clinical data from EHRs for risk prediction in patients with mental illness.
- To assess the model's performance in identifying high-risk individuals for early intervention.
Main Methods:
- A cohort study included 74,880 patients with 1.6 million psychiatric service contacts (2013-2021).
- Two ML models (XGBoost, regularised logistic regression) were trained on 234 predictors from EHR data.
- External validation was performed on a separate patient cohort.
Main Results:
- The best-performing XGBoost model achieved an area under the receiver operating characteristic curve of 0.84 (training) and 0.74 (validation).
- The model identified high-risk individuals approximately 2.5 years prior to CVD events.
- For the top 5% predicted risk, positive predictive value was 5% and negative predictive value was 99%.
Conclusions:
- A ML model can effectively predict CVD risk in patients with mental illness using EHR data.
- This predictive capability can support primary CVD prevention efforts.
- Integration into a decision support system could enhance clinical practice for this vulnerable group.
Background:
Cardiovascular disease (CVD) is twice as prevalent among individuals with mental illness compared to the general population. Prevention strategies exist but require accurate risk prediction. This study aimed to develop and validate a machine learning model for predicting incident CVD among patients with mental illness using routine clinical data from electronic health records.
Methods:
A cohort study was conducted using data from 74,880 patients with 1.6 million psychiatric service contacts in the Central Denmark Region from 2013 to 2021. Two machine learning models (XGBoost and regularised logistic regression) were trained on 85% of the data from six hospitals using 234 potential predictors. The best-performing model was externally validated on the remaining 15% of patients from another three hospitals. CVD was defined as myocardial infarction, stroke, or peripheral arterial disease.
Results:
The best-performing model (hyperparameter-tuned XGBoost) demonstrated acceptable discrimination, with an area under the receiver operating characteristic curve of 0.84 on the training set and 0.74 on the validation set. It identified high-risk individuals 2.5 years before CVD events. For the psychiatric service contacts in the top 5% of predicted risk, the positive predictive value was 5%, and the negative predictive value was 99%. The model issued at least one positive prediction for 39% of patients who developed CVD.
Conclusions:
A machine learning model can accurately predict CVD risk among patients with mental illness using routinely collected electronic health record data. A decision support system building on this approach may aid primary CVD prevention in this high-risk population.
More Related Videos
12:18A Machine Learning Approach to Design an Efficient Selective Screening of Mild Cognitive Impairment
Published on: January 11, 2020
04:09Predicting Treatment Response to Image-Guided Therapies Using Machine Learning: An Example for Trans-Arterial Treatment of Hepatocellular Carcinoma
Published on: October 10, 2018
Related Concept Videos
Psychoneuroimmunology: Cardiovascular Disease
A key area of focus in PNI is the relationship between stress and coronary...
Assessment of the Cardiovascular System I: Subjective Data
Initial Enquiry
Ask the patient about their primary concern and thoroughly explore all reported symptoms.
Medical History
Investigate past illnesses affecting the cardiovascular system, such as angina, anemia, rheumatic fever, congenital heart disease, stroke, thrombophlebitis, dysrhythmias, varicosities
Inquire about symptoms...