Skip to main content

Emotion Detection Framework for Twitter Data Using Supervised Classifiers

  • Conference paper
  • First Online:
Data Engineering and Communication Technology

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1079))

Abstract

“The task of emotion detection usually involves the analysis of text. Humans show universal consistency in identifying emotions however shows an excellent deal of variation between individuals in their abilities.” We have detected the emotion for Twitter messages as they provide rich ensemble of human emotions. We have used machine learning algorithms namely Naive Bayes (NB) and k-nearest neighbor algorithm (KNN) to detect the emotion of Twitter message and then classify the Twitter messages into four emotional categories. We also made a comparative study of two supervised machine learning algorithms; the eager learning classifier (NB) performed well when compared with lazy learning classifier (KNN).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Roberts, K., Roach, M.A., Johnson, J., Guthrie, J., Harabagiu, S.M.: EmpaTweet: annotating and detecting emotions on Twitter. In: Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC), ROBERTS12.201.L12-1059 (2012)

    Google Scholar 

  2. Hasan, M., Rundensteiner, E., Agu, E.: Emotex: detecting emotions in Twitter messages. Ase BigData/SocialCom/CyberSecurity Conference, 27–31 May 2014

    Google Scholar 

  3. Suhasini, M., Badugu, S.: Two step approach for emotion detection on Twitter data. Int. J. Comput. Appl. (0975 – 8887) 179(53) (2018)

    Google Scholar 

  4. Bollen, J., Mao, H., Pepe, A.: Modeling public mood and emotion: Twitter sentiment and socio-economic phenomena. In: International AAAI Conference on Weblogs and Social Media (ICWSM’11) (2011)

    Google Scholar 

  5. Thelwall, M., Buckley, K., Paltoglou, G.: Sentiment in Twitter events. J. Am. Soc. Tavel Model. Simul. Design. (2007)

    Google Scholar 

  6. Diener, E., Seligman, M.E.P.: Beyond money: toward an economy of well-being. In: Psychological Science in the Public Interest. American Psychological Society (2004)

    Google Scholar 

  7. Diener, E.: Assessing Well-Being: The Collected Works of Ed Diener, vol. 3. Springer (2009)

    Google Scholar 

  8. Diener, E., Lucas, R.E., Oishi, S.: Subjective Wellbeing: The Science of Happiness and Life Satisfaction

    Google Scholar 

  9. De Choudhury, M., Counts,S., Gamon, M.: Not all moods are created equal! Exploring human emotional states in social media. In: Sixth International AAAI Conference on Weblogs and Social Media (ICWSM’12) (2012)

    Google Scholar 

  10. Lund, K., Burgess, C.: Producing high-dimensional semantic spaces from lexical co-occurrence. Behav. Res. Methods Instrum. Comput. 28(2), 203–208 (1996)

    Article  Google Scholar 

  11. Go A., Bhayani, R., & Huang L., Twitter Sentiment Classification Using Distant Supervision. Retrieved (2014)

    Google Scholar 

  12. Mohammad, S.M.: #Emotional tweets. In: First Joint Conference on Lexical and Computational Semantics, pp. 246–255, Canada (2012)

    Google Scholar 

  13. Alm, C.O., Sproat, R.: Emotional sequencing and development in fairy tales, pp. 668–674. Springer (2005)

    Google Scholar 

  14. Alm, C.O., Roth, D., Sproat, R.: Emotions from text: machine learning for textbased emotion prediction. In: Proceedings of the Joint Conference on HLT–EMNLP, Vancouver, Canada (2005)

    Google Scholar 

  15. Francisco, V., Gervás, P.: Automated mark up of affective information in english texts. In: Text, Speech and Dialogue, vol. 4188, pp. 375–382. Lecture Notes in Computer Science. Springer, Berlin, Heidelberg (2006)

    Google Scholar 

  16. Genereux, M., Evans, R.P.: Distinguishing affective states in weblogs. In: AAAI-2006 Spring Symposium on Computational Approaches to AnalysingWeblogs, pp. 27–29, Stanford, California (2006)

    Google Scholar 

  17. Neviarouskaya, A., Prendinger, H., Ishizuka, M.: Compositionality principle in recognition of fine-grained emotions from text. In: Proceedings of the Proceedings of the Third International Conference on Weblogs and Social Media (ICWSM-09), pp. 278–281, San Jose, California (2009)

    Google Scholar 

  18. Badugu, S., Suhasini, M.: Emotion detection on Twitter data using knowledge base approach. Int. J. Comput. Appl. (0975 – 8887) 162(10) (2017)

    Google Scholar 

  19. Agarwal, A., Xie, B., Vovsha, I., Rambow, O., Passonnea, R.: Sentiment analysis of Twitter data. In: Proceedings of the Workshop on Language in Social Media (LSM), pp. 30–38, Portland, Oregon (2011)

    Google Scholar 

  20. Montejo-Ráez, A., Martínez-Cámara, E., Martín-Valdivia, M. T., Urena-Lopez, L. A.: Random Walk Weighting over SentiWordNet for Sentiment Polarity Detection on Twitter. In: Proceedings of the 3rd Workshop on Computational Approaches to Subjectivity and Sentiment Analysis, pp. 3–10, Republic of Korea (2012)

    Google Scholar 

  21. Kumar, A., Sebastian, T.M.: Sentiment analysis on Twitter. Int. J. Comput. Sci. 9(4). ISSN:1694-0814 (2012). (Online)

    Google Scholar 

  22. Purver, M., Battersby, S.: Experimenting with distant supervision for emotion classification. In: Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics, pp. 482–491, Avignon, France (2012)

    Google Scholar 

  23. Tanaka, Y., Takamura, H., Okumura, M.: Extraction and classification of facemarks with kernel methods. In: Proceedings of IUI (2005)

    Google Scholar 

  24. Naaman, M., Boase, J., Lai, C.-H.: Is it really about me? Message content in social awareness streams. In ACM Conference on Computer Supported Cooperative Work (2010)

    Google Scholar 

  25. Agarwal, S., Sureka, A.: Using KNN and SVM based one-class classifier for detecting online radicalization on Twitters, ICDCIT, LNCS 8956, pp. 431–442, Switzerland (2015). https://link.springer.com/chapter/10.1007/978-3-319-14977-6_47

  26. Liew, J.S.Y., Turtle, H.R.: Exploring fine-grained emotion detection in Tweets. In: Proceedings of NAACL-HLT, pp. 73–80, Association for Computational Linguistics, California (2016)

    Google Scholar 

  27. De Choudhury, M., Gamon, M., Counts, S., Horvitz, E.: Predicting depression via social media. In: International AAAI Conference on Weblogs and Social Media (ICWSM’13). The AAAI Press (2013)

    Google Scholar 

  28. Pearl, L., Steyvers, M.: Identifying emotions, intentions, and attitudes in text using a game with a purpose. In: Proceedings of the NAACLHLT Workshop on Computational Approaches to Analysis and Generation of Emotion in Text, Los Angeles, California (2010)

    Google Scholar 

  29. Golder, S., Loke, Y.K., Bland, M.: Meta-analyses of adverse effects data derived from randomized controlled trials as compared to observational studies: methodological overview. PLoS Med 8(5), e1001026 (2011). https://doi.org/10.1371/journal.pmed.1001026

  30. Khan, A.Z.H., Atique, M., Thakare, V. M.: Combining lexicon-based and learning-based methods for Twitter sentiment analysis. Int. J. Electron. CSCSE. ISSN:2277-9477 (2015)

    Google Scholar 

  31. Strapparava, C., Mihalcea, R.: Learning to identify emotions in text. In: Proceedings of the ACM Symposium on Applied computing. ACM, pp. 1556–1560 (2008)

    Google Scholar 

  32. http://sentiwordnet.isti.cnr.it

  33. Russell, J.A.: A circumplex model of affect. J. Pers. Soc. Psychol. 39, 1161–1178 (1980)

    Article  Google Scholar 

  34. Olson, D.H., Sprenkle, D.H., Russell, C.S.: Circumplex model of marital and family system: I. Cohesion and adaptability dimensions, family types and clinical applications, vol. 18, Issue No. 1, pp. 3–28. Wiley Online Library (1979)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Matla Suhasini .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Suhasini, M., Srinivasu, B. (2020). Emotion Detection Framework for Twitter Data Using Supervised Classifiers. In: Raju, K.S., Senkerik, R., Lanka, S.P., Rajagopal, V. (eds) Data Engineering and Communication Technology. Advances in Intelligent Systems and Computing, vol 1079. Springer, Singapore. https://doi.org/10.1007/978-981-15-1097-7_47

Download citation

Publish with us

Policies and ethics