GithubHelp home page GithubHelp logo

sleeptransformer's Introduction

SleepTransformer

SleepTransformer


These are source code and experimental setup for SHHS.

How to use:

  1. Download the database SHHS. This may require to apply for licences. Information on how to obtain it can be found in the corresponding website.
  2. To prepare data run shhs_data.m
  3. Split data and generate file lists run data_split_eval.m run genlist_scratch_training.m (Not: I have included the "data_split_eval.mat" file and the "file_list" folder, you dont have to run this step again)
  4. Training and evaluation run bash scripts in "scratch_training/sleeptransformer". The environment I used was Tensorflow 1.13, Python 3.7
  5. Run matlab scripts in "evaluation" folders to aggregate the network outputs and compute metrics for example, run aggregate_sleeptransformer.m

The model weights trained on SHHS are available at https://zenodo.org/record/7927282 for reproducing the results in the paper.

Environment:

  • Matlab v7.3 (for data preparation)
  • Python3.7
  • Tensorflow GPU 1.x (x >= 3) (for network training and evaluation)
  • numpy
  • scipy
  • h5py
  • sklearn

License

CC-BY-NC-4.0

sleeptransformer's People

Contributors

pquochuy 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.