Adaptive State-of-Charge Estimation for Lithium-Ion Batteries by Considering Capacity Degradation

: The accurate estimation of a lithium-ion battery’s state of charge (SOC) plays an important role in the operational safety and driving mileage improvement of electrical vehicles (EVs). The Adaptive Extended Kalman ﬁlter (AEKF) estimator is commonly used to estimate SOC; however, this method relies on the precise estimation of the battery’s model parameters and capacity. Furthermore, the actual capacity and battery parameters change in real time with the aging of the batteries. Therefore, to eliminate the inﬂuence of above-mentioned factors on SOC estimation, the main contributions of this paper are as follows: (1) the equivalent circuit model (ECM) is presented, and the parameter identiﬁcation of ECM is performed by using the forgetting-factor recursive-least-squares (FFRLS) method; (2) the sensitivity of battery SOC estimation to capacity degradation is analyzed to prove the importance of considering capacity degradation in SOC estimation; and (3) the capacity degradation model is proposed to perform the battery capacity prediction online. Furthermore, an online adaptive SOC estimator based on capacity degradation is proposed to improve the robustness of the AEKF algorithm. Experimental results show that the maximum error of SOC estimation is less than 1.3%.


Introduction
Lithium-ion batteries (LIBs), with their high energy density, low pollution and low selfdischarge rate, have become one of the main energy sources of electric vehicles (EVs) [1,2]. The accuracy and reliability of battery management system (BMS) can ensure the safety of EVs during driving. The accurate estimation of state of charge (SOC) and state of health (SOH) can improve battery life and utilization, which is very important to ensure system performance and reliable operation [3,4]. Therefore, many algorithms for the accurate estimation of SOC have been actively promoted.
A variety of SOC estimation methods have been applied, including the ampere-time integral method [5], open-circuit voltage method [6], data-driven methods [7] and modelbased methods [8]. These algorithms have greatly improved the estimation of SOC. The ampere-hour integration method and the open circuit voltage (OCV) method are widely used in SOC estimation. The ampere-hour integral method is easily applicable to online SOC estimation; however, there are some errors in the current value due to the measurement errors during battery charging and discharging. As time progresses, the accumulated error will cause the SOC estimation accuracy to decrease continuously. OCV estimation is used to estimate SOC according to the mapping relationship between SOC and OCV. However, to obtain a stable OCV, it is necessary to withstand long-term static to eliminate the influence of the polarization effect, so it is not suitable for online SOC estimation. The data-driven methods do not reflect the reaction mechanism inside the battery. A black box model is used to describe the nonlinear relationship between SOC and its influencing factors. The

Battery Model and Parameter Identification
The dynamic voltage characteristics of lithium-ion batteries show mutagenicity and gradualness. The ECM selected in this paper is a second-order equivalent circuit model, as shown in Figure 1.
where U d , U c is the R d , R c two-terminal voltage, respectively, I L is the charge and discharge current of the battery module, U t is the battery's terminal voltage and U oc is the open circuit voltage (OCV).
Electronics 2021, 10, 122 3 of 17 sented in Section 4. The effectiveness of the proposed model is verified in Section 5, and the conclusions are shown in Section 6.

Battery Model and Parameter Identification
The dynamic voltage characteristics of lithium-ion batteries show mutagenicity and gradualness. The ECM selected in this paper is a second-order equivalent circuit model, as shown in Figure 1.  In order to realize the online estimation of system parameters, we use the recursive least squares (RLS) method. However, the parameters of the battery system change slowly, so the algorithm finds it difficult to obtain accurate parameters.
Therefore, adding the forgetting factor to the recursive least squares method can effectively solve this problem and realize the online estimation of battery parameters. The flowchart of the FFRLS algorithm is shown in Figure 2, and the algorithm is as follows: where e k is the zero-mean white noise, θ k is the parameter matrix and Φ k is the data matrix. In order to realize the online estimation of system parameters, we use the recursive least squares (RLS) method. However, the parameters of the battery system change slowly, so the algorithm finds it difficult to obtain accurate parameters.
Therefore, adding the forgetting factor to the recursive least squares method can effectively solve this problem and realize the online estimation of battery parameters. The flowchart of the FFRLS algorithm is shown in Figure 2, and the algorithm is as follows: where k e is the zero-mean white noise, k  is the parameter matrix and k  is the data matrix.

Data matrix
Gain and covariance matrix Prediction and Updating

Voltage Estimation
Voltage Error In order to obtain the parameters of the ECM, the state of the model is transformed into a mathematical form which can be identified by the RLS method: We use the Euler algorithm to discretize this, which is defined in Equation (4): where ω is the sampling time interval, and Equation (3) can be transformed as follows: where In order to obtain the parameters of the ECM, the state of the model is transformed into a mathematical form which can be identified by the RLS method: We use the Euler algorithm to discretize this, which is defined in Equation (4): where ω is the sampling time interval, and Equation (3) can be transformed as follows: Electronics 2021, 10, 122 We perform a z inverse transform on Equation (5) to obtain Equation (7): Since the sampling time T is very small, U oc is almost unchanged; that is, Therefore, Equation (7) can be simplified as The output matrix y k , parameter matrix θ and data matrix Φ can be achieved: Using the FFRL method to calculate θ, the parameters of the model can be obtained with Equation (6):

AEKF-Based SOC Estimation
In order to estimate SOC accurately, the AEKF algorithm with time-varying statistical characteristics is adopted in this chapter. Compared with the traditional Kalman filter, the AEKF algorithm takes innovation adaptive estimation as the core method, which can adaptively correct the system noise covariance and the measurement noise covariance. A discrete state space equation, which reflects the change of state variables such as SOC and voltage, is established.
where C is the current battery capacity, ω is the sampling period, τ c and τ d are the time constants of two RC loops, τ c = R c C c , τ d = R d C d and i(k − 1) is current of a sample point at time k − 1. The discharge is positive and the charge is negative; w(k − 1) is the system process noise. For any nonlinear discrete system, f (x k , u k ) is the system state equation and h(x k , u k ) is the observation equation of the system: where x is the n-dimensional state vector, u is the r-dimensional input vector, y is the mdimensional observed vector, υ k is the observed noise and ω k is the system noise, assuming that the noise mean is 0, the covariance is R k and Q k , respectively, and ω k and υ k are mutually independent. The equation of the linearized model is as follows: where The flow chart of the SOC estimation algorithm based on FFRLS and AEKF is shown in Figure 3.  Figure 3. Flowchart of the SOC estimation algorithm.

Sensitivity Analysis of SOC Estimation to Capacity Degradation
The battery capacity will decrease along with the time of using the battery, which is an important variable for SOC estimation. To analyze the effects of the degradation of capacity in SOC estimation theoretically, we established a capacity error model to illustrate the sensitivity of SOC estimation to capacity degradation:

Sensitivity Analysis of SOC Estimation to Capacity Degradation
The battery capacity will decrease along with the time of using the battery, which is an important variable for SOC estimation. To analyze the effects of the degradation of capacity in SOC estimation theoretically, we established a capacity error model to illustrate the sensitivity of SOC estimation to capacity degradation: where C 0 is the battery rated capacity, I is the battery current, η is the charge discharge efficient and soc 0 is assumed to be 1.
where C * is the capacity under the specified condition and SOC * is the remaining capacity under the specified condition.
where r soc is the absolute error in calculating SOC by the ampere-hour integral method. From the above error analysis, we can see that the variation of capacity will have a great influence on SOC estimation. Therefore, establishing the capacity degradation model is essential for SOC estimation. Meanwhile, the capacity, which was obtained from the accelerated life test, cannot meet the requirement because of the complex and varying situation. Therefore, whether the battery capacity can be accurately estimated in real time is related to the accuracy of SOC estimation.

SOC Estimator Based on Degradation Model
This section focuses on the prediction method of the maximum available capacity and the process of establishing the capacity degradation model. After comparative analysis, the capacity degradation model under dynamic conditions is selected to realize the updating of the available capacity. If accumulative error can be reduced, the prediction accuracy can be improved. Furthermore, the real-time capacity prediction can be added to the AEKF algorithm to improve the robustness of the SOC estimation effectively. The flow chart of the SOC estimation algorithm based on updating the battery capacity is shown in Figure 4. and the process of establishing the capacity degradation model. After comparative analysis, the capacity degradation model under dynamic conditions is selected to realize the updating of the available capacity. If accumulative error can be reduced, the prediction accuracy can be improved. Furthermore, the real-time capacity prediction can be added to the AEKF algorithm to improve the robustness of the SOC estimation effectively. The flow chart of the SOC estimation algorithm based on updating the battery capacity is shown in Figure 4.

Lithium-Ion Battery Degradation Model
When the battery is charged/discharged, an LIB will lose its capacity C  . Because of the complexity of the environment and the internal state of the LIB during each cycle, C  is independent and identically distributed, which is a random variable. Therefore, after t cycles, the accumulative capacity of the battery is degraded.   , x s t is the sum of C  per cycle. According to the central limit theorem, the capacity degradation of the battery under stress obeys the normal distribution: x s t is the cumulative capacity recession of the battery after t cycles under s stress level,   Thus, the capacity degradation equation of battery power is as follows:

Lithium-Ion Battery Degradation Model
When the battery is charged/discharged, an LIB will lose its capacity ∆C. Because of the complexity of the environment and the internal state of the LIB during each cycle, ∆C is independent and identically distributed, which is a random variable. Therefore, after t cycles, the accumulative capacity of the battery is degraded. x(s, t) is the sum of ∆C per cycle. According to the central limit theorem, the capacity degradation of the battery under stress obeys the normal distribution: where x(s, t) is the cumulative capacity recession of the battery after t cycles under s stress level, u(s, t) is the mean value of the capacity recession after t times cycle under s stress level and σ 2 (t) is the capacity degradation variance after t cycles under s stress level. Thus, the capacity degradation equation of battery power is as follows: where s is the stress type, h i (s) is constant, s can be the temperature T and discharge rate R d and i = 1, 2.

Lithium-Ion Battery Degradation Model under Static Conditions
As we assume that the charging mode of the vehicle is fixed and the charge rate is constant at a small rate, the effect of the charge rate on the capacity degradation of the lithium-ion battery pack is not considered in this paper. The following models of cell capacity degradation under the conditions of temperature and discharge rate are analyzed and studied based on the above theory. The coefficient of the decay function is as follows: where K is the fitting coefficient, F is the pressure and T is the temperature. Assuming Equation (20) can be transformed to The capacity recession model under the condition of temperature stress is obtained by Equation (21): The parameters G, F, h 1 (T) are obtained by fitting the capacity degradation data under the temperature parameter.
The capacity degradation of the battery at different temperatures and different charging and discharging rates is shown in Table 1. The fitting results of the capacity degradation during 300 cycles under different temperature stresses are shown in Figure 5.

SOC Estimation Results
To verify the accuracy of the proposed model, the LIB experiment was carried out. The LIBs were placed in a 25 °C environment, loaded with UDDS cycles. From Figure 9, (2) Battery capacity model under constant discharge rate From Equation (19), the capacity degradation model under the R d is where D, c , E, h 2 (R d ) are the constants; these can be fitted by the data of battery capacity degradation under discharge rate parameters. According to the data in Table 1, the fitting curve and the degradation equation under different discharge rates and battery capacity degradation can be obtained and are shown in Figure 7, and the parameters of capacity degradation equation can be obtained and are shown in Table 2. After fitting the decay parameters of different discharge rates, the coefficient curve of the degradation equation can be obtained and is shown in Figure 6, the equation of which is shown in Equation (27): (3) Capacity degradation under compound stress Because a normally working battery will be affected by high-temperature stress and a high discharge rate at the same time, when the temperature rises, the capacity degradation will be accelerated. The capacity degradation model under discharge rate stress alone will not accurately predict this degradation. In this paper, the accelerated degradation factor of temperature stress is used to reflect the accelerated effect of temperature. Based on this, the capacity degradation model under combined stress is created.
The accelerated degradation factor of temperature stress is as follows: From Equation (29) and setting T 1 = T 0 , T 2 = T, the battery capacity degradation under (T, R d ) stress is as follows: The coefficient of degradation is as follows: The capacity degradation model can be obtained from Equation (30): The capacity's accelerated fading factor under temperature stress can be determined with Equations (28) and (30).
The capacity degradation model can be obtained from Equations (30) and (33).

Lithium-Ion Battery Degradation Model under Dynamic Conditions
The capacity fading process under constant stress deviates greatly from the actual capacity fading process of battery power in actual use. Because there are two disadvantages of the degradation model under static conditions, the most important point is that battery power is not in a constant working situation, and so it is necessary to increase the discharge current to meet the power demand of electric vehicles under the situation of capacity degradation and the internal resistance increasing. In addition, according to the parameters of the battery power, the discharge rate tends to increase, which greatly affects the degradation rate of the power battery. Therefore, the capacity degradation model of battery power under dynamic stress parameters should be established to adapt the complex working situations, and this model should describe the actual capacity degradation process more accurately.
For the dynamic stress, because the temperature is a slowly changing parameter, battery temperature is collected every 10 min, the average of which is defined as T i ; because the discharge rate R d,I is a real-time variable parameter, the value of the battery discharge current is collected in real time, and the ratio of the average discharge current collected in this cycle to the battery's rated capacity is finally calculated as the R d,I value. Based on this, the capacity degradation model is created in this paper. u t (T, R d ) is the t times capacity degradation model and u t+1 (T, R d ) is the t + 1 times capacity degradation model, which is defined as Equation (35).
where u t+1 (T, R d ) is the total amount of recession after a recession at the (T, R d ), which is based on the last recession. Thus, u t (T, R d ) is the degradation of the battery that has occurred, and it is related to the stress level of the previous cycle, but the previous recession is not related to the (T, R d ) of this cycle.
The deformation formula from Equation (35) is as follows: where u t (T t , R d,t ) is the initial capacity degradation and u t+m (T t+m , R d,t+m ) is the capacity degradation after m cycles. According to the fitting coefficient of the accelerated life test, the degradation coefficient equation is as follows:

Dataset of Battery
In this paper, a lithium battery module was selected as the test object, which contained 12 series power battery monomers. Before grouping, these power batteries were strictly screened to ensure the consistency of the available capacity and internal resistance. The battery test platform consisted of a Digatron EVT 500-500 battery test system, a host computer, a temperature box and a Fluke data recorder for battery data acquisition. The battery charging and discharging equipment was the EVT 500-500, developed by a German company to test the battery power of electric vehicles, and the accuracy of voltage measurement and current measurement can reach 0.005. Furthermore, the maximum charging and discharging current can reach 500 A and the maximum voltage is 500 V. The battery test system is programmed by the upper computer, and the thermostat is used to adjust the current temperature. In order to analyze the hybrid power characteristics more intuitively, a Fluke data recorder was used, which can collect multiple sets of data according to requirements, and it can convert complex data into intuitive graphics and tables. The parameters of the used LIBs are presented in Table 3.  Figures 5-7. The capacity degradation was recorded and the degradation equation parameter was derived from the capacity degradation data at different discharging rates. The actual project recession was similar to the experimental recession. We could observe the non-linear characteristics of the battery recession in different conditions, and these experimental data could be used to establish a capacity degradation model and predict the actual application of the battery performance. The battery pack was placed in a constant temperature environment of 20 • C to obtain the UDDS (Urban Dynamometer Driving Schedule) loading profiles, as shown in Figure 8.

SOC Estimation Results
To verify the accuracy of the proposed model, the LIB experiment was carried out. The LIBs were placed in a 25 °C environment, loaded with UDDS cycles. From Figure 9,

SOC Estimation Results
To verify the accuracy of the proposed model, the LIB experiment was carried out. The LIBs were placed in a 25 • C environment, loaded with UDDS cycles. From Figure 9, we can see that the maximum absolute error (MAE) between the estimated terminal voltage and the reference value was less than 2%, which can explain the high accuracy of voltage prediction. Thus, the accuracy of the identification of battery model parameters was increased. we can see that the maximum absolute error (MAE) between the estimated terminal voltage and the reference value was less than 2%, which can explain the high accuracy of voltage prediction. Thus, the accuracy of the identification of battery model parameters was increased.
(a) (b) From Figure 10, we can see that the capacity prediction results were very close to the actual capacity, and the maximum capacity error was 1.5% during the 600 full battery cycles. Therefore, this indicates that the capacity degradation model can describe the actual capacity fading process more accurately and it can update the maximum available capacity in real time and accurately.  Figure 11 presents the result of SOC estimation in two states, and it shows that the absolute error of SOC estimation increases to about 6% if the capacity is not updated. After updating the capacity, the estimation error of SOC can be stabilized at about 0.5%. Therefore, it is necessary to incorporate the cell capacity degradation model into the repair procedure of the maximum available capacity in SOC estimation. Thus, when the capacity of batteries deteriorates, the capacity C of batteries should be updated in time to ensure the reliability of SOC estimation after battery aging. From Figure 10, we can see that the capacity prediction results were very close to the actual capacity, and the maximum capacity error was 1.5% during the 600 full battery cycles. Therefore, this indicates that the capacity degradation model can describe the actual capacity fading process more accurately and it can update the maximum available capacity in real time and accurately.
we can see that the maximum absolute error (MAE) between the estimated terminal voltage and the reference value was less than 2%, which can explain the high accuracy of voltage prediction. Thus, the accuracy of the identification of battery model parameters was increased. From Figure 10, we can see that the capacity prediction results were very close to the actual capacity, and the maximum capacity error was 1.5% during the 600 full battery cycles. Therefore, this indicates that the capacity degradation model can describe the actual capacity fading process more accurately and it can update the maximum available capacity in real time and accurately.  Figure 11 presents the result of SOC estimation in two states, and it shows that the absolute error of SOC estimation increases to about 6% if the capacity is not updated. After updating the capacity, the estimation error of SOC can be stabilized at about 0.5%. Therefore, it is necessary to incorporate the cell capacity degradation model into the repair procedure of the maximum available capacity in SOC estimation. Thus, when the capacity of batteries deteriorates, the capacity C of batteries should be updated in time to ensure the reliability of SOC estimation after battery aging.  Figure 11 presents the result of SOC estimation in two states, and it shows that the absolute error of SOC estimation increases to about 6% if the capacity is not updated. After updating the capacity, the estimation error of SOC can be stabilized at about 0.5%. Therefore, it is necessary to incorporate the cell capacity degradation model into the repair procedure of the maximum available capacity in SOC estimation. Thus, when the capacity of batteries deteriorates, the capacity C of batteries should be updated in time to ensure the reliability of SOC estimation after battery aging.

