Hostname: page-component-76d6cb85b7-92wsb Total loading time: 0 Render date: 2026-07-17T10:47:09.001Z Has data issue: false hasContentIssue false

Explainable machine learning for predicting coronary heart disease risk in patients with carotid atherosclerosis: A retrospective study with SHAP and decision curve analysis

Published online by Cambridge University Press:  06 March 2026

Lei Zhang
Affiliation:
Heart Center, The First Affiliated Hospital of Henan University of Chinese Medicine; National Regional (TCM) Cardiovascular Diagnosis and Treatment Center, China Collaborative Innovation Center of Prevention and Treatment of Major Diseases by Chinese and Western Medicine, China The First Affiliated Hospital of Henan University of Chinese Medicine, China
Mengke Lyu*
Affiliation:
The First Affiliated Hospital of Henan University of Chinese Medicine, China
Mingyuan Du
Affiliation:
Heart Center, The First Affiliated Hospital of Henan University of Chinese Medicine; National Regional (TCM) Cardiovascular Diagnosis and Treatment Center, China Collaborative Innovation Center of Prevention and Treatment of Major Diseases by Chinese and Western Medicine, China The First Affiliated Hospital of Henan University of Chinese Medicine, China
Yizhuo Li
Affiliation:
Heart Center, The First Affiliated Hospital of Henan University of Chinese Medicine; National Regional (TCM) Cardiovascular Diagnosis and Treatment Center, China Collaborative Innovation Center of Prevention and Treatment of Major Diseases by Chinese and Western Medicine, China The First Affiliated Hospital of Henan University of Chinese Medicine, China
Haifeng Yan
Affiliation:
Heart Center, The First Affiliated Hospital of Henan University of Chinese Medicine; National Regional (TCM) Cardiovascular Diagnosis and Treatment Center, China Collaborative Innovation Center of Prevention and Treatment of Major Diseases by Chinese and Western Medicine, China The First Affiliated Hospital of Henan University of Chinese Medicine, China
Xiaohui Li
Affiliation:
Heart Center, The First Affiliated Hospital of Henan University of Chinese Medicine; National Regional (TCM) Cardiovascular Diagnosis and Treatment Center, China Collaborative Innovation Center of Prevention and Treatment of Major Diseases by Chinese and Western Medicine, China The First Affiliated Hospital of Henan University of Chinese Medicine, China
Wenshuang Niu
Affiliation:
The Fifth Clinical Medical College of Henan University of Traditional Chinese Medicine, China
Lizhi Pang
Affiliation:
The First Clinical Medical College of Zhengzhou University, China
*
Corresponding author: M. Lyu; Email: skylmk@126.com
Rights & Permissions [Opens in a new window]

Abstract

Background:

Carotid atherosclerosis is associated with increased coronary heart disease (CHD) risk, yet current risk models lack specificity and interpretability for this population. This study aimed to develop explainable machine learning (ML) models to predict CHD in these patients.

Methods:

We retrospectively analyzed 487 patients with carotid atherosclerosis (191 CHD, 296 non-CHD) from January 2022 to July 2025. Thirty-eight variables were collected, including demographic, clinical, and biochemical indicators. LASSO regression identified six key predictors. Seven ML models were trained and evaluated using area under receiver operating characteristic curve (AUC), PRC-AUC, calibration curves, and decision curve analysis (DCA). SHAP was applied to interpret the best-performing model.

Results:

Logistic regression model achieved the highest test-set performance (AUC = 0.827; PRC-AUC = 0.752), with strong generalizability and calibration. SHAP analysis identified age and diastolic blood pressure as the most influential features, aligning with model coefficients. DCA demonstrated superior clinical net benefit of the logistic regression model across probability thresholds.

Conclusion:

A six-variable logistic model provides accurate and interpretable CHD risk prediction in patients with carotid atherosclerosis. Its transparency and clinical utility support its integration into personalized risk management.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press on behalf of Association for Clinical and Translational Science
Figure 0

Figure 1. Flowchart of the study design and modeling pipeline. The pipeline included sequential steps: dataset partitioning (training/validation/test), training-set–based preprocessing, training-set–based feature selection, model training with cross-validation, validation-set threshold optimization, final evaluation on the independent test set, and SHAP/DCA analyses.

Figure 1

Table 1. Baseline characteristics of patients with and without CHD. Demographic, clinical, and biochemical parameters were compared between groups with and without CHD utilizing suitable statistical analyses. Continuous variables were expressed as mean ± standard deviation, while categorical variables were presented as frequencies (percentages). The reported P values signify the statistical significance observed between the two groups

Figure 2

Figure 2. LASSO regression for feature selection. (A) Ten-fold cross-validation plot for selecting the optimalλvalue minimizing mean squared error. (B) Coefficient trajectories of candidate features across differentλvalues, emphasizing the six ultimate predictors selected.

Figure 3

Figure 3. ROC curves of seven machine learning models across datasets. (A) Training set; (B) Validation set; (C) Testing set. Logistic regression model and ensemble models (e.g., XGBoost, Random Forest) exhibited strong discrimination in training but variable generalization performance in testing.

Figure 4

Figure 4. PR curves of seven machine learning models. (A) Training set. (B) Validation set. (C) Testing set. Logistic regression model achieved the highest PRC-AUC in the testing set, indicating balanced precision and recall under real-world conditions.

Figure 5

Figure 5. Calibration curves of machine learning models. (A) Training set. (B) Validation set. (C) Testing set. Logistic regression model, Random Forest, and XGBoost showed relatively good alignment between predicted and observed probabilities in the testing set.

Figure 6

Figure 6. Ten-fold cross-validation results for all models. Bar plots display the mean AUC with standard deviation for each model across ten validation folds. Logistic regression model and Random Forest achieved the highest average AUCs (0.738 and 0.740, respectively).

Figure 7

Figure 7. DCA of the logistic regression model. (A) Training set. (B) Validation set. (C) Testing set. The net benefit across different probability thresholds is illustrated. Logistic regression model consistently outperformed or closely matched other models, confirming its clinical utility.

Figure 8

Figure 8. (A) SHAP waterfall plot for individual prediction (Sample 17). The figure shows the contribution of each feature to the CHD prediction for a representative patient. Age and diastolic blood pressure exerted the strongest negative influence, while creatinine and thrombin time had positive contributions. (B) SHAP summary bar plot of feature importance. Mean absolute SHAP values across all testing samples are presented, ranking features by their overall impact on model output. Age, diastolic blood pressure, and thrombin time were the most influential predictors.

Supplementary material: File

Zhang et al. supplementary material 1

Zhang et al. supplementary material
Download Zhang et al. supplementary material 1(File)
File 17.5 KB
Supplementary material: File

Zhang et al. supplementary material 2

Zhang et al. supplementary material
Download Zhang et al. supplementary material 2(File)
File 20.3 KB
Supplementary material: File

Zhang et al. supplementary material 3

Zhang et al. supplementary material
Download Zhang et al. supplementary material 3(File)
File 34.4 KB
Supplementary material: File

Zhang et al. supplementary material 4

Zhang et al. supplementary material
Download Zhang et al. supplementary material 4(File)
File 13.1 KB