基于机器学习与SHAP解释的冠心病风险预测模型研究
Research on Coronary Heart Disease Risk Prediction Model Based on Machine Learning and SHAP Interpretation
DOI: 10.12677/sea.2026.155061, PDF,    科研立项经费支持
作者: 杨冰倩*, 张艳敏:河北软件职业技术学院软件工程系,河北 保定;保定市人工智能 + 智慧交通领域重点实验室,河北 保定;孙凤杰, 赵占坤:河北软件职业技术学院软件工程系,河北 保定
关键词: 冠心病;机器学习;风险预测;可解释性;Coronary Heart Disease; Machine Learning; Risk Prediction; Interpretability
摘要: 本文基于UCI Cleveland心脏病数据集,采用机器学习方法构建冠心病风险预测模型。对数据进行预处理后,分别建立逻辑回归、支持向量机、随机森林、XGBoost和LightGBM五种分类模型,并结合交叉验证、多指标评价及可靠性分析比较模型性能。同时,利用SHAP方法对最优模型进行解释,分析关键临床特征对预测结果的影响。实验结果表明,五种模型均具有较好的风险识别能力,其中逻辑回归模型综合性能最佳,测试集ROC-AUC达到0.9436。Bootstrap、校准曲线和决策曲线分析结果表明,该模型具有较好的稳定性和应用价值。SHAP分析进一步发现,年龄、最大心率、运动诱发心绞痛和ST段压低等因素对模型预测具有重要影响。基于机器学习结合可解释分析的方法能够有效实现冠心病风险预测,并提高模型结果的透明性,为临床辅助决策提供参考。
Abstract: This paper constructs a risk prediction model for coronary heart disease (CHD) using machine learning methods based on the UCI Cleveland Heart Disease dataset. After data preprocessing, five classification models—Logistic Regression, Support Vector Machine, Random Forest, XGBoost, and LightGBM—were established. Their performances were compared using cross-validation, multi-metric evaluation, and reliability analysis. Meanwhile, the SHAP (SHapley Additive exPlanations) method was applied to interpret the optimal model and to analyze the influence of key clinical features on prediction outcomes. Experimental results show that all five models exhibit good risk discrimination ability, with the Logistic Regression model achieving the best overall performance, attaining a test-set ROC-AUC of 0.9436. Bootstrap resampling, calibration curve, and decision curve analyses indicate that the model has satisfactory stability and clinical utility. SHAP analysis further reveals that age, maximum heart rate, exercise-induced angina, and ST-segment depression are among the most influential factors in model predictions. The proposed approach, combining machine learning with interpretable analysis, can effectively predict CHD risk and enhance the transparency of model outputs, thereby providing a reference for clinical decision support.
文章引用:杨冰倩, 张艳敏, 孙凤杰, 赵占坤. 基于机器学习与SHAP解释的冠心病风险预测模型研究[J]. 软件工程与应用, 2026, 15(5): 654-663. https://doi.org/10.12677/sea.2026.155061

参考文献

[1] 国家心血管病中心. 中国心血管健康与疾病报告2022 [M]. 北京: 中国协和医科大学出版社, 2023.
[2] D’Agostino, R.B., Vasan, R.S., Pencina, M.J., Wolf, P.A., Cobain, M., Massaro, J.M., et al. (2008) General Cardiovascular Risk Profile for Use in Primary Care: The Framingham Heart Study. Circulation, 117, 743-753.
https://doi.org/10.1161/circulationaha.107.699579
[3] Genders, T.S.S., Steyerberg, E.W., Hunink, M.G.M., et al. (2012) Prediction Model to Estimate Presence of Coronary Artery Disease: Retrospective Pooled Analysis of Existing Cohorts. British Medical Journal, 344, e3485.
[4] Breiman, L. (2001) Random Forests. Machine Learning, 45, 5-32.
https://doi.org/10.1023/a:1010933404324
[5] Lundberg, S.M. and Lee, S.I. (2017) A Unified Approach to Interpreting Model Predictions. 2017 Advances in Neural Information Processing Systems 30, Long Beach, 4-9 December 2017, 4765-4774.
[6] Lundberg, S.M., Erion, G., Chen, H., DeGrave, A., Prutkin, J.M., Nair, B., et al. (2020) From Local Explanations to Global Understanding with Explainable AI for Trees. Nature Machine Intelligence, 2, 56-67.
https://doi.org/10.1038/s42256-019-0138-9
[7] Steyerberg, E.W., Vickers, A.J., Cook, N.R., Gerds, T., Gonen, M., Obuchowski, N., et al. (2010) Assessing the Performance of Prediction Models: A Framework for Traditional and Novel Measure. Epidemiology, 21, 128-138.
https://doi.org/10.1097/ede.0b013e3181c30fb2
[8] Vickers, A.J. and Elkin, E.B. (2006) Decision Curve Analysis: A Novel Method for Evaluating Prediction Models. Medical Decision Making, 26, 565-574.
https://doi.org/10.1177/0272989x06295361