Git Product home page Git Product logo

sleep_study's Introduction

Sleep study - Detecting sleep for Insomniacs

Introduction

Insomnia is a common sleep disorder which affects the life quality of patients. Sleep staging is an importanct step for diagnosis and treatment of insomnia. The gold standard of sleep staging is based on the measurement of PSG recordings. However, applying wearable PSG in real-world scenarios is of limitation. In this project, we are going to investigate the alternative measurements including heart rate, skin temperature and actigraphy by applying machine learning methodologies to classify sleep-wake stages.

Dataset

The dataset is collected from about 70 insomnia patients who attended the sleep clinic at Woolcock Institute with the following measurements.

  • Sleep Staging: The files are produced by the trained experts examining the PSG data for each epoch of 30s and classifying into one of the five stages in line with the sleep stages definition in the AASM manual. It provides ground truth labels for our sleep-wake classification.
  • Skin Temperature: The raw data are collected by using multiple iButton devices attached to different parts (Forehead, Chest, Upperarm, Scapula, Forearm, Hand, Fingertip, Abdomen, Upperleg, Calf, Foot, Toe) of the patients in the sleep clinic. The temperature is recorded at every 15s.
  • Heart Rate: The data is represented as beat-by-beat interval which each entry gives the time (in second, plus offset in millisecond) of a heart-beat and the duration since the previous beat.
  • Actigraphy: Actigraphy is recorded for the patient’s movement activity through a wrist-based accelerometer device (for example, Philips Actiwatch 2) at every 30s.

Data Preparation

Similar to any other data project, we follow the end to end process from data collection, data extraction, cleaning, and feature engineering. Then we go through the cycle of model building, model evaluation and model tuning. And finally is the prediction on the new data set.

Like most of the real-world scenarios, the data is pretty mess. It is required to spend much time on data preparation. A recent survey shows that data preparation is the most time consuming work. However, it paves the way to have better results if you have prepared the data precisely.

Additionaly, we have to work with the challenges related with time-series data, such as measurements at different frequencies, irregular sampling times, etc..

Machine Learning Methods

We use SVM, XGBoost for classifying sleep-wake stages. 10-fold cross-validation is applied to evaluate the model performance respectively.

sleep_study's People

Contributors

q15928 avatar

Watchers

 avatar

sleep_study's Issues

dataset

Could you please provide the data set?

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.