Skip to main content

Polarity Classification of Tweets Considering the Poster’s Emotional Change by a Combination of Naive Bayes and LSTM

  • Conference paper
  • First Online:
Computational Science and Its Applications – ICCSA 2019 (ICCSA 2019)

Abstract

Twitter, as a popular social networking service, is used all over the world, with which users post tweets for various purposes. When users post tweets, an emotion may be behind the messages. As the emotion changes over time, we should better consider their emotional changes and states when analyzing the tweets. In this study, we improve polarity classification by considering the poster’s emotional state. Firstly, we analyze the sentence structure of a tweet and calculate emotion scores for each category by Naive Bayes. Then, the poster’s emotion state is estimated by the emotion scores, and a prediction model of emotional state is created by Long Short Term Memory (LSTM). Based on the predicted emotional state, weights are added to the scores. Finally, polarity classification is performed based on the weighted emotion scores for each category. In our experiments, our approach showed better accuracy than other related studies.

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 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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

Notes

  1. 1.

    https://github.com/tensorflow/models/tree/master/research/syntaxnet.

References

  1. Beasley, A., Mason, W.: Emotional states vs. emotional words in social media. In: Proceedings of ACM Web Science Conference, WebSci 2015, pp. 1–10. ACM, New York, NY, USA (2015)

    Google Scholar 

  2. Braunstein, L.M., Gross, J.J., Ochsner, K.N.: Explicit and implicit emotion regulation: a multi-level framework. Soc. Cogn. Affect. Neurosci. 12(10), 1545–1557 (2017)

    Article  Google Scholar 

  3. Elfajr, N.M., Sarno, R.: Sentiment analysis using weighted emoticons and sentiwordnet for Indonesian language. In: Proceedings of 2018 International Seminar on Application for Technology of Information and Communication, pp. 234–238 (2018)

    Google Scholar 

  4. Fujita, M., Watanabe, J., Kawamoto, K., Akitomi, T., Ara, K.: A method for analyzing influence of emotions of posts in SNS conversations. In: Proceedings of International Conference on Social Intelligence and Technology, pp. 20–27, May 2013

    Google Scholar 

  5. Go, A., Bhayani, R., Huang, L.: Twitter sentiment classification using distant supervision. CS224N Project report, pp. 1–6, Stanford (2009)

    Google Scholar 

  6. Huang, A., Ebert, D., Rider, P.: You are what you tweet: a new hybrid model for sentiment analysis. In: Perner, P. (ed.) MLDM 2017. LNCS (LNAI), vol. 10358, pp. 403–416. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-62416-7_29

    Chapter  Google Scholar 

  7. Hulliyah, K., Bakar, N.S.A.A., Ismail, A.R.: Emotion recognition and brain mapping for sentiment analysis: a review. In: Proceedings of 2017 Second International Conference on Informatics and Computing (ICIC2017), pp. 1–5, November 2017

    Google Scholar 

  8. Kramer, A.D.: An unobtrusive behavioral model of “gross national happiness”. In: Proceedings of SIGCHI Conference on Human Factors in Computing Systems, CHI 2010, pp. 287–290. ACM, New York, NY, USA (2010)

    Google Scholar 

  9. Nguyen, L.T., Wu, P., Chan, W., Peng, W., Zhang, Y.: Predicting collective sentiment dynamics from time-series social media. In: Proceedings of First International Workshop on Issues of Sentiment Discovery and Opinion Mining, pp. 1–8. ACM, New York, NY, USA (2012)

    Google Scholar 

  10. Saif, H., Fernandez, M., He, Y., Alani, H.: Evaluation datasets for twitter sentiment analysis: a survey and a new dataset, the STS-gold. In: Proceedings of 1st International Workshop on Emotion and Sentiment in Social and Expressive Media: Approaches and Perspectives from AI (ESSEM2013), pp. 9–21 (2013)

    Google Scholar 

  11. Su, M., Wu, C., Huang, K., Hong, Q.: LSTM-based text emotion recognition using semantic and emotional word vectors. In: Proceedings of First Asian Conference on Affective Computing and Intelligent Interaction (ACII Asia), pp. 1–6, May 2018

    Google Scholar 

  12. Tago, K., Takagi, K., Kasuya, S., Jin, Q.: Analyzing influence of emotional tweets on user relationships using naive bayes and dependency parsing. World Wide Web 22, 1263–1278 (2018)

    Article  Google Scholar 

  13. Uysal, A.K., Murphey, Y.L.: Sentiment classification: feature selection based approaches versus deep learning. In: Proceedings of IEEE International Conference on Computer and Information Technology (CIT2017), pp. 23–30, August 2017

    Google Scholar 

  14. Vateekul, P., Koomsubha, T.: A study of sentiment analysis using deep learning techniques on Thai twitter data. In: Proceedings of 13th International Joint Conference on Computer Science and Software Engineering (JCSSE2016), pp. 1–6, July 2016

    Google Scholar 

  15. Wagh, R., Punde, P.: Survey on sentiment analysis using twitter dataset. In: Proceedings of 2018 Second International Conference on Electronics, Communication and Aerospace Technology (ICECA2018), pp. 208–211, March 2018

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kiichi Tago .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Tago, K., Takagi, K., Jin, Q. (2019). Polarity Classification of Tweets Considering the Poster’s Emotional Change by a Combination of Naive Bayes and LSTM. In: Misra, S., et al. Computational Science and Its Applications – ICCSA 2019. ICCSA 2019. Lecture Notes in Computer Science(), vol 11619. Springer, Cham. https://doi.org/10.1007/978-3-030-24289-3_43

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-24289-3_43

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-24288-6

  • Online ISBN: 978-3-030-24289-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics