{"title":"Enhanced electrocardiogram classification using Gramian angular field transformation with multi-lead analysis and segmentation techniques","authors":"Gi-Won Yoon, Segyeong Joo","doi":"10.1016/j.mex.2025.103297","DOIUrl":null,"url":null,"abstract":"<div><div>Conventional manual or feature-based ECG analysis methods are limited by time inefficiencies and human error. This study explores the potential of transforming 1D signals into 2D Gramian Angular Field (GAF) images for improved classification of four ECG categories: Atrial Fibrillation (AFib), Left Ventricular Hypertrophy (LVH), Right Ventricular Hypertrophy (RVH), and Normal ECG.<ul><li><span>•</span><span><div>The study employed GAF transformations to convert 1D ECG signals into 2D representations at three resolutions: 5000 × 5000, 512 × 512, and 256 × 256 pixels.</div></span></li><li><span>•</span><span><div>Segmentation methods were applied to enhance feature localization.</div></span></li><li><span>•</span><span><div>The ConvNext deep learning model, optimized for image classification, was used to evaluate the transformed ECG images, with performance assessed through accuracy, precision, recall, and F1-score metrics.</div></span></li></ul>The 512 × 512 resolution achieved the optimal balance between computational efficiency and accuracy. F1-score for AFib, LVH, RVH and Normal ECG were 0.781, 0.71, 0.521 and 0.792 respectively. Segmentation methods improved classification performance, especially in detecting conditions like LVH and RVH. The 5000 × 5000 resolution offered the highest accuracy but was computationally intensive, whereas the 256 × 256 resolution showed reduced accuracy due to loss details.</div></div>","PeriodicalId":18446,"journal":{"name":"MethodsX","volume":"14 ","pages":"Article 103297"},"PeriodicalIF":1.6000,"publicationDate":"2025-04-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"MethodsX","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2215016125001438","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
Conventional manual or feature-based ECG analysis methods are limited by time inefficiencies and human error. This study explores the potential of transforming 1D signals into 2D Gramian Angular Field (GAF) images for improved classification of four ECG categories: Atrial Fibrillation (AFib), Left Ventricular Hypertrophy (LVH), Right Ventricular Hypertrophy (RVH), and Normal ECG.
•
The study employed GAF transformations to convert 1D ECG signals into 2D representations at three resolutions: 5000 × 5000, 512 × 512, and 256 × 256 pixels.
•
Segmentation methods were applied to enhance feature localization.
•
The ConvNext deep learning model, optimized for image classification, was used to evaluate the transformed ECG images, with performance assessed through accuracy, precision, recall, and F1-score metrics.
The 512 × 512 resolution achieved the optimal balance between computational efficiency and accuracy. F1-score for AFib, LVH, RVH and Normal ECG were 0.781, 0.71, 0.521 and 0.792 respectively. Segmentation methods improved classification performance, especially in detecting conditions like LVH and RVH. The 5000 × 5000 resolution offered the highest accuracy but was computationally intensive, whereas the 256 × 256 resolution showed reduced accuracy due to loss details.