Quantifying deep neural network uncertainty for atrial fibrillation detection with limited labels

Brian Chen, Golara Javadi, Alexander Hamilton, Stephanie Sibley, Philip Laird, Purang Abolmaesumi, David M. Maslove, Parvin MousaviScientific 2022

Abstract

Atrial fibrillation (AF) is the most common arrhythmia found in the intensive care unit (ICU), and is associated with many adverse outcomes. Effective handling of AF and similar arrhythmias is a vital part of modern critical care, but obtaining knowledge about both disease burden and effective interventions often requires costly clinical trials. A wealth of continuous, high frequency physiological data such as the waveforms derived from electrocardiogram telemetry are promising sources for enriching clinical research. Automated detection using machine learning and in particular deep learning has been explored as a solution for processing these data. However, a lack of labels, increased presence of noise, and inability to assess the quality and trustworthiness of many machine learning model predictions pose challenges to interpretation. In this work, we propose an approach for training deep AF models on limited, noisy data and report uncertainty in their predictions. Using techniques from the fields of weakly supervised learning, we leverage a surrogate model trained on non-ICU data to create imperfect labels for a large ICU telemetry dataset. We combine these weak labels with techniques to estimate model uncertainty without the need for extensive human data annotation. AF detection models trained using this process demonstrated higher classification performance (0.64-0.67 F1 score) and improved calibration (0.05-0.07 expected calibration error).

Introduction

Atrial Fibrillation (AF) is the most prevalent arrhythmia in the Intensive Care Unit (ICU), significantly impacting patient mortality and hospital stay duration. Despite the abundance of electrocardiogram (ECG) data generated by ICU monitors, two primary obstacles hinder the application of deep learning for AF tracking: label scarcity and model overconfidence. Expert annotation of massive ICU telemetry datasets is prohibitively expensive, and standard deep learning models often fail to distinguish between true arrhythmias and sensor noise, leading to overconfident misclassifications. This study introduces a framework to learn from imperfect labels and quantify prediction uncertainty, providing a "confidence score" to aid clinical interpretation.

Methodology

The proposed pipeline leverages weak supervision and uncertainty estimation to bypass manual labeling requirements.

Overview of the development and deployment pipeline for AF detection in the ICU.

Weak Supervision and Confident Learning

A surrogate model was initially trained on the Chapman 12-lead dataset, a high-quality diagnostic ECG collection. This model generated "weak labels" for an 11TB ICU dataset from Kingston General Hospital (KGH). To address errors in these weak labels, the researchers applied Confident Learning, an iterative process that prunes training samples where predicted probabilities strongly conflict with weak labels.

Uncertainty Estimation

The framework implements two types of uncertainty:

  1. Aleatoric (Data Uncertainty): Captured via Test-Time Augmentation (TTA) by masking input signals to identify noise-induced uncertainty.
  2. Epistemic (Model Uncertainty): Captured via Monte Carlo (MC) Dropout, where active dropout layers during inference produce a distribution of predictions; a wider spread indicates insufficient training data for that specific pattern.

Results and Discussion

The integration of uncertainty estimation and weak supervision yielded significant improvements in both detection performance and model reliability.

Predicted rhythm and uncertainty over a 20-second ECG segment, showing the probability of AF vs. Sinus Rhythm.

Performance and Calibration

The optimized model achieved an F1 score of 0.67, outperforming traditional rule-based baselines (F1 0.58). Notably, sensitivity reached ~0.77, a critical metric for screening applications. Furthermore, the Expected Calibration Error (ECE) was reduced to 0.05-0.07, indicating that the model's predicted probabilities are much more representative of actual likelihood compared to the surrogate model (ECE 0.15).

Out-of-Distribution Detection

High uncertainty scores allowed the model to successfully flag "Abstain" cases—segments where noise or atypical rhythms prevented reliable human or machine labeling. This capability is essential for maintaining trust in automated ICU monitoring systems.

Conclusion and Future Work

While promising, this study is limited by its single-center data and binary focus (AF vs. Sinus Rhythm). Future research will explore multi-rhythm classification and "silent mode" real-time evaluation in clinical settings to assess the framework's utility in live streaming environments.

Summary updated

BibTeX
@inproceedings{chen2022quantifying,
  author = {Brian Chen and Golara Javadi and Alexander Hamilton and Stephanie Sibley and Philip Laird and Purang Abolmaesumi and David M. Maslove and Parvin Mousavi},
  title = {{Quantifying deep neural network uncertainty for atrial fibrillation detection with limited labels}},
  booktitle = {Scientific},
  year = {2022},
  doi = {10.1038/s41598-022-24574-y},
}
Figure