The University of Western Ontario
Machine Learning Approaches to Analyse QRS Features in Electrocardiography
Abstract
dc:description.abstractReliable delineation and classification of the QRS complex in electrocardiograms (ECGs) is essential for diagnosing a wide range of cardiac conditions, including conduction abnormalities, ventricular arrhythmias, and structural heart disease. Despite the growing use of machine learning in ECG analysis, most publicly available databases lack detailed QRS morphology labels and complete 12-lead recordings, which limits the development of generalizable models. Manual annotation remains indispensable but is labor-intensive, subjective, and difficult to scale across large datasets. To address this challenge, we developed CardioMark, an open-access MATLAB toolbox that facilitates ECG annotation through an intuitive graphical interface. CardioMark supports multi-observer input, session-based workflows, and export functionality tailored for machine learning applications, enabling efficient and reproducible labeling of QRS morphology. Building on this foundation, we developed a deep learning framework, across two complementary studies, that integrates Faster R-CNN and convolutional neural networks (CNNs) for QRS delineation, QRS duration (QRSd) estimation, and QRS pattern classification. To minimize manual labeling, ECG signals were segmented into individual beats and transformed into artificial images suitable for object detection. Three backbone architectures (VGG-16, VGG-19, and RESNET-18) and two ECG image formats were evaluated: binary beat images, where each beat in each lead was represented separately, and RGB beat images, where beats from three leads were superimposed by mapping each lead to a distinct color channel. The models were trained and validated using 258 twelve-lead ECGs from 140 heart failure patients. Using intra-patient evaluation and five-fold cross-validation, the VGG-19 model with RGB encoding achieved mean absolute errors (MAEs) of 8.2 +- 1.0 ms for QRS duration on internal data and 5.3 +- 0.9 ms on an independent dataset. For QRS onset and offset detection, MAEs were as low as 3.1 +- 0.5 ms and 7.5 +- 1.3 ms, respectively. QRS pattern classification into six categories yielded an accuracy of 0.811 +- 0.024 and a macro F1-score of 0.725 +- 0.042.
Degree
thesis:*- Name thesis:degree_name
- Ph D
- Discipline thesis:degree_discipline
- Electrical and Computer Engineering
- Grantor dc:publisher
- The University of Western Ontario
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Abdel Rahman, Samir
- Advisors dc:contributor.advisor
-
- Lacefield, James C.
- Parsa, Vijay
Subjects
dc:subject × 11Rights
dc:rights- Statement dc:rights
-
- Samir Abdel Rahman, 2025
- Attribution-NonCommercial-ShareAlike 4.0 International
- Licence dc:rights.uri
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/20.500.14721/39325