Flat and Hierarchical Classifiers for Detecting Emotion in Tweets

Social media are more and more frequently used by people to express their feelings in the form of short messages. This has raised interest in emotion detection, with a wide range of applications among which the assessment of users' moods in a community is perhaps the most relevant. This paper proposes a comparison between two approaches to emotion classification in tweets, taking into account six basic emotions. Additionally, it proposes a completely automated way of creating a reliable training set, usually a tedious task performed manually by humans. In this work, training datasets have been first collected from the web and then automatically filtered to exclude ambiguous cases, using an iterative procedure. Test datasets have been similarly collected from the web, but annotated manually. Two approaches have then been compared. The first is based on a direct application of a single "flat" seven-output classifier, which directly assigns one of the emotions to the input tweet, or classifies it as "objective", when it appears not to express any emotion. The other approach is based on a three-level hierarchy of four specialized classifiers, which reflect a priori relationships between the target emotions. In the first level, a binary classifier isolates subjective expressing emotions from objective tweets. In the second, another binary classifier labels subjective tweets as positive or negative. Finally, in the third, one ternary classifier labels positive tweets as expressing joy, love, or surprise, while another classifies negative tweets as expressing anger, fear, or sadness. Our tests show that the a priori domain knowledge embedded into the hierarchical classifier makes it significantly more accurate than the flat classifier.

[1]  Von-Wun Soo,et al.  Towards Text-based Emotion Detection A Survey and Possible Improvements , 2009, 2009 International Conference on Information Management and Engineering.

[2]  Saif Mohammad,et al.  Using Hashtags to Capture Fine Emotion Categories from Tweets , 2015, Comput. Intell..

[3]  Stefano Cagnoni,et al.  Multi-sensor system for detection and classification of human activities , 2011, Journal of Ambient Intelligence and Humanized Computing.

[4]  Andrea Esuli,et al.  SENTIWORDNET: A Publicly Available Lexical Resource for Opinion Mining , 2006, LREC.

[5]  Eloisa Vargiu,et al.  Using Taxonomic Domain Knowledge in Text Categorization Tasks , 2007 .

[6]  Alex A. Freitas,et al.  A survey of hierarchical classification across different application domains , 2010, Data Mining and Knowledge Discovery.

[7]  Eloisa Vargiu,et al.  A PROGRESSIVE FILTERING APPROACH TO HIERARCHICAL TEXT CATEGORIZATION , 2008 .

[8]  Susan T. Dumais,et al.  Hierarchical classification of Web content , 2000, SIGIR '00.

[9]  Agostino Poggi,et al.  Social Media for Online Collaboration in Firms and Organizations , 2016, Int. J. Inf. Syst. Model. Des..

[10]  Erik Cambria,et al.  Sentic patterns: Dependency-based rules for concept-level sentiment analysis , 2014, Knowl. Based Syst..

[11]  Dua'a Al-Hajjar,et al.  Applying sentiment and emotion analysis on brand tweets for digital marketing , 2015, 2015 IEEE Jordan Conference on Applied Electrical Engineering and Computing Technologies (AEECT).

[12]  Stan Szpakowicz,et al.  Hierarchical versus Flat Classification of Emotions in Text , 2010, HLT-NAACL 2010.

[13]  Carlo Strapparava,et al.  Learning to identify emotions in text , 2008, SAC '08.

[14]  Bing Liu,et al.  Sentiment Analysis and Opinion Mining , 2012, Synthesis Lectures on Human Language Technologies.

[15]  Cristina Bosco,et al.  Felicittà: Visualizing and Estimating Happiness in Italian Cities from Geotagged Tweets , 2013, ESSEM@AI*IA.

[16]  Diana Inkpen,et al.  Hierarchical Approach to Emotion Recognition and Classification in Texts , 2010, Canadian Conference on AI.

[17]  Michele Tomaiuolo,et al.  A Case-Study for Sentiment Analysis on Twitter , 2015, WOA.

[18]  Michele Tomaiuolo,et al.  Social Network and Sentiment Analysis on Twitter: Towards a Combined Approach , 2015, KDWeb.

[19]  Carlo Strapparava,et al.  WordNet Affect: an Affective Extension of WordNet , 2004, LREC.

[20]  Daphne Koller,et al.  Hierarchically Classifying Documents Using Very Few Words , 1997, ICML.

[21]  W. G. Parrott,et al.  Emotions in social psychology : essential readings , 2001 .