Joint work with

  • Marcos O. Prates - Universidade Federal de Minas Gerais

  • Elias T. Krainski - King Abdullah University of Science and Technology

  • Sabrina da Cunha Godoy - Secretaria da Saúde do Estado do Rio Grande do Sul

  • Jun Yan - University of Connecticut

Introduction

Too many slides…

Tuberculosis in context

  • Mortality: Tuberculosis (TB) remains a major global health threat, second in infectious disease mortality only to COVID-19 (as of 2023).

  • Over 10.1 million peoplewere diagnosed and 1.23 million lost their life in 2024 alone due to TB 1 adding to a historic legacy of over a billion deaths in the last two centuries.

  • The WHO estimates that 22 billion dollars are required per year for prevention, diagnosis, and treatment in 2024 (but only 5.9 billion available).

  • The burden is deeply unequal: while high-burden nations face crises, most countries in the Global North maintain incidence rates below 10 cases per 100,000.

TB in RS

  • In Brazil: 40.4 cases per 100,000 inhabitants in 2024.

  • Rio Grande do Sul (RS) historically reported high incidence

    • 38.7 to 45.6 (from 2011 to 2022)
  • Dependence: Studies demonstrate strong spatial dependence of TB infections in Brazil, but temporal and spatiotemporal structures have been largely overlooked.

  • Risk Factors: TB risk factors include densely populated areas, poverty, substance abuse, and incarceration (Cortez et al. 2021).

Disease mapping models

Methodology & Objectives

  • set-indexed Gaussian Process (GP): we propose using the newly developed set-indexed GPs for the spatial portion of the model (Godoy et al. 2026a; b) along with some computational improvements.

  • Reliable incidence estimates:

    • Smaller municipalities benefit from borrowed strength from neighbors, improving estimate reliability.
    • Results enable the calculation of standardized incidence ratios to pinpoint high-risk areas.
  • Forecasting: Predicted TB incidence rates one year ahead offer crucial insights for proactive public health planning.

Challenges

  1. Quantifying isotropic spatial covariance

  2. Validity of the proposed models

  3. Computation: Given the high computational complexity of a “full” GP, we rely on a NNGP (Datta et al. 2016)

  4. How to compare models in this context?

Set-indexed GPs

RF in spatial statistics

  • A random field (RF): \(\{ \omega(\mathbf{s}) \; : \; \mathbf{s} \in D \}\), where \(D\) is an index set.

  • RF are used extensively in spatial statistics (Cressie 1993), where sample units are conceptualized as elements of an index-set \(D\).

  • RF assumptions change heavily according to the spatial structure/geometry of the observed spatial data.

Geometry Branch Index set
Areas/polygons Areal models Countable
Points Geostatistics Continuum

A different look into random fields

  • A more flexible index set: The class of class of non-empty, closed and bounded sets in \(D\) (denoted \(\mathcal{C}_D\)).

    • \(\{\omega(\mathbf{s}) \, : \, \mathbf{s} \in \mathcal{C}_D\}\) (Godoy et al. 2026b).
    • Isotropic GPs are defined with their covariance function depending on a distance between sets.
  • Successful in practice: Competitive with areal models, often better than models for data fusion (Godoy et al. 2026b).

  • Lacking theoretical foundation: no formal proof of validity of covariance functions.

Distances: from points to sets

  • Hausdorff distance \[ h(A_1, A_2) = \inf \{ r \geq 0 \, : \, A_1 \subseteq {\rm B}_r(A_2), A_2 \subseteq {\rm B}_r(A_1) \}, \] where \(A_1 \subset D\) and \(A_2 \subset D\) are two non-empty sets.

  • Ball-Hausdorff distance: Let \((D, d)\) be a length-space. The distance is defined as: \[ bh(A_1, A_2) = d(c(A_1), c(A_2)) + \lvert R(A_1) - R(A_2) \rvert, \] where \(A_1, A_2 \in \mathcal{C}_D\).

What is a ball?

Balls on spheres?

Theoretical Validity

  • Distance Validity: We proved that the ball-Hausdorff distance (\(bh\)) is Conditionally Negative Definite (CND) on length spaces.

  • Hilbert Embedding: The semi-metric space \((\mathcal{C}_D, \sqrt bh)\) can be isometrically embedded in a Hilbert space.

  • Positive Definiteness: By Schoenberg’s Theorem, this ensures that Matérn and Powered Exponential covariance families are valid (positive-definite) for sets (under a \(\sqrt bh\) distance).

Valid covariance functions for sets

  • The Powered Exponential (PEXP) covariance function \[ K(d; \, \theta) = \sigma^2 \exp \left\{ - \left( \frac{d}{\phi} \right)^{\nu} \right\} \] is a valid family on \((\mathcal{C}_D, \sqrt bh)\) for \(\nu \in (0, 2]\).

  • The Matérn covariance function \[ K(d; \, \theta) = \sigma^2 \frac{1}{2^{\nu - 1}\Gamma(\nu)} {\left(\frac{d}{\phi}\right)}^{\nu} K_{\nu} \left( \frac{d}{\phi} \right) \] is a valid family on \((\mathcal{C}_D, \sqrt bh)\).

Computational bottlenecks

  • The ball-Hausdorff distance is computationally efficient and needs to computed only once.

  • Bottleneck: For \(N\) municipalities, a spatial covariance matrix \(\mathbf{K} = \sigma^2 \mathbf{R}_s\) requires \(\mathcal{O}(N^3)\) operations.

  • NNGP Acceleration: Using nearest-neighbor Gaussian processes to approximate \(\mathbf{R}_s\), we are able to compute Cholesky of \(\mathbf{R}^{-1}_s\) efficiently reducing the complexity to \(\mathcal{O}(M^3 N)\), where \(M\) is the number of nearest neighbors.

Tuberculosis spatiotemporal modeling

Data

  • Sample units: 497 municipalities, across 11 years (2011 to

  • Number of TB cases: \(Y_t(\mathbf{s}_i)\) at location \(\mathbf{s}_i\) and time \(t\)

  • Population: \(P_t(\mathbf{s}_i)\) (ranging from 1155 to 1.5M)

  • Three covariates: penitenciary binary variable, homicide rate and population density (\(\mathbf{X}_t(\mathbf{s}_i)\))

Rates over time

Model

\[\begin{align*} Y_t(\mathbf{s}_i) & \mid \mathbf{X}_{t}(\mathbf{s}_i), \psi_t(\mathbf{s}_i) \overset{{\rm ind}}{\sim} f\big(\cdot \mid P_t(\mathbf{s}_i) \mu_t(\mathbf{s}_i), \boldsymbol{\tau}\big) \\ \mu_t(\mathbf{s}_i) & = \mathbb{E}[Y_t(\mathbf{s}_i) \mid \mathbf{X}_{t}(\mathbf{s}_i), \psi_t(\mathbf{s}_i)] \\ & = g^{-1}\big(\alpha + \mathbf{X}_{t}(\mathbf{s}_i)^\top \boldsymbol{\beta} + \psi_t(\mathbf{s}_i)\big) \end{align*}\]

  • Expected incidence rate: \(\mu_t(\mathbf{s}_i)\)

  • Latent random effect: \(\psi_t(\mathbf{s}_i)\)

  • \(f(\cdot \mid \cdot)\) a pmf, possibly with additional parameters \(\mathbf{\tau}\).

  • Intercept & regression coefficients: \(\pi(\alpha) \propto 1\) & \(\boldsymbol{\beta} \sim \mathcal{N}(\mathbf{0}, 100^2 \mathbf{I})\)

  • Additional parameters: default priors from INLA.

Likelihood

  • Poisson

  • Negative Binomial

  • Zero-inflated Poisson

  • Zero-inflated negative binomial

Random effects

  • Temporal dependence: \(\mathbf{R}_t(\gamma)\) is the correlation matrix of an AR(1) process, using a PC prior (Sørbye and Rue 2017) where \(\Pr(\lvert \gamma \rvert > 0.8) = 0.1\).

  • Marginal variance: PC prior (Simpson et al. 2017) such that \(\Pr(\sigma > .05) = .05\).

Structure Distribution Dimension
None \(\psi_t(\mathbf{s}_i) = 0\). 0
Temporal \(\psi_t(\mathbf{s}_i) = \phi_t\), where \(\boldsymbol{\phi} \sim \mathcal{N}(\mathbf{0}, \sigma^2 \mathbf{R}_t(\gamma))\). \(T\)
Spatial \(\psi_t(\mathbf{s}_i) = \omega(\mathbf{s}_i)\), where \(\boldsymbol{\omega} \sim \mathcal{N}(\mathbf{0}, \sigma^2 \mathbf{R}_s(\rho))\). \(K\)
Additive \(\psi_t(\mathbf{s}_i) = \phi_t + \omega(\mathbf{s}_i)\). \(T + K\)
Separable \(\psi_t(\mathbf{s}_i) = \eta_t(\mathbf{s}_i)\), where \(\text{vec}(\boldsymbol{\eta}) \sim \mathcal{N}(\mathbf{0}, \sigma^2 \mathbf{R}_s(\rho) \otimes \mathbf{R}_t(\gamma))\). \(KT\)

Spatial component of the model

  • We consider the following classic models as our baseline: ICAR, BYM (Besag et al. 1991), Leroux (Leroux et al. 2000)

    • using the (INLA) default hyperpriors for their parameters
  • In addition, we employ the proposed set-indexed GP with a power exponential covariance using the NNGP for faster inference.

  • Given the difficulty in estimating \(\nu\) (the power parameter), we fit models with \(\nu \in \{0.5, 1, 1.5, 2\}\).

  • To assess the sensitivity to the choice of the number of nearest neighbors, we fit our model with \(M \in \{5, 10, 15, 20, 25\}\).

  • In all cases, the prior on the range (\(\rho\)) was set so that: \(\Pr(\rho > \rho_0) = 0.01\).

Computational considerations

  • Separable Bottleneck: For \(N\) municipalities and \(T\) years, the full SPT covariance \(\sigma^2 \mathbf{R}_s \otimes \mathbf{R}_t\) requires \(\mathcal{O}(N^3 T^3)\) operations.

  • Kronecker Exploitation: Using properties of the Kronecker product, complexity drops to \(\approx \mathcal{O}(N^3 + T^3)\).

  • Results relying on NNGP: High-dimensional spatiotemporal inference becomes feasible in few minutes under a complexity of \(\approx \mathcal{O}(M^3 N + T^3)\).

Bayesian Inference & Model Assessment

  • Posterior: \(\pi(\boldsymbol{\theta} \mid \mathbf{y}, \boldsymbol{\psi}) \propto p(\mathbf{y} \mid \boldsymbol{\psi}, \boldsymbol{\theta}) p(\boldsymbol{\psi} \mid \boldsymbol{\theta}) \pi(\boldsymbol{\theta})\)

  • INLA: Van Niekerk et al. (2023), Van Niekerk and Rue (2024)

  • Parameter estimates: Quantiles of the posterior distribution

  • Posterior predictive distributions: \(p(\mathbf{y}^{\ast} \mid \mathbf{y})\)

  • Model assessment: Classic model assessment metrics (LPML) & approximate leave group out CV (Adin et al. 2024; Liu et al. 2025)

Modeling Strategy

  1. Select a random effect structure

  2. Select a likelihood

  3. Assess sensitivity to the number of neighbors

  4. Comparison across spatial models

Results

Summary of model assessment

  • The separable spatiotemporal structure was the best across the board. Regarding the likelihood, Poisson was the best.

  • For the number of neighbors \(M\):

    • Smallest \(M\) yields best models according to LPML, WAIC, and DIC;
    • Largest \(M\) yields best models according to the leave group out CV (different group structures considered)
  • Spatial structure:

    • set-GP with low smoothness (\(\nu = 0.5\)) was the best according to LPML, WAIC, and DIC
    • set-GP with high smoothness (\(\nu = 2.0\)) was the best according to leave group out CV

Spatial dependence

Relative Risks

Parameter Estimate (95% CI)
Penitenciary 2.12 (1.76; 2.55)
Population density 3.84 (3.47; 4.25)
Homicide rate 1.01 (1.00; 1.03)

Incidence: Small municipalities

Incidence: Large municipalities

Raw vs adjusted

Closing remarks

Closing remarks

  • Theoretical Foundation: Mathematically sound spatial covariance structures.

  • Computational Scalability: High-dimensional spatiotemporal inference feasible in minutes.

  • Flexibility: Models allow for tunable smoothness and is robust to changing spatial boundaries over time.

  • Public Health Impact: More reliable risk factor estimates and out-of-sample forecasting to inform proactive TB control policies.

  • Performance: Our approach matches or outperforms classic areal models (CAR, BYM, Leroux) while offering a more general framework.

Is there a package?

References

Adin, A., Krainski, E. T., Lenzi, A., Liu, Z., Martínez-Minaya, J., and Rue, H. (2024), “Automatic cross-validation in structured models: Is it time to leave out leave-one-out?” Spatial Statistics, 62, 100843. https://doi.org/https://doi.org/10.1016/j.spasta.2024.100843.
Besag, J. (1974), “Spatial interaction and the statistical analysis of lattice systems,” Journal of the Royal Statistical Society. Series B (Methodological), JSTOR, 192–236.
Besag, J., York, J., and Mollié, A. (1991), “Bayesian image restoration, with two applications in spatial statistics,” Annals of the Institute of Statistical Mathematics, 43, 1–20.
Cortez, A. O., Melo, A. C. de, Neves, L. de O., Resende, K. A., and Camargos, P. (2021), “Tuberculosis in Brazil: One country, multiple realities,” Jornal Brasileiro de Pneumologia, Sociedade Brasileira de Pneumologia e Tisiologia, 47, e20200119. https://doi.org/10.36416/1806-3756/e20200119.
Cressie, N. (1993), Statistics for spatial data, Wiley series in probability and statistics, Wiley. https://doi.org/10.1002/9781119115151.
Cressie, N., and Wikle, C. K. (2015), Statistics for spatio-temporal data, Wiley.
Cruz-Reyes, D. L., Assunção, R. M., and Loschi, R. H. (2023), “Inducing high spatial correlation with randomly edge-weighted neighborhood graphs,” Bayesian Analysis, International Society for Bayesian Analysis, 1, 1–35.
Datta, A., Banerjee, S., Finley, A. O., and Gelfand, A. E. (2016), “Hierarchical nearest-neighbor gaussian process models for large geostatistical datasets,” Journal of the American Statistical Association, ASA Website, 111, 800–812. https://doi.org/10.1080/01621459.2015.1044091.
Datta, A., Banerjee, S., Hodges, J. S., and Gao, L. (2019), “Spatial disease mapping using directed acyclic graph auto-regressive (DAGAR) models,” Bayesian Analysis, International Society for Bayesian Analysis, 14, 1221–1244. https://doi.org/10.1214/19-ba1177.
Godoy, L. da C., Prates, M. O., Quintana, F. A., and Yan, J. (2026a), “On the validity of isotropic covariance functions for set-indexed random fields.” https://doi.org/10.48550/arXiv.2502.15146.
Godoy, L. da C., Prates, M. O., and Yan, J. (2026b), “Statistical inferences and predictions for areal data and spatial data fusion with Hausdorff–Gaussian processes,” Journal of Agricultural, Biological and Environmental Statistics. https://doi.org/10.1007/s13253-025-00720-7.
Leroux, B. G., Lei, X., and Breslow, N. (2000), “Estimation of disease rates in small areas: A new mixed model for spatial dependence,” in Statistical models in epidemiology, the environment, and clinical trials, eds. M. E. Halloran and D. Berry, New York, NY: Springer New York, pp. 179–191. https://doi.org/10.1007/978-1-4612-1284-3_4.
Liu, Z., Van Niekerk, J., and Rue, H. (2025), “Leave-group-out cross-validation for latent gaussian models,” SORT, 49, 121–146. https://doi.org/10.57645/20.8080.02.25.
Simpson, D., Rue, H., Riebler, A., Martins, T. G., and Sørbye, S. H. (2017), “Penalising model component complexity: A principled, practical approach to constructing priors,” Statistical science, Institute of Mathematical Statistics, 32, 1–28.
Sørbye, S. H., and Rue, H. (2017), “Penalised complexity priors for stationary autoregressive processes,” Journal of Time Series Analysis, Wiley Online Library, 38, 923–935.
Van Niekerk, J., Krainski, E., Rustand, D., and Rue, H. (2023), “A new avenue for Bayesian inference with INLA,” Computational Statistics & Data Analysis, 181, 107692. https://doi.org/https://doi.org/10.1016/j.csda.2023.107692.
Van Niekerk, J., and Rue, H. (2024), Low-rank variational Bayes correction to the Laplace method,” Journal of Machine Learning Research, 25, 1–25.

Thank you!

Appendix

Model structure assessment

Structure LPML 5-NN 5-NN and \([t - 1, t + 1]\) Posterior
Separable 8897.0 (1) 9163.4 (1) 8954.9 (1) 9217.9 (1)
Additive 9187.0 (2) 9756.9 (3) 9393.7 (2) 9811.6 (2)
Spatial 9230.4 (3) 9693.7 (2) 9450.6 (3) 9865.3 (3)
None 35619.7 (5) Inf (4) 37340.7 (4) 37855.0 (4)
Temporal 33700.5 (4) Inf (4) 38024.8 (5) 38598.3 (5)

\(M\) Assessment

Comparison of spatial models

Model LPML 5-NN 5-NN + \([t-1, t+1]\) Posterior (NNGP) Posterior (Leroux)
\(\nu = 2\) 8897.0 (4) 9163.4 (1) 8954.9 (1) 9217.9 (1) 9201.5 (1)
\(\nu = 0.5\) 8868.3 (1) 9450.4 (2) 9000.6 (3) 9466.0 (2) 9452.6 (2)
Leroux 8890.6 (2) 9736.4 (3) 8994.6 (2) 9752.1 (3) 9700.5 (3)
ICAR 8913.6 (5) 9757.8 (5) 9001.6 (4) 9783.5 (4) 9728.9 (4)
BYM 8893.1 (3) 9756.1 (4) 9019.7 (5) 9790.5 (5) 9752.6 (5)

Sensitivity analysis I

Sensitivity analysis II

Sensitivity analysis III