Tutorial 11: Time-frequency

This tutorial introduces how to compute time-frequency decompositions of MEG recordings and cortical currents using complex Morlet wavelets. There are several ways to reach the same result, please read all the sections carefully and then chose the method that is best suited for your own data.

Introduction to complex Morlet wavelets

Complex Morlet wavelets are very popular in EEG/MEG data analysis for time-frequency decomposition. They have the shape of a sinusoid, weighted by a Gaussian kernel, and they can therefore capture local oscillatory components in the time series. An example of this wavelet is show below, where the blue and red curves represent the real and imaginary part, respectively.

Contrary to the standard short-time Fourier transform, wavelets have variable resolution in time and frequency. When designing the wavelet, we basically decide a trade off between temporal and spectral resolution.

To design the wavelet, we first need to choose a central frequency, ie the frequency where we will define the mother wavelet. All other wavelets will be scaled and shifted versions of the mother wavelet. Unless interested in designing the wavelet at a particular frequency band, the default 1Hz should be fine.

Then, the desirable time resolution for the central frequency should be defined. For example, we may wish to have a temporal resolution of 3 seconds at frequency 1 Hz (default parameters). These two parameters, uniquely define the temporal and spectral resolution of the wavelet for all other frequencies, as shown in the plots below.

Resolution is given in units of Full Width Half Maximum of the Gaussian kernel, both in time and frequency. The relevant plots are given below.

waveletOptions.gif

Edge effects

Users should pay attention to edge effects when applying wavelet analysis. Wavelet coefficients are computed by convolving the wavelet kernel with the time series. Similarly to any convolution of signals, there is zero padding at the edges of the time series and therefore the wavelet coefficients are weaker at the begining and end of the timeseries.

From the figure above, which designs the Morlet wavelet, we can see that the default wavelet (central frequency 1Hz, FWHM=3sec) has temporal resolution 0.60sec at 5Hz and 0.3sec at 10Hz. In such case, the edge effects are roughly half these times: 0.30sec in 5Hz and 0.15sec in 10Hz. Examples of such edge effects are given in the figures below.

edgeEffect5Hz.gif edgeEffect10Hz.gif

TF: Recordings

Description of the options

Display time-frequency maps

Time-frequency maps

Time-frequency maps: "Time-Freq" tab

Time-frequency maps: Mouse and keyboard

Time-frequency maps (all the sensors)

Time-frequency 2D topography

Time-frequency 2D Layout

Contents of the "timefreq" files

Time and frequency bands

Frequency bands

Time bands

Time bands and frequency bands

TF: Clusters time series

TF: Cortical sources

TF: Scouts time series

Processing time-frequency files

Next

This is the last tutorial for Brainstorm introduction. You had an overview of most of the software features. Now you can go back to the main Tutorials page, and read tutorials that are closer to your area of interest.

Tutorials/TutTimefreq (last edited 2011-05-14 18:23:00 by cpe-76-169-10-66)