Closed zhouyanghuang1 closed 3 years ago
Yep. The 23 X 640
matrix has been processed as 23 32 X 20
matrixes.
The reasons why we are doing it:
time X frequency
matrixes. Then, we decomposed them as time X single-frequency
matrixes. Last but not least, a CNN architecture was proposed to decode the EEG tasks.23 X 640
matrix based on CNN models.If u have additional questions, let me know.
Best,
Shuyue
Thank you very much for taking time out of your busy schedule to dispel doubts!
There's one more thing I don't know: The time-frequency diagram obtained after combined time-frequency analysis is of the order of magnitude around 10E-22, but the order of magnitude of the single-frequency matrix is around 10E0. I want to know how does this step actually translate?
Thank you
Thank you very much for taking time out of your busy schedule to dispel doubts!
There's one more thing I don't know: The time-frequency diagram obtained after combined time-frequency analysis is of the order of magnitude around 10E-22, but the order of magnitude of the single-frequency matrix is around 10E0. I want to know how does this step actually translate?
Thank you
Hi,
You should double-check the codes, especially the pre-processing one from line 81 to 86 as an example. After we got the time-frequency maps, we normalized the singles in order to better train the Deep Neural Networks. The reason why we normalized the signals was that a single neuron in the DNN was activated by a non-linear function, a.k.a, activation function, like Sigmoid or ReLu, and if the intensity of signals is too large, the gradient (derivative) of the function w.r.t. the signals will be extremely small, which would lead to the gradient vanishing problem. That's why the Normalization (e.g., Batch Normalization) was used for Data Input and Data Processing in the network.
If u have additional questions, let me know.
Best,
Shuyue
I tried many times in python 2.7, but every time it gives the following error.
return np.array(trials, dtype=np.float64).reshape((len(trials),) + trials[0].shape + (1,)), np.array(labels, dtype=np.float64) IndexError: list index out of range
Hello, I would like to ask if you split the 23-by-640 time-frequency diagram obtained after the combined time-frequency analysis into 23 32-by-20 recompositions and put them into CNN?