Code Monkey home page Code Monkey logo

mm-dfn's Introduction

MM-DFN

Source code for ICASSP 2022 paper "MM-DFN: Multimodal Dynamic Fusion Network For Emotion Recognition in Conversations".

In this work, we focus on emotion recognition in multimodal conversations (multimodal ERC). If you are interested in textual ERC, you can refer to a related work DialogueCRN (code).

Quick Start

Requirements

  • python 3.6.10
  • torch 1.4.0
  • torch-geometric 1.4.3
  • torch-scatter 2.0.4
  • scikit-learn 0.21.2
  • CUDA 10.1

Install related dependencies:

pip install -r requirements.txt

Dataset

The original datasets can be found at IEMOCAP and MELD.

Following previous works (DialogueRNN, MMGCN, et al.), raw utterance-level features of textual, acoustic, and visual modality are extracted by TextCNN with Glove embedding, OpenSmile, and DenseNet, respectively. The processed features can be found by the link.

Run examples

For training model on IEMOCAP and MELD datasets, you can refer to the following:

# IEMOCAP dataset
bash ./script/run_train_ie.sh
# MELD dataset
bash ./script/run_train_me.sh

Note: The optimal hyper-parameters (e.g., the number of gcn layers) are slight differences under different experimental configurations (i.e., the version of CUDA and PyTorch). To facilitate further research by interested parties, we retain the complete code including ablation and control experiments.

Results

Results of MM-DFN on IEMOCAP dataset:

IEMOCAP
Happy Sad Neutral Angry Excited Frustrated Acc Macro-F1 Weighted-F1
42.22 78.98 66.42 69.77 75.56 66.33 68.21 66.54 68.18

Results of MM-DFN on MELD dataset:

MELD
Neutral Surprise Sadness Happy Anger Fear/Disgust Acc Macro-F1 Weighted-F1
77.76 50.69 22.93 54.78 47.82 - 62.49 36.28 59.46

Evaluation matrices: Acc, macro-F1, weighted-F1, and the F1 score per class.

Citation

@inproceedings{DBLP:conf/icassp/HuHWJM22,
  author    = {Dou Hu and
               Xiaolong Hou and
               Lingwei Wei and
               Lian{-}Xin Jiang and
               Yang Mo},
  title     = {{MM-DFN:} Multimodal Dynamic Fusion Network for Emotion Recognition
               in Conversations},
  booktitle = {{ICASSP}},
  pages     = {7037--7041},
  publisher = {{IEEE}},
  year      = {2022}
}

mm-dfn's People

Contributors

hudou95 avatar zerohd4869 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.