Hybrid CNN-Transformer-WOA model with XGBoost-SHAP feature selection for arrhythmia risk prediction in acute myocardial infarction patients
Authors:
Open Access
- 6 August 2025
- journal article
- research article
- Published by Springer Nature in BMC Medical Informatics and Decision Making
- Vol. 25 (1) , 1-15
Abstract
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. 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. 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. 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. (No.: ChiCTR2100041960).Keywords
Funding Information
- Hebei General Hospital (20180130)
This publication has 50 references indexed in Scilit:
- DenseNet-ABiLSTM: Revolutionizing Multiclass Arrhythmia Detection and Classification Using Hybrid Deep Learning Approach Leveraging PPG SignalsInternational Journal of Computational Intelligence Systems, 2025
- Multitask multilayer-prediction model for predicting mechanical ventilation and the associated mortality rateNeural Computing and Applications, 2024
- A Dense Network Approach with Gaussian Optimizer for Cardiovascular Disease PredictionNew Generation Computing, 2023
- RETRACTED ARTICLE: Diagnosis of cardiovascular disease using deep learning techniqueSoft Computing, 2022
- Metabolism regulator adiponectin prevents cardiac remodeling and ventricular arrhythmias via sympathetic modulation in a myocardial infarction modelBasic Research in Cardiology, 2022
- A novel approach for cardiovascular disease prediction using machine learning algorithmsConcurrency and Computation: Practice and Experience, 2022
- Machine Learning-Based Risk Prediction of Malignant Arrhythmia in Hospitalized Patients with Heart FailureESC Heart Failure, 2021
- Comparison among random forest, logistic regression, and existing clinical risk scores for predicting outcomes in patients with atrial fibrillation: A report from the J‐RHYTHM registryClinical Cardiology, 2021
- Mobile Health for Arrhythmia Diagnosis and ManagementJournal of General Internal Medicine, 2021
- An improved grid search algorithm to optimize SVR for predictionSoft Computing, 2021