arXiv is now an independent nonprofit! Learn more
License: CC BY-NC-ND 4.0
arXiv:2609.01927v1 [cond-mat.stat-mech] 01 Sep 2026

Microscopic dynamics of contagion using active Brownian particles: universal scaling and propagation controlled by protection

Isela Sicarú Regalado-Alvarado    and Francisco Alarcón ††thanks: paco@fisica.ugto.mx Address: División de Ciencias e Ingenierías, Universidad de Guanajuato, Lomas del Bosque 103, 37150 León, México.
Abstract

Understanding how individual protection and population density influence epidemic spreading remains a central challenge in epidemiology. While classical compartmental models successfully describe the temporal evolution of epidemics, they do not explicitly account for the microscopic motion and spatial organisation of individuals. Here, we investigate contagion dynamics using an agent-based model of Active Brownian Particles (ABPs), where self-propelled agents interact through local contact and a prescribed fraction of the population is protected. By systematically varying the protected-agent fraction and the population density, we identify two distinct contagion regimes separated by a crossover protection of approximately 30%30\%. Below this threshold, the maximum contagion rate follows the universal scaling νmax∝ϕ1/2\nu_{\mathrm{max}}\propto\phi^{1/2}, indicating that disease transmission is governed primarily by frequency of encounters. Above the threshold, universal scaling is lost and protection becomes the dominant mechanism controlling epidemic spreading, with the strongest suppression occurring in low-density populations. These results demonstrate that microscopic active-matter models provide a powerful framework for investigating epidemic dynamics beyond the assumptions of well-mixed population models and reveal how spatial organisation and individual protection jointly determine contagion dynamics.

\recibido

September 1, 2026??

\keys

Active Brownian particles; Epidemic spreading; Agent-based simulations; Contagion dynamics; Universal scaling.

1 Introduction

The appearance of diseases as seen during the SARS-CoV-2 outbreak. The number of infected cases increased, with no means available to prevent or treat the disease. COVID-19 appeared suddenly and being a highly contagious disease, there was little or no information available at that moment. This led to a lack of treatment and prevention protocols.

Very recent research in animal fur production reveals the presence of viruses with zoonotic potential, particularly in high-density environments with limited sanitary measures [36]. The relevance of such investigation resides in the fact that the cross-species transmission of viruses from animals to humans drives infectious disease emergence, previous works have been suggested to be the potential hosts for a variety of human viruses, including influenza A virus (IAV), and SARS-CoV-2 [27, 22]. Additionally, there are a couple of recent examples of pathologies that could compromise human health worldwide and cause an epidemic. For example the current case of the cruise ship with confirmed passengers with hantavirus [34] or the recurring outbreaks of viral infections such as measles [33].

The spread of all these infectious diseases can be analysed from a theoretical perspective using mathematical models of population growth, in which the population is generally divided into two classes according to their epidemiological status: susceptible and infected individuals [14]. The first conventional analytical model is called the SI model (Susceptible - Infected). This model predicts the dynamics of contagion by following the dynamics of susceptible agents at time tt as S⁡(t)S(t) and the infected agents as I⁡(t)I(t). Different aspects can be studied by introducing additional parameters. However, this results in much more complex differential equations, requiring advanced techniques and methodologies to solve them. For example, the effect of social distancing [19] and lockdown [4], even the effects of virus mutations that precede waves of contagion [28]. While, other models focus on the hydrodynamics of viral transmission through saliva droplets [5].

An alternative approach to study the dynamics of contagion in a population is the use of simulations with self-propelled agents. The main advantage of these methods is that they provide information on how the spatial distribution and the velocity of the agents affect the contagion dynamics. In other words, the influence of microscopic effects on the collective contagion dynamic. Moreover, thanks to this microscopic approach, other parameters that are often neglected in conventional epidemiological approaches can be taken into account, for example the alignment of the agents’ motion [37], the confinement in hallways [16], or in more general terms, any feedback that modifies the epidemic spreading [18]. Several groups around the world have investigated microscopic epidemiological models; one of the pioneer works appeared almost 20 years ago[24] and since then the community has tried to understand the contagion dynamics in terms of the typical features of the active agents like when MIPS emerge in a system of susceptible and infected agents [9]. One interesting approach is the one proposed by the group of Guzmán-Lastra, et al. [23]. They used Active Brownian Particles (ABPs) to represent walkers or agents that are able to change their internal state and reproduce the curves of the SIR model (Susceptible-Infected-Recovered). They determined the impact of contagious radius, particle velocity, and particle density as parameters that can promote virus spread.

Similarly, here in this work, we have used ABPs to model agents where some of them are either Susceptible or Infected, but we have also added Protected agents, in order to take in count vaccinated persons or with some kind of protection, like de facemasks in the case of COVID-19.

The objective of this work is to investigate how the inclusion of protected agents affects the microscopic contagion dynamics in a population of active Brownian particles. In particular, we aim to characterize how the maximum contagion rate depends on the population density and the fraction of protected agents, and to identify the regimes that emerge from their interplay.

We find two distinct regimes in terms of the maximum contagion rate: one in which the normalised rate is approximately independent of the fraction of protected agents, and another in which the contagion dynamics depend on both the protected fraction and the population density.

2 Active Matter

Active matter can be defined as materials made up of many interacting units, where each unit moves autonomously by transforming energy into motion. These systems are out of equilibrium. And manifest in both living and non-living worlds and in a wide range of scales [3, 30]. There is a plethora of models for active matter, but historically, two main minimal models can be identified in the context of numerical simulations of active particles. On the one hand, the Vicsek model, which takes in count self propulsion and effective alignment among the neighbours. This model proposed by Vicsek, was used to describe flocks of birds and schools of fish [31], it can be seen as a very raw approximation of the hydrodynamic interactions between active particles. On the other hand, we have a model of self-propelled motion in a dissipative environment. The centre of mass and the direction of the propulsive force are subjected to white noise, which introduces a diffusive component to the overall dynamics. It is the so-called Active Brownian Particles (ABPs), where passive Brownian dynamic equations of motion have been modified to describe the position and the direction of particles [20]. With applications typically at the microscale, to understand bacterial motion, active colloids, etc.

2.1 Passive Brownian dynamics

Brownian motion was first observed by Robert Brown while examining pollen grains suspended in water. He noticed that the grains exhibited persistent irregular motion [8]. Later, Albert Einstein explained that this motion originates from collisions with the surrounding fluid molecules and derived the diffusion law for suspended particles [6].

Shortly afterward, Langevin introduced a stochastic description of Brownian motion by incorporating a random force into Newton’s equation of motion. This approach led to the Langevin equation,

m​r¨=−γ​r˙+ω​ξ​(t)+F⁡(r),m\ddot{r}=-\gamma\dot{r}+\omega\xi(t)+F(r), (1)

where γ\gamma is the friction coefficient due to viscosity which depends on velocity and ω\omega is the coefficient of the fluctuating term. The stochastic term ξ⁡(t)\xi(t) has the following properties: ⟨ξi​(t)⟩=0\langle\xi_{i}(t)\rangle=0 and ⟨ξi​(t1)​ξj​(t2)⟩=δi​j​δ​(t2−t1)\langle\xi_{i}(t_{1})\xi_{j}(t_{2}){\color[rgb]{1,0,0}\rangle}=\delta_{ij}\delta(t_{2}-t_{1}).

In modern terms, this random force is modelled as Gaussian white noise, leading to the stochastic differential equation given by equation (1), which describes the dynamics of a Brownian particle under the action of an external force F⁡(𝐫)F(\mathbf{r}) [17].

If we consider a system of particles that do not interact with each other (F⁡(r)=0F(r)=0) and a low Reynold’s number regime, in other words, the overdamped limit where |γ​r˙|>>|m​r¨||\gamma\dot{r}|>>|m\ddot{r}|, the Langevin equation (1) simplifies to γ​r˙=ω​ξ​(t)\gamma\dot{r}=\omega\xi(t). By assuming that the coefficients ω\omega and γ\gamma are spatially homogeneous and using stochastic calculus tools, it is possible to identify the Einstein diffusion coefficient [21] as

D=ω22​γ2.D=\frac{\omega^{2}}{2\gamma^{2}}. (2)

Now, if we consider the presence of a conservative force field F⁡(r)≠0F(r)\neq 0 in the expression (1) at the inertial limit, it is possible to derive the Smoluchowski Diffusion equation [21], by assuming a Boltzmann distribution for the random positions of the Brownian particles, we get the so-called Fluctuation-Dissipation theorem where the temperature is related with the amplitude of both the stochastic force and the friction coefficient as

ω2=2​kB​T​γ.\omega^{2}=2k_{B}T\gamma. (3)

Then we can rewrite (1) in terms of the macroscopic parameters as

r˙=2​D​ξ​(t)+DkB​T​F​(r)\dot{r}=\sqrt{2D}\xi(t)+\frac{D}{k_{B}T}F(r) (4)

in the overdamped limit.

2.2 Active Brownian dynamics

If activity is introduced into Passive Brownian dynamics, then it can describe particles that are capable of transforming their internal energy into motion. These particles can represent microorganisms such as bacteria; moreover, this is not limited to objects on the microscopic scale. Using ABPs allows us to describe macroscopic events like a swarm, a bank of fish, and even pedestrians[3]. The Langevin equation, shown in equation (5), describes the motion of the agents with a constant-magnitude force FAF_{A}, which represents the activation force of the agents due to the transformation of internal energy into motion.

m​𝐫¨i=−γ​𝐫˙i+ω​ξi+∑j≠i𝐅i​j+𝐅A,m\ddot{\mathbf{r}}_{i}=-\gamma\dot{\mathbf{r}}_{i}+\omega\mathbf{\xi}_{i}+\sum_{j\neq i}\mathbf{F}_{ij}+\mathbf{F}_{A}, (5)

where the force 𝐅i​j\mathbf{F}_{ij} does not describe an external force; instead, it describes the interaction between particles. The force 𝐅i​j=−∇VW​C​A​(ri​j)\mathbf{F}_{ij}=-\nabla V_{WCA}(r_{ij}) describes the repulsive interactions between ABPs ruled by the Weeks-Chandler-Andersen (WCA) potential presented in equation (6)

VW​C​A​(ri​j)=4​ϵ​[(σri​j)12−(σri​j)6]+ϵ.V_{WCA}(r_{ij})=4\epsilon\Big[\Big(\frac{\sigma}{r_{ij}}\Big)^{12}-\Big(\frac{\sigma}{r_{ij}}\Big)^{6}\Big]+\epsilon. (6)

Here, σ\sigma can be seen as the diameter of the particle, ϵ\epsilon determines the interaction strength, and ri​jr_{ij} is the separation centre-to-centre between two particles. With an upper limit of cut-off at r=21/6​σr=2^{1/6}\sigma, beyond which VW​C​A=0V_{WCA}=0[29].

In the overdamped limit and by applying the Einstein-Smoluchowski diffusion relations, the expression (5) simplifies to

r˙=2​D​ξi​(t)+DkB​T​∑j≠i𝐅i​j+v0​e^i.\dot{r}=\sqrt{2D}\xi_{i}(t)+\frac{D}{k_{B}T}\sum_{j\neq i}\mathbf{F}_{ij}+v_{0}\hat{e}_{i}. (7)

All simulations are performed in reduced units. The particle diameter σ\sigma defines the characteristic length scale, while the WCA energy parameter ϵ\epsilon and the thermal energy kB​Tk_{B}T define the energy scale. We set

σ=ϵ=kB​T=D=1,\sigma=\epsilon=k_{B}T=D=1, (8)

where DD is the translational diffusion coefficient. The corresponding Brownian diffusion time, τB=σ2/D\tau_{B}=\sigma^{2}/D, therefore defines the reduced time unit. Within this convention, forces are expressed in units of kB​T/σk_{B}T/\sigma. Furthermore, the rotational diffusion coefficient is not an independent parameter, since DR=3​D/σ2D_{R}=3D/\sigma^{2}, and the self-propulsion speed is given by v0=FA​D/(kB​T)v_{0}=F_{A}D/(k_{B}T). Thus, in the reduced units employed here, DR=3D_{R}=3 and v0=FAv_{0}=F_{A}. The integration time step is Δ​t=10−6\Delta t=10^{-6}. No direct mapping to physical units is assumed, as the model is intended to provide a generic microscopic description of contagion dynamics.

We obtain an equation that describes the position of each agent.

𝐫i​(t+Δ​t)=𝐫i​(t)+2​D​Δ​t​ξi​(t)+DkB​T∑j≠i𝐅i​jΔt+v0e^iΔt.\begin{split}\mathbf{r}_{i}(t+\Delta t)={}&\mathbf{r}_{i}(t)+\sqrt{2D\Delta t}\,\xi_{i}(t)\\ &+\frac{D}{k_{B}T}\sum_{j\neq i}\mathbf{F}_{ij}\Delta t+v_{0}\hat{e}_{i}\Delta t.\end{split} (9)

the iterative equation (9) follows the computational implementation developed in Ref. [7].

3 Model

The dynamics of the agents is described considering NN particles of radius σ/2\sigma/2 moving in a two-dimensional square domain of size Lx×LyL_{x}\times L_{y} with periodic boundary conditions in both the xx and yy directions and Lx=LyL_{x}=L_{y}. The particle motion follows the well-known active Brownian particle (ABP) dynamics described previously in equation (9) with the same self-propulsion speed v0v_{0} for all agents.

Refer to caption
Figure 1: a) Sketch of the simulation box: NN moving agents of diameter σ\sigma representing pedestrians. In a simulation box with periodic boundary conditions and the pair-interaction defined by the WCA potential. b) If an infected particle ii is at a distance |ri−rj|≤Rc|r_{i}-r_{j}|\leq R_{c} of a susceptible agent jj, it goes from susceptible to infected. The tree states: susceptible S (blue), infected I (red) and protected P (green) such that S+I+P=NS+I+P=N. Image inspired by [23].

For the contagion model, particles are divided into three compartments: susceptible, S⁡(t)S(t), infected, I⁡(t)I(t) and protected PP, satisfying the conservation condition S⁡(t)+I⁡(t)+P=NS(t)+I(t)+P=N. Only susceptible individuals can transition to the infected state according to the following contagion rule: a susceptible agent at rjr_{j} will become infected if it is at a distance |ri−rj|≤Rc|r_{i}-r_{j}|\leq R_{c} from an infected agent at rir_{i} for a certain time TcT_{c}. Where RcR_{c} is the contagion radius measured from centre to centre and TcT_{c} the contagion time, which is based on the characteristic infection time introduced by Reichhardt’s group in Ref. [9]. The parameter TcT_{c} represents the effective interaction time required for transmission, expressed in terms of the numerical integration time step. In all simulations, we set Tc=10,000​Δ​tT_{c}=10,000\penalty\ \Delta t, where Δ​t\Delta t denotes the integration time step of the equations of motion (9). Protected agents cannot change their internal state.

In Figure 1 a) is a representation of our model. A simulation box of size Lx×LyL_{x}\times L_{y} with periodic boundary conditions, the ABPs represent pedestrians in an open space, blue particles are susceptible, infected are in red and protected in green. In all simulations, initial positions rir_{i} and orientations e^i\hat{e}_{i} are randomly assigned. Likewise, in Figure 1 b) is a more detailed scheme of the activity orientation and the range of infection is depicted.

The simulations were carried out using an in-house code written in the C programming language [15, 25]. The input parameters include the number of agents (N=3000N=3000) fixed in all the simulations and constrained to N=S⁡(t)+I⁡(t)+PN=S(t)+I(t)+P, the packing fraction ϕ\phi is changing by changing the size of the box, the active force (FA=50F_{A}=50) fixed in all the simulations, where v0=D​FA/kB​Tv_{0}=DF_{A}/k_{B}T with D/kB​T=1D/{\color[rgb]{1,0,0}k}_{B}T=1, the initial number of infected agents (I⁡(0)=1I(0)=1) and the fraction of protected agents χ=P/N\chi=P/N. For all simulations, the number of agents is the same. Therefore, the protected ratio will change the number of initial susceptible agents S⁡(0)S(0).

The simulations were performed using high-performance computing resources provided by LANCAD and SECIHTI through the Miztli supercomputer at DGTIC-UNAM, and by the Laboratorio de Supercómputo del Bajío at CIMAT. These facilities were used to perform the large number of simulations required to systematically explore the parameter space.

4 Results

The dynamic of infected agents I⁡(τ)I(\tau) is the number of infected at each dimensionless time τ=i​t#​Δ​t/tS\tau=it_{\#}\Delta t/t_{S}. The term i​t#it_{\#} is the iteration number and tS=σv0t_{S}=\frac{\sigma}{v_{0}}, defined as the characteristic time required for an isolated active particle moving at the self-propulsion speed v0v_{0} to travel a distance equal to its own diameter σ\sigma. It is called the self-propulsion time [10, 1]. The number of infected agents is calculated by averaging ten simulations for each protected ratio χ∈[0.0,0.5]\chi\in[0.0,0.5], where χ=P/N\chi=P/N.

Figure 2 shows the temporal evolution of the number of infected individuals, I⁡(τ)I(\tau), until a steady state is reached. This steady-state value depends on the protected-agent fraction, χ\chi, and corresponds to the stage at which the number of susceptible agents becomes zero or nearly zero. As expected, increasing the fraction of protected agents reduces the final number of infected individuals.

Refer to caption
Figure 2: Plot of the contagion dynamics. The symbols represent the agent-based simulations, with a mobility force FA=50F_{A}=50, ϕ=0.056\phi=0.056. On the x-axis the dimensionless time τ\tau and the y-axis the number of infected agents I⁡(τ)I(\tau). Each coloured curve represents a protected ratio χ\chi. The continuous lines are the fitted erf functions. The Data availability section Data availability leads to example clips from the results obtained of our simulations.

The red circles on Figure 2 are the contagion dynamics with no protected agents (χ=0\chi=0) and it can be seen as a reference case to determine the impact of the protected ratio. We can observe the evolution of the infected agents from 1 to 3000 infected agents at τ≈200\tau\approx 200. When there are protected agents, the evolution saturates also around τ≈200\tau\approx 200 for χ<0.3\chi<0.3, but once the protected ratio reaches 0.30.3 (blue diamonds in Figure 2) the saturation time shifts to longer times.

Additionally, the simulation data were fitted using a nonlinear least-squares Levenberg–Marquardt algorithm [25]. The solid curves in Figure 2 correspond to the resulting fits [32]. To describe the temporal evolution of the number of infected individuals, we employed the error function, whose sigmoidal shape is equivalent to that of the logistic function, the analytical solution of the classical SI epidemic model. Therefore, the error function provides a robust empirical representation of the contagion curves while preserving the characteristic behaviour predicted by the SI model. The fitting function is given by

I⁡(t)=A​erf​[B⁡(t−C)]+D,I(t)=A\,\mathrm{erf}\!\left[B(t-C)\right]+D, (10)

where the fitting parameters AA, BB, CC, and DD are determined from the simulation data.

χ\chi A B C D R2R^{2}
0.00 1538.08 0.0172 138.212 1551.86 0.99942
0.05 1463.29 0.0169 136.993 1470.78 0.99967
0.10 1380.13 0.0163 141.395 1384.55 0.99974
0.17 1268.31 0.0165 141.156 1274.53 0.99970
0.25 1140.65 0.0166 148.095 1153.77 0.99962
0.30 1055.14 0.0161 160.731 1065.11 0.99983
0.40 907.95 0.0153 164.922 917.94 0.99973
0.50 752.81 0.0143 167.252 763.38 0.99978
Table 1: Parameters obtained from the nonlinear least-squares fits of the error function to the simulation data shown in Figure 2 for different protected fractions χ\chi. The corresponding coefficient of determination, R2R^{2}, is also reported as a measure of the goodness-of-fit.

The quality of the fits was quantitatively assessed through the coefficient of determination, R2R^{2}. As shown in Table 1, the values of R2R^{2} range from 0.99940.9994 to 0.99980.9998 for all protected fractions considered, indicating an excellent agreement between the fitted profiles and the simulation data. Moreover, no systematic deterioration or improvement of the goodness-of-fit is observed as the protected fraction increases. Thus, the error-function form provides a consistent description of the contagion curves over the entire range of χ\chi investigated. Although the quality of the fits remains essentially unchanged, the fitting parameters exhibit a systematic evolution with the protected fraction. In particular, AA and DD decrease as χ\chi increases, while CC generally increases and BB shows an overall decreasing trend. Since νmax=2​A​B/π\nu_{\max}=2AB/\sqrt{\pi} and τmax=C\tau_{\max}=C, these changes are directly related to the reduction of the maximum contagion rate and the delay in the time at which it is reached as the protected fraction increases.

To perform a detailed analysis and quantify the effect of protection, Figure 3 shows the number of infected agents, I⁡(τ)I(\tau), normalised by the initial number of susceptible agents, S0S_{0}, for different values of the protected-agent fraction, χ\chi. Each coloured curve corresponds to a different value of χ\chi. Remarkably, all curves with χ<0.3\chi<0.3 collapse onto a single master curve, indicating that contagion dynamics is independent of the protected-agent fraction within this range. In contrast, for χ≥0.3\chi{\color[rgb]{1,0,0}\geq 0.3}, the curves deviate progressively from the master curve, revealing a slower contagion dynamics as the fraction of protected agents increases. As we can observe from the blue, purple, and pink curves in Figure 3. For clarity, only the fitted curves are shown.

Refer to caption
Figure 3: Normalised plot of the Contagion dynamics. The number of infected agents I⁡(τ)I(\tau) divided by the initial number of susceptible agents S0S_{0}. On the x-axis the dimensionless time τ\tau.

Although some values of χ≠0\chi\neq 0 converge with the reference case, it can be seen that with values with values starting at 30% of the agents protected, the normalised number of infected agents does not converge to the reference case. These values have an effect by modifying the contagion dynamics as they have a different slope compared to the reference case. The speed of contagion was analysed to explore in more detail the change in the contagion dynamics. The speed or evolution of contagion is the temporal derivative of the infected agents,

I′​(τ)=d​I​(τ)d​τ.I^{\prime}(\tau)=\frac{dI(\tau)}{d\tau}. (11)

Since evolution of the number of infected agents I′​(τ)I^{\prime}(\tau) follows the erf function, the expression for the speed of contagion follows a Gaussian [2]:

I′​(τ)=2​A​Bπ​e−(B⁡(τ−C))2I^{\prime}(\tau)=\frac{2AB}{\sqrt{\pi}}e^{-(B(\tau-C))^{2}} (12)

Thus, we can define τmax=C\tau_{\mathrm{max}}=C, where τmax\tau_{\mathrm{max}} is the time at which the maximum speed of contagion νmax\nu_{\mathrm{max}} is reached with νmax=(2AB)(π)−1/2\nu_{\mathrm{max}}=(2AB)(\pi)^{-1/2}. In this context of contagion dynamics, these values are related to the saturation of health care infrastructures. They indicate the time when the speed of contagion is at its highest, that is, when the largest number of susceptible agents simultaneously become infected.

The normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}, is shown in Fig. 4. The Gaussian-like profiles provide a clear visualisation of the infection dynamics and reveal two main features.

