Leveraging Cell Expansion Sensing in State of Charge Estimation: Practical Considerations

Measurements such as current and terminal voltage that are typically used to determine the battery’s state of charge (SOC) are augmented with measured force associated with electrode expansion as the lithium intercalates in its structure. The combination of the sensed behavior is shown to improve SOC estimation even for the lithium ion iron phosphate (LFP) chemistry, where the voltage–SOC relation is flat (low slope) making SOC estimation using measured voltage difficult. For the LFP cells, the measured force has a non-monotonic F–SOC relationship. This presents a challenge for estimation as multiple force values can correspond to the same SOC. The traditional linear quadratic estimator can be driven to an incorrect SOC value. To address these difficulties, a novel switching estimation gain is used based on determining the operating region that corresponds to the actual SOC. Moreover, a drift in the measured force associated with a shift of the cell SOC–expansion behavior over time is addressed with a bias estimator for the force signal. The performance of Voltage-based (V) and Voltage and Force-based (V&F) SOC estimation algorithms are then compared and evaluated against a desired ±5% absolute error bound of the SOC using a dynamic stress test current protocol that tests the proposed estimation scheme across wide range of SOC and current rates.


Introduction
The primary function of the battery management system (BMS) is to provide an accurate state of charge (SOC) estimation. The SOC represents the amount of charge in ampere-hours (Ah) remaining in a cell divided by its total capacity [1,2]. The BMS traditionally uses current, voltage, and sometimes temperature measurements to estimate the SOC to plan future actions and to prevent over-charging or discharging of cells. Generally, manufacturers provide conservative estimates of remaining energy, since an overestimation of SOC can leave the vehicle stranded. In the case of unmanned air vehicles (UAV), overestimation of SOC might prevent the vehicle from safe landing, since landing maneuvers require very high power, which typically cannot be achieved at very low SOC levels [3]. Underestimating SOC, on the other hand, wastes valuable resources and adds cost and weight to the vehicles, which is critical for robotic platforms.
From the lithium ion batteries, lithium ion iron phosphate (LFP) has been considered for UAV, hybrid electric vehicles (HEV), and electric vehicles (EV) due to their capacity for fast charging, high power capability, and long cycle life [4]. LFP batteries consists of graphite as the negative electrode and lithium iron phosphate (metal oxide) as the positive electrode [5]. Due to the relative flat half-cell potential the positive electrode exerts (also known as the phase-separating cathode active material) [6], the open circuit voltage (OCV) has a relatively flat slope through most of its operating The structural changes of this expansion have been studied from the electrode mechanics point of view with respect to strain/OCV coupling [10,11]. The overall volume change of this expansion results in a monotonic function of SOC for a nickel manganese cobalt (NMC) graphite cell [12]. By measuring the force produced by the expansion and including it in the estimation algorithm, improved SOC accuracy can be achieved as compared to voltage based methods [9,13]. The greatest benefits were observed in the 30-50% SOC region, where the voltage slope was relatively flat, but also at the low SOC level, where voltage drops very fast and is challenging to have an accurate model as the battery ages. The change in measured force vs. SOC over many cycles can also inform better estimates of the battery state of health (SOH) [14]. For the LFP-graphite cell studied here, the anode (negative electrode which is graphite) expands during charging but the simultaneous higher contraction rate of the cathode (positive electrode which is LFP) results in a combined cell contraction in the middle SOC range. The overall result is a non-monotonic F-SOC behavior, as shown in Figure 1b. Due to the F-SOC non-monotonicity, SOC estimation based on measured force is challenging since multiple SOC equilibrium points can correspond to the same measured force. Additionally, all mechanical measurements (force, pressure, or displacement) even after calibration exhibit drift associated with small changes in material and a shift in the SOC-expansion behavior as the battery ages. Loss of cyclable lithium causes a shift in capacity and a change in the SOC-expansion behavior of the cell. This capacity loss shifts the stoichiometric ratio associated with lithium concentration in each electrode and hence changes the electrode expansion [15] as a function of lithium intercalation (Coulombs stored) and the measured force/pressure versus SOC as the unknown drift addressed here. Moreover the LFP pouch cells used here are supported by poron sheets [16] between the cells instead of the spacers used in [13]. Thermal expansion of the battery and fixture and viscoelastic response of the compliant poron pad introduces an additional aging and drift factor. Predicting and modeling this aging behavior requires extensive resources and is currently by-passed by estimating this unknown bias as proposed in this article. As can be appreciated, the drift is a general problem of measuring the mechanical behavior (force, pressure, or displacement) of all batteries and it is not just a battery chemistry (LFP)-related issue.
Battery cell balancing is critical to extend the range of battery powered vehicles, the pack operating lifetime, and charge and discharge power limits [17]. To achieve fast and accurate cell balancing, accurate SOC estimation is needed [18]. Voltage-based SOC estimation for the LFP chemistry is particularly challenging since the voltage is relatively flat with respect to SOC. The proposed method improves the SOC estimation using leveraging information about the cell expansion and contraction during charging and discharging. Cell-to-cell variability due to aging, as well as the resulting changes in the measured force, was not investigated, but should be the focus of future research. The influence of cell balancing or imbalanced cells in a module whose force is measured should also be further investigated following the initial work by [19]. Since there would typically be only one force (or strain) measurement in a pack of series connected cell, cell balancing techniques [20] will be of high importance.
In this paper, we demonstrate the improvement in the SOC estimation of LFP batteries by using mechanical in addition to electrical measurements that can be implemented in packs or modules of both hard encased and pouch cells [21]. A novel solution to the multiple equilibrium SOC points is proposed based on the piecewise linear (PWL) F-SOC characteristic approximation that is further used in a switching gain model-based linear quadratic estimator (LQE) design that consists of a combination of force and voltage measurements [22]. Due to the drift that appears in most force measurements, as shown in Figure 2, the SOC may not be accurately estimated. Therefore a bias state is added to the LQE in order to capture the drift in the force measurement due to un-modeled changes in battery swelling or creep of the plastic materials. Experimental validation is also performed on the model-based (LQE) controller design using the combinations of force and voltage measurements during realistic battery electric vehicle usage profiles including the Dynamic Stress Test (DST). The performance of a controller designed with a "perfect" model is compared to one with model mismatch in the OCV and F-SOC PWL fit. The simulated model mismatch captures the typical modeling uncertainties or changes in the cell expansion and open circuit voltage due to aging [23].

Experimental Setup and Force Behavior
The battery considered here for the experimental validation is an A123 20 Ah lithium iron phosphate pouch cell with a voltage range of 3.6-2 V. The fixture, as shown in Figure 1b, consists of an active battery cell (3) (with a temperature sensor on top of it (5)) and a dummy (inactive) cell with a compliant rubber pad in between. The active battery cell and inactive cell consists of a laminated aluminum pouch cell and the rubber pad is a Poron 4701-30 from Rogers, which is 1.14-mm thick. The temperature sensor is a multimeasurand GE sensor that consists of three resistance temperature detectors (RTDs) and one eddy current expansion sensor [21]. The dummy cell and the rubber pad is used as a stress absorber to emulate the conditions a cell might experience in a pack configuration. The purpose of the dummy cell is to simulate the compliance of the whole system. The stiffness of poron is much less than that of the battery, thus the compression of the dummy cell is negligible in terms of the whole system. Therefore, the dummy cell can be used without complicating the force measurement. The dummy cell is held tight by an aluminum bottom end-plate (4), and a movable plate is placed on top of the active cell. This plate has one degree of freedom in the vertical direction with the force sensor (1) placed on top of it. On top of the force sensor, the fixed top aluminum end-plate is bolted to the bottom end-plate to simulate the behavior of a constrained battery pack with fixed distance between the end plates. The force sensor is an Omega (LC305-500) load cell sensor (strain gauge type). The sensor has a 2225 N full scale range with an accuracy of 4.45 N. The load cell and voltage are digitized and recorded by Data Translation DT-9828, which has a voltage accuracy of 2 millivolts. In this paper, the force sensor is used because it is cheaper than the displacement sensors [15], but also less accurate. For example, the accuracy of the displacement sensor used in [15] is 1 µm, which corresponds to 0.35 N of compressive force on the poron, while for the Omega force sensor used the accuracy is listed as a percentage of full scale range (4.45 N). The force only accuracy is the important reason for integrating force and voltage information along with performing the bias estimation. Drift in the force sensor can be observed by comparing the force vs. SOC for two C 20 cycles which were conducted two months apart with three cycles done in between them with the same battery. The force measurements have a minimum of 3 N and a maximum of 6 N drift across the entire SOC range. The drift could be caused by thermal expansion of the battery, pad, and fixture [13], capacity change, or a combination of all four throughout the life of the cell and module on which measurements are performed. Adjustments in the fixture and changes in the preload will cause larger changes in measured force but can also be modeled as a sensor drift. For generalization of the results to the other cell sizes, the pressure is shown.
The force plotted against SOC (F-SOC) and the open circuit voltage vs. SOC (OCV-SOC) are measured experimentally using a pulse-relax profile. Specifically, a CCCV charge is applied followed by a pulse-relax discharge profile, with the current rate of C 20 for 12 min (which results in a 1% SOC change) followed by a 1 h of rest period to eliminate the influence of the internal resistance and electrolyte polarization of the battery. The data points at the end of the rest are used to obtain the discharge F-SOC and OCV-SOC. The test is then repeated using charge pulses of equal duty cycle. The average between the measurements at the same SOC from the charge and discharge datasets is obtained for the F-SOC, as shown in Figure 1b. The average F-SOC shown in Figure 1b is modeled in Section 3 and is the best fit parameters that match the force inflection points. An average fit is also obtained from data for OCV-SOC and shown in Figure 3a. The values of the fit for the OCV-SOC (average of discharge and charge) and F-SOC can be found in Appendix C.
An important consideration is the drift observed in the measured force between repeated tests as shown in Figure 2. Two average force cycles with an applied current of C 20 at different test dates are shown. These cycles have approximately a minimum 3 N and a maximum 6 N of drift in between the second test (performed on 06/2017) and first test (performed on 04/2017). This measurement was taken with the same cell. The drift could be caused by thermal expansion of the battery, pad, and fixture, capacity change or a combination of all four throughout the life of the cell and module on which measurements are performed. That is the reason we have treated the observed bias as an unknown variable. We assume that this unknown/uncertain-origin drift evolves slower than the force measurement from the charge/discharge changes and we therefore can estimate it as an unknown constant bias in real time. This drift in force can affect the SOC estimation if not compensated and, thus, estimation of the sensor bias is used to improve the practical force based SOC estimation.  Figure 1). The orange line represents the PWL fit. The horizontal solid lines represent the inflection points of the cell swelling force. The horizontal dashed black lines represent the inflection points of the cell swelling force used for the developed observers. R I , R I I , and R I I I represent the force slope regions determined by our PWL model. For the PWL force model, we assume b L = c 3 and b H = c 5 since the changes in voltage and force slopes are due to the intrinsic phase transitions in the material of the battery electrodes [15]. Assessment of the SOC estimator robustness is performed by imposingb L = b L andb H = b H to capture model mismatch for the force and voltage behavior. For generalization of the results to the other cell sizes, the pressure is shown.
For the SOC estimation development, tuning, and comparison, two models with two different levels of fidelity are used:

•
The simulation model includes the nonlinearities and hysteresis for the electric characteristics detailed in Section 5. • The observer model ignores hysteresis and uses piecewise linear approximations of the nonlinearities detailed in Section 5.
In the next section, the simulation model is detailed and its efficacy is highlighted in Figure 4 based on a modified DST cycle [24] that is scaled for a 20 Ah Li-ion battery, as shown in Figure 4a. The DST was chosen because it has a current profile that has the combination of the following C-rates and is representative of usage in an electric vehicle: C/4, C/2, 1C, and 2C. If the utilization of the electrode is relatively uniform, the C-rate should not influence the swelling significantly. The electrode expansion depends on the bulk concentration of the electrode solid phase, as opposed to the terminal voltage which depends on the surface concentration [25] and therefore is less sensitive to C-rate. The theory for determining up to what current density the electrode utilization is uniform can be found based on the porous electrode models by Fuller Doyle and Newman [26] and Newman and Tobias [27]. The largest expected contribution of C-rate dependence (or more precisely root mean square (RMS) current) on the result is through thermal expansion of the cell. The experimental profile consists of a Constant-Current/Constant-Voltage (CCCV) charging protocol at a rate of 1C until the battery is fully charged. After a rest period of 30 min, a 1C rate discharge current is applied until it reaches 61% SOC. After the second rest period of 2 h, the modified DST cycle is applied. The resulting voltage, temperature, force, and SOC are shown in Figure 4b-e, respectively. The SOC is calculated by Coulomb counting using a high resolution current sensor and assumed to be the true SOC.

Simulation Model
The models described here include the drift present in our force data and higher dynamics such as hysteresis present in our voltage. These models were simulated to validate the robustness of our developed estimators for analysis purposes before the experimental implementation. After this validation, the estimators were used with experimental data and their performance was evaluated. The battery model used for our simulations is presented in the following subsections. The SOC (z) is simply modeled as where C b is the cell capacity.

Cell Swelling Force Model
The force measured at the load cell is modeled using a static non-linearity F sim (z), which is a function of state of charge, with additive bias and noise terms given by where F(z) (N) is the measured force that relies on F sim (z), which is the PWL model of the average F-SOC behavior; v F is the measurement noise; and f d is a constant drift or bias (assumed to be constant but unknown) value present in our force measurement. A piecewise linear representation of the average F-SOC behavior is given by where α m , β m , and γ m are the slope parameters; α m0 is the preload or the force sensed at zero state of charge; and b L and b H denote the SOC where a change in the sign of the slope in the PWL model occurs as shown by the solid gray vertical lines in Figure 3. These parameter values can be found in Appendix C and can be adjusted to simulate model uncertainty and mismatch. The parameters β m0 and γ m0 in the PWL model are uniquely determined from the other parameters via constraints of piecewise continuity The operating regions R represent the force slope regions determined by our PWL model. The first region is defined as R I :ẑ ∈ [0,b L ), the second region is defined as R I I :ẑ ∈ [b L ,b H ], and the third region is defined as R I I I :ẑ ∈ (b H , 1]. The operating regions are shown in Figure 3.

Terminal Voltage Model
The terminal voltage in volts is modeled as where R[Ω] is the total equivalent series resistance, I is the discharge current applied to the battery, V 1 and V 2 are the voltages due to the two resistance and capacitance (RC) pairs, and v V represents the V measurement noise. The OCV characteristic, V oc (z), is SOC dependent and modeled using where V 0 , g, d, f , h, k, a v,i , b v,i , and c v,i are tuned parameters found in Appendix C. The electric equivalent circuit (EC) battery model [28,29] is used for the simulation in our observer validation. In this study, voltage hysteresis (V h ) [30] is also considered for the simulation model where V 1 and V 2 are the voltages of the RC equivalent circuits, R 1 and R 2 are the resistors, C 1 and C 2 are the capacitors of the RC equivalent circuits, V h is the hysteresis voltage, γ h is the hysteresis rate constant, and H(z, sgn(I)) is a function of SOC and the sign of current (sgn(I)) following [30]. The function H(z, sgn(I)) is taken to be half the difference between the charge and discharge OCV measurements, and the parameter values can be found in Appendix A. Although the EC model parameters depend on the battery's SOC and temperature, in this paper, we do not take this dependency into consideration. The constant parameters of the EC model can be found in Table 1. The dynamic equations developed for charge/discharge as well as the measurements in Equations (2) and (6) is used to simulate the battery behavior, and it is numerically discretized with a time step of T s = 1 s.

Voltage Model Parameterization
Before using our model for SOC estimation, the average Force-SOC and OCV-SOC needs to be obtained and model parameterization of the equivalent circuit parameters is required using a pulsed current profile such as the Hybrid Pulse Power Characterization (HPPC) [28]. The pulse current was obtained and the nonlinear programming solver fmincon was used to find the parameters provided in Table 1. To verify that the parameters are correct, different initialization values were used. From the different initialization values used, fmincon converged to the parameters provided in Table 1.

SOC Estimation Model
The linear quadratic estimator (LQE) also known as the steady-state Kalman filter is used for state estimation. The goal of the observer is to find a gain K that converges the initial state to the true state of the system using linear filter equation with measurement error feedback where the estimated output equation is given bŷ with C(x t ) the slope of the estimated measurement and C 0 (x t ) the affine parameter based on our model and shown in Figure 3. The matrix D is the direct transition (or feedthrough) term. The error dynamics are governed by the eigenvalues of A − KC, which depends on the chosen gain K so that it is stable and achieves fast convergence of the SOC estimation error e = z −ẑ. We use the Discrete Algebraic Riccati Equation (DARE) to find our gain K on all our developed observers. The DARE is defined as and solved for the estimation error covariance matrix P. In this equation, Q is the process noise covariance matrix (size nxn) and R ∈ R n y is the measurement noise covariance matrix (size mxm).
The values of the diagonal elements of R are chosen based on actual sensor measurement noise variance and Q is tuned so that the desired transient is achieved. The solution of the estimation error covariance (P) for the Kalman filter converges to the solution of Equation (14) for In this case, the asymptotically stable observer gain is then computed [31] as

Voltage Only Observer Design
In the case of voltage only estimation, we neglect the hysteresis dynamic term. This represents a typical model mismatch in voltage measurements. The states of the observer arex t = [V 1 ,V 2 ,ẑ] T given by the discretized version of Equations (8)-(10) and the PWL approximation of the nonlinearities in voltage measurementŷ t is given by the equations in Appendix B. The values of the parameters in the voltage and force models can be found in Appendix C. The gain K for this observer is given as The values for the gains K i with i = 1-3 are obtained by tuning the Q matrix. The gain K V is found for the eight regions in which the voltage is divided: The main challenge in this system is the slow convergence of the estimation error due to the almost zero output gain (in C) especially the C(1,3) that corresponds to the dV dz in Equation (18). Increasing the K v gain to compensate for the low state to output gain C governed by dV dz will amplify voltage sensor noise. Therefore, another observer is developed that uses voltage and force measurement since SOC and bias in the force signal are unobservable by force measurement only.

Voltage and Force Observer Design
In the case of force and voltage estimation, the states of the observer arex t = [V 1 ,V 2 ,ẑ] T andŷ = [V T ,F] T given by the equations in Appendix B. The gains for the V&F observer have the following format and the gain K VF is found for the eight regions of the voltage, as explained in the previous subsection. The modeled force used for the state estimator,F, is given bŷ whereẑ is the estimated SOC from our observer andb L andb H are the inflection points that are shifted by −10%, as shown by the dashed black lines in Figure 3 to emulate model uncertainty and aging. In the case of a "perfect" model,b L = b L andb H = b H .

Switching Logic in Observer Design
The gain (K) of the LQE depends on the relationship between the estimated state and the slope of the measurement. In the case of a monotonic function, the estimated state will converge to the true state value when the estimator gain is chosen so that the error dynamics are stable. In the case of a non-monotonic function, the estimated state and the true state can have different slopes in the force output depending on the operating region. Therefore, the estimator gain would have a wrong sign which would lead to the divergence of the estimated state of charge from the true state. This is due to the traditional LQE using the modeled slope at the region of the estimated state. For example, consider the case where the model initialization occurs in the middle section of the SOC range (force decreases and cell contracts as SOC increases), whereas the actual SOC is in the high SOC range (force increases and cell swells as SOC increases); the traditional approach will lead to divergence of the estimated SOC state from the actual SOC due to the difference in slope. To address this difficulty, an algorithm was developed that uses a window of past measurements force data to identify the slope of the non-monotonic F-SOC. The observer gain will need to switch based on a judicious combination of the information at hand, namely (a) the modeled slopeĈ dF from Equation (18)  Therefore, the output error injection gain K is a function of the state estimate and the estimated force derivative, e.g., K(ẑ,d F dz ), using two sources of information due to its importance in the convergence of the estimation error. The DFDZ is computed as a line fitting problem based on the moving window of past force measurements and the Coulomb counting based SOC integration (z) over the moving window. The fitted DFDZ lineF = dF dzz +F 0 parameters are computed using the least-squares estimation as dF dz whereF 0 is the affine parameter in Equation (18). The moving window of force measurements and the design matrix respectively are defined as follows where k represents the discrete-time measurement index and n is the number of past samples. The Coulomb counting based SOC integration is computed as The integration is initialized withz k−n = 0. The moving window provides the dF dz computation as the average slope in a window of n prior values of force which causes a delay δ in the switching logic as a function of the window size n, as shown in Figure 5d. We can see that for n = 150 the δ is smaller compared to n = 450, but, with smaller n, the estimated slope is more susceptible to noise. We chose n here to be 150 samples with a discretized time of 1 s. The reasoning behind choosing this window size is explained in Section 5.3. Due to this delay and the fact that during this time the actual and the estimated state can be in different segments of the SOC, which could cause divergence, the gain is set to zero when the estimated slope dF dz has a different sign from the modeled slope. Therefore, the system will run open loop for both voltage and force when there is slope mismatch. This is done in order to avoid instability issues. The switching logic for our gain (K(ẑ,d F dz )) is given by the following rules: Note that the gains K R I , K R I I , and K R I I I are not constant. The set of gains K R I consists of the four gains that correspond to the four regions in voltage in region R I , K R I I consists of the two gains that correspond to the two regions in voltage in region R I I , and K R I I I consists of the two gains that correspond to the two regions in voltage in region R I I I , as shown in Figure 3. The gains are therefore a function ofẑ and dF dz and they switch to the corresponding region depending on the value of the estimated slope and estimated SOC.

SOC Estimation Error during Switching
Going open loop, during the time interval when there is a slope mismatch, is not sufficient to avoid divergence of the estimated state of charge with high feedback gain. To verify this, we analyze the Luenberger Observer for the SOC state using the measured force only. The goal of this analysis is to determine the impact of the gain K on divergence of the state estimate when the true model and state estimate are operating on opposite regions of the output non-linearity. Using Equations (12) and (13), we can write the error dynamic (e = z −ẑ t ) for the observer assumingx is in R I and x is in R I I as: From this error dynamic equation, we notice the error converges to a non-zero quantity so that e tends toward zero only when x = b L , and the steady state error e ss = ((β m − α m )x + β m0 − α m0 )/α m is independent of the gain K. In the case, where the sign of the model is updated based on the measured slope of the force signal (d F dz ), the growth in SOC estimation error is bounded by the number of samples in the filter or the moving window size (MW). If the current is bounded (which it is in our case), then the divergence in the state estimate is bounded by the integral of the current and the switching time δ. When the estimator model is updated to the correct slope, the observer begins to converge again. However, noise in the measurement of force could still result in divergence of the estimate if the gain K is too high. This is shown in Figure 5. We can see that just by changing the MW = 150 to MW = 450 by using the same gains given by Q = diag([2, 0.1, 0.1]) and R = diag( [1,1]). This is because the gain is large and the delay in dF dz crossing zero is 1 min greater than MW = 150. Therefore, the divergence in SOC, because of the slope mismatch, will grow for a longer period of time with increasing filter length and a higher error is achieved due to the delay in switching the gain to zero. Now, if we decrease the gain by using Q = diag([2,0.1,1 × 10 −2 ]) and R = diag([1, 1]) without bias estimation and n = 150, we notice that at the same region the error decreases by 5%. Therefore, low gains should be used to avoid the divergence and a window size of 150 is chosen since this is the lowest window that provides sufficient noise rejection. The previous error dynamic analysis can be done for the other mismatch slope areas to determine the minimum SOC state estimation error.

