A Robust RoBERTa-BiLSTM Hybrid Architecture for Sentiment Analysis of Indonesian Election Discourse on X

Authors

  • Dafid Mizta Chulloh Universitas Islam Negeri Maulana Malik Ibrahim Malang Indonesia
  • Muhammad Faisal Universitas Islam Negeri Maulana Malik Ibrahim Malang Indonesia
  • Totok Chamidy Universitas Islam Negeri Maulana Malik Ibrahim Malang Indonesia

DOI:

https://doi.org/10.26877/asset.v9i1.3763

Keywords:

Sentiment Analysis, Deep Learning, Hybrid Architecture, RoBERTa-BiLSTM, Indonesian Election, X

Abstract

Information is a part of knowledge that continues to transform as technological developments unfold. The development of information technology, including social media such as Twitter, has become one of the most active channels for expressing opinions, especially in general election politics. Traditional approaches have difficulty in capturing language use, which is often informal, full of metaphors, and difficult to predict lexically. In this study, a hybrid sentiment analysis method is proposed, implementing natural language processing that combines the advantages of the transformer contextual representation approach in RoBERTa as a feature extractor with BiLSTM to understand the deep dynamics of sequence relationships in text. The proposed method achieves 0.923 accuracy, very promising results with significant effectiveness, and serves as a primary model and an advanced comparison (state-of-the-art baseline). With an advanced architecture, there are limitations in terms of the need for computational resources, the requirement for very high RAM, and generalization time. This study confirms and provides a new perspective on natural language processing in a deep learning model with a hybrid method for sentiment analysis.

Author Biographies

  • Dafid Mizta Chulloh, Universitas Islam Negeri Maulana Malik Ibrahim Malang
    Department of Informatics Engineering, Faculty of Science and Technology, Universitas Islam Negeri Maulana Malik Ibrahim Malang, Indonesia
  • Muhammad Faisal, Universitas Islam Negeri Maulana Malik Ibrahim Malang
    Department of Informatics Engineering, Faculty of Science and Technology, Universitas Islam Negeri Maulana Malik Ibrahim Malang, Indonesia
  • Totok Chamidy, Universitas Islam Negeri Maulana Malik Ibrahim Malang
    Department of Informatics Engineering, Faculty of Science and Technology, Universitas Islam Negeri Maulana Malik Ibrahim Malang, Indonesia

References

[1] O. Olabanjo et al., “From Twitter to Aso-Rock: A sentiment analysis framework for understanding Nigeria 2023 presidential election,” Heliyon, vol. 9, no. 5, p. e16085, 2023, https://doi.org/10.1016/j.heliyon.2023.e16085.

[2] A. Bhardwaj, S. Bharany, and S. Kim, “Fake social media news and distorted campaign detection framework using sentiment analysis & machine learning,” Heliyon, vol. 10, no. 16, p. e36049, 2024, https://doi.org/10.1016/j.heliyon.2024.e36049.

[3] C. G. Maurya and S. K. Jha, “Sentiment Analysis: A Hybrid Approach on Twitter Data,” Procedia Computer Science, vol. 235, pp. 990–999, 2024, https://doi.org/10.1016/j.procs.2024.04.094.

[4] K. Tanoto and A. Anita, “Investigation of challenges in aspect-based sentiment analysis enhanced using softmax function on twitter during the 2024 Indonesian presidential election,” Procedia Computer Science, vol. 245, pp. 989–997, 2024, https://doi.org/10.1016/j.procs.2024.10.327.

[5] J. Bacsu et al., “Stigma of Dementia on Social Media During World Alzheimer’s Awareness Month: Thematic Analysis of Posts,” JMIR Formative Research, vol. 9, 2025, https://doi.org/10.2196/72775.

[6] A. Hanifa et al., “Analyzing Views on Presidential Candidates for Election 2024 Based on the Instagram and X Platforms with Text Clustering,” Procedia Comput. Sci., vol. 245, pp. 730–739, 2024, https://doi.org/10.1016/j.procs.2024.10.299.

[7] F. Nathan, M. Naufal, A. Rabbaanii, M. Fikri, and A. Maulina, “Tracking Political Bias in U.S. News Media: A Daily Sentiment Analysis of the 2024 Presidential Election Using RoBERTa,” Procedia Computer Science, vol. 269, pp. 289–298, 2025, https://doi.org/10.1016/j.procs.2025.08.281.

[8] M. Asokere, A. Wusu, and O. Olabanjo, “Twitter (X) as an electoral barometer: systematic evidence from sentiment analysis of Twitter data,” International Journal of Information Technology, 2025, https://doi.org/10.1007/s41870-025-03039-1.

[9] N. Ouled and P. O. Box, “Machine Learning-Based Irony Detection and Sentiment Analysis in Arabic Tweets with Emojis,” Procedia Computer Science, vol. 270, pp. 3658–3667, 2025, https://doi.org/10.1016/j.procs.2025.09.491.

[10] H. Cam, A. Veli, U. Demirel, and S. Ahmed, “Sentiment analysis of financial Twitter posts on Twitter with the machine learning classifiers,” Heliyon, vol. 10, no. 1, p. e23784, 2024, https://doi.org/10.1016/j.heliyon.2023.e23784.