Hardware-in-the-Loop Validation
The BMS hardware-in-the-loop (HIL) simulation platform scheme designed in this paper is shown in Figure 12. In this scheme, the battery power in the form of a Simulink model was embedded into the SpeedGoat, a real-time simulation target. BMS communicated with the real-time simulation target machine through the Controller Area Network (CAN). The upper computer display terminal was programmed by LabVIEW, and the parameters were adjusted online and the data collected by Real-time Explorer of MATLAB software. The hardware in the loop simulation platform is shown in Figure 13. The BMS was provided with a 24 V voltage regulated power supply. The battery model was loaded into SpeedGoat by a Simulink compiler. BMS communicated with the simulator directly through CAN bus and was connected with the display terminal of the host computer through a USB-CAN card. The data were monitored in real time in the simulation process. The real-time simulation machine generated the virtual voltage and current as the virtual input of BMS. A background debug mode (BDM) background debugger was able to accomplish two functions including controller C code burning and online simulation debugging. When BMS was running, the registers and variables inside the BMS could be monitored online through the background debugger and online debugging functions of CodeWarrior software.

Hardware-in-the-Loop Validation
The BMS hardware-in-the-loop (HIL) simulation platform scheme designed in this paper is shown in Figure 12. In this scheme, the battery power in the form of a Simulink model was embedded into the SpeedGoat, a real-time simulation target. BMS communicated with the real-time simulation target machine through the Controller Area Network (CAN). The upper computer display terminal was programmed by LabVIEW, and the parameters were adjusted online and the data collected by Real-time Explorer of MATLAB software. The hardware in the loop simulation platform is shown in Figure 13. The BMS was provided with a 24 V voltage regulated power supply. The battery model was loaded into SpeedGoat by a Simulink compiler. BMS communicated with the simulator directly through CAN bus and was connected with the display terminal of the host computer through a USB-CAN card. The data were monitored in real time in the simulation process. The real-time simulation machine generated the virtual voltage and current as the virtual input of BMS. A background debug mode (BDM) background debugger was able to accomplish two functions including controller C code burning and online simulation debugging. When BMS was running, the registers and variables inside the BMS could be monitored online through the background debugger and online debugging functions of CodeWarrior software.

