1. Introduction
Energy storage systems crucially contribute to the success of current energy revolutions from fossil fuels to clean energies, which aims at reducing greenhouse emissions [
1]. Energy storage systems are developed in power grids to improve the reliability of utilizing renewable energies by mitigating their intermittency in energy generation. Also, energy storage systems are capable of storing surplus energy generation and fulfilling excess energy demand, thus optimizing operations in power grids. Energy storage systems are also adopted in electric vehicles serving as an alternate energy supply from fossil fuels. Among energy storage systems available on the market, lithium-ion battery storage systems are appealing due to their modular capability for various power and energy needs; meanwhile, they are known for swift power demand response, high energy density, and low degradation rate [
2]. To safely and reliably employ lithium-ion battery energy storage systems in power grids and electric vehicles is a critical task for energy storage management systems, which depends on accurate real-time battery State-of-Charge (SOC) estimation.
Real-time battery SOC estimation algorithms are roughly categorized as (1) model-free algorithms, (2) data-driven algorithms, and (3) model-based algorithms [
3]. The model-free SOC estimation algorithm, i.e., the Coulomb counting approach and the voltage-based approach, estimate the SOC of the battery using the direct measurements of the battery, i.e., current and voltage [
4]. The light computation demands allow both algorithms to be applied in real-time estimation. However, their estimation accuracy relies on predetermined variables such as accurate initial SOC value, battery capacity, or the SOC to open-circuit voltage profile [
5]. Data-driven algorithms, e.g., to name a few, fuzzy networks, neural networks, and machine learning algorithms, are also gaining attention in real-time estimation. These algorithms estimate the SOC of batteries using pre-trained models. The parameters of the pre-trained models are learned from the battery current and voltage data. However, a huge battery dataset is necessary to avoid biased parameter learning and the computation effort of training is proportional to the model complexity [
6].
Model-based SOC estimation algorithms are also appealing in battery SOC estimations. The battery model, i.e., the battery electrochemical model and the battery electric circuit model, are developed based on the battery dynamics, meaning that the battery models are developed with physical meanings. SOC estimation algorithms using the electrochemical model are accurate since the battery dynamics are described in partial differential equations [
7]. However, detailed battery modeling is computationally demanding, making their real-time estimation a concern. In comparison, model-based battery SOC estimation algorithms using the electric circuit model are appealing in real-time battery SOC estimation [
8]. The battery electric circuit model formulates battery dynamics by constructing an electric circuit with multiple electric components. This linear model is known for its simplicity in equation formulation. The light computation effort allows it to be implemented for real-time battery SOC estimation thus ensuring reliable and safe lithium-ion battery energy storage operation. Along with the ease of implementation, this battery model renders decent battery SOC estimation accuracy, fulfilling most industrial requirements in SOC estimation accuracy [
9]. The key to achieving the goal of accurate SOC estimation in various operating cases using the battery SOC estimation algorithms is to model the battery nonlinear dynamics. To do so, parameter identification approaches are adopted along with the SOC estimation algorithms to identify and update the highly nonlinear battery dynamics [
10].
Popular parameter identification approaches include the sliding window least-square fitting method and the recursive least-square fitting method [
11]. The sliding window least square fitting method outputs the best-fitted battery’s input-to-output relationship with the smallest sum of the squared residuals. To improve the computation efficiency, a sliding-moving window approach is adopted. In detail, the battery parameters are identified using a window of the latest battery data. The performance of this method, however, is limited in the presence of measurement noises [
12]. Although increasing the sliding window size helps filter the measurement noises, the large window size can increase the computation complexity in matrix arithmetic, burdening the battery management system with low computation power. The recursive least square fitting method is another popular parameter identification approach. It recursively adapts its identification and minimizes the weighted linear least squares cost function. The performance of this method in general operating conditions relies on carefully selecting the forgetting factor, which increases the algorithm design complexity [
13]. The robustness of both parameter identification approaches against measurement noises is an overlooked issue that is worth investigating [
14,
15].
Improving the capability of the sliding window least-square fitting method against the measurement noises is a key concern of in this paper. The sliding window least square fitting method identifies the battery parameters erroneously in the presence of measurement noises [
16]. With the inaccurately identified battery model, the battery model-based SOC estimation algorithm renders inaccurate estimations. Popular measurement filtering algorithms suited to real-time estimation include the sliding average filter, the double sliding average filter, the sliding median filter, and the low-pass filter [
17]. The sliding average filter and the sliding median filter smooth the battery data using the mean and median data from a window of battery data, respectively. These filters are effective in smoothing the data, so to achieve the goal of rejecting measurement noises [
18]. The smoothing performance can further improve by cascading filters, e.g., double sliding average filter [
19]. However, designing the proper window size to filter the measurement noise without affecting the battery dynamics for identification is an issue that requires careful design.
The low-pass filter is an alternative solution to reject measurement noises from battery data. It is designed in the frequency domain attempting to filter high-frequency compound measurement noises. Typical low-pass filters include the Butterworth filter, the Chebyshev I and II filter, the Elliptic filter, and other advanced filters [
20]. Among these filters, the Butterworth low-pass filter is well-known for its ease in filter design and no extra ripples in both the passband and stopband. These features make it suit for measurement noise rejection in battery applications. The variables to design this filter are the filter order and the cutoff frequency. Low filter order is usually preferred due to the design simplicity [
21]. The cutoff frequency is another key determinant of the filtering performance which requires careful design. The cutoff frequency of the Butterworth low-pass filter can be designed based on the cutoff frequency of the battery system [
22]. However, the corner frequency of the battery system is unknown in most cases and can be falsely determined due to the presence of measurement noises, especially for complicated energy storage systems.
To overcome the research issue mentioned above, this paper proposes an adaptive cutoff frequency design. The proposed work made the following contributions.
The proposed algorithm adapts the cutoff frequency of the Butterworth low-pass filter along with the lithium-ion battery operations thus ensures parameter identification accuracy in various operating conditions.
The proposed algorithm provides an initial cutoff frequency value for the Butterworth low-pass filter through the cutoff frequency screening procedure, thus fastening the convergence of the cutoff frequency adaption.
The algorithm proposed in this paper effectively improves the parameter identification outcome in cases with commonly observed measurement noises. The reduced modeling error helps ensure SOC estimation accuracy using model-based algorithms.
The organization of this paper is structured as follows.
Section 2 formulates the cutoff frequency issue in this paper.
Section 3 proposes an adaptive cutoff frequency design algorithm. The design procedure is explained and summarized.
Section 4 examines the performance of the proposed algorithm in various scales of measurement noises. The proposed work is finally concluded in
Section 5.
3. Adaptive Butterworth Low-Pass Filter Design
This Section proposes an adaptive cutoff frequency design algorithm for the Butterworth low-pass filter. The objective of this algorithm is to determine the cutoff frequency of the Butterworth low-pass filter using “noisy” load current and terminal voltage data with measurement noises that existed. This proposed algorithm contains two critical phases: firstly, to determine the initial cutoff frequency without the prior knowledge of the time constant of the lithium-ion battery; secondly, to adapt the cutoff frequency of the Butterworth low-pass filter along with the operation of the battery.
3.1. Butterworth Low-Pass Filter
Butterworth low-pass filter is famous for its flat filtering performance in both the passband and the stopband with no ripples. The Butterworth low-pass filter also appeals to real implementation due to its simplicity in filter design. In detail, two variables related to the Butterworth low-pass filter that is to be determined, i.e., filter order and cutoff frequency . Other variables related to the typical low-pass filters do not have to be designed, e.g., transition band, passband and stopband frequency, passband ripple, and stopband attenuation. With these features, the Butterworth low-pass filter is ideal to reject the measurement noises of the lithium-ion battery for accurate parameter identification.
The frequency response of the
nth Butterworth low-pass filter is formulated as follows.
where
n,
f, and
are the order, the operating frequency, and the cutoff frequency of the Butterworth low-pass filter, respectively, and
and
are the input and the output data of the Butterworth filter, respectively. The low-pass filter with higher order has a smaller transition band and thus has better filtering performance; however, it will increase the difficulty in hardware implementation. Considering the potential of implementation, a second-order Butterworth low-pass filter is selected in this paper.
The cutoff frequency
of the Butterworth low-pass filter is critical to parameter identification by rejecting the high-frequency measurement noises and avoiding inaccurate
pair identification [
22]. To achieve this objective, the cutoff frequency
was suggested to be set greater than half of the time constant
of the lithium-ion battery, i.e., the time constant of the exponential voltage dynamic as described as the voltage
across the
-
pair in the battery electric circuit model.
where
and
are the angular cutoff frequency of the Butterworth low-pass filter and the battery, respectively and
is the corner frequency of the lithium-ion battery:
Though the cutoff frequency of the Butterworth low-pass filter can be properly defined based on the time constant of a specific battery, the time constant of this battery is unknown and hard to be determined due to the existence of the measurement noise; therefore, determining a proper cutoff frequency of the filter is the research focus of this paper.
3.2. Initial Cutoff Frequency Screening
A proper cutoff frequency design is critical to the success of the measurement noise rejection. The design setting the cutoff frequency of the filter based on the time constant of the battery can effectively prevent one of the poles in the transfer function: from being wrongly identified. However, the time constant of the lithium-ion battery is unknown in the Butterworth low-pass filter design process. Also, the existence of high-frequency measurement noise can affect the filter design. To overcome this issue, an adaptive cutoff frequency design algorithm is proposed to filter the measurement noises.
The first phase of designing the cut-off frequency of the Butterworth low-pass filter is to determine the initial cutoff frequency
. In detail, a fixed window size (from
to
k) of load current and terminal voltage is used. It is noted that this set of data contains measurement noises since they are measured by sensors. The next step is to filter this set of data by adopting the Butterworth low-pass filter with cutoff frequency screening. After the filtering, the filtered data
and
is then used to identify the coefficients of the transfer function of the battery electric circuit model, and the fitting performance is analyzed by comparing their mean square error
.
where
l is the number of the data samples used in the least square regression method,
is the measured terminal voltage containing measurement noise in the time stamps ranging from
to
k, and
is the fitted terminal voltage data in the same time window.
To determine the proper initial cutoff frequency for the Butterworth low-pass filter, the mean square error
after cutoff frequency screening is compared and the Elbow point is pinpointed. The small cutoff frequency used may filter the battery system dynamics, leaving distorted signals dominated by low frequencies, e.g., DC bias. As a result, the mean square error
of the least square method increases. In contrast, the large cutoff frequency used cannot effectively filter the high-frequency measurement noises, resulting in a small mean square error
of the least square method but the identification is wrong. Therefore, the Elbow point is an approach to determining the proper initial cutoff frequency for the Butterworth low-pass filter. The Elbow point can be found by calculating the sum of the squared Euclidean distances
L to the centroid
, as formulated following.
3.3. Adaptive Cutoff Frequency Method
The next phase of the proposed design is to adapt the cutoff frequency
along with the battery operation. The cutoff frequency
of the Butterworth low-pass filter starts from the initial cutoff frequency
determined in phase I. Then the cutoff frequency
of the filter is adapted every iteration, and the amount of the adaptation is calculated based on the variation of the latest time constant
of the lithium-ion battery identified using the least square regression method. This adaptive cutoff frequency method is designed following Equation (
12). This equation explains that the cutoff frequency
is closely related to the time constant
of the lithium-ion battery; therefore, following this equation, the cut-off frequency
of the Butterworth low-pass filter adapts based on the identified time constant
of the lithium-ion battery.
where
is the correction gain set to adapt the angular cutoff frequency
of the Butterworth low-pass filter and
is the adaptation factor in the angular cutoff frequency
. This adaptation factor is calculated based on the variation in the identified time constant
of the lithium-ion battery, as shown in the following equation.
To prevent the adaption from being dominated by the outliers of the identification, the mean of the previous identification in the time constant
of the battery is used to calculate the adaptation factor in the angular cutoff frequency
.
It is worth noting that the adaptive cutoff frequency method is designed considering the time constant
of the battery remains almost constant with respect to the SOC of the battery and the time constant changes slightly as the operating condition changes [
27]. Therefore, the adaptive cutoff frequency method can be designed based on the variation in the time constant
of the battery.
Table 1 summarizes the detailed step-by-step procedure of the proposed algorithm, and the block diagram illustrating the procedure of the proposed algorithm is shown in
Figure 2.
4. Simulation Result
This section explains the design procedure of the proposed algorithm step-by-step, providing an in-depth insight into the algorithm. To showcase the performance of the cutoff frequency adaptation performance, a case is also studied given a randomly assigned initial cutoff frequency. This section also validates the performance of the proposed algorithm in various operating conditions with different measurement noise presences.
4.1. Simulation Environment
A set of lithium-ion battery simulations are performed to evaluate the performance of the proposed adaptive cutoff frequency design algorithm for the Butterworth low-pass filter. To showcase the performance of the proposed work in improving the parameter identification accuracy, the simulation is performed using MATLAB 2021b and the reference values of the parameters are predefined considering the actual lithium-ion battery dynamics [
28,
29,
30]. The simulation cycles the lithium-ion battery using the urban dynamometer driving schedule (UDDS) profile. This profile is a standard testing protocol simulating real-world battery operations in electric vehicles. To showcase the performance of the proposed algorithm in cases of various measurement noises, the battery load current and terminal voltage data are injected with different measurement noises leveling from 0.1% F.S. measurement noise up to 0.5% F.S. measurement noise. The 0.1% F.S. measurement noise and 0.2% F.S. measurement noise are the typical scales of measurement noises as limited by the sensor hardware setup. To investigate the performance of the proposed work, the scales of measurement noises are increased to an extreme of 0.5% F.S. measurement noise. It is noted that the white Gaussian measurement noise is selected as the measurement noise investigated in this work. The white Gaussian noise is a normally distributed noise with uniform power across the frequency band, making it suitable for simulating the random noise measured in actual operating conditions.
4.2. Performance of the Proposed Algorithm in Parameter Identification
The proposed algorithm adapts the cutoff frequency of the Butterworth low-pass filter aiming at rejecting the high-frequency measurement noises. The first phase of the proposed algorithm is to search for a proper initial cutoff frequency through a screening approach. As illustrated in
Figure 3, the mean square error of the least square regression method is compared and the initial cutoff frequency is determined by finding the Elbow point. If a large cutoff frequency is assigned, the fitting may be inaccurate due to the existence of the measurement noises. The fitting error can be reduced by decreasing the value of the assigned cutoff frequency. Although assigning a very small cutoff frequency can help acquire better-fitting results, some of the battery dynamics may be lost; the result will be poorer parameter identifications and SOC estimations. To avoid this issue and determine a proper initial cutoff frequency for adaption, the Elbow point is adopted as pinpointed in
Figure 3.
The second phase of the proposed algorithm adapts the cutoff frequency of the Butterworth low-pass filter as the battery is operated, as shown in
Figure 4. The cutoff frequency is adapted based on the time constant
identified using the least square regression method. The identification of the time constant
can be easily affected by the high-frequency measurement noises. In other words, if the cutoff frequency is not assigned properly, the high-frequency measurement noises are not filtered well, resulting in inaccurate time constant
identification. Therefore, the cutoff frequency adapts based on the time constant
identification. It is worth noting that the adaptation starts from the initial cutoff frequency determined in phase I; however, adaptation still functions well if the initial cutoff frequency is given improperly. As illustrated in
Figure 5, the cutoff frequency is deliberately assigned with a high initial cutoff frequency value, which renders poor parameter identification results. The cutoff frequency adapts and finally converges to the best-suited cutoff frequency.
To examine the performance of the algorithm proposed, the parameter identification results are analyzed, and the identification result is compared by adopting cutoff frequency using different cutoff frequencies, as illustrated in
Figure 6. The black line is the reference value, the blue line is the parameter identification result without adopting the Butterworth low-pass filter, and the red and orange lines are the results adopting the cutoff frequency 0.02 Hz and 0.04 Hz, respectively. In comparison, the result acquired from the proposed work is shown in purple. In the presence of measurement noises, the parameters are identified erroneously without adopting the filter, leaving only the internal resistance
identified okay. This result shows that the least square regression method will erroneously identify the battery dynamics, i.e., the poles of the transfer function. With the help of the Butterworth low-pass filter, the parameters of the battery model can be identified accurately. The identification accuracy is improved as the cutoff frequency is set smaller. The comparison indicates that the parameters are identified as most accurately adopting the proposed algorithm.
The detailed parameter identification performance using multiple cutoff frequency design is further investigated in cases of various scales of measurement noises injected, as summarized in
Table 2. The four sub-tables listed in
Table 2 compare the relative identification error of
,
,
, and time constant
to their reference values, respectively. The result shows that without the help of the Butterworth low-pass filter, the parameters of the battery model are identified inaccurately, especially the
dynamics. In detail, the battery is identified as a pure resistance when the measurement noise exists, and as a result, the
dynamics cannot be identified accurately. This is because of the nature of the least square regression method.
Adopting the Butterworth low-pass filter, the parameter identification accuracy is significantly improved. It is noted that the parameter identification accuracy reduces as the scale of the injected measurement error increases. It is also noted that if the selected cutoff frequency is low, the high-frequency compound measurement noises are filtered well, resulting in more accurate parameter identification using the least square regression method, especially in the dynamic. However, selecting low cutoff frequencies does not guarantee better parameter identification. Selecting a small cutoff frequency, i.e., 0.005 Hz cutoff frequency, the identification error is slightly higher than other cutoff frequencies although the rest of the parameters are identified more accurately.
The results listed in
Table 2 demonstrate that the parameters are identified more accurately compared to the case with a medium cutoff frequency. Similar results are acquired in cases of various scales of measurement noises injected. In detail, the relative identification error in the
,
,
, and the time constant
are 0.028%, 4.16%, 2.73%, and 2.27%, respectively, when 0.1% of full-scale (F.S.) measurement noise is presented, and the relative identification error increases to 0.028%, 11.12%, 6.21%, and 5.94%, respectively, when an extreme of 0.5% of full-scale (F.S.) measurement noise exists. The results well-demonstrate that the proposed work adapts the cutoff frequency of the Butterworth low-pass filter, rendering accurate parameter identification results in various scales of measurement noise presence.
4.3. Performance of the Proposed Algorithm in SOC Estimation
The performance of the proposed work is evaluated one step further in the sense of SOC estimation accuracy. This is because the accuracy of the battery SOC estimation highly relies on accurately identified battery parameters. The battery SOC estimation performance comparison using multiple cutoff frequency design in cases of various scale measurement noises is summarized in
Table 3. The typical Luenberger SOC observer is selected in battery SOC estimation due to its simplicity for algorithm validation. The results demonstrate the estimation inaccuracy has a strong relationship with the existence of the measurement noises, leaving about 1.35% mean absolute SOC estimation error in different scales of measurement noises. Although the mean absolute error seems promising, the maximum absolute SOC estimation error is a high of 14.47%, and the standard deviation is close to 1.85%, meaning that the SOC estimation is inaccurate and deviated.
With the help of the Butterworth low-pass filter in high-frequency measurement noise filtering, the SOC estimation error is reduced and converged. In detail, the mean absolute SOC estimation error is roughly 0.12% if the cutoff frequency is selected carefully, the maximum absolute SOC estimation error is less than 2.51%, and the standard deviation is about 0.22%, meaning the SOC estimation accuracy is significantly improved due to the adoption of the low-pass filter. In comparison, the proposed work renders the best battery SOC estimation performance. The result is acquired since the parameters are identified more accurately in adopting the proposed work, leaving a smaller modeling error. The result shows that the proposed work renders a mean absolute SOC estimation error less than 0.081% in an extreme case of 0.5% full-scale measurement noises existed. In this case, the proposed work renders a 0.97% maximum absolute SOC estimation error with a 0.14% standard deviation. The SOC estimation result demonstrates the effectiveness of the proposed work in filtering measurement noises.
5. Conclusions
Measurement noises on the battery data are a critical but usually overlooked issue that needs to be solved. The measurement noises affect the estimation accuracy of electric circuit model-based SOC estimation algorithms. Specifically, the presence of the measurement noises results in battery modeling errors in inaccurate identifications of the battery parameters. The modeling errors lead to inaccurate battery SOC estimation using model-based estimation algorithms. To overcome this issue, this paper proposes an adaptive cutoff frequency design algorithm. The proposed algorithm first applies a cutoff frequency screening procedure to determine the initial cutoff frequency for the Butterworth low-pass filter. The proposed algorithm then adapts the cutoff frequency along with the battery operations based on the initial value which had been determined.
The performance of the proposed work is examined through simulation results using a standard testing protocol. The results demonstrate that the low-pass filter functions properly due to the adaption of the cutoff frequency. The least square regression method renders a relative error of 0.028%, 11.12%, 6.21%, and 5.94% in the , , , and the time constant identifications, respectively, in an extreme case. The low modeling error then helps the battery SOC estimation accuracy, rendering a 0.081% mean absolute SOC estimation error, a 0.97% maximum absolute estimation error, and a 0.14% standard deviation, which has significantly improved the SOC estimation accuracy compared with other cases studied.