A COMBINED EMBEDDINGS AND BI-LSTM APPROACH FOR BALANCED AND IMBALANCED DATA

Authors

  • Fidya Farasalsabila Institut Teknologi Batam
  • Sasa Ani Arnomo Institut Teknologi Batam
  • Rifa’atul Mahmudah Burhan Institut Teknologi Batam
  • Faradiba Jabnabillah Institut Teknologi Batam
  • Alvendo Wahyu Aranski Institut Teknologi Batam
  • Alhamidi Institut Teknologi Batam
  • Ahmad Rizky Saputra Institut Teknologi Batam

DOI:

https://doi.org/10.62375/ev8bkm51

Keywords:

Word Embedding, BERT, FastText, Bi-LSTM

Abstract

The increase in online activity in recent years has had a significant impact on the mental health and well-being of individuals, particularly in the context of cyber bullying phenomena. As an effort to address this issue, this research proposes the development of a sentiment analysis model that utilizes a combination of word embedding techniques and LSTM-based recurrent neural network architecture (Bidirectional Long Short-Term Memory) to detect and classify messages containing cyber bullying elements. A total of 65,343 were collected from the YouTube platform over the time period of 2022-2023. The dataset consists of two labels, namely 0 (non- cyber bullying) and 1 (cyber bullying). The obtained data will undergo preprocessing and then be vectorized using two types of word embeddings, namely FastText and BERT, and classified using the Bi-LSTM method. The results of the experiment indicate a slight difference in accuracy values, however the BERT+Bi-LSTM model shows a slight improvement in performance compared to the FastText+Bi-LSTM model.

References

[1] Y. Setiawan, N. U. Maulidevi, and K. Surendro, “The Use of Dynamic n-Gram to Enhance TF-IDF Features Extraction for Bahasa Indonesia Cyberbullying Classification,” in ACM International Conference Proceeding Series, Association for Computing Machinery, Feb. 2023, pp. 200–205. doi: 10.1145/3587828.3587858.

[2] D. A. Nurdeni, I. Budi, and A. B. Santoso, “Sentiment Analysis on Covid19 Vaccines in Indonesia: From the Perspective of Sinovac and Pfizer,” in 3rd 2021 East Indonesia Conference on Computer and Information Technology, EIConCIT 2021, Institute of Electrical and Electronics Engineers Inc., Apr. 2021, pp. 122–127. doi: 10.1109/EIConCIT50028.2021.9431852.

[3] A. S. H. Basari, B. Hussin, I. G. P. Ananta, and J. Zeniarja, “Opinion mining of movie review using hybrid method of support vector machine and particle swarm optimization,” in Procedia Engineering, Elsevier Ltd, 2013, pp. 453–462. doi: 10.1016/j.proeng.2013.02.059.

[4] M. Raj, S. Singh, K. Solanki, and R. Selvanambi, “An Application to Detect Cyberbullying Using Machine Learning and Deep Learning Techniques,” SN Comput Sci, vol. 3, no. 5, Sep. 2022, doi: 10.1007/s42979-022-01308-5.

[5] G. Abdalla and F. Özyurt, “Sentiment Analysis of Fast Food Companies with Deep Learning Models,” Computer Journal, vol. 64, no. 3, pp. 383–390, Mar. 2021, doi: 10.1093/comjnl/bxaa131.

[6] M. A. Riza and N. Charibaldi, “Emotion Detection in Twitter Social Media Using Long Short-Term Memory (LSTM) and Fast Text,” International Journal of Artificial Intelligence & Robotics (IJAIR), vol. 3, no. 1, pp. 15–26, May 2021, doi: 10.25139/ijair.v3i1.3827.

[7] A. Nurdin, B. Anggo, S. Aji, A. Bustamin, and Z. Abidin, “PERBANDINGAN KINERJA WORD EMBEDDING WORD2VEC, GLOVE, DAN FASTTEXT PADA KLASIFIKASI TEKS,” Jurnal TEKNOKOMPAK, vol. 14, no. 2, p. 74, 2020.

[8] M. T. Hasan, M. A. E. Hossain, M. S. H. Mukta, A. Akter, M. Ahmed, and S. Islam, “A Review on Deep-Learning-Based Cyberbullying Detection,” May 01, 2023, MDPI. doi: 10.3390/fi15050179.

[9] Y. Setiawan, N. U. Maulidevi, and K. Surendro, “Deteksi Cyberbullying dengan Mesin Pembelajaran Klasifikasi (Supervised Learning): Peluang dan Tantangan,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 9, no. 7, p. 1577, Dec. 2022, doi: 10.25126/jtiik.2022976747.

[10] M. S. David and S. Renjith, “Comparison of word embeddings in text classification based on RNN and CNN,” IOP Conf Ser Mater Sci Eng, vol. 1187, no. 1, p. 012029, Sep. 2021, doi: 10.1088/1757-899x/1187/1/012029.

