Research Article | Open Access

# Pedestrian Walking Behavior Revealed through a Random Walk Model

**Academic Editor:**Geert Wets

#### Abstract

This paper applies method of continuous-time random walks for pedestrian flow simulation. In the model, pedestrians can walk forward or backward and turn left or right if there is no block. Velocities of pedestrian flow moving forward or diffusing are dominated by coefficients. The waiting time preceding each jump is assumed to follow an exponential distribution. To solve the model, a second-order two-dimensional partial differential equation, a high-order compact scheme with the alternating direction implicit method, is employed. In the numerical experiments, the walking domain of the first one is two-dimensional with two entrances and one exit, and that of the second one is two-dimensional with one entrance and one exit. The flows in both scenarios are one way. Numerical results show that the model can be used for pedestrian flow simulation.

#### 1. Introduction

In recent years, modeling pedestrian flow has attracted considerable attention, partly because the model serves as basis for efficient crowd evacuation management and pedestrian facility operations. However, the research is still in its infancy owing to the complexity of human being’s behaviors.

Most of the existing models for pedestrian flow are of microscopic nature, describing in detail the interactions among pedestrians, and between pedestrians and obstacles. Those models include, among others, cellular automata models [1–7], lattice gas models [8–12], the social force models [13], the centrifugal force models [14], and the floor field models [15, 16]. In cellular automata models, the walking space is two-dimensional and divided into cells. Each cell can either be empty, be occupied by exactly one pedestrian, or contain an obstacle. Cellular automata models are widely used for capturing pedestrian walking behaviors, such as bi-direction movement [1, 3, 4], pedestrian counter flow with different walk velocities [2] or with right-moving preference [5], freezing transition phenomenon [6], and moving pedestrians’ reaction to an obstacle [7]. Like cellular automata models, the lattice gas model consists of a set of stochastic rules on the square lattice. Applying the lattice gas model, previous studies have systematically investigated the phenomenon of jamming transition from the moving state at a low density to the stopping state at a higher density [8–11]. Jiang and Wu employed the lattice gas model to examine the interaction between a large object and pedestrians in the narrow channel [12]. The social force model, proposed by Helbing and Molnár [13], consists of three force terms that are measures for the moving motivations of a pedestrian. The model is able to reproduce the self-organization of collective phenomena of walking behaviors. By considering the headway and relative velocity among pedestrians, the centrifugal force model is capable of describing the behavior of lane formation [14]. The floor field model is yet another type of cellular automata models extended by realistically taking into account pedestrians’ behaviors around the exit [15, 16].

Macroscopic models are often in the form of partial differential equations. Instead of describing individual pedestrian’s behavior, this type of models treats the crowd as a whole and applies the conservation laws to capture the relationship among speed, flow, and density of pedestrian flow [17–21]. Directly starting from the flow conservation, Hughes [17] derived partial differential equations for flows with single or multiple pedestrian types. Likewise, Colombo and Rosini [18] introduced another partial differential equation model for pedestrian flows with a new parameter called characteristic density, which is used to reveal the maximal density in panic. Henderson [19] considered the movement of a crowd as an analogous system of gas molecules and applied the Maxwell-Boltzmann theory to describe the velocity distribution of people movements. Without making use of the conservation assumptions in Henderson’s study, Helbing [20] developed a fluid dynamic model for the collective movement of pedestrians based on the Boltzmann-like approach.

Motivated by the work by Barkai et al. [22], this paper attempts to apply the approach of continuous-time random walks (CTRW) to derive a partial differential equation model to describe the motion of pedestrians. The CTRW is a useful model from statistical physics, in which each random particle jump is preceded by a random waiting time. Mathematically, the CTRW is a random walk subordinated to a renewal process. Different from the traditional macroscopic models, the proposed model is capable of not only capturing the macroscopic characteristics of pedestrian flows, but also describing the interactions among pedestrians, and between pedestrians and obstacles in terms of parameters in the model.

This paper is organized as follows. Section 2 introduces the continuous-time random walks model, formulated as a partial differential equation. Section 3 presents a high-order compact (HOC) solution scheme with the alternating direction implicit (ADI) method, followed by a numerical example in Section 4. Finally, Section 5 concludes the paper.

#### 2. Model

Consider a random walker on a bounded two-dimensional lattice with a domain . It is assumed that there is no correlation between steps. Let represent the time that the walker stays at a particular point before making a “jump.” Hereinafter we simply call as waiting time at a point and assume the waiting time at all points are independent random variables with an identical probability density function . We further define as the probability of jumps occurring during the time interval . Consequently, the probability that there is no jump occurring during the time interval is Applying the Laplace transform to both sides of (2.1) leads to

Note that represents the probability that the first jump occurs at time and there are no further jumps after it until . We thus have where and are simplified as and . Similarly, we obtain The Laplace form of (2.4) is given by

Let be the probability of observing the walker at site at time , and let denote the probability that the walker is at the position after jumps. We then have The Laplace transformation of (2.6) yields

In the domain of with the length of the lattice edge being (as shown in Figure 1), the law of total probability implies that where to represents the probability for the walker to proceed forward, turn left, walk back, and turn right, respectively. The probabilities are assumed to be known and .

Applying Taylor’s expansion to RHS of (2.8) at the point leads to where denotes higher-order terms that are omitted hereinafter. We thus obtain the following:

Define , , where is the direction force along the -axis and is the force along the -axis. Consequently, (2.10) can be recast as where , , , and . Applying the Laplace transformation to (2.11), we have where .

Substituting (2.12) into (2.7) yields

The specific form of (2.13) depends on the choice of the waiting time distribution . Several distributions are plausible based on the nature of pedestrian walking behaviors. Here we assume that follows the exponential distribution, that is, where is the mean of waiting time. The probability density function of waiting time in the Laplace space can be written as

Substituting (2.15) into (2.13) yields

Rearranging the above and dividing both sides by leads to where as . Then the inverse Laplace transform of (2.17) becomes the following:

We thus obtain the continuous-time random walks model for pedestrian traffic as

#### 3. Numerical Algorithm

Equation (2.19) is recognized as the Fokker-Planck equation. If none of the coefficients is function of or , then it is a linear second-order partial differential equation. Here we employ a high-order compact scheme with the alternating direction implicit method to numerically solve this equation [23, 24]. Further denoting as , as , as, and as , we rewrite the model as follows:

Assume the domain is divided evenly into spaced cells of length along -axis and length along -axis, and , , , and represent the approximations to the first and second derivatives of with respect to or at node . Based on the standard central finite difference method, (3.1) can be discretized as follows: In the above, the truncation error, that is, , is where , , , and are the first- and second-order central difference operators.

Differentiating (3.1) with respect to or once and twice, respectively yields, approximations of higher-order derivatives as follows:

Substituting (3.4) and (3.3) into (3.2) leads to where , , , , , , and .

Following Karaa and Zhang [24], we define four finite difference operators, The difference between LHS of (3.5) and is expressed as while the difference between RHS of (3.5) and is Thus (3.5) can be rewritten as since adding the above two expressions to (3.5) will not influence the accuracy. Applying the Crank-Nicolson discretization, we have This discretization is apparently second order in time and fourth order in space.

We move the terms with in the above equation to its LHS and add to it. Similarly, we move the terms with to the RHS and add . Consequently, (3.10) becomes the following equation after dropping the error terms [24]:

Employing the alternating direction implicit method, we have where is an intermediate variable.

#### 4. Numerical Example

We applied the proposed model and solution algorithm to a rectangular walking platform with , . Pedestrians are only allowed to walk from the left boundary to the right one. There are two doors of the same width as where pedestrians can enter the platform, as shown in Figure 2. Initially, there are no pedestrians in the platform. The boundary conditions are and the inputs are where .

We further assume to to be 0.70, 0.15, 0.0, and 0.15, respectively, and and .

Figure 3 is snapshots of numerical solutions of the pedestrian flow at times , respectively, to show the movement pattern of the pedestrians. The density increases steadily with the increase of entering flow and reaches its maximum at time . The density centered at either group is becoming less while the density between these two groups is becoming larger as the pedestrians are walking forward. For each group of pedestrians, density at the center is always larger than those in the surroundings. The reason is that the people around the block are much easier to disperse than those in the middle. As the time is close to , the density is approaching zero and only some late-entering or slow-walking people remain in the platform. From the snapshots, we can observe the phenomena of dispersion and advection of the pedestrian flow.

