Source-linked AI summary

Large-scale Training of Foundation Models for Wearable Biosignals

Salar Abbaspourazad, Oussama Elachqar, Andrew C. Miller, Saba Emrani, Udhyakumar Nallasamy, Ian Shapiro

arXiv:2312.05409v2cs.LGcs.AIeess.SP

TL;DR

Wearable biosignal research lacks large, medically annotated datasets, limiting development of broadly useful biomarkers. The paper pre-trains PPG and ECG foundation models on large longitudinal AHMS data using participant-level pairing, stochastic augmentation, regularized contrastive learning, and momentum training. The resulting embeddings encode demographic and health-condition information across wearable consumer-device data, supporting reduced reliance on labeled data within the studied scope.

  • Problem

    Wearable biosignal datasets with medical labels are scarce, while existing health datasets are generally small and often collected in clinical or controlled settings.

    Source: §1 · p. 1, §2 · p. 2
  • Method

    The authors pre-train PPG and ECG encoders on AHMS data using participant-level positive pairs, stochastic augmentation, regularized InfoNCE, and momentum training.

    Source: §1 · p. 2, §3.1 · p. 3, §3.3 · p. 4
  • Results

    Pre-trained PPG and ECG embeddings encode participant demographics and information predictive of a broad range of self-reported health conditions and medication categories.

    Source: §5.1 · pp. 6–7, §6 · p. 9
  • Takeaways & Limitations

    Large-scale wearable PPG and ECG foundation models can provide reusable representations that reduce reliance on labeled biosignal data within the studied setting.

    Source: §1 · p. 2, §6 · p. 9

Abstract

from arXiv · show

Tracking biosignals is crucial for monitoring wellness and preempting the development of severe medical conditions. Today, wearable devices can conveniently record various biosignals, creating the opportunity to monitor health status without disruption to one's daily routine. Despite widespread use of wearable devices and existing digital biomarkers, the absence of curated data with annotated medical labels hinders the development of new biomarkers to measure common health conditions. In fact, medical datasets are usually small in comparison to other domains, which is an obstacle for developing neural network models for biosignals. To address this challenge, we have employed self-supervised learning using the unlabeled sensor data collected under informed consent from the large longitudinal Apple Heart and Movement Study (AHMS) to train foundation models for two common biosignals: photoplethysmography (PPG) and electrocardiogram (ECG) recorded on Apple Watch. We curated PPG and ECG datasets from AHMS that include data from ~141K participants spanning ~3 years. Our self-supervised learning framework includes participant level positive pair selection, stochastic augmentation module and a regularized contrastive loss optimized with momentum training, and generalizes well to both PPG and ECG modalities. We show that the pre-trained foundation models readily encode information regarding participants' demographics and health conditions. To the best of our knowledge, this is the first study that builds foundation models using large-scale PPG and ECG data collected via wearable consumer devices $\unicode{x2013}$ prior works have commonly used smaller-size datasets collected in clinical and experimental settings. We believe PPG and ECG foundation models can enhance future wearable devices by reducing the reliance on labeled data and hold the potential to help the users improve their health.

1 INTRODUCTION

Wearable PPG and ECG offer broad biosignal information, but limited, costly, weakly annotated medical datasets constrain deep-learning biomarker development. The paper addresses this gap by pre-training foundation models on large-scale AHMS wearable data with a self-supervised framework.

  • Curated medical labels are scarce because health studies are costly, expertise-intensive, and typically involve limited participants, reducing model generalizability.Source: §1 · p. 1
  • Self-supervised learning can pre-train biosignal foundation models without explicit labels, making it suitable for unlabeled wearable data.Source: §1 · p. 1
  • Prior biosignal self-supervised studies mostly used clinical or controlled data, whereas wearable accelerometer work has begun addressing free-living conditions.Source: §1 · p. 2
  • The study trains PPG and ECG foundation models on 141,207 AHMS participants using participant-level pair selection, stochastic augmentation, momentum training, and regularized InfoNCE.Source: §1 · p. 2
  • The pre-trained embeddings are evaluated for demographic and health information, with ablations covering pair selection, modality differences, training frameworks, architectures, model sizes, and augmentations.Source: §1 · p. 2