Bias Influence in SOC Estimation
In this section, the proposed estimation is tested under biased force measurements. In Figure 6, the simulated force data have a bias or drift of 3 N present in the force measurement. This drift in force affects the SOC estimation, as shown in Figure 6. Application of the switched model observer based on voltage and the force measurements based on previous work [22] without taking into account the bias estimation results in error larger than 5%. Therefore, we assumed a constant bias state (f d,t ) that is given by f d,t+1 = f d,t (25) where f d,t is the constant bias or drift term that augments the electrical states. The estimator now estimated the electrical states (except hysteresis) and the force drift withx t = [V 1 ,V 2 ,ẑ,f d,t ] T . Therefore, the gains for the V&F Bias observer have the following format The values for K 1i and K 2i with i = 1-4 are obtained by tuning the Q and R matrices.

Simulation Results without Model Mismatch in F-SOC and OCV-SOC
The standard Dynamic Stress Test (DST) profile is repeated back to back and modified by adding a constant current to periodically recharge the battery at 1/6 C rate, exercising a wider range of SOC, as shown in Figure 4a. A measurement noise variance of 5 mV for voltage and 0.05 N for force was chosen based on the variance of the experimental data. As for the drift value, we chose a value of 3 N based on the monthly drift observed between repeated characterization experiments. Our observer works if the initial error in bias is within 3 N. The LQE estimator is initialized with an SOC error of ±10% in order to evaluate convergence. In the case of the DST cycle, the true SOC state may be approaching the estimated value or diverging from the true SOC value depending on the initial SOC estimation error. The objective is to stay within the ±5% estimation error bound (EEB) for SOC denoted by the dashed lines in the Figure 6b. We chose to simulate initial conditions around 60-80% and the SOC swing of the whole cycle around 20-80% SOC. This range was chosen due to the challenge associated with flat OCV-SOC profile present for voltage (around 40-60%) and the negative slope in F-SOC (around 35-70%). Therefore, the simulated "measured" data are initialized at 61% SOC. The weights chosen to obtain the gains K 1i with i = 1-4 and K 2i with i = 1-4 are shown in Table 2. The gain K 32 is shown in Figure 6f to illustrate when the algorithm uses the estimated slope mismatch to zero the observer gain and run open loop. The SOC estimation using the V measurement and V&F measurement with and without the bias state estimation are shown in Figure 6a. In all three cases, a 10% initial estimation error is assumed. The inflection points in the force with respect to SOC are denoted by the dotted horizontal lines in Figure 6a. In this case, the correct values for b L and b H are used for the simulated data and the observer. The switched model applies zero gain (as shown in Figure 6f in Region A) when the model slope (based onẑ) does not agree with the estimated slope using the least squares on the moving window with Equations (19) and (20). Using the previously developed V&F observer without bias estimation [22], the SOC error does not remain within the ±5% bound with a 3 N bias in the measurement, even though the error in the force signal is small, as shown in Figure 6a,c. For the proposed switching force-and voltage-based LQE with bias (Switch Observer V&F Bias) before t = 50 min there is an SOC estimation error of 10%, even though the force estimation is matching our simulated data, due the error in bias state estimation shown in Figure 6g. Between t = 25 and t = 42 min, there is a slope mismatch in dF dz due to the delay of our moving window. After t = 42 min, the slopes match again, and the correct non-zero feedback gain is applied and the state of charge estimation error convergences within our ±5% EEB, as shown in Figure 6b. Even though both the proposed switching force and voltage based LQE (Switch Observer V&F Bias) and the LQE based on voltage (Observer V) estimate voltage accurately (as shown in Figure 6d, it can be observed that the Switch Observer V&F Bias has faster convergence than the estimate based on V alone, as shown in Figure 6b. The faster convergence is due to the addition of the force signal that produces a lower output error injection gain from V to SOC in the regions where the voltage signal has flat slope. It can be appreciated from Figure 6g that the bias term is able to estimate the drift value slowly in our force measurement. The slow convergence of the bias estimate to the 3 N value denoted by the dotted black line can be seen in Figure 6g. Therefore, as time progresses, the estimated force converges to the modeled data, as shown in Figure 6c. This is due to the chosen inflection points in F-SOC function being the same as the modeled data (b L = b L = c 3 and b H = b H = c 5 ). We can observe that the estimated bias value oscillates around the true bias value. The model error is being attributed to the bias state by the estimation algorithm. The Switch Observer V&F Bias has lower root mean square error (RMSE), faster time convergence to the denoted SOC EEB (referred to as Time to 5% EEB in Table 3), and reduced maximum absolute SOC error after the force measurement has converged to an SOC error (referred to as Max SOC Error in Table 3) compared to Observer V as shown in Table 3. Therefore, the advantage of Switch Observer V&F Bias is the fast convergence in the region of 40-60% SOC while having more accurate SOC estimation due to the low RMSE values.

Simulation Results with Inflection Point Mismatch in F-SOC and OCV-SOC
In reality, we do not have a "perfect" model that captures the battery data. Moreover, during aging, the capacity loss shifts the inflection points as compared with the fresh cell. Therefore, to simulate a more realistic application model mismatch is included in the F-SOC and OCV-SOC observer by shifting the inflections points b L and b H of by −10% (b L andb H ) to represent capacity loss on the negative electrode [15]. During capacity loss, these inflections points shift for both functions of F-SOC and OCV-SOC because they correspond to the electrochemical and mechanical model having the same phase transitions. The aging effect on the swelling as the battery is cycled is that the inflection points will shift by approximately 10%. The proposed V&F bias SOC method will work if the initial unknown bias is within 3 N. The bias estimator will converge to the true value, when the SOC is outside the middle region (where there is a multiplicity of state of charge). A larger error in the initial bias will be "corrected" by visiting 100% or 0% SOC based on the cell voltage feedback. In the middle region (R I I ), the feedback of force error is split between the SOC and bias in the middle region without a strong feedback from the terminal voltage and therefore can have a persistent SOC error. Checking the observer performance under inflection points mismatch due to capacity loss is important since it captures the robustness needed as the battery ages. Therefore, we want to check the performance of the developed Switching Observer V&F Bias under this model mismatch and both voltage and force have −10% inflections points shift. We initialize our simulated "measured" data at 61% SOC. The weights chosen to obtain the gains K 1i with i = 1-4 and K 2i with i = 1-4 are shown in Table 4. The gain K 32 for feedback of the force error to the SOC state is shown in Figure 7f. The results from the "perfect" model observer (Switch V&F Bias), as shown in Figure 6, are compared with the observer with inflection mismatch (Switch V&F Bias Mismatch).  The SOC estimation using the V measurement and V&F Bias measurement with 10% initial estimation error are shown in Figure 7a. The inflection points in the force with respect to SOC are denoted by the dotted horizontal lines in Figure 7a. As shown in Table 5, we obtain lower RMSE, faster convergence to the desired SOC estimation error bound (EEB), and smaller absolute SOC error after the force measurement has converged to an SOC error value for the V&F Bias observer compared to V&F Bias Mismatch observer when initialized at 10%. For −10% SOC initialization, the V&F Bias Mismatch observer has lower RMSE and lower time convergence to the desired SOC estimation error bound (EEB) compared to V&F Bias, as shown in Figure 7b. The force bias estimate for V&F Bias Mismatch converges faster to the constant bias value of 3N. Due to this faster convergence, the RMSE and the convergence to the desired SOC estimation error bound (EEB) is lower for the model with mismatch due to the initial condition. In both −10% and 10% SOC initialization, the maximum absolute SOC error after the force measurement has converged to an SOC error lower for V&F Bias than V&F Bias Mismatch. The non-zero state estimation error is due to the mismatch present in the F-SOC and OCV-SOC function (b L = c 3 and b H = c 5 ). To understand this, we need to analyze the error dynamics equation. We know from Section 3 the form of our model and the observer form is given in Equation (12). Therefore, denoting our error as e = x −x and using our model and observer model equations, we obtain the dynamic error equation aṡ where ∆C = C −Ĉ and ∆C 0 = C 0 −Ĉ 0 . From the dynamic error equation, we notice that the bias error and the SOC error will not converge to 0 due to the terms −K∆C 0 . Therefore, the bias will converge to a value that is not the true value of the drift due to this error, as shown in Figure 7g.
The SOC error will converge to a value but it will not converge to 0, as shown in Figure 7b, due to the model mismatch. The magnitude of the estimation error varies depending on the force region we are operating in. The SOC estimation error, due to model mismatch, will grow as the force sensor drift increases due to the terms −K∆C 0 . For the given model tuning and 10% shift in the force curve with respect to SOC, the force-based observer only achieves better SOC estimation than the voltage only case if the uncorrected force sensor drift is less than 3 N initially.

Experimental Data Results Using F-SOC and OCV-SOC
With a 10% initial error in our SOC estimate, we obtain the results shown in Figure 8. The observer was initialized to 51% SOC, whereas the true state was 61% SOC, to highlight the performance in the middle SOC region where voltage based techniques are less effective. The current waveform discussed in Section 2 was applied to the battery and the observer. As in the simulated results, the proposed Switch Observer V&F Bias has faster convergence than the SOC estimation based on V alone as shown in Figure 8b. The V&F Bias observer exhibits lower RMSE, faster time convergence to the denoted SOC estimation error bound (EEB), and reduced maximum absolute SOC error, as shown in Table 6 compared to V observer. The bias term oscillates around the estimated bias value of 6.8 N, as shown in Figure 8g. These larger oscillations in the bias could be due to our force data having additional dynamics besides the bias term. According to [13], the force has a dynamic term that is temperature dependent, and the ambient chamber temperature may oscillate within ±1 • C. Therefore, this dynamic term should be added to our force model. There are some large errors in SOC estimation (approximately around 15%) at low SOC. This is due to our piecewise linear (PWL) fit. In the area near 20% SOC, the PWL fit is less accurately, as shown in Figure 1, which results in increased SOC estimation error of around 10%. To better capture the non-linearity, the piecewise linear approximation could be further divided into more regions to provide a better fit. The weights chosen to obtain the gains K 1i with i = 1-4 and K 2i with i = 1-4 are shown in Table 7. The gain K 32 that satisfies sign or is zero is shown in Figure 8f. The bias estimation state is initialized at 10 N.

Conclusions
In this paper, a new switching estimator design for a battery with the lithium ion LFP chemistry that integrates the non-monotonic F-SOC relation is proposed, verified by simulation, and validated using experimental data with respect to the SOC estimation accuracy. The estimator is based on switching PWL models that are scheduled according to the identified slope of the F-SOC operating point with a bias state in order to capture the drift exerted by the fixture and battery in our force measurement. Two different sensor scenarios, namely V and V&F Bias fusion, are compared, where it is concluded that the V&F Bias sensor improves the rate of SOC estimator convergence. This is due to the information added from the steeper, hence more informative, F-SOC characteristic than OCV-SOC relation despite large errors in the voltage and force models. The bounds on SOC estimation accuracy depend on the chosen inflection points of the F-SOC function. If they are correct, then the accuracy is better for the observer with both F and V than V only. Our future work will focus on determining if the drift on our force measurement is due to creep exerted by the poron and thermal expansion of the fixture or due to creep exerted by a degraded battery influenced by compressive stresses [32], or a combination of both. The thermal expansion term and swelling dynamic as a function of temperature will be considered. Data from an aged swelling cell will be used with the developed SOC estimator and the State of Health of the battery (SOH) will be estimated through the capacity fade. The inflection point model mismatch on the F-SOC function will be further studied in an aged cell since the inflection points change as the battery degrades or fades. Due to the tight manufacturing tolerances, the variability in thickness should not be a significant contributor to force measurement uncertainty. In terms of aging, the expected variability in the cell expansion is a subject of future studies. Cell-to-cell variability due to aging in the resulting force should also be investigated in future work based on initial findings from [14,15]. Finally, the measured force is the result of all cell's expansion (summation) in a constrained module, therefore different levels of degradation for individual cells when charged in series would result in smoothing (convolution) of the force sensed on the module-level.

Disclaimer
Reference herein to any specific commercial company, product, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or the Department of the Army (DA). The opinions of the authors expressed herein do not necessarily state or reflect those of the United States Government or the DA, and shall not be used for advertising or product endorsement purposes.

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

Abbreviations
The following abbreviations are used in this manuscript:

Appendix A. Voltage Hysteresis State H Function
H(z, sign(I)) = sign(I)(a 12 z 12 + a 11 z 11 + a 10 z 10 + a 9 z 9 + a 8 z 8 + a 7 z 7 + a 6 z 6 + a 5 z 5 + a 4 z 4 + a 3 z 3 + a 2 z 2 + a 1 z + a 0 ) where a i with i = 0-12 are the tuned parameters and their values are found in Table A1.

Appendix B. Discrete Terminal Voltage Model
The discrete terminal voltage measurement equation is defined as where v V,t is the V measurement noise. The piecewise linear (PWL) approximation of the OCV characteristic is modeled asṼ where ζ, η, θ, κ, σ, µ, ϕ, and λ are the slope parameters; ζ 0 is the minimum voltage sensed at fully discharged state; and c 0 , c 1 , c 2 , c 3 , c 4 , c 5 , and c 6 are the piecewise point parameters. The parameters η 0 , θ 0 , κ 0 , σ 0 , µ 0 , and λ 0 are uniquely determined from the other parameters via constraints of piecewise continuity.
The OCV characteristic and its PWL approximation are shown in Figure 3. Note that c 3 and c 5 also correspond to the inflection points in the PWL approximation of the force. The reason for this is that both functions of F-SOC and OCV-SOC have the same inflection points due to the electrochemical and mechanical model having the same phase transitions. Table A2. Parameter values for the F-SOC function that represent average data. This model is also used for PWL F-SOC without model mismatch (b L and b H ) and with model mismatch (b L andb H ).