Hardware-in-the-Loop Validation
The BMS hardware-in-the-loop (HIL) simulation platform scheme de paper is shown in Figure 12. In this scheme, the battery power in the form model was embedded into the SpeedGoat, a real-time simulation target. nicated with the real-time simulation target machine through the Contro work (CAN). The upper computer display terminal was programmed by L the parameters were adjusted online and the data collected by Real-tim MATLAB software. The hardware in the loop simulation platform is shown The BMS was provided with a 24 V voltage regulated power supply. The was loaded into SpeedGoat by a Simulink compiler. BMS communicated w lator directly through CAN bus and was connected with the display termin computer through a USB-CAN card. The data were monitored in real tim lation process. The real-time simulation machine generated the virtual vo rent as the virtual input of BMS. A background debug mode (BDM) backg ger was able to accomplish two functions including controller C code burni simulation debugging. When BMS was running, the registers and variab BMS could be monitored online through the background debugger and ging functions of CodeWarrior software.  Based on the HIL validation platform shown above, the UDDS opera data were imported into the real-time target simulator. The simulator current and voltage of the battery in real time, then sent the voltage and c by a CAN bus and obtained the SOC estimation result by BMS calculation tial SOC value set as 80% and the actual SOC of the battery set as 90%, and UDDS cycles, the SOC estimation results and estimation errors are presen 14. From Figure 14, we can see that the SOC estimation converged to t quickly at the beginning of the experiment. The SOC estimation error wa for the whole experiment. This illustrates that the SOC estimator consid degradation achieves high accuracy. The trend of the SOC estimation curve as that of the reference curve, but over time, the SOC estimation in the HIL lag behind the reference value. We found that the SOC estimation was a operation rate of the single-chip microcomputer, the acquisition rate of vo Based on the HIL validation platform shown above, the UDDS operating condition data were imported into the real-time target simulator. The simulator calculated the current and voltage of the battery in real time, then sent the voltage and current to BMS by a CAN bus and obtained the SOC estimation result by BMS calculation. With the initial SOC value set as 80% and the actual SOC of the battery set as 90%, and running five UDDS cycles, the SOC estimation results and estimation errors are presented in Figure 14. Based on the HIL validation platform shown above, the UDDS operating condition data were imported into the real-time target simulator. The simulator calculated the current and voltage of the battery in real time, then sent the voltage and current to BMS by a CAN bus and obtained the SOC estimation result by BMS calculation. With the initial SOC value set as 80% and the actual SOC of the battery set as 90%, and running five UDDS cycles, the SOC estimation results and estimation errors are presented in Figure  14. From Figure 14, we can see that the SOC estimation converged to the true value quickly at the beginning of the experiment. The SOC estimation error was less than 3% for the whole experiment. This illustrates that the SOC estimator considering capacity degradation achieves high accuracy. The trend of the SOC estimation curve was the same as that of the reference curve, but over time, the SOC estimation in the HIL test began to lag behind the reference value. We found that the SOC estimation was affected by the operation rate of the single-chip microcomputer, the acquisition rate of voltage and current and the data transmission rate. Therefore, when estimating the SOC of the battery, the capacity of the battery should be updated in real time when the battery capacity declines. At the same time, online parameter identification is necessary to ensure the accuracy of estimation.

Conclusion
In this paper, a battery equivalent circuit model was established, the RLS with the forgettable factor was adopted to realize parameter updating and the AEKF algorithm is used for SOC estimation. To improve the accuracy of the AEKF SOC estimator, the sen- From Figure 14, we can see that the SOC estimation converged to the true value quickly at the beginning of the experiment. The SOC estimation error was less than 3% for the whole experiment. This illustrates that the SOC estimator considering capacity degradation achieves high accuracy. The trend of the SOC estimation curve was the same as that of the reference curve, but over time, the SOC estimation in the HIL test began to lag behind the reference value. We found that the SOC estimation was affected by the operation rate of the single-chip microcomputer, the acquisition rate of voltage and current and the data transmission rate. Therefore, when estimating the SOC of the battery, the capacity of the battery should be updated in real time when the battery capacity declines. At the same time, online parameter identification is necessary to ensure the accuracy of estimation.

Conclusions
In this paper, a battery equivalent circuit model was established, the RLS with the forgettable factor was adopted to realize parameter updating and the AEKF algorithm is used for SOC estimation. To improve the accuracy of the AEKF SOC estimator, the sensitivity analysis of SOC estimation to capacity degradation was presented. Therefore, an online adaptive SOC estimator based on the capacity degradation was presented, and the battery capacity model under dynamic conditions was established, which could predict the battery capacity in real time. After 600 charge/discharge cycles, the experimental result shows that the capacity estimation error could be limited to 1.5%. Thus, the battery capacity prediction could meet the accuracy and real-time requirements. Meanwhile, the maximum error of the SOC estimator with capacity updates decreased from 6% to 1.23%. After verification in the real BMS controller, the calculation results indicate that the maximum error of the algorithm was less than 3%, thus meeting the requirements for on-board application. Therefore, the proposed method can not only improve SOC estimation accuracy but also can predict the battery capacity online.

Funding:
The authors would like to express their thanks for the support of the Natural Science Foundation of China, Project: 5202291146.
Informed Consent Statement: Informed consent was obtained from all subjects involved in the study.

Data Availability Statement:
No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest:
The authors declare no conflict of interest.

Abbreviations
The following abbreviations are used in this manuscript: