1 Introduction

In recent years, with the development of urbanization, pedestrian flow becomes a topic issue in public security problems. The congested pedestrian flow not only causes much inconvenience, but also results in security risks for pedestrian. Pedestrian flow has attracted considerable attention in the field of physical science [16]. In order to gain a better understanding of pedestrian flow, there is a demand for realistic and quantitative models that can predict pedestrian movements and travel times for a given infrastructure and duplicate the phenomena observed in real situation. To achieve this goal, various pedestrian flow models including the social force models, the hydrodynamic models, the cellular automaton models, the lattice models and emergency and evacuation models were proposed by many scholars with different backgrounds. A series of experiments had been done for investigating the mechanism of pedestrian flow and identifying the influence factors. Many interesting nonequilibrium phenomena such as phase transition, density waves, freezing by heating and faster-is-slow effect in panic situations, sudden transitions from laminar to stop-and-go and turbulent flows had been observed. To investigate and represent the complex phenomena of pedestrian flow, investigations have been carried out by scholars using different methodologies [732], such as mathematical modeling and simulation, experimental studies. Compared with experimental studies, mathematical modeling and simulation have the ability to study pedestrian flow in general and get the analytical results easily. Dynamical models for pedestrian flow are useful for such studies, especially for analytical studies, because the motion of pedestrians is described by the dynamical equation of motion [27].

Pedestrian flow dynamics is similar to the traffic flow dynamics to some extent. Ivancevic and Reid [23] analyzed crowd turbulence from both classical and quantum perspective and found shock waves and soliton waves in crowd dynamics. The nonlinear waves in traffic dynamics have been investigated by using nonlinear analysis  [3341]. Kerner et al. [33] had found the single-pulse density waves in the numerical simulation with the hydrodynamic model. Kurtze and Hong [34] had shown that the single-pulse density wave is a soliton. Komatsu and Sasa [35] derived MKdV equation from optimal velocity model to describe the traffic jams in terms of the kink density waves. In pedestrian flow theory, based on the two-dimensional optimal velocity model proposed by Nakayama et al. [27, 28], Tian et al. [19] proposed a new lattice hydrodynamic model for bidirectional pedestrian flow and derived the MKdV equations to describe the density wave of pedestrian congestion. Considering the pedestrian’s visual field effects, Kuang et al. [13] proposed an extended lattice hydrodynamic model for bidirectional pedestrian flow and concluded that taking the pedestrian’s visual field effect into account can improve the stability of pedestrian flow dynamics.

Anticipation effect, which is considered as pedestrian’s ability of avoiding collisions by forecasting other pedestrians movement, adjusting their velocity according to the observed surrounding situations and estimating their walking behavior, plays an important role in stabilizing and destabilizing the pedestrian flow. Heavy jamming and confusion would occur if no one should anticipate, especially under crowded situations. In Ref. [42], considering the anticipation as the ability of avoiding collisions with other pedestrians, Suma et al. proposed the anticipation floor field (AFF) as an extension of the floor field (FF) model and found that strength and range of anticipation significantly affect pedestrian dynamics. However, the effect of pedestrian’s anticipation on the formation mechanism of density wave of pedestrian jam has not been considered. In this paper, taking the effect of pedestrian’s anticipation into account, an extended lattice hydrodynamic model for bidirectional pedestrian flow with passing is proposed.

The paper is organized as follows. In Sect. 2, the model is formulated by considering anticipation effect and passing effect. The stability analysis is obtained by using linear stability analysis in Sect. 3. We can see the stability condition varies with the anticipation effect. In Sect. 4, the Burgers, KdV and MKdV equations are derived in three types of pedestrian flow regions by using nonlinear analysis. Numerical simulations are given in Sect. 5.

Fig. 1
figure 1

The schematic diagram of the moving direction of the pedestrians when \(n\) sites in front of site \((j,m)\) are considered. The circle denotes the position of site, and \(E, W, N\) and \(S\) represent the east-bound, west-bound, north-bound, and south-bound pedestrians, respectively.

2 Model

In this section, considering the effect of pedestrian’s anticipation in pedestrian dynamics with passing, an extended lattice hydrodynamic model for bidirectional pedestrian flow will be established. As mentioned in Ref. [19], in the two-dimensional bidirectional pedestrian flow, four types of pedestrians are considered: east-bound pedestrians move freely only to the positive \(x\) direction \(x+\), west-bound only to the negative \(x\) direction \(x-\), north-bound only to the positive \(y\) direction \(y+\), and south-bound only to the negative \(y\) direction \(y-\). Figure 1 is the illustration of the two-dimensional bidirectional pedestrian flow.

The continuity equations of the east-bound, west-bound, north-bound and south-bound pedestrians are given as follows [19]

$$\begin{aligned}&\partial _{t}\rho _{x+}(j,m,t)+cc_{1}\rho _{0}[Q_{x+}(j,m,t)\nonumber \\&\quad -Q_{x+}(j-1,m,t)]=0,\end{aligned}$$
(1)
$$\begin{aligned}&\partial _{t}\rho _{x-}(j,m,t)+c(1-c_{1})\rho _{0}[Q_{x-}(j,m,t)\nonumber \\&\quad -Q_{x-}(j+1,m,t)]=0,\end{aligned}$$
(2)
$$\begin{aligned}&\partial _{t}\rho _{y+}(j,m,t)+(1-c)c_{2}\rho _{0}[Q_{y+}(j,m,t)\nonumber \\&\quad -Q_{y+}(j,m-1,t)]=0,\end{aligned}$$
(3)
$$\begin{aligned}&\partial _{t}\rho _{y-}(j,m,t)+(1-c)(1-c_{2})\rho _{0}[Q_{y-}(j,m,t)\nonumber \\&\quad -Q_{y-}(j,m+1,t)]=0, \end{aligned}$$
(4)

where \(\rho _{0}\) is the total average density, \(\rho _{x+}(x,y,t), \rho _{x-}(x,y,t), \rho _{y+}(x,y,t), \rho _{y-}(x,y,t)\) denote the density of east-bound, west-bound, north-bound and south-bound pedestrians at site \((x,y)\) at time \(t\), respectively, and \(Q_{x+}(x,y,t), Q_{x-}(x,y,t), Q_{y+}(x,y,t), Q_{y-}(x,y,t)\) represent the flux of east-bound, west-bound, north-bound and south-bound pedestrians at site \((x,y)\) at time \(t\), respectively. \(c\) is the proportion of east-bound and west-bound pedestrians in all pedestrians, \(c_{1}\) is the proportion of east-bound pedestrians in east-bound and west-bound pedestrians, and \(c_{2}\) is the proportion of north-bound pedestrians in north-bound and south-bound pedestrians.

In terms of Nagatani’s idea [25], the flux for each direction pedestrian is determined by the total optimal current with delay time \(\tau \), that is [19]

$$\begin{aligned} Q_{x+}(j,m,t+\tau )= & {} cc_{1}\rho _{0}V(\rho (j+1,m,t)),\end{aligned}$$
(5)
$$\begin{aligned} Q_{x-}(j,m,t+\tau )= & {} c(1-c_{1})\rho _{0}V(\rho (j-1,m,t)),\end{aligned}$$
(6)
$$\begin{aligned} Q_{y+}(j,m,t+\tau )= & {} (1-c)c_{2}\rho _{0}V(\rho (j,m+1,t)),\end{aligned}$$
(7)
$$\begin{aligned} Q_{y-}(j,m,t+\tau )= & {} (1-c)(1-c_{2})\rho _{0}V(\rho (j,m-1,t)).\nonumber \\ \end{aligned}$$
(8)

Here, \(V(\rho (j,m,t))\) is the optimal velocity function and adopted as in Ref.  [25], that is

$$\begin{aligned} V(\rho (j,m,t))= & {} \tanh \left( \frac{2}{\rho _{0}}-\frac{\rho (j,m,t)}{\rho _{0}^{2}}-\frac{1}{\rho _{c}}\right) \nonumber \\&+\tanh \left( \frac{1}{\rho _{c}}\right) . \end{aligned}$$
(9)

where \(\rho _{c}\) is the critical density and it is equal to the inverse of the safety distance [26].

Considering the effect of pedestrian’s anticipation on the pedestrian flow with passing, we extend the flux for each direction pedestrian based on Nagatani’s idea [43]

$$\begin{aligned} Q_{x+}(j,m,t+\tau )&= \,cc_{1}\rho _{0}V(\rho (j+1,m,t+\alpha \tau ))\nonumber \\&\quad +\,\lambda cc_{1}\rho _{0}[V(\rho (j+1,m,t+\alpha \tau ))\nonumber \\&\quad -\,V(\rho (j+2,m,t+\alpha \tau ))],\end{aligned}$$
(10)
$$\begin{aligned} Q_{x-}(j,m,t+\tau )&=c(1-c_{1})\rho _{0}V(\rho (j-1,m,t+\alpha \tau ))\nonumber \\&\quad +\,\lambda c(1\!-\!c_{1}) \!\rho _{0}[V(\rho (j\!-\!1,m,t\!+\!\alpha \tau ))\nonumber \\&\quad -\,V(\rho (j-2,m,t+\alpha \tau ))],\end{aligned}$$
(11)
$$\begin{aligned} Q_{y+}(j,m,t+\tau )&=(1-c)c_{2}\rho _{0}V(\rho (j,m+1,t+\alpha \tau ))\nonumber \\&\quad +\,\lambda (1-c) c_{2}\rho _{0}[V(\rho (j,m+1,t+\alpha \tau ))\nonumber \\&\quad -\,V(\rho (j,m+2,t+\alpha \tau ))],\end{aligned}$$
(12)
$$\begin{aligned} Q_{y-}(j,m,t+\tau )&=(1-c)(1-c_{2})\rho _{0}\nonumber \\&\quad \times \,V(\rho (j,m-1,t+\alpha \tau ))\nonumber \\&\quad +\,\lambda (1-c)(1-c_{2})\nonumber \\&\quad \times \,\rho _{0}[V(\rho (j,m-1,t+\alpha \tau ))\nonumber \\&\quad -\,V(\rho (j,m-2,t+\alpha \tau ))], \end{aligned}$$
(13)

where \(\lambda \) is the reaction coefficient to the passing effect and \(\alpha > 0\) represents anticipation walking behavior or the pedestrian’s forecast effect in a pedestrian dynamics. And the bigger value of \(\alpha \) corresponds to conscious pedestrian in the model.

Inserting Eqs. (10)–(13) into Eqs. (1)–(4) and using

$$\begin{aligned} \rho (j,m,t)= & {} \rho _{x+}(j,m,t)+\rho _{x-}(j,m,t)\\&+\rho _{y+}(j,m,t)+\rho _{y-}(j,m,t), \end{aligned}$$

the total density equation is obtained as

$$\begin{aligned}&\rho (j,m,t+2\tau )-\rho (j,m,t+\tau ) +\tau (cc_{1}\rho _{0})^2\nonumber \\&\quad [V(\rho (j+1,m,t+\alpha \tau ))-V(\rho (j,m,t+\alpha \tau ))]\nonumber \\&\quad +\tau [c(1-c_{1})\rho _{0}]^2[V(\rho (j-1,m,t+\alpha \tau ))\nonumber \\&\quad -V(\rho (j,m,t+\alpha \tau ))] +\tau [(1-c)c_{2}\rho _{0}]^2\nonumber \\&\quad [V(\rho (j,m+1,t+\alpha \tau ))-V(\rho (j,m,t+\alpha \tau ))]\nonumber \\&\quad +\tau [(1-c)(1-c_{2})\rho _{0}]^2\nonumber \\&\quad [V(\rho (j,m-1,t+\alpha \tau ))-V(\rho (j,m,t+\alpha \tau ))]\nonumber \\&\quad +\lambda \tau (cc_{1}\rho _{0})^2 [2V(\rho (j+1,m,t+\alpha \tau ))\nonumber \\&\quad -V(\rho (j+2,m,t+\alpha \tau ))-V(\rho (j,m,t+\alpha \tau ))]\nonumber \\&\quad +\lambda \tau [c(1-c_{1})\rho _{0}]^2 [2V(\rho (j-1,m,t+\alpha \tau ))\nonumber \\&\quad -V(\rho (j-2,m,t+\alpha \tau ))-V(\rho (j,m,t+\alpha \tau ))]\nonumber \\&\quad +\lambda \tau [(1-c)c_{2}\rho _{0}]^2 [2V(\rho (j,m+1,t+\alpha \tau ))\nonumber \\&\quad -V(\rho (j,m+2,t+\alpha \tau ))-V(\rho (j,m,t+\alpha \tau ))]\nonumber \\&\quad +\lambda \tau [(1\!-\!c)(1\!-\!c_{2})\rho _{0}]^2 [2V(\rho (j,m\!-\!1,t\!+\!\alpha \tau ))\nonumber \\&\quad -V(\rho (j,m\!-\!2,t\!+\!\alpha \tau ))\!-\!V\!(\rho (j,m,t\!+\!\alpha \tau ))]\!=\!0.\nonumber \\ \end{aligned}$$
(14)

3 linear stability analysis

We apply the linear stability theory to analyze the pedestrian flow model described by Eq. (14). Supposing the pedestrian running with the uniform density \(\rho _{0}\) and optimal velocity \(V(\rho _{0})\) along four directions, then we get the uniform steady-state solution \(\rho (j,m,t)\) for Eq. (14)

