edwardzcl / SRNN

A Hybrid Spiking Recurrent Neural Network on Hardware for Efficient Emotion Recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Hybrid Spiking Recurrent Neural Network on Hardware for Efficient Emotion Recognition


This code can be used as the supplemental material for the paper: "A Hybrid Spiking Recurrent Neural Network on Hardware for Efficient Emotion Recognition". (Published on IEEE AICAS, June, 2022).


Citation:

C. Zou, X. Cui, Y. Kuang, Y. Wang, and X. Wang, "A Hybrid Spiking Recurrent Neural Network on Hardware for Efficient Emotion Recognition," 2022 IEEE 4th International Conference on Artificial Intelligence Circuits and Systems (AICAS), 2022, pp. 1-4, doi: xxx.

Features:

  • This supplemental material gives a reproduction function of training and testing experiments of vanillaRNN, LSTM, Text-CNN and proposed spiking RNN (SRNN) in our paper. Two kinds of emotion recognition datasets with different sentence lengths (also in English and Chinese language) are considered.

File overview:

  • README.md - this readme file.
  • Cars - the workspace folder for networks on the Car dataset with time step = 30.
  • Movies - the workspace folder for networks on the Movie dataset with time step = 500.

Requirements

Dependencies and Libraries:

Datasets:

Run the code:

for example (networks training and testing, Movies dataset):

$ cd Movies
$ python movies_main.py
$ python text_cnn.py

for example (networks training and testing, Cars dataset):

$ cd Cars
$ python cars_main.py
$ python text_cnn.py

Others

  • You can run the plot_sop.py and plot_sparsity.py to get illustration information.

Results

Please refer to our paper for more information.

More question:

  • There might be a little difference of results for multiple training repetitions, because of the randomization.
  • Please feel free to reach out here or email: 1801111301@pku.edu.cn, if you have any questions or difficulties. I'm happy to help guide you.

About

A Hybrid Spiking Recurrent Neural Network on Hardware for Efficient Emotion Recognition

License:MIT License


Languages

Language:Python 100.0%