Leveraging Convolutional Neural Networks and Random Forests for Advanced Sentiment Classification of Social Media Responses on Public Services

Authors

  • Alya Rohalia Politeknik Bisnis Kaltara
  • Afiyah Rifkha Rahmika Universitas Tadaluko

DOI:

https://doi.org/10.30871/jaic.v10i1.11965

Keywords:

Sentiment Analysis, Convolutional Neural Network (CNN), Random Forest Classification, Continuous Bag-of-Word (CBOW)

Abstract

In the digital era, social media has become a significant channel for citizens to express their opinions on government services. In Indonesia, particularly in the context of municipal issues, understanding public sentiment is essential to improving public service delivery. This study analyzes user comments from Facebook, Instagram, Twitter, and YouTube to capture public responses toward local government performance. Departing from previous studies that typically employ binary or three-level classifications, this research implements a five-category sentiment scheme: Very Good, Good, Fair, Poor, and Very Poor. A hybrid model combining a Convolutional Neural Network (CNN) for feature extraction and a Random Forest (RF) classifier is proposed to address this multi-class task. The model achieves 87% accuracy, outperforming the individual CNN and RF models. The results demonstrate the potential of social media–based sentiment analysis to enhance public service quality in Indonesia.

Downloads

Download data is not yet available.

References

[1] A. Fauzi, A. H. Yunial, D. E. Saputro, and R. Saputra, “Optimalisasi Random Forest untuk Sentimen Bahasa Indonesia dengan GridSearch dan SMOTE,” Jurnal Ilmu Komputer Dan Sistem Informasi., vol. 4, no. 2, pp. 202–217, May 2025, doi: 10.70340/jirsi.v4i2.207.

[2] G. G. F. Djema and N. O. Suria, “Public Sentiment Analysis of Danantara Policy through Social Media X Using SVM and Random Forest,” INOVTEK Polbeng - Seri Informatika, vol. 10, no. 2, pp. 1207–1217, Jul. 2025, doi: 10.35314/rcr21h75.

[3] M. R. Manoppo et al., “Analisis Sentimen Publik Di Media Sosial Terhadap Kenaikan Ppn 12% Di Indonesia Menggunakan Indobert,” Jurnal Kecerdasan Buatan Dan Teknologi Informasi., vol. 4, no. 2, pp. 152–163, May 2025, doi: 10.69916/jkbti.v4i2.322.

[4] J. Ding, H. Sun, X. Wang, and X. Liu, “Entity-level sentiment analysis of issue comments,” Entity-level Sentiment Analysis of Issue Comments, pp. 7–13, Jun. 2018, doi: 10.1145/3194932.3194935.

[5] S. Yang, L. Gu, X. Li, T. Jiang, and R. Ren, “Crop classification method based on optimal feature selection and hybrid CNN-RF networks for Multi-Temporal Remote sensing imagery,” Remote Sensing, vol. 12, no. 19, p. 3119, Sep. 2020, doi: 10.3390/rs12193119.

[6] Z. Kastrati, L. Ahmedi, A. Kurti, F. Kadriu, D. Murtezaj, and F. Gashi, “A deep learning sentiment analyser for social media comments in Low-Resource languages,” Electronics, vol. 10, no. 10, p. 1133, May 2021, doi: 10.3390/electronics10101133.

[7] C. Sitaula, A. Basnet, A. Mainali, and T. B. Shahi, “Deep Learning‐Based Methods for Sentiment Analysis on Nepali COVID‐19‐Related Tweets,” Computational Intelligence and Neuroscience, vol. 2021, no. 1, p. 2158184, Jan. 2021, doi: 10.1155/2021/2158184.

[8] S. G. C. G and B. Sumathi, “A novel deep learning approach of convolutional neural network and random forest classifier for fine-grained sentiment classification,” International Journal on Electrical Engineering and Informatics, vol. 13, no. 2, pp. 465–476, Jun. 2021, doi: 10.15676/ijeei.2020.13.2.13.

[9] E. A. Sukma, A. N. Hidayanto, A. I. Pandesenda, A. N. Yahya, P. Widharto, and U. Rahardja, “Sentiment analysis of the new Indonesian Government Policy (Omnibus Law) on social media Twitter,” IEEE, pp. 153–158, Nov. 2020, doi: 10.1109/icimcis51567.2020.9354287.

[10] J. Ding, H. Sun, X. Wang, and X. Liu, “Entity-level sentiment analysis of issue comments,” IEEE, pp. 7–13, Jun. 2018, doi: 10.1145/3194932.3194935.

[11] B. Jang, I. Kim, and J. W. Kim, “Word2vec convolutional neural networks for classification of news articles and tweets,” PLoS ONE, vol. 14, no. 8, p. e0220976, Aug. 2019, doi: 10.1371/journal.pone.0220976.

[12] G. Xu, Y. Meng, X. Qiu, Z. Yu, and X. Wu, “Sentiment analysis of comment texts based on BILSTM,” IEEE Access, vol. 7, pp. 51522–51532, Jan. 2019, doi: 10.1109/access.2019.2909919.

[13] S. Xiumei and Z. Min, “Performance Evaluation of transformation of Industrial Ecology in the Resource-Based Cities,” 2010 International Conference on E-Business and E-Government, vol. 2, pp. 784–787, May 2010, doi: 10.1109/icee.2010.204.

[14] S. Vanaja and M. Belwal, “Aspect-Level sentiment analysis on E-Commerce data,” 2018 International Conference on Inventive Research in Computing Applications (ICIRCA), pp. 1275–1279, Jul. 2018, doi: 10.1109/icirca.2018.8597286.

[15] S. Sathyanarayanan, “Confusion Matrix-Based Performance Evaluation Metrics,” African Journal of Biomedical Research, pp. 4023–4031, Nov. 2024, doi: 10.53555/ajbr.v27i4s.4345.

Downloads

Published

2026-02-05

How to Cite

[1]
A. Rohalia and A. Rifkha Rahmika, “Leveraging Convolutional Neural Networks and Random Forests for Advanced Sentiment Classification of Social Media Responses on Public Services”, JAIC, vol. 10, no. 1, pp. 712–717, Feb. 2026.

Similar Articles

1 2 3 4 5 > >> 

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