$$\begin{aligned} \begin{aligned}&\displaystyle \rho (j,m,t)=\rho _{0},\\&\displaystyle v_{x+}(j,m,t)=v_{x-}(j,m,t)\\&\displaystyle =v_{y+}(j,m,t)=v_{y-}(j,m,t)=V(\rho _{0}). \end{aligned} \end{aligned}$$
(15)

Assuming \(y(j,m,t)\) be a small deviation from the uniform steady solution, that is

$$\begin{aligned} \rho (j,m,t)=\rho _{0}+y(j,m,t). \end{aligned}$$
(16)

Inserting it and Eq. (15) into Eq. (14), then the linearized equation for \(y(j,m,t)\) is obtained from Eq. (14)

$$\begin{aligned}&y(j,m,t+2\tau )-y(j,m,t+\tau )\nonumber \\&\quad +\tau (cc_{1}\rho _{0})^2V'(\rho _{0})[y(j+1,m,t+\alpha \tau )\nonumber \\&\quad -y(j,m,t+\alpha \tau )]\nonumber \\&\quad +\tau [c(1-c_{1})\rho _{0}]^2V'(\rho _{0})[y(j-1,m,t+\alpha \tau )\nonumber \\&\quad -y(j,m,t+\alpha \tau )]\nonumber \\&\quad +\tau [(1-c)c_{2}\rho _{0}]^2V'(\rho _{0})[y(j,m+1,t+\alpha \tau )\nonumber \\&\quad -y(j,m,t+\alpha \tau )]\nonumber \\&\quad +\tau [(1-c)(1-c_{2})\rho _{0}]^2V'(\rho _{0})\nonumber \\&[y(j,m-1,t+\alpha \tau )-y(j,m,t+\alpha \tau )]\nonumber \\&\quad +\lambda \tau (cc_{1}\rho _{0})^2V'(\rho _{0})\nonumber \\&[2y(j+1,m,t+\alpha \tau )-y(j+2,m,t+\alpha \tau )\nonumber \\&\quad -y(j,m,t+\alpha \tau )]\nonumber \\&\quad +\lambda \tau [c(1-c_{1})\rho _{0}]^2V'(\rho _{0})\nonumber \\&[2y(j-1,m,t+\alpha \tau )-y(j-2,m,t+\alpha \tau )\nonumber \\&\quad -y(j,m,t+\alpha \tau )]\nonumber \\&\quad +\lambda \tau [(1-c)c_{2}\rho _{0}]^2V'(\rho _{0})\nonumber \\&[2y(j,m+1,t+\alpha \tau )-y(j,m+2,t+\alpha \tau )\nonumber \\&\quad -y(j,m,t+\alpha \tau )]\nonumber \\&\quad +\lambda \tau [(1-c)(1-c_{2})\rho _{0}]^2V'(\rho _{0})\nonumber \\&[2y(j,m-1,t+\alpha \tau )-y(j,m-2,t+\alpha \tau )\nonumber \\&\quad -y(j,m,t+\alpha \tau )]\nonumber \\&=0, \end{aligned}$$
(17)

