Quantifying and mapping uncertainty in urban sentiment prediction: a combined approach with entropy and SHAP explanations
Frontiers in Public Health · 03.06.2026 · 14
DOI: 10.3389/fpubh.2026.1796565 ↗Kurz gefasst
Fachartikel in der Zeitschrift Frontiers in Public Health, online erschienen am 03.06.2026. Verfasst von Iuria Betco und 3 weiteren Autor:innen. Beteiligte Einrichtung: Centre of Geographical Studies, Institute of Geography and Spatial Planning, University of Lisbon, Lisbon, Portugal. Hauptthemen laut MEDLINE: Social Media, Emotions. Die Arbeit wurde bisher 3-mal zitiert (Crossref) und nennt 113 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Introduction
Mental health issues have been increasing globally, possibly linked to urbaniza¬tion and related lifestyles. There’s a growing awareness that different aspects of the urban environment can influence mental health, either enabling or restrict¬ing behaviors that affect well-being. Recent studies have increasingly used social media data and machine learning techniques to assess urban well-being. However, these approaches often lack interpretability and do not explicitly account for prediction uncertainty, limiting their reliability for spatial decision-making.
Methods
This study uses sentiment labels derived from georeferenced posts on X (formerly Twitter) via the NRC Emotion Lexicon. Supervised machine learning models are trained to predict sentiment based on urban environmental variables and generate spatial predictions for Lisbon, with performance compared across K-Nearest Neighbour (KNN), Random Forest (RF), Extreme Gradient Boosting (XGBoost), and Neural Network (NN). To go beyond simple point predictions, uncertainty at each location is measured with Shannon Entropy, based on class probabilities. Post-hoc explanations using SHapley Additive exPlanations (SHAP) identify urban features most impacting sentiment predictions. Results and discussion Uncertainty maps combined with SHAP outputs show where interpretations are more reliable (low uncertainty) and where caution is needed (high uncertainty). In Lisbon 2019, SHAP identified proximity to cycling networks, fitness facilities, and NDVI as key factors influencing sentiment. This framework enhances spatial understanding of sentiment-environment relationships and offers a transparent way to identify areas where predictions are more reliable.
Schlagwörter
MeSH-Schlagwörter (MEDLINE)
Stichwörter der Autor:innen
Autor:innen und Institutionen
- Centre of Geographical Studies, Institute of Geography and Spatial Planning, University of Lisbon, Lisbon, Portugal.
- CEGOT-Centre of Studies in Geography and Spatial Planning, Faculty of Arts and Humanities of Porto, University of Porto, Porto, Portugal.
- EPIUnit ITR, Instituto de Saúde Pública da Universidade do Porto, Universidade do Porto, Porto, Portugal.
- Associate Laboratory Terra, Lisbon, Portugal.
Zitieren
APA
Betco, I., Ribeiro, A. I., Viana, C. M., & Rocha, J. (2026). Quantifying and mapping uncertainty in urban sentiment prediction: a combined approach with entropy and SHAP explanations. Frontiers in Public Health, 14. https://doi.org/10.3389/fpubh.2026.1796565
Vancouver
Betco I, Ribeiro AI, Viana CM, Rocha J. Quantifying and mapping uncertainty in urban sentiment prediction: a combined approach with entropy and SHAP explanations. Frontiers in Public Health. 2026;14. doi:10.3389/fpubh.2026.1796565
BibTeX
@article{Betco2026,
author = {Betco, Iuria and Ribeiro, Ana Isabel and Viana, Cláudia M and Rocha, Jorge},
title = {Quantifying and mapping uncertainty in urban sentiment prediction: a combined approach with entropy and SHAP explanations},
journal = {Frontiers in Public Health},
year = {2026},
volume = {14},
doi = {10.3389/fpubh.2026.1796565}
}
EUVIMED