Skip to main content

Emotion Recognition in Sentences - A Recurrent Neural Network Approach

  • Conference paper
  • First Online:
Computational Intelligence in Data Science (ICCIDS 2020)

Abstract

This paper presents a Long short-term memory (LSTM) model to automate the tagging of sentences with a dominant emotion. LSTM is a type of artificial recurrent neural network (RNN) architecture. A labeled corpus of news headlinesc [1] and textual descriptions [3] are used to train our model. The data set is annotated for a set of six basic emotions: Joy, Sadness, Fear, Anger, Disgust and Surprise and also takes into consideration a 7\(^\mathrm{th}\) emotion, Neutral, to adequately represent sentences with incongruous emotions. Our model takes into account that one sentence can represent a conjunct of emotions and resolves all such conflicts to bring out one dominant emotion that the sentence can be categorized into. Furthermore, this can be extended to categorize an entire paragraph into a particular emotion. Our model gives us an accuracy of 85.63% for the prediction of emotion when trained on the above mentioned data set and an accuracy of 91.6% for the prediction of degree of emotion for a sentence. Additionally, every sentence is associated with a degree of the dominant emotion. One can infer that a degree of emotion means the extent of the emphasis of an emotion. Although, more than one sentence conveys the same emotion, the amount of emphasis of the emotion itself can vary depending on the context. This feature of determining the emphasis of an emotion, that is, degree of an emotion, is also taken care of in our model.

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
Hardcover Book
USD 109.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. Strapparava, C., Mihalcea, R.: SemEval-2007 task 14: affective text. In: Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007), pp. 70–74 (2007)

    Google Scholar 

  2. Ekman, P.: An argument for basic emotions. Cogn. Emot. 6(3–4), 169–200 (1992)

    Article  Google Scholar 

  3. International Survey on Emotion Antecedents and Reactions data set. https://www.unige.ch/cisa/index.php/download_file/view/395/296/

  4. Das, D., Bandyopadhyay, S.: Sentence level emotion tagging. In: 2009 3rd International Conference on Affective Computing and Intelligent Interaction and Workshops, pp. 1–6. IEEE (2009)

    Google Scholar 

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

    Google Scholar 

  6. Francisco, V., Gervás, P.: Exploring the compositionality of emotions in text: word emotions, sentence emotions and automated tagging. In: AAAI-06 Workshop on Computational Aesthetics: Artificial Intelligence Approaches to Beauty and Happiness (2006)

    Google Scholar 

  7. Asghar, M.Z., Khan, A., Bibi, A., Kundi, F.M., Ahmad, H.: Sentence-level emotion detection framework using rule-based classification. Cogn. Comput. 9(6), 868–894 (2017)

    Article  Google Scholar 

  8. Shaheen, S., El-Hajj, W., Hajj, H., Elbassuoni, S.: Emotion recognition from text based on automatically generated rules. In: IEEE International Conference on Data Mining Workshop, pp. 383–392 (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Manu George Vimal .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 IFIP International Federation for Information Processing

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Kumar, N.S., Amencherla, M., Vimal, M.G. (2020). Emotion Recognition in Sentences - A Recurrent Neural Network Approach. In: Chandrabose, A., Furbach, U., Ghosh, A., Kumar M., A. (eds) Computational Intelligence in Data Science. ICCIDS 2020. IFIP Advances in Information and Communication Technology, vol 578. Springer, Cham. https://doi.org/10.1007/978-3-030-63467-4_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-63467-4_1

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-63466-7

  • Online ISBN: 978-3-030-63467-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics