728x90
반응형
SMALL
Datasets
SleepECG는 다양한 데이터 세트에 대한 리더 기능을 제공한다. data_dir모든 필수 파일은 기본적으로 ~/.sleepecg/datasets에 지정된 위치에 다운로드된다. 지원되는 모든 PhysioNet 데이터세트는 누구나 액세스할 수 있지만 NSRR 데이터세트는 데이터 액세스 요청을 제출 해야한다.
Sleep readers
Reader | Dataset name | Annotated records | Raw data size | Access | |
read_mesa |
Multi-Ethnic Study of Atherosclerosis | 2056 | 385 GB | request | |
read_shhs |
Sleep Heart Health Study | 8444 | 356 GB | request | |
read_slpdb |
MIT-BIH Polysomnographic Database | 18 | 632 MB | open |
ECG readers
NSRR data access
|
아래 코드는 SleepECG로 MESA 데이터 세트의 모든 레코드를 읽는 방법을 보여준다.
from sleepecg import read_mesa, set_nsrr_token
set_nsrr_token('<your-download-token-here>')
mesa = read_mesa() # note that this is a generator
데이터 세트에서 레코드의 하위 집합을 선택할 수도 있다. 이 예에서는 00 (ex: 레코드 0001- 0099)로 시작하는 ID를 가진 모든 레코드를 다운로드하고 읽는다.
from sleepecg import read_mesa, set_nsrr_token
set_nsrr_token('<your-download-token-here>')
mesa = read_mesa(records_pattern='00*') # note that this is a generator
NSRR 데이터를 다운로드하려는 경우 (ex: NSRR Ruby Gem) 아래 워크플로를 사용한다. 이 예에서는 로컬 폴더 *-00*./datasets와 mesa/polysomnography/edfs 일치하는 모든 파일을 다운로드한다 (하위 폴더는 데이터 세트의 디렉토리 구조를 유지하기 위해 생성됨).
from sleepecg import download_nsrr, set_nsrr_token
set_nsrr_token('<your-download-token-here>')
download_nsrr(
db_slug='mesa',
subfolder='polysomnography/edfs',
pattern='*-00*',
data_dir='./datasets',
)
https://sleepecg.readthedocs.io/en/stable/datasets.html
728x90
반응형
LIST
'Somnology' 카테고리의 다른 글
수면 무호흡증 및 당뇨병성 눈 문제 (0) | 2022.04.25 |
---|---|
[SleepECG] Feature extraction (0) | 2022.04.25 |
[SleepECG] Heartbeat detection (0) | 2022.04.25 |
SleepECG (0) | 2022.04.22 |
수면 (Sleep) (0) | 2022.03.15 |