Abstract
Quantifying the intensity of human emotion in social media text is a complex task due to the informal nature of the language and the overlap of discrete emotional states. This paper introduces an "Experts Model," a modified Mixture of Experts (MoE) architecture designed to move beyond binary sentiment analysis. By integrating diverse feature sets—ranging from deep-learning embeddings like Deep-Emoji to traditional linguistic lexicons—with a suite of pre-trained machine learning specialists, the model effectively predicts emotion intensity and valence. The system demonstrated competitive performance at the SemEval-2018 competition, ranking in the top 5 across multiple subtasks.
Introduction
Traditional sentiment analysis typically classifies text as "positive" or "negative." However, this binary approach lacks the granularity required to distinguish between varying levels of emotional intensity, such as the difference between being "annoyed" and "furious." Capturing these nuances in tweets is particularly challenging due to short text lengths, non-standard language, and the frequent use of emojis and hashtags. This research focuses on identifying and quantifying four primary emotions—anger, fear, joy, and sadness—alongside general valence (pleasure vs. displeasure).
Methodology: The Experts Model
The core innovation is the Experts Model, which adapts the Mixture of Experts (MoE) framework. Unlike standard MoE where experts and gates are trained jointly, this approach utilizes a two-stage process to simplify optimization and maximize individual expert performance.
Architecture
The architecture consists of two main components:
- Pre-trained Experts: Multiple machine learning models, including Gradient Boosting, XGBoost, Random Forest, and Neural Networks, are trained independently to act as specialists on the input data.
- Gating Network: A separate network learns to assign weights ($w_1$ to $w_5$) to each expert's prediction ($y_1$ to $y_5$). The final output is a weighted sum of these predictions, allowing the system to dynamically prioritize the most reliable expert for a given input.
Feature Engineering
The model leverages an eclectic mix of features to capture the multifaceted nature of tweets:
- Deep-Emoji: Features derived from a model trained on 1.2 billion tweets, providing a deep understanding of sarcasm and emotional nuance through emoji usage.
- Word Embeddings: GloVe and Skip-Thought vectors are used to capture semantic meaning and sentence-level context.
- Lexicons & Stylometrics: Traditional dictionaries (e.g., AFINN) and stylometric features (punctuation, part-of-speech tags) provide baseline linguistic signals.
- Hashtag Intensity: Specific emotional weights are assigned to hashtags, which often serve as explicit emotional markers.
Experimental Setup and Results
The model was evaluated using the SemEval-2018 Task-1 (Affect in Tweets) dataset, which covers emotion intensity regression (EI-reg), ordinal classification (EI-oc), and multi-label classification (E-c).
Performance Analysis
The Experts Model consistently ranked in the top 5 globally. Key results include:
- EI-reg & EI-oc: Ranked 5th overall in macro-average Pearson correlation.
- E-c (Multi-label): Ranked 3rd for Jaccard similarity and 1st for macro F1 score.
Analysis of feature importance revealed that Deep-Emoji was one of the most dominant features, likely due to its extensive pre-training on social media data. Furthermore, the "Combined" vector approach, facilitated by the gating network, consistently yielded higher Pearson scores than any single feature type, validating the diversity-driven architecture.
Conclusion
The Experts Model demonstrates that a weighted ensemble of specialized models, fueled by a rich variety of features, can effectively capture the intensity of human emotion in social media. While the results are highly competitive, the current Pearson correlation scores (0.50–0.75) indicate room for further improvement. Future research may explore the integration of Transformer-based experts and more efficient real-time processing techniques.
Summary updated