Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to select a proper method for detecting onset of signals? #239

Closed
yijun1994 opened this issue Feb 28, 2022 · 8 comments
Closed

How to select a proper method for detecting onset of signals? #239

yijun1994 opened this issue Feb 28, 2022 · 8 comments

Comments

@yijun1994
Copy link

I have a need for detecting change point of seismic waves, the onset seem quite obvious by visual inspection.
But costAR and costL2 seem failed to detect the change point. Could you give me some suggestions about how to select a proper cost function among presented ones?

@oboulant
Copy link
Collaborator

Hi @yijun1994 ,

Thx for your interest in ruptures.

Would you have a visual graph of those data ?

In the mean time, you can find in the documentation User Guide the list of all the cost function available in ruptures : https://centre-borelli.github.io/ruptures-docs/user-guide/

Screenshot 2022-02-28 at 11 21 11

@yijun1994
Copy link
Author

截圖 2022-02-28 下午4 21 12

The visual graph of some signal samples is displayed above. Actually, they are earthquake signals.

@deepcharles
Copy link
Owner

To detect changes in amplitude, you can use CostNormal. You can also transform you signal to only keep its enveloppe (see here) and use CostL2 on the transformed signal.

Hope this helps

@yijun1994
Copy link
Author

Thanks! I also employed kernel-based (Gaussian) method to identify the change point. I found it useful but not so precise.
I am wondering if the parameters I set is not right.
截圖 2022-02-28 下午5 22 50

@deepcharles
Copy link
Owner

The detected changes might not be at the exact location you want, because there is a small amplitude phase between the flat phase and the full amplitude phase. Some ah-hoc post-processing might be needed in any case.

@yijun1994
Copy link
Author

is 'ah-hoc post-processing' a specific method in signal processing?

@deepcharles
Copy link
Owner

No, it is whatever method you can find to add more precision if the detected changes are a bit "off".

@deepcharles
Copy link
Owner

Closing for now. Feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants