Clean EEG Data
Install MATLAB & EEGLAB
Data Prep
Data prep only needs to be done once for each dataset (but only if you save it!)
Scroll & Scrub
XXXXXXXXXXXXXXXXXXXXXXXXXXXX
2b. Independent Component Analysis
noise: repeated noise (blinking) —> ICA electrical noise —> filtered out in beginning bad electrode —> doesn’t matter how much you remove, so note any electrodes that look weird unpredicted noise - when participant moves around or clenches jaw excessively

run ICA ⁃ neural network ⁃ tools —> decompose by ICA ⁃

click on channels ⁃ highlight all channels from 1-60 ⁃ deselect electrodes we wrote down for being problematic by clicking on them while pressing command on your keyboard

ICA neural net will start learning

tools —> inspect/label components by map

prompt with how many components to show.

# components = # channels input into algorithm (degrees of freedom)

⁃ maps tell you where noise patterns and occurring
⁃ checkerboard is bad
⁃ organizes data based on sources of most noise
⁃ most important are in first two rows
⁃ color map is most important
⁃ long streaks = eye movement
⁃ v

maps tell you where noise is occurring
brain data looks like fuzzy tv

to reject: - go through components with streaks or electrode popping and accept then click ok
tools —> remove components by data —> yes —> plot single trials - time range = 60 ⁃ normalize ⁃ if the red lines look different enough from the black lines —> click accept then ok
bad electrodes interpolation
⁃ tools —> interpolate electrodes —> select from data channels —> select removed electrodes from before (not 61-64)
⁃ add “int” to end of name and click ok
⁃ tools —> extract epochs —> 3 dots —> select time 1 and time 2
⁃ epoch limits change to -0.1 0.5
⁃ tools —> remove epoch baseline —> click ok
plot —> channel ERP image —> type all relevant channels into channels box and click ok ⁃ click on blue line graph to open
or plot —> channel ERP with scalp map —> window = -100 490 ⁃ P2 = peak ⁃ N2 = dip
file —> save current dataset as —> subject id “p” “n1”