Emotional Text Detection dengan Long Short Term Memory (LSTM)
DOI:
https://doi.org/10.22441/format.2023.v12.i2.009Keywords:
Dataset, Emotion, LSTM (Long Short-Term Memory), Natural Language.Abstract
Emotional Text Detection is a technique in natural language processing that aims to identify the emotions contained in conversations or text messages. The LSTM (Long Short-Term Memory) method is one of the techniques used in natural language processing to model and predict sequential data. In this study, we propose the use of the LSTM method for emotion detection in conversation. The dataset used is a conversational dataset that contains positive, negative, and neutral emotions. We process datasets using data pre-processing techniques such as tokenization, data cleansing and one-hot encoding. Then, we train the LSTM model on the processed dataset and obtain evaluation results using accuracy metrics. The experimental results show that the LSTM model can be used to detect emotions in conversation with a good degree of accuracy. In addition, we also conducted an analysis on the prediction results of the model and showed that the LSTM model can correctly identify emotions. In conclusion, the LSTM method can be used to detect emotions in conversation with a good degree of accuracy. This method can be used to improve user experience in chat applications and increase the effectiveness of human and machine interactions.
Downloads
References
Akhmad Fadjeri, Hidayat, K., & Dwi Riska Handayani. (2021). EMOTION DETECTION ON TEXT USING NAVE BAYES ALGORITHM. JURISTIK (Jurnal Riset Teknologi Informasi Dan Komputer), 1(02), 1-4.
https://doi.org/10.53863/juristik.v1i02.365
W. Parrot, “Emotions in Social Psychology,” in Emotions in Social Psychology, Psychology Press, 2001.
Rona Nisa Sofia Amriza, & Didi Supriyadi. (2021). Komparasi Metode Machine Learning dan Deep Learning untuk Deteksi Emosi pada Text di Sosial Media. JUPITER (Jurnal Penelitian Ilmu Dan Teknik Komputer), 13(2), 130–139.
https://doi.org/10.5281/3603.jupiter.2021.10
Chatterjee, A., Narahari, K. N., Joshi, M., & Agrawal, P. (2019). SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. 39–48.
https://doi.org/10.18653/v1/s19-2005.
Fera Fanesya, Randy Cahya Wihandika, I. (2019). Deteksi Emosi pada Twitter Menggunakan Metode Naive Bayes dan Kombinasi Fitur. Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, 3(7), 3.
“Emotion dataset for NLP”
https://www.kaggle.com/datasets/praveengovi/emotions-dataset-for-nlp?select=test.txt
Harjanta, Aris Tri Jaka. (2015). Preprocessing Text untuk Meminimalisir Kata yang Tidak Berarti dalam Proses Text Mining. Jurnal Informatika Upgris, 1(6).
A.Rajaraman, J.D.Ullman, "DataMining," Mining of Massive Datasets, pp. 1–17, 2011.
Purba, Meytry Petronella, & Yuliagnis Transver Wijaya. (2022). Analisis Basic Emotion Masyarakat Pada Masa Pandemi COVID-19 di Media Sosial Twitter Dengan Metode LSTM-FastText. Seminar Nasional Official Statistics, 1(1), 643-654.
https://doi.org/10.34123/semnasoffstat.v2022i1.1524
“Emotion Classification(NLP)” https://www.kaggle.com/code/dorgavra/emotion-classification-nlp
Downloads
Published
How to Cite
Issue
Section
License
The copyright to this article is transferred to Universitas Mercu Buana (UMB) if and when the article is accepted for publication. The undersigned hereby transfers any and all rights in and to the paper including without limitation all copyrights to UMB. The undersigned hereby represents and warrants that the paper is original and that he/she is the author of the paper, except for material that is clearly identified as to its original source, with permission notices from the copyright owners where required. The undersigned represents that he/she has the power and authority to make and execute this assignment.
We declare that this paper has not been published in the same form elsewhere.
Furthermore, I/We hereby transfer the unlimited rights of publication of the above-mentioned paper as a whole to UMB. The copyright transfer covers the right to reproduce and distribute the article, including reprints, translations, photographic reproductions, microform, electronic form (offline, online) or any other reproductions of similar nature.
The corresponding author signs for and accepts responsibility for releasing this material on behalf of any and all co-authors. This agreement is to be signed by at least one of the authors who have obtained the assent of the co-author(s) where applicable. After submission of this agreement signed by the corresponding author, changes of authorship or in the order of the authors listed will not be accepted.
Retained Rights/Terms and Conditions
Although authors are permitted to re-use all or portions of the Work in other works, this does not include granting third-party requests for reprinting, republishing, or other types of re-use.
Our Articles are licensed under CC BY-NC

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.