To further illustrate the model, additional experiments were conducted with the whole left boundary, that is, , as the entrance. In addition, the inflow is supposed to be steady with , where and . Figure 4 plots the density along at , respectively. It can be observed that there is a sharp decrease in each curve, indicating that only a few pedestrians are fast walkers. The results are consistent with the phenomenon we may observe in reality that no matter how crowded a platform is, the density close to the exit is always less than the jam density.

To reveal the impact of direction choice behavior on the flow patterns, Figure 5 plots the average density of the platform along time under various scenarios where , respectively, and probabilities of left and right turns are and walking backward is not allowed. It is shown that the time the flow becomes steady is significantly dependent on . The larger is, the faster the flow reaches to a steady state. The numerical results coincide with actual pedestrian moving behavior. Moreover, a smaller value of leads to a lower density in the steady state.

Figure 6 illustrates the average density across the time under different entering flow intensity at , respectively. It shows the steady density is only slightly lower than the input flow intensity. In addition, it is observed that no matter what intensity the inflow is, the time the flow reaches to its steady state remains almost the same.

#### 5. Conclusion

This paper is an application of continuous-time random walks approach to pedestrian flow simulation. The model is capable of describing macroscopic phenomena such as forward moving and dispersion of pedestrian flow. In addition, by varying coefficients of the model, some microscopic phenomena such as route/direction choice behaviors can be replicated. To solve the model, a high-order compact scheme with the alternating direction implicit method is applied. Numerical results validated both the model and the numerical method.

The model formulation in the paper only accounts for the distribution of the waiting time. In our future study, the probability distribution of jump length will be considered to further enhance the validity of the model. To make the model more practically applicable, we also plan to incorporate bi-direction flow and more realistic boundary conditions, such as input and output between platform and trains in platform.

#### Acknowledgment

This work is supported by Beijing Municipal Natural Science Foundation (Grant no. 8092026).

#### References

