Related Experiment Video
Updated: Jan 17, 2026

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
LSTM and reinforcement learning based delineation of electrocardiogram characteristic waves
Mohammed Abdenacer Merbouti1, Dalila Cherifi2
1Université de Bejaia, Faculté de Technologie, Département de Génie Electrique, 06000, Bejaia, Algeria; University of Boumerdes, Institute of Electrical and Electronic Engineering, Laboratory Signals and Systems, Algeria.
Background And Objective:
Fiducial points of electrocardiogram (ECG) characteristic waves (CWs) are essential for clinical interpretation, yet manual delineation is labor-intensive and automated methods often depend on pre-segmentation or are sensitive to sampling variability. A particularly challenging case is P-wave delineation in third-degree atrioventricular (AV) block, where atrial and ventricular rhythms dissociate, complicating segmentation.
Method:
This study proposes a two-stage framework combining a reinforcement learning (RL)-based peak analyzer with an LSTM classifier. The peak analyzer, tuned through RL exploration and exploitation ANNs, selects prominent peaks from normalized signals. These peaks are then classified by the LSTM into fiducial points (P, QRS, and T peaks and borders). The framework is designed to ensure robustness against predefined windows and signal resampling, address the challenge of P-wave delineation in third-degree AV block by incorporating rhythm- and morphology-related features, and improve computational efficiency through peak-based compression.
Results:
The peak analyzer reduced non-informative samples by 95.93 %, keeping delineation errors within 0-79 ms in time and 0-0.079 mV in amplitude. On intra-dataset tests, the best results were obtained on the CWD dataset, with sensitivities/PPVs of 96.85 %/95.97 % for peaks and 81.37 %/77.48 % for borders. On QTDB, performance reached 95.37 %/95.82 % for peaks and 80.66 %/79.97 % for borders, while on LUDB it achieved 85.04 %/87.04 % and 61.97 %/70.76 % respectively. In inter-dataset testing, training on LUDB and testing on QTDB yielded 80.84 %/84.06 % for peaks and 55.56 %/74.35 % for borders. Under Gaussian noise, performance degraded at 5 dB by -11.43 % sensitivity and -12.23 % PPV for peaks, and -11.99 %/-8.03 % for borders; at 10 dB, losses were -1.97 %/-8.24 % for peaks and -6.46 %/-7.47 % for borders.
Conclusion:
The framework achieved precise, real-time delineation with a runtime of 40.11 ms per beat and reduced time error compared to related works. While P-wave delineation in third-degree AV block remains unresolved, the method provides robust and efficient performance, with potential applications in clinical ECG analysis and peak-based signal compression.
Related Concept Videos
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...
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
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...
Brain Waves
Cardiac Action Potential
The cardiac action potential process involves a series of phases characterized by the movement of ions across the cardiac cell membranes, leading to the depolarization and repolarization of the cardiac myocytes.
Ionic Basis of Cardiac Action Potentials

