What does a wavelet transform plot tell you?

1 min read

Let’s say you collected some brain data (time series) using NIRS while the participants were performing a task (say finger tapping), and you use the wt function in the “Cross Wavelet and Wavelet Coherence Toolbox” (link dead. Please go to the bottom of this post to find how to download) to plot the power of the signal in both time and frequency domain. What does the plot tell you?

Wavelet transform
Wavelet transform

First, you can see there is a clear band around period 8, corresponding to frequency ~1Hz (remember our sampling frequency is 10Hz). This band is actually caused by heart beating. While in most cases you will probably treat this physiological signal as noise and remove it using filtering techniques, the existence of this band should be comforting to you: it indicates that your signal contains something real. If your NIRS device for whatever reason doesn’t measure real brain activity (e.g. the probes did not contact the head well), you won’t get this band.

Second, you can see there is a red band around period 256. It indicates this signal correlates with the experiment task very well. The task used is a finger tapping task: the subject (actually myself) tapped his right hand finger for 10s, then rest for 20s, and then repeat for 20 times. The period of the task is thus 30s. The red band is actually of period 30s. So for a task that is periodical, you can use wt to check if the signal collected demonstrates similar period.

Well, why use wt but not FFT? The visualization of FFT is much worse. Here I plot FFT of the same signal (y-axis in log scale).

FFT of finger tapping
FFT of finger tapping

First it is kind of boring. You do see a bump around frequency 1.4Hz which is heart beating. That’s good, even though it is not as distinguished as in wt. It is hard to see the 30s (or 0.03Hz) band, while in wt plot the band is very clear.

To download the “Cross Wavelet and Wavelet Coherence Toolbox”, please enter
https://www.alivelearn.net/?p=1561

Related:
Wavelet Coherence
Handy programs to visualize NIRS data (4): wt



写作助手,把中式英语变成专业英文


Want to receive new post notification? 有新文章通知我

第五十期fNIRS Journal Club通知2024/03/30, 10am 王一晖

早期的 STEM 教育对于以后的学习至关重要。现有研究尚未就STEM教学法达成共识,学生先验知识对基于故事的STEM教学法的影响还有待探讨。来自澳门大学张娟教授团队的王一晖将会分享基于fNIRS超扫描
Wanling Zhu
9 sec read

第四十九期fNIRS Journal Club视频 高倩博士

Youtube: https://youtu.be/a2QlCFZUytA优酷: https://v.youku.com/v_show/id_XNjM3MjMyNjUxMg==.html 竞技比赛中,
Wanling Zhu
12 sec read

第四十九期fNIRS Journal Club通知2024/02/24, 10am 高倩博士

竞技比赛中,特别是需要注意高度集中的射击项目中,如何保持稳定的注意控制对运动员的表现至关重要。近期的一项研究调查了赛前短时正念练习是否对运动员在射击比赛中的注意控制具有提升作用。来自北京体育大学心理学
Wanling Zhu
9 sec read

15 Replies to “What does a wavelet transform plot tell you?”

  1. Just to be clear, saying “the visualization is worse” of the Fourier transform is misleading. If you use a short-time Fourier transform with sliding windows, instead of doing the FT across the whole time period, you’ll get very similar results.

    In fact, a Fourier transform using a Gaussian envelope is mathematically *identical* to the Morlet wavelet-based analysis (Bruns 2004). The people claiming some superiority for Morlet wavelet-based methods for neuroimaging data are mistaken.

  2. Very interesting post. A trivial question: I am wondering if you can show more details about how can we say that “The red band is actually of period 30s. “? Isn’t that period 256 in terms of wavelet?

    It is a really nice blog. I bookmarked it and plan to read it all.

  3. The plots generated after the cwt have some peaks. what does those peak points tell us about the input signal.

    Please mention clearly i am beginner in wavelet transforms..

  4. Dear Xu Cui,
    your blog is, simply put, an eye opener to many and shades a strong light in to this seemingly elusive world of wavelets.

    I just want to ask you the following:

    (1). In your last comment, you wrote, “In the wavelet transform plot, peaks mean that the power at this frequency/time is higher than neighbor.” What exactly does power mean? What will its physical interpretation be? and what will be its unit?
    (2). the color bar besides the plot, does it represent the power for which i asked in the above question?

    Thank you for your help.

  5. Dear Xu Cui,
    Sir, I am working on well-logging geophysical data. but I can’t interpret the wavelet spectrum. what do I do?
    please help

  6. Dear Sir,

    I am working with yearly rainfall time series. I need help in interpreting the CWT coefficients which I have plotted. I also want to plot wavelet power spectrum. Presently I have squared the absolute coefficient values and plotted it. I don’t know whether it is correct.
    Kindly help me.

  7. Dear Dr.Cui:
    When I did wavelet transform for my fNIRS data. It’s a litter werid that the oxyHb and deoxyHb did not had heart beating band! But!! For the totalHB data, It had!! It’s normal? Based on these results, did the queality of your data is ok or not?

    Best wishes
    Jiaxin

  8. @Xu Cui
    So, you usually used the oxyHb data to do wavelet transform and do further analysis,right? The figure you showed was also based on the oxyHB data?

Leave a Reply

Your email address will not be published. Required fields are marked *