Introduction
Emotion Recognition in Conversation (ERC) is a critical frontier in natural language processing, yet the majority of existing research remains confined to monolingual, primarily English, datasets. In real-world social contexts—particularly in linguistically diverse regions like India—speakers frequently engage in code-mixing, the practice of blending multiple languages (e.g., Hindi and English) within a single conversation.
This paper introduces COFFEE (COmmonsense aware Fusion For Emotion rEcognition), a novel framework designed to navigate the complexities of multi-party, code-mixed dialogues. By integrating English-centric commonsense knowledge into multilingual inputs, the authors provide a path forward for understanding the nuanced emotional undercurrents of informal, global speech.
The Challenge of Code-Mixed Emotion Recognition
Code-mixing introduces two major hurdles for traditional AI models:
- Linguistic Complexity: Standard models are rarely trained on the specific syntax, transliteration nuances, and vocabulary of blended languages.
- Implicit Meaning: Emotions often rely on "worldly knowledge" that is never explicitly stated. For example, the phrase "I walked for 20 kilometers" contains no emotional keywords, yet a human listener understands it implies fatigue or pain.
While powerful commonsense knowledge graphs like COMET exist to help models bridge these gaps, they are built almost exclusively for English. This research addresses how to leverage these English-centric resources to decode emotions in messy, real-world multilingual dialogues.
The COFFEE Framework
The COFFEE architecture consists of three integrated components designed to process and enrich code-mixed text:
- Dialogue Understanding Backbone (DUB): This layer utilizes standard Transformer models (such as RoBERTa or BERT) to process the raw conversation and create a contextual representation of the dialogue.
- Commonsense Extraction (CE): To bridge the language gap, the authors developed a specialized pipeline. It identifies Hindi segments, transliterates them to Devanagari, translates them into English "topics," and then queries the COMET graph to retrieve related concepts, such as what a speaker might want or how a listener might react.
- Commonsense Fusion (CF) & Fusion Gate (FG): Rather than simply concatenating data, COFFEE uses a context-aware attention mechanism. It calculates the relative importance of the commonsense information compared to the original dialogue text. A Sigmoid gate then determines the final blend of information used to classify the emotion.
The E-MASAC Dataset
To test the framework, the researchers introduced E-MASAC, a new benchmark dataset for the community. Derived from the MASAC dataset—which features dialogues from a popular Indian TV sitcom—E-MASAC contains 8,607 dialogues comprising 11,440 utterances. Each utterance is meticulously labeled with one of Eckman’s six basic emotions (anger, disgust, fear, joy, sadness, surprise) plus contempt and neutral. This represents the first dataset of its kind for multi-party code-mixed ERC.
Key Insights and Results
The study yielded several significant findings regarding the nature of multilingual emotion:
- Predictive Attributes: Certain commonsense attributes are more valuable than others. Specifically, 'xWant' (the speaker's intent) and 'oReact' (the predicted reaction of others) showed the strongest correlation with emotional labels.
- Language Synergy: The researchers proved that using both languages is essential. Restricting the model to only the "matrix" language (Hindi) or the "embedding" language (English) led to a drop in performance, suggesting that emotional nuance is often hidden in the interaction between the two.
- Performance Gains: Integrating COFFEE improved the Weighted F1 score across all tested backbone models. The RoBERTa + COFFEE combination achieved the highest performance with a Weighted F1 of 0.44, a significant improvement over the standard RoBERTa model (0.41).
- LLM Limitations: While ChatGPT is impressive in zero-shot tasks, it struggled with code-mixed ERC as conversations grew longer, often losing the emotional thread after just three utterances.
Limitations and Future Directions
While COFFEE represents a significant step forward, the authors note several areas for future growth. The E-MASAC dataset is based on sitcom dialogues, which may not perfectly mirror natural everyday conversation or specialized domains like healthcare. Additionally, standard tokenizers remain unoptimized for code-mixed text. Future work will focus on training tokenizers specifically for multilingual corpora and further optimizing the combination of commonsense attributes to maximize accuracy in increasingly complex social scenarios.
Summary updated