Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Prediction of heart failure patients with distinct left ventricular ejection fraction levels using circadian ECG features and machine learning

  • Sona M. Al Younis ,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    100058882@ku.ac.ae

    Affiliation Department of Biomedical Engineering, Healthcare Engineering Innovation Centre (HEIC), Khalifa University, Abu Dhabi, United Arab Emirates

  • Leontios J. Hadjileontiadis,

    Roles Conceptualization, Methodology, Project administration, Supervision, Writing – review & editing

    Affiliations Department of Biomedical Engineering, Healthcare Engineering Innovation Centre (HEIC), Khalifa University, Abu Dhabi, United Arab Emirates, Department of Electrical and Computer Engineering, Aristotle University of Thessaloniki, Thessaloniki, Greece

  • Ahsan H. Khandoker,

    Roles Conceptualization, Methodology, Project administration, Supervision, Writing – review & editing

    Affiliation Department of Biomedical Engineering, Healthcare Engineering Innovation Centre (HEIC), Khalifa University, Abu Dhabi, United Arab Emirates

  • Cesare Stefanini,

    Roles Conceptualization, Project administration, Supervision, Writing – review & editing

    Affiliation Creative Engineering Design Lab at the BioRobotics Institute, Applied Experimental Sciences Scuola Superiore Sant’Anna, Pontedera (Pisa), Italy

  • Stergios Soulaidopoulos,

    Roles Resources

    Affiliation First Cardiology Department, School of Medicine, “Hippokration” General Hospital, National and Kapodistrian University of Athens, Athens, Greece

  • Petros Arsenos,

    Roles Resources

    Affiliation First Cardiology Department, School of Medicine, “Hippokration” General Hospital, National and Kapodistrian University of Athens, Athens, Greece

  • Ioannis Doundoulakis,

    Roles Resources

    Affiliation First Cardiology Department, School of Medicine, “Hippokration” General Hospital, National and Kapodistrian University of Athens, Athens, Greece

  • Konstantinos A. Gatzoulis,

    Roles Resources

    Affiliation First Cardiology Department, School of Medicine, “Hippokration” General Hospital, National and Kapodistrian University of Athens, Athens, Greece

  • Konstantinos Tsioufis

    Roles Resources

    Affiliation First Cardiology Department, School of Medicine, “Hippokration” General Hospital, National and Kapodistrian University of Athens, Athens, Greece

Abstract

Heart failure (HF) encompasses a diverse clinical spectrum, including instances of transient HF or HF with recovered ejection fraction, alongside persistent cases. This dynamic condition exhibits a growing prevalence and entails substantial healthcare expenditures, with anticipated escalation in the future. It is essential to classify HF patients into three groups based on their ejection fraction: reduced (HFrEF), mid-range (HFmEF), and preserved (HFpEF), such as for diagnosis, risk assessment, treatment choice, and the ongoing monitoring of heart failure. Nevertheless, obtaining a definitive prediction poses challenges, requiring the reliance on echocardiography. On the contrary, an electrocardiogram (ECG) provides a straightforward, quick, continuous assessment of the patient’s cardiac rhythm, serving as a cost-effective adjunct to echocardiography. In this research, we evaluate several machine learning (ML)-based classification models, such as K-nearest neighbors (KNN), neural networks (NN), support vector machines (SVM), and decision trees (TREE), to classify left ventricular ejection fraction (LVEF) for three categories of HF patients at hourly intervals, using 24-hour ECG recordings. Information from heterogeneous group of 303 heart failure patients, encompassing HFpEF, HFmEF, or HFrEF classes, was acquired from a multicenter dataset involving both American and Greek populations. Features extracted from ECG data were employed to train the aforementioned ML classification models, with the training occurring in one-hour intervals. To optimize the classification of LVEF levels in coronary artery disease (CAD) patients, a nested cross-validation approach was employed for hyperparameter tuning. HF patients were best classified using TREE and KNN models, with an overall accuracy of 91.2% and 90.9%, and average area under the curve of the receiver operating characteristics (AUROC) of 0.98, and 0.99, respectively. Furthermore, according to the experimental findings, the time periods of midnight-1 am, 8–9 am, and 10–11 pm were the ones that contributed to the highest classification accuracy. The results pave the way for creating an automated screening system tailored for patients with CAD, utilizing optimal measurement timings aligned with their circadian cycles.

Introduction

Heart failure (HF) is a life-threatening disease that impacts approximately 63 million individuals on a global scale [1]. It represents a growing challenge for cardiologists, as they encounter an annual influx of 3.5 million new patients [2]. At the age of 55, the chances of experiencing heart failure during one’s lifetime are 29% for men and 33% for women, respectively [3]. Based on estimations, about 480,000 adults aged 18 and above are afflicted by heart failure, making up 2.1% of the adult population [4]. It has been conventionally characterized as reduced heart efficacy in pumping and/or receiving blood. Conversely, it may be defined as an irregularity in the heart’s function or structure, leading to an inadequate cardiac output. In certain situations, an adequate cardiac output can be resulted through compensatory neurohormonal mechanisms and an increase in left ventricular filling pressure. Left Ventricle Ejection Fraction (LVEF) levels, is a hemodynamic term for the fraction of ventricular volume ejected per heartbeat [5]. Furthermore, LVEF has been emphasized as a significant marker for diagnosing, predicting outcomes, and managing patients with heart failure [6, 7], that encompasses physical examinations, patient history reviews, and clinical tests [8].

Although there are some variations in the heart failure definitions currently found in the practice guidelines of different organizations (e.g., American Society of Echocardiography and the European Association of Cardiovascular Imaging (ASE/EACVI) [9, 10], American College of Cardiology (ACC)/American Heart Association (AHA) [11], Heart Failure Association (HFA)/European Society of Cardiology (ESC) [12], and the Japanese Heart Failure Society (JHFS) [13]), the fundamental concepts and criteria for classifying heart failure into distinct stages are rooted in the assessment of the condition’s severity, progression, and the observable signs and symptoms. These symptoms encompass issues, such as edema/fluid retention, dyspnea, reduced tolerance for physical activity, and fatigue. Furthermore, these guidelines stress the importance of having structural or functional heart disease as a prerequisite for making a diagnosis. Coronary artery disease (CAD) stands as the primary contributor to heart failure, with hypertension, diabetes, valvular heart disease, and cardiomyopathy following as significant underlying causes [14].

As per the guidelines provided by the ASE/EACVI [9, 10], heart failure with a decreased ejection fraction, or systolic dysfunction (HFrEF), is the clinical presentation of symptoms associated with heart failure, characterized by a resulting LVEF below 50%. A diastolic dysfunction, usually termed heart failure with preserved ejection fraction (HFpEF), is identified when the measured Ejection Fraction (EF) exceeds 55%. However, in cases where the LVEF shows a slight reduction (falling within the range of 50–55%), it is known as heart failure with mid-range ejection fraction (HFmEF). Due to the HF aetiology, the HFmEF category’s narrower range is seen as a changeable criterion for this category. Alternative standards, including those set by the ESC [12] and JHFS [13], recommend distinct threshold values for heart failure classification. In these guidelines, the cut-off for HFrEF can be as low as 40%. There are no strict rules, and the treatment is only tangentially related to LVEF levels and clinical presentation, according to the literature that is currently available. Nevertheless, based on the ESC criteria, patients in the mid-range group with an LVEF of 40–49% showed that 90% of patients either improved or became worse, with only 10% of cases remaining unaltered. LVEF is evaluated from computerized tomography (CT) [15], cardiac catheterization [16], and nuclear medicine scans [17]. Nevertheless, cardiovascular magnetic resonance (CMR) [18] imaging and echocardiography [19] stand out as the most dependable and extensively utilized techniques for assessing LVEF. While these techniques offer high estimation accuracy and utilize non-ionizing radiations, they come with certain limitations. These include factors, i.e., accessibility and cost, patient contraindications, dependence on operator skills, patient cooperation, challenges in interpreting the obtained images, and time requirements.

Electrocardiography (ECG) serves as a valuable adjunct, offering accessibility and cost-effectiveness in the assessment of LVEF. The utilization of ECG for LVEF evaluation is justified by its proficiency in capturing essential physiological correlations indicative of cardiac performance. ECG characteristics, including QTc interval, QRS duration, abnormalities in T-wave patterns, and alterations in the ST segment, serve as indicators of irregularities in electrical conduction, anomalies in ventricular repolarization, and myocardial ischemia. These electrical manifestations are intricately connected to the mechanical processes that regulate the contraction and relaxation of the ventricles. Significantly, changes in LVEF can impact cardiac electrical activities, leading to variations in ECG patterns. Consequently, through a thorough analysis of ECG signals and their derived parameters, it becomes feasible to understand the intricate relationship between these electrical indicators and LVEF. This approach provides valuable insights into cardiac function without the need for more invasive or costly procedures.

