Skip to main content

Emotion Detection Using Machine Learning Algorithms: A Multiclass Sentiment Analysis Approach

  • Conference paper
  • First Online:
Computational Intelligence in Machine Learning (ICCIML 2022)

Part of the book series: Lecture Notes in Electrical Engineering ((LNEE,volume 1106))

  • 67 Accesses

Abstract

Due to the availability of internet technology and social media platforms, people are well connected with the world. People express their feelings on social media platforms such as Facebook, twitter, reddit, and Instagram. Feelings can be expressed with text, images, or videos. Due to widespread usage of social media platforms on the internet, a large amount of unstructured data is being generated. To understand the human psychology and emotion state, this data needs to be processed to identify text polarity with the sentiment analysis and emotion detection, respectively. This paper gives a brief introduction about sentiment analysis, emotion detection, and machine learning algorithms performing well for this task. We used naïve bayes, logistic regression, XGBoost, and linear support vector classifiers for the model building. Out of these classifiers linear support vector classifier gave high accuracy of 72.80% and performed well to predict the emotion of Marathi or English-speaking user at runtime.

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 299.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 379.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. Plaza-Del-Arco FM, Molina-González MD, Ureña-López LA, Martín-Valdivia MT (2021) A multi-task learning approach to hate speech detection leveraging sentiment analysis. IEEE Access 9:112478–112489

    Article  Google Scholar 

  2. Veltmeijer EA, Gerritsen C, Hindriks K (2021) Automatic emotion recognition for groups: a review. IEEE Trans Affective Computing

    Google Scholar 

  3. Zhang D, Lin H, Zheng P, Yang L, Zhang S (2018) The identification of the emotionality of metaphorical expressions based on a manually annotated chinese corpus. IEEE Access 6:71241–71248

    Article  Google Scholar 

  4. Luo J, Bouazizi M, Ohtsuki T (2021) Data augmentation for sentiment analysis using sentence compression-based SeqGAN with data screening. IEEE Access 9:99922–99931

    Article  Google Scholar 

  5. Medhat W, Hassan A, Korashy H (2014) Sentiment analysis algorithms and applications: a survey. Ain Shams Eng J 5(4):1093–1113

    Article  Google Scholar 

  6. Yuan JH et al (2020) Recent advances in deep learning-based sentiment analysis. Sci Chin Technol Sci 63:1947–1970

    Article  Google Scholar 

  7. Imran AS, Daudpota SM, Kastrati Z, Batra R (2020) Cross-cultural polarity and emotion detection using sentiment analysis and deep learning on covid-19 related tweets. IEEE Access 8:181074–181090

    Article  Google Scholar 

  8. Nandwani P, Verma R (2021) A review on sentiment analysis and emotion detection from text. Soc Netw Anal Min 11

    Google Scholar 

  9. Huddar MG, Sannakki SS, Rajpurohit VS (2021) Attention-based multimodal contextual fusion for sentiment and emotion classification using bidirectional LSTM. Multimedia Tools Appl 80:13059–13076

    Article  Google Scholar 

  10. Huddar MG, Sannakki SS, Rajpurohit VS (2020) Multi-level context extraction and attention-based contextual inter-modal fusion for multimodal sentiment analysis and emotion classification. Int Multimedia Inf Retrieval 9:103–112

    Article  Google Scholar 

  11. Rothe J, Buse J, Uhlmann A, Bluschke A, Roessner V (2021) Changes in emotions and worries during the Covid-19 pandemic: an online-survey with children and adults with and without mental health conditions. Child Adolesc Psychiatry Mental Health 15

    Google Scholar 

  12. Zhang X, Li W, Ying H, Li F, Tang S, Lu S (2020) Emotion detection in online social networks: a multilabel learning approach. IEEE Internet Things J 7(9):8133–8143

    Article  Google Scholar 

  13. Scherer KR, Wallbott HG (1994) Evidence for universality and cultural variation of differential emotion response patterning. J Pers Soc Psychol 66(2):310

    Article  Google Scholar 

  14. Li Y, Su H, Shen X, Li W, Cao Z, Niu S (2017) DailyDialog: a manually labelled multi-turn dialogue dataset. IJCNLP

    Google Scholar 

  15. Kanakaraddi SG, Chikaraddi AK, Gull KC, Hiremath PS (2020) Comparison study of sentiment analysis of tweets using various machine learning algorithms. In: 2020 International conference on inventive computation technologies (ICICT), pp 287–292

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sumit Shinde .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Shinde, S., Ghotkar, A. (2024). Emotion Detection Using Machine Learning Algorithms: A Multiclass Sentiment Analysis Approach. In: Gunjan, V.K., Kumar, A., Zurada, J.M., Singh, S.N. (eds) Computational Intelligence in Machine Learning. ICCIML 2022. Lecture Notes in Electrical Engineering, vol 1106. Springer, Singapore. https://doi.org/10.1007/978-981-99-7954-7_45

Download citation

Publish with us

Policies and ethics