where \(V'(\rho _{0})\) is the derivative of optimal velocity function \(V(\rho )\) at point \(\rho =\rho _{0}\). Expand \(y(j,m,t)\propto \exp [ik(j+m)+zt]\) resulting in the following equation of \(z\)

Fig. 2
figure 2

Phase diagram in the \((\rho ,a)\) space with \(\rho _{0}=\rho _{c}=0.2, c=c_{1}=c_{2}=0.1\) for a different values of \(\alpha \); b different values of \(\lambda \).

$$\begin{aligned}&\text {e}^{2z\tau }-\text {e}^{z\tau }+\tau (cc_{1}\rho _{0})^2V'(\rho _{0})\text {e}^{\alpha \tau z}\left( \text {e}^{ik}-1\right) \nonumber \\&\quad +\tau [c(1-c_{1})\rho _{0}]^2V'(\rho _{0})\text {e}^{\alpha \tau z}\left( \text {e}^{-ik}-1\right) \nonumber \\&\quad +\tau [(1-c)c_{2}\rho _{0}]^2V'(\rho _{0})\text {e}^{\alpha \tau z}\left( \text {e}^{ik}-1\right) \nonumber \\&\quad +\tau [(1-c)(1-c_{2})\rho _{0}]^2V'(\rho _{0})\text {e}^{\alpha \tau z}\left( \text {e}^{-ik}-1\right) \nonumber \\&\quad +\lambda \tau (cc_{1}\rho _{0})^2V'(\rho _{0})\text {e}^{\alpha \tau z}\left( 2\text {e}^{ik}-\text {e}^{2ik}-1\right) \nonumber \\&\quad +\lambda \tau [c(1\!-c_{1})\rho _{0}]^2V'(\rho _{0})\text {e}^{\alpha \tau z}\left( 2\text {e}^{-ik}-\text {e}^{-2ik}\!-1\!\right) \nonumber \\&\quad +\lambda \tau [(1-c)c_{2}\rho _{0}]^2V'(\rho _{0})\text {e}^{\alpha \tau z}\left( 2\text {e}^{ik}-\text {e}^{2ik}-1\right) \nonumber \\&\quad +\lambda \tau [(1-c)(1-c_{2})\rho _{0}]^2V'(\rho _{0})\text {e}^{\alpha \tau z}\nonumber \\&\quad \left( 2\text {e}^{-ik}-\text {e}^{-2ik}-1\right) =0, \end{aligned}$$
(18)

where \(z = z_{1}(ik)+z_{2}(ik)^{2} +\cdots \) and inserts it into Eq. (18), the first- and second-order terms of \(ik\) are obtained

$$\begin{aligned} z_{1}= & {} - h\rho _{0}^2V'(\rho _{0}),\end{aligned}$$
(19)
$$\begin{aligned} z_{2}= & {} -\frac{3\tau z_{1}^{2}}{2}-\frac{f\rho _{0}^2V'(\rho _{0})}{2}-\alpha \tau z_{1}^{2}+\lambda f\rho _{0}^2V'(\rho _{0}),\nonumber \\ \end{aligned}$$
(20)

where

$$\begin{aligned} \begin{aligned} f=&(cc_{1})^2+[c(1-c_{1})]^2+[(1-c)c_{2}]^2\\&+[(1-c)(1-c_{2})]^2, \\h=&(cc_{1})^2-[c(1-c_{1})]^2+[(1-c)c_{2}]^2\\&-[(1-c)(1-c_{2})]^2. \end{aligned} \end{aligned}$$

If \(z_{2}>0\), the uniform steady state becomes stable, while the uniform steady state becomes unstable if \(z_{2}<0\). Then the stable condition for pedestrian flow is

$$\begin{aligned} \tau < \frac{(2\lambda -1)f}{(3-2\alpha )h^{2}\rho _{0}^2V'(\rho _{0})}. \end{aligned}$$
(21)

Moreover, for small disturbances of long wave length, the neutral stability condition is given by

$$\begin{aligned} \tau _{s}=\frac{(2\lambda -1)f}{(3-2\alpha )h^{2}\rho _{0}^2V'(\rho _{0})}. \end{aligned}$$
(22)

When \(c_{1}=c_{2}=0.5\), then \(h=0\), there is a singularity irrespective of the value of \(c\), which reflects the phase transition never occurs without the unstable region.

The coexisting curves (dash lines), neutral stability lines (solid lines) and critical points in the space \((\rho ,a)\) (\(a=1/\tau \)) for different values of \(\lambda \) and \(\alpha \) with \(\rho _{0}=\rho _{c}=0.2, c=c_{1}=c_{2}=0.1\) are shown in Fig. 2, respectively. The coexisting curve and the neutral stability line are similar to the conventional gas–liquid phase transition. Three regions in the pedestrian flow are distinguished: the unstable region which is within the neutral stability line, the metastable region which is between the neutral stability line, and the coexisting curve and the stable region which is out of the coexisting curve. When \(\lambda =0, \alpha =0\) in Fig. 2b, it is agreed with the result in Ref. [19]. From Fig. 2a, it is shown that the pedestrian flow becomes stable with the increase of \(\alpha \), which means that pedestrian jam can be suppressed efficiently by enhancing the anticipation of pedestrian. Without the anticipation which as shown in Fig. 2b, the passing effect will aggravate the pedestrian jam with the increasing of \(\lambda \).

4 Nonlinear analysis

In this section, by using the reductive perturbation method introduced in Ref. [35], we derive the nonlinear equations in the stable, metastable and unstable regions, respectively. We introduce slow scales for space variable \(j, m\) and time variable \(t\) and define slow variables \(X\) and \(T\) for \( 0 <\varepsilon \ll 1\)  [44]

$$\begin{aligned} X =\varepsilon (j+m+bt),\qquad T =\varepsilon ^{s}t \end{aligned}$$
(23)

where \(b\) is a constant to be determined. Assuming

$$\begin{aligned} \rho (j,m,t) = \rho _{0} +\varepsilon ^{l} R(X,T). \end{aligned}$$
(24)

The values of the index \(s,l\) represent different phases of the pedestrian flow. Three groups of values \(s = 2,l = 1; s = 3,l = 2; s = 3,l = 1\) are corresponding to the stable pedestrian flow region, metastable pedestrian flow region and unstable pedestrian flow, respectively.

By Substituting Eqs. (23)–(24) into Eq. (14) and expanding to the \(s+l+1\) order of \(\varepsilon \), we obtain the following nonlinear partial differential equation

$$\begin{aligned}&\varepsilon ^{l+1}\Big (b+h\rho _{0}^2V'(\rho _{0})\Big )\partial _{X}R\nonumber \\&\quad +\, \varepsilon ^{l+2}\Big (\frac{3b^{2}\tau }{2}+\frac{f+2bh\alpha \tau +\lambda P_{1}}{2}\rho _{0}^2V'(\rho _{0})\Big )\partial _{X}^{2}R\nonumber \\&\quad +\, \varepsilon ^{l+3}\Big (\frac{P_{2}+\lambda P_{3}}{6}\rho _{0}^2V'(\rho _{0})+\frac{7b^{3}\tau ^{2}}{6}\Big )\partial _{X}^{3}R\nonumber \\&\quad +\, \varepsilon ^{l+4}\Big (\frac{5b^{4}\tau ^{3}}{8}+\frac{P_{4}+\lambda P_{5}}{24}\rho _{0}^2V'(\rho _{0})\Big )\partial _{X}^{4}R\nonumber \\&\quad +\, \varepsilon ^{2l+1}\frac{h}{2}\rho _{0}^2V''(\rho _{0})\partial _{X}R^{2}\nonumber \\&\quad +\, \varepsilon ^{2l+2}\frac{f+2bh\alpha \tau +\lambda P_{1}}{4}\rho _{0}^2 V''(\rho _{0})\partial _{X}^{2}R^{2}\nonumber \\&\quad +\, \varepsilon ^{3l+1}\frac{h}{6}\rho _{0}^2V'''(\rho _{0})\partial _{X}R^{3}\nonumber \\&\quad +\, \varepsilon ^{3l+2}\frac{f+2bh\alpha \tau +\lambda P_{1}}{12}\rho _{0}^2V'''(\rho _{0})\partial _{X}^{2}R^{3}\nonumber \\&\quad +\, \varepsilon ^{s+l}\partial _{T}R +\varepsilon ^{s+l+1}(3b\tau \nonumber \\&\quad +\, h\alpha \tau \rho _{0}^2V'(\rho _{0}))\partial _{X}\partial _{T}R=0. \end{aligned}$$
(25)

Here

$$\begin{aligned} P_{1}= & {} (cc_{1})^{2}[2(1+b\alpha \tau )^{2}-(2+b\alpha \tau )^{2}-(b\alpha \tau )^{2}]\\&+[c(1-c_{1})]^{2}[2(-1+b\alpha \tau )^{2}\\&-(-2+b\alpha \tau )^{2}-(b\alpha \tau )^{2}] \\&+[(1-c)c_{2}]^{2}[2(1+b\alpha \tau )^{2}\\&-(2+b\alpha \tau )^{2}-(b\alpha \tau )^{2}] \\&+[(1-c)(1-c_{2})]^{2}[2(-1+b\alpha \tau )^{2}\\&-(-2+b\alpha \tau )^{2} -(b\alpha \tau )^{2}],\\ P_{2}= & {} (cc_{1})^{2}[(1+b\alpha \tau )^{3}-(b\alpha \tau )^{3}] \\&+[c(1-c_{1})]^{2}[(-1+b\alpha \tau )^{3}-(b\alpha \tau )^{3}] \\&+[(1-c)c_{2}]^{2}[(1+b\alpha \tau )^{3}-(b\alpha \tau )^{3}] \\&+[(1-c)(1-c_{2})]^{2}[(-1+b\alpha \tau )^{3}-(b\alpha \tau )^{3}],\\ P_{3}= & {} (cc_{1})^{2}[2(1+b\alpha \tau )^{3}-(2+b\alpha \tau )^{3}-(b\alpha \tau )^{3}] \\&+[c(1-c_{1})]^{2}[2(-1+b\alpha \tau )^{3}\\&-(-2+b\alpha \tau )^{3}-(b\alpha \tau )^{3}] \\&+[(1-c)c_{2}]^{2}[2(1+b\alpha \tau )^{3}\\&-(2+b\alpha \tau )^{3}-(b\alpha \tau )^{3}] \\&+[(1-c)(1-c_{2})]^{2}[2(-1+b\alpha \tau )^{3}\\&-(-2+b\alpha \tau )^{3} -(b\alpha \tau )^{3}],\\ P_{4}= & {} (cc_{1})^{2}[(1+b\alpha \tau )^{4}-(b\alpha \tau )^{4}] \\&+[c(1-c_{1})]^{2}[(-1+b\alpha \tau )^{4}-(b\alpha \tau )^{4}] \\&+[(1-c)c_{2}]^{2}[(1+b\alpha \tau )^{4}-(b\alpha \tau )^{4}] \\&+[(1-c)(1-c_{2})]^{2}[(-1+b\alpha \tau )^{4}-(b\alpha \tau )^{4}].\\ P_{5}= & {} (cc_{1})^{2}[2(1+b\alpha \tau )^{4}-(2+b\alpha \tau )^{4}-(b\alpha \tau )^{4}] \\&+[c(1-c_{1})]^{2}[2(-1+b\alpha \tau )^{4}\\&-(-2+b\alpha \tau )^{4}-(b\alpha \tau )^{4}] \\&+[(1-c)c_{2}]^{2}[2(1+b\alpha \tau )^{4}\\&-(2+b\alpha \tau )^{4}-(b\alpha \tau )^{4}] \\&+[(1-c)(1-c_{2})]^{2}[2(-1+b\alpha \tau )^{4}\\&-(-2+b\alpha \tau )^{4} -(b\alpha \tau )^{4}]. \end{aligned}$$

Firstly, we discuss the triangular shock waves of the pedestrian flow in the stable region. The nonlinear partial differential equation is obtained from Eq. (25) for \(s= 2,l = 1\).

$$\begin{aligned} \begin{aligned}&\displaystyle \varepsilon ^{2}\Big (b+h\rho _{0}^2V'(\rho _{0})\Big )\partial _{X}R\\&\displaystyle \quad +\varepsilon ^{3}\big [\partial _{T}R+\frac{h}{2}\rho _{0}^2V''(\rho _{0})\partial _{X}R^{2}+\Big (\frac{3b^{2}\tau }{2}\\&\displaystyle \quad +\frac{f+2bh\alpha \tau +\lambda P_{1}}{2}\rho _{0}^2V'(\rho _{0})\Big )\partial _{X}^{2}R\big ]=0. \end{aligned} \end{aligned}$$
(26)

Taking \(b = -h\rho _{0}^2V'(\rho _{0})\), the second-order terms of \(\varepsilon \) are eliminated in Eq. (26). We obtain the following partial differential equation

$$\begin{aligned}&\partial _{T}R+h\rho _{0}^2V''(\rho _{0})R\partial _{X}R\nonumber \\&\quad =\left[ \!\frac{\!-f\!-\!2bh\alpha \tau \!-\lambda P_{1}\!-\!3h^{2}\rho _{0}^2V'(\rho _{0})\tau }{2}\rho _{0}^2V'(\rho _{0})\!\!\right] \partial _{X}^{2}R.\nonumber \\ \end{aligned}$$
(27)

In accordance with criterion Eq. (22), the coefficient of the second derivative of Eq. (27) is positive in the stable region. Therefore, in the stable region, Eq. (27) is just the Burgers equation. If \(R(X,0)\) is of compact support, then the solution \(R(X,T)\) of Eq. (27) is

$$\begin{aligned}&R(X,T)= \frac{1}{|h\rho _{0}^2V''(\rho _{0})|T}\left[ X-\frac{\eta _{n+1}+\eta _{n}}{2}\right] \nonumber \\&\quad -\frac{\eta _{n+1}-\eta _{n}}{2|h\rho _{0}^2V''(\rho _{0})|T}\nonumber \\&\quad \times \tanh \bigg [\big (\frac{-f-2bh\alpha \tau -\lambda P_{1}-3h^{2}\rho _{0}^2V'(\rho _{0})\tau }{8}\nonumber \\&\quad \rho _{0}^2V'(\rho _{0})\big )\frac{(\eta _{n+1}-\eta _{n})(X-\xi _{n})}{|h\rho _{0}^2V''(\rho _{0})|T}\bigg ]. \end{aligned}$$
(28)

where \(\xi _{n}\) are the coordinates of the shock fronts and \(\eta _{n}\) are the coordinates of the intersections of the slopes with the \(x\)-axis \((n = 1,2,...,N)\). As \(O(\frac{1}{T}), R(X,T)\) decays to 0 when \(T\rightarrow +\infty \). That means any shock wave expressed by Eq. (28) in stable pedestrian flow region will evolve to a uniform flow when time is sufficiently large.

Secondly, we discuss the soliton waves of the pedestrian flow in the metastable region. The nonlinear partial differential equation is obtained from Eq. (25) for \(s = 3,l = 2\).

$$\begin{aligned}&\varepsilon ^{3}\Big (b+h\rho _{0}^2V'(\rho _{0})\Big )\partial _{X}R \nonumber \\&\quad +\varepsilon ^{4}\Big (\frac{3b^{2}\tau }{2}+\frac{f+2bh\alpha \tau +\lambda P_{1}}{2}\rho _{0}^2V'(\rho _{0}\Big )\partial _{X}^{2}R \nonumber \\&\quad +\varepsilon ^{5}\Big [\partial _{T}R+\frac{h}{2}\rho _{0}^2V''(\rho _{0})\partial _{X}R^{2} \nonumber \\&\quad +\Big (\frac{P_{2}+\lambda P_{3}}{6}\rho _{0}^2V'(\rho _{0})+\frac{7b^{3}\tau ^{2}}{6}\Big )\partial _{X}^{3}R\Big ] \nonumber \\&\quad +\varepsilon ^{6}\Big [\frac{f+2bh\alpha \tau +\lambda P_{1}}{4}\rho _{0}^2V''(\rho _{0})\partial _{X}^{2}R^{2} \nonumber \\&\quad +(3b\tau +h\alpha \tau \rho _{0}^{2}V'(\rho _{0}))\partial _{X}\partial _{T}R \nonumber \\&\quad +\Big (\frac{5b^{4}\tau ^{3}}{8}+\frac{P_{4}+\lambda P_{5}}{24}\rho _{0}^2V'(\rho _{0})\Big )\partial _{X}^{4}R\Big ]=0.\nonumber \\ \end{aligned}$$
(29)

Near the neutral stability line in the unstable region, let

$$\begin{aligned} \frac{\tau }{\tau _{s}}=1-\varepsilon ^{2}. \end{aligned}$$
(30)

By taking \(b=-h\rho _{0}^2V_{0}'(\rho _{0})\), the third- and fourth-order terms of \(\varepsilon \) are eliminated from Eqs. (29), and Eq. (29) can be rewritten as

$$\begin{aligned} \begin{aligned}&\displaystyle \varepsilon ^{5}\left[ \partial _{T}R-f_{1}\partial ^{3}_{X}R-f_{2}R\partial _{X}R\right] \\&\displaystyle \quad +\varepsilon ^{6}\left[ -f_{3}\partial ^{2}_{X}R+f_{4}\partial ^{2}_{X}R^{2}+f_{5}\partial ^{4}_{X}R\right] =0 \end{aligned} \end{aligned}$$
(31)

where

$$\begin{aligned} f_{1}= & {} \left[ \frac{7(2\lambda -1)^{2}f^{2}}{6(3-2\alpha )^{2}h}-\frac{P_{2}+\lambda P_{3}}{6}\right] \rho _{0}^2V'(\rho _{0}),\\ f_{2}= & {} -h\rho _{0}^2V''(\rho _{0}), \\ f_{3}= & {} -\frac{f+2bh\alpha \tau +\lambda P_{1}}{2}\rho _{0}^2V'(\rho _{0}), \\ f_{4}= & {} -\frac{f+2bh\alpha \tau +\lambda P_{1}}{4}\rho _{0}^2V''(\rho _{0}), \\ f_{5}= & {} \left[ \frac{f(2\lambda -1)(\alpha -3)(P_{2}+\lambda P_{3})}{6h(3-2\alpha )}\right. \\&\left. +\frac{f^{3}(2\lambda \!-\!1)^{3}(28\alpha -\!69)}{24h^{2}(3\!-\!2\alpha )^{3}} -\frac{P_{4}\!+\lambda P_{5}}{24}\!\right] \rho _{0}^2V'(\rho _{0}). \end{aligned}$$

In order to derive the standard KdV equation with higher-order correction, we make the following transformation in Eq. (31)

$$\begin{aligned} T = \sqrt{f_{1}}T_{k}, \quad X = - \sqrt{f_{1}}X_{k},\quad R = \frac{1}{f_{2}} R_{k}. \end{aligned}$$
(32)

By using of Eq. (32), we obtain the standard KdV equation with higher-order correction term

$$\begin{aligned}&\partial _{T_{k}}R_{k}+\partial ^{3}_{X_{k}}R_{k}+R_{k}\partial _{X_{k}}R_{k} \nonumber \\&\quad +\frac{\varepsilon }{\sqrt{f_{1}}}\left[ \!-f_{3}\partial ^{2}_{X_{k}}R_{k}\!+\frac{f_{4}}{f_{2}}\partial ^{2}_{X_{k}}R_{k}^{2}+\frac{f_{5}}{f_{1}}\partial ^{4}_{X_{k}}R_{k}\!\right] \!=0.\nonumber \\ \end{aligned}$$
(33)

Next, we assume that \(R_{k}(X_{k},T_{k}) = R_{0}(X_{k},T_{k})+\varepsilon R_{1}(X_{k},T_{k})\) to consider the \(O(\varepsilon )\) correction in Eq. (33). If we ignore the \(O(\varepsilon )\) term in Eq. (33), it is just the KdV equation with the soliton solution

$$\begin{aligned} R_{0}(X_{k},T_{k}) = A {\text {sech}}^{2} \left[ \sqrt{\frac{A}{12}}\left( X_{k}-\frac{A}{3}T_{k}\right) \right] , \end{aligned}$$
(34)

where \(A\) is a free parameter. It is the amplitude of soliton solutions of the KdV equation. The perturbation term in Eq. (33) gives the condition of selecting a unique member from the continuous family of KdV solitons. In order to obtain the value of \(A\), the solvability condition

$$\begin{aligned} (R_{0},M[R_{0}])\equiv \int ^{\infty } _{-\infty }\text {d}X_{k}R_{0}M[R_{0}]= 0 \end{aligned}$$
(35)

must be satisfied, here \(M[R_{0}]\) is the \(O(\varepsilon )\) term in Eq. (33). By computing the integration in Eq. (35), we obtain the value of amplitude \(A\)

$$\begin{aligned} A = \frac{21f_{1}f_{2}f_{3}}{24f_{1}f_{4} -5f_{2}f_{5}}. \end{aligned}$$
(36)

Substituting the values of \(f_{1}-f_{5}\) into Eq. (36), we get the value of \(A\). Substituting each variable by the original one, we obtain the soliton solution of the density

$$\begin{aligned}&\rho (j,m,t) = \rho _{0} +\frac{A}{f_{2}}\left( \frac{\tau }{\tau _{s}}-1\right) {\text {sech}}^{2}\nonumber \\&\quad \bigg [\sqrt{\frac{A}{12f_{1}} \left( \frac{\tau }{\tau _{s}}-1\right) } \left( j+m+\rho _{0}^2V'(\rho _{0})t\right. \nonumber \\&\quad \left. +\frac{A}{3}\left( \frac{\tau }{\tau _{s}}-1\right) t\right) \bigg ] . \end{aligned}$$
(37)

Now, we have derived the soliton density wave described by the KdV equation near the neutral stability line.

Finally, we discuss the kink–antikink waves of the pedestrian flow in the unstable region. The nonlinear partial differential equation is obtained from Eq. (25) for \(s= 3,l = 1\).

$$\begin{aligned}&\varepsilon ^{2}\Big (b+h\rho _{c}^2V'(\rho _{c})\Big )\partial _{X}R \nonumber \\&\quad +\varepsilon ^{3}\Big (\frac{3b^{2}\tau }{2}+\frac{f+2bh\alpha \tau +\lambda P_{1}}{2}\rho _{c}^2V'(\rho _{c})\Big )\partial _{X}^{2}R \nonumber \\&\quad +\varepsilon ^{4}\Big [\Big (\frac{P_{2}+\lambda P_{3}}{6}\rho _{c}^2V'(\rho _{c})+\frac{7b^{3}\tau ^{2}}{6} \Big )\partial _{X}^{3}R\nonumber \\&\quad +\frac{h}{6}\rho _{c}^2V'''(\rho _{c})\partial _{X}R^{3}+\partial _{T}R\Big ]\nonumber \\&\quad +\varepsilon ^{5}\Big [\Big (\frac{5b^{4}\tau ^{3}}{8}+\frac{P_{4}+\lambda P_{5}}{24}\rho _{c}^2V'(\rho _{c})\Big )\partial _{X}^{4}R \nonumber \\&\quad +\frac{f+2bh\alpha \tau +\lambda P_{1}}{12}\rho _{c}^2V'''(\rho _{c})\partial _{X}^{2}R^{3}\nonumber \\&\quad +(3b\tau +h\alpha \tau \rho _{0}^2V'(\rho _{0}))\partial _{X}\partial _{T}R\Big ]=0. \end{aligned}$$
(38)

Supposing

$$\begin{aligned} \frac{\tau }{\tau _{c}}=1+\varepsilon ^{2} \end{aligned}$$
(39)

for \(\tau \) near the critical point \((h_{c},1/\tau _{c})\), where \(\tau _{c}=\frac{(2\lambda -1)f}{(3-2\alpha )h^{2}\rho _{c}^2V'(\rho _{c})}\), the second- and third-order terms of \(\varepsilon \) can be eliminated from Eq. (38). Then Eq. (38) can be rewritten as

$$\begin{aligned} \begin{aligned}&\varepsilon ^{4}\left[ \partial _{T}R-g_{1}\partial ^{3}_{X}R+g_{2}\partial _{X}R^{3}\right] \\&\quad +\,\varepsilon ^{5}\left[ g_{3}\partial ^{2}_{X}R+g_{4}\partial ^{2}_{X}R^{3}+g_{5}\partial ^{4}_{X}R\right] =0 \end{aligned} \end{aligned}$$
(40)

where

$$\begin{aligned} g_{1}= & {} \left[ \frac{7(2\lambda -1)^{2}f^{2}}{6(3-2\alpha )^{2}h}-\frac{P_{2}+\lambda P_{3}}{6}\right] \rho _{c}^2V'(\rho _{c}), \\ g_{2}= & {} -\frac{h}{6}\rho _{c}^2V'''(\rho _{c}),\\ g_{3}= & {} -\frac{f+2bh\alpha \tau +\lambda P_{1}}{2}\rho _{c}^2V'(\rho _{c}), \\ g_{4}= & {} -\frac{f+2bh\alpha \tau +\lambda P_{1}}{12}\rho _{c}^2V'''(\rho _{c}), \\ g_{5}= & {} \left[ \frac{f(2\lambda -1)(\alpha -3)(P_{2}+\lambda P_{3})}{6h(3-2\alpha )}\right. \\&+\,\frac{f^{3}(2\lambda -1)^{3}(28\alpha -69)}{24h^{2}(3-2\alpha )^{3}} \\&\left. -\,\frac{P_{4}+\lambda P_{5}}{24}\right] \rho _{c}^2V'(\rho _{c}). \end{aligned}$$

In order to derive the standard MKdV equation with higher-order correction, we make the following transformation in Eq. (40)

$$\begin{aligned} T = \frac{1}{g_{1}}T_{m}, \quad R = \sqrt{\frac{g_{1}}{g_{2}}} R_{m}. \end{aligned}$$
(41)

Then we obtain the standard MKdV equation with higher-order correction term

$$\begin{aligned}&\partial _{T_{m}}R_{m}-\partial ^{3}_{X}R_{m}+\partial _{X}R_{m}^{3} \nonumber \\&\quad +\frac{\varepsilon }{g_{1}}\left[ g_{3}\partial ^{2}_{X}R_{m}\!+\!\frac{g_{1}g_{4}}{g_{2}}\partial ^{2}_{X}R_{m}^{3}\!+\!g_{5}\partial ^{4}_{X}R_{m}\!\right] \!=0.\quad \quad \end{aligned}$$
(42)

If we ignore the \(O(\varepsilon )\) term in Eq. (42), it is just the MKdV equation with the kink–antikink solution

$$\begin{aligned} R_{m0}(X,T_{m}) = \sqrt{B}\tanh \sqrt{\frac{B}{2}}(X -BT_{m}). \end{aligned}$$
(43)

Similar to the process of deriving the amplitude \(A\) for KdV equation, we obtain the value of propagation velocity \(B\) for the kink–antikink solution as follows

$$\begin{aligned} B=\frac{5g_{2}g_{3}}{2g_{2}g_{5} -3g_{1}g_{4}} \end{aligned}$$
(44)

which is the same as the one in Ref. [33]. Inserting Eq. (41) into Eq. (43), we get the solution of the MKdV equation

$$\begin{aligned} R(X,T) = \sqrt{\frac{g_{1}B}{g_{2}}}\tanh \sqrt{\frac{B}{2}}(X -Bg_{1}T). \end{aligned}$$
(45)

Then we gain the kink–antikink solution of the density

$$\begin{aligned}&\rho (j,m,t)=\rho _{c} \!+\! \sqrt{\frac{g_{1}B}{g_{2}}\left( \frac{\tau }{\tau _{c}}\!-1\!\right) }{\text {tanh}}\nonumber \\&\quad \times \left[ \!\sqrt{\frac{B}{2}\left( \frac{\tau }{\tau _{c}}\!-1\!\right) }\left( j+m +\rho _{c}^2V'(\rho _{c})t\right. \right. \nonumber \\&\quad \left. \left. -Bg_{1}\left( \frac{\tau }{\tau _{c}}-1\right) t\right) \right] . \end{aligned}$$
(46)

And the amplitude \(C\) of the kink–antikink solution equation (46) is given by

$$\begin{aligned} C =\sqrt{\frac{g_{1}B}{g_{2}}\left( \frac{\tau }{\tau _{c}}-1\right) }. \end{aligned}$$

The kink solution represents the coexisting phase, which consists of the freely moving phase with low density and the congested phase with high density. The coexisting curve can be described by \(\rho = \rho _{c} \pm C \). Therefore, we get the coexisting curve in the \((\rho ,a)\) plane (see Fig. 2).

5 Simulation

To check the theoretical results, we carry out numerical simulations in this section. The initial conditions of the numerical simulation are as follows: There are \(N =100\) lattices in the system, and the periodical boundary condition is applied. The initial perturbations are adopted as follows: \(\rho (j,m,0) = \rho _0=\rho _c= 0.2\). The local densities \(\rho (N/2, N/2, 1)\) and \(\rho (N/2-1, N/2-1, 1)\) at sites \((N/2, N/2)\) and \((N/2-1, N/2-1)\) at time \(t = 1\) are set as 0.15 and 0.25.

Figure 3 shows the plots of \(a_{c}\) against reaction coefficient \(\alpha \) and \(\lambda \), respectively, with \(\rho _{c}^{2}V_{0}'(\rho _{c}) =-1, c=c_{1}=c_{2}=0.1\). From Fig. 3a, we can see that the critical sensitivity \(a_{c}\) increases with the increase of \(\lambda \), which means the pedestrian flow becomes more and more unstable under passing behavior, but the conscious passing behavior (represented by anticipation and its coefficient \(\alpha \)) will alleviate the congestion. From Fig. 3b, we can see that the critical sensitivity \(a_{c}\) decreases with the increase of \(\alpha \), which means the pedestrian flow becomes more and more stable under conscious walking behavior.

Figures 4, 5 and 6 show the plots of \(a_{c}\) against \(c,c_{1}\) and \(c_{2}\) for different values of \(\alpha , \lambda \) with \(\rho _{c}^{2}V_{0}'(\rho _{c})=-1\), respectively. From Figs. 4 and 6, the critical sensitivity \(a_{c}\) decreases with the increase of \(c\) and \(c_{2}\) as \(c,c_{2}\le 0.5\), and increases with the increase of \(c\) and \(c_{2}\) as \(1 \ge c,c_{2}\ge 0.5\). Figure 5 shows that with the increase of \(c_{1}\), the critical sensitivity \(a_{c}\) decreases. According to the above results, when \(c\) and \(c_{2}\) remain unchanged, enlarging the east-bound density \((c_{2})\) may alleviate the occurrence of jams effectively. From Figs. 45 and 6, we can also see that anticipation and passing effect play an important role in pedestrian flow, which is same with the result in Fig. 2.

Fig. 3
figure 3

Plot of \(a_{c}\) with \(\rho _{0}^{2}V_{0}'(\rho _{0})|_{\rho _{0}=\rho _{c}}=-1, c=c_{1}=c_{2}=0.1\) against a \(\lambda \); b \(\alpha \).

Fig. 4
figure 4

Plot of \(a_{c}\) against \(c\) with \(\rho _{0}^{2}V_{0}'(\rho _{0})|_{\rho _{0}=\rho _{c}}=-1, c_{1}=c_{2}=0.1\) for different values of a \(\alpha \); b \(\lambda \).

Fig. 5
figure 5

Plot of \(a_{c}\) against \(c_{1}\) with \(\rho _{0}^{2}V_{0}'(\rho _{0})|_{\rho _{0}=\rho _{c}}=-1, c=c_{2}=0.1\) for different values of a \(\alpha \); b \(\lambda \).

Fig. 6
figure 6

Plot of \(a_{c}\) against \(c_{2}\) with \(\rho _{0}^{2}V_{0}'(\rho _{0})|_{\rho _{0}=\rho _{c}}=-1, c=c_{2}=0.1\) for different values of a \(\alpha \); b \(\lambda \).

Figure 7 shows the pedestrian patterns after a sufficiently long time \(t = 60,000\) with different \(\lambda \) for \(a = 2, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1, \alpha =0\). In Fig. 7, the patterns (a), (b), (c) and (d) exhibit the time evolution of the density \(\rho (j,m,t)\) for \(\lambda = 0.0,0.1,0.2,0.3\), respectively. The value of parameter \(\lambda \) is chosen to show the passing effect upon the pedestrian flow. By using the linear stability condition (21), the pedestrian flow is linear unstable in patterns (b), (c) and (d). The pedestrian flow is stable in pattern (a). So the small disturbances will be amplified, and the density waves appear in patterns (b), (c) and (d). The small disturbances dissipate in pattern (a) as time goes on.

Fig. 7
figure 7

The pedestrian patterns at time \(t = \)60,000 where \(a=2, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1\) for \(\lambda =0, 0.1, 0.2, 0.3\) with \(\alpha =0\), respectively.

Fig. 8
figure 8

The density profiles \(\rho (j,60,t)\) at time \(t=\,\) 60,000 where \(a=2, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1\) for \(\lambda =0, 0.1, 0.2, 0.3\) with \(\alpha =0\), respectively.

Figures 8 and 9 show the density profile obtained at \(t=60,000\) corresponding to Fig. 7, respectively. And it makes us see the evolution of the density with the small disturbances more clearly.

From Figs. 78 and 9, we can see the unconscious passing behavior will make the pedestrian flow become unstable, and the pedestrian jams appear with the passing behavior.

Figure 10 shows the pedestrian patterns after a sufficiently long time \(t = 60,000\) with different \(\lambda \) for \(a = 1.9, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1, \lambda =0.1\). In Fig. 10, the patterns (a), (b), (c) and (d) exhibit the time evolution of the density \(\rho (j,m,t)\) for \(\alpha = 0.0,0.1,0.2,0.3\), respectively. The value of parameter \(\alpha \) is chosen to show the effect of anticipation upon the pedestrian flow. By using the linear stability condition (21), the pedestrian flow is linear unstable in patterns (a), (b) and (c). The pedestrian flow is stable in pattern (d). So the small disturbances will be amplified, and the density waves appear in patterns (a), (b) and (c). The small disturbances dissipate in pattern (d) as time goes on. Figures 11 and 12 show the density profile obtained at \(t=60,000\) corresponding to Fig. 10, respectively.

Fig. 9
figure 9

The density profiles \(\rho (60,m,t)\) at time \(t = 60,000\) where \(a=2, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1\) for \(\lambda =0, 0.1, 0.2, 0.3\) with \(\alpha =0\), respectively.

Fig. 10
figure 10

The pedestrian patterns at time \(t =\) 60,000 where \(a=1.9, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1\) for \(\alpha =0, 0.1, 0.2, 0.3\) with \(\lambda =0.1\), respectively.

From Figs. 10, 11 and 12, we can see the pedestrian flow becomes more and more stable with the increasing of \(\alpha \), which means pedestrian jams induced by passing behavior can be alleviated with the consideration of the anticipation effect.

Fig. 11
figure 11

The density profiles \(\rho (j,60,t)\) at time \(t = 60,000\) where \(a=1.9, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1\) for \(\alpha =0, 0.1, 0.2, 0.3\) with \(\lambda =0.1\), respectively.

Fig. 12
figure 12

The density profiles \(\rho (60,m,t)\) at time \(t = 60,000\) where \(a=1.9, \rho _0=\rho _c=0.2, c=c_1=c_2=0.1\) for \(\alpha =0, 0.1, 0.2, 0.3\) with \(\lambda =0.1\), respectively.

6 Summary

In order to investigate the effect of pedestrian’s anticipation upon pedestrian flow, we propose an extended lattice hydrodynamic model for bidirectional pedestrian flow with passing by taking this factor into account. We obtain the stability condition of the proposed model by the use of linear stability theory. The stability condition shows that the anticipation effect plays an important role in influencing the stability of pedestrian flow. The Burgers, KdV and MKdV equations are obtained to describe the pedestrian flow behavior in the stable, metastable and unstable region, respectively. The results show that enlarging the reaction coefficient of pedestrian’s anticipation may lead to the stabilization of the pedestrian flow. Such findings indicate that in crowded environment such as railway entrance and the corner of subway tunnel, pedestrian should enhance awareness of walking behavior and try to avoid passing behavior in order to make the pedestrian flow stable. The numerical simulations show a good agreement with the analytical results.