Detecting Egregious Conversations between Customers and Virtual Agents

Tommy Sandbank, Michal Shmueli-Scheuer, Jonathan Herzig, David Konopnicki, John T. Richards, David Piorkowski

Abstract

Virtual agents often encounter conversational breakdowns that lead to "egregious" failures—interactions so poor they necessitate human intervention. Traditional NLP methods often fail to detect these structural and behavioral anomalies. This paper introduces a machine learning approach that leverages agent, customer, and interaction-level features to identify these failures. Our model, EGR, achieves a significant improvement in F1-score over text-only baselines and demonstrates strong cross-domain generalizability.

Introduction

Virtual agents (chatbots) are now standard in customer service, yet they frequently suffer from "conversational breakdowns" due to rigid logic or incomplete training. In extreme cases, these egregious failures can damage brand reputation and lead to customer churn. Detecting these "worst-of-the-worst" interactions is challenging because they often lack obvious markers like profanity. Instead, they are characterized by repetitive loops, escalating customer frustration, and a lack of progress toward a resolution.

Methodology

The researchers framed the detection of egregious conversations as a binary classification task using a Support Vector Machine (SVM) with a linear kernel. The primary innovation lies in the feature engineering, which moves beyond simple text analysis to capture behavioral and structural cues.

Feature Engineering

Features were categorized into three distinct groups to capture the dynamics of the conversation:

  1. Agent Response Features: Focus on bot behavior, such as repetitive responses or frequent use of fallback phrases (e.g., "I don't understand").
  2. Customer Input Features: Analyze customer behavior, including rephrasing similarity, emotional peaks (frustration, sadness), and explicit requests for human assistance.
  3. Interaction Features: Capture the "dance" between the agent and customer, such as a long customer explanation followed by a generic bot failure.
Table 1: Engineered features categorized by Agent, Customer, and Interaction groups.

Experimental Setup

The study utilized logs from two commercial systems:

  • Company A: A sales support bot (avg. 8.4 turns).
  • Company B: A technical support bot (avg. 4.4 turns).

A dataset of 1,300 conversations was labeled by four HCI experts. A conversation was deemed "egregious" only if at least three experts agreed, resulting in an 8-9% prevalence of the egregious class.

Results and Discussion

The EGR model was compared against a rule-based baseline and a state-of-the-art text-based model.

Table 2: Performance comparison of Rule-based, Text-based, and EGR models for egregious and non-egregious conversation detection.

Performance Gains

As shown in Table 2, the EGR model significantly outperformed the baselines for the "egregious" class, achieving an F1-score of 0.59. Notably, the model's recall reached 0.79, indicating a high capability for identifying bad interactions that other models missed.

Key Insights

  • Interaction Dynamics: The most predictive features were those capturing the interaction between the two parties. A failure response from a bot is most significant when it follows a customer's attempt to clarify or rephrase.
  • Cross-Domain Robustness: The model trained on Company A's sales data performed remarkably well on Company B's technical data, with only a 9% drop in F1-score. In contrast, the text-based model's performance collapsed (F1 of 0.11), highlighting the domain-independence of behavioral cues.
  • Customer Cues: Customer-side features (emotion and rephrasing) were found to be more informative than agent-side features alone.

Conclusion and Future Work

This research demonstrates that behavioral and interaction patterns are superior to pure text analysis for detecting conversational failures. Future work will focus on real-time detection for "human-in-the-loop" interventions and applying deep learning architectures to better capture the temporal flow of dialogue.

Summary updated

BibTeX
@inproceedings{sandbank2018detecting,
  author = {Tommy Sandbank and Michal Shmueli-Scheuer and Jonathan Herzig and David Konopnicki and John T. Richards and David Piorkowski},
  title = {{Detecting Egregious Conversations between Customers and Virtual Agents}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1163},
}
Figure