SMorettini / CNNs-on-CHB-MIT

The project is about applying CNNs to EEG data from CHB-MIT to predict seizure
GNU General Public License v3.0
105 stars 36 forks source link

What is the meaning of S variable? #4

Closed ducnx closed 4 years ago

ducnx commented 5 years ago

Question is same as title, what is the meaning of S variable at the referenced line? https://github.com/MesSem/CNNs-on-CHB-MIT/blob/e1e7a19ded971d521054fd3a063a7943f9c53336/DataserToSpectogram.py#L372

ducnx commented 5 years ago

Sorry, I actually read the paper but I don't understand how you come up with that value of S. Can you please explain?

SMorettini commented 5 years ago

S is the amount of seconds use for slide the window for the creation of a balanced dataset. The preictal data are many less than the interictal data. To balance the data, in the paper, they decided to create "syntetic" data by overlapping the windows. So for interictal the windows slide for the size of the window, instead for preictal data the windows slide for a smaller range of seconds. https://github.com/MesSem/CNNs-on-CHB-MIT/blob/e1e7a19ded971d521054fd3a063a7943f9c53336/DataserToSpectogram.py#L124-L130

CHBMIT_S I put this image to help you understand. I don't know if my explanation is clear, if you don't understand I'll try to explain in a better way.