Cardiac Disease Diagnosis on Imbalanced Electrocardiography Data Through Optimal Transport Augmentation

Jielin Qiu, Jiacheng Zhu, Mengdi Xu, Peide Huang, Michael A. Rosenberg, Douglas Weber, Emerson Liu, Ding Zhao

TL;DR

This paper tackles the critical issue of imbalanced datasets in ECG-based heart disease diagnosis. They propose a novel data augmentation technique using Optimal Transport to generate synthetic ECG beats from healthy samples, effectively balancing minority disease classes. This augmented data, when fed into their custom Multi-Feature Transformer model, significantly improves diagnostic accuracy and robustness across various heart conditions.

What Problem Does This Paper Address?

Accurate interpretation of Electrocardiogram (ECG) signals is fundamental to cardiology, yet current automated systems often fall short of expert clinician performance. A major hurdle in developing robust ECG diagnostic models is the inherent imbalance in real-world datasets. Typically, healthy ECG signals (normal beats) vastly outnumber those indicating specific diseases. This imbalance leads to models that are biased towards the majority class, performing poorly on rare but critical conditions. Traditional data augmentation methods like oversampling can sometimes lead to overfitting or fail to capture the complex underlying data distributions. This paper aims to address this imbalance problem by introducing a more sophisticated data augmentation strategy that leverages the geometric properties of probability distributions.

Methods

The core of this work lies in two main components: a novel data augmentation strategy and a specialized classification model.

Optimal Transport (OT) for Data Augmentation: The authors employ Optimal Transport, a mathematical framework that studies the geometry of probability spaces, to generate synthetic ECG data. Specifically, they use OT to "push forward" samples from the distribution of a majority class (healthy ECGs) towards minority classes (diseased ECGs). The key idea is to perturb the data distribution along a "geodesic" in a Wasserstein space, guided by a cost metric derived from physiological features. This ensures that the generated synthetic samples are not just random additions but are geometrically meaningful and likely to resemble real disease patterns. This method is designed to exploit global geometric information within the data, aiming for more realistic augmentations than simple resampling.

Multi-Feature Transformer (MF-Transformer): For classification, the authors propose a custom Transformer-based model. Unlike standard Transformers that often focus on sequential data, their MF-Transformer is designed to process a combination of features: raw ECG signals, time-domain features (e.g., mean, variance, kurtosis), and frequency-domain features (derived from FFT). The model utilizes a multi-headed attention mechanism to learn complex relationships between these diverse features, aiming to capture a comprehensive representation of the ECG signal for accurate diagnosis. The model primarily uses the encoder part of the Transformer architecture.

Datasets

The experiments were conducted on the PTB-XL dataset. This dataset contains 10-second, 12-lead ECG signals from 10 seconds in length, covering five conditions: Normal ECG (NORM), Myocardial Infarction (MI), ST/T Change (STTC), Conduction Disturbance (CD), and Hypertrophy (HYP). The data is provided in WFDB format with a sampling frequency of 100Hz. The paper highlights the inherent imbalance within this dataset, which is a primary motivation for their work.

Key Insights and Ideas

  • Geometric Augmentation is Key: Simply oversampling minority classes can be insufficient. Optimal Transport offers a principled way to generate synthetic data that respects the underlying data manifold, leading to more effective augmentation.
  • Feature Fusion for ECG: Combining time-domain, frequency-domain, and raw ECG signal features within a powerful architecture like the Transformer is crucial for capturing the nuanced information present in ECGs.
  • Balancing Improves Robustness: Addressing data imbalance not only boosts overall accuracy but also makes the model more reliable across all classes, preventing it from being overly biased towards the majority.
  • OT as a "Smart" Data Generator: The paper demonstrates that OT can be used to intelligently generate synthetic data that mimics real-world variations, effectively bridging the gap between healthy and diseased states.

Key Results

The paper reports significant improvements in heart disease detection accuracy and robustness due to their proposed Optimal Transport augmentation method.

  • Improved Accuracy: The proposed method achieved an average classification accuracy of 75.82%, outperforming the baseline (no augmentation) at 71.80% and random oversampling at 72.05%.
  • Balanced Performance: Confusion matrices show that their method leads to more balanced performance across all five ECG categories, with minority classes seeing substantial improvements compared to baseline and simple oversampling. For instance, while some minority classes achieved around 50-60% accuracy in the baseline, the proposed method pushed these significantly higher.
  • Robustness: The improvements in accuracy and the more balanced confusion matrices indicate enhanced robustness of the MF-Transformer model when trained on OT-augmented data.

Limitations and Future Work

Limitations: * The paper focuses on augmenting minority classes by transporting from the NORM class. It does not explore augmenting between different minority classes. * While OT is shown to be effective, the computational cost of OT can be a consideration for very large datasets or real-time applications.

Future Work: * The authors suggest exploring more sophisticated OT cost functions or barycentric mapping strategies. * Investigating the application of their method to other types of imbalanced medical data. * Further optimization of the MF-Transformer architecture and the OT augmentation process for even greater efficiency and performance.

Summary updated

BibTeX
@inproceedings{qiu2023cardiac,
  author = {Jielin Qiu and Jiacheng Zhu and Mengdi Xu and Peide Huang and Michael A. Rosenberg and Douglas Weber and Emerson Liu and Ding Zhao},
  title = {{Cardiac Disease Diagnosis on Imbalanced Electrocardiography Data Through Optimal Transport Augmentation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=9VqbHFOzVJ},
}
Figure