Numerous cardiovascular conditions, such as atrial fibrillation, myocardial infarction, congestive heart failure, and premature contractions in the atria or ventricles can be identified through the analysis of ECG data [2025]. As a result, the automatic and precise analysis of ECG data has emerged as a prominent area of study, particularly with the utilization of artificial intelligence (AI) tools. Automatic ECG analysis has utilized established diagnostic principles as guidelines. This procedure encompasses two stages in which human specialists extract meaningful features from raw electrocardiogram (ECG) data. These features can be categorized into various classes, including statistical parameters (such as heart rate variability), density histograms and coefficients of variation, time-domain features, sample entropy, and frequency-domain features. Leveraging ECG data and machine learning (ML) techniques, many researchers have successfully differentiated patients with congestive HF from those with normal cardiac conditions [26, 27]. Conversely, deep learning, utilizing a single lead ECG signal, has been employed to classify HF patients into categories such as congestive HF, Coronary Artery Disease (CAD), and Myocardial Infarction (MI) patients [20].

Nevertheless, the intricate connection between circadian ECG wave characteristics and the estimation of LVEF in HF patients is not yet fully understood. Additionally, providing a more accessible approach for aiding in the diagnoses of HF patients with HFpEF, HFmEF, and HFpEF that does not require extensive expertise or costly equipment would be highly beneficial. In a similar vein, the utilization of ML techniques, including deep learning, can be pivotal in unravelling the complexities of ECG features within patient records, ultimately enhancing the assessment of HF. Therefore, the aims of this study are:

  1. To investigate the capability of ML classification models trained on features derived from the ECG waveform.
  2. Consistent with the ASE/EACVI guidelines, to precisely categorize heart failure patients into HFpEF, HfmEF, and HfrEF classifications.
  3. To examine the cardiovascular system dynamics in heart failure patients on an hourly basis throughout a 24-hour day.
  4. To highlight the circadian functionality of the heart over a 24-hour period (correlated with ECG features) with the aim of proposing optimal times for accurate heart failure classification. This provides a viable screening strategy with the most favourable opportunities for intervening and preventing the progression of heart failure.

Materials and methods

Dataset and patients’ enrollment

The comprehensive methodology employed in this study is depicted in Fig 1. The research utilized two datasets containing clinical information from cohorts of American and Greek patients. Encompassing individuals with heart failure, specifically CAD, and spanning an age range from 33 to 88 years (n = 303), both datasets were incorporated. Following the ASE/EACVI guidelines, the patients were categorized into 92 with HFmEF, 129 with HFpEF, and 82 with heart failure with HfrEF. Choosing ASE/EACVI guidelines enhances the comparability of our study’s results with those of other research endeavors that have followed similar criteria [5064]. This comparability is crucial for validating our findings and contributing to the cumulative knowledge within the scientific community. Moreover, focusing on the narrower range of classifying mid-range HF patients is valuable for informing targeted interventions and treatment strategies, and ASE/EACVI guidelines offer a comprehensive framework for such classifications.

thumbnail
Fig 1. A visual representation of the entire process carried out in this study.

https://doi.org/10.1371/journal.pone.0302639.g001

The American patient cohort for this study was identified through the utilization in the University of Rochester Medical Centre’s Telemetric and Holter ECG Warehouse (THEW), of the Intercity Digital Electrocardiography (ECG) Alliance (IDEAL) study archives [28]. The enrolment protocol for the database adhered to the principles of the Declaration of Helsinki and Title 45, U.S. Code of Federal Regulations, Part 46, Protection of Human Subjects (revised: November 13, 2001, effective: December 13, 2001). Moreover, the IDEAL protocol received approval at the University of Rochester from the research subject review board [29]. Prior to participation in the trial, each patient provided written consent.

To be eligible for enrolment in the IDEAL study, participants had to satisfy the following criteria: (a) presenting evidence of either a previous myocardial infarction (MI) or ischemia brought on by exercise; (b) having ischemic heart disease in a steady stage for a minimum of two months after the last event; (c) not having received a diagnosis of congenital heart failure; and (d) maintaining sinus rhythm. In addition, individuals with enlarged heart muscle (left ventricular diameter (LVD) exceeding 60 mm and an ejection fraction below 40%), history of coronary artery bypass grafting (CABG) surgery, as well as those with cerebral, severe hepatic, or malignant problems, were deemed ineligible for the trial. All participants underwent an echocardiography examination at the time of the enrollment to ascertain their LVEF levels. There was an initial resting supine period for a 20 minutes’ duration before starting the ambulatory recordinga 24-hour ECG test that was conducted on each participant using three pseudo-orthogonal lead configurations (X, Y, and Z) that correspond to limb lead I, augmented limb lead aVF, and precordial lead V3, respectively.

Individuals participating in the Greek patient cohort were sourced from seven cardiology departments as part of the PRESERVE EF trial in Greece [30]. The patient enrolment protocol for the PRESERVE EF study (clinicaltrials.gov identifier NCT02124018) obtained clearance from the Hellenic Society of Cardiology’s ethics committee at each of Greece’s seven accredited cardiology departments. The Hellenic Society of Cardiology created and managed a database [31]. Before enrolling in the trial at each cardiology department, every patient provided signed consent. To be eligible for enrolment, patients were required to meet the following criteria: (a) having a MI confirmed post-angiographically 90 days after any coronary artery bypass graft (CABG) surgeries, or 40 days after the event of primary percutaneous coronary intervention (PCI) if applicable; (b) undergoing revascularization; (c) not undergoing revascularization but lacking remarks of any ischemia in the preceding six months; and (d) following optimal and tolerated medical therapy in the case of preceding revascularization (PCI or CABG).

Furthermore, any patient with a secondary prevention indication for implantable cardioverter defibrillator (ICD) implantation, permanent pacemaker, persistent, long-standing persistent, and permanent atrial fibrillation, any neurological symptoms of syncope or pre-syncope within the last 6 months, and presence of any systemic illnesses such as liver failure, renal diseases, rheumatic diseases, thyroid dysfunction, and cancer was excluded from the study. All patients underwent echocardiographic tests following the recommendations of the American Society of Echocardiography, and then a GE Healthcare GETEMED CardioDay Holter system (including CardioMem CM4000 recorder and CardioDay v. 2.4 software, GE Healthcare, Fairfield, CT, USA) was utilized, followed by a 45-min high-resolution digital ECG recording.

All patients were in stable condition prior to their enrollment time. The acquired 24-hour ECG Holter recordings from illegible individuals were sampled at 200 Hz. Patients with missing recordings of an hour or more were not included in the study. Consequently, the dataset comprised only 229 patients, categorized into 105 HFpEF, 60 HFmEF, and 64 HFrEF following the ASE/EACVI guidelines. Additional details about the chosen dataset can be found in Table 1. The Kruskal-Wallis test, a non-parametric method, was employed to assess statistical differences among the three groups for continuous variables. For categorical variables, a chi-squared (χ2) test was conducted to investigate dependencies on individual Left Ventricular Ejection Fraction (LVEF) categories. A significant difference (p < 0.05) indicates statistically significant of discriminating between the three LVEF categories.

thumbnail
Table 1. Clinical attributes of the patients with HF categorized according to LVEF classifications.

https://doi.org/10.1371/journal.pone.0302639.t001

Pre-processing and extracting features

The database includes an annotation file with the R-peak locations for each recording, and the RR interval data were manually reviewed to remove ectopic beats, resulting in biosignals of normal beats (NN intervals). To determine the running TP, QT, ST interval, and QRS width within a measurement window, we considered a sufficient number of heartbeats. The annotated NN interval data underwent a Single Cosinor Analysis fitting algorithm [32] to ensure a 24-hour circadian cycle for all recordings. The reference achrophase angle was set at 0°, representing the 00:00 hour. Each hour corresponds to a 15° phase angle increase from the reference angle. After obtaining the starting hour, the 24-hour data was standardized to commence at midnight for all patients. The SDROM-ADF filter was further applied to eliminate noise from each hour of the Holter ECG data [32]. We took the average of the relevant intervals through this hourly window to capture the variations over the entire 24-hour period accurately. Frequency and time-domain characteristics were derived from the ECGs after the de-noising process, as elaborated below. Complex methodologies have been employed to precisely analyze the P-QRS-T components of the ECG waveform. A standard ECG consists of P wave, QRS complex, and T wave. The QRS complex is generated by the electric currents generated during the depolarization of the ventricles prior to contraction, as well as the spread of depolarization throughout the ventricular myocardium. Conversely, the P wave is formed by the electrical currents produced as the depolarization of atria before contracting. In clinical analysis, changes in the ST-T segment are crucial indicators of various cardiac conditions. ST-segment elevation or depression, for example, can signal myocardial infarction or ischemia. T-wave abnormalities may be associated with electrolyte imbalances, myocardial ischemia, or other cardiac issues. Detailed definitions and descriptions of the ECG features are presented in Table 2.

