A Self-Supervised Algorithm for Denoising Photoplethysmography Signals for Heart Rate Estimation From Wearables

Pranay Jain, Cheng Ding, Cynthia Rudin, Xiao Hu

Abstract: Smartwatches and other wearable devices are equipped with photoplethysmography (PPG) sensors for monitoring heart rate and other aspects of cardiovascular health. However, PPG signals collected from such devices are susceptible to corruption from noise and motion artifacts, resulting in inaccuracies during heart rate estimation. Conventional denoising methods filter or reconstruct signals in ways that eliminate morphological information, even from the clean segments of the signal that should ideally be preserved. In this work, we develop an algorithm for denoising PPG signals that reconstructs the corrupted parts of the signal, while preserving the clean parts of the PPG signal. Our novel framework relies on self-supervised training, where we leverage a large database of clean PPG signals to train a denoising autoencoder. As we show, our reconstructed signals provide better estimates of heart rate from PPG signals than the leading heart rate estimation methods. Further experiments show improvement in heart rate variability (HRV) estimation from PPG signals using our algorithm. We conclude that our algorithm denoises PPG signals in a way that can improve downstream analysis of health metrics from wearable devices.

Introduction

Photoplethysmography (PPG) is the optical technology used by smartwatches to measure heart rate by detecting light absorption changes in the bloodstream. While convenient, PPG is notoriously sensitive to motion artifacts (MA)—noise caused by movement, sweat, or ambient light.

Current solutions generally fall into two categories: direct estimation models that act as "black boxes" to output heart rate values, and full signal reconstruction models. While direct estimation can be accurate, it often fails to provide a clean signal for further health analyses. Conversely, full reconstruction often inadvertently distorts the "clean" parts of the signal, losing vital morphological information such as the specific shape of the pulse wave.

To address this, we introduce SPEAR (Self-supervised PPG Erase Artifacts and Reconstruct), a novel algorithm that selectively denoises wearable heart rate signals. By identifying and "erasing" only the corrupted segments of a signal and using a denoising autoencoder to reconstruct them, SPEAR preserves the integrity of clean data while significantly improving the accuracy of both heart rate and heart rate variability (HRV) metrics.

The SPEAR Framework

The SPEAR pipeline is designed to fix only what is broken while leaving high-quality segments untouched. The process involves three primary steps: artifact detection, erasing, and self-supervised reconstruction.

Overview of the SPEAR training and evaluation pipeline.
  1. Artifact Detection: Using an off-the-shelf segmentation model (Segade), the algorithm identifies specific regions in a 30-second PPG window that are corrupted by noise.
  2. Erasing: Instead of trying to "filter" the noise, SPEAR simply zeroes out (erases) the corrupted segments.
  3. Self-Supervised Reconstruction: This is the core innovation. The authors trained a Denoising Autoencoder (DAE) to fill in the blanks. By treating denoising as an "in-painting" problem, the network learns the underlying "grammar" of a healthy PPG wave, allowing it to realistically reconstruct missing segments during real-world use.

Training and Datasets

The study leverages two major datasets to balance scale and ground-truth accuracy. The Stanford Dataset, a collection of PPG signals from 149 subjects (62,000 training samples), was used primarily for the self-supervised training of the reconstruction model. The PPG-DaLiA dataset, which includes synchronized ECG signals (the gold standard for heart rate), served as the primary benchmark for evaluation.

Detailed view of the self-supervised training process using masked clean signals.

What makes the training "Self-Supervised" is that the authors took thousands of clean PPG signals, randomly masked (erased) parts of them, and challenged the network to reconstruct the missing pieces. This avoids the need for hard-to-collect simultaneous noisy and clean real-world signal pairs.

Key Results and Insights

SPEAR demonstrated superior performance across multiple benchmarks:

  • Heart Rate Accuracy: On the Stanford test set, SPEAR achieved a Mean Absolute Error (MAE) of 3.18 bpm, outperforming all baselines. On the PPG-DaLiA set, its error was 5.36 bpm, on par with fully supervised models.
  • HRV Improvement: SPEAR reduced the error in HRV metrics (SDNN) by approximately 62% compared to using raw, unfiltered signals.
  • Activity Robustness: The model was particularly effective during "daily life" activities, such as driving, where error was only 5.75 bpm, compared to over 13-18 bpm for some baseline models.

By decoupling detection from removal, SPEAR ensures that the "good" parts of the signal remain 100% faithful to the original sensor data. This high-fidelity reconstruction is what enables accurate HRV estimation, which requires measuring the exact time between individual heartbeats.

Limitations and Future Work

SPEAR's effectiveness is dependent on its noise detector; if the initial segmentation model fails to label a noisy region, it won't be fixed. Additionally, the model still struggles with very high-intensity, rhythmic motion where noise frequencies overlap with heart rate frequencies. Future research will focus on expanding training data to include a wider variety of physical activities and physiological conditions, such as arrhythmias.

Summary updated

BibTeX
@article{jain2024self,
  author = {Pranay Jain and Cheng Ding and Cynthia Rudin and Xiao Hu},
  title = {{A Self-Supervised Algorithm for Denoising Photoplethysmography Signals for Heart Rate Estimation From Wearables}},
  journal = {Harvard Data Science Review},
  year = {2024},
  doi = {10.1162/99608f92.8636cb81},
}
Figure