To run the experiment of labelling ICA components:
# if conda is installed:
conda activate
# Install virtualenv
virtualenv env
# Activate virtualenv
source env/bin/activate #for unix
env/Script/activate #for window
# Install required packages
pip install -r req.txt- Download an EDF file and put it into
edffolder - Go to config.ini, change
path_edf, andpath_stageinto paths to*.edffile andSTAGE.csvfile - Run
main.py
# run program to label data:
python main.py- The program will ask for session id.
- After typing session id, the program will display ICA component of the chunk & topomap of each component.
- After that, it'll promt you to reject a component(s), user will enter list of components-to-reject sperated by space. If there is no component to reject, just leave it bank.
- The program will then display the entire EEG signal of session before and after EOG cleaning.
- If the result is satisfying, press
yto save this chunk to training data, otherwise pressn. - Repeat until sufficient amount of samples is collected.
- Upon finish, data will be saved in the
csvsfolder, where each component record is acsvfile.