CHEMICAL ENGINEERING TRANSACTIONS VOL. 51, 2016 A publication of The Italian Association of Chemical Engineering Online at www.aidic.it/cet Guest Editors: Tichun Wang, Hongyang Zhang, Lei Tian Copyright © 2016, AIDIC Servizi S.r.l., ISBN 978-88-95608-43-3; ISSN 2283-9216 Research on β Spline Curve Application of the Running Trajectory Simulation in Driveway Transform Process Shengneng Hu School of Civil Engineering & Communication, North China University of Water Resources and Electric Power, Zhengzhou, China hushengneng2006@126.com Changing lanes will produce traffic conflict in the running process, is extremely easy to cause traffic accidents. According to the characteristics of the driveway transform expected trajectory, the driveway transform process is divided into four stages, at the same time β spline curve is introduced, on the basis of the given boundary conditions, determine β spline curve reverse algorithm. Under the condition of the vehicle corner, the corner change rate and the driving behaviour of the vehicle, the relationship between the speed of lane changing and the length of the lane is established, and then trajectory parameters are calculated. The trajectory curve is calculated by Mat lab simulation and compared with the measured data; the validity of the model is verified by the results of the analysis. 1. Introduction With the development of traffic micro simulation, the micro model of lane changing has become a hot research topic at home and abroad. The desired trajectory of lane changing is an important part of the micro model; it determines whether the vehicle is safe, smooth and fast in driveway transform process. At the same time, it has important significance to improve the road traffic capacity and reduce the vehicle delay and congestion. Domestic and foreign scholars have carried out different levels of research on the path of lane changing, focusing on data acquisition and curve fitting two aspects (Ma and Chang, 2006; Gao and Yang, 2002; Liu and Xu, 2007; Iakovos and Masayosi, 2003; Ammoun and Nashashibi, 2007). In the aspect of data acquisition and application short distance photogrammetry principle, by a linear transformation to obtain the ground coordinates. The method has the advantages of simple operation, access to data with high precision; in curve fitting, the curvature change of the vehicle running is neglected by the simplified model, which leads to the variation of the curvature of the trajectory. Therefore, this paper introduces β spline curve to establish an expected operating trajectory model which is curvature continuous. 2. Analysis of driveway transform process According to the change of steering wheel angle, (Van 1999) has been divided the driveway transform into 3 stages: Rotates from the pilot the steering wheel starts to arrive at rotation most wide angle is the first stage, from rotation most wide angle to the corner is zero is the second stage, and angle of zero to negative maximum Angle is the third stage. (Yang, 2005) and others revised tradition 2 and 3 types lane-changing model, the process is divided into the Torsion Angle, move closer, close Angle and adjustment4 stages. In the process of modelling, the steering angle of front wheel, the duration of the twist angle and the heading angle are introduced. According to the characteristics of the desired trajectory of lane changing, the trajectory curve is continuous and there is no inflection point. This article assumes that the curvature change rule of vehicle running is linear. Under the initial condition, the vehicle is traveling at a speed of V, the acceleration is zero, and the vehicle is in the end of the line, so the curvature is zero. The vehicle at the end of the terminal has the same driving characteristics at the same initial position, but a change has occurred in the plane position. Therefore, the whole lane changing of the desired trajectory can be DOI: 10.3303/CET1651181 Please cite this article as: Hu S.N., 2016, Research on β spline curve application of the running trajectory simulation in driveway transform process, Chemical Engineering Transactions, 51, 1081-1086 DOI:10.3303/CET1651181 1081 considered as the connection of the 4 segments β spline curve, as shown in figure 1. First stage is from the initial lane changing point to a maximum curvature point; The second stage from curvature maximum value to the traffic lane boundary, here regards as the vehicles has the front corner particle; The third stage is the vehicles from the traffic lane boundary (curvature is zero) to the curvature maximum value spot; The fourth stage is from curvature maximum value to changing the magical skill to complete the end point. L a te ra l p o si ti o n /m C u rv a tu re /m -1 Kmax 1 2 3 4 λ Q1 Q2 Q3 Q4 X/m X/m Figure 1: Driveways transform process 3. Establishment of the changing-lane desired trajectory model 3.1 β Spline curve equation β spline curve is governed by a set of points[ ], these points are referred to as the control points and control points of control polygon. The β spline curve is simulated in the form of curves. The controlled polygon can produce m-2 segment curve, and the section curve has 4 control points and each point on the curve is the weighted value of the control points. As shown in Figure 2, the control polygon that is composed of 7 control points can produce 4 segment β spline curve. The expression of the β spline curve is (Cong, 2007): ϱi(u) = ∑ br 2 r=−1 (β1, β2, u)υi+r 0 ≤ u ≤ 1 i = 1,2,3, ⋯ , m − 2 (1) And take β 1 > 0, β 2 ≥ 0. Figure 2: β spline curve and control points β spline curve 0 1 2 3 4 5 6 control point Y X 1082 3.2 Constraint condition Due to the β spline curve with the advantages of sectional treatment, the segment o only be determined by the adjacent four control points, therefore, the change of characteristic polygon a vertex, will only influence and the vertex of the adjacent 4 segment curve and other parts of the curve does not change. At the same time, the shape of the curve is not moved to control the vertex and only change the value of the shape parameter β1 and β2, can achieve the purpose of modifying the curve. This property shows that the β spline curve e is more flexible and more widely used. Applying the β spline curve to produce the desired trajectory has the following constraints. 3.2.1 Vehicle corner constraint As shown in Figure 3, the turning radius of the vehicle is known as the turning radius of the vehicle, which is referred to as the distance from the center to the outer turning wheel. The radius of turn is smaller, the location that then motor turning needs is smaller, its mobility is better. The current steering angle is the maximum φmax, minimum turning radius is R. The relationship between the minimum turning radius Rmin and φmax, in the ideal case: 𝑅𝑚𝑖𝑛 = 𝜄 𝑡𝑎𝑛𝜑𝑚𝑎𝑥 (2) Figure 3: Relationship between deflection angles of steering wheel In order to study the convenience, ignores regarding α angle and β angle's difference, the unification regards as is an angle. Literature (Yang, 2005) proposed in the vehicles model the biggest front wheel deflection angle is 25.9℃, and calculates the smallest radius of turn of vehicles according to the different vehicle type's spread of axis. The small vehicle minimum turning radius through the computation is 5~10 m, namely the maximum curvature value is (0.1~0.2) m-1. In the actual operation of the vehicle, the change of the curvature radius is continuous. Therefore, the curvature of the trajectory curve should be continuous. Therefore, it is demanded that the β spline curve function has two order continuous and differentiable properties. So there is ϱi+1 " (0) = ϱi "(1), ϱi+1 " (0) = ϱi ′ (1), → β 1 = 1, β 2 = 0. 3.2.2 Vehicle driving behavior restriction By vehicle operating characteristics, the curvature of the starting point of the trajectory is zero. The calculation formula of curvature is as follows: κ = |ϱ“| (1+ϱ’2)3/2 (3) Therefore, the second derivative is zero, which is be derived from κ=0, namely ϱ1" (0) = ϱn′ (1) = 0. So the boundary conditions are (Hu,2015): { 2𝛽1 3𝜐0 − (2𝛽1 3 + 2𝛽1 2 + 𝛽2)𝜐1 + (2𝛽1 2 + 𝛽2)𝜐2 = 0 (2𝛽1 + 𝛽2 )𝜐𝑛 − (2𝛽1 + 𝛽2 + 2)𝜐𝑛+1 + 2𝜐𝑛+2 = 0 (4) 3.2.3 Vehicle angular change rate constraint According to figure 1, assuming that the curvature change is linear, there is: dκ ds = κmax λ (5) When curvature is maximum, λ is longitudinal displacement of the vehicle. Because of υ = dκ dt , curvature change rule along the spline curve is: l B R   1083 �̇� = 𝑑𝜅 𝑑𝑡 = 𝑑𝜅 𝑑𝑠 ⋅ 𝑑𝑠 𝑑𝑡 = 𝜅𝑚𝑎𝑥 𝜆 ⋅ 𝜐 (6) By vehicle turning characteristics κ = 1 R = tanφ l , Type:φ is for front wheel angle. �̇� = 1+𝑡𝑎𝑛2 𝜑 𝑙 �̇� (7) Type: κ̇ is the maximum angular acceleration of the wheel. Each point of view φ corresponds to a maximum curvature change rate Kmax. Therefore, there is the following relationship: �̇�𝑚𝑎𝑥 = 1+𝑡𝑎𝑛2 𝜑 𝑙 �̇�𝑚𝑎𝑥 ≥ �̇�𝑚𝑎𝑥 𝑙 (8) So, along the β spline curve, the vehicle can satisfy the change rate of curvature |κ |≤|φ ̇⁄l|, and then there is υ ≤ λ ⋅ φ̇max l⋅κmax .Type: λ is the distance in the X direction which vehicle run along the curve, when the curvature changes from the zero to the maximum. And because under the limit state, when κ reach maximum, namely immediately decreases, and the approximateλmax=L/k, k value obtained from experimental observation, scope for (3.5, 3.5). In conclusion, the actual values of λ :υ ⋅ l ⋅ κmax/φ̇max ≤ λ ≤ L/k, So the relationship between the speed of the vehicle and the distance of the lane is deduced: 𝐿 ≥ 𝑘⋅𝜐⋅𝑙⋅𝜅𝑚𝑎𝑥 �̇�𝑚𝑎𝑥 (9) 3.3 Trajectory solution In this paper, the curvature change has been assumed to be linear, after the curvature reaches the maximum value, reduces immediately, and neglected the curvature is zero stage, only as spurt value consideration. The lane changing process is divided into 4 stages, each stage corresponding to a section of the spline curve, so the lane changing of the desired trajectory is composed of 4 segments. From the basic characteristics of spline curves, the 4 section curves will produce 5 nodes and 7 control points. The solving process is divided into 2 steps: ①combined with boundary condition and node equation established equations solving the coordinates of control points; ② on the basis of the characteristics of the driveway transform selection reasonable β1 and β2 values, to calculate trajectory curve generation into the formula. Given the 4 section curves, 5 nodes are P0, P1, P2, P3, and P4. And: P0 (0,0), P4 (L,N)) is the beginning and end point; P2 (L/2,N/2) is vehicles and lane boundary intersection,P1(λ, γ), P3(L- λ, N-γ) is the curvature maximum value spot, by the massive observation data knew that the y value range is (N/8, N/4); L is the traffic lane transformation length; N is traffic lane width. Suitable trajectory parameter L, N, λ and γ are selected, and the Mat-lab program is written to get the control polygon, as shown in Figure 4, and the lane changing is expected to run the trajectory curve, as shown in Figure 5, now take β1=1, β2=0. Figure 4 is the control polygons which are composed of 7 control points. Figure 5 is expectation movement path spline curve based on the traffic lane transformation, and can be seen from the graph that the trajectory curve is smooth, continuous and no inflection point. Figure 4: Trajectory curve control polygon -0,5 0 0,5 1 1,5 2 2,5 3 3,5 4 4,5 -40 -20 0 20 40 60 80 100 120 140 L a te r a l d is p la c e m e n t /m Longitudinal displacement /m 1084 Figure 5: Expected trajectory curve 4. Example A video file with typical lane changing behavior is selected as the raw data to test the curve. Through VTC system which is self-dependant developed by research group, can be extracted the coordinates of the ground trace when the vehicle is transformed from the video file. In the actual observation, the lane change is divided into left and right side. In the program, N>0 is left to the left, N<0 to the right side of the road. According to the selected typical lane change form, here is N=-3.25m. Finally, the fitting effect is shown in Figure 6, the visible β spline curve can be well approximated by the actual lane changing operation. Figure 6: Spline curve fitting effect Through the SPSS statistical analysis software, the error is analysed by using the single sample t test. The goal is the use the sampled data from overall, infers this overall the average value whether has the remarkable difference with the established examination values, namely confirmation error e̅ = 0 average value. First proposed that zero supposed H0 is: The error mean and examination value do not have the remarkable difference, the indication is u=u0=0, Choice significance fiduciary level α=0.05, software statistical analysis like Table 1 listed. Table 1: Erroneous sample 𝑡-test result 𝑡-value Freedom Double tail probability p Mean difference 95% confidence intervals for mean and test values Minimum value Maximum value e -0.037 24 0.971 -0.001 -0.032 0.031 0 0,5 1 1,5 2 2,5 3 3,5 4 4,5 5 0 10 20 30 40 50 60 70 80 90 100 L a te r a l d is p la c e m e n t /m Longitudinal displacement /m -3,5 -3 -2,5 -2 -1,5 -1 -0,5 0 0 5 10 15 20 25 30 35 40 La te ra l d is p la ce m e n t /m Longitudinal displacement /m 1085 The problem is based on double tail test, so the comparison between α/2 and p/2, which is the comparison of α and P. Observation table 1, due to the P =0.971, α=0.05, and the average error is only 0.1%, so it should not be rejected zero hypothesis, that the error means and 0 have no significant difference. 95% confidence intervals explained: Possible error's average value has 95% probabilities to fall in - 0.032~0.031. The 0 value is included in the confidence interval, which also confirms the above inference. 5. Conclusion In this paper, the β spline curve is introduced into the desired trajectory of lane changing. The feasibility and rationality of the model are verified by theoretical and error analysis. The curve engagement is smooth, and does not have the inflection point, the path curve that this method extracts better tallies with the actual situation, and spline curve equation may change into the matrix pattern, can be easily solved. This article considered that the pilot is not interfered by other vehicles and road environment conditions, the cars have freedom to choose driveway transform expected trajectory. The control polygon is obtained by the node inverse control point, and the desired trajectory curve is obtained. In the actual operation of the vehicle, according to the different situations, such as the restriction of the collision point and the obstacle point, the control polygon is first determined, and then extracts conforms to the actual traffic circulation condition path curve. This curve is flexible, may be suitable for the different traffic condition. However, this paper set up the driveway transform expected trajectory there exist the following problems: (1) The desired trajectory curve of this article is applied to the behavior of the vehicle at high speed. (2) Cars running on curve in the speed should be a change, but this article is a constant. Model in the process of building the speed change on the influence on the result, this aspect needs to be further discussed. Acknowledgments The research project was funded by 2013 year science and technology key project of Education Department of Chinese Henan province (Item No.14B580005), 2013 year science and technology key project of Zhengzhou city of China (Item No.20130774), The authors thanked Zhengzhou traffic safety Association and Zhengzhou city traffic police brigade to provide the rich data information in the topic research, and to provide the important foundation for the development of project. Reference Cong W., 2007, β Spline interpolation analysis and its application. Mechanical design and manufacturing, (11): 54-55. Gao Y., Yang D.J., 2002, Speed of the vehicle trajectory measurement integral method and its implementation technology. Auto technology, (9): 3-25. Hu S.N., Han J, Wu Y.J., 2015, Fatigue Test Analysis of Freeway Drivers under Different Terrain Conditions. Chemical Engineering Transactions, 12(46): 889-894. Doi: 10.3303/CET1546149. Liu B.H., Pei Y.L., Xu H.Z., et al., 2007, Based on video processing of the lane change locus for technology. Journal of Harbin University of science and technology, 12(3): 7-11. Ma B., Chang G.Z., 2006, Based on vB. Net and MATLAB the simulation method of curve track. Hebei traffic science and technology, 3(4): 35—38. Papadirnitriou L., 2003, Tornizuka Masayosi. Fast lane changing computations using polynomials, Proceedings of the American Control Conference Denver, Colorado June 4-6. 48—53. Samer A., Fawzi N., C1aude L., 2007, An analysis of the lane changing maneuver on roads: the contribution of inter-vehicle cooperating via communication. Proceedings of the 2007 IEEE Intelligent Vehicles Symposium’s tabular, Turkey, June 13-15, 1095·1100. VanWinsum W, de Waard D., BrookhuisK A., 1999, Lane change manoeuvres and safety margin [J]. Transportation Research Part F: Traffic Psychology and Behaviour, 2(3):139—149. Yang J.G., Wang J.M., Li Q.F., et al., 2004, Microscopic simulation of vehicle lane-changing behavior analysis and modeling. In highway traffic science and technology, 21 (11): 93-97. Yang J.G., Wang J.M., Li Q.F., 2005, Used in microscopic simulation model of vehicle trajectory of simplified algorithm. Central south highway engineering, 30(1): 168-170. 1086 http://dx.doi.org/10.3303/cet1518162