Emotion Recognition in Poetry Using Ensemble of Classifiers

  • P. S. SreejaEmail author
  • G. S. Mahalakshmi
Conference paper
Part of the Communications in Computer and Information Science book series (CCIS, volume 922)


The poetic language is more expressive compared to ordinary text, which presents more challenges for emotion recognition. This paper presents an innovative approach to recognize emotion from poems. The proposed work is the first attempt to identify emotions from English poems. To accomplish the objective, we have created a corpus Poem Emotion Recognition Corpus [PERC] consists of 736 prominent poems of various poets. In this work, the emotion is classified into nine categories such as Love, Anger, Hate, Sadness, Joy, Surprise, Peace, Courage and Fear based on Indian classical Navarasa. The proposed emotion recognition model uses a novel ensemble classifier schema based on SVM, Logistic regression, NB Classifier, and Emotion Modifier Preserved Vector Space Model. The results show that the proposed model achieves satisfactory precision, Recall and F-measure in recognizing emotions from poems.


Poem Emotion Recognition Corpus Poem emotion analysis Support Vector Machine Logistic Regression Ensemble model Naive Bayes Classifier Vector Space Model Natural language processing 


  1. 1.
    Alm, E.C.O.: Affect in* Text and Speech. University of Illinois at Urbana-Champaign, Urbana (2008)Google Scholar
  2. 2.
    Alsharif, O., Alshamaa, D., Ghneim, N.: Emotion classification in Arabic poetry using machine learning. Int. J. Comput. Appl. 65(16), 10–15 (2013)Google Scholar
  3. 3.
    Aman, S., Szpakowicz, S.: Identifying expressions of emotion in text. In: Matoušek, V., Mautner, P. (eds.) TSD 2007. LNCS (LNAI), vol. 4629, pp. 196–205. Springer, Heidelberg (2007). Scholar
  4. 4.
    Avnimelech, R., Intrator, N.: Boosted mixture of experts: an ensemble learning scheme. Neural Comput. 11(2), 483–497 (1999)CrossRefGoogle Scholar
  5. 5.
    Barros, L., Rodriguez, P., Ortigosa, A.: Automatic classification of literature pieces by emotion detection: a study on Quevedo’s poetry. In: 2013 Humaine Association Conference on Affective Computing and Intelligent Interaction (ACII), pp. 141–146. IEEE (2013)Google Scholar
  6. 6.
    Boser, B.E., Guyon, I.M., Vapnik, V.N.: A training algorithm for optimal margin classifiers. In: Proceedings of the Fifth Annual Workshop on Computational Learning Theory, pp. 144–152. ACM (1992)Google Scholar
  7. 7.
    Bottou, L., Vapnik, V.: Local learning algorithms. Neural Comput. 4(6), 888–900 (1992)CrossRefGoogle Scholar
  8. 8.
    Bouckaert, R.R., et al.: WEKA – experiences with a Java open-source project. J. Mach. Learn. Res. 11(Sep), 2533–2541 (2010)MathSciNetzbMATHGoogle Scholar
  9. 9.
    Brunner, C., Fischer, A., Luig, K., Thies, T.: Pairwise support vector machines and their application to large scale problems. J. Mach. Learn. Res. 13(Aug), 2279–2292 (2012)MathSciNetzbMATHGoogle Scholar
  10. 10.
    Can, F., Can, E., Sahin, P.D., Kalpakli, M.: Automatic categorization of ottoman poems. Glottotheory 4(2), 40–57 (2013)CrossRefGoogle Scholar
  11. 11.
    Chang, C.C., Lin, C.J.: LIBSVM: a library for support vector machines. ACM Trans. Intell. Syst. Technol. (TIST) 2(3), 27 (2011)Google Scholar
  12. 12.
    Danisman, T., Alpkocak, A.: Feeler: emotion classification of text using vector space model. In: AISB 2008 Convention Communication, Interaction and Social Intelligence, vol. 1, p. 53 (2008)Google Scholar
  13. 13.
    Dmello, S.K., Craig, S.D., Witherspoon, A., Mcdaniel, B., Graesser, A.: Automatic detection of learners affect from conversational cues. User Model. User-Adapt. Interact. 18(1), 45–80 (2008)CrossRefGoogle Scholar
  14. 14.
    Domingos, P., Pazzani, M.: On the optimality of the simple bayesian classifier under zero-one loss. Mach. Learn. 29(2), 103–130 (1997)CrossRefGoogle Scholar
  15. 15.
    Eigen, D., Ranzato, M., Sutskever, I.: Learning factored representations in a deep mixture of experts. arXiv preprint arXiv:1312.4314 (2013)
  16. 16.
    Ekman, P.: An argument for basic emotions. Cogn. Emot. 6(3–4), 169–200 (1992)CrossRefGoogle Scholar
  17. 17.
    Fleiss, J.L.: Measuring nominal scale agreement among many raters. Psychol. Bull. 76(5), 378 (1971)CrossRefGoogle Scholar
  18. 18.
    Ghazi, D., Inkpen, D., Szpakowicz, S.: Hierarchical approach to emotion recognition and classification in texts. In: Farzindar, A., Kešelj, V. (eds.) AI 2010. LNCS (LNAI), vol. 6085, pp. 40–50. Springer, Heidelberg (2010). Scholar
  19. 19.
    Hamidi, S., Razzazi, F., Ghaemmaghami, M.P.: Automatic meter classification in Persian poetries using support vector machines. In: 2009 IEEE International Symposium on Signal Processing and Information Technology (ISSPIT), pp. 563–567. IEEE (2009)Google Scholar
  20. 20.
    Jamal, N., Mohd, M., Noah, S.A.: Poetry classification using support vector machines. J. Comput. Sci. 8(9), 1441–1446 (2010)Google Scholar
  21. 21.
    Kohavi, R., et al.: A study of cross-validation and bootstrap for accuracy estimation and model selection. In: IJCAI, Stanford, CA, vol. 14, pp. 1137–1145 (1995)Google Scholar
  22. 22.
    Lasota, T., Londzin, B., Telec, Z., Trawiński, B.: Comparison of ensemble approaches: mixture of experts and AdaBoost for a regression problem. In: Nguyen, N.T., Attachoo, B., Trawiński, B., Somboonviwat, K. (eds.) ACIIDS 2014. LNCS (LNAI), vol. 8398, pp. 100–109. Springer, Cham (2014). Scholar
  23. 23.
    Liu, H., Singh, P.: ConceptNet a practical commonsense reasoning tool-kit. BT Technol. J. 22(4), 211–226 (2004)CrossRefGoogle Scholar
  24. 24.
    Lou, A., Inkpen, D., Tanasescu, C.: Multilabel subject-based classification of poetry. In: FLAIRS Conference, pp. 187–192 (2015)Google Scholar
  25. 25.
    Lubis, N., Lestari, D., Purwarianti, A., Sakti, S., Nakamura, S.: Construction and analysis of Indonesian emotional speech corpus. In: 2014 17th Oriental Chapter of the International Committee for the Co-ordination and Standardization of Speech Databases and Assessment Techniques (COCOSDA), pp. 1–5. IEEE (2014)Google Scholar
  26. 26.
    Perfors, A., Tenenbaum, J.B., Griffiths, T.L., Xu, F.: A tutorial introduction to Bayesian models of cognitive development. Cognition 120(3), 302–321 (2011)CrossRefGoogle Scholar
  27. 27.
    Perikos, I., Hatzilygeroudis, I.: Recognizing emotions in text using ensemble of classifiers. Eng. Appl. Artif. Intell. 51, 191–201 (2016)CrossRefGoogle Scholar
  28. 28.
    Picard, R.W., et al.: Affective computing (1995)Google Scholar
  29. 29.
    Quan, C., Ren, F.: Construction of a blog emotion corpus for Chinese emotional expression analysis. In: Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing: Volume 3-Volume 3, pp. 1446–1454. Association for Computational Linguistics (2009)Google Scholar
  30. 30.
    Ramani, D., Kanani, H., Pandya, C.: Ensemble of classifiers based on association rule mining. Int. J. Adv. Res. Comput. Eng. Technol. 2(11), 2963–2967 (2013)Google Scholar
  31. 31.
    Rangacharya, A.: Bharatha Natyshastra. Munshiram Manoharlal Publishers, New Delhi (1996)Google Scholar
  32. 32.
    Rennie, J.D., Shih, L., Teevan, J., Karger, D.R.: Tackling the poor assumptions of Naive Bayes text classifiers. In: Proceedings of the 20th International Conference on Machine Learning, ICML 2003, pp. 616–623 (2003)Google Scholar
  33. 33.
    Salton, G., Wong, A., Yang, C.S.: A vector space model for automatic indexing. Commun. ACM 18(11), 613–620 (1975)CrossRefGoogle Scholar
  34. 34.
    Sreeja, P.S., Mahalakshmi, G.S.: Concept identification from poems. In: 2017 Second International Conference on Recent Trends and Challenges in Computational Models (ICRTCCM), pp. 211–216. IEEE (2017)Google Scholar
  35. 35.
    Sreeja, P.S., Mahalakshmi, G.S.: PERC-an emotion recognition corpus for cognitive poems. In: 2019 International Conference on Communication and Signal Processing (ICCSP), pp. 0200–0207. IEEE (2019)Google Scholar
  36. 36.
    Sreeja, P.S., Mahalaksmi, G.S.: Emotion recognition from poems by maximum posterior probability. Int. J. Comput. Sci. Inf. Secur. (IJCSIS) 14(Special Issue) (2016)Google Scholar
  37. 37.
    Sreeja, P.S., Mahalaksmi, G.S.: Applying vector space model for poetic emotion recognition. Adv. Nat. Appl. Sci. 9(6 SE), 486–491 (2015)Google Scholar
  38. 38.
    Strapparava, C., Mihalcea, R.: Learning to identify emotions in text. In: Proceedings of the 2008 ACM Symposium on Applied computing, pp. 1556–1560. ACM (2008)Google Scholar
  39. 39.
    Strapparava, C., Valitutti, A., et al.: WordNet affect: an affective extension of WordNet. LREC 4, 1083–1086 (2004)Google Scholar
  40. 40.
    Tan, P.N., et al.: Introduction to Data Mining. Pearson Education India, Chennai (2006)Google Scholar
  41. 41.
    Toutanova, K., Klein, D., Manning, C.D., Singer, Y.: Feature-rich part-of-speech tagging with a cyclic dependency network. In: Proceedings of the 2003 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology-Volume 1, pp. 173–180. Association for Computational Linguistics (2003)Google Scholar
  42. 42.
    Wordsworth, W., Coleridge, S.T.: Lyrical Ballads. Psychology Press, London (1991)Google Scholar
  43. 43.
    Wozniak, M., Graña, M., Corchado, E.: A survey of multiple classifier systems as hybrid systems. Inf. Fusion 16, 3–17 (2014)CrossRefGoogle Scholar

Copyright information

© Springer Nature Singapore Pte Ltd. 2019

Authors and Affiliations

  1. 1.Hindustan Institute of Technology and ScienceChennaiIndia
  2. 2.Anna UniversityChennaiIndia

Personalised recommendations