Skip to main content

Sarcasm Analysis on Twitter Data Using Machine Learning Approaches

  • Chapter
  • First Online:
Trends in Social Network Analysis

Part of the book series: Lecture Notes in Social Networks ((LNSN))

Abstract

Sarcasm analysis, being one of the toughest challenges in natural language processing (NLP), has become a hot topic of research these days. A lot of work has already been done in the field of sentiment analysis, but there are huge challenges still being faced in identification of sarcasm. The property of sarcasm that makes it difficult to analyze and detect is the gap between its literal and intended meaning. Detecting sentiment in social media like Facebook, Twitter, online blogs, and reviews has become an essential task as they influence every business organization. In this chapter, four approaches were proposed, namely parsing-based lexical generation algorithm, likes and dislikes contradiction, tweet contradicting universal facts, and tweet contradicting temporary facts. The aim of the proposed methods is to extract text features such as lexical, hyperbole, behavioral, and universal facts. Further, four machine learning classifiers, namely support vector machine, Naive Bayes, maximum entropy, and decision tree, were deployed. Finally, we trained these classifiers using an extracted feature set to identify sarcasm in Twitter data. This work attains a considerable accuracy improvement over existing techniques.

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 99.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 129.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 129.99
Price excludes VAT (USA)
  • Durable hardcover 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. Barbieri, F., Saggion, H., Ronzano, F.: Modelling sarcasm in twitter, a novel approach. In: Proceedings of the 5th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, pp. 50–58. ACL, Baltimore (2014)

    Google Scholar 

  2. Berger, A.L., Pietra, V.J.D., Pietra, S.A.D.: A maximum entropy approach to natural language processing. Computational Linguistics. 22, 39–71 (1996)

    Google Scholar 

  3. Bharti, S.K., Babu, K.S., Jena, S.K.: Parsing-based sarcasm sentiment recognition in twitter data. In: International Conference on Advances in Social Networks Analysis and Mining (ASONAM), France, pp. 1373–1380. IEEE/ACM, New York (2015)

    Google Scholar 

  4. Bharti, S.K., Vachha, B., Pradhan, R.K., Babu, K.S., Jena, S.K.: Sarcastic sentiment detection in tweets streamed in real time: a big data approach. Digit. Commun. Netw. 2 (3), 108–121 (2016); Elsevier

    Google Scholar 

  5. Bhattacharyya, P., Verma, N.: Automatic lexicon generation through wordnet. In: International WordNet Conference (GWC), Brno, pp. 226–233 (2004)

    Google Scholar 

  6. Carvalho, P., Sarmento, L., Silva, M. J., De Oliveira, E.: Clues for detecting irony in user-generated contents: oh…!! it’s so easy;-. In: Proceedings of the 1st International CIKM Workshop on Topic-Sentiment Analysis for Mass Opinion, pp. 53–56. ACM, New York (2009)

    Google Scholar 

  7. Chaumartin, F.R.: UPAR7: a knowledge-based system for headline sentiment tagging. In Proceedings of the 4th International Workshop on Semantic Evaluations, pp. 422–425, ACL, Stroudsburg (2007)

    Google Scholar 

  8. Davidov, D., Tsur, O., Rappoport, A.: Semi-supervised recognition of sarcastic sentences in twitter and amazon. In Proceedings of the Fourteenth Conference on Computational Natural Language Learning, pp. 107–116, ACL, Stroudsburg (2010)

    Google Scholar 

  9. Esuli, A., Sebastiani, F.: Sentiwordnet: A publicly available lexical resource for opinion mining. In: Proceedings of LREC, vol. 6, pp. 417–422 (2006)

    Google Scholar 

  10. Filatova, E.: Irony and sarcasm: Corpus generation and analysis using crowdsourcing. In: LREC, pp. 392–398 (2012)

    Google Scholar 

  11. Gautam, G., Yadav, D.: Sentiment analysis of twitter data using machine learning approaches and semantic analysis. In: Seventh International Conference on Contemporary Computing (IC3), India, pp. 437–442. IEEE, New York (2014)

    Google Scholar 

  12. González-Ibánez, R., Muresan, S., Wacholder, N.: Identifying sarcasm in twitter: a closer look. In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: short papers, vol. 2, pp. 581–586 (2011)

    Google Scholar 

  13. Ingle, A., Maheshwari, N., Sutrave, N., Akumarthi, S., Bhitre, T.: Sentiment analysis: sarcasm detection of tweets. B.Tech thesis, pp. 1–35. VNIT, Nagpur, India (2014)

    Google Scholar 

  14. Justo, R., Corcoran, T., Lukin, S.M., Walker, M., Torres, M.I.: Extracting relevant knowledge for the detection of sarcasm and nastiness in the social web. Knowl.-Based Syst. 69, 124–133 (2014)

    Article  Google Scholar 

  15. Kreuz, R.J., Caucci, G.M.: Lexical influences on the perception of sarcasm. In: Proceedings of the Workshop on Computational Approaches to Figurative Language, pp. 1–4. ACL, Stroudsburg (2007)

    Google Scholar 

  16. Kreuz, R.J., Roberts, R.M.: Two cues for verbal irony: hyperbole and the ironic tone of voice. Int. J. Metaphor Symb. 10, 21–31 (1995)

    Google Scholar 

  17. Kunneman, F., Liebrecht, C., Van Mulken, M., Van den Bosch, A.: Signaling sarcasm: from hyperbole to hashtag. Inf. Process. Manag. 51 (4), 500–509 (2015)

    Article  Google Scholar 

  18. Liebrecht, C.C., Kunneman, F.A., van den Bosch, A.P.J.: The perfect solution for detecting sarcasm in tweets# not. In: 4th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, Georgia, pp. 29–37. ACL, New Brunswick (2013)

    Google Scholar 

  19. Liu, P., Chen, W., Ou, G., Wang, T., Yang, D., Lei, K.: Sarcasm detection in social media based on imbalanced classification. In: 15th International Conference on Web-Age Information Management, China, pp. 459–471. Springer, Cham (2014)

    Google Scholar 

  20. Lukin, S., Walker, M.: Really? Well apparently bootstrapping improves the performance of sarcasm and nastiness classifiers for online dialogue. In: Proceedings of the Workshop on Language Analysis in Social Media, Georgia, pp. 30–40. ACL, Atlanta (2013)

    Google Scholar 

  21. Lunando, E., Purwarianti, A.: Indonesian social media sentiment analysis with sarcasm detection. In: International Conference on IEEE on Advanced Computer Science and Information Systems (ICACSIS), Bali, pp. 195–198, IEEE, New York (2013)

    Google Scholar 

  22. Marcus, M.P., Marcinkiewicz, M.A., Santorini, B.: Building a large annotated corpus of English: the Penn Treebank. Computational Linguistics. 19, 313–330 (1993)

    Google Scholar 

  23. McCallum, A., Nigam, K.: A comparison of event models for naive Bayes text classification. In: AAAI-98 Workshop on Learning for Text Categorization, vol. 752, pp. 41–48 (1998)

    Google Scholar 

  24. Pang, B., Lee, L., Vaithyanathan, S.: Thumbs up?: sentiment classifcation using machine learning techniques. In: Proceedings of the Association for Computational Linguistics Conference on Empirical Methods in Natural Language Processing, vol. 10, pp. 79–86 (2002)

    Google Scholar 

  25. Pedersen, T.: A decision tree of bigrams is an accurate predictor of word sense. In: Proceedings of the Second Meeting of the North American Chapter of the Association for Computational Linguistics on Language Technologies, pp. 1–8. ACL, Stroudsburg (2001)

    Google Scholar 

  26. Pennebaker, J.W., Francis, M.E., Booth, R.J.: Linguistic inquiry and word count: LIWC 2001, Mahway: Lawrence Erlbaum Associates, 71, 1–22 (2001)

    Google Scholar 

  27. Pielage, A.J.: Detecting sarcasm in english text. Artificial Intelligence MSc thesis, pp. 1–48 (2014)

    Google Scholar 

  28. Rajadesingan, A., Zafarani, R., Liu, H.: Sarcasm detection on twitter: a behavioral modeling approach. In: Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, pp. 97–106, ACM, New York (2015)

    Google Scholar 

  29. Riloff, E., Qadir, A., Surve, P., De Silva, L., Gilbert, N., Huang, R.: Sarcasm as contrast between a positive sentiment and negative situation. In: Proceedings of the Empirical Methods in Natural Language Processing, vol. 13, pp. 704–714 (2013)

    Google Scholar 

  30. Rusu, D., Dali, L., Fortuna, B., Grobelnik, M., Mladenic, D.: Triplet extraction from sentences. In: Proceedings of the 10th International Multiconference Information Society-IS, pp. 8–12 (2007)

    Google Scholar 

  31. Strapparava, C., Valitutti, A.: Wordnet affect: an affective extension of wordnet. In: LREC, vol. 4, pp. 1083–1086 (2004)

    Google Scholar 

  32. Tayal, D.K., Yadav, S., Gupta, K., Rajput, B., Kumari, K.: Polarity detection of sarcastic political tweets. In: Computing for Sustainable Global Development (INDIACom), Delhi, pp. 625–628, IEEE, New York (2014)

    Google Scholar 

  33. Tripathy, A., Agrawal, A., Rath, S.K.: Classification of sentimental reviews using machine learning techniques. Proc. Comput. Sci. 57, 821–829 (2015)

    Article  Google Scholar 

  34. Tsur, O., Davidov, D., Rappoport, A.: ICWSM-a great catchy name: semi-supervised recognition of sarcastic sentences in online product reviews. In: Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media, pp. 162–169 (2010)

    Google Scholar 

  35. Tungthamthiti, P., Kiyoaki, S., Mohd, M.: Recognition of sarcasm in tweets based on concept level sentiment analysis and supervised learning approaches. In: Proceedings of Pacific Asia Conference on Language, Information and Computing, Thailand, pp. 404–413. ACL, Stroudsburg (2014)

    Google Scholar 

  36. Utsumi, A.: Verbal irony as implicit display of ironic environment: distinguishing ironic utterances from non irony. J. Pragmat. 32, 1777–1806 (2000)

    Article  Google Scholar 

  37. Verma, N., Bhattacharyya, P.: Automatic lexicon generation through wordnet. In: International WordNet Conference (GWC), Brno, pp. 226–233 (2004)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Santosh Kumar Bharti .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Cite this chapter

Bharti, S.K., Pradhan, R., Babu, K.S., Jena, S.K. (2017). Sarcasm Analysis on Twitter Data Using Machine Learning Approaches. In: Missaoui, R., Abdessalem, T., Latapy, M. (eds) Trends in Social Network Analysis. Lecture Notes in Social Networks. Springer, Cham. https://doi.org/10.1007/978-3-319-53420-6_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-53420-6_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-53419-0

  • Online ISBN: 978-3-319-53420-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics