GPT-PPG: A GPT-based Foundation Model for Photoplethysmography Signals

Zhaoliang Chen, Cheng Ding, Saurabh Kataria, Runze Yan, Minxiao Wang, Randall J. Lee, Xiao HuPhysiological 2025

TL;DR

This paper introduces GPT-PPG, a novel foundation model based on the GPT architecture, specifically designed for photoplethysmography (PPG) signals. It demonstrates strong performance across various cardiovascular tasks and, uniquely, possesses inherent generative capabilities like signal denoising without further fine-tuning, showcasing the potential of GPTs for biomedical signal analysis.

What Problem Does This Paper Address?

The paper tackles the challenge of effectively analyzing photoplethysmography (PPG) signals for a wide range of biomedical tasks. While deep learning has shown promise, PPG signals are often noisy, subject to motion artifacts, and exhibit significant variability. Traditional methods often require task-specific architectures and extensive labeled data, which can be scarce. The authors aim to leverage the power of foundation models, specifically Generative Pre-trained Transformers (GPTs), to create a versatile model that can be adapted to various downstream PPG analysis tasks with improved performance and generative capabilities.

Methods

The core of the paper is the adaptation of the GPT architecture for continuous PPG signals. Key methodological contributions include:

  • GPT Architecture Adaptation: The standard GPT architecture is modified to handle the continuous nature of PPG signals. This involves segmenting signals into patches and using a learnable vector prepended to the embedded sequence to act as a consistent starting point.
  • Large-Scale Pre-training: The model is pre-trained on an extensive dataset of over 200 million 30-second PPG samples.
  • Mixed-Objective Fine-tuning: A novel framework is proposed that combines a task-specific objective loss (e.g., MSE for regression, cross-entropy for classification) with a signal modeling loss (logit-Laplace distribution loss) derived from the downstream dataset. This helps the model adapt to the specific distribution of the target data.
  • Parameter-Efficient Fine-tuning (PEFT): Techniques like freezing GPT layers and using a "fallback method" are explored to reduce computational costs during fine-tuning, making the models more accessible.
  • Bidirectional Feature Extraction: An extension is introduced to enable bidirectional attention, allowing the model to capture context from both past and future patches, leading to improved performance, especially on datasets with distribution shifts.

Datasets

  • Pre-training Dataset: A large, de-identified dataset from the University of California, San Francisco (UCSF) Medical Center, comprising over 2.6 million hours of continuous physiological signals, including one-channel PPG.
  • Downstream Task Datasets:
    • Atrial Fibrillation (AF) Detection: Stanford dataset [33].
  • Heart Rate Estimation: WESAD [38], DaLiA [39], and IEEE [40] datasets.
  • Respiration Rate Estimation: BIDMC dataset [41].
  • Blood Pressure Estimation: PulseDB [45] (based on MIMIC-III [46] and VitalDB [47]).

Key Insights and Ideas

  • GPTs Excel at PPG: The GPT architecture, traditionally used for text, proves highly effective for continuous time-series data like PPG, capturing complex temporal dependencies.
  • Generative Power Beyond Prediction: A significant finding is GPT-PPG's inherent ability to perform generative tasks like signal denoising without explicit fine-tuning for this purpose, a direct benefit of its generative pre-training.
  • Distribution Alignment is Crucial: The mixed-objective fine-tuning, incorporating a signal modeling loss on the downstream data, is vital for adapting the model to potentially different data distributions and achieving optimal performance.
  • Parameter Efficiency Matters: Freezing pre-trained layers and employing methods like the fallback approach significantly reduces fine-tuning costs while retaining strong performance, making foundation models more practical.
  • Bidirectionality Boosts Performance: Enabling bidirectional attention, despite increased computational cost, leads to superior feature extraction and better performance, especially when downstream data distributions differ from pre-training.

Key Results

  • State-of-the-Art Performance: GPT-PPG achieved performance comparable to or surpassing state-of-the-art (SOTA) methods across various tasks, including AF detection (F1 score up to 0.847 for GPT-1B), heart rate estimation (MAE as low as 1.98±0.9 on IEEE dataset for GPT-1B), respiration rate estimation (MAE as low as 0.93±0.21 for GPT-1B), and blood pressure estimation (MAE as low as 8.12 for SBP and 6.78 for DBP for GPT-1B).
  • Signal Denoising: The model demonstrated effective signal reconstruction even when up to 50% of the signal was masked, with reasonable MAE (<0.1) for mask ratios under 40%.
  • Scaling Benefits: Performance generally increased with model size, with the 85M parameter model offering a good balance between performance and computational efficiency.
  • Personalization Improves Robustness: Test-time domain adaptation (personalization) using a small portion of test subject data significantly improved heart rate estimation performance, demonstrating adaptability to individual variations.

Limitations and Future Work

  • Pre-training Data Diversity: The pre-training was conducted on a single PPG dataset. Future work should explore the impact of more diverse pre-training data on generalization.
  • Edge Deployment: The large size of foundation models poses challenges for edge deployment. Model distillation to smaller sizes is suggested.
  • Architectural Comparisons: A direct comparison with encoder-only models pre-trained on the same dataset was not performed.
  • Broader Task Coverage: The study was limited to cardiovascular applications. Expanding to a wider range of physiological tasks is recommended.
  • Patch-based Processing Assumption: The assumption of independent predictability within patches might not hold for all signals. Exploring patch-free sequence modeling methods like Mamba is suggested.
  • Generalization to Unseen Distributions: While the mixed-objective approach helps, challenges in generalization to unseen distributions remain, highlighting the need for further advancements. Future work will focus on expanding task coverage, improving performance on noisier datasets, and enhancing generalization through more diverse pre-training data.

Summary updated

Abstract

This study introduces a novel application of a Generative Pre-trained Transformer (GPT) model tailored for photoplethysmography (PPG) signals, serving as a foundation model for various downstream tasks. Adapting the standard GPT architecture to suit the continuous characteristics of PPG signals, our approach demonstrates promising results. Our models are pre-trained on our extensive dataset that contains more than 200 million 30s PPG samples. We explored different supervised fine-tuning techniques to adapt our model to downstream tasks, resulting in performance comparable to or surpassing current state-of-the-art (SOTA) methods in tasks like atrial fibrillation detection. A standout feature of our GPT model is its inherent capability to perform generative tasks such as signal denoising effectively, without the need for further fine-tuning. This success is attributed to the generative nature of the GPT framework.
BibTeX
@misc{chen2025gpt,
  author = {Zhaoliang Chen and Cheng Ding and Saurabh Kataria and Runze Yan and Minxiao Wang and Randall J. Lee and Xiao Hu},
  title = {{GPT-PPG: A GPT-based Foundation Model for Photoplethysmography Signals}},
  year = {2025},
  eprint = {2503.08015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08015},
}
Figure