key: cord-0813495-oebqbaj6 authors: Sajjadi, Sina; Hashemi, Alireza; Ghanbarnejad, Fakhteh title: Social distancing in pedestrian dynamics and its effect on disease spreading date: 2020-10-24 journal: Phys Rev E DOI: 10.1103/physreve.104.014313 sha: 83fc55f93e21a71577ccf76c78b1677a9c100b18 doc_id: 813495 cord_uid: oebqbaj6 Non-pharmaceutical measures such as social distancing, can play an important role to control an epidemic in the absence of vaccinations. In this paper, we study the impact of social distancing on epidemics for which it is executable. We use a mathematical model combining human mobility and disease spreading. For the mobility dynamics, we design an agent based model consisting of pedestrian dynamics with a novel type of force to resemble social distancing in crowded sites. For the spreading dynamics, we consider the compartmental SIE dynamics plus an indirect transmission with the footprints of the infectious pedestrians being the contagion factor. We show that the increase in the intensity of social distancing has a significant effect on the exposure risk. By classifying the population into social distancing abiders and non-abiders, we conclude that the practice of social distancing, even by a minority of potentially infectious agents, results in a drastic change on the population exposure risk, but reduces the effectiveness of the protocols when practiced by the rest of the population. Furthermore, we observe that for contagions which the indirect transmission is more significant, the effectiveness of social distancing would be reduced. This study can provide a quantitative guideline for policy-making on exposure risk reduction. The ongoing COVID-19 pandemic has had severe consequences on nations worldwide. It has been considered as one of the costliest disasters after WWII and has imposed so many costs to the local, regional and global markets including hundreds of billions to the global insurance industry, tourism and other businesses. Facing these difficulties without any approved vaccine so far, governments have turned to non-pharmaceutical measures such as social distancing to limit the transmission of the disease and to hinder the growth of the spreading dynamics [1] . Motivated by this situation, we mathematically study the effectiveness of social distancing and how it can be implemented in order to reduce the risk of spreading. Following the early work of Kermack and McKendrick [2] researches have implemented compartmental models, i.e., categorizing the population into collectively exhaustive compartments, to describe and predict the epidemic dynamics. While initial research in the field mostly focused on mean-field approximations [3] , later on, a large body of work was concentrated on network studies with either analytical or computational approaches. [4, 5] . And then due to the greater access to agent level interaction data, the role of temporality of interactions got more attention in the studies [6] [7] [8] [9] [10] . Mobility of agents has been studied with different approaches including pedestrian dynamics introduced in [11] . While this model has been widely implemented and studied, only recently it has been used to model transmission processes. For example [12] and [13] study the level of exposure of individuals to the infection, while [14] [15] [16] develop population level equations and [17] [18] [19] introduce * Both authors contributed equally to this work. † fakhteh.ghanbarnejad@gmail.com agent based models to study the spreading in pedestrian dynamics. In this work we define a novel type of social distancing (keeping distance from other agents to avoid infection) based on the pedestrian dynamics. We also study the indirect transmission by taking into account the role of environment as a vehicle of spreading [20] . We will investigate the system for different scenarios and a range of parameters. We show where social distancing is executable and how it can be effective for lowering the exposure risk, however, in some regime of parameters, the increase in indirect transmission may cancel the effectiveness of social distancing. As we will discuss, our results can be used as a quantitative guideline for policy-making on reducing the exposure risk for many contagions, including SARS-CoV-2. We simulate the walking patterns of people in a closed environment. For this purpose, we implement a formulation of the pedestrian dynamics introduced in [11] , including a novel type of social distancing force. Agents aim to reach randomly chosen destinations while trying to keep distance from other agents and physical barriers (e.g. walls). Although the actual Newtonian forces do not have a direct impact on the dynamics, as humans rarely have physical contact with each other/barriers while moving, taking into account the social pseudoforces governing a person's movement patterns enables us to study this issue in a physical framework. This method has achieved realistic results confirmed with experimental data [21] . As depicted in Fig. 1 panel a) in this dynamics, each agent's movement is governed by three forces: Each agent i has a tendency to move with a velocity vector v 0 i = v 0 iv 0 i with v 0 i being the comfortable speed andv 0 i the normal vector toward its chosen destination. This tendency is expressed in Eq. 1 as follows: Where v i denotes the agent's current velocity, m i its mass, and τ refers to the reaction time. The values for v 0 i and τ have been previously calibrated in [11] and will be set to v 0 i = 1.3 and τ = 0.5 for our study. (soc) ij : Every agent i tries to keep distance from every other agent j. This tendency can be modeled by a decreasing force, function of their relative distance r ij with the direction of the force being the normalized vectorr ij pointing from agent j to i. In this research we consider the exponential force as in Eq. 2, introducing σ i as a measure for agent i's tendency to abide by social distancing. We also consider r c as a cut-off distance for the simulation purposes, i.e., agents do not exert any force on other agents further from r c = 3. In real life situations, the values for σ i and κ would be determined by the environmental properties. For example, people tend to walk closer together in a shopping mall and more further apart when taking an afternoon walk in a park. σ i can be used to represent the idea of social distancing in a community of agents. With a higher value for σ i , agent i would tend to stay further from other agents. For simplicity purposes we consider κ to be a constant and set κ = 7. This conforms with the previous research on pedestrian dynamics [11] . iw : Agents avoid barriers in the same manner that they avoid other agents as expressed in Eq. 3, with σ w being the uniform tendency to keep distance from physical barriers and κ w as the force constant. In our study the only barriers would be the walls surrounding the environment. Although as stated, these are not Newtonian forces, we can obtain the equation of motion for each agent i as expressed in Eq. 4. Here we consider all the agents to be of the same mass m, so without loss of generality, we set m = 1. Upon reaching their destination, agents are assigned with new random destinations as practiced in [13] to display a continuous motion of the agents resembling the movement in a closed environment, e.g., a mall, office, etc. Agents are also not allowed to exceed the speed limit v max = 2. With these assumptions, we simulate the mobility of agents in different environments and scenarios according to Equations 1 -4 using Euler method [22] . These numerical simulations are similar to the methods commonly used in molecular dynamics. We set the simulation time step ∆t = 0.1 to ensure the smooth and realistic movement of the agents. Agents are initially positioned randomly. To ensure realistic initial distancing between the agents, the spreading dynamics begins 40 time steps after the mobility dynamics start. To go further with Eq. 2, firstly we set all the σ i = σ. This parameter quantifies social distancing. As we intuitively expect, higher values of σ exhibit both faster reaction to nearby agents (stronger force) and larger perceived personal space (higher range). To validate this intuition, we proceed by defining L i,Ni as the ensemble average of the mean of minimum distance between agents while L i,j is the pairwise distances of all agents i and j and define N i = arg min j (L i,j ) as agent i's nearest neighbor, and L i,Ni as agent i's minimum distance with any other agent. L i,Ni is depicted as an increasing function of σ in Fig. 2 top panel, therefore this average provides us with an intuition about σ since it is a good observable quantity. To model the spreading dynamics, we use a compartmental model, categorizing the population into 3 compartments, S (Susceptible), I (Infectious) and E (Exposed). Agents in state S will become E upon getting into contact with the infection. The time duration agents spend in a crowded environments is relatively shorter than the latent period for most infectious diseases [23] ; therefore E agents are not expected to become I and infect others. I agents are also not expected to recover and move to a fourth compartment R. Infections can occur in one of the following manners: 1. Direct Transmission (Person-to-Person Infection): Infectious agents (I) infect susceptible agents (S) in their vicinity with the radius r s , turning them to exposed E agents by the probability α p at each time step as depicted in Fig. 1 panel b ). Although the mobility model is formulated in a continuous manner, in order to account for the environmental pollution, the environment is discretized into a lattice of size L × L. Agents in state I contaminate the tile they are standing on, with probability α p→e at each time step; On the other hand, S agents stepping on contaminated tiles get infectious and turn E, with probability α e→p as depicted in Fig. 1 panel b) . For simplicity we consider While in most circumstances α p = α e , the frequency of checking the possibility of infection via both methods using a rejection-based algorithm [24] should be the same for the model to be consistent. In this study, for the sake of simplicity and to achieve more generic results, the number of initial agents in state I will be always set equal to 1 and the rest of the agents (N − 1) will be initially in state S. Direct infection probability αe Indirect infection probability A summary of model parameters is presented in table I and we will explain how we fix some parameters in the next section. We study each parameter and its effect on exposure risk factor E defined as the fraction of agents exposed to the infection. We choose parameters in ways that reflect real world scenarios. Population density is a significant factor determining the possibility of abiding by social distancing measures. In order to quantify this factor, we define social distancing limit n as the proportion of the total population which are able to maintain a fixed distance from each ) (see Eq. 4), b) The Spreading model: the two types of contagion spreading described in II B as direct transmission (due to person to person contact of the agents) and indirect transmission (due to the polluted environment). Circles represent agents, while S, I, E denote the compartments they belong to. Squares represent tiles of environment, with C and P respectively representing clean and polluted tiles. other in a room. We can calculate n by considering an area of l 2 (l being the desired physical distancing) for each agent. n = 1 indicates a room in which total social distancing is executable whereas n < 1 implies otherwise. Fig. 3 demonstrates the curve separating two regimes n < 1 and n = 1. Some real world locations are also depicted in our parameter space based on their size and population. For our simulation, we assume l = r s = 1 meter, which corresponds to the high-risk distance for COVID-19 and some other similar diseases [25] . We set L = 30 and choose two different scenarios for the population density where the room is filled at 0.4 and 0.8 of its the maximum capacity. This would enable us to study the effectiveness of social distancing in the region where it is executable (n = 1). These two cases respectively refer to N = 180 and N = 100 and would resemble a mildly crowded and a heavily crowded environment. As discussed earlier in section II A, we use the parameter σ to control the intensity of social distancing. In order to get a better real-life intuition of the parameter σ, we measure the average distance which agents keep from their nearest agent while moving in the environment in this model. The results for both population densities are provided in Fig. 2 . As mentioned, the ensemble average of agents' neighboring distances L i,Ni monotonically increases as a function of σ (Fig. 2 top panel) . This increase is, however, not without a cost. To stay further from other agents, each agent would have to lower their average speed and "brake" more often, resulting in lower average speed (Fig. 2 middle panel) and subsequently lower efficiency of the agents in reaching their goals. Therefore the trade-off between social distancing and efficiency should be taken into account to set an intensity for social distancing. Near σ = 0.3 we observe that the value of v for the two environments, begin to diverge. Based on these results we use σ < = 0.3 for the social force among agents in regular walking, as in [11] ; and we set σ > = 1.5 for the case of social distancing applied by agents as an example case, in which a distance greater than r s is maintained between the agents while leaving enough room for them to move around the environment ( v > 0.7). These choices are made without the loss of generality and in order to set parameters closer to real-life situations. In Fig. 2 bottom panel, we observe r o the ensemble average distance from the origin, an indicator of the concentration of the agents. For σ → 0, increasing σ results in a higher condensation of agents, i.e, lower average distance from the origin while for higher values of σ we observe the opposite effect. This counter-intuitive behavior can be explained considering three different scenarios of an agent interacting with a highly dense area (swarm) as illustrated in the left panel of Fig. 4 . In the σ = 0 scenario the agent moves through the swarm without losing speed, while in the σ = 1.5 case, it moves around the swarm resulting in a higher r o of the system compared to σ = 0, and in the case of σ = 0.5 the agent moves through the swarm, albeit by a lower speed. This behavior results in spending more time in dense areas and effectively decreases r o . This analysis can be supported by Fig. 4 right panel. For σ = 0 and σ = 1.5 the average speed of agents located at r o distance from the origin is a decreasing function of r o . This decrease is due to the fact that the center of the environment (r o → 0) acts as a corridor for reaching their targets, and agents often move through this area with a higher speed. In comparison, agents move slower when they are farther away from the center of the environment, as they brake and redirect their velocity more often. For σ = 0.5 the opposite is true and agents have relatively lower speed in the center of the environment, resulting in a lower r o in comparison to σ = 0 and subsequently the initial decrease in Fig. 2 We run the pedestrian and spreading dynamics for both population regimes discussed in III A. For simplicity, we choose α e = 2 × 10 −3 and α p = 10 −2 and later on in section III D we analyze the behavior of the model for different spreading parameters. In this section we set σ uniform across all agents (σ i = σ). The average pro-portion of the exposed population is calculated after 10 minutes (6 × 10 3 time steps) of simulation time and plotted against the values of σ in Fig. 5 . First observation based on this result is that for this set of parameters, the total risk, E = E p + E e , gets reduced by the increase in social distancing. For example, for σ < and σ > , the value of this reduction is E(σ < ) − E(σ > ) = 0.207 for N = 180 and E(σ < ) − E(σ > ) = 0.181 for N = 100 (The effect of social distancing in other infection parameter sets will be presented in Fig. 7) . We can observe that the increase in the strength of this parameter monotonically reduces the risk of getting infected through direct infection (top panel). We can also see that the fraction of agents infected via environmental contamination slightly increases for both population regimes as we increase σ but decreases monotonically afterwards and more intensively for N = 180. This is partly due to the competition between the two methods of infection. The probability of a S agent getting indirectly infected increases when the number of susceptible agents is higher (as a result of the weakness of the direct infection). Another reason for this increase and later decrease in the value of E e is the similar variations in the concentration of agents as a function of σ ( Fig. 2 bottom panel) . The higher concentration of agents in the central area of the environment causes higher indirect transmission. The central tiles, traversed more often by S agents, will be more likely to be contaminated as they are more often walked upon by the I agent. In this section we study the effect of the fraction of people who abide by social distancing on the total risk factor. For this goal we divide the population into two groups, a non-abiding group with σ = σ < = 0.3 and a social distancing group with σ = σ > = 1.5 and we run the simulation for different proportions of people in each group. The parameter ρ(σ > ) would represent the proportion of the agents who abide by social distancing. We analyze this matter in two different scenarios, in which the initial infectious agent is always in the former (σ * = σ < ), or the latter (σ * = σ > ) group. The results are presented in Fig. 6 which shows the strong effect of the behavior of the initial infectious agent on the risk factor E. In both cases, the risk of getting exposed to the contagion drops linearly as the percent of people who abide by social distancing increases but the slope and the intercept of this linear behavior differs based on the social distancing intensity of the initial infectious agent. In other words, the risk drops by a significant factor, if only the infectious agent abides by social distancing. The risk of exposure due to indirect infection increases as more people abide by social distancing similar to the situation explained in III B. To see the behavior of the dynamics in other regimes of the parameter space and in order to get a wider perspective of the model, we implement the simulations for various values of infection probabilities α p and α e . In Fig. 7 we compare the overall exposure risks for σ < and σ > scenarios. As shown in this figure, there is a significant discrepancy for a wide range of infection probabilities confirming our previous results on the effectiveness of social distancing. Due to the increasing role of direct infection and this type of infection's sensitivity to social distancing, the discrepancy increases for higher α p and lower α e (upper left of the diagram). Please note that for high values of α e (right) even when α p is high (upper right), social distancing does not play a major role. This can be explained by the competition between the direct and indirect transmission methods. In other words, in this area, even if agents lower the chance of direct transmission, following the social distancing guidelines, most of them will be nevertheless, exposed to the infection by the indirect transmission method. Furthermore, to investigate the role of direct and indirect transmission, we calculate E p − E e (Fig. 8) . We observe two regimes, E p and E e dominated areas, respectively denoted by red and blue and a white area illustrat- ing the border between the regimes. By comparing the panels we see that due to social distancing, the E p dominated regime has drastically shrunk in favor of E e dominance. This observation also agrees with our previous findings that the person-to-person infection significantly decreases in the social distancing scenario (σ > ) and environmental infection's role increases due to the higher number of available susceptible agents. We have modeled the spreading of infection among mobile agents, as a combination of pedestrian dynamics and compartmental spreading model (SIE). We defined social distancing as the intensity of social force in pedestrian dynamics, and mapped it to the average value of minimum distance between agents and their average speed and concentration. By taking into account both direct and indirect transmission methods of infection ( Fig. 1) , we have systematically evaluated the agents' exposure risks for a wide range of spreading and mobility parameters. We observe that for social distancing to be executable, the population density of the environment should be under certain values (Fig. 3) . As a side effect, by applying social distancing the speed of mobile agents and therefore their performance will decrease (Fig. 2) . Although social distancing has drastic effect on hindering the direct transmission, some of its effects can be cancelled by the increase in the indirect transmission (Fig. 5 ) and the effectiveness of social distancing is dependent on the direct and indirect transmission probabilities (Fig. 7) . We demonstrated the direct transmission and indirect transmission dominated regimes in the scenarios of social distancing abidance and non-abidance (Fig. 8) . We also studied the effectiveness of social distancing when abided by a fraction of population (Fig. 6) , we found that even though the increase in abiding by social distancing reduces the risk of direct transmission, the measures when followed by the agents most likely to be infectious, have the greatest effect. According to our findings, social distancing does not always hinder the transmission, it may counter-intuitively enhance the transmission in specific regimes of σ for contagions with relatively high indirect transmission. (consider Fig. 5 middle panel in the absence of direct transmission.) It is not clear whether this range of parameters conform to real world epidemic diseases and should be further investigated through experimental studies. Our findings can propose a guideline for policy-makers on how to decrease the exposure risk at public locations for many contagions such as SARS-CoV-2. The proposed model can be used to approximate the risk of exposure in a public environment where people exhibit pedestrian dynamics such as public transportation, religious sites, leisure centers, educational campuses, etc. For example, the management board of a shopping mall can determine the decrease needed in population density in order to reduce the risk of exposure by a desired factor. In the first place, the population density of an environment should be in the region where social distancing is executable. Then the risk factor for this environment can be calculated via the proposed model for different populations. Now using these results, the corresponding population for a desired reduced risk factor can be derived. Afterwards to propose a specific value for σ, by considering the social distancing force's exposure risks and also its effect on the population performance, a desired σ can be proposed for the shopping mall, the customers can be advised to keep a distance of L i,Ni as calculated in Fig. 2 for the corresponding value of σ. Also in order to keep social distancing and overcome the indirect transmission, periodic cleaning and disinfecting of the environment can be conducted. Cleaning the environment would be most important in contagions with higher α e (See Fig. 7) . Despite the capabilities mentioned above, nevertheless, this model has some limitations worth noting. The infection probabilities α p an α e , are hard to specify for an infection. Since they are the probability of getting infected in one time step of the simulation, they should be specified based on the simulation time step size. It should be also noted that they are not purely biological parameters. For example, talking, shaking hands, and some other social behavior can alter the value of person to person infection probability α p . These social factors make the parameters harder to estimate due to the ethical and technical limitations in experiments. For further studies, the compartmental part of the model is versatile and can be expanded to simulate long term dynamics of the spreading by considering the E to I (exposed becoming infectious) and I to R (infectious becoming recovered) transitions. Also this model can be combined with other empirical or random generated networks, e.g. random geometric graphs [26] [27] [28] and mean-field models. Note that apart from the environmental infection, our model is theoretically equivalent to the spreading model on the temporal spatial network of interactions between the agents where there is a connection between agents closer than r s . It is also possible to include environmental infection by considering tiles as another type of stationary nodes, reacting differently to the infection. The simulation and analysis is conducted by Episterian software written in Python, developed by S.S and A.H, available here under GPLv3. Social Distancing, Quarantine, and Isolation A contribution to the mathematical theory of epidemics Modeling infectious diseases in humans and animals Networks an introduction Dynamical processes on complex networks Temporal network epidemiology Temporal Networks Small but slow world: How network topology and burstiness slow down spreading Risk of coinfection outbreaks in temporal networks: A case study of a hospital contact network Impact of temporal correlations on high risk outbreaks of independent and cooperative SIR dynamics Social Force Model for Pedestrian Dynamics Self-propelled pedestrian dynamics model: Application to passenger movement and infection propagation in airplanes Agentbased Simulation of Pedestrian Dynamics for Exposure Time Estimation in Epidemic Risk Assessment Multiscale model for pedestrian and infection dynamics during air travel Coupling kinetic theory approaches for pedestrian dynamics and disease contagion in a confined environment Analytical Modelling of the Spread of Disease in Confined and Crowded Spaces Modeling indoor-level nonpharmaceutical interventions during the covid-19 pandemic: a pedestrian dynamics-based microscopic simulation approach A multi-scale model quantifies the impact of limited movement of the population and mandatory wearing of face masks in containing the COVID-19 epidemic in Morocco Multiscale model for the optimal design of pedestrian queues to mitigate infectious disease spread Principles of epidemiology in public health practice third edition an introduction to applied epidemiology and biostatistics Statistical physics of social dynamics Euler method -Wikipedia, the free encyclopedia Incubation period -Wikipedia, the free encyclopedia Temporal gillespie algorithm: Fast simulation of contagion processes on time-varying networks Coronavirus disease (covid-19) advice for the public Spatial networks Particle velocity controls phase transitions in contagion dynamics Random geometric graphs We would like to thank M. R. Ejtehadi for his insightful comments. F.Gh. acknowledges partial support