2 RELATED WORK

Self-supervised learning has demonstrated value for downstream representation learning, but health applications have generally relied on small clinical or controlled datasets. This work extends the setting to large-scale PPG and ECG collected from wearable consumer devices.

  • Joint embedding architectures use contrastive or non-contrastive objectives, often combining mechanisms that prevent representation collapse.Source: §2 · p. 2
  • Health self-supervised learning studies usually use datasets containing only hundreds or thousands of participants recorded in clinical or controlled settings.Source: §2 · p. 2
  • Self-supervised learning has been effective across health applications, while wearable accelerometer studies have begun using large free-living datasets.Source: §2 · p. 2
  • The authors present the first study, to their knowledge, to pre-train foundation models from large-scale wearable-consumer-device PPG and ECG data.Source: §2 · p. 2

3 SELF-SUPERVISED PRE-TRAINING

The pre-training framework learns participant-relevant biosignal representations by pairing different segments from each participant, stochastically augmenting them, and optimizing regularized InfoNCE with momentum training. Its design adapts augmentation strength and momentum to differences between PPG and ECG variability.

3.1 POSITIVE PAIR SELECTION AND AUGMENTATIONS

  • Participant-level positive pairs use augmented views of two different segments from the same participant, and this strategy significantly improves embedding quality and utility.Source: §3.1 · p. 3
  • The stochastic augmentation module combines cropping, noise, time warping, magnitude warping, and channel operations, with stronger probabilities for ECG because it has less within-participant variability.Source: §3.1 · p. 3

3.2 REGULARIZED INFONCE LOSS

  • InfoNCE contrasts positive-pair representations against other batch samples to avoid collapse, while KoLeo regularization encourages a uniform feature span.Source: §3.2 · p. 3

3.3 MOMENTUM TRAINING

  • The pre-training data are partitioned into 80% training, 10% validation, and 10% occasional post-training assessment participants.Source: Table 1 · p. 4
  • Momentum training updates an online encoder by backpropagation and a momentum encoder by lagging exponential moving average, increasing mismatch between positive representations.Source: §3.3 · pp. 3–4

4 EXPERIMENTS

Experiments use large Apple Watch PPG and ECG datasets, participant-level downstream evaluation, and specified self-supervised model implementations. Health-information encoding is assessed by comparing embedding-based linear probes with baseline features.

4.1 DATASETS

  • ∼20M PPG segments from ∼141K participants and ∼3.75M ECG segments from ∼106K participants form the pre-training datasets.PPG recordings are 60 seconds, while ECG recordings are 30 seconds; both datasets impose minimum per-participant segment counts and apply modality-specific preprocessing.Source: §4.1 · p. 4

4.2 EVALUATION METRICS

  • Downstream evaluation predicts age, biological sex, and BMI using participant-level linear probing with participant-disjoint stratified splits.Classification uses AUC and pAUC at 10% false-positive rate, while regression uses mean absolute error.Source: §4.2 · pp. 4–5
  • Survey-question targets are evaluated by comparing AUC from PPG embeddings with a baseline containing demographics and measured heart rate.The survey targets include health conditions, medications, and lifestyle habits, with training and evaluation splits stratified by participant.Source: §4.2 · p. 5
  • Smooth effective rank provides an unsupervised proxy for downstream evaluation by measuring entropy in the embeddings’ singular-value distribution.The metric is averaged across batches of 256 in the pre-training validation split.Source: §4.2 · p. 5

4.3 IMPLEMENTATION DETAILS

  • The default encoder is an EfficientNet-style 1D convolutional network producing 256-dimensional embeddings, with modality-specific parameter counts for PPG and ECG.The projection head maps embeddings into a 128-dimensional loss space; training uses InfoNCE temperature 0.04, KoLeo weight 0.1, Adam, and 32 A100 GPUs.Source: §4.3 · pp. 5–6
  • Figure 1 compares embedding-based and baseline ROC AUC values for AHMS survey targets separately for PPG and ECG.Each marker denotes one questionnaire target, with embedding ROC AUC on the y-axis and baseline-feature ROC AUC on the x-axis.Source: Figure 1 · p. 6

