Bayesian Cluster Geographically Weighted Regression for Spatial Heterogeneous Data

Wala Draidi Areed, Aiden Price, Helen Thompson, Conor Hassan, Reid Malseed, Kerrie Mengersen · DOI

Abstract

Spatial statistical models are commonly used in geographical scenarios to ensure spatial variation is captured effectively. However, spatial models and cluster algorithms can be complicated and expensive. This paper pursues three main objectives. First, it introduces covariate effect clustering by integrating a Bayesian Geographically Weighted Regression (BGWR) with a Gaussian mixture model and the Dirichlet process mixture model. Second, this paper examines situations in which a particular covariate holds significant importance in one region but not in another in the Bayesian framework. Lastly, it addresses computational challenges present in existing BGWR, leading to notable enhancements in Markov chain Monte Carlo estimation suitable for large spatial datasets. The efficacy of the proposed method is demonstrated using simulated data and is further validated in a case study examining children's development domains in Queensland, Australia, using data provided by Children's Health Queensland and Australia's Early Development Census.

Introduction

In spatial statistics, researchers frequently encounter spatial heterogeneity—the phenomenon where the relationship between variables shifts based on geographic location. For instance, the impact of environmental factors on public health or socioeconomic indicators on property values is rarely uniform across a map.

Standard Geographically Weighted Regression (GWR) addresses this by fitting local regressions at every point. However, frequentist GWR often struggles with overfitting, assumes perfectly normal error distributions, and can become unstable with small local sample sizes. While Bayesian Geographically Weighted Regression (BGWR) offers a more robust alternative, it has historically been hindered by high computational costs and a lack of objective methods for grouping regions with similar behavioral patterns. This paper introduces a framework that makes BGWR faster, more precise through variable selection, and capable of automatic spatial clustering.

Methodological Framework

The authors propose a three-tiered upgrade to the Bayesian spatial modeling pipeline:

1. Computational Efficiency via Vectorization

A primary bottleneck in BGWR is the use of multivariate normal distributions, which require intensive matrix calculations. The authors observed that because geographic weight matrices are diagonal, the multivariate density can be represented as a product of univariate Gaussian functions. By implementing this "vectorization" using the nimble package in R, the model allows for independent estimation across dimensions, significantly reducing Markov chain Monte Carlo (MCMC) runtimes.

2. Dynamic Variable Selection (RJMCMC)

Not all predictors are relevant in every geographic region. To prevent "noise" from irrelevant variables, the framework integrates Reversible Jump MCMC (RJMCMC). This allows the model to dynamically decide whether a specific covariate should be included in the regression for a particular local region, effectively performing local feature selection.

3. Probabilistic Clustering

To move beyond simple heat maps, the model applies unsupervised clustering to the posterior distributions of regression coefficients:

  • Gaussian Mixture Models (GMM): A parametric approach for data assumed to come from a fixed number of types.
  • Dirichlet Process Mixture Models (DPMM): A non-parametric approach that automatically determines the optimal number of clusters without prior user input.

Experimental Results

Simulation Studies

The model was validated using synthetic datasets based on the geographies of Louisiana (64 regions) and Georgia (159 regions). In the Georgia simulation, the DPMM method achieved a Rand Index (RI) of up to 0.88, demonstrating high accuracy in recovering the "true" underlying spatial clusters and variable importance patterns.

Performance Gains

The transition to a vectorized univariate approach yielded dramatic speed improvements. In testing, the time required to run a single simulation replicate dropped from 15 minutes to under 250 seconds, making the Bayesian approach viable for larger, more complex spatial datasets.

Case Study: Child Development in Queensland

The researchers applied the model to child development data from 526 small areas (SA2) in Queensland, Australia. Using vulnerability indicators across five domains (physical, social, emotional, language, and communication) from the Australian Early Development Census (AEDC), the study found:

  • Preschool Impact: A substantive negative relationship exists between preschool attendance and developmental vulnerability.
  • Spatial Variation: This association was strongest in Southeast Queensland (near Brisbane) and notably weaker in northern, more remote regions.
  • Nuanced Clustering: The DPMM identified 12 distinct clusters of regions. This provides a more sophisticated view for policymakers than a simple urban-rural binary, identifying non-contiguous regions that share identical developmental challenges.

Conclusion and Future Work

This research provides a scalable, automated framework for identifying geographic neighborhoods where specific factors influence outcomes in similar ways. While the current model focuses on linear regression, future work aims to extend this to Generalized Linear Models (GLMs) for count or binary data and integrate penalized methods like Lasso for high-dimensional datasets. Additionally, the authors suggest further research into automated "bandwidth" selection to refine the geographic reach of local influences within the Bayesian context.

Summary updated

BibTeX
@inproceedings{areed2024bayesian,
  author = {Wala Draidi Areed and Aiden Price and Helen Thompson and Conor Hassan and Reid Malseed and Kerrie Mengersen},
  title = {{Bayesian Cluster Geographically Weighted Regression for Spatial Heterogeneous Data}},
  booktitle = {Royal},
  year = {2024},
  doi = {10.1098/rsos.231780},
}
Figure