Efficient Deep Learning Models Integrated with a Smart Web Application for Classifying Heart Diseases Based on ECG Signals
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%.
Authors
- Osama Farouk Hassan (ORCID: https://orcid.org/0000-0002-8856-9968)
- Noorah Albehaijan
- M. Abdel-Aziz (ORCID: https://orcid.org/0000-0002-6040-7262)
- Norah Alnaim (ORCID: https://orcid.org/0000-0002-9576-8340)
- A. K. Ibrahim
- Saeed Mohsen
Institutions
- Ain Shams University (EG)
- Suez Canal University (EG)
- Sinai University (EG)
- Umm al-Qura University (SA)
- Higher Institute of Engineering (EG)
- Imam Abdulrahman Bin Faisal University (SA)
Publication Details
- Journal
- Computers
- Published
- 2026-03-16
- DOI
- https://doi.org/10.3390/computers15030191
- Primary Topic
- ECG Monitoring and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00