key: cord-0183819-vz3v07oc authors: Mayr, Christina Maria; Koster, Gerta title: Social distancing with the Optimal Steps Model date: 2020-07-03 journal: nan DOI: nan sha: 286ed5e4b4f5ad1ae59c981f426eff570a69232a doc_id: 183819 cord_uid: vz3v07oc With the Covid-19 pandemic an urgent need to simulate social distancing arises. The Optimal Steps Model (OSM) is a pedestrian locomotion model that operationalizes an individual's need for personal space. We present new parameter values for personal space in the Optimal Steps Model to simulate social distancing in the pedestrian dynamics simulator Vadere. Our approach is pragmatic. We consider two use cases: in the first we demand that a set social distance must never be violated. In the second the social distance must be kept only on average. For each use case we conduct simulation studies in a typical bottleneck scenario and measure contact times, that is, violations of the social distance rule. We derive rules of thumb for suitable parameter choices in dependency of the desired social distance. We test the rules of thumb for the social distances 1.5m and 2.0m and observe that the new parameter values indeed lead to the desired social distancing. Thus, the rules of thumb will quickly enable Vadere users to conduct their own studies without understanding the intricacies of the OSM implementation and without extensive parameter adjustment. In 2020, distance rules were imposed in many countries to slow down the spread of the coronavirus. Obeying such rules leads to a change in crowd behavior: pedestrians keep more distance [1] and, to achieve this, might slow down their walking speed [2] . But what happens when people do not have enough space to keep a distance from each other? For example at a train station or a narrow bottleneck in an evacuation situation. Bottlenecks have been investigated in numerous studies under normal conditions. In three laboratory experiments [3, 4, 5] , the authors find that the flow depends linearly on the corridor width. Ren et al. [5] assess the evacuation time of elderly people through a bottleneck from a laboratory experiment. They find that the total evacuation time depends piecewise linearly on the exit width. Zhang et al. [6] conduct an egress experiment with mice. They find that the total evacuation time decreases with the increase of the exit width in a certain range. They also find that the mean flow rate shows a nonlinear dependency on the exit width. Locomotion behavior has changed due to social distancing measures. This poses a challenge to existing movement models that are calibrated to normal behavior. According to [7] , several crowd simulation frameworks have released new features to incorporate social distancing in their simulation models 2 . MARCH 2, 2022 Figure 1 : Normal crowd behavior in front of a bottleneck. The agents (circles) try to reach the target on the left-hand side. In this example, we consider agents being in contact if they violate a social distance of 1.5m. Red circles represent agents currently in contact. The contact between two agents is represented by a red connection line. Blue circles represent agents out of contact. Vadere's default parameters for the OSM are chosen to reflect such normal behavior. For a simulation with social distancing new parameters must be found. In this study, we try to find parameter values that allow us to simulate social distancing. For that purpose, we will use the implementation of the optimal steps model in the free open-source pedestrian dynamics simulator Vadere 5 . In the following, we will denote with capital letters the OSM or OSM as implemented in Vadere, while small letters refer to the model class. We look at a classic bottleneck scenario. We argue that this scenario is particularly interesting because many geometries in the built environment can be interpreted as a sequence of bottlenecks. We also consider different desired social distances, which we define through the Euclidean distance between the centers of the agents. Agents in Vadere are represented by circles. We call contact any violation of the desired social distance, even for the shortest time. We investigate two use cases: • Use case 1: Social distance as a lower bound. In this use case, the social distance value must never be violated. As a consequence, if we find such a parameter combination, there are no contacts at all. In other words, we interpret the social distance as a lower bound of the actual distances kept by the agents. • Use case 2: Social distance as target distance. In this use case, we accept a temporal violation (≤ 10s) of the distance requirement, that is, contacts. For both use cases, agents need to keep larger distances than before. In the OSM, personal distance is modeled by introducing 'repulsion' between agents, or less physically interpreted, the utility of a position decreases when an agent approaches another agent. The repulsion (or utility drop) is captured by a so-called potential function. Hence, we need to find appropriate parameters of the potential function to strengthen the repulsion between agents. The paper is organized as follows. In Section 2, we introduce the OSM, the scenario, and define criteria that represent the two use cases. In Section 3, we propose a new methodology to assess the relationship between desired social distance, OSM parameters, and the corridor width of the bottleneck. In addition, we assess how the evacuation time is affected by these parameters. We discuss under which conditions the effect of clogging occurs and we propose strategies to tackle this issue. Section 4 provides a conclusion. 2 Materials and methods The basic idea of the OSM is that virtual pedestrians (agents) are attracted by targets and repulsed by obstacles and other virtual pedestrians. Less physically spoken, agents, when moving, maximize the utility of their position. This utility depends (negatively) on the geodesic distance to the target and (negatively) on the proximity to other agents. MARCH 2, 2022 Agents move by 'stepping' on the position within a circle around their current spot that optimizes this utility. The circle radius represents each agent's personal maximum stride length, which in turn is linearly correlated to the agent's free-flow speed [27] , that is, an assumed desired speed when the path is free. Thus, agents step towards targets while skirting obstacles and avoiding collisions. In the remainder of the text, we use the physical interpretation, because it is used in the names of parameters in Vadere's implementation of the OSM. The potential P l (x) for pedestrian q at time t for an arbitrary point x ∈ R 2 in the plane is defined as [27] where P t (x, s) is the attraction potential of the target, s is the vector of the current agent positions, P o,j (x) is the repulsive potential induced by obstacle j, m is the number of obstacles, P p,i is the repulsive potential of other agents, n is the number of agents. The implementation of the attraction potential P t (x) is the so-called floor field. If the attraction potential does not depends on the current agents' positions, means P t (x, s) = P t (x), the floor field is static. Otherwise, it is dynamic. We look at static floor fields. In this case, the value of the potential function at position x equals the negative geodesic distance between x and the target. The obstacle potential P o,j (x) is defined as where d o,j (x) is the distance to the closest point of the obstacle from position x, w o defined the width of the obstacle repulsion, r l is the torso radius of agent l. The functions δ i are defined as The repulsion between two agents is achieved by the distance-dependent potential function P p,i . In Vadere, it is implemented as where d l,i (x) is the Euclidean distance between agent l and agent i. r i , r l are the respective torso radi of agent i, l. w int and w are the intimate and the personal space width according to Hall. The functions φ i are defined as See Figure 2 . The potential function is based on Hall's theory of interpersonal distances which describes four distance zones around a person [30, 38] . Accordingly, the potential function is defined piece-wise on rings around each agent: a circular core for collision avoidance, a first ring that represents the intimate space, and a second ring that represents MARCH 2, 2022 personal space. Agents outside the personal zone do not affect other agents' path choice. This is mathematically modeled by setting the the potential function to zero. The value of the potential function in the personal space ring is very low. Thus, this area will be kept free only if agents have ample space to avoid each other [30] . As soon as the space becomes more constricted agents will get closer. This is typical for normal human behavior. In the intimate space ring , the potential function value increases significantly. Again see Figure 2 . In crowds, this area is only kept free if the density is low [30] . Finally, to prevent agents from overlapping, the potential is set to a very high value (when compared to the values in the personal and intimate spaces) in the collision area. The exact definition of the potential function, and default parameters, implemented in Vadere can be found in [37] . The shape of the potential function is controlled through several parameters that could be adapted to achieve social distancing in the OSM. We try to keep the adaption of the OSM as simple as possible by only changing two parameters: the potential height h (in Vadere: pedPotentialHeight) and the personal space width w (in Vadere: pedPotentialPerson-alSpaceWidth). Why do we choose these two parameters? The parameter potential height h controls the strength of repulsion. If h is increased, we expect agents to increase their distance to others. The parameter personal space width w controls how far the repulsion reaches: the larger w the bigger the influence area of an agent. Note that the personal space width w is related to but not equal to the desired social distance d the user wants to model. When there is ample space it might suffice to set w = d to keep agents at least the desired social distance apart. Since the true distance between agents is an emergent value, we expect the distance to be larger. In a bottleneck scenario, like Figure 1 on the other hand, the true distance will be much smaller than w. In crowd simulations, we are especially interested in dense crowds which typically occur in front of bottlenecks, such as doors or narrow passages. As a consequence, if we want to observe a virtual crowd that obeys social distancing, we need to choose a value for the personal space width w that is bigger than the desired social distance. For this purpose, we want to find suitable values for the parameters personal space width and potential height. There is currently no empirical data available to calibrate the OSM parameters for social distancing. Nonetheless, we need to find a suitable scenario and define plausible criteria which help us to evaluate how well social distancing is captured by the model. When selecting the scenario, the following aspect should be considered. In use case 1, the social distance is a lower bound for permissible distances. In particular, all distances larger than the social distances are accepted. One might be tempted to achieve such behavior by increasing the repulsion between agents up to 'infinity', that is, to set the potential height h and the personal space width w to extremely high values. Such a procedure can cause the effect of clogging. If the potential is too high, agents get stuck, as illustrated in Figure 3 with a funnel analogy. The funnel represents a bottleneck that agents need to pass to reach their target. The ball size represents the repulsion between agents. If the ball size is small (small repulsion), the balls just fall through the narrowing. If the ball size is too large, balls get stuck. This effect can be easily observed in test simulations. We conclude that we cannot increase the repulsion at will. We use the bottleneck scenario depicted in Figure 1 with this consideration in mind. The bottleneck scenario covers both aspects, density and repulsion. We can directly observe what happens if the repulsion is too high. The scenario is set up as follows. The topography of the scenario is 12m wide and 65m long. The length of the corridor is 5.0m. We consider ten discrete corridor widths c ∈ {1.2m, 1.4m, 1.6m, ..., 3.0m}. 100 agents are generated in the source on the right-hand side (green box) and try to reach the target (orange box) on the left-hand side. With these settings, the agents are close to each other in front of the bottleneck. The source is placed sufficiently far away from the corridor to exclude any effects of the spawning process on the observation area. We start to count contacts at simulation time t = 20s to exclude any contacts produced by the spawning process. The distance measure between two agents is the Euclidean distance between their center points. We do not have any empirical data to calibrate our parameters for social distancing. Hence, we need other criteria to decide which parameter values fit our two use cases best. We look at the original motivation for social distancing: to decrease the number of contacts and with it the probability of infection. With this in mind, we select a time measure t m for counting contacts as proposed in [7] . The personal space is around the torso of an agent. If the distance between two agents is smaller than the sum of the torso radii, the agents collide (1). To prevent this, the potential is set to a high value in the torso area. The personal space (2) begins at x = 0.84m and ends at x = 1.59m. The upper bound x = 1.59m is the sum of the personal space width w = 1.2 and the torso radii of the agents. (3) represents the personal space. (4) is a region out of interest. The time measure t m is defined as In our investigation, the number of agents is n = 100. t i,j is the time agent i has contact to another agent j. The time t i,j is zero if the distance x i,j between two agents i and j is above the desired social distance: Figure 3 : Funnel with balls. The ball size represents the repulsion between agents. If the ball size is small (small repulsion), the balls just fall through the narrowing. If the ball size is too large, balls get stuck. This is why we must not increase the repulsion to an infinite value to achieve social distancing. where t s,s is the point of time when the social distance is violated for the first time and t s,e is the point of time when the contact ends. Adding up the durations of social distance violations may seem less intuitive than direct distance measures at a first glance. However, evaluating the relative impact of distances can become very complex, since we do not know how much a certain distance matters. For use case 1, the contact time has to be zero. This means that all agents always keep a distance larger than the desired social distance d. Thus, the acceptable parameter combinations for use case 1 have to fulfill the condition: We expect that this condition is always fulfilled when the personal space width and the potential height are set to high values which leads to high repulsion. Since a high repulsion can lead to clogging, we only want to increase the repulsion as much as necessary. We expect that there are multiple parameter combinations that fulfill condition 1. Hence, the solution to our problem is not unique but forms an indifference curve. For use case 2, we accept parameter combinations which fulfill: t m ≤ 10s Condition for use case 2 (13) 3 Results and discussion There are three parameters in the simulation, the personal space width w, the corridor width c, and the personal space height h. These influence the distance behavior and thus the evacuation time. The parameters personal space width and space height can be freely chosen, while the corridor width is conditioned by the topography. The aim is to find out which parameter values have to be chosen to achieve use cases 1 and 2 for a given social distance and how this is related to the evacuation time. We find that both use cases can be covered by adjusting the personal space width while fixing the personal space height at h = 850, see Appendix A. In our studies, we vary the parameters personal space width and corridor width, and keep the personal space height at h = 850. We use ten corridor widths c ∈ {1. This resolution is necessary to determine, with sufficient accuracy, those parameter values for which our acceptance thresholds (t m = 0s, t m = 10s) are passed. In summary, we run 10x150 simulations and collect the contact times for the social distances 1.25m, 1.50m, 1.75m, 2.0m. For each use case and for each social distance, we find the minimum values of the personal space width for which the respective use case and the respective distance behavior is fulfilled: w min,uc=1 , w min,uc=2 . We also collect the evacuation time for each simulation run. To fulfill the condition for use case 1 and 2, the personal space width w must be selected depending on the social distance d, that one wishes to achieve, and on the corridor width c, see Fig. 4 ,5. We observe that the personal space width w depends linearly on the desired social distance. This is in line with our expectations. For each use case, we set up a linear model (least squares) using the data points from Fig. 4 The regression formula for use case 2 is: It is problematic that the distance behavior depends on topography parameters such as the corridor width, as these are usually not freely chosen. There may even be several corridors with different widths in a simulation. This problem is alleviated by the comparatively small effect of the corridor width. The two upper confidence intervals are even close to zero, see Tab. 1,2. Also, the coefficients of the social distances are at least twenty times higher than the coefficients of the corridor width so that the result changes only slowly with changing corridor widths. This effect can also be observed in Figures 4, 5. Note that this argument is only valid because the parameter ranges are similar. For practical applications, we argue, that the value of the corridor width does not need to be matched exactly. In the case of multiple corridor widths, we recommend using the minimum corridor width. In this case, the agents would maintain slightly higher distances in broader corridors. The evacuation time depends on the corridor width c and the personal space width w, see Fig. 6 . With increasing personal space width, the evacuation time increases. With increasing corridor width the evacuation time decreases. In some cases, temporary clogging occurs, which means, that agents get stuck for a certain amount of time. These cases correspond to the peeks in Fig. 6 . The cases of stationary clogging (evacuation time t evac ≥ 1500s), are not depicted in These results are plausible and extend the findings of [3, 4, 5] . If we have to keep larger distances, fewer people can enter the corridor at the same time. They have to enter one after the other, which costs more time and increases the evacuation time. The larger the corridor width, the more people can enter the corridor at the same time. With the help of Eq. 14, 16, 18, it is possible to qualitatively estimate how much longer an evacuation time will take if the distance recommendation is increased. For this purpose, the personal space width is first calculated as a function of the personal distance and the corridor width according to Eqs. 14, 16 and then used in Eq. 18. We want to assess under which condition clogging occurs. In this study, we assume clogging when the evacuation time is larger than the simulation time: t evac ≥ 1500s. We expect that clogging occurs when the personal space width w is larger than the corridor width c: w > c. Clogging is more likely when the repulsion potential is more dominant than the target potential. Suppose two agents are standing in front of a bottleneck. One agent stands at the left corner, the other at the right corner. In the case that the repulsion potential is smaller than the corridor width, the agents only see the target potential. In the other case, the agents see the repulsion potential of the other agent, which is superposed with the target potential. This is more likely with increasing range and height of the repulsion potential. For each simulation, we collect the minimum values of the personal space for which clogging occurs (evacuation time t evac > 1500s, 1500s = max. simulation time). We want to assess whether the condition w ≥ c holds for clogging. For that purpose, we compute the Pearson correlation coefficient and plot minimum values of the personal space over the corridor with. We find that c and w are highly correlated (Pearson correlation coefficient = 0.977). Moreover, the borderline values are close to the unit line that represents the exact condition w = c, see Fig. 7 . We find that the condition for clogging w ≥ c broadly holds. To avoid clogging in the simulation, the personal space width values should be smaller than the width of the corridor. Otherwise, one has to expect clogging. For practical applications, where the corridor width is set we suggest the following strategies. The first strategy is to extend the locomotion behavior by a suitable behavioral model. We think, that real pedestrians resolve deadlocks by temporarily adapting their behavior. For example, they might briefly violate social distances to 'squeeze by'. Another strategy would be to model a time-dependent agent potential function, where the repulsion decreases when agents experience a certain time of clogging. This would entail social distance violations and, in our eyes, model pedestrians' impatience with deadlocks. Such a behavior is already implemented in the accu:rate's simulator crowd:it 6 . After a certain time, agents switch to their default behavior, that is, without keeping any distance rules. This usually resolves the clogging. We plan to implement similar behaviors in the Vadere simulation framework. For the time being, we recommend keeping this problem in mind when using our parameter values in Vadere. We strongly recommend using a dynamic floor field and allow agents to switch places in counterflows. 14 ) . No contacts are allowed (t m = 0s). In use case 2 (right), a temporary violation (t m = 10s) of the desired social distance is allowed. In this case, the parameters are set according to Eq. 16: w(d = 1.5m, c = 2.0m) = 1.7189, h = 850. One can observe that agents need to keep more distance in use case 1 than in use case 2, because the contact time requirement is harder to fulfill. Currently, the distancing behavior is defined by a time measure. However, the precision of the equations could be increased by reformulating the problem as an optimization problem where each deviation from the desired social distance is punished within a utility function. For this purpose, several questions need to be answered: In which area around an agent should a distance deviation be punished? How to choose the utility function? The solution to this problem is part of future research. The regression formulas are based on a bottleneck scenario where high densities occur. We expect that our parameter suggestions work for scenarios with bottlenecks. We can not guarantee that they work for any topography. When testing the new parameter values, we observed that the probability of clogging increases when increasing the social distance. This is caused by the higher repulsion. The clogging problem can be mitigated but not eliminated by using a dynamic floor field and allowing position switches in counterflow. We list the Vadere parameter settings to achieve this. However, we believe that the problem is better addressed by implementing suitable agent behaviors. We plan to do this in the Vadere simulation framework. In the present study, only one simulation run per sample, i.e. one fixed seed, was used due to the limited computing capacity. It would be interesting to see what results are obtained with several simulation runs per sample. We investigated how to calibrate parameters of the OSM, an optimal steps model implemented in the free and opensource Vadere framework so that social distancing can be simulated. We considered two use cases for social distancing: In the first, contacts had to be completely avoided. The distance between agents could not fall below the required social distance value. In the second use case, a temporal violation of the social distance of 10s on average per agent was allowed. For both use cases, we derived regression formulas to determine the OSM parameters for any desired social distance d ∈ [1.25m, 2.00m]. Our procedure was based on two steps. In the first step, we varied the OSM parameters personal space height and personal space width, that describe an agent's need for personal space, for a narrow (1.2m) and broad (3.0m) bottleneck. We analyzed the contact duration for each of 2500 samples. We found that the conditions for both use cases could be fulfilled with personal space height of 850 and kept it fixed at that value in the following. Then, we investigated, for both use cases, how the personal space width has to be chosen depending on the desired social distance and the corridor width. We found that the personal space width depends linearly on both, the desired social distance and on the corridor width. However, the latter has a significantly smaller influence. We also saw that evacuation time increases linearly with the personal space width and decreases linearly with the corridor width. We observed that agents get stuck in some simulations. We found that clogging always occurs in our bottleneck scenario when the personal space extends beyond the corridor width. Several questions remain to be answered. The first is the problem of clogging for which new sub-models need to be introduced that resolve unrealistic clogging in the simulation where real persons would find a cooperative solution to proceed. The second is the definition of the use cases that are currently based solely on time measures, that is, on the duration of the violation of a fixed distance. Measures that take into account how much the distance was violated, have the potential to be much more precise. However, it is unclear, how to weigh these distances. Another open question is to what extent the formulas can be transferred to other scenarios than the considered bottleneck. With our findings, optimal steps models, notably the OSM as in Vadere, can be calibrated to the changed locomotion behavior under social distancing measures. Crowd flows under pandemic conditions can be simulated more realistically. Furthermore, we better understand how the evacuation time depends on the social distancing behavior. For that purpose, we use a simple grid sampling. Each parameter is discretized with 50 values which are equally spaced between lower and upper bound. See Table 6 . In total, we get 2500 parameter combinations. For each of these parameter combinations, we run a simulation. The average contact times for each use case are depicted in Fig. 9,10 . We find that the contact average time decreases when increasing the potential height h or the personal space width w except for h ∈ [250, 825] (Fig. 9 ) and h ∈ [250, 400] (Fig. 10) . In these cases, the contact time increases over w due to random pairing that is caused by low agent potentials that reach very far. As a result, many agent potentials are superposed at the same time. The next minimum in the step circle radius can then happen to be next to the neighboring agent, causing random pairing. We want to avoid such behavior and require that h ≥ 850. In the next step, we analyze the resulting average contact time t m for each of the four social distances d: 1.25, 1.5, 1.75, 2.0. We start with use case 1. For each social distance d i , we mark all parameter combinations which fulfill t m = 0. Then we build the convex hull around these points which serves as an approximation for the indifference curve. We proceed analogously with use case 2 (t m = 10s). The indifference curves for the corridor widths c i = {1.2m, 3.0m} are depicted in Fig. 11,12 . We see that both use cases at a fixed personal space height h = 850, see Fig. 11 ,12. It is therefore not necessary to adjust both space width and height at the same time. For this reason, we fix the personal space height to h = 850, in the following. Default Table 6 : Analyzed parameter values. Each parameter is discretized by 100 values which are equally spaced between lower and upper bound. In summary, this leads to 10000 parameter combinations. Figure 9 : Average contact time (third dimension, see colorbar) over potential height h and personal space width w for a social distance d = 1.5m (left) and d = 2.0m (right) at a fixed corridor width c = 1.2m. In h ∈ [250, 825], the contact time increases again over w. In this area, pairing occurs, because the agent potentials are low but reach very far. As a result, very many agent potentials are superposed at the same time. The next minimum in the step circle radius can then happen to be next to the neighbouring agent, causing random pairing. We want to avoid such behavior and require that h ≥ 850. , pairing occurs, because the agent potentials are low but reach very far. As a result, very many agent potentials are superposed at the same time. The next minimum in the step circle radius can then happen to be next to the neighbouring agent, causing random pairing. We want to avoid such behavior and require that h ≥ 850. Monitoring physical distancing for crowd management: Real-time trajectory and group analysis Estimating density limits for walking pedestrians keeping a safe interpersonal distancing New insights into pedestrian flow through bottlenecks Experimental study of pedestrian behaviors in a corridor based on digital image processing Experimental study on elderly pedestrians passing through bottlenecks Collective behavior of mice passing through an exit under panic Exposed: An occupant exposure model for confined spaces to retrofit crowd models during a pandemic Multiscale Modeling of Pedestrian Dynamics Avoiding numerical pitfalls in social force models Social Force Model for pedestrian dynamics Specification of the social force pedestrian model by evolutionary adjustment to video tracking data Centrifugal force model for pedestrian dynamics Modifications of the helbing-molnár-farkas-vicsek social force model for pedestrian evolution A modification of the social force model can reproduce experimental data of pedestrian flows in normal conditions Modified social force model with face pose for human collision avoidance Obstacle avoidance in the improved social force model based on ant colony optimization during pedestrian evacuation Agent-based simulation of pedestrian dynamics for exposure time estimation in epidemic risk assessment Social distancing in pedestrian dynamics and its effect on disease spreading Some indications on how to calibrate the social force model of pedestrian dynamics Calibrating cellular automaton models for pedestrians walking through corners Validation and verification of ca-based pedestrian dynamics models Discretization effects and the influence of walking speed in cellular automata models for pedestrian dynamics Calibrating floor field cellular automaton models for pedestrian dynamics by using likelihood function optimization Pedestrian traffic: on the quickest path Modeling and simulation of pedestrian movement planning around corners A macroscopic approach for calibration and validation of a modified social force model for bidirectional pedestrian streams Natural discretization of pedestrian movement in continuous space How stride adaptation in pedestrian models improves navigation Dynamic stride length adaptation according to utility and personal space Modelling social identification and helping in evacuation simulation. 1602.00805(v1) Modeling evacuation dynamics on stairs by an extended optimal steps model. Simulation Modelling Practice and Theory Covid-19: physical distancing Covid-19-hygienemaßnahmen hinweise für nicht-medizinische einsatzkräfte How to stop the spread of coronavirus (covid-19) Vadere: An open-source simulation framework to promote interdisciplinary understanding A Fixing the parameter personal space width The question is whether the personal space height and width have to be adjusted at the same time, or whether adjusting one parameter is sufficient We thank Dr. Angelika Kneidl and Alex Platt (B. Sc.) from accu:rate who provided insight and expertise that greatly assisted the research. In particular, we thank for the stimulating discussions and the testing of the parameters in real-life applications.