Skip to main navigation Skip to search Skip to main content

Efficient Deep Learning Models Integrated with a Smart Web Application for Classifying Heart Diseases Based on ECG Signals

  • Saeed Mohsen*
  • , Ahmed F. Ibrahim
  • , Osama F. Hassan
  • , Norah Alnaim
  • , Noorah Albehaijan
  • , M. Abdel-Aziz
  • *Corresponding author for this work
  • Al-Madinah Higher Institute for Engineering and Technology
  • King Salman International University
  • Umm Al Quwain University
  • Suez Canal University
  • Imam Abdulrahman Bin Faisal University
  • Ain Shams University

Research output: Contribution to journalArticlepeer-review

Abstract

Recent advancements in the accuracy of deep learning (DL) hold significant promise for improving the classification of heart patients. Nevertheless, continued refinement is essential to achieve even greater levels of precision in DL techniques. This paper proposes three efficient DL models: Swin Transformer (Swin-T), Visual Geometry Group (VGG)-19, and Vision Transformer (ViT), which are implemented to classify different types of heart patients. The three DL models are learned on a balanced dataset comprising 600 electrocardiogram (ECG) samples. This dataset contains three classes: Arrhythmia Patient, Myocardic Patient, and Normal Patient. The DL models are applied using a PyTorch framework v2.10.0, with fine-tuning for the models’ hyperparameters to maximize the classification accuracy, and data augmentation techniques are implemented for the ECG samples. Additionally, a smart web application is designed for classifying heart patients into three different diagnostic categories. The performance of the three models is assessed by several metrics such as area under precision-recall (AUPR) curves and normalized confusion matrices (NCMs). The proposed three models achieve high testing accuracy for the classification of heart patients. Regarding testing loss (TL) rates for the Swin-T, VGG-19, and ViT achieve rates of 0.0707, 0.4138, and 0.0015, respectively. Also, the ViT achieves an F1-score, true positive rate (TPR), and AUPR curves of 100%.

Original languageEnglish
Article number191
JournalComputers
Volume15
Issue number3
DOIs
StatePublished - Mar 2026

Keywords

  • deep learning
  • ECG classification
  • heart patients
  • Swin-T
  • transformer
  • VGG-19
  • ViT

Fingerprint

Dive into the research topics of 'Efficient Deep Learning Models Integrated with a Smart Web Application for Classifying Heart Diseases Based on ECG Signals'. Together they form a unique fingerprint.

Cite this