Related Experiment Video
Updated: Sep 27, 2025

Analyzing Long-Term Electrocardiography Recordings to Detect Arrhythmias in Mice
Published on: May 23, 2021
Structural Anomalies Detection from Electrocardiogram (ECG) with Spectrogram and Handcrafted Features
1Department of Computer Science, Faculty of Science, University of Alberta, 116 St and 85 Ave, Edmonton, AB T6G 2R3, Canada.
Insights
This study introduces a novel method using electrocardiogram (ECG) spectrograms and a Convolutional Neural Network to detect complex heart anomalies, improving early cardiovascular disease diagnosis beyond current capabilities.
Area of Science:
- Biomedical Engineering
- Cardiology
- Artificial Intelligence in Medicine
Background:
- Cardiovascular diseases (CVDs) are a leading global cause of mortality, necessitating advanced diagnostic tools.
- Existing commercial devices primarily detect basic rhythm fluctuations, limiting the diagnosis of complex cardiac anomalies.
- Early and accurate detection of diverse heart conditions is crucial for effective patient management and improved health outcomes.
Purpose of the Study:
- To develop an advanced algorithm for detecting a wider range of heart anomalies than currently available commercial products.
- To improve the accuracy and sensitivity of diagnosing both cardiac rhythm and heartbeat irregularities.
- To leverage Short-Time Fourier Transform (STFT) spectrograms and handcrafted features for enhanced ECG analysis.
Main Methods:
- A novel method combining Short-Time Fourier Transform (STFT) spectrograms of ECG signals with handcrafted features was developed.
- A Convolutional Neural Network (CNN) model was proposed and trained to analyze the combined ECG data.
- The algorithm was evaluated on its ability to detect multiple types of cardiac rhythm and heartbeat anomalies.
Main Results:
- The algorithm achieved 99.79% accuracy in detecting 16 different rhythm anomalies, with a low 0.15% false-alarm rate and 99.74% sensitivity.
- It also demonstrated high performance in detecting 13 heartbeat anomalies, achieving 99.18% accuracy, a 0.45% false-alarm rate, and 98.80% sensitivity.
- These results surpass the diagnostic capabilities of many current commercial heart monitoring products.
Conclusions:
- The proposed STFT spectrogram and CNN-based method offers a significant advancement in diagnosing complex cardiovascular conditions.
- This approach enhances the early detection of both rhythm and heartbeat anomalies, potentially improving patient outcomes.
- The high accuracy and sensitivity suggest clinical utility for this advanced ECG analysis technique.
Abstract:
Cardiovascular diseases are the leading cause of death globally, causing nearly 17.9 million deaths per year. Therefore, early detection and treatment are critical to help improve this situation. Many manufacturers have developed products to monitor patients' heart conditions as they perform their daily activities. However, very few can diagnose complex heart anomalies beyond detecting rhythm fluctuation. This paper proposes a new method that combines a Short-Time Fourier Transform (STFT) spectrogram of the ECG signal with handcrafted features to detect heart anomalies beyond commercial product capabilities. Using the proposed Convolutional Neural Network, the algorithm can detect 16 different rhythm anomalies with an accuracy of 99.79% with 0.15% false-alarm rate and 99.74% sensitivity. Additionally, the same algorithm can also detect 13 heartbeat anomalies with 99.18% accuracy with 0.45% false-alarm rate and 98.80% sensitivity.
More Related Videos
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...
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...
Classification of Signals
A continuous-time signal holds a value at every instant in time, representing information seamlessly. In contrast, a discrete-time signal holds values only at specific moments, often denoted as x(n), where...
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....

