Related Experiment Video
Updated: Jun 27, 2026

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Learning Periodic Patterns in ECG Signals Using TimesNet for Automated Cardiac Classification
Manjur Kolhar1, Raisa Nazir Ahmed Kazi2, Ahmed M Al Rajeh2
1Department of Health Information Management and Technology, College of Applied Medical Sciences, King Faisal University, Al-Ahsa 36362, Saudi Arabia.
None:
Background/Objectives: Although deep learning methods have achieved promising performance in recent years, comparatively less attention has been given to explicitly modeling periodic and multi-scale temporal dynamics for ECG-specific representation learning within TimesNet-based frameworks. In this work, we propose an ECG-specific TimesNet-based framework for multi-label classification of multi-lead ECG recordings that incorporates periodicity-aware temporal modeling. Methods: The proposed framework utilizes Fast Fourier Transform (FFT)-guided temporal decomposition to identify dominant frequency components and reshapes ECG sequences into period-aligned representations to better capture intra-period morphological patterns and inter-period rhythm dependencies. Multi-scale convolutional TimesBlocks are further employed to learn rhythm-aware and morphology-aware temporal representations. Results: The proposed framework was evaluated on the PTB-XL dataset using two experimental settings: Three-Class classification (NORM, AFIB, PVC) and Five-Class classification (NORM, AFIB, MI, PVC, STTC). Experiments were conducted using a one-vs-rest multi-label learning strategy with independent class probability estimation. The framework achieved mean one-vs-rest test AUC values of 0.956 and 0.913 for the Three-Class and Five-Class settings, respectively. Experimental results indicated that the reduced classification complexity in the Three-Class setting was associated with improved feature separability, more stable decision boundaries, and enhanced discriminative representation learning. Latent-space visualization using UMAP and PCA demonstrated clearer clustering in the Three-Class configuration, while gradient-based interpretability analysis highlighted physiologically relevant ECG waveform regions contributing to model predictions. In addition, computational profiling demonstrated practical feasibility with approximately 1.957 million trainable parameters, 13.14 GFLOPs computational complexity, 5.230 ms average inference latency per ECG recording, and a throughput of approximately 191 ECG recordings per second on GPU hardware. Conclusions: These findings suggest that periodicity-aware temporal modeling can improve ECGF representation learning while demonstrating practical potential for computationally efficient and interpretable automated ECG analysis applications.
Related Concept Videos
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
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and the T...
Pulse rhythm
Conversely, an irregular pulse pattern is termed dysrhythmia, stemming from disruptions in cardiac muscle...
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...
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, and...
Holter Monitor: 24-Hour Monitoring