Next Article in Journal
Prediction of PM2.5 Concentration Based on Deep Learning, Multi-Objective Optimization, and Ensemble Forecast
Previous Article in Journal
Anthropression as a Factor Affecting the Content of Heavy Metals in the Flowers of Sambucus nigra L.—A Medicinal Plant Affecting Human Health
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis and Prediction of Risky Driving Behaviors Using Fuzzy Analytical Hierarchy Process and Machine Learning Techniques

1
School of Transportation and Logistics Engineering, Wuhan University of Technology, Wuhan 430063, China
2
Intelligent Transportation Systems Research Center, Wuhan University of Technology, Wuhan 430063, China
3
School of Traffic and Transportation Engineering, Central South University, Changsha 410075, China
4
Department of Civil Engineering, College of Engineering, Qassim University, Buraydah 51452, Saudi Arabia
5
Civil & Environmental Engineering Department Research Center for Smart Mobility & Logistics, King Fahd University of Petroleum & Mineral, Dhahran 31261, Saudi Arabia
*
Authors to whom correspondence should be addressed.
Sustainability 2024, 16(11), 4642; https://doi.org/10.3390/su16114642
Submission received: 4 April 2024 / Revised: 21 May 2024 / Accepted: 27 May 2024 / Published: 30 May 2024
(This article belongs to the Section Sustainable Transportation)

Abstract

:
Driver behavior plays a pivotal role in ensuring road safety as it is a significant factor in preventing traffic crashes. Although extensive research has been conducted on this topic in developed countries, there is a notable gap in understanding driver behavior in developing countries, such as Pakistan. It is essential to recognize that the cultural nuances, law enforcement practices, and government investments in traffic safety in Pakistan are significantly different from those in other regions. Recognizing this disparity, this study aims to comprehensively understand risky driving behaviors in Peshawar, Pakistan. To achieve this goal, a Driver Behavior Questionnaire was designed, and responses were collected using Google Forms, resulting in 306 valid responses. The study employs a Fuzzy Analytical Hierarchy Process framework to evaluate driver behavior’s ranking criteria and weight factors. This framework assigns relative weights to different criteria and captures the uncertainty of driving thought patterns. Additionally, machine learning techniques, including support vector machine, decision tree, Naïve Bayes, Random Forest, and ensemble model, were used to predict driver behavior, enhancing the reliability and accuracy of the predictions. The results showed that the ensemble machine learning approach outperformed others with a prediction accuracy of 0.84. In addition, the findings revealed that the three most significant risky driving attributes were violations, errors, and lapses. Certain factors, such as clear road signage and driver attention, were identified as important factors in improving drivers’ risk perception. This study serves as a benchmark for policymakers, offering valuable insights to formulate effective policies for improving traffic safety.

1. Introduction

Globally, over 1.35 million people die from traffic crashes each year, which not only cause significant harm to human lives and physical infrastructure but also have a considerable adverse impact on social and economic environments, accounting for nearly 3% of the gross national product [1,2,3]. These incidents not only affect the victims and their acquaintances but also have a broader impact on the society [3]. Traffic-related mortalities are disproportionately distributed between developed countries and those in developing nations. For example, it is reported that 90% of total traffic-related mortalities occur in low- and middle-income developing countries [4]. Implementing effective countermeasures to enhance road traffic safety becomes paramount for road safety agencies in developing countries.
Pakistan, a low–middle-income developing country, has faced a rapid surge in motor vehicle accidents in recent years [5]. For instance, Umair et al. [6] reported in 2017 that an average of 15 persons per day were killed due to road crashes. According to the latest WHO data from 2020, road traffic accidents in Pakistan led to 28,170 deaths, accounting for 1.93% of total deaths. The age-adjusted death rate is 15.18 per 100,000 population, ranking Pakistan 95th globally [7]. In Peshawar, Rescue (an emergency rescue service), 1122 documented 356 fatal and 870 severe non-fatal (severe injury) road traffic accidents in 2018 [3]. These figures were presented to the respondents to inform them about the risk of road traffic accidents and, consequently, the need for road safety enhancement was realized. In terms of the number of fatal traffic crashes, Pakistan ranks 95th worldwide [8]. It is worth mentioning that like other developing countries, the number of crashes in Pakistan is generally underreported, suggesting that the true number of fatalities may be greater. Moreover, the nation loses USD 6.48 million annually as a result of road crashes [9,10]. Road traffic crashes are the second leading cause of disability, the fifth leading cause of total healthy life years lost, and the eleventh leading cause of premature mortality in Pakistan [11,12]. These numbers highlight the critical need for efforts to dramatically increase road safety, which was the main driving force behind the current study.
Globally, researchers have made significant efforts to analyze factors surrounding traffic crashes. Two key areas are at the center of their endeavors: crash frequency and crash injury severity. Lord and Mannering [13] examined crash frequency data, proposed other approaches, and discussed the limits of such data analysis. Likewise, prior research [14,15] has assessed data features, methodological options, and restrictions for examining crash severity data. Both of these approaches have come to the conclusions that the causes of collisions can be broadly categorized into road, vehicle, and driver categories. More specifically, existing research [16] has revealed that the driver accounts for almost 90% of road crashes globally, a tendency that is seen in the majority of developed nations. Moreover, up to 96% of crashes are attributed, at least partially, to driver mistakes [17]. Consequently, improving human variables that influence dangerous driving behaviors is crucial for creating effective treatments to reduce the likelihood of crashes and increase road safety [18,19].
Understanding the driver’s perception of the road conditions is vital for road safety management. It is anticipated that this perception held immense power over driving behavior and task performance. However, despite its significance, accurately assessing safety perception remains a challenging task [20,21]. With an emphasis on the human behavior element, which is a significant cause of these incidents, the current study seeks to uncover the key variables influencing driver behavior in traffic crashes.
It is established from the reviewed literature [22,23,24] that driver behavior can vary significantly depending on contextual factors like driver demographics, traffic density, driver demographics, and weather patterns. To deal with uncertainty and heterogeneity in driver behavior, new analytics methods, such as Fuzzy Analytical Hierarchy Process (Fuzzy AHP) and machine learning, can grasp the hidden and evolving patterns surrounding drivers’ decision making. Fuzzy AHP in particular can account for uncertainty in driving behavior through the application of fuzzy nets. However, most existing studies focused on the application of Fuzzy AHP for driver behavior assessment are limited to theoretical frameworks and simulated environments lacking suitable validation through empirical testing and evaluation. There may be a need for studies that utilize Fuzzy AHP to analyze driver behavior in specific contexts and identify context-specific factors that influence driving decisions and actions.
The lack of a consistent structure to evaluate driver behavior presents a challenge in identifying the most important aspects that should be considered when examining driver behavior. The scarcity of data on driver behavior in developing countries, such as Pakistan, poses a significant challenge, particularly given that few studies have been conducted on this topic. Moreover, the available data are often outdated or have limited scope. Compared to drivers in other countries, drivers in Pakistan may have different perceptions of road safety, which could impact the criteria used to assess a driver’s behavior.
The current study is a continuation of a recent study that aimed to analyze driver behavior in Peshawar by focusing on a set of 14 factors using the Fuzzy AHP technique [25]. The increase in the number of factors from 14 to 25 was based on their significance, such as angered responses, aggressive maneuvers near traffic lights, proximity to other vehicles, and non-adherence to speed limits. Considering the limitations of the previous study, these factors were incorporated based on empirical evidence suggesting their critical impact on driving behavior, which had not been included in the previously mentioned study. Research in developed countries has demonstrated that these factors play a vital role in influencing driver behavior. The previous study randomly considered the number of respondents to be around 120, which was deemed adequately representative of the study area. Consequently, this study collected data from 306 participants. The determination of the number of participants was based on individuals who reported driving more than 150 km per week within the study context. Furthermore, the sample size was determined based on various factors, such as population size, confidence intervals, and a desirable margin of error.
The objectives of this study are as follows. First, the study conducts a driver behavior questionnaire, including key factors related to road crashes and socioeconomic characteristics of drivers, to understand driver behavior and its impact on traffic safety in Peshawar, Pakistan. Given the context of a developing country and the absence of comprehensive nationwide driver behavior data, this study employed a DBQ for data collection. Second, the study employs Fuzzy AHP to rank the criteria for the most influential factors in road crashes, as there is a scarcity of research in this area within the study region. The purpose of using Fuzzy AHP is to analyze the rank and weight of driver behavior. This study specifically considered three main factors, a violation, error, and lapses, and sub-criteria. Third, this study uses ML techniques, including Naïve Bayes (NB), Support Vector Machine (SVM), Decision Tree Classifier (DT), Random Forest (RF), and Ensemble Model (EM), to accurately and precisely predict risky driving behaviors by incorporating the three main causes of crashes. The results of this study may assist stakeholders and policymakers in developing appropriate approaches to effectively address driving behavior, especially in low-income countries like Pakistan and similar countries with similar demographic and social characteristics, such as India, Sri Lanka, Nepal, and Bangladesh.
The remaining four sections of the article are organized as follows. The second section contains a comprehensive literature review. The third section methodology contains information about the method, research location, data collecting, and expressed preference questionnaire. In section four, which is the results and discussion, findings of the study’s descriptive statistics and model estimations are described. Section five contains conclusions, limitations, and suggestions for further research.

2. Literature Review

Driver behavior plays a crucial role in road safety and efficient transportation. It is influenced by several factors, such as speeding and violating traffic laws, which increase the likelihood of crashes and have negative social, financial, and economic effects [26,27]. Over the span of more than two decades, numerous publications have addressed the creation, modification, and evaluation of these methods. In 1990, a study by Reason et al. [28] introduced a 50-item, self-report DBQ, in which drivers rated the frequency of risky behaviors executed while driving. Likewise, another study identified almost 200 studies that have since used the DBQ in part or in its entirety [29]. According to a previous study conducted by af Wåhlberg et al. [30], one of the most popular ways to assess driving behavior is using the DBQ. In the initial study by Reason, Manstead, Stradling, Baxter, and Campbell [28], more than 500 drivers aged 20 years of age and older participated. According to principal components analysis, three factors, violations, errors, and lapses, accounted for 33% of the variance in replies. A violation is an act of disobeying laws or a norm of conduct that is seen as acceptable by society. The author claims that violations are willful deviations from the anticipated conduct required to preserve the security of a potentially harmful system. Usual infractions include speeding and operating a vehicle while under the influence of drugs or alcohol. On the other side, errors are described as when planned actions fail to provide the desired results. The eight items with the strongest component loadings for violations, errors, and lapses from past studies were used by Parker et al. [31]. A sample of 1656 British drivers, ranging in age from 17 to 70, was subject to a condensed test. The authors discovered that they had successfully acquired the identical three-component approach [28]. In the pursuit of knowledge, many researchers have examined the creation, improvement, and evaluation of a particular instrument during the previous two years. The 50-item DBQ, developed by Reason [32], asks respondents to describe their driving behaviors. Drivers were able to assess how frequently they engaged in dangerous activities while driving using the questionnaire. Since its conception, the DBQ has been used in approximately 200 studies, either in full or in portions [29].
The majority of crashes are due to human circumstances [33]. Driver abilities and driving style, or the driver’s performance and attitude, are two important aspects of human factors while driving. Although motivations, opinions, and personality factors impact driving style, driving abilities were linked to handling data and motor abilities [34]. In reality, driving styles and abilities may interplay to impact collision risk, the usage of safety factors [35,36], the frequency of failures [37], and rehabilitation through errors [38] research regarding driving unusually as a probable major shift for a comprehensive framework of daily driving behaviors. The DBQ was developed based on a theoretical classification of abnormal behaviors [39], discovered in their initial study on mistakes and violations, which were two empirically separate types of behavior encompassing three variables (intentional violation, hazardous errors, and ‘silly’ errors). Later, Parker et al. [40] verified the three-factor structure of the DBQ in some other research. Researchers further demonstrated that the tool is very consistent over time. The consensus in research suggests that the original three- or four-factor structure, which includes errors, lapses, and aggressive and ordinary violations, has been replicated in numerous studies conducted in different countries, including the UK [37], Australia [41], Brazil [42], China [43], Greece [44], Finland [45], New Zealand [46], Sweden [47], and Turkey [48]. It was also discovered that the DBQ demonstrated cross-cultural reliability and a higher level of resemblance among the four-factor structures among normal drivers in large samples of British, Finnish, and Dutch drivers. However, in certain research, more elements have been identified. The number of DBQ variables has occasionally been greater (e.g., five among older drivers [40] and six in the setting of the workplace) [49], and seldom lower (e.g., two within professional drivers) [50].
Regarding the methodological application of the DBQ in the literature for ranking and weighting criteria, multi-criteria decision making has been used, such as AHP and Fuzzy AHP. Researchers have employed various techniques alongside the AHP method to mitigate uncertainty and inconsistency. These techniques include interconnections [51], frequency ratio [52], sensitivity and uncertainty analysis [53], interval calculations [54], modified analytical hierarchy process [55], and the weights-of-evidence bivariate statistical model [56]. Additionally, some scholars have integrated fuzzy theory with AHP to handle the ambiguity in comparisons [57,58]. The Fuzzy AHP is considered a more accurate alternative to Fuzzy AHP, particularly in the realm of human thought and behavior. Fuzzy AHP exhibits enhanced precision and accuracy when compared to AHP [59]. For instance, a research study on driver behavior has been conducted in Pakistan using the Fuzzy AHP methodology. The AHP model has also been used in earlier research on driver behavior, as may be seen in the study [60].
In recent years, advancements in artificial intelligence, particularly in areas like ML and deep learning, have significantly transformed various fields, including traffic safety. These innovative technologies are increasingly recognized as superior to traditional models for evaluating and predicting driver behaviors [61,62,63,64,65]. There are different types of ML models, such as SVM, RF, DT, and NB. Classification issues have been successfully handled using the SVM, particularly when working with small sample sets. Its use in transportation research has been expanding significantly [66,67,68,69,70]. The study assessed the effectiveness of SVM models for forecasting automobile crashes. According to the results, SVMs fared better at predicting crashes than negative binomial models and back-propagation neural networks. Researchers [71] have presented a hybrid strategy that used particle swarm optimization and SVM to predict traffic safety results. Once the basis classifiers are built, they are combined into ensemble classifiers utilizing a variety of ensemble rules. Ten alternative ensemble rules are used to merge the basis classifiers with respect to the ensemble procedure described in this work [72]. The RF methodology is a predictive modeling approach that combines several randomized DT. It seeks to overcome the problem of excessive variation related to individual DT by averaging the results of numerous DT estimators. RF does this by aggregating the forecasts of an ensemble of randomized DT, which results in parallel estimators that effectively lower the variance component of the resultant model. The predictions are closer to an ideal model as a result of the decrease in variance. An ensemble learning strategy [73] is used to overcome this problem and handle the identification of aggressive driver behavior. By splitting up a single class imbalance problem into many category balance issues, this ensemble learning approach effectively manages datasets with class imbalances. The study emphasizes the difficulty of simulating and forecasting driver behavior with the ultimate aim of foreseeing driver behaviors before potentially hazardous circumstances arise.
In summary, various methods have been employed to analyze DBQ. However, these studies are subject to limitations, particularly concerning the number of participants and the scope of the questionnaire questions. For example, a previous study that compared driver behavior across Pakistan, China, Turkey, and Hungary on a broad scale had a limited sample size (70 participants in each country) and a constrained set of questionnaire questions. To address these limitations, the current study narrows its focus to a single-country level, specifically, the city of Peshawar in Pakistan. Peshawar was chosen due to its marked differences in culture and social norms, making it an intriguing and valuable locale for this research. The questionnaire has been refined based on a thorough review of the literature, with a specific focus on increasing the number of participants and including more questions. These modifications aim to comprehensively capture driver behaviors related to traffic safety. This study addresses the aforementioned gaps by employing Fuzzy AHP to rank criteria. This approach highlights the significance of influential factors contributing to traffic crashes. Additionally, ML techniques are utilized to predict driver behavior regarding traffic safety. The synergy between these two methods enables a comprehensive evaluation of driver behavior, which can be directly applied to the study area to prevent road traffic crashes. Furthermore, it provides valuable insights for decision makers and stakeholders in the development of effective driver behavior regulations and programs.

3. Materials and Methods

This study adopts a specific framework comprising a variety of methods. Initially, this study identified the pivotal criteria essential for evaluating driver behavior. These criteria were incorporated into the DBQ questionnaire, which was distributed to the study participants. Subsequently, we developed different levels of decision making necessary to comprehend the influence of these criteria on driver conduct. To gain a more comprehensive understanding, this study has analyzed the criteria in various ways. Additionally, we employed a specific approach, namely FAHP, which facilitates ranking criteria and assessing their importance or weight in shaping driver behavior. Finally, this study used ML models, including NB, DT classifier, SVM, RF, and EM, to predict driver behavior, as depicted in Figure 1.

3.1. Methodology

This study employed a comprehensive approach to gathering information on drivers by distributing a document-based questionnaire through emails and utilizing various tools to distribute it to over 1000 randomly selected individuals aged 18 and above. To account for the absence of younger drivers in the sample, we also collected information on this demographic by surveying university students from several institutions in Peshawar. The study included participants who currently possess a valid driver’s license, as well as those who do not [74].
The final dataset for this study consisted of 306 valid volunteer responses collected through a Google Form questionnaire distributed on various social media platforms. Data cleaning was performed to remove duplicates, handle missing values, and correct formatting errors. The cleaned dataset, containing 25 different input characteristics, was used to predict driving behavior using ML models. The 25 features were selected as an input feature, and the Likert scale of the questionnaire (1 = never to 6 = nearly all the time) was considered to be the output. The driving behaviors were categorized into six classes based on degrees of hostility, and the dataset was trained to accurately classify and describe driver behaviors.

3.2. Participants’ Statistics

According to the collected responses, the study received a response rate of 30% (N = 306), with 29% of the respondents being university students and 71% being engineers, doctors, businesspeople, etc. Furthermore, 73% of the participants had valid driver’s licenses, compared to 27% who did not. Table 1 shows the age and gender distribution of the sample, with women making up 25.9% of the respondents. The age of the drivers ranged from 20 to 30 years, representing 49.5% of the sample. In addition, the majority of participants reported traveling 208.5 km on average per week. The participants’ average percentage of active driver’s licenses was 73%.

3.3. Measures to Analyze Driver Behavior: Driver Behavior Questionnaire

Aberrant driving behaviors were measured using the expanded version of the DBQ [60]. There are three aggressive infractions, eight ordinary violations, seven errors, and seven lapses in this list. The respondents were tasked with assessing how frequently they had engaged across all 25 behaviors over the preceding year using a six-point scale (1, never; 6, nearly all the time).

Demographic Measures

Those who responded provided information on their age, gender, experiences of driving, driver occupations, number of kilometers driven by drivers, whether they had a full driving license, and weakly miles traveled, which are shown in Table 1.

3.4. Driver Behavior Perception Evaluation Criteria

The research used Fuzzy AHP to compare and assess the DBQ for various traffic cultures utilizing the well-known major driver behavior characteristics developed based on the AHP framework [60]. Such standards for driving behavior have a significant impact on traffic safety as well as being thought to be crucial for other road users’ ability to move safely. According to [75], driving behavior is undoubtedly the most important element affecting traffic safety as a whole. To examine each criterion thoroughly, the driving behavior criteria were established for the research using a three-level hierarchical structure and sorted alphabetically. The primary driver behavior criteria, such as violations, lapses, and errors, make up the first level. Figure 2 illustrates how these primary driver behavior requirements are divided into sub-criteria.

3.5. Cronbach’s Alpha—Survey Questionnaire Reliability Test

The survey conducted in Peshawar city, Pakistan with 306 participants yielded a Cronbach’s alpha score of 0.81, as shown in Table 2, indicating good internal consistency and reliability of the survey questionnaire, as depicted in Table 3. This result suggests that the items in the questionnaire consistently measured the intended construct. The obtained Cronbach’s alpha score falls within the range of values commonly accepted as indicating good internal consistency reliability. The formula for Cronbach’s alpha is shown in Equation (1).
α = K K 1 1 s 2 y s 2 x

3.6. Fuzzy Analytic Hierarchy Process (Fuzzy AHP)

Several Fuzzy AHP applications and approaches have been used by different scholars. For instance, triangular functions were used in the first Fuzzy AHP research [57]. On the other hand, [76] developed a unique level analysis method to handle the synthetic extent standards of the Fuzzy AHP in pairwise comparisons. Through a comparison scale, the latter facilitates the estimation of priorities in the hierarchical structure. The effectiveness of Fuzzy AHP modeling as a tool for making decisions is well-accepted [36,77].
The Fuzzy AHP approach was used in this study to compute the weights of the driver behavior criterion and to identify the important driver behavior criteria. To more accurately assess the factors impacting road safety, a fuzzy scale was adopted for the design of the driver behavior questionnaire. Fuzzy numbers based on pairwise comparisons were utilized to categorize the driver behavior and sub-criteria using a hierarchical approach. A pairwise comparison was used to examine the questionnaire survey data obtained from the assessors of particular traffic cultures, and the global scores were generated. A consistency test was carried out to verify that the data on driver behavior were reliable. In this part, the researchers provided a brief overview of fuzzy hierarchical evaluation ideas. By creating a questionnaire survey using a triangular fuzzy number as a pairwise comparison scale, the authors used fuzzy logic.
In the realm of fuzzy logic, algebraic operations, such as addition, subtraction, multiplication, division, and reciprocation of two triangular fuzzy numbers A 1 ˇ = l 1 , m 1 , u 1 and A 2 ˇ = l 2 , m 2 , u 2 , can be expressed mathematically in Equation (2) to Equation (6), as follows:
Addition   A 1 ˇ + A 2 ˇ = l 1 , m 1 , u 1 + l 2 , m 2 , u 2 = l 1 + l 2 , m 1 + m 2 , u 1 + u 2
Subtraction   A 1 ˇ A 2 ˇ = l 1 , m 1 , u 1 l 2 , m 2 , u 2 = l 1 l 2 , m 1 m 2 , u 1 u 2
Multiplications   A 1 ˇ × A 2 ˇ = l 1 , m 1 , u 1 × l 2 , m 2 , u 2 = l 1 l 2 , m 1 m 2 , u 1 u 2
Division   A 1 ˇ ÷ A 2 ˇ = l 1 , m 1 , u 1 l 2 , m 2 , u 2 = l 1 l 2 , m 1 m 2 , u 1 u 2
Reciprocal   A 1 ˇ 1 = l 1 , m 1 , u 1 = ( 1 u 1 , 1 m 1 , 1 l 1 )
According to the method of extent analysis by the researcher,
M g i 1 , M g i 2 , M g i 3 , ,   M g i m   i = ( 1 , 2 , 3 , 4 , 5 , n )
And, all M g i j ( j = 1 , 2 , 3 , 4 , 5 , , m ) are triangular fuzzy numbers given in Table 4. The steps of Chang’s analysis [78] can be described as follows.
Step 1. The fuzzy synthetic extent ( S i ) value concerning the i t h criterion is defined as in Equation (8).
S i = j = 1 m M g i j × i = 1 n j = 1 m M g i j 1 j = 1 m M g i j = j = 1 m l i j , j = 1 m m i j , j = 1 m u i j i = 1 n j = 1 m M g i j 1 = 1 n i = 1 m j = 1 u i j , 1 n i = 1 m j = 1 m i j , 1 n i = 1 m j = 1 l i j
where l is the lower limit value, m is the most promising value, and u is the upper limit value.
Step 2. The degree of possibility of S 2 = ( l 2 , m 2 , u 2 ) ( l 1 , m 1 , u 1 ) can be defined as
[ V S 2 S 1 = y x s u p m i n μ s 1 x , μ s 2 y
where x and y   represent the values on an axis of the membership function of each criterion. This expression can be seen in Equation (9) below.
V ( S 2 S 1 ) = 1 i f   m 2 m 1 0 i f   l 1 u 2 l 1 u 2 m 2 u 2 ( m 1 l 1 ) o t h e r w i s e
where μ d is the highest intersection point μ s 1 and μ s 2 ; the graphical presentation can be seen in Figure 3.
To compare S 1 and S 2 , both V S 1 S 2 and V S 2 S 1 are required.
Step 3. The degree of possibility for a convex fuzzy number S to be greater than k convex fuzzy numbers S i = i = 1 , 2 , 3 , k can be defined as in Equation (10).
V ( S S 1 , S 2 , , S k = V S S 1 , S S 2 , , S S k = min V S S i , i = 1 , 2 , 3 , , k
A s s u m e   t h a t   d A i = min V S i S k .
For k = 1 , 2 , 3 , , n   k i , the weight vectors are given in Equation (11) as
W = d A 1 , d A 2 , , d A m T
Step 4. Via normalization, the normalized weight vectors are given in Equation (12) as
W = ( d A 1 , d A 2 , , d A m T
In fuzzy logic, a non-fuzzy number is a precise numerical value, as opposed to a fuzzy number, which represents a range of values with varying degrees of likelihood or membership.
The symbol “W” in the statement “And, W is the non-fuzzy number” refers to a specific numerical value that is not subject to fuzziness or uncertainty. It is a crisp value that can be used in mathematical operations without ambiguity.

3.7. Machine Learning for Driver Behavior Modeling

In this study, we employ various ML techniques to predict driver behavior using a comprehensive DBQ [79,80]. By leveraging the power of ML algorithms, we aim to uncover patterns and insights that may be hidden within the collected data. The driver behavior classification system in our study encompasses four fundamental steps: data collection and preprocessing, feature and output separation, data partitioning for testing and training, and application of models (Figure 4). Each step is outlined in detail in the subsequent sections, providing comprehensive information regarding its execution and significance within the classification framework. By following this systematic approach, we aim to ensure the accuracy and reliability of our driver behavior analysis. The models used for this dataset include the following: SVM, NB, DT, RF, and EM. They are shown in Figure 4. The dataset was randomly partitioned into training (80%) and testing subsets (20%) for each class. This technique helps prevent bias and ensures the model’s accuracy and performance.
We evaluate the performance of different models, each trained on the questionnaire responses, to predict and classify driver behavior accurately. Through this analysis, we examine the varying accuracies of these models and their potential implications for enhancing driver safety and developing targeted interventions.

3.7.1. Data Preprocessing and Hyperparameter Tuning

Prior to the development of ML models, the essential steps of data preprocessing were followed. During preprocessing, steps were taken to remove the observations having null or duplicate values and, similarly, outliers. This was followed by normalization of the data to ensure uniformity and consistency. To optimize the performance of ML models and to overcome overfitting, a number of strategies, including feature selection, hyperparameter tuning, and selection of ensemble methods, were considered. Choosing relevant features having a significant impact on the output variable (driver behavior categorized under various classes) can reduce the model’s complexity, thereby preventing overfitting. Similarly, hyperparameter tuning is aimed at finding the optimal balance between model complexity and generalization performance. Additionally, considering an ensemble model can also reduce the model’s overfitting by considering the strengths and ignoring the weaknesses of individually based models. Specifically, we employed a rigorous random search procedure where hyperparameters were iteratively adjusted until an optimized model performance was obtained. The suggested hyperparameter method was selected because it can offer computationally acceptable solutions in high-dimensional space with relatively fewer iterations compared with the grid search technique.

3.7.2. Support Vector Machine (SVM)

The SVM classifier used in the present study demonstrated remarkable performance in categorizing driving behaviors. The SVM is widely recognized for its high accuracy in predicting class labels, and it proved to be effective in examining driving behavior in this study. Despite its computational complexity, SVM remains a solid choice for handling high-dimensional data and mitigating overfitting. The model’s capability to accurately categorize driving behaviors underscores its significance in this study [81]. Unlike perceptrons, SVM identifies the hyperplane (H) with the maximum separation margin [82,83], as defined in Equation (13).
h x = s i g n ( w T x + b )
To classify a data point as negative or positive, a decision rule needs to be defined. The decision rule for SVM can be expressed as follows in Equation (14).
X w c   0
By replacing −c with b, the decision rule becomes, in Equation (15),
X w b   0
Consequently, the classification output y can be defined as follows in Equation (16).
y = + 1 ,   X w b   0 1 ,   X w b < 0
If the value of w   x   + b is greater than zero, the point is classified as positive; otherwise, it is classified as negative. The objective is to find the values of w   and b that maximize the margin distance denoted as ‘d’.

3.7.3. Naïve Bayes

The Naïve Bayes classifier is renowned for its simplicity and assumption of feature independence. It has been proven to be effective in classifying driver behavior, making it a reliable choice for this specific task. Although its accuracy may not be as high as other models, NB offers interpretability and computational efficiency, which are advantageous for this study. The analysis conducted in this research demonstrates the model’s ability to accurately predict driver behavior [84,85].
The Naïve Bayes classifier is based on Bayes’ theorem, a fundamental concept in probability theory. Bayes’ theorem allows for updating the belief in the occurrence of an event (A) given the evidence (B).
Equation (17) is for calculating the posterior probability, P(A|B):
P ( A | B ) = P ( B | A ) P ( A ) P ( B )
Here, P(A|B) represents the probability of event A occurring given evidence B, P(B|A) is the probability of observing evidence B given that event A has occurred, P(A) represents the prior probability of event A occurring, and P(B) is the probability of observing evidence B.

3.7.4. Decision Tree Classifier

The DT classifier is a commonly used algorithm in ML for classification tasks, such as analyzing driver behavior. In the present study, the DT classifier demonstrated its effectiveness in classifying instances correctly in the test data [27]. Although accuracy is frequently used to measure performance, precision, recall, and F1 score should also be taken into account for a thorough evaluation, especially when dealing with unbalanced datasets or various misclassification costs. By quantifying node impurity, the Gini index mathematically describes the DT. The equation for the Gini index is as follows in Equation (18).
I G P = i = 1 J P i K i P k = i = 1 J P i ( 1 p i ) = i = 1 J ( P i P i 2 ) = i = 1 J P i i = 1 J P i 2 = 1 i = 1 J P i 2
Here, J represents the number of classes or categories in the classification problem, Pi denotes the probability of an instance belonging to class i, and Pk represents the probability of an instance belonging to any class other than i.
The Gini index is commonly used as a criterion to make decisions about splitting the data during the construction of the DT. By calculating the Gini index, one can assess the impurity or homogeneity of a node and determine the optimal splits.

3.7.5. Random Forest Classifier

The RF classifier was chosen because of its exceptional ability to correctly categorize instances of driving behavior. Its ensemble nature, which combines several DTs, enables it to identify intricate links and patterns in the data and average their predictions for the final classifier, given in Equation (19). With this method, the predictive performance of the system is improved, and it offers insightful information and trustworthy results for the study of driver behavior analysis.
( ( h ( x ) = 1 m h j ( x ) ) )
  • C represents the number of classes or categories in the dataset.
  • Pi represents the probability of an instance belonging to class i.
  • The equation calculates the squared probabilities of each class, sums them up, and subtracts the result from 1.
  • A lower Gini value indicates less impurity or a more homogeneous distribution of instances among the classes, given in Equation (20).
G i n i = 1 i = 1 C P i 2
  • C represents the number of classes or categories in the dataset.
  • Pi represents the probability of an instance belonging to class i.
  • The equation calculates the product of the probability of each class and its logarithm (base 2), sums them up, and assigns a negative sign.
  • A lower entropy value indicates less impurity or a more homogeneous distribution of instances among the classes, given in Equation (21).
E n t r o p y = i = 1 C P i l o g 2 P i
Both the Gini index and entropy are used as impurity measures in the RF algorithm to determine the quality of a split during the construction of the DT. The objective is to find the best split that maximizes the separation between different classes, resulting in more accurate predictions.

3.7.6. Ensemble Model

Ensemble models integrate numerous individual models to obtain higher performance in ML tasks, particularly with high-dimensional data and complicated interactions. In ensemble models, SVM, DT, and RF are often-used algorithms. Techniques like bagging or boosting can be used to combine SVM. To prevent overfitting, DT is used in ensemble models like RF. Additionally, gradient boosting methods like Ada Boost, XG Boost, and Light GBM, which have demonstrated great performance in a variety of domains, may be included in ensemble models [73].
The definition of the function f (x, y) is shown below equation f (x, y) = 1 x ≥ y 0 x < y. The final classification result of the data is obtained based on the ensemble rules, shown in Equation (22).
f ( x , y ) = 1 ,   x y 0 ,   x < y
In this study, our objective is to explore the effectiveness of ensemble models utilizing SVM, DT, and RF for enhancing prediction accuracy in a specific application domain. By harnessing the complementary strengths of these models and exploiting their diversity, we expect to achieve improved performance and robustness compared to individual models. To achieve this, our investigation will involve rigorous experimentation, model selection, and evaluation methodologies. Through these efforts, we aim to gain valuable insights into the efficacy of ensemble models in our targeted task and contribute to the advancement of predictive modeling techniques in ML.

4. Results and Discussion

4.1. Fuzzy AHP Results and Discussion

This study used the Fuzzy AHP method to rank the critical criterion in driver behavior towards improved traffic management in Peshawar, Pakistan. The study identified three main criteria, which are violations, errors, and lapses. When assessing driver behavior, violations are categorized into the most serious category because they include deliberate disregard for safety legislation or traffic laws, such as careless driving or exceeding the posted speed limit. In the second category, errors come up; errors refer to unintentional mistakes made by drivers, such as misjudging distances or not checking blind spots, which may lead to crashes and put lives at risk. Third lapses are instances of inattention or forgetfulness when driving, such as neglecting to switch on the headlights or yielding at a stop sign. Even though errors may not immediately pose a threat, they still contribute to unsafe driving conditions and raise the likelihood of crashes. Therefore, it is crucial to take into account all three factors when assessing driver behavior and putting policies in place to encourage safe and responsible driving practices, which are shown in Table 5.
The violation criterion was subdivided into two categories: aggressive violations and ordinary violations. Regarding aggressive violations, the analysis revealed that “honking to indicate annoyance to others” stands out as the most prevalent form of aggressive driving behavior in Peshawar, Pakistan. This behavior poses a significant risk of conflicts and crashes on the road. The second-ranking behavior, “indicating aggression towards other drivers”, indicates that some drivers employ verbal or nonverbal cues to express their aggression, which may escalate into physical altercations. Lastly, “chasing other drivers” was the least common aggressive behavior, as depicted in Table 6, with “AV” representing aggressive violations. Furthermore, the ordinary violations were classified into eight criteria. These sub-criteria for ordinary violations included disregarding speed limits on residential streets, changing lanes at the last minute, disregarding speed limits on motorways, overtaking slow drivers, crossing junctions to avoid traffic lights, avoiding traffic lights to beat other drivers, driving too close to other vehicles, and crossing junctions to avoid traffic lights. The most prevalent ordinary violation among drivers in Peshawar was “overtaking on slow drivers”, followed by “changing lanes at the last minute”, “pulling out of junctions that other drivers have stop”, “disregarding speed limits on residential”, “avoiding traffic lights to beat other drivers”, “disregarding speed limits on motorways”, and “driving too close to other vehicles”; the least prevalent ordinary violation was “crossing junctions to avoid traffic lights”, shown in Table 7, where “OV” stands for ordinary violations.
Secondly, this study investigated errors in driver behavior, which pertain to mistakes made by drivers due to a lack of knowledge, skills, or training. Seven sub-criteria for errors were identified in this study, with “don’t use a seat belt during driving” receiving the highest rank, suggesting that some drivers in Peshawar do not consider the use of seat belts as important, despite being a basic safety measure. Ranked second was “underestimating the speed of oncoming vehicles”, stressing the importance of drivers being able to accurately judge the speed of oncoming vehicles, followed by “use mobile during the driving”, ranked third, while use of a mobile device during driving may cause a crash. “Fail to notice pedestrians crossing” ranked fourth, indicating the importance of drivers being alert to pedestrians and giving them a right of way; “changing lanes without checking the rear-view mirror” ranked fifth, indicating that this behavior is a crucial error that drivers commit in Peshawar when it comes to traffic safety; “overtaking & didn’t notice signaling” ranked sixth, implying drivers’ tendency to overtake other vehicles without noticing signals or indicators; and the seventh is “miss give way sign”, ranked third, highlighting drivers’ failure to give way to other vehicles as required by traffic signs or signals. These findings are detailed in Table 8, with “E” denoting errors. It is clear that tackling these risky behaviors is essential for improving Peshawar’s overall traffic safety.
Finally, this study analyzed lapses in driver behavior, which are unintentional mistakes, such as forgetting to signal or failing to check blind spots. While not as dangerous as violations, lapses are still common among drivers in Peshawar. The results show that the sub-criterion of “wrong Lane approach roundabout junction in the last position” received the highest ranking, followed by “hit something while reversing”, “using third gear while away from traffic light”, “switch one thing and on another”, “no recollection of the road along you are traveling”, “misread the signs”, and “forgot where your park the car”. These rankings indicate the relative importance of the sub-criteria in terms of their impact on driver behavior and traffic management in Peshawar. The finding that “misreading the signs” received the highest ranking highlights the need for clear and easily understandable road signage. The second-ranked is “forgot your car where you park in parking”, which emphasizes the memory of the driver, which is crucial for drivers and may delay them; “switch one thing and on another” ranked third, which points out the driver’s attention while driving, which is very essential for drivers; “wrong line approach roundabout junction” ranked fourth, emphasizing the critical need to address this problem to enhance traffic safety. When drivers approach roundabouts incorrectly, it can cause traffic congestion and chances of collision. Next, “using third gear while away from traffic lights” ranked fifth, highlighting the need to address this issue to improve traffic safety. Drivers may not be aware of the appropriate gear to use in certain situations, which could lead to crashes or other safety concerns. “Hit something while reversing” ranked sixth, which shows that drivers’ lack of experience can cause crashes. The last is ranked “no recollection of the road along you are traveling”, emphasizing the importance of driver attention and focus while driving, which is shown in Table 9, where “L” represents lapses. The insights provided by these rankings illuminate crucial areas that require intervention and improvement to significantly enhance driver behavior and traffic management in Peshawar. By addressing these factors, we can work towards creating a safer and more efficient traffic environment in the city.
In contrast to the previous study, the outcomes of the present study revealed a significant differences. These differences can be attributed to several factors. Firstly, unlike the previous studies that employed a shorter questionnaire and had a limited number of participants, the present study utilized a modified questionnaire to collect more comprehensive data and included a larger and adequate sample size. Additionally, the present study focused exclusively on the city of Peshawar, Pakistan, while the previous study encompassed a broader geographical scope, covering an entire country with only 70 participants [36]. Another significant difference lies in the methodology used for ranking driver behavior. The previous studies relied on Kendall’s agreement test to determine the weights, whereas the present study employed Fuzzy AHP. By utilizing Fuzzy AHP, the present study was able to consider the inherent uncertainties and imprecisions associated with human behavior, resulting in a more comprehensive and accurate ranking of driver behavior. These distinctions in methodology and context account for the observed variation in the study outcomes, highlighting the importance of adopting a tailored approach and considering specific factors when analyzing driver behavior in a specific location.

4.1.1. Comparison by Age Group and Ranking

Certainly, the rankings presented in this table play a crucial role in assessing and understanding driver behavior across different age groups. Respondents have assigned rankings on a scale from one to eight, with one indicating a higher likelihood of engaging in specific driving behaviors and eight signifying a lower likelihood. Essentially, this scale quantifies the frequency of certain driving-related actions within each age group.
Segmenting these rankings into distinct age groups (18–20, 21–30, 31–40, 41–50, 51–60) allows us to gain valuable insights into how driver behavior evolves with age. When a particular behavior receives a lower ranking within an age group, it suggests that individuals in that group are generally more cautious and compliant with traffic regulations. Conversely, higher rankings within the same age group may indicate a propensity for riskier or less rule-abiding behavior.
What is particularly interesting is the variance in rankings between the age groups. The rankings for age groups 18–20 and 21–30 are quite similar, suggesting a commonality in behavior between these two groups. However, as driver age increases and driving experience accumulates, we begin to observe variations in behavior. Age groups 31–40, 41–50, and 51–60 exhibit different rankings, indicating shifts in driver behavior, as shown in Table 10. This suggests that as drivers gain more experience and maturity, their behavior on the road may change.
These rankings are invaluable for making comparisons across age groups and identifying trends in driver behavior. They offer the potential to understand how age influences driving habits. Policymakers, advocates for driving safety, and educators can use these insights to develop targeted interventions and educational programs. These initiatives aim to enhance road safety and promote responsible driving behavior tailored to specific age demographics.
Moreover, this dataset serves as a foundation for evidence-based strategies to improve road safety and implement age-appropriate driver training programs. It helps pinpoint areas where increased awareness and education may be needed, ultimately contributing to safer road conditions across all age groups. Based on the study results, several policy implications may be suggested. By utilizing the findings of current research, law enforcement agencies can launch targeted enforcement schemes to deter unsafe driving practices and ensure compliance with traffic laws. Public awareness campaigns aimed at educating drivers regarding risks associated with aberrant driving behavior could also be organized. By incorporating the common risky behaviors, rigorous driver training and education should be mandated. Furthermore, infrastructure interventions, such as redesigning intersections and implementing traffic-calming measures in high-risk areas, can deter risky driving behavior. Likewise, technological innovation and integration, such as in-vehicle monitoring systems or advanced driver assistance, may be considered to alert drivers about unsafe driving conditions.

4.1.2. Likert Scale Data Analysis

Table 11 can be used to make the decision using the perceptions of the respondent; thus, to do this, we use the weighted average value.
To calculate the weighted average value in Equation (23).
W e i g h t   a v e r a g e   v a l u e = S u m   o f   M e a n   v a l u e s T o t a l   n u m b e r   o f   i t e m s W e i g h t   a v e r a g e   v a l u e = 65.8137 25 = 2.633
To make a decision based on the perceptions of the respondents, you can calculate a weighted average value. This value is determined by considering mean values for each criterion. In this case, the calculation results in a weighted average value of 2.633. Consequently, all values above 2.633 will be considered as indicating a “High Perception” decision, suggesting a higher likelihood of disobeying traffic laws. Values below 2.633 will be considered as indicating a “Low Perception”, implying a higher likelihood of adhering to traffic laws as a driver.
  • High Perception Criteria (AV1, OV2, OV4, OV8, E1, E2, E3, E4, E7, L4, L6): On average, respondents have a “High Perception” regarding these aspects of driver behavior. This means that they believe these criteria are more likely to involve rule violations or mismanagement. In other words, respondents think that in these areas there is a higher likelihood of drivers not following the rules or exhibiting poor behavior.
  • Low Perception Criteria (AV2, AV3, OV1, OV3, OV5, OV6, OV7, E5, E6, L1, L2, L3, L5, L7): For these criteria, respondents hold a “Low Perception”. This indicates that respondents perceive these aspects of driver behavior as more likely to follow the rules and exhibit good behavior. In simpler terms, respondents believe that in these areas drivers are more likely to follow the rules and behave well.
In short, the data analysis suggests that respondents generally have a higher perception of rule violations or mismanagement in the “High Perception” criteria, while they believe that drivers are more likely to follow rules and exhibit good behavior in the “Low Perception” criteria. These findings can help identify areas where improvements or interventions may be needed to enhance overall driver behavior and promote adherence to rules.

4.2. Machine Learning Model Results and Discussion

By examining the information gathered through surveys, ML techniques have been used to directly predict driving behavior. This research yielded a measure of “driver behavior”. In this process, a method called Fuzzy AHP is utilized to rank the criteria relevant to driver behavior. Subsequently, ML algorithms are applied to the dataset, consisting of 25 features, to predict and scale driver behaviors on a scale ranging from one to six.
The current study used various ML models for a specific task. The evaluation results presented in Table 10 indicate that all of the benchmarked models exhibit remarkable performance in handling the prelabeled dataset. These findings suggest that these models are well-suited for real-time assessments of new data related to driver behaviors. Starting with the NB model, it exhibits a validation loss of 1.92, an accuracy rate of 66.30%, a precision score of 0.60, an F1 score of 0.38, and a recall rate of 0.46, as shown in Table 12. These metrics suggest that the NB model has moderate accuracy but struggles with precision and F1 score, indicating challenges in correctly classifying positive cases, although it manages to capture a reasonable portion of true positive cases. Moving on to the DT classifier, it shares a validation loss of 1.92 with NB but displays a slightly better performance with an accuracy of 68.40%, a precision of 0.67, an F1 score of 0.67, and a recall rate of 0.67. This model achieves a better balance between precision and recall compared to NB. The SVM model outperforms the previous two with a lower validation loss of 1.28, a higher accuracy of 76.08%, a perfect precision score of 1.00, an F1 score of 0.76, and a recall rate of 0.75. It excels in both precision and recall, making it effective in classifying positive cases. The RF model showcases a validation loss of 1.09, an accuracy of 80.30%, a precision of 0.84, an F1 score of 0.72, and a recall rate of 0.77. It demonstrates a strong balance between precision and recall, making it an effective choice for classification tasks. Finally, the ensemble model stands out with the lowest validation loss of 0.70, an accuracy rate of 80.40%, a precision score of 0.84, an outstanding F1 score of 0.95, and a robust recall rate of 0.89. This model combines the strengths of multiple models (SVM, DTC, RF), resulting in exceptional performance in accurately classifying positive cases. The consistency in validation loss values across these ML algorithms indicates the absence of overfitting or underfitting during the training process. These insights collectively highlight the strengths and trade-offs of each algorithm in classifying driver behavior data.
This analysis was performed using a real-world dataset, and we considered multiple performance metrics, including accuracy, precision, recall, and F1-score. The results indicate that the ensemble model attained the highest accuracy at 84.4%. It outperformed the other models, demonstrating its predictive accuracy. Furthermore, the ensemble model exhibited superior precision and recall values, signifying its effectiveness in correctly classifying both positive and negative instances. The discussion of these results underscores the trade-offs inherent in selecting an ML model. These trade-offs consider certain aspects, such as model complexity, interpretability, and predictive performance. The choice of the most suitable model hinges on the specific requirements of the application at hand. In cases where high accuracy is a paramount concern and computational resources are plentiful, the ensemble model emerges as a formidable option. Conversely, when interpretability and the ability to explain decisions to stakeholders are crucial, the DT model proves valuable. RF offers a robust middle ground, maintaining a balance between performance and interpretability while mitigating the risk of overfitting. However, SVM, despite its prowess in high-dimensional spaces, may not be the most judicious choice in scenarios constrained by computational resources.

4.2.1. Receiver Operating Characteristic (ROC) Curve

The AUC (Area Under the Curve) values associated with each class in an ROC curve of a classification model offer valuable insights into the model’s performance and its ability to differentiate between different classes. These AUC values in Figure 5 are indicative of the model’s quality and its capacity to make class distinctions:
  • Never: Class 1, (AUC = 0.95): An AUC of 0.95 for Class 1 signifies the model’s effectiveness in accurately identifying instances of Class 1 and distinguishing them from other classes.
  • Hardly ever: Class 2, (AUC = 0.91): With an AUC of 0.91 for Class 2, the model demonstrates a strong ability to differentiate Class 2 from other classes, implying a good performance in this regard.
  • Occasionally: Class 3, (AUC = 0.99): The remarkably high AUC of 0.99 for Class 3 highlights the model’s exceptional proficiency in recognizing and distinguishing Class 3 from other classes.
  • Quite often: Class 4, (AUC = 0.93): The AUC of 0.93 for Class 4 reflects the model’s competence in successfully distinguishing Class 4 from other classes, indicating a good level of performance.
  • Frequently: Class 5, (AUC = 0.85): The AUC of 0.85 for Class 5 suggests that the model is reasonably effective in distinguishing Class 5 from other classes, indicating a decent performance.
  • Nearly all the time: Class 6, (AUC = 1.0): An AUC of 1.0 for Class 6 signifies that the model excels at identifying Class 6 and distinguishing it from other classes, demonstrating a flawless performance.
The AUC values are indicative of the model’s proficiency in classifying various classes. Higher AUC values are associated with better performance, suggesting the model’s greater ability to distinguish that particular class. In this context:
  • The occasionally class exhibits the most outstanding model performance.
  • Never, hardly ever, and quite often classes also demonstrate strong performances.
  • The frequently class’s performance is reasonable, though not as robust as other classes.
  • The nearly all the time class stands out with a perfect AUC, showcasing exceptional model performance in identifying Class 6.

4.2.2. Precision–Recall Curve

These Average Precision (AP) scores correspond to a precision–recall curve for various classes shown in Figure 6. Here is a concise explanation:
  • The occasionally class exhibits the highest precision–recall performance with an AP of 0.94, indicating that the model effectively balances precision and recall for this class.
  • The never class and hardly ever class also display strong performance with AP values of 0.93 and 0.80, respectively. These classes demonstrate a robust trade-off between precision and recall.
  • The quite often class achieves moderate performance with an AP of 0.66, indicating a reasonable balance between precision and recall but not as strong as Classes 1, 2, and 3.
  • The frequently class has the lowest performance with an AP of 0.23, suggesting that the model encounters challenges in achieving both high precision and high recall for this class.
  • The nearly all the time class stands out with a perfect AP of 1.00, indicating that the model attains the highest precision while maintaining full recall for this class.
In short, these AP scores provide insights into the precision–recall performance for each class. Higher AP values imply better trade-offs between precision and recall, indicating the model’s effectiveness in classifying those classes.
The superior accuracy of the ensemble model can be attributed to its ability to leverage the diverse strengths and perspectives of each constituent model. By combining the predictions of the SVM, DT, and RF models, the EM achieved more accurate predictions compared to any individual model. This highlights the advantage of ensemble models in achieving higher accuracy and improving the robustness of predictions.
Driving behaviors were categorized based on levels of hostility, which were separated into six classes: never (0), hardly ever (1), occasionally (2), quite regularly (3), regularly (4), and nearly always (5). The dataset was trained, and the outcomes were used to accurately classify and explain driving behaviors in several aspects. A driver’s behavior is primarily good and exhibits few symptoms of hostility, as is the case when the projected outcome for a specific occurrence is 0. In contrast, if the expected result is 3, it suggests that the driver’s overall behavior is assessed as “Quite regularly”. The model’s output of 3 implies that the driver’s behavior is balanced and falls in the middle of the scale, showing a moderate frequency of driving behaviors across all criteria and sub-criteria. The classification system provides a thorough overview of the range of driving behavior and enables a thorough examination of the different levels of aggression displayed by drivers.
Building upon the foundation laid by previous studies that employ state-of-the-art ML for evaluating driver behavior, this research further elucidates the field’s dynamic advancements. For instance, one study evaluated driving behavior using real vehicle experiments with 16 drivers, validating aggressive driving behaviors. This study employed the Sum Rule classifier and achieved an F1-score of 90.02% [86]. Another study developed an ensemble learning method for vehicle behavior prediction, where both single-task and multi-task approaches generally outperformed others, with accuracies ranging from 0.72 to 0.94 [87]. Similarly, an urban driving perception method was developed using high-resolution maps and data-driven models, which enhanced maneuver prediction accuracy by up to 56% compared to a comparative approach [88]. Additionally, a comprehensive study contributed to driving behavior research by referencing various studies and models and presented a comparison table of approaches and algorithms for driving behavior recognition, with accuracies ranging from 73% to 99.7% [89]. Moreover, a study focused on driving behavior modeling in Mexico using ML models reported accuracies ranging from 0.82 to 0.96, offering insights into predicting driving behavior within the Mexican context [90].
The findings of the current study demonstrate the potential of ensemble models, which utilize SVM, DT, and RF, to significantly enhance prediction accuracy. The ensemble model achieved the highest accuracy, reaching an impressive 84.4%, thereby surpassing other models and highlighting its exceptional predictive capability. Furthermore, the ensemble model exhibited superior precision and recall values, emphasizing its effectiveness in accurately classifying both positive and negative instances. These results underscore the value of ensemble models as a robust approach for enhancing prediction accuracy in ML tasks aimed at predicting risky driving behaviors.

5. Conclusions

This study provides valuable insights into the factors that contribute to driver behavior and improved traffic management in Peshawar. Fuzzy AHP is used to rank the driver behavior with pairwise comparison and sub-criteria subsequently. Additionally, ML is used to predict the driver behavior while using different models.
The study identified three main criteria for assessing driver behavior: violations, errors, and lapses. Violations involve intentional disregard for safety laws, such as careless driving or speeding. Errors are unintentional mistakes, like misjudging distances or neglecting blind spots. Lapses refer to instances of inattention or forgetfulness, such as forgetting to signal or check blind spots. The study also found specific sub-criteria within each category, highlighting common behaviors, such as overtaking slow drivers, changing lanes without checking mirrors, and using third gear away from traffic lights. Clear road signage and driver attention were emphasized as important factors for improving behavior.
The results obtained from ML techniques contribute to the prediction of driver behavior. ML itself is employed as a means to forecast and anticipate driver behavior patterns. The aim of this method is a thorough assessment of several ML models that have been specially adapted for the task at hand. With an impressive accuracy rate of 76.8%, the results place the SVM model in the lead. The DT classifier obtains an accuracy of 68.4%, slightly better than the NB model’s 66.30%, which follows closely behind. With a high accuracy rate of 80.30%, the RF classifier stands above its peers. An ensemble model is built by combining the capabilities of the SVM, DT, and RF models in order to further improve the forecast accuracy. The accuracy rating for this ensemble model is significantly higher at 80.40%. The majority of a driver’s behavior is positive and shows little signs of antagonism, as is the case when the predicted result for a particular incident is 0. If the predicted outcome, however, is four, it indicates that the driver regularly exhibits violent behavior in a range of circumstances. The classification system provides a thorough overview of the range of driving behavior and enables a thorough examination of the different levels of aggression displayed by drivers.
The present study has certain limitations, particularly in targeting drivers in Peshawar. As many taxi drivers in the area lack formal education, an online survey administrated in Google Forms may not accurately capture their driving behavior. For future studies, it is recommended to collect data through a paper-based survey that specifically targets local taxi drivers, given the significant number of uneducated drivers in this occupation in Peshawar. One potential approach is to use Structural Equation Modeling (SEM) to modify the survey based on SEM results, which can capture latent attributes, which will provide realistic behaviors related to the relationship between different factors affecting driving behavior.
This study will provide a baseline for policymakers, stakeholders, and government bodies to make effective policies for sustainable urban mobility. Traffic management authorities can use the results to develop targeted interventions and policies to address these behaviors, ultimately leading to improved road safety, reduced traffic incidents, and predicting driver behavior. The study suggests that “honking and indicating aggression towards other drivers” are important areas of focus for aggressive violations, while “overtaking slow drivers”, disregarding speed limits on residential roads and motorways, and pulling out of junctions that other drivers have stopped at are areas of focus for ordinary violations. The study also highlights the critical errors that drivers in Peshawar commit that can be detrimental to traffic safety. These findings can be used to prioritize road safety measures and interventions to address the most pressing issues. Policymakers can leverage the study’s findings to formulate evidence-based policies for sustainable urban mobility. Ultimately, a collaborative effort between researchers, policymakers, and relevant authorities can lead to significant improvements in road safety and overall transportation efficiency in Peshawar.

Author Contributions

Conceptualization, W.A. and M.S.; Methodology, W.A.; Software, W.A., M.S. and M.A.; Validation, W.A., H.W. and A.J.; Formal analysis, M.S.; Investigation, W.A., H.W. and A.P.; Resources, A.J., M.A. and H.M.A.-A.; Data curation, W.A. and A.J.; Writing—original draft, W.A. and M.S.; Writing—review & editing, W.A., H.W., A.P., M.S., A.J., M.A. and H.M.A.-A.; Visualization, W.A., A.P. and H.M.A.-A.; Supervision, H.W.; Project administration, H.W.; Funding acquisition, M.A. and H.M.A.-A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ahmed, S.K.; Mohammed, M.G.; Abdulqadir, S.O.; El-Kader, R.G.A.; El-Shall, N.A.; Chandran, D.; Rehman, M.E.U.; Dhama, K. Road traffic accidental injuries and deaths: A neglected global health issue. Health Sci. Rep. 2023, 6, e1240. [Google Scholar] [CrossRef]
  2. Safdar, M.; Jamal, A.; Al-Ahmadi, H.M.; Rahman, M.T.; Almoshaogeh, M. Analysis of the Influential Factors towards Adoption of Car-Sharing: A Case Study of a Megacity in a Developing Country. Sustainability 2022, 14, 2778. [Google Scholar] [CrossRef]
  3. Subhan, F.; Ali, Y.; Zhao, S. Unraveling preference heterogeneity in willingness-to-pay for enhanced road safety: A hybrid approach of machine learning and quantile regression. Accid. Anal. Prev. 2023, 190, 107176. [Google Scholar] [CrossRef]
  4. World Health Organization. Global Status Report on Road Safety 2018; World Health Organization: Geneva, Switzerland, 2019.
  5. Wang, Z.; Safdar, M.; Zhong, S.P.; Liu, J.R.; Xiao, F. Public Preferences of Shared Autonomous Vehicles in Developing Countries: A Cross-National Study of Pakistan and China. J. Adv. Transp. 2021, 2021, 5141798. [Google Scholar] [CrossRef]
  6. Umair, M.; Rana, I.A.; Lodhi, R.H. The impact of urban design and the built environment on road traffic crashes: A case study of Rawalpindi, Pakistan. Case Stud. Transp. Policy 2022, 10, 417–426. [Google Scholar] [CrossRef]
  7. World Life Expectancy. Pakistan Road Traffic Accidents. Available online: https://www.worldlifeexpectancy.com/pakistan-road-traffic-accidents (accessed on 26 May 2024).
  8. Rabbani, M.B.A.; Musarat, M.A.; Alaloul, W.S.; Maqsoom, A.; Bukhari, H.; Waqas, R. Road traffic accident data analysis and its visualization. Civ. Eng. Archit. 2021, 9, 1603–1614. [Google Scholar] [CrossRef]
  9. Batool, Z.; Carsten, O.; Jopson, A. Road safety issues in Pakistan: A case study of Lahore. Transp. Plan. Technol. 2012, 35, 31–48. [Google Scholar] [CrossRef]
  10. Kayani, A.; Fleiter, J.J.; King, M.J. Underreporting of road crashes in Pakistan and the role of fate. Traffic Inj. Prev. 2014, 15, 34–39. [Google Scholar] [CrossRef]
  11. Hyder, A.A.; Morrow, R.H. Applying burden of disease methods in developing countries: A case study from Pakistan. Am. J. Public Health 2000, 90, 1235. [Google Scholar]
  12. Lateef, M.U. Estimation of fatalities due to road traffic crashes in Karachi, Pakistan, using capture-recapture method. Asia Pac. J. Public Health 2010, 22, 332–341. [Google Scholar] [CrossRef]
  13. Lord, D.; Mannering, F. The statistical analysis of crash-frequency data: A review and assessment of methodological alternatives. Transp. Res. Part A Policy Pract. 2010, 44, 291–305. [Google Scholar] [CrossRef]
  14. Mujalli, R.O.; de Oña, J. Injury severity models for motor vehicle accidents: A review. In Proceedings of the Institution of Civil Engineers-Transport; Thomas Telford Ltd.: London, UK, 2013; pp. 255–270. [Google Scholar]
  15. Savolainen, P.T.; Mannering, F.L.; Lord, D.; Quddus, M.A. The statistical analysis of highway crash-injury severities: A review and assessment of methodological alternatives. Accid. Anal. Prev. 2011, 43, 1666–1676. [Google Scholar] [CrossRef]
  16. Jamal, A.; Zahid, M.; Tauhidur Rahman, M.; Al-Ahmadi, H.M.; Almoshaogeh, M.; Farooq, D.; Ahmad, M. Injury severity prediction of traffic crashes with ensemble machine learning techniques: A comparative study. Int. J. Inj. Control Saf. Promot. 2021, 28, 408–427. [Google Scholar] [CrossRef]
  17. Khattak, A.J.; Ahmad, N.; Wali, B.; Dumbaugh, E. A taxonomy of driving errors and violations: Evidence from the naturalistic driving study. Accid. Anal. Prev. 2021, 151, 105873. [Google Scholar] [CrossRef]
  18. Zhao, J.; Song, D.; Zhu, B.; Sun, Z.; Han, J.; Sun, Y. A human-like trajectory planning method on a curve based on the driver preview mechanism. IEEE Trans. Intell. Transp. Syst. 2023, 24, 11682–11698. [Google Scholar] [CrossRef]
  19. Yue, W.; Li, C.; Wang, S.; Xue, N.; Wu, J. Cooperative incident management in mixed traffic of CAVs and human-driven vehicles. IEEE Trans. Intell. Transp. Syst. 2023, 24, 12462–12476. [Google Scholar] [CrossRef]
  20. Xu, J.; Park, S.H.; Zhang, X.; Hu, J. The improvement of road driving safety guided by visual inattentional blindness. IEEE Trans. Intell. Transp. Syst. 2021, 23, 4972–4981. [Google Scholar] [CrossRef]
  21. Yang, J.; Yang, K.; Xiao, Z.; Jiang, H.; Xu, S.; Dustdar, S. Improving commute experience for private car users via blockchain-enabled multitask learning. IEEE Internet Things J. 2023, 10, 21656–21669. [Google Scholar] [CrossRef]
  22. Singh, H.; Kathuria, A. Analyzing driver behavior under naturalistic driving conditions: A review. Accid. Anal. Prev. 2021, 150, 105908. [Google Scholar] [CrossRef]
  23. Rashmi, B.S.; Marisamynathan, S. Factors affecting truck driver behavior on a road safety context: A critical systematic review of the evidence. J. Traffic Transp. Eng. 2023, 10, 835–865. [Google Scholar]
  24. Matar, H.B.; Al-Mutairi, N.Z. Examining the factors affecting driver behavior in Metropolitan Kuwait. Int. J. Crashworthiness 2021, 26, 705–710. [Google Scholar] [CrossRef]
  25. Alam, W.; Haiyan, W.; Safdar, M.; Hamza, M. Identifying Key Factors for Traffic Safety: A Case Study of Driver Behavior in Peshawar, Pakistan. N. Am. Acad. Res. 2024, 7, 107–122. [Google Scholar] [CrossRef]
  26. de Oña, J.; de Oña, R.; Eboli, L.; Forciniti, C.; Mazzulla, G. How to identify the key factors that affect driver perception of accident risk. A comparison between Italian and Spanish driver behavior. Accid. Anal. Prev. 2014, 73, 225–235. [Google Scholar] [CrossRef]
  27. Abdullah, P.; Sipos, T. Drivers’ Behavior and Traffic Accident Analysis Using Decision Tree Method. Sustainability 2022, 14, 11339. [Google Scholar] [CrossRef]
  28. Reason, J.; Manstead, A.; Stradling, S.; Baxter, J.; Campbell, K. Errors and violations on the roads: A real distinction? Ergonomics 1990, 33, 1315–1332. [Google Scholar] [CrossRef]
  29. de Winter, J.C.; Dodou, D. The Driver Behaviour Questionnaire as a predictor of accidents: A meta-analysis. J. Saf. Res. 2010, 41, 463–470. [Google Scholar] [CrossRef]
  30. af Wåhlberg, A.; Dorn, L.; Kline, T. The Manchester Driver Behaviour Questionnaire as a predictor of road traffic accidents. Theor. Issues Ergon. Sci. 2011, 12, 66–86. [Google Scholar] [CrossRef]
  31. Parker, D.; Reason, J.T.; Manstead, A.S.; Stradling, S.G. Driving errors, driving violations and accident involvement. Ergonomics 1995, 38, 1036–1048. [Google Scholar] [CrossRef]
  32. Reason, J. Human Error; Cambridge University Press: Cambridge, UK, 1990. [Google Scholar]
  33. Xu, J.; Guo, K.; Zhang, X.; Sun, P.Z.H. Left gaze bias between LHT and RHT: A recommendation strategy to mitigate human errors in left-and right-hand driving. IEEE Trans. Intell. Veh. 2023, 8, 4406–4417. [Google Scholar] [CrossRef]
  34. Elander, J.; West, R.; French, D. Behavioral correlates of individual differences in road-traffic crash risk: An examination of methods and findings. Psychol. Bull. 1993, 113, 279. [Google Scholar] [CrossRef]
  35. Xiao, Z.; Shu, J.; Jiang, H.; Min, G.; Chen, H.; Han, Z. Overcoming Occlusions: Perception Task-Oriented Information Sharing in Connected and Autonomous Vehicles. IEEE Netw. 2023, 37, 224–229. [Google Scholar] [CrossRef]
  36. Farooq, D.; Moslem, S.; Faisal Tufail, R.; Ghorbanzadeh, O.; Duleba, S.; Maqsoom, A.; Blaschke, T. Analyzing the Importance of Driver Behavior Criteria Related to Road Safety for Different Driving Cultures. Int. J. Environ. Res. Public Health 2020, 17, 1893. [Google Scholar] [CrossRef]
  37. Lawton, R.; Parker, D.; Manstead, A.S.; Stradling, S.G. The role of affect in predicting social behaviors: The case of road traffic violations. J. Appl. Soc. Psychol. 1997, 27, 1258–1276. [Google Scholar] [CrossRef]
  38. Brown, I.D. Drivers’ margins of safety considered as a focus for research on error. Ergonomics 1990, 33, 1307–1314. [Google Scholar] [CrossRef]
  39. Rumar, K. The role of perceptual and cognitive filters in observed behavior. In Human Behavior Traffic Safety; Springer: Berlin/Heidelberg, Germany, 1985; pp. 151–170. [Google Scholar]
  40. Parker, D.; McDonald, L.; Rabbitt, P.; Sutcliffe, P. Elderly drivers and their accidents: The Aging Driver Questionnaire. Accid. Anal. Prev. 2000, 32, 751–759. [Google Scholar] [CrossRef]
  41. Blockey, P.; Hartley, L.R. Aberrant driving behaviour: Errors and violations. Ergonomics 1995, 38, 1759–1771. [Google Scholar] [CrossRef]
  42. Bianchi, A.; Summala, H. Moral judgment and drivers’ behavior among Brazilian students. Psychol. Rep. 2002, 91, 759–766. [Google Scholar] [CrossRef]
  43. Xie, C.-Q.; Parker, D. A social psychological approach to driving violations in two Chinese cities. Transp. Res. Part F Traffic Psychol. Behav. 2002, 5, 293–308. [Google Scholar] [CrossRef]
  44. Kontogiannis, T.; Kossiavelou, Z.; Marmaras, N. Self-reports of aberrant behaviour on the roads: Errors and violations in a sample of Greek drivers. Accid. Anal. Prev. 2002, 34, 381–399. [Google Scholar] [CrossRef]
  45. Mesken, J.; Lajunen, T.; Summala, H. Interpersonal violations, speeding violations and their relation to accident involvement in Finland. Ergonomics 2002, 45, 469–483. [Google Scholar] [CrossRef]
  46. Sullman, M.J.; Meadows, M.L.; Pajo, K.B. Aberrant driving behaviours amongst New Zealand truck drivers. Transp. Res. Part F Traffic Psychol. Behav. 2002, 5, 217–232. [Google Scholar] [CrossRef]
  47. Aberg, L.; Rimmo, P.-A. Dimensions of aberrant driver behaviour. Ergonomics 1998, 41, 39–56. [Google Scholar] [CrossRef]
  48. Lajunen, T.; Parker, D.; Summala, H. The Manchester driver behaviour questionnaire: A cross-cultural study. Accid. Anal. Prev. 2004, 36, 231–238. [Google Scholar] [CrossRef]
  49. Dimmer, A.; Parker, D. The accidents, attitude and behaviour of company car drivers. In Proceedings of the Behavioural Research in Road Safety IX, University of Manchester, Manchester, UK, 5–7 April 1999. PA3524/99. [Google Scholar]
  50. Sümer, N. Personality and behavioral predictors of traffic accidents: Testing a contextual mediated model. Accid. Anal. Prev. 2003, 35, 949–964. [Google Scholar] [CrossRef]
  51. Pirnazar, M.; Karimi, A.Z.; Feizizadeh, B.; Ostad-Ali-Askari, K.; Eslamian, S.; Hasheminasab, H.; Ghorbanzadeh, O.; Hamedani, M.H. Assessing flood hazard using GIS based multi-criteria decision making approach; study area: East-Azerbaijan province (Kaleybar Chay Basin). J. Flood Eng. 2017, 8, 203–223. [Google Scholar]
  52. Chen, W.; Pourghasemi, H.R.; Panahi, M.; Kornejady, A.; Wang, J.; Xie, X.; Cao, S. Spatial prediction of landslide susceptibility using an adaptive neuro-fuzzy inference system combined with frequency ratio, generalized additive model, and support vector machine techniques. Geomorphology 2017, 297, 69–85. [Google Scholar] [CrossRef]
  53. Feizizadeh, B.; Kienberger, S. Spatially explicit sensitivity and uncertainty analysis for multicriteria-based vulnerability assessment. J. Environ. Plan. Manag. 2017, 60, 2013–2035. [Google Scholar] [CrossRef]
  54. Cabrera-Barona, P.; Ghorbanzadeh, O. Comparing classic and interval analytical hierarchy process methodologies for measuring area-level deprivation to analyze health inequalities. Int. J. Environ. Res. Public Health 2018, 15, 140. [Google Scholar] [CrossRef]
  55. Pourghasemi, H.r.; Beheshtirad, M.; Pradhan, B. A comparative assessment of prediction capabilities of modified analytical hierarchy process (M-AHP) and Mamdani fuzzy logic models using Netcad-GIS for forest fire susceptibility mapping. Geomat. Nat. Hazards Risk 2016, 7, 861–885. [Google Scholar] [CrossRef]
  56. Khosravi, K.; Nohani, E.; Maroufinia, E.; Pourghasemi, H.R. A GIS-based flood susceptibility assessment and its mapping in Iran: A comparison between frequency ratio and weights-of-evidence bivariate statistical models with multi-criteria decision-making technique. Nat. Hazards 2016, 83, 947–987. [Google Scholar] [CrossRef]
  57. Zhao, H.; Zhong, M.; Li, L.; Safdar, M.; Zhang, Z. A Comprehensive Evaluation Method for Planning and Design of Self-Sufficient Wind Power Energy Systems at Ports. Sustainability 2023, 15, 16189. [Google Scholar] [CrossRef]
  58. Duleba, S.; Moslem, S. Examining Pareto optimality in analytic hierarchy process on real Data: An application in public transport service development. Expert Syst. Appl. 2019, 116, 21–30. [Google Scholar] [CrossRef]
  59. Naghadehi, M.Z.; Mikaeil, R.; Ataei, M. The application of fuzzy analytic hierarchy process (FAHP) approach to selection of optimum underground mining method for Jajarm Bauxite Mine, Iran. Expert Syst. Appl. 2009, 36, 8218–8226. [Google Scholar] [CrossRef]
  60. Farooq, D.; Moslem, S.; Duleba, S. Evaluation of driver behavior criteria for evolution of sustainable traffic safety. Sustainability 2019, 11, 3142. [Google Scholar] [CrossRef]
  61. Yin, Y.; Guo, Y.; Su, Q.; Wang, Z. Task allocation of multiple unmanned aerial vehicles based on deep transfer reinforcement learning. Drones 2022, 6, 215. [Google Scholar] [CrossRef]
  62. Fang, Z.; Wang, J.; Liang, J.; Yan, Y.; Pi, D.; Zhang, H.; Yin, G. Authority allocation strategy for shared steering control considering human-machine mutual trust level. IEEE Trans. Intell. Veh. 2023, 9, 2002–2015. [Google Scholar] [CrossRef]
  63. Zhou, P.; Zheng, P.; Qi, J.; Li, C.; Lee, H.-Y.; Duan, A.; Lu, L.; Li, Z.; Hu, L.; Navarro-Alarcon, D. Reactive human–robot collaborative manipulation of deformable linear objects using a new topological latent control model. Robot. Comput.-Integr. Manuf. 2024, 88, 102727. [Google Scholar] [CrossRef]
  64. Zhang, J.; Zhu, D.; Jian, W.; Hu, W.; Peng, G.; Chen, Y.; Wang, Z. Fractional Order Complementary Non-singular Terminal Sliding Mode Control of PMSM Based on Neural Network. Int. J. Automot. Technol. 2024, 25, 213–224. [Google Scholar] [CrossRef]
  65. Ju, J.; Feleke, A.G.; Luo, L.; Fan, X. Recognition of drivers’ hard and soft braking intentions based on hybrid brain-computer interfaces. Cyborg Bionic Syst. 2022, 2022, 9847652. [Google Scholar] [CrossRef]
  66. Li, X.; Lord, D.; Zhang, Y.; Xie, Y. Predicting motor vehicle crashes using support vector machine models. Accid. Anal. Prev. 2008, 40, 1611–1618. [Google Scholar] [CrossRef] [PubMed]
  67. Chen, J.; Wang, Q.; Cheng, H.H.; Peng, W.; Xu, W. A review of vision-based traffic semantic understanding in ITSs. IEEE Trans. Intell. Transp. Syst. 2022, 23, 19954–19979. [Google Scholar] [CrossRef]
  68. Mou, J.; Gao, K.; Duan, P.; Li, J.; Garg, A.; Sharma, R. A machine learning approach for energy-efficient intelligent transportation scheduling problem in a real-world dynamic circumstances. IEEE Trans. Intell. Transp. Syst. 2022, 24, 15527–15539. [Google Scholar] [CrossRef]
  69. Ma, B.; Liu, Z.; Dang, Q.; Zhao, W.; Wang, J.; Cheng, Y.; Yuan, Z. Deep reinforcement learning of UAV tracking control under wind disturbances environments. IEEE Trans. Instrum. Meas. 2023, 72, 2510913. [Google Scholar] [CrossRef]
  70. Xu, X.; Liu, W.; Yu, L. Trajectory prediction for heterogeneous traffic-agents using knowledge correction data-driven model. Inf. Sci. 2022, 608, 375–391. [Google Scholar] [CrossRef]
  71. Gang, R.; Zhuping, Z. Traffic safety forecasting method by particle swarm optimization and support vector machine. Expert Syst. Appl. 2011, 38, 10420–10424. [Google Scholar] [CrossRef]
  72. Bordarie, J. Predicting intentions to comply with speed limits using a ‘decision tree’applied to an extended version of the theory of planned behaviour. Transp. Res. Part F Traffic Psychol. Behav. 2019, 63, 174–185. [Google Scholar] [CrossRef]
  73. Sun, Z.; Song, Q.; Zhu, X.; Sun, H.; Xu, B.; Zhou, Y. A novel ensemble method for classifying imbalanced data. Pattern Recognit. 2015, 48, 1623–1637. [Google Scholar] [CrossRef]
  74. Farooq, M.U.; Ghani, M.U.; Zafar, A. Survey on driving behavior and motivational factors causing aggressive driving: A case study of Peshawar, Pakistan. In Proceedings of the 2nd International Conference on Emerging Trends in Engineering, Management & Sciences (ICETEMS-2016), Peshawar, Pakistan, 28–30 December 2016; pp. 79–86. [Google Scholar]
  75. Evans, L. Traffic Safety; Science Serving Society: Bloomfield Hills, MI, USA, 2004. [Google Scholar]
  76. Cheng, C.-H. Evaluating naval tactical missile systems by fuzzy AHP based on the grade value of membership function. Eur. J. Oper. Res. 1997, 96, 343–350. [Google Scholar] [CrossRef]
  77. Kubler, S.; Robert, J.; Derigent, W.; Voisin, A.; Le Traon, Y. A state-of the-art survey & testbed of fuzzy AHP (FAHP) applications. Expert Syst. Appl. 2016, 65, 398–422. [Google Scholar]
  78. Chang, D.-Y. Applications of the extent analysis method on fuzzy AHP. Eur. J. Oper. Res. 1996, 95, 649–655. [Google Scholar] [CrossRef]
  79. Ghandour, R.; Potams, A.J.; Boulkaibet, I.; Neji, B.; Al Barakeh, Z. Driver behavior classification system analysis using machine learning methods. Appl. Sci. 2021, 11, 10562. [Google Scholar] [CrossRef]
  80. Ferreira, J.; Carvalho, E.; Ferreira, B.V.; de Souza, C.; Suhara, Y.; Pentland, A.; Pessin, G. Driver behavior profiling: An investigation with different smartphone sensors and machine learning. PLoS ONE 2017, 12, e0174959. [Google Scholar] [CrossRef] [PubMed]
  81. Sun, G.; Zhang, Y.; Yu, H.; Du, X.; Guizani, M. Intersection Fog-Based Distributed Routing for V2V Communication in Urban Vehicular Ad Hoc Networks. IEEE Trans. Intell. Transp. Syst. 2020, 21, 2409–2426. [Google Scholar] [CrossRef]
  82. Houshmand, M.; Hosseini-Khayat, S.; Wilde, M.M. Minimal-memory, noncatastrophic, polynomial-depth quantum convolutional encoders. IEEE Trans. Inf. Theory 2012, 59, 1198–1210. [Google Scholar] [CrossRef]
  83. Rai, H.M.; Yoo, J. Analysis of Colorectal and Gastric Cancer Classification: A Mathematical Insight Utilizing Traditional Machine Learning Classifiers. Mathematics 2023, 11, 4937. [Google Scholar] [CrossRef]
  84. Heckerman, D. Bayesian networks for data mining. Data Min. Knowl. Discov. 1997, 1, 79–119. [Google Scholar] [CrossRef]
  85. Chen, H.; Hu, S.; Hua, R.; Zhao, X. Improved naive Bayes classification algorithm for traffic risk management. EURASIP J. Adv. Signal Process. 2021, 2021, 30. [Google Scholar] [CrossRef]
  86. Wang, H.; Wang, X.; Han, J.; Xiang, H.; Li, H.; Zhang, Y.; Li, S. A recognition method of aggressive driving behavior based on ensemble learning. Sensors 2022, 22, 644. [Google Scholar] [CrossRef]
  87. Khoshkangini, R.; Mashhadi, P.; Tegnered, D.; Lundström, J.; Rögnvaldsson, T. Predicting vehicle behavior using multi-task ensemble learning. Expert Syst. Appl. 2023, 212, 118716. [Google Scholar] [CrossRef]
  88. Geng, X.; Liang, H.; Yu, B.; Zhao, P.; He, L.; Huang, R. A scenario-adaptive driving behavior prediction approach to urban autonomous driving. Appl. Sci. 2017, 7, 426. [Google Scholar] [CrossRef]
  89. Deng, Q.; Söffker, D. A review of HMM-based approaches of driving behaviors recognition and prediction. IEEE Trans. Intell. Veh. 2021, 7, 21–31. [Google Scholar] [CrossRef]
  90. Abou Elassad, Z.E.; Mousannif, H.; Al Moatassime, H.; Karkouch, A. The application of machine learning techniques for driving behavior analysis: A conceptual framework and a systematic literature review. Eng. Appl. Artif. Intell. 2020, 87, 103312. [Google Scholar] [CrossRef]
Figure 1. Methodology workflow.
Figure 1. Methodology workflow.
Sustainability 16 04642 g001
Figure 2. The hierarchical structure of the driver behavior criteria.
Figure 2. The hierarchical structure of the driver behavior criteria.
Sustainability 16 04642 g002
Figure 3. The intersection of fuzzy numbers.
Figure 3. The intersection of fuzzy numbers.
Sustainability 16 04642 g003
Figure 4. Workflow chart of machine learning.
Figure 4. Workflow chart of machine learning.
Sustainability 16 04642 g004
Figure 5. Receiver Operating Characteristic (ROC) Curve.
Figure 5. Receiver Operating Characteristic (ROC) Curve.
Sustainability 16 04642 g005
Figure 6. Precision–recall curve.
Figure 6. Precision–recall curve.
Sustainability 16 04642 g006
Table 1. Sample characteristics of participants.
Table 1. Sample characteristics of participants.
VariablesPeshawar
Age (years)
18–205.9%
20–3044.8%
30–4027.5%
40–5018%
50–603.9%
Driving experience
<5 Years33.3%
5–1022.5%
10–1520.3%
15–2011.8%
Above 2012.1%
Gender
Male74.1%
Female25.9%
Number of kilometers driven weekly
Mean208.6
SD287.5
Driver occupations (job = 1, student = 0)
Mean0.42
SD0.46
Valid license
Yes73%
No27%
Table 2. Reliability test—Cronbach’s alpha.
Table 2. Reliability test—Cronbach’s alpha.
VariablesDescriptionValuesInternal Consistency
KNumber of items306Good
∑S2 yA sum of the items’ variance60
S2 xA variance of the total score308.04
ACronbach’s alpha0.81
Table 3. Interpretation of Cronbach’s alpha.
Table 3. Interpretation of Cronbach’s alpha.
Cronbach’s αInternal Consistency
0.90 and aboveExcellent
0.80–0.89Good
0.70–0.79Acceptable
0.60–0.69Questionable
0.50–0.59Poor
Below 0.50Unacceptable
Table 4. TFN of linguistics comparison matrix.
Table 4. TFN of linguistics comparison matrix.
Linguistics VariablesAssigned TFN
Equal(1,1,1)
Very low(1,2,3)
Medium(2,3,4)
High(3,4,5)
Very high(4,5,6)
Excellent(6,7,8)
Table 5. Priority ranking of criteria for driver behavior.
Table 5. Priority ranking of criteria for driver behavior.
ErrorsViolationsLapsesWeightRank
Errors(1, 1, 1)(0.25, 0.33, 0.5)(2, 3, 4)0.3642
Violations(2, 3, 4)(1, 1, 1)(1, 2, 3)0.4971
Lapses(0.25, 0.33, 0.5)(0.25, 0.33, 0.5)(1, 1, 1)0.1393
Table 6. Priority ranking of criteria for aggressive violations.
Table 6. Priority ranking of criteria for aggressive violations.
AV1AV2AV3WeightRank
AV1(1, 1, 1)(0.33, 0.5, 1)(2, 3, 4)0.3671
AV2(1, 2, 3)(1, 1, 1)(0.25, 0.33, 0.5)0.2783
AV3(0.25, 0.33, 0.5)(2, 3, 4)(1, 1, 1)0.3552
Note: AV stands for aggressive violations.
Table 7. Priority ranking criteria for ordinary violations.
Table 7. Priority ranking criteria for ordinary violations.
OV1OV2OV3OV4OV5OV6OV7OV8WeightRank
OV1(1, 1, 1)(0.166, 0.2, 0.25)(0.25, 0.33, 0.5)(0.166, 0.2, 0.25)(3, 4, 5)(2, 3, 4)(0.33, 0.5, 1)(4, 5, 6)0.1417114
OV2(4, 5, 6)(1, 1, 1)(0.33, 0.5, 1)(3, 4, 5)(2, 3, 4)(0.25, 0.33, 0.5)(3, 4, 5)(0.25, 0.33, 0.5)0.1822272
OV3(2, 3, 4)(1, 2, 3)(1, 1, 1)(0.25, 0.33, 0.5)(1, 2, 3)(0.33, 0.5, 1)(0.2, 0.25, 0.33)(0.25, 0.33, 0.5)0.0849486
OV4(4, 5, 6)(0.2, 0.25, 0.33)(3, 4, 5)(1, 1, 1)(0.33, 0.5, 1)(2, 3, 4)(2, 3, 4)(2, 3, 4)0.1957331
OV5(0.2, 0.25, 0.33)(0.25, 0.33, 0.5)(0.33, 0.5, 1)(1, 2, 3)(1, 1, 1)(0.25, 0.33, 0.5)(1, 2, 3)(0.33, 0.5, 1)0.0436488
OV6(0.25, 0.33, 0.5)(2, 3, 4)(1, 2, 3)(0.25, 0.33, 0.5)(2, 3, 4)(1, 1, 1)(2, 3, 4)(0.33, 0.5, 1)0.1344695
OV7(1, 2, 3)(0.2, 0.25, 0.33)(3, 4, 5)(0.25, 0.33, 0.5)(0.33, 0.5, 1)(0.25, 0.33, 0.5)(1, 1, 1)(0.25, 0.33, 0.5)0.0675287
OV8(0.166, 0.2, 0.25)(2, 3, 4)(2, 3, 4)(0.25, 0.33, 0.5)(1, 2, 3)(1, 2, 3)(2, 3, 4)(1, 1, 1)0.1497363
Note: OV stands for ordinary violations.
Table 8. Priority criteria of ranking for errors.
Table 8. Priority criteria of ranking for errors.
E1E2E3E4E5E6E7WeightRank
E1(1, 1, 1)(0.25, 0.33, 0.5)(0.33, 0.5, 1)(2, 3, 4)(1, 2, 3)(0.25, 0.33, 0.5)(1, 2, 3)0.1444
E2(2, 3, 4)(1, 1, 1)(2, 3, 4)(1, 2, 3)(2, 3, 4)(4, 5, 6)(0.33, 0.2, 1)0.2651
E3(1, 2, 3)(0.25, 0.33, 0.5)(1, 1, 1)(0.33, 0.5, 1)(2, 3, 4)(2, 3, 4)(0.33, 0.25, 1)0.1753
E4(0.25, 0.33, 0.5)(0.33, 0.5, 1)(1, 2, 3)(1, 1, 1)(1, 1, 1)(1, 2, 3)(0.25, 0.33, 0.5)0.0935
E5(0.33, 0.5, 1)(0.25, 0.33, 0.5)(0.25, 0.33, 0.5)(1, 1, 1)(1, 1, 1)(1, 2, 3)(0.33, 0.5, 1)0.0497
E6(2, 3, 4)(1.66, 0.2, 0.33)(0.25, 0.33, 0.5)(0.33, 0.25, 1)(0.33, 0.25, 1)(1, 1, 1)(0.25, 0.33, 0.5)0.0546
E7(0.33, 0.5, 1)(1, 2, 3)(1, 2, 3)(2, 3, 4)(1, 2, 3)(2, 3, 4)(1, 1, 1)0.222
Note: E stands for errors.
Table 9. Priority criteria of ranking for lapses.
Table 9. Priority criteria of ranking for lapses.
L1L2L3L4L5L6L7WeightRank
L1(1, 1, 1)(0.33, 0.5, 1)(0.33, 0.25, 1)(0.25, 0.33, 0.5)(2, 3, 4)(0.33, 0.5, 1)(3, 4, 5)0.1356
L2(1, 2, 3)(1, 1, 1)(0.33, 0.5, 1)(0.25, 0.33, 0.5)(0.33, 0.5, 1)(0.33, 0.5, 1)(2, 3, 4)0.1167
L3(1, 2, 3)(1, 2, 3)(1, 1, 1)(1, 2, 3)(1, 2, 3)(0.33, 0.5, 1)(0.2, 0.25, 0.33)0.1414
L4(0.25, 0.33, 0.25)(2, 3, 4)(0.33, 0.5, 1)(1, 1, 1)(0.33, 0.5, 1)(0.33, 0.5, 1)(3, 4, 5)0.1671
L5(1, 2, 3)(1, 2, 3)(0.33, 0.5, 1)(1, 2, 3)(1, 1, 1)(0.33, 0.5, 1)(3, 4, 5)0.1463
L6(1, 2, 3)(1, 2, 3)(1, 2, 3)(1, 2, 3)(1, 2, 3)(1, 1, 1)(0.2, 0.25, 0.33)0.1562
L7(0.2, 0.25, 0.33)(0.25, 0.33, 0.5)(3, 4, 5)(0.2, 0.25, 0.33)(0.2, 0.25, 0.33)(3, 4, 5)(1, 1, 1)0.1395
Note: L stands for lapses.
Table 10. Driver behavior ranking by different age groups.
Table 10. Driver behavior ranking by different age groups.
Driver Behavior
Questionnaire
Ranking
CriteriaSub-Criteria Age
18–20
Age
20–30
Age
30–40
Age
40–50
Age
50–60
DBQViolations AV111111
AV222333
AV333222
OV144452
OV222224
OV387675
OV411111
OV568767
OV635546
OV776888
OV853333
ErrorE144466
E251111
E333242
E425533
E577677
E666755
E712324
LapsesL136665
L257774
L314341
L461222
L523416
L672133
L745557
Note: DBQ = driver behavior questionnaire, AV = aggressive violation, OV = ordinary violation, E = error, L = lapses.
Table 11. Likert scale data analysis.
Table 11. Likert scale data analysis.
Likert Scale Data Analysis and Interpretations of Results
DBQ CriteriaN
=1
H.E
=2
O
=3
Q.O
=4
F
=5
N.A
=6
Total (%)Total (#)MeanSDVarianceDecision
ViolationsAV117.625.527.513.79.85.91003062.9021.422.017High Perception
AV237.315.729.47.83.95.91003062.4311.4482.095Low Perception
AV329.423.525.515.75.901003062.4511.2281.507Low Perception
OV139.221.613.77.87.89.81003062.5291.6872.847Low Perception
OV225.519.617.613.713.79.810030631.6712.793High Perception
OV345.119.613.715.75.901003062.1761.3111.72Low Perception
OV49.811.825.511.821.619.51003063.8241.6082.585High Perception
OV55117.617.67.823.91003062.0391.3451.808Low Perception
OV639.219.617.611.87.83.91003062.4121.4872.21Low Perception
OV745.119.617.613.73.901003062.1181.2331.521Low Perception
OV819.631.423.515.73.95.91003062.7061.3641.861High Perception
ErrorsE131.413.723.519.65.95.91003062.7251.5122.285High Perception
E217.623.513.715.715.713.71003063.2941.6982.884High Perception
E325.519.611.819.615.77.81003063.0391.6592.753High Perception
E425.531.413.713.713.721003062.6471.4422.078High Perception
E545.123.59.83.99.87.81003062.3331.6562.741Low Perception
E625.529.423.59.87.83.91003062.5691.3781.899Low Perception
E717.625.816.714.415.79.81003063.1411.6142.606High Perception
LapsesL137.321.625.55.97.821003062.3141.3381.79Low Perception
L237.331.419.34.27.801003062.2191.3961.949Low Perception
L329.425.521.212.129.81003062.6111.5392.37Low Perception
L419.639.217.611.829.81003062.6671.4672.151High Perception
L529.425.517.617.627.81003062.6081.4992.246Low Perception
L629.427.513.713.79.85.91003062.6471.5472.393High Perception
L725.539.217.69.825.91003062.4121.3331.777Low Perception
Note: N = never, H.E = hardly ever, O = occasionally, Q.O = quite often, F = frequently, and N.AT = nearly all the time.
Table 12. Accuracy of machine learning models.
Table 12. Accuracy of machine learning models.
TypeModelsValidation LossAccuracyPrecisionF1 ScoreRecall
Machine LearningNaïve Bayes1.9266.300.600.380.46
Decision Tree Classifier1.9268.400.670.670.67
Support Vector Machine1.2876.081.000.760.75
Random Forest1.0980.300.840.720.77
Ensemble Model 0.7080.400.840.950.89
Note: accuracy, precision, recall, and F1-Score are common metrics employed in classification tasks to assess the performance of each model.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alam, W.; Wang, H.; Pervez, A.; Safdar, M.; Jamal, A.; Almoshaogeh, M.; Al-Ahmadi, H.M. Analysis and Prediction of Risky Driving Behaviors Using Fuzzy Analytical Hierarchy Process and Machine Learning Techniques. Sustainability 2024, 16, 4642. https://doi.org/10.3390/su16114642

AMA Style

Alam W, Wang H, Pervez A, Safdar M, Jamal A, Almoshaogeh M, Al-Ahmadi HM. Analysis and Prediction of Risky Driving Behaviors Using Fuzzy Analytical Hierarchy Process and Machine Learning Techniques. Sustainability. 2024; 16(11):4642. https://doi.org/10.3390/su16114642

Chicago/Turabian Style

Alam, Waseem, Haiyan Wang, Amjad Pervez, Muhammad Safdar, Arshad Jamal, Meshal Almoshaogeh, and Hassan M. Al-Ahmadi. 2024. "Analysis and Prediction of Risky Driving Behaviors Using Fuzzy Analytical Hierarchy Process and Machine Learning Techniques" Sustainability 16, no. 11: 4642. https://doi.org/10.3390/su16114642

APA Style

Alam, W., Wang, H., Pervez, A., Safdar, M., Jamal, A., Almoshaogeh, M., & Al-Ahmadi, H. M. (2024). Analysis and Prediction of Risky Driving Behaviors Using Fuzzy Analytical Hierarchy Process and Machine Learning Techniques. Sustainability, 16(11), 4642. https://doi.org/10.3390/su16114642

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop