HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Knowledge-Enriched Transformer for Emotion Detection in Textual Conversations

Peixiang Zhong Di Wang Chunyan Miao

Knowledge-Enriched Transformer for Emotion Detection in Textual Conversations

Abstract

Messages in human conversations inherently convey emotions. The task of detecting emotions in textual conversations leads to a wide range of applications such as opinion mining in social networks. However, enabling machines to analyze emotions in conversations is challenging, partly because humans often rely on the context and commonsense knowledge to express emotions. In this paper, we address these challenges by proposing a Knowledge-Enriched Transformer (KET), where contextual utterances are interpreted using hierarchical self-attention and external commonsense knowledge is dynamically leveraged using a context-aware affective graph attention mechanism. Experiments on multiple textual conversation datasets demonstrate that both context and commonsense knowledge are consistently beneficial to the emotion detection performance. In addition, the experimental results show that our KET model outperforms the state-of-the-art models on most of the tested datasets in F1 score.

Code Repositories

zhongpeixiang/KET
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
emotion-recognition-in-conversation-onKET
Micro-F1: 61.11
Weighted-F1: 61.33
emotion-recognition-in-conversation-on-3KET
Micro-F1: 53.37
emotion-recognition-in-conversation-on-4KET
Weighted-F1: 34.39
emotion-recognition-in-conversation-on-ecKET
Micro-F1: 0.7413
emotion-recognition-in-conversation-on-meldKET
Weighted-F1: 58.18

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp