简体   繁体   中英

How to detect sine pattern in a signal or time-series data?

I need to detect sine patterns in time-series data. Data includes small oscillations and a few numbers of sine patterns. What I need is [Start Time, End Time] of sine pattern.

Please note that there is a timestamp (0.5 second) to get data. Therefore, data is not continuous.

I appreciate it if you introduce any algorithm. Also, if the algorithm is already implemented in a python library, please guide me.

在此处输入图像描述

You may try FFT method to find a sine frequency, then use correlation with the model signal to bind it with time domain. Also you could use spectrogram analysis to get picture of your signal in time-frequency (it should looks like a line in time with the beginning and the end).

For example four sines with different frequencies may looks like on the spectrogram: 频谱图样本上的正弦

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM