Abstract
Emotion classification from online content has received considerable attention from researchers in recent times. Most of the work in this direction has been carried out on classifying emotions from informal text, such as chat, sms, tweets and other social media content. However, less attention is given to emotion classification from formal text, such as poetry. In this work, we propose an emotion classification system from poetry text using a deep neural network model. For this purpose, the BiLSTM model is implemented on a benchmark poetry dataset. This is capable of classifying poetry into different emotion types, such as love, anger, alone, suicide and surprise. The efficiency of the proposed model is compared with different baseline methods, including machine learning and deep learning models.
Similar content being viewed by others
Data availability
The data supporting this research and that used to build the system can be acquired from corresponding author upon request.
References
Ahmad S, Asghar MZ, Alotaibi FM, Khan S (2020) Classification of poetry text into the emotional states using deep learning technique. IEEE Access 8:73865–73878
Alghazzawi D, Bamasag O, Albeshri A, Sana I, Ullah H, Asghar MZ (2022) Efficient prediction of court judgments using an LSTM+ CNN neural network model with an optimal feature set. Mathematics 10(5):683
Asghar J, Akbar S, Asghar MZ, Ahmad B, Al-Rakhami MS, Gumaei A (2021) Detection and classification of psychopathic personality trait from social media text using deep learning model. Comput Math Methods Med 2021:1–10
Asghar MZ, Lajis A, Alam MM, Rahmat MK, Nasir HM, Ahmad H, al-Rakhami MS, al-Amri A, Albogamy FR (2022) A deep neural network model for the detection and classification of emotions from textual content. Complexity 2022:1–12
Brownlee J (2017) What are word embeddings for text? Retrieved May 8, 2021, from Machinelearningmastery.com website: https://machinelearningmastery.com/what-are-word-embeddings/
Dalila B, Mohamed A, Bendjanna H (2018) A review of recent aspect extraction techniques for opinion mining systems. In: 2018 2nd international conference on natural language and speech processing (ICNLSP). IEEE. p 1–6
Hou Y, Frank A (2015) Analyzing sentiment in classical Chinese poetry. In: Proceedings of the 9th SIGHUM workshop on language Technology for Cultural Heritage, social sciences, and humanities (LaTeCH), pp 15–24
Jareanpon C, Kiatjindarat W, Polhome T, Khongkraphan K (2018) Automatic lyrics classification system using text mining technique. In: 2018 international workshop on advanced image technology (IWAIT). IEEE, pp 1–4
Kaur J, Saini JR (2017) Punjabi poetry classification: the test of 10 machine learning algorithms. In: Proceedings of the 9th international conference on machine learning and computing. ACM, pp 1–5
Keras Team (n.d.) The sequential class. Retrieved May 10, 2021, from Keras.io website: https://keras.io/api/models/sequential/
Khattak A, Habib A, Asghar MZ, Subhan F, Razzak I, Habib A (2021) Applying deep neural networks for user intention identification. Soft Comput 25(3):2191–2220
Li W, Xu H (2014) Text-based emotion classification using emotion cause extraction. Expert Syst Appl 41(4):1742–1749
Malheiro R, Oliveira HG, Gomes P, Paiva RP (2016) Keyword-based approach for lyrics emotion variation detection. In: Proceedings of the 8th international joint conference on knowledge discovery, knowledge engineering and knowledge management (IC3K 2016) - volume 1. KDIR, pp 33–44. https://doi.org/10.5220/0006037300330044
Mohanty G, Mishra P, Mamidi R (2018) Sad or glad? Corpus creation for Odia poetry with sentiment polarity information. In: Proc. 19th Int. Conf. Comput. Linguistics Intell. Text process. (CICLing)
Schuster M, Paliwal KK (1997) Bidirectional recurrent neural networks. IEEE Trans Signal Process 45(11):2673–2681
Soumya S, Saju S, Rajan R, Sebastian N (2017) Poetic meter classification using TMS320C6713 DSK. In: 2017 international conference on signal processing and communication (ICSPC). IEEE, pp 23–27
Sreeja PS, Mahalakshmi GS (2016) Emotion recognition from poems by maximum posterior probability. Int J Comput Sci Inf Secur 14:36–43
Sreejith D, Devika MP, Tadikamalla NS, Mathew SV (2017) Sentiment analysis of English literature using rasa-oriented semantic ontology. Indian J Sci Technol 10(24):1–11
Wang Y, Subhan F, Shamshirband S, Zubair Asghar M, Ullah I, Habib A (2020) Fuzzy-based sentiment analysis system for analyzing student feedback and satisfaction. Comput Mater Contin 62(2):631–655
Zehe A, Becker M, Jannidis F, Hotho A (2017) Towards sentiment analysis on German literature. In: Joint German/Austrian conference on artificial intelligence (Künstliche Intelligenz). Springer, Cham, pp 387–394
Zhou P, Shi W, Tian J, Qi Z, Li B, Hao H, Xu B (2016) Attention-based bidirectional long short-term memory networks for relation classification. In: Proceedings of the 54th annual meeting of the Association for Computational Linguistics (volume 2: short papers), pp 207–212
Acknowledgements
This Research work was supported by Zayed University Research Incentives Fund # R21095.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no conflict of interest.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix 1: User Interface for Emotion Prediction in Poetry Text
Appendix 2: User Interface for Accuracy Prediction
Rights and permissions
About this article
Cite this article
Khattak, A., Asghar, M.Z., Khalid, H.A. et al. Emotion classification in poetry text using deep neural network. Multimed Tools Appl 81, 26223–26244 (2022). https://doi.org/10.1007/s11042-022-12902-3
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-022-12902-3