1 Introduction

Previous studies showed that the pedestrian flow has self-organization characteristics from the macroscopic point of view (Lam et al., 2002; Seyfried et al., 2005; Fujiyama and Tyler, 2009; Iryo-Asano et al., 2015; Li et al., 2015; Jia et al., 2016; Tang et al., 2017). Typical self-organized phenomena of pedestrian flow include arch-like formation, bottleneck oscillation, lane formation, and stripe formation. The results of research on the self-organizing characteristics of pedestrian flow have great significance for evacuation analysis, passenger transport hub design, and traffic control.

Many researchers use discrete models, such as the cellular automaton model (CA) (Zhang et al., 2004; Liao and Liu, 2015) and the lattice gas model (Chen et al., 2009), to study the self-organizing phenomena of pedestrian flow. In CA, the factors influencing lane formation are: pedestrian walking habits under subconscious control (Yue et al., 2010; Li et al., 2017), pedestrian visual effect (Tajima et al., 2002), and the effect of prediction (Wang et al., 2012). The k-nearest-neighbors around pedestrians were considered from the point of the psychophysiological and surrounding environment (Ma et al., 2010).

Some researchers applied the continuous model to study the pedestrian self-organizing phenomenon. Helbing (1996; 2001) and Helbing et al. (2000) studied the oscillation and arch-like formation in the early social force model (SFM). The following behavior (a important factor of lane formation) under the panic condition was also studied by introducing a panic factor. They pointed out that the lane formation can be simulated even without assuming a preference for any side. They considered that the essential cause of lane formation should be the higher relative velocity of pedestrians, which contributes to the severity of physical contact in the opposite direction (Helbing et al., 2002). SFM can produce trail formation and create lines of pedestrians with the same direction (Helbing and Molnár, 1995; Werner and Helbing, 2003). Therefore, SFM is suitable for studying the lane formation phenomenon.

However, some researchers pointed out that there are also some drawbacks for SFM for studying the lane formation phenomenon. Some researchers improved SFM by developing separate force models for collision avoidance between pedestrians. Collision avoidance behaviors were adopted to SFM by adding either a component to the desired velocity (Smith et al., 2009) or a new force to change the pedestrian trajectories (Pelechano et al., 2007). Heliövaara et al. (2012) presented a new combined model based on SFM, which alters the desired moving direction of the pedestrian and takes into account both collision avoidance and lane formation. Guo (2014) considered the influence of position factors (between the pedestrian and the entrance/exit boundary) on the counter flow and the lane formation. These studies analyzed the lane formation phenomenon of pedestrian flow from different perspectives. The modified models are all based on the fundamental SFM and consider just the different pedestrian behavior characteristics in the process of avoiding collisions.

In recent years, many researchers have concentrated on following behavior. For example, the pedestrian waiting probability was introduced into the lattice gas mode model to study the following behavior (Li et al., 2005; Weng et al., 2006; Yang et al., 2008). Helbing et al. (2005) analyzed following behavior in the panic and unfamiliar environment, which is a kind of herding behavior. Kuang et al. (2010) analyzed the effect of different levels of following behavior strength on the opposite pedestrian flow. Based on video observation, it is found that the following behavior is very common in a normal condition (see Fig. 1 for an example).

Fig. 1
figure 1

Following behaviors shown in video

Following behavior in the counterflow means that an individual tries to approach the others in the same direction to avoid conflicts with the opposing pedestrians. Following behavior reflects pedestrian self-organizing characteristics irrelevant to the level of socialization (Saloma et al., 2003). In the counterflow, with density increase, pedestrians would initiatively adjust their own walking strategy to avoid possible collisions. When pedestrian’s free movement is limited, group consciousness would affect the pedestrian walking strategy, and then pedestrians tend to follow the pedestrians ahead in the same direction. The kind of following behavior of the pedestrian is one of the important factors in the pedestrian self-organizing phenomenon.

The primary objective of this research is to study the proposed gravitation model of following behavior, which is affected by motion state (position and velocity) of pedestrians ahead, and its effects on lane formation. This paper is divided into two sections, making up a simulation on the pedestrian lane formation. In the first section we analyze the original SFM, and build a gravitation model that reflects pedestrian following behavior. In the second section we present several cases studying the following behavior of pedestrians.

2 Model

2.1 Analysis of the social force model

Denote v i , fwill, fi, ped, and fi, wal as the velocity of pedestrian i, his/her will force toward the target, interaction force between pedestrian i and other pedestrians, and interaction force between pedestrian i and the walls and boundaries, respectively. The original SFM for pedestrian traffic flow is (Helbing et al., 2000) (Fig. 2)

$${m_i}{{{\rm{d}}{v_i}} \over {{\rm{d}}t}} = {f_{{\rm{will}}}} + {f_{i,{\rm{ped}}}} + {f_{i,{\rm{wal}}}},$$
((1))
Fig. 2
figure 2

Force analysis of the pedestrian collision avoidance process in the original social force model (References to color refer to the online version of this figure)

where m i is the mass of pedestrian i. SFM considers that a pedestrian likes to move with a certain desired speed \(v_i^0\) in a certain direction \(e_i^0\), and therefore tends to correspondingly adapt his/her actual velocity v i within the so-called relaxation time τ i :

$${f_{{\rm{will}}}} = {m_i}{{v_i^0(t)e_i^0(t) - {v_i}(t)} \over {{\tau_i}}}{.}$$
((2))

The pedestrian motion speed is affected by not only the will force, but also the interaction forces, such as the repulsive force between two pedestrians i and j (f ij ) and the repulsive force between pedestrian i and the wall or boundary (f iw ). Thus,

$$\begin{array}{*{20}c}{{f_{i,{\rm{ped}}}} = \sum\limits_{j( \neq i)} {{f_{ij}}} \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad} \\ { = \sum\limits_{j( \neq i)} {\left\{ {[{A_i}\exp (({r_{ij}} - {d_{ij}})/{B_i}) + kg({r_{ij}} - {d_{ij}})]{n_{ij}}} \right.}} \\ {\left. { + \kappa g({r_{ij}} - {d_{ij}})\Delta {v_{ji}}{t_{ij}}} \right\},\quad \quad \quad \quad} \end{array}$$
((3))
$$\begin{array}{*{20}c}{{f_{i,{\rm{wal}}}} = \sum\limits_w {{f_{iw}}\quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \;}} \\ { = \sum\limits_w {\left\{ {[{A_i}\exp (({r_i} - {d_{iw}})/{B_i}) + kg({r_i} - {d_{iw}})]{n_{iw}}} \right.}} \\ {\left. { - \kappa g({r_i} - {d_{iw}})({v_i} \cdot {t_{iw}}){t_{iw}}} \right\},\quad \quad} \end{array}$$
((4))

where A i and B i are positive constants, r ij is the sum of the radii of pedestrians r i and r j , dij = ∥d i dj∥ denotes the distance between the centers of two pedestrians. n ij is the normalized vector pointing from pedestrian j to i, t i j is a tangential direction, and Δv ji = (v j v i ) · t ij . The function of g(x) equals zero if the pedestrians do not touch each other (d ij > r ij ), and equals the argument x otherwise. d iw denotes the distance between wall w and pedestrian i, n iw is the normalized vector pointing from wall w to pedestrian i, and t iw is a tangential direction.

We focus on the collision avoidance behavior of pedestrians and thus study mainly the interaction force between two pedestrians (f ij ). f ij can be divided into three parts:

$${f_{{\rm{avoidance}}}} = {A_i}\exp (({r_{ij}} - {d_{ij}})/{B_i}){n_{ij}},$$

and two contact forces

$$\begin{array}{*{20}c}{{f_{{\rm{extrusion}}}} = kg({r_{ij}} - {d_{ij}}){n_{ij}},\quad \quad} \\ {{f_{{\rm{friction}}}} = \kappa g({r_{ij}} - {d_{ij}})\Delta {v_{ji}}{t_{ij}}{.}} \end{array}$$

favoidance describes the psychological tendency of two pedestrians i and j to keep a velocity-dependent distance from each other. When d ij r ij , there exists a physical contact between pedestrians, i.e., fextrusion and ffriction.

Applying SFM to simulate the lane formation phenomenon, it is possible to capture the phenomenon from the macro perspective and reflect the awareness of pedestrians in protecting their own walking space. SFM can simulate the lane formation phenomenon, but it cannot simulate other behaviors, such as following behavior. As shown in Fig. 2, pedestrian i is moving from the right end to the left in the passage. The red area is the favoidance search range of pedestrian i; pedestrian j is within the search range and his/her movement direction is opposite to that of pedestrian i. Collision avoidance between pedestrians i and j relies on favoidance between i and j. favoidance can be divided into a horizontal component favoidance,x and a vertical component favoidance,y. Under the action of favoidance,x, pedestrian i begins to slow down. favoidance,y determines the direction of collision avoidance. The direction of favoidance,y is determined by the relative position between pedestrians, and the value of favoidance,y will affect the duration of the collision avoidance process.

We find that in SFM the direction of collision avoidance is determined by the relative position between pedestrians and the velocity of pedestrians. SFM does not consider the location or the motion states of other pedestrians in the same direction, so it is unable to reflect the effect of following behavior on the direction of collision avoidance.

2.2 Gravitation model

Considering the pedestrian overlapping problem, Lakoba et al. (2005) improved the original SFM by setting reasonable parameters in the model. They set a rigid space for one pedestrian with the maximum space compression ratio as SMAX=20%. In this study, the concept of the rigid space and the parameters are introduced, and a visual field factor is introduced to increase the search scope of the original model.

To simulate the following behavior, we propose a new force fi, gra named ‘gravitation’. Some studies (Löhner, 2010) pointed out that in SFM, the order of the magnitudes of the forces is

$${f_{{\rm{will}}}} < {f_{{\rm{avoidance}}}} < {f_{{\rm{ped}}}} < {f_{{\rm{wal}}}}{.}$$

We suppose that the gravitation and the will force have the same order. Thus,

$${f_{i,{\rm{gra}}}} = {f_{i,\max}}\sum\limits_{j \neq i} {{\beta_{ij,1}}} {\beta_{ij,2}}{\beta_{ij,3}}{\beta_{ij,4}}{\beta_{ij,5}}{\beta_{ij,6}}{n_{ij}},$$
((5))

where fi, max is the order of gravitation, and β ij,n (n = 1, 2,…, 6) are six non-dimensional parameters. fi,max and β ij,n will be discussed in the following.

The order of gravitation is the same as that of the will force. Thus, we define

$${f_{i,\max}} = \phi {m_i}{{v_i^0} \over {{\tau_i}}},$$
((6))

where ϕ is the revise parameter which will be discussed in Section 3.

First, we define the concept of the search vision scope in the gravitation model. The scope of pedestrian vision is determined by two parts: vision radius (l i ) and vision angle. If the distance between pedestrians i and j (d i j ) is larger than the vision radius of pedestrian i, or pedestrian j is not in the vision angle of pedestrian i, the gravitation of pedestrian j towards pedestrian i will not exist. Normally, a pedestrian is concerned only with the pedestrians and barrier in front of him/her, so we define the vision angle as π in the current direction of pedestrian i. If the angle between the current velocity of pedestrian i (v i ) and the vector from i to j (n ji ) is less than or equal to π/2, and d i j is less than or equal to l i , pedestrian j is within the vision of pedestrian i. Based on the above analysis, βij,1 and βij,2 are defined as

