An Algorithm for Real-Time Pulse Waveform Segmentation and Artifact Detection in Photoplethysmograms | Synapse