DialogueRNN: An Attentive RNN for Emotion Detection in Conversations

Navonil Majumder, Soujanya Poria, Devamanyu Hazarika, Rada Mihalcea, Alexander F. Gelbukh, Erik Cambria

Abstract

Emotion detection in conversation is challenging due to the complex interplay between individual speaker states, interlocutor behavior, and global context. We present DialogueRNN, a recurrent neural network architecture designed to track the emotional state of individual participants. By employing three specialized gated recurrent units (GRUs)—Global, Party, and Emotion—the model captures the unique emotional trajectory of each speaker. Evaluation on the IEMOCAP and AVEC benchmarks demonstrates that DialogueRNN achieves a new state-of-the-art, significantly outperforming previous models by explicitly modeling speaker identity and long-range dependencies.

Introduction

Emotion detection in conversations is notoriously difficult because emotions do not exist in a vacuum. A participant's current mood is influenced by their own previous state, the behavior of others (e.g., a sarcastic comment triggering anger), and the overall global context or "vibe" of the discussion. Most prior systems failed to distinguish between different speakers effectively, treating transcripts as a single data stream and ignoring individual emotional trajectories. DialogueRNN addresses this by modeling who is speaking and how their specific history interacts with the group dynamic.

Methods: The DialogueRNN Architecture

The core of DialogueRNN is a trio of Gated Recurrent Units (GRUs) that work in tandem to process conversational turns:

  1. Global GRU: Processes every utterance to track the conversation's overall flow and context.
  2. Party GRU: Acts as an "individual tracker." The model maintains a separate state for every participant (e.g., Party A, Party B). This state updates only when that specific person speaks, preserving their unique emotional disposition.
  3. Emotion GRU: Serves as the decoder, taking the updated speaker state and the previous emotion to produce a final representation for classification.
The DialogueRNN architecture, illustrating the interaction between Global, Party (Speaker/Listener), and Emotion GRUs across time steps.

The architecture also employs an Attention Mechanism, allowing the model to "look back" across the entire conversation history to identify relevant utterances driving the current emotion. A bidirectional variant, BiDialogueRNN, further improves performance by considering both past and future utterances.

Experimental Evaluation

The model was evaluated on two major benchmarks:

  • IEMOCAP: A dataset of dyadic conversations labeled with six discrete emotions (happy, sad, neutral, angry, excited, frustrated).
  • AVEC: A dataset of human-agent interactions using continuous affective attributes (valence, arousal, expectancy, power).

Key Insights and Results

DialogueRNN set a new standard in the field, outperforming the previous state-of-the-art (CMN) on IEMOCAP by an average of 3.76% in F1-score. It showed particular dominance in detecting "happy" and "excited" states. On AVEC, the model achieved significantly lower Mean Absolute Error (MAE) and higher Pearson correlation across all attributes.

The Importance of Identity and Long-Range Context

Ablation studies revealed that modeling speakers individually is the most critical factor for success; removing the "Party State" caused the largest performance drop. Furthermore, the attention mechanism demonstrated that emotions are often triggered by events much earlier in the conversation.

Visualization of the attention mechanism (a, b, c) and the frequency of correct predictions relative to the distance between the test utterance and the attended context (d).

As shown in the attention analysis, the model often relies on utterances 20 to 40 turns back to make accurate predictions. This capability allows for effective contextual disambiguation, such as distinguishing between "frustrated" and "angry" based on how a speaker's state has evolved over time.

Limitations and Future Work

Despite its success, DialogueRNN struggles with sudden Emotional Shifts. While accuracy is high (69.2%) during stable emotional periods, it drops to 47.5% at the moment of a transition (e.g., a sudden shift to anger). Predicting these latent dynamics remains an open challenge. Additionally, while designed for multi-party scenarios, the current evaluation focused on dyadic datasets; future work will explore complex environments like group meetings and debates.

Summary updated

BibTeX
@inproceedings{majumder2019dialoguernn,
  author = {Navonil Majumder and Soujanya Poria and Devamanyu Hazarika and Rada Mihalcea and Alexander F. Gelbukh and Erik Cambria},
  title = {{DialogueRNN: An Attentive RNN for Emotion Detection in Conversations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33016818},
}
Figure