Abstract

To describe the microtrajectory change behavior of two-wheeled vehicles when encountering nonrigid obstacles, this paper proposes an obstacle avoidance model of two-wheeled vehicles for nonrigid obstacles based on the improved social force method. In the model, the obstacle avoidance characteristics of two-wheeled vehicles for nonrigid obstacles and the safety operation requirements of two-wheeled vehicles are considered. The calculation methods of the minimum boundary distance of avoidance and the boundary avoidance force range edge function are proposed based on the ultimate turning angle and boundary avoidance characteristics, respectively. The speed control and direction control behavior of the rider to the vehicle is abstracted as the form of social force, and the two-wheeled vehicle/rider individual is subjected to the avoidance force and correction force perpendicular to the direction of the longitudinal axis of the vehicle body. The centrifugal trajectory obstacle avoidance motion obeying the Newtonian mechanics is studied based on the characteristics of the vehicle body turning angle change. Different traffic environments are constructed by MATLAB software and simulated according to the model running logic, and sensitivity analysis is performed based on the actual data collected in the survey. The simulation results show that, under the same conditions, compared with  = 50N, when  = 200N, the X-axis displacement of the simulated vehicle in the avoidance process is shortened by 26.31%, and the body deflection angle increases by 50.75% at the end moment of the avoidance process. Compared with electric motorcycles, the displacement of the X-axis in the avoidance process of the electric bicycle is shortened by 16.92%, and the body deflection angle at the end moment of the avoidance process is increased by 13.68%. The simulation results show that the model can well describe the trajectory change behavior characteristics of two-wheeled vehicles/riders encountering nonrigid obstacles in real situations, and the obstacle avoidance model of two-wheeled vehicles proposed in this paper is considered to be traffic justified.

1. Introduction

In recent years, affected by the rapid urbanization, the urban road network has expanded sharply, but in the old urban areas of these cities, there are problems of untimely maintenance of roads and low level of road condition management. Vehicle overloading, poor pavement quality, and tree root extension in the isolation zone lead to road pavement damage problem and poor road evenness. Due to the small traffic load of nonmotorized vehicles, the severity of pavement damage in nonmotorized lanes is generally lower than that in motorized lanes. Because of the light mass of two-wheeled vehicles, the phenomenon of bumping is more obvious when two-wheeled vehicles pass through uneven pavement areas. The vibration filtering capacity of the two-wheeled vehicles’ suspension system is limited, which greatly reduces the driving comfort of two-wheeled vehicle riders when passing through the area. Most two-wheeled vehicle riders proactively adjust their riding behavior to change the microtrajectory behavior when passing through the pavement damage area. This paper uses the social force model to modify the characteristics of the microtrajectory change behavior.

The social force model was first used as a pedestrian microdynamics model to study the walking pattern of pedestrians. Pedestrian motion trajectory models in obstacle scenarios [16] are a basic class of research based on social force theory. Based on the research foundation, most scholars conduct crowd organization modeling studies in specific scenarios. The study scenarios mainly include airports [7, 8], rail stations [911], large shopping malls [12], and other passenger flow distribution locations. In recent years, the study of pedestrian crossing behavior [1315] has also gradually become a major trend in social force research.

Since there are similarities between pedestrian microdynamics and two-wheeled vehicle microdynamics, some scholars introduced the social force model into the research of two-wheeled vehicle microbehavior. Liang et al. [16] were the first scholars using the social force model to carry out research related to the microdynamics of bicycle flow in nonmotorized lanes. She proposed a classical psycho-physiological force model for bicycle riders. The study abstracted bicycles as ellipses and revealed the relationship between vehicles by using driving force, avoidance force, and physiological force. Zheng [17] proposed influencing variables such as riding style and complex interference classification on the basis of the basic psychophysiological force model. She carried out research related to complex traffic phenomena of nonmotorized traffic flow in nonmotorized lanes. Li [18] proposed a microscopic behavior model of bicycles at signalized plane intersections based on the social force model. Some other scholars have used social force models to modify the characteristics of traffic conflicts in shared spaces between motor vehicles and nonmotor vehicles and humans and nonmotor vehicles. The research related to the motor vehicle-nonmotor vehicle microdynamics focuses on the interference phenomenon generated by nonmotorized vehicles intruding into the motor vehicle passing area. These research studies established the related social force dynamics model based on the interference characteristics. The study scenarios of the motor vehicle-nonmotor vehicle microdynamics model mainly include motor vehicle-nonmotor vehicle shared traffic areas such as single carriageway road, dual carriageway road [19, 20], and intersection areas [21, 22]. The relevant human-nonmotor vehicle microdynamics model not only studies the disturbing effect of pedestrians on two-wheeled vehicles [23, 24] but also considers the disturbing behavior of two-wheeled vehicles on pedestrians [25]. Moreover, scholars have carried out studies related to the interaction between crosswalks and two-wheeled vehicles [26], which further improved the research system of microdynamics of slow-traffic mixed traffic flow. A comparison of the various social force modeling approaches is shown in Table 1.

In summary, at present, research on the driving behavior of motor vehicle drivers and autonomous vehicles is relatively mature [33], but there is relatively little research on the driving behavior of two-wheeled vehicles’ rider in special environments; the existing two-wheeler microdynamics studies based on the social force model are mainly modeled for obstacles such as two-wheelers, four-wheeled motor vehicles, road boundaries, and pedestrians, which may not be traversed from the top of such obstacles during the normal operation of a two-wheeler. These obstacles are rigid obstacles. Therefore, when two-wheeled vehicles are interfered by such obstacles, pedestrians choose to avoid or follow the obstacles, and the existing literature mainly focuses on the modeling study of the operation characteristics of the above rigid obstacles. In this paper, the focus of obstacles is shifted to the type of nonrigid obstacles such as road breaks and speed bumps. Taking the microscopic trajectory of obstacle avoidance behavior of two-wheeled vehicles as the object of study, based on the method of the social force model, considering the change of body angle, and innovatively introducing the concepts of avoidance force and modification force, we propose a two-wheeled vehicle nonrigid obstacle avoidance model with a view to providing two-wheeled vehicle drivers with suggestions for safe driving.

2. Model Preparation

2.1. Definition of Nonrigid E Obstacles

This paper defines objects that interfere with the movement of two-wheeled vehicles within the nonmotorized lanes (including the lane boundaries) as obstacles, where the concept of nonrigid obstacles is defined according to the characteristics of the obstacles. Static disturbing objects in nonmotorized lanes are defined as nonrigid obstacles that can be rolled over in the normal operation of two-wheeled vehicles, produce discomfort (including vehicle vibration and water splashing) when contacted at low and medium speeds, and produce operational safety problems caused by violent vehicle bumps when contacted at high speeds. Among these nonrigid obstacles, there are pavement damage subsidence within 10 cm, shallow puddles, and speed bumps. When disturbed by a flexible obstacle, the rider passes in a more selective way, either by avoiding the obstacle or by rolling over the obstacle with safety in mind.

2.2. Vehicle Body Deflection Angle

When a two-wheeled vehicle is in the process of the avoidance, the angle at which the body axis is deflected within a certain period of time is called the vehicle body deflection angle. Assuming that the body axis is parallel to the driving direction of the lane at moment 0 s and the avoidance behavior is about to start, the vehicle body deflection angle at moment is defined as , and the change of the vehicle body deflection angle generated in the next unit time interval is . The diagram of the vehicle body deflection angle is shown in Figure 1, in which the vehicle body deflection angle reference line is the line in the direction of the central axis of the vehicle body at the last unit moment.

2.3. Extreme Avoidance

As shown in Figure 2, point Q is the starting point for the vehicle to start avoiding (the point where the front wheel of the vehicle makes contact with the ground). Point R is the crossing point of the vehicle avoidance trajectory (the trajectory of the contact point between the front wheel and the ground) and the central axis of the damaged area. Point P is the projection point of point Q on the central axis of the damaged area. Points C and D are the crossing points of the edge line of the damaged area on the left and right side of the driving direction and the central axis of the damaged area, respectively. Along points C and D, 2 lines extend parallel along the upstream direction of the lane, defined as the upstream virtual traffic zone boundary. The area between the 2 lines is the upstream virtual traffic zone. The length of RC is , m. The length of CP is , m. The length of PD is , m. The length of QP (avoidance distance) is , m.

Due to the influence of external interference or other factors, the rider does not recognize the flexible obstacle within the safety recognition distance, and when the avoidance distance reaches the minimum value, there is an extreme avoidance problem. In the process of extreme avoidance, the trajectory from Q to R can be simplified to a straight line, which is the QR line in Figure 2. The vehicle body deflection angle change process can be approximately considered as the body deflection angle does not continue to change after reaching the extreme body deflection angle at the fastest angular speed until the vehicle front wheel passes the point R. can be approximately used as the extreme vehicle body deflection angle .

The extreme vehicle body deflection angle will be variable under different speed conditions. From the literature [34], it is known that, under the same conditions, the larger the speed, the smaller the extreme body deflection angle . The extreme vehicle body deflection angle satisfies the requirement of equation (1). Based on the extreme vehicle body deflection angle , the extreme avoidance distance of the vehicle can be calculated by the vehicle speed and vehicle lateral position. The extreme avoidance distance satisfies the requirement of equation (2).where is the wheel diameter of the vehicle, m; is the wheel width of the vehicle, m; is the speed, m/s. After a survey of the mainstream two-wheeled brands in the market, it was concluded that the majority of two-wheeled vehicles have a wheel diameter of 14 in and a tire width of 5.40 cm. The majority of electric motorcycle wheels are 10 in in wheel diameter and 7.62 cm in tire width. Most of the wheels of human-powered bicycles have a wheel diameter of 24 in–26 in and a tire width of 3.49–4.95 cm. Under the condition that the initial vehicle body deflection angle is 0 rad, the value of varies with wheel diameter, speed, and vehicle lateral position. The value variations of are shown in Figure 3.

Based on the vehicle operation state under the extreme avoidance condition, the speed and trajectory constraints of the vehicle are proposed. The trajectory constraints are shown in equation (3), and the speed constraints are shown in equation (4).where is the vertical distance between the crossing point (points C or D) and the edge line of the lane, m. If , represents the distance to the left of the lane driving direction. If , represents the distance to the right of the lane driving direction.

2.4. Individual Vehicle Scope and Area Coordinates

Vehicle individual scope definition includes 2 categories: vehicle body scope and driving field scope. Vehicle body scope is the physical scope of the vehicle body. The driving filed scope is a more comfortable clearance area around the vehicle when the rider rides [35]. The scopes of individuals in 2 categories are shown in Figure 4.

The center of the ellipse is the midpoint of the line connecting the contact points between the front and rear wheels of the vehicle and the ground. The major and minor semiaxes of the ellipse of the vehicle body scope are and , respectively. The major and minor semiaxes of the ellipse of the driving field scope are and , respectively. The range of ellipse calculation function is shown in equation (5) [36].

Calculation functions for the major and minor semiaxes of the scope of the human-powered bicycle and the scope of the driving field:

Calculation functions for the major and minor semiaxes of the scope of the electric two-wheeled vehicle and the scope of the driving field:

In this section, for the convenience of later modeling, the scope of the flexible obstacle and the surrounding area is divided by the definition of coordinates. This paper takes midpoint O of line CD as the origin, the upstream direction of driving direction is the positive direction of X-axis, and the left direction of driving direction is the positive direction of Y-axis, as shown in Figure 5.

In Figure 5, is the subject vehicle of the study. is the surrounding interference vehicle. The center position coordinate of the vehicle at moment is . The coordinate of point R is .where is the width value of the axis of the flexible obstacle in the direction perpendicular to the driving direction, m (shown in Figures 46). The horizontal and longitudinal coordinates of the contact point between the front wheel of the subject vehicle and the ground at moment are given in the following equation.where is the horizontal coordinate of the contact point between the front wheel of the subject vehicle and the ground at moment . is the longitudinal coordinate of the contact point between the front wheel of the subject vehicle and the ground at moment . is the vehicle body deflection angle of the subject vehicle at moment .

3. Modeling

3.1. The Action Scope of Social Forces
3.1.1. Minimum Boundary Distance of Avoidance

The concept of minimum boundary of avoidance is proposed for the constraint of the extreme body deflection angle in actual avoidance. When the contact point between the front wheel of the vehicle and the ground belongs to the area between the minimum boundary and the edge of the flexible obstacle, the vehicle will no longer change the effect of the lateral avoidance force on the obstacle (as shown in Figure 7). Under this speed and position condition, the vehicle is no longer able to completely avoid the flexible obstacle. The rider abandons the need for avoidance and focuses more on the constraints for the desired speed to get better safety and comfort.

The minimum boundary of avoidance is related to the speed, vehicle body deflection angle, and lateral position of the vehicle. As the vehicle speed changes, the minimum boundary changes accordingly. The minimum boundary function is shown in equation (11).

Taking subsidence of manhole cover as the research object, the diameter of the subsidence area is assumed as 0.8 m, , and the minimum boundary ranges for different wheel types (refer to Section 2.3) and speeds are shown in Figure 6. The schematic of minimum boundary is shown in Figure 8.

3.1.2. Boundary Avoidance Force Range

The vehicle body deflection angle and speed at a certain moment produce a boundary avoidance range, which will change in real time with the change of the vehicle body deflection angle and speed. When the front wheel of the vehicle rides into the boundary avoidance area, the vehicle is then subjected by the boundary avoidance force. Assume that the vehicle is riding with the current vehicle body deflection angle and speed at the moment , the angular speed and vehicle speed will change after being subjected to the correction avoidance force. The body deflection angle is changed with the uniform angular speed of . The vehicle speed is corrected with . The correction ends when the vehicle corrected lateral speed reaches 0 m/s and has conflict with the lane virtual boundary. At the moment , the absolute value of the longitudinal coordinate of the vehicle front wheel contact point is the value of the width of the boundary avoidance force range , m. The lane virtual boundary is the minimum safe distance boundary acceptable to the rider from the lane boundary, and its distance from the lane boundary is the difference between the driving filed scope and the minor semiaxis of the vehicle scope. The boundary avoidance force range diagram is shown in Figure 7, calculation function is shown in equation (12), and the boundary avoidance force range edge function is shown in equation (13).where is the moment when the vehicle discriminates the boundary avoidance force range, s. is the moment when the body deflection angle is changed to 0 rad by the modified driving force, s. As shown in Figure 5, is the distance between point C and the left boundary of the lane driving direction, m. is the distance between point C and the right boundary of the lane driving direction, m.

3.2. Driving Force Model

Obstacle driving force is a psychological force that only changes the vehicle speed. It is an expression of the rider’s desire to obtain a comfortable riding experience by acceleration or deceleration when encountering a flexible obstacle. The driving force is related to the desired speed of the rider. However, when the horizontal coordinate of the front wheel contact point is less than the minimum avoidance boundary to , the rider cannot perform effective avoidance behavior under the speed, body deflection angle, and position conditions. The rider performs deceleration considering more the comfort when rolling through the flexible obstacle, as well as considering the comfortable desired speed . In this paper, the moment when the vehicle starts the avoidance behavior is set to . The vehicle driving force calculation function of the upstream of the flexible obstacle is shown in the following equation.where is the mass of the subject vehicle i. is the actual riding vehicle speed at the moment . is the vehicle comfortable desired speed at moment . is the expected action duration of the rider to achieve the desired speed of avoidance. is the expected action duration of the rider to achieve the comfortable desired speed. is the moment when the front wheel of the vehicle reaches the point R. is the unit vector along the major semiaxis of the body scope towards the front of the vehicle.

3.3. Avoidance Forces and Correction Forces Model
3.3.1. Obstacle Avoidance Force

Obstacle avoidance force is a mental force generated by the rider to avoid a flexible obstacle (as in the M1–M3 states in Figure 9). The force explains the behavior of a rider steering a two-wheeled vehicle to change its body deflection angle after encountering a flexible obstacle. This behavior does not change the speed in the direction of the major semiaxis of the body scope and only changes the direction of the major semiaxis of the body scope. The obstacle avoidance force is always perpendicular to the direction of the major semiaxis of the vehicle body scope, which does not change the vehicle speed and only changes the vehicle body deflection angle.

The value of the obstacle avoidance force depends on the distance between the vehicle and the minimum avoidance boundary. Obstacle avoidance force disappears after the vehicle leaves the upstream virtual traffic zone. As shown in Figure 9, the force expressed by dotted line in the M3 state indicates the disappearance of . The calculation function of obstacle avoidance force is shown in the following equation.where is the strength of obstacle avoidance force for individual i and the value of is certain for the specific subject vehicle. is the moment when the vehicle leaves the upstream virtual traffic zone and the front wheel rolls over the boundary of the upstream virtual traffic zone. is the moment when the vehicle passes the point R. is the unit vector perpendicular to the direction of the major semiaxis of the body scope.

3.3.2. Front Vehicle Correction Avoidance Force

When a rider discovers an interfering vehicle in the influence area ahead, the interfering vehicle exerts a psychological pressure on the rider, which forms the front vehicle correction avoidance force . The force affects the rider’s choice of the avoidance behavior. When the front vehicle correction avoidance force is too large, it causes the rider to abandon the avoidance behavior and to roll over the flexible obstacle by reducing the expected speed. The vehicle trajectory under the action of the front vehicle correction avoidance force is shown in Figure 10.

If the speed of the frontal interfering vehicle is less than the speed of the subject vehicle, the psychological pressure of the interfering vehicle on the rider keeps increasing as the longitudinal distance between the two vehicles continuously decreases. When the speed of the front interference vehicle is smaller than the speed of the subject vehicle, the rider does not choose the avoidance behavior and the front vehicle correction avoidance force is equal to the obstacle avoidance force. When the front vehicle is overtaken by the subject vehicle in the longitudinal direction, the front vehicle correction avoidance force disappears. When the speed of the front interference vehicle is too fast (this paper defines the speed of the front interfering vehicle as greater than or equal to 1.5 times the speed of the subject vehicle), the rider thinks that the front interference vehicle does not cause interference to himself and the front vehicle correction avoidance force is 0 N.

The value of the longitudinal length of the frontal influence area varies with speed. The value varies for riders of different personalities and relies heavily on the subjective thoughts of the riders. This paper assigns a fixed value to the longitudinal length of the frontal influence area according to the personalities of different riders and vehicle speed. When the longitudinal distance between the interfering vehicle and the subject vehicle is within the value of the longitudinal length of the frontal influence area, the rider is subjected to the front vehicle correction avoidance force. The calculation formula of the value of the longitudinal length of the frontal influence area is shown in equation (16). The calculation formula of the value of the horizontal width of the frontal influence area is shown in equations (17) and (18). The frontal influence area is shown in Figure 11.

The value of front vehicle correction avoidance force depends on the difference in speed and distance between the two vehicles along the X-axis. In general, under the same conditions, the smaller the difference in speed and distance, the larger the front vehicle correction avoidance force. If the front wheel of the subject vehicle rolls over the upstream virtual traffic zone boundary, the front vehicle correction avoidance force disappears. The mental force expressed by the dotted line of M3 state in Figure 11 indicates the front vehicle correction avoidance force disappears. The calculation function of the front vehicle correction avoidance force is shown in equation (19).where is the personality correction parameter for the longitudinal length of the influence area ahead of the subject individual i. The number is a certain value for the specific subject vehicle. is the horizontal coordinate of the projection of the rear of the interfering vehicle on the ground. is the rider’s reaction time, s. is the friction coefficient of the tire. is the safety distance, m. is the length of the major semiaxis of the driving field scope of the subject individual i at moment . is the length of the minor semiaxis of the driving field scope of the subject individual i at moment . is the length of the minor semiaxis of the vehicle body scope of the subject individual k at moment .

When , or , the rider of the subject vehicle is under great psychological pressure from the interfering vehicles, the rider is not willing to avoid. The calculation formula of front vehicle correction avoidance force is shown in the following equation.

When the subject vehicle is subjected to the front vehicle correction avoidance force, the change of the vehicle body deflection angle is controlled by the combined force of the collision avoidance force and the front vehicle correction avoidance force. This paper defines that the combined force of all social forces other than the driving force is called the combined force of avoidance. The combined force only controls the driving direction of the vehicle and not the vehicle speed. The calculation function of change rate of the body deflection angle is shown in the following equation.

If the rider expects to avoid the flexible obstacle, the vehicle trajectory during the avoidance duration needs to satisfy the condition shown in the following equation.

3.3.3. Obstacle Avoidance Correction Force

Obstacle avoidance correction force is a psychological force generated by the rider to correct the vehicle operation after riding away from the upstream virtual traffic zone (shown in M3–M5 states in Figure 9). After the front wheel of the vehicle rides away from the upstream virtual traffic zone boundary, the rider steers the vehicle and corrects the direction as soon as possible to make the vehicle driving direction parallel to the lane driving direction. The rider deflects the vehicle toward the center of the lane so that the body deflection angle is corrected to 0 rad as soon as possible, to avoid collision between the vehicle and the lane boundary. The obstacle avoidance correction force is always perpendicular to the major semiaxis speed direction of the vehicle body scope. The value of the obstacle avoidance correction force depends on the distance between the vehicle and the edge of the boundary avoidance force influence range. After the vehicle leaves the upstream virtual traffic zone, the obstacle avoidance correction force disappears when the vehicle body deflection angle is corrected to 0 rad. The constraint function of the end moment of the obstacle avoidance correction force is shown in equation (23). The calculation function of the obstacle avoidance correction force is shown in equation (24). The calculation function of the change rate of the body deflection angle under the action of the obstacle avoidance correction force is shown in equation (25).where is the strength of the obstacle avoidance correction force for individual i. The value of is a certain value for the specific subject vehicle. is the unit vector in the direction opposite to and perpendicular to the direction of the major semiaxis of the body scope. For example, if is oriented to the left of the lane driving direction, then is oriented to the right of the lane driving direction. The function of the vehicle front wheel trajectory in the flexible obstacle section without the boundary avoidance force condition is shown in the following equation.

3.3.4. Forces Associated with the Boundary Avoidance Process

The boundary avoidance force action process includes boundary avoidance force and boundary avoidance correction force. The trajectory of the boundary avoidance force process is shown in Figure 12. The psychological forces expressed by the dotted line in the states M2, M4, and M6 in Figure 12 indicate the disappearance of the psychological forces at the state.

(1) Boundary Avoidance Force. The boundary avoidance force is related to the extent to which the front wheel of the vehicle intrudes into the boundary avoidance force influence range. This paper argues that the more severe the extent of front wheel intrusion, the more intense the psychological oppression of the boundary on the rider, the less comfortable and safe the rider feels. The boundary avoidance force is perpendicular to the major semiaxis of the body scope, which does not change the velocity value of the vehicle in the major semiaxis direction, only changes the velocity direction, so that the vehicle moves away from the boundary as soon as possible and enhances the driving comfort.

When the front wheel of the vehicle contact s which is the edge of the avoidance force influence range, other lateral forces disappear and the boundary avoidance force begins to act on the rider. The psychological force expressed by the dotted line of the M2 state in Figure 12 indicates the disappearance of the obstacle avoidance correction force. This paper considers that the value of the boundary avoidance force depends on the distance between the vehicle and the edge of the boundary avoidance force influence range. If the vehicle rides away from the boundary avoidance force influence area, the boundary avoidance force disappears. The psychological force expressed by the dotted line of the M4 state in Figure 11 indicates the disappearance of the boundary avoidance force.

When the front wheel of the vehicle invades the boundary avoidance force influence range, the desired speed of the vehicle will drop significantly. This paper defines the speed change of the vehicle in the boundary avoidance force influence range meets the cosine function change law, where the independent variable . The value of vehicle acceleration variation shows a tendency of deceleration followed by acceleration.

The velocity change function within the boundary avoidance force influence range is shown in equation (27). The calculation function of driving force of the vehicle within the boundary avoidance force influence range is shown in equation (28). The calculation function of boundary avoidance force is shown in equation (29). The calculation function of the change rate of body deflection angle under the action of boundary avoidance force is shown in equation (30).where is the strength of the boundary avoidance force for individual i. The value of is a certain value for the specific subject vehicle. is the entry moment when the front wheel of the vehicle crushes the edge of the boundary avoidance force influence range. is the departure moment when the front wheel of the vehicle crushes the edge of the boundary avoidance force influence range. is the moment when the coordinates of the contact point between the front wheel of the vehicle and the ground reach position .

(2) Boundary Avoidance Correction Force. The boundary avoidance correction force is the accessory force to the boundary avoidance force. The boundary avoidance correction force corrects the vehicle body deflection angle generated by the boundary avoidance force, so that the vehicle body returns to the flow operation direction. The boundary avoidance correction force is perpendicular to the major semiaxis of the body scope, which does not change the vehicle major semiaxis direction velocity value, only changes the velocity direction, so that the vehicle body deflection angle is corrected to 0 rad and then completes the boundary avoidance process.

The value of the boundary avoidance correction force depends on the distance between the vehicle and the edge of the boundary avoidance force influence range. In general, under the same conditions, the greater the distance, the greater the boundary avoidance correction force. If the vehicle body deflection angle is corrected to 0 rad, the boundary avoidance correction force disappears. As shown in Figure 9, the psychological force expressed by the dotted line of M6 state indicates the disappearance of the boundary avoidance correction force. The calculation function of the boundary avoidance correction force is shown in equation (31). The calculation function of the change rate of vehicle body deflection angle under the influence of boundary avoidance correction force is shown in equation (32). The constraint function of the end moment of the boundary avoidance correction force is shown in equation (33).where is the strength of the boundary avoidance correction force for individual i. The value of is a certain value for the specific subject vehicle. is the end moment of boundary avoidance correction force. is the moment when other lateral forces actually end their action. The function of the vehicle front wheel trajectory after being subjected to the boundary avoidance force is shown in equation (34).

3.4. Model Logic

The avoidance process in the model includes four steps, which are discovering nonrigid obstacles and willing to avoid, trajectory judgement, avoidance execution, and trajectory correction. The flowchart is shown in Figure 13.

4. Model Verification

4.1. Data Survey

Researchers can collect traffic flow parameters and trajectory data of pedestrians, two-wheeled vehicles, and motor vehicles through video filming methods, and among them, using high-definition drone photography methods to conduct traffic flow characteristic surveys is currently the mainstream method. The video data captured by high-definition drones can effectively extract trajectory data and traffic flow characteristic parameters. Moreover, the survey data obtained using drone shooting methods have high quality [3740]. To investigate the distribution of vehicle speed and related trajectory in the upstream and the road section of flexible obstacle, this paper selects 10 locations of flexible obstacle areas with manhole cover subsidence in Guilin city. Aerial photography investigation is conducted by using an unmanned drone. The relevant indexes of the survey locations are shown in Table 2. Parts of the survey section of the actual views are shown in Figure 14.

In the presurvey, the distribution of the sample of 1103 vehicles leaving the upstream virtual traffic zone was calculated. The upstream virtual traffic zone from which the vehicles leave is concentrated in the interval of 0–14 m (as shown in Figure 15). The marking length of the upstream virtual traffic zone in the survey area is determined to be 16 m.

Statistical methods are often used in the study of traffic flow theory and traffic behavior [37, 41, 42]. As shown in Figure 14, marking lines are set in the upstream 12 m, 16 m from the manhole cover subsidence. Marking lines are also set at the upstream and downstream direction of the transverse central axis of the subsidence at an interval of 2 m along the direction perpendicular to the lane driving. The marking lines are used to detect the average speeds of the vehicle in the 12–16 m section and through the manhole cover subsidence or the area on both sides. The average speed of the vehicle in the 12–16 m section is defined as the initial speed, and the average speed through the manhole cover subsidence or the area on both sides is defined as the terminal speed.

In this paper, MATLAB software is used to simulate the model, and the simulation step is 0.02 s. Different traffic environments are also constructed, and sensitivity analysis is performed on the model to draw relevant conclusions. The setting parameters of each type of simulated vehicle are shown in Table 3, and the values of the parameters related to the model simulation are shown in Table 4.

In this paper, the process from the beginning of the vehicle avoidance behavior to the front wheel of the vehicle rolling over the edge of the upstream virtual traffic zone or the transverse axis of the flexible obstacle is defined as the avoidance process. The process in which the vehicle is driven by the obstacle avoidance correction force is defined as the correction process.

4.2. Trajectory Simulation
4.2.1. Trajectory Characteristics of Different Strengths of Obstacle Avoidance Force

In the simulation environment,  = 1.6 m, riders detect and identify manhole cover subsidence and damage at a distance of 5 m. The vehicles with a deceleration value of more than 1 km/h in the survey data are selected. The average values of initial speed and terminal speed are 6.539 and 5.860, respectively. The acceleration is −0.34 . The speed of the vehicle at the moment the rider detects and identifies the manhole cover subsidence and damage (the speed of the vehicle is , the same below) is deduced as 6.090 , is 0.0349 rad. The simulation vehicle is electric motorcycle. The avoidance behaviors are simulated under the conditions of  = 50 N, 100 N, 150 N, and 200 N, respectively. The simulation trajectory is shown in Figure 16, and the related parameter statistics are shown in Figure 17. The statistics related to the avoidance behavior of simulated vehicles under different obstacle avoidance force strength conditions are shown in Table 5. The statistical data in the table include the displacement along the X-axis during the avoidance process of the simulated vehicle, the coordinates of the contact point of the front wheels, and the body deflection angle at the end moment of the avoidance process.

The simulation results show that, under the same conditions, compared with  = 50 N, when  = 200 N, the displacement in the X-axis direction of the simulated vehicle in the avoidance process is shortened by 26.31%, and the body deflection angle increases by 50.75% at the end moment of the avoidance process.

4.2.2. Avoidance Trajectory Characteristics of Different Vehicle Types

In the simulation environment,  = 1.6 m, riders detect and identify manhole cover subsidence and damage at a distance of 5 m, the longitudinal coordinate of the center point of the vehicle is 0.1 m. The rider expects to detour to the left of the driving direction. The vehicles with a deceleration value of more than 1 km/h in the survey data are selected. The average values of the initial speed and the terminal speed of each vehicle type are counted in Table 6.

The initial vehicle body deflection angle for all types of vehicles is 0.0349 rad. The strength of the obstacle avoidance force for all types of vehicles is 150 N. The simulation trajectory is shown in Figure 18, and the related parameter statistics are shown in Figure 19. The statistics related to the avoidance behavior of different vehicle types are shown in Table 7. The statistical data in the table include the displacement along the X-axis during the avoidance process of the simulated vehicle, the coordinates of the contact point of the front wheels, and the body deflection angle at the end moment of the avoidance process.

The simulation results show that, under the same conditions, compared with electric motorcycles, the displacement of the X-axis in the avoidance process of the electric bicycle is shortened by 16.92%, and the body deflection angle at the end moment of the avoidance process is increased by 13.68%. Compared with electric motorcycles, the displacement of the X-axis in the avoidance process of the human-powered bicycles is shortened by 38.26%, and the body deflection angle at the end moment of the avoidance process is increased by 52.63%.

4.2.3. The Action Process of Boundary Avoidance Force

Three different pavement damages are constructed in different locations in the lane. is 1 m, 0.8 m, 0.6 m, respectively, in three different road scenarios. The simulation vehicle is electric motorcycle. Riders detect and identify manhole cover subsidence and damage at a distance of 4 m. The longitudinal coordinate of the center point of the vehicle is 0 m, the speed of the vehicle is 6 , the expected speed of the vehicle is 5 , the acceleration of the vehicle is −1 , is 0.0873 rad, and the strength of the obstacle avoidance force is 150 N. The simulation trajectory is shown in Figure 20. The simulation trajectory of the boundary avoidance force action process includes three categories: obstacle avoidance trajectory (red trajectory in Figure 20), boundary avoidance trajectory (green trajectory in Figure 20), and boundary correction trajectory (blue trajectory in Figure 20). The related parameter statistics are shown in Figure 21. The statistics related to the avoidance behavior of simulated vehicles under different conditions are shown in Table 8. The statistical data in the table mainly consist of 3 parts: obstacle avoidance data, boundary avoidance data, and maximum displacement in the Y-axis direction of the front wheel contact point. The obstacle avoidance data and the boundary avoidance data include the displacement in the X-axis direction, the coordinates of the front wheel contact point, and the body deflection angle at the end moment of the avoidance process, respectively.

The simulation results show that, under the same conditions, compared with  = 1.0 m, when  = 0.6 m, the displacement in the X-axis direction of the obstacle avoidance is reduced by 78.38%. The body deflection angle at the end moment of the avoidance process is decreased by 25.95%. The displacement in the X-axis direction of the boundary avoidance is reduced by 43.42%. The absolute value of the body deflection angle at the end moment of the boundary avoidance is decreased by 57.75%. The maximum displacement in the Y-axis direction of the front wheel contact point of the vehicle is reduced by 75.17%.

4.2.4. The Action Process of Front Vehicle Correction Avoidance Force

The simulation parameters are as follows: the radius of the damage area is 0.4 m,  = 1.6 m. The subject vehicle in the simulation is electric bicycle. Riders detect and identify manhole cover subsidence and damage at a distance of 10 m. The longitudinal coordinate of the center point of the vehicle is 0.2 m, the speed of the vehicle is 6 , the expected speed of the vehicle is 5 , the acceleration of the vehicle is −0.5 , the initial vehicle body deflection angle is 0 rad, and personality correction parameters for the longitudinal value of the influencing area in front of the rider are taken as 1, 2, and 3 respectively. The strength of the obstacle avoidance force is 150 N. The type of the interference vehicle in the simulation is electric bicycle. At the moment , the coordinate of the center point of the vehicle is . The vehicle rides at the uniform speed of 7 . The simulation trajectory at the end moment of the avoidance process is shown in Figure 22, and the statistics of related parameters are shown in Figure 23. The statistics related to the avoidance behavior of different vehicle types are shown in Table 9. The statistics in Table 8 include the displacement along the X-axis during avoidance, the coordinates of the front wheel contact point at the end moment of the avoidance, the vehicle body deflection angle, and the distance between and along the X-axis at the end moment avoidance.

The simulation results show that, under the same conditions, compared with  = 1, when  = 3, the displacement of along the X-axis in the avoidance increases by 21.39%, and the body deflection angle decreases by 10.84% at the end moment of the avoidance.

