arXiv:2610.28806cs.CVOct 2026

Manuscript Offprint

arXiv:2610.28806

SAIL: A Learnable Generalisation of Spatial Autocorrelation over Graph-Structured Data

Piotr Keller, Fayyaz Minhas

Piotr Keller and Fayyaz Minhas

Abstract—In vision and scientific domains involving spatial data, a key question is whether node feature values vary independently across space or form coherent spatial structures. Classical spatial autocorrelation statistics such as Moran's I and Geary's C quantify this phenomenon but operate on a single scalar variable with fixed neighbourhood weights, limiting their use for high-dimensional graph-like data. We introduce SAIL (Spatial Autocorrelation Index Learner), a differentiable framework that generalises spatial autocorrelation into a learnable operator by jointly learning feature projections defining candidate scalar fields and inter-node neighbourhood affinities. SAIL produces interpretable local and global spatial coherence descriptors, enabling supervised prediction and unsupervised discovery of spatial autocorrelation modes and hotspots. We show that SAIL exactly recovers classical spatial statistics under appropriate parametrisations and, for tasks driven by latent spatial autocorrelation, can approximate the Bayes-optimal predictor with an inductive bias matched to such tasks. Experiments on synthetic data and large-scale biomedical graphs demonstrate statistical correctness and discovery of spatial coherence with applications across vision, geospatial analysis, and biomedicine. The code repository is available at: https://github.com/pkeller00/SAIL.

Index Terms—Graph algorithms, Learning, Machine learning, Multivariate statistics, Biology and genetics, Algorithms

I. INTRODUCTION

A RE tumour and immune cells intermixed within a tissue sample, or do they form distinct spatial niches associated with patient outcomes? Do neighbouring regions of a tissue section express similar gene programmes, or do these programmes change sharply across space? Are economic indicators geospatially coherent across neighbouring countries?

Such questions arise across many domains involving spatially structured data, including pathobiological imaging, geospatial analysis, and computer vision, and are fundamentally about spatial self-similarity: whether observations resemble, or differ from, their neighbours. Quantifying this dependence allows us to ask not only if spatial structure is present, but also how strongly it is expressed, where it occurs, and if similar patterns recur across samples. Spatial autocorrelation (SAC) provides the formal framework for measuring such spatial self-similarity at local and global scales [1]-[3].

Existing formulations for quantifying SAC, however, are poorly suited to modern high-dimensional, learned representations. Classical statistics such as Moran's I and Geary's C [4]-[8] operate on a single scalar variable under fixed, handcrafted spatial weights, and their multivariate extensions [9]-[11] largely aggregate these univariate statistics rather than jointly learning which feature combinations carry spatial signal. Graph Neural Networks (GNNs) can implicitly encode spatial dependence via message passing [12]-[14], but they do not provide an explicit, quantitative measure of spatial clustering or dispersion that can be optimised, discovered in an unsupervised manner, or subjected to statistical significance testing. This reveals a methodological gap: there is currently no scalable formulation of SAC that learns the feature projection and neighbourhood structure for irregular, high-dimensional graph data and can be automatically optimised.

To address this, we introduce Spatial Autocorrelation Index Learner (SAIL), a neural framework that learns spatial autocorrelation descriptors directly from high-dimensional node features in spatial graphs or point sets. Unlike fixed metrics or post-hoc statistics, SAIL formulates SAC as a learnable, high-dimensional operator that jointly learns feature projections defining candidate scalar fields and inter-node neighbourhood affinities, adapting to multi-feature representations. This provides an explicit, task-aware measure of SAC, bridging classical spatial statistics and deep representation learning.

Our key contributions are as follows:

  1. We introduce SAIL, a differentiable, multivariate generalisation of spatial autocorrelation that jointly learns feature projections defining scalar fields and spatial affinity weights governing neighbourhood interactions, yielding interpretable local and graph-level SAC maps.

  2. We demonstrate that SAIL supports supervised learning of predictive spatial patterns and unsupervised discovery of feature combinations exhibiting maximal spatial coherence or contrast, termed SAC modes and anti-modes, respectively, while enabling statistically significant detection of spatial hotspots, coldspots, and outliers.

  3. We establish theoretical guarantees showing that SAIL (i) exactly recovers classical spatial statistics (Moran's I, Geary's C, Getis–Ord G∗G^{*}, and Morisita–Horn) under appropriate configurations and (ii) provides an inductive bias suited to SAC-driven prediction by approximating Bayes-optimal predictors under stated assumptions, representing quadratic spatial interactions that linear T-hop graph filters cannot capture, and having no greater Rademacher complexity than broader hypothesis classes.

  4. We demonstrate SAIL’s broad applicability across histology, spatial omics, and geospatial data, and its scalability to multi-graph datasets containing millions of nodes. SAIL uncovers meaningful and prognostically relevant

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

P. Keller and F. Minhas are with the Predictive Systems in Biomedicine (PRISM) Lab, Department of Computer Science, University of Warwick, Coventry CV4 7AL, United Kingdom (e-mail: piotr.keller@warwick.ac.uk) i)

Graph

Structured Data

SAIL Module

Figure

Feature Projection

Figure

Neighbourhood Affinity

Figure

Strong Affinity

Weak Affinity

Local Spatial

Autocorrelation (SAC)

Global

SAC

Figure

h Modes

ii) Unsupervised Mode Discovery

Figure

Goal: Identify modes with maximal SAC

Supervised Mode Discovery

Figure

Goal: Identity if a target is associated with SAC

Interpretable Mode Definitions

Figure

Use: Understand what drives SAC per mode

Hot/Cold Spot Detection

Figure

Use: Localise spatial clusters and outliers per mode

Fig. 1. Overview of the SAIL framework. (i) SAIL takes graph-structured data whose nodes carry d-dimensional features. Inside the SAIL module, a learnable feature projection maps node features to h scalar fields (modes), and a learnable neighbourhood affinity assigns strong or weak weights to node pairs. Each projected field is combined with these affinities to give node-wise local spatial autocorrelation (SAC) scores for every mode, which can also be aggregated into an h-dimensional global SAC descriptor per graph. (ii) SAIL modes can be learned through supervised or unsupervised optimisation. In the unsupervised setting, SAIL identifies feature projections that maximise spatial autocorrelation (SAC), revealing which combinations of features exhibit the strongest spatial coherence across the dataset. Conversely, in supervised learning, global SAC descriptors are used to train a downstream predictor, enabling SAIL to identify spatial autocorrelation patterns associated with the target. In both settings, the learned feature projections provide interpretable combinations of features that define each mode. Finally, a formal statistical framework enables the detection of significant hot and cold spots on the learned modes.

spatial patterns without supervision, establishing it as a scalable, interpretable framework for learning spatial autocorrelation in high-dimensional graph-structured data.