Monday, September 7, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Technology and Engineering

From local to global explainability: linking regression contributions with spatially adjusted SHAP

September 7, 2026
in Technology and Engineering
Denise Maddox
By Denise Maddox Scienmag Editorial Profile - Mechanical Engineering
Reading Time: 6 mins read
0
From local to global explainability: linking regression contributions with spatially adjusted SHAP

From local to global explainability: linking regression contributions with spatially adjusted SHAP

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

When artificial intelligence models are asked to explain themselves in the spatial sciences, the results have often been less than transparent. A new study published in the journal Machine Learning with Applications introduces a method called Spatially Adjusted SHAP, or SA-SHAP, that promises to bridge a long-standing divide between classical geographically aware statistics and modern machine learning interpretation. The research, authored by Mohammad H. Vahidnia, demonstrates that carefully adjusted explanations from a black-box model can closely reproduce the spatially varying contributions produced by one of geography’s most trusted statistical tools.

At the heart of the problem lies a fundamental tension in geospatial modeling. Relationships between environmental or socioeconomic predictors and the outcomes they influence frequently shift from one location to another, a phenomenon known as spatial heterogeneity. For decades, researchers have handled this with Geographically Weighted Regression and its multiscale extension, MGWR, which estimate a separate regression coefficient at every location, allowing the effect of a variable such as rainfall or population density to grow stronger in one region and weaker in another. These local coefficients are transparent and easy to map, but the underlying models are linear, computationally constrained, and sometimes less accurate than modern alternatives.

Machine learning models, particularly gradient-boosted tree ensembles like XGBoost, routinely outperform such linear frameworks on predictive tasks. Yet their internal complexity makes them opaque. To open the black box, researchers have turned to explainable artificial intelligence, and especially to the SHapley Additive exPlanations framework. SHAP, which descends from the Shapley value concept in cooperative game theory, assigns each feature an additive contribution to a prediction by averaging its marginal effect across all possible subsets of features. The approach is theoretically grounded and works both for individual predictions and for aggregate feature importance, but it was never designed with geography in mind.

The complication arises when spatial coordinates are fed directly into machine learning models as predictors. Doing so allows the model to capture spatial context, and studies in landslide susceptibility, earthquake probability, land surface temperature, urban fire risk, and ride-hailing demand have all combined XGBoost with SHAP to reveal how drivers of a process vary across a map. However, a growing body of critique warns that raw longitude and latitude often act as positional surrogates rather than genuine causal factors, and global SHAP outputs become harder to interpret once geographic components and their interactions with non-spatial features are decomposed across many encoded spatial variables.

Vahidnia’s contribution is a methodological reallocation rather than a new game-theoretic formulation. In the SA-SHAP approach, the raw SHAP value of a non-spatial predictor is combined with its SHAP interaction values with the spatial features, so that the influence a predictor exerts jointly with location is credited back to the predictor itself. Formally, the adjusted contribution equals the feature’s primary SHAP value plus the sum of its interactions with every spatial component in the model. The result is a feature-level spatial explanation, analogous to the local contribution computed in MGWR, where a coefficient at a location is multiplied by the predictor’s value there. The author emphasizes that this reallocation is an interpretability device, not a causal decomposition, since SHAP interaction values reflect both the fitted model and the joint distribution of the predictors.

To test whether these adjusted explanations genuinely correspond to the contributions from classical local regression, the study relied on carefully controlled simulation. Two synthetic datasets were generated on a regular two-dimensional grid of thirty by thirty cells, one with four predictors and one with seven. The true coefficients were designed as distinct mathematical surfaces, including linear trends, quadratic paraboloids, sinusoidal oscillations, sharp sigmoidal transitions, and localized Gaussian bumps, ensuring that each variable behaved according to a different form of spatial heterogeneity. Because the ground truth was known, the agreement between methods could be measured against reality rather than against another estimate. A second, more demanding experiment also injected mild nonlinear terms, a quadratic effect, a sine transformation, and a pairwise interaction, to probe robustness beyond MGWR’s linear assumptions.

The machine-learning side of the comparison used XGBoost trained with four different ways of representing space: raw coordinates, Moran’s Eigenvector Maps derived from a spatial weights matrix, radial basis function kernels centered across the study area, and Space2vec, a Fourier-style embedding that maps coordinates into sine and cosine features at multiple frequencies. MGWR was fitted in parallel using adaptive bisquare kernels and backfitting optimization, with bandwidth selection minimizing the corrected Akaike Information Criterion. The resulting bandwidths, ranging from roughly 100 to nearly 500 cells, confirmed that each predictor operated at a distinct spatial scale, and MGWR achieved coefficients of determination around 0.94 and 0.91 for the two simulations.

The results were strikingly consistent. At the local level, cell-by-cell scatterplots comparing MGWR contributions with SA-SHAP contributions yielded coefficients of determination mostly above 0.9 in the four-variable case, with values ranging from 0.835 to 0.976 across encodings, and similarly high values between 0.845 and 0.962 for the seven-variable problem. At the global level, the beeswarm plots of feature importance, a visualization familiar to any SHAP user, produced exactly identical importance rankings under both MGWR and SA-SHAP and under all four spatial encodings. In the four-variable experiment, the ordering x2, x1, x4, x3 held everywhere, with mean contributions and percentage shares nearly matching between the statistical and machine-learning paradigms. In the seven-variable case, the ranking x4, x2, x6, x1, x7, x3, x5 was likewise invariant.

Encoding choice itself proved largely irrelevant to the conclusions. Pairwise Spearman rank correlations computed across the full SA-SHAP contribution matrices from the four encoding strategies all exceeded 0.95 in both experiments, indicating that although absolute attribution values shift slightly with the spatial representation, the relative attribution patterns remain stable. Moran’s eigenvectors showed a marginal advantage in local agreement, but the study’s central message is that spatial information, whatever its encoding, can be infused into machine learning models without distorting the resulting feature-importance hierarchy. Spatial block cross-validation, in which the grid was divided into four contiguous quadrants with one held out at each fold, further confirmed that testing R2 values remained high, generally between 0.82 and 0.92, suggesting the reported explanations were not artifacts of overfitting.

Sensitivity analysis under the nonlinear simulation scenarios showed only a modest decline in correspondence, with worst-case R2 values around 0.83 and best-case near 0.90 across 27 parameter combinations, implying the framework tolerates moderate departures from the linear assumptions under which it was benchmarked. The author cautions, however, that stronger nonlinearities, correlated predictors, and spatial confounding could reduce agreement further.

To demonstrate real-world applicability, the study revisited a ride-hailing demand dataset for Chicago comprising 795 census tract records, modeling the logarithm of trip counts with nine socioeconomic and network features. The XGBoost model reached a global R2 of 0.97, well above the 0.83 achieved by MGWR, and the SA-SHAP workflow produced contribution maps and binned contribution profiles that exposed clear spatial patterns. Educational attainment emerged as the dominant driver of ride-hailing trips at 27.7 percent of total contribution, followed closely by mean trip length at 25.8 percent, while street-network density contributed the least at 3.4 percent. Where MGWR agreed on the most and least influential features, discrepancies elsewhere were expected given the accuracy gap, and the author argues that when local regression performs poorly, a strong machine-learning model paired with SA-SHAP offers a compelling alternative for explanation.

The implications extend well beyond transportation research. Environmental science, climatology, urban planning, and the geosciences all depend on models whose predictions must be trusted by decision-makers, and the study suggests that spatially adjusted explanations can deliver transparency comparable to geographically weighted regression without sacrificing predictive power. The author also stresses what SA-SHAP is not: the interaction reallocation should not be read as causal inference, only as model-based attribution. Future work will push the framework toward gridded and point-based datasets at larger scales, uncertainty quantification of spatial explanations, and richer encodings such as graph-based or deep spatial embeddings. For now, the study offers spatial data scientists a practical recipe: let the machine learn the geography, then hand the geography back to the features that earned it. The complete code and data supporting the analysis have been released in a public GitHub repository, lowering the barrier for researchers eager to test whether their own black-box models can explain space as faithfully as the statisticians’ maps always have.

Subject of Research: Correspondence between local regression contributions and spatially adjusted SHAP values for explaining spatial heterogeneity in machine learning models

