フィルターのクリア

How to obtain Shannon's entropy in specific wavelet packet tree node?

7 ビュー (過去 30 日間)
Nicolò La Porta
Nicolò La Porta 2022 年 10 月 4 日
回答済み: Sufiyan 2023 年 5 月 25 日
Hi everyone,
I'm trying to extract a subset of features from an ECG signal following some guideline I read in a paper about ECG Wavelet Packet Analysis (WPA).
In this paper the authors use 5 seconds ECG segments and decompose each one of them into eight levels resulting in 510 sub-bands. Then it is written: "The entropy of each sub-band is calculated resulting in a 510 length feature vector. In order to decrease the redundancy of each vector, best wavelet tree is calculated based on Shannon’s criterion. The best tree elements are retained in the original feature vector and the rest of the elements are set to zero."
I managed to calculate the best tree using the besttree(wtp) function but I don't understand how to retain only the best tree elements and put the other to zero. In particular I want to calculate the Shannon's entropy as feature.
Can anyone please help me?

採用された回答

Sufiyan
Sufiyan 2023 年 5 月 25 日
As you have obtained the best tree using the “besttree()”, the tree obtained will have some non-zero coefficients, which represents the best sub-bands.
The besttree() function calculates the best tree based on the entropy of the wavelet coefficients at each level of the decomposition. If the wavelet coefficients in some sub-bands have low entropy, then those coefficients may not be included in the best tree and will automatically be zero in the final matrix where you are finding the best tree using “besttree()”.
You can find more information about “besttree” in the given below link.
https://www.mathworks.com/help/releases/R2022b/wavelet/ref/wptree.besttree.html
Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Multiresolution Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by