using Continuous Wavelet with CNN

3 ビュー (過去 30 日間)
muna
muna 2023 年 8 月 2 日
回答済み: Ashutosh 2023 年 8 月 23 日
i have different lenght recods and i want to use CWT for feature extraction to be feed to CNN. the result of using cwt(audioIn,"bump",fs) is different each time since the records are differ in length. how to use the full recording (no splitting) with cwt and have the same size output to be feed for CNN?

回答 (1 件)

Ashutosh
Ashutosh 2023 年 8 月 23 日
To ensure consistent output sizes to be fed into the Convolutional Neural Network (CNN), a "zero-padding" technique can be applied in which zeroes are added on the shorter signal so that all the signals have consistent length. The number of zeroes which must be padded can be decided by the length of the longest signal. Padding can be done with the help of the "padarray" function in MATLAB.
After this CWT can be applied to the padded audio signals whose output would be the same size which will be fed to the CNN.
Follow this link regarding the usage of "padarray" function https://in.mathworks.com/help/images/ref/padarray.html.

カテゴリ

Help Center および File ExchangeRecognition, Object Detection, and Semantic Segmentation についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by