Related Experiment Video
Updated: Jan 18, 2026

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Multi-window temporal analysis for enhanced arrhythmia classification: leveraging long-range dependencies in
Tiezhi Wang1, Wilhelm Haverkamp2, Nils Strodthoff1
1AI4Health Department, Oldenburg University, Oldenburg, Germany.
Analyzing longer electrocardiogram (ECG) segments using the S4ECG deep learning model significantly improves arrhythmia detection accuracy and reduces false positives. This multi-window approach enhances diagnostic performance and generalization across different datasets.
Area of Science:
- Cardiology
- Artificial Intelligence
- Biomedical Engineering
Background:
- Electrocardiogram (ECG) analysis for arrhythmia classification faces challenges with high false positive rates and poor generalization across datasets.
- Conventional deep learning models often analyze short, isolated ECG segments (30 seconds), missing diagnostic features of arrhythmias like atrial fibrillation (AF) that manifest over longer durations.
Purpose of the Study:
- To introduce S4ECG, a novel deep learning architecture utilizing structured state-space models (S4), designed to capture long-range temporal dependencies in ECG data.
- To evaluate the efficacy of analyzing multiple consecutive ECG windows (up to 20 minutes) for improved multi-class arrhythmia classification and cross-dataset generalization.
Main Methods:
- Developed S4ECG, a deep learning architecture based on structured state-space models (S4).
- Jointly analyzed multiple consecutive ECG windows, extending analysis duration up to 20 minutes.
- Evaluated S4ECG on four public ECG databases for multi-class arrhythmia classification, including systematic cross-dataset evaluations for robustness.
Main Results:
- Multi-window analysis consistently outperformed single-window methods, increasing the area under the receiver operating characteristic curve (AUROC) by 1.0-11.6%.
- For AF detection, specificity improved from 0.718-0.979 to 0.967-0.998 at a fixed sensitivity, reducing false positives by 3-10 fold.
- S4 architecture demonstrated superior performance compared to convolutional neural network baselines.
Conclusions:
- The S4 architecture and multi-window analysis significantly enhance arrhythmia classification accuracy and cross-dataset generalization.
- Optimal diagnostic windows were identified as 10-20 minutes, suggesting these reflect underlying physiological timescales of arrhythmogenic dynamics.
- Findings offer practical guidance for ECG monitoring system design, improving detection of arrhythmias like AF.
More Related Videos
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
Dysrhythmias II: Classification of Tachyarrhythmias
ECG Interpretation of Arrhythmias I: Sinus Arrhythmias
Types of Arrhythmias
Sinus Node Arrhythmias
Sinus Bradycardia: Originating from the sinoatrial (SA) node, sinus bradycardia involves slower impulses, resulting in a heart rate of less than 60 beats per minute (bpm). Causes include sleep, vagal stimulation, beta-blockers, hypothyroidism,...
Dysrhythmias V: Evaluating Dysrhythmias
ECG Interpretation of Arrhythmias II: Atrial, Junctional and Ventricular Arrhythmias
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...

