Old version and new version of CWT(Continuous Wavelet transform) to detect abrupt change in signal
2 views (last 30 days)
Show older comments
Supatat Hovanotayan
on 3 Sep 2019
Commented: Supatat Hovanotayan
on 7 Sep 2019
Hello Everyone!!!
My name is Supatat Hovanotayan, I am a master student studying in mechanical engineering, The University of Tokyo.
I would like to consult you about the new and old version of continuous wavelet transform for detecting abrupt change in signal.
My supervisor he asked me to find out that we should use the old or the new version to perform CWT for our research. Now, we are doing research on detection abnormal running in railway vehicle system.
Our goal is to use CWT to detect abrupt change in signal and consider the cwt result to classify that the railway vehicle is running in normal condition or not.
These are the codes I used
Old version:
Fs = 200;
scale = 1:512;
[coef,f] = cwt(signal,scale,'morl',1/Fs);
New version
Fs = 200;
[coef,f] = cwt(signal,'amor',Fs);
In the past, I used the old version to perform CWT to detect the abrupt change in signal. And we found that we could distinguish between normal running and abnormal running easily as shown in the picture below.
![69642944_2202608286696969_5424266927155445760_n.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236765/69642944_2202608286696969_5424266927155445760_n.jpeg)
[Abnormal running condition (Using old cwt)]
![69356535_1164353800426344_1737313206080110592_n.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236766/69356535_1164353800426344_1737313206080110592_n.jpeg)
[Normal running condition (Using old cwt)]
The reason why we could distinguish because the wavelet coefficient are very high in the low frequency range for abnormal running signal. But for the normal running, the wavelet coefficient is very low in the all frequency range.
But after we used the new version, we found that the wavelet coefficient in low frequency range are not high compared to the old version’s result. It is more difficult than the old version to classify whether it is normal running or abnormal running as shown in the picture below.
![69646531_323073058479034_7943092365235847168_n.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236767/69646531_323073058479034_7943092365235847168_n.jpeg)
[Abnormal running condition (Using new cwt)]
![69509325_504444220374269_1360973809233952768_n.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236768/69509325_504444220374269_1360973809233952768_n.jpeg)
[Normal running condition (Using new cwt)]
My questions are
1. “Can I still use the old version of CWT because it look like more suitable to my research’s goal than the new version?”
2. “The old version is no longer recommended as shown on the website, it means the result from the old version of cwt are all incorrect?”
Moreover, if you have any idea on how to distinguish between normal running and abnormal running in my data, please let me know
Thank you very much for your kindness
I am looking forward to hearing from you
Best regards,
Supatat Hovanotayan
0 Comments
Accepted Answer
Wayne King
on 6 Sep 2019
Supatat, You are free to use the old CWT API if you wish. However, we recommend the newer API for reasons I've tried to explain in previous posts. However, from your screen shots above it appears to me that the normal and abnormal signals look very different in the new CWT and actually comparable to what the old CWT api gives. Can you attach these two signals and the code you are using to differentiate normal vs abnormal. Just by eye, it appears to me that the new CWT API shows a much different view of these signals.
Wayne
More Answers (0)
See Also
Categories
Find more on Continuous Wavelet Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!