Giter Site home page Giter Site logo

sst-emotionnet's Introduction

SST-EmotionNet

SST-EmotionNet: Spatial-Spectral-Temporal based Attention 3D Dense Network for EEG Emotion Recognition

architecture

The SST-EmotionNet consists of the spatial-spectral stream and spatial-temporal stream. Each stream is made up of several Attention based 3D Dense Blocks (A3DB) and Transition Layers.

These are the source code of SST-EmotionNet.

Dataset

We evaluate our model on SEED and SEED-IV datasets, which are available at: http://bcmi.sjtu.edu.cn/~seed/downloads.html. The SEED dataset contains subjects' EEG signals when they were watching films clips. The film clips are carefully selected so as to induce different types of emotion, which are positive, negative, and neutral ones. The SEED-IV is an evolution of the original SEED dataset. The category number of emotion change to four: happy, sad, fear, and neutral. The extracted differential entropy (DE) features of the EEG signals in these datasets are used.

Requirements

  • Python 3.7.7

  • CUDA 10.1

  • CuDNN 7.6.5

  • numpy==1.16.2

  • scipy==1.4.1

  • tensorflow_gpu==2.1.0

  • Keras==2.3.1

Usage

  • Configuration

    We provide a sample configuration file SEED.ini for SEED dataset.

    • input_width denotes the width of 2D map.
    • specInput_length and temInput_length denote how many 2D maps are stacked in the 3D spatial-spectral representation and 3D spatial-temporal representation, respectively.
    • depth_spec and depth_tem denote the number of layers in spatial-spectral stream and spatial-temporal stream.
    • nb_dense_block denotes the number of A3DBs to add to end.
    • gr_spec and gr_tem denote the growth rate of spatial-spectral stream and spatial-temporal stream.
  • Training

    Run run.py with -c parameter, which refers to the path of the configuration file for training. For instance, the model is trained by:

      python run.py -c ./config/SEED.ini
    

References

@inproceedings{jia2020sst,
  title={SST-EmotionNet: Spatial-spectral-temporal based attention 3D dense network for EEG emotion recognition},
  author={Jia, Ziyu and Lin, Youfang and Cai, Xiyang and Chen, Haobin and Gou, Haijun and Wang, Jing},
  booktitle={Proceedings of the 28th ACM International Conference on Multimedia},
  pages={2909--2917},
  year={2020}
}

sst-emotionnet's People

Contributors

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