Mining the Minds of Customers from Online Chat Logs

Kunwoo Park, Jaewoo Kim, Jaram Park, Meeyoung Cha, Jiin Nam, Seunghyun Yoon, Eunhee Rhim · DOI

TL;DR

This paper explores how to predict customer satisfaction in online chat support by analyzing conversation content and metadata. They found that the sentiment expressed by both customers and agents is a far stronger predictor of satisfaction than traditional metrics like chat length or response time. This work offers a data-driven approach for businesses to proactively identify and address customer dissatisfaction.

What Problem Does This Paper Address?

Customer service operations are crucial for business success, and a key goal is to maximize customer satisfaction. While traditional customer service (CS) often focuses on efficiency metrics like response times and agent availability, the emotional and sentiment-driven aspects of customer experience have been less explored. Live chat offers a rich source of data in text format, but inferring customer satisfaction from these logs is challenging. Existing methods often rely on post-session surveys, which suffer from low participation rates and a skewed, J-shaped distribution of responses (many very satisfied, many very dissatisfied, few in between). This leaves a significant portion of customer experiences unevaluated. The authors aim to bridge this gap by using computational methods to predict customer satisfaction from the chat logs themselves, particularly focusing on the role of sentiment.

Methods

The core of this research involves applying sentiment analysis and machine learning techniques to a large dataset of online chat logs.

  • Sentiment Extraction: The authors employed VADER (Valence Aware Dictionary and sentiment Reasoner), a sentiment analysis tool specifically designed for social media and short texts, to analyze the sentiment of each utterance in the chat logs. VADER was chosen for its effectiveness with informal language, which is common in chat interactions.
  • Feature Engineering: They extracted various features from the chat sessions, including:
  • Session-level metadata: Chat length, number of utterances, time of day, etc.
  • Agent sentiment: Sentiment scores for agent utterances at different stages of the conversation.
  • Customer sentiment: Sentiment scores for customer utterances at different stages of the conversation.
  • Predictive Modeling: To predict customer dissatisfaction, they trained and evaluated several machine learning algorithms: logistic regression, Support Vector Machines with a radial kernel (SVM-R), and Random Forest. These models were evaluated using 10-fold cross-validation.

Datasets

The study utilized a dataset of approximately 170,000 online chat sessions from Samsung Electronics' IT-mediated CS centers. This data covered conversations between customers and agents regarding mobile products in the United States. The dataset included:

  • Full conversation logs in XML format.
  • Information on product type, agent ID, customer details (ID, geolocation, timezone).
  • Duration of the session.
  • Utterance details (speaker, timestamp, text content).
  • Post-session survey results for a subset of sessions (only 16% of sessions had complete survey data).

The authors plan to make an anonymized version of this dataset available to the research community.

Key Insights and Ideas

  • Sentiment is King: The most striking finding is that the sentiment expressed by both customers and agents during the chat is the most powerful predictor of overall customer satisfaction. This suggests that the emotional tone of the interaction is more critical than operational metrics.
  • Agent Sentiment Matters Too: It's not just the customer's mood; the agent's sentiment also plays a significant role in shaping the customer's perception of satisfaction. This highlights the importance of agent training in maintaining a positive and empathetic tone.
  • Dynamic Sentiment: Sentiment dynamics within a conversation are important. The study observed that customer sentiment tends to vary more than agent sentiment, and significant deviations occur after the initial stages of the chat.
  • J-Shaped Distribution Challenge: The inherent J-shaped distribution of survey responses (many extreme satisfaction/dissatisfaction) makes predicting dissatisfaction difficult, but the sentiment analysis approach still proves effective.
  • Agent Sentiment at the End: Agent sentiment, particularly in the later stages of a chat, appears to be a strong indicator, especially in conversations marked as "very dissatisfying." This could reflect agents' attempts to manage the interaction or their own reactions to unresolved issues.

Key Results

  • Predictive Accuracy: Random Forest models incorporating sentiment features achieved significantly better performance than models using only session metadata. SVM-R showed the highest prediction accuracy (0.8378), while Random Forest yielded the highest F1 score (0.3949), indicating a good balance between precision and recall for identifying dissatisfied sessions.
  • Feature Importance: Sentiment features were found to be crucial. Specifically, agent sentiment from Step 4 of the chat dialog was identified as the most important feature for predicting satisfaction, followed closely by customer sentiment from the same stage.
  • Qualitative Findings: Analysis of discriminative N-grams in the final stage of agent conversations revealed terms like "button" and "the blue" were more common in non-dissatisfying sessions, potentially related to survey prompts. Conversely, unresolved issues might lead to agents being less likely to ask for surveys or customers disconnecting abruptly.

Limitations and Future Work

  • Sentiment Lexicon Limitations: The VADER lexicon, while effective, is designed for general online messages. The authors acknowledge that it may not fully capture domain-specific nuances or slang in CS chats. Future work could involve expanding sentiment dictionaries to better handle domain-specific words and expressions (e.g., "crack" indicating a problem on screens).
  • Bias in Survey Data: The reliance on survey data for training and validation is limited by low participation rates and potential biases (e.g., agents may be more likely to ask for surveys in satisfactory sessions). This can skew the data.
  • Cultural Nuances: Human sentiment is subject to cultural influences, which were not explicitly addressed in this study.
  • Future Directions: The authors suggest further research into understanding the J-shaped distribution of satisfaction more deeply, exploring non-seed approaches for sentiment analysis, and potentially developing more sophisticated methods for handling the dynamic nature of sentiment in conversations. They also plan to make their data available for broader research.

Summary updated

BibTeX
@inproceedings{park2015mining,
  author = {Kunwoo Park and Jaewoo Kim and Jaram Park and Meeyoung Cha and Jiin Nam and Seunghyun Yoon and Eunhee Rhim},
  title = {{Mining the Minds of Customers from Online Chat Logs}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2015},
  doi = {10.1145/2806416.2806621},
}
Figure