You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks a lot for developing the package, I am just exploring the packages and see how it can be used to analyze some EEG signals.
I tried to compare the nk.entropy_multiscale and nk_entropy_sample within a loop of coarse-graining procedures to confirm my understanding of the computation. My codes look like the following:
As you can see, it shows striking difference after certain scale. For more information, the signal is a 245-second long recording with sampling rate of 512 Hz.
At first I thought it was because of the mismatch between the default dimension parameter between the two functions, but it remained like this even after I set both dimension to be 3. Please let me know if I am misunderstanding sth, any help is appreciated.
The text was updated successfully, but these errors were encountered:
@DominiqueMakowski Sorry for responding late, just getting back to this issue today after working on some other stuffs in the past month.
I figured out why, and it's because the nk.entropy_multiscale would use a global tolerance, which is computed only once before any coarse-graining procedures. And if we do the coarse-graining and entropy computation via nk.complexity_coarsegraining and nk.entropy_sample separately, the tolerance would change every time.
When I substitute the tolerance with the global tolerance within every coarse-graining loop, the results are then equal.
It's one of the issues raised in Kosciessa et al., (2020), whereas the authors argued that using the global tolerance would introduce a bias. According to them, over 90% of existing studies were using a global tolerance and they investigated comprehensively on that.
From my previous plot, the differences are pretty obvious and significant though.
Kosciessa, J. Q., Kloosterman, N. A., & Garrett, D. D. (2020). Standard multiscale entropy reflects neural dynamics at mismatched temporal scales: What’s signal irregularity got to do with it? PLOS Computational Biology, 16(5), e1007885. https://doi.org/10.1371/journal.pcbi.1007885
Hi, thanks a lot for developing the package, I am just exploring the packages and see how it can be used to analyze some EEG signals.
I tried to compare the
nk.entropy_multiscale
andnk_entropy_sample
within a loop of coarse-graining procedures to confirm my understanding of the computation. My codes look like the following:As you can see, it shows striking difference after certain scale. For more information, the signal is a 245-second long recording with sampling rate of 512 Hz.
At first I thought it was because of the mismatch between the default dimension parameter between the two functions, but it remained like this even after I set both dimension to be 3. Please let me know if I am misunderstanding sth, any help is appreciated.
The text was updated successfully, but these errors were encountered: