Urban densification intensifies the heat island effect, threatening ecological security. Green spaces, as crucial spatial elements in regulating the urban thermal environment, remain poorly understood in terms of their morphological characteristics and regulatory mechanisms, with a lack of systematic quantification and recognition of diurnal variations. This study, focusing on Shanghai’s main urban area, constructs physiological, physical, and morphological variables of green spaces based on high-resolution remote sensing data and the MSPA landscape morphology analysis framework. By integrating machine learning models with the SHAP interpretation algorithm, it analyses the influence mechanism of green spaces on Land Surface Temperature (LST) and its non-linear characteristics from the perspective of diurnal variation. The results indicate the following: (1) Green spaces exhibit pronounced diurnal variation in LST influence. Daytime cooling is primarily driven by vegetation cover, vegetation activity, and surface albedo through evapotranspiration and shading; night-time cooling depends on soil moisture and green space spatial structure and is achieved via thermal storage-radiative heat dissipation and cold air transport. (2) Green space indicators exhibit pronounced nonlinearity and threshold effects on LST. Optimal cooling efficiency occurs under moderate vegetation activity and moderate humidity conditions, whereas extreme high humidity or high vegetation activity may induce heat retention effects. (3) Day–night thermal regulation mechanisms differ markedly. Daytime cooling primarily depends on vegetation transpiration and shading to suppress surface warming; night-time cooling is dominated by soil thermal storage release, longwave radiation dissipation, and ventilation transport, enabling cold air to diffuse across the city and establishing a stable, three-dimensional nocturnal cooling effect. This study systematically reveals the distinct diurnal cooling mechanisms of high-density urban green spaces, providing theoretical support for refined urban thermal environment management.
Achieving carbon neutrality has become one of the core objectives in contemporary urban development and sustainable growth, underscoring the importance of clarifying the relationship between urban green space landscape metrics and plant carbon sequestration. While existing research confirms the significant role of the structure and pattern of green spaces in carbon sequestration, systematic understanding of their relationship at the local scale within diverse built environments remains limited. To address this, this study objectively categorises five types of built environments using K-means clustering and conducts in-depth analysis on four representative areas. Employing the CatBoost machine learning model and the Shapley Additive Propensity (SHAP) method, we highlighted the influence of green space pattern characteristics on net prmary productivity (NPP) across different built environments. The findings are as follows: (1) Green Coverage Ratio (GCR) exhibits the highest contribution among all explanatory variables across different built environments. In low-intensity built environments, it contributes 74% to the overall explanation, showing a stable association between higher green space proportion and higher carbon sink levels. (2) In high-intensity built environments, limited green spaces exhibit a pronounced “spatial compensation effect” through morphological optimisation and enhanced spatial connectivity. In medium-intensity built environments, they demonstrate a “moderate positive effect,” with peak carbon sequestration efficiency occurring when GCR ranges from 0.25 to 0.75, aggregation index (AI) from 94 to 98, and splitting index (SI) from 1.2 to 1.4. (3) Significant interactions exist among green space landscape metrics, with moderately connected and moderately complex spatial structures enhancing carbon sink efficiency. This study reveals the differentiated impact by which green space landscape metrics influence carbon sink effects under varying urban built environments, providing scientific basis for optimising urban green space systems and low-carbon spatial planning.
Rapid urbanisation has exacerbated habitat fragmentation and degradation, necessitating urgent improvements to urban habitat quality. However, most current studies lack an analysis of spatial differences in local ecological quality, particularly a systematic exploration of how different urban spatial characteristics drive such differences. Based on this, we use Shanghai as an example, employing the InVEST model to assess habitat quality, and utilise CatBoost machine learning models and the SHAP model to reveal the specific spatial distribution characteristics of the habitat quality spatial differences from a morphological perspective, as well as its response to changes in urban spatial form factors. The results indicate that (1) urban habitat quality exhibits significant spatial differences, with quality differences persisting even within regions of the same habitat grade, demonstrating complex spatial characteristics; (2) density-related indicators such as building density and population density have a significant negative impact on the habitat quality spatial difference value, while configuration-related indicators such as the water ratio and Normalised Difference Vegetation Index have a significant positive effect, with Population Density contributing the most among all variables (20.74%); and (3) the variables exhibit significant nonlinearity and threshold effects. For example, when building density exceeds 0.05, the positive impact becomes a negative impact. The interactions between variables further reveal the multi-dimensional coupling mechanisms underlying habitat quality performance. This study contributes to a deeper understanding of the spatial differences of urban habitat quality, providing scientific support for urban ecological zoning management, the optimised allocation of green space resources, and differentiated spatial governance while offering methodological and decision-making references for the construction of high-quality ecological cities.
The heat island effect and air stagnation issues caused by high-density built-up areas are becoming increasingly severe. Optimising urban ventilation structures and establishing ventilation corridors have become key approaches to improving the urban thermal environment and enhancing liveability. However, traditional methods for constructing ventilation corridors often rely on empirical weighting or linear models, which struggle to accurately reveal the resistance coefficients of resistance indicators and fail to reflect the threshold at which indicators transition between positive and negative impacts. Consequently, this study employs Shanghai, China, as a case study, integrating machine learning models with the minimum cost path (MCR) model. Key variables were screened through multiple linear regression and variance inflation factor (VIF) analysis. Subsequently, machine learning models were compared to select the optimal model, with parameter optimisation conducted using Optuna, followed by computational implementation. The results indicate that built environment factors (such as building height, shape complexity, and road density) exert a significantly greater influence on ventilation potential than natural green space factors. By introducing the SHAP method, the positive and negative effects of each indicator on the ventilation environment and their threshold relationships were revealed. Negative indicators were converted into ventilation resistance factors to construct a resistance surface. Building upon this, cold and heat sources were identified using LST, NPP, and population density data. The MCR model was then employed to calculate the minimum resistance paths from cold to heat sources, forming an urban ventilation corridor network. The results indicate that primary corridors align with prevailing wind directions, following urban rivers and low-density green spaces. This study reveals the nonlinear effects of building and green space elements on ventilation systems, proposing machine learning-based optimisation strategies for ventilation corridors. It provides quantitative decision support for mitigating the urban heat island effect and enhancing city livability.
Urban expansion will squeeze the green space system and cause ecological fragmentation. The question of how to expand cities more scientifically and build eco-cities has become an important topic of sustainable urban construction. This paper takes Shanghai as a research case. A deep neural network combined with an attention mechanism model measures the comprehensive level of the built environment and green space pattern of urbanization and quantitatively analyzes the coordinated relationship between the two using the coupled degree of coordination model. Subsequently, the K-Means clustering model was used for spatial clustering to determine the governance and construction directions for different spatial areas and was, finally, combined with the LightGBM model plus SHAP to analyze the importance and threshold effect of the indicators on the degree of coupled coordination. The results of the study show that (1) the core area of the city shows a high state of coordination, indicating that Shanghai has a better green space construction in the central city, but the periphery shows different imbalances; (2) three different kinds of areas are identified, and different governance measures as well as the direction of urbanization are proposed according to the characteristics of the different areas; and (3) this study finds that the structural indicators of the built environment, such as Average Compactness, Weighted Average Height, and Land Use Diversity, have a significant influence on the coupling coordination degree and have different response thresholds. The results of the study provide theoretical support for regional governance and suggestions for the direction of urban expansion for sustainable urbanization.