- F. Weifeng, Y. Lizhong, and F. Weicheng, “Simulation of bi-direction pedestrian movement using a cellular automata model,”
*Physica A*, vol. 321, no. 3-4, pp. 633–640, 2003. View at: Publisher Site | Google Scholar | Zentralblatt MATH - W. G. Weng, T. Chen, H. Y. Yuan, and W. C. Fan, “Cellular automaton simulation of pedestrian counter flow with different walk velocities,”
*Physical Review E*, vol. 74, no. 3, Article ID 036102, 7 pages, 2006. View at: Publisher Site | Google Scholar - V. J. Blue and J. L. Adler, “Cellular automata microsimulation for modeling bi-directional pedestrian walkways,”
*Transportation Research Part B*, vol. 35, no. 3, pp. 293–312, 2001. View at: Publisher Site | Google Scholar - Y. F. Yu and W. G. Song, “Cellular automaton simulation of pedestrian counter flow considering the surrounding environment,”
*Physical Review E*, vol. 75, no. 4, Article ID 046112, 8 pages, 2007. View at: Publisher Site | Google Scholar - L. Z. Yang, J. Li, and S. B. Liu, “Simulation of pedestrian counter-flow with right-moving preference,”
*Physica A*, vol. 387, no. 13, pp. 3281–3289, 2008. View at: Publisher Site | Google Scholar - T. Nagatani, “Freezing transition in bi-directional CA model for facing pedestrian traffic,”
*Physics Letters, Section A*, vol. 373, no. 33, pp. 2917–2921, 2009. View at: Publisher Site | Google Scholar | Zentralblatt MATH - A. Varas, M. D. Cornejo, D. Mainemer et al., “Cellular automaton model for evacuation process with obstacles,”
*Physica A*, vol. 382, no. 2, pp. 631–642, 2007. View at: Publisher Site | Google Scholar - M. Muramatsu, T. Irie, and T. Nagatani, “Jamming transition in pedestrian counter flow,”
*Physica A*, vol. 267, no. 3, pp. 487–498, 1999. View at: Publisher Site | Google Scholar - M. Muramatsu and T. Nagatani, “Jamming transition of pedestrian traffic at a crossing with open boundaries,”
*Physica A*, vol. 286, no. 1, pp. 377–390, 2000. View at: Publisher Site | Google Scholar | Zentralblatt MATH - Y. Tajima, K. Takimoto, and T. Nagatani, “Scaling of pedestrian channel flow with a bottleneck,”
*Physica A*, vol. 294, no. 1-2, pp. 257–268, 2001. View at: Publisher Site | Google Scholar | Zentralblatt MATH - Y. Tajima and T. Nagatani, “Clogging transition of pedestrian flow in T-shaped channel,”
*Physica A*, vol. 303, no. 1-2, pp. 239–250, 2002. View at: Publisher Site | Google Scholar | Zentralblatt MATH - R. Jiang and Q. S. Wu, “The moving behavior of a large object in the crowds in a narrow channel,”
*Physica A*, vol. 364, pp. 457–463, 2006. View at: Publisher Site | Google Scholar - D. Helbing and P. Molnár, “Social force model for pedestrian dynamics,”
*Physical Review E*, vol. 51, no. 5, pp. 4282–4286, 1995. View at: Publisher Site | Google Scholar - W. J. Yu, R. Chen, L. Y. Dong, and S. Q. Dai, “Centrifugal force model for pedestrian dynamics,”
*Physical Review E*, vol. 72, no. 2, Article ID 026112, 7 pages, 2005. View at: Google Scholar - D. Yanagisawa and K. Nishinari, “Mean-field theory for pedestrian outflow through an exit,”
*Physical Review E*, vol. 76, no. 6, Article ID 061117, 9 pages, 2007. View at: Publisher Site | Google Scholar - H. J. Huang and R. Y. Guo, “Static floor field and exit choice for pedestrian evacuation in rooms with internal obstacles and multiple exits,”
*Physical Review E*, vol. 78, no. 2, Article ID 021131, 9 pages, 2008. View at: Publisher Site | Google Scholar - R. L. Hughes, “A continuum theory for the flow of pedestrians,”
*Transportation Research Part B*, vol. 36, no. 6, pp. 507–535, 2002. View at: Publisher Site | Google Scholar - R. M. Colombo and M. D. Rosini, “Pedestrian flows and non-classical shocks,”
*Mathematical Methods in the Applied Sciences*, vol. 28, no. 13, pp. 1553–1567, 2005. View at: Publisher Site | Google Scholar | Zentralblatt MATH - L. F. Henderson, “On the fluid mechanics of human crowd motion,”
*Transportation Research*, vol. 8, no. 6, pp. 509–515, 1974. View at: Google Scholar - D. Helbing, “A fluid-dynamic model for the movement of pedestrians,”
*Complex Systems*, vol. 6, pp. 391–415, 1992. View at: Google Scholar | Zentralblatt MATH - Y. Xia, S. C. Wong, and C. W. Shu, “Dynamic continuum pedestrian flow model with memory effect,”
*Physical Review E*, vol. 79, no. 6, Article ID 066113, 8 pages, 2009. View at: Publisher Site | Google Scholar - E. Barkai, R. Metzler, and J. Klafter, “From continuous time random walks to the fractional Fokker-Planck equation,”
*Physical Review E*, vol. 61, no. 1, pp. 132–138, 2000. View at: Publisher Site | Google Scholar - W. F. Spotz and G. F. Carey, “High-order compact scheme for the steady stream-function vorticity equations,”
*International Journal for Numerical Methods in Engineering*, vol. 38, no. 20, pp. 3497–3512, 1995. View at: Publisher Site | Google Scholar | Zentralblatt MATH - S. Karaa and J. Zhang, “High order ADI method for solving unsteady convection-diffusion problems,”
*Journal of Computational Physics*, vol. 198, no. 1, pp. 1–9, 2004. View at: Publisher Site | Google Scholar | Zentralblatt MATH

#### Copyright

Copyright © 2012 Hui Xiong et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.