Classifying Public Complaints in Denpasar: a Comparative Study of CNN, RNN, LSTM, and Stacking Deep Learning Models

Authors

  • I Komang Dharmendra Information System, Institute of Technology and Business STIKOM Bali, Indonesia
  • I Made Pasek Pradnyana Wijaya Information System, Institute of Technology and Business STIKOM Bali, Indonesia
  • I Made Agus Wirahadi Putra Affiliation Informatics Management, Institute of Technology and Business STIKOM Bali, Indonesia
  • Yohanes Priyo Atmojo Information System, Institute of Technology and Business STIKOM Bali, Indonesia
  • Luh Putu Safitri Pratiwi Information Technology, Institute of Technology and Business STIKOM Bali, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.1.4153

Keywords:

Complaint Classification, Deep Learning, Ensemble Learning, Public Complaints, Text Mining

Abstract

The process of lodging complaints represents a complex behavioral construct, influenced by the interplay of emotional states, sociocultural factors, and situational contexts. It functions as a pivotal channel for citizens to express dissatisfaction regarding the quality of governmental services. This research aims to optimize public complaint management by leveraging deep learning-based text classification on citizen submissions collected from the Denpasar City Complaint Web Portal. The methodological approach integrates several neural network models, including Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), and Long Short-Term Memory (LSTM) networks, further enhanced by a Stacking ensemble technique that amalgamates the strengths of each architecture. The dataset consists of 10,302 textual records, categorized into four semantic classes: Complaints, Suggestions, Inquiries, and Information. To improve the robustness and reliability of the classification, advanced preprocessing steps were implemented, including the application of the Synthetic Minority Over-sampling Technique (SMOTE) to alleviate class imbalance and the utilization of Term Frequency–Inverse Document Frequency (TF-IDF) for extracting the most informative textual features. Empirical results demonstrate that the Stacking ensemble model significantly outperforms individual baseline models, achieving an accuracy of 77.83%, with recall and F1-score values of 74.38%. These findings highlight the effectiveness of ensemble deep learning approaches in multiclass complaint classification, thereby supporting improvements in public service delivery and fostering greater governmental transparency. Ultimately, this study contributes to the field of automated text classification by illustrating the potential of advanced neural architectures to enhance citizen participation and institutional accountability.

Downloads

Download data is not yet available.

References

‘Complaining during closed training: its functions and consequences’, Pol. Psychol. Bull., Jul. 2023, doi: 10.24425/ppb.2020.133772.

G. Leo and J. Pate, ‘Complainer’s Dilemma’, J. Public Econ. Theory, vol. 27, no. 1, p. e70011, Feb. 2025, doi: 10.1111/jpet.70011.

M. Mauchand and M. D. Pell, ‘Listen to my feelings! How prosody and accent drive the empathic relevance of complaining speech’, Neuropsychologia, vol. 175, p. 108356, Oct. 2022, doi: 10.1016/j.neuropsychologia.2022.108356.

K.-E. Yoon, Complaining As a Sociocultural Activity: Examining How and Why in Korean Interaction. Lexington Books, 2021. doi: 10.5771/9781793604712.

G. Kruks-Wisner, ‘Great Expectations, Great Grievances: The Politics of Citizens’ Complaints in India’, Comp. Polit., vol. 54, no. 1, pp. 27–49, Oct. 2021, doi: 10.5129/001041521X16106633880914.

N. Meiners, ‘Cultural Influences and Complaint Behavior of Older Consumers in International Markets: A Comparative Study’, Int. J. Appl. Res. Bus. Manag., vol. 5, no. 2, Jul. 2024, doi: 10.51137/wrp.ijarbm.2024.nmct.45636.

Umi Rahmawati, Septiana Wulandari, Merita Auli, and Tatang Sudrajat, ‘Public Service Complaints Through Electronic Communication Media in The Era Of Digital Democracy in South Sumatera Province: Political and Public Policy Analysis’, Public Serv. Gov. J., vol. 6, no. 1, pp. 104–126, Jan. 2025, doi: 10.56444/psgj.v6i1.2434.

M. Haekal and M. B. Z. Tjenreng, ‘Analisis Pengelolaan Pengaduan Masyarakat melalui Aplikasi JAKI dalam Rangka Pelayanan Publik di DKI Jakarta’, J. PKM Manaj. Bisnis, vol. 5, no. 1, pp. 228–241, Jan. 2025, doi: 10.37481/pkmb.v5i1.1245.

F. A. Alenezy and M. Akhlaq, ‘Fix-It: Design and Implementation of a Public Complaint Management System’, in 2023 International Conference on Computer Science, Information Technology and Engineering (ICCoSITE), Jakarta, Indonesia: IEEE, Feb. 2023, pp. 858–862. doi: 10.1109/ICCoSITE57641.2023.10127715.

R. Ali, A. S. Abdul Latiff, and S. Abdul Wahab, ‘Revitalizing Public Trust through Efficient Complaint Management: A Comprehensive Study on the Impact and Effectiveness of Public Complaint Management System of Malaysia’, presented at the Proceedings of Society 5.0 Conference 2023, pp. 9--4. doi: 10.29007/zdn7.

W. A. Setyarini, ‘Survei Kepuasan Masyarakat terhadap Pelayanan Pengaduan Masyarakat Lapor Hendi Tahun 2021’, J. Riptek, vol. 16, no. 2, pp. 90–96, Dec. 2022, doi: 10.35475/riptek.v16i2.157.

R. Kumalasari, ‘STUDY EFEKTIVITAS KEBIJAKAN INOVASI DOKADU (DOKUMENTASI PENGADUAN) DI DINAS KEPENDUDUKAN DAN PENCATATAN SIPIL KOTA MAGELANG’, J. Jendela Inov. Drh., vol. 6, no. 1, pp. 88–109, Mar. 2023, doi: 10.56354/jendelainovasi.v6i1.138.

F. A. Lestari, L. Efrizoni, E. Ali, and R. Rahmiati, ‘Sistem Klasifikasi Pengaduan Masyarakat Pada BPJS Ketenagakerjaan Menggunakan Algoritma Naïve Bayes Berbasis Mobile’, Build. Inform. Technol. Sci. BITS, vol. 4, no. 1, Jun. 2022, doi: 10.47065/bits.v4i1.1685.

J. Van Dael, T. W. Reader, A. Gillespie, A. L. Neves, A. Darzi, and E. K. Mayer, ‘Learning from complaints in healthcare: a realist review of academic literature, policy evidence and front-line insights’, BMJ Qual. Saf., vol. 29, no. 8, pp. 684–695, Aug. 2020, doi: 10.1136/bmjqs-2019-009704.

R. Bewinda, Andi Fitri Rahmadany, and Mansyur Achmad, ‘Community Complaint Services Through Electronic Complaint Channels in Increasing the Effectiveness of Government Affairs Compulsory Basic Services’, J. Humanit. Soc. Sci. Stud., vol. 6, no. 9, pp. 89–97, Sep. 2024, doi: 10.32996/jhsss.2024.6.9.11.

D. Hertati, ‘Improving the Quality of Public Services through Innovation of Online Complaints Based on the Wargaku Application’, J. Soc., vol. 4, no. 3, pp. 97–102, Oct. 2023, doi: 10.37899/journal-la-sociale.v4i3.831.

V. Vinayak and J. C., ‘Consumer Complaints Classification using Deep Learning & Word Embedding Models’, in 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), Delhi, India: IEEE, Jul. 2023, pp. 1–5. doi: 10.1109/ICCCNT56998.2023.10307286.

S. Khedkar and S. Shinde, ‘Deep Learning and Ensemble Approach for Praise or Complaint Classification’, Procedia Comput. Sci., vol. 167, pp. 449–458, 2020, doi: 10.1016/j.procs.2020.03.254.

S. Lukitasari and F. Hidayat, ‘Deep Learning-Based Complaint Classification for Indonesia Telecommunication Company’s Call Center’, in Proceedings of the Proceedings of the 7th Mathematics, Science, and Computer Science Education International Seminar, MSCEIS 2019, 12 October 2019, Bandung, West Java, Indonesia, Bandung, Indonesia: EAI, 2020. doi: 10.4108/eai.12-10-2019.2296518.

M. A. Bashar, R. Nayak, and N. Suzor, ‘Regularising LSTM classifier by transfer learning for detecting misogynistic tweets with small training set’, Knowl. Inf. Syst., vol. 62, no. 10, pp. 4029–4054, Oct. 2020, doi: 10.1007/s10115-020-01481-0.

A. Mohammed and R. Kora, ‘A comprehensive review on ensemble deep learning: Opportunities and challenges’, J. King Saud Univ. - Comput. Inf. Sci., vol. 35, no. 2, pp. 757–774, Feb. 2023, doi: 10.1016/j.jksuci.2023.01.014.

K. L. Tan, C. P. Lee, K. M. Lim, and K. S. M. Anbananthen, ‘Sentiment Analysis With Ensemble Hybrid Deep Learning Model’, IEEE Access, vol. 10, pp. 103694–103704, 2022, doi: 10.1109/ACCESS.2022.3210182.

S. Abimannan, E.-S. M. El-Alfy, Y.-S. Chang, S. Hussain, S. Shukla, and D. Satheesh, ‘Ensemble Multifeatured Deep Learning Models and Applications: A Survey’, IEEE Access, vol. 11, pp. 107194–107217, 2023, doi: 10.1109/ACCESS.2023.3320042.

A. Mohammed and R. Kora, ‘An effective ensemble deep learning framework for text classification’, J. King Saud Univ. - Comput. Inf. Sci., vol. 34, no. 10, pp. 8825–8837, Nov. 2022, doi: 10.1016/j.jksuci.2021.11.001.

D. Muller, I. Soto-Rey, and F. Kramer, ‘An Analysis on Ensemble Learning Optimized Medical Image Classification With Deep Convolutional Neural Networks’, IEEE Access, vol. 10, pp. 66467–66480, 2022, doi: 10.1109/ACCESS.2022.3182399.

R. K. Mishra, G. Y. S. Reddy, and H. Pathak, ‘The Understanding of Deep Learning: A Comprehensive Review’, Math. Probl. Eng., vol. 2021, pp. 1–15, Apr. 2021, doi: 10.1155/2021/5548884.

C. Janiesch, P. Zschech, and K. Heinrich, ‘Machine learning and deep learning’, Electron. Mark., vol. 31, no. 3, pp. 685–695, Sep. 2021, doi: 10.1007/s12525-021-00475-2.

J. Egger, A. Pepe, C. Gsaxner, Y. Jin, J. Li, and R. Kern, ‘Deep learning—a first meta-survey of selected reviews across scientific disciplines, their commonalities, challenges and research impact’, PeerJ Comput. Sci., vol. 7, p. e773, Nov. 2021, doi: 10.7717/peerj-cs.773.

H. J. S and Mrs. M. Raju, ‘A Study on Deep Learning’, Int. J. Res. Appl. Sci. Eng. Technol., vol. 10, no. 11, pp. 961–964, Nov. 2022, doi: 10.22214/ijraset.2022.47486.

D. Berrar and W. Dubitzky, ‘Deep learning in bioinformatics and biomedicine’, Brief. Bioinform., vol. 22, no. 2, pp. 1513–1514, Mar. 2021, doi: 10.1093/bib/bbab087.

M. Zulqarnain, R. Ghazali, Y. M. M. Hassim, and M. Rehan, ‘A comparative review on deep learning models for text classification’, Indones. J. Electr. Eng. Comput. Sci., vol. 19, no. 1, p. 325, Jul. 2020, doi: 10.11591/ijeecs.v19.i1.pp325-335.

Y. Zhou, ‘A Review of Text Classification Based on Deep Learning’, in Proceedings of the 2020 3rd International Conference on Geoinformatics and Data Analysis, Marseille France: ACM, Apr. 2020, pp. 132–136. doi: 10.1145/3397056.3397082.

H. Wu, Y. Liu, and J. Wang, ‘Review of Text Classification Methods on Deep Learning’, Comput. Mater. Contin., vol. 63, no. 3, pp. 1309–1321, 2020, doi: 10.32604/cmc.2020.010172.

H. Zhou, ‘Research of Text Classification Based on TF-IDF and CNN-LSTM’, J. Phys. Conf. Ser., vol. 2171, no. 1, p. 012021, Jan. 2022, doi: 10.1088/1742-6596/2171/1/012021.

K. M. Hasib et al., ‘MCNN-LSTM: Combining CNN and LSTM to Classify Multi-Class Text in Imbalanced News Data’, IEEE Access, vol. 11, pp. 93048–93063, 2023, doi: 10.1109/ACCESS.2023.3309697.

B. Jang, M. Kim, G. Harerimana, S. Kang, and J. W. Kim, ‘Bi-LSTM Model to Increase Accuracy in Text Classification: Combining Word2vec CNN and Attention Mechanism’, Appl. Sci., vol. 10, no. 17, p. 5841, Aug. 2020, doi: 10.3390/app10175841.

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’, Appl. Sci., vol. 12, no. 5, Art. no. 5, Jan. 2022, doi: 10.3390/app12052694.

P. Sunagar and A. Kanavalli, ‘A Hybrid RNN based Deep Learning Approach for Text Classification’, Int. J. Adv. Comput. Sci. Appl., vol. 13, no. 6, 2022, doi: 10.14569/IJACSA.2022.0130636.

M. Yousef and A. ALali, ‘Analysis and Evaluation of Two Feature Selection Algorithms in Improving the Performance of the Sentiment Analysis Model of Arabic Tweets’, Int. J. Adv. Comput. Sci. Appl., vol. 13, no. 6, 2022, doi: 10.14569/IJACSA.2022.0130683.

