Git Product home page Git Product logo

anniepan8215 / subject-independent-drowsiness-recognition-from-single-channel-eeg-with-an-interpretable-cnn-lstm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cuijiancorbin/subject-independent-drowsiness-recognition-from-single-channel-eeg-with-an-interpretable-cnn-lstm

0.0 0.0 0.0 14 KB

In this project, we propose a CNN-LSTM model to classify single-channel EEG for driver drowsiness detection. We designed a visualization technique by taking advantage of the hidden states output by the LSTM layer. Results show that the model not only has a high accuracy but also learns biologically explainable features, e.g., Alpha spindles, as evidence for the drowsy state.

License: Creative Commons Zero v1.0 Universal

Python 100.00%

subject-independent-drowsiness-recognition-from-single-channel-eeg-with-an-interpretable-cnn-lstm's Introduction

Subject-Independent-Drowsiness-Recognition-from-Single-Channel-EEG-with-an-Interpretable-CNN-LSTM

Pytorch implementation of the paper "Subject-Independent Drowsiness Recognition from Single-Channel EEG with an Interpretable CNN-LSTM model". https://doi.org/10.1109/CW52790.2021.00041

If you find the codes useful, pls cite the paper:

J. Cui et al., "Subject-Independent Drowsiness Recognition from Single-Channel EEG with an Interpretable CNN-LSTM model," 2021 International Conference on Cyberworlds (CW), 2021, pp. 201-208, doi: 10.1109/CW52790.2021.00041.

The project contains 3 code files. They are implemented with Python 3.6.6.

"CNNLSTM.py" contains the model. required library: torch

"LeaveOneOut_acc.py" contains the leave-one-subject-out method to get the classifcation accuracies. It requires the computer to have cuda supported GPU installed. required library:torch,scipy,numpy,sklearn

"CNNLSTM_VisualizationTech.py" contains the visualization technique based on the modification of the LSTM model. It requires the computer to have cuda supported GPU installed. required library:torch,scipy,numpy,matplotlib,mne

The processed dataset has been uploaded to: https://figshare.com/articles/dataset/EEG_driver_drowsiness_dataset/14273687

If you have any problems, please Contact Dr. Cui Jian at [email protected]

subject-independent-drowsiness-recognition-from-single-channel-eeg-with-an-interpretable-cnn-lstm's People

Contributors

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