Rapid urbanization has significantly exacerbated the Urban Heat Island (UHI) effect in high-density megacities, driven by the intensifying competition between built-up morphology and natural cooling infrastructure. Current research, however, often fails to accurately predict land surface temperatures (LST) because traditional models frequently overlook the complex spatial dependencies and neighborhood spillover effects inherent in urban environments. Existing studies often ignore the spatial dependence of heat transfer. This study proposes an explainable machine learning framework incorporating spatial lag variables to capture the thermal spillover from adjacent neighborhood context—such as green space cooling diffusion or built-up heat accumulation—which is frequently treated as noise in traditional models. Taking Shenzhen as a case study, we integrated multi-source data (Landsat 8, building vectors, DEM) and developed an XGBoost regression model (R2 = 0.806) augmented with SHAP (Shapley Additive exPlanations) to quantify the contributions of local and contextual features. The results revealed that: (1) Non-linear Thresholds: Vegetation cooling exhibits a saturation effect, with the highest marginal benefit observed in the NDVI range of 0.2–0.4, while building warming effects converge at extremely high densities due to mutual shading; (2) Neighborhood Spillovers: Spatial interaction analysis confirms significant cool island synergy (where clustered green spaces provide amplified cooling) and heat island agglomeration effects—e.g., green spaces surrounded by high ecological backgrounds provide amplified cooling benefits; (3) Spatial Antagonism: A novel Interaction Balance Index (IBI) based on game-theoretic SHAP contributions was constructed to map the source-sink competition patterns, identifying distinct heat-dominated (West) and cool-dominated (East) zones. Unlike traditional area-weighted source-sink landscape metrics, IBI enables a pixel-level additive decomposition of warming and cooling factors, quantifying the net thermal outcome of local morphology and neighborhood spillover. By explicitly encoding spatial context into non-linear modeling, this study provides a more mechanistically robust understanding of urban thermal environments. The identified thresholds and dominant driver maps offer precise, spatially differentiated guidance for urban climate-adaptive planning and ecological restoration.
Liu et al. (Tue,) studied this question.