Abstract
Complaining is a speech act extensively used by humans to communicate a negative inconsistency between reality and expectations. Previous work on automatically identifying complaints in social media has focused on using feature-based and task-specific neural network models. Adapting state-of-the-art pre-trained neural language models and their combinations with other linguistic information from topics or sentiment for complaint prediction has yet to be explored. In this paper, we evaluate a battery of neural models underpinned by transformer networks which we subsequently combine with linguistic information. Experiments on a publicly available data set of complaints demonstrate that our models outperform previous state-of-the-art methods by a large margin achieving a macro F1 up to 87.
Introduction
Social media has become the modern-day "complaint box," but for organizations, filtering through millions of tweets to find genuine grievances is a significant challenge. Automated complaint detection is difficult because complaining is a complex "speech act." Unlike simple sentiment analysis, which identifies negative polarity, a complaint involves a perceived "breach of expectations." This often manifests through implicit expressions, irony, or overlapping speech acts where a tweet might simultaneously be a suggestion and a grievance.
Previous research relied on manual feature engineering or basic neural networks. This study explores whether the contextual power of Transformer-based models can better capture these linguistic nuances.
Methodology
The researchers evaluated a battery of Transformer models, including BERT, ALBERT, RoBERTa, and XLNet. They also introduced a variant called M-BERT (Multimodal BERT), adapted to inject auxiliary linguistic information into the model:
- Emotion: A 9-dimensional vector representing basic human emotions.
- Topics: A 200-dimensional vector representing semantic themes (e.g., "food," "service").
The study also utilized Distant Supervision, pre-training models on a large "noisy" dataset of ~36,000 tweets collected via complaint-related hashtags (e.g., #badservice) before fine-tuning on a manually annotated dataset.
Experimental Results
The primary evaluation was performed on a publicly available Twitter dataset containing 1,232 complaints and 739 non-complaints across nine distinct domains. The results demonstrate that Transformer models significantly outperform previous benchmarks.
Key Insights
- Context is King: Vanilla BERT outperformed models manually fed extra "topic" or "emotion" data. This suggests that the internal representations learned by Transformers already capture much of the linguistic nuance previously thought to require manual feature engineering.
- Domain Sensitivity: Training on a single, small domain leads to poor generalization. However, training on a pooled dataset of all domains makes the model remarkably robust, even when tested on a completely new category.
Limitations and Future Work
Despite achieving a new state-of-the-art F1-score of 87.0, the models still face hurdles:
- Irony: 14% of errors were due to ironic complaints (e.g., "Thanks for the great service, my package arrived in three pieces!").
- Implicit Complaints: 26% of errors occurred when users implied dissatisfaction without explicit negative words.
- Keyword Traps: Non-complaints containing words like "dm" or "lost" were often misclassified due to their high frequency in customer service contexts.
Future work will explore multimodal complaint identification, combining text with images (such as photos of broken products) to further improve detection accuracy.
Summary updated