A Comprehensive Inference-Time Augmentation Framework in Physiological Signals: Application to PPG-Based AF Detection

Davood Fattahi, Runze Yan, Saurabh Kataria, Zhaoliang Chen, Xiao HuarXiv 2026 · DOI

TL;DR

This paper introduces a comprehensive, model-agnostic Inference-Time Augmentation (ITA) framework specifically designed for 1D physiological signals like photoplethysmography (PPG). By applying 13 optimized, length-preserving transformations during inference, the framework consistently boosts atrial fibrillation (AF) detection performance and reduces false positives across multiple deep learning architectures without requiring model retraining.

What Problem Does This Paper Address?

Deploying deep learning models for physiological signal analysis (such as tracking heart rhythms via smartwatches) is notoriously difficult. Real-world data is plagued by sensor noise, motion artifacts, and distribution shifts between the pristine data used for training and the messy data encountered in the wild.

Inference-Time Augmentation (ITA) offers a clever workaround: instead of retraining a model, you apply data augmentations to a sample at the time of prediction, run these variants through the model, and aggregate the results (essentially creating an inference-stage ensemble). While highly successful in computer vision, ITA for 1D physiological signals has remained limited. Standard transformations often distort the signal's structural integrity or alter its length, making it incompatible with fixed-size neural network inputs. This paper tackles these gaps by introducing a unified, length-preserving ITA framework tailored for physiological waveforms.

Methods

The authors propose an ITA framework incorporating 13 distinct augmentation methods spanning the time, amplitude, frequency, and artifact domains.

The core technical innovation lies in how they handle signal transformations:

  • Smooth, Length-Preserving Operators: Instead of linear time warping (which changes signal duration), they introduce nonlinear time warping, amplitude drift, and amplitude modulation driven by Bézier and Piecewise Cubic Hermite Interpolating Polynomial (PCHIP) curves. These functions allow for localized, realistic variations while strictly preserving the original signal length and chronological order.
Figure 2. Left: Time warping mapping function using Bézier and PCHIP curves, using two random control points near y = x. Both the horizontal and vertical axes represent time normalized by the signal length and are therefore dimensionless. Right: 𝑏(𝑡) in amplitude drift and modulation, using Bézier and PCHIP curves. The horizontal axis represents time normalized by the signal length and is therefore dimensionless. The vertical axis represents the amplitude of 𝑏(𝑡), which is dimensionless when used for amplitude modulation and has the same units as the signal when used for amplitude drift.
  • Hyperparameter Optimization (HPO): Rather than using fixed, unoptimized parameters, the authors employ Bayesian optimization with Gaussian process surrogates to systematically find the best parameter settings (e.g., noise variance, knot counts) for each augmentation method.
  • Hybrid Fusion Scheme: To avoid the massive computational cost of evaluating every combination of augmentations combinatorially, they merge the optimized parameters so that each generated variant benefits from multiple simultaneous transformations.
  • Selective ITA: In addition to standard ITA (applied to all inputs), they introduce a strategy where ITA is only triggered on initially positive predictions, acting as a "sanity check" to suppress false alarms.

Datasets

The framework was rigorously evaluated on the task of Atrial Fibrillation (AF) detection using 30-second PPG signals across several diverse datasets:

  1. UCSF Alarm Dataset: Continuous bedside PPG from 28,539 hospital patients (used for pre-training and fine-tuning).
  2. Stanford AF Dataset: Wrist-worn device data from 163 ambulatory patients.
  3. UCLA AF Dataset: Bedside monitor data from 126 acute care patients.
  4. Simband AF Dataset: Wrist-worn data from 98 patients using Samsung Simband devices.
  5. Delta Dataset: Smartwatch data from post-stroke patients.
  6. Non-AF PPG Collection: A massive compilation of 17 public datasets (~4,500 hours) from healthy/non-AF subjects, specifically used to evaluate false positive reductions.

Key Insights and Ideas

  • Clean Signals Benefit Most: Counterintuitively, ITA yields the greatest performance improvements when applied to high-quality, clean PPG signals. The intentional, controlled perturbations help the model generalize better. When an input is already heavily corrupted by real-world noise, adding more distortion via ITA provides limited benefit.
  • Empirical Noise Wins: When injecting noise, sampling directly from the real physiological signal's empirical distribution proved far more effective than using theoretical distributions like Gaussian or Laplace noise. It captures the nuanced, real-world imperfections inherent to the sensors.
  • Geometric Margin Widening: Using a novel visualization technique called Decision-Aligned Principal Component Analysis (DA-PCA), the authors demonstrated that ITA physically shifts test features away from the decision boundary in the latent space, widening the discriminative margin between AF and non-AF classes.

Key Results

The framework was tested using two deep learning architectures: a transformer-based foundation model (GPT-PPG, in 19M and 85M sizes) and a convolutional baseline (ResNet34).

  • Standard ITA Performance: Consistently improved the Area Under the Receiver Operating Characteristic (AUROC) and Precision-Recall (AUPRC) curves across all datasets. GPT-PPG saw improvements of up to 8.5% in AUROC and 10.6% in AUPRC. ResNet34 saw smaller but steady gains (up to 0.7% AUROC and 0.8% AUPRC).
AUROC and AUPRC improvements across different models and datasets using the proposed ITA framework.
  • False Positive Reduction: The Selective ITA strategy successfully reduced the average False Positive Rate (FPR) on non-AF datasets by up to 4.4% for GPT-PPG and 1.3% for ResNet34, proving its viability as a reliable second-stage validation gate for clinical alarm systems.

Limitations and Future Work

  • Computational Latency: Generating and processing multiple augmented variants at inference time inherently increases computational overhead. This could pose challenges for real-time processing on ultra-low-power wearable hardware.
  • Simplistic Selection Criteria: The selective ITA strategy currently relies on a binary "initially positive" trigger. The authors note that future iterations could benefit from more sophisticated, entropy- or confidence-aware decision rules to dynamically determine exactly when an input requires augmentation.
  • Modality Scope: While the framework is mathematically generalizable to any 1D physiological signal (like ECG, EEG, or EMG), this study only validated its performance on PPG-based AF detection.

Summary updated

BibTeX
@misc{fattahi2026comprehensive,
  author = {Davood Fattahi and Runze Yan and Saurabh Kataria and Zhaoliang Chen and Xiao Hu},
  title = {{A Comprehensive Inference-Time Augmentation Framework in Physiological Signals: Application to PPG-Based AF Detection}},
  year = {2026},
  eprint = {2606.10410},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.10410},
}
Figure