Next Article in Journal
Temporal Resolution of Acoustic Process Emissions for Monitoring Joint Gap Formation in Laser Beam Butt Welding
Previous Article in Journal
The Association between BMI, Days Spent in Hospital, Blood Loss, Surgery Time and Polytrauma Pelvic Fracture—A Retrospective Analysis of 76 Patients
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

State of Charge Estimation for Power Battery Using Improved Extended Kalman Filter Method Based on Neural Network

1
National Center for Applied Mathematics in Chongqing, Chongqing Normal University, Chongqing 401331, China
2
School of Mathematical Sciences, Chongqing Normal University, Chongqing 401331, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(18), 10547; https://doi.org/10.3390/app131810547
Submission received: 15 August 2023 / Revised: 15 September 2023 / Accepted: 18 September 2023 / Published: 21 September 2023

Abstract

:
In order to enhance the accuracy of the traditional extended Kalman filter (EKF) algorithm in the estimation of the state of charge (SoC) of power batteries, we first derived the state space equation and measurement equation of lithium power batteries based on the Thevenin battery model and the modified Ampere-Hour integral algorithm. Then, the basic principles of EKF, backpropagation neural networks (BPNNs), and a biogeography-based optimization (BBO) algorithm were analyzed, and the arc curve mobility model was used to improve the global search ability of the BBO algorithm. By combining these three algorithms, this paper proposes a BP neural network method based on the BBO algorithm. This method uses the BBO algorithm to optimize the incipient weight and threshold of the BP neural network and uses this improved neural network to modify the estimated value of the extended Kalman filter algorithm (BBOBP-EKF). Finally, the BBOBP-EKF algorithm, the extended Kalman filter algorithm based on the BP neural network (BP-EKF), and the EKF algorithm are used to estimate the error value of the SOC of a power battery, and according to the experimental data, it was confirmed that the proposed BBOBP-EKF algorithm has been improved compared to other algorithms with respect to each error index term, in which the maximum error is 1% less than that of the BP-EKF algorithm and 2.4% less than that of the EKF algorithm, the minimum error is also the smallest, and the estimation accuracy is improved compared to the traditional algorithms.

1. Introduction

The recent problems with energy and the degradation of the environment have posed significant difficulties for individuals. The current rapid development of electric vehicles (EVs) not only effectively reduces the pressure on oil resources but also reduces the harm noise and air pollution inflict on people. As the key component of an electric vehicle, a power battery is not only the energy source of an electric vehicle but also an important energy storage device, which enormously influences the safety as well as performance of electric vehicles. In accordance with formula (1), the state of charge (SoC) of a power battery is the proportion between the battery’s remaining capacity and its maximum capacity under certain conditions. Accurate battery estimates are a vital factor in ensuring battery performance, enhancing service safety and extending service life according to the SoC [1,2].
S o C = Q t Q × 100 %
In the equation above, Q t denotes the capacity of a battery at time t , and Q denotes a battery’s maximum capacity.
Based on relevant investigations, a variety of methods are frequently employed to estimate the SoC of power batteries. Some of these methods include the Ampere-Hour integral method [3], the open circuit voltage (OCV) method [4], the model-based Kalman filter (KF) [5], and data-based neural networks [6]. Regarding the estimation of SoC, there is a cumulative error in the open-circuit voltage method, and the Ampere-Hour integral method cannot make estimates in real time. The model-based Kalman filter [7] is an optimal recursive estimation method for dynamic linear system state estimation. It is a recursive predictive filtering algorithm. This method has good path-tracking performance and high accuracy. It is an effective online SoC estimation method [8], but the observation equation required by this method must be linear. To solve the optimal estimation problem in nonlinear systems, scholars have proposed an extended Kalman filter (EKF) [9] algorithm for nonlinear system models. Plett [10,11,12] first proposed a series of EKF-based SoC estimation algorithms for electric vehicle power batteries, which laid a theoretical foundation for the development of the EKF algorithm. However, the EKF algorithm linearizes nonlinear systems through Taylor series expansion, omits the high-order term, and thus introduces high-order loss error. Lee et al. [13] implemented the dual extended Kalman filter (DEKF) in an electrochemical model and proposed a battery SoC estimation method based on OCV-SoC. The obtained simulation results showed that the model method had good accuracy, and the initial error was less than ±5%. Mastali et al. [14] used EKF and DEKF methods to estimate the SoC of a LiFePO4 battery under different state models, and the results showed that the maximum error of the estimated SoC was 4%. Xiong et al. [15,16] proposed an online estimation method of battery open circuit voltage using an adaptive extended Kalman filter (AEKF) and evaluated four different types of lithium batteries’ (LiB) SoC according to the improved Thevenin model and the OCV-SoC relationship. This method reduces the SoC estimation error by 4%. With the rapid development of the field of machine learning, the authors of [17] obtained battery parameters such as current, voltage, and temperature through experiments and used the improved backpropagation neural network (BPNN) to estimate the SoC value of a battery. In order to further improve the SoC estimation accuracy of power batteries, the researchers combined a data-based neural network with a filtering algorithm to compensate for the inaccuracy of the model and the complexity of calculation. The authors of [18,19] used a BP neural network to compensate for the error caused by the EKF linearization process to optimize SoC estimation accuracy. Although BP neural networks have the advantages of a simple structure, strong parameter adjustability, and high reliability, the uncertainty of the initial weights and thresholds of these networks makes their convergence speed slow and easily prone to falling into a local minimum. For this reason, we selected an intelligent algorithm, biogeography-based optimization (BBO) [20], which is simple in structure and easy to implement. This algorithm is a good complement to a BP neural network. At the same time, we also improved the traditional linear mobility model of this algorithm and introduced a nonlinear mobility model to improve the global search ability and adaptability of this algorithm. The improved BBO algorithm is used to optimize the initial weight and threshold of a BP neural network, and the optimized BP neural network is used to modify the SoC estimation value predicted by the EKF algorithm so as to obtain a more accurate SoC estimation value than the traditional algorithm. Numerical examples are used to verify the performance of the proposed BBOBP-EKF algorithm. The experimental results show that the error result of this algorithm is significantly improved compared with that of the EKF algorithm, and it is also improved compared with that of the BP-EKF algorithm.

2. Battery State Space Model

The EKF algorithm is used to estimate the dynamic SoC of a battery. A nonlinear observer is often combined with a battery model. The selection of a battery model has an important impact on obtaining an accurate SoC value. The common SoC estimation models include the electrochemical model (EM), the electrochemical impedance model (EIM), and the equivalent circuit model (ECM). It must be considered that it is difficult for the electrochemical model to determine all parameters, and the corresponding calculation is complex and time consuming [21], while the electrochemical impedance model is difficult, complex, and limited in terms of the actual matching process [22]. The equivalent circuit model can more accurately describe the dynamic behavior of a battery, and it is easy to implement and readily improves the accuracy in SoC estimation. For the Rint model [23], Thevenin model [15], and the second-order resistance capacitance parallel model [24] in the equivalent circuit model, fully considering the complexity and accuracy of the model, the commonly used Thevenin equivalent circuit model with a first-order RC circuit was selected to establish the battery state space model, as Figure 1 illustrates.
Based on the Thevenin equivalent battery model, and according to Kirchhoff’s law, the continuous state space equation of the battery is obtained, that is, the voltage and current are as follows (2) [25]:
U L ( t ) = U O C V ( t ) U b ( t ) I ( t ) R a ( t ) I ( t ) = U b ( t ) R b + C b d ( U b ( t ) ) d t
In the formula, U L ( t ) represents the output voltage at time t ; U O C V ( t ) is the battery open circuit voltage at time t , which is a nonlinear function varying with SoC; U b ( t ) represents the voltage of the RC circuit at time t ; R a , R b , and C b represent the internal resistance of the battery, the resistance of the battery circuit, and the capacitance of the battery circuit, respectively; I ( t ) represents the total charging and discharging current at time t .
From Equation (2), the discrete state space Equation (3) [25] can be derived
U b ( k ) = U b ( k 1 ) e Δ t R b C b + I ( k 1 ) R b ( 1 e Δ t R b C b ) U L ( k ) = U O C V ( k ) I ( k ) R a U b ( k )
where Δ t is the sampling interval time, which is usually 1. k represents the number of sampling times. Then, the SoC value of lithium battery can be estimated using a modified Ampere-Hour integral method [26].
S o C ( t ) = S o C ( 0 ) 0 t T k η I d t Q
where η is the charging and discharging efficiency of the battery, T k is the temperature correction factor, and Q indicates the rated capacity of the battery. They are all definite values in the numerical experiments. The discretization of Equation (4) [26] can be obtained as follows:
S o C ( k + 1 ) = S o C ( k ) T k η Δ t Q I ( k )
To sum up, the equation expression of the model’s state space can be deduced, which can be seen in Equation (6):
S o C ( k ) U b ( k ) = 1 0 0 e Δ t R b C b S o C ( k 1 ) U b ( k 1 ) + T k η Δ t Q R b ( 1 e Δ t R b C b ) I ( k 1 ) + w ( k 1 ) U L ( k ) = U O C V ( k ) U b ( k ) R a I ( k ) + v ( k )
In the equation, w ( k ) , v ( k ) represents the process noise and observation noise of the system at time k , and the corresponding variances are q k and r k , respectively.
In this paper, 18,650 individual lithium-ion power batteries are used. Because the temperature will have a certain impact on the activity of the reactants inside the battery, excessively low activity will reduce the battery’s capacity, and excessively high activity will damage the battery, so the experiment was carried out at a constant temperature of 25 °C. The battery tester used was a Xinwei BTS-5V6A charge–discharge tester. During the experiment, the SoC and OCV values of charge and discharge were calibrated many times at the same time, and the mean values of these values were calculated [27]. It was necessary to perform a few criteria charging and discharging operations on the tester: according to the results of the experiment, a group of open-circuit voltage and state-of-charge records of average charge and discharge were ultimately gained, and the data were fitted using the least-squares method. The fourth-order fitting expression is presented in Equation (7) for further details, and the OCV-SoC fitting curve is shown in Figure 2.
U O C V = 10.3263 S o C 4 + 22.4018 S o C 3 16.3058 S o C 2 + 5.0034 S o C + 3.2026
where U O C V stands for the battery’s open-circuit voltage.

3. Algorithm Design

3.1. EKF Algorithm

The classical Kalman filter is an optimal recursive estimation prediction method widely used in dynamic linear system state estimation. In the actual operation of an electric vehicle’s lithium battery, the system is highly nonlinear, and the extended Kalman filter algorithm can linearize this nonlinear system so as to estimate the battery’s SoC. The filtering algorithm involves two steps: prediction and correction. Equation (6) has been derived from the Thevenin battery equivalent model. In order to facilitate the operation of the algorithm later, the nonlinear system model (Equation (8)) is obtained by rewriting Equation (6) in compact form
x k = f ( x k 1 , I k 1 ) + w k 1 z k = h ( x k , I k ) + v k
where f ( ) and h ( ) represent the state function and observation function of the system, respectively, and are the inputs of the system at a given time. From Equation (6), we can obtain x k = S o C ( k )   ,   U b ( k ) Τ ,   w k 1 = w ( k 1 )   = w 1 ( k 1 )   ,   w 2 ( k 1 )   Τ , and z k = U L ( k ) , v k = v ( k ) .
In order to facilitate further research on the EKF algorithm, Equation (2) can be used to create the state transition matrix of system A , noise matrix B , and observation matrix C , as shown in Equation (9) [25]. See Figure 3 for a specific flow chart of the EKF algorithm.
A = 1 0 0 e Δ t R b C b   , B = T k η Δ t Q R b ( 1 e Δ t R b C b )   , C k = h x x = x k = d U O C V d S o C S o C = S o C ( k )   1

3.2. BP Neural Network

The BP neural network is the first and foremost network put forward by Rumelhart and McClelland. It is an error-backpropagation-based multi-layer feed-forward neural network training model. It has a broad range of nonlinear input–output mode-mapping interactions that it can learn [28]. During the training process, taking the error as a sample, it constantly adjusts the weight and threshold between each layer so as to make the error meet the requirements [29]. Its neural network framework consists of an input layer, a hidden layer, and an output layer. In the course of estimating a battery’s SoC using the EKF algorithm, the SoC estimation results will produce errors due to various external factors. In order to compensate for this error, the BP neural network is introduced to compensate for and optimize the estimated value of the EKF.

3.2.1. Data Sources and Pretreatment

Regarding the data sources and pretreatment, firstly, the current, voltage, and temperature of the battery were collected through experiments and used as the basic data. Then, they were incorporated into the model expression to obtain the input data of the BP neural network using the EKF algorithm. For the sake of reducing the influence of singular sample data on the neural network, the input and output parameters need to be normalized through Equation (10), that is, the data must be processed into decimals between [–1, 1], and the predicted data also need to be denormalized. For the input and output data, q ,
q = 2 × q q m i n q m a x q m i n 1
where q is the normalized value, and the input and output data’s minimum and maximum amounts are q m i n and q m a x , respectively.

3.2.2. Structure Design of BP Neural Network

The current study establishes one hidden layer in a BP neural network structure. Each time the SoC value is estimated, the battery temperature T at time k + 1 , the Kalman gain matrix P k , and the SoC state value difference Δ x ^ k + 1 ( = x ^ k + 1 x ^ k ) estimated via the EKF algorithm at time k and time k + 1 are input into the trained neural network model, and the SoC estimation error Δ S o C k + 1 is taken as the output to remove the estimation error Δ S o C k + 1 from the estimated value x ^ k + 1 . Finally, the estimated value S o C k + 1 of the SoC quantity of a state at time k + 1 , namely, S o C k + 1 = x ^ k + 1 + Δ S o C k + 1 , is obtained (see Figure 4 below).
Let m ,   n , and s in Figure 4 equal the quantity of nodes in the input layer, hidden layer, and output layer; i ,   j , and l denote the input layer, hidden layer, and output layer, with i ,   j , and l neurons in each case. In this paper, the number of input layer nodes is m = 3 , the quantity of output nodes is s = 1 , and the quantity of hidden layers of the BP neural network may be determined via a trial-and-error method; the common formula is n = m + s + a (where a is the constant within the range from 1 to 10) [30]. After many simulation tests, when the quantity of hidden layer nodes is n = 7 , the network prediction accuracy is higher, and the convergence speed is faster. w i j 1 and w j l 2 denote the weights that travel from the i -th input layer node to the j -th hidden layer node in addition to the j -th hidden layer node to the l -th output layer node in the network, respectively. The j -th nodes across the network in the hidden layer contain a threshold of b j 1 ; meanwhile, the l -th nodes across the network in the output layer have a threshold of b l 2 .
According to the quantity of nodes in each layer determined in this paper, from the input layer to the hidden layer, the weight matrix equals W 1 , and the threshold matrix equals B 1 . The weight matrix from the hidden layer to the output layer equals W 2 , and the threshold matrix equals B 2 . The input vector equals X , the output vector equals Y , the expected output vector equals O , the hidden layer output value vector equals V , the hidden layer error value vector equals U 1 , and the output layer error value matrix equals U 2 , as shown in Equations (11) and (12)
W 1 = w 11 1 w 12 1 w 17 1 w 21 1 w 22 1 w 2 n 1 w 31 1 w 32 1 w 37 1   ,   B 1 = b 1 1 b 2 1 b 7 1   ,   W 2 = w 11 2 w 21 2   w 71 2   ,   B 2 = b 1 2
X = α 1 α 2 α 3 =   T   K k Δ x ^ k + 1   ,   Y = θ 1 = y   ,   O = o 1   ,   V = δ 1 δ 2 δ 7   ,   U 1 = u 1 1 u 2 1 u 7 1   ,   U 2 = u 1 2
where we also obtain V = g 1 ( W 1 X + B 1 ) and Y = g 2 ( W 2 V + B 2 ) . The activation functions for the hidden layer and the output layer in each case are g 1 ( ) and g 2 ( ) , and the two activation functions can be the same.
The objective function of the BP neural network training is shown in Equation (13)
F = 1 S λ = 1 S ( y 1 λ o 1 λ ) 2
where S is the quantity of training samples, the quantity of output layer nodes is 1, o 1 λ is the expected output value of the output node of sample λ , and y 1 λ is the actual output value of the output node under the action of sample λ .

3.3. Combination of BP Neural Network Optimized by BBO Algorithm and EKF

3.3.1. BBO Algorithm

In an attempt to imitate the migratory behavior of biological groups in nature, Simon [20] originally put forward a biogeography optimization method in 2008, which was centered on the migration operation of a linear model. The algorithm is uncomplicated in principle, easy to implement, contains fewer parameters, and has good global search capability and robustness. It is extensively applied in engineering [20,31,32], data analysis [33], and image processing [34]. The BBO algorithm mainly realizes the exchange of information through species migration and mutation between habitats. It then calculates the fitness value after exchange, and finally searches for the optimal solution through continuous iteration. Because the BP neural network is prone to falling into a local optimal solution in the training process, the application of the BBO algorithm to optimize the initial weight and threshold of a BP neural network can solve this problem to a certain extent, which helps to improve the optimization performance of a BP neural network and increase the number of opportunities to find a global optimal solution.
Because the core of the BBO algorithm is a migration operation, the traditional BBO algorithm is a linear mobility model (LMM) (see expression (14)), which has shortcomings in terms of its global search ability. This paper proposes a nonlinear mobility model, the arc curve mobility model (ACMM), as shown in expression (15), which advances the global search ability of the BBO algorithm.
λ n = I ( 1 n m ) μ n = E n m  
λ n = I 2 + ( I 2 ) 2 ( n m ) 2 ,   0 n < m 2 I 2 ( I 2 ) 2 ( n m 1 ) 2 ,   m 2 n m μ n = E 2 ( E 2 ) 2 ( n m ) 2 ,   0 n < m 2 E 2 + ( E 2 ) 2 ( n m 1 ) 2   ,   m 2 n m
Above, λ n and μ n are the immigration rate and emigration rate when the quantity of biological populations in the current habitat is n , and their respective maximum values are equal to I and E . m is the maximum quantity of biological populations that the habitat can accommodate.
When the maximum quantity of biological populations m = 50 , I = 1 and E = 1 , as shown in Figure 5, can be obtained. It can be observed from the above expression or figure that the immigration rate λ and emigration rate μ will change with the change in the quantity of species n . When there are few species in the ecosystem, the circular arc curve mobility model can increase the immigration rate and slow decline, and the emigration rate will become small and slowly rise, which can increase the exchange of species information between habitats as well as boost the algorithm’s capacity for global search; when the quantity of species in the habitat is large, the immigration rate is small and the emigration rate is large, which also enhances the algorithm’s capacity for global search; when the quantity of species in the habitat is equal to half of the maximum quantity of species, the immigration rate is equal to the emigration rate, thus reaching a balance state. Please refer to Figure 5 and Figure 6 for further information.
The habitat suitability index (HSI) is a metric utilized to assess whether an area is suitable for a species’ existence. The larger the value, the more suitable the habitat is for species survival. The HSI is composed of many factors, including temperature, rainfall, vegetation and geological diversity, and land area. These factors affecting HSI are known as suitability index variables (SIV). Due to the limited resources of habitats, habitats with high suitability tend to accommodate more species, and local species are more likely to migrate to other habitats, while the immigration rate of alien species is low. However, habitats with low suitability tend to contain fewer species, and alien species are more likely to migrate to the local area and less likely to leave. In addition, large change events such as natural disasters may also change the state of habitats, thereby affecting the HSI.

3.3.2. Implementation Process of BBOBP-EKF Algorithm

The BBO algorithm is coupled with a BP neural network and applied to the correction of the estimated value of the EKF algorithm. Figure 7 shows the concrete implementation process diagram of the BBOBP-EKF algorithm. The specific method of SoC estimation is as follows: firstly, the EKF algorithm is used to estimate the SoC and calculate the input of the BP neural network, that is, the Kalman gain matrix P k and the SoC state value difference Δ x ^ k + 1 ( = x ^ k + 1 x ^ k ) estimated by the EKF algorithm at time k and time k + 1 are used as two inputs of the network. As the temperature has a certain impact on the battery, the battery temperature T is also one of the inputs. Then, based on the neural network structure, the BBO algorithm is used to optimize the initial weight and threshold of the BP neural network, and the optimized weight and threshold are assigned to the neural network. Then, the network is trained and tested, and the SoC estimation error is output after meeting the conditions, which is the compensation value of the EKF algorithm’s estimation error. Finally, the SoC value estimated using the EKF method is added to the compensation value output by the BP neural network to obtain the final SoC estimation value.

4. Experimental Results and Analysis

The experimental results were obtained using MATLAB simulation software (https://ww2.mathworks.cn/discovery/simulation-software.html). First, the SoC was estimated via the EKF algorithm, which is depicted in Figure 3. The current, voltage, and temperature data used were measured using the experimental equipment. The initial SoC value was set to 90%, the time step was 1 s, and the total simulation time was 2000 s, where R a = R b = 15 , and τ = R b C b are time constants, which are generated by the normrnd function. The normal distribution generated by the randn function was used as the initial value of noise and observation noise, and the identity matrix generated by the eye function was used as the initial value of the covariance matrix.
Further, the BBO algorithm was used to optimize the weight and threshold of the BP neural network, and then the SoC estimation compensation value was output. Combined with the estimation value obtained using the EKF method, the SoC estimation value was finally obtained. By using the newff function to establish a forward-type BP neural network, experiments were conducted on 1000 sets of data, and the predicted output of the network was set to 1 × 10−5. After 2000 iterations, the network was trained. As a training set, the first 900 collections of data were employed, while the last 100 groups of data served as the test set. The learning rate was 0.01, and the training goal error was 1 × 10−7. The main parameter-setting steps of the BBO algorithm include setting the weight and threshold value range to [–3, 3], the maximum quantity of iterations to 100, the quantity of habitats to 50, the habitat retention rate to 0.2, and the maximum mutation rate to 0.01. The following is a comparison of the results regarding the accuracy of the three algorithms for estimating lithium battery SoC value obtained through simulation, as shown in Figure 8.
As can be seen in Figure 8, with the increase in simulation time, the experimental real value of the SoC of the power battery decreases, and the experimental measured value of the SoC fluctuates in an interval due to the addition of noise perturbation to the experiments, while the SoC value estimated via the BBOBP-EKF method is essentially in the middle of the interval of the experimental value and is very stable and fluctuates with the fluctuation of the real SoC value, which is closer to the actual battery SoC value compared to the SoC value estimated by the BP-EKF algorithm and the EKF algorithm. Compared with the BP-EKF algorithm and the EKF algorithm, the estimated SoC values are closer to the actual battery SoC values, leading to the conclusion that the accuracy of the SoC values obtained via the BBOBP-EKF method has been improved to a certain extent. Meanwhile, after simulation, a comparison of the error curves of the EKF algorithm, BP-EKF algorithm, and BBOBP-EKF algorithm with respect to estimating the battery SoC value is also shown in Figure 9, which shows that the EKF algorithm fluctuates outside the error 0 value, and the BP-EKF algorithm and BBOBP-EKF method essentially fluctuate above and below the error 0 value, but the error float of the BBOBP-EKF method is much higher than that of the BP-EKF algorithm or the EKF algorithm; however, the error fluctuation of the BBOBP-EKF method is lower and more stable than that of the BP-EKF algorithm, so the BBOBP-EKF method is more effective in the estimation of battery SoC.
For the purpose of the better characterization of the error values of different algorithms, the error values obtained by each algorithm are taken as absolute values, and the presented error values are shown in Figure 10. It may be deduced that the BBOBP-EKF approach has an absolute error value of 2000 times, which is basically within 2%. The error value corresponding to a number of times less than 1% is also higher than that of the other algorithms. Overall, it is superior to the BP-EKF algorithm and significantly better than the EKF algorithm. The number of times the error values obtained by different algorithms fall into different intervals is shown in Table 1.
To further illustrate the effects of the three methods, the error results are shown in Table 2. The smaller the index of the SoC estimation error, the better the accuracy of the algorithm. Compared with the BP-EKF algorithm and EKF algorithm, the maximum error of the BBOBP-EKF algorithm is 1% less than that of the BP-EKF algorithm and 2.4% less than that of the EKF algorithm, and its minimum error is also the smallest. Furthermore, the smaller the variance of the error, the more stable the estimation method. The error index in Table 2 intuitively shows that the accuracy of battery SoC estimation based on the BBOBP-EKF method is slightly better than that of the BP-EKF algorithm and obviously better than that of the EKF algorithm.

5. Conclusions

The lithium power battery space equation of state and the observed output equation were constructed in this study by utilizing the Thevenin cell model. Furthermore, the BBOBP-EKF method was developed to evaluate the SoC for batteries. The error of the EKF algorithm was corrected using a BP neural network, and the BBO method was adopted to improve the initial weights and thresholds of the BP neural network. In the end, the BBOBP-EKF method was compared with the BP-EKF algorithm and the EKF algorithm to obtain the SoC estimation error: the proposed method’s maximum error was 1% lower than that of the BP-EKF algorithm and 2.4% lower than that of the EKF algorithm, and the minimum error was also reduced, thus demonstrating that the accuracy of battery SoC estimation founded on the BBOBP-EKF method was enhanced compared with that of other algorithms.

Author Contributions

Conceptualization, X.L. and X.Z.; methodology, X.L. and X.Z.; software, X.Z.; validation, X.Z.; formal analysis, X.Z.; investigation, X.L. and X.Z.; resources, X.L.; data curation, X.Z.; writing—original draft preparation, X.Z.; writing—review and editing, X.L. and X.Z.; visualization, X.L.; supervision, X.L. and X.Z.; project administration, X.L.; funding acquisition, X.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the key Science and Technology Research Program of Chongqing Municipal Education Commission [Grant No.KJQN202200543] and the Chongqing Municipal Graduate Research Innovation Project [CYS23414].

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are not disclosed due to confidentiality requirements.

Conflicts of Interest

The authors declare that they have no known competing financial interest or personal relationship that could have appeared to influence the work reported in this paper.

Abbreviations

EVsElectric vehicles
SoCState of charge
OCVOpen-circuit voltage
KFKalman filter
EKFExtended Kalman filter
DEKFDual extended Kalman filter
AEKFAdaptive extended Kalman filter
LiBLithium batteries
BPNNBackpropagation neural network
BBOBiogeography-based optimization
EMElectrochemical model
EIMElectrochemical impedance model
ECMEquivalent circuit model
LMMLinear mobility model
ACMMArc curve mobility model
HISHabitat suitability index
SIVSuitability index variables

References

  1. Lu, L.; Han, X.; Li, J.; Hua, J.; Ouyang, M. A review on the key issues for lithium-ion battery management in electric vehicles. J. Power Sources 2013, 226, 272–288. [Google Scholar] [CrossRef]
  2. Hannan, M.A.; Lipu, M.S.H.; Hussain, A.; Mohamed, A. A review of lithium-ion battery state of charge estimation and management system in electric vehicle applications: Challenges and recommendations. Renew. Sustain. Energy Rev. 2017, 78, 834–854. [Google Scholar] [CrossRef]
  3. Lashway, C.R.; Mohammed, O.A. Adaptive battery management and parameter estimation through physics-based modeling and experimental verification. IEEE Trans. Transp. Electrif. 2016, 2, 454–464. [Google Scholar] [CrossRef]
  4. Snihir, I.; Rey, W.; Verbitskiy, E.; Belfadhel-Ayeb, A.; Notten, P.H.L. Battery open-circuit voltage estimation by a method of statistical analysis. J. Power Sources 2006, 159, 1484–1487. [Google Scholar] [CrossRef]
  5. Afshar, S.; Morris, K.; Khajepour, A. State-of-charge estimation using an EKF-based adaptive observer. IEEE Trans. Control Syst. Technol. 2018, 27, 1907–1923. [Google Scholar] [CrossRef]
  6. Fasahat, M.; Manthouri, M. State of charge estimation of lithium-ion batteries using hybrid autoencoder and Long Short Term Memory neural networks. J. Power Sources 2020, 469, 228375. [Google Scholar] [CrossRef]
  7. Kalman, R.E. A new approach to linear filtering and prediction problems. J. Basic Eng. 1960, 82, 35–45. [Google Scholar] [CrossRef]
  8. Meng, J.; Ricco, M.; Luo, G.; Swierczynski, M.; Stroe, D.I.; Stroe, A.I.; Teodorescu, R. An overview and comparison of online implementable SoC estimation methods for lithium-ion battery. IEEE Trans. Ind. Appl. 2017, 54, 1583–1591. [Google Scholar] [CrossRef]
  9. Reif, K.; Unbehauen, R. The extended Kalman filter as an exponential observer for nonlinear systems. IEEE Trans. Signal Process. 1999, 47, 2324–2328. [Google Scholar] [CrossRef]
  10. Plett, G.L. Extended Kalman filtering for battery management systems of Li PB-based HEV battery packs: Part 1. Background. J. Power Sources 2004, 134, 252–261. [Google Scholar] [CrossRef]
  11. Plett, G.L. Extended Kalman filtering for battery management systems of Li PB-based HEV battery packs: Part 2. Modeling and identification. J. Power Sources 2004, 134, 262–276. [Google Scholar] [CrossRef]
  12. Plett, G.L. Extended Kalman filtering for battery management systems of Li PB-based HEV battery packs: Part 3. State and parameter estimation. J. Power Sources 2004, 134, 277–292. [Google Scholar] [CrossRef]
  13. Lee, S.J.; Kim, J.H.; Lee, J.M.; Cho, B. The State and Parameter Estimation of An Li-ion Battery Using A New OCV-SoC Concept. In Proceedings of the 2007 IEEE Power Electronics Specialists Conference, Orlando, FL, USA, 17–21 June 2007; pp. 2799–2803. [Google Scholar]
  14. Mastali, M.; Vazquez-Arenas, J.; Fraser, R.; Fowler, M.; Afshar, S.; Stevens, M. Battery state of the charge estimation using Kalman filtering. J. Power Sources 2013, 239, 294–307. [Google Scholar] [CrossRef]
  15. He, H.; Xiong, R.; Zhang, X.; Sun, F.; Fan, J. State-of-charge estimation of the lithium ion battery using an adaptive extended Kalman filter based on an improved Thevenin model. IEEE Trans. Veh. Technol. 2011, 60, 1461–1469. [Google Scholar]
  16. Xiong, R.; Gong, X.; Mi, C.C.; Sun, F. A robust state-of-charge estimator for multiple types of lithium ion batteries using adaptive extended Kalman filter. J. Power Sources 2013, 243, 805–816. [Google Scholar] [CrossRef]
  17. Hu, Y.; Wang, Z. Study on SoC Estimation of Lithium Battery Based on Improved BP Neural Network. In Proceedings of the 2019 8th International Symposium on Next Generation Electronics (ISNE), Zhengzhou, China, 9–10 October 2019; pp. 1–3. [Google Scholar]
  18. Tian, D.; Li, L.; Yang, Y. Research on SoC estimation based on improved BP-EKF algorithm. Chin. J. Power Sources 2020, 44, 1274–1278. [Google Scholar]
  19. Gao, Y.; Ji, W.; Zhao, X. SoC Estimation of E-Cell combining BP neural network and EKF algorithm. Processes 2022, 10, 1721. [Google Scholar] [CrossRef]
  20. Simon, D. Biogeography-based optimization. IEEE Trans. Evol. Comput. 2008, 12, 702–713. [Google Scholar] [CrossRef]
  21. Liu, G.; Lu, L.; Fu, H.; Hua, J.; Li, J.; Ouyang, M.; Wang, Y.; Xue, S.; Chen, P. A comparative study of equivalent circuit models and enhanced equivalent circuit models of lithium-ion batteries with different model structures. In Proceedings of the 2014 IEEE Conference and Expo Transportation Electrification Asia-Pacific (ITEC Asia-Pacific), Beijing, China, 31 August–3 September 2014; pp. 1–6. [Google Scholar]
  22. Wang, Q.; He, Y.; Shen, J.; Hu, X. State of charge-dependent polynomial equivalent circuit modeling for electrochemical impedance spectroscopy of lithium-ion batteries. IEEE Trans. Power Electron. 2017, 33, 8449–8460. [Google Scholar] [CrossRef]
  23. Nemes, R.; Ciornei, S.; Ruba, M.; Hedesiu, H.; Martis, C. Modeling and simulation of first-order Li-Ion battery cell with experimental validation. In Proceedings of the 2019 8th International Conference on Modern Power Systems (MPS), Cluj Napoca, Romania, 21–23 May 2019; pp. 1–6. [Google Scholar]
  24. Zhang, X.; Lu, J.; Yuan, S.; Yang, J.; Zhou, X. A novel method for identification of lithium-ion battery equivalent circuit model parameters considering electrochemical properties. J. Power Sources 2017, 345, 21–29. [Google Scholar] [CrossRef]
  25. Shi, Y.; Ahmad, S.; Tong, Q.; Lim, T.M.; Wei, Z.; Ji, D.; Eze, C.M.; Zhao, J. The optimization of state of charge and state of health estimation for lithium-ions battery using combined deep learning and Kalman filter methods. Int. J. Energy Res. 2021, 45, 11206–11230. [Google Scholar] [CrossRef]
  26. He, Z.; Li, Y.; Sun, Y.; Zhao, S.; Lin, C.; Pan, C.; Wang, L. State-of-charge estimation of lithium ion batteries based on adaptive iterative extended Kalman filter. J. Energy Storage 2021, 39, 102593. [Google Scholar] [CrossRef]
  27. Fan, B.; Ren, S.; Luo, J. Research on relationship between SoC and OCV of lithium ion battery under actual application conditions. Chin. J. Power Sources 2018, 42, 641–644. [Google Scholar]
  28. Mcclelland, J.L.; Rumelhart, D.E.; PDP Research Group. Parallel Distributed Processing; MIT Press: Cambridge, MA, USA, 1986. [Google Scholar]
  29. Ma, H.; Lipu, M.S.H.; Hussain, A.; Mohamad, H.S.; Afida, A. Neural network approach for estimating state of charge of lithium-ion battery using backtracking search algorithm. IEEE Access 2018, 6, 10069–10079. [Google Scholar]
  30. Wang, S.; Ma, H.; Dou, J.; Zhang, Y.; Li, S.; Hu, L. Estimation of lithium-ion battery state of charge based on UGOA-BP. Energy Storage Sci. Technol. 2022, 11, 258–264. [Google Scholar]
  31. Zhang, Y.; Gu, X. Biogeography-based optimization algorithm for large-scale multistage batch plant scheduling. Expert Syst. Appl. 2020, 162, 113776. [Google Scholar] [CrossRef]
  32. Zhang, Z.; Gao, Y.; Zuo, W. A dual biogeography-based optimization algorithm for solving high-dimensional global optimization problems and engineering design problems. IEEE Access 2022, 10, 55988–56016. [Google Scholar] [CrossRef]
  33. Xu, P.; Chen, S.; Yu, X.; Zhang, L. Developing a novel hybrid biogeography-based optimization algorithm for multilayer perceptron training under big data challenge. Sci. Program. 2018, 2018, 2943290. [Google Scholar]
  34. Zhang, X.; Wen, S.; Wang, D. Multi-population biogeography-based optimization algorithm and its application to image segmentation. Appl. Soft Comput. 2022, 124, 109005. [Google Scholar] [CrossRef]
Figure 1. Thevenin battery model.
Figure 1. Thevenin battery model.
Applsci 13 10547 g001
Figure 2. OCV-SoC fitting curve of battery.
Figure 2. OCV-SoC fitting curve of battery.
Applsci 13 10547 g002
Figure 3. EKF algorithm flowchart.
Figure 3. EKF algorithm flowchart.
Applsci 13 10547 g003
Figure 4. Specific structure and parameter diagram of BP neural network.
Figure 4. Specific structure and parameter diagram of BP neural network.
Applsci 13 10547 g004
Figure 5. Linear/Arc curve mobility model diagram.
Figure 5. Linear/Arc curve mobility model diagram.
Applsci 13 10547 g005
Figure 6. Species migration map for habitats and maximum species count of 50.
Figure 6. Species migration map for habitats and maximum species count of 50.
Applsci 13 10547 g006
Figure 7. BBOBP-EKF algorithm estimation of battery SoC flowchart.
Figure 7. BBOBP-EKF algorithm estimation of battery SoC flowchart.
Applsci 13 10547 g007
Figure 8. Comparison of SoC accuracy.
Figure 8. Comparison of SoC accuracy.
Applsci 13 10547 g008
Figure 9. Comparison of different algorithms’ errors.
Figure 9. Comparison of different algorithms’ errors.
Applsci 13 10547 g009
Figure 10. Comparison of absolute values of errors for different algorithms.
Figure 10. Comparison of absolute values of errors for different algorithms.
Applsci 13 10547 g010
Table 1. Comparison of the times of different algorithms in the absolute error range.
Table 1. Comparison of the times of different algorithms in the absolute error range.
Error Taking Absolute Value Interval/%EKFBP-EKFBBOBP-EKF
0 e 1 45913311412 1
1 < e 2 726574554
2 < e 8159534
1 The values in digital boldface denote better performance compared to other algorithms in the table.
Table 2. Comparison of error indicators of different algorithms.
Table 2. Comparison of error indicators of different algorithms.
IndexMinimum Error /%Maximum Error/%Mean Absolute Value of Error/%Error Variance/%
EKF1.6421 × 10−35.71561.80991.1731
BP-EKF9.9855 × 10−44.28490.82071.0498
BBOBP-EKF1.7112 × 10−4 23.26580.74830.9443
2 The values in digital boldface represent better performance compared to other algorithms in the table.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liu, X.; Zhang, X. State of Charge Estimation for Power Battery Using Improved Extended Kalman Filter Method Based on Neural Network. Appl. Sci. 2023, 13, 10547. https://doi.org/10.3390/app131810547

AMA Style

Liu X, Zhang X. State of Charge Estimation for Power Battery Using Improved Extended Kalman Filter Method Based on Neural Network. Applied Sciences. 2023; 13(18):10547. https://doi.org/10.3390/app131810547

Chicago/Turabian Style

Liu, Xiaoyu, and Xiang Zhang. 2023. "State of Charge Estimation for Power Battery Using Improved Extended Kalman Filter Method Based on Neural Network" Applied Sciences 13, no. 18: 10547. https://doi.org/10.3390/app131810547

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop