An Emotional Journey: Detecting Emotion Trajectories in Dutch Customer Service Dialogues

Sofie Labat, Amir Hadifar, Thomas Demeester, Véronique HosteW-NUT @ COLING 2022

Introduction

Emotion Recognition in Conversations (ERC) is a critical component of modern Natural Language Processing, yet most research focuses on artificial, open-domain English datasets. Real-world customer service (CS) interactions present unique challenges: data is noisy, highly imbalanced, and emotional states are dynamic rather than static. This paper introduces the EmoTwiCS dataset and explores modeling emotions as a "trajectory"—a sequence of shifts—to better capture the emotional journey of a customer.

The EmoTwiCS Dataset

The researchers introduced EmoTwiCS ("Emotions in CS interactions on Twitter"), a corpus comprising 9,489 Dutch Twitter dialogues across the telecommunications, public transportation, and airline sectors. Unlike many curated datasets, EmoTwiCS preserves the real-world noise of social media, including abbreviations and slang.

The dataset features a unique multi-layered annotation schema that captures the interaction from multiple angles, as shown in the figure below.

The EmoTwiCS annotation schema applied to a sample dialogue.

Methodology

The study compared two primary modeling strategies:

  1. Isolated Turn Classification: Fine-tuning transformer models (BERTje, RobBERT, and XLM) to predict labels for individual tweets.
  2. Sequence Labeling (The Trajectory Approach): Adding a Conditional Random Field (CRF) layer on top of RobBERT. This allows the model to consider the entire sequence of turns, learning common emotional transitions—such as a customer moving from "Annoyance" to "Gratitude" following a helpful operator response.

Key Results and Insights

The experiments yielded several significant findings regarding the nature of emotional expression in customer service:

The Power of Context

Modeling the emotional trajectory via a CRF layer provided a consistent performance boost over isolated turn baselines. This benefit was particularly pronounced in longer conversations, where the sequence of emotional shifts provides a stronger signal than individual utterances alone.

Comparison of accuracy for models with and without a CRF layer across varying conversation lengths.

Model Performance and Generalization

RobBERT and XLM emerged as the top-performing models. RobBERT achieved a weighted F1-score of 83.4% for subjectivity and 73.7% for emotion clusters in temporal testing. Interestingly, models trained on one industry sector (e.g., Telecom) generalized well to others (e.g., Airlines) for emotion detection, suggesting a universal "language of emotion" in customer service. However, "Cause" detection remained highly domain-specific due to industry-specific jargon.

Class Imbalance

The models excelled at identifying high-frequency states like Gratitude (0.92 F1) and Neutral (0.73 F1). However, performance lagged for rare emotions such as "Relief" or "Nervousness" due to limited training examples in the dataset.

Conclusion and Future Directions

This research demonstrates that capturing the emotional journey in Dutch customer service dialogues is both feasible and beneficial. While the CRF improvements show a clear positive trend, future work will focus on real-time prediction to assist live agents and joint learning models that simultaneously analyze the cause of an issue and its emotional impact. Expanding the dataset to include longer dialogues will further validate the trajectory hypothesis.

Summary updated

BibTeX
@inproceedings{labat2022emotional,
  author = {Sofie Labat and Amir Hadifar and Thomas Demeester and Véronique Hoste},
  title = {{An Emotional Journey: Detecting Emotion Trajectories in Dutch Customer Service Dialogues}},
  booktitle = {W-NUT @ COLING},
  year = {2022},
  url = {https://openreview.net/forum?id=Kur5lldR2t2},
}
Figure