SENTIMENT ANALYSIS OF PUBLIC PERSPECTIVES ON PM2.5 POLLUTION IN BANGKOK AND METROPOLITAN AREAS
Keywords:
Machine Learning, PM2.5 Pollution, Sentiment Analysis, Public Opinion, Social MediaAbstract
This study analyzes public opinions on PM2.5 pollution in Bangkok and its surrounding metropolitan areas using data collected from the Thai-language online discussion platform Pantip.com. A total of 390 user-generated comments were collected and processed using Natural Language Processing (NLP) techniques, including Thai word tokenization, text vectorization, and word embedding. Three machine learning algorithms—Naïve Bayes, Logistic Regression, and Support Vector Machine (SVM)—were trained and evaluated for sentiment classification into positive, negative, and neutral categories. Among the evaluated models, SVM achieved the best overall performance, with an accuracy of 88% and an F1-score of 0.86.
The sentiment distribution reported in this study was generated using the SVM model. Of the 390 collected comments, 52.1% were classified as negative, 30.0% as positive, and 17.9% as neutral. These results represent the model predictions on the collected dataset and should be interpreted within the scope of this study.
The findings suggest that sentiment analysis of social media data can provide timely insights into public perceptions of PM2.5 pollution. Such information may serve as preliminary evidence to support the improvement of environmental communication strategies and assist policymakers in developing more responsive environmental policies.
References
Ali, A. M., Shamsudin, M. F., Ali, A. M., Ishak, M. F., & Esa, S. A. (2021). The Use of Social Media Application as a Factor Influencing the Students' Decision-Making to Enroll at Private Higher Education Institutions using SmartPLS. Journal of Information Technology Management, 13(3), 187–19.
Anderson, T., Sarkar, S., & Kelley, R. (2024). Analyzing public sentiment on sustainability: A comprehensive review and application of sentiment analysis techniques.” Natural Language Processing Journal, 3(1), 12–27.
Bojanowski, P., Grave, E., Joulin, A., & Mikolov, T. (2017). Enriching word vectors with subword information, Transactions of the Association of Computational Linguistics, 5, 135–146.
Champion, S., & Skinner, C. (2023). The health belief model," in Health Behavior and Health Education: Theory, Research, and Practice, 4th ed., San Francisco, CA: Jossey-Bass, 45–65.
Chompunuch, S., Rattana, P., & Limsirorat, K. (2021). PM2.5 public perception via Facebook: Sentiment classification using Naïve Bayes, J. Info. Tech. & Innovation, 10(3), 45–54.
Chulabhorn Research Institute, Health impacts from PM2.5 exposure, Bangkok, Thailand, 2024. [Online]. Available: https://www.cri.or.th.
Cortes, C., & Vapnik, V. (1995). Support-vector networks, Machine Learning, 20(3), 273–297.
Effing, J., Van Hillegersberg, & Huibers, T. (2011). Social media and political participation: Are Facebook, Twitter and YouTube democratizing our political systems?, Electronic Participa tion (ePart 2011), Lecture Notes in Computer Science, 6847, Springer, Berlin, Heidelberg, 25–35, doi: 10.1007/978-3-642-23333-3_3.
Homchuangsub, K., & Tongngam, S. (2023). The credibility of the information on the website Pantip.com that impacts the decision to purchase products: Case study—Beauty web board, Grad. Sch. Appl. Stat., Nat. Inst. Dev. Admin, Bangkok, Thailand.
Hosmer, D. W., Lemeshow, S., & Sturdivant, R. X. (2013). Applied Logistic Regression, 3rd ed. Hoboken, NJ, USA: Wiley.
Hounkpevi, A. (2020). Sentiment analysis to inform about the SDGs: Immigration in Colombia and Costa Rica, Cepei, Bogotá, Colombia, Technical Brief. [Online]. Available: https://cepei.org.
Kaewphet, S. (2021). Perception and response behaviors towards particulate matter 2.5 microns (PM2.5): A case study of motorcycle taxi drivers in Din Daeng district, Bangkok, M.S. thesis, Faculty of Political Science, Chulalongkorn University, Bangkok, Thailand.
Kantaros, N., Santivong, A., Rungsang, A., & Chumphonwong, T. (2021). Participatory governance: From the concept to the public sector development in Thailand 4.0, Journal of Suvarnabhumi Institute of Technology (in Thai), 7(2), 130–144. [Online]. Available: https://so04.tci-thaijo.org/index.php/svittj/ article/view/203232.
Kothandan, J., & Murugesan, P. (2021). ML based social media data emotion analyzer and sentiment classifier with enriched preprocessor, Journal of Information Technology Management, 13, Special Issue, 6–20.
Kularbphettong, K., Roonrakwit, P., & Boonseng, C. (2024). Sentiment analysis of the awareness of vironmental sustainability. Edelweiss Applied Science and Technology, 8(3), 145–155.
Leesa-nguansuk, S. (2016). Pantip to be knowledge source: Site to bring in experts in various fields,
Bangkok Post. [Online]. Available:https://www.bangkokpost.com/business/general/1108297/ pantip-to-be-knowledge-source.
Ligthart, J., Catal, R., & Tekinerdogan, B. (2021). Systematic reviews in sentiment analysis: A tertiary study, Artificial Intelligence Review, 54, 4997–5053.
Lowphanich, P. (2020). Thai2Fit: Transfer learning approach for Thai NLP, in Proc. 1st Workshop on NLP for South and Southeast Asian Languages.
Manaskasemsak, B., Puttitanun, S., Tantisuwankul, J., & Rungsawang, A. (2022). Personalized thread commendation on Thai Internet forum, in Proc. 2022 Assoc. for Computing Machinery. 267–272. [Online]. Available: https://doi.org/10.1145/35075483507589.
McCallum, A., & Nigam, K. (1998). “A comparison of event models for naive Bayes text classification,” in AAAI-98 Workshop on Learning for Text Categorization.
McDermott, J. D., Zhang, F., & Sakamoto, M. (2024). Evolution of international sentiment towards climate change on Twitter, Commun. Earth Environ, 5, article 163.
Mohammadiani, R. P., Abbasimehrb, H., & Malikc, Z. (2022). Social media value creation practices and interactivity of electronic word of mouth systems, Journal of Information Technology Management, 14(3), 73–91.
Mueller, W., Vardoulakis, S., & Steinle, S. et al. (2021). A health impact assessment of long-term exposure to particulate air pollution in Thailand, Environmental Research Letters, 16(5), 055018.
Ojo, T., & Mellouli, J. (2018). Deploying governance through digital transformation: A systematic literature review, Government Information Quarterly, 35(4).
Permana, D., Setiawan, R., & Rahmatullah, A. F. (2024). Sentiment analysis of air pollution on social media: Systematic literature review, Sistemasi, 13(1), 65–76.
Phatthiyaphaibun, S., Inrut, T., & Khamhaeng, S. (2020). Thai natural language processing toolkit and text classification, International journal of advanced computer science and applications, 11(9), 592–598.
Poapongsakorn, N., Pantakua, K., & Ratchakom, S. (2023). Challenges in tackling PM2.5 crisis, Bangkok Post. [Online]. Available:https://www.bangkokpost.com/opinion/opinion/2548171
Polsuwan, T. (2021). Forecasting PM2.5 using hybrid ARIMA-LSTM model in Bangkok area, M.S. thesis, Dept. Comp. Sci., Dhurakij Pundit Univ., Bangkok, Thailand. [Online]. Available: https://libdoc. dpu.ac.th
Praphan, T., & Komintarachat, T. (2021). Sentiment dashboard for PM2.5 policy decision-making, Proceedings of the 18th National Conference on Computing and Information Technology, 2021, 121–127.
Ratanachai, A., & Putthacharoen, S. (2021). Improving sentiment classification for Thai texts using Word2Vec and SVM, IEEE Access,9, 112345–112355.
Saengthong, T. (2023). Policy recommendations for mitigating PM2.5 impact in Bangkok, J. Humanities Soc.Sci. Mahasarakham university, 41(2), 221–237.
Sae-Oueng, A., Kerdthaisong, K., Phasook, P., Chuangkrud, P., & Kongyoung, S. (2023). Pantip multi-turn datasets generating from Thai large social platform forum using sentence similarity techniques, in Proc. Int. Conf. Artif. Intell. Data Sci. (AiDAS), Thailand.
Salton, G., & Buckley, C. (1988). Term-weighting approaches in automatic text retrieval, Information Processing & Management, 24(5), 513–523.A.
Seki, K. (2023). Analyzing public opinion on Twitter using large language models for community-
driven policy design, in Proc. Int. Conf. AI for Social Good (AI4SG), Tokyo, Japan, 112–119.
Siriwan, P., Rattanawan, K., & Chokchai Charoen, T. (2022). Topic modeling of Pantip data related to PM2.5issues, J. Digital Society and Data Science, 6(2), 93–104.
Strategy& PwC. (2015). The rise of content democratization in Southeast Asia, Strategy& Southeast Asia. [Online]. Available: https://www.strategyand.pwc.com/gx/en/insights/archive/content-emocratization/ content-democratization.pdf.
Sukcharoen, W., Tangaromsuk, P., Sontiatcha ra, M., Waithayakul, K., Savedkairop, C., Poopong pet, J., Kengkoom, R., Bhubhanil, S., & Lapmanee, S. (2020). The Study on Thailand’s Particulate Matter 2.5 (PM2.5) Management in Accordance with World Health Organization (WHO) Guidelines. Vajira Medical Journal: Journal of Urban Medicine, 64(5), 345–356.
Tansathien, K. (2022). Public attitudes toward government measures to resolve PM2.5 issues in Bangkok, Rajabhat Buriram Research Journal, 15(1), 50–61.
Verma, R. (2023). Sentiment Analysis as a Bridge for Civic Engagement: Connecting Society and Policy through Digital Dialogue, Int. J. Public Adm. Digit. Age, 5(2), 45–60.
Wongsawat, P., Jindaluang, R., & Preechadi rek, S. (2022). Sentiment analysis of PM2.5-related tweets in Thailand, In Proceedings of the International Conference on Data Mining and Applications, 100–107.
World Health Organization (WHO). (2021). WHO global air quality guidelines: particulate matter (PM2.5 and PM10), ozone, nitrogen dioxide, sulfur dioxide and carbon monoxide, Geneva, Switzerland. [Online]. Available: https://www.who.int/publications/i/item/9789240034228
Yar, S., Virtanen, L., & Ritala, P. (2022). Artificial intelligence in public sector service delivery: A systematic literature review and research agenda government information quarterly, 39(1), 101650. https://doi.org/10. 1016/j.giq. 2021. 101650
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 ชนนิกานต์ หลวงพิทักษ์ , พรสิริ ชาติปรีชา , ชุติธารรัฐ อุตมะสิริเสนี

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