Abstract
The power generation system with renewable energy supply is susceptible to the influence of external environment. Lithium battery and other energy storage devices need to be added in the new energy field to smooth the output of renewable energy generation system and improve the stability of the integrated system. Accurately estimating the state of charge (SOC) of energy storage batteries can effectively improve the use and reasonable scheduling of batteries. This paper takes ternary lithium battery pack as the research object and builds a second-order RC equivalent circuit model to estimate the SOC. According to the time-varying characteristics of battery model parameters, recursive least square method with forgetting factor was used to identify the parameters, the model parameters are modified using the current data. To solve the problem of accumulated error of extended Kalman filter (EKF) algorithm, an adaptive fading factor was introduced to correct prediction error covariance matrix and suppress the influence of historical data on the current state. Matlab simulation and dynamic stress testing experiments show that, compared with EKF algorithm, the adaptive fading EKF (AFEKF) algorithm has higher accuracy.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
With the continuous progress of strategic goal of ‘carbon peak and carbon neutrality’, increasing the proportion of photovoltaic and wind power generation and the other renewable energy systems in the power grid is an important measure, and the installed capacity of renewable energy continues to increase. Due to the inherent uncertainty and low inertia of distributed photovoltaic and other renewable energy sources, coupled with the off-peak output of load, it brings great challenges to the frequency stability of power system and the consumption of renewable energy sources [1, 2]. The energy storage system can be used to suppress power fluctuation and play the role of peak cutting and valley filling, which is an indispensable part of the new energy field to main source-load balance. Lithium-ion batteries are widely used in electric vehicles and energy storage systems due to their advantages of high energy density, high efficiency and long service life [3, 4]. Accurately estimating the SOC of energy storage batteries can effectively improve the battery life and the rationality of system scheduling.
At present, the SOC estimation methods of Lithium-ion battery mainly include ampere-hour integration, open circuit voltage method, internal resistance method, neural network method and Kalman filter method. As early methods, ampere-hour integration method, open-circuit voltage method and internal method have low estimation accuracy [5]. Ampere-hour integral method has a high requirement on the initial value of the charged state, and the initial error will gradually accumulate with time, and the error will gradually increase. The open-circuit voltage method requires a long period of time to achieve equilibrium within the battery and is not suitable for on-line estimation of SOC. The use of internal resistance methods has been gradually reduced because of the need for specialized equipment and the susceptibility of impedance to temperature. Neural network method requires large data and high cost [6, 7]. This method not only requires a large number of data sets and a long time of training, but also depends on the accuracy of training data to a large extent. If the data amount or conditions are insufficient, the accuracy will be reduced and it is difficult to achieve. Kalman filter algorithm is widely used in linear systems and extended Kalman algorithm extends it to nonlinear systems. It is a mainstream direction of current research to estimate SOC using Kalman algorithm based on the state equation and observation equation of battery equivalent model [8, 9]. The principle of equivalent model is clear, the calculation is simple, and it is suitable for real-time system. At present, the estimation method based on equivalent model combined with Kalman filter has attracted a lot of scholars’ research.
According with the above analysis, this paper constructed the second-order Thevenin equivalent model of lithium-ion battery. The parameters of the model were identified online by recursive least square method, and the SOC of lithium ion battery was estimated by AFEKF algorithm. The adaptive fading factor was introduced into Kalman filter algorithm to reduce the influence of historical data on filtering results. Finally, combined with the experimental results, the AFEKF algorithm is analyzed and compared to verify the superiority of the proposed algorithm.
2 Equivalent Model and Parameter Identification of Lithium-Ion Battery
2.1 Equivalent Circuit Model of Lithium-Ion Battery
The battery model and parameter identification determine the accuracy of SOC estimation. Thevenin model is shown in Fig. 1. RC parallel network is used to characterize the polarization reaction in the battery, which reflects the nonlinear characteristics of the dynamic charge and discharge response of the battery to a certain extent. In order to simulate the battery polarization transition process and more accurately describe the polarization process and dynamic response behavior of lithium-ion battery, the second-order Thevenin equivalent circuit model was adopted in the experiment, which can improve the accuracy of the model to a certain extent [10,11,12].
Subsequent paragraphs, however, are indented. The equivalent model is shown in Fig. 1, where Uoc is the open-circuit voltage and Ub is the battery terminal voltage. U1 and U2 are polarization voltages; Ib is battery load current, R0 is ohmic resistance; R1 and R2 are polarization resistors; C1 and C2 are polarization capacitors.
According to Kirchhoff's law, the second-order Thevenin model can be expressed as:
SOC is defined as the ratio of the remaining battery power to the actual capacity, which can be expressed by ampere-hour integral as follows:
where, \(\eta\) is the Coulomb efficiency coefficient, Qc is the standard capacity of the battery, and S0 is the initial SOC of the battery pack.
Combining Eq. (1), the battery state space equation in discrete form can be obtained as follows:
The observation equation is as follows:
where, T is the sampling time; w is process noise; v is measurement noise; \(\tau_1\) and \(\tau_2\) are the time constants of the polarization loop; The state variable is \(\left[ {SOC_k ,U_{1,k} ,U_{2,k} } \right]^T\), the control variable is \(I_{t,k}\), and the observation variable is \(U_{t,k}\).
2.2 SOC-OCV Relationship Curve of Battery
There is a nonlinear functional relationship between the open-circuit voltage (OCV) and SOC of the power battery [9, 10]. In order to obtain the OCV-SOC relation curve of battery, the constant current intermittent charge-discharge method was used for ternary lithium battery. The specific parameters of ternary lithium battery were as follows: standard capacity is 2.5Ah, charging cut-off voltage is 4.2V, and discharge cut-off voltage is 2.75V.
On the Arbin(BT2000) battery test system, firstly, after the battery in full charge state stands for 1h, the constant current of 0.5C is used to discharge the ternary lithium battery. After 12 min of the discharge time, the battery will stand for 1h again, so that the battery will return to its equilibrium state before running the next cycle. Repeat the above steps until the battery terminal voltage is lower than 2.75V, stop discharging, record the data and perform fitting. The fitting accuracy increases with the increase of the fitting order. Therefore, the ninth order curve fitting is carried out for OCV-SOC to reduce the reduction of SOC estimation accuracy caused by the fitting curve error. The curve fitting relation is as follows:
The obtained OCV-SOC relation curve is shown in Fig. 2.
2.3 Parameter Identification of Battery Model
Recursive least squares operation is a method developed from adaptive filtering theory for model identification and data mining [11, 12]. The recursive least square method has a small amount of computation and can identify the characteristics of the dynamic system in real time. Therefore, this method is adopted in this paper to identify the parameters of the equivalent model. The principle is as follows:
where, \(y_k\) is the system output; \(\varphi_k\) is data vector; \(\theta_k\) is the parameter vector to be measured, and \(e_k\) is the equation error. The recursion formula is as follows:
The recursive least square method revises the results obtained at the last moment according to the recursive formula through the newly introduced data, and obtains the new estimated value. The product of the estimated error and the system gain is taken as the estimated update value at the current time. The estimated value at the current time can be obtained by adding the estimated updated value and the estimated value at the last time. Finally, the covariance matrix at this time can be calculated according to the covariance matrix at the last time and the system gain to prepare for the next round of parameter estimation.
The transfer function of the system is as follows
Z function corresponding to the S-transformed function can be written as
where \(\theta_1\), \(\theta_2\), \(\theta_3\), \(\theta_4\) and \(\theta_5\) are the coefficients related to the model parameters, and their values are
where a = R0, b = τ1τ2, c = τ1 + τ2, d = R0 + R1 + R2, e = R0(τ1 + τ2) + R1τ2 + R2τ1.
The data vector and parameter vector are respectively as
By substituting Eqs. (6) and (11) into the recursive least square method, the corresponding parameters of the battery model can be obtained.
3 Extended Kalman Filter with Adaptive Fading Factor
3.1 Traditional Extended Kalman Filter
Kalman filter algorithm is a method widely used in linear systems, and extended Kalman filter algorithm extends Kalman algorithm to nonlinear systems [5,6,7]. EKF linearizes the nonlinear model locally to obtain an approximate linearized model, and then completes the estimation of the target state.
The EKF state space expression is shown as follows:
In Eq. (12), \(x_k\) represents the state vector of the system at time k, \(u_k\) represents the input vector of the system at time k; \(f\left( {x_k ,u_k } \right)\) represents the state transition function of the system, \(h\left( {x_k ,u_k } \right)\) represents the observation function in the system; \(w_k\) represents the state noise in the system, \(v_k\) represents the measurement noise in the system, \(w \sim (0,Q)\) and \(v \sim (0,R)\) satisfies the normal distribution, and represents the value of the state of the system and the covariance of the measurement equation respectively.
Using the local linear characteristics of the nonlinear system, the nonlinear model is locally linearized, and the first-order Taylor expansion is carried out on the state transition function and measurement function in Eq. (12), and the higher-order terms higher than the second-order are omitted, and Eq. (13) is obtained:
The parameters of nonlinear system can be transformed into matrix form by mathematical calculation.
Substituting Eq. (14) into Eq. (13), it yields:
Initialize the state variable.
The flow chart of EKF is shown in Fig. 3. Steps (3) and (4) are collectively called prior estimation, Steps (5) and (6) compose the posterior estimation. In Fig. 3, \(\hat{x}_{k + 1}^-\) represents the prior estimated value of the system at time k + 1; \(P_{k + 1}^-\) represents the prior estimated covariance of the system at time k + 1; \(P_k^+\) represents the posterior estimated covariance of the system at time k; \(K_{k + 1}\) is the Kalman gain at time k + 1, it is improved based on state estimation and covariance estimation. \(P_{k + 1}^+\) represents the posterior estimate of the error covariance output of the system at time k + 1.
3.2 Analysis of EKF with Adaptive Fading Factor
The traditional extended Kalman filter algorithm is difficult to be used in the estimation process with complex environment, and the extended Kalman filter algorithm will diverge due to the error of mathematical model of nonlinear system, which will affect the accuracy of estimation [2,3,4]. To solve this problem, on the basis of EKF algorithm, a fading factor is introduced to weaken the proportion of old observations in the prediction process, increase the weight of new observations in the prediction correction process, and then suppress the filtering divergence. The expression is as follows:
\(\lambda_{k{ + }1}\) is the fading factor, and the calculation method is as follows:
The innovation dk+1 at time k is defined as the difference between the actual and predicted observations of the filter
When the Kalman gain is the optimal gain matrix, the innovation sequences are uncorrelated, that is, the innovation sequences are all orthogonal. Thus, it yields:
For the optimum λk, the following equation should hold:
Substituting Kalman gain into the above equation, yields:
Since \(P_{\text{k}}^{ - }\) is a positive definite matrix, \(C_k^{\text{T}}\) is a nonsingular matrix, then yields
Set the minimum value of \(\lambda_k\) is 1, yields:
According to innovation covariance theory, the matrix fading factor is set to modify the prediction error covariance matrix, and then the filtering divergence caused by the continuous monotonic change of the gain matrix is contained, so as to achieve the purpose of improving the estimation accuracy and suppressing filtering divergence. The SOC estimation process of AFEKF algorithm is shown in the Fig. 4.
4 Experiment and Simulation Analysis
In order to verify the robustness and accuracy of the above algorithm, the dynamic stress testing (DST) condition was used for experimental verification. The current curve under DST condition is shown in Fig. 5.
The initial SOC value of the battery is set to 100%. When the initial value is known and accurate, the SOC value of each time point is calculated by ampere integration method as the reference value, and then compared and analyzed with the estimated value of various algorithms. Figure 6 shows the comparison between the estimation results of EKF algorithm and AFEKF algorithm and the reference values. Fig. 7 shows the error curves between the estimation results of the two algorithms and the reference values.
As can be seen from the figure, the SOC curve estimated by AFEKF algorithm is more consistent with the real SOC curve, which indicates that the effect of AFEKF algorithm is better than that of EKF algorithm. EKF is affected by the cumulative error of historical data, resulting in a relatively large SOC estimation error. AFEKF modifies the covariance matrix of prediction error by adding an adaptive fading factor, thereby curbing the filtering divergence caused by the continuous monotonicity change of the gain matrix, and achieving the improvement of SOC estimation accuracy. The estimation errors of different algorithms is listed in Table 1.
As can be seen from the table, the accuracy of AFEKF in estimating SOC under DST conditions can be stable within 1.5%, which is about 3.5% higher than that of EKF.
5 Conclusion
Aiming at the problem of error accumulation when using EKF algorithm to estimate SOC of lithium-ion batteries, this paper proposes a SOC estimation method based on adaptive fading extended Kalman (AFEKF). Selects the Thevenin equivalent model, using the least squares method for model parameter identification, adaptive fading factor, introduced the EKF, correct prediction error covariance matrix, which contain continuous gain matrix caused by filtering divergence of monotonous, decrease the results, the influence of old data to the filter achieve the goal of ascension estimation precision and restrain filtering divergence. The experimental results show that compared with EKF algorithm, AFEKF algorithm has smaller estimation error and smaller fluctuation range of SOC estimation error. The SOC estimation error is 1.38%, and the accuracy is increased by 3.51%, which achieves better SOC estimation accuracy.
References
Yong, L., Tianyu, Y., Xuebo, Q., et al.: Optimal configuration of distributed photovoltaic and energy storage system based on joint sequential scenario and source-network-load coordination. Trans. China Electrotech. Soc. 37(13), 3289–3303 (2022) (in Chinese)
Qian, Z., Xiaosong, D., Huazhan, Y., Tao, S., et al.: Coordinated optimization strategy of electric cluster participating in energy and frequency regulation markets considering battery lifetime degradation. Trans. China Electrotech. Soc. 37(1), 72–81 (2022) (in Chinese)
Wei, Z., Jie, M., Zhangyi, L., et al.: Energy utilization efficiency estimation method for second-use lithium-ion battery packs based on a battery consistency model. Trans. China Electrotech. Soc. 36(10), 2190–2198 (2021) (in Chinese)
Zifa, L., Yunyang, L., Xinyue, W., et al.: Operation schedule optimization of energy storage and electric vehicles in a distribution network with renewable energy sources. Proc. CSEE 42(5), 1813–1826 (2022)
Wadi, A., Mamoun, A., Ala, A.H.: Computationally efficient state-of-charge estimation in Li-ion batteries using enhanced dual-Kalman filter. Energies 3717(15), 1–5 (2022)
He, L., Guo, D., Zhang, J., et al.: A threshold extend Kalman filter algorithm for state of charge estimation of lithium-ion batteries in electric vehicles. IEEE J. Emerg. Sel. Top. Ind. Electron. 3(2), 190–198 (2022)
Mohammadi, F.: Lithium-ion battery state-of-charge estimation based on an improved coulomb-counting algorithm and uncertainty evaluation. J. Energy Storage 48(104061), 1–10 (2022)
Chung, D. -W., Ko, J. –H., Yoon, K. Y.: State-of-charge estimation of lithium-ion batteries using LSTM deep learning method. J. Electr. Eng. Technol. 17, 1931–1945 (2022)
Maheshwari, A., Nageswari, S.: Real-time state of charge estimation for electric vehicle power batteries using optimized filter. Energy 254(124328), 1–15 (2022)
Ziyi, W., Chengzhi, Z., Yanglin, Z., et al.: OCV-SOC estimation based on dynamic reconfigurable battery network. Proc. CSEE 42(8), 2919–2928 (2022)
Chunling, W., Wenbo, H., Jinhao, M., et al.: State of charge estimation of lithium-ion batteries based on maximum correlation-entropy criterion extended Kalman filtering algorithm. Trans. China Electrotech. Soc. 36(24), 5165–5175 (2021) (in Chinese)
Wei, L., Geng, Y., Deyue, M., et al.: Modeling method of lithium-ion battery considering commonly used constant current conditions. Trans. China Electrotech. Soc. 36(24), 5186–5200 (2021) (in Chinese)
Acknowledgements
This research is supported by Science and Technology Project of State Grid Integrated Energy Service Group Co. LTD of China (Grant No. 52789921N00A) and Open Research Project of Xiangyang Institute of Industrial Technology, Hubei University of Technology of China (Grant No. XYYJ2022C01).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 Beijing Paike Culture Commu. Co., Ltd.
About this paper
Cite this paper
Li, N. et al. (2023). State of Charge Estimation of Lithium-Ion Battery Based on EKF with Adaptive Fading Factor. In: Sun, F., Yang, Q., Dahlquist, E., Xiong, R. (eds) The Proceedings of the 5th International Conference on Energy Storage and Intelligent Vehicles (ICEIV 2022). ICEIV 2022. Lecture Notes in Electrical Engineering, vol 1016. Springer, Singapore. https://doi.org/10.1007/978-981-99-1027-4_56
Download citation
DOI: https://doi.org/10.1007/978-981-99-1027-4_56
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-1026-7
Online ISBN: 978-981-99-1027-4
eBook Packages: EngineeringEngineering (R0)