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 implement DTCWT to 1-D signals? #35

Open
QuasiLegendre opened this issue Dec 10, 2021 · 10 comments
Open

How to implement DTCWT to 1-D signals? #35

QuasiLegendre opened this issue Dec 10, 2021 · 10 comments

Comments

@QuasiLegendre
Copy link

QuasiLegendre commented Dec 10, 2021

Thanks for such a convenient framework! Is there anyway or method to implement DTCWT to 1-D signals? Also, does DTCWT has advantage over DWT in signal processing?

@fbcotter
Copy link
Owner

Hi @QuasiLegendre, it's not currently available in this repo but it wouldn't be too hard to add if it would be of use. As for the advantages of the DTCWT over the DWT - yes there are indeed! I'll refer you to the journal paper here: https://eeweb.engineering.nyu.edu/iselesni/pubs/CWT_Tutorial.pdf, in particular note the 4 problems mentioned in the introduction.

However, the DTCWT does add some complexity too, so it's hard to say if it's worth the extra effort. What's the use case you're thinking of?

@QuasiLegendre
Copy link
Author

QuasiLegendre commented Dec 16, 2021

Thanks for your advice! My use case is to find a optimized wavelet filtering/smoothing method for my particular 1-D real signal for signal anomaly detection in the next step(LSTM/GRU or 1-D CNN).
image
The signal is shown above, the red-labeled part is abnormal signal, while the blue part is referred as normal signal. The x axis means time, and y axis is voltage.

@fbcotter
Copy link
Owner

If you want to get good localisation of the signal then yes perhaps the DTCWT will be a good one to use. I can make a 1D version of it for you but it may take a couple of days. In the meantime, I'd suggest first trying with the DWT to see how well it works though.

@QuasiLegendre
Copy link
Author

QuasiLegendre commented Dec 21, 2021

I will take your advice and try DWT in several days. Thank you the recommendation and help!

@lostmsu
Copy link

lostmsu commented Apr 18, 2022

@fbcotter any plans to release 1.3 with 1D DWT?

@fbcotter
Copy link
Owner

Do you mean a 1D DTCWT? There already should be a 1D DWT in there. I see I haven't made docs for it though, so maybe you just didn't see it.

from pytorch_wavelets import DWT1DForward, DWT1DInverse

@lostmsu
Copy link

lostmsu commented Apr 20, 2022

@lostmsu no, I mean PyPi only has 1.2, so to get 1.3 one currently needs to install from source.

@fbcotter
Copy link
Owner

Oh I see. Sure, I can do that

@naba89
Copy link

naba89 commented Mar 21, 2023

Hey, did you ever get around to implementing the 1D DTCWT?

@Tokenmw
Copy link

Tokenmw commented Sep 9, 2023

Hello, I would like to ask if you have implemented DTCWT to 1-D signals? Thank you so much.

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

5 participants