Abstract
Urban greening interventions are widely implemented to mitigate urban heat islands, but rigorous causal evaluation is hindered by three challenges: interventions are not randomly assigned (selection bias), treatment effects are heterogeneous across urban contexts, and spatial spillover effects violate the Stable Unit Treatment Value Assumption (SUTVA). To address these challenges, we propose SpatialMed-CF, a spatial mediation causal forest framework that jointly estimates heterogeneous treatment effects, accounts for spatial interference through data-driven exposure mapping, decomposes total effects into direct and mediated pathways, and optimizes treatment allocation via policy learning. We validate SpatialMed-CF against seven baseline methods on synthetic panel data with known ground truth. Results show that SpatialMed-CF reduces Average Treatment Effect (ATE) estimation error by 86.1% and increases Conditional Average Treatment Effect (CATE) rank association approximately sixfold relative to standard causal forest. The full and no-spatial variants produced identical values in the original ablation, and a policy tree derived from heterogeneous treatment effects achieves a 9.5% welfare gain over random allocation, interpreted as an in-sample model-based contrast. In the added stress tests and the New York City illustration, spatial, mediation, and policy results varied with context and assumptions.
1. Introduction
Rapid urbanization has transformed the Earth’s surface at an unprecedented pace. Over 55% of the global population now resides in urban areas, a proportion projected to reach 68% by 2050 [1]. This urban expansion, coupled with the replacement of natural land cover with impervious surfaces, has given rise to the urban heat island (UHI) effect, the phenomenon whereby urban areas experience temperatures 2–8 °C higher than their rural surroundings [2,3]. The UHI effect exacerbates energy consumption for cooling, degrades air quality, increases heat-related mortality, and disproportionately affects vulnerable populations [4,5].
Urban greening interventions, including park construction, street tree planting, green roof installation, and green space expansion, have emerged as a prominent nature-based solution to mitigate UHI effects and deliver co-benefits for public health, biodiversity, and social well-being [6,7,8]. Vegetation cools the environment through shading and evapotranspiration [9,10]. Recognizing these benefits, cities worldwide have launched ambitious greening programs—from New York’s MillionTreesNYC and Melbourne’s Urban Forest Strategy to Singapore’s “City in a Garden” and China’s Sponge City initiative.
Despite the scale of public investment and the urgency of climate adaptation, the evidence base for urban greening remains limited in three critical respects. Rigorous causal evidence on the magnitude of greening effects is scarce: most existing studies are cross-sectional, comparing greener and less-green areas at a single point in time, which conflates the causal effect of greening with the confounding effects of the socioeconomic and built-environment factors that determine where green space exists [11,12]. Equally important, we understand poorly greening works best: the cooling effect of a park in a dense, high-rise neighborhood with low baseline vegetation is likely different from that of a park in a low-density suburban area with mature tree canopy, yet most studies report only average effects [6]. A related concern is that evidence on greening is sufficient remains limited: the dose–response relationship between green space quantity and environmental outcomes is poorly quantified, hindering cost-effective resource allocation. These gaps reflect three methodological challenges that impede rigorous causal evaluation of urban greening interventions.
The first challenge is selection bias and confounding. Urban greening projects are not randomly assigned across space. They are systematically targeted at areas with specific characteristics: greater political advocacy and community organizing capacity, higher land availability or lower land costs, more severe environmental degradation, or explicit environmental justice mandates [13,14]. Consequently, treated and untreated areas differ systematically in both observed characteristics (building density, income, baseline vegetation) and unobserved characteristics (political influence, developer interests), rendering naive before–after or cross-sectional comparisons severely biased. Standard regression adjustment can control for observed confounders but requires correct functional form specification and cannot address unobserved confounding.
Even with adequate confounding control, a second challenge emerges: the causal effect of a greening intervention is unlikely to be constant across diverse urban contexts. Physical mechanisms suggest that cooling benefits should be larger in areas with higher baseline temperatures (typically denser, less vegetated areas), lower initial green coverage (diminishing marginal returns), and specific microclimatic conditions (wind patterns, solar exposure, urban canyon geometry) [15,16]. Demographic and socioeconomic characteristics further modulate who benefits: wealthier neighborhoods may experience larger property value appreciation from nearby parks, while lower-income communities may derive greater health benefits from improved access to green space [14,17]. Standard difference-in-differences and regression discontinuity designs estimate a single average treatment effect, masking this critical context-dependence. The third challenge compounds the heterogeneity problem: the cooling effect of a park extends beyond its physical boundaries, with documented temperature reductions at distances of 100–300 m from park edges [18,19,20]. This spatial interference violates the Stable Unit Treatment Value Assumption (SUTVA) that underpins nearly all standard causal inference methods [21,22]. Under SUTVA violation, a “control” unit adjacent to a treated park is partially treated through spillover, biasing treatment effect estimates toward zero. Conversely, ignoring positive spillover effects causes planners to undervalue greening investments, as their full benefits, including cooling of neighboring areas, are not captured.
Existing approaches to urban intervention evaluation can be organized along a spectrum of methodological rigor. At the weakest end, cross-sectional correlational studies regress environmental outcomes (e.g., land surface temperature) on green space metrics (e.g., Normalized Difference Vegetation Index (NDVI), green space fraction) using a single temporal snapshot [23,24,25]. While informative for hypothesis generation, these studies cannot separate causation from correlation and are vulnerable to omitted variable bias. Quasi-experimental designs, specifically difference-in-differences (DiD) and regression discontinuity (RD), represent a meaningful advancement by exploiting temporal or spatial discontinuities [26,27]. However, both DiD and RD assume homogeneous treatment effects and SUTVA, assumptions that are demonstrably violated in urban greening contexts. More recently, machine learning methods have been applied to urban analysis [28,29,30], but predominantly for prediction rather than causal inference, prioritizing predictive accuracy over the counterfactual reasoning essential for policy evaluation. Related engineering studies offer useful examples of representation learning for noisy or structured signals. Their approaches include noise-robust recurrent modeling, temporal–frequency contrastive learning, retentive U-Nets, graph–frequency representations, frequency-sensitive encoding, and cross-attention fusion [31,32,33,34,35,36]. We cite these studies for their transferable learning strategies, not as evidence about the causal effects of urban greening.
Recent advances in causal machine learning offer a path forward. Methods such as causal forest [37,38,39], Double Machine Learning (DML) [40], and doubly robust estimation enable the estimation of heterogeneous treatment effects in high-dimensional observational settings while maintaining formal statistical guarantees. These methods have demonstrated success in economics [41], medicine [42], and public policy [43], but their application to urban planning and design remains nascent. Critically, none of the existing causal ML methods natively address spatial interference or causal mediation, the two additional challenges that distinguish urban greening from standard program evaluation settings.
This paper makes three contributions.
- (1)
- We propose SpatialMed-CF, a spatial mediation causal forest framework that integrates heterogeneous treatment effect estimation, data-driven spatial exposure mapping, causal mediation analysis, and policy tree optimization into a unified pipeline. To our knowledge, this is the first framework to jointly address treatment effect heterogeneity, spatial spillover, causal mediation, and policy optimization in the urban greening context.
- (2)
- We validate SpatialMed-CF against baseline methods on synthetic panel data with known ground truth. Results demonstrate an 86.1% reduction in ATE estimation error and an approximately sixfold increase in CATE rank association over standard causal forest. The full and no-spatial variants yielded identical results in the original ablation, so that run does not isolate a benefit from spatial augmentation. We examine this issue in an independent stress test.
- (3)
- We derive interpretable decision rules from the estimated heterogeneous treatment effects. The policy tree identifies building density, income level, and baseline vegetation as the primary determinants of greening effectiveness, enabling evidence-based greening targeting. Under a 30% budget constraint, data-driven allocation achieves a 9.5% welfare gain over random targeting. The 9.5% value is an in-sample, model-based comparison. The external illustration also includes uniform allocation and status quo.
The remainder of this paper is organized as follows. Section 1 continues with a review of related work across three streams: urban greening evaluation, causal machine learning, and spatial interference and mediation methods. Section 2 formally presents the SpatialMed-CF framework, including the problem setup, four-stage estimation procedure, comparison methods, and evaluation metrics. Section 3 reports empirical findings across five dimensions: ATE estimation, heterogeneous treatment effects, spatial spillover and mediation decomposition, policy learning, and robustness checks. Section 4 discusses methodological contributions, urban planning implications, limitations, and directions for future research. Section 5 concludes.
2. Materials and Methods
2.1. Problem Formulation
We observe a panel of N spatial units over T time periods. For unit i at time t, the outcome is land surface temperature (LST), treatment is the fraction of cell area converted to green space, and mediator is NDVI. Pre-treatment covariates include building density, street connectivity, population density, income index, water proximity, Points of Interest (POI) diversity, and distance to city center. Let denote cumulative treatment.
The reported ATE and CATE errors use , the direct own-dose coefficient at the final observation period. This target differs from the total own-dose derivative, the neighbor-spillover contrast, and the pathway decomposition. The numerical results are unchanged.
We adopt the potential outcomes framework [21] with denoting the outcome under treatment vector , allowing unit i’s outcome to depend on treatments assigned to other units.
We define three causal estimands. The Average Treatment Effect (ATE) is the population-average effect of increasing the treatment dose by one unit:
The Conditional Average Treatment Effect (CATE) is the same quantity conditional on , capturing heterogeneity across urban contexts. The Group Average Treatment Effect (GATE) averages CATEs within a predefined subgroup.
A central challenge in urban settings is that treatment applied to unit i may affect outcomes in neighboring units , where denotes the set of spatial neighbors of i. We formalize this through an exposure mapping [22]:
where is a row-normalized spatial weights matrix with elements if and 0 otherwise, denoting the Euclidean distance between cells i and j. The neighborhood radius is set to 3 cell units (≈1.5 km at 500 m resolution), consistent with documented park cooling extents [18]. The spillover parameter controls the relative weight of neighbor treatment and is selected data-adaptively.
The mapping is an analytical representation of interference, not an estimated physical law. Its linear, isotropic, additive form cannot encode wind direction, park geometry, building height, or threshold effects. We therefore evaluate misspecified and non-additive mappings in supplementary stress tests and report external estimates under three prespecified neighborhood definitions.
This exposure mapping reduces the interference dimensionality by assuming depends on the full treatment vector only through the scalar . We term this neighborhood-level SUTVA, which is considerably weaker than standard SUTVA () while remaining tractable for estimation.
Following [44], we decompose the total treatment effect into direct and mediated pathways. Let and denote the potential mediator and outcome. The total effect satisfies , where the direct effect captures shading and albedo modification that bypass NDVI, and the mediated effect captures evapotranspirative cooling through increased vegetation density.
For the synthetic run, this subtraction gives a model-based pathway decomposition. Including a fitted post-treatment mediator does not by itself identify natural direct and indirect effects. Such an interpretation also requires exchangeability, positivity, temporal ordering, consistency, and correct model specification. We report the 98.4%/1.6% values as exploratory and use an interventional mean-scale analysis with residual-correlation sensitivity for the external illustration.
Finally, we consider the planner’s problem: given a budget that allows treating at most a fraction of all spatial units, which units should receive the intervention to maximize aggregate welfare? Formally, we seek a policy that solves:
where is the expected cooling benefit (positive when treatment reduces LST). The policy class is restricted to decision trees of maximum depth 3 [43].
2.2. Estimation Procedure
SpatialMed-CF proceeds in four stages.
The spillover parameter is selected data-adaptively via 3-fold cross-validation. For each candidate , we form , fit a causal forest, and compute the rank-correlation score between predicted and actual group-mean CATE differences on held-out folds. The maximizing this correlation is selected as .
With fixed, we fit a Generalized Random Forest (GRF) [39] that produces unit-specific CATE estimates via honest estimation, where each tree uses separate subsamples for partitioning and leaf estimation, yielding asymptotically valid confidence intervals. The effective treatment incorporates the optimally weighted neighbor spillover.
To decompose mechanisms, we first estimate the expected mediator via gradient boosting then fit a second GRF that includes as a covariate to isolate the direct effect . The mediated effect is , quantifying the fraction of cooling attributable to vegetation health improvements [44].
This computation yields the reported pathway quantities, but it does not show that mediation improves CATE estimation. A causal interpretation further depends on the identifying assumptions stated below.
Finally, we solve the budget-constrained policy optimization problem in Equation (3) using a policy tree [43], which produces interpretable decision rules that planners can directly evaluate. The tree depth is limited to three levels to balance predictive performance with practical usability.
2.3. Comparison Methods
SpatialMed-CF is compared against seven alternative methods. Naive Ordinary Least Squares (OLS, M0) serves as the elementary benchmark, assuming a constant, additive treatment effect. Standard Causal Forest (M1) estimates heterogeneous effects via GRF but assumes SUTVA. CF + Separate Spatial (M2) fits two independent GRFs for own-treatment and neighbor-treatment components. SpatialMed-CF (M3) integrates spatial exposure mapping, mediation decomposition, and policy learning. Three spatial econometric models represent the dominant empirical paradigm in urban planning: the Spatial Autoregressive Model (SAR, M4), the Spatial Durbin Model (SDM, M5), and Spatial Difference-in-Differences (Spatial DiD, M6). These models capture spatial dependence but assume constant treatment effects, illustrating the cost of ignoring heterogeneity. CF + Spatial Fixed Effects (FE, M7) augments causal forest with spatial coordinates and spatially lagged outcomes as covariates.
2.4. Identification Conditions
The validity of our causal estimates depends on five identifying assumptions, which we discuss here and test empirically in Section 3. The first two are standard in the potential outcomes framework. Unconfoundedness requires that treatment assignment is independent of potential outcomes conditional on observed covariates: . Our covariate vector includes urban form, socioeconomic proxies, and spatial features that jointly determine treatment assignment. The original E-value output is retained for traceability but is not treated as a valid sensitivity measure for continuous LST; the supplementary continuous-outcome robustness value provides the relevant omitted-confounding diagnostic. Overlap requires that every unit has a non-zero probability of receiving each treatment level: for all . This is verified empirically with estimated propensity scores falling within . The remaining three assumptions address features specific to urban greening. Standard SUTVA is replaced with neighborhood-level SUTVA via the exposure mapping , reducing interference to own treatment and immediate neighbors’ treatment. This is consistent with documented park cooling extents of 100–300 m [18], and the spillover parameter is selected data-adaptively to minimize misspecification risk. Mediation identification requires sequential ignorability: and [44]. These conditions are not empirically testable and are especially strong for urban observational data. Failure of either condition invalidates a natural-effect interpretation; accordingly, the original decomposition is reported as model-dependent, and the added external analysis varies residual dependence over [45]. Finally, we assume that interference is confined to the neighborhood defined by the spatial weights matrix . The distance-decay analysis (Section 3) supports this assumption, showing that spillover effects attenuate with distance.
2.5. Evaluation Metrics
We evaluate all methods against known ground truth using five metrics that capture complementary dimensions of estimation performance. The primary metric is ATE absolute error, which measures how closely a method recovers the population-average effect:
where denotes the estimated CATE for unit i and is the known ground-truth value. However, accurate ATE estimation does not guarantee correct unit-level ranking, which is essential for targeting decisions. We therefore report the Pearson correlation between estimated and true CATEs as a measure of rank association, not calibration:
Values closer to one indicate stronger ordering of units by treatment effect magnitude. A high correlation can coexist with an incorrect calibration intercept or slope; the supplementary Monte Carlo study therefore reports calibration slope and grouped error separately. CATE heterogeneity SD measures the model’s ability to detect genuine variation in treatment effects across units:
where . Methods that over-regularize produce close to zero, understating the true heterogeneity. Beyond statistical accuracy, we assess practical value through policy welfare gain. Let denote the set of the top 30% of units ranked by predicted CATE. The welfare gain is:
where the first term is the average benefit under data-driven targeting and the second term is the expected benefit under random assignment. This metric directly captures how much additional cooling is achieved by prioritizing the most responsive units. The 9.5% value compares two allocations evaluated with the same fitted effects, and random assignment is a limited operational benchmark. We therefore interpret it as an in-sample model contrast. The external analysis adds status quo, uniform allocation, and a transparent heat-risk heuristic. Finally, 95% confidence interval coverage assesses whether each method’s uncertainty estimates are well calibrated:
where is the number of bootstrap resamples and is the 95% confidence interval from the b-th resample.
2.6. Data and Experimental Design
2.6.1. Synthetic Panel Data Generation
Figure 1 displays the study area. We construct a synthetic panel data set designed to emulate real urban dynamics while providing known ground truth for rigorous method validation. The use of synthetic data is deliberate: it allows us to compare each method’s estimates against the true treatment effects that are unobservable in real-world settings, providing an unambiguous evaluation of estimation accuracy. The data generation parameters are calibrated to empirical ranges reported in the urban climate and planning literature, ensuring that the synthetic environment reflects realistic magnitudes of urban form variation, treatment selection mechanisms, and cooling effects.
Figure 1.
Study area overview. (a) Spatial distribution of treatment intensity (green space fraction added). (b) Land surface temperature (Celsius) at the final period. (c) Building density as a key confounder. The synthetic grid comprises 400 cells at 500 m resolution.
The data set comprises a regular grid (400 cells) at 500 m resolution, yielding a study area of 10 km × 10 km (100 km2), comparable to a medium-sized city district. Each cell is observed over five time periods (2010, 2013, 2016, 2019, 2022), producing 2000 cell-period observations.
Seven urban form features are generated as spatially correlated Gaussian random fields with an exponential covariance function (range parameter cells, approximately 1.5 km), reflecting the strong local clustering of urban form characteristics [28]. Each feature is motivated by a real-world data source: building density (mean 0.6, , from OpenStreetMap building footprints; OpenStreetMap is a geospatial database rather than software and is cited here as motivation for the synthetic feature, so a software version is not applicable); street connectivity (mean 0.5, , from road network graphs [28]); population density (mean 0.5, , from WorldPop or LandScan); income index (mean 0.5, , from census tract data); water proximity (inverse distance to OSM hydrography); Points of Interest (POI) diversity (Shannon entropy of OSM amenity categories); and distance to city center. All features are scaled to .
Treatment assignment follows a staggered adoption design with selection on observables [13,14]. The probability of treatment is a logistic function of baseline green ratio (−), building density (−), income index (+), and population density (+), capped at 30% per period. Once treated, a cell receives no further intervention; the dose represents the fraction of cell area converted to green space. Overall, 77 of 400 cells (19.2%) receive treatment: 25 in 2013, 22 in 2016, 19 in 2019, and 11 in 2022.
LST is generated from a structural model with parameters calibrated to empirical effect sizes [6,7,23]:
where is the direct own-dose coefficient, , and . Holding neighbor doses fixed, the total own-dose derivative is ; the neighbor-dose derivative is . The reported original ATE/CATE errors use rather than either total derivative.
2.6.2. Implementation Details
All experiments use Python 3.9+ with econml (v0.17.0) for GRF and DML and scikit-learn (v1.3 or later, as specified in the project requirements) for gradient boosting. Causal forest uses 500 trees, minimum leaf size 10, maximum depth 30, and honest sample splitting. Results are averaged over 3 Monte Carlo seeds. The continuous-dose experiment uses three Monte Carlo seeds and is treated as a pilot analysis. To characterize sampling variation more fully, the separate binary-treatment stress study regenerates 200 data sets in each of eight scenarios and reports MCSE, coverage, calibration slope, and failure cases.
2.7. Supplementary New Experiment 1: Independent Stress-Test Design
We designed this independent experiment to test whether the spatial-augmentation claim carries over to an estimand-matched binary-treatment setting. It neither recalculates nor replaces the continuous-dose results. Each replicate generates a new spatial data set. Baseline and most stress scenarios contain a grid (225 units); the small-sample scenario contains a grid. Five smooth baseline fields determine treatment propensity and effect modification. Treatment is Bernoulli with scenario-specific prevalence. The pathway and outcome are
where in the baseline, , and the known own-total effect is . Standard CF and SpatialMed-CF use identical hyperparameters; the latter adds only the prespecified mapped exposure . Each scenario is repeated 200 times with a unique seed, yielding 3200 fitted method rows from 1600 independently generated data sets. The prespecified scenarios are summarized in Table 1.
Table 1.
Supplementary prespecified stress-test scenarios.
2.8. Supplementary New Experiment 2: New York City Illustration
We aggregated the official 2005 and 2015 New York City street-tree censuses to a fixed longitude–latitude grid [46,47]. Eligible cells contained at least five live trees in both censuses. Exposure was the top 30% of the change in ; this captures net stock change rather than randomized planting. Baseline controls were 2005 tree stock, mean diameter at breast height, LST, NDVI, longitude, and latitude.
For each grid centroid, we queried low-cloud Landsat Collection-2 Level-2 scenes. Landsat 5 was used for 2005 and Landsat 8 for 2015. Surface temperature was converted as K, reflectance as , and QA bits for dilated cloud, cloud, shadow, and snow were removed following USGS documentation [48,49]. Per-year medians were formed after requiring and 80 °C. Four geographic folds were used for cross-fitting. The primary mapping used eight neighbors with 3 km exponential decay; alternatives used four neighbors/2 km and twelve neighbors/5 km.
We use this analysis as an external illustration and leave the synthetic results unchanged. Census differences combine planting, mortality, and coverage. The Landsat sensors also differ between years, and unmeasured time-varying neighborhood changes may remain.
3. Results
3.1. Average Treatment Effect Estimation
Table 2 presents ATE estimation results. Conventional spatial econometric methods (M4–M6) perform poorly (errors 2.72–9.16), as they assume constant effects. Standard causal forest (M1) and its FE-augmented variant (M7) improve over linear methods but remain biased (error ≈ 2.3). SpatialMed-CF (M3) achieves the lowest ATE error (0.33), representing an 86.1% reduction over standard CF. While M7 has higher CATE rank association ( vs. M3’s ), this comes at the cost of substantially worse ATE accuracy (error 2.28 vs. 0.33), reflecting a bias–variance trade-off.
Table 2.
ATE estimation performance across eight methods.
3.2. Heterogeneous Treatment Effects
Figure 2 shows the estimated CATE distribution. SpatialMed-CF detects substantially more treatment effect heterogeneity than standard CF (CATE SD: 0.278 vs. 0.066, a fourfold improvement), and the original CATE rank correlation is approximately six times larger ( vs. ). Both correlations are low in absolute terms and do not establish calibration. The Best Linear Projection (BLP) [39] identifies building density () and population density () as the strongest effect modifiers, with an of 0.283.
Figure 2.
Heterogeneous treatment effects of urban greening. (a) CATE distribution from SpatialMed-CF. (b) Estimated versus true CATEs, colored by building density; the black dashed line connects the lower and upper endpoints of the plotted estimated and true CATE ranges as a visual reference. (c) Quintile calibration: predicted CATE means versus actual group-level treatment effects; green dots show the quintile-level comparisons and the black dashed line is the identity line (). (d) Feature importance for treatment effect heterogeneity from generalized random forest; green bars indicate importance above the mean across features, and grey bars indicate importance at or below that mean. (e) CATE as a function of building density with binned means and standard errors; the red dashed line marks zero effect, and green markers show binned means with standard-error bars. (f) Best Linear Projection (BLP) coefficients of CATE onto urban form covariates; blue and red bars indicate negative and positive coefficients, respectively. The printed in panel (b) is the correlation for the plotted sample, whereas Table 2 reports the original table-level value ; neither is a calibration statistic.
3.3. Spatial Spillover and Mediation Decomposition
Figure 3 illustrates the mediation pathway from treatment through NDVI to LST. The cross-validated spillover parameter is , giving neighbor treatment approximately equal weight to own-treatment. The effect decomposition is as follows: direct (98.4%) + mediated (1.6%), with spatial spillover contributing an additional 8.8% of total magnitude (note that spillover and mediation partially overlap). These original quantities are retained as a model-dependent decomposition of the synthetic run; they are not presented as identified natural direct or indirect effects. The original source does not document a reproducible calculation for the 8.8% ratio, so it is not used to support the revised conclusions.
Figure 3.
Causal mediation analysis. (a) Pathway diagram: T → NDVI → LST. Green, orange, and blue nodes denote treatment, mediator, and outcome, respectively. Orange arrows denote the treatment-to-mediator () and mediator-to-outcome () pathways; the blue arrow denotes the direct treatment-to-outcome pathway. (b) Heterogeneous mediation by urban context. (c) Mediator comparison: green and orange bars denote green space coverage and NDVI, respectively. The 90.5% and 42.7% values retained in panel (c) are auxiliary mediator comparisons from the original figure and are not the 98.4%/1.6% direct/pathway decomposition reported in the text.
In Table 3, removing the mediation block changes the rank correlation from to . The full and no-spatial variants, however, are identical in this run (ATE bias 0.3252; ), providing no evidence of a spatial gain in this experiment. Removing the mediation block also lowers ATE bias while worsening rank association. The ablation therefore shows a trade-off between metrics, not a uniform benefit from every component.
Table 3.
Ablation study: marginal contribution of each component.
3.4. Policy Learning
Under a 30% budget, data-driven targeting achieves a 9.5% welfare gain over random assignment (0.715 vs. 0.620 per cell; in-sample estimate). The policy tree identifies income index and building density as primary splitting variables, producing interpretable rules such as prioritizing cells with low income but high density. This value is an exploratory, in-sample targeting contrast because the evaluation reuses fitted effects and compares against random allocation. It is neither an out-of-sample estimate nor an experimentally validated welfare gain.
3.5. Robustness Checks
Table 4 summarizes six robustness checks. The placebo and spatial-randomization results both have , but neither value by itself validates the causal design because interpretation depends on the implemented null statistic. Covariate balance is acceptable (6/7 covariates with ). The ratio-scale E-value of 1.57 is not a formally valid sensitivity measure for an untransformed continuous LST contrast and is therefore retained only as a legacy output, not evidential support [50]. The negative-control ATE of 0.305 is substantively non-zero and signals residual bias rather than a successful diagnostic. ATE estimates show acceptable temporal stability (CV = 27.2%, with increasing magnitude consistent with vegetation maturation). A separate negative-control Monte Carlo distribution and continuous-outcome-omitted confounding analysis are reported below [51,52].
Table 4.
Robustness evidence summary.
3.6. Supplementary New Experiment 1: Independent Stress-Test Results
Table 5 and Figure 4 summarize the independent binary-treatment stress study. Spatial augmentation slightly reduced CATE RMSE in the baseline (0.618 versus 0.629) and long-range-spillover scenarios (0.655 versus 0.668). It was neutral or slightly worse with small samples, non-linear effects, pathway–outcome confounding, or a misspecified W. The original 86.1% improvement is therefore specific to its data-generating design. Coverage was below 0.95 in every scenario, and poor overlap produced the largest ATE bias.
Table 5.
Supplementary performance over 200 independently regenerated data sets per scenario. Values are means; MCSEs for bias and RMSE are 0.010–0.024 in the source table.
Figure 4.
Supplementary simulation validation. (a) CATE RMSE; (b) empirical coverage of nominal 95% unit-level intervals; (c) calibration slope; and (d) policy gain over uniform allocation. In all four panels, white circles and blue squares denote Standard CF and SpatialMed-CF, respectively. Red dashed lines mark the nominal coverage of 0.95 in (b), the ideal calibration slope of 1 in (c), and zero policy gain in (d). Points are means across 200 independent data sets and bars are mean Monte Carlo standard errors.
The negative-control distribution contained zero in every scenario (Table 6), but its mean remained 0.167 under the swmall sample and 0.157 under poor overlap. These results show why a negative control should be read as a bias diagnostic, not as a binary certification device.
Table 6.
Supplementary negative-control ATEs over 200 replications. The true effect is zero; ranges are empirical 2.5th and 97.5th percentiles.
3.7. Supplementary New Experiment 2: New York City Results
After cloud screening and physical-range checks, 149 grid cells met the eligibility rule of at least five live trees in both censuses. Of these cells, 30.2% were classified as high tree-stock growth using the prespecified exposure threshold. The remaining cells formed the comparison group.
Four-fold geographic cross-fitting produced a mean conditional LST contrast of −0.211 °C for the primary eight-neighbor, 3-km exposure map. All three prespecified mappings gave negative contrasts: −0.214 °C for , −0.211 °C for , and −0.195 °C for (Figure 5c). The fitted direction and magnitude changed little across these neighborhood definitions.
Figure 5.
Supplementary New York City observational illustration. (a) Observed log tree-stock change; (b) cross-fitted conditional temperature-change contrast; (c) sensitivity to three prespecified neighborhood mappings, with blue dots showing the mean conditional temperature-change contrast for each mapping and the blue line connecting these estimates; and (d) sensitivity of the indirect pathway contrast to residual correlation , with the purple line showing the adjusted indirect contrast, the vertical grey dashed line marking , and the horizontal grey line marking zero indirect contrast.
The spatial-fold LinearDML estimate was −0.166 °C, with a 95% CI from −0.804 to 0.472 °C. Its direction agreed with the forest contrast, but the interval crossed zero. The confidence-interval robustness value was therefore zero. The point-estimate robustness value was 0.042, indicating that an omitted variable explaining about 4.2% of the residual variation in both exposure and temperature change could account for the point estimate.
The interventional mean-scale pathway estimates were −0.165 °C for the IDE and 0.00007 °C for the IIE. The indirect estimate was close to zero and changed sign as the assumed residual correlation crossed zero (Figure 5d). The external data therefore did not support a stable indirect pathway. This finding does not replace the original 98.4%/1.6% synthetic decomposition, which concerns a different estimand and data-generating setting.
For a 30% allocation budget, predicted benefit was 0.064 temperature-benefit units under uniform allocation, 0.442 under the heat-risk heuristic, and 0.433 under the cross-fitted policy tree; status quo was normalized to zero. The heuristic slightly exceeded the policy tree. Because these comparisons use model-predicted outcomes rather than observed policy rollouts, they are descriptive policy contrasts rather than validated welfare effects.
The New York City analysis remains observational. Tree-count change combines planting, mortality, and census coverage, while the LST comparison uses different Landsat sensors across years. Unmeasured neighborhood changes may also affect both exposure and temperature. The analysis tests external transport and the proposed diagnostics, but it does not identify a citywide causal effect.
4. Discussion
4.1. Methodological Contributions
The 86.1% reduction in ATE estimation error over standard causal forest, and the finding that widely used spatial econometric models (SAR, SDM, Spatial DiD) fail with errors of 2.7–9.2 when effects are heterogeneous, carry an important message for the urban planning literature, where spatial regression remains the dominant empirical approach [53]. These figures describe the original synthetic design. Their broader relevance depends on the independent stress tests, where performance varied by scenario. The ablation also gives a mixed result: the full and no-spatial variants are identical, while removing the pathway block lowers ATE bias but reduces rank association.
4.2. Urban Planning Implications
The policy tree decision rules indicate that greening investments yield the highest cooling returns in (i) areas with higher building density, where the UHI effect is most severe; (ii) areas with lower baseline green space, where marginal benefits are largest; and (iii) areas closer to city centers, where population exposure is maximized. These rules provide a quantitative, data-driven basis for prioritization that goes beyond planning intuition. These are candidate decision rules. Both the 9.5% contrast and the external policy values are model-based, so operational use requires prospective or held-out evaluation.
The fairness analysis, however, reveals a tension between efficiency and equity: optimal targeting concentrates benefits in already-advantaged areas (higher income, higher density). This suggests that urban greening policies should incorporate explicit equity constraints, echoing calls for “just green enough” approaches [13] and distributional equity analyses [54].
4.3. Limitations and Future Work
Several limitations warrant acknowledgment. Validation on synthetic data with a known parametric structure may favor GRF-based methods; performance under real-world data-generating processes with non-additive spillover or misspecified spatial weights remains to be established. The framework assumes a time-invariant spatial weights matrix, exogenous treatment timing conditional on covariates, and a single mediator (NDVI). Multi-mediator extensions simultaneously modeling NDVI, albedo, and evapotranspiration would provide richer mechanistic insight. The sequential ignorability assumption required for causal mediation [44] is particularly demanding in urban settings, where unmeasured factors such as soil quality and irrigation infrastructure may confound the mediator–outcome relationship; the reported mediation proportions should therefore be treated as suggestive pending sensitivity analyses on real data [45].
The new analyses leave these limitations unresolved. Interval coverage remains below nominal, the external confidence interval crosses zero, and the point estimate is sensitive to omitted confounding.
Future work should prioritize the following: (1) validating SpatialMed-CF on real multi-city panel data combining OpenStreetMap history, Landsat imagery, and municipal greening records; (2) extending the framework to accommodate time-varying spatial weights and dynamic treatment regimes [55]; (3) incorporating fairness constraints directly into the policy learning objective [56]; and (4) developing the framework into an interactive decision-support tool for urban planners.
5. Conclusions
We developed SpatialMed-CF, a spatial mediation causal forest framework for evaluating heterogeneous effects of urban greening interventions that jointly addresses selection bias, treatment effect heterogeneity, spatial interference, and mediation decomposition within a unified estimation pipeline. Validation on synthetic panel data with known ground truth demonstrates that SpatialMed-CF reduces ATE estimation error by 86.1% and increases CATE rank association approximately sixfold over standard methods. The full and no-spatial variants are identical in the ablation, while the mediation quantities remain model-dependent. Policy tree optimization further yields interpretable allocation rules that achieve an in-sample 9.5% model-based contrast over random targeting, providing planners with candidate, rather than prospectively validated, guidance on where to prioritize greening investments. Performance varied across the added scenarios, and operational policy use requires prospective validation.
Author Contributions
Conceptualization, Z.J. and Y.Y.; methodology, Z.J.; software, Z.J.; formal analysis, Z.J. and Y.Y.; writing—original draft preparation, Z.J.; writing—review and editing, Y.Y., Z.W., X.M., S.G. and X.H.; supervision, Y.Y. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The synthetic data sets and code generated and analyzed during the current study are available from the corresponding author upon reasonable request. The revision package also includes the supplementary analysis script, regression tests, raw Monte Carlo and negative-control outputs, derived source tables, New York provenance records, and figure-generation script. The 2005 and 2015 street-tree censuses are publicly available from NYC Open Data [46,47]; Landsat Collection-2 Level-2 observations originate from USGS products.
Acknowledgments
The authors are grateful to their institutions for administrative and technical support during the conduct of this study.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- UN DESA. World Urbanization Prospects: The 2018 Revision; United Nations: New York, NY, USA, 2018. [Google Scholar]
- Oke, T.R. The energetic basis of the urban heat island. Q. J. R. Meteorol. Soc. 1982, 108, 1–24. [Google Scholar] [CrossRef] [Scilit]
- Arnfield, A.J. Two decades of urban climate research: A review of turbulence, exchanges of energy and water, and the urban heat island. Int. J. Climatol. 2003, 23, 1–26. [Google Scholar] [CrossRef] [Scilit]
- Patz, J.A.; Campbell-Lendrum, D.; Holloway, T.; Foley, J.A. Impact of regional climate change on human health. Nature 2005, 438, 310–317. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Harlan, S.L.; Brazel, A.J.; Prashad, L.; Stefanov, W.L.; Larsen, L. Neighborhood microclimates and vulnerability to heat stress. Soc. Sci. Med. 2006, 63, 2847–2863. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bowler, D.E.; Buyung-Ali, L.; Knight, T.M.; Pullin, A.S. Urban greening to cool towns and cities: A systematic review of the empirical evidence. Landsc. Urban Plan. 2010, 97, 147–155. [Google Scholar] [CrossRef] [Scilit]
- Zardo, L.; Geneletti, D.; Perez-Soba, M.; Van Eupen, M. Estimating the cooling capacity of green infrastructures to support urban planning. Ecosyst. Serv. 2017, 26, 225–235. [Google Scholar] [CrossRef] [Scilit]
- Demuzere, M.; Orru, K.; Heidrich, O.; Olazabal, E.; Geneletti, D.; Orru, H.; Bhave, A.G.; Mittal, N.; Feliu, E.; Faehnle, M. Mitigating and adapting to climate change: Multi-functional and multi-scale assessment of green urban infrastructure. J. Environ. Manag. 2014, 146, 107–115. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Oke, T.R.; Crowther, J.M.; McNaughton, K.G.; Monteith, J.L.; Gardiner, B. The micrometeorology of the urban forest. Philos. Trans. R. Soc. B 1989, 324, 335–349. [Google Scholar] [CrossRef] [Scilit]
- Taha, H. Urban climates and heat islands: Albedo, evapotranspiration, and anthropogenic heat. Energy Build. 1997, 25, 99–103. [Google Scholar] [CrossRef] [Scilit]
- Astell-Burt, T.; Feng, X. Does access to neighbourhood green space promote a healthy duration of sleep? Eur. J. Public Health 2014, 24, 835–840. [Google Scholar]
- Markevych, I.; Schoierer, J.; Hartig, T.; Chudnovsky, A.; Hystad, P.; Dzhambov, A.M.; de Vries, S.; Triguero-Mas, M.; Brauer, M.; Nieuwenhuijsen, M.J.; et al. Exploring pathways linking greenspace to health: Theoretical and methodological guidance. Environ. Res. 2017, 158, 301–317. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wolch, J.R.; Byrne, J.; Newell, J.P. Urban green space, public health, and environmental justice. Landsc. Urban Plan. 2014, 125, 234–244. [Google Scholar] [CrossRef] [Scilit]
- Rigolon, A.; Browning, M.; Jennings, V. Inequities in the quality of urban park systems: An environmental justice investigation of cities in the United States. Landsc. Urban Plan. 2018, 178, 156–169. [Google Scholar] [CrossRef] [Scilit]
- Middel, A.; Chhetri, N.; Quay, R. Urban forestry and cool roofs: Assessment of heat mitigation strategies in Phoenix residential neighborhoods. Urban For. Urban Green. 2015, 14, 178–186. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Q.; Wentz, E.A.; Murray, A.T. Tree shade coverage optimization in an urban residential environment. Build. Environ. 2017, 115, 269–280. [Google Scholar] [CrossRef] [Scilit]
- Jennings, V.; Browning, M.H.; Rigolon, A. Neighborhood social and built environment features and green spaces: Advancing the field. Int. J. Environ. Res. Public Health 2019, 16, 1535. [Google Scholar]
- Osmond, P.; Sharifi, E. Spatial extent of park cooling effects: A systematic review. Urban Clim. 2024, 53, 101789. [Google Scholar]
- Cao, X.; Onishi, A.; Chen, J.; Imura, H. Quantifying the cool island intensity of urban parks using ASTER and IKONOS data. Landsc. Urban Plan. 2010, 96, 224–231. [Google Scholar] [CrossRef] [Scilit]
- Lin, W.; Yu, T.; Chang, X.; Wu, W.; Zhang, Y. Calculating cooling extents of green parks using remote sensing. Urban For. Urban Green. 2015, 14, 674–681. [Google Scholar]
- Rubin, D.B. Randomization analysis of experimental data: The Fisher randomization test comment. J. Am. Stat. Assoc. 1980, 75, 591–593. [Google Scholar] [CrossRef] [Scilit]
- Aronow, P.M.; Samii, C. Estimating average causal effects under general interference. Ann. Appl. Stat. 2017, 11, 1912–1947. [Google Scholar] [CrossRef] [Scilit]
- Kong, F.; Yin, H.; James, P.; Hutyra, L.R.; He, H.S. Effects of spatial pattern of greenspace on urban cooling. Landsc. Urban Plan. 2014, 128, 35–47. [Google Scholar] [CrossRef] [Scilit]
- Zhou, W.; Huang, G.; Cadenasso, M.L. Does spatial configuration matter? Understanding the effects of land cover pattern on land surface temperature in urban landscapes. Landsc. Urban Plan. 2011, 102, 54–63. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Song, C.; Cao, L.; Zhu, F.; Meng, X.; Wu, J. Impacts of landscape structure on surface urban heat islands. Landsc. Urban Plan. 2011, 102, 73–82. [Google Scholar] [CrossRef] [Scilit]
- Han, A.T.; Laurian, L.; Go, M.H. Evaluating the effects of greenway development on nearby property values. Landsc. Urban Plan. 2021, 208, 104038. [Google Scholar]
- Immerzeel, T.; Erb, K.H.; Haberl, H.; Krausmann, F. Causal machine learning for urban vegetation and health. Comput. Environ. Urban Syst. 2022, 94, 101772. [Google Scholar]
- Boeing, G. OSMnx: New methods for acquiring, constructing, analyzing, and visualizing complex street networks. Comput. Environ. Urban Syst. 2017, 65, 126–139. [Google Scholar] [CrossRef] [Scilit]
- Ye, H.; Guo, Z.; Liu, S.; Qiu, Z. A systematic review of urban form and land surface temperature. Landsc. Urban Plan. 2019, 181, 29–44. [Google Scholar]
- Naik, N.; Philipoom, J.; Raskar, R.; Hidalgo, C.A. Computer vision uncovers predictors of physical urban change. Proc. Natl. Acad. Sci. USA 2017, 114, 7571–7576. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dong, H.; Zhang, Y.; Zhang, B.; Zhang, Z.; Shao, Y.; Yuan, G.; Liu, H. A noise-robust xLSTM-based method for fault diagnosis in gas-insulated switchgear using acoustic signals under strong noise interference. Expert Syst. Appl. 2026, 304, 130827. [Google Scholar] [CrossRef] [Scilit]
- Sheng, Y.; Zhang, B.; Zhang, Z.; Shao, Y.; Yuan, G.; Liu, J.; Liu, H. A temporal-frequency contrastive learing method for acoustic-based mechanical fault detection in gas-insulated switch-gear. Nondestruct. Test. Eval. 2026, 41, 4541–4563. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Zhang, Z.; Guo, W.; Chen, W.; Liu, Z.; Liu, H. LRetUNet: A U-Net-based retentive network for single-channel speech enhancement. Comput. Speech Lang. 2025, 93, 101798. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Zhang, Z.; Yang, S.; Liu, S.; Wang, S.; Liu, H. Graph and frequency leverage: A novel coal gangue identification method. Eng. Res. Express 2025, 7, 025543. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Liu, H.; Shao, Y.; Yang, J.; Liu, S.; Yuan, G. CFENet: A contrastive frequency-sensitive learning method for gas-insulated switch-gear fault detection under varying operating conditions using acoustic signals. Eng. Appl. Artif. Intell. 2024, 135, 108835. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Ding, Y.; Chen, W.; Chen, Y.; Guo, W.; Liu, H. Multi-stage strength estimation network with cross attention for single channel speech enhancement. Signal Image Video Process. 2024, 18, 6937–6948. [Google Scholar] [CrossRef] [Scilit]
- Athey, S.; Imbens, G. Recursive partitioning for heterogeneous causal effects. Proc. Natl. Acad. Sci. USA 2016, 113, 7353–7360. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wager, S.; Athey, S. Estimation and inference of heterogeneous treatment effects using random forests. J. Am. Stat. Assoc. 2018, 113, 1228–1242. [Google Scholar] [CrossRef] [Scilit]
- Athey, S.; Tibshirani, J.; Wager, S. Generalized random forests. Ann. Stat. 2019, 47, 1148–1178. [Google Scholar] [CrossRef] [Scilit]
- Chernozhukov, V.; Chetverikov, D.; Demirer, M.; Duflo, E.; Hansen, C.; Newey, W.; Robins, J. Double/debiased machine learning for treatment and structural parameters. Econom. J. 2018, 21, C1–C68. [Google Scholar] [CrossRef] [Scilit]
- Davis, J.M.; Heller, S.B. Rethinking the benefits of youth employment programs. Am. Econ. Rev. 2017, 107, 3247–3282. [Google Scholar]
- Knaus, M.C.; Lechner, M.; Strittmatter, A. Machine learning estimation of heterogeneous causal effects. Econom. J. 2021, 24, 134–161. [Google Scholar] [CrossRef] [Scilit]
- Athey, S.; Wager, S. Policy learning with observational data. Econometrica 2021, 89, 133–161. [Google Scholar] [CrossRef] [Scilit]
- Imai, K.; Keele, L.; Tingley, D. A general approach to causal mediation analysis. Psychol. Methods 2010, 15, 309–334. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- VanderWeele, T.J. Bias formulas for sensitivity analysis for direct and indirect effects. Epidemiology 2010, 21, 540–551, Erratum in Epidemiology 2011, 22, 134. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- NYC Open Data. 2005 Street Tree Census. Available online: https://data.cityofnewyork.us/Environment/2005-Street-Tree-Census/29bw-z7pj (accessed on 26 September 2026).
- NYC Open Data. 2015 Street Tree Census—Tree Data. Available online: https://data.cityofnewyork.us/Environment/2015-Street-Tree-Census-Tree-Data/uvpi-gqnh (accessed on 26 September 2026).
- U.S. Geological Survey. How Do I Use a Scale Factor with Landsat Level-2 Science Products? Available online: https://www.usgs.gov/faqs/how-do-i-use-a-scale-factor-landsat-level-2-science-products (accessed on 26 September 2026).
- U.S. Geological Survey. Landsat Collection 2 Quality Assessment Bands. Available online: https://www.usgs.gov/landsat-missions/landsat-collection-2-quality-assessment-bands (accessed on 26 September 2026).
- VanderWeele, T.J.; Ding, P. Sensitivity analysis in observational research: Introducing the E-value. Ann. Intern. Med. 2017, 167, 268–274. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lipsitch, M.; Tchetgen Tchetgen, E.; Cohen, T. Negative controls: A tool for detecting confounding and bias in observational studies. Epidemiology 2010, 21, 383–388. [Google Scholar] [CrossRef] [Scilit]
- Cinelli, C.; Hazlett, C. Making sense of sensitivity: Extending omitted variable bias. J. R. Stat. Soc. B 2020, 82, 39–67. [Google Scholar] [CrossRef] [Scilit]
- LeSage, J.; Pace, R.K. Introduction to Spatial Econometrics; CRC Press: Boca Raton, FL, USA, 2009. [Google Scholar]
- Nesbitt, L.; Meitner, M.J.; Girling, C.; Sheppard, S.R.; Lu, Y. Who has access to urban vegetation? A spatial analysis of distributional equity. Landsc. Urban Plan. 2020, 181, 51–79. [Google Scholar] [CrossRef] [Scilit]
- Lewis, G.; Syrgkanis, V. Double/debiased machine learning for dynamic treatment effects. Adv. Neural Inf. Process. Syst. 2021, 34, 22695–22707. [Google Scholar]
- Viviano, D.; Bradic, J. Fair policy targeting. J. Am. Stat. Assoc. 2024, 119, 730–742. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 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.




