Neural Posterior Estimation for Spatial Individual-Level Epidemic Models

Yicheng Mao, Rob Deardon · 2026

Read Neural Posterior Estimation for Spatial Individual-Level Epidemic Models by Yicheng Mao, Rob Deardon (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-29180.txt.

Introduction

Yicheng Mao and Rob Deardon replace costly Monte Carlo runs for spatial epidemic models with neural posterior estimation. The new method trains a conditional flow on simulated data to gauge the posterior, with no likelihood sums. Designs compared: a convolutional network on incidence curves, and a graph network on individual infection and location data. Both reach coverage near the target level, with the graph giving lower error and narrower intervals. In the 2001 UK foot-and-mouth outbreak on 1,177 farms, both recover the reproduction number, with the graph narrower but shifted.

Catalog record

CREATORYicheng Mao, Rob Deardon
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE68665
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2605.29180

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Neural Posterior Estimation for Spatial Individual-Level Epidemic Models Yicheng Mao, Rob Deardon Abstract Spatial individual-level models (ILMs) provide a flexible framework for modelling infectious disease transmission across populations with known locations. Bayesian inference for these models relies on Markov chain Monte Carlo (MCMC), which requires repeated likelihood evaluation and, when parts of the epidemic trajectory are unobserved, data-augmented sampling over high-dimensional latent variables. This computational cost limits the applicability of MCMC to large populations and to settings requiring inference across multiple outbreaks. We propose using neural posterior estimation (NPE) for amortised Bayesian inference in spatial ILMs. NPE trains a conditional normalising flow on simulated data to approximate the posterior directly, bypassing likelihood evaluation at inference time. We compare two embedding architectures: a convolutional neural network (CNN) operating on the population-level incidence curve and a graph neural network (GNN) operating on individual-level infection and location data. In a simulation study under full observation, stochastic removals, and partial observation, both variants produce well-calibrated posteriors, with the GNN embedding yielding lower error and narrower credible intervals for the spatial transmission parameters. We apply the framework to a spatial SEIR model on 1,177 farm locations from the 2001 UK foot-and-mouth disease outbreak. GNN-NPE maintains calibrated coverage and is substantially faster than MCMC on a per-epidemic basis. Keywords: simulation-based inference; neural posterior estimation; individual-level models; spatial epidemic models; foot-and-mouth disease 1 Introduction Mathematical models of infectious disease transmission are central to understanding epidemic dynamics and informing public health decisions. Among the available modelling frameworks, individual-level models (ILMs) ( 8 ) represent each member of a population explicitly and allow infection risk to depend on individual-level covariates such as spatial location, susceptibility characteristics, and contact structure. This flexibility makes ILMs applicable to a range of epidemic settings where the spatial arrangement of individuals influences transmission patterns. Bayesian inference is a natural approach for estimating the parameters of ILMs because it provides full posterior distributions that quantify parameter uncertainty and support probabilistic forecasting. The standard computational tool for Bayesian inference in ILMs is Markov chain Monte Carlo (MCMC) ( 2 ) . Inference becomes computationally demanding as the population size and observation window increase, because each likelihood evaluation requires repeated calculation of individual infection probabilities over the evolving sets of susceptible and infectious individuals. The cost increases further when epidemic observations are incomplete. Infection times may be censored, removal or recovery times may be unrecorded, and some infections may go undetected entirely. In these settings, the unobserved components of the epidemic trajectory must be sampled alongside the model parameters using data-augmented MCMC ( 13 ; 24 ) , which produces a high-dimensional augmented inference problem. This computational burden is amplified in simulation-based evaluation, where parameter recovery, coverage, and sensitivity analyses require inference across many simulated datasets ( 22 ) . A range of computational methods have been developed to reduce the cost of inference for spatial ILMs. One line of work accelerates likelihood-based inference itself. Composite and cluster-based methods replace parts of the full individual-level calculation with cheaper approximations based on spatial groupings of individuals ( 35 ; 36 ) . These approaches lower the cost of repeated likelihood evaluation while retaining an underlying likelihood-based inferential procedure. A second line of work moves away from direct likelihood evaluation and instead learns from simulated relationships between model parameters and epidemic data, an idea now formalised more broadly as simulation-based inference (SBI) ( 21 ; 6 ) . Within this line, Gaussian process emulators construct fast surrogates for model outputs and support emulation-based inference, including settings with event-time uncertainty ( 30 ; 31 ) . Emulator-based methods target posterior inference, but reuse the trained surrogate within an inference loop that must still be run for each new dataset. Supervised learning methods instead map spatial epidemic data directly to predicted outcomes or transmission classes ( 29 ; 3 ) . These methods amortise the mapping from data to output, but they are typically formulated to return point predictions or class labels rather than posterior distributions. Thus, in earlier computational work on spatial ILMs, posterior inference and amortisation across datasets have largely been developed separately. Neural posterior estimation (NPE) is a recent SBI method that combines amortisation across datasets with Bayesian posterior estimation. It trains a conditional density estimator on simulated parameter–data pairs to approximate the posterior distribution directly ( 25 ) . Once trained, the estimator returns a posterior for a new observation without likelihood evaluation or latent-variable sampling, and the same estimator is reused across observations. Like supervised learning methods, NPE is amortised over datasets, but it approximates the full posterior distribution rather than a point summary. NPE has been applied in astronomy ( 7 ; 19 ) , neuroscience ( 14 ) , and economics ( 11 ) , and recent work has begun to apply it to epidemic models ( 5 ; 28 ) . Its use for spatial ILMs, where inference must combine spatial structure with incomplete observation, remains largely unexplored. Spatial ILMs raise a representation problem for NPE because the observed data contain both temporal dynamics and spatial structure. In population-level epidemic models, the incidence curve is often a natural representation of the observation, and convolutional neural networks (CNNs) can extract temporal features from such epidemic time series ( 17 ; 18 ) . In spatial ILMs, the locations of infected individuals carry additional information about the transmission kernel parameters. Graph neural networks (GNNs) can encode this spatial structure by representing each individual as a node in a proximity graph, with node features that combine infection status, timing, and location ( 15 ) . Whether spatial information improves posterior estimation over temporal summaries alone is an empirical question that we address by comparing both architectures across multiple observation scenarios. In this paper, we develop an NPE framework for Bayesian inference in spatial ILMs and evaluate it under multiple observation settings, extending existing machine-learning and simulation-based work on spatial epidemic models toward amortised posterior estimation with calibrated uncertainty quantification. We formulate NPE for discrete-time spatial ILMs under three scenarios: full observation, stochastic removals with latent recovery times, and partial observation with latent infection histories. We compare a CNN embedding that summarises the epidemic through its daily incidence curve with a GNN embedding that represents each individual as a node in a spatial graph. We benchmark both NPE variants against likelihood-based MCMC in a controlled simulation study and in an application based on farm locations from the 2001 UK foot-and-mouth disease (FMD) outbreak. The results assess whether NPE provides calibrated posterior inference at lower computational cost than MCMC, and whether the GNN embedding improves estimation of spatial transmission parameters relative to the incidence-based CNN embedding. The remainder of the paper is organised as follows. Section 2 defines the spatial ILM and the three observation scenarios. Section 3 describes the NPE framework, the two embedding architectures, and the training procedure. Section 4 presents the simulation study. Section 5 describes the FMD application. Section 6 discusses the results and directions for future work. 2 Spatial SIR Individual-Level Models 2.1 Spatial Individual-Level Models We consider a discrete-time SIR epidemic process ( 16 ) within an individual-level modelling framework. At each time step t=0,1,\ldots,T , every individual is in one of

Read the complete text