Search code examples
c++algorithmtime-seriessignal-processingdata-analysis

detect start / end of signal peak in time stamp - data series


I have a data file contains timestamps - data signals.

I was trying to detect the peak of the signals as well as the start and end of the peaks.

Referred to this post, I could detect the peak with no issue.

The questions is how to robustly detect the start / end of the peak signals?

How do I detect the start of continuous rising, or the end of continuous decreasing trend of the signals?

enter image description here

I am very new to digital signal processing. Any advise are welcome.


Solution

  • I followed this matlab findpeaks link to define the start and end of peaks.

    It describes the definition of prominence (thus the width) of peaks.

    enter image description here