Hybrid CNN-Transformer-WOA model with XGBoost-SHAP feature selection for arrhythmia risk prediction in acute myocardial infarction patients.

IF 3.8 3区 医学 Q2 MEDICAL INFORMATICS
Li Li, Wenjun Ren, Yuying Lei, Lixia Xu, Xiaohui Ning
{"title":"Hybrid CNN-Transformer-WOA model with XGBoost-SHAP feature selection for arrhythmia risk prediction in acute myocardial infarction patients.","authors":"Li Li, Wenjun Ren, Yuying Lei, Lixia Xu, Xiaohui Ning","doi":"10.1186/s12911-025-03127-z","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Arrhythmia is a frequent and serious complication of acute myocardial infarction (AMI), leading to higher mortality. Early prediction is critical for timely intervention, but existing methods are limited by poor accuracy and low clinical applicability.</p><p><strong>Methods: </strong>We developed a novel hybrid model integrating convolutional neural network (CNN), Transformer, and Whale Optimization Algorithm (WOA) for arrhythmia prediction in AMI patients. A two-stage feature selection using XGBoost and SHAP identified the top 10 clinical predictors from 45 variables. The model was trained and validated using stratified 10-fold cross-validation on a retrospective cohort of 2,084 patients. Performance was compared with traditional machine learning and deep learning baselines using accuracy, AUC-ROC, F1-score, MCC, and G-Mean.</p><p><strong>Results: </strong>The CNN-Transformer-WOA model achieved an accuracy of 92.4%, an AUC-ROC of 0.96, and an F1-score of 0.91, outperforming all baseline models (p < 0.01). Ablation studies showed that combining CNN and Transformer improved predictive power and that WOA-based hyperparameter tuning further enhanced robustness. The model maintained stable performance across subgroups and demonstrated low inference latency (<8 ms per case). SHAP-based analysis provided interpretable clinical insights.</p><p><strong>Conclusion: </strong>This study presents an accurate, interpretable, and robust deep learning solution for arrhythmia prediction in AMI patients. The framework enables real-time, evidence-based risk stratification, and is suitable for integration into clinical decision support systems, offering practical value for improving patient care in real-world hospital environments.</p><p><strong>Clinical trial number: </strong>(No.: ChiCTR2100041960).</p>","PeriodicalId":9340,"journal":{"name":"BMC Medical Informatics and Decision Making","volume":"25 1","pages":"291"},"PeriodicalIF":3.8000,"publicationDate":"2025-08-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12330184/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"BMC Medical Informatics and Decision Making","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1186/s12911-025-03127-z","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MEDICAL INFORMATICS","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Arrhythmia is a frequent and serious complication of acute myocardial infarction (AMI), leading to higher mortality. Early prediction is critical for timely intervention, but existing methods are limited by poor accuracy and low clinical applicability.

Methods: We developed a novel hybrid model integrating convolutional neural network (CNN), Transformer, and Whale Optimization Algorithm (WOA) for arrhythmia prediction in AMI patients. A two-stage feature selection using XGBoost and SHAP identified the top 10 clinical predictors from 45 variables. The model was trained and validated using stratified 10-fold cross-validation on a retrospective cohort of 2,084 patients. Performance was compared with traditional machine learning and deep learning baselines using accuracy, AUC-ROC, F1-score, MCC, and G-Mean.

Results: The CNN-Transformer-WOA model achieved an accuracy of 92.4%, an AUC-ROC of 0.96, and an F1-score of 0.91, outperforming all baseline models (p < 0.01). Ablation studies showed that combining CNN and Transformer improved predictive power and that WOA-based hyperparameter tuning further enhanced robustness. The model maintained stable performance across subgroups and demonstrated low inference latency (<8 ms per case). SHAP-based analysis provided interpretable clinical insights.

Conclusion: This study presents an accurate, interpretable, and robust deep learning solution for arrhythmia prediction in AMI patients. The framework enables real-time, evidence-based risk stratification, and is suitable for integration into clinical decision support systems, offering practical value for improving patient care in real-world hospital environments.

Clinical trial number: (No.: ChiCTR2100041960).

Abstract Image

Abstract Image

Abstract Image

Abstract Image

Abstract Image

Abstract Image

结合XGBoost-SHAP特征选择的CNN-Transformer-WOA混合模型用于急性心肌梗死患者心律失常风险预测。
背景:心律失常是急性心肌梗死(AMI)常见且严重的并发症,死亡率较高。早期预测对及时干预至关重要,但现有方法准确性差,临床适用性低。方法:我们建立了一种结合卷积神经网络(CNN)、Transformer和Whale优化算法(WOA)的新型混合模型,用于AMI患者心律失常预测。使用XGBoost和SHAP的两阶段特征选择从45个变量中确定了10个最重要的临床预测因子。该模型在2084例患者的回顾性队列中进行了分层10倍交叉验证。使用准确率、AUC-ROC、F1-score、MCC和G-Mean对传统机器学习和深度学习基线的性能进行比较。结果:CNN-Transformer-WOA模型准确率为92.4%,AUC-ROC为0.96,f1评分为0.91,优于所有基线模型(p < 0.01)。消融研究表明,结合CNN和Transformer提高了预测能力,基于wow的超参数调谐进一步增强了鲁棒性。该模型在各亚组中保持稳定的性能,并表现出较低的推断延迟(结论:本研究为AMI患者心律失常预测提供了一种准确、可解释、鲁棒的深度学习解决方案。该框架能够实现实时的、基于证据的风险分层,并且适合集成到临床决策支持系统中,为改善现实世界医院环境中的患者护理提供实用价值。临床试验编号:: ChiCTR2100041960)。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
7.20
自引率
5.70%
发文量
297
审稿时长
1 months
期刊介绍: BMC Medical Informatics and Decision Making is an open access journal publishing original peer-reviewed research articles in relation to the design, development, implementation, use, and evaluation of health information technologies and decision-making for human health.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信