Prediksi Emosi Pada Teks Berbahasa Indonesia Menggunakan Model Long-Short Term Memory (LSTM)

Authors

  • Muhammad Ilham Hakiki Universitas Nusantaara PGRI Kediri
  • Ilham Firmansyah Universitas Nusantara PGRI Kediri

DOI:

https://doi.org/10.29407/s5xkwf84

Keywords:

Analisis Emosi, BiLSTM, Klasifikasi Teks, Pengolahan Bahasa Alami

Abstract

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

Download data is not yet available.

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

2026-01-24

How to Cite

Prediksi Emosi Pada Teks Berbahasa Indonesia Menggunakan Model Long-Short Term Memory (LSTM). (2026). Seminar Nasional Teknologi & Sains, 5(1), 481-488. https://doi.org/10.29407/s5xkwf84

Similar Articles

1-10 of 228

You may also start an advanced similarity search for this article.