Generalized Diffusive Epidemic Process with Permanent Immunity in Two Dimensions
Abstract
We introduce the generalized diffusive epidemic process, which is a metapopulation model for an epidemic outbreak where a non-sedentary population of walkers can jump along lattice edges with diffusion rates or if they are susceptible or infected, respectively, and recovered individuals possess permanent immunity. Individuals can be contaminated with rate if they share the same lattice node with an infected individual and recover with rate , being removed from the dynamics. Therefore, the model does not have the conservation of the active particles composed of susceptible and infected individuals. The reaction-diffusion dynamics are separated into two stages: (i) Brownian diffusion, where the particles can jump to neighboring nodes, and (ii) contamination and recovery reactions. The dynamics are mapped into a growing process by activating lattice nodes with successful contaminations where activated nodes are interpreted as infection sources. In all simulations, the epidemic starts with one infected individual in a lattice filled with susceptibles. Our results indicate a phase transition in the dynamic percolation universality class controlled by the population size, irrespective of diffusion rates and and a subexponential growth of the epidemics in the percolation threshold.
I Introduction
This work considers the diffusive epidemic process (DEP) with permanent immunity. The standard DEP has the feature of a metapopulation model [1], which the lattice is a substrate to a fluctuating infected population [2, 3, 4, 5, 6, 7, 8, 9, 10, 11], unlike sedentary models where the individuals are the lattice nodes on typical stochastic lattice processes [12]. In the standard DEP, individuals can diffuse by hopping to neighboring sites and interact only when they divide the same lattice node. The DEP on lattices has a rich critical behavior, whose exponents should differ according to three regimes: , , and where and are the diffusion rates of the susceptible and infected individuals, respectively [13, 2, 3, 8, 11]. The critical behavior of standard DEP in any diffusion regime also differs from the paradigmatic directed percolation universality class [14, 8].
In general, one can simulate the DEP as a cellular automata model where reaction-diffusion dynamics can be separated into two synchronous stages [3, 7, 11]. In diffusion, susceptible and infected individuals jump to neighboring nodes according to the and rates, respectively. All lattice nodes should update their populations after the diffusion stage. Eventually, the reaction stage takes place according to the channels
(1) |
where Eq. (1) means that susceptible individuals would be contaminated if they share the same lattice node with at least one infected individual with rate and infected individuals can spontaneously recover with rate . According to the standard definition of DEP [3], individuals become susceptible before they recover (compartment is just the same as ), which means the susceptible individuals can be infected again. We can turn recovered individuals in compartment permanently immune to the disease to prevent them from interacting with the active particles of compartments and . Therefore, the population of active particles will not be conserved after the modification.
In sedentary stochastic epidemic models, perfect immunity is introduced in the generalized epidemic process (GEP) [15, 16]. The GEP model describes the spreading of a non-conserved population and falls into the dynamic percolation universality class [17, 16, 14]. Permanent immunity generally makes a stochastic process fall into the dynamic percolation universality class [18]. Permanent immunity is also essential to introduce the effects of vaccination protocols [19]. Recently, some reported results of a vaccination epidemic model using Monte Carlo (MC) simulations, finite-size scaling (FSS), and mean-field approximations [20] presented continuous phase transitions for square lattices with critical exponents compatible with the directed percolation universality class.
An interesting question is the role of permanent immunity when added to the general DEP dynamics and metapopulation models. Therefore, we analyze the effect of permanent immunity in the DEP. We define the analogous model for diffusive individuals, called the generalized diffusive epidemic process (GDEP), and study its properties. By activating lattice nodes with successful contaminations, we address the problem of mapping the epidemic dynamics into a growing process and exploring it as a percolation problem. In addition, the final removed population and typical related observables are analyzed.
The definition of GDEP presented in this manuscript is close to one extension of the susceptible-infected-removed (SIR) model [21] where mobile point particles are free to move in a square space with periodic boundary conditions and interact according to the reaction channels in Eq. (1) if they share a single square cell, a subdivision of the square space. The main difference is the diffusive movement of the individuals is restricted to a two-dimensional lattice in the GDEP, like in transportation networks [22]. Limiting particle movement to a lattice allows one to see the dependence of the critical exponents on the lattice dimension [23, 24] and also analyze the phase transition as controlled by the population size. One can expect the percolation transition to happen when one increases the particle concentration.
II Model and Scaling
This section presents the GDEP at a square lattice with nodes. The reaction-diffusion dynamics is formulated as a cellular automata model and separated into two synchronous stages where all lattice nodes are updated simultaneously. The dynamics are summarized in the following kinetic Monte-Carlo rules [25, 26]:
-
1.
We begin by placing the walker population in the lattice nodes. The walker population size is related to the concentration as
(2) Increasing the concentration , a continuous phase transition from a non-percolating phase to a percolating one will happen, in a critical threshold . Dynamics start from a state with one infected individual and susceptibles and the stochastic arrays and store the susceptible and infected populations per node, respectively;
-
2.
In a single step, the arrays S and I are updated at the end of each stage:
-
•
Diffusion: susceptible and infected individuals in all nodes jump with probabilities and , respectively, along one lattice edge;
-
•
Reactions: if susceptible individuals share a lattice node with at least one infected individual, they will be infected at a rate . In addition, infected sites are removed with probability . In all cases, we used ;
-
•
-
3.
Step 2 is iterated until the system has no infected individual. The system will always reach an absorbing state with a lattice filled only with removed and susceptible individuals.
The Monte Carlo time unit is the time-lapse of updating all lattice nodes.
The Markovian rules above present the following mean-field behavior [3]
(3) |
where are the particle densities in each compartment , , and , which obey the following conservation law
(4) |
One can see the striking similarity with the mean-field equations for the susceptible-infected-removed (SIR) model [27, 28, 29, 30], which motivates us to map the model into a growing model where we can use union-find algorithms to study the system as a percolation problem. The mapping is done by activating nodes with successful contaminations in a GDEP realization. One of these union-find algorithms is the Newman-Ziff algorithm [31, 32, 33], which is suitable for finding the cluster-size distribution . In the following, we call the nodes with at least one successful contamination as activated ones.
We can interpret the activated nodes as infection sources in a lattice of connected places. Given the Brownian nature of the epidemic spreading by the random walkers, the activity is concentrated at the cluster boundaries. We also expect only one giant component in every realization of GDEP, which comprises all the epidemic spreading. The order parameter of the percolation transition is the wrapping probability [27, 28, 29, 30]
(5) |
The indicates an average over repetitions of GDEP dynamics starting from only one seed. The averaged order parameter is the wrapping probability of a cluster formed by the activated nodes.
From the cluster size distribution , we can also obtain the cluster size moments which are given by
(6) |
where is the number of activated nodes. Taking the sum on Eq. (6), excluding the wrapping cluster to calculate the first moment, we have the mean cluster size or the susceptibility [29, 30]
(7) |
Now, taking the sum including the wrapping cluster [27], we can define a ratio analogous to Binder cumulants for spin models
(8) |
The cluster moments present the following finite-size behavior [34, 35]
(9) |
from we can obtain the following finite-size relations
(10) | ||||
where are scaling functions.
Also, one can collect the average removed population and its moments to investigate the critical behavior of GDEP, which should present the same critical behavior as the cluster observables. As already stated, the GDEP dynamics form only one giant component because of the Brownian diffusion of the individuals. Therefore, the removed population can be interpreted as the cluster mass in a way that removed population moments should obey the following finite-size scaling relation
(11) |
We can define the following observables
(12) | ||||
In Eq. (12), is the average removed concentration. From Eq. (11), we have the following finite-size behavior of the observables in Eq. (12)
(13) | ||||
Moreover, we should have a dynamical critical behavior associated with dynamical exponents. One can investigate dynamical exponents and the dynamical behavior by the following set of observables of GDEP dynamics [36], which scales as
(14) | ||||
at the critical threshold where is the survival probability, i.e., the fraction of GDEP realizations still active after a Monte-Carlo time. The second one is the total number of removed individuals as a function of the time. The survival probability decays as a power-law at the critical threshold . In addition, the number of infected individuals increases as a power-law at the critical threshold .
III Results and Discussion
We performed Monte Carlo simulations of the GDEP on square lattices. In all realizations, we begin from one seed. The dynamics would end when the system falls into one of the possible absorbing states, with no remaining infected individual. For each seed, the GDEP grows one cluster formed by the activated nodes. All curves are given as functions of node concentration .
Snapshots of one realization of the growing process are shown in Fig. 1. We choose the case with concentration (close to the critical threshold , see Tab. 1). One can see that the cluster activity is concentrated at the cluster boundaries as expected. The growing process generates one cluster, which wraps the lattice between Monte Carlo times and for this particular GDEP realization.

The system displays a continuous phase transition if the basic reproduction number satisfies . Moreover, the critical threshold increases with the relative diffusion ratio and vice versa. We considered in detail the cases (1) , , (2) , , and (3) , , with critical thresholds given in Tab. 1. The critical threshold is consistent with a minor concentration needed for a percolating phase if infected individuals can diffuse faster.
Diffusion rates | Epidemic threshold |
---|---|
, | |
, | |
, |
The finite-size scaling behavior given in Eqs. (10) and (13) should be compatible with the exact 2d percolation critical exponents , , and on the square lattice. Also, the dynamic critical behavior is compatible with the 2d dynamical exponents , , and . In the following, we show results of the asymptotic behavior of cluster and removed concentration observables. In addition, we also show in the following the GDEP properties as a function of the time at the critical threshold that separates the percolating and non-percolating phases.
We show results in the asymptotic limit for the cluster observables in Fig. 2 for the case (2) with . The system presents a continuous phase transition in the dynamic percolation universality class where the system goes from a non-percolating phase to a percolating one by increasing the concentration . The same behavior is found for the cases (1) , , and (3) , (data not shown). We can conclude that permanent immunity is the fundamental ingredient that lets the system fall into the dynamic percolation universality class. A remaining question is how the system goes from one of the standard DEP universality classes to the dynamical percolation criticality if one introduces a reinfection rate [16], which can stimulate further studies on the partial immunity of diffusive metapopulation models.

