TL;DR
Researchers have developed a hybrid approach for heart rate (HR) estimation that combines traditional signal processing with lightweight machine learning. By using signal processing to "pre-digest" noisy sensor data, they reduced the required PPG sampling frequency from 125 Hz to just 25 Hz and achieved high accuracy (~5% error) using tiny Decision Tree models that occupy only 10 KB of memory.
What Problem Does This Paper Address?
Photoplethysmography (PPG) sensors—the green lights on the back of your smartwatch—are the industry standard for wearable heart rate monitoring. However, they face two major hurdles in the world of embedded "edge" devices:
- Energy Consumption: To get accurate readings, sensors typically sample at high frequencies (125 Hz or more), which drains battery life quickly.
- Computational Complexity: Removing "motion artifacts" (noise caused by movement) usually requires either intense signal processing or massive deep-learning models (like CNNs or LSTMs) that are too large and slow for low-power microcontrollers.
The authors sought a "middle ground": a way to maintain high accuracy while drastically lowering the sampling rate and the model's computational footprint.
Methods
The authors proposed a three-stage pipeline:
- Efficient Sampling: They sample PPG data at a low frequency of 25 Hz.
- Signal Processing Refinement: Instead of feeding raw signals into an AI, they use a three-step signal processing stage to generate "rough" HR estimates. This includes:
- Initial Extraction: Counting peaks in the light signal.
- Z-score Filtering: Identifying and replacing outliers caused by sudden movement.
- Smoothing: Applying a 5% boundary rule (assuming HR doesn't jump more than 5% per second) to stabilize the data.
- Lightweight ML Inference: The "rough" HRs from the previous $k$ seconds are used as features for a simple Machine Learning model. They tested Decision Trees (DT), Random Forests (RF), K-Nearest Neighbors (KNN), Support Vector Machines (SVM), and Multi-layer Perceptrons (MLP).
The core innovation is using ML to "correct" the errors introduced by low-frequency sampling, rather than using ML to process the raw waveform itself.
Datasets
The study evaluated the method on two fronts:
- ISPC (IEEE Signal Processing Cup) 2015: A widely used benchmark containing PPG and 3-axis accelerometer data from 12 subjects performing various exercises.
- Self-Collected Dataset: To test longer durations, the authors collected 2-hour traces from a subject during daily activities (sitting, sleeping, working). They used a Raspberry Pi 4B connected to a PPG sensor, with a 3-lead ECG providing the ground truth HR.
Key Insights and Ideas
- Feature Engineering Trumps Model Complexity: By converting raw signals into a small sequence of "rough" HR values, the authors reduced the input feature size significantly. This allowed them to move away from "resource-hungry" neural networks toward classical ML.
- The Power of Decision Trees: The authors found that Decision Trees (DT) are the "sweet spot" for wearables. While Random Forests were slightly more accurate, DTs were orders of magnitude smaller and faster.
- Sampling Rate vs. Accuracy: They proved that 25 Hz is sufficient for HR estimation if you use ML to compensate for the loss of resolution. This represents a significant potential for battery savings in wearable tech.
Key Results
- Accuracy: The combined method achieved a Mean Absolute Percentage Error (MAPE) of approximately 5% using 25 Hz data. On the ISPC dataset, the error was as low as 2.62% (using Random Forest).
- Model Size: Decision Tree models were consistently the smallest, requiring only about 10 KB of storage—perfect for even the most resource-constrained microcontrollers.
- Inference Speed: DT models achieved inference times of less than 3 microseconds (µs). In contrast, models like KNN and SVM saw their sizes and latencies explode as the number of input features increased.
- Robustness: The ML-enhanced approach significantly outperformed signal-processing-only methods, which struggled with the noise inherent in low-frequency sampling.
Limitations and Future Work
- Dataset Diversity: While the ISPC dataset covers 12 subjects, the authors' own long-duration dataset only featured one subject. Future work would benefit from a larger, more diverse demographic to ensure the "smoothing" and "Z-score" parameters generalize well.
- Activity Intensity: The self-collected data focused on "daily activities" (sitting, sleeping). While the ISPC data includes exercise, further testing on high-intensity interval training (HIIT) where HR changes rapidly could further stress-test the 5% smoothing rule.
- Hardware Implementation: While the paper simulates the resource usage, the next logical step is deploying this pipeline on a true ultra-low-power MCU (like an ARM Cortex-M0) to measure actual milliamp-hour battery savings.
Summary updated