Containing EEG relative codes and download method for dataset. The relative models are implemented by PyTorch 1.10.
- Download the dataset from [https://zenodo.org/record/7253438]. Extract them to any directory. Please make sure the directory ONLY CONTAINS english characters. Please DO NOT use Chinese or other special characters in the path.
- Download codes from github. Extract them to any directory. Please make sure the directory ONLY CONTAINS english characters. Please DO NOT use Chinese or other special characters in the path.
- Process the dataset using
sliceTo2D_NJU.morsliceTo2D_KUL.min theprocess_scriptfolder, which will split the dataset into 5 folds. Everything is automatic, please wait for several hours. You can specify how many window length you want the script to process. Other settings can be found inside the script. - Start your training and evaluation by changing the
srcdirin the beginning of the.pyfile and typepython LSM.pyorpython CNN_baseline.pyin your terminal.
The model folder contains some utilities and necessary sub-models and is required to run the python file.