Git Product home page Git Product logo

pediatric_sleep_scoring's Introduction

by Harlin Lee, Aaqib Saeed

Abstract

Sleep is particularly important to the health of infants, children, and adolescents, and sleep scoring is the first step to accurate diagnosis and treatment of potentially life-threatening conditions. But pediatric sleep is severely under-researched compared to adult sleep in the context of machine learning for health, and sleep scoring algorithms developed for adults usually perform poorly on infants. Here, we present the first automated sleep scoring results on a recent large-scale pediatric sleep study dataset that was collected during standard clinical care. We develop a transformer-based model that learns to classify five sleep stages from millions of multi-channel electroencephalogram (EEG) sleep epochs with 78% overall accuracy. Further, we conduct an in-depth analysis of the model performance based on patient demographics and EEG channels. The results point to the growing need for machine learning research on pediatric sleep.

Installation

Install required packages as follows:

pip3 install -r requirements.txt

Dataset

Get access to the NCH Sleep DataBank from NSRR or Physionet.

Extract 30 second EEG examples into numpy arrays using the code here, and convert the data to the TFRecords format. Or see an example here to use Pytorch.

We provide train, validation and test splits in the splits directory (see splits.zip). The file_path has the following structure <study_pat_id>_<sleep_study_id>_<eeg_example_index>_<age_group>.<ext>, where <ext> can be ignored.

  • study_pat_id and sleep_study_id correspond to those from the NCH Sleep DataBank, and together define one PSG file.
  • eeg_example_index is the index into an EEG example from that particular sleep study file.
  • age_group represents age group the patient belongs to.

Training:

python3 main.py

Citation

@inproceedings{Lee2022Automatic,
  title={Automatic Sleep Scoring from Large-scale Multi-channel Pediatric EEG},
  author={Harlin Lee and Aaqib Saeed},
  journal={arXiv preprint arXiv:2207.06921},
  year={2022}
}

pediatric_sleep_scoring's People

Contributors

aqibsaeed avatar harlinlee avatar

Stargazers

Jeff Carpenter avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.