5 RESULTS

Across six results subsections, the foundation models encoded participant demographics and health information, while PPG and ECG showed distinct embedding behavior and design sensitivities.

5.1 PPG AND ECG FOUNDATION MODELS ENCODE PARTICIPANTS HEALTH INFORMATION

  • PPG embeddings almost always outperformed baseline demographic and heart-rate features for predicting downstream health conditions, whereas ECG embeddings encoded less participant-health information overall.The PPG advantage was not explained by the larger PPG dataset, since a smaller PPG model with ECG-comparable segment counts still performed significantly better.Source: §5.1 · pp. 6–7

5.2.1 POSITIVE PAIR SELECTION

  • Participant-level positive pairs consistently produced more predictive PPG and ECG models than segment-level positive pairs.The improvement held for evaluations at both participant and segment granularity.Source: §5.2.1 · p. 7

5.2.2 DISTINCTIONS IN PPG AND ECG PRE-TRAINING AND EMBEDDINGS

  • ECG embeddings formed denser participant clusters, had significantly smaller validation InfoNCE loss, and showed statistically smaller dispersion ratios than PPG embeddings.The dispersion ratio measures within-participant variability relative to across-participant variability; Figure 2 summarizes the t-SNE, InfoNCE, and dispersion comparisons.Source: §5.2.2 · p. 7, Figure 2 · p. 8

5.2.3 PRE-TRAINING FRAMEWORK

  • Contrastive frameworks were generally more robust and informative than the compared non-contrastive or baseline variations, while removing KoLeo regularization reduced evaluation metrics for both modalities.InfoNCE and smooth effective rank correlated with downstream performance but were not directly comparable across PPG and ECG modalities.Source: §5.2.3 · p. 8, Table 3 · p. 9

5.2.4 ENCODER ARCHITECTURE

  • 1D-EfficientNet achieved performance similar to alternative 1D-ResNet and 1D-ViT encoders with significantly fewer parameters.Its smaller memory footprint motivated its selection as the default backbone for potential wearable-device use.Source: §5.2.4 · p. 8, Table 4 · p. 9

5.2.5 AUGMENTATIONS

  • PPG pre-training was more sensitive to the choice of single augmentation, while channel permute and cut out were the most effective isolated augmentations for PPG and ECG, respectively.The augmentation module was not comprehensively tuned, and modality-specific augmentation design remains a future direction.Source: §5.2.5 · p. 9

6 DISCUSSION, LIMITATIONS AND FUTURE WORK

The discussion reports that PPG and ECG foundation-model embeddings encode demographics and information predictive of self-reported health conditions, while identifying label quality, other biomarkers, modality-specific design, and longitudinal modeling as open issues.

  • The models encoded demographics accurately and information predictive of a broad range of self-reported health conditions and medication categories.The downstream labels were opportunistically constructed from self-reported surveys and may be suboptimal compared with more accurate labels.Source: §6 · p. 9
  • Because the targets came from self-reported surveys, future work should quantify these predictions using more accurate labels.Source: §6 · p. 9
  • Heart rate, heart-rate variability, and physical activity remain valuable health-related biomarkers whose relationships with PPG and ECG embeddings require further examination.Source: §6 · p. 9
  • Future work could improve the framework through modality-specific designs, longitudinal embedding analysis, and multimodal pre-training.Source: §6 · p. 9

REPRODUCIBILITY STATEMENT

The study’s aggregated supporting data may be available on request, but the collected sensor data cannot be shared under the approved consent language.

  • Aggregated data may be made available on request, whereas the study’s sensor data cannot be shared because of the Apple Heart and Movement Study protocol and informed-consent restrictions.Code may also be available on request subject to participant-confidentiality and protocol policies.Source: REPRODUCIBILITY STATEMENT · p. 10

