Sentiment Analysis About Legislative Elections using Deep Learning with LSTM and CNN Models
Abstract
The election of legislative members is a significant moment from the perspective of democracy, influencing the policies and direction of a country. In the digital era, sentiment analysis regarding the election of legislative members through social media has become increasingly important for analyzing public opinions and providing insights into how people respond to and feel about candidates, parties, or specific issues. The authors of this study employ deep learning methods, specifically Long Short-Term Memory (LSTM) and Convolutional Neural Network (CNN) models, for sentiment analysis related to legislative member elections. These models were developed and trained using preprocessed datasets. The aim of this research is to identify the highest accuracy values of the LSTM and CNN models and to analyze and classify public sentiment regarding the 2024 DPR member election.The results of this study indicate that deep learning methods can provide valuable insights into public sentiment during the 2024 legislative elections. Using a CNN model with a data ratio of 80:20, the proposed model can categorize and identify sentiments with the highest testing accuracy. It is clear that the data ratio, which provides an optimal balance between training and testing data, has a significant impact on model performance. As a result, the CNN model achieves the best results, with an accuracy of 93.27%, an F1 score of 93.19%, precision of 93.52%, and recall of 92.73. This research makes an important contribution by applying the CNN model, which succeeded in achieving the best results in categorizing sentiment, demonstrating the highest test accuracy in analyzing public sentiment towards the 2024 DPR member elections.
Downloads
References
D. D. Putri, G. F. Nama, and W. E. Sulistiono, “Analisis Sentimen Kinerja Dewan Perwakilan Rakyat (DPR) Pada Twitter Menggunakan Metode Naive Bayes Classifier,” Jurnal Informatika dan Teknik Elektro Terapan, vol. 10, no. 1, 2022.
Sarnita Sadya, “Indonesia Masuk Negara Paling Banyak Main Twitter pada Awal 2023,” Dataindonesia.id.
M. I. Aditama, R. I. Pratama, K. H. Wiwaha, and N. A. Rakhmawati, “Analisis Klasifikasi Sentimen Pengguna Media Sosial Twitter Terhadap Pengadaan Vaksin COVID-19,” Journal Information Engineering and Educational Technology) ISSN, vol. 2549, p. 869X, 2020.
C. Huang, J. Wang, S. Wang, and Y. Zhang, “A review of deep learning in dentistry,” Neurocomputing, p. 126629, 2023.
N. C. Dang, M. N. Moreno-Garc’ia, and F. la Prieta, “Sentiment analysis based on deep learning: A comparative study,” Electronics (Basel), vol. 9, no. 3, p. 483, 2020.
N. Habbat, H. Nouri, H. Anoun, and L. Hassouni, “Sentiment analysis of imbalanced datasets using BERT and ensemble stacking for deep learning,” Eng Appl Artif Intell, vol. 126, p. 106999, 2023.
B. Liu, Sentiment analysis and opinion mining. Springer Nature, 2022.
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, 2023.
N. Pavitha et al., “Movie recommendation and sentiment analysis using machine learning,” Global Transitions Proceedings, vol. 3, no. 1, pp. 279–284, 2022.
N. Selle, N. Yudistira, and C. Dewi, “Perbandingan Prediksi Penggunaan Listrik dengan Menggunakan Metode Long Short Term Memory (LSTM) dan Recurrent Neural Network (RNN),” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 9, no. 1, pp. 155–162, 2022.
L. Kurniasari and A. Setyanto, “Sentiment analysis using recurrent neural network,” in Journal of Physics: Conference Series, 2020, p. 12018.
M. I. Prabha and G. U. Srikanth, “Survey of sentiment analysis using deep learning techniques,” in 2019 1st international conference on innovations in information and communication technology (ICIICT), 2019, pp. 1–9.
K. A. Manurung and K. M. Laksana, “Sentiment Analysis of Tourist Attraction Review from TripAdvisor Using CNN and LSTM,” International Journal on Information and Communication Technology (IJoICT), vol. 9, no. 1, pp. 73–85, 2023.
D. Jain, A. Kumar, and G. Garg, “Sarcasm detection in mash-up language using soft-attention based bi-directional LSTM and feature-rich CNN,” Appl Soft Comput, vol. 91, p. 106198, 2020.
A. Faisal, Y. Alkhalifi, A. Rifai, and W. Gata, “Analisis Sentimen Dewan Perwakilan Rakyat Dengan Algoritma Klasifikasi Berbasis Particle Swarm Optimization,” JOINTECS (Journal Inf. Technol. Comput. Sci., vol. 5, no. 2, p. 61, 2020, doi: 10.31328/jointecs. v5i2. 1362, 2020.
S. Ullah, M. R. Talib, T. A. Rana, M. K. Hanif, and M. Awais, “Deep learning and machine learning-based model for conversational sentiment classification,” Comput. Mater. Contin, vol. 72, pp. 2323–2339, 2022.
M. Deja, I. Huvila, G. Widén, and F. Ahmad, “Seeking innovation: The research protocol for SMEs’ networking,” Heliyon, vol. 9, no. 4, 2023.
K. Shin, J. Han, and S. Kang, “MI-MOTE: Multiple imputation-based minority oversampling technique for imbalanced and incomplete data classification,” Inf Sci (N Y), vol. 575, pp. 80–89, 2021.
B. A. H. Kholifatullah and A. Prihanto, “Penerapan Metode Long Short Term Memory Untuk Klasifikasi Pada Hate Speech,” Journal of Informatics and Computer Science (JINACS), pp. 292–297, 2023.
S. Utami, K. M. Lhaksmana, and Y. Sibaroni, “Deep Learning and Imbalance Handling on Movie Review Sentiment Analysis,” Sinkron: jurnal dan penelitian teknik informatika, vol. 8, no. 3, pp. 1894–1907, 2023.
D. T. Hermanto, A. Setyanto, and E. T. Luthfi, “Algoritma LSTM-CNN untuk Binary Klasifikasi dengan Word2vec pada Media Online,” Creative Information Technology Journal, vol. 8, no. 1, pp. 64–77, 2021.
M. F. Herlambang, “TA: PENGENALAN KARAKTER HURUF BRAILLE DENGAN METODE CONVOLUTIONAL NEURAL NETWORK,” Institut Teknologi Nasional Bandung, 2020.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Sentiment Analysis About Legislative Elections using Deep Learning with LSTM and CNN Models
Pages: 289−299
Copyright (c) 2024 Nadya Arda Angraini, Kemas Muslim Lhaksmana

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International 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 (Refer to The Effect of Open Access).





















