1. Introduction
Lithium-ion batteries (LIBs) are an excellent energy storage device which play a pivotal role in supporting the transition from fossil-fueled vehicles to more environmentally friendly alternatives [
1,
2].
These types of batteries are integral components in various types of vehicles commonly referred to as “xEVs”. Among xEVs, LIBs find applications in both battery electric vehicles (BEVs), where the battery is the sole source of power, and hybrid applications, where the battery cooperates with an alternative source of power, as in fuel cell electric vehicles (FCEVs), hybrid electric vehicles (HEVs), and plug-in hybrid electric vehicles (PHEVs). Therefore, given LIBs widespread importance in all xEVs, the development of efficient and reliable battery control and monitoring strategies is critical [
3].
The battery management system (BMS) is the central control unit responsible for ensuring the optimal operation of the battery while protecting it against critical faults, including overcharging, overdischarging, overcurrent, cell short-circuits, and extreme temperatures. Furthermore, the BMS offers essential diagnostic capabilities, such as monitoring the battery state of health (SoH), and it plays a crucial role in performance management, which involves estimating the state of charge (SoC) of each battery cell, calculating the available energy and power, ensuring charges are balanced among the cells, and several more features [
4].
Thus, from a control system and machine learning perspective, a BMS needs to address several challenges. Among these, researchers have identified as critical problems the estimation of the battery SoC and SoH [
5], and the cell balancing [
6].
Various approaches have been explored to achieve satisfactory SoC estimation, as reviewed in [
7] and more recently in [
8]. These approaches range from simple methods, like look-up tables and ampere-hour integration, to more advanced techniques, such as model-based and data-driven strategies. When a model-based algorithm is employed to reconstruct the SoC, a proper estimation framework is required. Typical choices are Kalman-based filters, such as the extended Kalman filter (EKF), sigma point Kalman filter (SPKF), unscented Kalman filter (UKF) and dual Kalman filter (DKF), or particle filters (PFs). Finally, neural networks (NNs) are a popular alternative that involve training a black-box model with a dataset of battery measurements to predict the relationship between input parameters (such as current, voltage, and temperature) and the target state of charge (SOC) [
9]. Physics-based modeling offers a well-balanced solution between the overly simplistic rule-based approaches (e.g., Coulomb counting and voltage methods) and the more complex NN algorithms. While NN algorithms provide satisfactory results, they require large amounts of data and offer poor physical interpretability of the estimated parameters [
10]. One drawback of the physics-based approach combined with Kalman filtering is its demanding computational burden for real-time applications. However, with recent advances in hardware and estimation frameworks, several studies have shown promising results from a computational perspective as well [
11,
12,
13].
However, accurately estimating SoC remains an ongoing challenge, particularly for low SoC values and cell chemistries that exhibit a weak correlation between the open circuit voltage (OCV) and the SoC [
14].
The SoH estimation problem can be tackled using similar estimation frameworks. Lithium-ion battery degradation is an inevitable outcome of cycling, involving both mechanical and chemical degradation processes [
15]. The degradation of lithium-ion batteries is primarily evident through a reduction in the maximum remaining capacity and an increase in the internal ohmic resistance. Therefore, two failure thresholds typically define the end of life (EOL) of the battery for automotive applications: (i) a 100% increase in internal resistance and (ii) a 20% decrease in capacity [
16]. Thus, two different SoH values are defined: the first to account for the increase in the internal resistance
, and the second one for the drop in the capacity
Q.
where
and
are the internal resistances at the beginning and end of life, while
is the nominal capacity value at the beginning of life (BOL). Assuming
,
, and
are already known, the SoH problem resolves into estimating both
and
Q.
Finally, with respect to the balancing challenge, a passive balancing of the cell is the most widespread approach in current xEVs. However, implementing appropriate active balancing, which employs extra switching circuits to equalize the imbalances in the charge levels within the pack, has shown significant benefits in terms of system efficiency and lifespan extension [
17].
While the coupled problem of estimating the SoC and SoH has received significant attention in the literature (e.g., [
12,
18,
19,
20,
21,
22,
23]), as well as the integration of SoC estimation and active balancing (e.g., [
24,
25,
26,
27,
28,
29]), only a limited number of papers have presented results on integrating these three BMS functionalities within a comprehensive framework despite their close interdependence.
The authors in [
30] emphasized the effectiveness of adopting an SoH-conscious balancing strategy over traditional approaches, resulting in a notable 6% improvement in the cell aging rate. In [
31], the integration of active balancing with SoC and SoH algorithms is discussed. However, the employed balancing logic used is a simplistic rule-based approach, and the SoH estimation requires costly and faulty data for calibrating the coefficients of the proposed fading model. In [
32], a Tenergy ICR 18650-2600 lithium-ion battery is utilized to validate an integrated algorithm that considers SoC, SoH, and active balancing. This solution leverages battery impedance computation and a neural network model. The approach offers several advantages, including increased operation time, improved energy utilization efficiency, and prevention of over-discharging. However, data-driven algorithms require numerous training data, and retrieving online the impedance information might not be practical.
In this paper, an integrated framework which deals with the reconstruction of the SoC and SoH of each module of an automotive battery pack is presented, together with their active balancing. The algorithms are model-based and they have been designed in the spirit of being deployable on a real electronic control unit (ECU) and having a satisfactory balance between development cost and performance. The SoC estimation is conducted with an EKF, while the resistance and the capacity Q are computed by means of a linear filtering and a proportional total least square (PTLS) approach, respectively; finally, the cell balancing is performed via a model predictive control (MPC). Temperature dependency is not accounted for in this paper and ideal thermal management is considered (constant temperature hypothesis). Nevertheless, the proposed BMS control architecture remains valid in the case of variable temperature conditions. This can be achieved by incorporating the temperature dependency into the BMS internal predictive models.
The key contributions of this paper are the following:
a novel model-based control system which encompasses SoC and SoH estimations and the active cell balancing of an automotive system is presented, whereas these control problems are typically addressed separately;
the proposed development framework is presented in a step-by-step fashion, covering the entire process from data acquisition to modeling, calibration, and algorithm testing;
The research methodology illustrated in
Figure 1 outlines the steps followed in this paper to develop the proposed model-based BMS algorithms and a testing environment to validate their functionalities and produce the relevant results. First, an appropriate control-oriented model structure was selected from the literature to serve as the foundation for the BMS algorithms. Simultaneously, an extensive set of measurements were gathered from a real battery cell to ensure that its internal state was sufficiently excited to calibrate and validate the selected model. The same data were used to design and tune the plant model for the implementation of the closed-loop testing environment. Next, the proposed BMS algorithms were designed to satisfy the challenging control and estimation problem requirements (i.e., high SoC and SoH accuracy, satisfactory controller dynamic behavior, and robustness against modeling uncertainties and sensor noise). Then, a closed-loop testing environment was implemented to evaluate the BMS algorithms using realistic driving cycle profiles and including the capability to inject faults into the plant model at runtime, allowing for the assessment of the BMS behavior in the presence of degradation. The testing environment served as a prototyping platform to refine the algorithm design, ultimately converging on the solution which is presented in this article.
The rest of the paper is organized as follows: In
Section 2, the battery module model adopted by the control algorithms and the testing setup used for collecting the relevant experimental data are reported.
Section 3 describes the formulation of the implemented control algorithms and provides an overview of the simulation environment which was developed for testing purposes. In
Section 4, the results are presented and discussed. Finally, some conclusions and remarks complete the paper in
Section 5.
2. Battery Modeling
The proposed BMS solution integrates three model-based algorithms; therefore, it strongly relies on the design of a control-oriented model which strikes a satisfactory balance between model complexity and accuracy. This model will be utilized by the BMS algorithm to perform the control and estimation tasks.
For this reason, an equivalent circuit model (ECM) representation, which is an established choice in the literature for BMS applications [
33], was selected. ECMs leverage the electrical-circuit analogs to define a phenomenological approximation of the voltage response to various current stimuli.
In this paper, a special topology of ECM, named a Thevenin model [
34], was adopted. A Thevenin model consists of resistors and capacitors only, as shown in
Figure 2. A key advantage of Thevenin models is that they can easily be framed in a state-space representation, which enables the adoption of different mathematical methodologies and control theory approaches; therefore, they naturally fit with SoC and SoH estimation problems, cell balancing, and many more BMS functionalities.
The Thevenin model is represented by means of Equation (
2).
where
is the state of charge;
I is the current;
Q is the capacity;
V is the voltage;
is the open circuit voltage;
is the ohmic internal resistance;
,
, and
are the polarization resistance, the polarization capacitance, and the voltage drop in the i-th RC pair, respectively; and
n is the number of RC pairs. All the reported quantities are in S.I. units, except the capacity
Q, which is expressed in
.
In general, each of the parameters
,
,
is a function of the operating temperature and the actual SoC. For the sake of simplicity, we neglect the influence of the temperature, and we assume that only the OCV depends on the SoC, while the remaining parameters are constant. In particular, a polynomial correlation between the OCV and the SoC is assumed, as in [
35].
Equations (
2) and (
3) can be compacted in the state-space representation reported in Equation (
4), which is convenient for the modeling workflow and the control algorithms addressed in this paper
where
is the parameters vector, defined as
.
Therefore, the model structure is fully defined once both the number of RC parallels (i.e., n) and the order of the OCV polynomial (i.e., p) are set. Finally, the model design was completed by calibration of the parameters vector .
The ECM model structure presented in Equation (
4) is versatile, as the parameters vector
can be appropriately scaled to represent a wide spectrum of battery circuitry complexities, ranging from a single cell to an entire battery pack. In this study, Equation (
4) refers to a battery module known as a parallel-connected module (PCM), consisting of many parallel circuit branches, each accommodating different cells in series. The scalability property allows for designing and calibrating the ECM model using cell-level test data first, and then scaling up the parameters from cell level to module level to represent the characteristic of the PCM.
2.1. Lab Setup and Cell Data Acquisition Process
A real-time autonomous discharging and monitoring experimental bench, consisting of a host computer, a controllable electronic load, and a lithium-ion cell, were set up.
The host computer controls the entire testing procedure and enables data acquisition and storage. The selected programmable DC electronic load is a Korad KEL103, with a power capacity of 300 W, and a resolution of 0.1 mV and 0.1 mA. The adopted cell is an INR18650-20R lithium-ion cell, manufactured by Samsung, whose characteristics are outlined in
Table 1. This cell was selected due to its suitability for automotive applications and its widespread utilization within the literature [
36].
Throughout the testing procedure, the cell was secured within a holder and linked to the Korad KEL 103 device via a 14 AWG wire connection whose resistance was neglected in this study. The test bench was used to perform two different tests, namely, the Multiple Step Test (MST) and the Dynamic Stress Test (DST). Both experimental tests were conducted under ambient temperature conditions. The MST was adopted to capture the OCV cell characteristic. On the other hand, the DST was employed to identify the dynamic response of the system.
The MST entails the following procedure [
37]. The fully charged cell is discharged using a current train pulse. Each pulse ranges between 0 A and 2 A. The pulse width is 360 s, which is set to achieve a 10% drop in the SoC. Conversely, the relaxation time (i.e., when the current is null) lasts for 900 s allowing the cell to reach an equilibrium condition.
The DST, developed by the US Advanced Battery Consortium (USABC), emulates a dynamic discharge scenario that can be adjusted to meet the desired maximum demand in accordance with the specified performance requirements of the test samples [
38]. For the DST, the cell starts with an SoC value equal to 80%. Since the DST incorporates various current steps with different amplitudes and durations, which extensively excite the cell, it is a natural choice for parameters identification.
The current profiles for both tests are depicted in
Figure 3.
2.2. Model Design and Calibration
The model design and calibration process is illustrated in
Figure 4.
The procedure exploits the MST and DST results gathered through the test bench to obtain a cell model which achieves a satisfactory trade-off between accuracy and simplicity. To obtain a more representative model, three different cells were tested, and the recorded voltages were averaged. Consequently, for both tests, henceforth, we will refer to the test results as the average value derived from the three individual test results, which are shared in the
Supplementary Materials of this paper.
Firstly, the MST data were processed to model the OCV characteristic. Each data point right before a new pulse was extracted assuming that the measured voltage coincided with the OCV. This assumption holds since the ohmic effects are negligible given that the current is null and no transient effects are present. Furthermore, as discussed above, the shape of the MST input current was designed to induce a 10% drop in the SoC for each pulse. This allows for obtaining the OCV-SoC curve based on the experimental data. To determine the order
p of the OCV polynomial model, a series of statistical F-tests were performed with significance level
equal to 0.05 [
39]. Specifically, the approach begins by conducting an F-test between simple polynomials of order two (
) and three (
). If the null hypothesis is rejected, indicating that the higher-order polynomial significantly improves the model fit, a new F-test is conducted between polynomials of order three and four. This process continues iteratively until the null hypothesis is not rejected, which means that further increases in the polynomial order do not lead to significant improvements in the model. Following this procedure, the value of
p was set equal to 4. The OCV design phase is now complete since the OCV model is defined, which means that the order of the OCV polynomial
p is set, and a first guess of the related polynomial coefficients is determined.
The DST data were first employed for the identification of the electrical parameters and then to refine the entire model calibration through an optimization approach aimed at minimizing the root mean squared error (RMSE) between the measured voltage and the simulated one. In fact, a first optimization aimed at optimizing only the electrical parameters was run while keeping the OCV fixed. Afterward, a second optimization on the entire vector was run, using as the initial condition the outcome of the previous optimization. This procedure was conducted for different values of the RC circuits (i.e., n), from 1 to 4. Eventually, the value of n was chosen empirically and set to 1 since, among the evaluated ECMs, it struck the best compromise between RMSE performance and model complexity.
The full model calibration results are reported in
Table 2.
2.3. Plant Model
A higher fidelity plant model was developed to simulate the battery system to be monitored and controlled. This plant model was used solely for testing purposes, enabling validation of the proposed BMS functionalities in a closed-loop simulation environment, considering some modeling mismatch between the system under test and the control-oriented model. In general, a plant model is more detailed and accurate compared to a control-oriented one as it can accommodate higher complexity without being limited by constraints related to embedded applications.
For the sake of simplicity, an ECM representation was employed for the plant model as well. The plant is characterized by two RC parallels, and both the OCV and
are defined as polynomial functions of the actual SoC, while the remaining parameters (i.e.,
,
,
,
) are constant. The order of the polynomial correlation between the OCV and the SoC, defined in Equation (
3), was set equal to 6; while the order of the polynomial correlation between the
and the SoC, defined in Equation (
5), was set to 3.
The plant model parameters obtained through an optimization procedure, which utilized the same MST and DST data adopted for the control-oriented model calibration, are outlined in
Table 3.
The fitting results for both the plant and the control-oriented model are shown in
Figure 5.
2.4. From Cell Model to PCM Model Parameters Scaling
The cell-level parameters detailed in
Table 2 and
Table 3 were scaled to represent a realistic automotive PCM configuration, composed of 74 parallel branches, each hosting 6 cells arranged in series. In this paper, the following approach was adopted, which neglects any loss due to the connections among the cells [
40]. This operation solely scales up the physical quantities involved in the problem (e.g., currents and voltages) to an automotive-level application, and it does not affect the essential properties and results of the proposed algorithms.
The OCV correlation was multiplied by the number of parallels. This implies that the parameters for the control-oriented model and for the plant were all multiplied by 74. The resistances were multiplied by the number of series and divided by the number of parallels. Therefore, the parameters for the control-oriented model, and for the plant, were multiplied by . Conversely, the capacitances were divided by the number of series and multiplied by the number of parallels. Thus, the parameter for the control-oriented model, and for the plant, were multiplied by . Finally, the PCM total capacity was obtained by multiplying the cell capacity Q by the number of parallels (i.e., 74). With a slight refinement of notation throughout the subsequent sections of the paper, the same symbols adopted to denote the cell-level parameters were employed to represent the PCM-level parameters.
3. Simulation Environment
The control-oriented model, discussed in
Section 2, was leveraged to develop the three interconnected BMS functionalities presented in this paper (i.e., SoC and SoH estimators, and SoC active balancing). The BMS algorithms were tested in a simulation environment conforming to a typical BEV battery model, named the battery pack plant, consisting of a series connection of 16 PCM modules of 148 Ah, each monitored and controlled.
Hence, considering that the battery model consists of several modules, it is beneficial to introduce the following notation: When a generic quantity relates to the i-th module of the pack, the superscript i is applied (i.e., ). Conversely, the subscript m applied to the generic quantity represents a vector that encompasses the specified quantity for all the modules. Therefore, is defined as .
The simulation environment is illustrated in
Figure 6 and its functional components are detailed in the remainder of this section.
From a high-level perspective, the BMS algorithm receives as inputs the voltage and current measurements of all PCMs in the battery pack (i.e., respectively, the vectors and ) and produces, for all PMCs in the battery pack, the following outputs:
SoC estimations (i.e., );
SoH estimations, in the form of internal resistances and capacity estimations (i.e., and , respectively);
equalizing currents, , that are injected into each PCM by the balancing system to perform SoC balancing.
To accomplish this, the algorithms mentioned above are executed, at each discrete time instant k, in the following sequence:
the SoC estimation algorithm takes as inputs the present values of the voltage and current measurements (i.e.,
and
), the previous values of the internal resistance and capacity estimations (i.e.,
and
) and of the internal resistance estimation covariance (i.e.,
), and produces as outputs the PCMs’ internal state estimation (i.e.,
) and its estimation error covariance (i.e.,
). The SoC estimation adopts an extended Kalman filtering (EKF) technique, as detailed in
Section 3.1.
the SoH estimation (
Section 3.3) algorithm consists of two algorithms running in parallel:
the internal resistance estimation algorithm takes as inputs the present values of the voltage and current measurements (i.e.,
and
), the present value of the PCM’s internal state estimation (i.e.,
) and its estimation error covariance (i.e.,
), and produces as outputs the internal resistance estimation (i.e.,
) and its estimation error covariance (i.e.,
). Akin to SoC estimation, the internal resistance estimation algorithm also utilizes the extended Kalman filtering (EKF) technique, as detailed in
Section 3.3.1.
the capacity estimation algorithm takes as inputs the present values of the voltage and current measurements (i.e.,
and
), the present value of the SoC estimation (i.e.,
) and its estimation error covariance (i.e.,
), and produces as outputs the capacity estimation (i.e.,
) and its estimation error covariance (i.e.,
). The capacity estimation is performed via the proportional total least squares (PLTS) technique, as detailed in
Section 3.3.2.
the SoC active balancing algorithm takes as inputs the total battery pack current measurement (i.e.,
), the SoC and capacity estimation (i.e.,
and
, respectively), and produces as output the vector of the equalizing currents (i.e.,
). It utilizes the model predictive control (MPC) technique, as detailed in
Section 3.2.
3.1. SoC Estimation
The SoC estimation function consists of a bank of 16 parallel EKFs, one per PCM. Each i-th EKF receives as input the voltage and current measurements (i.e., and ), the internal resistance mean and covariance estimations (i.e., and ), and the capacity estimation of the respective PCM. Based on this information, the EKF reconstructs the mean and covariance of the i-th module hidden state, namely, and .
The EKF prediction and measurement functions are reported in Equation (
6), which is a variant of the PCM state-space model reported in Equation (
4). All the quantities in Equation (
6) refer to the generic i-th PCM; however, the superscript
i has been omitted for the sake of a simpler notation.
is the SoC function sample time. u is the 3 × 1 input vector, which is assumed to be a normally distributed random variable. The u mean contains the actual current I, and the estimations provided by the SoH function of the actual internal resistance, , and capacity, Q, which are periodically updated. On the other hand, the diagonal of the covariance matrix contains the current measurement variance , to account for an imperfect acquisition system, the estimated covariance , provided by the SoH function, and , which is set to a constant. w and v are white Gaussian noises with zero mean and diagonal covariance matrices equal to and , respectively. w was adopted to consider the modeling uncertainty; while the v white noise accounts for the voltage measurement error, and the value coincides with the voltage measurement variance.
Given the prediction model reported in Equation (
6), a well-established EKF algorithm [
41] was implemented for each observer of the bank.
The EKF prediction step is reported in Equation (
7), where the superscript “−” indicates the predicted estimates at time
k by utilizing the information of the measurements up to time
.
where
is the Jacobian of the generating function with respect to the input vector.
Equation (
8) is the update step, where both the mean and the covariance of the hidden state estimate are improved by leveraging the upcoming measurement
.
where
and
are the Jacobians of the measurement function with respect to the state and the input vectors.
This procedure allows for recursively obtaining an estimate of the state of each PCM.
3.2. SoC Active Balancing
The SoC active balancing system equalizes the charge levels of the individual modules within the battery pack. In fact, the SoC of one or more modules might diverge too widely as a result of inconsistencies due to different operating conditions, manufacturing discrepancies, or faults among the PCMs. The PCMs are selectively discharged or charged by controlling the individual cell equalizers (ICEs) of the balancing circuits, which can be arranged in a variety of topologies. The ICEs contain transistors or other commutable elements, which allow the actuation of the reference equalizing current . Therefore, the balancing control problem typically consists of a higher-level controller, which computes the vector, and a lower-level controller for the ICEs actuation. However, in this paper, the ICEs are assumed to be ideal and to instantly follow the reference .
Similarly to other works (e.g., [
42]), the control task of selecting at each time step the optimal
vector is accomplished via a linear model predictive control (MPC) technique [
43].
The MPC receives as input the estimates
and
from the SoC and the SoH functions to account for both charge and health inhomogeneities among the modules to obtain the optimal control strategy. At each time step, the MPC resolves the following quadratic optimization problem:
where:
W and R are symmetric positive definite weight matrices;
is the setpoint vector over the prediction horizon, which is equal to the expected value of the predicted state of charges when ;
and are the prediction and the control horizons, respectively;
is the sampling time of the MPC controller;
is a diagonal matrix collecting the estimations of the total capacities of the PCMs;
is a vector of 16 identical components equal to the instantaneous battery current demand;
is the topology efficiency matrix, which accounts for the circuitry topology and the coulombic efficiency of the PCMs. For this application, a bidirectional adjacent topology was considered and, consistent with the models presented in
Section 2, a unitary coulombic efficiency was adopted;
is a diagonal matrix containing the maximum admissible values of the currents in each ICE;
is the MPC control vector at time k, which comprises the normalized equalization currents with respect to their maximum admissible values through the ICEs. Each element of can assume both positive and negative values since the currents can flow through the ICEs both ways.
At each control step, the control trajectory
is computed by solving the optimization problem of Equation (
9) in MATLAB, utilizing its built-in quadratic programming solver. However, following the MPC paradigm, only the first element of the sequence is applied (i.e.,
) and the rest is discarded; then, at the next time step, measurements are updated and the same procedure is followed again using the old control trajectory as the initial condition. It is important to highlight that the normalized equalization current
is rescaled by multiplying it with the maximum allowable current to produce the actual
that is eventually applied to the battery pack plant.
3.3. SoH Estimation
The SoH estimation function is responsible for outputting the total capacity and resistance estimates and for all PCMs. These two estimation objectives were treated separately, and different algorithms were utilized to address them.
3.3.1. Internal Resistance Estimation
The internal resistance of each individual PCM was computed by a bank of independent linear filters or observers. Each i-th filter needs to provide an estimate of the expected value of the related PCM internal resistance
and of its variance
. The
i-th filter receives the following as input: the measurements of the current and the voltage for the respective module, namely,
and
; an estimate of the state of the PCMs (i.e.,
and
), and their variances
and
provided by the SoC estimation function. Each filter leverages the prediction and measurement correlations reported in Equation (
10) to update the actual internal resistance estimation. For the sake of a simpler notation, the superscript
i is omitted from the filter equations below.
is a normally distributed process noise, while
v was introduced in Equation (
6) to model the voltage measurement error.
The observer prediction step is
To report the filter update step, it is convenient to introduce the following symbols to indicate the expected value and the variance of the term
. For the expected value, the symbol
is adopted; while the symbol
is used for the variance. Both these quantities can be computed analytically, leveraging both the
normality and the polynomial structure of the OCV correlation. Therefore, the update step is equal to:
where
is the variance associated with the current measurement error.
3.3.2. Capacity Estimation
The total capacity of each PCM was computed by using a bank of estimators implementing the Proportional Total Least Squares (PTLS) algorithm [
44], which is a variant of the Total Least Square (TLS). Every i-th PTLS outputs an estimate of the mean of the respective total capacity, namely,
.
Least-square techniques consider two physical quantities,
and
, which relate to each other by a linear regression model:
The objective is to identify the parameter
by using the observations of
and
. The ordinary least-square technique assumes perfect knowledge of
and only
to be uncertain and noisy. On the other hand, TLS techniques attempt to account for uncertainty in the observation of both variables. This is carried out by solving the following optimization problem:
where
and are elements of an N-sized dataset containing the observations of and , respectively;
and are the variances of the noises affecting the observations and ;
is the optimization problem variable;
and are the final optimized mapping of the data to the hyperplane ;
is the forgetting factor.
The PTLS algorithm peculiarity is to move the further assumption on the optimization problem of Equation (
14) by assuming that a constant factor
exists such that
for all
j.
For the capacity estimation problem, the general linear regression expression in Equation (
13) was particularized by rearranging the Coulomb counting equation as reported in Equation (
15).
where
is the sample time at which measurements are acquired and
is a design parameter.
The PTLS is a suitable choice for embedded algorithms since its solution can be found recursively, and it does not require an excessive computational footprint. The solution to the PTLS was derived from [
45] and is reported in
Appendix A.
In general, the challenge of capacity estimation lies in its sensitivity with respect to biases in the SoC. Unfortunately, in practice, the SoC information is inevitably biased since it is reconstructed by an observer and no direct measurement can be obtained. Therefore, several heuristics can be employed to improve the PTLS robustness [
46]. In this paper, the capacity estimation is triggered only when the difference between
and
are, respectively, greater and lower than the two calibratable thresholds. Furthermore, the output of the PTLS was appropriately filtered to account for the slow dynamic of the degradation process, and saturated within a reasonable range of values, namely,
and
. Specifically, leveraging the intrinsic monotonicity of the
Q evolution given the degradation, when a reliable estimate is obtained, the
value can be replaced by the actual capacity estimation. This strategy ensures that the
limit remains consistent with the actual performance of the battery, and prevents capacity overestimation, which might lead to BMS suboptimal performance.
4. Results and Discussion
The simulation environment described in
Section 3 was tested under two different driving scenarios. The first scenario aims at assessing the BMS performance under nominal and healthy battery conditions. On the other hand, the second scenario focuses on the BMS algorithms response during an inhomogeneous degradation of the battery modules from their nominal values (at the beginning of life) up to their failure (end of life).
During both scenarios, the battery current demand
follows a sequence of consecutive WLTP (Worldwide Harmonised Light Vehicle Test Procedure) regulatory cycles, where a single WLTP is reported in
Figure 7. The calibratable parameters of the BMS algorithms were tuned empirically, and their values are reported in
Table 4. The current and voltage measurements for each module were corrupted with some additive white noise whose power density was chosen to obtain a
ripple for each signal. Finally, the computational burden of the proposed BMS algorithm shows promising results for embedded applications, exhibiting an execution speed 2.7 times faster than real-time when running on an i5-10210U laptop. This is a positive result, especially considering that computational efficiency is not the primary focus of this paper and no specific optimizations were performed from either a software or hardware perspective.
4.1. Scenario I
The battery demand profile, , consists of ten identical concatenating WLTP cycles. The actual initial SoC values of each PCM were set between and . Finally, no degradation was considered; therefore, the internal resistances and capacities of the battery plant modules are equal to their nominal values throughout the whole simulation.
The effectiveness of the SoC estimation functionality is reported in the top-left subplot (a) of
Figure 8. The SoC estimates, provided by the EKFs, were initialized to
for all the modules, while the actual SoCs varied from
to
, as stated above. The (a) subplot shows the observers rapidly compensate for the discrepancy in the initial conditions and, after 10 s, the errors settle to a value lower than
. The estimation error does not converge to 0 due to the presence of noise in the measurements, the system non-linearities, and the modeling mismatch between the EKFs’ internal control-oriented model and the plant.
The top-right subplot (b) of
Figure 8 reports the actual SoC values of each PCM. This plot highlights that the active balancing successfully distributes the level of charges among the modules which have been initialized with different SoC values. As a result, the active balancing manages to achieve a low dispersion of the SoCs during the entire scenario. The MPC control action (i.e., the equalization currents) is reported in
Figure 9.
Figure 9 reports the equalization currents profiles for the first 400 s of simulation, for the first three modules, which were initialized with a high, low, and average level of SoC (i.e.,
,
, and
). As expected, the MPC applies a sustained positive and negative control action for the first and second modules since they need to give away and accept charges, respectively. The bottom-right subplot of
Figure 9 reports the SoC trajectories of the first three modules and the MPC activation control band. In fact, the MPC is activated only when the difference between the highest and lowest SoC is higher than
. It is interesting to observe that the MPC successfully drives the SoCs population on the edge of the acceptance control band and it is activated as soon as the band is violated.
Finally, subplots (c) and (d) of
Figure 8 report the response of the SoH function of the proposed BMS system. The (c) subplot shows the capacities relative errors, which do not exceed
for all the modules. To achieve this, the estimated capacities are processed using a first-order linear filter with a time constant of 500 s, and their upper limits are saturated to the nominal value of 148 Ah. This filtering approach facilitates the convergence of the SoC estimators while effectively limiting the capacity error that could potentially lead to algorithm divergence. This constraint is particularly crucial to improve the overall system stability and accuracy due to the closed-loop relationship between the SoC and SoH observers.
The last subplot (d), displays the evolution of the PCMs internal resistances relative errors, which do not exceed . It is evident that their evolution is a function of the actual SoC of the system. This aligns with expectations, considering that the observers utilize a control-oriented model which, in contrast to the plant model, does not account for the correlation between the SoC and .
4.2. Scenario II
The second scenario comprises five consecutive driving cycles, each consisting of ten concatenated WLTPs. At the start of each cycle, the SoCs of the PCMs are reset to 85%, and instantaneous degradation is applied to each battery module. The degradation is modeled as a stochastic process, causing variations in both the capacity and internal resistance among the modules. The degradation increments for each cycle follow a uniform distribution with a fixed minimum and maximum, as detailed in
Appendix B. The bounds of the uniform distributions were designed so that, on average, both the capacity and internal resistances reached their end-of-life values (i.e., a reduction of 20% in capacity and an increase of 100% in internal resistance) during the fifth (last) cycle. To robustly support the SoH estimation results, the same testing conditions were replicated for additional regulatory cycles (i.e., FTP-72 (UDDS)—Emission Test Cycles and SFTP-US06—Emission Test Cycles). These results are detailed in the
Supplementary Materials, while only the results related to the WLTP are presented and discussed in this section.
Figure 10 presents the results of the capacities and internal resistances tracking obtained from the proposed SoH functionality for the whole simulation. The figures report the results for two selected modules for the sake of visualization. On the other hand,
Table 5 and
Table 6 report the SoH estimation error for all the modules.
Figure 10 shows the satisfactory performance of the SoH functionality as it tracks the decreasing capacity and increasing internal resistance trends during degradation. It is important to note that the degradation is imposed instantaneously at the beginning of each cycle, presenting a significant challenge to the SoH algorithm, while in real-world conditions, battery degradation typically occurs as a slow drifting process. The capacity estimation exhibits a slow convergence to its steady-state value, which settles within a
error band. Furthermore, once the capacity estimation reaches a quasi-steady value, which means it lays within a calibratable band for a sufficient amount of time, the upper limit of capacity saturation,
, is updated with the actual estimation.
On the other hand, the
dynamic exhibits a much quicker response as it captures not only the (generally) slow degradation process but also its correlation with the actual SoC. Finally, the SoC observers demonstrate satisfactory behavior, and their estimation errors are reported in
Table 7.
Figure 11 visualizes a correlation analysis between the actual internal resistance and capacity degradation with respect to the
,
, and
estimations. The figure illustrates how estimation performance decreases as battery degradation increases. The RMSE of the
estimation increases from 0.89% to 1.3%, while the average steady-state
error increases in magnitude from 0.47% to 2.0%. On the other hand, the RMSE of
estimation is not significantly affected by battery degradation as the BMS manages to confine the estimation error within a 0.48 mΩ band under all conditions.
The data reported in the subplots of
Figure 11 can be grouped into five clusters of points, each corresponding to a different charge–discharge cycle. For each cluster, both the
and
errors strongly correlate with the actual capacity degradation; in particular, a higher
Q value corresponds to a poorer estimation. Conversely, the actual internal resistance degradation exhibits a much more dispersed and uncorrelated distribution with respect to the estimation errors in the single clusters. Finally, a discussion on alternative SoH estimation frameworks is reported in
Appendix C.
5. Conclusions
This paper presents an integrated framework designed to address the development of SoC and SoH estimators, along with an active balancing functionality tailored for BMS in BEV applications. The proposed framework includes three model-based algorithms that are dynamically coupled. Specifically, the active balancing algorithm utilizes real-time information of both the actual SoC and SoH to optimize the distribution of charges through a linear MPC approach. The SoC and SoH are interconnected in a closed-loop configuration, allowing for effective coordination between the two. The state of charge estimation is achieved through an EKF methodology, providing accurate and reliable SoC reconstruction. On the other hand, the state of health functionality responsible for reconstructing the internal resistance adopts a Kalman-based linear filter, while the capacity estimation leverages a PTLS (proportional total least squares) approach.
The algorithms were tuned using laboratory data collected from three Samsung INR18650-20R lithium-ion cells. The BMS functionalities were validated through simulation by integrating the proposed algorithms with a battery pack model consisting of sixteen modules to be controlled. The strong coupling between the SoC and the capacity observations poses a significant estimation challenge which is exacerbated during transient conditions. This problem was effectively addressed by incorporating in the original PTLS algorithm some fundamental prior information about the degradation process via saturation, and by proper filtering.
The results demonstrate satisfactory and consistent behavior across the various testing scenarios. Notably, the BMS functionalities were validated under both nominal conditions and in the event of non-uniform modules degradation, from the battery’s beginning of life to its end of life. The EKF strategy, employed to estimate the modules’ SoC, effectively maintains an estimation error below under all conditions. Similarly, the SoH functionality ensures the average estimation errors for and Q remain below and , respectively. Finally, the MPC responsible for the active balancing task successfully keeps the dispersion of the SoCs population within a desirable range, and it coherently reacts to charge and health imbalances in the battery pack.