Giter VIP home page Giter VIP logo

emotion_recognition's Introduction

Emotion_Recognition

In IEMOCAP dataset, the two most important emotional cues are speech and face. In this repo, the emotion recognition task using the state-of-the-art ML technique are described.

Data cleaning and preprocessing:

Most of the data cleaning and preprocessing are similar to my another work in here and here. Therefore, the detailed description is not provided. However, a simple discussion is as follows:

Step 1: extract the speech features using this code. Deal with the missing values of facial/video features using the preprocessing code.

Speech features: pitch, energy, MFCC-12 coefficients, MFB-27 coefficients
Facial features: 46 facial region landmark features on following locations of the face:
chin, forehead, cheek, upper eyebrow, eyebrow, mouth

Step 2: Create statistical features from the framewise-extracted speech and facial features. Statistical features are:

1. Mean, Standard Deviation, 1st and 3rd Quantile, Interquantile range of Pitch, 12 MFCCC coeffs, 27 MFB coeffs, Energy values.
2. Mean, Standard Deviation, 1st and 3rd Quantile, Interquantile range of facial landmark features. 

There will be a total of 895 feature and for the emotion recognition task, we choose four emotions namely Anger, Happy, Neutral and Sad. The features can be created by setting window_type = 'static' in the process_data function of window_based_reformation.py code and by setting step = 0 in creating_dataset function of Utt_Fore_Data_Prep.py code.

Loading the data:

The processed data can be loaded using the load_data class. It will load the data, labels and speaker ids for 10 speakers.

Running machine learning algorithm:

For running the machine learning models, we use the script Machine_Learning_Algo.py. It contains classes for running the ML algorithm for emotion recognition task.

  1. The class baseline_Gaussian_NB provides the functions for training and testing for Gaussian Naive Bayes algorithm. It will be used as baseline in our project.
  2. The class ML_SVM provides the functions for training and testing for Support Vector Machine with RBF kernel algorithm. We perform grid search of C and gamma value for all the combination in [0.001, 0.01, 0.1, 1, 10].
  3. The class ML_RF provides the functions for training and testing for Random Forest algorithm. We perform the parameter tuning of estimators in 80, 100, and 120.

Comparison of performance

The result_visualization.ipynb shows a detailed performance comparison across different Machine Learning algorithm, different speakers and across different emotion class.

emotion_recognition's People

Contributors

sadat1971 avatar

Stargazers

 avatar HuaYiFan avatar  avatar  avatar  avatar Jackli95 avatar

Watchers

 avatar

Forkers

jackli95 fintrek

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.