Enhancing Electrocardiography Data Classification Confidence: A Robust Gaussian Process Approach (MuyGPs)

Ukamaka V. Nnyaba, Hewan M. Shemtaga, David W. Collins, Amanda Muyskens, Benjamin W. Priest, Nedret BillorarXiv 2024 · DOI

Abstract

Analyzing electrocardiography (ECG) data is essential for diagnosing and monitoring various heart diseases. The clinical adoption of automated methods requires accurate confidence measurements, which are largely absent from existing classification methods. In this paper, we present a robust Gaussian Process classification hyperparameter training model (MuyGPs) for discerning normal heartbeat signals from signals affected by different arrhythmias and myocardial infarction. We compare the performance of MuyGPs with traditional Gaussian process classifiers as well as conventional machine learning models, such as Random Forest, Extra Trees, k-Nearest Neighbors, and Convolutional Neural Networks (CNN). Comparing these models reveals MuyGPs as the most performant model for making confident predictions on individual patient ECGs. Furthermore, we explore the posterior distribution obtained from the Gaussian process to interpret predictions and quantify uncertainty. We identify a class of less-accurate (ambiguous) signals for further diagnosis by an expert, providing a guideline for clinical integration.

Introduction: The Reliability Gap in Automated ECG Analysis

Automated ECG classification is a cornerstone of modern cardiovascular disease management. However, clinical adoption is hindered by a lack of principled reliability measures. While deep learning models like CNNs achieve impressive accuracy, they often function as "black boxes" that lack the ability to quantify uncertainty. In a medical context, a high-accuracy prediction that is actually a "guess" can be dangerous.

Traditional Gaussian Processes (GPs) offer excellent uncertainty quantification via posterior distributions but suffer from extreme computational costs, scaling at $O(n^3)$ or $O(n^4)$. This makes them impractical for the large-scale datasets found in modern medical informatics. This study introduces MuyGPs, a scalable GP framework designed to bridge the gap between high-performance classification and clinical reliability.

Methods: Scalable Bayesian Inference with MuyGPs

The researchers utilize MuyGPs, an approximate GP method that enables scalable Bayesian inference through several key innovations:

  • Local Kriging: Instead of computing a global covariance matrix, MuyGPs focuses on the $k$-nearest neighbors of a prediction location. This reduces complexity to $O(bk^3)$, where $b$ is the batch size and $k$ is the number of neighbors.
  • Hybrid CNN-MuyGPs: A 1D-CNN serves as a feature extractor, providing high-level spatial embeddings. These embeddings are then processed by the MuyGPs model for final classification and uncertainty estimation.
  • Uncertainty Quantification: Using a hypothesis testing framework, the model defines a "prediction interval." If this interval spans the decision boundary, the signal is flagged as ambiguous, signaling the need for human expert review.

Datasets and Preprocessing

The study benchmarks the framework using two gold-standard datasets: the MIT-BIH Arrhythmia Database (multi-class) and the PTB Diagnostic ECG Database (binary).

Representative ECG signals from the PTB (left) and MIT-BIH (right) datasets.

To address significant class imbalances, the authors employed the Synthetic Minority Over-sampling Technique (SMOTE). Additionally, signal truncation was used to remove padding noise, focusing on the most informative features of the heartbeat waveforms.

Class distribution for the PTB Diagnostic and MIT-BIH Arrhythmia databases showing inherent imbalances.

Key Results and Discussion

  • Superior Accuracy: The CNN-MuyGPs hybrid achieved a peak accuracy of 99.18% on the PTB dataset and 98.34% on the multi-class MIT-BIH dataset, outperforming standalone CNNs and traditional machine learning models.
  • Computational Efficiency: MuyGPs demonstrated near-linear scaling with sample size, significantly outperforming traditional GPs in training and inference speed.
  • The Power of Confidence Filtering: A critical finding was that removing "ambiguous" signals—those identified by the model as low-confidence—dramatically increased the accuracy of the remaining predictions. MuyGPs proved more precise than other models in identifying these edge cases, potentially reducing physician workload by automating clear-cut diagnoses while escalating difficult ones.
  • Data Efficiency: MuyGPs maintained high performance even with smaller training sets, suggesting robustness in data-scarce medical environments.

Conclusion

MuyGPs represents a significant step toward trustworthy AI in cardiology. By providing a scalable way to quantify uncertainty, it allows for a collaborative human-in-the-loop system where AI handles routine classification and experts focus on statistically ambiguous cases. Future work will explore more complex feature extraction architectures and the application of this framework to real-time streaming ECG data.

Summary updated

BibTeX
@misc{nnyaba2024enhancing,
  author = {Ukamaka V. Nnyaba and Hewan M. Shemtaga and David W. Collins and Amanda Muyskens and Benjamin W. Priest and Nedret Billor},
  title = {{Enhancing Electrocardiography Data Classification Confidence: A Robust Gaussian Process Approach (MuyGPs)}},
  year = {2024},
  eprint = {2409.04642},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.04642},
}
Figure