The inflection point of the contagion curves shown in Figures 2 and 3 is directly related to the maximum contagion rate presented in Figure 4. For the error-function fit (equation (10) the derivative reaches its maximum at τmax=C\tau_{\max}=C. Thus, the inflection point, corresponding to the maximum slope of the contagion curve, coincides with the maximum of the contagion rate. The shift of this point toward larger times with increasing protected fraction is therefore consistent with the increase of τmax\tau_{\max} observed in Figure 4.

First, the time required to reach the maximum speed of contagion, τmax\tau_{\mathrm{max}}, and how it increases with the protected-agent fraction, χ\chi. For low protection levels (χ<0.3\chi{\color[rgb]{1,0,0}<0.3}), all curves reach their maximum at nearly the same time. This indicates that protection has little influence on the onset of the fastest spreading regime. The values of τmax\tau_{\mathrm{max}} are indicated by the corresponding vertical solid and dashed lines.

Second, the peak of the speed of contagion remains nearly unchanged for χ<0.3\chi{\color[rgb]{1,0,0}<0.3}, whereas for larger protection levels (χ≥0.3\chi{\color[rgb]{1,0,0}\geq 0.3}) the peak decreases and shifts to later times. These results suggest that increasing the percentage of protected agents not only delays the progression of the epidemic, but also reduces its maximum speed of contagion.

Refer to caption
Figure 4: Normalised contagion rate as a function of time for different protected-agent fractions, χ\chi. The corresponding values of τmax\tau_{\mathrm{max}} are indicated by the vertical lines and denote the time at which the contagion rate reaches its maximum value, νmax\nu_{\mathrm{max}}.

So far, we have considered a fixed population density, corresponding to a packing fraction of ϕ=0.056\phi=0.056. Next, we examine the influence of population density on the contagion dynamics in the presence of protected agents. The packing fraction, ϕ\phi, was varied by changing the size of the square simulation box while keeping the total number of agents fixed at N=3000N=3000. The dependence of the maximum speed of contagion on the density of the agents is examined.

Figure 5 shows the maximum speed of contagion, νmax\nu_{\mathrm{max}}, as a function of the protected-agent fraction, χ\chi, for different packing fractions. The curves of the maximum speed of contagion, νmax\nu_{\mathrm{max}}, do not intersect for any packing fraction. Nevertheless, they exhibit the same qualitative dependence on the protected fraction, χ\chi. Specifically, νmax\nu_{\mathrm{max}} remains nearly constant for χ<30%\chi<30\%, defining an initial plateau, and then decreases monotonically as the fraction of protected agents increases. Both the plateau value and the subsequent decay depend on the packing fraction. Higher packing fractions result in larger plateau values and a weaker reduction of the maximum contagion rate at high protection levels, whereas lower packing fractions exhibit lower initial contagion rates followed by a more pronounced decrease as χ\chi increases.

Refer to caption
Figure 5: Maximum speed of contagion, νmax\nu_{\mathrm{max}}, as a function of the protected-agent fraction, χ\chi, for different packing fractions, ϕ\phi. Different packing fractions are represented by coloured symbols connected by solid lines to guide the eye.

The corresponding contagion dynamics, normalised contagion rates, and temporal evolution of the contagion rate for the remaining packing fractions are presented in Appendix I.

We normalised the maximum contagion rate by ϕ1/2\phi^{1/2} to further investigate the role of population density, as shown in Figure 6.

Refer to caption
Figure 6: Normalised maximum contagion rate, νmaxϕ−1/2\nu_{\mathrm{max}}\phi^{-1/2}, as a function of the protected-agent fraction, χ\chi, for different packing fractions, ϕ\phi. Coloured symbols correspond to different values of ϕ\phi, and the solid lines are included as guides to the eye. The shaded region highlights the transition at approximately χ=30%\chi=30\%.

A crossover between the two contagion regimes is observed around χ=0.30\chi=0.30 in Figure 6. Below this value, the normalized maximum contagion rate follows an approximately universal behavior, whereas for larger protected-agent fractions the curves progressively deviate from this scaling and the effect of protection becomes the dominant mechanism controlling the dynamics of the epidemic. Given the discrete values of χ\chi considered in our simulations, χ=0.30\chi=0.30 should be regarded as a reference value for the crossover rather than as a precisely determined critical point.

A remarkable collapse of all curves is observed for χ<0.3\chi<0.3, indicating that, in the low-protection regime, the maximum speed of contagion scales as

νmax∝ϕ1/2.\nu_{\mathrm{max}}\propto\phi^{1/2}. (13)

This scaling dependence can be interpreted in terms of the microscopic encounter dynamics of the agents. In the low-protection regime, most encounters involving infected agents can occur with susceptible individuals, and the contagion dynamics are therefore primarily controlled by the frequency of effective susceptible–infected encounters. In two dimensions, the characteristic interparticle separation scales as ℓ∼ρ−1/2\ell\sim\rho^{-1/2}, where ρ\rho is the surface number density. For a fixed characteristic self-propulsion velocity, the corresponding encounter timescale can be estimated as tenc∼ℓ/v0t_{\mathrm{enc}}\sim\ell/v_{0}, suggesting an encounter frequency proportional to ρ1/2\rho^{1/2}. Since ρ∝ϕ\rho\propto\phi in the present system, this simple geometrical argument is consistent with the sublinear dependence νmax∼ϕ1/2\nu_{\mathrm{max}}\sim\phi^{1/2} observed in our simulations. A nonlinear dependence of contact rates on population density has also been reported in spatial epidemic models by Hu et al. [12], who showed that contact rates increase with population density but need not follow a simple linear dependence over the entire density range. As the protected-agent fraction increases, however, the number of effective susceptible–infected encounters is progressively reduced, and population density alone no longer controls the contagion rate. This provides a possible microscopic explanation for the departure from the ϕ1/2\phi^{1/2} scaling observed at larger values of χ\chi.

Moreover, the departure from the universal curve depends systematically on the packing fraction. Lower packing fractions exhibit a stronger reduction in the normalised contagion rate than denser systems, whereas the highest-density systems remain comparatively less affected. These results suggest that high population densities partially compensate for the reduction in contagion caused by protected individuals. Where the higher frequency of encounters between agents still promotes disease transmission. Conversely, at low densities, where encounters are intrinsically less frequent, increasing the protected-agent fraction leads to a much more pronounced suppression of contagion.

For completeness, Appendix II shows the normalised maximum contagion rate, νmaxϕ−1/2\nu_{\mathrm{max}}\phi^{-1/2}, as a function of the protected-agent fraction, χ\chi, for all packing fractions analysed in this work.

A clear crossover is observed at approximately χ≈0.3\chi\approx 0.3, in Figures 6 and 13, separating two distinct contagion regimes. Below this threshold, the maximum contagion rate obeys the universal scaling νmax∝ϕ1/2\nu_{\mathrm{max}}\propto\phi^{1/2}. Above this threshold, the curves progressively deviate from the universal scaling, and the protective effect becomes dominant. The protective effect progressively reduces the maximum contagion rate, with the reduction becoming more pronounced as the packing fraction decreases.

5 Conclusion

In this work, we proposed a microscopic epidemiological model based on Active Brownian Particles to investigate the influence of individual protection and population density on contagion dynamics. Unlike classical compartmental models, the present approach explicitly incorporates the motion and spatial distribution of individuals. This enables the study of microscopic mechanisms governing the transmission of the disease.

The simulations reveal the existence of two distinct contagion regimes separated by a protected-agent fraction associated with the crossover of approximately χ≈0.3\chi\approx 0.3. Below this threshold, the maximum speed of contagion is practically independent of the fraction of protected agents and follows the universal scaling νmax∝ϕ1/2\nu_{\mathrm{max}}\propto\phi^{1/2}. This indicates that the contagion dynamics is primarily controlled by the frequency of encounters between individuals. Above this threshold, the normalised maximum contagion rate progressively deviates from this universal scaling. This demonstrates that protection becomes the dominant mechanism controlling the spread of the disease. In this regime, the suppression of the speed of contagion is considerably stronger in dilute populations than in dense ones.

These findings show that microscopic agent-based models provide a powerful framework for investigating epidemic spreading beyond the assumptions of well-mixed population models. The model can explicitly account for mobility and local interactions. It captures how spatial organisation and population density influence the effectiveness of protective measures. Which reveals behaviours that cannot be directly inferred from conventional SI-type models.

Future work will focus on a more detailed characterization of the crossover around χ≈0.30\chi\approx 0.30 by exploring additional values of the protected-agent fraction in this region. This will allow us to determine more precisely the location and width of the crossover and to investigate whether it is associated with a genuine critical phenomenon. In addition, we plan to compare the present results with Epidemic Percolation Network models [13, 35, 11] to establish a quantitative relationship between the spatial organization of agents and the emergence of large-scale contagion. Such an analysis may also provide further insight into the microscopic origin of the density scaling observed in the low-protection regime by relating the effective connectivity of contagion pathways to the packing fraction and protected-agent fraction.

Data availability

Supplementary information, including simulation videos and related files, is available at: Supplemental_\_document

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Acknowledgements

I.S.R.-A would like to thank SECIHTI through Grant CVU: 2058169. This work was possible thanks to the access to HPC-time granted by the following institutions: a) LANCAD and SECIHTI on the supercomputer Miztli at DGTIC UNAM, calls 2024-2026. b) Laboratorio de Supercómputo del Bajío CIMAT through project "Supercómputo como motor de colaboraciones academia-industria en conjunto con el Instituto de Innovación, Ciencia y Emprendimiento para la Competitividad para el Estado de Guanajuato (IDEA GTO)". We thank Arturo Jimenez, Jesús Bernal, Renato Iturriaga, Ana Laura Benavides and Nana Geraldine for helpful discussions.

Appendix I Contagion Dynamics for Additional Packing Fractions

This appendix presents the complete set of results for the additional packing fractions analysed in this work, namely ϕ={0.05, 0.062, 0.075, 0.0813, 0.0875, 0.10}\phi=\{0.05,\,0.062,\,0.075,\,0.0813,\,0.0875,\,0.10\}. For each packing fraction, we show the contagion dynamics, I⁡(τ)I(\tau), the normalised contagion dynamics, I⁡(τ)/S0I(\tau)/S_{0}, and the normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}.

The symbols correspond to the averages obtained from ten independent agent-based simulations for each protected-agent fraction, χ\chi, using a fixed active force of FA=50F_{A}=50. The solid curves represent the corresponding fits described in the main text, while different colours denote different values of the protected-agent fraction. In all cases, the horizontal axis corresponds to the dimensionless time, τ\tau.

Refer to caption
Refer to caption
Refer to caption
Figure 7: Results of the Packing fraction of 0.05 (a) Contagion dynamics, I⁡(τ)I(\tau); (b) normalised contagion dynamics, I⁡(τ)/S0I(\tau)/S_{0}; and (c) normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}. Symbols represent the averages of ten independent agent-based simulations, while the solid curves correspond to the fitted functions. Vertical lines in panel (c) indicate τmax\tau_{\mathrm{max}}, the time at which the maximum contagion speed, νmax\nu_{\mathrm{max}}, is reached.
Refer to caption
Refer to caption
Refer to caption
Figure 8: Results of the Packing fraction of 0.062 (a) Contagion dynamics, I⁡(τ)I(\tau); (b) normalised contagion dynamics, I⁡(τ)/S0I(\tau)/S_{0}; and (c) normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}. Symbols represent the averages of ten independent agent-based simulations, while the solid curves correspond to the fitted functions. Vertical lines in panel (c) indicate τmax\tau_{\mathrm{max}}, the time at which the maximum contagion speed, νmax\nu_{\mathrm{max}}, is reached.
Refer to caption
Refer to caption
Refer to caption
Figure 9: Results of the Packing fraction of 0.075 (a) Contagion dynamics, I⁡(τ)I(\tau); (b) normalised contagion dynamics, I⁡(τ)/S0I(\tau)/S_{0}; and (c) normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}. Symbols represent the averages of ten independent agent-based simulations, while the solid curves correspond to the fitted functions. Vertical lines in panel (c) indicate τmax\tau_{\mathrm{max}}, the time at which the maximum contagion speed, νmax\nu_{\mathrm{max}}, is reached.
Refer to caption
Refer to caption
Refer to caption
Figure 10: Results of the Packing fraction of 0.0813 (a) Contagion dynamics, I⁡(τ)I(\tau); (b) normalised contagion dynamics, I⁡(τ)/S0I(\tau)/S_{0}; and (c) normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}. Symbols represent the averages of ten independent agent-based simulations, while the solid curves correspond to the fitted functions. Vertical lines in panel (c) indicate τmax\tau_{\mathrm{max}}, the time at which the maximum contagion speed, νmax\nu_{\mathrm{max}}, is reached.
Refer to caption
Refer to caption
Refer to caption
Figure 11: Results of the Packing fraction of 0.0875 (a) Contagion dynamics, I⁡(τ)I(\tau); (b) normalised contagion dynamics, I⁡(τ)/S0I(\tau)/S_{0}; and (c) normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}. Symbols represent the averages of ten independent agent-based simulations, while the solid curves correspond to the fitted functions. Vertical lines in panel (c) indicate τmax\tau_{\mathrm{max}}, the time at which the maximum contagion speed, νmax\nu_{\mathrm{max}}, is reached.
Refer to caption
Refer to caption
Refer to caption
Figure 12: Results of the Packing fraction of 0.1 (a) Contagion dynamics, I⁡(τ)I(\tau); (b) normalised contagion dynamics, I⁡(τ)/S0I(\tau)/S_{0}; and (c) normalised contagion rate, I′​(τ)/S0I^{\prime}(\tau)/S_{0}. Symbols represent the averages of ten independent agent-based simulations, while the solid curves correspond to the fitted functions. Vertical lines in panel (c) indicate τmax\tau_{\mathrm{max}}, the time at which the maximum contagion speed, νmax\nu_{\mathrm{max}}, is reached.

Appendix II normalised Maximum Contagion Rate for All Packing Fractions

This appendix presents the normalised maximum contagion rate, νmaxϕ−1/2\nu_{\mathrm{max}}\phi^{-1/2}, as a function of the protected-agent fraction, χ\chi, for all packing fractions analysed in this work (Fig. 13).

A remarkable collapse of all curves is observed for χ<0.3\chi<0.3, confirming that the maximum contagion rate follows the universal scaling νmax∝ϕ1/2\nu_{\mathrm{max}}\propto\phi^{1/2}, in the low-protection regime. This result indicates that, below the crossover protected-agent fraction, the contagion dynamics is primarily governed by the frequency encounter between agents, independently of the population density.

Above the crossover, χ≈0.3\chi\approx 0.3, the curves progressively deviate from the universal scaling. Although the normalised maximum contagion rate decreases for all packing fractions, the reduction is considerably stronger in dilute systems than in dense ones. In particular, the highest packing fractions exhibit only a moderate decrease after the transition, whereas intermediate and low packing fractions show a pronounced suppression of the maximum speed of contagion as the protected-agent fraction increases.

Refer to caption
Figure 13: normalised maximum contagion rate, νmaxϕ−1/2\nu_{\mathrm{max}}\phi^{-1/2}, as a function of the protected-agent fraction, χ\chi, for all packing fractions analysed in this work. Coloured symbols correspond to different values of ϕ\phi, and the solid lines are included as guides to the eye.
\medline

