EVERGREEN

Joint Journal of Novel Carbon Resource Sciences and Green Asia Strategy

ISSN:2189-0420 (Print until Mar 2020)
ISSN:2432-5953 (Online)

SCImago Journal & Country Rank

Open Access
Scopus
Google Scholar
Crossref
SCImago Journal & Country Rank
4.3
2024CiteScore
 
69th percentile
Powered by Scopus
Metrics by SCOPUS 2024
CiteScore
4.3
SJR
0.391
SNIP
1.192


A Sentiment Analysis Study of Banning Single-Use Plastic Bags Based on X Users’ Attitude

Zulwelly Murti1, Soen Steven1,*, Arief Ameir Rahman Setiawan1, Riana Y. H. Sinaga1, Maya L. D. Wardani1, Ernie S. A. Soekotjo1, Dharmawan Dharmawan1, Adik A. Soedarsono1, Mulyono Mulyono1, Geby Otivriyanti1
1Research Center For Sustainable Production System and Life Cycle Assessment, National Research and Innovation Agency (BRIN), Indonesia
*Author to whom correspondence should be addressed:
E-mail: soen.steven.example@university.edu (SS)
Received: August 07, 2024 | Revised: May 02, 2025 | Accepted: June 20, 2025 | Published: June 2025
Abstract
Single-use plastics have become an urgent global environmental concern. The Indonesian government has attempted to introduce a policy that bans the use of single-use plastics as an initial step toward overcoming this issue. However, policy implementation often faces challenges from stakeholders. Therefore, this study aims to analyze public sentiment expressed on the X platform (formerly known as “Twitter”) regarding the policy of banning single-use plastic bags in Indonesia. The methods used in this study include data collection, pre-processing (cleaning and transforming), labeling, modeling, and analysis using RapidMiner software. Tweet data were then analyzed using three machine learning methods, i.e. Naïve Bayes, K-Nearest Neighbors (KNN), and Decision Tree. Data were divided into training and test sets with a ratio of 60:40, 70:30, and 80:20. As many as 1038 refined tweets data from 2019-2023 with related keywords were obtained. Based on the performance evaluation, the Naïve Bayes algorithm can improve its performance as the amount of training data increases, without overfitting. This algorithm achieves the highest accuracy of 89.73% at an 80:20 ratio. Furthermore, the classification results of the majority (70.6%) of the tweets showed positive support for the policy, 19.6% were negative, and 9.8% were neutral. In other words, the results of this sentiment classification can be used to monitor public responses and formulate environmentally friendly policies that are effective and supported by the majority.
Keywords
Naïve Bayes ; Sentiment ; Machine learning ; Algorithm ; Single-use plastic
Available Repositories
Share Article
Article Metrics
--
Views
--
Downloads
--
Citations
Full Text
Download PDF
References
  1. 1) A.Dey, C.V. Dhumal, P. Sengupta, A. Kumar, N.K. Pramanik, and T. Alam, "Challenges and possible solutions to mitigate the problems of single-use plastics used for packaging food items: a review," J. Food Sci. Technol., 58 (9) 3251-3269 (2021) doi:10.1007/s13197-020-04885-6
  2. 2) C.Liu, T. Thang Nguyen, and Y. Ishimura, "Current situation and key challenges on the use of single-use plastic in hanoi," Waste Manag., 121 422-431 (2021) doi:10.1016/j.wasman.2020.12.033
  3. 3) L.R.Lima, R.F. Gutierrez, and S.A. Cruz, "Challenges in the context of single-use plastics and bioplastics in brazil: a legislative review," Waste Manag. Res. J. a Sustain. Circ. Econ., 40 (7) 998-1006 (2022) doi:10.1177/0734242X211055548
  4. 4) Syafrudin,Mochamad Arief Budihardjo, Nany Yuliastuti, and Bimastyaji Surya Ramadan, "Assessment of greenhouse gases emission from integrated solid waste management in semarang city, central java, indonesia," Evergreen, 8 (1) 23-35 (2021) doi:10.5109/4372257
  5. 5) I.Febijanto, S. Steven, N. Nadirah, H. Bahua, A. Shoiful, D.P. Dewanti, I.P.A. Kristyawan, K.A. Haris, M. Yuliani, M. Hanif, M.H. Robbani, N.R. Yusuf, Prihartanto, P. Alfatri, R.A. Pratama, W. Purwanta, Wiharja, R. Nugroho, and S.K. Ramadhan, "Municipal solid waste (msw) reduction through incineration for electricity purposes and its environmental performance: a case study in bantargebang, west java, indonesia," Evergreen, 11 (1) 32-45 (2024) doi:10.5109/7172186
  6. 6) A.Zhumadilova, and S. Zhigitova, "Features of modern areas of solid waste disposal," Evergreen, 10 (2) 640-648 (2023) doi:10.5109/6792809
  7. 7) S.Steven, N.T.U. Culsum, I.C. Sophiana, I. Febijanto, E. Syamsudin, N. Ghazali, N. Nadirah, E.S.A. Soekotjo, and I.M. Hidayatullah, "Potential of corn cob sustainable valorization to fuel-grade bioethanol: a simulation study using superpro designer®," Evergreen, 10 (4) 2287-2298 (2023) doi:10.5109/7160904
  8. 8) L.Di Paolo, S. Abbate, E. Celani, D. Di Battista, and G. Candeloro, "Carbon footprint of single-use plastic items and their substitution," Sustainability, 14 (24) 16563 (2022) doi:10.3390/su142416563
  9. 9) M.Shen, W. Huang, M. Chen, B. Song, G. Zeng, and Y. Zhang, "(Micro)plastic crisis: un-ignorable contribution to global greenhouse gas emissions and climate change," J. Clean. Prod., 254 120138 (2020) doi:10.1016/j.jclepro.2020.120138
  10. 10) A.Berisha, and L. Osmanaj, "Kosovo scenario for mitigation of greenhouse gas emissions from municipal waste management," Evergreen, 8 (3) 509-516 (2021) doi:10.5109/4491636
  11. 11) D.A.Trirahayu, A.Z. Abidin, R.P. Putra, A.S. Hidayat, E. Safitri, and M.I. Perdana, "Process simulation and design considerations for biodiesel production from rubber seed oil," Fuels, 3 (4) 563-579 (2022) doi:10.3390/fuels3040034
  12. 12) D.A.Trirahayu, A.Z. Abidin, R.P. Putra, F.D. Putri, A.S. Hidayat, and M.I. Perdana, "Process assessment of integrated hydrogen production from by-products of cottonseed oil-based biodiesel as a circular economy approach," Hydrogen, 4 (2) 272-286 (2023) doi:10.3390/hydrogen4020019
  13. 13) E.Cowan, A.M. Booth, A. Misund, K. Klun, A. Rotter, and R. Tiller, "Single-use plastic bans: exploring stakeholder perspectives on best practices for reducing plastic pollution," Environments, 8 (8) 81 (2021) doi:10.3390/environments8080081
  14. 14) Shabbiruddin,N. Kanwar, V.K. Jadoun, J. N. S., A. Afthanorhan, N. Fatema, H. Malik, and M.A. Hossaini, "Industry—challenge to pro-environmental manufacturing of goods replacing single-use plastic by indian industry: a study toward failing ban on single-use plastic access," IEEE Access, 11 77336-77346 (2023) doi:10.1109/ACCESS.2023.3296097
  15. 15) S.Ali, W. Ahmed, Y.A. Solangi, I.S. Chaudhry, and N. Zarei, "Strategic analysis of single-use plastic ban policy for environmental sustainability: the case of pakistan," Clean Technol. Environ. Policy, 24 (3) 843-849 (2022) doi:10.1007/s10098-020-02011-w
  16. 16) M.Pearson, E. Khare, and O. Tantawi, "Addressing the single-use plastic proliferation problem," MIT Sci. Policy Rev., 3 85-93 (2022) doi:10.38105/spr.ro3uhoc2lz
  17. 17) H.Kamaruddin, Maskun, F. Patittingi, H. Assidiq, S.N. Bachril, and N.H. Al Mukarramah, "Legal aspect of plastic waste management in indonesia and malaysia: addressing marine plastic debris," Sustainability, 14 (12) 6985 (2022) doi:10.3390/su14126985
  18. 18) Y.Wang, and R. Karasik, "Plastic Pollution Policy Country Profile: Indonesia," Duke University, 2022
  19. 19) A.R.Bizhanova, A.S. Koshkinbayeva, G.A. Zhunisova, G.Z. Osmanova, D. Belkhozhayeva, and D.S. Baisymakova, "Regulatory issues of depollution in kazakhstan," Evergreen, 9 (4) 903-908 (2022) doi:10.5109/6622877
  20. 20) C.A.G.Gutierrez, A. Whittaker, K.M. Patenio, J. Gehman, L.M. Lefsrud, D. Barbosa, and E. Stroulia, "Analyzing and visualizing Twitter conversations," in: Proc. 31st Annu. Int. Conf. Comput. Sci. Softw. Eng., IBM Corp., USA, 2021: pp. 4-13
  21. 21) M.Birjali, M. Kasri, and A. Beni-Hssane, "A comprehensive survey on sentiment analysis: approaches, challenges and trends," Knowledge-Based Syst., 226 107134 (2021) doi:10.1016/j.knosys.2021.107134
  22. 22) A.Mitra, "Sentiment analysis using machine learning approaches (lexicon based on movie review dataset)," J. Ubiquitous Comput. Commun. Technol., 2 (3) 145-152 (2020) doi:10.36548/jucct.2020.3.004
  23. 23) P.Monika, C. Kulkarni, N. Harish Kumar, S. Shruthi, and V. Vani, "Machine learning approaches for sentiment analysis," Int. J. Health Sci. (Qassim)., 1286-1300 (2022) doi:10.53730/ijhs.v6nS4.6119
  24. 24) J.M.Helm, A.M. Swiergosz, H.S. Haeberle, J.M. Karnuta, J.L. Schaffer, V.E. Krebs, A.I. Spitzer, and P.N. Ramkumar, "Machine learning and artificial intelligence: definitions, applications, and future directions," Curr. Rev. Musculoskelet. Med., 13 (1) 69-76 (2020) doi:10.1007/s12178-020-09600-8
  25. 25) D.Hsu, "Overview of Machine Learning," 2022
  26. 26) S.Uddin, and H. Lu, "Confirming the statistically significant superiority of tree-based machine learning algorithms over their counterparts for tabular data," PLoS ONE, 19 (4) e0301541 (2024) doi:10.1371/journal.pone.0301541
  27. 27) R.Nayak, S. Dinesh, and S.Thirunavukkarasu, "A Novel Method Improvement of Rapid Miner for the Data Mining Applications," 2019
  28. 28) M.Bjaoui, H. Sakly, M. Said, N. Kraiem, and M.S. Bouhlel, "Depth insight for data scientist with RapidMiner « an innovative tool for AI and big data towards medical applications»," in: Proc. 2nd Int. Conf. Digit. Tools Uses Congr., ACM, New York, NY, USA, 2020: pp. 1-6 doi:10.1145/3423603.3424059
  29. 29) G.D.Israel, "Determining Sample Size," University of Florida, 2003
  30. 30) W.G.Cochran, "The Estimation of Sample Size," in: Sampl. Tech. Third Ed., John Wiley & Sons, Inc., New York, NY, USA, 1977: pp. 86-102
  31. 31) H.T.Y.Achsan, H. Suhartanto, W.C. Wibowo, D.A. Dewi, and K. Ismed, "Automatic extraction of indonesian stopwords," Int. J. Adv. Comput. Sci. Appl., 14 (2) 166-171 (2023) doi:10.14569/IJACSA.2023.0140221
  32. 32) A.Jalilifard, V.F. Caridá, A.F. Mansano, R.S. Cristo, and F.P.C. da Fonseca, "Advances in Computing and Network Communications," Springer Singapore, Singapore, 2021 doi:10.1007/978-981-33-6977-1
  33. 33) Z.Zhang, Z. Wu, and Z. Shi, "An improved algorithm of TFIDF combined with Naive Bayes," in: 7th Int. Conf. Multimed. Image Process., ACM, New York, NY, USA, 2022: pp. 167-171 doi:10.1145/3517077.3517104
  34. 34) U.Naseem, I. Razzak, and P.W. Eklund, "A survey of pre-processing techniques to improve short-text quality: a case study on hate speech detection on twitter," Multimed. Tools Appl., 80 (28-29) 35239-35266 (2021) doi:10.1007/s11042-020-10082-6
  35. 35) C.Villavicencio, J.J. Macrohon, X.A. Inbaraj, J.-H. Jeng, and J.-G. Hsieh, "Twitter sentiment analysis towards covid-19 vaccines in the philippines using naïve bayes," Information, 12 (5) 204 (2021) doi:10.3390/info12050204
  36. 36) S.Sazzed, and S. Jayarathna, "SSentiA: a self-supervised sentiment analyzer for classification from unlabeled data," Mach. Learn. with Appl., 4 100026 (2021) doi:10.1016/j.mlwa.2021.100026
  37. 37) I.Wickramasinghe, and H. Kalutarage, "Naive bayes: applications, variations and vulnerabilities: a review of literature with code snippets for implementation," Soft Comput., 25 (3) 2277-2293 (2021) doi:10.1007/s00500-020-05297-6
  38. 38) W.W.Cholil, F. Panjaitan, F. Ferdiansyah, A. Arista, R. Astriratma, and T. Rahayu, "Comparison of Machine Learning Methods in Sentiment Analysis PeduliLindungi Applications," in: 2022 Int. Conf. Informatics, Multimedia, Cyber Inf. Syst., IEEE, 2022: pp. 276-280 doi:10.1109/ICIMCIS56303.2022.10017669
  39. 39) E.Y.Boateng, J. Otoo, and D.A. Abaye, "Basic tenets of classification algorithms k-nearest-neighbor, support vector machine, random forest and neural network: a review," J. Data Anal. Inf. Process., 08 (04) 341-357 (2020) doi:10.4236/jdaip.2020.84020
  40. 40) A.Jovic, K. Brkic, and N. Bogunovic, "An overview of free software tools for general data mining," in: 2014 37th Int. Conv. Inf. Commun. Technol. Electron. Microelectron., IEEE, 2014: pp. 1112-1117 doi:10.1109/MIPRO.2014.6859735
  41. 41) J.Han, M. Kamber, and J. Pei, "Data Mining: Concepts and Techniques, 3rd edition," Elsevier, 2012 doi:10.1016/C2009-0-61819-5
  42. 42) BPSIndonesia, "Statistical Yearbook of Indonesia," 2023
  43. 43) Kepios,"Digital 2024: indonesia," Meltwater Inc., (2024). https://datareportal.com/reports/digital-2024-indonesia
  44. 44) B.Auxier, and M. Anderson, "Social media use in 2021," Pew Res. Cent., (2021). https://www.pewresearch.org/internet/2021/04/07/social-media-use-in-2021/
  45. 45) B.Auxier, and M. Anderson, "Social media and news fact sheet," Pew Res. Cent., (2023). https://www.pewresearch.org/journalism/fact-sheet/social-media-and-news-fact-sheet/
  46. 46) S.Chen, G.I. Webb, L. Liu, and X. Ma, "A novel selective naïve bayes algorithm," Knowledge-Based Syst., 192 105361 (2020) doi:10.1016/j.knosys.2019.105361
  47. 47) S.Uddin, I. Haque, H. Lu, M.A. Moni, and E. Gide, "Comparative performance analysis of k-nearest neighbour (knn) algorithm and its different variants for disease prediction," Sci. Rep., 12 (1) 6256 (2022) doi:10.1038/s41598-022-10358-x
  48. 48) B.Charbuty, and A. Abdulazeez, "Classification based on decision tree algorithm for machine learning," J. Appl. Sci. Technol. Trends, 2 (01) 20-28 (2021) doi:10.38094/jastt20165
  49. 49) M.Ismail, N. Hassan, and S. Saleh Bafjaish, "Journal of soft computing and data mining comparative analysis of naive bayesian techniques in health-related for classification task," J. Soft Comput. Data Min., 1 (2) 1-10 (2020) doi:10.30880/jscdm.2020.01.02.001
  50. 50) K.Maswadi, N.A. Ghani, S. Hamid, and M.B. Rasheed, "Human activity classification using decision tree and naïve bayes classifiers," Multimed. Tools Appl., 80 (14) 21709-21726 (2021) doi:10.1007/s11042-020-10447-x
  51. 51) A.J.Wilson, B.S. Lakeland, T.J. Wilson, and T. Naylor, "A naive bayes classifier for identifying class ii ysos," Mon. Not. R. Astron. Soc., 521 (1) 354-388 (2023) doi:10.1093/mnras/stad301
  52. 52) S.Dwiki, "Development of environmental policy in indonesia regarding mining industry in comparison with the united states and australia : the lesson that can be learned," Evergreen, 5 (2) 50-57 (2018) doi:10.5109/1936217
Other Papers in This Issue