Jointly Learning to Detect Emotions and Predict Facebook Reactions

Lisa Graziani,Stefano Melacci,Marco Gori
DOI: https://doi.org/10.48550/arXiv.1909.10779
2019-09-24
Abstract:The growing ubiquity of Social Media data offers an attractive perspective for improving the quality of machine learning-based models in several fields, ranging from Computer Vision to Natural Language Processing. In this paper we focus on Facebook posts paired with reactions of multiple users, and we investigate their relationships with classes of emotions that are typically considered in the task of emotion detection. We are inspired by the idea of introducing a connection between reactions and emotions by means of First-Order Logic formulas, and we propose an end-to-end neural model that is able to jointly learn to detect emotions and predict Facebook reactions in a multi-task environment, where the logic formulas are converted into polynomial constraints. Our model is trained using a large collection of unsupervised texts together with data labeled with emotion classes and Facebook posts that include reactions. An extended experimental analysis that leverages a large collection of Facebook posts shows that the tasks of emotion classification and reaction prediction can both benefit from their interaction.
Machine Learning,Information Retrieval
What problem does this paper attempt to address?
The main problem that this paper attempts to solve is to improve the accuracy of sentiment detection and prediction of Facebook users' reactions through joint learning models. Specifically, the author focuses on how to utilize the relationship between social network data (especially Facebook posts and their users' "reactions") and sentiment categories to improve the performance of machine - learning models in these two tasks. ### Decomposition of the Main Problem 1. **Sentiment Detection**: - Identify the user's emotional state from the text. - Use the six basic emotions defined by Ekman: anger, disgust, fear, happiness, sadness, and surprise. 2. **Prediction of Facebook Reactions**: - Predict users' reactions to Facebook posts, including LOVE, HAHA, WOW, SAD, ANGRY, and LIKE. - Note that LIKE is a general and ambiguous positive feedback, while other reactions are more specifically associated with certain emotional categories. 3. **Joint Learning**: - Propose a neural network model that can simultaneously learn sentiment detection and prediction of Facebook reactions. - Link these two tasks by introducing First - Order Logic (FOL) formulas as constraints and train in a multi - task environment. ### Key Points of the Solution - **Model Architecture**: - Use a Bidirectional Long - Short - Term Memory (Bidirectional LSTM) network to encode the input text. - Two predictors are used for reaction classification and sentiment classification respectively, and they share the same latent representation. - **Logical Constraints**: - Convert FOL formulas into polynomial constraints and incorporate them into the learning process in the form of soft constraints. - These logical rules describe the relationships between emotions and reactions, for example: \[ \forall x \, HAHA(x) \Rightarrow happiness(x) \] \[ \forall x \, SAD(x) \Rightarrow sadness(x) \] \[ \forall x \, ANGRY(x) \Rightarrow anger(x) \lor disgust(x) \] - **Dataset**: - Use partially labeled and unlabeled data for training, including: - Facebook posts and their reaction labels. - Sentences labeled with sentiment categories. - A large number of unlabeled Facebook posts. Through this method, the author aims to explore the interaction between sentiment detection and reaction prediction, thereby improving the performance of both tasks. The experimental results show that the introduction of logical constraints can significantly improve the performance of the model, especially in the sentiment classification task.