 Original Research
 Open Access
 Published:
Modeling and SOC estimation of lithium iron phosphate battery considering capacity loss
Protection and Control of Modern Power Systems volume 3, Article number: 5 (2018)
Abstract
Modeling and state of charge (SOC) estimation of Lithium cells are crucial techniques of the lithium battery management system. The modeling is extremely complicated as the operating status of lithium battery is affected by temperature, current, cycle number, discharge depth and other factors. This paper studies the modeling of lithium iron phosphate battery based on the Thevenin’s equivalent circuit and a method to identify the open circuit voltage, resistance and capacitance in the model is proposed. To improve the accuracy of the lithium battery model, a capacity estimation algorithm considering the capacity loss during the battery’s life cycle. In addition, this paper solves the SOC estimation issue of the lithium battery caused by the uncertain noise using the extended Kalman filtering (EKF) algorithm. A simulation model of actual lithium batteries is designed in Matlab/Simulink and the simulation results verify the accuracy of the model under different operating modes.
Introduction
Wind power generation has been developing rapidly in recent years for being pollutionfree and sustainable [1,2,3,4]. However, wind power curtailment has become a prominent problem due to the constraints imposed by power dispatch and wind power’s fluctuation and unpredictability. Energy storage is an effective means to solve the wind power curtailment problem as it can dynamically absorbs and releases energy. It also realizes the temporal transition of power and energy to effectively eliminate wind power curtailment caused by the system’s poor peak regulation ability.
Electrochemical energy storage exemplified by lithium battery has been applied in renewable power generation for its high controllability, modularity, energy density and conversion efficiency [5]. Multiple lithium battery energy storage demonstration projects have been conducted throughout China, including Zhangbei County in Zhangjiakou of Hebei Province (14 MW/63WMh lithium phosphate battery system), Baoqing energy storage station in Shenzhen (4 MW/16MWh lithium iron phosphate battery system) etc. To promote the development and application of lithium battery technology, the main task is to develop safe, lowcost and longlife lithium ion battery energy storages [6].
Researches on the modeling, control, and capacity allocation of lithium battery energy storage systems have been reported. In terms of energy storage modeling, a battery is composed of positive electrode, negative electrode and electrolyte. Its charge and discharge are electrochemical process and its voltage and current as well as the resistance of the active materials inside are affected by polarization, temperature and other factors [7,8,9,10]. The lithium battery will age and lose capacity due to ongoing charge and discharge in its life cycle, and therefore, the capacity assessment on lithium battery is necessary and conducive to the adjustment of its operating status in due time. As battery energy storage is generally expensive, it is thus a key issue to establish an effective battery model to analyze the technical and economic characteristics of energy storage system in new energy application.
In [11], a simplified constant power model is adopted which considers capacity limit but the influence of relevant parameters are neglected. Such simplified model is incapable of effectively verifying the application results of energy storage. In [12], a Thevenin’s equivalent circuit model is used but it results in significant errors due to the negligence of the influence of the state of charge (SOC) on model parameters. The modeling methods in [13,14,15] present the corresponding numerical relationship between the open circuit voltage, the resistance, the capacitance and the SOC. However, methods for estimating SOC are not included. In [16], a corresponding spatial model based on the equivalent circuit model of lithium iron battery is proposed where the model parameters are estimated using least square method with variable forgetting factors. However, all the abovementioned models fail to consider the capacity loss during the battery’s life cycle. In [17, 18], the cycle life of highpower lithium iron phosphate battery is studied. Experiment results indicate that battery aging leads to significant impedance amplification and capacity attenuation during the battery’s life cycle. Therefore, it is necessary to monitor the battery capacity to avoid damages caused by over charge and discharge.
In this paper, the state equations based on the equivalent circuit model of lithium iron phosphate battery are established. The rest of this paper is organized as follows. Section 2 describes the modeling of lithium iron phosphate battery based on the Thevenin’s equivalent circuit. In Section 3, experimental results under constant current and noload charging and discharging are provided to analyze the resistance and capacitance in the model under different SOC conditions. Capacity loss and available capacity based on different charging and discharging depths are also discussed. And the methods section extended Kalman filtering algorithm (EKF) to estimate the SOC of lithium battery caused by uncertain noise and verify the feasibility of the method. A simulation model of actual lithium batteries is developed using Matlab/Simulink in Section 4 and Section 5. Finally, Section 6 draws the conclusion.
Equivalent circuit of lithium iron phosphate battery
Lithium iron phosphate battery is a lithium iron secondary battery with lithium iron phosphate as the positive electrode material. It is usually called “rocking chair battery” for its reversible lithium insertion and deinsertion properties. A lithium iron phosphate battery is usually composed of positive electrode, negative electrode, separator and electrolyte, as shown in Fig. 1. The positive electrode is composed of lithium iron phosphate material and the negative electrode is a mixture of solid active materials (LixC6) and carbon granule. The electrochemical reaction occurs on the interface between the active particles of the positive and negative electrodes and electrolyte.
Lithium iron battery is actually a concentration battery whose charge and discharge are realized by the concentration difference of Li+. Reaction on the positive electrode is:
and reaction on the negative electrode is:
The overall equation is give as:
Battery energy storage is difficult to be mathematically modeled in detail with conventional physical models as it is an electrochemical reaction process. The accuracy and applicability of the model need to be balanced. Simple models are unable to reflect batteries’ characteristics while detailed models may significantly complicate the solution and application of control strategies. The equivalent circuit modeling is adopted for most of existing systems based on the dynamic characteristics and external characteristic performance of the batteries.
The external characteristics based equivalent circuit modeling is a simple and effective way for electrochemical battery modeling. The equivalent circuit model constructs a circuit network with voltage source, capacitance, resistance, inductance and other electrical components to simulate a battery’s external transient and steadystate characteristics. It has been applied widely in electrical engineering for its simplicity as the parameters can be accurately identify. It is convenient to integrate multiple elements and is suitable for mathematical analysis.
The Thevenin’s equivalent circuit model, which is the most typical battery model at present, is shown in Fig. 2.
As shown, U_{ b } is the output voltage of the lithium battery and U_{ oc } is the open circuit voltage representing SOC’s nonlinear function. C_{use} is the effective/available capacity, and R_{ s } is the battery’s ohmic resistance. The two RC links represent the electrochemical polarization and concentration difference of polarization during operation, respectively. η is the charge and discharge efficiency. The following state equations can be established according to the second order RC equivalent circuit model and Kirchhoff laws:
According to the equivalent circuit model, the left and right circuit networks are coupled and connected by SOC. The state equation indicates that the battery’s output voltage is determined by both open circuit voltage and polarization voltage, whereas the polarization voltage is directly related to its corresponding resistance, capacitance and current. The fundamental part of battery modeling is to estimate the available capacity (C_{use}), SOC, open circuit voltage, resistance and capacitance of the battery in real time.
Methods
Identification of parameters related to battery model
Based on Section 2, the parameters of the equivalent circuit model of lithium battery vary with load and external condition as its operating status is affected by discharge depth, cycle number, capacity loss and etc. Therefore, a more reliable model needs be developed by comparing experimental measurements and offline modeling to establish the relationships between different parameters.
The state of charge (SOC) is the most important influence factor among all the parameters of the resistancecapacitance model. Thus, determining the relationship between impedance parameters and SOC under the battery’s standard operation is the primary part of resistancecapacitance modeling. U_{ oc } and SOC of lithium battery have a stable relationship under normal operation conditions and is not affected by temperature. Thus, U_{ oc } can be considered to be solely determined by SOC and their relationship can be acquired with a fitting function.
The model’s resistance and capacitance parameters can be obtained by idling discharge and charge experiments. These experiments are under different SOCs (the initial value and step can be set at 0.2 and 0.02 respectively). The measured voltage and current curves are shown in Fig. 3.
The above waveform indicates that voltage drops sharply in a certain period (OA period) when the battery is discharged while the polarization voltage only changes slightly due to the voltage drop caused by the ohmic resistance (R_{ s }). Thus, it is possible to estimate the ohmic internal resistance inside the battery as the data changes. The terminal voltage then enters a class index variation period (AB period) due to the slow drop of polarization voltage (U_{ 1 }, U_{ 2 }) on the RC circuit, and such period can be considered as a zerostate response period which is described with the following equation:
where U_{ A } represents the voltage at A, a and b are the values obtained by curve fitting. To estimate the resistance and capacitance in the RC circuit (6) applies:
Equation (7) can be used to estimate the corresponding resistance and capacitance during charge and to obtain the resistance and capacitance values under different SOCs:
where the parameters a, b, t_{ 1 } and t_{ 2 } are the same as in (5).
The R and C values under different states can be acquired by conducting spline interpolation.
Assessment of battery’s available capacity
A battery has a limited service life. Because of the continuous charge and discharge during the battery’s life cycle, the lithium iron loss and active material attenuation in the lithium iron phosphate battery could cause irreversible capacity loss which directly affects the battery’s service life. A realtime capacity assessment on the battery can facilitate the correct recognition of the battery’s realtime status and the prediction on the battery’s status at certain time point in the future.
The relationship between the lithium battery operation at ΔSOC = x and the corresponding maximum charge and discharge cycle number Nm_{ ΔSOC = x } is fitted based on the experimental data. The fitting function is shown in (8) and is used to calculate the maximum charge and discharge cycle number of lithium battery under a certain charge and discharge circulation depth during its life cycle:
Figure 4 shows the maximum charge and discharge cycle numbers when the lithium battery operates at different ΔSOCs. It can be seen that the battery has different maximum charge and discharge cycles under different ΔSOCs, with the cycle number being the largest under shallow charge/discharge. The ratio between the cycles under full charge/discharge and under various ΔSOCs is defined as:
where N_{ m }(x) and N_{ m }(1) are the battery’s maximum cycle numbers when the charge and discharge depth equals x (x∈(0,1)) and 1, respectively.
Assuming the battery is charged and discharged for n times and the charge and discharge depths are x_{ 0 }, x_{ 1 }, … and x_{ n } respectively, the battery’s equivalent charge and discharge times can be obtained by adding up the equivalent charge and discharge coefficients under different charge and discharge depths as:
The battery’s state of health (SOH), also called the state of life which reflects the battery’s health status, is defined as the ratio between the nominal capacity and the capacity released by the battery discharging at a certain rate from full charge until the cutoff voltage as:
SOH varies from 0 to 100%, reflecting the battery’s health status and indicates the aging degree. A battery would have lost its functions and cannot perform charge and discharge when SOH is reduced to 20 to 30% [12].
The available capacity of lithium battery at moment t can be measured by:
where γ is a constant and refers to the maximum allowed capacity loss during the battery’s normal operation, i.e. the maximum SOH value. In this paper γ is set at 0.3.
State estimation on SOC with EKF algorithm
According to the previous sections, SOC is an important parameter influencing the safe and reliable operation of lithium battery, and accurate SOC estimation can facilitate the realtime adjustment of control strategy by operators.
The Kalman filtering algorithm is composed of state equation, output equation and the statistical characteristics of system process noise and observation noise. The required states or parameters are calculated according to the system’s state equation and output equation. This algorithm can perform optimal minimum variance estimation on SOC and facilitate the prediction and estimation on battery at a certain moment in the future. The conventional Kalman filtering algorithm is a state equation with a linear system while the extended Kalman filtering algorithm (EFK) is required for nonlinear models such as battery. This paper adopts EKF to conduct estimation on the battery’s realtime SOC state with the following procedure.
The Kalman filtering state equation and output equation of lithium battery based on its equivalent mathematical model is established. The state equation is given by:
and the output equation is:
For general patterns corresponding to the Kalman filtering state equation, let:
The realtime SOC can be estimated according to the flow chat shown in Fig. 5.
In Fig. 5, kk1 and k1k1 refer to the results of the previous state prediction and the optimal results of the previous moment, respectively. P(k), Q(k) and R(k) correspond to the covariances of X(k), W(k) and V(k).
The initial values must be selected for the Kalman filtering algorithm, and X(k) contains the three state parameters of SOC(k), U_{ 1 }(k) and U_{ 2 }(k). The SOC at the final moment of the last operation can be selected as the initial value. Since the battery has insignificant effect during the initial operation, the polarization voltage can be considered as 0. The covariances Q(k) and R(k) are defined as:
and they are considered as [15]
Results
The data is collected from experiments on domestic lithium iron phosphate batteries with a nominal capacity of 40 AH and a nominal voltage of 3.2 V. The parameters related to the model are identified in combination with the previous sections and the modeling is performed in Matlab/Simulink to compare the output changes between 500 and 1000 circles. Meanwhile, the SOC is estimated with EKF under certain current and voltage for verification.
The obtained relationships between the open circuit voltage and SOC from the measurement and fitted curve are shown in Fig. 6 where an obvious nonlinear relationship can be observed. The fitted curve is obtained using (17) and can accurately estimate the open circuit voltages under different SOCs.
The mathematical model for capacity assessment illustrated in section 4 is used for the discharge experiment on new and used batteries under the same experimental condition. The discharge curves in 500, 1000 and 1500 cycles are shown as Fig. 7. It indicates that, at the same discharge rate, the batteries’ voltages displays significant differences towards the end of the discharge period after different cycle numbers. The terminal voltage drops and the discharge cutoff voltage is reached most quickly after 1000 cycles.
Figure 8 further compares the variation of terminal voltage under different SOCs between measured and estimated ones with and without considering battery capacity loss after 1000 cycles.
It is shown that significant errors could occur in the adjacent period of the SOC estimation without considering capacity loss. It can also be seen that the batteries have significant output voltage variation under different SOCs which poses seriously challenges to the accuracy of the modeling and output voltage estimation.
Table 1 shows that calculation error varies under different SOC intervals, especially under low and high SOCs. Without considering the lithium battery capacity loss, the maximum calculation error is 11.2% after 1000 cycles, whereas the maximum error is reduced to 3.8% after the capacity loss is considered in the model. Therefore, the estimation of the current battery capacity is crucial and conducive for improving the battery modeling accuracy and correctly predicting the operation status.
Discussion
As the battery energy storage system presents “random” charge and discharge characteristics during application, the battery’s current may change significantly. In such cases, the conventional Ah counting method can result in significant errors while the extended Kalman filtering algorithm is a better choice. A more accurate SOC can be obtained quickly based on the established model according to the measured current and voltage.
Figures 9 and 10 show the battery’s partial operating condition and the corresponding voltage, respectively.
The changes of SOC calculated by EKF according to the changes of current and voltage is shown in Fig. 11 and is compared to measured values. As shown, the estimation results of SOC using EKF can adequately reflect the actual value and simulate the nonlinear dynamic characteristics of the battery. Therefore, the proposed method can be used for realtime estimation of SOC in energy management system.
Conclusions
A battery’s capacity reduces during the life cycle which affects the estimation of the battery status. This paper carries out a comprehensive study on cycle numbers, discharge depth, current and the capacity reduction during a life cycle. Methods for identifying parameters related to the lithium battery model based on the equivalent circuit are presented, and a mathematical model for battery capacity estimation is proposed. Method for estimating SOC based on the established mathematical model is presented to facilitate battery energy management and realtime status adjustment. The case studies highlight the followings:

