 Photoplethysmography can be used for measuring oxygen saturation or assessing autonomic function. Artifacts can render the photoplethysmogram (PPG) useless. Thus, algorithms capable of identifying artifacts are important. However, the published algorithms are limited in their abilities and study design. Therefore, the authors developed a novel embedded algorithm for pulse waveform (PWF) segmentation and artifact detection in real-time.