TL;DR
This paper introduces Tiny-PPG, a novel, lightweight deep neural network designed for real-time detection of motion artifacts in photoplethysmogram (PPG) signals. Tiny-PPG achieves state-of-the-art accuracy on complex daily activity data while being small enough to run on resource-constrained IoT devices, making it a significant step towards reliable wearable health monitoring.
What Problem Does This Paper Address?
Photoplethysmogram (PPG) signals are widely used in wearable devices for monitoring vital signs like heart rate and blood oxygen. However, these signals are notoriously susceptible to motion artifacts (MAs), which are noise introduced by the relative movement between the sensor and skin. MAs can overlap with the actual PPG signal, making them difficult to distinguish and remove. Existing methods often struggle with the diverse lengths and complex morphologies of MAs encountered during everyday activities. Furthermore, many advanced deep learning models, while accurate, are too computationally demanding and large to be deployed on low-power, embedded systems common in IoT wearables. This creates a critical need for accurate, real-time MA detection solutions that are both efficient and effective on edge devices.
Methods
The researchers developed Tiny-PPG, a deep neural network built upon a semantic segmentation architecture. This approach classifies each individual sample point of the PPG signal as either clean or containing an artifact, allowing for more precise detection than methods that segment signals into fixed windows.
Key architectural innovations include:
- Depth-wise Separable Convolution (DSC): This technique significantly reduces the number of model parameters and computations compared to standard convolutions, making the model more efficient.
- Atrous Spatial Pyramid Pooling (ASPP): ASPP uses atrous (dilated) convolutions with different rates to capture features at multiple scales, enabling the model to detect artifacts of varying sizes.
- Contrastive Learning: To improve feature representation and discrimination between clean and artifact segments, a contrastive loss function was incorporated. This loss encourages similar samples (e.g., two clean segments) to be closer in the embedding space and dissimilar samples (e.g., a clean and an artifact segment) to be further apart.
- Model Pruning: To further reduce the model size and computational load, structural pruning techniques were applied to remove unimportant convolutional channels. This was followed by fine-tuning to recover any lost accuracy.
Datasets
The study utilized the PPG-DaLiA public dataset. This dataset contains PPG signals collected from 15 subjects performing various daily activities (low, medium, and high intensity) for approximately 2 hours each, using a watch-type device (Empatica E4) at a sampling rate of 64 Hz. The dataset features complex artifacts with diverse lengths and morphologies.
Key Insights and Ideas
- Segmentation is Key: Treating MA detection as a pixel-wise (or sample-wise) segmentation problem, rather than window-based classification, offers superior temporal resolution and accuracy for artifacts of varying lengths.
- Efficiency Through Architecture: Combining Depth-wise Separable Convolutions with Atrous Spatial Pyramid Pooling provides a powerful yet computationally efficient architecture for capturing multi-scale features relevant to MA detection.
- Contrastive Learning's Nuance: While contrastive learning generally improved feature separation, its effectiveness was sensitive to the design of positive and negative pairs. Aggregating both artifact and clean samples as positive pairs yielded the best results, suggesting that learning from diverse examples within each class is crucial.
- Pruning with Fine-tuning is Essential: Model pruning can drastically reduce model size, but without subsequent fine-tuning, it can lead to a significant drop in accuracy. Fine-tuning is critical for recovering performance after pruning.
Key Results
- State-of-the-Art Accuracy: The proposed Tiny-PPG model achieved a DICE coefficient of 87.4% on the PPG-DaLiA dataset, comparable to or exceeding other state-of-the-art methods.
- Extreme Lightweight Design: The pruned Tiny-PPG model boasts a remarkably small size of 19,726 parameters (approximately 0.15 MB), making it ideal for embedded systems.
- Real-time Deployment: The model was successfully deployed on an STM32 embedded system, demonstrating real-time PPG artifact detection capabilities.
- Efficiency Gains: The pruned Tiny-PPG model achieved an MCU inference time of 206 ms for a 30-second signal segment, significantly faster than other segmentation models and requiring substantially less flash and RAM.
Limitations and Future Work
- Generalization to Diverse PPG Morphologies: The study noted that the model's performance could degrade on subjects with PPG morphologies significantly different from the training dataset. Future work should focus on improving generalization across a wider range of subjects and measurement locations.
- Contrastive Learning Pair Design: The authors suggest that further research into designing more representative positive and negative pairs for contrastive learning could further leverage its advantages.
- Exploration of Other Edge Devices: While successfully deployed on STM32, exploring deployment on other types of edge devices could broaden its applicability.
- Integration with Downstream Tasks: The paper focuses solely on artifact detection. Future work could explore how this detection can be seamlessly integrated into downstream PPG-based health monitoring tasks (e.g., heart rate estimation) to improve their robustness.
Summary updated