Understanding public perceptions of waste management: A comparative sentiment analysis using LSTM and IndoBERT
DOI:
https://doi.org/10.61511/wass.v3i2.2026.3176Keywords:
IndoBERT, LSTM, sentiment analysis, waste managementAbstract
Background: Waste management remains one of Indonesia’s pressing environmental and social challenges, characterized by increasing waste generation and public dissatisfaction with existing waste-treatment systems. Understanding public sentiment toward waste-management policies and community-based programs is essential for supporting more effective interventions. This study aims to examine public perceptions of waste-management issues in Indonesia and compare the performance of Long Short-Term Memory (LSTM) and Indonesian Bidirectional Encoder Representations from Transformers (IndoBERT) for sentiment classification. Methods: This study used a dataset of 15,000 public text opinions collected from social media using a crawling technique. The data were manually annotated into three sentiment categories: positive, neutral, and negative. After preprocessing, two sentiment-classification models, LSTM and IndoBERT, were developed and evaluated. Model performance was assessed using accuracy, precision, recall, and F1-score. Topic-based sentiment analysis was also conducted to identify public perceptions of major waste-management issues. Findings: The results showed that IndoBERT outperformed LSTM in sentiment classification by capturing contextual meaning and sentiment nuances in Indonesian-language expressions more effectively. Topic-based analysis indicated that community-based initiatives, including waste banks and recycling programs, were generally associated with positive sentiment. In contrast, landfill-related issues were more frequently associated with negative sentiment due to concerns about pollution and poor management. Conclusion: IndoBERT provides a more reliable approach for analyzing public sentiment toward waste-management issues in Indonesia. The findings highlight the importance of understanding public perceptions to strengthen community engagement, improve public communication, and support more effective waste-management policies and programs. Novelty/Originality of this article: The novelty of this study lies in integrating deep learning-based sentiment classification with topic-based sentiment analysis to examine public opinion specifically regarding waste-management strategies in Indonesia. The comparative evaluation of LSTM and IndoBERT also provides empirical insight into the suitability of contextual language models for analyzing Indonesian-language public opinions on waste management.
References
Af’idah, D. I., Anggraeni, P. D., Rizki, M., Setiawan, A. B., & Handayani, S. F. (2023). Aspect-based sentiment analysis for Indonesian tourist attraction reviews using bidirectional long short-term memory. JUITA: Jurnal Informatika, 11(1), 27–36. https://doi.org/10.30595/juita.v11i1.15341
Ahmadian, H., Hammam, R., Abidin, T. F., & Muchtar, K. (2023). Transformer-based Indonesian language model for emotion classification and sentiment analysis. 2023 International Conference on Information Technology and Computing. https://doi.org/10.1109/ICITCOM60176.2023.10442970
Amir, F., Miru, A. S., & Sabara, E. (2025). Urban household behavior in Indonesia: Drivers of zero waste participation. arXiv. https://doi.org/10.48550/arXiv.2505.17864
Ashouri, S., Hajikhani, A., Suominen, A., Pukelis, L., & Cunningham, S. W. (2024). Measuring digitalization at scale using web scraped data. Technological Forecasting and Social Change, 207, Article 123618. https://doi.org/10.1016/j.techfore.2024.123618
Astuti, L. W., Sari, Y., & Suprapto. (2023). Code-mixed sentiment analysis using Transformer for Twitter social media data. International Journal of Advanced Computer Science and Applications, 14(10). https://doi.org/10.14569/IJACSA.2023.0141053
Cheng, A., & Gangaraju, S. (n.d.). Fine-tuning BERT for sentiment analysis, paraphrase detection and semantic text similarity NLP tasks.
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 1, 4171–4186. https://doi.org/10.18653/v1/N19-1423
Dhanith, P. R. J., Saeed, K., Rohith, G., & Raja, S. P. (2024). Weakly supervised learning for an effective focused web crawler. Engineering Applications of Artificial Intelligence, 132, Article 107944. https://doi.org/10.1016/j.engappai.2024.107944
Dodge, J., Sap, M., Marasović, A., Agnew, W., Ilharco, G., Groeneveld, D., Mitchell, M., & Gardner, M. (2021). Documenting large webtext corpora: A case study on the Colossal Clean Crawled Corpus. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (pp. 1286–1305). Association for Computational Linguistics. https://doi.org/10.18653/v1/2021.emnlp-main.98
Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
Kabelen, F., Tanjung, R. H. R., & Suharno, S. (2024). Strategi pengelolaan timbulan sampah organik melalui konversi produksi kompos di Kabupaten Keerom Papua. Jurnal Biologi Papua, 16(2), 146–155. https://doi.org/10.31957/jbp.4189
Koto, F., Rahimi, A., Lau, J. H., & Baldwin, T. (2020). IndoLEM and IndoBERT: A benchmark dataset and pre-trained language model for Indonesian NLP. In Proceedings of the 28th International Conference on Computational Linguistics (pp. 757–770). Association for Computational Linguistics. https://doi.org/10.18653/v1/2020.coling-main.66
Lin, C.-H., & Nuha, U. (2023). Sentiment analysis of Indonesian datasets based on a hybrid deep-learning strategy. Journal of Big Data, 10, Article 88. https://doi.org/10.1186/s40537-023-00782-9
Mandhasiya, D. G., Murfi, H., & Bustamam, A. (2024). The hybrid of BERT and deep learning models for Indonesian sentiment analysis. Indonesian Journal of Electrical Engineering and Computer Science, 33(1), 591–602. https://doi.org/10.11591/ijeecs.v33.i1.pp591-602
Nikanor, C. J., Murfi, H., Osmardifa, M. A., & Ardaneswari, G. (2024). Continual learning of deep learning for Indonesian sentiment analysis. In Signals and Communication Technology (pp. 13–26). Springer. https://doi.org/10.1007/978-3-031-43781-6_2
Nkhata, G., Anjum, U., & Zhan, J. (2025). Sentiment analysis of movie reviews using BERT. arXiv. https://doi.org/10.48550/arXiv.2502.18841
Ohme, J., Araujo, T., Boeschoten, L., Freelon, D., Ram, N., Reeves, B. B., & Robinson, T. N. (2024). Digital trace data collection for social media effects research: APIs, data donation, and (screen) tracking. Communication Methods and Measures, 18(2), 124–141. https://doi.org/10.1080/19312458.2023.2181319
Pang, B., & Lee, L. (2008). Opinion mining and sentiment analysis. Foundations and Trends in Information Retrieval, 2(1–2), 1–135. https://doi.org/10.1561/1500000011
Pratiwi, R. W., Sari, Y., & Suyanto, Y. (2020). Attention-based BiLSTM for negation handling in Sentimen Analysis. IJCCS (Indonesian Journal of Computing and Cybernetics Systems), 14(4), 397–406. https://doi.org/10.22146/ijccs.60733
Qixuan, Y. (2024). Three-class text sentiment analysis based on LSTM. arXiv. https://doi.org/10.48550/arXiv.2412.17347
Rainio, O., Teuho, J., & Klén, R. (2024). Evaluation metrics and statistical tests for machine learning. Scientific Reports, 14(1), Article 6086. https://doi.org/10.1038/s41598-024-56706-x
Salma. (2025, February 26). Indonesia faces waste crisis, projected to generate 82 million tons by 2045. Universitas Gadjah Mada. Universitas Gadjah Mada
Sathyanarayanan, S., & Tantri, B. R. (2024). Confusion matrix-based performance evaluation metrics. African Journal of Biomedical Research, 27(4S), 4023–4031. https://doi.org/10.53555/AJBR.v27i4S.4345
Sinapoy, M. I. K., Sibaroni, Y., & Prasetyowati, S. S. (2023). Comparison of LSTM and IndoBERT method in identifying hoax on Twitter. Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), 7(3), 657–662. https://doi.org/10.29207/resti.v7i3.4830
Sugiri, D. (2024). Upaya pengelolaan sampah melalui pelembagaan unit dalam Badan Layanan Umum Daerah (BLUD) di Indonesia. Jurnal Ilmiah Akuntansi Manajemen, 7(2), 177–185. https://doi.org/10.35326/jiam.v7i2.6669
Trezza, D. (2023). To scrape or not to scrape, this is dilemma. The post-API scenario and implications on digital research. Frontiers in Sociology, 8, Article 1145038. https://doi.org/10.3389/fsoc.2023.1145038
Vanacore, A., Pellegrino, M. S., & Ciardiello, A. (2024). Fair evaluation of classifier predictive performance based on binary confusion matrix. Computational Statistics, 39(1), 363–383. https://doi.org/10.1007/s00180-022-01301-9
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. arXiv. https://doi.org/10.48550/arXiv.1706.03762
Wahyu W, A., Andana, H. H., Zeniarja, J., & Febriyanto, A. (2025). Sentiment analysis of the 2024 general election through Twitter using long-short-term memory algorithm. Journal of Informatics and Web Engineering, 4(2), 387–400. https://doi.org/10.33093/jiwe.2025.4.2.25
Winata, G. I., Aji, A. F., Cahyawijaya, S., Mahendra, R., Koto, F., Romadhony, A., Kurniawan, K., Moeljadi, D., Prasojo, R. E., Fung, P., Baldwin, T., Lau, J. H., Sennrich, R., & Ruder, S. (2023). NusaX: Multilingual parallel sentiment dataset for 10 Indonesian local languages. arXiv. https://doi.org/10.48550/arXiv.2205.15960
Zeng, G. (2025). Invariance properties and evaluation metrics derived from the confusion matrix in multiclass classification. Mathematics, 13(16), Article 2609. https://doi.org/10.3390/math13162609
Zhang, X., Liang, X., Zhiyuli, A., Zhang, S., Xu, R., & Wu, B. (2019). AT-LSTM: An attention-based LSTM model for financial time series prediction. IOP Conference Series: Materials Science and Engineering, 569(5), Article 052037. https://doi.org/10.1088/1757-899X/569/5/052037
Downloads
Published
Issue
Section
Citation Check
License
Copyright (c) 2026 Riszki Wijayatun Pratiwi, Chayanita Sekar Wijaya, Vilya Lakstian Catra Mulia, Jumi Darsih

This work is licensed under a Creative Commons Attribution 4.0 International License.