[11] D. Opeoluwa, L. Abdullahi, S. Olatunji, L. Bala, and E. Gbenga, “Optimizing sentiment analysis of Nigerian 2023 presidential election using two-stage residual long short term memory,” Heliyon, vol. 9, no. 4, p. e14836, 2023, https://doi.org/10.1016/j.heliyon.2023.e14836.

[12] Q. Abuein, R. M. Al-khatib, A. Migdady, and M. S. Jawarneh, “ArSa-Tweets: A novel Arabic sarcasm detection system based on deep learning model,” Heliyon, vol. 10, no. 17, p. e36892, 2024, https://doi.org/10.1016/j.heliyon.2024.e36892.

[13] A. Ul, G. Rabiul, R. Islam, and B. Fahad, “Dissecting the infodemic: An in-depth analysis of COVID-19 misinformation detection on X (formerly Twitter) utilizing machine learning and deep learning techniques,” Heliyon, vol. 10, no. 18, p. e37760, 2024, https://doi.org/10.1016/j.heliyon.2024.e37760.

[14] J. Furlong, A. Brook, R. Aldred, and C. Hicks, “Green transport measures at the ballot box: The role of Low Traffic Neighbourhoods in the 2022 London local elections,” Case Studies on Transport Policy, vol. 20, p. 101459, 2025, https://doi.org/10.1016/j.cstp.2025.101459.

[15] L. Gao, P. Zhu, D. Bei, and K. Guo, “Elon Musk and the 2024 U.S. Presidential Election: Assessing media influence, campaign dynamics, and public opinion,” Procedia Computer Science, vol. 266, pp. 1248–1258, 2025, https://doi.org/10.1016/j.procs.2025.08.154.

[16] E. Sutoyo and M. C. Permana, “Enhancing telemedicine service quality through sentiment analysis of user review dataset in Indonesia,” Data in Brief, vol. 61, p. 111878, 2025, https://doi.org/10.1016/j.dib.2025.111878.

[17] R. Rocca, K. Lawall, M. Tsakiris, and L. Cram, Communicating Europe: a computational analysis of the evolution of the European Commission’s communication on Twitter, vol. 7, no. 2. Springer Nature Singapore, 2024. https://doi.org/10.1007/s42001-024-00271-w.

[18] S. Marie and M. André, “The Emotional Climate of Academia: Exploring Social Media Data as an Indicator of Well-Being,” Journal of Happiness Studies, vol. 26, no. 6, pp. 1–24, 2025, https://doi.org/10.1007/s10902-025-00902-7.

[19] A. Azzawagama, A. Yudhana, and I. Riadi, “Indonesian presidential election sentiment: Dataset of response public before 2024,” Data in Brief, vol. 52, p. 109993, 2024, https://doi.org/10.1016/j.dib.2023.109993.

[20] B. Paneru, B. Thapa, and B. Paneru, “Sentiment analysis of movie reviews: A flask application using CNN with RoBERTa embeddings,” Systems and Soft Computing, vol. 7, p. 200192, 2025, https://doi.org/10.1016/j.sasc.2025.200192.

[21] K. Subbaiah and B. K. Bolla, “Aspect category learning and sentimental analysis using weakly supervised learning,” Procedia Computer Science, vol. 235, pp. 1246–1257, 2024, https://doi.org/10.1016/j.procs.2024.04.118.

[22] S. Sitoula, T. B. Shahi, S. Wibowo, and A. Neupane, “Sentiment analysis of Nepali social media text with a hybrid deep learning model,” Social Network Analysis and Mining, vol. 15, no. 1, 2025, https://doi.org/10.1007/s13278-025-01508-w.

[23] R. K. Das, M. Islam, M. M. Hasan, S. Razia, M. Hassan, and S. A. Khushbu, “Sentiment analysis in multilingual context: Comparative analysis of machine learning and hybrid deep learning models,” Heliyon, vol. 9, no. 9, p. e20281, 2023, https://doi.org/10.1016/j.heliyon.2023.e20281.

[24] K. Hilary, K. Fitri, I. Anindaputri, P. Aziza, F. Aji, and I. Anindaputri, “Performance comparison of deep learning approaches for Indonesian twitter hate speech detection using IndoBERTweet embedding,” Procedia Computer Science, vol. 269, pp. 1663–1671, 2025, https://doi.org/10.1016/j.procs.2025.09.109.

[25] E. Supriyadi and P. Nurhuda, “Sentiment Analysis of TikTok User Comments on QRIS Adoption in Indonesia Using IndoBERT,” Procedia Computer Science, vol. 269, pp. 121–130, 2025, https://doi.org/10.1016/j.procs.2025.08.265.

[26] M. E. Mswahili and Y. S. Jeong, “Transformer-based models for chemical SMILES representation: A comprehensive literature review,” Heliyon, vol. 10, no. 20, p. e39038, 2024, https://doi.org/10.1016/j.heliyon.2024.e39038.

[27] L. Xiaoyan and R. C. Raga, “BiLSTM Model With Attention Mechanism for Sentiment Classification on Chinese Mixed Text Comments,” IEEE Access, vol. 11, pp. 26199–26210, 2023, https://doi.org/10.1109/ACCESS.2023.3255990.

Downloads

Published

2026-11-27