Giter Site home page Giter Site logo

yangyuqing15715165798 / tinysleepnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akaraspt/tinysleepnet

0.0 0.0 0.0 555 KB

TinySleepNet: An Efficient Deep Learning Model for Sleep Stage Scoring based on Raw Single-Channel EEG by Akara Supratak and Yike Guo from The Faculty of ICT, Mahidol University and Imperial College London respectively

License: Apache License 2.0

Python 100.00%

tinysleepnet's Introduction

TinySleepNet

An efficient deep learning model for sleep stage scoring based on raw, single-channel EEG. This work is an extension of our previous work, DeepSleepNet [paper][github].

Code for the model in the paper TinySleepNet: An Efficient Deep Learning Model for Sleep Stage Scoring based on Raw Single-Channel EEG by Akara Supratak and Yike Guo from The Faculty of ICT, Mahidol University and Imperial College London respectively.

This work has been accepted for publication in 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC).

Model Architecture

TinySleepNet Note: Fs is the sampling rate of the input EEG signals

Performance Comparison

Performance Comparison Note: ACC = accuracy, MF1 = Macro F1-Score

Environment

  • CUDA 10.0
  • cuDNN 7
  • Tensorflow 1.13.1

Create a virtual environment with conda

conda create -n tinysleepnet python=3.6
conda activate tinysleepnet
pip install -r requirements.txt

How to run

  1. python download_sleepedf.py
  2. python prepare_sleepedf.py
  3. python trainer.py --db sleepedf --gpu 0 --from_fold 0 --to_fold 19
  4. python predict.py --config_file config/sleepedf.py --model_dir out_sleepedf/train --output_dir out_sleepedf/predict --log_file out_sleepedf/predict.log --use-best

Citation

If you find this useful, please cite our work as follows:

@INPROCEEDINGS{Supratak2020,
    title = {TinySleepNet: An Efficient Deep Learning Model for Sleep Stage Scoring based on Raw Single-Channel EEG},
    author = {Supratak, Akara and Guo, Yike},
    booktitle = {2020 42nd Annual International Conference of the IEEE Engineering in Medicine Biology Society (EMBC),
    year = {2020},
    volume = {}, 
    number = {}, 
    pages = {641-644}, 
    doi = {10.1109/EMBC44109.2020.9176741}, 
    ISSN = {}, 
}

Licence

  • For academic and non-commercial use only
  • Apache License 2.0

tinysleepnet's People

Contributors

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