Skip to content

EEG_1: Preprocessing

Nikhil Anand edited this page Aug 11, 2023 · 2 revisions

There are two preprocessing scripts - one written in MATLAB and the other using Python and MNE.

Python/MNE Preprocessing Script

  1. To access this script, go to the filepath 'codes/preprocessing_script.py'.

  2. The script first reads a raw brainvision file.

  3. Then, it filters the data using a high-pass filter at 1Hz, and a notch filter at 59 to 61 Hz.

  4. Then, the data is rereferenced to the TP9 and TP10 channels.

  5. ICA is then run on the data and the eye blink component is removed.

  6. The final .set file is exported.

MATLAB Script

  1. To access this script, go to the filepath 'codes/preprocess_self.m'.

  2. Similar steps are run as the Python Script above.

  3. After removal of the eye blink component, a correlation plot is made of the eye blink artifact with all the channels and the correlation values are compared to cross-check the results of the script.

Clone this wiki locally