ziyujia/GraphSleepNet

关于process_SS3.py

break12 opened this issue · 5 comments

您好,由于MASS数据集无法获得,我自己从mne库下载了一个数据集但是运行时遇到错误,报错位置是process_SS3.py 的第32行,请问‘PSG’这个参数具体是什么啊。

Hi ziyu, I have a same question like “keyserror‘PSG’”keyserror‘PSG’,when I use a dataset named Sleep-edf.

We provide a brief description here (https://github.com/ziyujia/GraphSleepNet/tree/master/preprocess).

In detail, the .mat file is the standard format of MATLAB data storage, which can contain one or more fields. Here, we re-store the sleep data as a .mat file to facilitate the next steps. In our XX-XX-XXXX-Data.mat file, it contains the'PSG' field, i.e. polysomnography, and its shape is [n, channels, t], where n represents the number of samples, channels represents the number of channels, and t Indicates the number of sampling points (for a 30-second sample of 100Hz sampling, t=30*100=3000). In other words, 'PSG' variable is the multi-channel sample matrix after dividing the samples for 30 seconds.

Hi, you say "Get the MASS-SS3 dataset, and extract useful data to save as .mat file" , can you share code which can extract useful data from .edf format data in MASS dataset. Thanks very much.

Hi, you say "Get the MASS-SS3 dataset, and extract useful data to save as .mat file" , can you share code which can extract useful data from .edf format data in MASS dataset. Thanks very much.

To get the MASS dataset, you need to contact the owner of the dataset and get their permission. You can get more information from their website (http://massdb.herokuapp.com/en/).

There are actually some datasets that can replace the MASS dataset, such as ISRUC. Please refer to one of our recent work for details. paper link:https://ieeexplore.ieee.org/document/9530406

解决了吗