#### Abstract

For lithium battery, which is widely utilized as energy storage system in electric vehicles (EVs), accurate estimating of the battery parameters and state of charge (SOC) has a significant effect on the prediction of energy power, the estimation of remaining mileage, and the extension of usage life. This paper develops an improved ant lion optimizer (IALO) which introduces the chaotic mapping theory into the initialization and random walk processes to improve the population homogeneity and ergodicity. After the elite (best) individual is obtained, the individual mutant operator is conducted on the elite individual to further exploit the area around elite and avoid local optimum. Then the battery model parameters are optimized by IALO algorithm. As for the SOC estimation, unscented Kalman filter (UKF) is a common algorithm for SOC estimation. However, a disadvantage of UKF is that the noise information is always unknown, and it is usually tuned manually by “trial-and-error” method which is irregular and time-consuming. In this paper, noise information is optimized by IALO algorithm. The singular value decomposition (SVD) which is utilized in the process of unscented transformation to solve the problem of the covariance matrix may lose positive definiteness. The experiment results verify that the developed IALO algorithm has superior performance of battery model parameters estimation. After the noise information is optimized by IALO, the UKF can estimate the SOC accurately and the maximum errors rate is less than 1%.

#### 1. Introduction

With the increasingly serious problems of global energy crisis and environmental pollution, electric vehicles (EVs) have experienced explosive development and drawn increasing attention from institute and industry in the last decade [1–3]. The energy storage system is the most important part in EVs which is often comprised by different kinds of batteries, including lead-acid batteries, nickel-hydrogen batteries, and secondary lithium batteries. Lithium battery is the most popular energy source nowadays and occupies more than 90% of the market share due to the characteristic of high energy density, high efficiency, no memory effect, long cycle life, and environment-friendly performance [4–6]. Due to the flammability of liquid electrolyte and the lithium dendrite growth which may puncture battery separator and cause short-circuit, lithium battery may degrade rapidly even thermal runaway under abuse condition, like overcharge or over discharge. Therefore, lithium battery should be operated stable and safe, which is achieved by advanced Battery Management System (BMS) [7]. One of the most important functions of BMS is state of charge (SOC) estimation, which can improve the control efficiency of energy and extend the usage life of the batteries [8]. However, SOC cannot be obtained directly by measuring and must be deduced from other measurable signals, like voltage and current. Also, several factors can influence the accuracy of SOC estimation and should be thoroughly investigated [9].

Many studies have focused on the research of SOC estimation strategies. The most widely used strategy is coulomb counting which is based on load current integration [10–13]. However, this strategy is open-loop without feedback and may easily cause cumulative calculation error due to inaccurate initial SOC value and stochastic disturbances. The other one popular technology is intelligent algorithm control strategies including neural network and machine learning. This method is not interested in the battery internal state and only cares about the relationship between the output and input which can extract from experimental data set [14]. However, this method needs a larger amount of experimental data for algorithms training and always is time-consuming [15–18]. Another dominating method is state estimate algorithms based on battery model, like equivalent circuit models (ECMs) and electrochemical models [19–26]. This method is often utilized in BMS due to the easy implementation, high accuracy, and high efficiency. As for the battery models, ECMs are more suitable for online deployment than electrochemical models since ECMs utilize electrical parameters like current, voltage, and temperature, which are easier to obtain online than the parameters used in electrochemical models (e.g., electrolyte concentration and diffusion coefficients). Among the ECMs model-based methods, the two widely used SOC estimation techniques are extended Kalman filter (EKF) and unscented Kalman filter (UKF) [27–32]. However, the noise information (covariance matrixes) of the state space should be known to apply EKF and UKF algorithms, which is often obtained manually by “trial-and-error” method and this may be difficult and time-consuming. Some researches proposed adaptive technique to calculate the covariance matrixes based on the estimation error [28, 31]. However, this method may cause the covariance matrix becoming singular/negative and shut down the estimation process. Another important aspect of SOC estimation is the accuracy of battery model. The battery model parameters are always obtained by recursive least square (RLS) algorithm [7]. However, the results of RLS are always fluctuation and highly affected by system noise.

This paper introduces nature-inspired metaheuristic algorithm to find the optimal value of battery model parameters and the covariance matrixes. The key features of metaheuristic algorithms are randomness and the utilization of stochastic operators when searching in the solution spaces [33]. Some of the most popular metaheuristic algorithms contain particle swarm optimization (PSO) [34], simulated annealing algorithm (SA) [35], ant colony optimization (ACO) [36], genetic algorithm (GA) [37], firefly algorithm [38], and BAT Search Algorithm [39]. Ant lion optimizer (ALO), proposed by Mirjalili, is imitating the unique predation behavior of ant lions to find the optimal value [40, 41]. The performance of ALO in solving optimization problem has been vindicated and only a few parameters are needed. E.S. Ali uses the ALO to find the optimal positions and determine the sizing of Distributed Generation (DG) in various distribution systems [42]. However, ALO has a drawback of early prematurity and local optimum, especially in solving complicated problems [43]. To solving this problem, different methods have been combined with ALO to enhance the performance. Tian applied PSO after the solution space has been searched by ALO, which can combine the search ability of ALO and PSO [43]. Zhongqiang Wu applied chaotic sequence for generating the initial position of population (ants and antlions) to increase the uniformity and ergodicity [44].

Several improvements are introduced into ALO algorithm to enhance the optimization performance. Chaotic mapping theory is introduced in the initialization and random walk processes. Then after the elite (best) individual is found by ALO in one iteration, individual mutant operator based on chaotic mapping is conducted on every elements of the elite individual, which can further exploit the region around elite. Based on the proposed improved ant lion optimization (IALO), the parameters of battery model are optimized by IALO. Also, the noise covariance matrixes in UKF are optimized by IALO. Another small improvement of this paper is that singular value decomposition (SVD) is utilized in UKF to solve the problem of the covariance matrix which may become singular and lose positive definiteness.

The remainder of the paper is arranged as follows: Section 2 introduces the battery model, the parameters estimation method, and the SOC estimation algorithm. Section 3 gives a brief review of the antlion algorithm. In Section 4, the improved ALO is proposed. Section 5 describes the experimental results and discussion. Section 6 provides the conclusion.

#### 2. Battery Model and SOC Estimate Algorithm

##### 2.1. Battery Model

Equivalent circuit model, electrochemical model, and black box model are three widely used models for modeling sophisticated battery behaviors. The three models have their own characteristic in complexity, accuracy, and computational cost [45]. Considering the hardware limits and real-time control of EVs, including enough accuracy and reasonable complexity, equivalent circuit model is widely used in EVs application. Many kinds of equivalent circuit models have been studied in the past. Twelve equivalent circuit models have been studied in [46] which include zero-state hysteresis, one-state hysteresis model, self-correcting (ESC) model, first-order RC model, second-order RC model, third-order RC model, and so on. Their experiments and comparison results demonstrated that, considering both model accuracy and model robustness, the first-order RC model, which is also called Thevenin model, is preferred for lithium nickel-manganese-cobalt oxide (LiNMC) cells. Therefore, the Thevenin battery model is adopted in this paper and demonstrated in Figure 1. The battery model consists of a voltage component which represents the open circuit voltage (OCV), a resistor component , which denote the ohmic resistance, and a RC network component, which describes the concentration polarization and diffusion processes during battery operation, the resistance element denotes the polarization resistance, and the capacitance denotes the polarization capacitance. The electrical characteristic of the Thevenin model is calculated aswhere is the load current (assume greater than 0 for discharging) and represents the terminal voltage. is the polarization voltage over the polarization resistance, and the represents the OCV and can be modeled with function which is a simple electrochemical model [7], and can be calculated aswhere are multinomial coefficients and they need to be fitted based on experimental data and* z *denotes the state of charge (SOC) of battery.

##### 2.2. Parameters Identification Method

For iteration calculation purpose, the discrete form of state space equations can be written aswhere is fixed sample interval and assumed to be 1s in this study. is the time constant which equals .* k* is an integer variable which denotes the discrete index. is the* k*th sampling time of load current. and are the terminal voltage and open circuit voltage at* k*th sampling moment, respectively. is the polarization voltage at* k*th sampling moment.

The load current and the terminal voltage are directly measured. The open circuit voltage is calculated based on SOC which is integral of load current from a known initial SOC value. The model parameters, including , , and , are identified by the improved ant lion optimization (IALO) algorithm which will be discussed in Sections 3 and 4. The optimization objective function is to minimize the quadratic sum of the voltage estimation error.

##### 2.3. SOC Estimation Based on Singular Value Decomposition (SVD) UKF

After the parameters of battery model are identified by IALO, SOC is estimated by UKF (unscented Kalman filter). The state space equations of battery model are nonlinear. According the widely used EKF SOC estimation algorithm, the nonlinear state equations must be linearization, and the often-used linearization method is based on Taylor expansion which may lead into truncation error. The UKF algorithm does not need to linearize the model and apply nonlinear unscented transformation (UT) to generate sigma points from the original state. The sigma points are calculated based on known mean and covariance and then substituted into the state function to obtain the new sigma points, then updating mean and covariance matrixes by the statistical characteristics of new sigma points.

The SOC denotes the proportion of the residual charge in battery to the rated capacity. The discrete form of SOC function is calculated bywhere is the SOC at* k*th sampling moment, is the rated capacity, and is the coulomb efficiency and related to current rate, battery chemistry, and temperature. For simplicity, the coulomb efficiency is set as .

To utilize the UKF algorithm for SOC estimation, the nonlinear battery dynamic state equation and measurement equation are described aswhere denotes the state vector and the system input vector is the measured load current . The output vector is the terminal voltage , and represent process noise signal and measurement noise signal, and their covariance matrixes are and , respectively.

The very important part of UKF nonlinear unscented transformation (UT) is calculated as follows:where is the sigma points, and are the weight coefficients of mean and covariance, respectively,* n *is dimensional of the state vector , is a scale adjustment parameter which can adjust the distribution of sigma points and enhance accuracy, and are set to 1 and 2 in this paper, and is normally set to 0 or 3-*n.* is the Cholesky decomposition of covariance matrix .

There is a problem existing in Cholesky decomposition, namely, if the covariance matrix is singular, the Cholesky decomposition cannot be carried out, and the iterative calculation would be stopped. Moreover, the Cholesky decomposition is very sensitive to the calculation error, and the finite word length or rounding error in the computational process will often make the covariance matrix lose its symmetry or positive definiteness, thus resulting in the problem of numerical instability of the filtering and reducing the accuracy of the filtering algorithm. In order to solve this problem, we introduce singular value decomposition (SVD) of matrix into the generating of sigma points, which can enhance the numerical stability of iterative updating state covariance matrix and decompose covariance matrix even morbidity occurs in matrix.

According to the singular value decomposition theory, a matrix can be decomposed by orthogonal matrix and aswhere is the eigenvalue of matrix and called singular value, . When matrix is symmetric positive definite matrix, the SVD of matrix is rewritten as

The SVD of covariance matrix is calculated aswhere is covariance matrix of last iteration* k-*1th and then the sigma points at* k*th iteration are calculated by

The detailed SVDUKF algorithm process is shown in Table 1. In the SVDUKF algorithm process, the process noise covariance , and measurement noise covariance matrix are often considered as constant value. The and are always decided by trial-and-error procedure which is arbitrary and time-consuming. In this study, the improved ant lion optimization (IALO) algorithm is utilized to search the optimal value of and which will be discussed in Sections 3 and 4. The optimization objective function is to minimize the quadratic sum of the voltage estimation error and SOC estimation error with different weights.

#### 3. Introduction of Ant Lion Optimization Algorithm

Ant lion optimizer (ALO), a recently proposed heuristics nature-inspired algorithm, imitates the foraging behavior of ant lion’s larvae [40]. The ant lions belong to the genus of Myrmeleontidae, carnivorous, and feed on other insects. The larvae of ant lions live under dry ground and create funnel-shaped traps in sandy soil to trap prey. After the trap is built, the ant lion larvae wait the prey (mainly ants) by hiding underneath the bottom of the trap. In natural environment, ants move randomly and casually; once ants move into pits, the ant lion will try to catch ants. However, ants usually may try to creep out the trap. In this situation, ant lions will cast sands towards the edge of the trap to make the trap side steeper and slide the ant down to the bottom of the trap and grab it. After an ant is seized, ant lion will pull the prey under the sand and eat, then throw out the leftovers, and rebuilt the pit for the next prey. The ant lion denotes the optimized solution of the optimization problem and the ant stand for the feasible solution. By catching the ant which has higher fitness, the ant lion can update its position and fitness by the information of ant.

In the search space, there are many ant lions and ants, whose positions are located randomly. To imitate the interaction between ant lions and ants, ants will move over the search space with random walk, which may go through or around the traps. The superior individual/ant lion will build a larger and sharper pit and catch more ants. The random walk steps of ants are influenced by ant lions and elite (best) ant lion. Ants will update their position based on ant lions and elite ant lion to ensure the diversity and optimization capability of the algorithm.

During the optimization, the algorithm abides the following conditions: ants are wandering over the solution space with random walks, and the random walks are influenced by the position of traps of ant lions; pits built by ant lions are proportional to the fitness of themselves, and the better fitness (the bigger pit) has the high probability to catch ants; the step of random walk is accordingly reduced when ant is sliding to the ant lion which is hiding under the bottom of the pit; if the fitness of an ant is better than that of an ant lion, this signifies that the ant is seized and eaten by the ant lion, and the ant lion changes itself with the position of the ant and growing fitter; after each hunting, an ant lion changes its position near the position where ant is caught and set up a new pit to improve its possibility of catching prey.

The random walk, which is chosen for modeling ants’ stochastically moving behavior, is obtained aswhere is the function of cumulative sum, is the biggest number of iterations, denotes the current iteration, and represents a stochastic function calculated bywhere is a random number between (0,1), which subject to uniform distribution.

The number of both ants and ant lions is N, and the dimension of position is D. The positions of ants are recorded in matrix ; represents the value of dimension of position value of the ant; A fitness function is utilized to evaluate each ant and matrix is utilized to record the fitness value of all ants; stores the position of every antlion and represents the value of dimension of position of the antlion; is utilized to evaluate each antlion and matrix is utilized to store the fitness value of all ant lions.

Random walk of ants is based on (12). Ant changes its position by random walk at each iteration during optimization. Considering the search space has its own boundary, in order to keep the position of ant after random walk remain in the search space, the following equation is utilized to normalize and calculate the new position:where is random walk step of* i*th ant; is the normalized random walk displacement; and are the lowest and highest of random walk displacement of* i*th ant; and indicate the lowest and highest of random walk displacement of* i*th ant at current iteration.

As mentioned before, ant lions’ position can influence the random walks of ants. This influence can be mathematically modeled by following equations:where denotes the position of selected* j*th ant lion at* t*th iteration and and indicate the lowest and highest of random walk displacement of all ants in the* t*th iteration. The selected antlion is determined by roulette wheel method. Ant lions throw sands out the trap after they perceive that an ant fall in the pit and slide ant towards the pit center. To model this mechanism, the region of ants’ random walks is shrunk adaptively as the increasing of iteration and calculated by following equations:where* I *is a ration, and shown as , t denotes the current iteration, T denotes the biggest number of iteration, and w is an index varying with the current iteration (w =2 if , w=3 if , w=4 if , w=5 if , and w=6 if ).

During optimization, the elite is set as the best ant lion and updated every iteration if better ant lion shows up. And the random walk of ants is also influenced by the elite ant lion. Therefore, it is assumed that the random walks of every ant are over the selected ant lion and the elite antlion and calculated bywhere denotes iteration, denotes the random walk over the selected ant lion, denotes the random walk over the elite ant lion, and denotes updated position of* i*th ant. After random walk, the fitness is calculated. Comparing the fitness of ant lion and ant, assign better one to ant lion, which can also be regarded as the ant which is hunted. The whole procedure of ALO algorithm is demonstrated in Figure 2.

#### 4. Improvements on Ant Lion Optimizer

In the ALO algorithms optimization procedure, the updating of ants’ positions is based on the random walk over the chosen ant lion and the elite ant lion. Save the greatest agent (ant) as elite in each iteration. These can make ALO have low calculating cost, high efficiency, and high convergence rate. However, the ALO has the problem of premature convergence and local optimum when it is used for solving complex optimization problems. Several improvements are inserted into ALO to deal with these problems and further enhance the global optimization ability and accuracy.

##### 4.1. Chaotic Map for Position Initialization and Random Walk

Random function has been used in many optimization algorithms. Chaos function has the same character of long-scale indeterminism and irregular property with random function. Chaos can help orders arise from disorder, which is like many biologistic systems inspired optimization algorithms like GA, PSO, and ALO. Considering these common features between chaos function and optimization algorithms, it is natural to think about combining these theories to enhance the capability of the optimizer.

In this paper, to improve the population homogeneity and ergodicity and skip local optima, chaos function is utilized to generate random walk sequences. The random walk, which models the ants’ stochastic movement, is calculated by iterating the steps of chaotic map from a random initial value.

Logistic map, a well-known chaotic map, has been used in many papers. Logistic map is based on polynomial model, which is a classical evidence of demonstrating how a very simple nonlinear dynamic system can generate complicated behavior [47, 48]. Logistic map is defined as follows:where is the* n*th chaotic value and* n *denotes the iteration number. is the control parameters of chaotic map. When , the system is in chaotic status. However, the logistic map demonstrates some shortages such as blank windows, stable windows, narrow key space, and uneven distribution of sequences. To obtain better chaotic behavior and larger key space and overcome this weakness, a 3D intertwining logistic map is adopted in this paper [49, 50] and can be defined by where and are control parameters and , , , and . The intertwining logistic map has better chaotic behavior and more even distribution, without the shortages of blank windows, stable windows. To more clearly demonstrate the uniformity and ergodicity of intertwining logistic map, the chaos sequence is generated by parameter set , , , , , , and , as shown in Figure 3, and the first 100 iterations are removed to avoid the transient effect. From this figure, the chaotic function is efficient and random and chaotic search is easier to get rid of local minimum comparing with other stochastic optimization algorithms [51].

The chaotic value belongs to the interval (0, 1); it needs scale to the solution space by the following equation:where is the updated position after random walk; and are the lowest and biggest value of search space, respectively.

##### 4.2. Individual Mutation Based Chaotic Mapping

After the elite individual is obtained, to further explore of the solution space and exploit of the small region around elite, chaotic mapping is used to mutate every dimension of the elite ant lion with a new value. This approach can enhance the stochastic property and increase the variety of the individual. The process is summarized below.

*Initialization*. The obtained elite individual is assumed as ; denotes the dimension and is set as 3 in this paper. Set the maximum number of chaotic mutations as .

*Start Iteration*. Convert every element of elite individual to a normalized value in the range (0, 1).where and are maximum and minimum of the* j*th element, respectively.

*Outer Loop *. Generate new chaotic value through 3D intertwining logistic map theory as follows:

*Inner Loop *. Invert the chaotic value into the actual position as follows:

Replacing with , the new individual is .

Calculate the fitness and replace with when is better than .

*End Inner Loop*. Form the new individual . Then comparing the fitness of and , assign the bigger one to .

*End Outer Loop*. By means of individual mutant with chaotic mapping theory, there is better probability for the elite individual to skip over the local optimum and find a greater solution.

According to the above analysis of improvements on the ant lion optimization algorithm, the improved ant lion optimizer (IALO) procedure is demonstrated in Figure 4. In the following section, IALO algorithm will be used to optimize the value of battery model parameters. The state noise covariance matrix Q and measurement noise covariance matrix R values are also optimized by IALO algorithm.

#### 5. Experiment and Results Discussion

In this section, to validate the performance of the developed IALO-SVDUKF SOC estimation method, experiments on LiNiMnCoO2/Graphite lithium-ion cells were conducted under DST, FUDS, US06, and BJDST, respectively. Section 5.1 presents a brief introduction of the experiments. The results are discussed in Section 5.2.

##### 5.1. Experiment Detail

The test bench includes an Arbin BT2000 battery tester, a thermal chamber with temperature controllable, a PC with Arbin Software to control the test system, and monitor and storage test data. 18,650 LiNiMnCoO2/Graphite (NMC) lithium-ion cells are tested in the experiment and the basic information is shown in Table 2. The experiment ambient temperature is set to 25°C by using the thermal chamber. Sampling interval is set to 1s during the test. The test results are available at https://web.calce.umd.edu/batteries/data.htm.

The pulse-current tests are conducted to obtain the OCV-SOC function. The cell is first fully charged to 100% SOC by C/2 constant current charge phase and 4.2V constant voltage charge phase with a C/20 cut-off current. Second, the cell is discharged an amount of charge (10% SOC) with C/2, followed by 2 hours relaxation period to achieve equilibrium state inside the cell. The pulse-current, relaxation period is repeated every 10% SOC until reaching the lower cut-off voltage. Then, the cell is charged by following the similar steps until reaching the upper cut-off voltage: a constant voltage charge with a C/20 cut-off current is followed to make sure the cell is fully charged. Finally, the data from charge phase and discharge phase are averaged and nonlinear least square (LS) is applied to identify parameters of OCV-SOC function which is calculated by (2) and the results are given in Table 3 and Figure 5. As can be seen from the figure, the OCV function can follow the experiment data accurately.

Several widely used cycle conditions are conducted in the experiment, including DST (dynamic stress test) [52], FUDS (Federal Urban Driving Schedule) [53], BJDST (Beijing Dynamic Stress Test) [54], and US06 (US-6 Highway Driving Schedule) [55]. DST is the simplest condition and is utilized for identifying the battery parameters and the noise information. To validate the battery model and SOC estimation algorithm, other more complicated cycle conditions are utilized for SOC estimation.

##### 5.2. Results and Discussion

*(**1) Certification of the Performance of IALO*. Six widely used functions are selected to certify the optimization ability of IALO algorithm and compared with Genetic Algorithm (GA), particle swarm algorithm (PSO), and ALO algorithms. The test functions are shown in Table 4. Griewank function has many local extremum and multiple peaks. Ackley function has many local extremums around global extremum points in a narrow area. The global optimum of Rosenbrock function is located in a smooth, long, and narrow parabolic valley. Rastrigin function has many widespread local extremums. Branin function has 3 global minimum points and surrounded by many local extremums. Six-Hump Camelback function has six local extremums, and two of them are global optima. The parameters of GA algorithm are as follows: the population size is 100, the crossover probability is 0.7, and the mutation probability is 0.3. The parameters of PSO algorithm are as follows: the learning coefficients c1 and c2 are 1.5, and the population size is 200. The parameters of ALO algorithm are as follows: the number of search agents (ants) is 40, which is also the number of ant lions. The parameters of IALO algorithm are as follows: the number of ants or ant lions is the same as that of ALO, and the parameters of intertwining logistic map are , , , and .

The performance of optimal value search of GA, PSO, ALO, and IALO algorithm is demonstrated in Table 5. In the table, optimum value is the best optimal value that the algorithm can find. Convergence iteration represents the iteration when the optimum value keeps stable and there is no longer change. Convergence time is the time cost for the algorithm to find the optimal value. As shown in Table 5, four algorithms show different performance on different functions. GA algorithm and PSO algorithm have the similar performance and can only find the global value of Rastrigin function. When handling other functions, GA and PSO algorithms are stuck in local extremums with early iterations and cannot jump out local extremums. Due to the structural property, the convergence time of PSO is a little bit of higher than that of GA algorithms. ALO algorithm finds the global optimal value of all the test functions but Branin function with only a little deviation. IALO algorithm explores the solution spaces thoroughly and finds the global optimum values of all of the test function. Comparing with ALO algorithm, IALO algorithm can find the global value by less iteration and less computation time and show superior search ability and fast convergence property. In comparison, IALO algorithm has the best optimization performance among all the algorithms.

*(**2) Parameter Identification*. The model parameters are optimized by the proposed IALO algorithm. The initial population is . The fitness of the individual is defined as follows:where* N* is the time length of the experiment data, denotes the measured terminal voltage at* h*th time, and is the estimated terminal voltage at* h*th time calculated by the corresponding individual (battery model parameters). The maximum iteration of IALO is set to 500, and iteration stops when the fitness of elite individual does not change in 10 continuous iterations.

The results of parameter identification are shown in Figure 6. As can be seen from the figure, the fitness convergence curves show that the ALO algorithm has early prematurity phenomenon and may fall in local optimal. On the contrary, the proposed improved ALO algorithm can further explore the solution space and find better solution. Comparing the conventions used battery parameters identification methods, recursive least square (RLS) algorithm, ALO and IALO can find the optimal solution in 50 iterations, while RLS needs more than 500 iterations to reach the parameter values. Also, there are fluctuations in the results of RLS, which is adverse to the optimizing process. The results of ALO and IALO are more stable and beneficial for optimization. The final identified parameters are shown in Table 6. The estimated terminal voltage is shown in Figure 7. The root mean square error (RMSE) of voltage estimation error by IALO algorithm is the smallest and equal to 0.0079 which is much smaller than the normal working range of voltage (2.5V-4.2V). These verify that the parameters obtained by IALO optimization algorithm can fit the measurement data quite well.

**(a)**

**(b)**

**(c)**

**(d)**

**(a)**

**(b)**

*(**3) SOC Estimation*. After the battery model parameters are obtained, the proposed SVDUKF is utilized for SOC estimation. However, the process noise covariance matrix Q and the measurement noise covariance matrix R are always unknown and usually tuned by “trial-and-error” strategy manually by choosing random or experiential values, which may be very difficult, time-consuming, and unreliable. To solving this problem, the proposed IALO algorithm is applied to search the optimal value for Q and R.

In UKF observer, Q and R matrixes are defined as diagonal and positive. In this paper, Q is matrix and R is matrix. Then the initial population is set as

The fitness of the individual is defined as follows:where is the weight of voltage and SOC estimation error, respectively, and and in this paper.* N* is the time length of the experiment data, denotes the measured terminal voltage at* h*th time, denotes the estimated terminal voltage at* h*th time, and denotes the true SOC which is obtained by calculating the integral of current over time via the high accuracy current sensors of the battery test system and the precision control initial SOC. denotes the estimated SOC based on the corresponding individual (diagonal element of Q and R matrixes). The maximum iteration of IALO is set to 500, and iteration stops when the fitness of elite individual does not change in 10 continuous iterations. Then the first two elements of the optimal results are assigned to the covariance matrixes Q and the third element of the optimal results is assigned to the covariance matrixes R. Based on the optimal Q and R and the former obtained battery model, the SVDUKF is conducted for the SOC estimation via DST. For comparison, the UKF and EKF with arbitrarily tuning parameters are also applied for SOC estimation. The estimation results are demonstrated in Figure 8 and Table 7. From the results, the proposed IALO-SVDUKF algorithm can obtain precise SOC estimation and the RMSE is nearly 10 times smaller than that of UKF and 30 times smaller than that of EKF, and the maximum error rate is smaller than 1%, which can certify that the IALO algorithm can explore and exploit the solution space thoroughly and find the better solution quickly and effectively and is labor-saving. Also, the terminal voltage estimation of three methods is comparable with each other and the maximum of the error is 2 orders of magnitude smaller than the normal range of battery voltage (2.5V-4.2V) and the maximum error rate is less than 0.5%.

To further validate the performance of IALO algorithm, the battery model parameters and the noise covariance matrixes are adopted to estimate the battery SOC under different dynamic conditions. The estimation results via FUDDS, US06, and BJDST are shown in Figures 9–11, similarly, comparing with UKF and EKF. The RMSEs of SOC and voltage estimation are shown in Table 8.

It is clearly shown that, under FUDS cycle condition, with the parameters and noise covariance matrixes identified by IALO algorithm, SVDUKF can obtain more than 30 times smaller SOC estimation RMSE comparing with UKF and EKF which are using arbitrary noise covariance matrixes. Under other more complicated and fluctuated cycle condition, like US06 and BJDST, IALO-SVDUKF algorithm can still achieve nearly 4 times smaller SOC estimation RMSE. As for the terminal voltage estimation, the developed algorithm can acquire small RMSE which is less than that of UKF algorithm. EKF algorithm obtains the smallest voltage estimation RMSE but the largest SOC estimation RMSE. In the EV application, BMS is more concerned about SOC estimation. Therefore, the proposed algorithm can obtain the optimal value of the covariance matrix Q and R and then estimate SOC with high-degree precision, which is more preferable for EV and BMS application.

#### 6. Conclusion

As a critical part of EV BMS algorithms, accurate SOC estimation and battery model can guarantee a precise control of battery inner state, lengthen the battery usage life, and reduce mileage anxiety. The widely used SOC estimation methods including EKF and UKF algorithms have the drawbacks of that the prior knowledge of noise covariance matrixes, which are often selected manually by “trial-and-error” method and are arbitrary and time-consuming.

This paper developed an improved ant lion optimization (IALO) algorithm to identify the battery model parameters and noise covariance matrixes. The IALO algorithm is based on a recently developed heuristics search method, namely, ant lion optimization (ALO) algorithm. To overcome the drawbacks of ALO, including early convergence and local optimum trapping, the chaotic mapping is utilized for generating the initial position of population and the random walk sequences to ensure the population homogeneity and ergodicity. Another improvement is the individual mutant which transfers each element of the elite ant individual according chaotic sequences generated by intertwining logistic map, to jump out local extremum and thoroughly explore the solution space.

To validate the performance of developed IALO algorithm for battery model parameters identification and SOC estimation, systematic experiments are conducted on NMC cells over different dynamic conditions. The results verify that the developed algorithm can obtain optimal battery model parameters in only 50 iterations. The accuracy of SOC estimation is less than 1% maximum error rate. The terminal voltage estimation is also desirable with less than 0.5% maximum error rate. Therefore, the proposed IALO algorithm has superior performance and can achieve fast and reliable results. Future work will be concentrated on online application of the IALO for SOC estimation.

#### Nomenclature

LiNMC: | Lithium nickel-manganese-cobalt oxide |

EVs: | Electric vehicles |

SOC: | State of charge |

ALO: | Ant lion optimizer |

IALO: | Improved ant lion optimizer |

UKF: | Unscented Kalman filter |

EKF: | Extended Kalman filtering |

SVD: | Singular value decomposition |

BMS: | Battery Management System |

ECMs: | Equivalent circuit models |

RLS: | Recursive least square |

PSO: | Particle swarm optimization |

SA: | Simulated annealing |

GA: | Genetic algorithm |

DG: | Distributed Generation |

UT: | Unscented transformation |

DST: | Dynamic stress test |

FUDS: | Federal Urban Driving Schedule |

BJDST: | Beijing Dynamic Stress Test |

US06: | US-6 Highway Driving Schedule |

: | Open circuit voltage |

: | Ohmic resistance |

: | Polarization resistance |

: | Polarization capacitance |

: | Load current |

: | Terminal voltage |

: | Polarization voltage over the polarization resistance |

: | Multinomial coefficients |

: | Sample interval |

: | Time constant |

: | The SOC at th sampling moment |

: | Rated capacity |

: | The coulomb efficiency |

: | Process noise signal |

: | Measurement noise signal |

: | Process noise covariance matrix |

: | Measurement noise covariance matrix |

: | Sigma points |

: | Random walk over the chosen ant lion |

: | Random walk over the elite ant lion |

: | Updated position of ith ant |

: | th chaotic value |

: | Weight coefficients of mean |

: | Weight coefficients of covariance |

: | Covariance matrix |

: | Scale adjustment parameter |

: | Scale adjustment parameter |

: | Scale adjustment parameter |

: | Output sigma points |

: | Kalman gain |

: | Random walk sequences |

: | Biggest number of iterations |

r(t): | A stochastic function |

N: | The number of ants and ant lions |

D: | The dimension of position |

: | The positions matrix of ants |

: | The value of th dimension of position value of the th ant |

: | Fitness function of ant |

: | Fitness value matrix of ants |

: | Position matrix of antlion |

: | The value of th dimension of position of the th antlion |

: | Fitness function of antlion |

: | Fitness value matrix of ant lions |

: | Normalized random walk displacement |

: | Lowest random walk displacement of ith ant |

: | Highest random walk displacement of ith ant |

: | The lowest of random walk displacement of th ant at current iteration |

: | The highest of random walk displacement of th ant at current iteration |

: | The lowest of random walk displacement of all ant at current iteration |

: | The highest of random walk displacement of all ant at current iteration |

: | Ration of the shrinking of random region |

: | Index varying with the current iteration |

: | Elite individual |

: | New individual |

: | New individual. |

#### Data Availability

The data used to support the findings of this study have been uploaded to website (https://web.calce.umd.edu/batteries/data.htm#type3) which can be downloaded freely.

#### Conflicts of Interest

The authors declare no conflicts of interest.

#### Acknowledgments

This research was funded by the National Key R&D Program of China, 2017YFC0803904, China Postdoctoral Science Foundation, 2018T111006 and 2017M613034, Postdoctoral Science Foundation of Shaanxi Province, 2017BSHEDZZ36, Shaanxi Province Industrial Innovation Chain Project, 2018ZDCXL-GY-05-03-01, Shaanxi Provincial Key Research and Development Plan Project, 2018ZDXM-GY-082, and Shaanxi Innovative Talents Promotion Plan Project, 2018KJXX-005.