Open Access iconOpen Access

ARTICLE

crossmark

Posture Detection of Heart Disease Using Multi-Head Attention Vision Hybrid (MHAVH) Model

Hina Naz1, Zuping Zhang1,*, Mohammed Al-Habib1, Fuad A. Awwad2, Emad A. A. Ismail2, Zaid Ali Khan3

1 School of Computer Science and Engineering, Central South University, Changsha, 410003, China
2 Department of Quantitative analysis, College of Business Administration, King Saud University, P.O. Box 71115, Riyadh, 11587, Saudi Arabia
3 Electrical and Computer Engineering, University of Victoria, Victoria, V9A1B8, Canada

* Corresponding Author: Zuping Zhang. Email: email

Computers, Materials & Continua 2024, 79(2), 2673-2696. https://doi.org/10.32604/cmc.2024.049186

Abstract

Cardiovascular disease is the leading cause of death globally. This disease causes loss of heart muscles and is also responsible for the death of heart cells, sometimes damaging their functionality. A person’s life may depend on receiving timely assistance as soon as possible. Thus, minimizing the death ratio can be achieved by early detection of heart attack (HA) symptoms. In the United States alone, an estimated 610,000 people die from heart attacks each year, accounting for one in every four fatalities. However, by identifying and reporting heart attack symptoms early on, it is possible to reduce damage and save many lives significantly. Our objective is to devise an algorithm aimed at helping individuals, particularly elderly individuals living independently, to safeguard their lives. To address these challenges, we employ deep learning techniques. We have utilized a vision transformer (ViT) to address this problem. However, it has a significant overhead cost due to its memory consumption and computational complexity because of scaling dot-product attention. Also, since transformer performance typically relies on large-scale or adequate data, adapting ViT for smaller datasets is more challenging. In response, we propose a three-in-one steam model, the Multi-Head Attention Vision Hybrid (MHAVH). This model integrates a real-time posture recognition framework to identify chest pain postures indicative of heart attacks using transfer learning techniques, such as ResNet-50 and VGG-16, renowned for their robust feature extraction capabilities. By incorporating multiple heads into the vision transformer to generate additional metrics and enhance heart-detection capabilities, we leverage a 2019 posture-based dataset comprising RGB images, a novel creation by the author that marks the first dataset tailored for posture-based heart attack detection. Given the limited online data availability, we segmented this dataset into gender categories (male and female) and conducted testing on both segmented and original datasets. The training accuracy of our model reached an impressive 99.77%. Upon testing, the accuracy for male and female datasets was recorded at 92.87% and 75.47%, respectively. The combined dataset accuracy is 93.96%, showcasing a commendable performance overall. Our proposed approach demonstrates versatility in accommodating small and large datasets, offering promising prospects for real-world applications.

Keywords


Cite This Article

APA Style
Naz, H., Zhang, Z., Al-Habib, M., Awwad, F.A., Ismail, E.A.A. et al. (2024). Posture detection of heart disease using multi-head attention vision hybrid (MHAVH) model. Computers, Materials & Continua, 79(2), 2673-2696. https://doi.org/10.32604/cmc.2024.049186
Vancouver Style
Naz H, Zhang Z, Al-Habib M, Awwad FA, Ismail EAA, Khan ZA. Posture detection of heart disease using multi-head attention vision hybrid (MHAVH) model. Comput Mater Contin. 2024;79(2):2673-2696 https://doi.org/10.32604/cmc.2024.049186
IEEE Style
H. Naz, Z. Zhang, M. Al-Habib, F.A. Awwad, E.A.A. Ismail, and Z.A. Khan "Posture Detection of Heart Disease Using Multi-Head Attention Vision Hybrid (MHAVH) Model," Comput. Mater. Contin., vol. 79, no. 2, pp. 2673-2696. 2024. https://doi.org/10.32604/cmc.2024.049186



cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 208

    View

  • 123

    Download

  • 0

    Like

Share Link