Prediksi Emosi Pada Teks Berbahasa Indonesia Menggunakan Model Long-Short Term Memory (LSTM)
DOI:
https://doi.org/10.29407/s5xkwf84Keywords:
Analisis Emosi, BiLSTM, Klasifikasi Teks, Pengolahan Bahasa AlamiAbstract
Analisis emosi pada teks merupakan bagian penting dalam pengolahan bahasa alami karena mampu memberikan pemahaman terhadap opini dan perasaan pengguna dalam berbagai konteks digital. Penelitian ini bertujuan untuk mengklasifikasikan emosi pada teks berbahasa Indonesia dengan memanfaatkan model Bidirectional Long Short-Term Memory (BiLSTM) tanpa menggunakan model pretrained. Pemilihan topik ini didasarkan pada kebutuhan akan model klasifikasi emosi yang efisien, ringan, dan dapat diimplementasikan pada lingkungan dengan keterbatasan sumber daya komputasi. Metode penelitian meliputi tahap praproses data, vektorisasi teks menggunakan TextVectorization, pembagian data latih dan validasi secara terstratifikasi, serta pelatihan model BiLSTM bertingkat dengan penerapan class weighting dan regularisasi untuk mengatasi ketidakseimbangan kelas dan overfitting. Evaluasi dilakukan menggunakan metrik akurasi, grafik pelatihan, dan confusion matrix. Hasil eksperimen menunjukkan bahwa model BiLSTM yang diusulkan mencapai akurasi validasi sebesar 86.01% dengan proses pelatihan yang stabil berdasarkan grafik akurasi dan loss. Analisis confusion matrix memperlihatkan bahwa model mampu mengklasifikasikan emosi dengan ciri leksikal yang jelas secara akurat, sementara kesalahan klasifikasi lebih sering terjadi pada kelas emosi yang memiliki kedekatan semantik.
Downloads
References
[1] A. Glenn and P. LaCasse, “Emotion classification of Indonesian tweets using bidirectional LSTM,” Neural Computing and Applications, 2023. [Online]. Available: https://www.semanticscholar.org/paper/Emotion-classification-of-Indonesian-Tweets-using-Glenn-LaCasse/192a1a6f72d935b39bfef8fff809028bab6a4615
[2] S. William, K. —, and A. Chowanda, “Emotion recognition Indonesian language from Twitter using IndoBERT and Bi-LSTM,” Communications in Mathematical Biology and Neuroscience, 2024. [Online]. Available: https://scik.org/index.php/cmbn/article/view/7858
[3] P. Utami, M. R. Ningsih, D. A. A. Pertiwi, and J. Unjung, “Sentiment-based emotion classification using bidirectional long short-term memory (Bi-LSTM),” Journal of Soft Computing Explorations, vol. 5, no. 3, pp. 281–289, 2024. [Online]. Available: https://shmpublisher.com/index.php/joscex/article/view/461.
[4] X. Wang, Y. Liu, C. Sun, B. Wang, and X. Wang,“Predicting sentiment polarity of Chinese microblogs using LSTM,”Information Processing & Management, vol. 52, no. 5, pp. 878–887, 2016.
[5] “Analisis sentimen terhadap berita using LSTM,” JATI: Journal of Applied Informatics Techniques, 2024. [Online]. Available: https://ejournal.itn.ac.id/jati/article/download/13194/7356/
[6] S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural Computation, vol. 9, no. 8, pp. 1735–1780, 1997.
[7] A. Graves and J. Schmidhuber, “Framewise phoneme classification with bidirectional LSTM networks,” Neural Networks, vol. 18, no. 5–6, pp. 602–610, 2005.
[8] Y. Kim,“Convolutional neural networks for sentence classification,”Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1746–1751, 2014.
[9] J. Pennington, R. Socher, and C. D. Manning,“GloVe: Global vectors for word representation,”
Proceedings of EMNLP, pp. 1532–1543, 2014.
[10] T. Mikolov, K. Chen, G. Corrado, and J. Dean,“Efficient estimation of word representations in vector space,”
arXiv preprint arXiv:1301.3781, 2013.
[11] I. Goodfellow, Y. Bengio, and A. Courville,Deep Learning,
Cambridge, MA, USA: MIT Press, 2016.
[12] F. Chollet,Deep Learning with Python,Shelter Island, NY, USA: Manning Publications, 2018.
[13] N. Liu, B. Gao, and Y. Liu, “Emotion classification based on LSTM neural network, ”Proceedings of the International Conference on Artificial Intelligence and Big Data, 2017.
[14] A. Devlin, M. Chang, K. Lee, and K. Toutanova,“BERT: Pre-training of deep bidirectional transformers for language understanding,”Proceedings of NAACL-HLT, pp. 4171–4186, 2019.
[15] C. D. Manning, P. Raghavan, and H. Schütze,Introduction to Information Retrieval, Cambridge, UK: Cambridge University Press, 2008.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Muhammad Ilham Hakiki, Ilham Firmansyah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Copyright on any article is retained by the author(s).
- The author grants the journal, right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
- The article and any associated published material is distributed under the Creative Commons Attribution-ShareAlike 4.0 International License