The QT interval exhibits substantial variation based on factors such as age, gender, heart rate, and medication usage. As heart rate decreases, the QT interval tends to lengthen, and as heart rate increases, the QT interval tends to shorten. Correcting the QT interval aims to get a more accurate assessment of the duration of ventricular repolarization, independent of heart rate. Consequently, Bazett’s method is widely employed for its simplicity and significance [33]. RR denotes the R-R interval, and QTc (QTc = QT/sqrt(RR)) represents the corrected QT interval. The Slope Intersect (SI) approach was applied in the automated detection of the QT interval in this study [34]. In Matlab, the Pan-Tompkins ECG QRS detector was utilized to identify the QRS complex [35]. Additionally, the ECG Matlab Toolbox [36] was employed to extract TP, PR, and ST-T. The initial moment of the power spectrogram, calculated over 255-time frames, was employed to estimate the instantaneous frequency of the signal. Furthermore, the spectral entropy of the power spectrogram was computed to assess the flatness and spikiness of the signal’s spectrum.

Machine learning methodologies and training configurations

For an efficient classification process, the capability to train and classify patients into HFpEF, HFmEF, and HFrEF categories using ML algorithms is essential. In this research, four models—Support Vector Machine (SVM), K-Nearest Neighbors (KNN), Neural Network (NN), and Decision Tree (TREE)—were employed to evaluate the effectiveness of diverse machine learning approaches. Accuracy was the primary metric optimized for our models, this choice would align with the nature of the LVEF prediction task and the goals of the research. In our study, the hyperparameter values were selected based on a combination of domain expertise and experimentation. Specifically, we aimed to cover a range of values that are commonly recommended for the respective algorithms used in our models. These values were chosen to ensure comprehensive coverage of the parameter space while also considering computational feasibility.

1)SVM.

Typically, a standardized and flexible machine learning approach is employed for addressing classification problems. Support vectors delineate the margins of hyperplanes, and their identification involves an optimization process incorporating a regulated objective function by a constraint and error term, utilizing Lagrangian relaxation [37]. The intricacy of the SVM classification task is contingent on the count of SV rather than the input space dimensionality. The support vector numbers retained from the initial dataset is contingent on the data and fluctuates according to data complexity, encompassing factors such as data dimensionality and class reparability [38].

SVMs are powerful models with several hyperparameters that significantly influence their performance [39]. The primary hyperparameters to adjust are the kernel type and the regularization parameter;

  1. Kernel type: The kernel determines the type of decision boundary the SVM will use. common choices include radial basis function (RBF), polynomial, linear, and sigmoid kernels.
  2. Regularization parameter (C): C is the trade-off parameter to control regularization between achieving a boundary with smooth decision and correct classification of the training points. Higher values of C lead in a more complex model that may lead to overfitting, while lower values may lead to under fitting.

In this study, the kernel types are selected to be linear, polynomial, RBF, and sigmoid. The C values are defined in the range of: [0.1, 10, 100]. We use the default settings in Matlab for the rest of the other hyperparameters.

2) NN.

The intrinsic capacity of neural networks to acquire sophisticated representations and capture intricate relationships renders them highly effective tools for classification assignments. Their versatility, non-linear characteristics, and capability for representation learning are pivotal factors contributing to their triumph in diverse domains such as natural language processing, image recognition, and healthcare. NN specifically multi-layer perceptron (MLP) architecture are comprised of interconnected nodes organized into layers, with an input layer, an output layer, and one or more hidden layers. Associated with each connection between nodes is a weight, and each node is equipped with an activation function that dictates its output [40]. Activation functions introduce a non-linear element to the model, enabling it to grasp and express non-linear relationships within the data. This becomes essential when dealing with intricate real-world datasets, as linear models may prove inadequate in capturing their complexities [41].

While NN encompass numerous hyperparameters, this study specifically focuses on tuning a select set of hyperparameters, namely:

  1. Hidden layers: The layers between the output and input layers, adjusting the number of hidden layers can impact the network’s capacity to learn complex patterns. Values explored: [1, 2, 3].
  2. Hidden units: The neurons (number of nodes) within each hidden layer. Modifying the number of hidden units influences the model’s capacity to capture and represent features in the data. Values explored in this study: [10, 50, 100].
  3. Activation function: The non-linear function applied to each node’s output in a layer, introducing non-linearity to the model. Different activation functions offer distinct non-linear properties, impacting the network’s ability to learn and generalize. Values explored: [relu, sigmoid].
  4. Learning rate: The step size used during the optimization process (e.g., gradient descent) to update the model’s weights. The learning rate determines the magnitude of weight adjustments, influencing the convergence and stability of the training process. Values explored: [0.1, 0.01, 0.001].

By systematically exploring these hyperparameters and their respective values, the study aims to identify the configuration that optimally balances model complexity, learning capacity, and generalization performance. The chosen values within these ranges allow for a comprehensive search over different architectural and optimization configurations, providing insights into the NN’s behaviour on the specific classification task under investigation.

3) KNN

K-nearest neighbours is an effective yet simple machine learning algorithm applied for regression and classification tasks. KNN fundamental principle is based on the concept that data points tend to belong to the same class or have similar output values when they exhibit similar properties. It operates on the assumption that proximity in the feature space indicates similarity in the underlying patterns. Each data point is interpreted as a vector in a multi-dimensional feature space [42]. The distance between the new data point and every other point in the dataset is calculated using a distance algorithm such as Euclidean. The ’k’ points with the shortest distances to the new point are identified. In categorization assignments, the algorithm allocates the new point to the class with the highest degree of commonality among its ’k’ closest neighbours [43]. Hyperparameters to Tune in KNN:

  1. Number of neighbors (k): The number of nearest neighbours set when making predictions. Choosing ’k’ is crucial; While a bigger ’k’ might make the model more resilient but possibly less sensitive to local patterns, a smaller ’k’ might result in a more flexible model. Values explored: [3, 5, 7, 9]
  2. Algorithm: The algorithm used to compute the nearest neighbours. Different algorithms have varying computational complexities and may perform differently based on the dataset size and dimensionality. ’ball_tree’ and ’kd_tree’ are tree-based methods suitable for low-dimensional data, while ’brute’ performs a brute-force search. Values explored: [ball_tree, kd_tree, brute].

4) TREE.

For classification tasks, the decision tree algorithm provides a reliable and simple-to-understand machine learning technique. At its core, this algorithm aims to construct a hierarchical set of decision rules by leveraging the features present in the input data. This entails the iterative division of the dataset into subsets, each linked to a distinct decision or result [44]. It is composed of nodes, each representing a decision or a test on a feature. The topmost node is called the root node. It represents the entire dataset. In order to divide the data into subsets, the algorithm chooses the best feature and a related threshold. The selection is based on criteria such as entropy, Gini impurity, or information gain. Subsequent nodes, known as decision nodes or internal nodes, represent the tests applied to the features. Every internal node defines a condition that depends on a threshold and a characteristic.

To make predictions, new data traverses the tree from the root to a leaf node based on the feature values. The class associated with the reached leaf node is assigned as the predicted class. One of the notable advantages of decision trees is their interpretability. The resulting tree structure provides a clear and intuitive representation of the decision-making process. Achieving optimal performance and dependable generalization necessitates meticulous adjustment of hyperparameters and precautions against overfitting. To control the complexity of the tree and reduce the likelihood of overfitting, crucial factors are considered when fine-tuning decision tree hyperparameters. These hyperparameters encompass, among others, maximum depth, minimum samples split, criterion for splitting, minimum samples leaf, and maximum leaf nodes. In the course of hyperparameter tuning, key considerations involve exploring maximum depth values of [5, 10, 20] and selecting between criteria for splitting, namely ’gini’ and ’entropy’ was done in this work.

Optimized settings

The optimal combination of SVM hyperparameters was identified as C = 10 with a linear kernel type. A moderate C value indicates that the SVM model maintains a low tolerance for errors in the training data, emphasizing a close fit to the training data, even permitting moderate margin violations. Employing a linear kernel, the SVM model endeavors to establish a hyperplane in the feature space that optimally aligns with the data points, simultaneously maximizing the margin between positive and negative support vectors [45]. The simplicity and interpretability of the linear model render it advantageous in situations where the relationship between target variable and input features can be adequately modeled by a linear function.

The found optimal combination for the NN hyperparameters involves a singular hidden layer with 100 hidden units, and the utilized activation function is the Rectified Linear Unit (ReLU), and employing a learning rate of 0.01. A singular hidden layer with an ample number of units (100) allows the NN to capture relationships and intricate patterns within the data. This configuration strikes a balance between model complexity and efficiency, ensuring the network’s capability to learn and represent the features relevant to the classification task. ReLU is widely adopted for its effectiveness to introduce non-linearity to the model, assisting in the identification of intricate connections within the data. Its simplicity and avoidance of the vanishing gradient problem contribute to more effective training, especially in scenarios where intricate feature representations are essential. A moderate learning rate like 0.01 strikes a balance, preventing convergence issues associated with excessively large rates while ensuring efficient convergence [46]. This combination optimally balances model complexity, training efficiency, and the network’s capacity to discern between different heart failure categories, leading to enhanced accuracy in classification.

In the case of KNN, the identified optimal combination involves selecting 5 neighbours (K = 5) and using the k-d tree algorithm for classification. Five neighbours strike a balance between model sensitivity and robustness. A higher value might lead to over smoothing and generalized predictions, while a lower value might result in sensitivity to noise. With K = 5, the model considers a moderate number of neighbours for classification, ensuring a stable yet responsive approach to identifying patterns in the dataset. The k-d tree algorithm efficiently organizes data points in a multidimensional space, enhancing the speed of nearest neighbour search operations [42]. This is particularly beneficial when dealing with a moderate-sized dataset and a specific choice of K (such as 5). The k-d tree helps in quickly identifying the closest neighbours, contributing to faster and more accurate predictions. Finally, the optimal combination for the decision tree hyperparameters, specifically max_depth = 10 and criterion = gini. With max_depth = 10, complex relationships in the data can be observed by the decision tree without becoming overly intricate. This value strikes a balance, allowing the model to generalize well to unseen data while avoiding unnecessary complexity. The criterion parameter determines the measure of impurity used to evaluate the quality of a split. Gini impurity is effective for classification tasks, and with this choice, the decision tree seeks to minimize the Gini impurity at each node [47]. By selecting the split that minimizes impurity, the model ensures that the resulting nodes are more homogenous in terms of class labels, contributing to clearer decision boundaries. Our findings suggest that each classification model demonstrated outstanding performance when optimized with its most effective hyperparameter combination.

Configuration for training and testing phases

For evaluating the ML models, a nested cross-validation framework (Fig 1) was adopted. In the implemented methodology the outer loop follows the "Leave-One-Out Cross-Validation" (LOOCV) approach, where in each iteration, one patient is withheld for testing, while the remaining (n-1) patients are used for training. This process is then repeated for all n patients in the dataset. LOOCV is advantageous as it maximizes dataset utilization, provides an unbiased evaluation, offers high variability insights, suits small datasets, tests robustness, ensures consistent performance estimation, is applicable to imbalanced datasets, and maintains simplicity in its implementation.

Within the outer loop, there is an inner loop that utilizes a 5-fold cross-validation strategy for hyperparameter tuning. In this inner loop, the (n-1) patients from the training set are further divided into five subsets, and the model is trained and validated across these subsets iteratively. This helps optimize the hyperparameters of the model to enhance its performance.

After the inner loop completes, the model with tuned hyperparameters is tested on the patient left out in the outer loop. This entire process is repeated for each patient in the dataset (n times), and the performance metrics (such as accuracy, precision, recall, etc.) are recorded for each iteration. Finally, the average of these metrics is calculated to provide a comprehensive and representative assessment of the model’s performance across all patients in the dataset. This approach ensures robust evaluation, hyperparameter tuning, and reliable estimation of the model’s generalization capabilities.

Grid search is a specific method within the broader concept of Cartesian product, it introduces practical constraints to make hyperparameter tuning flexible, less computationally expensive, and feasible in real-world scenarios. In our study, grid search technology is included into the nested loop approach to efficiently optimize the model’s hyperparameters. Grid search covers a range of combinations of hyperparameter values by methodically examining a predetermined hyperparameter grid. The model’s performance is assessed based on several hyperparameter combinations at each iteration of the nested loops. This makes it possible to conduct a thorough search for the ideal set of hyperparameters that maximizes the accuracy and generalizability of the model.

Analysis of the prediction confusion matrix, receiver operating characteristic (ROC) curves, and the associated area under the ROC (AUROC) were calculated to assess the performance of the classification models. Additional measures for performance evaluation, such as F1-score, accuracy, precision, sensitivity, and specificity were performed. In our study, we employed a straightforward averaging approach as the model aggregation technique. Specifically, we computed the average performance metrics across all 229 models trained during the LOOCV process. This method enabled us to obtain an aggregated view of the models’ performance across the entire dataset, rather than focusing solely on individual instances.

Furthermore, in the tree classification model, the calculation of feature importance is a crucial aspect of understanding the contribution of the feature to the predictive capability of the model. Feature importance is typically measured by assessing how much each feature reduces the impurity in the model. During the construction of decision trees, features are selected at every node to divide the data based on the chosen criterion (e.g., entropy or Gini impurity). The reduction in impurity achieved by each feature is recorded, and this process is repeated for all nodes in the tree. The more a feature contributes to reducing impurity across the entire tree, the more important it is considered.

In the context of nested cross-validation (e.g., LOOCV and 5-fold cross-validation), feature importance is calculated iteratively over multiple folds. This ensures that the estimation of feature importance remains robust and is not overly influenced by the specific characteristics of a single training-test split. Understanding feature importance provides insights into which features have the most significant impact on the potential of the model to differentiate between different classes (e.g., HFpEF, HFmEF, HFrEF). It aids in feature selection, model interpretation, and potentially highlights key factors influencing the classification accuracy.

Results

The Intel Core i5-1135G7 (11th Gen) processor with a single GeForce NVIDIA MX350 (2 GB) of RAM was utilized for hourly model validation and training. Because the nested loop strategy was used, each model took 10–20 minutes for the training and testing phases. Table 3 displays the ideal hyperparameter combinations for each model after it has been tuned.

thumbnail
Table 3. Classification models and hyperparameters tuning.

https://doi.org/10.1371/journal.pone.0302639.t003

Table 4 presents a summary of the extracted ECG characteristics (TP, QTc, ST-T, QRS, Mean-Entropy, and Mean-Infrequency) for each of the three groups (HFpEF, HFmEF, and HFrEF) along with statistical comparisons. Regarding the statistical analysis, given the nature of ECG data, which tends to be non-normally distributed, we conducted a test for normality. Specifically, we used the Shapiro-Wilk test to assess the distribution of the data. The results indicated non-normal distributions, justifying the choice of the Kruskal-Wallis test, a non-parametric alternative suitable for such circumstances. The Kruskal-Wallis is used as non-parametric test to assess whether there are statistically significant differences in the ECG features between the three HF classes. Then the post hoc test (pairwise Mann-Whitney U tests) is performed to identify which specific groups differ from each other. The Kruskal-Wallis test and Mann-Whitney U tests are robust to variations in sample sizes and do not assume equal variances. This characteristic makes it suitable for our dataset, which includes different numbers of patients in each HF class (HFpEF: 105, HFmEF: 60, HFrEF: 64).

thumbnail
Table 4. ECG features for the three groups (HFpEF, HFmEF, and HFrEF).

Statistically significant difference of p-values are indicated in bold.

https://doi.org/10.1371/journal.pone.0302639.t004

All models were trained using these features. The average accuracy scores for the three HF categories are displayed in Tables 5, 6 and fluctuate throughout a 24-hour period and across various classification models using the optimal combination of hyperparameters. In these tables, each row represents a distinct regression model with the optimal set of hyperparameters, and each column represents a particular point in the 24-hour cycle. In the context of the HFpEF, HFmEF, and HFrEF classification model, accuracy provides a comprehensive evaluation of how well the model performs in correctly categorizing patients into their respective heart failure categories. A higher accuracy value indicates a better overall performance of the model. The tables offer a comprehensive summary of the performance of various classification models throughout the 24-hour period. It facilitates a comparison of different models, highlighting their effectiveness in predicting the HF category at different times of the day.

thumbnail
Table 5. Average accuracy values from 00:00–12:00 h, using classification models with best hyperparameters.

https://doi.org/10.1371/journal.pone.0302639.t005

thumbnail
Table 6. Average accuracy values from 12:00–24:00 h, using classification models with best hyperparameters.

https://doi.org/10.1371/journal.pone.0302639.t006

The highest accuracy (accuracy % = 91.20) occurred between 10 pm to 11pm using the Tree classifier, where the maximum depth is 10, and the criterion for splitting is set to Gini. While the KNN classifier led to an accuracy percentage of 90.90 at this time interval, with five neighbours and kd_tree function. The NN classifier’s best performance occurs in the morning interval (8–9 am) with an accuracy percentage of 84.30, where one hidden layer with 100 hidden units, and ReLu activation function with learning rate of 0.01 are set. The early morning time (12–1 am) results in the highest accuracy using the SVM model with a linear function and C value of 10. Furthermore, utilizing the four classification models, Fig 2 shows the accuracy distribution over a 24-hour period. In the latter, the decision tree model surpasses the other models in the three-time intervals; the time interval containing the highest attainable accuracy values is marked with red circle.

thumbnail
Fig 2. Accuracy per hour utilizing the best hyperparameters combination for the four classification models.

The hours of occurrence of the highest values are shown in red circles. Where QTc and QRS are found to be the most important features for predicting HFpEF, HFmEF, and HFrEF categories.

https://doi.org/10.1371/journal.pone.0302639.g002

Furthermore, Fig 3 shows the confusion matrix representing the classification model’s predictions for each class at 00:00–01:00 h, 08:00–09:00 h, and 22:00–23:00 h with the best results. The decision tree yielded the highest overall accuracy of 91.2% at 10 pm, followed by the KNN model with an overall accuracy of 90.9%. Subsequently, the SVM and NN models achieved overall accuracies of 87.8% at 12 am, and 84.3% at 8 am, respectively. To elaborate more on the prediction models, Figs 48 show the ROC curves and the evaluation metrics for each LVEF category, respectively. An average AUROC of 0.98 distributed as 0.9805 for HFpEF, 0.9712 for HFmEF, and 0.9883 for HFrEF resulted in the tree model. Whereas the average AUROC were 0.9917, 0.971 and 0.938 for the KNN, SVM, and NN models, respectively. Moreover, the models demonstrated elevated levels of accuracy, precision, specificity, sensitivity, and F1-score (e.g., Tree model surpassing 88%, other models surpassing 0.79%).

thumbnail
Fig 3. Confusion matrix of the predicted and true classes for hours (22:00–23:00, 00:00–01:00, 08:00–09:00) using the Tree, KNN, SVM, and NN respectively.

https://doi.org/10.1371/journal.pone.0302639.g003

thumbnail
Fig 4. Each LVEF category’s receiver operating characteristics (ROC) curve and the associated area under the ROC curves for hours (22:00–23:00, 00:00–01:00, 08:00–09:00) using the Tree, KNN, SVM, and NN respectively.

https://doi.org/10.1371/journal.pone.0302639.g004

thumbnail
Fig 5. Evaluation metrics for each LVEF category, using Tree at 22:00–23:00 h.

https://doi.org/10.1371/journal.pone.0302639.g005

thumbnail
Fig 6. Evaluation metrics for each LVEF category, using KNN at 22:00–23:00 h.

https://doi.org/10.1371/journal.pone.0302639.g006

thumbnail
Fig 7. Evaluation metrics for each LVEF category, using SVM at 00:00–01:00 h.

https://doi.org/10.1371/journal.pone.0302639.g007

thumbnail
Fig 8. Evaluation metrics for each LVEF category, using NN at 08:00–09:00 h.

https://doi.org/10.1371/journal.pone.0302639.g008

Furthermore, we used the best classification model to assess the feature relevance in this study. The findings are displayed in Fig 9, which emphasizes how important each feature is in relation to how well the model predicts the HF class. Based on their impact on the target variable, the feature importance values have been computed, offering insightful information about the primary factors influencing the LVEF classification. By identifying the most significant features, this study facilitates a more thorough comprehension of the underlying variables affecting the classification model’s result. The thorough assessment of feature relevance facilitates understanding the behaviour of the model and supports well-informed decision-making for our research application.

thumbnail
Fig 9. Feature importance over the tree classification model (10:00–11:00pm).

This study used importance scores for the ECG features (QTc, QRS, ST-T, TP, Entropy, and Instant Frequency) to classify LVEF levels in the three HF categories. Indicating that QTc is the most important feature for predicting the HFpEF, HFmEF, and HFrEF.

https://doi.org/10.1371/journal.pone.0302639.g009

Moreover, the overall performance of each model is investigated and reported in Table 7. This table provides a comprehensive view of the models performance when considering completely random hour of ECG tracings rather than specific hours.

thumbnail
Table 7. Overall performance of each model considering completely random hour of ECG tracings.

https://doi.org/10.1371/journal.pone.0302639.t007

Deeper analysis was done to the relationships and patterns in the employed ECG characteristics, depicted from the pair plot of the six ECG features for an arbitrary selected hour (13:00–14:00) in Fig 10. The pair plot provides a comprehensive view of the interactions between the chosen ECG features, offering insights into potential correlations, trends, and variations. The diagonal plots, represent the univariate distribution of each feature, where QTc and QRS resulted in clearer HFpEF, HFmEF, and HFrEF distribution, respectively. In addition, a noteworthy correlation was identified, particularly between the QTc-QRS and QTc-STT characteristics. This observed relationship signifies a connection between the QTc interval, which reflects the duration of ventricular depolarization and repolarization, and the QRS complex, representing the ventricles’ electrical activation and mechanical contraction. The QTc-QRS correlation suggests that alterations in ventricular conduction, as indicated by QRS duration, may coincide with changes in the duration of ventricular repolarization, represented by the QTc interval.

thumbnail
Fig 10. Pair plot matrix of the ECG characteristics and the LVEF categories.

https://doi.org/10.1371/journal.pone.0302639.g010

Similarly, the significant correlation between QTc-STT characteristics highlights how the QTc interval and the STT interval are related. The STT interval is closely related to T-wave morphology, and T-wave abnormalities, such as inversion or flattening, are commonly observed in heart failure patients. Therefore, the QTc-STT correlation implies that variations in the QTc interval may align with changes in the STT interval, providing insights into myocardial ischemia or injury reflected in T-wave patterns.

Overall, these significant correlations contribute to a comprehensive understanding of the interplay among key electrocardiographic parameters, shedding light on potential links between ventricular conduction, repolarization dynamics, and T-wave morphology. This nuanced insight has implications for deciphering the complex physiological mechanisms underlying cardiac performance and dysfunction in the context of HF. This valuable information gained about the interplay between the six ECG features, contributing to a nuanced and data-driven understanding of the underlying physiological and pathological phenomena for predicting the HF patients with distinct LVEF levels.

Each of the 229 models generated, including those using decision tree methods, represents a unique iteration of the model trained on different subsets of the data, as part of the LOOCV process. These models indeed exhibit variability due to the diverse subsets of data used for training, resulting in variations in cutoffs and variable selection at different nodes.

However, it is important to clarify that we did not combine these 229 models into a singular composite decision tree. Instead, our approach involves aggregating the predictions made by each individual model to obtain a final prediction. Remarkably, these aggregated predictions demonstrate high accuracy on average.

To provide a comprehensive understanding of this variability, Fig 11 illustrates the variation in accuracy across the 229 iterations, as well as the variations in feature importance for each feature across the iterations. Notably, the results indicate minimal variability, with standard deviations of [0.021 0.015 0.012 0.016 0.007 0.005], for QTc, QRS, ST-T, TP, Entropy, and InsFrequency, respectively. These small standard deviations highlight the consistency observed across the 229 iterations for each method employed.

thumbnail
Fig 11. Performance variations across the 229 iterations using the tree method.

https://doi.org/10.1371/journal.pone.0302639.g011

Discussion

This study offers insightful information about the significance of using ECG characteristics to classify heart failure patients according on their LVEF values into HFpEF, HFmEF, and HFrEF groups. As well, the narrower categorization, as outlined in the guidelines from the ASE/EACVI, underscores that even a slight reduction in LVEF can influence heart rhythm and lead to changes in the patient’s overall clinical condition. The study determines the importance of particular ECG patterns in correctly identifying HF categories over the course of a 24-hour examination through a thorough analysis. Utilizing classification analysis, the research aims to enhance precision for optimal predictive performance. Through the identification of ideal hyperparameters and model configurations, the investigation effectively attains elevated accuracy across all four classification scenarios during different phases of the heart’s circadian rhythm. These results showcase the capability of incorporating ECG features into ML algorithms, indicating their potential as valuable tools to aid in screening for heart failure diagnosis and treatment. The temporal characteristics of ventricular systole and diastole are closely reflected in ECG parameters like QRS duration, T-wave abnormalities, and ST segment alterations. Similarly, the QTc interval, representing ventricular repolarization, intricately mirrors the duration needed for myocardial cells to return to their resting state after depolarization. The prediction of LVEF category, which indicates the effectiveness of ventricular contraction, is inherently connected to the temporal aspects of cardiac repolarization as indicated by the QTc interval. Likewise, the QRS duration signifies the transmission of electrical impulses during ventricular depolarization, intricately linked to mechanical processes. Alterations in QRS duration may indicate changes in ventricular conduction, impacting the synchronization of contraction and subsequently influencing LVEF. By leveraging the electrophysiological details embedded in ECG features, the models take advantage of the profound relationship between electrical signaling and mechanical performance. This collaboration provides a more comprehensive insight into cardiac function, enabling the models to adeptly categorize HF patients based on their LVEF levels into HFpEF, HFmEF, and HFrEF groups with enhanced accuracy. This precision stems from the intricate interplay between electrophysiological dynamics and mechanical behavior.

In contrast to prior studies (Table 8), Bi-Directional Long Short-Term Memory (BiLSTM) classifier was employed to categorize LVEF groups of CAD patients applying swarm decomposition components on their heart rate variability. The corresponding oscillatory four bands components (HRV-OCs) were derived from 24-hour ECG recordings of 271 American cohorts [48]. The patients were categorized based on their LVEF as border line, normal, or at risk. The BiLSTM model exhibited varying performance throughout the 24 hours. The most accurate classification, with an average accuracy of 75.6%, was achieved during the time interval between 3 am and 4 am. The very-low frequency components of the HRV were employed for this interval, and achieved sensitivity levels of 76.7% in predicting the border line group. In a different investigation [49], three distinct models (e.g., Generalized Linear Model (GLM), SVM with RBF kernel, and CNN), were utilized to discern between HF patients categorized into three specific groups. The study utilized clinical profiles of 303 CAD patients, sourced from Greek and American patient databases. The objective was to compare the efficacy of the three models in classifying HF patients into HFpEF, HFmEF, and HFrEF in accordance with the ASE/EACVI guidelines. Following thorough evaluation, it was noted that the CNN model outperformed the other methods, achieving an overall accuracy of 90.1%, whereas the resultant overall accuracy was 84.14% and 88.45% using GLM and SVM, respectively.

