Starting from:

$25

SYDE544 - Assignment #3- Solved

As we discussed in the lectures, one of the widely used BCI modality is Event-related Desynchronization and Event-related Synchronization (ERD/ERS), or Sensor-motor Rhythm (SMR). The SMR processing is nicely illustrated in the figure above [1].  

In the above figure, time zero (t=0) is the time when a motor or sensory task is performed. For this exercise, the data file attached contains two types of sensory attention tasks: the subject was focusing her attention to stimulus coming from either left or right hand, while both hands were being stimulated by a tactile stimulator at t=0. For each of the two tasks, 60 repetitions (trials) were performed, with random intervals between consecutive trials. Here, for simplicity, we look at the general SMR frequency band, i.e. [8, 26] Hz, rather than specific sub-bands (line 16 of the main script).  

The data file contains 62 EEG channels (62 rows). The channel map are shown below (1020 channel names on the left, and channel number on the right):

  

According to the figures, channel C3 is the 26rd row of the data matrix (line 32) and channel C4 is the 30th row of the data matrix (line 33). The 63rd row of the matrix indicates when a task was performed, and which task was performed. Such as, the starting time (t=0) for each trial was obtained between line 24 and line 26 of the main script. Other relevant parameters of the processing are clearly commented in the main script before line 26.  

 

Problem 1 (8 pts)  
Complete the Matlab function: mySMRCalculation.m (5 pts), following the steps illustrated in the first figure. DO NOT change the given input/output syntax of the function. Run the code to line 65, observe the generated graph and comment your observation (3 pts).

Problem 2 (8 pts) 
Finish the script up to line 78, so you can perform large Laplacian filtered version of C3 and C4 (3 pts), calculate the corresponding SMR values (1 pts), and generate the graph similarly to the provided code in Problem 1, by completing the code between line 81-103 (1 pts). Observe and comment on the generated graph, in relation to the observation you had for Problem 1 (3 pts).

Problem 3 (14 pts) 
Complete the Matlab function: mySMRCalculationCSP.m (10 pts), so you can perform common spatial pattern filtering, as we discussed in lecture [2]. Generate the graph similarly to the provided code in Problem 1 and 2, by completing the code between line 113-139 (1 pts). Observe and comment on the generated graph, in relation to the observation you had for Problem 1 and 2 (3 pts).

 

Reference: 

[1]            G. Pfurtscheller and F. H. Lopes Da Silva, “Event-related EEG/MEG synchronization and desynchronization: basic principles.,” Clin. Neurophysiol., vol. 110, pp. 1842–1857, 1999.

[2]            B. Blankertz, R. Tomioka, S. Lemm, M. Kawanabe, and K. Muller, “Optimizing Spatial filters for Robust EEG Single-Trial Analysis,” IEEE Signal Process. Mag., vol. 25, no. 1, pp. 41–56, 2008.

 

More products