Next Article in Journal
Recombination of Poly(Acrylic Acid) Radicals in Acidic Aqueous Solutions: A Pulse Radiolysis Study
Previous Article in Journal
Synergistic Bond Properties of Different Deformed Steel Fibers Embedded in Mortars Wet-Sieved from Self-Compacting SFRC
Previous Article in Special Issue
Smart Toys in Early Childhood and Primary Education: A Systematic Review of Technological and Educational Affordances
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Text-Based Emotion Recognition in English and Polish for Therapeutic Chatbot

Faculty of Electronics and Information Technology, Warsaw University of Technology, Nowowiejska 15/19, 00-665 Warsaw, Poland
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(21), 10146; https://doi.org/10.3390/app112110146
Submission received: 29 September 2021 / Revised: 25 October 2021 / Accepted: 26 October 2021 / Published: 29 October 2021
(This article belongs to the Special Issue Human Machine Interaction)

Abstract

In this article, we present the results of our experiments on sentiment and emotion recognition for English and Polish texts, aiming to work in the context of a therapeutic chatbot. We created a dedicated dataset by adding samples of neutral texts to an existing English-language emotion-labeled corpus. Next, using neural machine translation, we developed a Polish version of the English database. A bilingual, parallel corpus created in this way, named CORTEX (CORpus of Translated Emotional teXts), labeled with three sentiment polarity classes and nine emotion classes, was used for experiments on classification. We employed various classifiers: Naïve Bayes, Support Vector Machines, fastText, and BERT. The results obtained were satisfactory: we achieved the best scores for the BERT-based models, which yielded accuracy of over 90% for sentiment (3-class) classification and almost 80% for emotion (9-class) classification. We compared the results for both languages and discussed the differences. Both the accuracy and the F1-scores for Polish turned out to be slightly inferior to those for English, with the highest difference visible for BERT.
Keywords: human-machine interaction; chatbot; sentiment recognition; emotion recognition; Polish language; parallel text corpus; fastText; BERT; machine translation human-machine interaction; chatbot; sentiment recognition; emotion recognition; Polish language; parallel text corpus; fastText; BERT; machine translation

Share and Cite

MDPI and ACS Style

Zygadło, A.; Kozłowski, M.; Janicki, A. Text-Based Emotion Recognition in English and Polish for Therapeutic Chatbot. Appl. Sci. 2021, 11, 10146. https://doi.org/10.3390/app112110146

AMA Style

Zygadło A, Kozłowski M, Janicki A. Text-Based Emotion Recognition in English and Polish for Therapeutic Chatbot. Applied Sciences. 2021; 11(21):10146. https://doi.org/10.3390/app112110146

Chicago/Turabian Style

Zygadło, Artur, Marek Kozłowski, and Artur Janicki. 2021. "Text-Based Emotion Recognition in English and Polish for Therapeutic Chatbot" Applied Sciences 11, no. 21: 10146. https://doi.org/10.3390/app112110146

APA Style

Zygadło, A., Kozłowski, M., & Janicki, A. (2021). Text-Based Emotion Recognition in English and Polish for Therapeutic Chatbot. Applied Sciences, 11(21), 10146. https://doi.org/10.3390/app112110146

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop