Enhancing heart disease prediction using a self-attention-based transformer model
- PMID: 38177293
- PMCID: PMC10767116
- DOI: 10.1038/s41598-024-51184-7
Enhancing heart disease prediction using a self-attention-based transformer model
Abstract
Cardiovascular diseases (CVDs) continue to be the leading cause of more than 17 million mortalities worldwide. The early detection of heart failure with high accuracy is crucial for clinical trials and therapy. Patients will be categorized into various types of heart disease based on characteristics like blood pressure, cholesterol levels, heart rate, and other characteristics. With the use of an automatic system, we can provide early diagnoses for those who are prone to heart failure by analyzing their characteristics. In this work, we deploy a novel self-attention-based transformer model, that combines self-attention mechanisms and transformer networks to predict CVD risk. The self-attention layers capture contextual information and generate representations that effectively model complex patterns in the data. Self-attention mechanisms provide interpretability by giving each component of the input sequence a certain amount of attention weight. This includes adjusting the input and output layers, incorporating more layers, and modifying the attention processes to collect relevant information. This also makes it possible for physicians to comprehend which features of the data contributed to the model's predictions. The proposed model is tested on the Cleveland dataset, a benchmark dataset of the University of California Irvine (UCI) machine learning (ML) repository. Comparing the proposed model to several baseline approaches, we achieved the highest accuracy of 96.51%. Furthermore, the outcomes of our experiments demonstrate that the prediction rate of our model is higher than that of other cutting-edge approaches used for heart disease prediction.
© 2024. The Author(s).
Conflict of interest statement
The authors declare no competing interests.
Figures
Similar articles
-
Ensemble framework for cardiovascular disease prediction.Comput Biol Med. 2022 Jul;146:105624. doi: 10.1016/j.compbiomed.2022.105624. Epub 2022 May 17. Comput Biol Med. 2022. PMID: 35598355
-
Comprehensive evaluation and performance analysis of machine learning in heart disease prediction.Sci Rep. 2024 Apr 3;14(1):7819. doi: 10.1038/s41598-024-58489-7. Sci Rep. 2024. PMID: 38570582 Free PMC article.
-
An active learning machine technique based prediction of cardiovascular heart disease from UCI-repository database.Sci Rep. 2023 Aug 21;13(1):13588. doi: 10.1038/s41598-023-40717-1. Sci Rep. 2023. PMID: 37604952 Free PMC article.
-
A systematic review on machine learning approaches for cardiovascular disease prediction using medical big data.Med Eng Phys. 2022 Jul;105:103825. doi: 10.1016/j.medengphy.2022.103825. Epub 2022 May 27. Med Eng Phys. 2022. PMID: 35781385
-
Data-driven modeling and prediction of blood glucose dynamics: Machine learning applications in type 1 diabetes.Artif Intell Med. 2019 Jul;98:109-134. doi: 10.1016/j.artmed.2019.07.007. Epub 2019 Jul 26. Artif Intell Med. 2019. PMID: 31383477 Review.
Cited by
-
Artificial Intelligence Applied to Electrical and Non-Invasive Hemodynamic Markers in Elderly Decompensated Chronic Heart Failure Patients.Biomedicines. 2024 Mar 22;12(4):716. doi: 10.3390/biomedicines12040716. Biomedicines. 2024. PMID: 38672072 Free PMC article.
-
Predicting cardiovascular risk with hybrid ensemble learning and explainable AI.Sci Rep. 2025 May 23;15(1):17927. doi: 10.1038/s41598-025-01650-7. Sci Rep. 2025. PMID: 40410273 Free PMC article.
-
Analysis of Personalized Cardiovascular Drug Therapy: From Monitoring Technologies to Data Integration and Future Perspectives.Biosensors (Basel). 2025 Mar 17;15(3):191. doi: 10.3390/bios15030191. Biosensors (Basel). 2025. PMID: 40136988 Free PMC article. Review.
-
The usage of a transformer based and artificial intelligence driven multidimensional feedback system in english writing instruction.Sci Rep. 2025 Jun 2;15(1):19268. doi: 10.1038/s41598-025-05026-9. Sci Rep. 2025. PMID: 40456848 Free PMC article.
-
Automatic Detection of Occluded Main Coronary Arteries of NSTEMI Patients with MI-MS ConvMixer + WSSE Without CAG.Diagnostics (Basel). 2025 Feb 2;15(3):347. doi: 10.3390/diagnostics15030347. Diagnostics (Basel). 2025. PMID: 39941277 Free PMC article.
References
-
- Virani SS, Alonso A, Aparicio HJ, Benjamin EJ, Bittencourt MS, Callaway CW, Carson AP, Chamberlain AM, Cheng S, Delling FN, et al. Heart disease and stroke statistics—2021 update: A report from the american heart association. Circulation. 2021;143(8):e254–e743. doi: 10.1161/CIR.0000000000000950. - DOI - PubMed
-
- Torre-Cruz J, Martinez-Muñoz D, Ruiz-Reyes N, Muñoz-Montoro A, Puentes-Chiachio M, Canadas-Quesada F. Unsupervised detection and classification of heartbeats using the dissimilarity matrix in pcg signals. Comput. Methods Programs Biomed. 2022;221:106909. doi: 10.1016/j.cmpb.2022.106909. - DOI - PubMed
MeSH terms
LinkOut - more resources
Full Text Sources
Medical