Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
[Preprint]. 2025 Jul 14:arXiv:2507.10714v1.

A Simple Approximate Bayesian Inference Neural Surrogate for Stochastic Petri Net Models

Affiliations

A Simple Approximate Bayesian Inference Neural Surrogate for Stochastic Petri Net Models

Bright Kwaku Manu et al. ArXiv. .

Abstract

Stochastic Petri Nets (SPNs) are an increasingly popular tool of choice for modeling discrete-event dynamics in areas such as epidemiology and systems biology, yet their parameter estimation remains challenging in general and in particular when transition rates depend on external covariates and explicit likelihoods are unavailable. We introduce a neural-surrogate (neural-network-based approximation of the posterior distribution) framework that predicts the coefficients of known covariate-dependent rate functions directly from noisy, partially observed token trajectories. Our model employs a lightweight 1D Convolutional Residual Network trained end-to-end on Gillespie-simulated SPN realizations, learning to invert system dynamics under realistic conditions of event dropout. During inference, Monte Carlo dropout provides calibrated uncertainty bounds together with point estimates. On synthetic SPNs with 20% missing events, our surrogate recovers rate-function coefficients with an RMSE = 0.108 and substantially runs faster than traditional Bayesian approaches. These results demonstrate that data-driven, likelihood-free surrogates can enable accurate, robust, and real-time parameter recovery in complex, partially observed discrete-event systems.

PubMed Disclaimer

Figures

Fig. A.1.
Fig. A.1.
(a) Predicted means versus true values for within- and between-patch transition rates’ single-term coefficients, with uncertainty bars. (b) Empirical ±1σ coverage of those predictions.
Fig. A.2.
Fig. A.2.
(a) Predicted means versus true values for within- and between-patch transition rates’ interaction-term coefficients, with uncertainty bars. (b) Empirical ±1σ coverage of those predictions.
Fig. A.3.
Fig. A.3.
Predicted means versus true values for the mortality rate single-term coefficient ρ1 as well as its empirical ±1σ coverage
Fig. A.4.
Fig. A.4.
Distribution of Predicted means and true values for all Parameters
Fig. 1.
Fig. 1.
A visual representation of a simple Petri Net. Pis represent the places (circles) which contains the markings (dark dots). tis denotes the transitions (rectangles). The arrows are directed arcs between a place and a transition, which can be assigned specific weights
Fig. 2.
Fig. 2.
Model Pipeline
Fig. 3.
Fig. 3.
(a) Represents within and between patch infection, recovery and mortality dynamics (b) Represents between patch migration dynamics (Note: (a) and (b) together form one model). Double arcs indicate tokens to and from a place and transition
Fig. 4.
Fig. 4.
Uncertainty calibration curves for selected parameters
Fig. 5.
Fig. 5.
True and predicted sample parameters. The blue points represent the predicted sample parameters with ±1σ error bars
Fig. 6.
Fig. 6.
True parameter mean compared to overall predicted parameter mean with ±1σ

References

    1. Peng L., Xie P., Tang Z., and Liu F., “Modeling and analyzing transmission of infectious diseases using generalized stochastic petri nets,” Applied Sciences, vol. 11, no. 18, p. 8400, 2021.
    1. Connolly S., Gilbert D., and Heiner M., “From epidemic to pandemic modelling,” Frontiers in Systems Biology, vol. 2, p. 861562, 2022.
    1. Segovia C., “Petri nets in epidemiology,” arXiv preprint arXiv:2206.03269, 2022.
    1. Bahi-Jaber N. and Pontier D., “Modeling transmission of directly transmitted infectious diseases using colored stochastic petri nets,” Mathematical biosciences, vol. 185, no. 1, pp. 1–13, 2003. - PubMed
    1. Reckell T., Manu B. K., Sterner B., Jevtić P., and Davidrajuh R., “A numerical comparison of petri net and ordinary differential equation sir component models,” 2025. [Online]. Available: https://arxiv.org/abs/2407.10019

Publication types

LinkOut - more resources