References

  • [1] F. Alarcón, C. Valeriani, and I. Pagonabarraga (2017) Morphology of clusters of attractive dry and wet self-propelled spherical particle suspensions. Soft Matter 13 (4), pp. 814–826. External Links: Document Cited by: §4.
  • [2] L. C. Andrews (1998) Special functions of mathematics for engineers. SPIE Press, Bellingham, WA. External Links: ISBN 9780819426167 Cited by: §4.
  • [3] C. Bechinger, R. D. Leonardo, H. Löwen, C. Reichhardt, G. Volpe, and G. Volpe (2016) Active particles in complex and crowded environments. Reviews of Modern Physics 88 (4). External Links: Document, Link Cited by: §2.2, §2.
  • [4] N. C. Bizet and A. C. M. de Oca (2020) Modelos sir modificados para la evolución del covid19. arXiv. External Links: Document, Link Cited by: §1.
  • [5] A. Calles and J. L. Morán-López (2021) Modeling the viral load expelled in saliva droplets carrying SARS-CoV-2. Journal of Physics Communications 5 (9), pp. 095005. External Links: Document, Link Cited by: §1.
  • [6] A. EinsteinR. Furth (Ed.) (1956) Investigations on the theory of the brownian movement. Dover Books on Physics, Dover Publications, New York. External Links: ISBN 9780486603049 Cited by: §2.1.
  • [7] D. L. Ermak and J. A. McCammon (1978) Brownian dynamics with hydrodynamic interactions. The Journal of Chemical Physics 69 (4), pp. 1352–1360. External Links: Document, Link Cited by: §2.2.
  • [8] B. J. Ford (1992) Brownian movement in clarkia pollen: a reprise of the first observations. The Microscope 40 (4), pp. 235–241. Cited by: §2.1.
  • [9] P. Forgács, A. Libál, C. Reichhardt, N. Hengartner, and C. J. Reichhardt (2022) Using active matter to introduce spatial heterogeneity to the susceptible infected recovered model of epidemic spreading. Scientific Reports 12 (1). External Links: Link, Document Cited by: §1, §3.
  • [10] F. Ginot, I. Theurkauff, F. Detcheverry, C. Ybert, and C. Cottin-Bizonne (2018) Aggregation-fragmentation and individual dynamics of active clusters. Nature Communications 9 (1), pp. 696. External Links: Document Cited by: §4.
  • [11] T. Hiraoka, A. K. Rizi, M. Kivelä, and J. Saramäki (2022) Herd immunity and epidemic size in networks with vaccination homophily. Physical Review E 105 (5). External Links: ISSN 2470-0053, Link, Document Cited by: §5.
  • [12] H. Hu, K. Nigmatulina, and P. A. Eckhoff (2013) The scaling of contact rates with population density for the infectious disease models. Mathematical Biosciences 244 (2), pp. 125–134. External Links: Document Cited by: §4.
  • [13] E. Kenah and J. C. Miller (2011) Epidemic percolation networks, epidemic outcomes, and interventions. Interdisciplinary Perspectives on Infectious Diseases 2011 (1), pp. 543520. External Links: Document, Link, https://onlinelibrary.wiley.com/doi/pdf/10.1155/2011/543520 Cited by: §5.
  • [14] W. O. Kermack, A. G. McKendrick, and G. T. Walker (1927) A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society of London. Series A, Containing Papers of a Mathematical and Physical Character 115 (772), pp. 700–721. External Links: Document, Link, https://royalsocietypublishing.org/doi/pdf/10.1098/rspa.1927.0118 Cited by: §1.
  • [15] B. W. Kernighan and D. M. Ritchie (1988) The c programming language. 2nd edition, Prentice Hall, Englewood Cliffs, NJ. External Links: ISBN 0-13-110362-8 Cited by: §3.
  • [16] K. B. Kramer and G. J. Wang (2021) Social distancing slows down steady dynamics in pedestrian flows. Physics of Fluids 33 (10), pp. 103318. External Links: Document, Link, https://doi.org/10.1063/5.0062331 Cited by: §1.
  • [17] D. S. Lemons and A. Gythiel (1997) Paul langevin’s 1908 paper on the theory of brownian motion [sur la theorie du mouvement brownien c. r. acad. sci. (paris) 146, 530 - 533 (1908)]. American Journal of Physics 65 (11), pp. 1079–1081. External Links: Document, Link, https://doi.org/10.1119/1.18725 Cited by: §2.1.
  • [18] D. Levis, A. Diaz-Guilera, I. Pagonabarraga, and M. Starnini (2020) Flocking-enhanced social contagion. Phys. Rev. Research 2, pp. 032056. External Links: Document, Link Cited by: §1.
  • [19] A. Mallela (2020) Optimal control applied to a seir model of 2019-ncov with social distancing. medRxiv. External Links: Document, Link, https://www.medrxiv.org/content/early/2020/04/22/2020.04.10.20061069.full.pdf Cited by: §1.
  • [20] J. Martin-Roca, R. Martinez, L. C. Alexander, A. L. Diez, D. G. A. L. Aarts, F. Alarcón, J. Ramírez, and C. Valeriani (2021) Characterization of mips in a suspension of repulsive active brownian particles through dynamical features. The Journal of Chemical Physics 154 (16), pp. 164901. External Links: Document, Link, https://doi.org/10.1063/5.0040141 Cited by: §2.
  • [21] R. M. Mazo (2002) Brownian motion: fluctuations, dynamics, and applications. International Series of Monographs on Physics, Vol. 112, Clarendon Press, Oxford. External Links: ISBN 9780198515678 Cited by: §2.1, §2.1.
  • [22] B. B. O. Munnink, R. S. Sikkema, D. F. Nieuwenhuijse, R. J. Molenaar, E. Munger, R. Molenkamp, A. van der Spek, P. Tolsma, A. Rietveld, M. Brouwer, N. Bouwmeester-Vincken, F. Harders, R. H. der Honing, M. C. A. Wegdam-Blans, R. J. Bouwstra, C. GeurtsvanKessel, A. A. van der Eijk, F. C. Velkers, L. A. M. Smit, A. Stegeman, W. H. M. van der Poel, and M. P. G. Koopmans (2021) Transmission of sars-cov-2 on mink farms between humans and mink and back to humans. Science 371 (6525), pp. 172–177. External Links: Document, Link, https://www.science.org/doi/pdf/10.1126/science.abe5901 Cited by: §1.
  • [23] A. Norambuena, F. J. Valencia, and F. Guzmán-Lastra (2020) Understanding contagion dynamics through microscopic processes in active brownian particles. Scientific Reports 10, pp. 20845. External Links: Document, Link Cited by: §1, Figure 1.
  • [24] F. Peruani and G. J. Sibona (2008) Dynamics and steady states in excitable mobile agent systems. Physical Review Letters 100 (16). External Links: Link, Document Cited by: §1.
  • [25] W. H. Press, S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery (2007) Numerical recipes in c: the art of scientific computing. Third edition, Cambridge University Press, Cambridge. Cited by: §3, §4.
  • [26] I. S. Regalado and F. Alarcón (2024) Simulation videos. Note: https://canva.link/pqdv9m6x8aemu52Supplementary simulation videos Contagion Dynamics
  • [27] J. M. Rijks, H. Hesselink, P. Lollinga, R. Wesselman, P. Prins, E. Weesendorp, M. Engelsma, R. Heutink, F. Harders, M. Kik, et al. (2021) Highly pathogenic avian influenza a (h5n1) virus in wild red foxes, the netherlands, 2021. Emerging infectious diseases 27 (11), pp. 2960. Cited by: §1.
  • [28] F. J. Schwarzendahl, J. Grauer, B. Liebchen, and H. Löwen (2021) Mutation induced infection waves in diseases like covid-19. medRxiv. External Links: Document, Link, https://www.medrxiv.org/content/early/2021/07/07/2021.07.06.21260067.full.pdf Cited by: §1.
  • [29] J. Stenhammar, D. Marenduzzo, R. J. Allen, and M. E. Cates (2014) Phase behaviour of active brownian particles: the role of dimensionality. Soft Matter 10, pp. 1489–1499. External Links: Document, Link Cited by: §2.2.
  • [30] M. Te Vrugt and R. Wittkowski (2025) Metareview: a survey of active matter reviews. The European Physical Journal E 48 (2), pp. 12. Cited by: §2.
  • [31] T. Vicsek, A. Czirók, E. Ben-Jacob, I. Cohen, and O. Shochet (1995) Novel type of phase transition in a system of self-driven particles. Phys. Rev. Lett. 75, pp. 1226–1229. External Links: Document, Link Cited by: §2.
  • [32] T. Williams, C. Kelley, and (et. all) (2013) Gnuplot 4.6: an interactive plotting program. External Links: Link Cited by: §4.
  • [33] World Health Organization (2025) Disease outbreak news: measles in the region of the americas. Note: https://www.who.int/emergencies/disease-outbreak-news/item/2025-DON565Accessed June 16, 2026 Cited by: §1.
  • [34] World Health Organization (2026) Disease outbreak news. hantavirus cluster linked to cruise ship travel – multi-country.. Note: https://www.who.int/emergencies/disease-outbreak-news/item/2026-DON599Accessed June 16, 2026 Cited by: §1.
  • [35] H. Yang, M. Tang, and T. Gross (2015) Large epidemic thresholds emerge in heterogeneous networks of heterogeneous nodes. Scientific Reports 5 (5). External Links: ISSN 2045-2322, Link, Document Cited by: §5.
  • [36] J. Zhao and (et. al) (2024) Farmed fur animals harbour viruses with zoonotic spillover potential. Nature, pp. 228–233. External Links: Document, Link Cited by: §1.
  • [37] Y. Zhao, C. Huepe, and P. Romanczuk (2021) Contagion dynamics in self-organized systems of self-propelled agents. arXiv. External Links: Document, Link Cited by: §1.

*