# Detection and Risk Analysis with Lane-Changing Decision Algorithms for Autonomous Vehicles

Amin Mechernene, Vincent Judalet, Ahmed Chaibet, Moussa Boukhnifer

► To cite this version:

Amin Mechernene, Vincent Judalet, Ahmed Chaibet, Moussa Boukhnifer. Detection and Risk Analysis with Lane-Changing Decision Algorithms for Autonomous Vehicles. Sensors, 2022, 22 (21), pp.8148. 10.3390/s22218148. [hal-04493463](https://hal.science/hal-04493463v1)

HAL Id: hal-04493463

https://hal.science/hal-04493463v1

Submitted on 7 Mar 2024

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons CC BY 4.0 - Attribution - International License
Article

# Detection and Risk Analysis with Lane-Changing Decision Algorithms for Autonomous Vehicles

Amin Mechernene <fnref n="1" />*, Vincent Judalet <fnref n="1" />,*, Ahmed Chaibet <fnref n="2" /> and Moussa Boukhnifer <fnref n="3" />

**Abstract:** Despite the great technological advances in ADAS, autonomous driving still faces many challenges. Among them is improving decision-making algorithms so that vehicles can make the right decision inspired by human driving. Not only must these decisions ensure the safety of the car occupants and the other road users, but they have to be understandable by them. This article focuses on decision-making algorithms for autonomous vehicles, specifically for lane changing on highways and sub-urban roads. The challenge to overcome is to develop a decision-making algorithm that combines fidelity to human behavior and that is based on machine learning, with a global structure that allows understanding the behavior of the algorithm and that is not opaque such as black box algorithms. To this end, a three-step decision-making method was developed: trajectory prediction of the surrounding vehicles, risk and gain computation associated with the maneuver and based on the predicted trajectories, and finally decision making. For the decision making, three algorithms: decision tree, random forest, and artificial neural network are proposed and compared based on a naturalistic driving database and a driving simulator.

**Keywords:** risk assessment; decision making; autonomous driving; lane-changing maneuver; decision tree; random forest; artificial neural network; driving simulator

<figure><img src="image_2.png" /></figure>

check for
updates

**Citation:** Mechernene, A.; Judalet, V.; Chaibet, A.; Boukhnifer, M. Detection and Risk Analysis with Lane Changing Decision Algorithms for Autonomous Vehicles. *Sensors* 2022, 22, 8148. https://doi.org/10.3390/s22218148

Academic Editor: Steven L. Waslander

Received: 17 June 2022
Accepted: 30 September 2022
Published: 24 October 2022

**Publisher's Note:** MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

<figure><img src="image_3.png" /></figure>

**Copyright:** © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

## 1. Introduction

An autonomous vehicle (driver-less) is able to move without human intervention and interact and deal with its surroundings, such as pedestrians and other users road. To achieve this task, several technological bricks are needed. Sensors are required, such as radars, lidars, and cameras, combined with computing hardware and software to build a numerical map of the surrounding environment and make decisions and actions according to user requests and manufacturer settings. The concept of autonomous car covers, depending on the context, is a fully autonomous vehicle or a semi-autonomous vehicle with a variety of driving assistance systems. The taxonomy of driving automation is defined by the Society of Automotive Engineers (SAE) as follows [1]:

* Level 0: No Driving Automation.

* Level 1: Driver Assistance.

* Level 2: Partial Driving Automation.

* Level 3: Conditional Driving Automation.

* Level 4: High Driving Automation.

* Level 5: Full Driving Automation.

Nevertheless, fully autonomous vehicles are not widely available [2], and this despite the great technological advances in this field during the last ten years. There are still many challenges to be met in order to achieve a completely autonomous vehicle, which can operate whatever the conditions and ensure total safety, or at least safety superior to human drivers. Among the cons to overcome are:

<footnote n="1">¹ ESTACA Engineering School, 12 Rue Paul Delouvrier, 78180 Montigny-le-Bretonneux, France</footnote>

<footnote n="2">² DRIVE, Université de Bourgogne, 49 rue Mademoiselle Bourgeois, BP 31, CEDEX, 58027 Nevers, France</footnote>

<footnote n="3">³ Université de Lorraine, LCOMS, F-57000 Metz, France</footnote>

<footnote>* Correspondence: amin.mechernene@estaca.fr</footnote>
* Improving the perception of the environment to provide a correct interpretation of the information returned by the sensors, whatever the lighting and weather conditions.

* Enhance decision-making algorithms so that vehicles can make the right decision, even if they encounter situations not foreseen during development but also so that they behave like humans because, during their travel, autonomous vehicles will have to share the road with non-autonomous vehicles, and it is important that other drivers can understand the actions of the autonomous vehicle.

In this paper, we are interested in decision-making algorithms for autonomous vehicles, specifically for lane changing on highways and arterial roads. The main objective is to develop a method to allow the vehicle to change lanes independently, ensuring the safety of passengers and other road users [3], lowering travel time. The main target is to reproduce human behavior, for two main reasons:

* Ensure passenger acceptance of the algorithm [4]: indeed, the vehicle must have a behavior similar to a human in terms of risk taking because if it is too careful or takes too much risk, the passengers may have a tendency to reject autonomous driving and regain control of the vehicle.

* To be understandable by other non-autonomous vehicles and pedestrians [5]: on the road, humans adopt behaviors to communicate with other road users non-verbally, such as slowing down to let a vehicle change lanes or pulling to the left of the current lane to signify an intention to change lanes. As long as autonomous vehicles will have to share the road with non-autonomous ones, it is important that they can understand these behaviors and behave the same.

There are already several methods for decision making, some based on a set of rules [6,7], and others based on artificial intelligence algorithms [8,9]. The existing methods aim at developing an optimal driving style while optimizing different criteria, such as the risk of collision or the occupant comfort, while scrupulously fulfilling the traffic regulation rules.

The problem of such a paradigm is that the driving style of the resulting automated pilot will necessarily differ from a human driver, which generally adopts a more intuitive and sometime less optimal driving style. In many situations, human drivers have to anticipate the behavior of other vehicles, for instance while trying an insertion maneuver in dense traffic, and an implicit cooperation between the drivers is sometimes necessary (a vehicle adapts its speed to enable the insertion of another vehicle). The introduction of automated vehicles with a "non-human" driving style (even through optimal) could perturb other human drivers, thus increasing the risk of accident for human road users.

Moreover, if an automated vehicle does not drive like a human, its behavior could be difficult to understand for the occupants, inducing frustration if the automated vehicle is too careful and not able to overtake slow vehicles in dense traffic, or fear if it engages habitual maneuvers. This would engender acceptability issues for the automated vehicles.

Our approach thus differs from existing methods by trying to copy human driving instead of aiming for optimal robotic driving. We also defined two objectives:

* Faithfully reproduce human decisions based on an artificial intelligence algorithm learning from a database. This point is important for the reasons mentioned above.

* Not be a purely AI-based method, which would make it a black box algorithm. When it comes to security, it is preferable to have a method whose internal behavior can be understood and any failures diagnosed.

This paper extends a previous work presented in [10]. We use the global methodology by modifying the final brick (the decision algorithm), which is fuzzy logic, by three other algorithms which have a different philosophy because they are based on learning from naturalistic driving data. We chose a decision tree, a random forest, and an artificial neural network.

This article is organized as follows: Section 2 is devoted to the state of the art of existing risk assessment and decision making for lane change maneuvers. Section 3 presents the risk assessment method and the proposed algorithm. Section 4 details the models of the
decision algorithms, and Section 5 is dedicated to the discussion of the results and the comparison with the fuzzy logic algorithm. Finally, concluding remarks are addressed in Section 6.

## 2. Related Work

There are already a number of methods for assessing risk. For this task, we must estimate the future trajectories of surrounding vehicles. Many definitions of the risk can be found in the literature according to the context. In intelligent transportation systems (ITS) [11], it is usually qualified by the dangerousness of a situation for passengers who may be caused physical injury. For this, different metrics are commonly used:

* Inter-vehicular time [12] : Refers to the time separating two successive vehicles in the same traffic lane. The traffic law defines a two-second safety Inter-Vehicular Time (TIV). Depending on the speed, the driver must deduce their safety distance from the vehicle in front of them.

* "Time-To-X": A time indication where X is a collision-related event, such as the time remaining before the impact or Time-To-Collision (TTC) [13], and it can be compared with the time required to stop the vehicle. It also can be used to warn the driver; in this case, the driver reaction time should be added to the time to stop the vehicle. An additional time indicator that is correlated with the TTC is the Time-To-React (TTR) [14], the amount of time remaining to act before the collision becomes unavoidable. In this case, the reaction time of the driver must be considered.

* Binary collision prediction: Future trajectories are computed for the ego-vehicle and the other vehicle. Trajectories are assumed to be calculated with sufficient accuracy (good model and exact measurements) [15].

* Probabilistic collision prediction: When the future motion of a vehicle is represented by a probability distribution on sample trajectories, probabilistic estimation of risks can be used by computing the collision probability between all possible pairs of trajectories; the more collision detected, the higher the risk [16]. This approach provides a lot of flexibility in the handling of uncertainties and can be adapted for any vehicle trajectory prediction model.

These methods consider that vehicles move freely in their environment without constraints and without taking into consideration traffic rules and limitations due to road infrastructure. On highways or suburban roads, for example, the variety of maneuvers is very limited compared with intersections. Moreover, these methods are objectives, and driver behavior is not considered.

For this reason, we consider that in some cases, it is more relevant to have a risk assessment method specific to one case or maneuver.

The other aspect that we deal with in this paper is a decision algorithm for lane-changing maneuvers. Rahman et al. [17] have classified lane change decision algorithms into three categories:

* Rule-based models: Make decisions based on physical parameters measured by the car's sensors (radars, lidars, and cameras) such as speed and distance of surrounding vehicles, or calculated such as TTC or TTR, and rules that relate to the situation, such as the Gipps model [6], CORridor SIMulation (CORSIM) model [7], Analysis of Road Traffic and Evaluation by Micro-Simulation (ARTEMiS) model [18] and other more advanced versions [19]. The advantage of these models is that they are calculated fast in real time, but on the other hand, they can be difficult to calibrate.

* Artificial Intelligence: Mostly Artificial Neural Network (ANN) [8,20] and fuzzy logic [9,21]. These models are trained from databases or tuned to behave like a human driver. In addition, they can manage relatively uncertain and noisy data. Nevertheless, they have the cons of needing lots of data to be trained for ANNs and the membership functions can be difficult to define for the fuzzy logic models. Moreover, the ANN
is a black box model, which means that in cases of failure, it may not be possible to pinpoint the problem and solve it.

* Incentive-based model: It estimates the level of benefit if the lane change is made in addition to other parameters; the model makes the decision to change lanes or not. Minimizing Overall Braking Induced by Lane change (MOBIL) [22] and Lane change Model with Relaxation and Synchronization (LMRS) [23] are the main models in this category.

In addition, there are platoon algorithms [24,25] that allow multiple vehicles in the platoon to switch lanes simultaneously.

Our final goal for this work is to obtain a hybrid decision-making algorithm that combines the ability of an artificial intelligence algorithm to learn and reproduce human behavior and overcome one of its biggest weaknesses: the fact that it is a black box model that prevents us from understanding how the algorithm works.

### 3. Methodology

The purpose of this work is to develop an incentive-based decision algorithm for lane-switching maneuvers based upon the comparison of two variables that reflect, respectively, the risk incurred when changing lanes and the benefit of switching lanes.

To this end, we use lane change samples performed by human drivers from MOOVE (MOonitoring Outillé pour le Véhicule dans son Environnement (Tooled Monitoring for the Vehicle in its Environment)) database [26], a naturalistic driving database of the Vedecom Institute that was introduced in 2015 and meant to provide a better interpretation of the environment as it would be perceived by autonomous vehicles. Over 1 million km have been gathered by using human-driven cars equipped with standard autonomous cars sensors (radars, lidar, and cameras, Figure 1). The recorded data represent all possible circulation conditions. The database includes both quantitative and qualitative variables for all the surrounding vehicles detected by the sensors and the ego-vehicles. The data are recorded in real time then imported in a data center to perform analyses and merge data from the sensors to obtain a more robust measurement.

<figure><img src="image_4.png" /><figcaption>Figure 1. MOOVE vehicle.</figcaption></figure>

All MOOVE vehicles are equipped with:

* Three technologies of exteroceptive sensors (lidar, camera, and radar).

* Global navigation satellite system (GNSS).

* Inner cameras for driver monitoring.

* Annotation tool for the driver.

* Real-time recording hardware.
To quantify the degree of risk, we take into account the longitudinal distance and relative velocity between the ego-vehicle and the vehicles in the target lane. When the distance is reduced and/or the relative speed is lowered, collision probability increases, so risk is considered higher. We use a naturalistic driving database to assess risk generally adopted by human drivers during lane change maneuvers [27]. For each vehicle in the future lane, we obtain a bi-variant histogram that represents the distribution of lane-changing samples in a database over longitudinal distance and relative speed to the ego-vehicle. We also split the scale into four ego-vehicle velocity ranges, 0–11 m/s, 11–22 m/s, 22–33 m/s, and 33–39 m/s, which correspond to four driving modes resulting into different behavior.

The histograms (Figures 2 and 3) allow us to define a new measure for quantifying risk in a given situation: the more samples the human has performed in riskier conditions, the safer the maneuver, because it means that more drivers are prone to change lanes in these conditions. In this situation (Figure 4), and for the vehicle ahead in the target lane (vehicle 2), “riskier situation” means lower longitudinal distance and/or lower relative speed. This ends in a cumulative histogram instead of a regular histogram, characterized by Equation (1) and represented in Figure 2.

$$cH_{front(low-high)}(i, j) = \sum_{n=1}^{i} \sum_{m=1}^{j} H_{front(low-high)}(n, m) \quad (1)$$

where $cH_{front(low-high)}$ is the matrix of the cumulative histogram for the front vehicle, and $i$ and $j$ are the longitudinal distance and longitudinal relative speed between the ego-vehicle and the front vehicle in the target lane, respectively. $H_{front(low-high)}$ is the bi-variant histogram. ($low-high$) represents the interval of the ego-vehicle's speed corresponding to the situation.

To make the results uniform, a standardization is applied to constraint the risk between two values 0 and 1 based on the following equation:

$$uH_{front(low-high)}(i, j) = \frac{cH_{front(low-high)}(i, j) - \min(cH_{front(low-high)})}{\max(cH_{front(low-high)}) - \min(cH_{front(low-high)})} \quad (2)$$

where $uH_{front(low-high)}$ is the total $n$ of samples for which $Interdistance < i$ and $\Delta Speed < j$ ($\Delta Speed$ is the speed difference between the ego-vehicle and the vehicle in the target lane).

Moreover, an inversion of the scale is performed, wherein 1 (which means that a maximum of drivers is inclined to make a lane change in such a situation) becomes 0 (which means minimum risk) and 0 becomes 1. The result is described by Equation (3) and represented in Figure 3.

$$R_{front}(i, j) = 1 - uH_{front(low-high)}(i, j) \quad (3)$$

where $R_{front}$ is the matrix of risk for the front vehicle.

On the other side, we use a criterion we call Gain (G) that quantifies the potential gain of time if the lane change is performed and the attractiveness of the adjacent lane, and it is inspired by the work of Kestind and all [22].

$$G = \begin{cases} V_{ft} - V_f & \text{if } V_{ft} < V_l \\ V_l - V_f & \text{if } V_{ft} > V_l \end{cases} \quad (4)$$

where $V_{ft}$ is the speed of the front vehicle in the target lane (vehicle 2), $V_f$ is the speed of the front vehicle in the same lane (vehicle 1), and $V_l$ is the speed limitation applied to the current road.
<figure><img src="image_5.png" /><figcaption>Figure 2. Bi-variant cumulative histogram divided in 4 speed intervals for the front vehicle.</figcaption></figure>

<figure><img src="image_6.png" /><figcaption>Figure 3. Standardized bi-variant cumulative histogram divided in 4 speed intervals for the front vehicle.</figcaption></figure>
<figure><img src="image_7.png" /><figcaption>Figure 4. Road configuration with the surrounding vehicles before the maneuver (red: ego-vehicle).</figcaption></figure>

For the decision algorithm, the first step is to predict future trajectories of the sur-
rounding vehicles [28,29], typically the front and rear vehicles in the target lane. For each
one, the trajectory prediction is computed over 3 seconds, afterward, precision is no longer
sufficient. The predicted trajectories are used to calculate the evolution of risk associated
with the vehicles in the target lane (the front and the rear one if there is any), and thus
obtain risk evolution curves. The risk related to the vehicle in front is expected to decline
as it moves away, while the one related to the rear one is expected to rise as it moves closer.
The risk associated with the whole maneuver is the maximum between the risk of the front
vehicle and the rear one at each time step, and we consider the moment when the two
curves intersect the optimum moment to start the maneuver and change lanes, as it is the
minimum of the whole risk.

To confirm this assumption, the algorithm was tested on samples of lane-changing maneuvers extracted from the MONitoring Outillé pour le Véhicule dans son Environnement (Tooled Monitoring for the Vehicle in its Environment) (MOOVE) database. A path prediction was made between 6 s and 3 s before lane crossing (Figure 5) to simulate the decision in real time and calculate the risk of the expected trajectory. For situations such as the one previously described, this gives us a model as described in Figure 6. The lane shift of the ego-vehicle represents the lateral distance between the center of the front bumper and the right lane marking. The discontinuity in the middle of the curve coincides with the time of the lane crossing. The top one is the evolution of risks based on the predicted trajectories over time. As we can see, the crossing moment is close to the moment when the driver starts the maneuver. In the samples we tested, it is between 0.5 and 1.5 s.

<figure><img src="image_8.png" /><figcaption>**Figure 5.** Timeline of the predicted trajectories.</figcaption></figure>
<figure><img src="image_9.png" /><figcaption>**Figure 6.** Evolution of the risk for the front vehicle (blue), the rear vehicle (red), and the lane shift of the ego-vehicle.</figcaption></figure>

This method gives us the optimal time to initiate the maneuver, and the risk associated. However, to decide whether the lane changing should be performed or not, we need to know if the risk is worth it.

At the end, the last step is to decide if the lane change should be made or not based on the gain and the risk at the optimum instant (Figure 7). To achieve this task, we developed and compared three decision algorithms: decision tree, random forest, and artificial neural network.

Since these three algorithms are based on learning from samples, we need a database of maneuvers. We chose HighD [30] which is a dataset of naturalistic vehicle trajectories recorded on German highways using a drone. Typical limitations of established traffic data collection methods such as occlusions are overcome by the aerial perspective. Traffic was recorded at six different locations and includes more than 110,500 vehicles. Each vehicle's trajectory, including vehicle type, size, and maneuvers, is automatically extracted. Using state-of-the-art computer vision algorithms, the positioning error is typically fewer than ten centimeters. Although the dataset was created for the safety validation of highly automated vehicles, it is also suitable for many other tasks such as the analysis of traffic patterns or the parameterization of driver models.

<figure><img src="image_10.png" /><figcaption>**Figure 7.** Diagram of the decision algorithm.</figcaption></figure>
The extraction of positive samples (samples corresponding to lane changes) is a rather easy task. Since the lanes on which the vehicles are located are labeled on the database, it suffices to scan the entire recordings in search of the moments when the value corresponding to the number of the lane shifts.

However, for negative samples, the task is less trivial. Indeed, it is not easy to distinguish the moments during which the driver did not need to change lanes from the moments during which the driver wanted to change lanes but did not do so because of a high risk compared with the gain brought by the change in lanes. The following protocol is defined: we scan all the recordings, vehicle by vehicle, with a step of 10 seconds, and at each step we calculate the gain and the risk, if the gain exceeds the critical value, which is defined at 2, and the risk exceeds 0.5 with no lane change made within 10 seconds, we consider the sample negative. On the entire HighD database, we obtained 12.218 positive and 10.973 negative samples.

## 4. Decision Algorithms

This section is dedicated to the last brick of our decision method, which is the decision-making algorithm, which must decide whether the lane change should be made or not based on the parameters mentioned above: the risks and gain. In a previous article [10], we already used this methodology with fuzzy logic as a decision algorithm. We compare the results later.

### 4.1. Decision Tree

A decision tree is a decision algorithm representing a set of choices in a graphical form of a tree. The different possible decisions are located at the ends of the branches (the "leaves" of the tree) and are reached according to decisions made at each stage (Figure 8). A major advantage of this algorithm is that it can be automatically computed from databases by learning algorithms. These algorithms select the discriminating variables and can thus make it possible to extract logical rules which did not initially appear in the raw data.

<figure><img src="image_11.png" /><figcaption>**Figure 8.** Decision tree structure.</figcaption></figure>

To develop this algorithm, we used the tools implemented under Matlab, and we split the database in two (70%–30%) to perform a cross-validation. This resulted in a tree with 28 levels, and the validation on the HighD database is summarized in Table 1.

<table><caption>**Table 1.** Confusion matrix for decision tree.</caption><thead><tr><th rowspan="2"></th><th rowspan="2"></th><th colspan="2">Decision Tree</th></tr><tr><th>Positive</th><th>Negative</th></tr></thead><tbody><tr><th rowspan="2">Real Decision</th><th>Positive</th><td>75.53%</td><td>24.47%</td></tr><tr><th>Negative</th><td>21.64%</td><td>78.36%</td></tr></tbody></table>
## 4.2. Random Forest

The random forest is composed of several decision trees working independently on the same problem. Each produces a decision, and it is the assembly of the decision trees that will give an overall estimate. A random forest works on the principle of bagging (Figure 9). The first step consists of dividing a dataset into subsets (decision trees), then proposing a training model to each of its groups. Finally, the results of these trees are combined in order to obtain the most robust prediction.

<figure><img src="image_12.png" /><figcaption>**Figure 9.** Random forest structure.</figcaption></figure>

In our case, we developed a model with 30 learners (decision trees) and trained it on the HighD samples, and the results of the validation set are presented in Table 2.

<table><caption>**Table 2.** Confusion matrix for random forest.</caption><thead><tr><th rowspan="2"></th><th rowspan="2"></th><th colspan="2">Random Forest</th></tr><tr><th>Positive</th><th>Negative</th></tr></thead><tbody><tr><th rowspan="2">Real Decision</th><th>Positive</th><td>87.3%</td><td>12.7%</td></tr><tr><th>Negative</th><td>20.7%</td><td>79.3%</td></tr></tbody></table>

## 4.3. Artificial Neural Network

Artificial neural networks are simple imitations of the functions of neurons in the human brain to solve machine learning problems. They can take different forms depending on the object of the data they process and according to their complexity and the data processing method (Figure 10). Furthermore, they can be used in various applications such as image processing, signal processing, language processing, control, optimization or classification.

In our case, we used an artificial neural network as a decision algorithm that takes risk and gain as input and gives a binary decision as output. We tested several architectures and parameters for the network and concluded that it is not necessary to have many hidden layers and neurons per layer because it does not improve the results. The selected network has three layers, with five neurons in the first two layers, and two in the last, and the neuron activation function is “softmax”. The obtained results are compiled in Table 3.

<table><caption>**Table 3.** Confusion matrix for artificial neural network.</caption><thead><tr><th rowspan="2"></th><th rowspan="2"></th><th colspan="2">ANN</th></tr><tr><th>Positive</th><th>Negative</th></tr></thead><tbody><tr><th rowspan="2">Real Decision</th><th>Positive</th><td>75.84%</td><td>24.16%</td></tr><tr><th>Negative</th><td>21.50%</td><td>78.50%</td></tr></tbody></table>
<figure><img src="image_13.png" /><figcaption>**Figure 10.** Artificial neural network structure.</figcaption></figure>

4.4. *Driving Simulation*

To validate the behavior of the different algorithms, we developed a driving simulator to reproduce the situations that the vehicle will face on the highway and when it will have to make the decision to change lanes or not. The graphic aspect not being a priority, the visualization is rudimentary so as not to weigh down the simulation (Figure 11).

<figure><img src="image_14.png" /><figcaption>**Figure 11.** Graphical representation of the driving simulator.</figcaption></figure>

The simulation is divided into two parts, the first is a scenario generator, which sets the initial conditions of the simulation. The modified variables are the longitudinal position of the 4 vehicles (and thus the inter-distances), the speeds of each vehicle, the speed limit applied to the road, and whether the two vehicles on the target lane exist.

The second part is the simulator itself, which calculates the trajectories of the four vehicles and calculates the decision-making algorithm in parallel. If the latter decides to change lanes, then the ego-vehicle performs the maneuver and the simulator checks that there is no collision. Each scenario is then saved for post-processing (Figure 12). A total of 3740 scenarios was generated and for each scenario the four algorithms were tested. Table 4 represents the rate of positive and negative decisions by the different algorithms on all the scenarios generated.

<figure><img src="image_15.png" /><figcaption>**Figure 12.** Diagram of driving simulator.</figcaption></figure>

In order to obtain a representation of the risk taken by the algorithms, we drew Figure 13 which represents the histogram of the percentage of maneuvers carried out with a risk higher than the level of the bar for all the algorithms.
<table><caption>**Table 4.** Positive and negative decision rate for each algorithm in the simulator.</caption><thead><tr><td></td><td>Positive</td><td>Negative</td></tr></thead><tbody><tr><td>Decision Tree</td><td>37.06%</td><td>62.93%</td></tr><tr><td>Random Forest</td><td>36.07%</td><td>63.93%</td></tr><tr><td>ANN</td><td>36.58%</td><td>63.42%</td></tr><tr><td>Fuzzy Logic</td><td>33.11%</td><td>66.89%</td></tr></tbody></table>

<figure><img src="image_16.png" /><figcaption>**Figure 13.** Histogram of the level of risk taken by each algorithm.</figcaption></figure>

**5. Discussion**

In the light of all the results compiled in the previous section, we noticed that the algorithms developed in this paper exceed the results obtained with fuzzy logic algorithms when the evaluation criterion is the fidelity of the decisions compared with the database HighD, and therefore fidelity in relation to human behavior. This is normal and expected knowing that these algorithms learned from samples from the same database that is used to evaluate them, with the best result obtained with random forest. It is difficult, according to us, to obtain better result on this evaluation criterion for several reasons. First, because the different used samples did not present the same driver, which leads to behavioral differences. Moreover, the driving conditions are not taken into account; the behavior may be different at night or in rainy weather, and finally, there may be some drivers in the database who behaved very dangerously at certain times. However, this is not statistically significant and is drowned in the other samples with a more classic behavior, and is therefore not learned by the models developed.

For the obtained results with the driving simulator, two interesting remarks are noted: First, the table shows that the algorithms behave very similarly, with close positive and negative decision rates, with a noticeable difference in fuzzy logic. This is again explained by the fact that the first three algorithms are based on learning, while the last one is based on manual adjustment. Secondly, the table tells us about the similarity of behavior between the algorithms but does not tell us about the level of risk taken during the maneuvers. To this end, we must look at the histograms in Figure 13. We notice the same trend for all the algorithms but also that fuzzy logic takes more risk than the other algorithms, which shows that the algorithms developed in this article are not only more similar to human behavior but also that they take less risk within the simulator. We can also notice that the lane change rate for a risk greater or equal to 0.95 is lower than 0.67% for all the algorithms, with a
minimum established at 0.45% for random forest. We therefore conclude that random forest is the one that obtained the best results among those compared in this paper.

## 6. Conclusions

This paper presents a continuation of a methodology for risk assessment and decision making for lane-changing maneuvers. The first part is to assess the risk associated with the maneuver. For each vehicle in the target lane (the front and rear vehicle), we performed a trajectory prediction over 3 seconds to determine the best moment to start the maneuver. Secondly, the decision algorithm is used to decide whether or not the decision should be performed. We chose artificial neural networks, decision trees, and random forests, which we also compared with fuzzy logic. These different algorithms learned from samples from the HighD database.

It appears that the three algorithms obtain better results than fuzzy logic on the database. They were also tested in a developed driving simulator, which showed that the different algorithms behave in an almost similar way. There is also an improvement in risk taking during maneuvers; in fact, the difference is notable for the benefit of the three algorithms developed. Future work will consist of experimental validation of the results obtained with Vedecom vehicles.

**Author Contributions:** Investigation, A.M.; Methodology, A.M.; Project administration, V.J., A.C. and M.B.; Supervision, A.C. and M.B.; Validation, V.J., A.C. and M.B.; Writing—original draft, A.M.; Writing—review & editing, V.J., A.C. and M.B. All authors have read and agreed to the published version of the manuscript.

**Funding:** This research was funded by VeDeCoM Institute grant number 0033 1 30 97 01 80.

**Conflicts of Interest:** The authors declare no conflict of interest.

## Abbreviations

<table><tr><td>TIV</td><td>Inter-Vehicular Time</td></tr><tr><td>TTC</td><td>Time To Collision</td></tr><tr><td>TTR</td><td>Time To React</td></tr><tr><td>CORSIM</td><td>CORridor SIMulation</td></tr><tr><td>ARTEMIS</td><td>Analysis of Road Traffic and Evaluation by Micro-Simulation</td></tr><tr><td>MOBIL</td><td>Minimizing Overall Braking Induced by Lane change</td></tr><tr><td>LMRS</td><td>Lane change Model with Relaxation and Synchronization</td></tr><tr><td>MOOVE</td><td>Monitoring Outillé pour le Véhicule dans son Environnement (Tooled Monitoring for the Vehicle in its Environment)</td></tr><tr><td>SAE</td><td>Society of Automotive Engineers</td></tr><tr><td>ANN</td><td>Artificial Neural Network</td></tr></table>

## References

1. J3016_201806; Taxonomy and Definitions for Terms Related to Driving Automation Systems for On-Road Motor Vehicles; SAE International: Warrendale, PA, USA, 2021.

2. Abdeen, M.A.R.; Yasar, A.; Benaida, M.; Sheltami, T.; Zavantis, D.; El-Hansali, Y. Evaluating the Impacts of Autonomous Vehicles' Market Penetration on a Complex Urban Freeway during Autonomous Vehicles' Transition Period. Sustainability **2022**, *14*, 10094. [CrossRef]

3. Papadoulis, A.; Quddus, M.; Imprialou, M. Evaluating the safety impact of connected and autonomous vehicles on motorways. Accid. Anal. Prev. **2019**, *124*, 12–22. [CrossRef] [PubMed]

4. Salonen, A.O.; Haavisto, N. Towards Autonomous Transportation. Passengers' Experiences, Perceptions and Feelings in a Driverless Shuttle Bus in Finland. Sustainability **2019**, *11*, 588. [CrossRef]

5. Rasouli, A.; Tsotsos, J.K. Autonomous Vehicles That Interact With Pedestrians: A Survey of Theory and Practice. IEEE Trans. Intell. Transp. Syst. **2020**, *21*, 900–918. [CrossRef]

6. Gipps, P.G. A behavioral car-following model for computer simulation. Transp. Res. Part B Methodol. **1981**, *15*, 105–111. [CrossRef]

7. Zhang, L.; Cai, S.; Zhang, Y.; Zhang, M. Comparison of lane changing algorithms between NGSIM and CORSIM. In Proceedings of the 2010 IEEE 71st Vehicular Technology Conference (VTC), Taipei, Taiwan, 16–19 May 2010; IEEE: Piscataway, NJ, USA, 2010.
8. Li, G.; Yang, Y.; Li, S.; Qu, X.; Lyu, N.; Li, S.E. Decision making of autonomous vehicles in lane change scenarios: Deep reinforcement learning approaches with risk awareness. *Transp. Res. Part C Emerg. Technol.* **2022**, *134*, 103452. [CrossRef]

9. Deng, Q.; Söffker, D. Improved Driving Behaviors Prediction Based on Fuzzy Logic-Hidden Markov Model (FL-HMM). In Proceedings of the 2018 IEEE Intelligent Vehicles Symposium (IV), Changshu, China, 26–30 June 2018; pp. 2003–2008.

10. Mechernene, A.; Judalet, V.; Chaibet, A.; Boukhnifer, M. Lane Change Decision Algorithm based on Risk Prediction and Fuzzy Logic Method. In Proceedings of the 2021 25th International Conference on System Theory, Control and Computing (ICSTCC). IEEE: Piscataway, NJ, USA, 2021.

11. Guo, J.; Kurup, U.; Shah, M. Is it Safe to Drive? An Overview of Factors, Metrics, and Datasets for Driveability Assessment in Autonomous Driving. *IEEE Trans. Intell. Transp. Syst.* **2020**, *21*, 3135–3151. [CrossRef]

12. Iberraken, D.; Adouane, L.; Denis, D. Reliable risk management for autonomous vehicles based on sequential bayesian decision networks and dynamic inter-vehicular assessment. In Proceedings of the 2019 IEEE Intelligent Vehicles Symposium (IV), Paris, France, 9–12 June 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 2344–2351.

13. Brannstrom, M.; Coelingh, E.; Sjoberg, J. Model-Based Threat Assessment for Avoiding Arbitrary Vehicle Collisions. *IEEE Trans. Intell. Transport. Syst.* **2010**, *11*, 658–669. [CrossRef]

14. Tamke, A.; Dang, T.; Breuel, G. A flexible method for criticality assessment in driver assistance systems. In Proceedings of the 2011 IEEE Intelligent Vehicles Symposium (IV), Baden-Baden, Germany, 5–9 June 2011; pp. 697–702. [CrossRef]

15. Hillenbrand, J.; Spieker, A.M.; Kroschel, K. A Multilevel Collision Mitigation Approach-Its Situation Assessment, Decision Making, and Performance Tradeoffs. *IEEE Trans. Intell. Transport. Syst.* **2006**, *7*, 528–540. [CrossRef]

16. Laugier, C.; Paromtchik, I.E.; Perrollaz, M.; Yong, M.; Yoder, J.D.; Tay, C.; Mekhnacha, K.; Nègre, A. Probabilistic analysis of dynamic scenes and collision risks assessment to improve driving safety. *IEEE Intell. Transp. Syst. Mag.* **2011**, *3*, 4–19. [CrossRef]

17. Rahman, M.; Chowdhury, M.; Xie, Y.; He, Y. Review of microscopic lane-changing models and future research opportunities. *IEEE Trans. Intell. Transp. Syst.* **2013**, *14*, 1942–1956. [CrossRef]

18. Hidas, P. Modelling vehicle interactions in microscopic simulation of merging and weaving. *Transp. Res. Part C Emerg. Technol.* **2005**, *13*, 37–62. [CrossRef]

19. He, S.; Zeng, J.; Zhang, B.; Sreenath, K. Rule-Based Safety-Critical Control Design using Control Barrier Functions with Application to Autonomous Lane Change. In Proceedings of the 2021 American Control Conference (ACC), New Orleans, LA, USA, 25–28 May 2021; pp. 178–185.

20. Wang, J.; Zhang, Q.; Zhao, D.; Chen, Y. Lane Change Decision-making through Deep Reinforcement Learning with Rule-based Constraints. In Proceedings of the 2019 International Joint Conference on Neural Networks (IJCNN), Budapest, Hungary. 14–19 July 2019; pp. 1–6.

21. Vechione, M.; Cheu, R.L. Comparative evaluation of adaptive fuzzy inference system and adaptive neuro-fuzzy inference system for mandatory lane changing decisions on freeways. *J. Intell. Transp. Syst.* **2021**, 1–15. [CrossRef]

22. Kesting, A.; Treiber, M.; Helbing, D. General lane-changing model MOBIL for car-following models. Transportation Research Record: *J. Transp. Res. Board* **2007**, *1999*, 86–94. [CrossRef]

23. Schakel, W.J.; Knoop, V.L.; van Arem, B. Integrated lane change model with relaxation and synchronization. *Transp. Res. Rec. J. Transp. Res. Board* **2012**, *2316*, 47–57. [CrossRef]

24. Latrech, C.; Chaibet, A.; Boukhnifer, M.; Glaser, S. Integrated longitudinal and lateral networked control system design for vehicle platooning. *Sensors* **2018**, *18*, 3085. [CrossRef] [PubMed]

25. Chen, J.; Bhat, M.; Jiang, S.; Zhao, D. Advanced Driver Assistance Strategies for a Single-Vehicle Overtaking a Platoon on the Two-Lane Two-Way Road. *IEEE Access* **2020**, *8*, 77285–77297. [CrossRef]

26. Bonic, L.; Galizia, A.D.; Bracquemond, A. *Identification of Real-World Driving Scenarios for the Functional Safety of Autonomous Vehicles*; EVS30 Symposium: Stuttgart, Germany, 2017; pp. 369–376.

27. Mechernene, A.; Judalet, V.; Chaibet, A.; Boukhnifer, M. Risk analysis method for a lane change maneuvers on highways. In Proceedings of the 2020 International Conference on Control, Automation and Diagnosis (ICCAD), Paris, France, 7–9 October 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–7.

28. Benterki, A.; Boukhnifer, M.; Judalet, V.; Maaoui, C. Artificial intelligence for vehicle behavior anticipation: Hybrid approach based on maneuver classification and trajectory prediction. *IEEE Access* **2020**, *8*, 56992–57002. [CrossRef]

29. Benterki, A.; Judalet, V.; Choubeila, M.; Boukhnifer, M. Long-Term Prediction of Vehicle Trajectory Using Recurrent Neural Networks. In Proceedings of the IECON 2019—45th Annual Conference of the IEEE Industrial Electronics Society, Lisbon, Portugal, 14–17 October 2019; pp. 3817–3822.

30. Krajewski, R.; Bock, J.; Kloeker, L.; Eckstein, L. The highd dataset: A drone dataset of naturalistic vehicle trajectories on german highways for validation of highly automated driving systems. In Proceedings of the 21st International Conference on Intelligent Transportation Systems (ITSC), Maui, HI, USA, 4–7 November 2018; IEEE: Piscataway, NJ, USA, 2018.