Skip to main content
Log in

Emotion recognition from lyrical text of Hindi songs

  • S.I. : Low Resource Machine Learning Algorithms (LR-MLA)
  • Published:
Innovations in Systems and Software Engineering Aims and scope Submit manuscript

Abstract

Emotion recognition is a process of extracting and analysing human emotion from text, audio, and video. Emotion recognition from song lyrics is gaining attention from the research community. However, very limited efforts have been made in low resource Indian languages due to the lack of benchmark datasets and tools. This paper makes an attempt in recognising and categorising the emotions arising from the lyrical text of Hindi songs. Most of the song emotion classification approaches deal with a maximum of three categories. This paper explores the concept of Navrasa of Indian aesthetics for categorising emotions from the song into nine categories. In this work, five different feature variations of a particular song’s lyrics are extracted. The feature vectors are represented using TF-IDF and Doc2vec. Four different classifiers namely Support Vector Machines, Logistic Regression, Multinomial Naïve Bayes, and K-Nearest Neighbours are used for classifying the emotions of the song. From the experiments, it is observed that the performance of the SVM classifier achieved the highest accuracy of 66.7%.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

Notes

  1. Statement 4: Scheduled Languages in descending order of speakers’ strength—2011 Ministry of Home Affairs, Government of India https://censusindia.gov.in/2011Census/Language_MTs.html.

  2. https://www.nltk.org.

  3. https://github.com/pemagrg1/Hindi-POS-Tagging-and-Keyword-Extraction.

References

  1. Kim YE, Schmidt EM, Migneco R, Morton BG, Richardson P, Scott JJ, Speck JA, Turnbull D (2010) State of the art report: music emotion recognition: a state of the art review. In: Stephen Downie J, Veltkamp RC (eds) Proceedings of the 11th International Society for Music Information Retrieval Conference, ISMIR 2010, Utrecht, Netherlands, August 9–13, 2010. International Society for Music Information Retrieval, pp 255–266

  2. Acheampong FA, Wenyu C, Nunoo-Mensah H (2020) Text-based emotion detection: advances, challenges, and opportunities. Eng Rep 2(7):e12189

    Google Scholar 

  3. Shivhare SN, Khethawat S (2012) Emotion detection from text. In: Proceedings of International workshop on Data Mining & Knowledge Management Process (DKMP-2012), New Delhi, India, August 26–27, 2012, vol 2. Computer Science Conference Proceedings (CSCP), pp 371–377

  4. Bogdanov D, Porter A, Tovstogan P, Won M (2019) Mediaeval 2019: emotion and theme recognition in music using jamendo. In: Larson MA, Hicks SA, Constantin MG, Bischke B, Porter A, Zhao P, Lux M, Quiros LC, Calandre J, Jones G (eds) Working Notes Proceedings of the MediaEval 2019 Workshop, Sophia Antipolis, France, 27–30 October 2019, volume 2670 of CEUR Workshop Proceedings. CEUR-WS.org

  5. Shakoor AA, Sahebdin WB, Pudaruth S (2015) Exploring the evolutionary change in bollywood lyrics over the last two decades. In: The Second International Conference on Data Mining, Internet Computing, and Big Data (BigData2015), Reduit, Mauritius

  6. Morcom A (2017) Hindi film songs and the cinema, 1st edn. Routledge

    Book  Google Scholar 

  7. Gajjar K, Shah S (2015) Mood based playlist generation for Hindi popular music: a proposed model. Int J Comput Appl 127(14):11–14

    Google Scholar 

  8. Apoorva GD (2018) Towards understanding bollywood lyrics. Master dissertation, International Institute of Information Technology, Hyderabad, India

  9. Mohan Thampi GB (1965) “Rasa’’ as aesthetic experience. J Aesthet Art Criticism 24(1):75–80

    Google Scholar 

  10. Koduri GK, Indurkhya B (2010) A behavioral study of emotions in South Indian classical music and its implications in music recommendation systems. In: Proceedings of the 2010 ACM workshop on Social, Adaptive and Personalized Multimedia Interaction and Access, SAPMIA ’10, New York, NY, USA, pp 55–60

  11. Yousaf A, Umer M, Sadiq S, Ullah S, Mirjalili S, Rupapara V, Nappi M (2021) Emotion recognition by textual tweets classification using voting classifier (LR-SGD). IEEE Access 9:6286–6295

    Article  Google Scholar 

  12. Sailunaz K, Alhajj R (2019) Emotion and sentiment analysis from Twitter text. J Comput Sci 36:101003

    Article  Google Scholar 

  13. Bandhakavi A, Wiratunga N, Padmanabhan D, Massie S (2017) Lexicon based feature extraction for emotion text classification. Pattern Recognit Lett 93:133–142 (Pattern Recognition Techniques in Data Mining)

  14. Sintsova V, Pu P (2016) Dystemo: distant supervision method for multi-category emotion recognition in tweets. ACM Trans Intell Syst Technol 8(1):1–22

    Article  Google Scholar 

  15. Sultana S, Iqbal MZ, Selim MR, Rashid MdM, Rahman MS (2022) Bangla speech emotion recognition and cross-lingual study using Deep CNN and BLSTM Networks. IEEE Access 10:564–578

    Article  Google Scholar 

  16. Pandey SK, Shekhawat HS, Prasanna SRM (2022) Attention gated tensor neural network architectures for speech emotion recognition. Biomed Signal Process Control 71:103173

    Article  Google Scholar 

  17. Thirumuru R, Gurugubelli K, Vuppala A (2021) Novel feature representation using single frequency filtering and nonlinear energy operator for speech emotion recognition. Digit Signal Process 120(10):103293

    Google Scholar 

  18. Kwon O-W, Chan K, Hao J, Lee T-W (2003) Emotion recognition by speech signals. In: Proceedings of 8th European Conference on Speech Communication and Technology (Eurospeech 2003), pp 125–128

  19. Gouta K, Masakazu M (2000) Emotion recognition: facial components associated with various emotions. Shinrigaku kenkyu Jpn J Psychol 71(3):211–218

    Article  Google Scholar 

  20. Kim J, André E (2008) Emotion recognition based on physiological changes in music listening. IEEE Trans Pattern Anal Mach Intell 30(12):2067–2083

    Article  Google Scholar 

  21. Singh M, Fang Y (2020) Emotion recognition in audio and video using deep neural networks. CoRR arXiv:2006.08129

  22. Busso C, Bulut M, Lee C-C, Kazemzadeh A, Provost EM, Kim S, Chang J, Lee S, Narayanan S (2008) IEMOCAP: interactive emotional dyadic motion capture database. Lang Resour Eval 42(12):335–359

    Article  Google Scholar 

  23. Almashraee M, Monett D, Paschke A (2016) Emotion level sentiment analysis: the affective opinion evaluation. In: EMSA-RMed@ESWC

  24. Yang H, Willis A, Roeck AD, Nuseibeh B (2012) A hybrid model for automatic emotion recognition in suicide notes. Biomed Inform Insights 5s1:BII.S8948

    Article  Google Scholar 

  25. Kumar V, Minz S (2013) Mood classification of lyrics using sentiwordnet. In: 2013 international conference on computer communication and informatics, pp 1–5

  26. Baccianella S, Esuli A, Sebastiani F (2010) SentiWordNet 3.0: an enhanced lexical resource for sentiment analysis and opinion mining. In: Proceedings of the seventh international conference on Language Resources and Evaluation (LREC’10), Valletta, Malta, May. European Language Resources Association (ELRA)

  27. Agrawal Y, Shanker RGR, Alluri V (2021) Transformer-based approach towards music emotion recognition from lyrics. In: Advances in Information Retrieval: 43rd European Conference on IR Research, ECIR 2021, Virtual Event, March 28–April 1, Proceedings, Part II, 2021. Springer, Berlin, Heidelberg, pp 167–175

  28. Çano E, Morisio M (2017) Moodylyrics: a sentiment annotated lyrics dataset. In: Proceedings of the 2017 International Conference on Intelligent Systems, Metaheuristics & Swarm Intelligence, ISMSI ’17. Association for Computing Machinery, New York, pp 118–124

  29. Malheiro R, Panda R, Gomes P, Paiva RP (2018) Emotionally-relevant features for classification and regression of music lyrics. IEEE Trans Affect Comput 9(2):240–254

    Article  Google Scholar 

  30. Abburi H, Akhil ES, Gangashetty SV, Mamidi R (2016) Multimodal sentiment analysis of Telugu songs. In: Proceedings of the 4th workshop on Sentiment Analysis where AI meets Psychology (SAAIP 2016), IJCAI 2016, New York City, USA, July 10, 2016, pp 48–52

  31. Patra BG, Das D, Bandyopadhyay S (2015) Mood classification of Hindi songs based on lyrics. In: Proceedings of the 12th international conference on Natural Language Processing. NLP Association of India, Trivandrum, pp 261–267

  32. Nath D, Roy A, Shaw SK, Ghorai A, Phani S (2020) Textual lyrics based emotion analysis of Bengali songs. In: 2020 International Conference on Data Mining Workshops (ICDMW), pp 39–44

  33. Chauhan S, Chauhan P (2016) Music mood classification based on lyrical analysis of Hindi songs using latent Dirichlet allocation. In: 2016 International Conference on Information Technology (InCITe)—the next generation IT summit on the theme—Internet of Things: connect your worlds, pp 72–76

  34. Velankar M, Kotian R, Kulkarni P (2021) Contextual mood analysis with knowledge graph representation for Hindi song lyrics in Devanagari script. CoRR arXiv:2108.06947

  35. Koul ON (2008) Modern Hindi grammar, 1st edn. Dunwoody Press

  36. Esuli A, Sebastiani F (2006) SENTIWORDNET: a publicly available lexical resource for opinion mining. In: Proceedings of the fifth international conference on Language Resources and Evaluation (LREC’06), Genoa, Italy, May. European Language Resources Association (ELRA)

  37. Manning CD, Raghavan P, Schütze H (2008) Introduction to information retrieval. Cambridge University Press, Cambridge

    Book  MATH  Google Scholar 

  38. Robertson S (2004) Understanding inverse document frequency: on theoretical arguments for IDF. J Doc 60(5):503–520

    Article  Google Scholar 

  39. Dai AM, Olah C, Le QV (2015) Document embedding with paragraph vectors. CoRR arXiv:1507.07998

  40. Rish I (2001) An empirical study of the naive Bayes classifier. In: IJCAI 2001 workshop on empirical methods in artificial intelligence, vol 3. IBM New York, pp 41–46

  41. Cortes C, Vapnik V (1995) Support-vector networks. Mach Learn 20(3):273–297

    Article  MATH  Google Scholar 

  42. Lee Y, Lin Y, Wahba G (2004) Multicategory support vector machines. J Am Stat Assoc 99(465):67–81

    Article  MATH  Google Scholar 

  43. Cramer JS (2002) The origins of logistic regression. Tinbergen Institute, Tinbergen Institute Discussion Papers (02-119/4)

  44. Altman NS (1992) An introduction to kernel and nearest-neighbor nonparametric regression. Am Stat 46(3):175–185

    MathSciNet  Google Scholar 

  45. Tharwat A (2021) Classification assessment methods. Appl Comput Inform 17(1):168–192

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Arnab Paul.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Dhar, S., Gour, V. & Paul, A. Emotion recognition from lyrical text of Hindi songs. Innovations Syst Softw Eng (2022). https://doi.org/10.1007/s11334-022-00520-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11334-022-00520-z

Keywords

Navigation