Data-Driven Algorithm Based on Energy Consumption Estimation for Electric Bus
수소연료전지 · (6) PEM(고분자전해질막)
기본 정보
- 저자
- DOI
- 10.3390/wevj14120329
- 저널
- World Electric Vehicle Journal
- 발행년도
- 2023
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/wevj14120329
- 토픽
- Electric and Hybrid Vehicle Technologies
- OpenAlex ID
- W4389141763
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (6) PEM(고분자전해질막)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > PEM(고분자전해질막)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 41,348자
본문 펼치기
섹션 본문 113문단 · 38,190자
(제목 없음)
1The accurate estimation of battery state of charge (SOC) for modern electric vehicles is crucial for the range and performance of electric vehicles.This paper focuses on the historical driving data of electric buses and focuses on the extraction of driving condition feature parameters and data preprocessing.By selecting relevant parameters, a set of characteristic parameters for specific driving conditions is established, a process of constructing a battery SOC prediction model based on a Long short-term memory (LSTM) network is proposed, and different hyperparameters of the model are identified and adjusted to improve the accuracy of the prediction results.The results show that the prediction results can reach 1.9875% Root Mean Square Error (RMSE) and 1.7573% Mean Absolute Error (MAE) after choosing appropriate hyperparameters; this approach is expected to improve the performance of battery management systems and battery utilization efficiency in the field of electric vehicles.
Introduction
2The battery management system (BMS) for electric vehicles is one of the key technologies used to monitor and effectively manage electric vehicle batteries, thus enabling electric vehicles to improve battery energy efficiency [1].The main role of a BMS is to manage and maintain the battery intelligently, monitor the battery condition, and stop the battery from overcharging and overdischarging to cause an irreversible negative impact on the battery, thus achieving the effect of extending the cycle life of the battery, ensuring the safety of battery use and guiding the user to make the right choice.The estimation of battery SOC is an integral part of the BMS [2].Accurate estimation of the battery SOC in real time can quantify the remaining usable battery power and provide a basis for drivers to plan their trips, prevent shortening of the battery life, and improve the battery energy usage, which is of great importance.
3Electric buses have positive significance in terms of environmental protection, energy savings, sustainability, intelligence, economy, enhancing the image of public transportation, and adapting to urban development [3].Electric buses use electricity as a power source, and compared to traditional fuel buses, they can significantly reduce exhaust emissions and noise pollution, which has a positive impact on improving the urban environment and air quality [4].In addition, the economic benefits of electric buses are more pronounced as they also have lower maintenance costs.The energy efficiency of electric buses is higher, and the use of electric energy is much more efficient than fuel, which can reduce energy consumption.Electric bus operating conditions and battery operating conditions are closely related, and it is very important to predict the SOC of power batteries for electric buses, which not only helps them rationalize charging time and improve operational efficiency but also detects battery problems in time and avoids potential operational interruptions.
4At present, there are three main methods for electric vehicle power battery SOC prediction: the first is the traditional estimation method, which uses the relationship curve 2 of 15 between voltage and current and SOC value during charging and discharging to calculate the battery SOC [5][6][7]; the second is the adaptive filtering method, which estimates the SOC by building a battery model to obtain the observation equation [8][9][10]; and the third is the intelligent estimation method, which uses machine learning, neural networks, and other methods for estimation [11].The above three methods have their own advantages and disadvantages.Although the traditional estimation method is simple in principle and easy to implement, the accuracy is low and easy to deviate [12], so it is difficult to be directly applied to the actual estimation and is generally used in combination with other methods.The adaptive filtering method is more robust but requires the establishment of an accurate battery model [13].The intelligent estimation method does not need to understand the internal parameter changes of the battery, but it requires a large amount of data as the basis to establish a training model; the more accurate the data and the larger the training volume, the better the training effect, but the training process will be more difficult to implement [14].
5Electric buses require complex energy consumption estimation methods, which consider various parameters.Models like the Trip Energy Consumption (TEC) model [15] incorporate factors such as traction, battery thermal management, air conditioning, ambient temperature, vehicle weight, distance, and travel time.A physical model considering speed, acceleration, and passenger count has been developed [16], alongside a modified Kalman filter method for energy estimation [17].Corinaldesi et al. proposed a linear optimization model to guide charging strategies.Additionally, machine learning models have been employed for estimating the instantaneous and cumulative energy consumption of electric buses [18].
6Long short-term memory (LSTM) is an intelligent estimation method that extracts the information from the data to achieve its purpose.It is a transformation neural network, and its statistical prediction model is more powerful in terms of nonlinear mapping ability and self-learning ability [19].The LSTM model is not only limited to solving single-input single-output problems.Because of its powerful learning capability, the number of inputs and outputs can be freely chosen; single-input multiple-output, multiple-input singleoutput, and multiple-input multiple-output mappings can also be fitted; and different model structures can be chosen according to different research requirements.The SOC of an electric bus is affected by multiple parameters so the overall model is a multiple-input single-output model; therefore, the LSTM model is well suited for SOC prediction.In this paper, based on the operation data of electric buses, a data-driven energy consumption prediction method based on LSTM is proposed.Compared with other methods, the model structure is not complicated, the prediction accuracy is high, and the training process is relatively simple and convenient, which is of significance in guiding the overall scheduling of electric buses.
7The remainder of this paper is organized as follows: Section 2 is the historical bus driving data mining, Section 3 is the driving condition feature parameter extraction based on the data mining results, Section 4 introduces the LSTM model and makes the battery SOC prediction model based on the LSTM, the results are analyzed in Section 5, and finally, conclusions and future research directions are provided in Section 6.
Electric Bus Driving Condition Analysis
8The history of the bus travel points, after looking them up on Baidu Maps, revealed the car travel data for the Beijing 51 road bus history, the charging location for the Beijing world flower Wonderland Park, the line of the bus throughout a total of 29 stations, and revealed that the driving road conditions are urban road conditions in Figure 1.The scatter plot of the variation in vehicle speed with time for the battery SOC down cycle is shown in Figure 2, which shows that the bus line operation state has a strong regularity, and its operation time and operation conditions have certain rules that must be followed.Therefore, this paper starts by analyzing the characteristics of bus routes and selects the corresponding quantitative indexes and uses them as characteristic parameters to lay the foundation for the subsequent prediction research.
Data Preprocessing
9Data mining is a method that uses algorithms to extract knowledge and information hidden in the original data that people cannot see directly, but are valuable to the subsequent research content, from a huge amount of actual real data with no obvious regular features [20].
10During the driving process of the electric bus, the vehicle terminal reads the vehicle bus data in real time and collects data through a mobile network according to a certain period to transmit the data to a remote management platform.During the collection process, it is easily affected by vehicle start/stop, the surrounding environment, abnormal The scatter plot of the variation in vehicle speed with time for the battery SOC down cycle is shown in Figure 2, which shows that the bus line operation state has a strong regularity, and its operation time and operation conditions have certain rules that must be followed.Therefore, this paper starts by analyzing the characteristics of bus routes and selects the corresponding quantitative indexes and uses them as characteristic parameters to lay the foundation for the subsequent prediction research.The scatter plot of the variation in vehicle speed with time for the battery SOC down cycle is shown in Figure 2, which shows that the bus line operation state has a strong regularity, and its operation time and operation conditions have certain rules that must be followed.Therefore, this paper starts by analyzing the characteristics of bus routes and selects the corresponding quantitative indexes and uses them as characteristic parameters to lay the foundation for the subsequent prediction research.
11Data mining is a method that uses algorithms to extract knowledge and information hidden in the original data that people cannot see directly, but are valuable to the subsequent research content, from a huge amount of actual real data with no obvious regular features [20].
12During the driving process of the electric bus, the vehicle terminal reads the vehicle bus data in real time and collects data through a mobile network according to a certain period to transmit the data to a remote management platform.During the collection process, it is easily affected by vehicle start/stop, the surrounding environment, abnormal
13Data mining is a method that uses algorithms to extract knowledge and information hidden in the original data that people cannot see directly, but are valuable to the subsequent research content, from a huge amount of actual real data with no obvious regular features [20].
14During the driving process of the electric bus, the vehicle terminal reads the vehicle bus data in real time and collects data through a mobile network according to a certain period to transmit the data to a remote management platform.During the collection process, it is easily affected by vehicle start/stop, the surrounding environment, abnormal work of vehicle terminal, etc., which generate abnormal data.To ensure the accuracy of SOC prediction, abnormal data must be rejected.
15Eleven thousand rows of data were continuously extracted from the data set and plotted using Matlab 2018a software to create a scatter plot of the battery SOC values over time, as shown in Figure 3.
16World Electr.Veh.J. 2023, 14, x FOR PEER REVIEW 4 of 15 work of vehicle terminal, etc., which generate abnormal data.To ensure the accuracy of SOC prediction, abnormal data must be rejected.Eleven thousand rows of data were continuously extracted from the data set and plotted using Matlab 2018a software to create a scatter plot of the battery SOC values over time, as shown in Figure 3. From the graph, it can be found that there are many blank anomalous data points in the SOC falling segment.And the data of the SOC rising indicate that the data of stopping the charging process are collected.For this paper, because only the energy consumption prediction problem is studied, the SOC rising section data and the anomalous data where the vehicle speed jumps to 0 should be excluded.The new data set after the exclusion is re-plotted using Matlab 2018a software for the SOC scatter plot as shown in Figure 4. From the graph, it can be found that there are many blank anomalous data points in the SOC falling segment.And the data of the SOC rising indicate that the data of stopping the charging process are collected.For this paper, because only the energy consumption prediction problem is studied, the SOC rising section data and the anomalous data where the vehicle speed jumps to 0 should be excluded.The new data set after the exclusion is re-plotted using Matlab 2018a software for the SOC scatter plot as shown in Figure 4.
17World Electr.Veh.J. 2023, 14, x FOR PEER REVIEW 4 of 15 work of vehicle terminal, etc., which generate abnormal data.To ensure the accuracy of SOC prediction, abnormal data must be rejected.Eleven thousand rows of data were continuously extracted from the data set and plotted using Matlab 2018a software to create a scatter plot of the battery SOC values over time, as shown in Figure 3. From the graph, it can be found that there are many blank anomalous data points in the SOC falling segment.And the data of the SOC rising indicate that the data of stopping the charging process are collected.For this paper, because only the energy consumption prediction problem is studied, the SOC rising section data and the anomalous data where the vehicle speed jumps to 0 should be excluded.The new data set after the exclusion is re-plotted using Matlab 2018a software for the SOC scatter plot as shown in Figure 4.
Analysis of Vehicle Energy Consumption Characteristics and Driving Conditions
18The bus driving data parameters obtained from the collection are numerous and contain 40 different parameters such as time, speed, charging status, running status, gear, drive motor speed, etc., and the accuracy is generally low.Because some of the data are not related to battery power estimation, 11 parameters in Table 1 are first selected to establish the set of driving condition characteristic parameters for bus line characteristics, and the specific parameters, units, calculation methods, and other information are shown in Table 1.
19Table 1.Definition and calculation method of working condition characteristic parameters based on bus route characteristics.
20Velocity multiplied by average acceleration
21In the driving condition, the specific energy is often used as a measure of the energy consumed by the car under different driving conditions [21], and the specific energy can generally be defined as the ratio of the energy used to drive the wheels of the car to run the car over a certain distance.According to the definition, the formula for calculating specific energy is:
22where F(t) is expressed as the longitudinal driving force on the dynamics of the wheels, and x t is the total vehicle miles traveled in time t.
23Considering that urban roads consist of mostly gentle sections, the following expressions are available:
24where F air is the specific energy to overcome air resistance, F r is the specific energy to overcome rolling resistance, and F a is the specific energy to overcome acceleration resistance.The expressions of each specific energy on the right side of the equal sign are as follows:
25From the equations in Table 1, it can be concluded that there is a relationship between specific energy and driving condition characteristic parameters.Therefore, an end-element linear regression model is established for analyzing the relationship between specific energy and the driving condition characteristic parameters of the bus line.The multivariate linear regression model between the vehicle specific energy F trac and the operating characteristic parameters x 1 , x 2 , x 3 , . . .x 11 is shown in Equation ( 6):
26In order to quantify the relationship between specific energy and characteristic covariates, the correlation coefficient between them needs to be calculated.The correlation coefficient matrix is first established as follows:
27where the denoted meaning of ρ ij (i, j = 1, 2, 3 . . .n) is the correlation coefficient between the dependent variable y and the independent variable x, and
28which is calculated by the expression shown in Equation ( 8):
29where Cov(y, x) expresses the meaning of the covariance between the dependent variable y and the independent variable x. σ y is the variance of the dependent variable y and σ x is the variance of the independent variable x. ρ y,x is calculated between −1 and 1 and ρ y,x > 0 means that x is positively correlated with y; ρ y,x < 0 means that x is negatively correlated with y.When ρ y,x = −1, it means that x and y are completely negatively correlated; when ρ y,x = 0, it means that x and y are not correlated; when ρ y,x = 1, it means that x and y are completely positively correlated; the absolute value of ρ y,x is proportional to the closeness of 1 and the correlation between x and y.
Feature Parameter Extraction
30The model of the Route 51 pure electric bus is Yutong ZK6809BEVG.According to the calculation parameters mentioned in Equations ( 1)-( 5), the relevant calculation parameters of this model bus are found on the official website and in the values of Table 2. Twenty SOC decline cycles of the bus driving process were randomly selected and divided into groups of 20 rows of data for calculation using the formulae for the specific energy and driving condition characteristic parameters introduced in Section 3.1 The scatter diagram between the bus specific energy and driving condition characteristic parameters was drawn.
31Using the correlation analysis model, the correlation between the specific energy and the characteristic covariates was further quantified, the correlation coefficients between each characteristic covariate and the specific energy were calculated, and the correlation coefficients between each covariate and the specific energy were plotted as shown in Figure 5.
32The model of the Route 51 pure electric bus is Yutong ZK6809BEVG.According to the calculation parameters mentioned in Equations ( 1)-( 5), the relevant calculation parameters of this model bus are found on the official website and in the values of Table 2.
33Twenty SOC decline cycles of the bus driving process were randomly selected and divided into groups of 20 rows of data for calculation using the formulae for the specific energy and driving condition characteristic parameters introduced in Section 3.1 The scatter diagram between the bus specific energy and driving condition characteristic parameters was drawn.Using the correlation analysis model, the correlation between the specific energy and the characteristic covariates was further quantified, the correlation coefficients between each characteristic covariate and the specific energy were calculated, and the correlation coefficients between each covariate and the specific energy were plotted as shown in From Figure 6, it can be seen that the correlation coefficients of the following parameters with absolute values outweighing 0.5 are highly correlated with specific energy: 2-average acceleration, 5-velocity times acceleration variance, 6-velocity times acceleration mean, 9-acceleration standard deviation is more positively correlated with specific energy; and 8-maximum deceleration is more negatively correlated with specific energy.From Figure 6, it can be seen that the correlation coefficients of the following parameters with absolute values outweighing 0.5 are highly correlated with specific energy: 2average acceleration, 5-velocity times acceleration variance, 6-velocity times acceleration mean, 9-acceleration standard deviation is more positively correlated with specific energy; and 8-maximum deceleration is more negatively correlated with specific energy.
LSTM Model Structure
34LSTM is a special recurrent neural network RNN model that can achieve controllable adjustment of the weight coefficients [22], and its cell structure is shown in Figure 7.In Figure 7, the letters represent the following meanings: −1 -Cell unit state at moment t − 1; -Cell unit state at moment t; ̃-The state of the cell unit at the current moment; ℎ −1 -The hidden state of the cell unit at the moment t − 1; ℎ -The hidden state of the cell unit at the moment t; -The input at time t. is the forgetting gate of the cell; and ̃ together form the input gate of the cell; and and tanh together form the output gate of the cell. and tanh are the excitation functions.
LSTM-Based Battery SOC Prediction 4.1. LSTM Model Structure
35LSTM is a special recurrent neural network RNN model that can achieve controllable adjustment of the weight coefficients [22], and its cell structure is shown in Figure 7. From Figure 6, it can be seen that the correlation coefficients of the following parameters with absolute values outweighing 0.5 are highly correlated with specific energy: 2average acceleration, 5-velocity times acceleration variance, 6-velocity times acceleration mean, 9-acceleration standard deviation is more positively correlated with specific energy; and 8-maximum deceleration is more negatively correlated with specific energy.
LSTM Model Structure
36LSTM is a special recurrent neural network RNN model that can achieve controllable adjustment of the weight coefficients [22], and its cell structure is shown in Figure 7.In Figure 7, the letters represent the following meanings: −1 -Cell unit state at moment t − 1; -Cell unit state at moment t; ̃-The state of the cell unit at the current moment; ℎ −1 -The hidden state of the cell unit at the moment t − 1; ℎ -The hidden state of the cell unit at the moment t; -The input at time t. is the forgetting gate of the cell; and ̃ together form the input gate of the cell; and and tanh together form the output gate of the cell. and tanh are the excitation functions.In Figure 7, the letters represent the following meanings: C t−1 -Cell unit state at moment t − 1; C t -Cell unit state at moment t; ∼ C t -The state of the cell unit at the current moment; h t−1 -The hidden state of the cell unit at the moment t − 1; h t -The hidden state of the cell unit at the moment t; x t -The input at time t.f t is the forgetting gate of the cell; i t and ∼ C t together form the input gate of the cell; and o t and tanh together form the output gate of the cell.σ and tanh are the excitation functions.
37From Figure 7, it can be seen that the LSTM structure is not a single neural network layer, but it is improved into four neural network layers with a tight connection and rich structure, which is conducive to improving the processing ability of information, controlling and protecting the cell state by introducing three gate structures: input gate, output gate, and forgetting gate, making it possible to avoid the problem of long-term information dependence and remember useful information from very early moments without paying too much.Compared to the RNN model, this newly proposed model not only strengthens the processing ability of the network for information but also solves the problems such as abnormal gradient changes [23].
Battery SOC Prediction Process
38The general flow of this project for battery SOC prediction using the LSTM network is shown in Figure 8.
39From Figure 7, it can be seen that the LSTM structure is not a single neural netwo layer, but it is improved into four neural network layers with a tight connection and r structure, which is conducive to improving the processing ability of information, contr ling and protecting the cell state by introducing three gate structures: input gate, outp gate, and forgetting gate, making it possible to avoid the problem of long-term inf mation dependence and remember useful information from very early moments witho paying too much.Compared to the RNN model, this newly proposed model not on strengthens the processing ability of the network for information but also solves the pro lems such as abnormal gradient changes [23].
40The general flow of this project for battery SOC prediction using the LSTM netwo is shown in Figure 8.In the original data, different types of feature parametric data have different va ranges, resulting in large differences in the weights assigned during the training proce resulting in the neural network model not converging [24].To solve this problem, the dividual variables must be standardized to eliminate the effect of inconsistency in ord to enable the neural network to achieve better convergence and improve the traini speed [25].
41where is the maximum original data value; is the minimum original d value.
42Battery SOC prediction is a nonlinear regression process where the goal is to ma the predicted value approximately the same as the actual value.The purpose of mo training is to minimize the loss function.The mean squared error loss function is set the loss function of the model in the prediction model established in this topic, and calculation formula is shown in Equation (10):
43where is the amount of sample data; is the true value of ; and ̂ is estimated value of obtained after model training.
44In this paper, the Adam optimization algorithm is used, and this optimizati method not only saves training time but also avoids the occurrence of the loss functi falling into local optimum.
45The steps of Adam's optimization algorithm are as follows.
46Step 1: Calculating gradients:
47Step 2: Updating the first-order moment estimates:
48In Equation ( 12), 1 is the exponential decay rate, and it generally takes 1 = 0.9.In the original data, different types of feature parametric data have different value ranges, resulting in large differences in the weights assigned during the training process, resulting in the neural network model not converging [24].To solve this problem, the individual variables must be standardized to eliminate the effect of inconsistency in order to enable the neural network to achieve better convergence and improve the training speed [25].
49where x max is the maximum original data value; x min is the minimum original data value.Battery SOC prediction is a nonlinear regression process where the goal is to make the predicted value approximately the same as the actual value.The purpose of model training is to minimize the loss function.The mean squared error loss function is set as the loss function of the model in the prediction model established in this topic, and its calculation formula is shown in Equation (10):
50where k is the amount of sample data; SOC i is the true value of SOC; and ŜOC i is the estimated value of SOC obtained after model training.
51In this paper, the Adam optimization algorithm is used, and this optimization method not only saves training time but also avoids the occurrence of the loss function falling into local optimum.
52The steps of Adam's optimization algorithm are as follows.
53Step 1: Calculating gradients:
54Step 2: Updating the first-order moment estimates:
55In Equation ( 12), β 1 is the exponential decay rate, and it generally takes β 1 = 0.9.
56Step 3: Updating second-order moment estimation:
57In Equation ( 13), β 2 is the exponential decay rate, which is generally taken as β 2 = 0.999.
58Step 4: Correction of bias in first-order moment estimates:
59Step 5: Correction of bias in second-order moment estimation:
60Step 6: Updated parameters:
61In Equation ( 16), α is the learning rate and ε = 10 −8 .It is seen that the first-order moments and second-order moments participate collaboratively in adjusting the parameter θ.
Hyperparameter Selection
62In the process of network model construction, parameters such as the number of hidden layers and the number of neurons in hidden layers are related to the network structure; parameters such as the dimensionality of input and output quantities and the time step are related to the data; and parameters such as the learning rate, training data batch size, and loss function are related to training learning.Changing the size of these parameters affects the accuracy of training and thus the final prediction results, so reasonable hyperparameters need to be selected.
63(
1) Number of hidden neurons
64The number of neurons in the hidden layer is usually linearly related to the predictive ability of the network model and the complexity of the network training; the more hidden neurons, the better the learning ability of the model, but at the same time, it leads to a more complex model and a longer training time.The input layer of the LSTM model to be built in this topic is related to the dimensionality of the input data, while the output layer has only battery SOC values, hence the number of nodes in the output layer is one.
65(2) Batch size
66The batch size of training determines how much data are input to the network model for training each time.The larger the batch size, the slower the adjustment of the data weighting coefficients; and although the training time can be reduced, the training results will be relatively poor.Therefore, an appropriate batch size is needed to improve efficiency during training.
67(
3) Training cycle
68The training period is the number of iterations of the data, and choosing a suitable training period is beneficial to obtain prediction results with high accuracy.If the training period is too long, it will lead to a prolonged training time of the model, the over-learning phenomenon, and the over-fitting phenomenon; this must be avoided in order to excessively reduce the error of the training set, not affect the generality of the test set, and avoid the deterioration of the results.According to the multiple training runs, it was found that the loss function changes very little after 6000 iterations; in order to improve efficiency, this paper uses 6000 as the model training period and increases the number of hidden layers to 8000 instead.
69(4) Learning Rate By controlling the size of the learning rate, we can control how fast or slow the gradient update is.Too large a learning rate will cause large fluctuations in the gradient update, thus making it impossible to find the global optimal solution and making the final prediction results produce large errors.The model built in this paper uses the Adam optimization algorithm, which can adjust the learning rate size by itself, so it only needs to choose an initial learning rate, and the learning rate l r = 0.01 is chosen in this paper.
Model Building
70From the original data analysis, it can be concluded that vehicle speed is highly correlated with SOC and is easy to measure; battery voltage and current are correlated with battery status; drive motor speed is correlated with vehicle operation and battery power consumption; and SOC at the previous moment must have an impact on current SOC.Therefore, the vehicle speed, total voltage, total current, drive motor speed, and SOC value of the previous moment are selected as the input of the model, and the number of nodes in the input layer is five.The battery SOC value is taken as the output, and the number of nodes in the output layer is one.
71Using PyCharm2021, we build a multiple-input single-output battery SOC prediction model under the Python 3.8 platform.The specific steps are as follows:
72Step 1: The call model mainly uses library functions such as Pytorch and pandas.
73Step 2: A long-and short-term memory network class is defined based on the input parameters, an LSTM network is constructed, and the hyperparameters of the model are initialized.
74Step 3: The training set and test set data are imported, and the input quantity contains vehicle speed, voltage, motor speed, current, and the SOC value of the previous moment; the output quantity is SOC, and data normalization is performed.
75Step 4: The loss function is defined, the loop is set, and training is ended when the loss function is less than 10 −3 , otherwise training continues for the set period.
76Step 5: The data are converted into tensor-type data, the hyperparameters of the model are set, and training is started.
77Step 6: After the training is completed, the test set data are put into the model for prediction, and the predicted values are plotted against the actual values.
78Step 7: The model is trained and predicted several times by adjusting hyperparameters such as the number of hidden layers and the number of neuron nodes to compare the accuracy of the prediction results.
Analysis of Simulation Results
79In order to make an intuitive evaluation of the prediction results, the mean absolute error and root mean square error of the predicted and actual values of SOC are selected as evaluation indicators in this paper, and the calculation formula is as follows:
80Different prediction results are obtained by adjusting the hyperparameters of the model.The adjusted hyperparameters are shown in Table 3: Corresponding to the parameter settings in Table 3 above, the predicted results for each number are plotted in Figure 9.In Figure 9, the blue line represents the actual battery SOC value and the red line represents the predicted SOC value.From the Figure 9, it can be found that the prediction model has a large deviation in the results in the early stage because the SOC decline cycle start data do not strictly start with the battery in a full-charge state, resulting in less accurate prediction results.Because the output SOC is a step-down type of data, the improper selection of hyperparameters may lead to a good fit of the training data but an overfitting during testing.
81The errors of the prediction results are shown in Table 4 for different choices of hyperparameters, using Equations ( 17) and (18).4 above, it can be seen that in model No. 1, the number of fewer neurons in one hidden layer is not completely learned for the training data, and the loss function is larger and cannot find the optimal solution, so the prediction results are poorer.In models 2 to 4, the loss function decreases by appropriately increasing the number of network In Figure 9, the blue line represents the actual battery SOC value and the red line represents the predicted SOC value.From the Figure 9, it can be found that the prediction model has a large deviation in the results in the early stage because the SOC decline cycle start data do not strictly start with the battery in a full-charge state, resulting in less accurate prediction results.Because the output SOC is a step-down type of data, the improper selection of hyperparameters may lead to a good fit of the training data but an overfitting during testing.
82The errors of the prediction results are shown in Table 4 for different choices of hyperparameters, using Equations ( 17) and (18).From Table 4 above, it can be seen that in model No. 1, the number of fewer neurons in one hidden layer is not completely learned for the training data, and the loss function is larger and cannot find the optimal solution, so the prediction results are poorer.In models 2 to 4, the loss function decreases by appropriately increasing the number of network layers and the number of neurons; and the prediction results are more accurate as the batch size decreases, but the efficiency decreases.
83The results show that the prediction of battery SOC can be achieved using the constructed LSTM prediction model, and according to adjusting the hyperparameters of the model, the prediction results of the model can be made more accurate and suitable for solving the SOC estimation problem.
Conclusions
84In this paper, the collected electric bus driving data are processed to remove abnormal and useless data for the study based on the working condition characteristics.Only the SOC declining cycle data are used to find the correlation between the specific energy of the vehicle and other parameters and extract the feature parameters.Based on the LSTM network, the SOC prediction model is built and the prediction results with good accuracy are obtained by adjusting the model hyperparameters, which proves the practicality of LSTM for battery SOC estimation.Due to the limitation of the dataset in this paper, the training set is not rich enough in data.In the next research step, the training set data can be enriched to improve the accuracy of prediction results and add the single-input single-output LSTM network model, which takes the battery SOC value as the input and the driving mileage as the output of the model, to predict the driving mileage of the vehicle and act as an indication for the driver's travel.Subsequently, the charging and discharging frequency of multiple electric buses can be scheduled based on the present SOC prediction model to guide the charging, so that the buses can operate more efficiently and save operating costs.
Figure 1 .
85Figure 1.Route 51 bus route map.
Figure 2 .
86Figure 2. Variation in bus speed with time during the bus journey.
Figure 1 .
87Figure 1.Route 51 bus route map.
15 Figure 1 .
88Figure 1.Route 51 bus route map.
Figure 2 .
89Figure 2. Variation in bus speed with time during the bus journey.
90Figure 2. Variation in bus speed with time during the bus journey.
Figure 3 .
91Figure 3. Scatter plot of SOC without removing abnormal data.
Figure 4 .
92Figure 4. Scatter plot of SOC with abnormal data removed.
Figure 3 .
93Figure 3. Scatter plot of SOC without removing abnormal data.
94Figure 3. Scatter plot of SOC without removing abnormal data.
Figure 4 .
95Figure 4. Scatter plot of SOC with abnormal data removed.Figure 4. Scatter plot of SOC with abnormal data removed.
96Figure 4. Scatter plot of SOC with abnormal data removed.Figure 4. Scatter plot of SOC with abnormal data removed.
Figure 5 .Figure 5 .Figure 5 .
97Figure 5. Cont.
Figure 6 .
98Figure 6.Correlation coefficient between each characteristic parameter and specific energy.
Figure 7 .
99Figure 7. LSTM unit structure.
Figure 6 .
100Figure 6.Correlation coefficient between each characteristic parameter and specific energy.
101World Electr.Veh.J. 2023, 14, x FOR PEER REVIEW 9 of 15 Acceleration; (h) Maximum Deceleration; (i) Acceleration Standard Deviation; (j) Average Speed of Drive Motor; (k) Average Torque of Drive motor.
102Figure 6.Correlation coefficient between each characteristic parameter and specific energy.
Figure 7 .
103Figure 7. LSTM unit structure.
104Figure 7. LSTM unit structure.
Figure 8 .
105Figure 8. Battery SOC prediction model based on LSTM network.
106Figure 8. Battery SOC prediction model based on LSTM network.
Figure 9 .
107Figure 9. Graph of SOC prediction results with different hyperparameters selected: (a) No. 1 hyperparameter prediction results; (b) No. 2 hyperparameter prediction results; (c) No. 3 hyperparameter prediction results; (d) No. 4 hyperparameter prediction results.
108Figure 9. Graph of SOC prediction results with different hyperparameters selected: (a) No. 1 hyperparameter prediction results; (b) No. 2 hyperparameter prediction results; (c) No. 3 hyperparameter prediction results; (d) No. 4 hyperparameter prediction results.
Table 2 .
109The relevant parameters and values in the specific energy calculation formula.
110The relevant parameters and values in the specific energy calculation formula.
Table 3 .
111Selection of model hyperparameters.Corresponding to the parameter settings in Table3above, the predicted results for each number are plotted in Figure9.
Table 4 .
112Errors in prediction results for different hyperparameters.
113Errors in prediction results for different hyperparameters.
참고문헌 23건
- Data Mining: Data Mining Concepts and Techniques 2013 10.1109/icmira.2013.45
- A Double-Scale, Particle-Filtering, Energy State Prediction Algorithm for Lithium-Ion Batteries IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tie.2017.2733475
- Neural Probabilistic Forecasting of Symbolic Sequences With Long Short-Term Memory Journal of Dynamic Systems Measurement and Control · ASM International · 2018 10.1115/1.4039281
- A Review of Recurrent Neural Networks: LSTM Cells and Network Architectures Neural Computation · The MIT Press · 2019 10.1162/neco_a_01199
- A comprehensive review of the key technologies for pure electric vehicles Energy · Elsevier BV · 2019 10.1016/j.energy.2019.06.077
- State of Charge Prediction Algorithm of Lithium-Ion Battery Based on PSO-SVR Cross Validation IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2964852
- Lithium-ion battery state of charge and parameters joint estimation using cubature Kalman filter and particle filter Journal of Power Electronics · Springer Science+Business Media · 2019 10.1007/s43236-019-00023-4
- A comprehensive review of battery modeling and state estimation approaches for advanced battery management systems Renewable and Sustainable Energy Reviews · Elsevier BV · 2020 10.1016/j.rser.2020.110015
- Impact of Different Charging Strategies for Electric Vehicles in an Austrian Office Site Energies · Multidisciplinary Digital Publishing Institute · 2020 10.3390/en13225858
- Adaptive Battery State-of-Charge Estimation Method for Electric Vehicle Battery Management System 2020 10.1109/isocc50952.2020.9332950
- Current Trends for State-of-Charge (SoC) Estimation in Lithium-Ion Battery Electric Vehicles Energies · Multidisciplinary Digital Publishing Institute · 2021 10.3390/en14113284
- Data-driven estimation of energy consumption for electric bus under real-world driving conditions Transportation Research Part D Transport and Environment · Elsevier BV · 2021 10.1016/j.trd.2021.102969
- Effects analysis on active equalization control of lithium-ion batteries based on intelligent estimation of the state-of-charge Energy · Elsevier BV · 2021 10.1016/j.energy.2021.121822
- Characteristics of Battery Management Systems of Electric Vehicles with Consideration of the Active and Passive Cell Balancing Process World Electric Vehicle Journal · Multidisciplinary Digital Publishing Institute · 2021 10.3390/wevj12030120
- Review on the Battery Model and SOC Estimation Method Processes · Multidisciplinary Digital Publishing Institute · 2021 10.3390/pr9091685
- A review of electric bus vehicles research topics – Methods and trends Renewable and Sustainable Energy Reviews · Elsevier BV · 2022 10.1016/j.rser.2022.112211
- A Data-Driven Approach for Electric Bus Energy Consumption Estimation IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tits.2022.3152679
- Trip energy consumption estimation for electric buses Communications in Transportation Research · Elsevier BV · 2022 10.1016/j.commtr.2022.100069
- A review of deep learning approach to predicting the state of health and state of charge of lithium-ion batteries Journal of Energy Chemistry · Elsevier BV · 2022 10.1016/j.jechem.2022.06.049
- Online identification of battery model parameters and joint state of charge and state of health estimation using dual particle filter algorithms International Journal of Energy Research · Wiley · 2022 10.1002/er.8541
- A dynamic-inner LSTM prediction method for key alarm variables forecasting in chemical process Chinese Journal of Chemical Engineering · Elsevier BV · 2022 10.1016/j.cjche.2022.08.024
- SOC prediction of Volterra adaptive filter based on chaotic time series AIP Advances · American Institute of Physics · 2022 10.1063/5.0113098
- Design strategy and comprehensive performance assessment towards Zn anode for alkaline rechargeable batteries Journal of Energy Chemistry · Elsevier BV · 2023 10.1016/j.jechem.2023.03.049