Benchmarking Uncertainty Qualification on Biosignal Classification Tasks under Dataset Shift

Tong Xia, Jing Han, Cecilia MascoloarXiv 2021

Abstract

Deep learning models for biosignal classification often encounter dataset shifts in real-world clinical settings, leading to unreliable predictions. This paper benchmarks five uncertainty quantification (UQ) methods—Vanilla, Temperature Scaling, Monte Carlo Dropout, Bayesian Neural Networks, and Deep Ensembles—across three medical tasks (ECG, respiratory sounds, and COVID-19 audio) under synthetic shifts. Results indicate that while Ensembles generally outperform other methods, all UQ approaches struggle with over-confidence and miscalibration as shift severity increases, highlighting a critical gap in medical AI safety.

Introduction

In medical AI, the reliability of a prediction is as crucial as its accuracy. While deep learning models excel in controlled environments, they frequently encounter "dataset shift" in clinical practice due to sensor noise, hardware variations, or missing data. Ideally, Uncertainty Quantification (UQ) should allow models to signal when they are "unsure," prompting human intervention. However, the robustness of these UQ methods under varying degrees of signal corruption in biosignal tasks remains under-explored.

Methodology

The study evaluates five representative UQ approaches:

  1. Vanilla: Baseline Softmax probabilities.
  2. Scaling: Post-hoc temperature scaling for re-calibration.
  3. MCDropout: Inference-time dropout to estimate model disagreement.
  4. Bayesian: Stochastic variational inference using Gaussian priors.
  5. Ensemble: Averaging outputs from multiple independently initialized networks.

To simulate real-world conditions, the researchers introduced five levels of synthetic shifts, including Gaussian and background noise, signal clipping (distortion), and sampling rate discrepancies.

Experimental Setup

Three distinct biosignal benchmarks were utilized:

  • COVID-19 Prediction: Audio recordings (cough, breath, voice) from 1,000 users.
  • Respiratory Abnormality: 1,990 breathing sound clips (ICBHI 2017 Challenge).
  • Heart Arrhythmia: 8,224 ECG recordings (PhysioNet 2017 Challenge).

Each task employed state-of-the-art architectures, such as VGGish for audio, ResNet for breathing, and Transformers for ECG.

Results and Analysis

The benchmarking reveals a significant decay in performance as dataset shift increases. While accuracy drops, model uncertainty often fails to rise proportionally, leading to dangerous over-confidence in incorrect predictions.

Performance metrics (Accuracy, Brier Score, ECE, and Uncertainty) across Gaussian shift, background noise, and distortion shift.

Key Findings:

  • Deep Ensembles consistently provided the most reliable uncertainty estimates and maintained the highest accuracy under shift, though at a higher computational cost.
  • Calibration Fragility: Post-hoc methods like Temperature Scaling fail to maintain calibration once the data distribution shifts. You cannot calibrate a model once and expect it to stay calibrated in the wild.
  • Misleading Confidence: In the COVID-19 task, accuracy dropped to near-chance levels under high noise, yet some methods showed decreasing uncertainty scores at the highest shift levels, a phenomenon termed "AI arrogance."
  • Shift Detection Limitations: Using uncertainty scores to detect out-of-distribution (OOD) samples yielded poor results (accuracy < 0.6). As shown in the detection metrics for Gaussian shift, the ability to correctly identify shifted data (TPR) degrades significantly as the shift degree increases.
True Positive Rate (TPR) and True Negative Rate (TNR) for shift detection under Gaussian noise.

Conclusion

The study underscores that current UQ methods are not "shift-proof." For medical deployments, relying on a model's self-reported confidence can be hazardous. The authors advocate for benchmarking under synthetic shifts as a mandatory safety protocol and call for the development of UQ methods specifically tailored to the temporal dynamics of biosignals.

Summary updated

BibTeX
@misc{xia2021benchmarking,
  author = {Tong Xia and Jing Han and Cecilia Mascolo},
  title = {{Benchmarking Uncertainty Qualification on Biosignal Classification Tasks under Dataset Shift}},
  year = {2021},
  eprint = {2112.09196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.09196},
}
Figure