Subject of Research: Technology and Engineering

Article Title: From local to global XAI: Do local regression contributions correspond to spatially adjusted SHAP (SA-SHAP)?

Article References: Vahidnia, M. H. (2026). From local to global XAI: Do local regression contributions correspond to spatially adjusted SHAP (SA-SHAP)?. Machine Learning with Applications, Article 100990. https://doi.org/10.1016/j.mlwa.2026.100990

Image Credits: AI Generated

DOI: 10.1016/j.mlwa.2026.100990

Keywords: SA-SHAP, explainable artificial intelligence, SHAP, MGWR, spatial heterogeneity, XGBoost, spatial encoding, geospatial machine learning, feature importance, ride-hailing demand, spatially varying coefficients, Moran’s eigenvectors

Cite Scienmag News

Denise Maddox. (September 7, 2026). From local to global explainability: linking regression contributions with spatially adjusted SHAP. Scienmag. https://scienmag.com/from-local-to-global-explainability-linking-regression-contributions-with-spatially-adjusted-shap/

Denise Maddox. "From local to global explainability: linking regression contributions with spatially adjusted SHAP." Scienmag, 7 September 2026, https://scienmag.com/from-local-to-global-explainability-linking-regression-contributions-with-spatially-adjusted-shap/. Accessed 7 September 2026.

Denise Maddox. "From local to global explainability: linking regression contributions with spatially adjusted SHAP." Scienmag. September 7, 2026. https://scienmag.com/from-local-to-global-explainability-linking-regression-contributions-with-spatially-adjusted-shap/

Tags: black-box model explanations in geographyblack-box model explanations in geospatial sciencebridging classical statistics and AIenvironmental and socioeconomic predictor analysisgeographically weighted regressiongeographically weighted regression comparisongeospatial model explainabilitygeospatial model interpretationGIS model interpretationintegrating classical statistics with machine learninglocal and global explainability in geospatial analysislocal vs global model interpretabilitymultiscale geospatial modelingregional explainability of AISA-SHAPspatial heterogeneity in machine learningSpatially Adjusted SHAPspatially adjusted SHAP valuesspatially aware AI interpretabilityspatially aware explainability techniquesspatially varying feature contributionsspatially varying feature importance
Share26Tweet16
Previous Post

sDNA+ 4.1 brings 2D and 3D spatial network analysis to GIS and CAD

Next Post

RGB-D weed detection enables precise automated weeding in peony fields

Related Posts

sDNA+ 4.1 brings 2D and 3D spatial network analysis to GIS and CAD
Technology and Engineering

sDNA+ 4.1 brings 2D and 3D spatial network analysis to GIS and CAD

September 7, 2026
Fair backward compatibility: theory, definitions, and empirical evidence
Technology and Engineering

Fair backward compatibility: theory, definitions, and empirical evidence

September 7, 2026
Gaussian Mixture Model Enables Adaptive Entropy Thresholds for AI Watermarking
Technology and Engineering

Gaussian Mixture Model Enables Adaptive Entropy Thresholds for AI Watermarking

September 7, 2026
Deep Learning Classifies Multimodal Earthquake-Related Tweets
Technology and Engineering

Deep Learning Classifies Multimodal Earthquake-Related Tweets

September 7, 2026
Adaptive trust decay mechanism improves blockchain oracle reliability
Technology and Engineering

Adaptive trust decay mechanism improves blockchain oracle reliability

September 7, 2026
Risk-Aware Conversational Agent Design for Mental Health Information Access
Technology and Engineering

Risk-Aware Conversational Agent Design for Mental Health Information Access

September 7, 2026
Next Post
RGB-D weed detection enables precise automated weeding in peony fields

RGB-D weed detection enables precise automated weeding in peony fields

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • RGB-D weed detection enables precise automated weeding in peony fields
  • From local to global explainability: linking regression contributions with spatially adjusted SHAP
  • sDNA+ 4.1 brings 2D and 3D spatial network analysis to GIS and CAD
  • Forest governance and social context shape ecosystem service views in West Africa

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,151 other subscribers

© 2025 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2025 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading