Unraveling uneven urbanites’ expressed happiness across Chinese cities using geotagged social media data: Key predictors and future climate–happiness associations

Understanding inter-city disparities in urban expressed happiness (EH) and the key predictors for these differences is critical for advancing socially sustainable urban development. However, the key predictors for EH remain poorly understood, and existing studies have largely overlooked the potential association with future climate change. In this study, we analyzed 5,118,772 geotagged Weibo posts from 50 Chinese cities using SnowNLP for sentiment analysis, machine learning models, and LDA topic modeling to investigate the inter-city differences in EH, its underlying predictors, and the potential association with further climate change. Sentiment analysis revealed pronounced variations in EH across Chinese cities, with more positive emotions observed during weekends and holidays. Incorporating 17 potential predictors, we developed ten machine learning models. A random forest model achieved the best performance, with an R² that exceeded all other models by 1.05%-60.00% and an RMSE that was 7.41%-60.95% lower than the alternatives. SHAP analysis showed that landscape, socioeconomic, environmental, and geographic factors accounted for 24.58%-38.97%, 20.64%-40.12%, 11.96%-29.33%, and 11.47%-23.71% of the total feature importance in the EH prediction models, respectively. Among individual variables, the normalized difference vegetation index (NDVI) exhibited the highest feature importance, accounting for 18.56%-32.16% of the total importance, followed by per capita GDP, PM2.5 concentration, AQI, and temperature. Scenario-based projections suggest an association between projected climate warming and potential changes in urbanites' EH. Overall, this study identifies the key predictors associated with urbanites' EH and highlights the potential association of future climate warming with EH, providing valuable evidence for urban planning and policy interventions.

Authors

Institutions

Publication Details

Journal
PLoS ONE
Published
2026-07-16
DOI
https://doi.org/10.1371/journal.pone.0353996
Primary Topic
Urban Green Space and Health
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Unraveling uneven urbanites’ expressed happiness across Chinese cities using geotagged social media data: Key predictors and future climate–happiness associations

Lei Lü, Yan Dong, Hui Zhong, Yibiao Li
PLoS ONE
Urban Green Space and Health
article

Unraveling uneven urbanites’ expressed happiness across Chinese cities using geotagged social media data: Key predictors and future climate–happiness associations

Lei Lü, Yan Dong, Hui Zhong, Yibiao Li
article en

Abstract

Understanding inter-city disparities in urban expressed happiness (EH) and the key predictors for these differences is critical for advancing socially sustainable urban development. However, the key predictors for EH remain poorly understood, and existing studies have largely overlooked the potential association with future climate change. In this study, we analyzed 5,118,772 geotagged Weibo posts from 50 Chinese cities using SnowNLP for sentiment analysis, machine learning models, and LDA topic modeling to investigate the inter-city differences in EH, its underlying predictors, and the potential association with further climate change. Sentiment analysis revealed pronounced variations in EH across Chinese cities, with more positive emotions observed during weekends and holidays. Incorporating 17 potential predictors, we developed ten machine learning models. A random forest model achieved the best performance, with an R² that exceeded all other models by 1.05%-60.00% and an RMSE that was 7.41%-60.95% lower than the alternatives. SHAP analysis showed that landscape, socioeconomic, environmental, and geographic factors accounted for 24.58%-38.97%, 20.64%-40.12%, 11.96%-29.33%, and 11.47%-23.71% of the total feature importance in the EH prediction models, respectively. Among individual variables, the normalized difference vegetation index (NDVI) exhibited the highest feature importance, accounting for 18.56%-32.16% of the total importance, followed by per capita GDP, PM2.5 concentration, AQI, and temperature. Scenario-based projections suggest an association between projected climate warming and potential changes in urbanites' EH. Overall, this study identifies the key predictors associated with urbanites' EH and highlights the potential association of future climate warming with EH, providing valuable evidence for urban planning and policy interventions.

PLoS ONEVol. 21(7)
Shanghai Normal University (CN), Lianyungang Maternal and Children’s Hospital (CN), Shandong University of Art and Design (CN), Hunan Agricultural University (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 10%
Urban Green Space and Health
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.