Keywords

1 Introduction

In densely populated areas the frequent traffic jams cause significant economic and social damages. In order to make effective planning, traffic flow simulations can be of fundamental importance to better understand traffic flow behavior, in different situations, helping to improve traffic networks design and of the definition of more efficient transportation systems. For this purpose, microscopic numerical models, as those based on Cellular Automata (CA), have emerged as an alternative to model traffic flow helping to understand its behavior. Microscopic models typically focus their attention on the behavior of individual vehicles, the road topology and on the influence coming from neighborhood vehicles.

The fundamental traffic model proposed by Nagel and Schreckenberg [1], is a stochastic Cellular Automata model of vehicular traffic, known as the NaSch model. It reproduces the basic features of traffic flow. Many others CA models were proposed trying more realistic traffic representation. Among these we find the so called “slow to start” rules [2,3,4] to model the meta-stable traffic flows. Some others models embody anticipation rules in order to take into account drivers’ movement at next time step. By including anticipation and the brake lights concept [5,6,7,8,9] in the modeling, the vehicles do not solely determine their velocities based on the distance to the next vehicle in front of it, but they also consider the speed and the deceleration of the ahead vehicle. Others models try to include characteristics of driver’s behavior at the moment of the definition of its new speed [6, 10, 11].

The dense road traffic has increased the number of accidents. The absence of observations of behaviors that can potentially cause modifications in traditional analyses, may lead to erroneous inferences or erroneous accident predictions. To carry out simulations that can bring information about the effects of distinct acceleration policies behavior is fundamental to understand occurrence of roads Dangerous Situations (DS) that can lead accidents.

Recently, cellular automata models have been extended to investigate car accidents probabilities. Boccara et al. [12] were the first authors to propose conditions for car accidents occurrences in the deterministic NaSch model. Huang et al. [13] presented analytical expressions for car accidents in this model with lower maximum velocity, \(V_{max}=1\), and Fukui et al. [14] for high velocities. In Jiang et al. [15], car accidents probabilities are obtained for the so called velocity effect (VE) model. Moussa [16] analyzes car accidents occurrence based on delayed reaction time of the successor car. More recently, Bentaleb et al. [17] presents car accidents occurrence probability in the extended Nagel-Schreckenberg (NaSch) model considering fast and slow vehicles. It also analyzes the effect of damaged vehicles evacuation from the road. Results of car accidents probabilities for the non deterministic NaSch model were obtained [18,19,20] and also for two-lane CA model [21]. The influence of speed limit zone in roads [22] and intersections [23] were also analyzed for open boundary conditions and Speed Limit Zone. Madani and Moussa [24] present results for NaSch Model and NaSch model with the “slow-to-stop” rule.

In this work we present a modified version of the NaSch model that proposes to evaluate numerically how distinct acceleration policies, to reach the same maximum speed of the road, can influence the traffic dynamics and the Dangerous Situations (DS) evaluation that can result in traffic accidents. Simulating these behaviors, unobserved in usual measurements, can contribute to improve the procedures that evaluate the probability of accidents on roads, actual deceleration data were used to evaluate the accidents probability and the results were compared to those obtained when the road maximum velocity changes. The paper is structured as follows: Sect. 2 presents the NaSch modified model, with heterogeneity in acceleration and deceleration policies and its influence in the traffic flow. Section 3 describes conditions for the occurrence of Dangerous Situations and analyzes results for distinct acceleration policies. In Sect. 4 we show results when actual deceleration data were used to evaluate the probability of accidents. Discussions and conclusions are presented in Sect. 5.

2 Modified Nagel-Schreckenberg Model

The Nagel-Schreckenberg (NaSch) model is a one-dimensional probabilistic cellular automata traffic model, that represents the lane as a lattice of cells, where a vehicle occupies one cell and each cell is either empty or occupied by one vehicle. At any instant of time t, a vehicle occupies the cell x(i,t) and has the velocity v(i,t), which tells how many cells it will move at that instant of time. The number of unoccupied cells in front of each vehicle, generally called as gap, is denoted by \(d(i,t) = x(i+1,t)-x(i,t-1)-L\),where \(L = 1\) is the vehicles’ length, and the vehicle i+1 is considered to be in front of the vehicle i. A periodic boundary condition is considered. The four distinct rules applied in parallel for all vehicles are given by Algorithm 1 (Table 1):

Table 1. Algorithm 1.

The model uses parameters such as: \(V_{max}\), the maximum velocity that a vehicle can reach; A, the acceleration rate of the vehicles; p, the stochastic parameter that represents the probability through which a vehicle randomly slows down, aiming to model the uncertainty about the drivers’ behavior.

The traditional NaSch model sets \(A = 1\,\mathrm{cell/s}^2\). The typical length of a cell is 7.5 m. Each time step corresponds to one second, resulting vehicles’ speed multiples of 1 cell/s, which is equivalent to 27 km/h. Also, \(V_{max}\) is typically set as 5 cell/s, corresponding to 135 km/h.

Although being a simple model, the NaSch model is able to represent traffic’s main characteristics such as the spontaneous occurrence of traffic jams and to show the relation between traffic flow and density, representing two different phases (free and congested flow) and a transition stage between them [25].

2.1 The Proposed Modification in the NaSch Model

Despite the random deceleration rule in the NaSch model, the parameter A is a constant. We investigate whether different acceleration policies influence in traffic dynamics or not. A more refined lattice discretization is proposed to allow the representation of these different policies and each driver’s profile tends to accelerate in a characteristic way: abruptly (aggressive profile) or more smoothly (non aggressive profile). A non-uniform Probability Density Function (PDF) is used to describe trends in the drivers’ acceleration policy. The new acceleration parameter is stochastic and is calculated as \(A = int[(1-\alpha )A_{max}]\), where \(\alpha \) is a random value between 0 and 1 and int is the function that returns the nearest integer of its argument. Therefore, the probability p models the drivers’ intention to accelerate while \(\alpha \) models how they will accelerate. In this work, \(\alpha \) is modeled by a continuous Beta Function (PDF), defined as \(B(a,b) = {\varGamma ( a+b)}/[{\varGamma (a)\varGamma (b)}x^{a-1} (1-x)^{b-1}]\), where 0 \(\le \) x \(\le \) 1 and \(\varGamma \) \((n+1)=n!\), n is a positive integer. Depending on the values of the parameters a and b, majority of \(\alpha \) values will tend to different values between 0 a 1 and those closer to 0 will produce accelerations A closer to \(A_{max}\), while those closer to 1 will produce accelerations A closer to 0. In fact, the \(\alpha \) values float around the Beta mean value, which are given by \(\mu = \frac{a}{a+b}\). Thus, it is possible to predict each profile acceleration trend based on the average of the Beta function used to model it. Therefore, each profile is defined by a different pair (a,b) of parameters, that defines a Beta function, and the different mean values of these distributions model the desired acceleration tendencies.

2.2 Numerical Results

For all results presented in this paper, the parameters of the model are set as: size of the cell equal to 1.5 m; \(V_{max} = 25\,\mathrm{cell/s} = 135 \, \mathrm{km/h}\); \(A_{max}\) \( = 5 \,\mathrm{cell/s}^2 = 7.5 \, \mathrm{m/s}^2\); \(p = 0.30\). To maintain analogy with the traditional NaSch model, a vehicle in our model occupies \(5 \, \mathrm{cells} = 7.5\) m. Beta functions were chosen to represent the different acceleration policies, with distinct averages and similar variance. Besides the results from traditional NaSch model, four different profiles were considered in this work, the Beta functions that describe their acceleration are: B(10, 30), Aggressive profile, with an average acceleration of \(\mu = 4 \, \mathrm{cells/s}^2\); B(20, 28), called Intermediary I, with \(\mu = 3 \, \mathrm{cells/s}^2\); B(28, 20), Intermediary II, with \(\mu = 2 \, \mathrm{cells/s}^2\) and B(30, 10), Non-Aggressive profile, with \(\mu = 1 \, \mathrm{cells/s}^2\).

All the simulations were performed with a lane composed of \(10,000 \, \mathrm{cells}\), with density varying from 1 to 100 (given in percentage of occupied cells). An usual simulation varies the density \(\rho \), while keeping constant the parameters \(V_{max}\), A, and p. A total of 15, 000 time units were simulated, but only the data from the last 5, 000 units were taken into consideration since transient effects were not the target. The modified model was configured, to every profile, with \(A_{max} = 5 \, \mathrm{cell/s}^2\), \(V_{max}= 25 \, \mathrm{cell/s}\), \(p = 0.30\). The simulation starts with vehicles at random positions and \(V=0\).

Fig. 1.
figure 1

Diagrams

Traffic Flow, Vmax = 25 cell/s. In this section, we present in Fig. 1, fundamental (flow-density) and velocity-density diagrams for traditional and modified NaSch model. Since \(V_{max}\) \( = 135\,\mathrm{km/h}\) in all simulations, Fig. 1(a) and (b) show the impact of the different acceleration policies on traffic dynamics. In the free flow region of the diagram presented in Fig. 1(a), the mean velocity of the Aggressive driver is lower than the Non-Aggressive one, under the same speed limit. However, the inverse happens when the interaction between vehicles begins. Even though the modified model takes the NaSch as base, the Non-Aggressive profile starts to represent the meta-stability region in Fig. 1(b).

