# A Numerical Comparison of Petri Net and Ordinary Differential Equation SIR Component Models

**Authors:** TREVOR RECKELL, BRIGHT KWAKU MANU, BECKETT STERNER, PETAR JEVTIĆ, REGGIE DAVIDRAJUH

PMC · DOI: 10.1109/access.2025.3645087 · IEEE access : practical innovations, open solutions · 2026-02-25

## TL;DR

This paper compares how well Petri net and ODE models simulate disease spread, showing that Petri nets can accurately model SIR dynamics with proper numerical methods.

## Contribution

The paper introduces a novel deterministic Petri net implementation of the SIRS model and demonstrates numerical convergence with ODEs.

## Key findings

- A deterministic Petri net implementation of the SIRS model achieves less than 1% error compared to ODE simulations.
- Rescaling and rounding procedures are critical for numerical convergence in Petri net SIR models.
- Both stochastic and deterministic Petri nets can accurately model SIR dynamics with appropriate numerical methods.

## Abstract

Petri nets are an increasingly used modeling framework for the spread of disease across populations or within an individual. For example, the Susceptible-Infectious-Recovered (SIR) compartment model is foundational for population epidemiological modeling and has been implemented in several prior Petri net studies. While the SIR model is typically expressed as Ordinary Differential Equations (ODEs), with continuous time and variables, Petri nets operate as discrete event simulations with deterministic or stochastic timings. We present the first systematic study of the numerical convergence of two distinct Petri net implementations of the SIRS compartment model relative to the standard ODE. In particular, we introduce a novel deterministic implementation of the SIRS model using variable transition weights in the GPenSIM package and stochastic Petri net models using Spike. We show how rescaling and rounding procedures are critical for the numerical convergence of Petri net SIR models relative to the ODEs, and we achieve a relative root mean squared error of less than 1% compared to ODE simulations for biologically relevant parameter ranges. Our findings confirm that both stochastic and deterministic discrete time Petri nets are valid for modeling SIR-type dynamics with appropriate numerical procedures, laying the foundations for larger-scale use of Petri net models.

## Full-text entities

- **Genes:** USB1 (U6 snRNA biogenesis phosphodiesterase 1) [NCBI Gene 79650] {aka C16orf57, HVSL1, Mpn1, PN, hMpn1, hUsb1}, DEAF1 (DEAF1 transcription factor) [NCBI Gene 10522] {aka MRD24, NEDHELS, NUDR, SPN, VSVS, ZMYND5}
- **Diseases:** infectious disease (MESH:D003141), pertussis (MESH:D014917), sick (MESH:D008881), SUPPLEMENTARY INDEX (MESH:D017034), fire (MESH:D000092422), PN (MESH:C565820), infected (MESH:D007239), ROUNDING (MESH:D018208), COVID-19 (MESH:D000086382), GPENSIM MODEL (MESH:D004195), SCALES (MESH:C538175), SIR (MESH:C562694), SPIKE MODELS (MESH:D031261), cancer (MESH:D009369)
- **Chemicals:** S (MESH:D013455)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12931823/full.md

## Figures

37 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12931823/full.md

## References

36 references — full list in the complete paper: https://tomesphere.com/paper/PMC12931823/full.md

---
Source: https://tomesphere.com/paper/PMC12931823