4.3. Discussion
(1)As shown in Figures 16 and 17, when the strength of the obstacle avoidance force is greater, representing the stronger the rider’s willingness to avoid, the greater the peak value of the vehicle body deflection angle during the avoidance process. The peak value of the vehicle body deflection angle is the maximum vehicle body deflection angle reached by the continuous change during the avoidance process. In the simulation, the rider did not successfully avoid the obstacle at  = 50 N. The smaller the peak value of the vehicle body deflection angle, the smaller the obstacle avoidance correction force and the rider’s willingness to correct after the front wheel leaves the upstream virtual traffic zone. The longitudinal displacement and lateral displacement are greater in the correction process. Taubman et al. [44] classified riders into reckless and careless, anxious, angry and hostile, and careful and patient riding styles according to their riding characteristics. According to the relevant definitions in the literature, under the same conditions, the obstacle avoidance force and the obstacle avoidance correction force for reckless and careless riders are smaller. The reckless and careless riders are more tolerant of pavement damage and have a longer time to correct the vehicle body deflection angle after leaving the upstream virtual traffic zone. With greater displacement in the Y-axis direction, these types of riders have greater impact on other riders. The obstacle avoidance force and the obstacle avoidance correction force for careful and patient riders are larger. Their tolerance for pavement damage is lower. Careful and patient riders expect to avoid the road damage through the fastest path and have a shorter time to correct the vehicle body deflection angle after leaving the upstream virtual traffic zone. The displacement in Y-axis direction is smaller. Careful and patient riders have smaller impact on other riders. The characteristics of the above simulation results are consistent with the actual situation in the survey.(2)As shown in Figures 18 and 19, under the same conditions, human-powered bicycles have better avoidance ability and can leave the upstream virtual traffic zone in a shorter distance. Compared to human-powered bicycles, electric motorcycles have poorer avoidance ability and need to leave the upstream virtual traffic zone in a longer distance. During the correction process, the displacement in X-axis direction and Y-axis direction of the electric motorcycle is larger, while the displacement in X-axis direction and Y-axis direction of the human-powered bicycle is smaller. Due to the smaller tire diameter, larger body mass, and faster speed of electric motorcycles, their steering performance is poor. When facing the same pavement damage, electric motorcycles need more distance to avoid obstacle than electric bicycles and human-powered bicycles. The simulation result is consistent with the actual situation in the survey. The smaller body mass, larger tire diameter, and slower speed of the human-powered bicycle allow it to steer flexibly and complete the avoidance and correction process in a shorter distance. It is found in the survey that human-powered bicycles are the vulnerable group in nonmotorized lanes. The human-powered bicycle riders who successfully avoid obstacles prefer to ride close to the edge of the damaged area to reduce the interference to other vehicles. They also prefer to reduce the change of displacement in the Y-axis direction to preserve their physical strength. The above behavioral characteristics are also reflected in the model.(3)As shown in Figures 20 and 21, the boundary avoidance force increases as the distance between the vehicle and the lane boundary decreases. The willingness to avoid becomes stronger as the rider gets closer to the boundary. The vehicle speed decreases rapidly as it approaches the lane boundary, while the vehicle maintains a constant speed as it moves away from the boundary. When the distance is less than 0.8, the rider cannot successfully perform avoidance behavior from the preferred avoidance direction. When the distance is less than 0.6 m, the rider hardly has the will to avoid in the direction and take a straight line to pass through the pavement damage area. Under the same conditions, the closer the edge of the pavement damage in the riders’ preferred avoidance direction is to the lane boundary, the greater the boundary avoidance force on the riders and the smaller their willingness to avoid. When the distance reaches a minimal value, the riders no longer engage in avoidance behavior and pass the pavement damage section. The characteristics of the above simulation results are consistent with the actual situation in the survey.(4)As shown in Figures 22 and 23, can reflect the rider’s attitude towards riding. The larger the -value, the more cautious the rider’s riding attitude and the more influenced by the interfering vehicles. Careful and patient riders have larger values of , while reckless and careless riders have smaller values of . The simulation results show that the larger the value of , the greater the influence the rider receives from the vehicle in front, and the greater the distance the rider needs to avoid in the X-axis direction. The characteristics of the above simulation results are consistent with the actual situation in the survey.

5. Conclusion

This paper takes the obstacle avoidance trajectory of two-wheeled vehicle riding in the upstream virtual traffic zone as the research object. The acceleration and deceleration behavior of two-wheeled vehicles and the behavior of steering the vehicle are both abstracted as social force forms. A flexible obstacle avoidance model is established based on the conventional nonmotorized social force model. Different traffic environments are constructed in the model. The model is simulated according to the operation logic, and sensitivity analysis is performed. The simulation vehicle trajectory is plotted. The simulation result characteristics are analyzed. Comparison with the actual situation verifies that the obstacle avoidance model is applicable to describe the essential characteristics of obstacle avoidance in real traffic.

This study only models the trajectory changes of two-wheeled vehicles caused by a single flexible obstacle. Subsequent research will be carried out to address the situation where multiple nonrigid obstacles are distributed in combination on the actual road, as well as to consider the influence of multiple types of obstacles on the overall two-wheeled vehicle trajectory change, which will be carried out in depth step by step. However, the simulation method of obtaining reliable characteristic parameters of two-wheeled vehicle driving trajectory changes by using fine modeling of the social force model can be used as a scientific method for safe driving warning of nonmotorized vehicles and plays a certain role in the development of safety assessment.

Data Availability

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

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This research was supported by the National Natural Science Foundation of China under Grant nos. 71861006 and 71861005, Transportation Operation Subsidy Project of Guangxi Key Laboratory of International Join for China-ASEAN Comprehensive Transportation in 2021 (no. 21-220-21), the Natural Science Foundation of Guangxi Province under Grant no. 2020GXNSFAA159153, and the Specific Research Project of Guangxi for Research Bases and Talents under Grant no. AD20159035.