Related Experiment Video
Updated: Apr 26, 2026

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Real-time electrocardiogram P-QRS-T detection-delineation algorithm based on quality-supported analysis of
Atiyeh Karimipour1, Mohammad Reza Homaeinezhad1
1Department of Mechanical Engineering, K.N. Toosi University of Technology, Pardis Street, Molla-Sadra Avenue, Vanak. Sq., Tehran, Iran; Mechatronic Mechanisms Laboratory (MML), K.N. Toosi University of Technology, Pardis Street, Molla-Sadra Avenue, Vanak. Sq., Tehran, Iran.
Abstract:
The main objective of this study is to introduce a simple, low-latency, and accurate algorithm for real-time detection of P-QRS-T waves in the electrocardiogram (ECG) signal. In the proposed method, real-time signal preprocessing, which includes high frequency noise filtering and baseline wander reduction, is performed by applying discrete wavelet transform (DWT). A method based on signal first-order derivative and adaptive threshold adjustment is employed for real-time detection of the QRS complex. Moreover, detection and delineation of P- and T-waves are achieved by correlation analysis conducted between signal and their templates. Besides, signal quality is investigated online, and if the quality of the analysis window is unacceptable, then the algorithm will guess (estimate) the locations of P- and T-waves. The operating characteristics of the proposed algorithm are evaluated by its implementation to an artificially generated ECG signal whose quality is adjustable from the best (Quality, 100%) to the worst (Quality, ≤40%) cases based on the random-walk noise theory. The algorithm was applied to the MIT-BIH arrhythmia database, QT database, and Physionet/CinC challenge 2011competition database. The obtained results, which were based on the QT database, showed sensitivity and positive predictivity of Se=99.63% and P+=99.83%, Se=99.83% and P+=99.98%, and Se=99.74% and P+=99.89% for the detection of P-, QRS-, and T-waves, respectively, and the obtained results, which were based on the MIT-BIH arrhythmia database, showed Se=99.81% and P+=99.70% for the detection of the QRS complex. Moreover, it will be shown that the results of the proposed method are reliable for a minimum signal quality value of 70%. According to numerical assessments, 8-ms after the occurrence of R-wave, its location will be identified by the computer code of the proposed algorithm. This parameter is 198-ms and 177-ms for P- and T-waves, respectively.
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
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...
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....
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...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac...
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias

