Related Experiment Video
Updated: May 22, 2026

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
The Rlign algorithm for enhanced electrocardiogram analysis through heart rate-corrected ECG alignment for
Lucas Plagwitz1, Lucas Bickmann2, Michael Fujarski1
1Institute of Medical Informatics, University of Münster, Albert-Schweitzer-Campus 1/Building A11,Münster 48149, Germany.
Aims:
Electrocardiogram (ECG) recordings are fundamental for diagnosing cardiac conditions. Recent advances in automatic ECG analysis have been dominated by deep learning, particularly convolutional neural networks (CNNs). CNNs excel in processing high-dimensional signal data, where their ability to automatically extract complex features has enabled significant progress. However, while CNNs are powerful for biomedical signal analysis, their application to ECG data also carries disadvantages, such as the requirement for large annotated datasets and limited explainability. To address these challenges, we aim to reintroduce shallow learning methods, such as linear classifiers, by leveraging the cyclic nature of ECG signals.
Methods And Results:
We developed an adaptive transformation that restructures ECG signals into a fully structured format suitable for shallow learning algorithms. This method aligns R-peaks across all signals in a dataset and resamples the inter-QRS segments to match a predefined reference heart rate. The approach was systematically evaluated across tasks including classification, clustering, and explainability. Our transformation substantially improved the performance of shallow learning techniques. Compared with CNN approaches, shallow models trained on transformed ECGs achieved superior accuracy and interpretability in data-limited scenarios.
Conclusion:
We demonstrate that shallow machine learning methods, when combined with our alignment-based transformation, can reach CNN level performance in ECG analysis, especially under conditions of limited training data. This approach offers clear advantages in classification, clustering, and explainability and provides an accessible alternative to deep learning. To facilitate adoption and further research, we release a publicly available framework for ECG signal alignment at https://github.com/imi-ms/rlign.
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...
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...