Effects of Streetscapes on Residents’ Sentiments During Heatwaves in Shanghai: Evidence from Multi-Source Data and Interpretable Machine Learning for Urban Sustainability
Abstract
1. Introduction
2. Data and Methodology
2.1. Study Area
2.2. Methodological Framework
2.3. Data Collection and Processing
2.4. Selection of Variables
2.5. Research Methods
2.5.1. Mask2Former-Based Framework for Streetscape Element Extraction
2.5.2. Matlab-Based Calculation of Visual Entropy and Color Complexity
2.5.3. ERNIE 3.0-Based Method for Sentiment Index Calculation
2.5.4. Global Moran’s I
2.5.5. Interpretability Analysis of the XGBoost Model Using SHAP
2.5.6. GeoSHAPLEY-Based Interpretability Analysis
3. Results
3.1. Spatial Distribution of Landscape Environment and Sentiment Index
3.2. Spatial Patterns of Landscape Environmental Factors
3.3. Results of Global Moran’s I, Z-Score, and p-Value
3.4. SHAP Feature Importance Analysis
3.5. SHAP Heatmap and Waterfall Analysis
3.6. SHAP Partial Dependence Plots Analysis
- (1)
- NDVI exhibited an unstable positive effect, improving sentiments significantly at low-to-medium values, but showing greater fluctuations at higher levels, suggesting diminishing marginal benefits of greenery beyond a threshold. AR had limited effects at low levels but began contributing positively at around 0.08–0.10. However, very high values were rare, making the effect more uncertain. OP showed a gentle slope overall and became increasingly positive beyond 0.32, suggesting that greater openness supports more positive sentimental experiences during heatwaves. However, this effect likely reflects a balance between visual preference and thermal stress, as higher openness improves spatial perception but also increases solar exposure. GR showed strengthening negative effects after 0.20, indicating that excessive greenery may lead to shading or stuffiness, thereby weakening its positive influence on sentimental well-being. This is likely due to the discomfort caused by dense vegetation, reducing airflow and contributing to an oppressive environment.
- (2)
- FAR displayed an almost monotonic negative effect, with high FAR strongly associated with negative sentiments. BCR had limited effects at low levels but turned positive beyond 0.07, suggesting that moderately continuous street interfaces benefit sentiments. RND exhibited a clear threshold effect, being strongly associated with positive sentiments between 3.13 and 29.64, but shifting rapidly toward negative contributions beyond this range. PD showed markedly stronger negative effects beyond about 0.31, indicating that increased impervious surfaces are detrimental to residents’ sentiments during heatwaves. LUM became increasingly negative with higher values.
- (3)
- VE exhibited a typical U-shaped relationship: slightly negative at low values, lowest at mid-range, and turning positive beyond about 4–5. Contributions became more pronounced after 7.05, suggesting that moderate interface complexity helps improve sentiments. CC showed a similar U-shaped relationship to VE, with limited effects at low values and increasingly positive contributions at higher values, though with greater volatility. EN had generally weak effects, slightly leaning positive, and was more coupled with other spatial form factors.
3.7. GeoSHAPLEY Based Spatial Contributions and Location Dependence
4. Discussion
4.1. New Insights into Sentimental Responses to Streetscape Environments During Heatwaves
4.2. Sustainable Strategies for Streetscape Environments
4.2.1. Improving Streetscape Connectivity
4.2.2. Real-Time Environmental Assessment and Adaptive Strategies
4.2.3. Bottom-Up Street Planning Centered on Residents’ Perceptions
4.3. Research Contributions
- (1)
- The study examines how street environments are linked with residents’ perceptions and sentimental responses under extreme heat, and provides micro-scale analyses of how sentiments correlate with specific landscape elements. The findings demonstrate significant shifts in residents’ perceptions of landscape indicators and visual quality during heatwaves, overcoming the limitations of previous studies that largely focused on macro-level climate effects while neglecting the micro-scale coupling between space and sentiments.
- (2)
- By adopting a multimodal analytical approach, the study integrates user-generated content, meteorological data, advanced machine learning models (ERNIE, Mask2Former, XGBoost), and geospatial methods to propose a novel quantitative framework for evaluating streetscape perception. By incorporating SHAP and GeoSHAPLEY, the analysis reveals the contributions and interactions of different indicators, as well as nonlinear effects across spatial contexts. Unlike traditional studies relying on surveys or linear models, this framework captures both spatiotemporal heterogeneity and variable interactions, significantly improving the precision and interpretability of research on the coupling between micro-scale urban landscapes and residents’ sentiments.
- (3)
- The findings provide practical guidance for heat-adaptive street design and sustainable urban governance. By identifying sentimentally vulnerable areas and key landscape elements, the study proposes optimization strategies centered on connectivity, real-time monitoring, and resident perception. These strategies—ranging from enhancing greenery and improving waterfront accessibility to controlling paving intensity and deploying micro-scale interventions—help improve comfort and sentimental experiences during heatwaves. They also offer empirical support for building dynamic regulatory and fine-grained governance systems, and can be extended to monitor the impacts of climate change on mental health, informing sustainable urban transitions and adaptive landscape planning.
4.4. Research Limitations and Further Directions
5. Conclusions
- (1)
- During heatwaves, the average sentiment index was 0.583, with 58% positive and 42% negative texts, indicating an overall positive tendency but pronounced spatial heterogeneity. Moran’s I revealed a strong clustering effect (I = 0.888, p < 0.001). The central city exhibited a patchwork of high and low values, with negative clusters in dense urban cores, while waterfronts and green-rich areas tended to concentrate positive sentiments, underscoring the association of streetscapes against heatwave-induced negative perceptions. These findings highlight the importance of landscape and environmental quality in shaping sentimental responses during extreme heat.
- (2)
- Global SHAP analysis identified NDVI (0.024), visual entropy (0.022), FAR (0.021), RND (0.020), and AR (0.020) as the most influential factors. Partial dependence results revealed clear threshold effects: NDVI improved sentiment in low-to-medium ranges but showed diminishing returns at higher values; AR became positive at approximately 0.08–0.10; OP values above 0.32 enhanced positive experiences, whereas GR above 0.20 tended to have negative effects due to shading and stuffiness. RND was optimal within medium ranges but negative when excessive; FAR and PD were generally associated with negative sentiments. Both VE and CC followed U-shaped patterns, with moderate complexity in interface information improving sentimental experiences. This suggests that carefully balancing greenness, openness, and built environment features is crucial for enhancing sentimental well-being.
- (3)
- GeoSHAPLEY analysis revealed pronounced spatial dependence. Waterfront areas (e.g., Chongming, southeastern Pudong, and the banks of the Huangpu and Suzhou Rivers) showed stable positive contributions, indicating the association of continuous water–green resources. In contrast, the urban area displayed negative effects due to high FAR and extensive paved surfaces. Peripheral zones benefited from moderate openness, continuous interfaces, and high-quality greenery, with particularly strong effects in the southwestern corridor. Conversely, excessive LUM, overly dense RND, and hardened surfaces in core areas were closely associated with negative sentiments. These findings suggest that spatial variation in sentimental responses to streetscapes requires tailored urban planning strategies: prioritizing density reduction and surface de-hardening in the urban area, enhancing quality and greenery in waterfront and peripheral areas, and improving positive experiences in urban–rural interfaces through road network and interface optimization.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Klingelhöfer, D.; Braun, M.; Brüggmann, D.; Groneberg, D.A. Heatwaves: Does Global Research Reflect the Growing Threat in the Light of Climate Change? Glob. Health 2023, 19, 56. [Google Scholar] [CrossRef]
- Jay, O.; Capon, A.; Berry, P.; Broderick, C.; de Dear, R.; Havenith, G.; Honda, Y.; Kovats, R.S.; Ma, W.; Malik, A.; et al. Reducing the Health Effects of Hot Weather and Heat Extremes: From Personal Cooling Strategies to Green Cities. Lancet 2021, 398, 709–724. [Google Scholar] [CrossRef]
- Gasparrini, A.; Guo, Y.; Hashizume, M.; Lavigne, E.; Zanobetti, A.; Schwartz, J.; Tobias, A.; Tong, S.; Rocklöv, J.; Forsberg, B.; et al. Mortality Risk Attributable to High and Low Ambient Temperature: A Multicountry Observational Study. Lancet 2015, 386, 369–375. [Google Scholar] [CrossRef]
- Li, Z.; Fan, Y.; Su, H.; Xu, Z.; Ho, H.C.; Zheng, H.; Tao, J.; Zhang, Y.; Hu, K.; Hossain, M.Z.; et al. The 2022 Summer Record-Breaking Heatwave and Health Information-Seeking Behaviours: An Infodemiology Study in Mainland China. BMJ Glob. Health 2023, 8, e013231. [Google Scholar] [CrossRef]
- Zhang, D.; Huang, Y.; Zhou, B.; Wang, H.; Sun, B. Who Is the Major Player for 2022 China Extreme Heat Wave? Western Pacific Subtropical High or South Asian High? Weather Clim. Extrem. 2024, 43, 100640. [Google Scholar] [CrossRef]
- He, H.; Sun, R. Sentiment Variations Affected by Urban Temperature and Landscape across China. Cities 2024, 149, 104933. [Google Scholar] [CrossRef]
- Zhang, T.; Wang, L.; Zhang, Y.; Hu, Y.; Zhang, W. Assessing the Nonlinear Impact of Green Space Exposure on Psychological Stress Perception Using Machine Learning and Street View Images. Front. Public Health 2024, 12, 1402536. [Google Scholar] [CrossRef]
- Lachapelle, J.A.; Scott Krayenhoff, E.; Middel, A.; Coseo, P.; Warland, J. Maximizing the Pedestrian Radiative Cooling Benefit per Street Tree. Landsc. Urban Plan. 2023, 230, 104608. [Google Scholar] [CrossRef]
- Nik, V.M.; Perera, A.T.D.; Chen, D. Towards Climate Resilient Urban Energy Systems: A Review. Natl. Sci. Rev. 2021, 8, nwaa134. [Google Scholar] [CrossRef] [PubMed]
- Wang, J.; Guetta-Jeanrenaud, N.; Palacios, J.; Fan, Y.; Kakkar, D.; Obradovich, N.; Zheng, S. Unequal Impacts of Rising Temperatures on Global Human Sentiment. One Earth 2025, 8, 101422. [Google Scholar] [CrossRef]
- Wang, J.; Obradovich, N.; Zheng, S. A 43-Million-Person Investigation into Weather and Expressed Sentiment in a Changing Climate. One Earth 2020, 2, 568–577. [Google Scholar] [CrossRef]
- Baylis, P.; Obradovich, N.; Kryvasheyeu, Y.; Chen, H.; Coviello, L.; Moro, E.; Cebrian, M.; Fowler, J.H. Weather Impacts Expressed Sentiment. PLoS ONE 2018, 13, e0195750. [Google Scholar] [CrossRef] [PubMed]
- Noelke, C.; McGovern, M.; Corsi, D.J.; Jimenez, M.P.; Stern, A.; Wing, I.S.; Berkman, L. Increasing Ambient Temperature Reduces Emotional Well-Being. Environ. Res. 2016, 151, 124–129. [Google Scholar] [CrossRef]
- Chen, H.; Zhao, L.; Dong, W.; Cheng, L.; Cai, W.; Yang, J.; Bao, J.; Liang, X.-Z.; Hajat, S.; Gong, P.; et al. Spatiotemporal Variation of Mortality Burden Attributable to Heatwaves in China, 1979–2020. Sci. Bull. 2022, 67, 1340–1344. [Google Scholar] [CrossRef]
- Guo, R.; Guo, F.; Dong, J.; Wang, Z.; Zheng, R.; Zhang, H. Finer-Scale Urban Health Risk Assessment Based on the Interaction Perspective of Thermal Radiation, Human, Activity, and Space. Front. Archit. Res. 2024, 13, 682–697. [Google Scholar] [CrossRef]
- Hass, A.L.; Runkle, J.D.; Sugg, M.M. The Driving Influences of Human Perception to Extreme Heat: A Scoping Review. Environ. Res. 2021, 197, 111173. [Google Scholar] [CrossRef]
- Zhan, Z.; Jia, L.; Wang, P.; Huang, L. Impact of Building Morphology on Outdoor Thermal Comfort in Summer Afternoons: A Case Study in Nanjing, China. Urban Clim. 2024, 56, 102064. [Google Scholar] [CrossRef]
- Rui, J.; Xu, Y.; Cai, C.; Li, X. Leveraging Large Language Models for Tourism Research Based on 5D Framework: A Collaborative Analysis of Tourist Sentiments and Spatial Features. Tour. Manag. 2025, 108, 105115. [Google Scholar] [CrossRef]
- Zhu, J.; Wang, S.; Ma, H.; Shan, T.; Xu, D.; Sun, F. Nonlinear Effect of Urban Visual Environment on Residents’ Psychological Perception—An Analysis Based on XGBoost and SHAP Interpretation Model. City Environ. Interact. 2025, 27, 100202. [Google Scholar] [CrossRef]
- Reichstein, M.; Camps-Valls, G.; Stevens, B.; Jung, M.; Denzler, J.; Carvalhais, N. Prabhat Deep Learning and Process Understanding for Data-Driven Earth System Science. Nature 2019, 566, 195–204. [Google Scholar] [CrossRef]
- Hu, Y.; Dai, Z.; Guldmann, J.-M. Modeling the Impact of 2D/3D Urban Indicators on the Urban Heat Island over Different Seasons: A Boosted Regression Tree Approach. J. Environ. Manag. 2020, 266, 110424. [Google Scholar] [CrossRef]
- Hong, T.; Yim, S.H.L.; Heo, Y. Interpreting Complex Relationships between Urban and Meteorological Factors and Street-Level Urban Heat Islands: Application of Random Forest and SHAP Method. Sustain. Cities Soc. 2025, 126, 106353. [Google Scholar] [CrossRef]
- Li, Z. Extracting Spatial Effects from Machine Learning Model Using Local Interpretation Method: An Example of SHAP and XGBoost. Comput. Environ. Urban Syst. 2022, 96, 101845. [Google Scholar] [CrossRef]
- Jung, J.; Uejio, C.K. Social Media Responses to Heat Waves. Int. J. Biometeorol. 2017, 61, 1247–1260. [Google Scholar] [CrossRef] [PubMed]
- Wang, J.; Meng, B.; Pei, T.; Du, Y.; Zhang, J.; Chen, S.; Tian, B.; Zhi, G. Mapping the Exposure and Sensitivity to Heat Wave Events in China’s Megacities. Sci. Total Environ. 2021, 755, 142734. [Google Scholar] [CrossRef] [PubMed]
- Zander, K.K.; Rieskamp, J.; Mirbabaie, M.; Alazab, M.; Nguyen, D. Responses to Heat Waves: What Can Twitter Data Tell Us? Nat. Hazards 2023, 116, 3547–3564. [Google Scholar] [CrossRef]
- Zhou, W.; Zhou, F.; Zhuang, G. Megacity Pathways in China under the Dual Carbon Goal: The Case of Shanghai. Chin. J. Popul. Resour. Environ. 2024, 22, 241–249. [Google Scholar] [CrossRef]
- Zeng, P.; Zong, C.; Duan, Z.; Wei, X. Exploring the Spatial Interplay between Built-up Environments and Surface Urban Heat Island Phenomena in the Main Urban Area of Shanghai. Energy Build. 2023, 301, 113739. [Google Scholar] [CrossRef]
- Guo, Y.; Shen, X.; Qin, Y.; Che, S.; Wei, M.; Wang, L. Mitigating and Adapting to Extreme Climate: Developing a Novel Assessment Model for Unexplained Hot-Humid Exposure in Metropolitan Areas. Sustain. Cities Soc. 2025, 127, 106432. [Google Scholar] [CrossRef]
- Zhang, J.; Jin, G.; Liu, Y.; Xue, X. Attention and Sentiment of Chinese Public toward Rural Landscape Based on Sina Weibo. Sci. Rep. 2024, 14, 13724. [Google Scholar] [CrossRef]
- Rui, J. Exploring the Association between the Settlement Environment and Residents’ Positive Sentiments in Urban Villages and Formal Settlements in Shenzhen. Sustain. Cities Soc. 2023, 98, 104851. [Google Scholar] [CrossRef]
- Yi, L.; Hart, J.E.; Roscoe, C.; Mehta, U.V.; Pescador Jimenez, M.; Lin, P.-I.D.; Suel, E.; Hystad, P.; Hankey, S.; Zhang, W.; et al. Greenspace and Depression Incidence in the US-Based Nationwide Nurses’ Health Study II: A Deep Learning Analysis of Street-View Imagery. Environ. Int. 2025, 198, 109429. [Google Scholar] [CrossRef] [PubMed]
- Zhang, Y.; Balzter, H.; Li, Y. Influence of Impervious Surface Area and Fractional Vegetation Cover on Seasonal Urban Surface Heating/Cooling Rates. Remote Sens. 2021, 13, 1263. [Google Scholar] [CrossRef]
- Zhang, Y.; Wu, T.; Yu, H.; Fu, J.; Xu, J.; Liu, L.; Tang, C.; Li, Z. Green Spaces Exposure and the Risk of Common Psychiatric Disorders: A Meta-Analysis. SSM-Popul. Health 2024, 25, 101630. [Google Scholar] [CrossRef]
- Song, J.; Chen, W.; Zhang, J.; Huang, K.; Hou, B.; Prishchepov, A.V. Effects of Building Density on Land Surface Temperature in China: Spatial Patterns and Determinants. Landsc. Urban Plan. 2020, 198, 103794. [Google Scholar] [CrossRef]
- Rui, J.; Li, X. Decoding Vibrant Neighborhoods: Disparities between Formal Neighborhoods and Urban Villages in Eye-Level Perceptions and Physical Environment. Sustain. Cities Soc. 2024, 101, 105122. [Google Scholar] [CrossRef]
- Chen, Z.; Ye, C.; Yang, H.; Ye, P.; Xie, Y.; Ding, Z. Exploring the Impact of Seasonal Forest Landscapes on Tourist Emotions Using Machine Learning. Ecol. Indic. 2024, 163, 112115. [Google Scholar] [CrossRef]
- Zhu, X.; Su, W.; Lu, L.; Li, B.; Wang, X.; Dai, J. Deformable DETR: Deformable Transformers for End-to-End Object Detection. In Proceedings of the International Conference on Learning Representations 2021, Vienna, Austria, 4 May 2021. [Google Scholar]
- Sánchez, I.A.V.; Labib, S.M. Accessing Eye-Level Greenness Visibility from Open-Source Street View Images: A Methodological Development and Implementation in Multi-City and Multi-Country Contexts. Sustain. Cities Soc. 2024, 103, 105262. [Google Scholar] [CrossRef]
- Cheng, B.; Misra, I.; Schwing, A.G.; Kirillov, A.; Girdhar, R. Masked-Attention Mask Transformer for Universal Image Segmentation. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA, 18–24 June 2022; IEEE: Piscataway, NJ, USA; pp. 1280–1289. [Google Scholar]
- Sun, Y.; Wang, S.; Feng, S.; Ding, S.; Pang, C.; Shang, J.; Liu, J.; Chen, X.; Zhao, Y.; Lu, Y.; et al. ERNIE 3.0: Large-Scale Knowledge Enhanced Pre-Training for Language Understanding and Generation. arXiv 2021, arXiv:2107.02137. [Google Scholar]
- Moran, P.A.P. Notes on Continuous Stochastic Phenomena. Biometrika 1950, 37, 17–23. [Google Scholar] [CrossRef]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
- Lundberg, S.M.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. In Advances in Neural Information Processing Systems, Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
- Li, Z. GeoShapley: A Game Theory Approach to Measuring Spatial Effects in Machine Learning Models. Ann. Am. Assoc. Geogr. 2024, 114, 1365–1385. [Google Scholar] [CrossRef]
- Liu, W.; Li, D.; Meng, Y.; Guo, C. The Relationship between Emotional Perception and High-Density Built Environment Based on Social Media Data: Evidence from Spatial Analyses in Wuhan. Land 2024, 13, 294. [Google Scholar] [CrossRef]
- Li, X.; Lin, K.; Shu, Y.; Lin, X. Comparison of the Influences of Different Ventilation Corridor Forms on the Thermal Environment in Wuhan City in Summer. Sci. Rep. 2023, 13, 13416. [Google Scholar] [CrossRef] [PubMed]
- Asawa, T.; Kugimachi, Y. Characteristics of Cold-Air Release from Air-Conditioned and Open-Entrance Shops to Outside Street Spaces in Summer. In Proceedings of the ASim Conference 2014: 2nd Asia conference of IBPSA-China, Japan, Korea, Nagoya, Japan, 28–29 November 2014. [Google Scholar]
- Anand, J.; Sailor, D.J. Role of Pavement Radiative and Thermal Properties in Reducing Excess Heat in Cities. Sol. Energy 2022, 242, 413–423. [Google Scholar] [CrossRef]
- Geng, L.; Xue, M.; Li, J.; Ma, J. Historic District Conservation: A Critical Review of Global Trends, Development in the 21st Century, and Challenges Through CiteSpace Analysis. Buildings 2025, 15, 1232. [Google Scholar] [CrossRef]
- Khalaji, F.; Zhang, J.; Sharma, A.K. Social and Economic Impacts of Water Sensitive Urban Design: A Review. Water 2025, 17, 16. [Google Scholar] [CrossRef]
- Huang, S.; Zhu, J.; Zhai, K.; Wang, Y.; Wei, H.; Xu, Z.; Gu, X. Do Emotional Perceptions of Visible Greeneries Rely on the Largeness of Green Space? A Verification in Nanchang, China. Forests 2022, 13, 1192. [Google Scholar] [CrossRef]
- Yin, Y.; Li, S.; Xing, X.; Zhou, X.; Kang, Y.; Hu, Q.; Li, Y. Cooling Benefits of Urban Tree Canopy: A Systematic Review. Sustainability 2024, 16, 4955. [Google Scholar] [CrossRef]
- Chen, C.; Wang, J.; Li, D.; Sun, X.; Zhang, J.; Yang, C.; Zhang, B. Unraveling Nonlinear Effects of Environment Features on Green View Index Using Multiple Data Sources and Explainable Machine Learning. Sci. Rep. 2024, 14, 30189. [Google Scholar] [CrossRef]
- Shu, B.; Chang, H.-T.; Chen, Y.-X. Influence of the Thermal Environment of Urban Sidewalks under Green Shading from a Human Scale. All Earth 2024, 36, 1–17. [Google Scholar] [CrossRef]
- Zhou, Y.; Lu, Y.; Zhou, X.; An, J.; Yan, D. Numerical Study on the Coupling Effect of River Attributes and Riverside Building Forms on the Urban Microclimate: A Case Study in Nanjing, China. Sustain. Cities Soc. 2024, 107, 105459. [Google Scholar] [CrossRef]
- Roussel, C.; Böhm, K. Geospatial XAI: A Review. ISPRS Int. J. Geo-Inf. 2023, 12, 355. [Google Scholar] [CrossRef]
- Zhu, Y.; Li, Z. ‘Sharing’ as a Critical Framework for Waterfront Heritage Regeneration: A Case Study of Suzhou Creek, Shanghai. Land 2024, 13, 1280. [Google Scholar] [CrossRef]
- Ulpiani, G. Water Mist Spray for Outdoor Cooling: A Systematic Review of Technologies, Methods and Impacts. Appl. Energy 2019, 254, 113647. [Google Scholar] [CrossRef]
- Regional Office for Europe, World Health Organization. Urban Green Spaces and Health; WHO: Geneva, Switzerland, 2016. [Google Scholar]
- Geng, H.; Zhang, Y.; Chi, J.; He, K.; Feng, S.; Wang, B. What Affect the Satisfaction, Preferences, and Visitation of Pocket Parks? Evidence from Shanghai. J. Outdoor Recreat. Tour. 2024, 46, 100764. [Google Scholar] [CrossRef]
- Harvey, C.; Aultman-Hall, L.; Hurley, S.E.; Troy, A. Effects of Skeletal Streetscape Design on Perceived Safety. Landsc. Urban Plan. 2015, 142, 18–28. [Google Scholar] [CrossRef]
- Chen, L.; Ng, E. Outdoor Thermal Comfort and Outdoor Activities: A Review of Research in the Past Decade. Cities 2012, 29, 118–125. [Google Scholar] [CrossRef]
- Zölch, T.; Rahman, M.A.; Pfleiderer, E.; Wagner, G.; Pauleit, S. Designing Public Squares with Green Infrastructure to Optimize Human Thermal Comfort. Build. Environ. 2019, 149, 640–654. [Google Scholar] [CrossRef]
- Lenzholzer, S. Research and Design for Thermal Comfort in Dutch Urban Squares. Resour. Conserv. Recycl. 2012, 64, 39–48. [Google Scholar] [CrossRef]
- Trigka, M.; Dritsas, E. Edge and Cloud Computing in Smart Cities. Future Internet 2025, 17, 118. [Google Scholar] [CrossRef]
- Kousis, I.; Manni, M.; Pisello, A.L. Environmental Mobile Monitoring of Urban Microclimates: A Review. Renew. Sustain. Energy Rev. 2022, 169, 112847. [Google Scholar] [CrossRef]
- Pan, X.; Mavrokapnidis, D.; Ly, H.T.; Mohammadi, N.; Taylor, J.E. Assessing and Forecasting Collective Urban Heat Exposure with Smart City Digital Twins. Sci. Rep. 2024, 14, 9653. [Google Scholar] [CrossRef]
- Biljecki, F.; Ito, K. Street View Imagery in Urban Analytics and GIS: A Review. Landsc. Urban Plan. 2021, 215, 104217. [Google Scholar] [CrossRef]
- Kavee, K.; Flanigan, K.A. Encoding Experience: Quantifying Multisensory Perception of Urban Form through a Systematic Review. Comput. Environ. Urban Syst. 2025, 122, 102349. [Google Scholar] [CrossRef]










| Indicator Category | Research Indicators | Definitions and Formulas | Quantification Method |
|---|---|---|---|
| Resident sentiment | Sentiment index | Sentiment score corresponding to microblog posts | ERNIE 3.0 |
| Landscape Perception | Aquatic rate (AR) | The proportion of water bodies in the image | Mask2Former |
| Openness (OP) | The proportion of sky in the image where is the total number of sky-related pixels (e.g., blue or white sky) identified through semantic segmentation in the image, and is the total number of recognized pixels in the image. | Mask2Former | |
| Enclosure (EN) | The proportion of architectural enclosure in the image In the formula, , , , and respectively indicate the proportions of pixels belonging to buildings, trees, walls, and fences. | Mask2Former | |
| Greenness (GR) | The proportion of green plants in the image where refers to the total number of pixels classified as vegetation, including grass, shrubs, and trees, based on semantic segmentation; represents the total pixel count of the recognized image area. | Mask2Former | |
| Paving degree (PD) | The proportion of floor covering in the image In the formula, , , ,, , , and respectively denote the proportions of pixels corresponding to road, sidewalk, curb, parking, service lane, crosswalk, and lane marking, while refers to the proportion of sky pixels. | Mask2Former | |
| NDVI | Standardized Difference Vegetation Index/grid area | ArcMap 10.8.1 | |
| Environmental Factors | Floor area ratio (FAR) | The proportion between the cumulative floor area of all structures and the overall grid area where indicates the total gross floor area of all buildings within the spatial unit (km2), and denotes the total area of the grid (km2). | ArcMap 10.8.1 |
| Building coverage ratio (BCR) | The proportion of the total building footprint area to the overall grid area. where represents the total footprint area of all buildings within the unit (km2), and refers to the total land area of the corresponding spatial unit (km2). | ArcMap 10.8.1 | |
| Road network density (RND) | Total length of roads within the research unit | ArcMap 10.8.1 | |
| Land use mix (LUM) | An indicator assessing the spatial and functional integration of different land use types. where represents the proportion of the i-th land use type within the total area of the spatial unit. | ArcMap 10.8.1 | |
| Visual Quality | Visual Entropy (VE) | Entropy value of images | Matlab R2023b |
| Color complexity (CC) | Color complexity of image | Matlab R2023b |
| Metric | XGBoost | CatBoost | LightGBM |
|---|---|---|---|
| RMSE | 0.0434 | 0.1062 | 0.1361 |
| MAE | 0.0232 | 0.0740 | 0.0998 |
| R2 | 0.9316 | 0.5910 | 0.3285 |
| Research Indicators | Moran’s I | Z-Score | p-Value |
|---|---|---|---|
| Sentiment index | 0.888 | 297.166 | <0.001 |
| LUM | 0.509 | 170.413 | <0.001 |
| Visual Entropy | 0.591 | 197.541 | <0.001 |
| Color complexity | 0.578 | 193.485 | <0.001 |
| RND | 0.577 | 193.378 | <0.001 |
| FAR | 0.651 | 217.694 | <0.001 |
| BCR | 0.686 | 229.587 | <0.001 |
| Paving degree | 0.578 | 193.378 | <0.001 |
| Openness | 0.512 | 171.304 | <0.001 |
| NDVI | 0.798 | 267.178 | <0.001 |
| Greenness | 0.448 | 150.067 | <0.001 |
| Enclosure | 0.553 | 185.153 | <0.001 |
| Aquatic rate | 0.341 | 114.012 | <0.001 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Lu, Z.; Lu, Y.; Chen, Y.; Chen, S. Effects of Streetscapes on Residents’ Sentiments During Heatwaves in Shanghai: Evidence from Multi-Source Data and Interpretable Machine Learning for Urban Sustainability. Sustainability 2025, 17, 10281. https://doi.org/10.3390/su172210281
Lu Z, Lu Y, Chen Y, Chen S. Effects of Streetscapes on Residents’ Sentiments During Heatwaves in Shanghai: Evidence from Multi-Source Data and Interpretable Machine Learning for Urban Sustainability. Sustainability. 2025; 17(22):10281. https://doi.org/10.3390/su172210281
Chicago/Turabian StyleLu, Zekun, Yichen Lu, Yaona Chen, and Shunhe Chen. 2025. "Effects of Streetscapes on Residents’ Sentiments During Heatwaves in Shanghai: Evidence from Multi-Source Data and Interpretable Machine Learning for Urban Sustainability" Sustainability 17, no. 22: 10281. https://doi.org/10.3390/su172210281
APA StyleLu, Z., Lu, Y., Chen, Y., & Chen, S. (2025). Effects of Streetscapes on Residents’ Sentiments During Heatwaves in Shanghai: Evidence from Multi-Source Data and Interpretable Machine Learning for Urban Sustainability. Sustainability, 17(22), 10281. https://doi.org/10.3390/su172210281