(1)
Considering the capacity loss during the battery’s life cycle significantly improves the estimation accuracy on the realtime operation status and facilitates the adjustment of related states.

(2)
The extended Kalman filtering algorithm for SOC estimation and system discretization can be used for both computer programming and the establishment of energy management system.
References
Sahu, B. K., Hiloidhari, M., & Baruah, D. C. (2013). Global trend in wind power with special focus on the top five wind power producing countries. Renewable & Sustainable Energy Reviews, 19(1), 348–359.
Li, H., Eseye, A. T., Zhang, J., et al. (2017). Optimal energy management for industrial microgrids with highpenetration renewables. Protection & Control of Modern Power Systems, 2(1), 12.
Bo, L., Zhijia, H., & Hao, J. (2016). Wind power status and development trends. Journal of Northeast Electric Power University, 36(02), 7–13.
Xiaoming, Y., Shijie, C., & Jinyu, W. (2013). Prospects analysis of energy storage application in grid integration of largescale wind power. Automation of Electric Power Systems, 37(1), 14–18.
China Industrial Association of Power Sources. (2016). China Energy Storage Industry Report (2016)[R]. Shenzhen: CIBF.
Yi, L., Guojun, T., & Xiaoqun, H. (2017). Optimized battery model based adaptive sigma Kalman filter for state of charge estimation. Transactions of China Electrotechnical Society, 32(2), 108–118.
Xikun, C., & Dong, S. (2016). Research on lithiumion battery modeling and model parameter identification methods. Proceedings of the CSEE, 36(22), 6254–6261.
Chen, Q., Zhao, X., & Gan, D. (2017). Activereactive scheduling of active distribution system considering interactive load and battery storage. Protection & Control of Modern Power Systems, 2(1), 29.
Cuiping, L., Pujia, C., Junhui, L., et al. (2017). Review on reactive voltage control methods for largescale distributed PV integrated grid. Journal of Northeast Electric Power University, 37(02), 82–88.
Xiaoyu, L., Chunbo, Z., Guo, W., et al. (2016). Online parameter estimation of a simplified impedance spectroscopy model based on the fractional joint Kalman filter for life PO_{4} battery. Transactions of China Electrotechnical Society, 31(24), 141–149.
Yang, B., Jingmei, Y., Yingkai, Z., et al. (2017). A realtime rain flow algorithm and its application to state of health modeling for LiCoO_{2} lithiumion batteries. Proceedings of the CSEE, 37(12), 3627–3635.
Xikun, C., Dong, S., & Xiaohu, C. (2015). Modeling and state of charge robust estimation for lithiumion batteries. Transactions of China Electrotechnical Society, 30(15), 141–147.
Li, X., Huang, Y., Huang, J., et al. (2014). Modeling and control strategy of battery energy storage system for primary frequency regulation, International Conference on Power System Technology (pp. 543–549). IEEE.
Junhui, L., Lian, J., Cuiping, L., et al. (2017). Control strategy designed for converter of super capacitor energy storage system. Journal of Northeast Electric Power University, 37(04), 32–38.
Roscher, M. A., Assfalg, J., & Bohlen, O. S. (2011). Detection of utilizable capacity deterioration in battery systems. IEEE Transactions on Vehicular Technology, 60(1), 98–103.
Wei, S., Jiuchun, J., Yanru, Z., et al. (2015). Capacity fading and degradation mechanism of A123 battery. Power System Technology, 39(4), 899–903.
Jinlong, Z., Wei, T., Duankai, L., et al. (2017). Rate capacity modeling and state of charge estimation of LiFePO4 battery. Transactions of China Electrotechnical Society, 32(7), 215–222.
Zhou, X., Zhang, B., Zhao, H., et al. (2013). State of charge estimation based on improved Liion battery model using extended Kalman filter[C], IEEE 8th Conference on Industrial Electronics and Applications (pp. 607–612). IEEE.
Acknowledgements
This work is supported in part by Open Fund of State Key Laboratory of Operation and Control of Renewable Energy & Storage Systems (DGB51201700424), Industrial Innovation of Jilin Province Development and Reform Commission (2017C0172), and Jilin Provincial “13th FiveYear Plan” Science and Technology Project([2016] 88).
Author information
Authors and Affiliations
Contributions
JL contributed to the conception of the study and manuscript submission as a corresponding author. FG and GY contributed significantly to analysis and manuscript preparation. TZ revised the manuscript. JL helped perform the study analysis with constructive discussions and senior professional advice. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Li, J., Gao, F., Yan, G. et al. Modeling and SOC estimation of lithium iron phosphate battery considering capacity loss. Prot Control Mod Power Syst 3, 5 (2018). https://doi.org/10.1186/s4160101800780
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s4160101800780
Keywords
 Lithiumiron battery
 Battery model
 Capacity fading
 State of charge estimation