Implementasi Bi-LSTM Untuk Klasifikasi Sembilan Kategori Teks Berita Bahasa Indonesia

  • Ali Imron Universitas Nusantara PGRI Kediri, Indonesia
  • Erna Daniati * Mail Universitas Nusantara PGRI Kediri, Indonesia
  • Dwi Harini Universitas Nusantara PGRI Kediri, Indonesia
Keywords: Bi-LSTM; Klasifikasi Teks Berita; Machine Learning; Natural Language Processing; Pre-Processing Teks

Abstract

This study aims to develop a classification model for Indonesian news texts across nine categories using the Bidirectional Long Short-Term Memory (Bi-LSTM) method. Unlike previous studies that predominantly utilized balanced datasets or focused on binary classification, this research evaluates the model's robustness under extreme real-world class imbalance, where the disparity in data volume between classes reaches over thirteen-fold. The research methodology encompasses text preprocessing (case folding, punctuation removal, and Sastrawi stemming), tokenization, padding, and dataset splitting at an 80:20 ratio. The model architecture integrates an embedding layer, a Bi-LSTM layer, a dropout layer, and a dense layer, which are optimized using a cost-sensitive class weight technique and the Adam optimizer. Experimental results demonstrate that the model achieved an accuracy of 0.85, with weighted average precision, recall, and F1-score values all at 0.85. The primary advantage of this method lies in its bidirectional feature extraction capability (forward and backward), which proves reliable in mitigating majority class bias and reducing semantic ambiguity within minority categories. The scientific contribution of this study provides empirical evidence and a comprehensive reference regarding the effectiveness of bidirectional contextual understanding in maintaining the performance stability of multi-class text classification within non-ideal, real-world data landscapes.

References

H. Mustofa and A. A. Mahfudh, “Klasifikasi Berita Hoax Dengan Menggunakan Metode Naive Bayes,” Walisongo Journal of Information Technology, vol. 1, no. 1, p. 1, Nov. 2019, doi: 10.21580/wjit.2019.1.1.3915.

B. P. Nayoga, R. Adipradana, R. Suryadi, and D. Suhartono, “Hoax Analyzer for Indonesian News Using Deep Learning Models,” Procedia Comput. Sci., vol. 179, pp. 704–712, 2021, doi: 10.1016/j.procs.2021.01.059.

D. R. Alghifari, M. Edi, and L. Firmansyah, “Implementasi Bidirectional LSTM untuk Analisis Sentimen Terhadap Layanan Grab Indonesia,” Jurnal Manajemen Informatika (JAMIKA), vol. 12, no. 2, pp. 89–99, Sep. 2022, doi: 10.34010/jamika.v12i2.7764.

A. H. Pradhana, E. Daniati, and M. N. Muzaki, “Penerapan Bi-LSTM Untuk Named Entity Recognition Pada Teks Bahasa Indonesia,” The Indonesian Journal of Computer Science Research, vol. 4, no. 2, pp. 96–106, 2025.

R. Onsu, D. F. Sengkey, and F. D. Kambey, “Implementasi Bi-LSTM dengan Ekstraksi Fitur Word2Vec untuk Pengembangan Analisis Sentimen Aplikasi Identitas Kependudukan Digital,” Jurnal Teknologi Terpadu, vol. 10, no. 1, pp. 46–55, Jul. 2024, doi: 10.54914/jtt.v10i1.1225.

Anas Fikri Hanif, Theopilus Bayu Sasongko, and Arif Dwi Laksito, “Perbandingan Kinerja LSTM, Bi-LSTM, dan GRU pada Klasifikasi Judul Berita Clickbait,” The Indonesian Journal of Computer Science, vol. 12, no. 4, Aug. 2023, doi: 10.33022/ijcs.v12i4.3281.

A. R. Hanum et al., “Analisis Kinerja Algoritma Klasifikasi Teks Bert dalam Mendeteksi Berita Hoaks,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 3, pp. 537–546, Jul. 2024, doi: 10.25126/jtiik.938093.

C. N. Daiman, A. Yuniar Rahman, and F. Nudiyansyah, “KLASIFIKASI TEKS BERITA BREAKING NEWS DI MANGGARAI MENGGUNAKAN LONG SHORT TERM MEMORY (LSTM),” Jurnal Mnemonic, vol. 7, no. 2, pp. 170–174, Jun. 2024, doi: 10.36040/mnemonic.v7i2.9939.

R. RIZQINA MAULANI FAHRI, “KLASIFIKASI TEKS BERBAHASA INDONESIA MENGGUNAKAN WORD2VEC DAN K-NEAREST NEIGHBOR UNTUK IDENTIFIKASI BERITA HOAX,” Rabit : Jurnal Teknologi dan Sistem Informasi Univrab, vol. 11, no. 1, pp. 122–129, Jan. 2026, doi: 10.36341/rabit.v11i1.6674.

I Putu Gede Hendra Suputra, Linawati, I. G. Sukadarmika, and N. P. Sastra, “KLASIFIKASI JUDUL BERITA BAHASA INDONESIA MENGGUNAKAN SUPPORT VECTOR MACHINE DAN SELEKSI FITUR MUTUAL INFORMATION,” Jurnal Pendidikan Teknologi dan Kejuruan, vol. 22, no. 1, pp. 69–79, Jan. 2025, doi: 10.23887/jptkundiksha.v22i1.89158.

Dianda Rifaldi et al., “Evaluasi Sentimen Pengguna ChatGPT Menggunakan Naive Bayes: Tinjauan dari Confusion Matrix dan Classification Report,” Jurnal Riset Sistem dan Teknologi Informasi, vol. 3, no. 2, pp. 81–89, Jul. 2025, doi: 10.30787/restia.v3i2.1990.

H. Oktavianto, H. W. Sulistyo, G. Wijaya, D. Irawan, and G. Abdurrahman, “Analisis Perbandingan Decision Tree dan Random Forest Pada Klasifikasi Teks Data Kesehatan,” BINA INSANI ICT JOURNAL, vol. 11, no. 1, p. 56, Jun. 2024, doi: 10.51211/biict.v11i1.2928.

K. D. Ningtyas, R. Kurniawan, and A. Armansyah, “Penerapan Natural Language Processing Pada Aplikasi Chatbot Info Layanan Kantor Menggunakan Naive Bayes Algorithm,” J-SISKO TECH (Jurnal Teknologi Sistem Informasi dan Sistem Komputer TGD), vol. 6, no. 1, p. 266, Jan. 2023, doi: 10.53513/jsk.v6i1.7413.

H. Eldo, A. Ayuliana, D. Suryadi, G. Chrisnawati, and L. Judijanto, “Penggunaan Algoritma Support Vector Machine (SVM) Untuk Deteksi Penipuan pada Transaksi Online,” Jurnal Minfo Polgan, vol. 13, no. 2, pp. 1627–1632, Oct. 2024, doi: 10.33395/jmp.v13i2.14186.

M. Y. Dhinora and E. Mailoa, “Analisa Tweet Mahasiswa untuk Deteksi Gejala Depresi dengan Penerapan Natural Language Processing,” Jurnal Indonesia : Manajemen Informatika dan Komunikasi, vol. 6, no. 2, pp. 1193–1211, May 2025, doi: 10.63447/jimik.v6i2.1405.

Dimensions Badge
Published
2026-07-10
Section
Articles