GA-BPNN Based Hybrid Steering Control Approach for Unmanned Driving Electric Vehicle with In-Wheel Motors

The steering system is a key component of the unmanned driving electric vehicle with in-wheel motors (IWM-EV), which is closely related to the operating safety of the vehicle. To characterize the complex nonlinear structure of the steering system of unmanned driving IWM-EV, a hierarchical modeling and hybrid steering control approach are presented. Firstly the 2-DOF model is introduced for the entire vehicle system, and then the models of the steering system and the in-wheel drive system are analyzed sequentially. The steering torque control system based on electronic differential (ED) and differential assist steering (DAS) is studied. The back propagation neural network (BPNN) is used to optimize the network structure, parameters, and the weight coefficient of the hybrid steering system. The genetic algorithm (GA) is employed to optimize the initial weight of BPNN and search within a large range. The GA-BPNN model is established with the yaw moment and differential torque as the input of BPNN. Simulation and experimental results show that the proposed GA-BPNN-based hybrid steering control approach not only accelerates the convergence speed of steering torque weight adjustment but also improves the response speed and flexibility of the steering system. Through optimizing and distributing the steering torque dynamically, the proposed GA-BPNN-based control approach has inherited the advantages of both vehicle stability under ED and the steering assistance under DAS, which further guarantees the safety and stability of unmanned driving IWM-EV.


Introduction
Unmanned driving technology not only improves the driving safety but also provides an effective way to solve traffic jam.After decades of research, unmanned driving is gradually evolving from semiautonomous to fully autonomous [1][2][3].In-wheel motor drive electric vehicle is a kind of new energy vehicle with the drive motor installed inside the wheel.It has many advantages such as independently controllable drive torque, fast and accurate torque response, compact structure, and high energy efficiency [4][5][6].Compared with traditional vehicle, an unmanned driving electric vehicle with in-wheel motors (IWM-EV) has significant advantages in safety, stability, and economy.It can improve vehicle safety, trajectory tracking, and flexibility.Therefore, the unmanned driving IWM-EV will be the main development direction of EV in the future.The vehicle steering system is an important part of the IWM-EV, which is related to the operating safety of the whole vehicle.Currently, there are very few studies on the steering system of unmanned driving IWM-EV; however, the research on steering control of wheel motor drive vehicle provides a reference for the research on steering system of unmanned driving IWM-EV [7][8][9][10][11][12].There are two main steering control approaches: the electronic differential (ED) control and the differential assist steering (DAS).
The electronic differential (ED) control strategy is introduced into the vehicle control system, which takes the speed and turning angle required by the unmanned driving vehicle as input and the speed of the two rear-drive motors as the output.The results show the function of the mechanical differential can be completely realized by ED controller [13].The ED control system of in-wheel motor drive vehicle based on neural network and PID is constructed.By coordinating the torque of four in-wheel motors, the ED control steering is realized and the handling and stability of the low-speed steering of the vehicle are improved [14].The vehicle yaw rate response and the handling performance of the vehicle are obviously improved through DAS control strategy, which reduces the steering wheel torque under the premise of ensuring the driver's road feeling [15].The DAS control system is modeled and the wheel torque distribution control strategy is studied [16].The DAS control strategy not only improves the vehicle driving stability but also satisfies the steering handiness.
However, single ED or DAS control cannot meet the differential and assist performance requirements of the inwheel motor drive electric vehicle at the same time, especially in the case of turning operation, when the vehicle differential system is coupled with the assist steering system.Though theoretically both the ED control and the steering wheel assist control are needed to carry out by the difference of the in-wheel motor driving force, one single actuator cannot achieve two different dynamic control targets.Therefore, it is necessary to design a hybrid steering control strategy to coordinate the ED and DAS control.
On the other hand, the steering system of unmanned driving IWM-EV has exhibit characteristics of the complex structure, nonlinearity, time-varying, and multiparameters [17][18][19].In addition, as a complex system of different components involving many disciplines such as mechanics, control, and information, the steering system is closely related to the vehicle operating safety.As a result, it motivates our indepth investigation of the steering system.
This paper contributes a novel hybrid steering control strategy based on GA-BPNN for unmanned driving IWM-EV.The weight of ED control and DAS control is dynamically adjusted, and the steering torque is optimized and distributed through the proposed GA-BPNN approach.The hybrid control of ED and DAS for the steering system is achieved.The proposed GA-BPNN method not only improves the response speed and flexibility of the steering system but also guarantees the operating safety of the unmanned driving IWM-EV.
The paper is organized as follows.The configuration and modeling of unmanned driving IWM-EV are analyzed in Section 2. Section 3 presents the hybrid steering control approach based on GA-BPNN.The torque controller of the steering system is discussed in Section 4. In Section 5, the DAS, ED, and hybrid steering control approach are simulated.Section 6 is devoted to the road testing verification of DAS, ED, and GA-BPNN-based hybrid steering control approach.The conclusions of the work are presented in Section 7.

Configuration and Modeling of Unmanned
Driving IWM-EV

Complexity
It can be seen from Figure 1 that the unmanned driving IWM-EV is mainly composed of the environment-detecting module, the decision, control module, and the execution module.The environment-detecting module is the core control part of the unmanned driving vehicle, in which the GPS, INS, and sensor information should be analyzed and calculated.The operating performance of unmanned driving IWM-EV mainly determines on the computing ability of the environment-detecting module.GPS and INS are used to calculate the driving position, vehicle speed, and other information of the unmanned driving vehicle.The navigation parameters are analyzed to guide the unmanned driving IWM-EV to operate along the selected route accurately and safely [20][21][22][23].
Accurate and effective vehicle model provides a solid foundation for simulation and control.The dynamic model diagram of the unmanned driving vehicle is shown in Figure 2. The steering system of an unmanned driving electric vehicle with in-wheel motors has strong nonlinear property, which makes the intelligent vehicle has complex dynamic response [24,25].According to the vehicle dynamics of the vehicle in real operation, block modelling method is employed to reflect the vehicle motion condition, dynamical coupling, and nonlinear steering mechanism.

2-DOF Model of Unmanned
Driving IWM-EV.The dynamical steering process is complex with time variables.Two wheels on the front and rear axle can be simplified into one wheel.To analyze the unmanned driving vehicle with in-wheel motors, 2-DOF model of unmanned driving IWM-EV is established [26][27][28].The linear reference model of 2-DOF is shown in Figure 3. F yf and F yr are the lateral force of tire, respectively.
where m is the vehicle mass.α is the slip angle of the vehicle.V f and V r are the cornering stiffness of front and rear tires, respectively.v x and v y are the longitudinal and lateral speed of the vehicle, respectively.φ is the vehicle yaw rate.l f and l r are the distance from the mass center to the front and rear wheel, respectively.J z is the moment inertia of the vehicle around z-axis.δ is the steering angle of the front wheel.The lateral control model can be expressed as where X = v y , φ, y L , ε L T , y L is the lateral deviation, ε L is the azimuth deviation.Y = y L , ε L T .u = δ .g = X, U is the disturbance caused by unmodelled dynamics.3 Complexity 3. Steering Model.The steering system performance plays an essential role in the lateral stability control for an unmanned driving vehicle with in-wheel motors [25,[29][30][31].To clearly describe the steering wheel and the steering system, the equivalent model of the steering system is established and shown in Figure 4.
Assuming the yaw rate is φ when the vehicle is turning round, the equivalent dynamic equations of the steering wheel and front wheel are described as where J 1 is the equivalent moment of inertia of the steering wheel.J 2 is the equivalent moment of inertia of the tire.θ 1 is the steering angle of the steering wheel round the pin.θ 2 is the steering angle of the tire.C 1 and C 2 are the equivalent damping coefficient of steering wheel around the pin, and the equivalent damping coefficient of output shaft of steering system, respectively.K s is the torsional stiffness coefficient.T 1 is the torque of the steering wheel.T 2 is the torque on the tire caused by the tire cornering force around the kingpin.
2.4.In-Wheel Motor Model.The dynamic response of the inwheel motor model can be simplified as a 2-order system [32][33][34].The transfer function can be expressed as where ζ is the coefficient determined by the in-wheel motor parameters.
The drive torque of the in-wheel motor is where p is the pole pair number of the in-wheel motor.ψ d and ψ q are the flux of the d-axis and q-axis.i d and i q is the flux of the d-axis and q-axis.

GA-BPNN-Based Hybrid Steering Control Approach
3.1.Hybrid Steering Control Scheme.To achieve the abovementioned control purpose, the hybrid control approach is proposed as shown in Figure 5.
The hybrid control scheme consists of yaw-based electronic differential (ED) control, steering torque-based differential assist steering (DAS) control, and hybrid steering control based on GA-BPNN approach.ED and DAS constitute the upper layer controller, which is used to calculate the yaw rate torque for ED and differential torque according to the feedback vehicle speed, steering wheel torque, and angle signals from the vehicle dynamic model.The hybrid steering torque controller based on GA-BPNN in the lower layer is employed to dynamically adjust the weight of yaw rate torque and differential torque.The drive torque of the in-wheel motor in the left and right side are obtained finally.The weight is mainly determined by the vehicle speed.The weight of ED can be set for a large value to guarantee the vehicle stability in the high-speed range.The weight of DAS can be set for a large value to decrease the steering load in the low-speed range.

Back Propagation Neural
Network.The 3-layer back propagation neural network (BPNN) is adopted in this paper.Assuming M is the node number in the input layer, H is the node number in the hidden layer, and N is the node number in the output layer.The control variable of ED is u 1 and the control variable of DAS is u 2 .There are two nodes in the input layer, one is connected with ED controller and the other is connected with the DAS controller.Assuming the input and output set X p , T p , p = 1, 2, … , P, where P is the number of training samples.X p is the input vector of the p-th sample, X p = x p 1 , … , x p M .T p is the expected output vector of the p-th sample, T p = t p 1 , … , t p N , N is the number of dimensions of the output vector.O p = o p 1 , … , o p N is the real output vector of the neural network [35][36][37].

Complexity
The single hidden layer is employed in the BPNN.v ik is the weight between the i-th node in the input layer and the k-th node in the hidden layer.w kj is the weight between the k-th node in the hidden layer and the j-th node in the output layer.
Sigmoid described as ( 8) is the transfer function in the hidden and output layer.
The output of k-th node in the hidden layer is described as where y pk is the output of k-th node in the hidden layer.
x pi is the input of i-th node in the input layer.η k ∈ 0, 1 is the impact factor of the k-th node in the hidden layer.The output of j-th node in the output layer is expressed as Uniting (8), the differential of o pj to η k is The impact factor change of η k is shown as The estimated value of j-th node in the output layer is expressed as where △ω kj is the weight change.
Combining ( 8) with ( 13), the weight change can be described as The sum of squares for error E can be obtained through △ω kj .Then, an optimized value of k-th node in the hidden layer can be selected to get a minimum value for E.
3.3.Genetic Algorithm.Genetic algorithm (GA) is a new global optimization search method based on Darwin's theory of evolution and Mendel's genetic theory.The algorithm with strong robustness is suitable for parallel processing.It is widely used in computer science, optimization scheduling, transportation problems, combinatorial optimization, and other fields [38][39][40].
The GA can be described as where O 0 = a 1 0 , a 2 0 , … , a W 0 ∈ I W is the initial population?I = 0, 1 is the set of a binary string of L. W is chromosome number in the population.L is the length of the binary string.3.4.GA-BPNN Based Hybrid Control.The BPNN and GA are hybridized as GA-BPNN to optimize the initial weight.The weight and threshold value will be updated by heredity and mutation to minimize the total square error of GA-BPNN [41][42][43].The flow chart of the proposed GA-BPNN is illustrated in Figure 6.
The procedures of GA-BPNN are shown as follows: (1) The initial population X t = x 1 t , x 2 t , … , x W t is generated randomly.The fitness values of all samples x i t ∈ X t are also calculated.The new population X′ t will be generated by hybridization operation and mutation operation with hybridization probability p c andp m , respectively (2) Calculating the fitness of each sample in X′ t .The next generation population X t + 1 will be obtained by the optimization strategy (3) The training will not end until the output training error of the optimized sample in the newly generated population is less than 10 −3 .Otherwise, the evolution continues The GA is employed to train the BPNN.The fitness function of GA is expressed as where y ′ i is the output of i-th input sample.y i is the expected output.S t is the total learning sample number.
The error of the selected high-quality sample is guaranteed to be small through (16).

Torque Controller of Steering System
4.1.DAS Controller.The wheel dynamic can be described as where F is the vertical drive force of the tire.r w is the radius of the wheel.J ω is the moment inertia of the wheel.ω is the angular speed of the wheel.
Assuming the drive torque of the in-wheel motors in the left and right side are T l and T r , respectively.The longitudinal drive force of the tire are F l and F r , respectively.T sl and T sr are the torque around the left and right drive wheels, which can be expressed as where r σ is the scrub radius.
T sl is equal to T sr in the traditional mechanical steering system.However, drive torque difference T s is caused by the different drive force from the left and right in-wheel motors.
The drive torque difference is delivered to the pinion and rack system by the steering arm, which propels the steering tie rod to move.Therefore, the steering assistance is achieved where φ e is the expected yaw rate.v is the vehicle speed.n is the vehicle stability coefficient.
The response of φ to the front wheel angle δ can be described as where g and u are determined by the vehicle parameters, respectively.
The above formula on the slip model surface is expressed as Eq. ( 20) should satisfy the following condition The yaw moment controlled can be obtained The yaw moment controller based on the slide mode control scheme can well track the expected value [45,46].One second later, the steering wheel input keeps at a constant value 180 °.The steering wheel torque and vehicle trajectory are compared in Figures 7 and 8, respectively.

Simulation Verification
It can be seen from Figure 7 that DAS control scheme effectively reduces the steering wheel torque and steering load at low speed, especially in the process of the steering wheel angle change.Figure 8 illustrates that the turning radius of the vehicle is smaller under DAS control due to the different drive torque of the left and right in-wheel motor under DAS control.The left and right in-wheel motor torque shown in Figure 9 generates an extra yaw moment to the vehicle, which finally reduces the under-steering performance of the vehicle and improves the cornering ability.The response curve in Figure 10 also illustrates the yaw rate is increased due to the extra yaw moment.

Electronic Differential Simulation.
To verify the effectiveness of the sliding mode control for ED, the steering wheel angle step input and sine input are modeled and simulated.Simulation results under ED; the expected results in the ideal state and without distribution are compared and analyzed.The steering wheel angle step input is simulated to emulate the obstacle avoidance condition for a real-time vehicle, which is used to identify the ED performance and vehicle stability.The steering wheel angle is shown in Figure 11.The vehicle operates at a certain speed for 3 s.After that, the steering angle turns 30 °to the left for 1 second and keeps the same angle.

Complexity
From the vehicle trajectory in Figure 12, it can be seen that the vehicle's turning radius under ED control is obviously smaller than that without ED control.The turning performance of the vehicle is improved.This is mainly caused by the different drive torque of the left and right wheels, which are no longer the same under the ED control.Figure 13 shows the drive torque of the outer wheel is larger than that of the inner wheel, which means an extra yaw moment is added to the vehicle.Figure 14 shows the yaw rate curve of the vehicle under the step input of the steering wheel angle.It can be seen the vehicle yaw rate under ED control can better track the ideal yaw rate, even though there is a slight overshoot a small steady-state deviation.Both of the change response and the final steady-state value under ED control are larger than that under without torque distribution.This is also caused by the additional yaw moment.

Hybrid Steering Control.
To verify the effectiveness of the weight generated by the proposed GA-BPNN, the simulation of steering wheel angle step input in variable speed is designed.The initial speed is set at 20 km/h.And it accelerates with 3 m/s 2 from the 5 s.The speed curve and steering  The yaw rate of the vehicle with GA-BPNN control approach is close to the ideal value.And the error increases first and then decreases.The main reason is the weight of ED is smaller than that of DAS at low speed shown in Figure 18.That leads to increasing error of the vehicle yaw rate.Figure 18 shows that the weight of ED goes up with the increasing vehicle speed, and the weight of DAS decreases.ED plays the major role in the hybrid steering control when the vehicle speed increases.That is why yaw rate of the vehicle is smaller than the ideal value.
Figure 19 illustrates the steering wheel torque is effectively decreased due to the proposed GA-BPNN-based hybrid steering control scheme.And the steering wheel torque with hybrid steering control is close to the ideal value.9 Complexity Also, it can be seen that the error between the steering wheel torque and the ideal value increases firstly and then keeps a constant value.This is caused by the major ED control in the hybrid steering process with the increasing vehicle speed.

Experimental Verification
To further verify the proposed GA-BPNN-based hybrid steering control approach, the experiment is carried out under snake testing.The test vehicle of UJS is shown in Figure 20.The vehicle parameters are shown in Table 1.The driver stays in the vehicle to guarantee the operating safety during the road testing.The D2P-Moto Hawk is used for designing the upper vehicle controller.And the signals from the controllers and sensors are measured, recorded, and passed by CAN bus.
The snake testing shown in Figure is used to verify the proposed approach.The pile spacing in the snake testing is 30 m.The testing should be carried out on a sunny day without wind to guarantee the INS can receive the satellite signals accurately.The INS should be activated before the testing, during which the vehicle must operate on straight campus road.And, the test should be carried out on a smooth and well-paved cement yard.The road surface with a 0.85 road surface adhesion coefficient is used for the verification due to the limited test condition.
6.1.Steering Torque Control Road Testing 6.1.1.Differential Assist Steering.The weight of ED is set to be 0 and the weight of DAS is set to be 1 initially during the snake testing.Then, the steering wheel torque is used as the control target, the GA-BPNN hybrid steering controller will distribute the drive torque for the left and right in-wheel motors.The measured vehicle speed is shown in Figure 22.It can be seen that the speed of the vehicle basically keeps constant at 15 km/h after the 20s.The speed fluctuation at the 40s is mainly caused by the bumps on the test road.
Figure 23 shows the steering wheel angle and the torque curve.The fluctuations of the steering wheel angle and torque before the 20s are mainly caused by the adjustment of the vehicle driving direction during acceleration.The amplitude of the steering wheel angle keeps a constant value at around 50 degrees.Figure 24 shows the steering wheel torque changes with the steering steel angle.It can be seen the peak value of the steering wheel angle is about 50 degrees, and the peak value of the steering wheel torque is about 1 Nm under DAS control.Compared with Figure 7, it can be seen that the steering wheel torque is lower with DAS control shown in Figure 24.That is caused by the torque distribution of the left and right in-wheel motor under DAS control.
The control signals of the left and right in-wheel motors are shown in Figure 25.It can be seen that the driving force of the left and right in-wheel motors is redistributed by the GA-BPNN hybrid steering control scheme.Therefore, the abovementioned DAS effect is generated due to the driving   10 Complexity force of the outer in-wheel motor is greater than that of the inner in-wheel motor.
6.1.2.Electronic Differential Testing.The weight of ED is to be 1 and the weight of DAS is set to be 0 for the ED control.The vehicle yaw rate is used as the control target.The driving force of the left and right in-wheel motors is distributed by the GA-BPNN-based hybrid steering control scheme.Figure 26 illustrates the vehicle speed keeps a constant value at 15 km/h after the 20s.The speed fluctuation at 45 s is caused by the bumps on the test road.Compared with Figure 7, it can be seen that the steering wheel torque is lower with ED control shown in Figure 27.That is caused by the torque distribution of the left and right in-wheel motor under ED control.An extra yaw moment is generated due to the different drive torque of the left and right in-wheel motors, which has some certain of steering assist effect.
Figure 28 shows the relationship between the steering wheel torque and the angle.It can be seen that the torque peak of the steering wheel is about 2 Nm when the steering wheel angle is about 50 degrees under ED control.Compared with the steering wheel torque angle of 15 km/h vehicle speed under without distribution control, it can be found that the steering wheel torque is reduced after the ED control.11 Complexity in-wheel motor is greater than that of the inner in-wheel motor, which generates the above additional yaw moment.6.2.Hybrid Control Road Testing.When the hybrid steering control is carried out for the snake testing, the weight of ED and DAS changes with the vehicle speed.The weight of yaw moment for ED control and the weight of differential torque for DAS control are adjusted by the proposed GA-BPNN hybrid steering controller according to the brake/acceleration pedal signal.The steering wheel torque and vehicle yaw rate are set as the control targets based on the current vehicle speed to redistribute the driving force of the left and right in-wheel motor.The vehicle speed is shown in Figure 30.It can be seen the vehicle speed keeps a constant value at about 15 km/h after the 20s.The speed fluctuation occurring at about 40s is also caused by the bumps on the test road.
The steering wheel angle and the torque curve are shown in Figure 31.The steering wheel angle and torque fluctuations before the 20s are mainly caused by the adjustment of the vehicle operation direction during acceleration.The wheel angle keeps a constant value at 50 degrees.And the steering wheel torque changes with the steering wheel angle.
Figure 32 shows the relationship between steering wheel torque and rotation angle under the proposed GA-BPNNbased steering control.It can be seen that the peak torque of the steering wheel is about 1 Nm when the steering wheel angle is about 50 degrees.Compared with the steering wheel 12 Complexity torque angle of 15 km/h vehicle speed under without torque distribution control, it can be found that the steering wheel torque is significantly reduced after the differential control.
Figure 33 shows the control signals of the left and right in-wheel motors.It can be seen that the left and right inwheel motor driving force are redistributed by the proposed GA-BPNN-based steering control approach.The abovementioned hybrid control effect is generated due to the driving force of the outer in-wheel motor is greater than that of the inner in-wheel motor.
Figure 34 illustrates the weight coefficient curves of ED and DAS in the hybrid steering control.The weight of ED control is adjusted to be 0.1 and weight of DAS control is adjusted to be 0.9 when the vehicle accelerates from 0 km/h to 15 km/h.Figure 35 shows the weight coefficient curves of ED and DAS in the hybrid steering control.The weight of ED control increases and weight of DAS control decreases when the vehicle accelerates from 0 km/h to 35 km/h.The effectiveness of the proposed GA-BPNN steering control approach is verified.

Conclusion
Aiming at the complexity of the steering system of the unmanned driving IWM-EV, GA-BPNN-based hybrid steering control approach is proposed according to the analysis of the dynamic characteristics of the steering system.CarSim/ MATLAB cosimulation and real vehicle test are carried out on the proposed GA-BPNN hybrid control strategy.Both of the simulation and experimental results show that the proposed hybrid steering control approach can not only satisfy the steering requirements of the unmanned driving vehicle but also accurately realize the steering function with fast response and stability performance.The GA-BPNN-based hybrid steering control approach proposed in this paper provides a solid foundation for the research on the stability of unmanned driving IWM-EV.

Figure 1 :
Figure 1: The configuration of the unmanned driving vehicle.

Figure 2 :
Figure 2: The dynamic model diagram of unmanned driving IWM-EV. l

Figure 4 :
Figure 4: Equivalent model of the steering system.

Figure 5 :
Figure 5: The principle of the coordinate control strategy.

Figure 6 :
Figure 6: The flow chart of the proposed GA-BPNN.

5. 1 .
Steering Torque Control 5.1.1.Differential Assist Steering Simulation.Steering handiness is the basic criterion for testing the effect of differential assistance.This section will carry out model simulation tests with different steering wheel input at low vehicle speeds.Simulation results with DAS control and without torque distribution are compared and analyzed.When the vehicle is operating at low speed, steering wheel angle ramp input model is simulated to emulate the low-speed and sharpturn test of the vehicle.The steering wheel angle ramp input starts at 3 s.The steering wheel angle change rate is 180 °/s.