Related Experiment Video
Updated: Jun 7, 2026

BrainBeats as an Open-Source EEGLAB Plugin to Jointly Analyze EEG and Cardiovascular Signals
Published on: April 26, 2024
Electrocardiogram analysis using a combination of statistical, geometric, and nonlinear heart rate variability
1Department of Electronics, Microelectronics, Computer and Intelligent Systems, Faculty of Electrical Engineering and Computing, Unska 3, HR-10000 Zagreb, Croatia. alan.jovic@fer.hr
Insights
This study demonstrates that combining linear and nonlinear heart rate variability (HRV) features significantly improves electrocardiogram (ECG) classification accuracy. The Random Forest algorithm achieved over 99% accuracy for diagnosing cardiac conditions.
Area of Science:
- Cardiology
- Biomedical Engineering
- Machine Learning
Background:
- Electrocardiogram (ECG) classification using heart rate variability (HRV) analysis is crucial for diagnosing cardiac conditions.
- Current limitations exist in fully understanding HRV analysis for diagnosing diverse cardiac issues.
- Combining linear and nonlinear HRV features is proposed to enhance classification accuracy.
Purpose of the Study:
- To evaluate a proposed combination of linear and nonlinear HRV features for improved ECG classification.
- To compare the performance of various machine learning algorithms in HRV analysis.
- To determine the optimal analysis period for nonlinear HRV features.
Main Methods:
- Extracted 11 HRV features (e.g., SDNN, RMSSD, HTI, ApEn) from 5-minute R-R interval recordings of 100 patients across four conditions.
- Utilized seven machine learning algorithms (K-means, EM, C4.5, Bayesian Network, ANN, SVM, RF) for binary and four-class classification.
- Evaluated feature relevance using 1-Rule and C4.5, and assessed the impact of analysis period T on nonlinear features.
Main Results:
- Random Forest (RF) achieved the highest accuracy: 99.7% for two-class and 99.6% for four-class classification.
- Key features identified include HTI, pNN20, RMSSD, ApEn3, ApEn4, and SFI, with HTI being particularly effective.
- Using five periods for nonlinear feature extraction improved accuracy from 70% to 99%.
Conclusions:
- A combination of 11 linear and nonlinear HRV features, with nonlinear features extracted over five periods, yields high classification accuracy.
- The RF algorithm is highly effective for both binary and multiclass HRV classification.
- Further research should focus on identifying optimal feature sets for specific cardiac disorders.
Objective:
The paper addresses a common and recurring problem of electrocardiogram (ECG) classification based on heart rate variability (HRV) analysis. Current understanding of the limits of HRV analysis in diagnosing different cardiac conditions is not complete. Existing research suggests that a combination of carefully selected linear and nonlinear HRV features should significantly improve the accuracy for both binary and multiclass classification problems. The primary goal of this work is to evaluate a proposed combination of HRV features. Other explored objectives are the comparison of different machine learning algorithms in the HRV analysis and the inspection of the most suitable period T between two consecutively analyzed R-R intervals for nonlinear features.
Methods And Material:
We extracted 11 features from 5min of R-R interval recordings: SDNN, RMSSD, pNN20, HRV triangular index (HTI), spatial filling index (SFI), correlation dimension, central tendency measure (CTM), and four approximate entropy features (ApEn1-ApEn4). Analyzed heart conditions included normal heart rhythm, arrhythmia (any), supraventricular arrhythmia, and congestive heart failure. One hundred patient records from six online databases were analyzed, 25 for each condition. Feature vectors were extracted by a platform designed for this purpose, named ECG Chaos Extractor. The vectors were then analyzed by seven clustering and classification algorithms in the Weka system: K-means, expectation maximization (EM), C4.5 decision tree, Bayesian network, artificial neural network (ANN), support vector machines (SVM) and random forest (RF). Four-class and two-class (normal vs. abnormal) classification was performed. Relevance of particular features was evaluated using 1-Rule and C4.5 decision tree in the cases of individual features classification and classification with features' pairs.
Results:
Average total classification accuracy obtained for top three classification methods in the two classes' case was: RF 99.7%, ANN 99.1%, SVM 98.9%. In the four classes' case the best results were: RF 99.6%, Bayesian network 99.4%, SVM 98.4%. The best overall method was RF. C4.5 decision tree was successful in the construction of useful classification rules for the two classes' case. EM and K-means showed comparable clustering results: around 50% for the four classes' case and around 75% for the two classes' case. HTI, pNN20, RMSSD, ApEn3, ApEn4 and SFI were shown to be the most relevant features. HTI in particular appears in most of the top-ranked pairs of features and is the best analyzed feature. The choice of the period T for nonlinear features was shown to be arbitrary. However, a combination of five different periods significantly improved classification accuracy, from 70% for a single period up to 99% for five periods.
Conclusions:
Analysis shows that the proposed combination of 11 linear and nonlinear HRV features gives high classification accuracy when nonlinear features are extracted for five periods. The features' combination was thoroughly analyzed using several machine learning algorithms. In particular, RF algorithm proved to be highly efficient and accurate in both binary and multiclass classification of HRV records. Interpretable and useful rules were obtained with C4.5 decision tree. Further work in this area should elucidate which features should be extracted for the best classification results for specific types of cardiac disorders.
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and the T...
Correlation between ECG and Cardiac Cycle
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...
Electrocardiogram Fundamentals
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin to...
ECG Interpretation of Rhythms
Components of the Electrocardiogram
The primary components of a normal ECG waveform in Normal sinus rhythm(NSR) include the P wave, PR interval, QRS complex, ST segment, T wave, and occasionally a U wave.
ECG waveforms are divided by vertical and horizontal lines at standard intervals.
The horizontal axis measures time and rate, and the vertical axis measures amplitude or voltage. When...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac muscle...
Dysrhythmias V: Evaluating Dysrhythmias
