Skip to main content

Data Analysis Using NLP to Sense Human Emotions Through Chatbot

  • Conference paper
  • First Online:
Advances in Computing and Data Sciences (ICACDS 2022)

Abstract

Years of Technological progress have made machines capable of understanding basic human emotions from their tonality. Written text is also an important method of communication where a wide range of emotions can be expressed. Thus, it is imperative for machines to be also able to understand the emotions being portrayed in the text messages. For this study, an analysis was done on a dataset known as GoEmotions for the potential development of a chatbot. This dataset contains 58 thousand selected Reddit comments collected from various subreddits that use the English language. The results shows that, these were then classified and categorized based on the principal preserved component analysis (PPCA) method into four main emotions; positive, negative, ambiguous, and neutral successfully. And for this task, Natural Language Processing (NLP) pre-training was applied, which was a transformer based machine learning technique.

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

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Weizenbaum, J.: Eliza—a computer program for the study of natural language communication between man and machine. Commun. ACM 9(1), 36–45 (1966)

    Article  Google Scholar 

  2. Raj, S.: Building Chatbots with Python: Using Natural Language Processing and Machine Learning, 1st edn. APRESS, New York (2018)

    Google Scholar 

  3. Terzopoulos, G., Satratzemi, M.: Voice assistants and smart speakers in everyday life and in education. Inform. Educ. 19, 473–490 (2020)

    Article  Google Scholar 

  4. Jana, A., Patil, H.: The evolution of voice portal and virtual assistants. Int. J. Emerg. Technol. Innov. Res. 8, d556–d564 (2021). ISSN 2349-5162

    Google Scholar 

  5. Egger, M., Ley, M., Hanke, S.: Emotion recognition from physiological signal analysis: a review. Electron. Notes Theor. Comput. Sci. 343, 35–55 (2019)

    Article  Google Scholar 

  6. Demszky, D., Movshovitz-Attias, D., Ko, J., Cowen, A., Nemade, G., Ravi, S.: Goemotions: a dataset of fine-grained emotions (2020). https://doi.org/10.48550/ARXIV.2005.00547. https://arxiv.org/abs/2005.00547

  7. Lee, D., Oh, K.-J., Choi, H.-J.: The chatbot feels you-a counseling service using emotional response generation. In: 2017 IEEE International Conference on Big Data and Smart Computing (BigComp), pp. 437–440. IEEE (2017)

    Google Scholar 

  8. Kamita, T., Ito, T., Matsumoto, A., Munakata, T., Inoue, T.: A chatbot system for mental healthcare based on sat counseling method. Mob. Inf. Syst. 2019 (2019)

    Google Scholar 

  9. Munakata, T.: Reconstructing life and society with SAT therapy: foundations of the new generation CBT. Int. J. Struct. Assoc. Tech. 3, 35–60 (2009)

    Google Scholar 

  10. Cook, B., Progovac, A., Chen, P., Mullin, B., Hou, S., Baca-Garcia, E.: Novel use of natural language processing (NLP) to predict suicidal ideation and psychiatric symptoms in a text-based mental health intervention in Madrid. Comput. Math. Methods Med. 2016 (2016). https://doi.org/10.1155/2016/8708434

  11. Tewari, A., Chhabria, A., Khalsa, A.S., Chaudhary, S., Kanal, H.: A survey of mental health chatbots using NLP. Available at SSRN 3833914 (2021)

    Google Scholar 

  12. Kontoangelos, K., Economou, M., Papageorgiou, C.: Mental health effects of COVID-19 pandemia: a review of clinical and psychological traits. Psychiatry Investig. 17(6), 491 (2020)

    Article  Google Scholar 

  13. Rodrigo, M., et al.: Towards building mental health resilience through storytelling with a chatbot (2021)

    Google Scholar 

  14. Seligman, M.: PERMA and the building blocks of well-being. J. Posit. Psychol. 13(4), 333–335 (2018)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Md Humaion Kabir Mehedi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Rahat, F.R. et al. (2022). Data Analysis Using NLP to Sense Human Emotions Through Chatbot. In: Singh, M., Tyagi, V., Gupta, P.K., Flusser, J., Ören, T. (eds) Advances in Computing and Data Sciences. ICACDS 2022. Communications in Computer and Information Science, vol 1614. Springer, Cham. https://doi.org/10.1007/978-3-031-12641-3_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-12641-3_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-12640-6

  • Online ISBN: 978-3-031-12641-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics