Git Product home page Git Product logo

adan's Introduction

ADAN

Source code for the paper "Adversarial Data Augmentation Network for Speech Emotion Recognition" and "Improving Speech Emotion Recognition with Adversarial Data Augmentation Network".

Dependencies

Python 3.x
Tensorflow 1.10.0
Keras 2.1.6
numpy
tqdm
h5py
scipy
seaborn
matplotlib
scikit_learn

Data Preparation

The emotion feature vectors were extracted using the openSMILE toolkit. Codes in folders matlab and scripts can help extract emotion features from waveforms and store the feature vectors in .mat files.

Data Augmentation

  • train_adan.py trains the augmentation network based on adversarial learning (ADAN) or based on Wasserstein divergence (WADAN), and creates augmented sets;
  • adan.py defines the network structure and training process of ADAN and WADAN;
  • utils.py defines the additional functions used in adan.py;
  • tsne_plot.py defines the functions for plotting the t-SNE plots reflecting the distributions of the real samples and synthetic samples.
  • combine_h5.py defines the function to merge all augmented sets and save them into a single .h5 file using a virtual dataset.

Classification Task

  • svm_cls.py trains an SVM classifier and outputs the UAR and WA;
  • dnn_cls.py trains a DNN classifier and outputs the UAR and WA.

How to run

To train an ADAN or WADAN with default settings:

python train_adan.py 

Apart from changing the python code file to redefine the parameters, you can also define the parameters directly through the command line. For example, when you want to change the dataset used to train the model:

python train_adan.py --dataset=iemocap  

and changing the number of training epochs:

python train_adan.py --dataset=iemocap --epoch=400

adan's People

Contributors

louisa-luyi 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.