The continuous phase transition can also be analyzed by looking at the asymptotic removed concentration observables, shown in Fig. 3. These observables can be particularly useful when the system has no proper boundary conditions to identify a wrapping cluster, which should be valid for complex and scale-free networks [37]. Of course, the critical behavior is also compatible with dynamical percolation exponents. The estimated critical concentration is the same as shown in Fig. 2.

Regarding dynamical exponents, we show results for the survival probability and the removed concentration in Fig. 4. From the scaling relations written in Eq. (15), we can see that the data has the expected behavior of Eq. (14) where the survival probability decays algebraically with the exponent while the removed concentration grows as a power-law with the critical exponent . The removed population at presents subexponential (power-law) growth, a feature shared by other epidemic models with short-range interactions [21], which explains the flattening of the COVID-19 growing curve [38, 39] as a consequence of containment measures.

IV Conclusions
We considered a non-sedentary metapopulation model, namely the generalized diffusive epidemic process. This process modifies the standard diffusive epidemic, including permanent immunity. Moreover, the process does not conserve the active population. The Markovian dynamics rules were formulated as a cellular automaton with synchronous updates of all lattice nodes. The reaction-diffusion dynamics is separated into two stages: (i) the Brownian diffusion, where the particles can jump to neighboring nodes, and (ii) contamination and recovery reactions. We also map the metapopulation model as a growing process by activating nodes with successful contaminations, interpreted as infection sources.
The generalized diffusive epidemic process was studied using extensive Monte-Carlo simulations. Our results indicate a continuous phase transition in the dynamic percolation universality class controlled by the population size, irrespective of relative diffusion rates and . Conversely, the standard DEP (without immunity) should fall in three different universality classes [8], one for each diffusion regime. Therefore, the critical behavior of the generalized epidemic process differs from the standard diffusive epidemic process, where the universality class depends on the relative ratio of the diffusive rates. Moreover, the removed population at presents subexponential (power-law) growth related to containment measures of an epidemic spreading.
V Acknowledgments
We would like to thank CAPES (Coordenação de Aperfeiçoamento de Pessoal de Nível Superior), CNPq (Conselho Nacional de Desenvolvimento Científico e tecnológico), and FAPEPI (Fundação de Amparo à Pesquisa do Estado do Piauí) for the financial support. We acknowledge the Dietrich Stauffer Computational Physics Lab., Teresina, Brazil, and Laboratório de Física Teórica e Modelagem Computacional - LFTMC, Teresina, Brazil, where we performed the numerical simulations.
References
- Colizza et al. [2007] V. Colizza, R. Pastor-Satorras, and A. Vespignani, Reaction–diffusion processes and metapopulation models in heterogeneous networks, Nat. Phys. 3, 276 (2007), number: 4.
- van Wijland et al. [1998] F. van Wijland, K. Oerding, and H. Hilhorst, Wilson renormalization of a reaction–diffusion process, Physica A 251, 179 (1998), number: 1.
- Fulco et al. [2001] U. L. Fulco, D. N. Messias, and M. L. Lyra, Critical behavior of a one-dimensional diffusive epidemic process, Phys. Rev. E 63, 066118 (2001), number: 6 Publisher: American Physical Society.
- Bertrand et al. [2007] D. Bertrand, Y. Siqueira, M. Lyra, I. Gleria, and C. Argolo, Critical behavior of a two-species reaction–diffusion problem in 2D, Physica A 386, 748 (2007), number: 2.
- Maia and Dickman [2007] D. S. Maia and R. Dickman, Diffusive epidemic process: theory and simulation, J. Phys.: Condens. Matter 19, 065143 (2007), number: 6.
- Dickman and Maia [2008] R. Dickman and D. S. Maia, The nature of the absorbing-state phase transition in the diffusive epidemic process, J. Phys. A: Math. Theor. 41, 405002 (2008), number: 40.
- da Silva et al. [2013] M. B. da Silva, A. Macedo-Filho, E. L. Albuquerque, M. Serva, M. L. Lyra, and U. L. Fulco, Critical properties of a superdiffusive epidemic process, Phys. Rev. E 87, 062108 (2013), number: 6 Publisher: American Physical Society.
- Tarpin et al. [2017] M. Tarpin, F. Benitez, L. Canet, and N. Wschebor, Nonperturbative renormalization group for the diffusive epidemic process, Phys. Rev. E 96, 022137 (2017), number: 2 Publisher: American Physical Society.
- Argolo et al. [2019] C. Argolo, V. Tenório, and M. Lyra, Stationary and dynamical critical behavior of the three-dimensional Diffusive Epidemic Process, Physica A 517, 422 (2019).
- Alves et al. [2021] T. F. A. Alves, G. A. Alves, A. Macedo-Filho, R. S. Ferreira, and F. W. S. Lima, The diffusive epidemic process on Barabasi–Albert networks, J. Stat. Mech.: Theory Exp. 2021 (4), 043203, number: 4 Publisher: IOP Publishing and SISSA.
- Alencar et al. [2023a] D. S. M. Alencar, T. F. A. Alves, G. A. Alves, F. W. S. Lima, A. Macedo-Filho, and R. S. Ferreira, Two-dimensional diffusive epidemic process in the presence of quasiperiodic and quenched disorder, Journal of Statistical Mechanics: Theory and Experiment 2023, 043205 (2023a), publisher: IOP Publishing.
- Tomé and de Oliveira [2018] T. Tomé and M. J. de Oliveira, Stochastic thermodynamics and entropy production of chemical reaction systems, J. Chem. Phys. 148, 224104 (2018), number: 22.
- Kree et al. [1989] R. Kree, B. Schaub, and B. Schmittmann, Effects of pollution on critical population dynamics, Phys. Rev. A 39, 2214 (1989), number: 4 Publisher: American Physical Society.
- Henkel et al. [2008] M. Henkel, H. Hinrichsen, and S. Lübeck, Non-Equilibrium Phase Transitions: Volume 1: Absorbing Phase Transitions, Theoretical and Mathematical Physics (Springer Netherlands, 2008).
- Mollison [1977] D. Mollison, Spatial Contact Models for Ecological and Epidemic Spread, Journal of the Royal Statistical Society. Series B (Methodological) 39, 283 (1977), publisher: [Royal Statistical Society, Wiley].
- Grassberger et al. [1997] P. Grassberger, H. Chaté, and G. Rousseau, Spreading in media with long-time memory, Phys. Rev. E 55, 2488 (1997), number: 3 Publisher: American Physical Society.
- J L Cardy and P Grassberger [1985] J L Cardy and P Grassberger, Epidemic models and percolation, Journal of Physics A: Mathematical and General 18, L267 (1985).
- Janssen and Täuber [2005] H.-K. Janssen and U. C. Täuber, The field theory approach to percolation processes, Ann. Phys. 315, 147 (2005), number: 1.
- Wang et al. [2016] Z. Wang, C. T. Bauch, S. Bhattacharyya, A. d’Onofrio, P. Manfredi, M. Perc, N. Perra, M. Salathé, and D. Zhao, Statistical physics of vaccination, Phys. Rep. 664, 1 (2016).
- Pires and Crokidakis [2017] M. A. Pires and N. Crokidakis, Dynamics of epidemic spreading with vaccination: Impact of social pressure and engagement, Physica A 467, 167 (2017).
- Paoluzzi et al. [2021] M. Paoluzzi, N. Gnan, F. Grassi, M. Salvetti, N. Vanacore, and A. Crisanti, A single-agent extension of the SIR model describes the impact of mobility restrictions on the COVID-19 epidemic, Sci. Rep. 11, 24467 (2021), number: 1.
- Newman [2018] M. Newman, Networks (OUP Oxford, 2018).
- Stanley [1987] H. Stanley, Introduction to Phase Transitions and Critical Phenomena, International series of monographs on physics (Oxford University Press, 1987).
- Amit and Martin-mayor [2005] D. Amit and V. Martin-mayor, Field Theory, The Renormalization Group, And Critical Phenomena: Graphs To Computers (3rd Edition) (World Scientific Publishing Company, 2005).
- Dorogovtsev et al. [2008] S. N. Dorogovtsev, A. V. Goltsev, and J. F. F. Mendes, Critical phenomena in complex networks, Rev. Mod. Phys. 80, 1275 (2008), number: 4 Publisher: American Physical Society.
- Pastor-Satorras et al. [2015] R. Pastor-Satorras, C. Castellano, P. Van Mieghem, and A. Vespignani, Epidemic processes in complex networks, Rev. Mod. Phys. 87, 925 (2015), number: 3 Publisher: American Physical Society.
- de Souza et al. [2011] D. R. de Souza, T. Tomé, and R. M. Ziff, A new scale-invariant ratio and finite-size scaling for the stochastic susceptible–infected–recovered model, J. Stat. Mech.: Theory Exp. 2011 (03), P03006, number: 03.
- Tomé and Ziff [2010] T. Tomé and R. M. Ziff, Critical behavior of the susceptible-infected-recovered model on a square lattice, Phys. Rev. E 82, 051921 (2010), number: 5 Publisher: American Physical Society.
- Santos et al. [2020] G. Santos, T. Alves, G. Alves, A. Macedo-Filho, and R. Ferreira, Epidemic outbreaks on two-dimensional quasiperiodic lattices, Phys. Lett. A 384, 126063 (2020), number: 2.
- Alencar et al. [2020] D. Alencar, T. Alves, G. Alves, A. Macedo-Filho, and R. Ferreira, Epidemic outbreaks on random Voronoi–Delaunay triangulations, Physica A 541, 122800 (2020).
- Newman and Ziff [2000] M. E. J. Newman and R. M. Ziff, Efficient Monte Carlo Algorithm and High-Precision Results for Percolation, Phys. Rev. Lett. 85, 4104 (2000), number: 19 Publisher: American Physical Society.
- Newman and Ziff [2001] M. E. J. Newman and R. M. Ziff, Fast Monte Carlo algorithm for site or bond percolation, Phys. Rev. E 64, 016706 (2001), number: 1 Publisher: American Physical Society.
- Yang [2012] H. Yang, Alternative criterion for two-dimensional wrapping percolation, Phys. Rev. E 85, 042106 (2012), number: 4 Publisher: American Physical Society.
- Stauffer and Aharony [2018] D. Stauffer and A. Aharony, Introduction To Percolation Theory: Second Edition (CRC Press, 2018).
- Christensen and Moloney [2005] K. Christensen and N. Moloney, Complexity and Criticality, Advanced physics texts (Imperial College Press, 2005).
- Wada et al. [2015] A. H. O. Wada, T. Tomé, and M. J. de Oliveira, Critical properties of the susceptible-exposed-infected model on a square lattice, J. Stat. Mech.: Theory Exp. 2015 (4), P04014, number: 4 Publisher: IOP Publishing and SISSA.
- Alencar et al. [2023b] D. Alencar, T. Alves, R. Ferreira, F. Lima, G. Alves, and A. Macedo-Filho, Droplet finite-size scaling theory of asynchronous SIR model on quenched scale-free networks, Physica A 626, 129102 (2023b).
- Verma et al. [2020] M. K. Verma, A. Asad, and S. Chatterjee, COVID-19 Pandemic: Power Law Spread and Flattening of the Curve., Trans Indian Natl Acad Eng 5, 103 (2020), place: Singapore.
- Maier and Brockmann [2020] B. F. Maier and D. Brockmann, Effective containment explains subexponential growth in recent confirmed COVID-19 cases in China, Science 368, 742 (2020), publisher: American Association for the Advancement of Science.