Related Experiment Video
Updated: Jan 17, 2026

Real-Time Cardiac Mapping with a Noninvasive Imageless Electrocardiographic Imaging System
Published on: April 11, 2025
Assessing the Impact of Downsampled ECGs and Alternative Loss Functions in Multi-Label Classification of 12-Lead ECGs
Bjørn-Jostein Singstad1,2,3,4, Eraraya Morenzo Muten5
1Medical Technology and E-health, Akershus University Hospital, Lørenskog, Norway. b.j.singstad@fys.uio.no.
Background:
The electrocardiogram (ECG) is an almost universally accessible diagnostic tool for heart disease. An ECG is measured by using an electrocardiograph, and today's electrocardiographs use built-in software to interpret the ECGs automatically after they are recorded. However, these algorithms exhibit limited performance, and therefore, clinicians usually have to manually interpret the ECG, regardless of whether an algorithm has interpreted it or not. Manual interpretation of the ECG can be time-consuming and requires specific skills. Therefore, better algorithms are clearly needed to make correct ECG interpretations more accessible and time-efficient. Algorithms based on artificial intelligence (AI) have demonstrated promising performance in various fields, including ECG interpretation, over the past few years and may represent an alternative to manual ECG interpretation by doctors.
Results:
We trained and validated a convolutional neural network with an Inception architecture on a dataset with 88253 12-lead ECGs, and classified 30 of the most frequent annotated cardiac conditions in the dataset. We assessed two different loss functions and different ECG sampling rates and the best-performing model used double soft F1-loss and ECGs downsampled to 75Hz. This model achieved an F1-score of , accuracy , and an AUROC score of . An aggregated saliency map, showing the global importance of all 12 ECG leads for the 30 cardiac conditions, was generated using Local Interpretable Model-Agnostic Explanations (LIME). The global saliency map showed that the Inception model paid the most attention to the limb leads and the augmented leads and less importance to the precordial leads.
Conclusions:
One of the more significant contributions that emerge from this study is the use of aggregated saliency maps to obtain global ECG lead importance for different cardiac conditions. In addition, we emphasized the relevance of evaluating different loss functions, and in this specific case, we found double soft F1-loss to be slightly better than binary cross-entropy (BCE). Finally, we found it somewhat surprising that drastic downsampling of the ECG led to higher performance than higher sampling frequencies, such as 500Hz. These findings contribute in several ways to our understanding of the artificial intelligence-based interpretation of ECGs, but further studies should be carried out to validate these findings in other datasets from other patient cohorts.
More Related Videos
08:22Author Spotlight: Advancing the Study of Brain-Heart Interplay with a Comprehensive EEGLAB Plugin for Multimodal Signal Analysis
Published on: April 26, 2024
05:03Patient Directed Recording of a Bipolar Three-Lead Electrocardiogram using a Smartwatch with ECG Function
Published on: December 11, 2019
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...
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
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...
Heart Failure IV: Classification and Diagnostic Evaluation
Downsampling
The Fourier transform of the decimated sequence reveals a combination of scaled and shifted versions of the original spectrum. This...