[11] E. M. Dharma, F. Lumban Gaol, H. Leslie, H. S. Warnars, and B. Soewito, “THE ACCURACY COMPARISON AMONG WORD2VEC, GLOVE, AND FASTTEXT TOWARDS CONVOLUTION NEURAL NETWORK (CNN) TEXT CLASSIFICATION,” J Theor Appl Inf Technol, vol. 31, no. 2, 2022, [Online]. Available: www.jatit.org

[12] Yudi Setiawan, “Bahasa Cyberbullying Dataset (Source Data: Instagram, Twitter, and Youtube),” Mendeley Data.

[13] G. Ignatow and R. Mihalcea, “An Introduction to Text Mining,” 2018.

[14] P. Bojanowski, E. Grave, A. Joulin, and T. Mikolov, “Enriching Word Vectors with Subword Information,” Jul. 2016, [Online]. Available: http://arxiv.org/abs/1607.04606

[15] A. Geet D’sa, I. Illina, and D. Fohr, “BERT and fastText Embeddings for Automatic Detection of Toxic Speech. SIIE 2020-Information Systems and Economic Intelligence,” 2020. [Online]. Available: https://www.article19.org/data/files/medialibrary/3548/ARTICLE-19-

[16] J. Devlin, M.-W. Chang, K. Lee, K. T. Google, and A. I. Language, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.” [Online]. Available: https://github.com/tensorflow/tensor2tensor

[17] A. Vaswani et al., “Attention Is All You Need.”

[18] A. Roy and M. Ojha, “Twitter sentiment analysis using deep learning models,” in 2020 IEEE 17th India Council International Conference, INDICON 2020, Institute of Electrical and Electronics Engineers Inc., Dec. 2020. doi: 10.1109/INDICON49873.2020.9342279.

[19] “31. Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8), 1735-1780.”.

[20] D. Jurafsky and J. H. Martin, “Speech and Language Processing An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition Third Edition draft Summary of Contents.”

[21] A. Graves and J. Schmidhuber, “Framewise Phoneme Classification with Bidirectional LSTM Networks.”

[22] Z. Chen, C. Jiang, M. K. Masood, Y. C. Soh, M. Wu, and X. Li, “Deep learning for building occupancy estimation using environmental sensors,” in Studies in Computational Intelligence, vol. 865, Springer Verlag, 2020, pp. 335–357. doi: 10.1007/978-3-030-31760-7_11.

[23] D. Cielen, A. D. B. Meysman, and M. Ali, “Introducing Data Science.”

[24] I. Markoulidakis, I. Rallis, I. Georgoulas, G. Kopsiaftis, A. Doulamis, and N. Doulamis, “Multiclass Confusion Matrix Reduction Method and Its Application on Net Promoter Score Classification Problem,” Technologies (Basel), vol. 9, no. 4, Dec. 2021, doi: 10.3390/technologies9040081.

[25] J. Tanha, Y. Abdi, N. Samadi, N. Razzaghi, and M. Asadpour, “Boosting methods for multi-class imbalanced data classification: an experimental review,” J Big Data, vol. 7, no. 1, Dec. 2020, doi: 10.1186/s40537-020-00349-y.

[26] H. T. Madabushi, E. Kochkina, and M. Castelle, “Cost-Sensitive BERT for Generalisable Sentence Classification with Imbalanced Data,” Mar. 2020, [Online]. Available: http://arxiv.org/abs/2003.11563

[27] A. Kulkarni, F. A. Batarseh, and D. Chong, “Chapter 5: Foundations of Data Imbalance and Solutions for a Data Democracy,” 2021.

[28] M. Al-Hashedi, L. K. Soon, H. N. Goh, A. H. L. Lim, and E. G. Siew, “Cyberbullying Detection Based on Emotion,” IEEE Access, vol. 11, pp. 53907–53918, 2023, doi: 10.1109/ACCESS.2023.3280556.

[29] Y. Chen and J. Ling, “Online Twitter Bot Detection: A Comparison Study of Vectorization and Classification Methods on Balanced and Imbalanced Data,” 2023.

[30] A. Patil, K. Han, and A. Jadon, “A Comparative Study of Text Embedding Models for Semantic Text Similarity in Bug Reports,” Aug. 2023, [Online]. Available: http://arxiv.org/abs/2308.09193

[31] A. F. Sabbah and A. A. Hanani, “Self-admitted technical debt classification using natural language processing word embeddings,” International Journal of Electrical and Computer Engineering, vol. 13, no. 2, pp. 2142–2155, Apr. 2023, doi: 10.11591/ijece.v13i2.pp2142-2155.

Downloads

Published

30-11-2026

How to Cite

A COMBINED EMBEDDINGS AND BI-LSTM APPROACH FOR BALANCED AND IMBALANCED DATA. (2026). JURNAL SITEBA, 4(2), 104-113. https://doi.org/10.62375/ev8bkm51

Similar Articles

11-13 of 13

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

Most read articles by the same author(s)