Emoji-powered Sentiment and Emotion Detection from Software Developers’ Communication Data
Authors:
Open Access
- 27 January 2021
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 30 (2) , 1-48
Abstract
Sentiment and emotion detection from textual communication records of developers have various application scenarios in software engineering (SE). However, commonly used off-the-shelf sentiment/emotion detection tools cannot obtain reliable results in SE tasks and misunderstanding of technical knowledge is demonstrated to be the main reason. Then researchers start to create labeled SE-related datasets manually and customize SE-specific methods. However, the scarce labeled data can cover only very limited lexicon and expressions. In this article, we employ emojis as an instrument to address this problem. Different from manual labels that are provided by annotators, emojis are self-reported labels provided by the authors themselves to intentionally convey affective states and thus are suitable indications of sentiment and emotion in texts. Since emojis have been widely adopted in online communication, a large amount of emoji-labeled texts can be easily accessed to help tackle the scarcity of the manually labeled data. Specifically, we leverage Tweets and GitHub posts containing emojis to learn representations of SE-related texts through emoji prediction. By predicting emojis containing in each text, texts that tend to surround the same emoji are represented with similar vectors, which transfers the sentiment knowledge contained in emoji usage to the representations of texts. Then we leverage the sentiment-aware representations as well as manually labeled data to learn the final sentiment/emotion classifier via transfer learning. Compared to existing approaches, our approach can achieve significant improvement on representative benchmark datasets, with an average increase of 0.036 and 0.049 in macro-F1 in sentiment and emotion detection, respectively. Further investigations reveal that the large-scale Tweets make a key contribution to the power of our approach. This finding informs future research not to unilaterally pursue the domain-specific resource but try to transform knowledge from the open domain through ubiquitous signals such as emojis. Finally, we present the open challenges of sentiment and emotion detection in SE through a qualitative analysis of texts misclassified by our approach.Keywords
Funding Information
- National Key R&D Program of China (2018YFB1004800)
- Beijing Outstanding Young Scientist Program (BJJWZYJH01201910001004)
- Key Laboratory of Intelligent Passenger Service of Civil Aviation
- National Natural Science Foundation of China (J1924032 and 61725201)
This publication has 83 references indexed in Scilit:
- Classifier chains for multi-label classificationMachine Learning, 2011
- Sentiment strength detection in short informal textJournal of the American Society for Information Science and Technology, 2010
- An information-theoretic perspective of tf–idf measuresInformation Processing & Management, 2003
- Machine learning in automated text categorizationACM Computing Surveys, 2002
- The control of the false discovery rate in multiple testing under dependencyThe Annals of Statistics, 2001
- Discrete Emotions or Dimensions? The Role of Valence Focus and Arousal FocusCognition and Emotion, 1998
- Long Short-Term MemoryNeural Computation, 1997
- Learning representations by back-propagating errorsNature, 1986
- Evidence for a three-factor theory of emotionsJournal of Research in Personality, 1977
- A Coefficient of Agreement for Nominal ScalesEducational and Psychological Measurement, 1960