Home

fulltext

image

Contents

1. Velocity related variables m Driving characteristics min TPM max Percentile min TPM max Percentile Variable Cycle value l mit median limit deviation Variable Cycle value limit median limit deviation 01 Mean pos velocity km h 32 5404 25 28 2276 31 2 NEL 3 5794 25 2 6625 44 0 02 Mean velocity knh 28 3833 19 23 6954 2 23 SLE 454 410 562 700 3 03 Maximum velocity km h 73 70 7 s eee se 49 715 110 4 04 95 max velocity km h 63 50 57 62 15 20 Percent idle time 0 12775 01 0 14201 0 18 2 05 STD velocity km h 21 5633 16 19 2208 21 2 Are se E 4 6s s 22 Percent cruise time s 0 12775 0 07 0 089903 0 12 20 gt 23 Nr of stops H 7 s 6 Acceleration related variables a E min TPM max Percentile 24 Nr of stops per km 1 9556 15 1 9693 25 0 Variable Cycle value limit median limit deviation 25 Mean spec power W kg 0 043319 0 015 0 0039008 0 006 35 28 Max spec Ts 06 Mean pos acc m s 2 0 55636 0 54 0 5723 0 64 4 or shee power littl Se men sa 27 Mi I 4 E 07 Mean neg acc m s 2 0 60382 06 055703 0 52 44 td gt nt u 08 Pos acc time s 165 120 190 230 09 Neg acc time s 457 140 193 240 10 Deviations from 50th percentile in the TPM distributions MTF 10 95 max pos acc m s 2 14 13 1 51 16 2 20 hi T i id Generated H cycle MTF 11 95 min neg acc m s 2 16 16 44 13 5 407 t Tl l aj 0 14789 12 Max
2. Figure 5 9 Resulting dendrogram from the cluster analysis in the category containing short driving cycles The final clusters obtained from the analysis in the short driving cycle category can be seen in Figure 5 9 A total of eight clusters are determined and the vari ables in each cluster represents a specific feature in the set of real world driving cycles The clusters are composed as follows from left to right in Figure 5 9 1 2 3 4 Time related variables such as idle time and positive acceleration time Cruise time related variables 21 and 22 All variables related to driving cycle velocity The variable mean specific power 25 Variables related to the amount of time spent in various driving modes namely idle acceleration and deceleration Variables related to the aggressiveness of the driving cycle i e mean positive acceleration and acceleration standard deviation Variables related to maximum acceleration Maximum acceleration and maximum specific power Variables related to maximum retardation Minimum acceleration and min imum specific power The only difference between the final clusters in the short and urban categories is that the variable cruise time moves from the second cluster to the first The variable cruise time is highly related to the percentage of cruise time in the short category since the length of the driving cycles are restricted The length of the driving cycles varies more in
3. _ ra 5 1 peer JE a 3 Iri jl larger than 0 9 the table can be reduced in size The variables correlated above r 0 9 are listed in Table 5 2 When three variables are listed in one group all within group correlations r exceeds 0 9 The revised table Table 5 3 shows the number of selected variables in each group of correlated variables An X in the table indicates that only one variable in the group is selected At least one variable from Group 2 is selected by all methods in all categories except by the cluster analysis in the categories short and urban The cluster anal ysis selects the variable number of stops per kilometer instead of a variable from Group 2 Number of stops per kilometer is selected because it is clustered to gether with all the five velocity related variables and is used as cluster represen tative The percentage of time in cruise mode and the variables related to the variations in the acceleration are also frequently selected as representative in various cate gories This indicates that the acceleration standard deviation and the mean accel erations captures some important property of driving cycles They are all related to the aggressiveness of the driving cycle 44 5 Results Table 5 1 Representative variables selected by four different methods Short Urban Mixed 22398 2 326 2 3 2 5 bp 5 EMI 3 E8 ajb 3 ED uy BOO ole 0 Seele Mean pos vel X
4. accelerationSTD Enter the path to your data ee min m Set the limits optional amp 6 percentIdleTime 7 ROSE 7 percentCruiseTime Mean Positive Velocity R 8 meanSpecificPower When a new cycle has been generated the mn mx mm velocity profile is shown in the figure It is x Number of cycles to generate 5 possible to show other plots in order to get EA 2 ee nonProcessedCycles mat Moos Generate cycles Figure B 5 GUI view after the generation of five driving cycles B 3 How to use the software 73 There are five buttons at the top of the GUI e Velocity 1 Driving cycle velocity profile default view e Acceleration 2 Acceleration values from the Markov chain e Regression results 3 Results from the regression analysis e Clustering results 4 Results from the clustering process e Statistical deviations 5 Deviations from the 50th percentile over all iter ations The graph will update according to which mode is selected And if multiple driving cycles are generated there are buttons to look at the other driving cycles 6 Regression results and clustering results are the same for all generated driving cycles since they are related to the TPM and not the driving cycles The button Characteristics 7 opens a new window that shows deviations for all the 27 variables and their validation limits see Figure B 6 o AA Li TE os
5. Cd Scalar Aerodynamic drag coefficient 04 Cr Scalar Rolling resistance coefficient 0 013 Af Scalar Vehicle frontal area 2 15 m r B 1 Example The input data should be combined in a structure array where each element is a driving cycle The input here consists of 123 driving cycles gt gt inputData inputData 1x123 struct array with fields velocity Ts carCharacteristics The last field is optional but if defined it should be formatted as follows gt gt inputData 3 carCharacteristics ans Af 1600 0 4000 0 0130 2 1500 B 2 Graphical user interface The developed GUI can be seen in Figure B 1 By using the interface it is possible to change settings and analyze the result in a more convenient way than using the available Matlab commands B 3 How to use the software 69 It is also a practical way to visually examine the generated driving cycles and its characteristics before exporting them for further use The review of the generated driving cycles is easily done by pressing a couple of buttons in the GUI Info Important variables Other DrivingCycleGeneration uses velocity data to create synthetic driving cycles itis possible to use the program with existing TPMs or to create a new one based on provided data In the latter case it is important that the amount of cycles provided is large enough at least 100 It is also possible to vary the validation by
6. ndras under en k rning K rcykler anv nds bland annat till att milj klassa bilar och f r att ut v rdera fordonsprestanda Olika metoder f r att generera stokastiska k rcykler baserade p verklig data har anv nts runt om i v rlden men det har varit sv rt att efterlikna naturliga k rcykler M jligheten att generera stokastiska k rcykler som representerar en upps ttning naturliga k rcykler studeras Data fr n ver 500 k rcykler bearbetas och katego riseras Dessa anv nds f r att skapa Overerg ngsmatriser d r varje element mot svarar ett visst tillst nd med hastighet och acceleration som tillst ndsvariabler Matrisen tillsammans med teorin om Markovkedjor anv nds f r att generera sto kastiska k rcykler De genererade k rcyklerna valideras med hj lp percentilgr n ser f r ett antal karakt ristiska variabler som ber knats f r de naturliga k rcyk lerna Hastighets och accelerationsf rdelningen hos de genererade k rcyklerna stude ras och j mf rs med de naturliga k rcyklerna f r att s kerst lla att de r repre sentativa Statistiska egenskaper j mf rdes och de genererade k rcyklerna visade sig likna den ursprungliga upps ttningen k rcykler Fyra olika metoder anv nds f r att best mma vilka statistiska variabler som be skriver de naturliga k rcyklerna Tv av metoderna anv nder regressionsanalys Hierarkisk klustring av statistiska variabler f resl s som ett tredje alternativ Den sista m
7. acceleration m s2 24 22 24 28 4 oH FI FTF r 13 Min acceleration m s 2 26 26 24 22 7 ol it I dt TPM average MTF 14 STD acceleration m s 2 0 62688 0 58 0 60251 0 65 s Ir 20 i 0 15234 15 driving time pos acc 26 0 36344 0 32 0 33655 0 36 2 30l f 4 i 16 driving time neg acc 26 0 34581 0 33 0 34893 037 2 I gene PENER PEE GAREN kWh km EAN o MA E a 0 a Fe ar a e y 0 Variable number Percentile limit 25 Figure B 6 Characteristics for the generated driving cycle B 3 5 Save a generated TPM When the process of generating a new TPM is finished it will be possible to save it for later use by pressing the Save TPM button 8 seen in Figure B 5 When asked to enter a name for the generated TPM and press OK 74 B User Manual B 3 6 Export generated driving cycles When all desired driving cycles are generated it is possible to export to the cur rent workspace by pressing the Export cycles button 9 seen in figure Figure B 5 The exported driving cycles can then be accessed as in example B 2 rm B 2 Example r The output in Matlabs command window after a generation of five driving cycles gt gt ExportedCycles ExportedCycles 1x5 struct array with fields velocity acceleration duration TS characteristics TPMname B 4 Troubleshooting Here are some common errors listed together with possible solut
8. ngligheten finns det l sningar av teknisk och administrativ art Upphovsmannens ideella r tt innefattar r tt att bli n mnd som upphovsman i den omfattning som god sed kr ver vid anv ndning av dokumentet p ovan beskrivna s tt samt skydd mot att dokumentet ndras eller presenteras i s dan form eller i s dant sammanhang som r kr nkande f r upphovsmannens litter ra eller konstn rliga anseende eller egenart F r ytterligare information om Link ping University Electronic Press se f rla gets hemsida http www ep liu se Copyright The publishers will keep this document online on the Internet or its possi ble replacement for a period of 25 years from the date of publication barring exceptional circumstances The online availability of the document implies a permanent permission for anyone to read to download to print out single copies for his her own use and to use it unchanged for any non commercial research and educational purpose Subsequent transfers of copyright cannot revoke this permission All other uses of the document are conditional on the consent of the copyright owner The publisher has taken technical and administrative measures to assure authenticity security and accessibility According to intellectual property law the author has the right to be men tioned when his her work is accessed as described above and to be protected against infringement For additional information about the Link ping Univers
9. 2 velocitySTD Save 3 maxAcceleration een Driving Distance 5 accelerationSTD min max A 6 drivingTime m 7 nrOfStops C Mean Positive Velocity Falls Number of cycles to generate 001 Create TPM from nonProcessedCycies mat Generate cycle Figure B 4 User defined validation activated Info important variables Other DrivingCycleGeneration uses velocity data to create synthetic driving cycles It is possible to use the program with existing TPMs or to create a new one based on provided data in the latter case itis important that the amount of cycles provided is large enough at least 100 3 amp Velocity km h tis also possible to vary the validation by setting which parameters that has to be close to the TPM values for a cycle to be aproved One can also decide on the validation method 3 1 When a cycle has been generated it is STR possible to export it to workspace by Time min pressing the button Representative Variables p Choose TPM One can also see the generated cycle characteristics compared to the TPM by pressing the Show characteristics button Iteration number 1294 DDO014 Short Y meanPosVelocity maxAcceleration m Generate New TPM 3 minAcceleration 4 5 To generate a new TPM follow these steps Pre process your data C Driving Distance
10. Kor my ye apt T 2 23 0 ietrac where Af is the vehicle frontal area p is the air density and C4 is the drag coef ficient Furthermore m is the vehicle mass g is the gravitational constant C is the rolling resistance coefficient and T is the time between velocity samples Only samples where the vehicle operates in traction mode F t gt 0 are consid ered when the MTF is calculated Another way to determine if the vehicle is in traction mode is to calculate the coasting velocity 16 2 Theory v t E stan arctan Z udo a p 2 24 where a and are defined as 1 a z pe Ay tu 2 25 B VEG 2 26 Guzzella and Sciarretta 2007 If a velocity sample v in the driving cycle is higher than the coasting velocity v T determined by using v 0 v _ and t T in 2 24 the vehicle is operating in traction mode in the interval between the samples 1 and i Figure 2 6 illustrates which intervals that are considered in the calculation of the MTF The white areas indicates that the vehicle operates in braking mode and therefore does not provide any traction force El Traction mode intervals Velocity Coasting velocity Velocity km h 0 2 4 6 8 10 12 14 16 18 Time s Figure 2 6 Coasting velocities and traction mode illustration 2 4 Markov chain Markov chain is a mathematical theory used to model a random process The process
11. PCF PCY 3 9 where PCf is the variance explained by the FPC in cluster c and PCI is the variance explained by the FPC when the variable v is added to the cluster Assume that there are k final clusters with various number of variables in them Each variable i 1 2 mj in cluster j 1 2 k is assigned a value s that is the smallest FPC decrease when the variable is added to another cluster s min APC c 1 2 kl cx j 3 10 1 Every variable in the cluster is compared to all other clusters and the variable selected as representative for cluster j is the one with the largest s determined by i arg max s e 1 2 m 3 11 1 Calculate the decrease in For each variations explained by the first variable i in principal component when the For each the current current variable is combined with cluster j cluster j every other cluster Sj IS the lowest decrease when the variable is combined with another cluster Choose the variable with the largest distance to its closest neighboring cluster largest s as representative for cluster j Figure 3 8 Procedure to choose a cluster representative in each final cluster 3 6 Representative variables 31 3 6 4 Combined regression and clustering A fourth method is implemented to avoid the use of the response variable MTF when determining the initial variables for the stepwise regression analysis Un like the ite
12. a model that can predict the response variable These specific properties are obtained by penalizing the non zero model coefficients by using a regularization parameter A and the L norm of the model coefficients Tibshirani 1996 n m l argmin gt vi Bi Bax1 i Bms1Xmi A gt Br 2 15 i l En Solving 2 15 leads to more coefficients fj being zero than in the ordinary least squares case The larger the regularization parameter is set the more coeffi cients will be equal to zero in the final model Since the LASSO regression already has the property of not including unneces sary variables the regression fit can be measured using the ordinary R statistic instead of the adjusted one mentioned above 2 2 Hierarchical clustering of variables In order to reduce the number of variables that describes a set of data a hierar chical clustering method can be used to group closely related variables together The concept of hierarchical clustering is well described by Everitt et al 2011 and is illustrated in Figure 2 4 There are many different methods to determine how closely related two variables are e g correlation or euclidean distance The distance between two clusters can also be defined in many ways i e the average distance between the variables in the two clusters or simply the closest distance from a variable in the first cluster to a variable in the second cluster Everitt et al 2011 In this t
13. but one zero velocity state from the end How ever this trimming is very rare since it only occurs when the velocity is zero in an interval before and up to the desired duration Finally the driving cycle goes through the validation process described in the next section If the driving cycle is deemed valid it is presented to the user If it 36 4 Driving Cycle Generation Starting state Calculate matrix position v 0 a 0 from new state Extract sub matrix Randomly select the next transition Approved duration and end velocity Yes i Validate finished cycle il Figure 4 2 The driving cycle generation process is considered invalid it is discarded and a new driving cycle is generated This continues until a valid driving cycle is found 4 2 1 Driving cycle specification The final generated driving cycle is a Matlab structure configured as in Table 4 2 The fields velocity and acceleration corresponds to the velocity and ac celeration profiles obtained from the Markov process The driving time can be found in the field duration and Ts is the sample time The field characteristics is a structure that contains values for all statistical variables described in Appendix A The last field TPMname contains a string with the name of the TPM used to create the driving cycle 4 3 Validation Since the generated driving cycles are created from a Markov process there is no guarantee that they will be good represen
14. chained together in an array Table 3 1 Data input specification Field Type Explanation Unit velocity Vector Sampled velocity km h Ts Scalar Sample time s carCharacteristics Structure optional See Table B 2 The field carCharacteristics in Table 3 1 is an optional structure that is mainly used when calculating the response variable in the regression analysis Default values are used when the field does not exist in the input data The spec ifications for carCharacteristics are given in Table 3 2 as well as default values for each parameter Furthermore all input driving cycles must have iden tical sample times It is recommended to use a sample time of 1 sample per second or faster If a longer sample time is used there is a risk of losing information about the changes in the driving cycles If a shorter sample time is used it will increase the com plexity of the driving cycles and will not in most cases give any additional infor mation It will also result in a slower generation process since more samples has to be generated to achieve the desired driving cycle duration 22 3 Data Analysis Table 3 2 carCharacteristics input specification Field Type Explanation Default value Unit mv Scalar Vehicle mass 1600 kg Cd Scalar Aerodynamic drag coefficient 0 4 Er Scalar Rolling resistance coefficient 0 013 Af Scalar Vehicle frontal area 2 15 m2 3 3 Data processing All incoming data
15. elektronisk version http ww ep liu se Titel K rcykelgenerering med statistisk analys och markovkedjor Title Driving Cycle Generation Using Statistical Analysis and Markov Chains Forfattare Emil Torp och Patrik nnegren Author Sammanfattning Abstract A driving cycle is a velocity profile over time Driving cycles can be used for environmental classification of cars and to evaluate vehicle performance The benefit by using stochastic driving cycles instead of predefined driving cycles i e the New European Driving Cycle is for instance that the risk of cycle beating is reduced Different methods to generate stochastic driving cycles based on real world data have been used around the world but the represen tativeness of the generated driving cycles has been difficult to ensure The possibility to generate stochastic driving cycles that captures specific features from a set of real world driving cycles is studied Data from more than 500 real world trips has been processed and categorized The driving cycles are merged into several transition probability matrices TPMs where each element corresponds to a specific state defined by its velocity and acceleration The TPMs are used with Markov chain theory to generate stochastic driving cycles The driving cycles are validated using percentile limits on a set of characteristic variables that are obtained from statistical analysis of real world driving cycles The distr
16. er a 3 3 Data processing e e e AR rg ernennen 33 1 Aceletation a oP a e RAR EE DS een 3 3 2 Velocity nme a Pde eS ewe AS 3 3 3 DISCFEHZAUION une ee Wels end 3 3 4 Statistical analysis soo oss rr rr nennen 34 Data Herida ai areas 3 5 Data categorization 2 AR RA HR Bl rd BES 3 6 Representative variables 2 222mm 3 6 1 Iterative regression analysis o o 3 6 2 LASSOregression o e 3 6 3 Hierarchical clustering of variables fal Oa 01 Ow x CONTENTS 3 6 4 Combined regression and clustering 31 4 Driving Cycle Generation 33 41 TRM construction e u 2 e e A EN 33 4 1 1 TPM specification o oo a 34 4 2 Driving cycle construction o ooo o o 35 4 2 1 Driving cycle specification o o 36 4 3 Validation 2 20605 ey ped ade e Ae ee a 36 5 Results 39 5 1 Generated driving cycles aoaaa ee 39 5 1 1 Distribution of generated driving cycles 41 5 2 Selected validation variables 2 2 2 2222 nennen 43 5 2 1 Regression analysis results 2 2 2222 0 000000 46 5 2 2 Cluster analysis results oo ee 46 5 2 3 Combined regression and cluster analysis results 49 5 2 4 LASSO results tb 0 24 5 as daa 49 9 3 Validation us esse dl le ote ed de ker o kod aoe 49 6 Discussion 51 6 1 Futur eswork acuity Ba Bee Naar 54 7 Conclusion 57 Bibliography 59 A Driving Cycle Cha
17. go through a processing stage according to 1 Calculate acceleration 2 Averaging velocity 3 Discretize data 4 Extract statistical variables The following sections will explain each step further Step 1 and 2 are calculated as in Guzzella and Sciarretta 2007 pp 23 24 Step 3 and 4 are done as in Lee and Filipi 2011 3 3 1 Accleration The acceleration is approximated by calculating the velocity change in each inter val Vi Vi 1 a t i ET iS Ss Vte ti i t 3 1 3 3 2 Velocity The average velocity between measurements is calculated as Vi Vi y v t 0 2 Vte tii t 3 2 The velocity and acceleration measurements are defined in the same time inter vals which is important for upcoming calculations 3 3 3 Discretization To be able to generate a useful TPM described in Section 4 1 there is a need to discretize all measurements Averaged velocities and accelerations are therefore rounded to the closest neighboring discretization step as 3 4 Data filtering 23 PP e RR 3 3 d 1 O A Q Ares A We 3 4 where the default values for the discretization resolution is shown in Table 3 3 Table 3 3 Default resolution steps for discretization Type Variable Stepsize Velocity Dass 1 0 km h Accleration A es 0 2 m s 3 3 4 Statistical analysis One of the most important steps in the initial processing is the statistical analysis The values extracted here are late
18. pressing the Open button 1 a window will be presented where you need to find a data file formatted as described in Section B 1 When input data has been defined it is possible to set some categorization lim its This is done by checking the box for Driving Distance and or Mean Positive Velocity 2 and enter the variable range in the fields below All input driving cycles will be used if no categorization limits are set For example if a categoriza tion limit on the driving distance is entered as in Figure B 3 only the provided driving cycles with a distance lower than 14 km will be used to create the TPM Everything is now set to generate a new TPM and driving cycle but if there is a need to change the resolution for the data discretization it is possible in the Other tab as seen in Figure B 3 3 There are also settings for changing the validation limits 4 and for which valida tion method to use 5 described in Section B 3 3 However all methods and all limits will be calculated so that it is possible to reuse the same TPM with several different settings in the future When the prefered settings have been entered it is possible to enter how many driving cycles to generate and pressing the Generate cycle button 6 The TPM will be created as a part of the process B 3 How to use the software 71 Choose new TPM values Velocity Resolution km h Acceleration Resolution m s2 Representative Varia
19. setting which parameters that has to be close to the TPM values for a cycle to be aproved One can also decide on the validation method When a cycle has been generated it is possible to export it to workspace by pressing the button One can also see the generated cycle characteristics compared to the TPM by pressing the Show characteristics button To generate a new TPM follow these steps Pre process your data Enter the path to your data Set the limits optional Press Generate When a new cycle has been generated the velocity profile is shown in the figure It is possible to show other plots in order to get information about the generation process Representative Variables Choose TPM Select TPM m Generate New TPM Driving Distance min max Mean Positive Velocity min max Create TPM from nonProcessedCycies mat Status Select TPM Number of cycles to generate 001 Generate cycle Figure B 1 Graphical user interface GUI The information panel to the left gives a quick overview of the software and which steps to take It is however recommended to read this manual before start ing to generate driving cycles B 3 How to use the software The GUI functions are described here and the process of generating driving cycles is illustrated B 3 1 Use an existing TPM By pressing the drop down menu 1 pointed out in Figure B
20. simulate vehicles is by using a Simulink model By connecting the cycle generation software to a vehicle model it will be possible to analyze the performance of the modeled vehicle 4 Generating cycles based on speed limits Another way to categorize data is based on speed limits For Sweden the driving will be categorized into bins of 30 km h 40 km h 50 km h and 120 km h When generating a driving cycle it should be possible to either e Set a complete route 50 km h for 8 3 km followed by 70 km h for 1 2 km and so on e Set a route ratio 25 of the route is in 50 km h 30 is in 70 km h and drive for a total of 40 km This includes collecting new data where the driving location is known ex tracting data about speed limits from a database and categorize all mea 6 1 Future work 55 surements depending on speed limits Example of such database is NVDB Trafikverket 2012 If the second method of generating driving cycles is used there is also a need to calculate the probabilities to switch between different speed limits 5 A validation if the driving cycle is realistic The implemented validation process checks if the statistical values of the driving cycle is valid and ap proves it if everything checks out But there is no check if the generated driving cycles are realistic e Cana vehicle go from a cold start to this velocity in that time e Is it reasonable for a cycle to have that many stops in such a s
21. the category urban causing cruise time to move to the time related variables cluster 5 3 Validation 49 5 2 3 Combined regression and cluster analysis results The variables selected by the combined cluster and regression analysis are similar to the variables selected by the regression analysis method The categories con taining short and urban driving cycles obtains fewer representative variables from the combined analysis than from the regression analysis indicating that the re moval of variables due to mutual correlation do not have the expected effect This is discussed further in Chapter 6 5 2 4 LASSO results It can be seen in Table 5 3 that the LASSO method tends to select variables that are highly correlated to each other For example all three variables in Group 2 maximum velocity 95 maximum velocity and velocity standard deviation are selected in the category mixed This can be explained by the fact that no variables are removed from the set of possible explanatory variables due to correlation before the regression model is estimated An LASSO method where some of the 27 initial variables are removed in advance might solve the problem 5 3 Validation The validation data for the driving cycle in Figure 5 1 can be seen in Figure 5 10 The figure shows the deviations from the TPM medians for all the statistical vari ables The horizontal lines represent the limits set and the stems with a big ger marker represent the
22. when it has a statistical value within the dotted lines and since some of the variables have a large deviation from their median values they will not be approved easily Deviation from 50th percentile 4 5 6 7 8 Statistic number Figure 5 11 Statistical deviations during a generation with 20 000 iterations Discussion The objective with this thesis was to generate stochastic driving cycles from a Markov process The desired result was to generate driving cycles that resembles real world driving in terms of statistical criteria The statistical variables calculated for the driving cycles are to some extent af fected by the discretization However since they are derived from the discretized real world driving cycles they are still valid for comparison with the generated driving cycles One way to motivate the discretization could be to argue that the vehicles which the driving cycles are applied to will erase the effects and that they will instead resemble the original real world driving cycles The discretization also affects the generation of the TPMs If for instance a veloc ity v 0 4 km h is measured together with the acceleration a 0 15 m s the resulting discrete state is v a 0 0 2 if the default discretization steps are used It might seen odd that the vehicle can stand still while having a negative acceleration when the vehicle is assumed to never have a negative velocity How e
23. world driving cycles Unlike the regression analysis method proposed by Lee and Filipi 2011 the cluster analysis is well suited to be automated 1 5 Thesis outline Chapter 2 describes the theory used for the analysis and generation of driving cycles The methods used to analyze provided data are described in Chapter 3 Chapter 4 contains descriptions on how driving cycles are generated and the val idation of those The results are presented in Chapter 5 The last part Chapter 6 contains discussion of the results and Chapter 7 presents the conclusions Theory Different methods to determine representative variables for sets of real world driving cycles is presented The described methods are based on linear regression analysis and hierarchical clustering of variables The Markov chain theory to generate new driving cycles is presented in Section 2 4 2 1 Multiple linear regression Assume that a response variable y is observed n times together with a set of ex planatory variables x1 xX2 Xj Xm e g calculated for n real world driv ing cycles The explanatory variables are also referred to as regressors The objective of a regression analysis is to explain as much of the variation in the response variable as possible using linear combinations of the explanatory vari ables namely estimate the coefficients in the linear model Y By Boxy Bar Pm 1Xm 2 1 where e is a random normally distributed stoch
24. 2 a list of already existing TPMs is presented When a new TPM is saved it will show up here the next time an existing TPM is to be chosen Even though the TPMs are already generated and can instantly be used in the generation of a new driving cycle there are still some settings available As shown in Figure B 2 there is a setting for the percentile limit 2 that affect the validation of the generated driving cycles There is also a setting that lets the user define which set of representative variables to use when the generated cycles are validated 3 Both these settings can be found in the Other tab 70 B User Manual Choose new TPM values Velocity Resolution km h Acceleration Resolution m s2 Representative Variables p Choose TPM r Status Choose representative variables determined Si SE Select TPM Regression analysis AllCycles DD0014 Short DD1432 Medium DD3200 Long MV0040 Urban MV4072 Mixed MV7200 Freeway Generate cycle Number of cycles to generate 001 Figure B 2 Use existing TPM to generate driving cycles B 3 2 Create a new TPM When creating a new TPM there are several fields that can be changed to cus tomize the resulting driving cycles pointed out in Figure B 3 To generate a new TPM select the option Create new in the drop down menu described above The most important step is to give the software some data to work with By
25. 7 36 2011 J Lin and D A Niemeier An exploratory analysis comparing a stochastic driving cycle to California s regulatory cycle Atmospheric Environment 36 38 5759 5770 2002 59 60 Bibliography O Renaud and M P Victoria Feser A robust coefficient of determination for regression Journal of Statistical Planning and Inference 140 7 1852 1862 2010 V Schwarzer R Ghorbani and R Rocheleau Drive cycle generation for stochas tic optimization of energy management controller for hybrid vehicles In pro ceedings of the 2010 IEEE International Conference on Control Applications CCA pages 536 540 sept 2010 S Shahidinejad E Bibeau and S Filizadeh Statistical development of a duty cycle for plug in vehicles in a north american urban setting using fleet infor mation IEEE Transactions on Vehicular Technology 59 8 3710 3719 2010 R Tibshirani Regression shrinkage and selection via the LASSO Journal of the Royal Statistical Society 58 1 267 288 1996 Trafikverket Nationell v gdatabas NVDB 2012 URL https nvdb2012 trafikverket se Accessed 2013 05 02 Driving Cycle Characteristics The following appendix describes the 27 statistical variables that were proposed by Lee and Filipi 2011 as possible explanatory variables in a regression model How the variables are defined and calculated are described in detail The vari ables have been categorized as velocity acceleration distance and t
26. Institutionen f r systemteknik Department of Electrical Engineering Examensarbete Driving Cycle Generation Using Statistical Analysis and Markov Chains Examensarbete utf rt i Fordonssystem vid Tekniska h gskolan vid Link pings universitet av Emil Torp och Patrik nnegren LiTH ISY EX 13 4670 SE Link ping 2013 Py Gs ons Link pings universitet TEKNISKA H GSKOLAN Department of Electrical Engineering Link pings tekniska h gskola Link pings universitet Link pings universitet SE 581 83 Link ping Sweden 581 83 Link ping Driving Cycle Generation Using Statistical Analysis and Markov Chains Examensarbete utf rt i Fordonssystem vid Tekniska h gskolan vid Link pings universitet av Emil Torp och Patrik nnegren LiTH ISY EX 13 4670 SE Handledare Peter Nyberg ISY Link pings universitet Examinator Erik Frisk ISY Link pings universitet Link ping 13 juni 2013 i es UNI Avdelning Institution Datum S D Division Department Date a a gt Avdelningen f r Fordonssystem 3 A gt Department of Electrical Engineering 2013 06 13 ty N SE 581 83 Link ping La ase SKA H G Spr k Rapporttyp ISBN Language Report category a o Svenska Swedish O Licentiatavhandling ISRN Y Engelska English amp Examensarbete LiTH ISY EX 13 4670 SE O C uppsats Serietitel och serienummer ISSN O D uppsats Title of series numbering a pra O vrig rapport O URL f r
27. X 1 Mean vel X 1 Max vel X XIX X XIX X Xi 2 95 max vel X X 2 Vel STD X X 2 Mean pos acc X X X X3 Mean neg acc X X X X X X XIX X X 4 Pos acc time X 5 Neg acc time X 5 95 pos acc X X X X X 95 neg acc 4 Max acc X X X X Min acc X X X X Acc STD X X X3 time pos acc X X time neg acc X X X X X Driving dist 6 Driving time 5 Idle time X X X X idle time X Cruise time X X 6 cruise time X X XIX X X X Nr of stops X Nr of stops km X X X XX X Mean s p X X X X X Maximum s p Minimum s p XIX X X X 5 2 Selected validation variables 45 Table 5 2 Variables grouped together due to strong correlation Variable group Variable 1 Variable 2 Variable 3 1 Mean pos vel Mean vel 2 Max vel 95 max vel Vel STD 3 Mean pos acc Acc STD 7 4 Mean neg acc 95 neg acc 5 Pos acc time Neg acc time Driving time 6 Driving dist Cruise time E Table 5 3 Representative variables selected by four different methods Cor related variables have been grouped together Short Urban Mixed Eee amp 2 3 gs 97 3 918 2592 2 9 A nen ee 4 OU O nja O U nJ O O n y Group 1 2 X X X 3 Group 2 3 X X XIX X XIX X X 3 12 Group 3 2 X 2 7 Group 4 2 X X X X X X X X X X 10 Group 5 3 2 2 95 pos acc X X X X X 5 Max acc X X X X 4 Min acc X X X X 4 time pos acc X X 2 time n
28. as multiple state transitions The generated TPMs in the categories short urban and mixed contains a large num ber of real world driving cycles Examples of generated driving cycles in those categories can be seen in Figures 5 1 5 3 120 100 o T Velocity km h o o 40 20 Time min Figure 5 2 Generated driving cycle from the category urban It is possible to generate driving cycles from the other categories median long and freeway but since the analysis is affected by the small data sets there is no guarantee that the generated driving cycles are representative for their respective category 5 1 Generated driving cycles 41 120 100 80 60 Velocity km h 40 20 ni 1 L L L L 0 2 4 6 8 10 12 14 16 18 20 Time min Figure 5 3 Generated driving cycle from the category mixed 5 1 1 Distribution of generated driving cycles When generating driving cycles there is a desire that the output should have the same speed acceleration frequency distribution SAFD as the input data A test is performed where one million driving cycles from the category short is generated and the SAFD is compared to the SAFD of the used TPM The deviation from the TPM is calculated as anak SAFD Generated SAFD TPM Deviation 100 j SAFD TPM and the generation process is valid if the deviation is close to zero for all states The result of the SAFD deviation test is presente
29. astic variable The estimated model can be used to predict future values of the response variable The set of optimal equation coefficients f1 B2 Bm 1 are estimated as n arg min Qois B arg min vi Bi B2X1 i bam 2 2 i 1 7 8 2 Theory The coefficients are optimal in the sense that they minimize the squared model residuals e e eal as shown in Engvist 2007 p 21 The solution is found by taking the partial derivatives of Qy1s els for k 1 2 m 1 By setting each partial derivative equal to zero a linear equation system is formed with the unknown parameters Overall the system contains m 1 equations and m 1 unknown variables and can be written on the matrix form Y X e 2 3 The estimated coefficients B can be derived as 1 B X x x y 2 4 if det XTX 0 and the matrices Y e and X are defined as y Bi 1 Y2 Ba e2 Y p B es 2 5 Yn Bm 1 En 1 X11 X21 csd Xm 1 1 X1 2 X2 2 A Xm 2 X a 2 6 I Xin Xan Xmn If the estimated residuals Y XfB 2 7 are independent identically distributed i i d random variables N 0 0 1 then the regression model predicts the response variable The estimated coeffi cients are in that case normally distributed as well N B oUXTX 2 1 1 T test A T test can be performed in order to determine whether an explanatory variable actually contributes to the estim
30. ation of the response variable The standard error of the regression s is calculated as e x7 n m 1 2 8 2 1 Multiple linear regression 9 and since s is a sum of the independent squared normally distributed random variables it is x distributed The distribution relationship can be written as ATA a x n m 1 2 9 02 The estimated standard error of the regression is used to estimate the standard error for each model coefficient The formula is given by 6p 4 52 XTX 2 10 where XTX refers to the j th element on the diagonal of the covariance matrix XTX If a coefficient f 0 the fraction between the estimated coefficient and the coefficient standard error also called the coefficient t value is T distributed with n m 1 degrees of freedom This can be seen by rearranging the terms as j x _ _N 1 g aTe 1 x n m 1 a a XTX N n m 1 The result is a fraction between a normal distribution and the square root of a x distribution divided by its degrees of freedom This is the definition of a T distribution Blom et al 2005 p 293 Generally the T distribution origins from the normal distribution and as the degrees of freedom grows towards infinity the T distribution approaches the N 0 1 distribution as illustrated in Figure 2 1 B T n m 1 2 11 Figure 2 1 Probability density function for T distributions with various de gre
31. ble most likely to have a coefficient equal to zero This can be done by removing the variable with the largest p value and perform the least squares regression with the remaining vari ables as proposed by Lee and Filipi 2011 2 1 2 Measure of regression fit The R statistic is a measure of how well the estimated regression equation fits the observed data The value represents how much of the variations in the re sponse variable y that can be explained by the regression model Renaud and Victoria Feser 2010 2 1 Multiple linear regression 11 The formula is given by PR Qregr A 9 7 1 ae vi 9 1 Qres R Ro Eh vi P i p On 2 13 where y is the mean value of the observed response variable and p is the response variable derived from the estimated model Q is the total amount of variations in the observed response variable Q g is the variations accounted for by the regression model and Q describes the variations that the model is unable to capture If R is large 2 0 9 the regression model with the estimated coefficients j ex plains most of the variations in the response variable and the equation shows a good fit to the observed data R is useful when a stepwise regression is performed A limit can be set and the removal of explanatory variables can be stopped when the model no longer shows a large enough fit when R becomes smaller than a predefined limit A property of R is that
32. bles Choose TPM Status Choose representative variables determined C ben Select TPM Regression analysis Generate New TPM 7 Driving Distance 0 14 men 2 sem Mean Positive Velocity min max Ikmh Number of cycles to generate 001 Create TPM from 1 honFrocessedCyries m open Generate cycle 6 Figure B 3 Create a new transition probability matrix TPM B 3 3 Choose method of determining representative variables There are four methods for determining representative variables e Regression analysis e Cluster analysis e Combo analysis Cluster Regression e LASSO analysis Different methods will give different representative variables and will affect both number of iterations and the distinguishing features of the generated driving cycle The user can also define their own variables using the Important variables tab see Figure B 4 The variables selected will be used in the validation and it does not matter which method for determining representative variables is selected B 3 4 Analyze generated driving cycles When a driving cycle has been generated it is possible to look at different aspects of the generation process as shown in Figure B 5 72 B User Manual Velocity km h y 1 L 6 ti Time min Choose TPM Iteration number 309 DD0014 Short 1 meanPosVelocity TR AL FR
33. btain a mean real estimation of the standard deviation it is defined using the denominator N 1 The last two acceleration related variables are percentage of driving time under positive acceleration and percentage of driving time under negative accelera tion and they are calculated as Na os peta a A 15 Nano a r A 16 where Napos and Naneg are the same as in A 6 and A 7 A 3 Driving distance and time Two variables depend on the driving cycle distance and duration The first one is the total distance driven in the cycle denoted driving distance and the second one is the cycle duration denoted driving time The variables are calculated as T N EN A 17 3600 2 a17 tarive N Ts A 18 64 A Driving Cycle Characteristics A 4 Driving characteristics The vehicle is assumed to operate in idle mode when the cycle velocity v 0 and the first two variables associated with driving characteristics are idle time and percentage of idle time defined as tidle No Ts A 19 No Pa N A 20 where Ny is the number of samples with a velocity v 0 An alternative defini tion could be to include the condition that also the acceleration a 0 but that would only increase the complexity and serves no purpose The second pair consists of cruise time and percentage of cruise time According to Shahidinejad et al 2010 pp 3712 a sample i is defined as cruise if the veloc ity v gt 5 m s and the ac
34. category mixed shows a larger fit than the models in the other categories might depend on which variables that are removed in advance due to mutual correlation It might also depend on some of the difficulties listed below Further studying of the phenomena is needed in order to determine the cause of the results Some other difficulties when automating the regression analysis process are e No coefficients are added back into the regression equation once they have been removed This can be a problem since the t value for a coefficient depends on the regression model and can vary between iterations e The amount of observations needed to ensure that no over fitting is made is approximately 10 to 20 times the number of explanatory variables used in the regression equation This means that the number of driving cycles needed to perform a regression analysis is at least n 100 assuming that at least 10 explanatory variables are selected at the first iteration step e Two explanatory variables might not show a linear correlation but some of them might be related in other ways It can be exponential relationships or relations where one variable can be derived from several others These sce narios will not result in a situation where variables are removed and that might lead to a situation where the assumption of independent explanatory variables do not hold e The fact that the explanatory variables are ranked according to their indi vidual co
35. celeration a lt 0 1 m s The definition used in this thesis is the same and the variables are derived in a similar way as the variables associated with the time spent in idle mode The variables are defined as teruise Ne Ts A 21 N PCttoruise NY A 22 where N is the number of samples with an acceleration a lt 0 1 m s and a velocity v gt 5 m s Two variables are related to the frequency of idle periods in the driving cycles number of stops and number of stops per kilometer The former one is the total number of idle periods in a driving cycle calculated as N 1 ifv 1 0 v 0 N i 1 s Vj Nstops 2 i 0 otherwise 2 iz The latter one is defined as the total number of stops divided by the total cycle distance namely Nstops N stops km d A 24 A 4 Driving characteristics 65 The last three statistical variables are all derived from the specific power defined asSP 2354 W kg The mean specific power N 1 SP 2 A 25 1 is the average specific power over the entire cycle Maximum specific power and minimum specific power SP as max SP SP SPN A 26 SP yin min SP SP SPN A 27 are the individual sample maximum and minimum User Manual How to use the application Driving Cycle Generation v 1 0 is described here in detail The software can generate stochastic driving cycles based on a provided set of real world data The data provided to t
36. city related statistic is the standard deviation of velocity defined as N 1 dz N 1 7 A 5 i where v is the cycle mean velocity The standard deviation is defined using the N 1 denominator in order to obtain a mean real estimation A 2 Acceleration Eleven variables related to the driving cycle acceleration are defined Mean posi tive acceleration and mean negative acceleration are defined as 1 pos 5 2 a A 6 Pos j a gt 0 1 ng aj A 7 where Napos and Naneg are the number of positive and negative acceleration sam ples respectively The acceleration periods positive acceleration time and neg ative acceleration time can also be derived using Napos Noneg and T as apos Napos T A 8 Aneg Na neg Ts A 9 A 3 Driving distance and time 63 There are four cycle statistics related to the extremes of the acceleration The first pair 95th percentile maximum acceleration and 95th percentile minimum ac celeration are the 95th and 5th percentiles in the acceleration samples distribu tion The second pair is maximum acceleration and minimum acceleration and they are defined as amay mMax a 42 ay and amin min a 42 ay respec tively The standard deviation of acceleration is calculated for all accelerations including both positive and negative values and is defined as N 1 EN Enz pa a 2 A 14 1 where a is the mean cycle acceleration In order to o
37. d in Figure 5 4 The negative peak at the idle state zero velocity and acceleration origins from the restriction on the first transition when a new driving cycle is generated The first transition has to leave the idle state This causes the probability of the idle state to decrease in comparison with the SAFD of the TPM Because the deviation for the idle state has such a large negative value it will increase the deviation for all other states a couple of percent The result in Fig ure 5 4 can be compared to the test when no edge trimming of the generated driving cycles is performed seen in Figure 5 5 When running the no trimming test there is no large deviation for the idle state and all other state deviations are close to zero The second thing to notice is that the deviation is very small where velocities and accelerations are low At the same time the deviation is larger at the edges of the figure In the TPM for the category short there is a high frequency of low velocity and acceleration states while samples with high velocities and accelerations are less common 42 5 Results Percentage a 100 Acceleration m s Velocity km h 5 0 Figure 5 4 SAFD deviations from the TPM distribution for 1 million gener ated driving cycles in the category short Percentage 9 100 Acceleration m s Velocity km h 5 0 Figure 5 5 SAFD deviations from the TPM distribution for 1 millio
38. ds to a variable where mean values of each variable is removed and each variable is scaled with its standard deviation By performing a singular value decomposition of X as described by Jolliffe 2002 pp 44 46 three new matrices are obtained In other words X is factorized as 14 2 Theory X1 X mxn De N 2 17 Xm where U is a unitary matrix with columns forming an orthonormal basis for X The amount of variance explained by the principal components PC can be de rived from the singular values o in the diagonal matrix E using o PC 5 2 18 1 Li o Specially PC is the amount of variance explained by the FPC and is a measure of the linearity in the set Figure 2 5 illustrates the procedure with two variables The left picture shows mean positive acceleration and acceleration standard deviation derived from 447 driving cycles The variables are correlated and by performing a PCA it is possi ble to see that the FPC explains 96 of the total variations in the original vari ables The figure to the right shows the variables in the principal component base 2 1 Cycle values Cycle values ma PC directions a mm PC directions a 15 05 F o S c o a S ate w 1 8 0 5 i 8 2 oO O lt 0 5 E 0 5 0 1 0 0 5 1 1 5 2 0 5 0 0 5 1 1 5 Mean Positive Acceleration Principal Component 1 Figure 2 5 Two dim
39. e time Driving 23 Number of stops characteristics 24 Number of stops per km km 25 Mean specific power W km 26 Maximum specific power W km 27 Minimum specific power W km 28 3 Data Analysis 3 6 2 LASSO regression To avoid unnecessary number of explanatory variables another method based on regularized least squares regression is implemented namely the LASSO method described in Section 2 1 3 The minimization problem solved to estimate the model coefficients for different A is given by n m 1 arg min _ X XB Ay Ig gt 3 6 izl j 2 The minimization problem is essentially the same as in the linear stepwise regres sion The only difference is that the L norm of the coefficient vector is included with the regularization coefficient A Since a large A value results in many model coefficients f being zero the coef ficient value is lowered until the limit R gt 0 9 is fulfilled In order to avoid an unnecessary high number of representative variables the lowering of A also stops if the number of non zero f becomes larger than ten 3 6 3 Hierarchical clustering of variables A variable clustering method is implemented to determine a minimal subset of representative variables from the 27 variables listed in Table 3 6 The theory of clustering variables can be found in Section 2 2 Unlike the iterative regression method MTF is not used as a representative re sponse Instead the implemented clusterin
40. ed into different types e g by distinguishing between driving cycles that are measured while driving in the city and driving cycles measured on the freeway Since given data have a wide spread of driving types it is possible to split the set of driving cycles into more specific categories Categories used in this thesis are based on those defined by Lee and Filipi 2011 and can be seen in Table 3 4 and Table 3 5 As can be seen in the third column in the tables number of cycles there are only three categories that have a substantial amount of data Most effort is there 3 6 Representative variables 25 Table 3 4 Categories based on mean positive velocity Category Limits km h Cycles Urban 0 lt Tpos lt 40 328 Mixed 40 lt Tpos 72 133 Freeway 72 lt Tpos lt 00 5 Table 3 5 Categories based on driving distance Category Limits km Cycles Short 0 lt d lt 14 409 Medium 14 lt d lt 32 42 Long 32 lt d lt 15 fore focused on these categories since the other ones do not have enough driving cycles to perform a proper statistical analysis 3 6 Representative variables Four different methods are implemented that determines a set of representative variables for a set of driving cycles i e driving cycles from a specific category Each one of the methods is tested on the driving cycles that are categorized as short urban and mixed Each method generates a subset of the statistical vari ables lis
41. edule Introduction There are multiple predefined driving cycles used for environmental classifica tion of vehicles and in the vehicle product development process in the world today Two well known examples are the New European Driving Cycle NEDC seen in Figure 1 1 and the Urban Dynamometer Driving Schedule UDDS De velopment of some driving cycles are summarized in Andr 1996 60 Velocity km h 40 L 0 200 400 600 800 1000 1200 Time s Figure 1 1 The New European Driving Cycle NEDC However a problem when testing vehicles with predefined driving cycles is that the risk for cycle beating is increased This means that vehicle parameters affect ing emissions and fuel consumption can be optimized for a specific cycle Kage son 1998 Schwarzer et al 2010 But there are no guarantee that the vehicle will perform in the same way when driven in real world traffic A natural driv 3 4 1 Introduction ing cycle is usually more aggressive than the standardized cycles Fellah et al 2009 It is therefore necessary to test vehicles with natural diving cycles in order to obtain more relevant results An example of a real world driving cycle is seen in Figure 1 2 where it is clear that the acceleration varies more than in Figure 1 1 The risk for cycle beating is significantly decreased when vehicles are tested against several different driving cycles However obtaining driving cycles through meas
42. eg acc X X X X X 5 Group 6 2 x X 2 Idle time X X X X 4 idle time X 1 cruise time X X X X X X X 7 stops X 1 stops per km X X X X X X 6 Mean s p X X X X X 5 Maximum s p 0 Minimum s p xX X X X X 5 y 4 8 4 6 14 8 8 13 2 9 2 7 46 5 Results The number of representative variables selected by different methods applied in different categories varies widely It is only the number of variables selected by the cluster analysis that remains stable between the categories There are nine variables selected in the mixed category and eight in the short and urban cate gories The additional variable in the mixed category can be interpreted as a result of the restrictions on the velocity and distance in the urban and short categories 5 2 1 Regression analysis results The estimated regression model shows a large fit to the data in all categories Figure 5 6 shows the calculated MTF compared to the predicted MTF calculated with the estimated model in the category short Only four representative variables are selected and the model fit exceeds the limit set on the Ri gj Statistic 0 57 0 257 Calculated mean tractive force kWh km 0 0 25 0 5 Predicted mean tractive force kWh km Figure 5 6 Predicted MTF plotted against calculated MTF for the driving cycles categorized as short The estimated models in the other categories shows similar fits but the number of variables included in the final mode
43. enerated probability matrix velRes Velocity resolution accRes Acceleration resolution Ts Sample time nrOfCycles Number of cycles the TPM is based on variableIntervals Validation intervals statMatrix Cycle statistics matrix repVariables Structure with representative variables analysisInfo Information from the data analysis 4 2 Driving cycle construction When a TPM has been created it is possible to start generating driving cycles The process starts by calculating the desired driving cycle duration This is done by calculating the median for all driving cycles that the TPM is based on This is the driving duration that the process aims for but it is not the definite duration of the finished driving cycle The process described in Figure 4 2 starts in the idle state zero velocity and acceleration The first transition is leaving the idle state and the driving cycle is then built up through random state transitions in the TPM based on the tran sition probabilities Each sub matrix contains all state transitions available with corresponding probabilities Two examples of how the sub matrices are built can be seen in Figure 4 1 The iterative process continues until the desired duration is exceeded at the same time as the end state has a velocity equal to zero There is also a desire to have only one zero velocity state atthe end of each driving cycle Vltena 0 4 3 Vltena 1 0 4 4 which is obtained by removing all
44. ensional principal component base change The length of the direction lines is not proportional to the amount of variance explained by the principal components 2 3 Mean tractive force 15 2 3 Mean tractive force A measure of how a driving cycle affects the vehicle is the mean tractive force MTF The use of the MTF as representative response was proposed by Lee and Filipi 2011 also called specific energy at wheels and the definition given here can be found in Guzzella and Sciarretta 2007 The MTF is defined as the mean positive force at the wheels necessary for a ve hicle to follow the driving cycle This means that only time instances when the powertrain provides power to the vehicle i trac are taken into account The definition of MTF is given by 1 Firac J Fit v t dt 2 19 Xtot 1Etrac where F t is the sum of all forces acting at the wheels v t is the velocity and x is the driving cycle distance The contributions to F t are modeled and 2 19 is rewritten as Frac Fyrac a Frac r Ftrac m 2 20 where Esracar Firac r and Frrac m are the MTF values of aerodynamic rolling re sistance and acceleration resistance forces acting at the wheels Forces on the wheels caused by road gradient are neglected when the power demand is calcu lated They are each modeled as 1 1 F Si iy As Coat BT 2 21 trac a Kot 2 Pa f d pa i s an 1 Firacr mm Ap go Cy Sy gt 2 22 ieee
45. es of freedom compared to the N 0 1 distribution 10 2 Theory The T distribution is useful to determine whether a regression coefficient f 0 in other words whether the explanatory variable x _ affects the response vari able at all Enqvist 2007 pp 27 32 The coefficient p value po P ltl gt 189 1 6 0 2 12 is a measure of how far out in the T distribution the coefficient t value lies For instance if pg 0 049 it is possible to state that 0 at a confidence level of 95 Figure 2 2 shows the 95th percentile for the T 5 distribution If the t value is above 2 the p value is lower than 0 1 since the distribution is sym metric and it is possible to state that the coefficient is non zero at a confidence level of 90 0 8 I I 0 6 I a I 04 I I 0 2 I I 0 1 4 2 0 2 4 4 2 0 2 4 x x Figure 2 2 Cumulative distribution function and probability density func tion for a T distribution with 5 degrees of freedom The 95th percentile is dashed in both plots It is important to remember that these conclusions are only valid under the as sumption that the residuals are normally distributed Otherwise the t and p values gives no information about the coefficients f since the coefficient standard errors will not be T distributed However if the residuals are normally distributed a T test can be used to reduce the number of explanatory variables by removing the varia
46. etoden kombinerar klusteranalysen med regressionsanalysen Hela processen r automatiserad och ett grafiskt anv ndargr nssnitt har utveck lats i Matlab f r att underl tta anv ndningen av programmet Acknowledgments We would like to thank the division of Vehicular Systems for giving us the op portunity to carry out this master thesis by providing relevant data and support A special thanks go to Erik Frisk and Peter Nyberg who have provided feedback and relevant expertise through the thesis We would also like to thank those who have proofread the report you know who you are and it has been much appreciated Link ping June 2013 Emil Torp and Patrik Onnegren vii Contents Notation 1 Introduction 1 1 Problem formulation o o e 1 2 IMITACIONES Ei einen or ee RE 1 3 Approach spin oh ose Bae eee es edd Gee ie Ra 1 4 Thesis contributions 2 se ers ess rr rr rss sr 1 5 Thesis outline Aus He a BE a ler 2 Theory 2 1 Multiple linear regression some see rr rr rr rr o IN A er eh BE oe PAT ENAS BG fri NEA 2 1 2 Measure of regression fit 2 2222 nennen 2 1 3 LASSO regression 3 ss sve a dam ass ana 2 2 Hierarchical clustering of variables 2 2 1 Principal component analysis 2 9 Mean tractive force tio 2 4 Markovchain iraa a er a a e e e e a AR RAR 3 Data Analysis 3 2 Preprocessing 1603 00200000 a AA RR 3 2 Data input specification so oss
47. g method intends to explain the vari ations in all statistical variables Mean values are removed from each variable since it is the variation in the vari ables that is to be investigated They are also scaled with their standard devia tions to avoid that high valued variables affect the result more than low valued ones For example maximum velocity is normally much larger than number of stops The clustering procedure starts with each statistical variable in a separate cluster At each iteration the clusters closest to each other are combined as long as the distance between them is small enough The implemented distance measure between clusters makes use of the principal component analysis PCA described in Section 2 2 1 The distance between two clusters i and j d j is obtained from a PCA on the variables in the combined cluster An upper triangular distance matrix D is calculated at each iteration before com bining the closest clusters D have the form 3 6 Representative variables 29 O d2 dyna din 0 0 gt gt dyna don Del l 3 7 ve 0 0 0 0 where n is the number of clusters at the current iteration The two clusters cor responding to the smallest non zero value in D are combined in the subsequent step When the smallest non zero value in the distance matrix no longer falls below the limit d 1 PC ij lt 0 25 3 8 the grouping stops and the final clusters are determined by the set of c
48. he program must be configured as described in Section B 1 The software is completely controlled from within a graphical user interface GUI described in Section B 2 How the data is converted to a transition probabil ity matrix TPM and used to generate driving cycles are described in Section B 3 There is also a short troubleshooting guide in Section B 4 in case any errors occur The software was created and tested in Matlab R2011b and above and require the statistics toolbox to function B 1 Data input specifications A correctly formatted data file will be a mat file containing an array of struc tures configured as in Table B 1 Each structure has to contain a single driving cycle Table B 1 Data input specification Field Type Explanation Unit velocity Vector Sampled velocity km h Ts Scalar Sample time s carCharacteristics Structure optional See Table B 2 67 68 B User Manual The field carCharacteristics is an optional structure configured as in Ta ble B 2 There is no requirement to attach this field since default values exist although the result of the regression analysis will be improved if this is correctly defined See Section B 3 3 for more information about analysis methods Exam ple B 1 shows an example of a correctly formatted set of input driving cycles Table B 2 carCharacteristics input specification Field Type Explanation Default value Unit mv Scalar Vehicle mass 1600 kg
49. hesis the distance between two clusters or variables i and j is defined as d j 1 PC 2 16 where PC is the amount of within cluster variations accounted for by the first 2 2 Hierarchical clustering of variables 13 Start with one variable in each initial cluster Calculate the minimum distance Amin between two clusters Merge the two clusters No more clusters are close enough to be merged together Figure 2 4 Hierarchical agglomerative clustering procedure principal component FPC The FPC is obtained from a principal component analysis PCA on the variables in the combined cluster see Section 2 2 1 The clustering method used in this thesis is an agglomerative clustering method meaning that all variables are assigned to an initial cluster The clusters are grouped together as long as the distance between them falls below a predefined limit 2 2 1 Principal component analysis Principal component analysis PCA is a method to determine how orthogonal a set of variables are By changing the base from the original variables to an orthog onal base consisting of principal components it is possible to see in how many dimensions the variables actually varies and especially how one dimensional the variations are For further information about the concept and a complete theory see Jolliffe 2002 Assume that m variables have been observed n times The variables then forms a matrix X where each row correspon
50. hort of a timespan Conclusion An application has been developed in Matlab that can be used to generate stochas tic driving cycles based on a given set of real word driving cycles The generated driving cycles resembles real world driving cycles in terms of SAFD and selected statistical properties Markov chain theory is used to randomly select state transitions in the velocity profile to ensure the randomness of the generated driving cycles and minimizing the risk of cycle beating The representativeness of the generated driving cycles can be investigated us ing either regression analysis or hierarchical cluster analysis A set of statistical variables that have to coincide with the generated driving cycle values are deter mined The former method suggested by Lee and Filipi 2011 proved to be difficult to automate and the assumption that the same statistical variables can be used to represent all types of driving cycles proved to be wrong The variables describing a set of driving cycles are highly dependent on the driving conditions in the driving cycle i e amount of traffic or the type of road Overall the most important conclusions can be stated as e A Markov process can be used to ensure the randomness of the generated driving cycles e The characteristics of a driving cycle varies between types of driving and the validation must therefore be specific for each driving category e The proposed hierarchical cluster analy
51. ibution of the generated driving cycles is investigated and compared to real world driving cycles distribution The generated driving cycles proves to represent the original set of real world driving cycles in terms of key variables determined through statistical analysis Four different methods are used to determine which statistical variables that describes the features of the provided driving cycles Two of the methods uses regression analysis Hi erarchical clustering of statistical variables is proposed as a third alternative and the last method combines the cluster analysis with the regression analysis The entire process is automated and a graphical user interface is developed in Matlab to facilitate the use of the software Nyckelord Keywords drive cycle mean tractive force cluster analysis regression analysis percentile validation transition probability matrix Abstract A driving cycle is a velocity profile over time Driving cycles can be used for environmental classification of cars and to evaluate vehicle performance The benefit by using stochastic driving cycles instead of predefined driving cycles i e the New European Driving Cycle is for instance that the risk of cycle beating is reduced Different methods to generate stochastic driving cycles based on real world data have been used around the world but the representativeness of the generated driving cycles has been difficult to ensure The possibility
52. icient is performed The variable corresponding to the model coefficient with the largest p value p pj IS removed from the set of explanatory variables The procedure is repeated and an explanatory variable is removed in each step until the model no longer satisfies the adjusted R square limit R aj gt 9 9 The variable removed in the last step is returned to the model when the regres sion fit falls below the limit The remaining variables are selected as representa tive for the driving cycles used in the analysis 3 6 Representative variables 27 Table 3 6 Driving cycle characteristics Category Explanatory variable Unit 1 Mean positive velocity km h 2 Mean velocity km h Velocity 3 Maximum velocity km h 4 95th percentile maximum velocity km h 5 Standard deviation of velocity km h 6 Mean positive acceleration m s 7 Mean negative acceleration m s 8 Positive acceleration time s 9 Negative acceleration time s 10 95th percentile maximum acceleration m s 11 95th percentile minimum acceleration m s Acceleration 12 Maximum acceleration m s 13 Minimum acceleration m s 14 Standard deviation of acceleration m s 15 Percentage of driving time under positive acceleration 16 Percentage of driving time under negative acceleration Distanceand 17 Driving distance km time 18 Driving time s 19 Idle time s 20 Percentage of idle time 21 Cruise time s 22 Percentage of cruis
53. ime related variables as well as variables depending on driving characteristics The equation numbers correspond to the numbers mentioned in Table 3 6 which also lists the variable units Each variable is calculated using the averaged and discretized driving cycles ve locity v and acceleration a defined in the time intervals between the original velocity samples i 1 2 N when the number of samples in the measured velocity equals N 1 The velocity unit is km h and the acceleration unit is m s Furthermore the sample time T is assumed to be constant through the entire driving cycle A 1 Velocity A total of five variables related to the driving cycle velocity are defined First there are two mean velocity statistics The first one mean positive velocity is defined as 1 Tpos Di Sc pos i v gt 0 where Ny pos is the number of samples with a positive velocity v gt 0 in the driving cycle 61 62 A Driving Cycle Characteristics The second one mean velocity which also includes zero velocity samples is calculated as 1 N gt gt ve A 2 where N is the total number of samples in the cycle Two statistics depends on the driving cycles high velocity samples namely maxi mum velocity and 95th percentile maximum velocity The former is defined as the maximum sample velocity Vmax max v 1 V2 V The latter is the value for which 95 of the sampled velocities are lower The last velo
54. ing All driving data used to generate new stochastic driving cycles are provided by Volvo Cars in Gothenburg A total of nine vehicles have logged speed and torque for several weeks during the summer of 2012 100r Velocity km h 0 10 20 30 40 50 60 Time min Figure 3 1 Example of non natural driving cycles 19 20 3 Data Analysis However only three of the vehicles are assumed to have been driven in normal traffic conditions The data from the remaining vehicles contains driving pat terns with tendencies to be measured on a test track Repetitive patterns were frequently occurring as can be seen in Figure 3 1 Since the available data have been logged for entire weeks as can be seen in Figure 3 2a there is a need to split each week of data into multiple driving cycles Each vehicle logged speed and torque while the engine was running Figure 3 2b shows the velocity profile from one of the measured driving cycles Velocity km h gt o 828 E 2D o o o o o o o Velocity km h N o o ol 2000 4000 6000 8000 10000 9190 9192 9194 9196 9198 9200 9202 Time min Time min o o a Data from a week b Zoomed in view of a driving cycle Figure 3 2 Examples of given real world data In Figure 3 2b it is also possible to see the idle periods at the beginning and end of each driving cycle These extra measurements do not describe the driving cycle when the vehicle is active and are the
55. ions Q It seems to generate forever Sometimes there will be a combination of representative variables that are ex tremely hard or even close to impossible to finish with the current selected val idation limit The only option is to open the Matlab window and press Ctrl C followed by a restart of the GUI Try again with different settings when the GUI has reloaded Q I get multiple warnings during the regression analysis This is because there are very few driving cycles in use It will still be possible to generate a TPM and driving cycles with these settings but it is still strongly recommended to change your categorization limits or add more data since the representative variables may not be accurate sun ee he 5 to 6 T o 33 5 2 I a ae da i 3 Ves un Link pings universitet Upphovsr tt Detta dokument h lls tillg ngligt p Internet eller dess framtida ers ttare under 25 r fr n publiceringsdatum under f ruts ttning att inga extraordin ra omst ndigheter uppst r Tillg ng till dokumentet inneb r tillst nd f r var och en att l sa ladda ner skriva ut enstaka kopior f r enskilt bruk och att anv nda det of r ndrat f r icke kommersiell forskning och f r undervisning verf ring av upphovsr tten vid en senare tidpunkt kan inte upph va detta tillst nd All annan anv ndning av dokumentet kr ver upphovsmannens medgivande F r att garantera ktheten s kerheten och tillg
56. is based on the Markov property that the next state X depends en tirely on the current state X and not any preceding or following states Gubner 2006 PX ms x Xy X1 X2 Xz Xp Xn PX X Xn Xp 2 27 2 4 Markov chain 17 The probabilities of reaching a specific state at the next time instance varies de pending on the current state The states x does not necessarily have to be one dimensional In this thesis each state is defined by a two dimensional vector v a and each combination of the discrete variables v and a corresponds to a specific state x The Markov chain used in this thesis is considered stationary since all probabil ities are time homogeneous Gubner 2006 p 480 It is possible to write the one step transition probability from state x to state x as pre 2 28 All one step state probabilities can be arranged in a matrix called the transition probability matrix TPM where each element contains the probabilities for every other state to be the next in the chain One important note is that all probabilities for leaving a state including the probability of staying in the same state must sum up to one This is mathematically described as Y Bi Y Pa xj X xi 1 Vi 2 29 j j Data Analysis The following chapter describes how real world data is processed and analyzed to later be used in the generation of transition probability matrices TPMs 3 1 Preprocess
57. it always grows if more explanatory variables are added to the model This fact in combination with a small sample size can cause overfitting of the data and more variables than necessary can be included in the model This can however be compensated for by using 2 a n 1 Raaj 1 R A 2 14 n m 1 where n is the sample size and m is the number of explanatory variables in the model equation not counting the constant term Harrell 2001 p 91 0 982 p e o 2 0 98 2 3 Dn 0 978 E I I a 0976 1 I ker 0 974 Adjusted R 10 15 20 25 Number of explanatory variables Figure 2 3 Regression analysis statistics for different number of regressors 12 2 Theory The R qj Statistic compensates for the number of explanatory variables in the equation and unlike the R statistic it can decrease if too many variables are included in the model Figure 2 3 shows both the statistics from a regression analysis containing n 132 samples and different number of explanatory vari ables 2 1 3 LASSO regression In order to obtain a regression model with fewer explanatory variables than the ordinary least squares method described above it is possible to add an extra constraint to the minimization problem The objective with the least absolute shrinkage and selection operator method LASSO is to reduce the number of ex planatory variables while at the same time obtain
58. ity Electronic Press and its procedures for publication and for assurance of document integrity please refer to its www home page http www ep liu se Emil Torp och Patrik nnegren
59. ls differs The urban category requires 14 variables to meet the requirements whereas the mixed category only requires two This is further discussed in the next chapter 5 2 2 Cluster analysis results Table 5 3 shows the resulting variables selected from the cluster analysis The process of clustering the statistical variables in the three categories urban mixed and short are illustrated in Figures 5 7 5 9 Each figure has the variables listed on the x axis and the distance between the clusters grouped together on the y axis 5 2 Selected validation variables 47 o o o e m wo gt al T gt T T T Zr Distance between combined clusters o a T o o T L 1 I I Ner ea MEENT 8 9181721192325 1 2 3 4 52422152016 61410 7 11 1226 13 27 Variable number Figure 5 7 Resulting dendrogram from the cluster analysis in the category containing urban driving cycles 0 67 I 0 4F i I 0 3 oe Distance between combined clusters 8 18 9 17 21 23 16 15 19 20 12243 4 525 6 1410 7 11 22 12 26 13 27 Variable number Figure 5 8 Resulting dendrogram from the cluster analysis in the category containing mixed driving cycles 48 5 Results o D T a T o gt T wm 1 gt N T Distance between combined custers o a T 41 I i I I I I I I I i 8 9 18 17 19 23 21 22 1 2 3 A 5 24 25 15 20 16 6 14 10 7 11 12 26 13 27 Variable number
60. lusters at that point The limit used is determined through several tests and visual exami nation of the clusters obtained in different categories Figure 3 7 illustrates the procedure of clustering variables for the driving cycles in the category short The statistical variables are listed on the x axis and the distance between the combined clusters are shown on the y axis The dotted line corresponds to the limit after which no more clusters are combined Due to the fact that the combined cluster variables no longer shows the one dimensional behavior that is required in order to group them together o D T o a T e gt T o e mM wo T T Distance between combined custers 8 9 181719232122 1 2 3 4 5 24 25 15 20 16 6 14 10 7 11 12 26 13 27 Variable number Figure 3 7 Resulting dendrogram from the clustering of the variables in the category short When the final clusters have been determined one variable from each cluster is selected as the cluster representative and as a final representative variable in the 30 3 Data Analysis validation of the generated driving cycles The chosen variable from each cluster is the one with the largest distance to its closest neighboring cluster The proce dure to select a cluster representative is described in Figure 3 8 and explained further below The decrease in variations explained by the FPC when a variable v is added to a cluster c is calculated as APC
61. lute maximum acceleration is 8 2 m s and the resolution is 0 2 m s there will be 83 rows in the TPM The first column in the matrix corresponds to zero velocity and the middle row to zero acceleration When the size of the large matrix is defined it is possible to generate the sub matrices This is done by stepping through each input driving cycle and saving each state transition in the correct sub matrix A new row is added to the sub matrix for each time a state is visited changing the size of the sub matrix When all driving cycles have been sorted into the TPM there is a need to sort and summarize the sub matrices A value of how many times a unique transition has occurred is calculated and the transition probabilities are derived Example of the final representation of the TPM can be seen in Figure 4 1 4 1 1 TPM specification The TPM is constructed as a Matlab structure since there is a need to store dif ferent kinds of data within it Instead of sending several individual variables between functions it is possible to just send one structure with all information that is needed It will also make it easier to store several different settings for the driving cycle generation which will make it possible to reuse the same generated TPM in the future The specification on how a TPM is configured can be seen in Table 4 1 4 2 Driving cycle construction 35 Table 4 1 TPM specification Field Explanation matrix The g
62. n gen erated driving cycles in the category short without trimming zero velocity measurement from the edges 5 2 Selected validation variables 43 States in the middle of the SAFD are more frequent when multiple driving cycles are generated The deviations will therefore converge towards zero faster than the deviations for the states with high values of either acceleration or velocity If more driving cycles were generated around one billion there would be close to zero deviation at the edges as well The fact that the SAFD of the generated driving cycles differ slightly from the TPM distribution might cause the generated driving cycles to differ from the expected This is however handled in the validation process where the non representative driving cycles are rejected 5 2 Selected validation variables The subsets of variables selected by the four proposed methods applied to the driving cycles categorized as short urban and mixed can be seen in Table 5 1 Since some of the variables are highly correlated the results can be misleading One of two correlated variables can be selected by one of the methods whereas the other variable can be selected by another method Since the two variables are correlated it can be seen as that the same feature has been selected rather than two different variables By grouping variables that are linearly correlated to each other with an absolute Pearson correlation coefficient cov X Xj 050
63. ng Cycle Generation As an example the 10th percentile is the value for which 10 of all the observa tions falls below The median value is by that logic found at the 50th percentile A range is then constructed using this knowledge If a validation should be done with a 20 limit then this is converted to a range from the 40th percentile to the 60th percentile Another example can be seen in Figure 4 3 where a generated driving cycle is approved if it obtains a value between the validation limits Using percentiles solved the problems that occurred with percentage validation All variables are allowed to be within an interval for which it is possible to ap prove the generated driving cycles Variables that have a large variance in the measured driving cycles are also allowed a larger variance in the generated driv ing cycles The opposite is true for the variables with narrow distributions Results The main results from the process of generating stochastic driving cycles by using the described methods can be summarized in two groups First some of the generated driving cycles are presented and their speed acceleration frequency distribution SAFD is compared to the SAFD of the real world driving cycles in order to ensure their representativeness Second results from the four proposed methods to determine representative vari ables to a set of real world driving cycles see Section 3 6 are presented in Sec tion 5 2 The resul
64. ompared to Lee and Filipi 2011 is that it uses an automatic process and finds a set of representative variables for each category In Lee and Filipi 2011 they analyzed all available driving cycles and used the result regardless of the type of driving cycles Different categories usually have different kinds of driving cycles and needs separate sets of representative variables to be described properly The implemented software performs an automated stepwise regression analysis and the number of variables selected as representative differs a lot between cate gories as stated in the previous chapter The reason can be seen in Figure 6 1 The models estimated from the categories short urban and mixed shows similar devel opment of the R q statistic when the number of explanatory variables decreases The hard limit forces the number of variables to 14 in the category urban even though the Rig Statistic is very close to the limit when only four explanatory variables are used 0 95 0 9 0 85 0 8 E 0 75 R2 0 7 0 65 le Short driving cycles Urban driving cycles Mixed driving cycles limit 0 64 0 55 H 0 5 L L 1 i L 1 1 L L L L 1 L 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Number of explanatory variables in the model Figure 6 1 Adjusted R statistic for estimated regression models with vari ous number of regressors 53 The reason for why the regression model estimated in the
65. ost of the driving cycles available have either a very short driving distance or a low average speed For this reason it is hard to assure validity in driving cycles generated from categories with a long driving distance or a high average speed 1 3 Approach As described above this thesis is based on the work by Lee and Filipi 2011 The proposed method is used as a foundation and certain parts are developed even further An important part of the thesis is to study what describes a representative natural driving cycle It is investigated through statistical analysis and the results are used to validate generated driving cycles The methods are implemented in Matlab and an accompanying graphical user interface GUI is developed 1 4 Thesis contributions Unlike previous work in the field this thesis propose to use a unique set of vali dation variables for each categorization set of real world driving cycles in order 6 1 Introduction to ensure the representativeness of the synthesized driving cycles The character istics of a driving cycle depends on the type of driving and the validation must therefore be different Another contribution is the proposed cluster analysis method to determine what represents a set of driving cycles It uses principal component analysis to calcu late the similarities between the statistical variables in each category and deter mines a subset from 27 proposed characteristics depending on the real
66. r used for data filtering Section 3 4 represen tative variable analysis Section 3 6 and validation Section 4 3 among others The variables extracted are presented in Table 3 6 and in Appendix A 3 4 Data filtering All real world driving cycles are by this point processed and they have statistical properties available for further study A couple of filtering criteria are defined to remove unwanted driving cycles Data is filtered based on the following aspects e Mean positive velocity e Driving time with positive velocity All driving cycles with a mean positive velocity below 10 km h are removed since they are not considered natural An example of such a driving cycle can be seen in Figure 3 4 Driving cycles that have a non zero velocity for shorter than 60 seconds are also removed As can be seen in Figure 3 5 the driving time for the entire driving cycle is close to two minutes but the amount of time where the vehicle is driving with a positive velocity is below the limit and the cycle is therefore removed 24 3 Data Analysis Velocity km h 0 0 5 1 1 5 2 Time min Figure 3 4 Driving cycle with a mean positive velocity below 10 km h Velocity km h gt N m gt wo gt gt o al o a o al o al 1 0 L L L 0 0 2 0 4 0 6 0 8 1 1 2 1 4 1 6 1 8 Time min Figure 3 5 Driving cycle with short timespan at positive velocity 3 5 Data categorization A driving cycle can be categoriz
67. racteristics 61 NGE Velocity sti li a ect fy 61 A2 Acceleration 3244 Seas wa BIS Be A a e S 62 A 3 Driving distance and time o oo o 63 A 4 Driving characteristics o o o 64 B User Manual 67 B 1 Data input specifications o o o 67 B 2 Graphical user interface o ooo o o 68 B 3 How to use the software o o 69 B 3 1 Useanexisting TPM o o o 00040 69 B 3 2 CreateanewTPM oo e a 70 B 3 3 Choose method of determining representative variables 71 B 3 4 Analyze generated driving cycles 71 B 3 5 Save a generated TPM o o ooo oo 73 B 3 6 Export generated driving cycles 74 B 4 Troubleshooting ss ori se hae ok FARE da da a 74 Nomenclature a Ares Ar Abbreviations FPC GUI LASSO MTF NaN NEDC PCA SAFD TPM UDDS Notation Acceleration Acceleration resolution Vehicle frontal area Aerodynamic drag coefficient Rolling resistance coefficient Driving distance Vehicle mass Sample time Velocity Mean positive velocity Velocity resolution First principal component Graphical user interface Least absolute shrinkage and selection operator Mean tractive force Not a number New European Driving Cycle Principal component analysis Speed acceleration frequency distribution Transition probability matrix Urban Dynamometer Driving Sch
68. rative regression analysis method the procedure intends to remove correlated variables by using cluster analysis and then determine the final repre sentative variables by using the method described in Section 3 6 1 Instead of using the limit on PC from Section 3 6 3 a lower one is used namely that PC in each cluster must exceed 0 9 The resulting clusters obtained from the analysis in the category short can be seen in Figure 3 9 A total of 16 clusters for which one representative is chosen using the same method as in Section 3 6 3 are nominated as explanatory variables for the regression analysis o D T Oo o gt al T T oO w T e N T Distance between combined clusters i 1 4 1 egen zu I 1 8 9181719232122 1 2 3 4 52425152016 61410 7 11 12 26 13 27 Variable number a I I I I I I 1 o o er T Figure 3 9 Clustering dendrogram from the combined regression and clus tering analysis Driving Cycle Generation Generation of driving cycles includes the process of generating both transition probability matrices TPMs described in Section 4 1 as well as driving cycles described in Section 4 2 Section 4 3 goes into details on how the driving cycle validation works The chapter also contains specifications on how data is speci fied within Matlab 4 1 TPM construction As described in Section 2 4 the TPM matrix contains probabilities to transition from one state to another sta
69. refore removed There are also some driving cycles that have unusually long idle periods This was initially considered to be stops due to traffic lights But when the duration of the idle periods were studied further it was clear that a few of the stops could not have come from such scenarios Figure 3 3 shows a driving cycle that has an idle time for approximately eight minutes between two non zero velocity intervals Such a scenario is considered to occur when the vehicle is left running while the driver is away doing something else All such events are therefore divided into two separate driving cycles if the stoppage time is longer than 3 minutes Some of the available driving cycles did not start and end with a zero velocity measurement This is considered to be some kind of fault in the data logging pro cess However most of these driving cycles have otherwise good measurements so instead of discarding multiple driving cycles they are trimmed until they start and end with a zero velocity sample 3 2 Data input specification 21 N wo gt o o o T T T Velocity km h o T L L 0 5 10 15 20 25 30 35 Time min Figure 3 3 Approximately eight minutes pause in the middle of a driving cycle 3 2 Data input specification A specification for how all input data must be constructed is defined Each driv ing cycle has to be a Matlab structure with fields according to Table 3 1 Further more the structures has to be
70. representative vari ables for each category and the variables that got clustered seemed reasonable 54 6 Discussion Cluster analysis also avoids the problems that occur when the MTF is used as a representative response since the clustering explains the variations in a specific set of driving cycles rather than the MTF 6 1 Future work Some ofthe improvements and extensions to the software that could be of interest are listed below 1 First principal component The selection of a cluster representative can be performed in many ways A PCA method is used here which selects one variable from each cluster Another perhaps better way would be to use the FPC to define a statistic linear combination of all the variables in the cluster in each cluster that captures the most of the within cluster varia tions 2 User defined car parameters When developing cars there is a desire to calculate or simulate how much emissions the vehicle will emit Make it possible for the user to enter car specific parameters such as e Vehicle mass e Frontal area e Aerodynamic coefficients When car parameters are set and a model for emissions has been imple mented into the software it will be possible to calculate the emissions over several driving cycles of the same type Since the cycles are stochastically generated they will differ enough to avoid cycle beating when optimizing parameters 3 Connection to Simulink model A common way to
71. rrelation with the response variable might lead to the selection of the wrong set of explanatory variables A variable that together with an other one explains a lot of the response can be omitted because it can not explain the response good enough on its own The use of MTF as a representative response in the automated regression analysis may result in some difficulties explaining certain features of the driving cycles The contributions to the MTF are only calculated from traction mode samples which means that information from the braking and idle parts of a driving cycles are not accounted for These modes are increasingly important when designing electrical vehicles For example electrical vehicles generates energy from the braking power which is not accounted for while calculating the MTF but highly affects the needed power However the application implemented in this thesis considers general driving cycles and do not study the differences between vehi cles operating in them Lee and Filipi 2011 used a regression analysis method to determine representa tive variables for driving cycles in general which became the starting point for this thesis as well However it has been shown that regression analysis does not always work as expected When comparing the different methods it is clear that cluster analysis provides a more easily interpreted set of representative variables for a specific set of driving cycles It gave a similar amount of
72. sis can be used to determine a set of variables sufficient to represent a specific set of driving cycles 57 Bibliography M Andre Driving cycles development Characterization of the methods SAE Technical Paper Series vol 961112SAE Society of Automotive Engineers 1996 G Blom J Enger G Englund J Grandell and L Holst Sannolikhetsteori och statistikteori med till mpningar Studentlitteratur 2005 E Enqvist Grundl ggande regressionsanalys BOKAB Link ping June 2007 B S Everitt S Sabine M Leese and D Stahl Cluster analysis Wiley first edition 2011 M Fellah A Rousseau S Pagerit E Nam and G Hoffman Impact of real world drive cycles on PHEV battery requirements SAE Technical Paper pages 01 1383 2009 J A Gubner Probability and random processes for electrical and computer en gineers Cambridge University Press 2006 476 488 L Guzzella and A Sciarretta Vehicle propulsion systems Springer Verlag Berlin Heidelberg 2007 F E Harrell Regression modeling strategies Springer Verlag New York Inc 2001 I T Jolliffe Principal component analysis Springer second edition 2002 P K geson Cycle beating and the EU test cycle for cars European Federation for Transport and Environment T amp E 98 3 1998 T K Lee and Z S Filipi Synthesis of real world driving cycles using stochastic process and statistical methodology International Journal of Vehicle Design 57 1 1
73. tates instead of entire snippets One option is to generate driving cycles by using Markov chains as described in Lee and Filipi 2011 This includes extracting information from a database of real world traffic analyzing the data and to generate driving cycles from a stochastic process 1 1 Problem formulation 5 The objective of this thesis is to use the Markov chain approach when applicable and at the same time propose improvements to the algorithm 1 1 Problem formulation This thesis addresses the problem of synthesizing driving cycles that are repre sentative for real word driving cycles All important characteristic features from a specific type of driving shall be captured in a single stochastic driving cycle This means that the specific features must be determined and that the generated driving cycles must be validated Since the process is composed of many complex steps which can be performed in many ways it is thus desirable to automate the process as much as possible in order to obtain a structured method 1 2 Limitations Since the measured driving data can be formatted differently in different stud ies it is not possible to write software that handles every type of data This is solved by defining a specification on how input data has to be formatted The specification can be seen in Section 3 2 Some of the statistical analysis rely on that a sufficiently large amount of real world driving cycles are available M
74. tatives for the chosen data set It is therefore necessary to validate each generated driving cycle The validation is per 4 3 Validation 37 Table 4 2 Driving cycle specification Field Explanation Unit velocity Velocity vector km h acceleration Acceleration vector m s duration Cycle duration s Ts Sample time s characteristics Cycle statistics TPMname Name of TPM used formed using the representative variables obtained from the analysis described in Section 3 6 Initially the validation method used the average values for all statistical variables derived from the driving cycles in the TPM These values were compared to the same variables for the generated driving cycles and the deviation was calculated in percent However this method has several problems Variables with a large value get a big validation range e Variables with a low value get a small validation range This could result in validation limits for which it is impossible to generate an approved driving cycle e The variables natural deviations was not taken into consideration The percentage validation method was for these reasons replaced with a new type of validation based on percentiles Occurrences 50 40 30 20 10 0 1 0 3 0 4 0 5 Percentage of driving time under positive acceleration Figure 4 3 Histogram for a statistical variable with median and 25 limit presented 38 4 Drivi
75. te Each state is defined by the state variables veloc ity and acceleration To increase the readability the TPM is constructed as a large matrix containing smaller sub matrices as can be seen in Figure 4 1 Each state corresponds to a specific element in the TPM that contains a smaller matrix with the transition probabilities The size of the large matrix is determined by the maximum velocity and the ab solute maximum acceleration combined with the resolutions for velocity and ac celeration The number of rows n and columns n are calculated as fie p max 4 1 Ares _ Vmax ne l 4 2 Vres For example if the maximum velocity is 180 km h and the resolution is 1 km h 33 34 4 Driving Cycle Generation Probability Matrix at 51 km h and 0 2 m s Av Aa Po Velocity km h 2 0 2 0 005 0 1 2 a 50 51 52 100 cx 1 0 4 0 012 6 0 1 0 2 0 179 5 8 1 o 0 385 5 6 1 0 2 0 051 T o 0 2 0 002 2 E 0 2 P 0 0 0 169 ij 3 0 0 0 o 0 2 0 133 rd 2 0 2 g P 1 08 0 002 8 lt 5 6 1 Probability Matrix E at 100 km h and 0 2 m s 5 8 Av Aa P 6 0 o 04 02 0 0 2 0 2 0 0 0 07 1 0 2 0 07 1 0 0 4 Figure 4 1 Example of a TPM there will be 181 columns If the abso
76. ted in Table 3 6 that may be considered sufficient to describe the char acteristics of a driving cycle from the given category The variables selected are later used to evaluate the representativeness of generated driving cycles 3 6 1 Iterative regression analysis The first implemented method is the iterative regression analysis proposed by Lee and Filipi 2011 The objective is to single out the variables among the 27 proposed ones that explains the response variable mean tractive force MTF de scribed in Section 2 3 Unlike the method used by Lee and Filipi 2011 the implementation in this thesis is completely automated At first the mutual correlation between the 27 explanatory variable candidates are examined This leads to the removal of several variables that shows a strong correlation with another variable variables Each of the candidate explanatory variables are compared to the other ones in terms of linear correlation The linear correlation coefficient between two explanatory variables X X 1 Xin and X xj Xjn observed together for n driving cycles is defined as 26 3 Data Analysis _ cov Xj Xj _ Li alie EDR Xy Ja E 0 Oj N z N x nt Ver kik EA ja ri 3 5 where x and x are the observed variable means Blom et al 2005 If two variables show a strong linear correlation Ir gt 0 75 one of them is re moved The variable with the largest individual correlation with
77. the response variable MTF is kept for the regression analysis as an explanatory variable The limit Ir jl gt 0 75 is selected based on visual examinations of the relation ships Figure 3 6 shows two examples of the correlation between candidate ex planatory variables In both cases the mutual correlation exceeds the limit and one of the variables is removed _ 100 100 a E al Ey 80 E 80 gt gt E 8 A 3 g 60 T gt 60 de Eo e gt i 3 ee o D El 40 2 40 Bs 3 3 BER a 20 gt 20 pr rt 2 Correlation 0 96686 TT Correlation 0 76574 0 0 0 20 40 60 80 100 0 10 20 30 40 50 60 Mean Velocity km h Velocity Standard Deviation km h Figure 3 6 Mutual correlation between explanatory variable candidates A test where exponential correlations were taken into account was also performed The test gave almost identical results as the linear correlation tests A decision was therefore made to only use the linear correlations when determining the ini tial explanatory variables When the mutual correlation between the variables has been examined a step wise regression analysis is performed in order to determine the smallest set of variables that can be used to explain the driving cycles MTF An initial model is estimated using all the remaining variables In order to further reduce the number of variables in the model a T test for each model coeff
78. to generate stochastic driving cycles that captures specific fea tures from a set of real world driving cycles is studied Data from more than 500 real world trips has been processed and categorized The driving cycles are merged into several transition probability matrices TPMs where each element corresponds to a specific state defined by its velocity and acceleration The TPMs are used with Markov chain theory to generate stochastic driving cycles The driv ing cycles are validated using percentile limits on a set of characteristic variables that are obtained from statistical analysis of real world driving cycles The distribution of the generated driving cycles is investigated and compared to real world driving cycles distribution The generated driving cycles proves to represent the original set of real world driving cycles in terms of key variables determined through statistical analysis Four different methods are used to determine which statistical variables that de scribes the features of the provided driving cycles Two of the methods uses regression analysis Hierarchical clustering of statistical variables is proposed as a third alternative and the last method combines the cluster analysis with the regression analysis The entire process is automated and a graphical user interface is developed in Matlab to facilitate the use of the software iii Sammanfattning En k rcykel r en beskriving av hur hastigheten f r ett fordon
79. ts from the validation of the generated driving cycles are pre sented in Section 5 3 5 1 Generated driving cycles The software described in Appendix B can output a valid driving cycle An example can be seen in Figure 5 1 where the driving cycle has been constructed from the TPM produced from the driving cycles with a driving distance shorter than 14 km as described in Section 3 5 It is possible to see some similarities when generating several driving cycles from the same category They have roughly the same duration and many of the statis tical variables are in the same range even those that the driving cycle was not validated against This is because some of the statistical variables are related described further in Section 5 2 As previously mentioned in Section 3 5 only some of the categories have enough measured driving cycles to generate a TPM that does not have traces of separate driving cycles When generating a driving cycle with those TPMs it is often pos 39 40 5 Results 120p 100F 80F 60F Velocity km h 40F 20 0 L L 1 1 L L L L L 0 1 2 3 4 5 6 7 8 9 10 Time min Figure 5 1 Generated driving cycle from the category short sible to see identical snippets compared to the measured driving cycles This is due to the fact that some states in the TPM have only one transition available and that the Markov chain will continue on the same path until the process arrives at a state that h
80. urements can be costly and there is much to gain if they can be generated automatically 120 100F 60F Velocity km h 40 0 1 L L 0 100 200 300 400 500 Time s 600 700 800 900 Figure 1 2 Example of a natural driving cycle A common method for construction of driving cycles is to randomly append driv ing segments where a segment is a driving sequence between two stops Andre 1996 Lin and Niemeier 2002 describes the method as a combination of mi crotrips A problem when randomly appending microtrips is that no consider ation for differentiation in modal events e g cruise idle acceleration and de celeration within a segment is made Lin and Niemeier 2002 Furthermore the method has problems achieving the desired driving cycle duration Andre 1996 Lin and Niemeier 2002 used a stochastic process to assemble small snippets of data until certain statistical criteria were met Snippets are based on which modal event they belong to and is extracted from the measured driving cycles The main difference between snippets and segments is that a snippet is not constrained to be a driving segment between two stops However due to the size of these snippets it is still difficult to achieve the desired driving distance and at the same time obtain driving cycles that are representative for natural driving Lee and Filipi 2011 Another way would be to assemble single velocity and acceleration s
81. variables that the driving cycle is validated against A driving cycle is approved if all the validation variables obtains values within the bounds 30F 20F Deviations from 50th percentile o 5 TT I I I Le I I I I I I I I I I I I I I 1 1 I ran ik I I I e I I Li I I I 20F Representative variables Other variables 1 1 I 1 1 3 5 7 9 11 13 15 17 19 21 23 25 27 Variable number Figure 5 10 Deviations from the category median values for the driving cy cle in Figure 5 1 The number of iterations needed to generate a valid driving cycle varies and mainly depends on the number of representative variables used in the valida tion but also on which variables that are used The average number of iterations 50 5 Results for each method of determining representative variables in multiple categories are shown in Table 5 4 Table 5 4 Number of iterations needed to approve a generated driving cycle based on an average over 10 generations Number of representative Iterations variables Regression 25 4 E Clustering 3800 8 Combined 25 4 LASSO 100 6 Regression 27000 14 5 Clustering 4000 8 5 Combined 300 8 LASSO 4100 13 Regression 10 2 E Clustering 8000 9 Combined 5 2 LASSO 75 7 The reason for the amount of iterations necessary to get a valid driving cycle can be seen in Figure 5 11 A driving cycle is valid
82. ver the resulting velocity profile in the generated driving cycles are not affected It is however clear that further studies needs to be performed in order to identify the impact of the discretization The speed acceleration frequency distribution shows that the generated cycles have almost to the same distribution as the SAFD from the TPM The main dif ferences are visible in the idle state The large deviation is due to the removal of superfluous zero velocity states at the beginning and end of the driving cycles Even though this removal of states changes the SAFD for the generated driving cycles it is still reasonable since they do not add any relevant information to the driving cycle 51 52 6 Discussion Lin and Niemeier 2002 also performed a SAFD test on their generated driving cycles However they compared the differences while this thesis concentrates on the deviations defined in Section 5 1 1 Analyzing the deviations will give a better representation over the entire distribution since high values on speed and acceleration have a low frequency and the difference will be close to zero in com parison even though the values differ Low values for velocity and acceleration have a higher frequency and the difference can be visible even though the devia tion is relatively small For these reasons it is better to analyze the deviations One strength with the method of determining representative variables presented in this thesis c

Download Pdf Manuals

image

Related Search

fulltext full-text search fulltext01.pdf fulltext index mysql fulltext mysql full-text index fulltext sources online fulltext sql server fulltext01.pdf diva-portal.org fulltext search for books full text ntu fulltext search mysql

Related Contents

User Manual  AOC E2260PDA LED display  Plast Alpha 55  Télécharger le manuel  Neff T11K10 hob  Instructions de montage et de service FR  870A User Manual (Previous Generation)  Korg PX3B User's Manual  Netgear WN203 ProSAFE  P2300 User Manual - Cashregisterstore  

Copyright © All rights reserved.
Failed to retrieve file