cs.LGMar 8, 2026

ECG Classification on PTB-XL: A Data-Centric Approach with Simplified CNN-VAE

Authors: Naqcho Ali Mehdi, Amir Ali

Organizations: NED University of Engineering and Technology, Karachi, Pakistan

Abstract

Automated electrocardiogram (ECG) classification is essential for early detection of cardiovascular diseases. While recent approaches have increasingly relied on deep neural networks with complex architectures, we demonstrate that careful data preprocessing, class balancing, and a simplified convolutional neural network combined with a variational autoencoder (CNN-VAE) architecture can achieve competitive performance with significantly reduced model complexity. Using the publicly available PTB XL dataset, we achieve 87.01% binary accuracy and 0.7454 weighted F1-score across five diagnostic classes (CD, HYP, MI, NORM, STTC) with only 197,093 trainable parameters. Our work emphasises the importance of data-centric machine learning practices over architectural complexity, demonstrating that systematic preprocessing and balanced training strategies are critical for medical signal classification. We identify challenges in minority class detection (particularly hypertrophy) and provide insights for future improvements in handling imbalanced ECG datasets. Index Terms: ECG classification, convolutional neural networks, class balancing, data preprocessing, variational autoencoders, PTB-XL dataset

Figures & tables

Explore similar work

CardsList
  1. ECG-Lens: Benchmarking ML & DL Models on PTB-XL Dataset

    Apr 17, 2026Saloni Garg, Ukant Jadia, Amit Sagtani +1Electrocardiogram ClassificationConvolutional Neural Networks

  2. Boosting ECG Classification Performance by Pre-training with Synthesized Data

    Jun 9, 2026Naoki Nonaka, Jun SeitaSynthetic Data PretrainingSynthetic-to-Real Domain Adaptation

  3. ECG-NAT: A Self-supervised Neighborhood Attention Transformer for Multi-lead Electrocardiogram Classification

    May 13, 2026Mahsa Gazeran, Sayvan Soleymanbaigi, Fatemeh Daneshfar +2Self-Supervised Time Series Representation LearningTransformer Attention