필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
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 CenterFile Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by