thumbnail
Table 8. Summary of the studies for LVEF classification in preserved, midrange, and reduced HF patients.

Bold classifier indicates the best performance.

https://doi.org/10.1371/journal.pone.0302639.t008

The present study surpasses the performance of previous works [48, 49] in the literature for classifying HF patients into HFpEF, HFmEF, and HFrEF from ECG features only. The results of this investigation reveal that the optimal performance is achieved during the time interval between 10 pm and 11 pm, using a tree-based model. This model exhibits an impressive overall accuracy of 90.2%, and higher precision levels in HFrEF prediction with 89.2%, surpassing the KNN, SVM, and NN performance metrics.

Clinical relevance and ECG features significance

ECG characteristics derived from continuous ambulatory Holter monitoring have proven to be valuable indicators for both total mortality and the advancement of heart failure. This ongoing monitoring method provides distinctive perspectives into a patient’s cardiac well-being, enabling a thorough assessment of heart rhythm and electrical activity over an extended duration. Even when considering other recognized risk factors (e.g., age, gender, and comorbidities), the data obtained from Holter monitoring contributes supplementary and significant prognostic details. Nevertheless, LVEF categorization in HF patients on an hourly basis, using ECG features, can provide valuable observations into the temporal trends and variations in cardiac function. The analysis of LVEF levels hour-by-hour aimed to explore potential variations in model performance over time rather than suggesting a definitive prediction at an hourly resolution. The variability observed in accuracy reflects the dynamic nature of the data, and our goal was to assess how well the models adapt to different segments of the ECG tracings. This insight into temporal variations becomes crucial for adapting treatment plans or interventions according to the patient’s circadian rhythm and physiological shifts. This study showcases exceptional performance in distinguishing LVEF levels, particularly during the evening (22–23) and early morning hours (12 am-1 and 8–9). Moreover, these specific hourly intervals correspond to previously documented high-risk periods associated with elevated mortality and incidences of myocardial infarctions in the early morning and evening hours [5052].

Additionally, with the application of the most efficient classification model, we conducted an assessment of feature significance in this investigation. The findings showed that, in decreasing order of significance, QTc, QRS, ST, and TP are the most important characteristics affecting the classification of LVEF in patients with heart failure. These distinct ECG parameters exerted a substantial impact on the target variable, offering valuable insights into characterizing cardiac function and underscoring their potential as pivotal clinical indicators for the evaluation of HF patients. The significance of QTc as the foremost feature can be ascribed to several critical factors [5356]. The QTc interval indicates the timeframe of ventricular repolarization and depolarization, encompassing the electrical conduction duration within the heart. In individuals with heart failure (HF), disruptions in electrical conduction often occur as a result of ventricular remodeling and shifts in ion channel kinetics. Extended QTc intervals may indicate delayed repolarization, a factor associated with compromised ventricular health involving changes in ventricular size, shape, and function, leading to a reduction in LVEF. Patients with HF face an elevated risk of arrhythmias, and the prolongation of QTc is a recognized risk factor for severe ventricular arrhythmias. Irregular QTc intervals indicate the presence of an arrhythmogenic substrate and can impact LVEF by potentially triggering life-threatening arrhythmias that can disrupt cardiac function. Moreover, the QTc interval is influenced by autonomic nervous system activity, particularly the inputs from the parasympathetic and sympathetic systems to the heart. HF patients commonly experience altered autonomic regulation, and QTc prolongation may be associated with autonomic dysfunction, thereby influencing cardiac function and LVEF. Certain medications frequently prescribed for HF management have the potential to influence the QTc interval. The QTc-prolonging impact of specific medications may underscore the significance of this feature in the model, as the consideration of medication usage is a crucial factor in distinguishing LVEF.

Many studies have demonstrated that QRS duration serves as a prognostic indicator in HF patients [5759]. The QRS complex represents the electrical activation and subsequent mechanical contraction of the ventricles. In HF patients, mechanical desynchrony is a prevalent occurrence, characterized by uncoordinated contractions in different ventricular regions. Prolonged QRS duration may signal the presence of bundle branch blocks (BBBs), indicating conduction abnormalities that can impact ventricular function and contribute to a reduction in LVEF [60]. Additionally, for individuals undergoing cardiac resynchronization therapy (CRT), QRS duration stands as a crucial parameter for assessing eligibility for CRT implantation. CRT effectively enhances mechanical synchrony in HF patients with electrical desynchrony and prolonged QRS duration. By incorporating QRS duration into HFpEF, HFmEF, and HFrEF diagnosis, clinicians can obtain insights into potential CRT suitability and tailor treatment strategies for improved patient outcomes.

Furthermore, the STT interval exhibits a close relationship with T-wave morphology. T-wave abnormalities, including inversion or flattening, are frequently observed in individuals with heart failure [6164]. These alterations in T-wave patterns can provide valuable insights into myocardial ischemia or injury and contribute to the accuracy of differentiating LVEF levels. Irregularities in the TP interval may indicate anomalies in repolarization, which can be linked to compromised cardiac function in HF patients. Such deviations have been correlated with an elevated risk of arrhythmias, such as ventricular fibrillation and ventricular tachycardia. Numerous studies have established a connection between abnormal TP intervals and a decline in LVEF among HF patients. Prolonged TP intervals have been associated with impaired ventricular function, while shortened TP intervals may signify myocardial remodeling and potential deterioration of cardiac performance.

The emphasis on these particular features, guided by their influence on the classification of HFpEF, HFmEF, and HFrEF, underscores the model’s proficiency in identifying significant patterns and connections within diverse ECG parameters. This comprehension is crucial for advancing our insight into the fundamental physiological mechanisms governing both cardiac well-being and dysfunction.

Limitations and future work

While ML-based models have demonstrated efficacy in predicting LVEF, our study acknowledges several limitations inherent in these models. It’s important to acknowledge the limitations of any single metric in representing the entirety of heart failure classification. The complexity of heart failure classification requires a comprehensive consideration of multiple parameters and diagnostic measures for a more accurate and reliable assessment. Our study emphasizes the need for a holistic approach to ensure robust and clinically meaningful categorization of heart failure patients. The datasets do not include recorded or available information regarding the effects of specific drugs such as amiodarone, ranolazine, etc., on the QT interval. As a result, we were unable to control for the potential impact of these medications on QT intervals in our analysis. Initially, our focus centered on utilizing six features extracted from the circadian ECG for heart failure (HF) categorization. However, there is a necessity for additional exploration and scrutiny of additional features, including but not limited to QRS area, amplitude of peak changes, and their correlation with EDR (ECG-derived respiration). This broader investigation is crucial for obtaining more comprehensive insights into the influence of these features on LVEF predictions. Moreover, although the present investigation employed a dataset encompassing patients from both American and Greek populations, it is imperative to subject the trained models to additional testing on more diverse patient groups to ensure a wider applicability and generalization of their performance. The current patient cohort exhibits a notably higher representation of male participants compared to females. Subsequent studies could undertake further examinations of LVEF categorization on a more uniformly dispersed data, balancing the representation of male and female subjects. In future investigations, the classification models formulated in this study might hold promise for adaptation or extension to predict diverse parameters associated with heart health, such as myocardial ischemia. However, their suitability for underlying conditions that may contribute to heart failure necessitates further research and validation.

While our study delves into patterns within a single 24-hour Holter trace per patient, we recognize the inherent variability in circadian rhythms among individuals. Ideally, multiple traces over different days would offer a more comprehensive view. However, practical constraints limit our focus to single-trace data. Additionally, the datasets did not include information about the sleep apnea status of the patients, this prevents us from making specific observations or drawing conclusions about the influence of obstructive sleep apnea on the studied parameters.

Conclusion

This investigation underscores the promise of utilizing ECG features derived from 24-hour recordings as an efficient complementary tool to the established echocardiography gold standard for categorizing individuals with heart failure in one of the three LVEF groups. From a ML standpoint, the devised approach provides valuable insights into identifying ECG patterns conducive to precisely categorizing LVEF within distinct HF categories, namely preserved, midrange, and reduced. Moreover, the envisioned research seeks to broaden the scope of LVEF assessment to communities facing limitations in accessing the necessary instruments, whether due to economic constraints or a shortage of clinical expertise. The prospective findings of this investigation could assist in the development of a model that can predict the HF phenotype or monitoring its evolution during therapy. Consequently, this proposed approach could function as a versatile instrument for exploring the pathophysiology of the disease and objectively assessing therapeutic strategies in potential HF patients. Notably, the suggested ML model is characterized by simplicity, efficiency, and cost-effectiveness, allowing for continuous cardiac analysis and serving as a viable adjunct to more intricate gold standard techniques. As research progresses, the utilization of more extensive datasets and the incorporation of deep learning techniques will facilitate a comparison of the proposed model’s performance against other methodologies. In essence, this study contributes to the advancement of ECG-based HF classification and its potential applicability, particularly in resource-constrained settings.

Acknowledgments