A.1 SUPPLEMENTARY TRAINING DETAILS

The supplementary details describe fixed training choices, limited augmentation-probability tuning, and encoder-specific implementation adjustments used across the experiments.

  • The framework and BYOL used a constant momentum rate of 0.99, while most models used batch size 256 and initial learning rate 0.001.BYOL used an initial learning rate of 0.00025, and step scheduling was used for faster convergence.Source: §A.1 · p. 15
  • Augmentation probabilities were not comprehensively tuned; ECG probabilities were instead doubled to create stronger positive-pair mismatch.The starting probabilities were based on prior work, with cut out initially assigned a higher probability.Source: §A.1 · p. 15
  • The 1D-ViT used linear learning-rate warmup for its first 10 epochs to support more stable and optimal training.The 1D-ResNet and 1D-ViT otherwise used training details similar to the default 1D-EfficientNet.Source: §A.1 · p. 15

A.2 SUPPLEMENTARY DATASET DETAILS

The supplementary dataset details describe AHMS participant surveys, processed PPG and ECG examples, and the demographic distributions used in analyses.

  • AHMS demographic distributions cover age, BMI, biological sex, and ethnicity among participants who answered the corresponding surveys.Source: §A.2 · p. 15
  • Processed PPG and ECG signals are illustrated as representative 10-second segments in arbitrary units.Source: §A.2 · p. 15
  • Survey analyses use each participant’s latest questionnaire entry before 01/28/2022.The survey includes medical conditions, medications, drinking, and smoking questions, with binary-label logic defined for drinking and smoking targets.Source: §A.2 · p. 15

A.3 SUPPLEMENTARY RESULTS

The supplementary results provide linear-probing evaluations, framework comparisons, and augmentation-function analyses for the learned representations.

  • Table 9 reports linear-probing evaluations of the targets shown in Fig. 1.Source: §A.3 · p. 15
  • Table 12 compares downstream age, biological sex, and BMI performance across the proposed framework, SimCLR, and BYOL.Source: §A.3 · p. 16
  • Figure 7 compares smooth effective rank after pre-training with each augmentation function isolated for PPG and ECG.The comparison also includes the full augmentation module.Source: §A.3 · p. 16

A.4 SUPPLEMENTARY DISCUSSION

The supplementary discussion documents evaluation context, the pre-training algorithm and architecture, signal and survey materials, and the tables and figures supporting downstream analyses.

A.4 SUPPLEMENTARY DISCUSSION

  • PPG embeddings are compared with prior demographic-prediction results, while age and BMI comparisons are qualified by differing cutoffs and dataset distributions.Prior biological-sex results are reported as lower than the PPG and ECG embedding results for one cited comparison, whereas some age and BMI results are not directly comparable.Source: §A.4 · p. 16
  • The framework forms positive pairs from augmented views of different segments belonging to the same participant.Source: Figure 3 · p. 17, §A.4 · p. 17
  • Training combines two cross-view contrastive losses with KoLeo regularization and updates the momentum encoder as an exponential moving average of the online encoder.Source: §A.4 · p. 17
  • The encoder architecture uses one-dimensional convolutional blocks, batch normalization, Swish activation, MBConv1D modules, and average pooling for time-series input.Source: Figure 4 · p. 18
  • The supplementary figures show AHMS demographic distributions and representative processed PPG and ECG signals.Source: Figure 5 · p. 18, Figure 6 · p. 18
  • Figure 7 evaluates isolated augmentation functions against the full augmentation module for both PPG and ECG using smooth effective rank.Source: Figure 7 · p. 19
  • Supplementary tables define survey questions and target-label exclusions for medical conditions, medications, drinking, and smoking.Source: Table 5 · p. 20, Table 6 · p. 21, Table 7 · p. 22
  • Tables 9–12 cover linear probing, downstream performance, positive-pair strategies, and pre-training-framework comparisons.Source: Table 9 · p. 23, Table 10 · p. 23, Table 11 · p. 24
Loading 2312.05409v2…