3 Conditions for the Occurrence of Dangerous Situations

In this work we analyzed the impact the consideration of different drivers profiles has in the occurrence of situations that can lead to traffic accidents, which is a heterogeneity unobserved in usual measurements in a usual scenario. It should be noted, in rule (2) of Algorithm1, that the models prevent collisions between vehicles. Thus, we analyze the occurrence of dangerous situations (DS) which could lead to collisions between vehicles in a real scenario. As usual, we consider the DS caused by sudden deceleration and sudden stop and adapt the conditions utilized by Moussa [12, 16, 24].

3.1 Dangerous Situations Caused by Sudden Deceleration

Real accidents frequently happen when vehicles are at high speeds and a sudden deceleration occurs. If the vehicle i, that is behind the \(i+1\), is near enough, this situation may lead to an accident. Hence, we consider a Dangerous Situation (DS) due to sudden deceleration when the following conditions are satisfied:

  • Condition 1: \(\tau \cdot v(i,t) > d(i,t) + v(i+1,t+1)\)

  • Condition 2: \(v(i+1,t) - v(i+1,t+1) \ge V_{d}\)

\(\tau \) is a reaction time and the parameter \(V_{d}\) is the deceleration limit, beyond which the risk of an accident exists. In Condition 1, the vehicle i has a velocity v greater than the space d it has to move at the current time. The Condition 2 indicates when the front car has decelerated more than a limit \(V_{d}\), previously defined.

3.2 Dangerous Situations Caused by Sudden Stop

In this definition of DS, the vehicle \(i+1\) will stop at the next instant of time and, since the vehicle i, that is behind it, is close enough, this situation might lead to an accident. In this context, the following conditions are satisfied:

  • Condition 1: \(\tau \cdot v(i,t) > d(i,t)\)

  • Condition 2: \(v(i+1,t) \ge V_{min}\)

  • Condition 3: \(v(i+1,t+1) = 0\)

where \(V_{min}\) is a velocity limit, beyond which the risk of an accident exists. In Condition 1, the vehicle i is close enough to the vehicle ahead, i.e. it is at a speed v greater than the space it has to move at the current time. In Condition 2, the vehicle ahead \(i+1\) is moving with a velocity higher than or equal to \(V_{min}\) at the current instant of time. The Condition 3 indicates that the vehicle ahead \(i+1\) will stop at the next instant of time \(t+1\). Moussa [16] and Madani and Moussa [24], in their work with the NaSch model, consider \(V_{min} = 1 \, \mathrm{cel/s}\), what corresponds to 27 km/h in their discretization. In this work we can represent velocities smaller than 27 km/h.

Fig. 2.
figure 2

Analysis of Dangerous Situations (DS)

3.3 Numerical Results

The probability per vehicle and per time step for a DS to occur is denoted by Pds. Figure 2(a) presents the results for the probability of Dangerous Situations (Pds) due to sudden deceleration, using \(V_{d} = 10 \,\mathrm{cell/s} = 15 \, \mathrm{m/s}^2\), while Fig. 2(b) presents results for the Pds due to sudden stop, using \(V_{min} = 5 \, \mathrm{cell/s} = 27\, \mathrm{km/h}\), to compare with results presented in Madani and Moussa [24] for the NaSch model. In all simulations we consider \(\tau =1 \,\mathrm{s}\). We can observe that in the free flow region, since vehicles do not stop, there are no vehicle accidents. The value of the critical density where DS is maximum appears to remain unchanged with respect to the four different Beta functions.

Note that in the NaSch model, drivers have a constant acceleration rate A and, for the discretization used in this work, \(A = 5 \, \mathrm{cell/s}^2\). The most aggressive driver considered in the modified NaSch model here proposed, accelerates \(A = 4 \, \mathrm{cell/s}^2 = 6.0 \, \mathrm{m/s}^2\) in average. For comparison reasons, the results presented for the NaSch model were obtained following the propositions of Madani and Moussa [24]. It is noticeable in Fig. 2(b) that, even under the same speed limit, the more aggressive the profile is, the higher is the probability of occurrence of DS.

4 Conditions for the Occurrence of Accidents

In the previous section we presented conditions that analyzed the occurrence of dangerous situations (DS) that can cause traffic accidents. However, in some cases an attentive driver would be able to avoid the accident. In this section we propose a new metric to evaluate the existence of DS that are highly probable to lead to accidents in a real scenario.

4.1 Accidents Probability

We intended to evaluate if a considered vehicle would be able to brake and avoid collision, given a maximum deceleration rate parameter being counted as an accident wich does not occur. The metric is similar to the case of sudden stop, but now it is taken into account the maximum deceleration rate MDR a real vehicle is capable of performing. Thus, the conditions are defined as:

  • Condition 1: \(v(i,t)-d(i,t) \ge MDR \)

  • Condition 2: \(v(i+1,t) > 0 \)

  • Condition 3: \(v(i+1,t+1) = 0 \)

Condition 1 indicates whether the vehicle i would have sufficient distance to brake or not. If \(v(i,t)-d(i,t) \ge MDR\), then the vehicle i needs to perform a deceleration higher than MDR, what would be impossible in a real scenario. Conditions 2 and 3 represent the sudden stop.

4.2 Numerical Results

Accident Probability. Figure 3(a) presents the result obtained for \(MDR = 5 \, \mathrm{cell/s}^2 = 7.5 \, \mathrm{m/s}^2\) as the maximum deceleration rate that a vehicle could perform in a real scenario. Thus, we consider a real accident when a vehicle needs to decelerate more than \(7.5 \, \mathrm{m/s}^2\).

We considered that the Maximum Deceleration Rate (MDR) of a normal vehicle is between 6.0 and \(9.0 \, \mathrm{m/s}^2\). Figure 3(b) presents the result of accident probability for the Aggressive driver, where the parameter MDR is varied.

Fig. 3.
figure 3

Relations of the accident analysis with maximum deceleration rate (MDR)

The Influence of the Speed Limit and the Drivers’ Behavior. Results presented in the previous sections indicate that the acceleration policies impact decisively on the number of accidents in the road. Thus, in order to compare the influence of the speed limit of the road with the impact of the acceleration policy of the drivers in the accident probability, we present a comparative result in Fig. 4(a). Five different driver profiles, with different speed limits, were considered: (1) Aggressive drivers with the speed limit of \(V_{max} = 25 \, \mathrm{cell/s}\); with \(V_{max} = 20 \, \mathrm{cell/s}\); with \(V_{max} = 15 \, \mathrm{cell/s}\); and with \(V_{max} = 10 \, \mathrm{cell/s}\); (2) Non-Aggressive drivers with the speed limit of \(V_{max} = 25 \, \mathrm{cell/s}\). It can be observed in Fig. 4(a) that, for the used metric, even with the decrease of the speed limit for the Aggressive profile, its curve remains well above the curve for the Non-Aggressive profile with a much higher speed limit. This indicates that the vehicle acceleration policy has greater impact on the number of accidents due to collision between vehicles than the speed limit, except in Region 1 (Fig. 4), where in profiles using \(V_{max} = 135 \, \mathrm{km/h}\) there is already interaction between vehicles, earlier than the curves using \(V_{max} < 135 \,\mathrm{km/h}\) with Agressive profile.

Fig. 4.
figure 4

Accident analysis

The situation in which the road is filled with drivers of different acceleration profiles is also analyzed. Aggressive and Non-Aggressive profiles, with the same speed limit of \(V_{max} =25 \, \mathrm{cell/s}\), are used to simulate that situation. Figure 4(b) presents results obtained due to sudden stop with \(V_{min} = 5 \, \mathrm{cell/s}\), where different ratios for the Aggressive profile were considered. These results suggest that the probability of Dangerous Situations increases as the road’s ratio of drivers with aggressive acceleration policies increases.

5 Conclusions

In this article we presented a modified version of the NaSch model that proposes to numerically analyze the influence of heterogeneity due to different acceleration policies for vehicles under the same speed limit, that usually is an unobserved situation in usual traffic flow measuring. To enable this analysis, the lane discretization was refined and heterogeneity was introduced in the drivers’ acceleration, using a continuous probability density function, the Beta function, to model it. The usage of functions with different mean values made possible the consideration of drivers with different steering behaviours, given by their acceleration profile. Dangerous Situations on roads, which can cause collisions between vehicles, were also analyzed for this modified NaSch model. Actual deceleration rates data was used to evaluate the probability of accidents and the obtained results were compared to those obtained when varying the road’s maximum velocity.

Having distinct drivers’ behaviors allowed us to capture its effects on traffic dynamics and evaluate the most important features of the traffic flow phenomena. It was shown, for instance, how the fundamental diagram are affected by these behaviors. We observed that, even under the same maximum velocities, different policies influences the flow, improving the average speed in free flow regimes and altering the region of bottled flow, depending on the considered profile.

Using the Dangerous Situation definition [12, 16, 24], adapted for our proposed modified NaSch model, we noted that DS decreased with more cautious acceleration policies. We also observed that these behaviors have fundamental importance on avoiding collisions between vehicles and may be more relevant than the maximum speed of the road.