The authors would like to acknowledge Mohanad Alkhodari from Cardiovascular Clinical Research Facility, Radcliffe Department of Medicine, University of Oxford, Oxford, United Kingdom, for his help in collecting and organizing the data.

References

  1. 1. Groenewegen A., Rutten F. H., Mosterd A., and Hoes A. W., “Epidemiology of heart failure,” European Journal of Heart Failure, vol. 22, no. 8, pp. 1342–1356, 2020, pmid:32483830
  2. 2. Ziaeian B. and Fonarow G. C., “Epidemiology and aetiology of heart failure,” Nat Rev Cardiol, vol. 13, no. 6, Art. no. 6, Jun. 2016, pmid:26935038
  3. 3. Bleumink G. S. et al., “Quantifying the heart failure epidemic: prevalence, incidence rate, lifetime risk and prognosis of heart failure: The Rotterdam Study,” European Heart Journal, vol. 25, no. 18, pp. 1614–1619, Sep. 2004, pmid:15351160
  4. 4. Chan Y.-K. et al., “Current and projected burden of heart failure in the Australian adult population: a substantive but still ill-defined major health issue,” BMC Health Serv Res, vol. 16, no. 1, p. 501, Sep. 2016, pmid:27654659
  5. 5. Curtis J. P. et al., “The association of left ventricular ejection fraction, mortality, and cause of death in stable outpatients with heart failure,” J Am Coll Cardiol, vol. 42, no. 4, pp. 736–742, Aug. 2003, pmid:12932612
  6. 6. J. Rodriguez, A. Voss, P. Caminal, A. Bayés-Genis, and B. F. Giraldo, “Characterization and classification of patients with different levels of cardiac death risk by using Poincaré plot analysis,” in 2017 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), IEEE, 2017, pp. 1332–1335. Accessed: Nov. 09, 2023. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/8037078/?casa_token=oQA8wKGRkJEAAAAA:cA8V6ATek_Ob_uLmSai_v973l-7jrXF-9D910sa7hIOlnT1sZLac8Y1ieovYZkb2hMweqApLiA
  7. 7. Hajouli S. and Ludhwani D., “Heart Failure and Ejection Fraction,” StatPearls, Dec. 2022, [Online]. Available: https://www.ncbi.nlm.nih.gov/books/NBK553115/
  8. 8. Pfeffer M. A., Shah A. M., and Borlaug B. A., “Heart Failure with Preserved Ejection Fraction in Perspective,” Circulation Research, vol. 124, no. 11, pp. 1598–1617, May 2019, pmid:31120821
  9. 9. Tsao C. W. et al., “Prognosis of Adults With Borderline Left Ventricular Ejection Fraction,” JACC Heart Fail, vol. 4, no. 6, pp. 502–510, Jun. 2016, pmid:27256754
  10. 10. Fonarow G. C. and Hsu J. J., “Left Ventricular Ejection Fraction: What Is ‘Normal’?,” JACC Heart Fail, vol. 4, no. 6, pp. 511–513, Jun. 2016, pmid:27256755
  11. 11. Yancy C. W. et al., “2017 ACC/AHA/HFSA Focused Update of the 2013 ACCF/AHA Guideline for the Management of Heart Failure: A Report of the American College of Cardiology/American Heart Association Task Force on Clinical Practice Guidelines and the Heart Failure Society of America,” J Am Coll Cardiol, vol. 70, no. 6, pp. 776–803, Aug. 2017, pmid:28461007
  12. 12. Ponikowski P. et al., “2016 ESC Guidelines for the diagnosis and treatment of acute and chronic heart failure,” Kardiologia Polska (Polish Heart Journal), vol. 74, no. 10, pp. 1037–1147, 2016.
  13. 13. Tsutsui H. et al., “JCS 2017/JHFS 2017 guideline on diagnosis and treatment of acute and chronic heart failure―digest version―,” Circulation Journal, vol. 83, no. 10, pp. 2084–2184, 2019.
  14. 14. Ramani G. V., Uber P. A., and Mehra M. R., “Chronic heart failure: contemporary diagnosis and management,” Mayo Clin Proc, vol. 85, no. 2, pp. 180–195, Feb. 2010, pmid:20118395
  15. 15. Singh R. M., Singh B. M., and Mehta J. L., “Role of cardiac CTA in estimating left ventricular volumes and ejection fraction,” World Journal of Radiology, vol. 6, no. 9, pp. 669–669, Sep. 2014, pmid:25276310
  16. 16. Demarchi A. et al., “Long-term outcome of catheter ablation for atrial fibrillation in patients with severe left atrial enlargement and reduced left ventricular ejection fraction,” EP Europace, vol. 23, no. 11, pp. 1751–1756, 2021. pmid:34534277
  17. 17. Nordstrom J., Kvernby S., Kero T., Sorensen J., Harms H. J., and Lubberink M., “Left-ventricular volumes and ejection fraction from cardiac ECG-gated O-15-water positron emission tomography compared to cardiac magnetic resonance imaging using simultaneous hybrid PET/MR,” JOURNAL OF NUCLEAR CARDIOLOGY, 2022.
  18. 18. Hundley W. G. et al., “Society for Cardiovascular Magnetic Resonance (SCMR) guidelines for reporting cardiovascular magnetic resonance examinations,” Journal of Cardiovascular Magnetic Resonance, vol. 24, no. 1, pp. 29–29, 2022, pmid:35484555
  19. 19. Stassen J. et al., “Incremental value of left ventricular global longitudinal strain in moderate aortic stenosis and reduced left ventricular ejection fraction,” International Journal of Cardiology, vol. 373, pp. 101–106, 2023, pmid:36427607
  20. 20. Lih O. S. et al., “Comprehensive electrocardiographic diagnosis based on deep learning,” Artificial Intelligence in Medicine, vol. 103, p. 101789, Mar. 2020, pmid:32143796
  21. 21. Al Younis S. M., Hadjileontiadis L. J., Stefanini C., and Khandoker A. H., “Non-invasive technologies for heart failure, systolic and diastolic dysfunction modeling: a scoping review,” Frontiers in Bioengineering and Biotechnology, vol. 11, 2023, pmid:37920244
  22. 22. Kiranyaz S., Ince T., and Gabbouj M., “Real-Time Patient-Specific ECG Classification by 1-D Convolutional Neural Networks,” IEEE Transactions on Biomedical Engineering, vol. 63, no. 3, pp. 664–675, Mar. 2016, pmid:26285054
  23. 23. Acharya U. R. et al., “A deep convolutional neural network model to classify heartbeats,” Computers in Biology and Medicine, vol. 89, pp. 389–396, Oct. 2017, pmid:28869899
  24. 24. Liu W. et al., “Real-Time Multilead Convolutional Neural Network for Myocardial Infarction Detection,” IEEE Journal of Biomedical and Health Informatics, vol. 22, no. 5, pp. 1434–1444, Sep. 2018, pmid:29990164
  25. 25. Andreotti F., Carr O., Pimentel M. A. F., Mahdi A., and De Vos M., “Comparing feature-based classifiers and convolutional neural networks to detect arrhythmia from short segments of ECG,” Computing in Cardiology, vol. 44, pp. 1–4, 2017,
  26. 26. Acharya U. R. et al., “Deep convolutional neural network for the automated diagnosis of congestive heart failure using ECG signals,” Appl Intell, vol. 49, no. 1, pp. 16–27, Jan. 2019,
  27. 27. “Automated diagnosis of congestive heart failure using dual tree complex wavelet transform and statistical features extracted from 2 s of ECG signals,” Computers in Biology and Medicine, vol. 83, pp. 48–58, Apr. 2017, pmid:28231511
  28. 28. “University of Rochester Medical Center. Telemetric and Holter ECG Warehouse (THEW). Available online at: http://thew-project.org/databases. htm (accessed December 24, 2019)”.
  29. 29. Burattini L. and Burattini R., “Characterization of repolarization alternans in the coronary artery disease,” in Coronary Artery Diseases, IntechOpen, 2012. Accessed: Nov. 10, 2023. [Online]. Available: https://books.google.com/books?hl=en&lr=&id=x92dDwAAQBAJ&oi=fnd&pg=PA91&dq=Burattini+L,+Burattini+R.+Characterization+of+Repolarization+Alternans+in+the+Coronary+Artery+Disease.+In+Coronary+Artery+Diseases.+IntechOpen.+(2012).+doi:+10.5772/28766.+&ots=Rv7BBOnpaX&sig=3KMQHipoWxns3aWhSRcSNk6HYQY
  30. 30. Gatzoulis K. A. et al., “Arrhythmic risk stratification in post-myocardial infarction patients with preserved ejection fraction: the PRESERVE EF study,” European Heart Journal, vol. 40, no. 35, pp. 2940–2949, Sep. 2019, pmid:31049557
  31. 31. Gatzoulis K. A. et al., “Post myocardial infarction risk stratification for sudden cardiac death in patients with preserved ejection fraction: PRESERVE-EF study design,” Hellenic J Cardiol, vol. 55, no. 5, pp. 361–368, Oct. 2014. pmid:25243434
  32. 32. “Saleem S., Khandoker A. H, Alkhodari M., Hadjileontiadis L. J. & Jelinek H. F. A two-step pre-processing tool to remove Gauss ian and ectopic noise for heart rate variability analysis. Sci. Rep. 12(1), 18396 (2022).”. pmid:36319659
  33. 33. Bazett H. C., “AN ANALYSIS OF THE TIME‐RELATIONS OF ELECTROCARDIOGRAMS.,” Noninvasive Electrocardiol, vol. 2, no. 2, pp. 177–194, Apr. 1997,
  34. 34. Christensen T. F., Randløv J., Kristensen L. E., Eldrup E., Hejlesen O. K., and Struijk J. J., “QT Measurement and Heart Rate Correction during Hypoglycemia: Is There a Bias?,” Cardiology Research and Practice, vol. 2010, p. e961290, Dec. 2010, pmid:21234404
  35. 35. Liu F. et al., “The Accuracy on the Common Pan-Tompkins Based QRS Detection Methods Through Low-Quality Electrocardiogram Database,” Journal of Medical Imaging and Health Informatics, vol. 7, no. 5, pp. 1039–1043, Sep. 2017,
  36. 36. “‘ECG SIGNAL PQRST PEAK DETECTION TOOLBOX’. https://www.mathworks.com/matlabcentral/fileexchange/73850-ecgsignal-pqrst-peak-detection-toolbox (accessed Nov. 01, 2022).”.
  37. 37. Gaudioso M., “A View of Lagrangian Relaxation and Its Applications,” 2020, pp. 579–617.
  38. 38. Awad M. and Khanna R., “Support Vector Machines for Classification,” in Efficient Learning Machines: Theories, Concepts, and Applications for Engineers and System Designers M. Awad and R. Khanna , Eds., Berkeley, CA: Apress, 2015, pp. 39–66. https://doi.org/10.1007/978-1-4302-5990-9_3
  39. 39. Rieck K. et al., “Support Vector Machines,” in Handbook of Computational Statistics: Concepts J. E. Gentle W. K. Härdle , and Mori Y, Eds., in Springer Handbooks of Computational Statistics., Berlin, Heidelberg: Springer, 2012, pp. 883–926. https://doi.org/10.1007/978-3-642-21551-3_30
  40. 40. Graupe D., Principles Of Artificial Neural Networks (3rd Edition). World Scientific, 2013.
  41. 41. Diaz G. I., Fokoue-Nkoutche A., Nannicini G., and Samulowitz H., “An effective algorithm for hyperparameter optimization of neural networks,” IBM Journal of Research and Development, vol. 61, no. 4/5, p. 9:1–9:11, Jul. 2017,
  42. 42. Guo G., Wang H., Bell D., Bi Y., and Greer K., “KNN Model-Based Approach in Classification,” in On The Move to Meaningful Internet Systems 2003: CoopIS DOA, and ODBASE R. Meersman Z. Tari , and Schmidt D. C., Eds., in Lecture Notes in Computer Science. Berlin, Heidelberg: Springer, 2003, pp. 986–996. https://doi.org/10.1007/978-3-540-39964-3_62
  43. 43. “Zuo: On kernel difference-weighted k-nearest neighbor…—Google Scholar.” Accessed: Nov. 11, 2023. [Online]. Available: https://scholar.google.com/scholar_lookup?title=On%20kernel%20difference-weighted%20k-nearest%20neighbor%20classification&publication_year=2008&author=W.%20Zuo&author=D.%20Zhang&author=K.%20Wang
  44. 44. Maimon O. Z. and Rokach L., Data Mining With Decision Trees: Theory And Applications (2nd Edition). World Scientific, 2014.
  45. 45. Zhang Y., “Support Vector Machine Classification Algorithm and Its Application,” in Information Computing and Applications, Liu C., Wang L, and Yang A., Eds., in Communications in Computer and Information Science. Berlin, Heidelberg: Springer, 2012, pp. 179–186. https://doi.org/10.1007/978-3-642-34041-3_27
  46. 46. Grossberg S., “Nonlinear neural networks: Principles, mechanisms, and architectures,” Neural Networks, vol. 1, no. 1, pp. 17–61, Jan. 1988,
  47. 47. SONG Y. and LU Y., “Decision tree methods: applications for classification and prediction,” Shanghai Arch Psychiatry, vol. 27, no. 2, pp. 130–135, Apr. 2015, pmid:26120265
  48. 48. Alkhodari M., Apostolidis G., Jelinek H. F., Hadjileontiadis L. J., and Khandoker A. H., “Prediction of LVEF using BiLSTM and Swarm Decomposition-based 24-h HRV Components,” in 2021 14th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), IEEE, 2021, pp. 1–5.
  49. 49. Alkhodari M. et al., “Deep Learning Predicts Heart Failure With Preserved, Mid-Range, and Reduced Left Ventricular Ejection Fraction From Patient Clinical Profiles,” Frontiers in Cardiovascular Medicine, vol. 8, pp. 755968–755968, Nov. 2021, pmid:34881307
  50. 50. Schwartz B. G., Mayeda G. S., Burstein S., Economides C., and Kloner R. A., “When and why do heart attacks occur? Cardiovascular triggers and their potential role,” Hospital practice (1995), vol. 38, no. 3, pp. 144–152, 2010, pmid:20890064
  51. 51. Shea S. A., Hilton M. F., and Muller J. E., “Day/Night Pattern of Myocardial Infarction and Sudden Cardiac Death,” in Blood Pressure Monitoring in Cardiovascular Medicine and Therapeutics, Totowa, NJ: Humana Press, pp. 253–291. https://doi.org/10.1007/978-1-59259-978-3_11
  52. 52. Seneviratna A. et al., “Circadian Dependence of Infarct Size and Acute Heart Failure in ST Elevation Myocardial Infarction,” PloS one, vol. 10, no. 6, Jun. 2015, pmid:26039059
  53. 53. Ye M., Zhang J.-W., Liu J., Zhang M., Yao F.-J., and Cheng Y.-J., “Association Between Dynamic Change of QT Interval and Long-Term Cardiovascular Outcomes: A Prospective Cohort Study,” Frontiers in Cardiovascular Medicine, vol. 8, Nov. 2021, pmid:34917661
  54. 54. Santini M., “Biventricular pacing in patients with heart failure and intraventricular conduction delay: state of the art and perspectives. The European view,” European Heart Journal, vol. 23, no. 9, pp. 682–686, May 2002, pmid:11977989
  55. 55. Arsenos P. et al., “QT interval extracted from 30-minute short resting Holter ECG recordings predicts mortality in heart failure,” Journal of Electrocardiology, vol. 72, pp. 109–114, May 2022, pmid:35452874
  56. 56. G. Zemljic, M. Bunc, and B. Vrtovec, “Trimetazidine Shortens QTc Interval in Patients With Ischemic Heart Failure,” https://doi.org/10.1177/1074248409354601, vol. 15, no. 1, pp. 31–36, Dec. 2009, https://doi.org/10.1177/1074248409354601
  57. 57. Shenkman H. J. et al., “Congestive Heart Failure and QRS Duration: Establishing Prognosis Study,” Chest, vol. 122, no. 2, pp. 528–534, Aug. 2002, pmid:12171827
  58. 58. BLEEKER G. B. et al., “Relationship Between QRS Duration and Left Ventricular Dyssynchrony in Patients with End-Stage Heart Failure,” Journal of Cardiovascular Electrophysiology, vol. 15, no. 5, pp. 544–549, Apr. 2004, pmid:15149423
  59. 59. Iuliano S., Fisher S. G., Karasik P. E., Fletcher R. D., and Singh S. N., “QRS duration and mortality in patients with congestive heart failure,” American Heart Journal, vol. 143, no. 6, pp. 1085–1091, Jun. 2002, pmid:12075267
  60. 60. Padeletti L. et al., “Concordant Versus Discordant Left Bundle Branch Block in Heart Failure Patients: Novel Clinical Value of an Old Electrocardiographic Diagnosis,” Journal of Cardiac Failure, vol. 16, no. 4, pp. 320–326, Apr. 2010, pmid:20350699
  61. 61. P. H. Stone, “ST-Segment Analysis in Ambulatory ECG (AECG or Holter) Monitoring in Patients with Coronary Artery Disease: Clinical Significance and Analytic Techniques”.
  62. 62. Khot U. N. et al., “Prognostic Importance of Physical Examination for Heart Failure in Non–ST-Elevation Acute Coronary Syndromes: The Enduring Value of Killip Classification,” JAMA, vol. 290, no. 16, pp. 2174–2181, Oct. 2003, pmid:14570953
  63. 63. Liu Y. et al., “The long-term impact of a chronic total occlusion in a non-infarct-related artery on acute ST-segment elevation myocardial infarction after primary coronary intervention,” BMC Cardiovascular Disorders, vol. 21, no. 1, Dec. 2021, pmid:33516191
  64. 64. Younis S. M. A. et al., “Investigating automated regression models for estimating left ventricular ejection fraction levels in heart failure patients using circadian ECG features,” PLOS ONE, vol. 18, no. 12, p. e0295653, Dec. 2023, pmid:38079417