Adaptive template matching of photoplethysmogram pulses to detect motion artefact. (12th October 2018)