Abstract
Wearable photoplethysmography (PPG) is embedded in billions of devices, yet its optical waveform is easily corrupted by motion, perfusion loss, and ambient light, jeopardizing downstream cardiometric analytics. Existing signal-quality assessment (SQA) methods rely either on brittle heuristics or on data-hungry supervised models. We introduce the first fully unsupervised SQA pipeline for wrist PPG. Stage 1 trains a contrastive 1-D ResNet-18 on 276 h of raw, unlabeled data from heterogeneous sources, yielding optical-emitter- and motion-invariant embeddings. Stage 2 converts each 512-D encoder embedding into a 4-D topological signature via persistent homology (PH) and clusters these signatures with HDBSCAN. To produce a binary signal-quality index (SQI), the acceptable PPG signals are represented by the densest cluster. Without re-tuning, the SQI attains high clustering performance (Silhouette score 0.72) on a stratified sample of 10,000 windows. This hybrid self-supervised-learning–topological-data-analysis (SSL–TDA) framework offers a drop-in, scalable, cross-device quality gate for PPG signals.
Introduction
Photoplethysmography (PPG) is the optical technology used by billions of wearables to track heart rate, oxygen saturation ($SpO_2$), and blood pressure. However, PPG signals are notoriously "fragile"—they are easily corrupted by a user moving their arm, poor skin contact, or ambient light.
Current solutions to filter out this "junk" data usually fall into two camps:
- Brittle Heuristics: Simple rules that break whenever a manufacturer changes hardware designs or LED specifications.
- Supervised Deep Learning: Models that require expensive, human-labeled data for every new device on the market, which is difficult to scale.
This study proposes a "device-agnostic" quality gate that can be integrated into any wearable's software pipeline to filter out bad data automatically without requiring manual labeling.
Methodology
The proposed pipeline consists of two main stages: representation learning and topological clustering.
Stage 1: Contrastive Representation Learning
A 1-D ResNet-18 encoder is trained using a contrastive objective. By processing augmented versions of the same signal (e.g., adding noise or time-warping), the model learns to map an 8-second window of raw PPG into a 512-dimensional embedding. This embedding captures the essential morphology of the pulse while ignoring device-specific artifacts and noise.
Stage 2: Topology-Driven Quality Discovery
Instead of clustering high-dimensional vectors directly, the system treats the embedding as a signal and applies Persistent Homology (PH). This tool from Topological Data Analysis identifies periodic "shapes" (loops and peaks) in the data. The 512-D embedding is condensed into a 4-number topological signature, which is then grouped using HDBSCAN. The largest, densest cluster is identified as clean PPG, while smaller clusters represent motion artifacts and noise.
Datasets
The model was trained on 276 hours of unlabeled wrist-PPG data from two sources:
- WildPPG: 216 hours recorded at 128 Hz (mostly clean).
- We-Be: 60 hours recorded at 25 Hz (motion-rich and noisy).
Training on these heterogeneous sources ensured the model learned to be truly device-agnostic across different sampling rates.
Key Results
The fusion of SSL and TDA is critical for performance. Ablation studies showed that removing the TDA step caused the Silhouette score to drop from 0.72 to a nearly useless 0.05.
- Clustering Performance: The pipeline achieved a Silhouette score of 0.72 and a Davies-Bouldin score of 0.34, indicating well-separated and compact clusters.
- Convergent Validity: The unsupervised pipeline showed high agreement with established signal quality tools like NeuroKit2 (82.2%) and pyPPG (87.4%).
Conclusion
This SSL-TDA framework provides a scalable, unsupervised solution for PPG signal-quality assessment. By moving from a high-dimensional "black box" to a compact topological signature, the model becomes more transparent and efficient for low-power wearables. Future work includes validating against clinical gold standards and integrating accelerometer data to further refine noise identification.
Summary updated