journal article·2026-01-05Open access

Sentiment Analysis of X Users Regarding Bandung Regency Using Support Vector Machine

Irlandia Ginanjar, Abdan Mulkan Shabir, Anindya Apriliyanti Pravitasari, Sinta Septi Pangastuti, Gumgum Darmawan, Sukono

Applied Sciences· Volume 16· Issue 1

Abstract

Social media has the potential to serve beneficial purposes. The abundance of uploaded content and responses from the public generates various opinions, allowing them to be identified as positive or negative regarding the portrayal of Bandung Regency. This research aims to analyse the classification and frequency of words for each sentiment expressed by X (Twitter) users regarding Bandung Regency. The research employs the Support Vector Machine (SVM) method. We expect the results to aid in formulating governmental programmes for Bandung Regency. The research revealed that the SVM model, which uses the Sigmoid kernel function with parameters C = 10 and gamma (γ) = 1, is the most optimal sentiment classification model for handling an imbalanced dataset. This model achieved an 83.01% negative recall value. Furthermore, frequent words appearing in both classes indicate that several positive opinions about Bandung Regency exhibit similar dominance, except for football dominance in negative opinions. This research pertains to the United Nations Sustainable Development Goals (SDGs), particularly SDG 11 (Sustainable Cities and Communities) and SDG 16 (Peace, Justice, and Strong Institutions). The suggested technique facilitates evidence-based policy reviews, transparent governance, and enhanced responsive public services by analysing public sentiment regarding local government performance. The results illustrate how social media analytics can aid local governments in assessing popular sentiment and pinpointing areas for policy response.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Sentiment Analysis and Opinion Mining · Data Mining and Machine Learning Applications · Multimedia Learning Systems

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Statistics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Sumedang 45363, Indonesia

Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Sumedang 45363, Indonesia

References (18)

Show source-provided references
1. (2024, October 10). Number of Social Network Users in Selected Countries in 2023 and 2029. Available online: https://www.statista.com/statistics/278341/number-of-social-network-users-in-selected-countries/.
2. APJII (2024, October 10). Survei Penetrasi Internet Indonesia 2024. Available online: https://survei.apjii.or.id/survei/group/9.
3. Annur, C.M. (2024, October 10). 10 Negara Dengan Jumlah Pengguna Twitter Terbanyak di Dunia (Juli 2023). Available online: https://databoks.katadata.co.id/media/statistik/5cb357372e82c2d/jumlah-pengguna-twitter-indonesia-duduki-peringkat-ke-4-dunia-per-juli-2023.
4. Analisis Data Twitter: Ekstraksi dan Analisis Data Geospasial
5. Tonkin, E.L., and Tourte, G.J.L. (2016). A Day at Work (with Text). Working with Text: Tools, Techniques and Approaches for Text Mining, Elsevier. Chapter 2.10.1016/B978-1-84334-749-1.00002-0 ↗
6. Tan, P.-N., Steinbach, M., and Kumar, V. (2014). Introduction to Data Mining, Pearson.
7. Physics-embedding multi-response regressor for time-variant system reliability assessment10.1016/j.ress.2025.111262 ↗
8. Aliyu, A. (2024, October 13). Understanding the Fundamental Concept of Sentiment Analysis. Available online: https://medium.com/@datathon/introduction-to-sentiment-analysis-c8cd6228313f.
9. Feldman, R., and Sanger, J. (2006). The Text Mining Handbook, Cambridge University Press.10.1017/CBO9780511546914 ↗
10. Weiss, S.M., Indurkhya, N., Zhang, T., and Damerau, F.J. (2005). Text Mining, Springer.10.1007/978-0-387-34555-0 ↗
11. De Bock, K.W. (2016). Advanced Database Marketing Innovative Methodologies and Applications for Managing Customer Relationships, Taylor & Francis.10.4324/9781315565682 ↗
12. Aroraa, G., Lele, C., and Jindal, M. (2022). Data Analytics: Principles, Tools, and Practices, BPB Publications.
13. Implementasi SMOTE Untuk Mengatasi Imbalanced Data Pada Sentimen Analisis Sentimen Hotel Di Nusa Tenggara Barat Dengan Menggunakan Algoritma SVM
14. Schölkopf, B., and Smola, A.J. (2002). Learning with Kernels: Support Vector Machines, Regularization, Optimization, and Beyond, MIT Press.10.7551/mitpress/4175.001.0001 ↗
15. Patle, A., and Chouhan, D.S. (2013). SVM kernel functions for classification. 2013 International Conference on Advances in Technology and Engineering (ICATE), IEEE.10.1109/ICAdTE.2013.6524743 ↗
16. Bishop, C.M. (2006). Pattern Recognition and Machine Learning, Springer Science + Business Media, LLC.
17. Andriyana, Y., Suparman, Y., and Suprijadi, J. (2017). A Measure for Objects Clustering in Principal Component Analysis Biplot: A Case Study in Inter-city Buses Maintenance Cost Data. AIP Conference Proceedings, American Institute of Physics.
18. Jolliffe, I.T. (2002). Principal Component Analysis, Springer. [2nd ed.].