Deep time-frequency representation and progressive decision fusion for ECG classification

Jing Zhang, Jing Tian, Yang Cao, Yuxiang Yang, Xiaobin Xu

TL;DR

This paper introduces a novel deep learning approach for classifying abnormal heart rhythms from ECG signals. By combining time-frequency representations with a progressive decision fusion strategy across multiple temporal scales, the method achieves highly accurate and stable ECG classification, outperforming existing techniques.

What Problem Does This Paper Address?

Accurate and early detection of abnormal heart rhythms from Electrocardiogram (ECG) signals is critical for patient monitoring and treatment. However, classifying these rhythms is challenging due to the vast variety of arrhythmias, the presence of noise in ECG recordings, and the scarcity of large, well-annotated real-world datasets. Traditional methods often rely on hand-crafted features or learn from the raw signal, which can be suboptimal. This paper aims to address these challenges by developing a more robust and accurate ECG classification system.

Methods

The proposed method employs a multi-stage deep learning architecture:

  • Time-Frequency Representation: The raw ECG signal is first transformed into the time-frequency domain using the Short-Time Fourier Transform (STFT). This captures both the temporal evolution and frequency characteristics of the signal, which are crucial for identifying complex patterns.
  • Scale-Specific Deep Convolutional Neural Networks (CNNs): Multiple CNNs are trained on ECG samples of varying lengths (representing different temporal scales). Each CNN is designed to learn features from the time-frequency representations at its specific scale. The architecture involves 3 convolutional layers, 2 pooling layers, and 2 fully-connected layers, making it relatively lightweight.
  • Progressive Online Decision Fusion: A novel fusion mechanism is introduced to combine the decisions from the scale-specific CNNs. This "progressive" fusion allows decisions to be made sequentially as the ECG signal grows, leveraging information from shorter segments (lower levels) and longer segments (higher levels) to produce a more accurate and stable final classification. Two fusion weight strategies are explored: uniform and non-uniform (favoring higher-level models).

Datasets

The proposed method was evaluated on two types of datasets:

  • Synthetic ECG Dataset: A synthetic dataset was generated using an ECG simulator, comprising 20 categories of ECG signals. This dataset was used for initial model development and validation.
  • Real-world ECG Dataset: The publicly available dataset from the 2017 PhysioNet/Computing in Cardiology Challenge was used for more rigorous evaluation. This dataset contains 8,528 single-lead ECG recordings, sampled at 300 Hz, labeled into four categories: Normal rhythm, AF rhythm, Other rhythm, and Noisy recordings.

Key Insights and Ideas

  • Time-frequency is key: Transforming ECG signals into the time-frequency domain (spectrograms) provides a richer representation than raw time-domain signals, enabling CNNs to learn more discriminative features.
  • Multi-scale analysis is beneficial: Different temporal scales capture different aspects of cardiac activity. By analyzing ECGs at multiple scales and fusing the results, a more comprehensive understanding of the signal can be achieved.
  • Progressive fusion for real-time potential: The online decision fusion approach allows for sequential classification as data streams in, making it suitable for real-time monitoring applications.
  • Fusion improves stability: Combining decisions from multiple models, especially across different scales, significantly reduces the variance in classification results, leading to more stable predictions.

Key Results

  • Synthetic Dataset: The proposed method achieved high accuracy on the synthetic dataset, with the fusion method (at level 6) boosting accuracy from 87% (single model at level 1) to 99%, and reducing standard deviation from 0.03 to 0.011.
  • Real-world Dataset: On the PhysioNet dataset, the proposed online fusion method achieved 100% classification accuracy and 100% F1 score at level 4 and 5. Even single models performed competitively, with level 2 achieving 99.44% accuracy. The fusion method consistently outperformed single models.
  • Efficiency: The method is computationally efficient, with running times as low as 0.33ms for the whole sequence on a GPU, demonstrating its potential for embedded devices.
  • Feature Visualization: t-SNE visualizations of learned features showed good separation between most categories, indicating the discriminative power of the learned representations.

Limitations and Future Work

  • Limitations:
    • The paper notes that some categories (e.g., SA, PAC, VTr, AVB-I, PVC) are harder to distinguish, leading to overlaps in confusion matrices and feature visualizations.
  • While the non-uniform weight strategy for fusion was explored, it showed only marginal gains over uniform weights, suggesting that the highest-level model might dominate the decision at later stages.
  • Future Work:
    • Developing more compact and efficient network architectures for handling complex real-world ECG data.
  • Improving the online fusion by integrating both decisions and learned features from different levels.
  • Exploring the application of the proposed method to other types of nonlinear time series beyond ECG.

Summary updated

BibTeX
@article{zhang2020deep,
  author = {Jing Zhang and Jing Tian and Yang Cao and Yuxiang Yang and Xiaobin Xu},
  title = {{Deep time-frequency representation and progressive decision fusion for ECG classification}},
  journal = {Knowledge-Based Systems},
  year = {2020},
  doi = {10.1016/j.knosys.2019.105402},
}
Figure