H. Zhao, Z. Liu, X. Yao, and Q. Yang, ‘A machine learning-based sentiment analysis of online product reviews with a novel term weighting and feature selection approach’, Inf. Process. Manag., vol. 58, no. 5, p. 102656, Sep. 2021, doi: 10.1016/j.ipm.2021.102656.

Y. Karaman, F. Akdeniz, B. K. Savaş, and Y. Becerikli, ‘A Comparative Analysis of SVM, LSTM and CNN-RNN Models for the BBC News Classification’, in Innovations in Smart Cities Applications Volume 6, M. Ben Ahmed, A. A. Boudhir, D. Santos, R. Dionisio, and N. Benaya, Eds., Cham: Springer International Publishing, 2023, pp. 473–483. doi: 10.1007/978-3-031-26852-6_44.

S. Lyu and J. Liu, ‘Convolutional Recurrent Neural Networks for Text Classification’:, J. Database Manag., vol. 32, no. 4, pp. 65–82, Oct. 2021, doi: 10.4018/JDM.2021100105.

D. Kim, ‘Text Classification Based on Neural Network Fusion’, Teh. Glas., vol. 17, no. 3, pp. 359–366, Jul. 2023, doi: 10.31803/tg-20221228154330.

E. A. Nismi Mol and M. B. Santosh Kumar, ‘Study on Impact of RNN, CNN and HAN in Text Classification’, in 2020 Advanced Computing and Communication Technologies for High Performance Applications (ACCTHPA), Cochin, India: IEEE, Jul. 2020, pp. 94–102. doi: 10.1109/ACCTHPA49271.2020.9213231.

H. Wang and F. Li, ‘A text classification method based on LSTM and graph attention network’, Connect. Sci., vol. 34, no. 1, pp. 2466–2480, Dec. 2022, doi: 10.1080/09540091.2022.2128047.

A. Chatzimparmpas, R. M. Martins, K. Kucher, and A. Kerren, ‘StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics’, IEEE Trans. Vis. Comput. Graph., vol. 27, no. 2, pp. 1547–1557, Feb. 2021, doi: 10.1109/TVCG.2020.3030352.

S. S. Kshatri, D. Singh, B. Narain, S. Bhatia, M. T. Quasim, and G. R. Sinha, ‘An Empirical Analysis of Machine Learning Algorithms for Crime Prediction Using Stacked Generalization: An Ensemble Approach’, IEEE Access, vol. 9, pp. 67488–67500, 2021, doi: 10.1109/ACCESS.2021.3075140.

‘Pro Denpasar’. Accessed: Apr. 17, 2023. [Online]. Available: https://pengaduan.denpasarkota.go.id/

I. K. Dharmendra, I. G. N. A. Kusuma, I. A. M. C. Dewi, and Edwar, ‘IMPLEMENTASI TEXT MINING UNTUK KLASIFIKASI OPINI ALUMNI PADA PERGURUAN TINGGI’, J. Teknol. Inf. Dan Komput., vol. 9, no. 3, Art. no. 3, Jul. 2023, Accessed: Aug. 18, 2023. [Online]. Available: https://jurnal.undhirabali.ac.id/index.php/jutik/article/view/2504

‘Stemming Bahasa Indonesia · sastrawi/sastrawi Wiki · GitHub’. Accessed: Jun. 26, 2019. [Online]. Available: https://github.com/sastrawi/sastrawi/wiki/Stemming-Bahasa-Indonesia

M. Das, S. K., and P. J. A. Alphonse, ‘A Comparative Study on TF-IDF feature Weighting Method and its Analysis using Unstructured Dataset’, 2023, arXiv. doi: 10.48550/ARXIV.2308.04037.

Z. Jiang, B. Gao, Y. He, Y. Han, P. Doyle, and Q. Zhu, ‘Text Classification Using Novel Term Weighting Scheme-Based Improved TF-IDF for Internet Media Reports’, Math. Probl. Eng., vol. 2021, pp. 1–30, Mar. 2021, doi: 10.1155/2021/6619088.

Additional Files

Published

2026-02-15

How to Cite

[1]
I. K. . Dharmendra, I. M. P. P. . Wijaya, I. M. A. W. . Putra, Y. P. . Atmojo, and L. P. S. . Pratiwi, “Classifying Public Complaints in Denpasar: a Comparative Study of CNN, RNN, LSTM, and Stacking Deep Learning Models”, J. Tek. Inform. (JUTIF), vol. 7, no. 1, pp. 411–430, Feb. 2026.