Abstract

In order to solve the problem that the model-based State of Charge (SOC) estimation method is too dependent on the model parameters in the SOC estimation of electric vehicles, an improved genetic algorithm is proposed in this paper. The method has the advantages of being able to quickly determine the search range, reducing the probability of falling into local optimum, and having high recognition accuracy. Then we can realize online dynamic identification of power battery model parameters and improve the accuracy of model parameter identification. In addition, considering the complex application environment and operating conditions of electric vehicles, an SOC estimation method based on improved genetic algorithm and unscented particle filter (improved GA-UPF) is proposed. And we compare the improved GA-UPF algorithm with the least square unscented particle filter (LS-UPF) and improved GA unscented Kalman filter (improved GA-UKF) algorithm. The comparison results show that the improved GA-UPF algorithm proposed in this paper has higher estimation accuracy and better stability. It also reflects the practicability and accuracy of the improved GA parameter identification algorithm proposed in this paper.

1. Introduction

Power battery is one of the core components of electric vehicles. Accurate estimation and management of its key state is the core issue of electric vehicle development. State of charge (SOC) is one of the key states, which has a great significance for energy-optimized management and healthy life management of electric vehicles. Accurate estimation of SOC can maximize the utilization rate of power battery, extend battery life, and ultimately reduce power battery cost.

In recent years, a series of online estimation methods of battery SOC are proposed for the SOC estimation of electric vehicles [127], including the ampere hour integral method [57], the neural network method [1922], the filter method based on the battery model [813], and so on. The calculation of the ampere-time integral method is small and it is easy to implement, but its estimation error is large because of the accumulated error. The neural network method is easy to build an intelligent model, but it requires a large amount of experimental data to train the neural network model, and the amount of calculation is large. In order to overcome the effects of cumulative errors and excessive computational problems, a series of the filter method based on the battery model have been proposed [1418]. Piller et al. [8] proposed the Kalman filter (KF) method for SOC estimation, which has closed-loop correction structure. However, the KF is a linear filter; the battery model is a nonlinear model; it will produce a large error. In order to get better results, scholars proposed a lot of methods based on the extended Kalman filter (EKF) [10, 1315, 26] and the unscented Kalman filter (UKF) [1618, 24]. Wang et al. [26] proposed a dual extended Kalman filter method for the SOC estimation. Plett [14, 15, 18] proposed EKF and UKF for SOC and battery model parameter estimation. Wang [17] proposed an improved unscented Kalman filter for the SOC estimation. However, the accuracy of EKF and UKF both are not sufficiently enough to be used in engineering applications. Their accuracy is very dependent on the accuracy of the battery model parameters. Additionally, their noise distribution must be the Gaussian distribution, which is more deviating from the real noise environment.

According the above analysis of mainstream SOC estimation methods, the special background of power battery application in electric vehicle field, and its engineering requirements, this paper proposes an SOC estimation method based on improved GA-UPF algorithm. The algorithm innovations and advantages are as follows.(1)We propose an optimization strategy based on least squares method to initialize GA initial population. This strategy is used to make the GA algorithm quickly and accurately converge and reduce the computational complexity of GA algorithm and its probability of falling into local optimum.(2)We propose an improved GA algorithm that is more suitable for nonlinear complex system identification of the power battery model. The algorithm can reduce the complexity of the algorithm and obtain more accurate model parameters. Finally, the algorithm can improve the estimation accuracy of SOC.(3)We analyze the accuracy, complexity, dynamic characteristics, and other factors of many power battery models, such as the Rint model, the Thevenin model, the Partnership for a New Generation of Vehicles (PNGV) model [23, 25], the General nonlinear (GNL) model, and so on. Then we choose the PNGV model, which is more able to characterize the internal changes in the battery charging and discharging process and has practical physical significance.(4)We consider the measurement data of the power battery with complex noise, abnormal points, and severe fluctuations, and then use the unscented particle filter (UPF) algorithm for SOC estimation. The advantages of UPF are that it has strong robustness, computational accuracy, and better suppression effect on colored noise, which is more in line with actual engineering requirements.

The rest of paper is organized as follows. In Section 2, we introduce the power battery model and the parameter identification method based on the improved GA algorithm. In Section 3, we introduce an SOC estimation algorithm based on improved GA-UPF. In Section 4, simulations and comparison tests based on the PNGV model are presented to verify the superiority of the proposed algorithm. In Section 5, the improved GA-UPF algorithm proposed in this paper is summarized.

2. Power Battery Equivalent Model and Model Parameter Identification

2.1. PNGV Model

The PNGV model was proposed for the 2001 US New Generation Vehicle Cooperation Program to model power batteries in the automotive field [23]. The PNGV model has the advantages of low processor requirements, easy implementation, and being suitable for describing the dynamic characteristics of the battery. It is beneficial to the analysis of battery characteristics and is more suitable for the modeling of lithium ion batteries. Therefore, considering the complexity and accuracy of the model, the PNGV model is adopted and displayed. The model structure is shown in Figure 1.

In the figure, Uocv is the open circuit voltage, is the cell capacitance, is the cell internal resistance, is the cell polarized resistance, is the cell polarized capacitance, is the cell terminal voltage, is the circuit current, is the terminal voltage across the capacitance , and is the terminal voltage across the capacitance .

According to the PNGV model shown in Figure 1, the measurement equation for the PNGV battery model can be expressed bywhere is the open circuit voltage at different SOC values and different temperatures, is the derivation operation of the voltage , and is the derivation operation of the voltage .

Then we discrete (1), it can be expressed bywhere is the terminal voltage at time t, is the open circuit voltage related to SOCt and the temperature value at time t, and are the terminal voltages across and in the PNGV model at time t, is the simple period, is the measured current of the power battery at the time t, and is the parameter vector to be identified in the PNGV model.

2.2. Battery Model Parameters Identification Based on Improved GA Algorithm

The traditional GA algorithm performs parameter identification by searching globally to find the optimal solution and does not require difficult mathematical model expressions [28]. Therefore, it is suitable for the parameter identification of nonstationary process characterization models, such as electric vehicle power battery model, which has nonlinear characteristics, time-varying parameters, complex environmental noise, sharp fluctuations in collected data, and more transient spikes. However, it has a long search time and fall into local optimum easily because of the characteristics of its global search. Aiming at the problem, an improved GA search strategy is proposed. In this strategy, we use the least squares method to initialize the search range at the initial moment of the algorithm. It can effectively shorten the search time, avoid falling into local optimum, and reduce the complexity of the algorithm. The flow chart of improved GA algorithm is shown in Figure 2, where is the current iterations of the improved GA algorithm and G is the maximum number of iterations of the improved GA algorithm. The improved GA algorithm is calculated as follows.

Step 1. Search range initialization based on LS algorithm [25]. We can obtain (3) by transforming (2):where , , , , are measurable values. Based on (3), we can get the vector expression by LS algorithm. Equation (4) is as follows:where .

The expression of obtained by (4) is as follows:

Then, we can use the voltage values and the current values measured at the previous L (L is the time window of the least squares algorithm) time to obtain the vector . The equation is as follows:where .

According to (5), Parat can be calculated as the initial parameter value of the PNGV model. Then, we use Parat as the center point and r as the radius in the high-dimensional space (the spatial dimension is equal to the dimension of the PNGV model parameters) to determine (the initial search range) of the improved GA algorithm. Equation (7) is as follows:where is a constant that.

Step 2. We use a random uniform distribution to generate the initial population. The equation is as follows:where , n is the number of populations, is the k-th individual value of the initial population at time t, is the random vector.

Step 3. The individuals fitness value needs to be calculated. The equation for calculating individual fitness is as follows [28]:where , , G is the maximum number of iterations, is the fitness value of the g-th generation of the k-th individual at time t, is an estimated value of the battery terminal voltage at time t of the PNGV model calculated from the k-th individual of the g-th generation.

Step 4. Genetic manipulation is as follows:
(a) Select operation: we use the roulette strategy to select N individuals [28].
(b) Cross operation: we generate . If , the k-th individual is selected for cross operation. The crossover equation is as follows:where is the a-th individual at time t after the cross operation, is the b-th individual at time t after the cross operation, is the random number generated between , , and is the crossover probability.
(c) Mutation operation: We generate . If , the k-th individual is selected for mutate operation. The equation for the mutation operation is as follows:where , and are the random number between , , G, , and Pmut is the mutation probability.

3. Power Battery SOC Estimation Algorithm Based on Improved GA-UPF

The power battery has strong noise and complicated driving conditions in electric vehicle application. The collected battery data contains a lot of noise and abnormal points; the data changes drastically and there are many peak transient values. Thus, we want the SOC estimation method to have strong robustness, antinoise ability and self-correction capability. Based on the above considerations, the UPF algorithm is used for SOC estimation. However, the estimation accuracy of the filtering algorithm depends on the accuracy of the power battery model. Thus, we propose a power battery SOC estimation method based on the improved GA-UPF algorithm, which makes it more suitable for the estimation of the power battery SOC in the electric vehicle field. The flow chart is shown in Figure 3:

Set basic parameters: several control parameters should be set, including number of particles N, number of population n, maximum number of genetic iterations G, the crossover probability , the mutation probability , point search range , state variable scale parameter , and covariance precision parameter .

Determine the initial SOC by open circuit voltage method: this part is only calculated once when the electric vehicle battery management system (BMS) is used for the first time. At this time, the BMS is powered on, but the power battery main relay is not closed and the power battery is left standing long enough. Therefore, we can believe that equals Uocv.

Calculate the SOC of the first m time: we use the ampere-time integral method: where is the time, , , TSOH is the time when the power battery is terminated, is the battery capacity factor associated with and (positive at discharge and negative at charge) at time , is rated capacity, is the simple period.

Initialize the particle set and point set of the UPF algorithm: when , we generate by a random uniform distribution; each particle has a weight of 1/; is the number of particles.

Then we build for each particle; the equation is as follows:where , is the dimension of the state quantity of the state equation, is the scale when generating the σ point set.

Parameter identification of the PNGV model based on improved GA algorithm at time t: this part of the content has been introduced in Section 2.2.

SOC estimation based on the UPF algorithm: we obtained the state-space measurement equations of the UPF algorithm based on (2) and (12). is the state variable at time t, is the measurable variable at time . The estimation steps are as follows.

(a) We perform UT transformation on the σ point set generated by (13) and obtain the set of particles at time t [9, 15, 17]. The equations are as follows:where is the σ set of the ith particle at time t, is the weight vector of the σ set, , , β is the covariance precision; we can improve variance accuracy by adjusting β; is the weight vector of the covariance of the σ set; is the model terminal voltage vector according to set.

(b) We calculate the weight values for each particle and normalize them. The equation is as follows:

(c) We calculate the SOC at time t. The equation is as follows:

(d) The set is updated by (13).

4. Simulations and Experimental Results

In order to verify the practicability of the SOC estimation method based on the improved GA-UPF algorithm, we initialize the power battery model of DSPACE with the internal parameters of a certain 18650 battery of LG and then construct the power battery simulation model used for algorithm verification. This model can accurately characterize the dynamic characteristics and thermal response characteristics of the power battery to a certain extent. In this section, we need to verify and compare the model identification accuracy of the improved GA algorithm and analyze the accuracy of the improved GA-UPF algorithm in the noise environment. Therefore, it is considered appropriate to use the battery model.

Based on the construction of the battery model, this paper selects the current data collected by a certain electric vehicle of Brilliance in the condition of New European Driving Cycle (NEDC) working condition as the battery model input. Then we get the power battery SOC, battery terminal voltage, and temperature and other internal parameters through the battery model. The battery model is shown in Figure 4.

The generated battery data is shown in Figure 5.

4.1. Analysis of Battery Parameter Identification Results Based on Improved GA Algorithm

We use the real current data under NEDC conditions and the terminal voltage data generated according to Figure 4 and preform the parameter identification of SOC in the range of [0.3, 0.9] under the PNGV battery model by the improved GA algorithm [25]. Then we observe the variation of the model parameters and compare it with the description of the corresponding parameter characteristics in the LG battery manual to verify the effectiveness of the improved GA algorithm in model parameter identification. The identification results are shown in Table 1.

The identification result shows that at the temperature of 26°C, as the SOC of the power battery decreases, the ohmic internal resistance will increase, the polarization internal resistance gradually increases, and the battery capacitance gradually decreases. These changes are consistent with the change in the electrical characteristics of the battery. It can reflect that the improved GA algorithm proposed in this paper has certain effectiveness in model identification.

4.2. Algorithm Verification Analysis under Noiseless Conditions
4.2.1. Improved GA-UPF Algorithm Accuracy Verification

Firstly, in the noiseless environment, the improved GA-UPF algorithm is used to estimate the SOC to verify its effectiveness. At the same time, we compare it with LS-UPF algorithm and improved GA-UKF algorithm. The verification results are shown in Figure 6.

The basic parameters: , , , .8, .01, , , .

In Figure 6(a), the solid line is the estimated result of the SOC by the improved GA-UPF algorithm. The black line is the estimation result of the SOC by the improved GA-UKF algorithm, the green line is the estimation result of the SOC by the LS-UPF algorithm, and the red line is the SOC reference values. Comparison result shows that the proposed SOC estimation method has higher estimation accuracy, and the estimation result is closer to the SOC reference value. In Figure 6(b), the solid line is the error value of the SOC estimation result based on the improved GA-UPF algorithm, and the result is convergent and relatively stable. The black line indicates the error of the SOC estimation result based on the improved GA-UKF algorithm, and the error fluctuation is larger than solid line. The green line indicates the error of the SOC estimation result based on the LS-UPF algorithm, and the error fluctuation is much larger than the other two algorithms. It reflects that for nonlinear time-varying systems such as power batteries, the accuracy of model parameter identification based on LS algorithm is poor, which directly affects the accuracy of SOC estimation. It also reflects the accuracy of the improved GA-UPF algorithm proposed in this paper.

4.2.2. Improved GA-UPF Algorithm Robustness Verification

In order to verify the robustness of the improved GA-UPF algorithm, the following experiment is performed: the initial SOC is set to 20% and . We use a relatively large error to simulate the strong interference factors such as outliers in the actual operating conditions of electric vehicles and verify the self-correcting robustness of the algorithm. The verification results are shown in Figure 7.

The result in Figure 7 shows that the improved GA-UPF algorithm can converge to the vicinity of the real SOC within 10 iterations when there is a large deviation in the initial SOC. The error is 3% after 10 iterations and finally can converge to 1%. It is proved that the improved GA-UPF algorithm proposed in this paper has great robustness in SOC estimation of power battery. It can converge to true value quickly under strong anomaly disturbance and has strong self-correction ability. Therefore, it is suitable for the SOC estimation problem of power battery with complicated and varied operating conditions.

4.2.3. Improved GA-UPF Algorithm Stability Verification

Considering that the traditional GA algorithm has a certain randomness problem, we propose the idea of using the LS algorithm to determine the initial search range. We carry out the following verification: under the same driving conditions, the LS-UPF algorithm, the improved GA-UKF algorithm, and the improved GA-UPF algorithm are used to perform multiple experiments on the same data sequence. The experimental results are shown in Table 2.

It can be seen from Table 2 that the improved GA-UPF algorithm proposed in this paper maintains a relatively stable absolute error and root mean square error in the process of multiple verifications and has good stability. In addition, compared with the SOC estimation method based on LS-UPF and improved GA-UKF algorithm, the improved GA-UPF algorithm always has smaller error; that is, the maximum absolute error is about 0.5% and the root mean square error is about 0.2%. The maximum absolute error of the LS-UPF algorithm is about 2.5%, and the root mean square error fluctuates around 0.5%. The maximum absolute error of the LS-UPF algorithm is about 3.34%, and the root mean square error fluctuates around 1.5%. It is proved that the improved GA-UPF algorithm proposed in this paper has better stability and accuracy.

4.2.4. Improved GA-UPF Algorithm Time Complexity Analysis

We know that both GA and UPF algorithm are the optimization, and SOC estimation is a process that needs to be done in real time. Therefore, the algorithm operation efficiency must be guaranteed. We use the least squares method to reduce the initial search range of the GA algorithm. Then, the efficiency of the GA algorithm is improved. With the improved efficiency of the GA algorithm, the time complexity of the improved GA-UPF algorithm proposed in this paper is also reduced. We analyze the time complexity of improving the GA-UPF algorithm. The analysis results are shown in Table 3.

It can be seen from Table 3 that the improved GA-UPF algorithm has a single execution time of 46.3 ms and a total execution time of 138.9 ms. The LS-UPF algorithm has a single execution time of 44.1 ms and the improved GA-UKF algorithm has a single execution time of 41.7ms. By comparison, we can see that the improved GA-UPF algorithm has a 2.2ms increase in single run time compared to the LS-UPF algorithm and an increase of 4.6ms over the single run time of the improved GA-UKF algorithm. The growth rate is 5% and 10%, respectively. The extent of this increase is within our acceptance. Additionally, the current sensor on our electric car has a sampling period of 50 ms. Therefore, the improved GA-UPF algorithm can meet engineering needs.

4.3. Improved GA-UPF Algorithm Verification under Noisy Environment
4.3.1. Algorithm Precision Verification in Gaussian Noise Environment

We know that in the actual driving conditions, the vehicle will inevitably encounter a variety of noise interference. If the algorithm is verified only in the noiseless environment, the noise immunity of the algorithm cannot be examined. Therefore, we verify the performance of the improved GA-UPF algorithm in a noisy environment. We add 30 dB of Gaussian white noise data to the current and 60 dB of Gaussian white noise to the voltage. The noise signal is shown in Figure 8. Then we use noise data to perform SOC estimation based on the improved GA-UPF algorithm. The estimated results are shown in Figure 9.

The basic parameters: , , , .8, .01, , , .

It can be shown in Figure 9 that the improved GA-UPF algorithm proposed in this paper still has good estimation accuracy, and the error is relatively stable. However, the accuracy of the improved GA-UKF algorithm drops to about 4.5%. And the estimation accuracy of LS-UPF algorithm is seriously deviated; especially in 2000-2500 iterations, the SOC estimation error of the LS-UPF algorithm reaches 12%. Such error is not allowed in engineering applications.

In order to verify the SOC estimation accuracy of the improved GA-UPF algorithm under different noise environments, we added 60 dB of Gaussian white noise to the current data and 80 dB of Gaussian white noise to the voltage data. The data with noise is shown in Figure 10. Then we use the data of Figure 10 to estimate the SOC. Then we compare it with the SOC estimation results obtained by the battery data of Figure 8. The comparison results are shown in Figure 11.

The result shows that the “solid line” SOC estimation results representing strong noise are basically consistent with the “dotted line” SOC estimation results representing weak noise, and there is no significant accuracy deviation due to the difference in noise intensity. Therefore, it can be proved that the proposed SOC estimation method based on the improved GA-UPF algorithm has strong antinoise ability. Furthermore, it can be reflected from one side that the improved GA algorithm proposed in this paper has good antinoise ability and can accurately identify the parameters of PNGV model under noisy environment. It effectively reduces the adverse effects of noise on SOC estimation in engineering applications.

4.3.2. Algorithmic Accuracy Verification in Non-Gaussian Noise Environment

Considering the complex and variable noise environment of electric vehicles in engineering applications, we verify the SOC estimation performance of the improved GA-UPF algorithm in the colored noise environment. The data for adding colored noise is shown in Figure 12. The SOC estimation results are shown in Figure 13.

The result shows that the improved GA-UPF algorithm also has good SOC estimation accuracy under colored noise. The maximum absolute error of the SOC estimation is 0.7%, and the convergence efficiency is excellent. It can be proved that the improved GA-UPF algorithm proposed in this paper also has strong antinoise ability in the colored noise environment. It is suitable for engineering applications in electric vehicles with complex noise environments. It also reflects the antinoise ability of the improved GA algorithm in parameter identification.

4.3.3. Improved GA-UPF Algorithm Stability Verification under Noisy Environment

In the environment of Gaussian white noise and colored noise, the stability of the estimation accuracy of the improved GA-UPF algorithm is verified. The result is shown in Table 4.

The result shows that under different white noise intensities, the SOC estimation based on the improved GA-UPF algorithm shows good stability under multiple verifications, and the maximum absolute error is less than 2.5%, and the root mean square error is about 0.6%. In the colored noise environment, the algorithm also shows good stability, the maximum absolute error is about 2%, and the root mean square error is about 0.9%. It is proved that the improved GA-UPF algorithm proposed in this paper still has good stability under complex noise environment, is suitable for engineering applications, and has certain practicability. However, it can also be seen that the SOC estimation error will increase with the increase of the data noise intensity. It is also explained from one side that the noise reduction process is necessary for any algorithm when the noise intensity is too high.

5. Conclusions

In this paper, an online identification method for power battery model parameters based on improved GA algorithm is proposed to solve the problem that SOC estimation accuracy is highly dependent on model parameters. In addition, the driving conditions of electric vehicles are complex and variable, which makes the collected current signals have a lot of noise, abnormal interference signals, and spike transient signals. Therefore, this paper proposes a power battery SOC estimation method that combines improved GA algorithm with UPF. The advantages of this algorithm are as follows.(1)The improved GA algorithm is more suitable for online identification of power battery parameters with nonlinear and complex time-varying characteristics. It can converge quickly and reduce the probability of falling into local optimum. It can meet engineering requirements and improve the accuracy of model parameter identification.(2)The improved GA algorithm combined with the UPF algorithm is used for SOC online estimation of electric vehicle power battery, which has strong robustness, can effectively suppress various types of noise and outlier interference, and makes the algorithm have better stability.

In the simulation and verification section, the stability, noise immunity, robustness, and estimation accuracy of the SOC estimation method based on the improved GA-UPF algorithm are verified by comparison with the LS-UPF algorithm and improved GA-UKF algorithm. The simulation results demonstrate the effectiveness and practicability of the improved GA-UPF algorithm.

Data Availability

The data used in this paper comes from the experimental data of the OEM. It is currently a trade secret and should not be disclosed.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported in part by Tianjin Province Science and Technology projects (Grant no. 18JCQNJC77200) and National key research and development plan project (Grant no. 2017YFB1103003, 2016YFB1100501).