Hybrid CNN-BiLSTM untuk Analisis Sentimen Multi-Platform terhadap Insiden Keamanan Pangan Program Makan Bergizi Gratis
Abstract
The decline in stunting prevalence in Indonesia has not been accompanied by improvements in the quality of nutritional intervention program implementation, including the Free Nutritious Meal Program (MBG), which sparked public controversy following food safety incidents in several regions. The high volume of cross-platform public opinion on social media requires an analytical approach capable of simultaneously capturing diverse linguistic styles from various sources. This study proposes a hybrid Convolutional Neural Network-Bidirectional Long Short-Term Memory (CNN-BiLSTM) classification model to analyze public sentiment regarding the incidents, with CNN extracting local feature patterns and BiLSTM modeling bidirectional word-sequence dependencies. A total of 3,416 comments were collected from five social media platforms (X, Instagram, TikTok, YouTube, and Facebook), then processed through text preprocessing and initial lexicon-based labeling into three sentiment classes: negative, neutral, and positive. To strengthen label validity, the labeling quality was validated through manual annotation by two independent annotators, yielding a Cohen’s Kappa value of κ = 0.828. The dataset was split using an 80:20 stratified scheme, with class weight applied to reduce bias caused by class imbalance without changing the number of samples in each class. The hybrid model was compared with two baseline models, CNN and BiLSTM, using macro F1-score as the primary metric, while accuracy was used as a supporting metric. The experimental results show that the hybrid CNN–BiLSTM model achieved a macro F1-score of 90.38% and an accuracy of 94.59%, outperforming both baseline models. Misclassification analysis revealed that most errors occurred in argumentative comments, negation, and contrastive sentences, reflecting the limitations of lexicon-based labeling in capturing nuanced language. Overall, this approach demonstrates the potential of cross-platform deep learning-based sentiment analysis as an initial component for monitoring public opinion on national-scale government policies. This study contributes by providing a manually validated multi-platform Indonesian dataset, developing a hybrid CNN-BiLSTM architecture with a class weight scheme effective for three-class sentiment classification on informal text, and opening opportunities for applying deep learning as a means of data-driven public opinion monitoring.
Downloads
References
Badan Kebijakan Pembangunan Kesehatan, “Survei Status Gizi Indonesia 2024 I Tim Penyusun SSGI 2024 Dalam Angka,” 2025. [Online]. Available: https://www.badankebijakan.kemkes.go.id/survei-status-gizi-indonesia-ssgi-2024/
Badan Kebijakan Pembangunan Kesehatan, “Buku Saku Hasil Survei Status Gizi Indonesia (SSGI) 2022.” [Online]. Available: https://www.badankebijakan.kemkes.go.id/laporan-hasil-survei/
R. N. Ikhsani and F. F. Abdulloh, “Optimasi SVM dan Decision Tree Menggunakan SMOTE Untuk Mengklasifikasi Sentimen Masyarakat Mengenai Pinjaman Online,” Jurnal Media Informatika Budidarma, vol. 7, no. 4, p. 1667, Oct. 2023, doi: 10.30865/mib.v7i4.6809.
E. Triningsih, M. Afdal, I. Permana, and N. Evrilyan Rozanda, “Analisis Sentimen Terhadap Program Makan Bergizi Gratis Menggunakan Algoritma Machine Learning Pada Sosial Media X,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 4, pp. 2240–2250, 2025, doi: 10.47065/bits.v6i4.6534.
F. A. Ryandi, D. Pratiwi, and S. Sari, “Analisis Sentimen Masyarakat Di Media Sosial X Terhadap Kemenkes Dengan Naive Bayes dan SVM,” Jurnal Sains dan Teknologi, vol. 7, no. 1, pp. 1–6, 2025, doi: 10.55338/saintek.v7i1.4615.
R. A. Rudiyanto and E. B. Setiawan, “Sentiment Analysis Using Convolutional Neural Network (CNN) and Particle Swarm Optimization on Twitter,” JITK (Jurnal Ilmu Pengetahuan dan Teknologi Komputer), vol. 9, no. 2, pp. 188–195, Feb. 2024, doi: 10.33480/jitk.v9i2.5201.
M. Z. Rahman, Y. A. Sari, and N. Yudistira, “Analisis Sentimen Tweet COVID-19 menggunakan Word Embedding dan Metode Long Short-Term Memory (LSTM),” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 5, no. 11, pp. 5120–5127, 2021, [Online]. Available: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/10188
D. Andriyani, F. Ahmad, and E. P. Sandy, “The Effect of SMOTE Application on Support Vector Machine Performance in Sentiment Classification on Imbalanced Datasets,” Journal of Artificial Intelligence and Engineering Applications (JAIEA), vol. 4, no. 2, pp. 752–757, Feb. 2025, doi: 10.59934/jaiea.v4i2.742.
S. F. Taskiran, B. Turkoglu, E. Kaya, and T. Asuroglu, “A comprehensive evaluation of oversampling techniques for enhancing text classification performance,” Sci. Rep., vol. 15, no. 1, p. 21631, Jul. 2025, doi: 10.1038/s41598-025-05791-7.
S. Tam, R. Ben Said, and O. O. Tanriover, “A ConvBiLSTM Deep Learning Model-Based Approach for Twitter Sentiment Classification,” IEEE Access, vol. 9, pp. 41283–41293, 2021, doi: 10.1109/ACCESS.2021.3064830.
M. Mhamed, R. Sutcliffe, X. Sun, J. Feng, E. Almekhlafi, and E. A. Retta, “Improving Arabic Sentiment Analysis Using CNN‐Based Architectures and Text Preprocessing,” Comput. Intell. Neurosci., vol. 2021, no. 1, Jan. 2021, doi: 10.1155/2021/5538791.
M. J. C. Samonte, A. T. G. Dela Rosa, L. J. C. Rivera, and J. S. E. Silo, “Using Hybrid CNN-LSTM Model for Sentiment Analysis of COVID-19 Tweets,” in 2023 13th International Conference on Software Technology and Engineering (ICSTE), IEEE, Oct. 2023, pp. 133–142. doi: 10.1109/ICSTE61649.2023.00029.
A. B. Alawi and F. Bozkurt, “A hybrid machine learning model for sentiment analysis and satisfaction assessment with Turkish universities using Twitter data,” Decision Analytics Journal, vol. 11, p. 100473, Jun. 2024, doi: 10.1016/j.dajour.2024.100473.
W. Meng, Y. Wei, P. Liu, Z. Zhu, and H. Yin, “Aspect Based Sentiment Analysis With Feature Enhanced Attention CNN-BiLSTM,” IEEE Access, vol. 7, pp. 167240–167249, 2019, doi: 10.1109/ACCESS.2019.2952888.
L. Hidayati, L. P. Kusuma, D. Agustini, and V. Y. P. Ardhana, “Implementasi Web Scraping Untuk Pengumpulan Data Media Sosial Lingkup Pemerintah Provinsi NTB,” Jurnal Sistem Informasi dan Informatika (Simika), vol. 7, no. 1, pp. 63–72, Mar. 2024, doi: 10.47080/simika.v7i1.3200.
K. Kusrini, M. R. Arif Yudianto, and H. Al Fatta, “The effect of Gaussian filter and data preprocessing on the classification of Punakawan puppet images with the convolutional neural network algorithm,” International Journal of Electrical and Computer Engineering (IJECE), vol. 12, no. 4, p. 3752, Aug. 2022, doi: 10.11591/ijece.v12i4.pp3752-3761.
M. Herrmann, M. Obaidi, L. Chazette, and J. Klünder, “On the subjectivity of emotions in software projects: How reliable are pre-labeled data sets for sentiment analysis?,” Journal of Systems and Software, vol. 193, p. 111448, Nov. 2022, doi: 10.1016/j.jss.2022.111448.
U. Ependi, S. Aliya, and A. Wibowo, “Sentiment Analysis of Covid-19 Handling in Indonesia Based on Lexicon Weighting,” Jurnal Sisfokom (Sistem Informasi dan Komputer), vol. 12, no. 1, pp. 76–82, Mar. 2023, doi: 10.32736/sisfokom.v12i1.1615.
H. M. Shakeel, S. Iram, H. Al-Aqrabi, T. Alsboui, and R. Hill, “A Comprehensive State-of-the-Art Survey on Data Visualization Tools: Research Developments, Challenges and Future Domain Specific Visualization Framework,” IEEE Access, vol. 10, pp. 96581–96601, 2022, doi: 10.1109/ACCESS.2022.3205115.
V. R. Prasetyo, M. F. Naufal, and K. Wijaya, “Sentiment Analysis of ChatGPT on Indonesian Text using Hybrid CNN and Bi-LSTM,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 9, no. 2, pp. 327–333, Apr. 2025, doi: 10.29207/resti.v9i2.6334.
R. Yamashita, M. Nishio, R. K. G. Do, and K. Togashi, “Convolutional neural networks: an overview and application in radiology,” Insights Imaging, vol. 9, no. 4, pp. 611–629, Aug. 2018, doi: 10.1007/s13244-018-0639-9.
E. Y. Hidayat and D. Handayani, “Penerapan 1D-CNN untuk Analisis Sentimen Ulasan Produk Kosmetik Berdasar Female Daily Review,” Jurnal Nasional Teknologi dan Sistem Informasi, vol. 8, no. 3, pp. 153–163, Jan. 2023, doi: 10.25077/TEKNOSI.v8i3.2022.153-163.
M. E. Alzahrani, T. H. H. Aldhyani, S. N. Alsubari, M. M. Althobaiti, and A. Fahad, “Developing an Intelligent System with Deep Learning Algorithms for Sentiment Analysis of E-Commerce Product Reviews,” Comput. Intell. Neurosci., vol. 2022, pp. 1–10, May 2022, doi: 10.1155/2022/3840071.
A. R. Gunawan and R. F. Alfa Aziza, “Sentiment Analysis Using LSTM Algorithm Regarding Grab Application Services in Indonesia,” Journal of Applied Informatics and Computing, vol. 9, no. 2, pp. 322–332, Mar. 2025, doi: 10.30871/jaic.v9i2.8696.
L. Khan, A. Amjad, K. M. Afaq, and H.-T. Chang, “Deep Sentiment Analysis Using CNN-LSTM Architecture of English and Roman Urdu Text Shared in Social Media,” Applied Sciences, vol. 12, no. 5, p. 2694, Mar. 2022, doi: 10.3390/app12052694.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Hybrid CNN-BiLSTM untuk Analisis Sentimen Multi-Platform terhadap Insiden Keamanan Pangan Program Makan Bergizi Gratis
Pages: 184-197
Copyright (c) 2026 Mohamad Rival Farid Riwaldi, Aripin Aripin

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).





















