Sentiment Analysis for Disaster Risk Management Using Data from the Pakistan Citizen Portal: A Case Study on Flood and Heatwave Complaints
Bilal Ilyas , Ayyoob Sharifi
International Journal of Disaster Risk Science ›› 2026, Vol. 17 ›› Issue (3) : 496 -512.
Effective disaster risk management requires bottom-up approaches that leverage citizen feedback to gain insights into disaster events on field. While much existing research in this domain focuses on social media platforms, the rich potential of government-operated digital feedback systems in capturing citizen experiences and concerns during disaster events remains underexplored. To address this gap, this study utilizes sentiment analysis to evaluate complaints submitted on the Pakistan Citizen Portal concerning flood and heat events. A hybrid methodology is adopted, combining VADER, SVM, LR, and BERT models to uncover sentiment trends and emotions expressed by citizens. Additionally, Latent Dirichlet Allocation is employed to identify key topics of concern, enhancing decision making and resource allocation. Our findings demonstrate the effectiveness of BERT in capturing sentiment trends while addressing the linguistic and cultural nuances inherent to the data. Emotions are detected based on Ekman’s six basic emotions, with sadness and anger emerging as the predominant ones. Key topics identified include property damage from floods and electricity problems related to heat events. The insights derived from this analysis provide a policy-relevant assessment of disaster risk management in Pakistan, illustrating how digital citizen feedback can inform resource allocation, preparedness planning, and communication strategies. By translating citizen sentiment into actionable insights, this study demonstrates the potential of digital platforms like the Pakistan Citizen Portal to enhance community resilience, strengthen preparedness, and support more responsive and inclusive disaster governance.
Disaster risk management / Lexicon-based methods / Machine learning algorithms / Pakistan Citizen Portal / Sentiment analysis
| [1] |
|
| [2] |
|
| [3] |
Amnesty. 2023. Amnesty international report on extreme heat and the right to health in Pakistan. London: Amnesty. |
| [4] |
Awoyemi, T., K. Ogunniyi, A. Adejumo, U. Ebili, A. Olusanya, E. Olojakpoke, and O. Shonibare. 2022. Emotional analysis of tweets about clinically extremely vulnerable COVID-19 groups. Cureus 14(9): Article e29323. |
| [5] |
|
| [6] |
Behl, S., A. Rao, S. Aggarwal, S. Chadha, and H.S. Pannu. 2021. Twitter for disaster relief through sentiment analysis for COVID-19 and natural hazard crises. International Journal of Disaster Risk Reduction 55: Article 102101. |
| [7] |
|
| [8] |
Census. 2023. Pakistan Bureau of Statistics – Census 2023. Islamabad, Pakistan: Pakistan Bureau of Statistics. https://www.pbs.gov.pk/sites/default/files/population/2023/tables/table_1_national.pdf. Accessed 17 May 2025. |
| [9] |
CFE-DM (Center for Excellence in Disaster Management and Humanitarian Assistance). 2025. Disaster management reference handbook. Hawaii: CFE-DM. |
| [10] |
Chu, M., X. Song, W., Z. Zhao, T. Chen, and Y.C. Chiang. 2024. Emotional contagion on social media and the simulation of intervention strategies after a disaster event: A modeling study. Humanities and Social Sciences Communications 11: Article 968. |
| [11] |
ClickMasters. 2024. Top social media platforms in Pakistan. https://clickmasters.pk/top-social-media-platforms-in-pakistan/. Accessed 16 Jan 2025. |
| [12] |
Contreras, D., D. Antypas, J. Hervas, S. Wilkinson, J. Camacho-Collados, P. Garnier, and C. Cornou. 2025. Post-disaster recovery assessment using sentiment analysis of English-language tweets: A tenth-anniversary case study of the 2010 Haiti Earthquake. Sustainability 17(11): Article 4967. |
| [13] |
Contreras, D., S. Wilkinson, Y. Aktas, L. Fallou, R. Bossu, and M. Landès. 2022. Intensity-based sentiment and topic analysis. The case of the 2020 Aegean earthquake. Frontiers in Built Environment 8: Article 839770. |
| [14] |
Datareportal. 2025. Digital 2025: Pakistan. https://datareportal.com/reports/digital-2025-pakistan. Accessed 2 Mar 2025. |
| [15] |
Effrosynidis, D., A. Karasakalidis, G. Sylaios, and A. Arampatzis. 2022. The climate change Twitter dataset. Expert Systems with Applications 204: Article 117541. |
| [16] |
|
| [17] |
El Barachi, M., M. AlKhatib, S. Mathew, and F. Oroumchian. 2021. A novel sentiment analysis framework for monitoring the evolving public opinion in real-time: Case study on climate change. Journal of Cleaner Production 312: Article 127820. |
| [18] |
Eligüzel, N., C. Çetinkaya, and T. Dereli. 2020. Comparison of different machine learning techniques on location extraction by utilizing geo-tagged tweets: A case study. Advanced Engineering Informatics 46: Article 101151. |
| [19] |
García, Y.E., M.E. Villa-Pérez, K. Li, X.H. Tai, L.A. Trejo, M.L. Daza-Torres, J.C. Montesinos-López, and M. Nuño. 2024. Wildfires and social media discourse: Exploring mental health and emotional wellbeing through Twitter. Frontiers in Public Health 12: Article 1349609. |
| [20] |
|
| [21] |
Han, J., Z. Zheng, X.Z. Lu, K.Y. Chen, and J.R. Lin. 2024. Enhanced earthquake impact analysis based on social media texts via large language model. International Journal of Disaster Risk Reduction 109: Article 104574. |
| [22] |
Hassan, S.Z., K. Ahmad, S. Hicks, P. Halvorsen, A. Al-Fuqaha, N. Conci, and M. Riegler. 2022. Visual sentiment analysis from disaster images in social media. Sensors 22(10): Article 3628. |
| [23] |
|
| [24] |
Ilyas, B., and A. Sharifi. 2025. A systematic review of social media-based sentiment analysis in disaster risk management. International Journal of Disaster Risk Reduction 123: Article 105487. |
| [25] |
IPCC (Intergovernmental Panel on Climate Change). 2022. Asia. In Climate change 2022: Impacts, adaptation and vulnerability. Contribution of Working Group II to the Sixth Assessment Report of the Intergovernmental Panel on Climate Change, ed. H.-O. Pörtner, D.C. Roberts, M. Tignor, E.S. Poloczanska, K. Mintenbeck, A. Alegría, M. Craig, S. Langsdorf, et al., 1457–1579. Cambridge, UK: Cambridge University Press. |
| [26] |
Nanditha, J.S., A.P. Kushwaha, R. Singh, I. Malik, H. Solanki, D. Singh Chuphal, S. Dangar, S.S. Mahto, et al. 2023. The Pakistan flood of August 2022: Causes and implications. Earth’s Future 11(3): Article e2022EF003230. |
| [27] |
|
| [28] |
|
| [29] |
|
| [30] |
|
| [31] |
|
| [32] |
|
| [33] |
Li, L., Z. Ma, and T. Cao. 2021. Data-driven investigations of using social media to aid evacuations amid Western United States wildfire season. Fire Safety Journal 126: Article 103480. |
| [34] |
Li, L., Z. Wang, Q. Zhang, and H. Wen. 2020. Effect of anger, anxiety, and sadness on the propagation scale of social media posts after natural disasters. Information Processing & Management 57(6): Article 102313. |
| [35] |
Lydiri, M., E.M. Yousef, Y. Habouz, and M. Fakir. 2022. A performant deep learning model for sentiment analysis of climate change. Social Network Analysis and Mining 13: Article 8. |
| [36] |
NDMA (National Disaster Management Authority). 2023. Midterm review of the implementation of the Sendai Framework for Disaster Risk Reduction 2015–2030. Islamabad, Pakistan: NDMA. |
| [37] |
Pang, B., L. Lee, and S. Vaithyanathan. 2002. Thumbs up? Sentiment classification using machine learning techniques. In Proceedings of the ACL-02 Conference on Empirical Methods in Natural Language Processing, 6–7 July 2002, Stroudsburg, PA, USA, 79–86. |
| [38] |
Peng, X., Y. Li, Y. Si, L. Xu, X. Liu, D. Li, and Y. Liu. 2022. A social sensing approach for everyday urban problem-handling with the 12345-complaint hotline data. Computers, Environment and Urban Systems 94: Article 101790. |
| [39] |
|
| [40] |
|
| [41] |
Sadiq, A.M., H. Ahn, and Y.B. Choi. 2020. Human sentiment and activity recognition in disaster situations using social media images based on deep learning. Sensors 20(24): Article 7115. |
| [42] |
|
| [43] |
|
| [44] |
Shah, A.M., and N. Schweiggart. 2023. #BoycottMurree campaign on Twitter: Monitoring public response to the negative destination events during a crisis. International Journal of Disaster Risk Reduction 92: Article 103734. |
| [45] |
Shapouri, S., and S. Soleymani. 2024. Flood of techniques and drought of theories: Emotion mining in disasters. arXiv:2407.05219. https://doi.org/10.48550/arXiv.2407.05219. |
| [46] |
|
| [47] |
Singh, N., N. Roy, and A. Gangopadhyay. 2019. Analyzing the emotions of crowd for improving the emergency response services. Pervasive and Mobile Computing 58: Article 101018. |
| [48] |
Soomro, S.e.h., M. Boota, X. Shi, G.e.Z. Soomro, Y. Li, M. Tayyab, C. Hu, C. Liu, et al. 2024a. Appraisal of urban waterlogging and extent damage situation after the devastating flood. Water Resources Management 38: 4911–4931. |
| [49] |
Soomro, S.e.h., M.W. Boota, H.M. Zwain, G.e.Z. Soomro, X. Shi, J. Guo, Y. Li, M. Tayyab, et al. 2024b. How effective is Twitter (X) social media data for urban flood management? Journal of Hydrology 634: Article 131129. |
| [50] |
|
| [51] |
Sun, C., X. Qiu, Y. Xu, and X. Huang. 2019. How to fine-tune BERT for text classification? arXiv:1905.05583. https://doi.org/10.48550/arXiv.1905.05583. |
| [52] |
UN-Habitat (United Nations Human Settlements Programme). 2023. Pakistan country report 2023. Nairobi, Kenya: UN-Habitat. |
| [53] |
UNDP (United Nations Development Programme). Pakistan floods 2022: Post-disaster needs assessment (PDNA), 2022. New York, UNDP |
| [54] |
UNDRR (United Nations Office for Disaster Risk Reduction). Hazard definition and classification review: Technical report, 2020. Geneva, UNDRR |
| [55] |
UNDRR (United Nations Office for Disaster Risk Reduction). GAR special report, 2024. Geneva, UNDRR |
| [56] |
Wahid, J.A., L. Shi, Y. Gao, B. Yang, L. Wei, Y. Tao, S. Hussain, M. Ayoub, and I. Yagoub. 2022. Topic2Labels: A framework to annotate and classify the social media data through LDA topics and deep learning models for crisis response. Expert Systems with Applications 195: Article 116562. |
| [57] |
Wang, S., Z. Li, Y. Wang, and Q. Zhang. 2019. Machine learning methods to predict social media disaster rumor refuters. International Journal of Environmental Research and Public Health 16: Article 1452. |
| [58] |
|
| [59] |
Wang, W., X. Zhu, P. Lu, Y. Zhao, Y. Chen, and S. Zhang. 2024. Spatio-temporal evolution of public opinion on urban flooding: Case study of the 7.20 Henan extreme flood event. International Journal of Disaster Risk Reduction 100: Article 104175. |
| [60] |
Xiong, J., Y. Hswen, and J. Naslund. 2020. Digital surveillance for monitoring environmental health threats: A case study capturing public opinion from Twitter about the 2019 Chennai water crisis. International Journal of Environmental Research and Public Health 17: Article 5077. |
| [61] |
Xu, M., J. Wang, Z. Qu, X. Min, and Y. Sun. 2024. A new perspective to understand public response to the Typhoon Doksuri from coastal and inland regions. Heliyon 10(17): Article e36862. |
| [62] |
Yan, Y., J. Chen, and Z. Wang. 2020. Mining public sentiments and perspectives from geotagged social media data for appraising the post-earthquake recovery of tourism destinations. Applied Geography 123: Article 102306. |
| [63] |
Yao, F., and Y. Wang. 2020. Domain-specific sentiment analysis for tweets during hurricanes (DSSA-H): A domain-adversarial neural-network-based approach. Computers, Environment and Urban Systems 83: Article 101522. |
| [64] |
Yuan, F., M. Li, R. Liu, W. Zhai, and B. Qi. 2021. Social media for enhanced understanding of disaster resilience during Hurricane Florence. International Journal of Information Management 57: Article 102289. |
| [65] |
Zander, K.K., S.T. Garnett, R. Ogie, M. Alazab, and D. Nguyen. 2023. Trends in bushfire related tweets during the Australian “Black Summer” of 2019/20. Forest Ecology and Management 545: Article 121274. |
| [66] |
Zhang, M., Q. Huang, and H. Liu. 2022. A multimodal data analysis approach to social media during natural disasters. Sustainability 14(9): Article 5536. |
| [67] |
Zhang, X., and Y. Ma. 2023. An ALBERT-based TextCNN-Hatt hybrid model enhanced with topic knowledge for sentiment analysis of sudden-onset disasters. Engineering Applications of Artificial Intelligence 123: Article 106136. |
The Author(s)
/
| 〈 |
|
〉 |