Abstract
Machine learning models of soil metal contamination are usually fitted to one element at a time and validated by randomly partitioning spatially autocorrelated samples. This proof-of-concept study tested both practices in the Greensboro, North Carolina study area, where lead, cadmium, zinc, selenium and copper were measured at 475 residential locations and predicted from housing, proximity, soil, land-cover and neighbourhood covariates. Ten multi-output specifications were compared with single-output refits and with mean-only, linear, tract-mean and kriging baselines over repeated random and spatially blocked partitions. Joint prediction gave a small gain that came from shrinking the elements without covariate signal rather than from transferring information to those with it. Performance collapsed under geographic separation: out-of-fold R2 for lead fell from 0.59 under random partitioning to 0.02 under spatial blocking, and cadmium retained the strongest positive blocked R2. Blocked performance did not rise toward useful skill as training tracts were added, and bootstrap intervals confirmed that zinc and selenium carry no detectable spatial structure. Ordinary kriging outperformed the covariate model for lead under a random split and failed under blocking. Covariate-based prediction does not survive geographic separation in this study area, and a variogram computed before modelling anticipates which elements are worth modelling.
1. Introduction
Urban residential soils act as long-term reservoirs for metals deposited by historical and contemporary anthropogenic activity. Lead persists for decades in soils adjacent to older housing stock, along historic traffic corridors, and near former industrial operations, and remains an exposure pathway long after the originating source has been controlled [1,2,3,4,5,6]. Cadmium, zinc, selenium, and copper enter residential soils through partly overlapping and partly distinct routes, including atmospheric deposition, vehicle wear, galvanized material corrosion, fertilizer and pesticide application, and waste handling [7,8,9,10,11]. Because these elements co-occur and share some sources, characterizing them jointly is more informative than characterizing any one of them alone.
Direct measurement of soil metals at the household scale is expensive, so coverage is sparse relative to the number of residential parcels in a city, and a substantial literature predicts soil metal concentrations from more widely available spatial, property and environmental covariates using machine learning [12,13,14,15,16]. Urban soils are strongly heterogeneous over short distances, with diffuse background contamination overlaid by point sources that follow a long history of land-use change, which makes them difficult to model from covariates [7,10]. Most of that literature shares two features. Models are usually fitted one element at a time, so information shared among co-occurring metals is discarded and the relative predictability of elements under a common specification is never established. And performance is almost always estimated by randomly partitioning samples into training and testing subsets; because soil metal concentrations are spatially autocorrelated, a random partition places adjacent samples on both sides of the split and allows a model to reproduce local structure rather than generalize to unsampled areas [17,18,19,20].
Multi-end, or multi-output, learning addresses the first limitation by predicting several targets from a shared representation [21], and ensemble learning strategies such as stacking and snapshot ensembling have been used to improve the stability of such predictions [22,23]. Whether a single multi-output model serves all co-occurring metals equally well is an open question, because elements differ both in how much of their variation is explained by place-based covariates and in the analytical resolution with which they are measured. The second limitation is addressed by spatially blocked validation, in which held-out observations are geographically separated from training observations, but this design is not yet standard in soil contamination prediction [17,24].
This study is a proof-of-concept evaluation of a multi-end machine learning framework in a single, intensively sampled study area: Greensboro, North Carolina, a medium-sized southeastern city in which five metals were measured at 475 georeferenced residential locations in a household-scale soil survey with documented spatial heterogeneity in residential soil lead [25]. Its purpose is methodological: to establish, in one well-characterized city, how the answers to four questions depend on validation design before the framework is applied to larger multi-element datasets. Does predicting five co-occurring metals jointly improve on predicting each separately? What sets the ceiling on each element, and how far does element-specific performance follow the spatial structure of the element itself? How much does apparent performance change when validation separates training and testing locations geographically rather than at random, and how stable is that contrast across realizations? And how do covariate models compare with purely spatial baselines, and does the fitted model transfer to a second city?
2. Materials and Methods
2.1. Study Area and Soil Sampling
The study area is Greensboro, North Carolina, a city of approximately 300,000 residents in Guilford County that developed as a railroad and textile manufacturing centre rather than as a heavy-industry city. Soil was sampled at 475 georeferenced residential locations in a field campaign designed to characterize the city as a whole. Households were recruited door to door in selected census blocks within each of the city’s 16 residential zip codes, with blocks eligible if they contained at least five residential properties and with apartment buildings and parcels without sampleable soil excluded; enrollment was based on resident interest, with referral of adjacent households in some neighbourhoods, so the sample combines convenience and referral-based recruitment rather than probability selection [25]. Sampling took place between April and August 2019 with the agreement of the participating residents, under a protocol reviewed by the North Carolina A&T State University Institutional Review Board. At each residence five bare-soil samples were collected from the upper 5 cm, one at the building dripline, three in the yard and one at the street side, 2310 field samples in the parent study [25]; the location-level file analyzed here carries one concentration per element for each location (Section 2.2). Soil from 462 residences was reported in the parent study; the remaining 13 were collected in the same 2019 campaign and analyzed after that publication with the same field and laboratory procedures, and their predictor values come from the same sources as every other location.
Greensboro lies on the Piedmont upland, where soils have formed in saprolite weathered from felsic, intermediate and mafic crystalline rocks [26]. According to the USDA NRCS Soil Survey Geographic (SSURGO) database for Guilford County, the 475 locations fall on 22 soil map units, 422 of them (88.8%) on urban land or on complexes of a named series with urban land, in which the natural profile has been cut, filled or covered over part of the unit (Table S15). The dominant units are the Enon–Urban land (289 locations, 60.8%) and Mecklenburg–Urban land (62, 13.1%) complexes, whose named components are fine, mixed, active, thermic Ultic Hapludalfs (Alfisols) with clayey subsoils; the Cecil–Urban land (26) and Vance–Urban land (24) complexes are Typic Kanhapludults and Typic Hapludults (Ultisols). In soil-order terms, 386 locations (81.3%) are on Alfisols, 64 (13.5%) on Ultisols, 4 on Inceptisols (Chewacla loam, a floodplain soil) and 21 on urban land without a taxonomic class [27]. The soil pH, organic matter, sand and clay predictors (Section 2.3) are the map-unit component averages for these units.
Each sample was assigned to the census tract whose boundary contains its coordinates, by a point-in-polygon match against the TIGER/Line 2010 tract polygons, so tract membership follows the official tract definition [28,29]; on those boundaries, the 475 locations fall within 36 tracts. Tract membership matters here because the tract defines the contiguous blocks used for spatially blocked cross-validation (Section 2.6). The tract set is therefore determined by where soil was sampled, which is why it differs from the tract sets of companion analyses of the Greensboro study area that are defined by the coverage of a tract-level outcome.
2.2. Metal Determination
The five metal concentrations were determined following the analytical procedure documented for the Greensboro soil survey [25]: a Thermo Scientific Niton XL2 800 X-ray fluorescence (XRF) analyzer (Thermo Fisher Scientific, Waltham, MA, USA) operated according to U.S. Environmental Protection Agency Method 6200 [30], as in other urban soil XRF screening studies [31,32]. The parent study described quality-control procedures involving a National Institute of Standards and Technology (NIST) soil reference material, with measurements evaluated against a ±10% acceptance criterion, and approximately 10% of soil samples were additionally analyzed by inductively coupled plasma optical emission spectroscopy (ICP-OES) [25]; that report does not give element-specific performance for cadmium and selenium. The present study is a secondary analysis of the curated location-level file assembled for the parent study, which carries one concentration per element per location, as in the companion analyses of the Greensboro study area [33,34]. That file retains measured concentrations but does not retain instrument detection limits, qualification limits or below-detection flags, so element-specific limits and an element-resolved comparison of XRF against ICP-OES cannot be reported here. Lead, zinc and copper are recorded in mg/kg and cadmium and selenium in µg/kg, following the reporting conventions of the source dataset and the units carried by the companion analyses of that same file [33,34]. Handheld XRF is least sensitive to cadmium and selenium in soil matrices [35,36,37], and both elements are recorded at coarse resolution in this file, with 41 and 44 distinct values across the 475 samples (Section 3.1). Fifty-two of the 475 selenium records share a single value of 2.83 µg/kg, more than an order of magnitude below the next lowest observed value of 128 µg/kg, a pattern consistent with substitution of non-detects in the source file [38,39] rather than with measured concentrations; these values were carried into the analysis as held and the treatment of this floor is examined in sensitivity analyses (Section 2.4). Cadmium and selenium were therefore treated throughout as exploratory environmental indicators, because of the analytical uncertainty associated with their measurement and detection limits, as in the companion analyses of the Greensboro study area [25,33,34], and no conclusion in this study rests on them.
2.3. Predictor Assembly
Predictors were assembled into five prespecified domains. Housing and property variables comprised year of construction, taxable assessed value, and market valuation, obtained from parcel records. Road and airport proximity variables comprised Euclidean distance from each sampling location to Piedmont Triad International Airport and to the nearest major road. These are straight-line distances and index position within the city rather than access in the transport-planning sense. Soil physicochemical variables comprised pH, organic matter content, and sand and clay fractions obtained from the USDA NRCS Soil Survey Geographic database. Because sand, silt, and clay are compositional and sum to 100%, silt was excluded to avoid exact redundancy. Land cover and soil class comprised existing vegetation type and soil series symbol, one-hot encoded with levels retaining at least ten observations. Neighbourhood context comprised total population, population density, and the proportions of residents identifying as White, Black, Hispanic or Latino, and American Indian, obtained from census block summaries. The encoded predictor matrix contained 27 columns (15 continuous and 12 indicators for six vegetation types and six soil map units).
Housing and property values were taken from Guilford County parcel records for tax year 2020 and from Zillow Zestimates of about the same period, and were checked against the county tax records. Where a sampling location falls on a parcel that is not a single-family house, no household-level property value exists; those entries are left missing and filled by median imputation within training folds, which is adequate before a flexible learner [40].
Soil samples were collected between April and August 2019 (Section 2.1) and the predictor sources bracket that date: parcel attributes are from tax year 2020, block demographics from the 2010 Census, and the soil survey (SSURGO content date 2008, with the current release used for the 13 locations whose values were rebuilt) and LANDFIRE 2010 vegetation layers are static map products (Table S1). Year of construction and the soil and vegetation attributes do not change over this interval, and assessed and market values index a parcel’s position in the city’s housing-value distribution, which is stable over a decade. Block composition can change between 2010 and 2019, but because the measured metals are legacy accumulations deposited over decades, misalignment of this kind adds measurement error to a predictor rather than creating an association with the outcome, and its expected effect is to attenuate rather than inflate out-of-fold performance (Section 4.5).
2.4. Preprocessing
All five metal concentrations were transformed as log(1 + x) before modelling, in the units in which each element is reported (mg/kg for lead, zinc and copper; µg/kg for cadmium and selenium). The difference between log(1 + x) and log(x) is log(1 + 1/x), which at the smallest reported value of each element ranges from 0.027 (zinc) to 0.303 (selenium) and is at most 0.012 at the median of every element; because R2 is not invariant to the choice, the Extra Trees multi-output specification was refitted on log(x) over all realizations, and element-specific R2 differed by at most 0.004 under random partitioning and 0.007 under spatial blocking (Table S16). Predictors were median-imputed and scaled to the interval from −1 to 1; the only missing values are the taxable and market values of 11 non-residential parcels and the year of construction of two parcels without a structure. All preprocessing was fitted within training folds only and applied to held-out folds. Because 52 selenium values (10.9%) sit at the lowest reported concentration of 2.83 µg/kg, selenium was refitted as a sensitivity analysis with that group substituted at 90.5 µg/kg and with it excluded (Table S12). The value 90.5 µg/kg is 128/√2, the smallest detected selenium concentration divided by √2, the conventional substitution for censored values [38,39]; because the originating limit is not recorded in the file, the smallest detected value is taken as the censoring reference, the same convention used in the companion analysis of the Greensboro study area [34]. The analysis is reported as a sensitivity check under two alternative treatments rather than as a correction.
2.5. Multi-End Model Architecture
Base learners were fully connected neural networks with a five-unit output layer producing all five metal predictions from a shared hidden representation: five architectures (64–32, 128–64, 64–64–32, 96–48 and 128–32 units) with rectified linear activations, the Adam optimizer (initial learning rate 0.005), an L2 penalty of 10−3 and early stopping on a 15% internal validation split. Four ensemble strategies were compared: simple averaging of the base learners; snapshot ensembling of a single 128–64 network trained for ten cycles of 40 epochs under a cyclic cosine-annealed learning rate, averaging the models saved at the end of the final five cycles [23]; integrated stacking, a seven-unit neural meta-model trained on out-of-fold base-learner predictions from internal five-fold cross-validation [22]; and separate stacking, the same meta-features with decision tree, gradient boosting, random forest, AdaBoost and bagging meta-models. Multi-output Random Forest [41] and Extra Trees [42] regressors (500 trees, minimum two samples per leaf) were included as conventional benchmarks. All ten specifications were trained and evaluated on identical data and identical partitions.
2.6. Validation Design
Two validation schemes were applied to every specification. The random scheme used five-fold cross-validation with observations assigned to folds at random, the conventional design in this literature. The spatial scheme withheld contiguous, size-balanced blocks of whole census tracts, so that all samples in a block were held out together and held-out locations were geographically separated from training locations [17,24]. The primary spatial partition ordered the 36 tract centroids along the first principal component of their standardized coordinates and split them into five groups of approximately equal sample size, giving blocks of 41 to 124 samples with median held-out-to-training distances of 561 m to 1849 m (Figure 1; Table S4).
Figure 1.
Residential soil sampling locations across Greensboro, North Carolina, coloured by the five contiguous spatial validation blocks of the primary spatially blocked cross-validation partition. Axis coordinates are not shown and a scale bar is given instead, so that individual sampling locations cannot be georeferenced.
Because a single partition is one realization of an arbitrary choice, performance was estimated over repeated realizations of both schemes: 10 random fold assignments (seeds 1 to 10) and 20 block partitions from the same family as the primary one, strips perpendicular to the first and second principal components and to 18 further directions, with four, five or six blocks of at least 41 samples each (Table S10). Results are reported as the mean and standard deviation across realizations, and the contrast between the two schemes is reported as a primary result rather than as a robustness check.
Contiguous blocks share boundaries, so held-out samples near a block edge have training neighbours within a few hundred metres (Table S4). To test how the random-against-blocked contrast depends on that distance, a buffered variant of both designs was added following the spatial k-fold (“dead zone”) approach [17,43,44]: training samples within 250, 500, 1000 or 2000 m of any held-out sample were removed before fitting, and the Extra Trees multi-output specification was refitted under each buffer over all realizations. Under spatial blocking the buffer removes few training samples (mean training size 378 with no buffer, 321 at 1000 m and 213 at 2000 m). Under random partitioning almost every sample has a neighbour within 250 m, so the same buffer removes most of the training set (104 at 250 m, from 380); each buffered random result is therefore paired with a control in which the same number of training samples is removed at random (Section 3.6, Table S13).
To test whether blocked performance is limited by the number of training locations, a learning curve was computed under both designs. For every fold of every realization the Extra Trees multi-output specification was refitted on 40%, 60%, 80% and 100% of the training data, drawn at random by whole census tracts under spatial blocking and by sample under random partitioning, with three independent draws at each fraction below 100%; held-out predictions were pooled and scored as in Section 2.9 (Section 3.7). A curve that rises with training size indicates that more locations would raise performance; a flat curve indicates that the limit lies in the information the covariates carry rather than in the sample size.
2.7. Spatial Structure of the Outcomes
The spatial structure of each metal was characterized independently of any model, because it bounds what a place-based covariate model can achieve. Sample coordinates were projected to metres and empirical semivariograms [45] were computed on the log-transformed concentrations in 15 distance bins out to 13.7 km, half the maximum separation. Each variogram is reported standardized by the sample variance of that element, so that a value of one corresponds to no spatial structure at that separation, and an exponential model with a nugget was fitted by weighted least squares [46]. The share of variance that is spatially structured is summarized as one minus the standardized semivariance at the shortest observed lag. Global spatial autocorrelation was tested with Moran’s I [47] on row-standardized eight-nearest-neighbour weights, with a p-value from 999 random permutations of the observed values. Because these statistics are point estimates for five elements, 95% percentile intervals were obtained for Moran’s I and for the standardized semivariance at the shortest lag by a nonparametric bootstrap of the 475 locations (2000 resamples) in which the neighbour graph and the lag pairs are held at their observed definitions and the resampled multiplicities enter as weights. An element whose interval for Moran’s I covers zero, or whose interval for the standardized semivariance covers one, has no detectable spatial structure at the precision the sample affords (Section 3.2; Table S17).
2.8. Benchmark Models
Six benchmarks were evaluated under both validation schemes on identical folds, so that the contribution of the covariates and of the learning algorithm can be separated. The mean-only baseline predicts the training-fold mean at every held-out location; because pooled out-of-fold R2 is computed against the mean of all 475 observations (Section 2.9), it scores exactly zero only when training and held-out means coincide, which they nearly do under random partitioning but not under spatial blocking, so Section 3.6 reports the empirical values rather than the nominal zero. Two linear benchmarks were fitted by ordinary least squares, on the two predictors that dominate the lead sensitivity analysis (year of construction and distance to the airport) and on all 27 predictors. Two purely spatial benchmarks use no covariates: a tract-mean predictor, which returns the training-set mean of the census tract containing the held-out location and falls back to the global training mean when that tract is entirely held out, as it always is under spatial blocking; and ordinary kriging [45] on the sample coordinates, with an exponential variogram refitted within each training fold. Regression kriging [46] combines the two sources of information: the Extra Trees multi-output specification supplies the covariate trend, its residuals on the training fold are obtained out-of-fold by an inner five-fold split so that they are not shrunk by in-sample fit, an exponential variogram is fitted to those residuals and they are kriged to the held-out locations and added to the trend. The two leading multi-output specifications were additionally refitted as single-output models, one per metal, with identical preprocessing, folds and hyperparameters, so that the benefit of joint prediction is measured as a paired difference. To isolate the mechanism behind any multi-output gain, two single-output controls with an explicit shrinkage device were added: the single-output Extra Trees predictions blended toward the training-fold mean, ŷλ = (1 − λ)·ŷ + λ·ȳtrain, for λ of 0.1 to 0.5, and a single-output ridge regression on all 27 predictors with the penalty chosen by leave-one-out cross-validation within each training fold (Section 3.4, Table S14).
2.9. Performance Metrics
Mean absolute error, mean squared error, root mean squared error and the coefficient of determination were calculated per metal from pooled out-of-fold predictions. Out-of-sample R2 compares model error with the error of a mean-only prediction and is not bounded below at zero, so the root mean squared error of the mean-only baseline is reported alongside every R2. Zero is the score of the global mean, not of that baseline, which predicts the training-fold mean and scores zero only when the training and held-out means coincide (Section 2.8, with the empirical values in Section 3.6); comparisons with the baseline are therefore made against its empirical score rather than against zero. Pooled out-of-fold R2 is computed against the global mean throughout; where a single block is withheld, the held-out block’s own mean is the harder baseline, and both are reported and labelled (Table S5).
2.10. Sensitivity Analysis and Partial Dependence
Variance-based sensitivity analysis used total-order Sobol indices [48] computed per metal on a Random Forest surrogate (600 trees) fitted to all 475 locations, with Saltelli sampling of 1024 base samples across the scaled predictor space and the total-order estimator of Saltelli et al. [49] as implemented in SALib [50], seeded for reproducibility; negative estimates arising from Monte Carlo error were set to zero and indices were aggregated within the five predictor domains. Sensitivity results are interpreted only for elements whose spatially blocked R2 exceeds zero, because a variance decomposition of a surrogate that does not predict its outcome out-of-sample describes the surrogate rather than the soil; on that criterion, lead and cadmium are interpreted and zinc, selenium and copper are reported in Table S7 for completeness. Because Sobol samples are drawn independently across the predictor space, they include combinations that do not occur in the data. Partial dependence [51] was computed for the highest-ranked predictor of each metal and SHapley Additive exPlanations (SHAP) values [52,53] on the same surrogates at the observed data. These analyses describe fitted models and do not identify causal effects; the race and ethnicity proportions enter as indices of neighbourhood residential history and housing-stock age in a city with a documented pattern of segregated development, not as characteristics of residents, and carry no causal reading.
2.11. Exceedance Classification Design
A parallel classification arm was fitted to threshold exceedance, which is less sensitive to discrete measurement resolution. Thresholds were the U.S. EPA 2024 residential soil lead screening levels of 200 mg/kg (default) and 100 mg/kg (properties with additional lead sources) [54], the Dutch target value of 140 mg/kg for zinc and the Dutch intervention value of 190 mg/kg for copper [55]. A Random Forest classifier (600 trees, balanced class weights) was fitted for each threshold with the same within-fold preprocessing and evaluated under both schemes, for the primary realization and over all realizations. Performance was summarized by the area under the receiver operating characteristic curve (AUC), balanced accuracy and F1 score at a predicted probability of 0.5.
2.12. External Transfer Test
To test whether the fitted relationships transfer beyond Greensboro, the Extra Trees specification was applied to a publicly released dataset from Lafayette, Louisiana [56,57,58]: 1290 composite topsoil samples (0–2.5 cm) collected in 2021–2023 and measured by portable XRF (Thermo Niton XL2 800 Analyzer; Thermo Fisher Scientific, Waltham, MA, USA, stated detection limit 8 mg/kg), of which the 736 residential samples were used as the closest analogue of the Greensboro yard samples. Cadmium was below detection in 98.4% of them and selenium was not measured, so the test covers lead, zinc and copper, with non-detects (lead 3, copper 75) substituted at the detection limit divided by √2 [38,39]. Coordinates are withheld in the public release and concentrations are identified only by 2010 census tract, so the test is ecological: a tract-level prediction from tract-level covariates is compared with the observed tract median over the 23 tracts with at least ten residential samples that could be matched to a single 2010 tract (718 samples). Tract covariates were taken from the American Community Survey 2020–2024 five-year estimates [59] and transferred to 2010 tracts with the Census Bureau 2020–2010 tract relationship file; median year structure built stood in for year of construction and median owner-occupied home value for market valuation, and distance to the airport was measured from the tract internal point to Lafayette Regional Airport.
Because 18 of the 27 predictors (the soil properties, distance to major roads, block population and the vegetation and soil map-unit indicators specific to Guilford County) have no Lafayette equivalent, the specification was refitted on the eight predictors measurable in both cities: year of construction, taxable assessed value, median home value, population density and the four population proportions. Taxable value in Lafayette can only be approximated as home value multiplied by the Greensboro median taxable-to-market ratio (0.741), so it carries no independent information there, and distance to the airport was excluded because in Greensboro it acts as a city-specific geographic proxy. The full 27-predictor model with the unavailable predictors held at Greensboro medians returns the Greensboro central tendency by construction and is reported only to quantify the offset. For a within-city reference on the same footing, each held-out tract of the primary spatial partition with at least five samples was predicted from its tract-median covariates and compared with its observed median. Agreement was summarized by Spearman rank correlation with a 95% bootstrap interval (2000 resamples of tracts), by R2 on the log scale and by the ratio of predicted to observed concentration, with house-foundation medians as a sensitivity analysis; no multiplicity adjustment was applied to the seven rank correlations, and the transfer results are exploratory.
All analyses were conducted in Python 3.13 using scikit-learn 1.9.1 [60], SALib 1.6 [50], SHAP 0.53 [52], NumPy and SciPy [61], with a fixed random seed of 42 for model fitting. Variograms, ordinary kriging and Moran’s I were implemented directly on NumPy and SciPy. The snapshot ensemble, which is refitted one epoch at a time under a changing learning rate, varies at the second decimal across floating-point environments and is reported to two decimals throughout.
3. Results
3.1. Descriptive Statistics and Measurement Resolution
Table 1 reports the distribution of each metal across the 475 sampling locations. Lead ranged from 10.8 to 416.2 mg/kg with a median of 97.8 mg/kg and the mildest right skew of the five elements on the measured scale (0.95). Zinc, copper and selenium were strongly right-skewed (2.48 to 3.76), and cadmium was approximately symmetric across its observed range.
Table 1.
Descriptive statistics for the five soil metal outcomes across 475 residential sampling locations.
Analytical resolution differed sharply among the five elements (Table 2, Figure 2). Lead took 372 distinct values across 475 samples, with the ten most frequent values accounting for 7.4% of observations; the other four elements took 41 to 72 distinct values, with the ten most frequent accounting for 60.6% to 83.6%. Tied values were distributed across the study area rather than clustered within tracts, indicating analytical discretization rather than spatial structure. Fifty-two selenium observations (10.9%) share the lowest reported concentration of 2.83 µg/kg, below the next lowest of 128 µg/kg; cadmium is reported in two groups separated by the interval between 60 and 106 µg/kg, with 184 observations below it and 291 above (Table S8); and 41 zinc observations (8.6%) sit at its minimum of 37 mg/kg, which may reflect a reporting floor. A target discretized into a small number of levels limits the variance available to be explained, independently of whether a real relationship exists.
Table 2.
Measurement resolution by element, n = 475 samples.
Figure 2.
Analytical resolution of the five metals. (a) Cumulative share of the 475 samples accounted for by the most frequent distinct measured values; the dashed line marks the ten most frequent values. (b) Number of distinct measured values per element.
3.2. Spatial Structure of the Five Metals
The five elements differ sharply in how much of their variation is spatially organized (Table 3, Figure 3). Lead is the only element with pronounced structure: its standardized semivariance is 0.72 at the shortest observed lag of 0.5 km, so 28% of its variance is spatially structured at that separation, and Moran’s I for lead is 0.577 (p = 0.001). Cadmium and copper show weak but detectable autocorrelation (Moran’s I = 0.166 and 0.156, both p = 0.001) with standardized semivariograms that are nearly flat, corresponding to structured shares of 5.0% and 9.3%. Zinc and selenium show no detectable spatial structure at all: their standardized semivariograms sit at one across the full range of separations, and Moran’s I is −0.027 (p = 0.203) for zinc and 0.028 (p = 0.197) for selenium. The bootstrap intervals make these nulls estimates with stated precision (Table 3): for zinc Moran’s I is −0.027 (95% interval −0.094 to 0.043) and the standardized semivariance at 0.5 km 0.99 (0.88 to 1.09); for selenium the corresponding values are 0.028 (−0.034 to 0.098) and 1.04 (0.90 to 1.18). Both intervals cover the no-structure values of zero and one, whereas for lead they exclude them by a wide margin (0.577, 0.455 to 0.692; 0.72, 0.60 to 0.84). At 0.5 km the standardized semivariance is 0.91 to 1.04 for cadmium, zinc, selenium and copper: for four of the five elements, locations half a kilometre apart differ almost as much as locations drawn at random from the city, which is a direct measurement of the short-distance variability that characterizes urban soils [7] (Section 4.4).
Table 3.
Spatial structure of the five metals. Column headings are abbreviated; definitions follow in the note.
Figure 3.
Spatial structure of the five metals. (a) Empirical semivariograms of the log-transformed concentrations, each standardized by the sample variance of that element, so that a value of one corresponds to no spatial structure at that separation. (b) Moran’s I on row-standardized eight-nearest-neighbour weights, with p-values from 999 permutations. Lead is the only element with pronounced spatial structure; zinc and selenium show none.
This ordering anticipates the modelling results. Place-based covariates can only recover variation that is organized in space, so an element with no spatial autocorrelation sets a ceiling near zero for any model built from location, housing and neighbourhood attributes, whatever the algorithm. With five elements, the correspondence between spatial structure and blocked performance (Section 3.5) is descriptive rather than a test, but it identifies spatial structure, and not model capacity, as the binding constraint in the Greensboro study area.
The selenium figures in Table 3 depend on how its lowest reported values are handled. If those 52 values are substituted at 90.5 µg/kg, the selenium variance on the log scale falls from 1.780 to 0.342, Moran’s I rises from 0.028 (p = 0.197) to 0.051 (p = 0.016) and the structured share from below zero to 6.8%; excluding them gives 0.033 (p = 0.132) on the 423 retained samples (Table S12). Selenium therefore carries at most weak spatial structure, an order of magnitude below lead and below cadmium, and the value carried for its lowest group governs its apparent spread.
Variance is the sample variance of the log-transformed concentrations. 95% CI: percentile interval from 2000 bootstrap resamples of the sampling locations (Section 2.7; Table S17). Semivariograms are computed on log-transformed concentrations in 15 distance bins out to 13.7 km and standardized by the sample variance of each element, so a standardized semivariance of one indicates no spatial structure at that separation. The spatially structured share is one minus the standardized semivariance at the shortest observed lag; a negative value indicates no structure. The fitted range is from an exponential model with a nugget and is reported only where the model is identifiable. Moran’s I uses row-standardized eight-nearest-neighbour weights with p from 999 permutations.
3.3. Model Comparison
Mean out-of-fold R2 across the five metals for all ten specifications and both designs is given in Table 4 and Figure 4 for the primary realization of each design. Under random partitioning the two tree ensembles performed best (Random Forest 0.145, Extra Trees 0.134) and every ensemble strategy built on neural base learners fell below them. Under spatially blocked partitioning every specification fell to zero or below except the random-forest and AdaBoost separate-stacking strategies at 0.002; Extra Trees reached −0.016, Random Forest −0.028 and the snapshot ensemble −0.98. The ordering of specifications was broadly preserved between designs; the magnitude of performance was not.
Table 4.
Mean out-of-fold R2 across the five metals for all ten multi-output specifications under random and spatially blocked five-fold cross-validation, for the primary realization of each design. Realization-to-realization variability for the two tree ensembles is given in Table 5.
Figure 4.
Mean out-of-fold R2 across the five metals for all ten specifications under (a) random five-fold cross-validation and (b) spatially blocked five-fold cross-validation, for the primary realization of each design. Bars below zero indicate specifications that did not improve on a mean-only prediction; bars are truncated at −0.6 and values below that are printed inside the bar. Realization-to-realization variability for the two tree ensembles is given in Table 5 and Figure 5a.
Over 10 random and 20 spatial partitions (Table 5, Figure 5a), Extra Trees averaged 0.116 (SD 0.014) and −0.013 (SD 0.018) and Random Forest 0.143 (SD 0.010) and −0.010 (SD 0.025); the primary blocked partition ranked eighth of 20 for Extra Trees and 15th for Random Forest. Under spatial blocking the standard deviation across realizations is as large as the mean itself, so a single blocked partition does not estimate blocked performance with useful precision; the difference between the two tree ensembles is not resolvable, and no ranking among specifications is interpreted under that design.
Table 5.
Out-of-fold R2 by metal for the two tree ensembles, as multi-output and single-output models, averaged over 10 random partitions and 20 spatially blocked partitions. Values are the mean (standard deviation) across realizations.
Figure 5.
Validation design and spatial baselines. (a) Mean out-of-fold R2 across the five metals for each of 10 random partitions and 20 spatially blocked partitions; the vertical bar is the mean across realizations and the open diamond is the single partition reported in Table 4. (b) Lead out-of-fold R2 for the covariate models and for baselines that use no covariates, under both designs. Under random partitioning, ordinary kriging on coordinates alone exceeds the full covariate model; under spatial blocking, it falls below the mean-only baseline, which the covariate model exceeds only marginally. In (a), blue marks the random-partition realizations and orange the spatially blocked realizations; the open diamond is the primary single realization and the vertical bar the mean over realizations.
3.4. Does Joint Prediction Help?
Refitting the two tree ensembles as single-output models on identical folds answers the premise of multi-end learning directly (Table 6). Joint prediction gives a small but consistent gain in the five-metal mean. For Extra Trees the paired difference is +0.025 (SD 0.006) under random partitioning, favouring joint prediction in 10 of 10 realizations, and +0.034 (SD 0.014) under spatial blocking, favouring it in 20 of 20. For Random Forest the differences are +0.010 (SD 0.005) and +0.037 (SD 0.007), favouring joint prediction in 10 of 10 and 20 of 20 realizations.
Table 6.
Paired difference in out-of-fold R2 between multi-output and single-output fits of the same specification on identical folds. Positive values favour joint prediction.
The element-specific pattern shows where the gain comes from, and it is not where the multi-end rationale predicts. Under random partitioning with Extra Trees, lead (0.589 against 0.610) and cadmium (0.318 against 0.338) are slightly worse under joint prediction, while zinc (−0.319 to −0.186), selenium (−0.229 to −0.210) and copper (0.051 to 0.068) improve: the benefit accrues to the elements without recoverable signal and takes the form of predictions shrunk toward the mean, which reduces a negative R2 without producing a positive one. Under spatial blocking joint prediction raises lead from −0.061 to 0.015 and lowers cadmium from 0.200 to 0.132. The two controls of Section 2.8 confirm this reading (Table S14): blending the single-output Extra Trees predictions toward the training mean with λ = 0.1 reproduces the multi-output pattern for zinc, selenium, copper and lead and gives a five-metal mean of 0.114 against 0.116 (λ = 0.2 gives −0.011 against −0.013 under blocking), and single-output ridge regression likewise removes the penalty a noisy prediction pays against the mean-only baseline without producing a positive R2 for zinc or selenium under either design. Cadmium is the exception: blending raises it (0.338 to 0.346) whereas joint prediction lowers it, so its loss is not a shrinkage effect and most plausibly reflects shared tree structure driven by the other targets. Joint prediction here acts as a regularizer on unpredictable targets rather than as a channel that transfers information to the predictable ones, and for cadmium it is harmful.
3.5. Element-Specific Performance
Aggregate performance conceals substantial variation among the five metals (Table 7, Figure 6). Averaged over realizations, Extra Trees predicted lead with an R2 of 0.589 (SD 0.009) under random partitioning but 0.015 (SD 0.043) under spatial blocking, and cadmium with 0.318 (SD 0.018) and 0.132 (SD 0.019). Zinc and selenium did not improve on a mean-only baseline under either design, and copper reached 0.068 and −0.065. Under spatial blocking the empirical mean-only baseline is −0.051 for lead and −0.011 for cadmium (Table 8): cadmium exceeds it by several standard deviations and lead by about one and a half, while zinc, selenium and copper fall below it; the five-metal mean is −0.013 (SD 0.018) against a baseline of −0.021. Once held-out locations are geographically separated, the covariates do not usefully predict any concentration other than cadmium.
Table 7.
Element-specific out-of-fold performance for the Extra Trees multi-output specification. Averaged columns are mean (standard deviation) over 10 random and 20 spatially blocked realizations; primary columns are the single realization of Table 4. Errors are on the log scale, and mean-only RMSE is the error of predicting the sample mean at every location; RMSE is not averaged across metals because each is on its own log scale (—).
Figure 6.
Observed versus out-of-fold predicted concentrations for the Extra Trees multi-output specification under random partitioning (top row) and spatial blocking (bottom row), for the primary realization of each design. The dashed line is the identity line.
Table 8.
Out-of-fold R2 by metal for the covariate models and for baselines that use no covariates, under both validation designs. Values are means over validation realizations. The mean-only row is the empirical score of predicting the training-fold mean, computed against the mean of all 475 observations; it is slightly negative under spatial blocking because block means differ from the training mean, and the tract-mean predictor coincides with it under that design because every held-out tract is absent from training (Section 2.8).
Read against the mean-only baseline, for lead under the primary spatially blocked partition the model root mean squared error was 0.726 on the log scale against 0.743 for the mean, so the model was 2.3% more accurate than reporting the citywide mean, a margin of no practical size; for zinc the model error of 0.545 exceeded the mean-only baseline of 0.529, so reporting the citywide average zinc concentration for every location would have been more accurate than the fitted model.
The selenium result depends on how its lowest reported values are handled, but the conclusion does not (Table S12). Substituting the 52 values at 90.5 µg/kg reduces the selenium variance on the log scale from 1.780 to 0.342 and raises its spatially blocked R2 from −0.085 (SD 0.017) to 0.002 (SD 0.015), the random-partition value rising from −0.210 to −0.076; excluding them gives −0.018 (SD 0.018) under spatial blocking on the 423 retained samples. Under all three treatments, selenium is not predicted better than a mean-only baseline, and the five-metal mean under spatial blocking moves only from −0.013 to 0.000. The treatment of those values governs the apparent spread of selenium and the size of its negative R2, but not the finding.
3.6. Covariate Models Against Spatial Baselines
Comparing the fitted models with baselines that use no covariates locates where the apparent performance comes from (Table 8, Figure 5b). Under random partitioning, ordinary kriging on sample coordinates alone predicted lead with an R2 of 0.773, well above the 0.589 of the 27-predictor Extra Trees model, and the tract-mean predictor reached 0.327. Under spatial blocking kriging fell to −0.128 and the tract-mean predictor to −0.051, the empirical score of the mean-only baseline under that design, while Extra Trees reached 0.015. The lead performance visible under a random split is therefore overwhelmingly interpolation between neighbouring samples, available to a model that knows only where a sample sits, and nothing remains for the covariate model after spatial separation.
Regression kriging, which adds kriged Extra Trees residuals to the covariate trend, is the natural model for lead because the variogram and the covariates capture different parts of its variation, and it is the one model class the framework had not fitted (Table 8). Under random partitioning it raises the lead R2 from 0.589 to 0.686 (SD 0.018), between the covariate model and ordinary kriging on coordinates alone (0.773); under spatial blocking it leaves lead at 0.015 (SD 0.048), the value of Extra Trees alone. For the four elements whose residuals carry no spatial structure, kriging those residuals adds interpolation noise and lowers R2 under both designs, so the five-metal mean falls to −0.290 and −0.122. The residual spatial structure that kriging can exploit is therefore available only to lead and only when training neighbours are close, and combining the two sources of information does not create transferable skill where neither has it.
The linear benchmarks confirm that little covariate signal survives blocking. Ordinary least squares on year of construction and distance to the airport reached 0.086 for lead under random partitioning and 0.029 under spatial blocking, and on all 27 predictors 0.181 and −0.691, against 0.589 and 0.015 for Extra Trees. For cadmium, the two-predictor linear model reached 0.114 under blocking, compared with 0.132 for Extra Trees, so most of the cadmium result is available to a simple monotone relationship. Under spatial blocking, neither zinc nor selenium reached a positive R2 with any model. For copper, the only positive value was ordinary kriging at 0.009 (SD 0.030), less than a third of its own spread across realizations and of no practical size.
Buffering the designs (Section 2.6) shows how the contrast depends on leakage distance (Table S13). Under spatial blocking the Extra Trees five-metal mean is −0.013 with no buffer and at 250 and 500 m, −0.040 at 1000 m and −0.104 at 2000 m, and lead moves from 0.015 to between 0.019 and −0.030: removing the training samples within 1 km of a held-out block does not change a result that was already at the level of a mean-only prediction. Under random partitioning a 250 m buffer alone lowers the five-metal mean from 0.116 to −0.070 and lead from 0.589 to −0.049, whereas the matched control that removes the same number of training samples at random gives a lead R2 of 0.291 (0.174 at the 500 m training size, against −0.208 with the buffer). The difference is the part of the random-split lead result that depends on having a training neighbour within the buffer distance, and it accounts for most of the gap between the designs. Performance for each individually withheld block of the primary partition, which ranges from −0.079 to 0.064 across the five blocks and depends on which mean-only baseline is used, is given in Table S5.
3.7. Learning Curve: Performance Against Training Size
Reducing the training set to 40%, 60% and 80% of the tracts available in each blocked fold traces how performance depends on the number of training locations (Table 9). Under spatial blocking, the Extra Trees five-metal mean is −0.070 (SD 0.038) with 157 training locations on average, −0.035 with 232, −0.024 with 302 and −0.013 with the full 380; lead moves from −0.078 (SD 0.092) to 0.015 (SD 0.043). Cadmium, the one element with a blocked signal, rises from 0.064 to 0.132 over the same range, so the design does register growth where there is signal to grow. For lead and the five-metal mean, the curve rises toward the mean-only baseline rather than toward predictive skill: every point lies within about one standard deviation of zero, and the last increase in training size, from 232 to 380 locations, adds 0.039 to the lead R2 and 0.022 to the five-metal mean. Under random partitioning, the same reduction lowers lead from 0.589 to 0.386, and the five-metal mean from 0.116 to 0.052, so the random-split curve is steep where the blocked curve is nearly flat. More locations at the present spacing would therefore raise random-split performance, because interpolation improves as neighbours become closer, but the blocked curve gives no indication that the covariate signal transferring across tracts would grow with the sample.
Table 9.
Learning curve: out-of-fold R2 of the Extra Trees multi-output specification when each training fold is reduced to 40%, 60%, 80% and 100% of its size, by whole census tracts under spatial blocking and by sample under random partitioning. Means over all realizations and three subsample draws per fraction; five-metal mean with SD across realizations (Section 2.6).
3.8. Sensitivity Analysis
Total-order Sobol indices are interpreted for lead and cadmium, the only elements whose spatially blocked R2 exceeds zero (Section 2.10). The ten highest-ranked predictors of each metal are shown in Figure 7, and the predictor-domain shares in Table 10 and Figure 8. Cadmium was dominated by soil physicochemical properties (67.4%), with organic matter the highest-ranked predictor (total-order index 0.70). Lead meets the criterion only marginally (0.015, SD 0.043) and its decomposition is read as indicative only: the surrogate relies chiefly on road and airport proximity (59.4%) and housing and property (30.0%), led by distance to the airport (0.65), then market valuation and year of construction. Distance to the airport most plausibly indexes position within the city, and with it housing age and the density of historic traffic, rather than an airport source. Indices for zinc, selenium and copper are given in Table S7; because those surrogates do not predict their outcomes out-of-sample, the decompositions describe the surrogate rather than the soil, as the zinc index of 0.39 for taxable assessed value illustrates. Partial dependence on the highest-ranked predictor of each metal is shown in Figure 9.
Figure 7.
Total-order Sobol sensitivity indices for the ten highest-ranked predictors of each metal, coloured by predictor domain. Indices are computed on per-metal Random Forest surrogates. Only lead and cadmium are interpreted in the text; the remaining elements are shown for completeness and their surrogates do not predict their outcomes out-of-sample (Section 2.10).
Table 10.
Predictor-domain share of total-order Sobol sensitivity, by metal (%), with each element’s out-of-fold R2 under spatial blocking (mean over 20 realizations). Domains are defined in Section 2.3. Only lead and cadmium are interpreted; for the remaining elements, the surrogate does not predict its outcome out-of-sample and the decomposition describes the surrogate rather than the soil (Section 2.10).
Figure 8.
Predictor-domain share of total-order sensitivity by metal. Only lead and cadmium are interpreted in the text (Section 2.10).
Figure 9.
Partial dependence of each metal on its highest-ranked predictor. Values are on the log concentration scale and describe the behaviour of the fitted surrogate rather than causal exposure-response relationships.
SHAP values computed at the observed data (Figure S1) ranked organic matter only sixth for cadmium. Organic matter is a map-unit attribute with 36 distinct values across the 475 samples, and its large Sobol index arises largely from surrogate behaviour in regions of the predictor space that the sample does not occupy, so the soil physicochemical share for cadmium is read as an upper bound and the cadmium results as those of an exploratory indicator.
3.9. Exceedance Classification
Classification of threshold exceedance is reported in Table 11, Figure 10 and Table S6. Lead exceeded the 100 mg/kg U.S. EPA screening level for properties with additional lead sources at 49.5% of locations and the 200 mg/kg default level at 19.2%. Averaged over realizations, the AUC for the 100 mg/kg threshold was 0.873 (SD 0.007) under random partitioning and 0.558 (SD 0.043) under spatial blocking, and for the 200 mg/kg threshold 0.854 (SD 0.017) and 0.453 (SD 0.036); under blocking both lead thresholds show weak and unstable discrimination around chance, the 100 mg/kg threshold above 0.5 and the 200 mg/kg threshold below it, with spreads across partitions that are large relative to those margins. Copper exceedance above 190 mg/kg averaged 0.736 (SD 0.012) and 0.634 (SD 0.019), and zinc exceedance above 140 mg/kg stayed below 0.5 under either design (0.461 and 0.472). The classification arm therefore degrades under spatial blocking as the regression arm does, retaining modest discrimination only for copper. Lead concentrations, out-of-fold predictions and predicted exceedance probabilities are mapped across the sampling locations in Figure 11.
Table 11.
Threshold exceedance prevalence and classification performance under both validation designs, for the primary realization of each design. Averaged columns are mean (SD) over 10 random and 20 spatially blocked realizations with the same 600-tree classifier.
Figure 10.
Receiver operating characteristic curves for threshold exceedance classification under (a) random and (b) spatially blocked five-fold cross-validation.
Figure 11.
Lead across the sampling locations. (a) Observed concentrations on the log scale. (b) Out-of-fold predictions from the Extra Trees multi-output specification under spatial blocking. (c) Out-of-fold predicted probability of exceeding the 100 mg/kg U.S. EPA screening level. Axis coordinates are not shown and a scale bar is given instead, so that individual sampling locations cannot be georeferenced.
3.10. External Transfer to Lafayette, Louisiana
Residential soil in Lafayette carried less lead and copper and more zinc than in Greensboro: medians of 34.8, 24.1 and 119.9 mg/kg for lead, copper and zinc against 97.8, 128.0 and 85.0 mg/kg, with 8.6% of Lafayette residential samples above 200 mg/kg lead against 19.2%. The Lafayette tracts also lay largely outside the Greensboro covariate range in housing age (tract median year built 1957 to 2002, against three-quarters of Greensboro homes built in 1964 or earlier) and home value.
The Greensboro model did not transfer as a predictor of concentration (Table 12). Refitted on the eight predictors measurable in both cities, it overpredicted lead by a factor of 1.8 and copper by 5.4 and underpredicted zinc by a factor of 0.78, so R2 on the log scale was negative for all three metals, and it did not rank Lafayette tracts for any metal (ρ = 0.34 for lead, 95% interval −0.05 to 0.66; −0.31 for zinc; −0.18 for copper). The same specification ranked held-out Greensboro tracts under the primary spatial partition at ρ = −0.04, 0.08 and 0.53 for lead, zinc and copper, with only copper significant (p = 0.009), so prediction of tract medians from tract covariates is hard even within the training city. Carried over with all 27 predictors, the model returns the Greensboro central tendency by construction (Table 12).
Table 12.
External transfer of the Greensboro Extra Trees model to 23 census tracts in Lafayette, Louisiana. ρ is the Spearman correlation between predicted and observed tract median concentration. The Greensboro reference is the same comparison for held-out Greensboro tracts under spatial blocking. Predicted/observed is the back-transformed mean log ratio across tracts. The reported specification uses the eight predictors measurable in both cities; the full 27-predictor configuration holds 18 predictors at Greensboro medians and is shown only to quantify the level offset.
The relationship that underlies lead in both cities did carry over, even though the model did not. Across Lafayette tracts, median year built was strongly and inversely correlated with median lead (ρ = −0.90, p < 0.001), with the share of samples above 200 mg/kg (−0.65) and with median zinc (−0.79); the corresponding house-level correlation in Greensboro was −0.24 for lead, the expected consequence of aggregating to tract medians. Tract-level predictions, observed medians and covariates are given in Table S9.
4. Discussion
4.1. Principal Findings
Four findings follow from this analysis. First, covariate-based prediction of soil metal concentrations does not survive geographic separation of training and testing locations: the five-metal mean falls from 0.116 under random partitioning to −0.013 under spatial blocking, and lead, the one element with substantial apparent performance, from 0.589 to 0.015 (Table 5). Second, under random partitioning, ordinary kriging on coordinates alone outperforms the full covariate model for lead (Table 8), which locates the random-split advantage in spatial interpolation rather than in the covariates. Third, element-specific performance tracks the spatial structure of the element: lead carries 28% of its variance in spatially structured form, while zinc and selenium show no detectable autocorrelation and were never predicted better than a mean-only baseline. Fourth, joint prediction of five co-occurring metals gives a small and consistent gain in the five-metal mean, but the gain is a shrinkage effect on the elements that carry no signal rather than information transfer to the elements that do. Ensemble strategies built on neural base learners did not outperform conventional tree ensembles on these tabular data under either design, consistent with benchmark evidence [62].
4.2. What Limits Predictability, Element by Element
Lead was the element for which the covariates carried the most information under random partitioning, and the spatial analysis indicates why that information largely disappears under blocking. Lead is the only element with pronounced spatial autocorrelation (Moran’s I = 0.577), so a random partition lets a model reproduce local structure it has already seen. The fitted surrogate associates lead with distance to the airport, market valuation and year of construction, which index position within the urban fabric and housing age and together track the two documented sources of legacy residential lead in a city of this type: deteriorating lead-based paint on older housing stock and deposition along historic traffic corridors [1,2,3,4,63]. Those sources leave a signature that property records and geographic position capture at the scale of a neighbourhood, but the household-scale variation that remains once a whole neighbourhood is held out is not recovered by these covariates.
The remaining elements lack an equivalent correspondence, and the variogram analysis shows that the limitation is in the outcomes rather than in the covariate set or the learner. Zinc has no spatial structure to recover: its standardized semivariogram sits at the sample variance across all separations, so no model built from location, housing or neighbourhood attributes can succeed, and none did. Selenium carries at most weak structure under any treatment of its lowest reported values and was likewise never predicted; it is largely lithogenic rather than anthropogenic in origin and would not be expected to track housing or traffic covariates [9]. Cadmium and copper carry weak structure; cadmium was the only element whose spatially blocked R2 exceeded zero by a clear margin (0.132, SD 0.019), and because a two-predictor linear model reaches most of that result (0.114), the cadmium signal is simple in form and is reported rather than interpreted as evidence of a specific source pathway. Cadmium and selenium are also recorded at coarser resolution and carry greater relative measurement uncertainty; both are treated as exploratory indicators throughout.
Analytical resolution sets a further ceiling for the same three elements. Lead took 372 distinct values across 475 samples, whereas cadmium took 41 and selenium 44, with most observations concentrated on a small set of levels, so spatial structure and measurement resolution point the same way and cannot be separated without a higher-resolution assay of the same soils. For cadmium and selenium, the reported measurement resolution is the binding constraint, with a floor at the lowest reported value (Section 2.2), a property of the measurement rather than of the soils. Complementary routes exist where that resolution binds: quantification at lower detection limits, whole-cell biosensors for bioavailable cadmium at environmental concentrations [64], and machine-learning recognition of components in three-dimensional fluorescence spectra [65]. A learner can only recover variance that the measurement retains, and when the measurement discretizes a target into a few levels, the ceiling is set upstream of any model.
4.3. Validation Design in Soil Contamination Modelling
The gap between random and spatially blocked validation was large (Section 3.3), and the variability within each design was large enough to matter. Under spatial blocking, the standard deviation across realizations is as large as the mean itself, and blocked lead R2 ran from −0.067 to 0.087 across the 20 realizations, so a single blocked partition reported alone, as is usual, could have placed lead anywhere in that range. The primary partition also depends on an arbitrary detail of its construction, the sign of the principal component along which tracts are ordered. Reporting one partition is as much a problem for blocked designs as for random ones, and the remedy in both cases is to repeat the partition and report the spread.
The comparison with purely spatial baselines sharpens the implication. Under a random split, ordinary kriging on coordinates alone outperformed the full covariate model for lead because a random partition of autocorrelated samples rewards local interpolation [17,18]; under spatial blocking, it fell below the mean-only baseline, and regression kriging, which gives the covariate model the same interpolation term, gained under the random split and not under blocking (Table 8). Where the stated purpose of a model is to predict concentrations at unsampled locations, random-split performance does not estimate the quantity of interest, and a covariate model should be judged against an interpolator as well as a mean-only baseline.
Spatial blocking is not the appropriate design for every purpose. Where the aim is to estimate map accuracy over a region sampled by a probability design, design-based estimates are preferable [66]. The present sample was not drawn by a probability design and the intended use is prediction for unsampled neighbourhoods, which spatially blocked validation approximates more closely than random partitioning. Within that setting the mean-only baseline also has to be stated: scoring held-out blocks against the global training mean credits a model for placing blocks correctly relative to one another, while scoring against the held-out block’s own mean asks only about within-block variation; the two differ here by 0.06 in mean R2 (Table S5), more than the difference between the two tree ensembles in Table 4.
The Lafayette test extends this gradient one step further, from adjacent blocks to a different city, and the result is again a loss of performance: the model misestimated absolute concentrations by factors of 0.78 to 5.4 and did not rank Lafayette tracts for any of the three metals. Baseline concentrations differ between cities, and possibly between analyzers and calibrations; predictors that index Greensboro’s urban form, such as distance to its airport, describe that city rather than a transferable source; and most Lafayette tracts lie outside the Greensboro covariate range, where tree ensembles extrapolate as a constant, the area-of-applicability problem described by Meyer and Pebesma [67]. The underlying relationship nonetheless transferred: older housing corresponded to higher lead in both cities, consistent with lead-based paint and historical leaded-gasoline deposition as general mechanisms [1,3,4,63], although tract-level correlations aggregate over within-tract variation. A model carried to a new city should therefore not be used for ranking or for concentration estimates until it has been recalibrated against a local sample.
4.4. Implications for Screening and Sampling Design
The exceedance classification arm is less demanding than concentration prediction, but it does not survive spatial separation for lead. Lead above the 100 mg/kg U.S. EPA screening level was classified with an area under the curve of 0.873 (SD 0.007) under random partitioning and 0.558 (SD 0.043) under spatial blocking, at a prevalence of 49.5%, and the 200 mg/kg threshold reached 0.453 (SD 0.036) under the same design. Both blocked values show weak and unstable discrimination around chance, one above 0.5 and one below, so neither the common nor the rarer and more consequential exceedances are identifiable from covariates alone, and the discrimination available is not enough to prioritize locations for confirmatory sampling. Once held-out neighbourhoods are separated from the training ones, the covariates meet even this weaker demand only for copper.
For all five metals, covariate-based prediction of concentration is not supportable in this study area and direct measurement remains necessary. Copper is a partial exception at the threshold level, where exceedance of the 190 mg/kg Dutch intervention value retained modest discrimination under spatial blocking (AUC 0.634, SD 0.019). This is a useful negative result for programs considering predictive screening as a way to extend sparse soil sampling budgets. The variogram analysis offers a cheap diagnostic for such programs: an element whose sampled values show no spatial autocorrelation will not be predicted from place-based covariates, and that can be established from the measurements alone before any model is fitted.
These results are consistent with what is known about urban soils. Surveys across European and Chinese cities have shown that urban soils carry similar contaminant loads irrespective of geology, climate and city size, that concentrations vary strongly over short distances, and that diffuse background contamination is overlain by point sources whose positions follow a long history of land-use change [7,68,69]. The standardized semivariance of 0.91 to 1.04 at 0.5 km for four of the five elements (Section 3.2) is a direct measurement of that short-distance variability in the Greensboro study area, with bootstrap intervals that cover the no-structure value for zinc and selenium. Two analyses bear on whether more data or a different model class would change the result. The learning curve (Section 3.7) shows blocked performance rising toward the mean-only baseline, not toward predictive skill, as training tracts are added, while random-split performance rises steeply over the same range; and regression kriging (Section 3.6), which gives the covariate model an explicit spatial term, gains under random partitioning and not under blocking. The interpretation that lead reflects spatially specific legacy sources while the other elements reflect diffuse and point inputs (Section 4.2) is offered as consistent with that literature rather than as a new finding. The framework, with its variogram diagnostic, repeated blocked realizations and learning curve, is intended for application to larger multi-element datasets measured with sensitivity adequate for each element, which the present result identifies as the conditions under which covariate-based prediction of urban soil metals should be re-examined.
4.5. Limitations and Future Directions
First, the sampled households are not a probability sample of Greensboro residences. Enrollment was based on resident interest with referral recruitment in some neighbourhoods, so the exposure distributions characterize sampled locations rather than the residential housing stock as a whole.
Second, cadmium and selenium are exploratory indicators rather than definitive exposure measures, because of the analytical uncertainty associated with their measurement and detection limits, and both are recorded with coarser resolution. The selenium sensitivity analyses in Table S12 show that the treatment of its lowest reported values governs the apparent variance and the size of the negative R2 but not the conclusion. The cadmium and selenium results are accordingly reported as exploratory.
Third, soil physicochemical predictors are map-unit component averages from a soil survey rather than site-specific measurements, and the map units are large relative to the spacing between sampling locations. Their contribution therefore carries a substantial spatial-position component, which is relevant to the interpretation of the cadmium result in particular.
Fourth, the analysis is cross-sectional and the sensitivity and partial dependence results describe the behaviour of fitted models rather than causal relationships between neighbourhood characteristics and soil metal deposition.
Fifth, spatially blocked validation separates held-out from training locations but does not achieve full geographic independence, because blocks remain adjacent; median separation from a held-out sample to the nearest training sample was 561 m to 1849 m (Table S4). The buffered variants of Section 2.6 show that removing training samples within 1 km of a held-out block leaves the blocked result unchanged, so the lack of a buffer does not explain it. The external test in Lafayette addresses this only partly: the public release reports census tracts rather than coordinates, so the test is ecological and cannot assess household-scale prediction; parcel-level housing age and value were replaced by tract medians from a different period; and the two cities differ in analyzer, sampling depth and micro-site protocol, with no usable cadmium or selenium in the Lafayette data. A household-scale external test with comparable covariates remains necessary.
Sixth, the predictor sources are not contemporaneous with the 2019 soil campaign: block demographics are from 2010 and parcel values from 2020. Section 2.3 argues that this misalignment should attenuate rather than inflate the associations, because the metals reflect deposition over decades, but a 2019 demographic snapshot might have carried somewhat more information.
Seventh, the study is a proof-of-concept in a single study area. It rests on 475 locations in one medium-sized city, five elements and one handheld instrument, and its negative result for covariate-based prediction is specific to that combination. Whether the element-specific pattern holds with a larger sample, additional elements and laboratory-grade measurement for the elements to which handheld XRF is least sensitive is the question the framework is designed to answer next.
Future work should evaluate the framework where directly measured soil chemistry is available at higher resolution for the non-lead elements, whether from laboratory ICP-MS, from biosensor assays for bioavailable cadmium [64] or from spectroscopic methods coupled with machine-learning component recognition [65], incorporate additional source-proximity covariates such as historical land-use and industrial site locations, and test whether multi-output architectures confer benefit when the constituent targets are measured with comparable precision and carry comparable spatial structure. Regression kriging shows that an explicit spatial term helps lead only where training neighbours are close; for prediction in unsampled neighbourhoods the next step is a denser sample in a subset of tracts, so that the within-tract range of lead can be estimated and the learning curve extended.
5. Conclusions
This proof-of-concept study predicted five co-occurring residential soil metals at 475 georeferenced locations in the Greensboro, North Carolina study area, compared ten multi-output specifications against single-output, linear and purely spatial baselines, and evaluated every specification over repeated realizations of two validation designs. Four conclusions follow.
First, covariate-based prediction of soil metal concentrations in this study area does not survive geographic separation of training and testing locations. Performance that is substantial under random partitioning falls below the mean-only baseline under spatial blocking for zinc, selenium and copper, and to within a small margin of it for lead; only cadmium, which, like selenium, is an exploratory indicator, retains predictive skill of practical size, and none of it rises toward useful skill as the number of training tracts is increased.
Second, most of the performance visible under a random split is spatial interpolation rather than covariate information. Ordinary kriging on coordinates alone outperformed the full covariate model for lead under random partitioning and failed under spatial blocking, and giving the covariate model its own kriged residual term gained only under the random split. A covariate model in this literature should be reported against an interpolation baseline as well as a mean-only one.
Third, element-specific predictability is bounded by spatial structure. Lead alone carries pronounced structure, cadmium and copper weak structure, and zinc and selenium none, with bootstrap intervals that cover the no-structure value under any treatment of selenium’s lowest reported values. The variogram that establishes this is computable before any model is fitted.
Fourth, joint prediction of co-occurring metals is not the mechanism it is usually taken to be. Its small, consistent gain is shrinkage toward the mean on the elements that carry no recoverable signal, while the predictable elements are unchanged or slightly worse, and ensemble strategies built on neural base learners did not outperform conventional tree ensembles.
For practice, covariate-based screening for lead exceedance is close to chance once locations are separated, copper exceedance retains modest discrimination, and direct measurement remains necessary for all five elements in this study area. The framework and its diagnostics are intended for larger samples, more elements and measurements of adequate sensitivity for each element; the conditions under which covariate-based prediction of urban soil metals should be re-examined.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/environments13120650/s1, Table S1, source datasets, reference periods and predictor construction; Table S2, element-specific out-of-fold R2 for all ten specifications under both validation designs; Table S3, element-specific RMSE and mean-only baseline RMSE, spatially blocked design; Table S4, spatial validation block composition and separation of held-out from training samples; Table S5, training and held-out performance for each withheld spatial block under both mean-only baselines; Table S6, threshold exceedance classification, full metrics; Table S7, total-order Sobol indices for all predictors, by metal; Table S8, lower-bound values, non-detect substitution and distributional features by element; Table S9, Lafayette tract covariates, observed medians, and transfer predictions; Table S10, the 20 spatial block partitions; Table S11, fitted variogram parameters and Moran’s I by element; Table S12, selenium sensitivity to the treatment of its lowest reported values; Table S13, buffered validation: out-of-fold R2 of the Extra Trees multi-output specification when training samples within a buffer distance of any held-out sample are removed; Table S14, single-output controls with an explicit shrinkage device, compared with multi-output prediction; Table S15, SSURGO soil map units at the 475 sampling locations (survey area NC081, Guilford County); Table S16, sensitivity of the Extra Trees multi-output results to the log transform; Table S17, bootstrap intervals for the spatial-structure statistics of Table 3; Figure S1, mean absolute SHAP value of the ten highest-ranked predictors for each metal.
Author Contributions
Conceptualization, E.O.-G.; methodology, E.O.-G. and A.J.; software, E.O.-G. and A.J.; formal analysis, A.J.; data curation, E.O.-G.; writing—original draft preparation, E.O.-G. and A.J.; writing—review and editing, A.J. and E.O.-G.; supervision, E.O.-G.; funding acquisition, E.O.-G. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Science Foundation, RISE-2401878. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Science Foundation.
Institutional Review Board Statement
The parent study protocol was reviewed by the North Carolina A&T State University Institutional Review Board and exempted from further review because all participant data were deidentified and risks to participants were judged to be minimal. The present analysis used deidentified environmental and spatial data and did not involve human participants. Household coordinates were used only to compute distances, variograms and validation blocks, and are not reported.
Data Availability Statement
The data presented in this study are available on request from the corresponding author due to privacy.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Mielke, H.W.; Reagan, P.L. Soil is an important pathway of human lead exposure. Environ. Health Perspect. 1998, 106, 217–229. [Google Scholar] [CrossRef] [Scilit]
- Laidlaw, M.A.S.; Taylor, M.P. Potential for childhood lead poisoning in the inner cities of Australia due to exposure to lead in soil dust. Environ. Pollut. 2011, 159, 1–9. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jacobs, D.E.; Clickner, R.P.; Zhou, J.Y.; Viet, S.M.; Marker, D.A.; Rogers, J.W.; Zeldin, D.C.; Broene, P.; Friedman, W. The prevalence of lead-based paint hazards in U.S. housing. Environ. Health Perspect. 2002, 110, A599–A606. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Schwarz, K.; Pouyat, R.V.; Yesilonis, I. Legacies of lead in Charm City’s soil: Lessons from the Baltimore Ecosystem Study. Int. J. Environ. Res. Public Health 2016, 13, 209. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Filippelli, G.M.; Adamic, J.; Nichols, D.; Shukle, J.; Frix, E. Mapping the urban lead exposome: A detailed analysis of soil metal concentrations at the household scale using citizen science. Int. J. Environ. Res. Public Health 2018, 15, 1531. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mielke, H.W.; Gonzales, C.R.; Powell, E.T. Curtailing lead aerosols: Effects of primary prevention on declining soil lead and children’s blood lead in metropolitan New Orleans. Int. J. Environ. Res. Public Health 2019, 16, 2068. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wei, B.; Yang, L. A review of heavy metal contaminations in urban soils, urban road dusts and agricultural soils from China. Microchem. J. 2010, 94, 99–107. [Google Scholar] [CrossRef] [Scilit]
- Adamiec, E.; Jarosz-Krzemińska, E.; Wieszała, R. Heavy metals from non-exhaust vehicle emissions in urban and motorway road dusts. Environ. Monit. Assess. 2016, 188, 369. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kabata-Pendias, A. Trace Elements in Soils and Plants, 4th ed.; CRC Press: Boca Raton, FL, USA, 2011. [Google Scholar]
- Sager, M. Urban soils and road dust—Civilization effects and metal pollution—A review. Environments 2020, 7, 98. [Google Scholar] [CrossRef] [Scilit]
- Silva, H.F.; Silva, N.F.; Oliveira, C.M.; Matos, M.J. Heavy metals contamination of urban soils—A decade study in the city of Lisbon, Portugal. Soil Syst. 2021, 5, 27. [Google Scholar] [CrossRef] [Scilit]
- Hengl, T.; Nussbaum, M.; Wright, M.N.; Heuvelink, G.B.M.; Gräler, B. Random forest as a generic framework for predictive modeling of spatial and spatio-temporal variables. PeerJ 2018, 6, e5518. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wadoux, A.M.J.-C.; Minasny, B.; McBratney, A.B. Machine learning for digital soil mapping: Applications, challenges and suggested solutions. Earth-Sci. Rev. 2020, 210, 103359. [Google Scholar] [CrossRef] [Scilit]
- Nie, S.; Chen, H.; Sun, X.; An, Y. Spatial distribution prediction of soil heavy metals based on random forest model. Sustainability 2024, 16, 4358. [Google Scholar] [CrossRef] [Scilit]
- Chen, H.; Sun, X.; Sun, L.; An, Y.; Xiao, Y.; Zhang, J.; Hong, Y.; Song, X. A comprehensive study of spatial distribution, pollution risk assessment, and source apportionment of topsoil heavy metals and arsenic. Land 2024, 13, 2151. [Google Scholar] [CrossRef] [Scilit]
- Binetti, M.S.; Massarelli, C.; Barca, E. A multilevel machine learning framework for mapping and predicting diffuse and point-source heavy metal contamination in surface soils. Earth 2026, 7, 4. [Google Scholar] [CrossRef] [Scilit]
- Roberts, D.R.; Bahn, V.; Ciuti, S.; Boyce, M.S.; Elith, J.; Guillera-Arroita, G.; Hauenstein, S.; Lahoz-Monfort, J.J.; Schröder, B.; Thuiller, W.; et al. Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography 2017, 40, 913–929. [Google Scholar] [CrossRef] [Scilit]
- Ploton, P.; Mortier, F.; Réjou-Méchain, M.; Barbier, N.; Picard, N.; Rossi, V.; Dormann, C.; Cornu, G.; Viennois, G.; Bayol, N.; et al. Spatial validation reveals poor predictive performance of large-scale ecological mapping models. Nat. Commun. 2020, 11, 4540. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sadenova, M.; Beisekenov, N. GIS-based spatial analysis and explainable gradient boosting of heavy metal enrichment in agricultural soils. Appl. Sci. 2026, 16, 431. [Google Scholar] [CrossRef] [Scilit]
- Tziachris, P.; Nikou, M.; Aschonitis, V.; Kallioras, A.; Sachsamanoglou, K.; Fidelibus, M.D.; Tziritis, E. Spatial or random cross-validation? The effect of resampling methods in predicting groundwater salinity with machine learning in Mediterranean region. Water 2023, 15, 2278. [Google Scholar] [CrossRef] [Scilit]
- Borchani, H.; Varando, G.; Bielza, C.; Larrañaga, P. A survey on multi-output regression. WIREs Data Min. Knowl. Discov. 2015, 5, 216–233. [Google Scholar] [CrossRef] [Scilit]
- Wolpert, D.H. Stacked generalization. Neural Netw. 1992, 5, 241–259. [Google Scholar] [CrossRef] [Scilit]
- Huang, G.; Li, Y.; Pleiss, G.; Liu, Z.; Hopcroft, J.E.; Weinberger, K.Q. Snapshot ensembles: Train 1, get M for free. In Proceedings of the 5th International Conference on Learning Representations (ICLR), Toulon, France, 24–26 April 2017. [Google Scholar]
- Valavi, R.; Elith, J.; Lahoz-Monfort, J.J.; Guillera-Arroita, G. blockCV: An R package for generating spatially or environmentally separated folds for k-fold cross-validation of species distribution models. Methods Ecol. Evol. 2019, 10, 225–232. [Google Scholar] [CrossRef] [Scilit]
- Obeng-Gyasi, E.; Roostaei, J.; Gibson, J.M. Lead distribution in urban soil in a medium-sized city: Household-scale analysis. Environ. Sci. Technol. 2021, 55, 3696–3705. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- U.S. Department of Agriculture, Soil Conservation Service. Soil Survey of Guilford County, North Carolina; U.S. Government Printing Office: Washington, DC, USA, 1977.
- Soil Survey Staff. Keys to Soil Taxonomy, 13th ed.; USDA Natural Resources Conservation Service: Washington, DC, USA, 2022.
- Kinnee, E.J.; Tripathy, S.; Schinasi, L.; Shmool, J.L.C.; Sheffield, P.E.; Holguin, F.; Clougherty, J.E. Geocoding error, spatial uncertainty, and implications for exposure assessment and environmental epidemiology. Int. J. Environ. Res. Public Health 2020, 17, 5845. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fisher, J.A.; Spaur, M.; Buller, I.D.; Flory, A.R.; Beane Freeman, L.E.; Hofmann, J.N.; Giangrande, M.; Jones, R.R.; Ward, M.H. Spatial heterogeneity in positional errors: A comparison of two residential geocoding efforts in the Agricultural Health Study. Int. J. Environ. Res. Public Health 2021, 18, 1637. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- U.S. Environmental Protection Agency. Method 6200: Field Portable X-Ray Fluorescence Spectrometry for the Determination of Elemental Concentrations in Soil and Sediment; U.S. EPA: Washington, DC, USA, 2007.
- Clos, H.; Chrysochoou, M.; Bompoti, N.; Isleib, J. A soil screening study to evaluate soil health for urban garden applications in Hartford, CT. Sustainability 2023, 15, 7924. [Google Scholar] [CrossRef] [Scilit]
- Chandramohan, M.S.; Martinho da Silva, I.; Ribeiro, R.P.; Jorge, A.; Esteves da Silva, J. Screening urban soil contamination in Rome: Insights from XRF and multivariate analysis. Environments 2025, 12, 126. [Google Scholar] [CrossRef] [Scilit]
- Jehu-Appiah, D.; Obeng-Gyasi, E. Predicting census-tract obesity prevalence using integrated environmental, built-environment, and neighborhood data: A scale-aware geospatial machine-learning proof-of-concept. Geospat. Health 2026, 21, 1536. [Google Scholar] [CrossRef] [Scilit]
- Tasnia, R.; Obeng-Gyasi, E. Housing, neighborhood context, and soil metals as predictors of model-based small-area diabetes prevalence in a medium-sized city: An explainable spatial machine-learning analysis. Int. J. Environ. Res. Public Health 2026, 23, 1349. [Google Scholar] [CrossRef] [Scilit]
- Kalnicky, D.J.; Singhvi, R. Field portable XRF analysis of environmental samples. J. Hazard. Mater. 2001, 83, 93–122. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Weindorf, D.C.; Bakr, N.; Zhu, Y. Advances in portable X-ray fluorescence (PXRF) for environmental, pedological, and agronomic applications. In Advances in Agronomy; Sparks, D.L., Ed.; Elsevier: Amsterdam, The Netherlands, 2014; Volume 128, pp. 1–45. [Google Scholar] [CrossRef] [Scilit]
- Rouillon, M.; Taylor, M.P. Can field portable X-ray fluorescence (pXRF) produce high quality data for application in environmental contamination research? Environ. Pollut. 2016, 214, 255–264. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hornung, R.W.; Reed, L.D. Estimation of average concentration in the presence of nondetectable values. Appl. Occup. Environ. Hyg. 1990, 5, 46–51. [Google Scholar] [CrossRef] [Scilit]
- Helsel, D.R. Nondetects and Data Analysis: Statistics for Censored Environmental Data; Wiley: Hoboken, NJ, USA, 2005. [Google Scholar]
- Josse, J.; Chen, J.M.; Prost, N.; Varoquaux, G.; Scornet, E. On the consistency of supervised learning with missing values. Stat. Pap. 2024, 65, 5447–5479. [Google Scholar] [CrossRef] [Scilit]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
- Geurts, P.; Ernst, D.; Wehenkel, L. Extremely randomized trees. Mach. Learn. 2006, 63, 3–42. [Google Scholar] [CrossRef] [Scilit]
- Pohjankukka, J.; Pahikkala, T.; Nevalainen, P.; Heikkonen, J. Estimating the prediction performance of spatial models via spatial k-fold cross validation. Int. J. Geogr. Inf. Sci. 2017, 31, 2001–2019. [Google Scholar] [CrossRef] [Scilit]
- Meyer, H.; Reudenbach, C.; Hengl, T.; Katurji, M.; Nauss, T. Improving performance of spatio-temporal machine learning models using forward feature selection and target-oriented validation. Environ. Model. Softw. 2018, 101, 1–9. [Google Scholar] [CrossRef] [Scilit]
- Matheron, G. Principles of geostatistics. Econ. Geol. 1963, 58, 1246–1266. [Google Scholar] [CrossRef] [Scilit]
- Cressie, N.A.C. Statistics for Spatial Data, revised ed.; Wiley: New York, NY, USA, 1993. [Google Scholar]
- Moran, P.A.P. Notes on continuous stochastic phenomena. Biometrika 1950, 37, 17–23. [Google Scholar] [CrossRef] [Scilit]
- Sobol, I.M. Global sensitivity indices for nonlinear mathematical models and their Monte Carlo estimates. Math. Comput. Simul. 2001, 55, 271–280. [Google Scholar] [CrossRef] [Scilit]
- Saltelli, A.; Annoni, P.; Azzini, I.; Campolongo, F.; Ratto, M.; Tarantola, S. Variance based sensitivity analysis of model output. Design and estimator for the total sensitivity index. Comput. Phys. Commun. 2010, 181, 259–270. [Google Scholar] [CrossRef] [Scilit]
- Herman, J.; Usher, W. SALib: An open-source Python library for sensitivity analysis. J. Open Source Softw. 2017, 2, 97. [Google Scholar] [CrossRef] [Scilit]
- Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef] [Scilit]
- Lundberg, S.M.; Lee, S.-I. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30; Curran Associates: Red Hook, NY, USA, 2017; pp. 4765–4774. [Google Scholar]
- Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.-I. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- U.S. Environmental Protection Agency. Updated Residential Soil Lead Guidance for CERCLA Sites and RCRA Corrective Action Facilities; Office of Land and Emergency Management: Washington, DC, USA, 2024.
- Ministry of Housing, Spatial Planning and the Environment (VROM). Circular on Target Values and Intervention Values for Soil Remediation; VROM: The Hague, The Netherlands, 2000.
- Heafner, H.L.; Paltseva, A.A. Mapping legacy lead: Socioeconomic and demographic connections in urban soil contamination in Lafayette, LA. J. Soils Sediments 2024, 25, 484–509. [Google Scholar] [CrossRef] [Scilit]
- Heafner, H.L.; Paltseva, A.A. Urban land use impact on soil heavy metal levels in Lafayette, Louisiana (USA). PLoS ONE 2026, 21, e0344559. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Heafner, H.; Paltseva, A. Urban land use impact on soil heavy metal levels in Lafayette, Louisiana [Dataset]. Dryad 2025. [Google Scholar] [CrossRef]
- U.S. Census Bureau. American Community Survey 2020–2024 5-Year Estimates; Tables B01003, B02001, B03003, B25035, B25077; U.S. Census Bureau: Washington, DC, USA, 2025.
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272, Correction in Nat. Methods 2020, 17, 352. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Grinsztajn, L.; Oyallon, E.; Varoquaux, G. Why do tree-based models still outperform deep learning on typical tabular data? In Advances in Neural Information Processing Systems 35, Datasets and Benchmarks Track; Curran Associates: Red Hook, NY, USA, 2022. [Google Scholar]
- Moody, H.A.; Grady, S.C. Lead emissions and population vulnerability in the Detroit metropolitan area, 2006–2013: Impact of pollution, housing age and neighborhood racial isolation and poverty on blood lead in children. Int. J. Environ. Res. Public Health 2021, 18, 2747. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, T.; Zhu, K.; Zhang, X.; Yu, X.; Shen, L.; Gao, D.; Chen, Y.; Wang, Q.; Chen, S.; Bao, L. Development of CadR-based cadmium whole cell biosensor for visual detection of environmental Cd2+. Anal. Chim. Acta 2024, 1330, 343299. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, Z.; Guo, L.; Li, Z.; Liu, Y.; Cheng, K.; Yang, W.; Wang, X. Three-dimensional fluorescence spectroscopy recognition and component analysis based on machine learning. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2026, 354, 127633. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wadoux, A.M.J.-C.; Heuvelink, G.B.M.; de Bruin, S.; Brus, D.J. Spatial cross-validation is not the right way to evaluate map accuracy. Ecol. Model. 2021, 457, 109692. [Google Scholar] [CrossRef] [Scilit]
- Meyer, H.; Pebesma, E. Predicting into unknown space? Estimating the area of applicability of spatial prediction models. Methods Ecol. Evol. 2021, 12, 1620–1633. [Google Scholar] [CrossRef] [Scilit]
- Ajmone-Marsan, F.; Biasioli, M. Trace elements in soils of urban areas. Water Air Soil Pollut. 2010, 213, 121–143. [Google Scholar] [CrossRef] [Scilit]
- Madrid, L.; Díaz-Barrientos, E.; Ruiz-Cortés, E.; Reinoso, R.; Biasioli, M.; Davidson, C.M.; Duarte, A.C.; Grčman, H.; Hossack, I.; Hursthouse, A.S.; et al. Variability in concentrations of potentially toxic elements in urban parks from six European cities. J. Environ. Monit. 2006, 8, 1158–1165. [Google Scholar] [CrossRef] [Scilit] [PubMed]
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.










