A Novel Transfer Learning-Based Approach for Screening Pre-existing Heart Diseases Using Synchronized ECG Signals and Heart Sounds

Ramith Hettiarachchi, Udith Haputhanthri, Kithmini Herath, Hasindu Kariyawasam, Shehan Munasinghe, Kithmin Wickramasinghe, Duminda Samarasinghe, Anjula De Silva, Chamira U. S. EdussooriyaarXiv 2021

TL;DR

Screening for pre-existing heart diseases is highly effective when combining heart sounds (PCG) and electrical signals (ECG), but simultaneous datasets are rare and expensive to collect. This paper introduces a dual-CNN hybrid model that leverages transfer learning from large, independent PCG and ECG datasets to accurately screen for heart disease using a very limited amount of synchronized data.

What Problem Does This Paper Address?

Early diagnosis of pre-existing heart conditions, such as congenital heart diseases, is vital to prevent life-threatening complications like heart failure or sudden cardiac arrest. While clinicians traditionally use stethoscopes for initial auscultation, accurate interpretation requires significant expertise.

Automated screening using deep learning has emerged as a solution, but most existing models rely on a single modality—either phonocardiograms (PCG/heart sounds) or electrocardiograms (ECG). Because these two signals often convey mutually exclusive, complementary information, integrating them yields much higher diagnostic accuracy. However, devices that capture synchronized PCG and ECG data are expensive and rare, resulting in a severe shortage of multimodal datasets. This paper tackles this data scarcity bottleneck using a clever transfer learning strategy.

Methods

The authors propose a novel Dual-Convolutional Neural Network (CNN) architecture that integrates both data types through a multi-step pipeline:

  1. Scalogram Generation: Raw 1D PCG and ECG signals are converted into 2D time-frequency images (scalograms) using a Continuous Wavelet Transform (CWT) with Morlet wavelets. This preserves both localization and phase information.
  2. Pre-training (Transfer Learning): To circumvent the lack of synchronized data, the authors train two separate CNNs on large, completely independent datasets—one optimized solely for PCG classification and the other for ECG classification.
  3. Hybrid Classification: The feature extraction weights from these two single-modality networks are transferred to initialize a dual-path hybrid CNN. The outputs of these paths are concatenated and fed into a shared multilayer perceptron to make the final prediction.
  4. Optimal Thresholding: Medical datasets are notoriously imbalanced. Instead of using a standard 0.5 classification threshold, the authors compute an optimal threshold that maximizes the G-mean metric (the geometric mean of sensitivity and specificity) to ensure the model doesn't lean heavily toward the majority class.
Fig. 1: The proposed transfer learning based pipeline: Balanced datasets created using setting-1 and setting-2 were fed into PCG-only and ECG-only models separately. The trained weights before the flatten layers of those models were used to initialize the feature extraction path weights of the hybrid model. The hybrid model was trained without freezing the feature extraction path weights using balanced or imbalanced datasets created based on setting-3. After obtaining the predictions from the hybrid model, sample-wise and record-wise evaluations were done separately.

The authors also contrast two evaluation frameworks: sample-wise (evaluating individual 3.5-second windows) and record-wise (aggregating window predictions across an entire patient recording).

Datasets

The models were trained and evaluated using three distinct data settings:

  • Setting 1 (PCG-only): Subsets training-b through f of the PhysioNet Challenge 2016 (PHY16) dataset, containing only PCG recordings.
  • Setting 2 (ECG-only): The PhysioNet Challenge 2017 (PHY17) dataset, containing only ECG recordings.
  • Setting 3 (Synchronized PCG+ECG): The training-a subset of the PHY16 dataset, which contains 407 synchronized PCG and ECG recordings (segmented into 3,496 simultaneous samples).

Key Insights and Ideas

  • Modality Isolation for Pre-training: The core "aha moment" is that a multimodal network doesn't need to learn how to extract features from a multimodal dataset initially. Features learned from entirely different patient cohorts (one group providing only ECGs, another only PCGs) can be successfully combined later to interpret synchronized data.
  • Record-wise Aggregation Beats Sample-wise: Evaluating the complete time-domain signal across an entire record provides a significant performance boost over evaluating isolated samples. This aggregation makes the system robust against localized noise or temporal distortions during signal acquisition.
  • The Power of G-Mean Optimization: Tuning the classification threshold specifically to balance sensitivity and specificity proved essential. Without it, the inherent class imbalances in cardiac data heavily skew the model's reliability.

Key Results

The hybrid models consistently outperformed single-modality approaches, proving that the integration of heart sounds and electrical signals provides a superior diagnostic picture.

TABLE I: Comparison of previous approaches vs. our experiments using standard statistical evaluation parameters.
  • Method A (With Transfer Learning & Optimal Thresholding): Achieved a Sensitivity of 87.72%, a Specificity of 87.5%, and an AUC of 93.75% (G-mean = 87.6%).
  • Method D (No Transfer Learning): While it managed a higher peak Sensitivity (94.74%), its Specificity dropped to 75%, demonstrating that transfer learning provides vital stability when dealing with imbalanced, limited data.
  • Both hybrid configurations significantly outperformed the baseline PCG-only (G-mean = 52.65%) and ECG-only (G-mean = 75.72%) models.

Limitations and Future Work

The primary limitation is the size of the synchronized dataset used for the final hybrid training (only 407 recordings from PHY16 training-a). While the transfer learning approach mitigates this, a larger synchronized dataset would help validate the model's true generalization capabilities.

For future work, the authors suggest expanding the pre-training phase using other large, public, single-modality online datasets to further refine the feature extraction paths before multimodal deployment.

Summary updated

BibTeX
@misc{hettiarachchi2021novel,
  author = {Ramith Hettiarachchi and Udith Haputhanthri and Kithmini Herath and Hasindu Kariyawasam and Shehan Munasinghe and Kithmin Wickramasinghe and Duminda Samarasinghe and Anjula De Silva and Chamira U. S. Edussooriya},
  title = {{A Novel Transfer Learning-Based Approach for Screening Pre-existing Heart Diseases Using Synchronized ECG Signals and Heart Sounds}},
  year = {2021},
  eprint = {2102.01728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.01728},
}
Figure