935963004 / LaBraM

ICLR 2024 spotlight
210 stars 29 forks source link

Preprocessing data #14

Open Thoriri opened 5 months ago

Thoriri commented 5 months ago

Hi!

Thanks for the exciting work. I have a question regarding the preprocessing of the pertaining datasets.

In the readme, you say, "Notably, you can also write your own codes for preprocessing EEG data. Make sure that the preprocessing is consistent with that of our paper, that is, removing useless channels, filtering between 0.1 Hz and 75 Hz, notch filtering of 50 Hz, resampling to 200 Hz, and setting the unit to uV".

I'm wondering if you have some example code of precisely this type of preprocessing and if not, what do you mean by "removing useless channels," i.e., what is a useless channel?

935963004 commented 5 months ago

Useless channels are channels you do not need for your tasks. It may depend on specific dataset. For example, some EOG, EMG, ECG, and RESP channels can be useless channels.

Thoriri commented 5 months ago

Thanks for the answer, do you by chance still have these functions: preprocessing, preprocessing_mat, preprocessing_gdf, preprocessing_csv, preprocessing_bdf?

upper127 commented 5 months ago

Have you made any progress, in terms of processing your own dataset?

935963004 commented 5 months ago

Thanks for the answer, do you by chance still have these functions: preprocessing, preprocessing_mat, preprocessing_gdf, preprocessing_csv, preprocessing_bdf?

These functions are almost the same with preprocessing_cnt with the only difference: replacing mne.io.read_raw_cnt with mne.io.read_raw_edf, mne.io.read_raw_bdf, etc.