1. Introduction
The rapid expansion of lifestyle logistics services requires proactive measures to address safety issues related to two-wheeled vehicles. In 2022, the delivery service market in South Korea reached approximately 26.5 trillion won, exhibiting a remarkable growth of 973% compared to 2017, with a steep annual growth rate of 162% (KOSTAT,
http://www.kostat.go.kr, accessed on 1 June 2023). The shift to non-face-to-face consumption patterns due to the COVID-19 pandemic has led to an increased frequency of two-wheeled vehicle usage, resulting in a rise in delivery-related traffic accidents. Particularly concerning is the growing prevalence of traffic accidents involving efficient two-wheeled vehicles, given their accessibility and cost advantages. According to the Ministry of Land, Infrastructure and Transport, as of 2022, the total number of traffic accident fatalities in South Korea decreased by 6.21% compared to the previous year, reaching 2735 deaths [
1]. However, the number of fatalities involving two-wheeled vehicles increased by 5%, resulting in 484 additional deaths, which underscores the necessity for enhanced safety measures for such vehicles.
The data collection system and quantitative indicators for evaluating the safe driving of two-wheeled vehicle operators are insufficient. For commercial vehicles, such as buses and taxis, there are defined criteria for 11 risky driving behaviors. Judgment criteria for each violation are established through analysis of discomfort metrics of passengers using pupil reaction and electrocardiogram tests, and a comprehensive safety driving index is developed based on violation-specific weights (eTAS). In the case of data collection systems for commercial vehicles, real-time data such as GPS, speed, RPM, brake usage, and distance traveled are collected using a Digital Tachograph (DTG) to analyze vehicle operation patterns. However, the absence of data collection and analysis platforms for two-wheeled vehicles results in a significant lack of foundational data. Two-wheeled vehicles have greater maneuverability than four-wheeled vehicles, enabling more aggressive driving behaviors like rapid turns and lane changes. Due to these reasons, methods for detecting and evaluating aggressive driving behavior in two-wheeled vehicles are limited. As a result, studies on safe driving indices for two-wheeled vehicles have been conducted based on restricted assessment criteria, such as speed, acceleration, and work environment [
2]. The detection methods for driving behaviors like rapid turns and rapid lane changes, which can lead to accidents, are also inadequate.
Simulation technology and artificial intelligence (AI) based on data are necessary for developing methods to detect aggressive driving behaviors using two-wheeled vehicles. Due to the absence of a data collection system for two-wheeled vehicles, acquiring real-world data on aggressive driving behaviors with these vehicles is practically challenging. Therefore, there is a need to use simulation technology that can replicate real-world situations to acquire data. Additionally, considering the free-spirited driving behaviors of two-wheeled vehicles, AI technologies based on time-series data are essential for detecting aggressive driving. Time-series-based AI technologies can track driving characteristics such as speed, acceleration, and rotation over time [
3]. These technologies can effectively distinguish between normal driving patterns and abnormal driving patterns associated with aggressive driving. They take advantage of the ability to differentiate between these patterns [
4].
Meanwhile, unlike conventional passenger cars and trucks, two-wheeled vehicles have limitations in terms of the detection devices that can be installed due to the nature of the vehicle. As a result, compared to vehicles with accessible onboard sensors, such as camera sensors used in driving videos, two-wheeled vehicles have fewer options for detecting devices. Hence, it becomes essential to utilize the limited data available from simulations to consider the potential attachment of detection devices to actual two-wheeled vehicles in the future.
The limited data that can be obtained from simulators include sensor data like speed, acceleration, and angular velocity. Based on this premise, this study aims to develop a method for detecting aggressive driving behaviors in simulated two-wheeled vehicles using the limited available data. Through this, using solely limited sensor data resources, we would like to contribute to the traffic safety field by presenting a method for setting classification criteria for aggressive driving of two-wheeled vehicles with free movement.
The structure of this study consists of the following:
Section 2, which covers the literature review;
Section 3, which outlines the research methodology;
Section 4, which covers applications; and
Section 5, which concludes this study.
2. Literature Review
Aggressive vehicle driving has traditionally been assessed based on factors such as sudden acceleration, abrupt braking, rapid lane changes, and sharp turns. However, for two-wheeled vehicles, their relatively more agile and maneuverable nature, compared to conventional passenger cars and trucks, often leads to frequent safety accidents caused by excessive, rapid lane changes and turns [
1].
In the context of rapid lane changes, research has predominantly utilized image-based algorithms to detect lane changes [
5,
6,
7,
8,
9], often incorporating information about surrounding vehicles [
3,
10,
11,
12,
13]. J. Gao et al. (2020) employed the LaneNet model to detect lanes from black-box vehicle dashcam footage, determining lane change based on the distance from the lane’s center [
9]. Buhet et al. (2019) used RGB images from a vehicle’s camera sensor in the Carla simulator to detect lane change [
8]. Chauhan et al. (2020) utilized the YOLOv3 model to detect leading vehicles in black-box video and identified rapid lane change through the zigzag pattern of detected object movements in video frames. However, applying the methods used in existing research for lane-change detection, which often relies on attaching image sensors for lane detection, is practically challenging for two-wheeled vehicles due to limitations in sensor placement. The distinctive free-form driving patterns of two-wheeled vehicles impose limitations on the extraction of rapid lane changes from video footage when equipping them with image sensors. In particular, individual lane-change detection using images from individual vehicle cameras presents constraints. Jang et al. (2017) tackled this differently, detecting illegal lane changes from CCTV footage by tracking individual vehicle trajectories [
5]. This approach focuses on utilizing movement characteristics and trajectories rather than solely relying on individual vehicle imagery for detection.
Woo et al. (2017) utilized the relative velocity between the target vehicle attempting to perform a lane change and its front and rear vehicles to distinguish between zigzag driving within the lane and an actual lane change [
11]. They employed an SVM model for detection. Similarly, L. Zhang et al. (2019) used SVM and decision tree models with information about surrounding vehicles to detect lane change [
10]. Y. Zhang et al. (2022) applied the XGBoost model to predict lane change using driving trajectory data, incorporating various information such as angular velocity and distance from surrounding vehicles [
3]. They emphasized utilizing information from the surrounding traffic flow for predicting lane change and improved model accuracy by adjusting the segment near the lane-change point. While traditional machine learning techniques can be used to detect lane change, it remains challenging to equip individual two-wheeled vehicles with devices capable of detecting information about surrounding vehicles. On the other hand, C. Zhao et al. (2022) estimated lane change using data on relative distances and driving speeds of adjacent vehicles [
12]. They compared various machine learning models and a multilayer perceptron in terms of architectural complexity. Interestingly, even with a simpler architecture, like a perceptron layer, models incorporating deep learning outperformed traditional machine learning models.
Furthermore, there have been attempts to detect rapid lane change using simple sensor data [
14]. In their study, Eftekhari and Ghatee (2019) classified vehicle behaviors, including lane changes, rotations, and U-turns, using only smartphone sensors such as accelerometers, magnetometers, and gyroscopes. The experiment involved 20 real-world drivers, which imposes limitations on applying complex techniques like artificial neural networks due to the relatively small dataset. While there were cases where lane changes were misclassified as rotations, the overall accuracy was 87%, indicating the potential for accuracy improvement with increased data availability. Thus, in this study, an attempt is made to detect rapid lane change using trajectory data obtained solely from individual two-wheeled vehicle sensors like GNSS and GPS without utilizing image-based algorithms or information about surrounding traffic. Additionally, this study aims to enhance detection accuracy through data acquisition from simulations.
3. Research Methodology
Figure 1 represents the overall framework of this research, which is structured as follows. Initially, criteria for aggressive driving were established through surveys since determining stages of aggressive driving can be subjective. To collect data on these stages, a survey was conducted with 100 participants using videos depicting various levels of aggressive driving scenarios simulated in a virtual simulator. Subsequently, the collected data were employed to develop an aggressive driving detection model. Detailed information regarding data preprocessing for aggressive driving detection and the developed model will be elucidated in the subsequent sections. Finally, the model’s performance is evaluated through practical case studies.
In this study, the detection criteria for aggressive driving on two-wheeled vehicles were narrowed down to rapid turn and rapid lane change. Rapid turn was considered suitable for aggressive driving detection, as it accounted for more than half of all two-wheeled vehicle accidents in Seoul, South Korea, in 2021 (KoROAD,
https://taas.koroad.or.kr, accessed on 1 June 2023). Rapid lane change was considered in comparison to rapid turn due to their limited distinction based on the time scale in
Figure 2.
Figure 2 illustrates the temporal changes in the z-axis gyroscope values for rapid turn and rapid lane change. As evident in the figure, distinct differences in the movement patterns of rapid turns and rapid lane change can be observed. In the case of rapid turns (
Figure 1 and
Figure 2a), the maximal change in values occurs within 1 s, while for rapid lane change (
Figure 2b), it is within 0.5 s. In addition, the maximum values of the z-axis angular velocity clearly differentiate between rapid turns and rapid lane changes. Furthermore, drivers change lanes to overtake other vehicles, whereas rapid lane changes are regarded as aggressive driving behaviors that can lead to accidents, such as rear-end collisions. Therefore, this study determined that rapid lane changes are also suitable for the category of aggressive driving detection on two-wheeled vehicles. Meanwhile, we chose to focus on items related to turns and thus excluded various aggressive driving behaviors, such as rapid acceleration, rapid deceleration, and close proximity to pedestrians.
To detect aggressive driving, sensor data extracted from the Carla simulator were chosen with considerations for the feasibility of onboard installation on real two-wheeled vehicles. Image data and information about surrounding vehicles that can be extracted from camera and lidar sensors were excluded from consideration. Instead, acceleration, angular velocity, and position information were utilized.
The Carla simulator is an open-source simulator designed for autonomous driving research [
15]. Apart from its application in autonomous driving research, it serves as a valuable platform for generating and modeling trajectory data for two-wheeled vehicles. The simulator recreates various environments and road conditions virtually to simulate the behavior of two-wheeled vehicles. It uses sensors like speed, gyroscope, and acceleration to generate data that resemble real-world driving situations. In this study, various aggressive driving scenarios and trajectory data that would be difficult to collect on actual roads were generated and analyzed using the simulator.
3.1. Rapid Turn
Rapid turns can be detected using gyroscope and acceleration data [
16]. While previous research utilized only the z-axis gyroscope to detect rapid turns, this study considers both the Y and z-axis acceleration values in addition to the z-axis gyroscope values to differentiate between stages of rapid turns.
Figure 3 illustrates the changes in z-axis gyroscope, y-axis acceleration, and z-axis acceleration values across different stages of rapid turns. As the stage of rapid turning increases, the z-axis gyroscope value changes sharply, and both Y and z-axis acceleration values demonstrate increased fluctuations. As the level of aggressiveness increases, z-axis gyroscope, y-axis acceleration, and z-axis acceleration all exhibit a decrease in the time interval within which a single segment is estimated based on the maximum values. Additionally, these maximum values demonstrate an upward trend. Furthermore, a distinct skew pattern towards the right is observed, which effectively captures the maneuvering patterns associated with rapid turns in two-wheeled vehicles. Finally, the z-axis gyroscope values indicate an inclination effect within the vehicle, particularly noticeable from Stage 3 of aggressiveness onwards, as it returns to regular driving following the completion of a rapid turn. This study defines the criteria for rapid turns based on these observations, as shown in
Table 1.
3.2. Rapid Lane Change
Rapid lane changes exhibit a back-and-forth pattern due to the nature of vehicle movement [
16], for instance, rapidly changing from a left turn to a right turn within a short time.
Figure 4 illustrates the staged rapid lane changes, with gray segments indicating the rapid lane-change periods. It is noticeable that the z-axis gyroscope value oscillates around 0 during rapid lane-change segments. However, there are many cases where the z-axis gyroscope value oscillates but does not correspond to a rapid lane change, and the acceleration value is inconsistent. This indicates the difficulty of establishing a straightforward definition for rapid lane changes due to their complex and non-linear nature. Moreover, rapid lane changes tend to oscillate rapidly from left to right in a short period, making it challenging to define solely based on observation.
For these reasons, the classification of rapid lane changes was conducted, as shown in
Figure 5. First, with the input unit in
Figure 5, the data processing phase was initiated, which involved transforming the multivariate time-series data—consisting of speed, angular velocity, acceleration, and coordinate information—through feature engineering. The features from the raw data and the results of feature engineering are presented in
Table 2. Due to the temporal nature of time-series data, data augmentation is critically important [
17]. In this study, techniques such as flipping and window cropping were utilized. Flipping involves horizontally flipping the given time-series data, while window cropping entails extracting portions from specific time intervals and inserting them randomly. For window cropping, a window of 2 s was set in consideration of the characteristics of rapid lane changes. Since the processed data originated from data acquired through surveys, datasets were available for each stage of rapid lane changes. Consequently, when splitting into training and testing datasets, care was taken to ensure that specific classes were not concentrated within certain time periods. The data split ratios for training, testing, and validation were configured as follows: for Stage 1, it was set to 6:2:2; for Stage 2, it was set to 7:1.5:1.5; for Stage 3, it was set to 7:1.5:1.5; and for Stage 4, it was configured as 8:1:1. After segregating the data into stage-specific rapid lane-change datasets, they were consolidated, completing the data preprocessing phase. The processed data underwent normalization, followed by feature selection (feature selection in
Figure 5). In this study, feature selection was performed using the feature importance provided by XGBoost. The top 10 features were extracted and can be found in
Table 3.
Finally, with CNN-LSTM unit in
Figure 5, we proceeded with training a time-series, deep learning model using the 10 extracted features. The model employed in this study is a CNN-LSTM model with LSTM as the backbone and convolution layers [
18]. An assessment of different parameter settings for hidden state size (128, 256, 512) and recurrent layer (2, 4, 6) was conducted, which indicated that variations in these parameters primarily affected training time and did not significantly impact the model’s performance metrics. Consequently, the hidden state and recurrent layer of this model were set to 128 and 6, respectively. Layer normalization was applied, and to address class imbalance, we performed balance adjustment in the loss function.
Figure 6 and
Table 4, respectively, illustrate the performance graphs of the model and the classification results for rapid lane changes. The training was conducted for 11 K epochs, and judging by the accuracy and loss on both the training and validation datasets, we determined that the training proceeded successfully. The overall accuracy for the classification of rapid lane changes is 95%, and the average precision, recall, and f1-score for normal driving and stage-specific rapid lane changes are 0.926, 0.886, and 0.904, respectively.
5. Conclusions
In this study, we propose a method for detecting aggressive driving in two-wheeled vehicles. Our emphasis is on the significance of this research in enhancing the safety of two-wheeled riders and preventing traffic accidents. The key outcomes of our investigation entail the proposal of a model for identifying aggressive driving patterns, such as rapid turns and aggressive rapid lane changes. We derived a subjective concept of aggressiveness through surveys and gathered data on risky driving behavior via simulations. Notably, we explored an approach to detect aggressive lane changes without relying on camera technology, which can be challenging due to the difficulties of installing cameras on two-wheeled vehicles, by relying solely on sensor technology.
Through this research, we illustrate the potential for identifying aggressive driving in two-wheeled vehicles using sensor data. We formulated criteria for rapid turns through observations and delineated patterns for aggressive lane changes through various feature engineering techniques and the CNN-LSTM model. The results of practical application further validated the correspondence with these patterns. We anticipate that these research findings will contribute to the advancement of two-wheeled driver safety and the prevention of traffic accidents.