Built from 0, do not using any existing libraries or API. All created(except dataset) by myself. I used the same dataset as toyexample as an example, thanks to the https://github.com/she014/PPG-signal-analysis-photoplythesmogram-.
whole graph:
peak graph: