neuropsychology / NeuroKit

NeuroKit2: The Python Toolbox for Neurophysiological Signal Processing
https://neuropsychology.github.io/NeuroKit
MIT License
1.53k stars 410 forks source link

[Feature] PPG peak detection: Add MSPTDfast algorithm (Charlton et al., 2024) #1018

Closed peterhcharlton closed 1 month ago

peterhcharlton commented 2 months ago

Added MSPTDfast algorithm (v.1.1) for PPG beat detection.

Description

This PR aims at adding the MSPTDfast algorithm (v.1.1) for PPG beat detection. This algorithm is a python implementation of the Matlab algorithm available at: https://github.com/peterhcharlton/ppg-beats/blob/main/source/msptdfastv1_beat_detector.m .

Proposed Changes

I changed the ppg_findpeaks() function by adding this additional beat detection method.

Checklist

Here are some things to check before creating the PR. If you encounter any issues, do let us know :)

DominiqueMakowski commented 1 month ago

Thanks a lot @peterhcharlton ! and sorry for the late reply

danibene commented 1 month ago

Hi @DominiqueMakowski I saw you assigned me this then merged, any action needed on my part?

DominiqueMakowski commented 1 month ago

Yeah I checked and thought it was unnecessary to tag you on this one as well (but it was too late :p )