$${\beta_{ij,1}} = \left\{ {\begin{array}{*{20}c}{1,} & {{d_{ij}} \leq {l_i},} \\ {0,} & {{d_{ij}} > {l_i},} \end{array}} \right.$$
((7))
$${\beta_{ij,2}} = \left\{ {\begin{array}{*{20}c}{1,} & {{{{v_i} \cdot {n_{ji}}{d_{ij}}} \over {{v_i}{d_{ij}}}} > \cos {\pi \over 2},} \\ {0,} & {{\rm{otherwise}}{.}\quad \quad \;\;} \end{array}} \right.$$
((8))

We assume that pedestrians are more inclined to follow the people whose walking direction is closer to his/her own expected direction. The higher the proximity between the current speed direction of pedestrian j and the moving target direction \((e_i^0)\) of pedestrian i is, the more pedestrian i is willing to follow pedestrian j, and the larger the gravitation on pedestrian i is. If the angle \(\left( {\left\langle {e_i^0,{v_j}} \right\rangle} \right)\) between the movement direction of pedestrian j directly ahead of pedestrian i and the target direction of pedestrian i is larger than π/2, pedestrian i will not be attracted by pedestrian j. Based on the analysis above, βij,3 is defined as

$${\beta_{ij,3}} = \left\{ {\begin{array}{*{20}c}{0,\quad \quad \quad \quad \quad \quad \quad \quad} & {e_i^0 \cdot {v_j} < 0,} \\ {\cos \left( {\left\langle {e_i^0,{v_j}} \right\rangle} \right) = {{e_i^0 \cdot {v_j}} \over {e_i^0{v_j}}},} & {e_i^0 \cdot {v_j} \geq 0{.}} \end{array}} \right.$$
((9))

Pedestrians are more likely to follow the people whose speed is higher. It is conducive for the pedestrian to quickly get rid of walking dilemma. The higher the speed of pedestrian j (v j ), the larger the gravitation towards pedestrian i. The value of the gravitation between pedestrians has a certain limit; i.e., when v j is higher than the desired speed of pedestrian i\((v_i^0)\) the larger, the gravitation towards pedestrian i will be small. Thus, βij,4 is defined as

$${\beta_{ij,4}} = \left\{ {\begin{array}{*{20}c}{1,\quad \quad} & {{v_j} > v_i^0,} \\ {{v_j}/v_i^0,} & {{v_j} \leq v_i^0{.}} \end{array}} \right.$$
((10))

The gravitation is also affected by the distance between pedestrians just like the avoidance force. The smaller the distance between pedestrians j and i, the greater the impact of pedestrian j on pedestrian i. Because the scope of pedestrian’s vision is limited, in the limited scope, the smaller the distance between pedestrians j and i (d ij − (r i + r j )), the more the attention that pedestrian i will pay to pedestrian j. If the distance between pedestrians is larger than the vision range, the gravitation will not exist. Furthermore, when there is a physical contact between pedestrians i and j (d ij r i + r j ), the gravitation will not continue to increase. So, we define βij,5 as

$${\beta_{ij,5}} = \left\{ {\begin{array}{*{20}c}{1,\quad \quad \quad \quad \quad \quad \quad \quad} & {{d_{ij}} \leq {r_i} + {r_j},} \\ {\exp \left( { - {{{d_{ij}} - ({r_i} + {r_j})} \over {{C_i}}}} \right),} & {{d_{ij}} > {r_i} + {r_j}{.}} \end{array}} \right.$$
((11))

The following behavior occurs when the pedestrians with free speed run into obstacles; namely, \({v_i} < v_i^0\). Based on the analysis above, we define βij,6 as

$${\beta_{ij,6}} = \left\{ {\begin{array}{*{20}c}{0,} & {{v_i} \geq v_i^0,} \\ {1,} & {{v_i} < v_i^0{.}} \end{array}} \right.$$
((12))

Then, the gravitation model is added to Eq. (1), and the improved model is given as follows:

$${m_i}{{{\rm{d}}{v_i}} \over {{\rm{d}}t}} = {f_{{\rm{will}}}} + {f_{i,{\rm{ped}}}} + {f_{i,{\rm{wal}}}} + {f_{i,{\rm{gra}}}}{.}$$
((13))

3 Simulations and discussion

Simulations are implemented to investigate the impact of following behavior on the process of lane formation, conflict, number of lanes formed, and traffic efficiency. The parameters in the simulations are shown in Table. 1.

Table 1 Parameters in simulation

3.1 Impact of following behavior on the process of lane formation

To analyze the effect of following behavior on lane formation, lane formation comparisons before and after the introduction of the gravitation model are analyzed from the simulation snapshots. In the simulation, pedestrians are generated at the left and right ends of the passage at the arrival rate of 0.5 persons/(m · s). The simulation time is 2400 s, and the snapshots are taken during the last 1400 s. In the snapshots, the black circle stands for the pedestrian from the left end of the passage and the white circle for the pedestrian from the right end. The short line at the front of the circle represents the movement direction of the pedestrian, and the red short line at the front of the circle represents the gravitation direction on the pedestrian.

Fig. 3 shows the lane formation simulation considering the following behavior. As shown, the effect of gravitation is distinct during the weaving process of counter-pedestrian flow. When there is a potential conflict before a pedestrian, the pedestrian immediately slows down to avoid a collision, and the red short line appears; i.e., the gravitation demonstrates its effect. Under the action of gravitation, a pedestrian tends to move to the position of the pedestrian ahead with the same moving direction and follow the routine they left; thus, the collision is avoided. Fig. 4 compares the simulation without and with considering the following behavior. As shown in Fig. 4a, the lanes of pedestrian flow simulated are often broken up by the counter-pedestrian flow if the following behavior is not considered, and a traffic jam is locally emergent. If the following behavior is considered, the lane formation is more apparent, the congestion points are fewer, and the weaving of counter-pedestrian flow is more fluent (Fig. 4b).

Fig. 3
figure 3

Snapshots of the lane formation simulation at the time instances 1541 s (a) and 1543 s (b) with the following behavior considered. The red regions are magnified in the upper right of each figure (References to color refer to the online version of this figure)

Fig. 4
figure 4

Comparison of the snapshots of lane formation simulations without (a) and with (b) considering the following behavior (References to color refer to the online version of this figure)

3.2 Impact of following behavior on the conflict between pedestrians

To further analyze the effect of the following behavior on lane formation, the number of conflicts is counted during the simulation run. In some studies, the conflict is defined as a physical contact between opposite pedestrians. Although in SFM, pedestrians usually do not contact physically because of the existence of the repulsive force, their movement behaviors are affected. The conflict in the study is defined as the case that the distance between two opposite pedestrians which will conflict in non-congested pedestrian flow is less than 5 cm. The relative position where pedestrians conflict is defined as the level of conflict (Fig. 5). The smaller the relative position parameter l i j , the more intense the conflict.

Fig. 5
figure 5

Illustration of the relative position parameter l ij reflecting the degree of conflict

In the simulation, to study the conflict levels under different degrees of congestion, several arrival rates are set: 0.250, 0.375, and 0.500 persons/(m · s). The simulations of SFM and SFM with gravitation considered are each run for 140 s and 200 times, and the average number of conflicts is calculated (Fig. 6). In Fig. 6a, the arrival rate of the free flow is 0.25 persons/(m · s), and pedestrians walk at their expected speed; therefore, there is almost no following behavior and there is no obvious difference between the number of conflicts with and without considering the following behavior. When the arrival rate increases to 0.375 and 0.500 persons/(m · s), although the number of conflicts is increasing, SFM with following behavior considered plays clearly a role in reducing the number of conflicts in comparison to SFM without following behavior (Figs. 6b and 6c). When λ = 0.5 persons/(m · s), SFM considering following behavior reduces the number of conflicts in total by 19% in comparison to SFM. In particular, the intense conflicts are reduced by 29.2% in the case of l ij < 0.1 m (Fig. 6c).

Fig. 6
figure 6

The relationship between the number of conflicts and the relative position parameter l i j obtained by SFM and SFM with gravitation simulations when the pedestrian arrival rate λ=0.250 persons/(m·s) (a), λ=0.375 persons/(m·s) (b), and λ=0.500 persons/(m·s) (c)

3.3 Impact of following behavior on the number of lanes formed

The results observed in Ma et al. (2010) indicate that the number of lanes is relatively constant, i.e., about 4–5 for the whole observation time. In that study, the scenario of lane formation in pedestrian flow is as follows: the region is 8 m × 8 m and the bidirectional pedestrian density is in the range of 0.83–1.28 persons/m2. In this section, the simulation scenario is modeled with similar parameters of the observed pedestrian flow. Five hundred and eighty snapshots are captured and the distribution of the number of lanes formed is obtained.

Fig. 7 is a comparison of the snapshots of lane formation without and with the consideration of following behavior. As shown, the results of simulation without considering following behavior are apparently different from those of the observed scenario, and the numbers of lanes counted from the simulation are between 5 and 8. The results of simulation considering following behavior are closer to those of the observed scenario, with the number of lanes about 4 or 5. Fig. 8 is a comparison of the distribution of the numbers of lanes formed without and with the consideration of following behavior. The results show that when considering following behavior, during most of the time the number of lanes keeps at 4 or 5 (66% of all the samples). However, when not considering the following behavior, the range of the number of lanes is even larger (5 lanes account for 31%, 6 lanes account for 24%, 7 lanes account for 24%, and 8 lanes account for 17% of all the samples). Accordingly, we can find that following behavior can make the pedestrian flow more steady.

Fig. 7
figure 7

Snapshots of lane formation simulation in pedestrian crossing counter flow based on the model without (a) and with (b) considering the following behavior

Fig. 8
figure 8

Distributions of the numbers of lanes formed without (a) and with (b) considering the following behavior

3.4 Impact of following behavior on traffic efficiency of the channel

To study the effect of following behavior on pedestrian traffic efficiency, the relationship between pedestrian speed and density is drawn for the SFM models and compared with that from empirical data (Older, 1968; Weidmann, 1993) and the field data from our group (Fig. 1). In the simulation, the scenario size is 8 m (width) × 40 m (length), and pedestrians enter the passage at the same arrival rate from both ends. Different revise parameters of following behavior ϕ are input in the model, and the results are shown in Fig. 9. According to Fig. 9, when the following behavior is not modeled, the traffic efficiency is less than that from empirical data. When ϕ = 0.2, the traffic efficiency approaches that from empirical data. The traffic efficiency increases with the increase of the revise parameter of following behavior. This indicates that the following behavior is helpful for increasing the traffic efficiency of the passage, and the SFM model considering following behavior is more accurate. Because following behavior reflects the will of the pedestrian who follows the pedestrian ahead in the same moving direction, the more intense the will is, the quicker the movement direction of the pedestrian is adjusted, and the quicker the lane is formed. Thus, the traffic efficiency is increased.

Fig. 9
figure 9

Fundamental diagram in comparison with experimental data (References to color refer to the online version of this figure)

4 Conclusions

In the paper, a new pedestrian flow model with gravitation is proposed to simulate following behavior and the lane formation phenomenon. The gravitation is of the same order as the willing force and its direction is from the location of the current pedestrian to that of the followed pedestrian. Thus, a new pedestrian model is built based on gravitation. In our simulation, we analyze the differences of the macroeconomic phenomenon and the impact of following behavior on the conflict, the number of lanes formed, and the traffic efficiency with the classical model. It is found that following behavior is helpful in avoiding unnecessary conflicts and in easing the conflicts, and it is conducive to improving the efficiency of the passage. Other self-organizing phenomena like stripe formation and following behavior in the state of panic will be studied in the future.