# Enhancing ECG Classification Generalization Through Unified Multi-Dataset Training

**Authors:** Minchan Kim, Miyoung Shin

PMC · DOI: 10.3390/s26061830 · Sensors (Basel, Switzerland) · 2026-03-13

## TL;DR

This paper introduces a new ECG classification framework that improves performance across different datasets, helping detect atrial fibrillation more reliably in various clinical settings.

## Contribution

A novel multi-dataset ECG classification framework using supervised contrastive learning and layer-wise normalization to enhance generalization.

## Key findings

- The model achieved 97.5% average accuracy and 89.3% F1-score in cross-dataset evaluations.
- It outperformed single-dataset training and naïve multi-dataset aggregation methods.
- The approach improves robustness against dataset-specific biases and distributional shifts.

## Abstract

Atrial fibrillation (AF) is one of the most prevalent and clinically significant cardiac arrhythmias, and electrocardiography (ECG) is widely used for its detection. However, existing models often exhibit performance degradation when applied to unseen data due to dataset-specific biases and distributional shifts. This limited generalization remains a major obstacle to reliable clinical deployment. To address this, we propose a multi-dataset ECG classification framework designed to improve cross-dataset robustness. The model employs supervised contrastive learning and layer-wise normalization to stabilize training and mitigate the influence of domain-specific variations. The proposed approach was evaluated under a Leave-One-Dataset-Out setting, achieving an average accuracy of 97.5% and an F1-score of 89.3%. It consistently demonstrated superior performance compared with single-dataset training and naïve multi-dataset aggregation. These results indicate that the proposed framework can contribute to more stable automated AF detection across diverse clinical environments.

## Linked entities

- **Diseases:** Atrial fibrillation (MONDO:0004981)

## Full-text entities

- **Diseases:** cardiac arrhythmias (MESH:D001145), AF (MESH:D001281)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC13030569/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13030569/full.md

## References

44 references — full list in the complete paper: https://tomesphere.com/paper/PMC13030569/full.md

---
Source: https://tomesphere.com/paper/PMC13030569