BATTERY STATE OF CHARGE TRACKING, EQUIVALENT CIRCUIT SELECTION AND BENCHMARKING

A method includes calculating a first estimated state of charge (SOC) of a battery at a first time, receiving a voltage value representing a measured voltage across the battery at a second time, calculating a filter gain at the second time, and calculating a second estimated SOC of the battery at the second time based on the first estimated SOC, the voltage value, and the filter gain. Another method includes storing, in a memory, a library of equivalent circuit models representing a battery, determining an operational mode of a battery based on a load associated with the battery, selecting one of the equivalent circuit models based on the determined operational mode, and calculating a state of charge of charge (SOC) of the battery using the selected equivalent circuit model.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description

This application claims the benefit of U.S. Provisional Patent Application 61/768,472 filed on Feb. 24, 2013 entitled, “BATTERY STATE OF CHARGE TRACKING, EQUIVALENT CIRCUIT SELECTION AND BENCHMARKING”, the entire contents of which are incorporated herein by reference. This application is related to a co-pending application entitled “BATTERY STATE OF CHARGE TRACKING, EQUIVALENT CIRCUIT SELECTION AND BENCHMARKING”, attorney docket number 0078-055003-7501115503, the entire contents of which are incorporated herein by reference.

FIELD

Embodiments relate to calculating state of charge of a battery.

BACKGROUND

Electrochemical storage devices play an important part of future energy strategy. Indeed, batteries are a viable energy storage technology of today and in the near future. A wide range of devices, such as portable electronic equipment, mobile household appliances, aerospace equipment, etc., are increasingly being powered by batteries. Accurate estimation of, for example, the state of charge of a battery can be difficult using known systems and methods. Thus, a need exists for systems, methods, and apparatus to address the shortfalls of present technology and to provide other new and innovative features.

SUMMARY

One embodiment includes a method. The method includes calculating a first estimated state of charge (SOC) of a battery at a first time, receiving a voltage value representing a measured voltage across the battery at a second time, calculating a filter gain at the second time, and calculating a second estimated SOC of the battery at the second time based on the first estimated SOC, the voltage value, and the filter gain.

Another embodiment includes a system. The system includes a battery and a battery fuel gauge module configured to calculate an estimated state of charge (SOC) of the battery using a reduced order filter, the reduced order filter being a single state filter configured to recursively calculate the estimated SOC based on a previously calculated SOC estimate.

Still another embodiment includes a computer readable medium including code segments. When executed by a processor, the code segments cause the processor to calculate an estimated state of charge (SOC) of a battery, store the estimated SOC in a buffer, and calculate an updated estimated SOC of the battery using a reduced order filter, the reduced order filter being a single state filter configured to recursively calculate the updated estimated SOC based on the estimated SOC.

BRIEF DESCRIPTION OF THE DRAWINGS

Example embodiments will become more fully understood from the detailed description given herein below and the accompanying drawings, wherein like elements are represented by like reference numerals, which are given by way of illustration only and thus are not limiting of the example embodiments and wherein:

FIGS. 1 and 2 illustrate block diagrams of a battery management system (BMS) according to at least one example embodiment.

FIG. 3 illustrates a block diagram of a signal flow for selecting a battery equivalent model according to at least one example embodiment.

FIG. 4 illustrates a block diagram of a signal flow for calculating a battery state of charge (SOC) according to at least one example embodiment.

FIG. 5 illustrates a block diagram of a battery fuel gauge (BFG) system according to at least one example embodiment.

FIG. 6 illustrates a block diagram of a signal flow for a parameter module of the BFG system according to at least one example embodiment.

FIG. 7 illustrates a block diagram of a signal flow for a SOC module of the BFG system according to at least one example embodiment.

FIG. 8 illustrates a block diagram of the SOC module according to at least one example embodiment.

FIG. 9 illustrates a block diagram of a total least squared (TLS) module of the SOC module according to at least one example embodiment.

FIG. 10 illustrates a block diagram of a recursive least squared (RLS) module of the SOC module according to at least one example embodiment.

FIGS. 11 and 12 illustrate flowcharts of methods according to at least one example embodiment.

FIGS. 13A-13D illustrate schematic diagrams of battery equivalent models according to at least one example embodiment.

FIG. 14 is a diagram that illustrates OCV-SOC characterization curve of a portable Li-ion battery cell.

FIGS. 15A and 15B are graphs that illustrate a load profile.

FIGS. 16A and 16B are graphs that illustrate a simulated load profile.

FIG. 17 is a diagram that illustrates an example system implementation.

FIG. 18 is a diagram that illustrates a user interface that can be used in conjunction with a system implementation.

FIGS. 19A and 19B include graphs that illustrate an example discharge voltage/current profile.

FIGS. 20A and 20B are graphs that illustrate an example Coulomb Counting evaluation method.

FIGS. 21A and 21B are diagrams that illustrate a time to shutdown (TTS) evaluation method.

FIGS. 22A, 22B and 22C are tables representing fuel gauge readings.

It should be noted that these Figures are intended to illustrate the general characteristics of methods and/or structure utilized in certain example embodiments and to supplement the written description provided below. These drawings are not, however, to scale and may not precisely reflect the precise structural or performance characteristics of any given embodiment, and should not be interpreted as defining or limiting the range of values or properties encompassed by example embodiments. For example, the relative thicknesses and positioning of structural elements may be reduced or exaggerated for clarity.

DETAILED DESCRIPTION OF THE EMBODIMENTS

While example embodiments may include various modifications and alternative forms, embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit example embodiments to the particular forms disclosed, but on the contrary, example embodiments are to cover all modifications, equivalents, and alternatives falling within the scope of the claims. Like numbers refer to like elements throughout the description of the figures.

Accurate estimation of the state of batteries, such as the state of charge (SOC), state of health (SOH), and remaining useful life (RUL), is critical to reliable, safe and widespread use of the devices being powered by batteries. Estimating these quantities is known as battery fuel gauging (BFG). Unlike the hydrocarbon fuels in many of today's automobiles, the storage capacity of a battery is not a constant quantity. Typically, the battery capacity varies with the age of the battery, usage patterns and temperature, making BFG a challenging adaptive estimation problem, requiring modeling and on-line parameter identification of battery characteristics across temperature changes, SOC variations, and age.

FIGS. 1 and 2 illustrate block diagrams of a system 100 according to at least one example embodiment. As shown in FIG. 1, the system 100 includes a battery 105, a battery management system (BMS) 110, a display 120, an unlimited power source 125 (e.g., a wall outlet, an automobile charging station, and the like), and a switch 130.

The BMS 110 may be configured to manage utilization and/or a condition of the battery 105. For example, the BMS 110 may be configured to connect or disconnect the unlimited power source 125 to the battery 105 using switch 130 to charge the battery 105. For example, the BMS 110 may be configured to connect or disconnect a load (not shown) to the battery 105. For example, the BFG 115 may be configured to calculate a state of charge (SOC) and/or state of health (SOH) of the battery 105. The SOC and/or SOH may be displayed (e.g., as a percentage, as a time remaining, etc.) on the display 120.

As shown in FIG. 2, the BMS 110 includes, at least, analog to digital converters (ADC) 205, 220, filters 210, 225, a digital amplifier 215, and a battery fuel gauge (BFG) 115. The BFG 115 includes a memory 230, a processor 235 and a controller 240. At least one of the ADC 205, 220, the filters 210, 225, the digital amplifier 215, and the BFG 115 may be, for example, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a field programmable gate array (FPGA), a processor, and/or so forth. Alternatively, the BMS 110 may be an ASIC, a DSP, an FPGA, a processor, and/or so forth including the shown functional blocks. Alternatively, the system 100 may be implemented as software stored on a memory and executed by, for example, a processor.

The BMS 110 may be configured to convert an analog measurement (e.g., Ib and Vb) to a digital value using a combination of the digital converters (ADC) 205, 220, the filters 210, 225, and the digital amplifier 215 (e.g., for use by the BFG 115 to calculate SOC and/or SOH). For example, the digital amplifier 215 may be a differential amplifier that generates (e.g., produces) an analog signal based on the voltage drop Vb across the battery 105 (e.g., the difference in voltage values between the positive and negative terminal) which is then converted to a filtered digital value using ADC 220 and filter 225.

System 100 may be a subsystem of any system or electronic device that utilizes a battery to provide power. In some implementations, the electronic device can be, or can include, for example, a laptop-type device with a traditional laptop-type form factor. In some implementations, the electronic device can be, or can include, for example, a wired device and/or a wireless device (e.g., Wi-Fi enabled device), a computing entity (e.g., a personal computing device), a server device (e.g., a web server), a toy, a mobile phone, an audio device, a motor control device, a power supply (e.g., an off-line power supply), a personal digital assistant (PDA), a tablet device, e-reader, a television, an automobile, and/or so forth. In some implementations, the electronic device can be, or can include, for example, a display device (e.g., a liquid crystal display (LCD) monitor, for displaying information to the user), a keyboard, a pointing device (e.g., a mouse, a trackpad, by which the user can provide input to the computer).

FIG. 3 illustrates a block diagram 300 of a signal flow for selecting a battery equivalent model according to at least one example embodiment. As shown in FIG. 3, a model selection block 310 receives an input (e.g., voltage and/or current signals from a battery and/or a load) and uses the input (or some variation thereof) to select an equivalent model representing (or corresponding to) a battery from an equivalent model library 305. The equivalent model is then used to calculate a state of charge (SOC) by the state of charge calculator block 315. The equivalent model library 305 may include at least one equivalent model representing a battery. Each equivalent model may be based on an operational mode of the battery (or an equivalent battery). The operational mode may be based on a load associated with the battery. For example, the operational mode may be based on the voltage drop across the load. For example, the operational mode may be based on whether or not the voltage drop across the load is relatively high or low, relatively constant or dynamic, and/or a combination thereof.

The equivalent model (see FIGS. 13A-13D below) may include any combination of resistors, voltages (e.g., voltage drops or voltage sources), resistance-current (RC) circuits, impedance circuits, and/or the like. Accordingly, a mathematical (e.g., formula) equivalent for the equivalent model of the battery may be developed. The equivalent model library 305 may store the mathematical equivalent in relation to the operational mode of the battery. The mathematical equivalent may be used in a calculation of SOC by the state of charge calculator block 315. For example, the mathematical equivalent may be used to determine variables as inputs to a formula used to calculate SOC (or an estimation of SOC). Accordingly a BFG system can select equivalent models based on operational modes to improve calculation efficiency and reduce processing times. Further details are provided below with regard to FIGS. 5-12.

FIG. 4 illustrates a block diagram 400 of a signal flow for calculating a battery state of charge (SOC) according to at least one example embodiment. As shown in FIG. 4, the block diagram 400 includes an extended Kalman filter (EKF) block 405, state of charge (SOC) blocks 410, 420, filter gain parameter blocks 415, 425 and a buffer 430. The EKF block 505 may be configured to calculate a SOC 420 and determine filter gain parameters 425 (e.g., a read and/or calculated SOC variance, a measured voltage, a calculated capacity, variables associated with an equivalent circuit, and/or the like) based on previously calculated SOC(s) 410 and filter gain parameters 415. Accordingly, buffer 430 may be configured to store previously calculated SOC(s) and filter gain parameters in, for example, a processing loop. In other words, a current (or next) SOC may be calculated based on at least one previously calculated SOC. In other words, a SOC calculated at a first time may be used to calculate a SOC at a second (later) time.

In an example implementation, at least two SOC's 410 and/or sets of filter gain parameters 415 may be used. Therefore, a vector of at least two SOC's, an array of at least two SOC's, an average of at least two SOC's, and a mean of at least two SOC's and corresponding filter gain parameters may be used to calculate a next SOC 420 (or SOC at a second time) and determine/calculate corresponding filter gain parameters 425. Accordingly, buffer 430 may be configured to store a plurality of previously calculated SOC(s) 410 and calculated/determined filter gain parameters 415. Accordingly a BFG system can utilize a previously calculated SOC to improve calculation efficiency and reduce processing times. Further details are provided below with regard to FIGS. 5-12.

FIG. 5 illustrates a block diagram of a battery fuel gauge (BFG) 115 system according to at least one example embodiment. As shown in FIG. 5, the BFG 115 includes an estimation module 510, a tracking module 520, a forecasting module 530, an open voltage circuit-state of charge (OCV-SOC) characterization module 540, an offline parameter estimation module 545 and a battery life characterization module 550. In addition, the system includes an offline data collection module 555 and a battery modeling module 560.

The offline data collection module 555 may be configured to measure battery characteristics in a relatively controlled testing environment. For example, open circuit voltage (OCV) measurements and SOC measurements may be collected for the battery 105 (or an equivalent battery) in a test lab environment. For example, the battery 105 (or equivalent battery) may be initialized to a fully charged (e.g., nearly fully charged, substantially fully charged), rested state. OCV and SOC measurements may be made. Then the battery 105 (or equivalent battery) may be slowly discharged with OCV and SOC measurements made at intervals (e.g., regular, periodic, irregular, predetermined) until the battery 105 (or equivalent battery) is fully (or substantially) discharged. The OCV and SOC measurements may be used to determine, calculate or estimate battery parameters (e.g., OCV parameters Ki∈{K0;K1;K2;K3;K4;K5;K6;K7} described below).

Data from the offline data collection module 555 may be used in the battery modeling module 560 to determine, for example, equivalent models for the battery 105 (or equivalent battery) and/or mathematical equivalents for the equivalent models. Data from the offline data collection module 555 may be used in the offline parameter estimation module 545 to determine and/or calculate parameters (e.g., values for components associated with the aforementioned equivalent models) associated with the battery 105 (or equivalent battery). Data from the offline data collection module 555 may be used in the OVC-SOC characterization module 540 to determine and/or calculate OCV and SOC battery parameters (e.g., OCV parameters Ki∈{K0;K1;K2;K3;K4;K5;K6;K7} described below). Data from the offline parameter estimation module 545 may be used in the battery life characterization module 550. For example, data from the offline parameter estimation module 545 may be used to calculate an initial state of health (SOH) characteristic (e.g., maximum SOC) by the battery life characterization module 550.

The display 120 is shown as having a SOC display 565, a SOH display 570, a time to shutdown (TTS) display 575, and a remaining useful life (RUL) display 580. Each display may be, for example, a meter showing a percentage. Values for each of the displays may be calculated or determined by the BFG 115. For example, TTS may be displayed as a time value (e.g., hours and/or minutes) as calculated by the TTS module 532.

The estimation module 510 includes a parameter module 512 and a capacity module 510. The estimation module 510 may be configured to calculate and/or determine values (e.g., parameters and capacity values) that are specific to the battery 105 (or an equivalent battery). In a stable environment (e.g., a test lab) the parameter and capacity values may be fixed (e.g., do not vary). However, in a real world environment the parameter and capacity values may be dynamic or vary. For example, complete SOC tracking solution typically involves (1) estimation of the OCV parameters that form part of the state space model through offline OCV characterization. The OCV-SOC characterization is stable over temperature changes and aging of the battery. Once estimated, these parameters form part of state-space model with known parameters. (2) Estimation of the dynamic electrical equivalent circuit parameters. These parameters have been observed to vary with temperature, SOC and age of the battery and hence should be adaptively estimated while the BFG is operational. (3) Estimation of battery capacity: Even though the nominal capacity of the battery is specified by the manufacturer, the usable battery capacity is known to vary due to errors in the manufacturing process, temperature changes, usage patterns, and aging. And (4) model parameter-conditioned SOC tracking. Once the model parameters are known, the SOC tracking becomes a nonlinear filtering problem. However, it is observed that the resulting state-space model contains correlated process and measurement noise processes. Properly addressing the effect of these correlations will yield better SOC tracking accuracy. Therefore, in example implementations, in order to calculate parameters and capacity, the tracking module 520 may feed back data to the estimation module 510.

Further, typical methods of estimating battery capacity neglect hysteresis effects and assume that the rested battery voltage represents the true open circuit voltage (OCV) of the battery. However, according to example embodiments, the estimation module 510 models hysteresis as an error in the OCV of the battery 105 and employs a combination of real time, linear parameter estimation and SOC tracking technique to compensate for the error in the OCV.

The tracking module 520 includes a SOC module 522 and a SOH module 524. SOC indicates the amount of “fuel” in the battery 105. As described above, SOC is the available capacity expressed as a percentage of some reference (e.g., rated capacity or current capacity). According to example embodiments, SOC module 522 calculates SOC using tracking to compensate for error in the OCV (in combination with the parameter estimation) described in more detail below. SOH indicates the condition of a battery as compared with a new or ideal battery. SOH may be based on charge acceptance, internal resistance, voltage, self-discharge, and/or the like.

The forecasting module 530 includes a TTS module 532 and a RUL module 534. The TTS module 532 and the RUL module 534 may be configured to calculate TTS and RUL based on SOC.

FIG. 6 illustrates a block diagram of a signal flow for a parameter module 412 of the BFG 115 according to at least one example embodiment. A BFG system can select equivalent models based on operational modes to improve calculation efficiency and reduce processing times. As shown in FIG. 6, the parameter module 412 includes an operational mode module 605 and a model selection module 610. The operational mode module 605 may be configured to determine an operational mode (of a battery) based on at least one input from the battery 105 and/or at least one input from the load 615. The at least one input may be based on at least one of a current and a voltage associated with at least one of the battery 105 and the load 615. For example, a voltage drop across the load 615. For example, the operational mode may be based on whether or not the voltage drop across the load 615 is relatively high or low, relatively constant or dynamic, and/or a combination thereof. The model selection module 610 may select an equivalent model (or mathematical equivalent thereof) based on the determined operational mode. For example, the model selection module 610 may generate a query term used to search equivalent model library 305.

In some implementations, several operational modes may be defined or characterized. In an example implementation, four operational modes associated with a battery and the system using the battery are described below.

In a first operational mode, the battery 105 may be attached to a heavy and varying load. In other words, the load 615 may be utilizing a relatively high voltage with a dynamic or varying current draw (or a high voltage load drawing variable current). For example, in a mobile phone, the first operational mode may include a usage environment where the mobile phone usage includes prolonged video play, multimedia and gaming applications, and the like. The equivalent circuit shown in FIG. 13A below may represent a battery attached to a heavy and varying load.

In a second operational mode, the battery 105 may be attached to a dynamic load and/or a variable voltage load. In other words, the load 615 may be utilizing a dynamic or varying voltage. For example, in a mobile phone, the second operational mode may include a usage environment where the mobile phone usage includes regular use for phone calls, web browsing and/or playing video clips. The equivalent circuit shown in FIG. 13B below may represent a battery attached to a dynamic load.

In a third operational mode, the battery 105 may be attached to or drawing a constant current. In other words, the load 615 may be drawing a constant (or substantially constant) load. Alternatively, the battery 105 may be being charged utilizing a constant current. For example, the battery 105 may be disconnected from load 615 for a charging cycle (e.g., the unlimited power source 125 may be connected to the battery 105 using switch 130 to charge the battery 105). The equivalent circuit shown in FIG. 13C below may represent a battery attached to a constant current.

In a fourth operational mode, the battery 105 may be attached to a relatively low voltage load. Alternatively, the battery 105 may be in a cyclical rest state where the battery 105 undergoes light loading followed by a charging and then resting, minimal, or no load. In other words, the load 615 may be utilizing a minimal voltage infrequently. For example, in a mobile phone, the fourth operational mode may include a usage environment where the mobile phone usage includes, after a full (or substantially full) charge, regular pinging of a tower with infrequent phone calls. The equivalent circuit shown in FIG. 13D below may represent a battery attached to a dynamic load.

FIG. 7 illustrates a block diagram of a signal flow for a SOC module 422 of the BFG 115 system according to at least one example embodiment. As shown in FIG. 7, the SOC module 422 includes a buffer block 705, a model estimation block 710, a SOC tracking block 715, and a voltage drop prediction module or block 720.

In example embodiments, hysteresis is modeled as an error in the OCV of the battery 105. The voltage drop vd[k] may represent the voltage across the internal battery model components R0, R1, R2 and xh[k] (see FIG. 13A). The term xh[k] may be used to account for the errors in predicted SOC. In other words, xh[k] may be an “instantaneous hysteresis” which can be corrected to zero by adjusting a calculated or estimated SOC. For a calculated or estimated SOC to be equal to SOC, a calculated or estimated xh[k] should be equal to zero. In other words, a calculated or estimated xh[k] not equal to zero indicates an error in the calculated or estimated SOC. The voltage drop model parameter vector (b) includes an element corresponding to calculated or estimated xh[k].

Accordingly, in the flow of FIG. 7, a current calculated or estimated SOC from SOC tracking block 715 is used in voltage block prediction block 720 to compute the voltage drop vD[k]. At least one past voltage drop vD[k] is stored in the buffer 705 and used for estimation of the parameter vector b. A nonzero value of the corresponding calculated or estimated xh[k] in the parameter vector b indicates the presence of instantaneous hysteresis. This implies SOC estimation error. The SOC tracking algorithm of SOC tracking block 715 is configured to correct the SOC whenever the calculated or estimated xh[k] is nonzero. Further details with regard to voltage drop vD[k], hysteresis, estimated xh[k], voltage drop model parameter vector (b) and SOC tracking are described (mathematically) below. Accordingly a BFG system can utilize a previously calculated SOC and SOC error to accurately estimate SOC, improve calculation efficiency and reduce processing times.

FIG. 8 illustrates a block diagram of the SOC module 422 according to at least one example embodiment. As shown in FIG. 8, the SOC module 422 includes an extended Kalman filter (EKF) block 805. The EKF block may be configured to calculate a SOC 845 and an SOC error 840. The EKF block 805 may be configured to calculate the SOC 845 as an estimated SOC using Equation 1 and the SOC error 840 as an estimated SOC error (or variance) using Equation 2. In each of the below equations k refers to an instantaneous iteration, k+1|k refers to a last, a previous or earlier iteration and k+1|k+1 refers to a current, an update, a next or a subsequent iteration.


{circumflex over (x)}[k+1|k+1]={circumflex over (x)}[k+1|k]+G[k+1]vk+1  (1)

where:

    • {circumflex over (x)}[k+1|k+1] is the estimated SOC for the current or update iteration;
    • {circumflex over (x)}[k+1|k] is the estimated SOC for the last or predicted iteration;
    • G[k+1] is the filter gain for the last or predicted iteration; and
    • vk+1 is the load voltage for the last or predicted iteration.


Ps[k+1|k+1]=(1−G[k+1]H[k+1])Ps[k+1|k](1−G[k+1]H[k+1])T+G[K+1]2(0)  (2)

where:

    • Ps[k+1|k+1] is the SOC estimation error or variance for the current or update iteration;
    • G[k+1] is the filter gain for the last or predicted iteration;
    • H[k+1] is the linearized observation coefficient;
    • Ps[k+1|k] is the SOC estimation error or variance for the last or predicted iteration; and
    • (0) is the voltage drop noise with zero mean and correlation at initialization.

The SOC module 422 includes an OCV parameters block 810. The OCV parameters block 810 may be configured to store and/or receive the OCV parameters {Ki} from the OVC-SOC characterization module 540. The OCV parameters {Ki} are constants in that they are measured offline and change over the life of the battery 105 is negligible (or nonexistent). The OCV parameters are used to calculate the OCV in terms of SOC according to Equation 3.

V 0 ( s [ k ] ) = K 0 + K 1 s [ k ] + K 2 s 2 [ k ] + K 3 s 3 [ k ] + K 4 s 4 [ k ] + K 5 s [ k ] + K 6 ln ( s [ k ] ) + K 7 ln ( 1 - s [ k ] ) ( 3 )

where:

    • s[k] is the SOC; and
    • Vo (s[k]) is the open circuit voltage (OCV);

The SOC module 422 includes a voltage drop model block 825. The voltage drop block 825 may be configured to calculate voltage drop across the load using the voltage drop model (discussed above) according to Equation 4 or 5.


Zv[k]=Vo(xs[k])+a[k]Tb+nD[k]  (4)


Zv[k]=Vo(xs[k])+â[k]T{circumflex over (b)}+nD[k]  (5)

where:

    • Zv[k] is the measured voltage;
    • Vo(xs[k]) is the open circuit voltage (OCV);
    • a[k]T is the voltage drop model;
    • b is the voltage drop model parameter vector;
    • â[k]T is the estimated voltage drop model;
    • {circumflex over (b)} is the estimated voltage drop model parameter vector; and
    • nD[k] is the voltage drop observation noise.

The voltage drop model may vary based on a selected equivalent circuit model as described above. The selected equivalent circuit model and/or the voltage drop model may be read from data store 855. For example data store 855 may include the equivalent model library 305.

The EKF (module or) block 805 may be configured to calculate the SOC 845 as an estimated SOC using Equation 1 and store the resultant SOC 845 in buffer 850. The EKF block 805 may be configured to calculate the SOC error 840 as an estimated SOC error (or variance) using Equation 2 and store the resultant SOC error 840 in buffer 850. The stored SOC and SOC error may be read as SOC 815 and SOC error 820 the stored SOC 845 and SOC error 840. Accordingly, the EKF block may calculate SOC 845 and SOC error 840 recursively (e.g., in a loop) such that a subsequent (update, next, and/or later in time) SOC 845 and SOC error 840 calculation may be based on at least one previous (current, last or earlier in time) SOC 815 and SOC error 820 calculation.

As shown in FIG. 8, recursive least squared (RLS) block 830 and total least squared (TLS) block 835 may generate inputs to the EKF block 805. The RLS block may generate an initial the estimated voltage drop model parameter vector (which may include at least one voltage drop model parameter) and the TLS block 835 may generate an initial estimated capacity. The initial the estimated voltage drop model parameter vector and the initial estimated capacity may be generated for each loop. In an example implementation, a change in the initial the estimated voltage drop model parameter vector and the initial estimated capacity may become negligible as the number of iterations (k) increases.

FIG. 9 illustrates a block diagram of a total least squared (TLS) block 835 of the SOC module 422 according to at least one example embodiment. As shown in FIG. 9, the TLS block 635 includes a buffer 910 and a TLS calculation module 915. The buffer 910 is configured to receive, store and output SOC data e.g., delta (or change in) SOC data 920 for use by the TLS calculation module 915. The buffer 910 is further configured to receive, store and output delta (or change in) coulomb data 925 use by the TLS calculation module 915. The buffer 910 may receive current data 905 as, for example, coulomb counting data based on measured current associated with the battery 105.

The TLS calculation module 915 may be configured to calculate capacity 930 of the battery 105 based on the delta SOC 920 and the delta coulomb 925. For example, the TLS calculation module 915 may calculate capacity 930 using Equation 6. Derivation of Equation 6 is shown in more detail below.

C ^ TLS [ k ] = s H k ( 1 , 2 ) s H k ( 1 , 1 ) - Δ k ( 2 , 2 ) ( 6 )

where:

    • ĈTLS[k] is the estimated capacity;
    • SHk(i,j) is the covariance of an augmented observation matrix; and
    • Δk(2,2) is a diagonal 2×2 matrix of non-negative eigenvalues;

FIG. 10 illustrates a block diagram of a recursive least squared (RLS) block 830 of the SOC module 422 according to at least one example embodiment. As shown in FIG. 10, the RLS block 635 includes a buffer 1005 and a RLC calculation module 1010. The buffer 1005 is configured to receive and store SOC 815, SOC error 820 and voltage drop data (e.g., Zv[k] or OCV) as output from the voltage drop model block 825. The buffer 1005 is configured to output a voltage drop 1015 and a current and capacitance (I&C) matrix 1020.

The RLC calculation module 1010 may be configured to calculate initialization parameters 1025 based on the voltage drop 1015 and the (I&C) matrix 1020. For example, the RLC calculation module 1010 may calculate initialization parameters 1025 using Equation 7. Derivation of Equation 7 is shown in more detail below.

b = { b ( 1 ) = Δ α ( k ) = α 1 + α 2 b ( 2 ) = Δ β ( k ) = α 1 α 2 b ( 3 ) = R 0 b ( 4 ) = Δ R ^ 1 = ( α 1 + α 2 ) R 0 - ( 1 - α 1 ) R 1 - ( 1 - α 2 ) R 2 b ( 5 ) = Δ R ^ 2 = ( α 1 α 2 ) R 0 - α 2 ( 1 - α 1 ) R 1 - α 1 ( 1 - α 2 ) R 2 b ( 6 ) = Δ h ^ [ k ] = x h [ k ] - α ( k ) x h [ k + 1 ] + β ( k ) x h [ k - 2 ] ( 7 )

where:

    • αi is the current decay coefficient in the R1C1 circuit;
    • βi is the current decay coefficient in the R2C2 circuit;
    • {circumflex over (R)}2 is the estimated resistance value of R1;

{circumflex over (R)}2 is the estimated resistance value of R2;

    • ĥ[k] is the estimated hysteresis voltage of the battery; and
    • xh[k] is the instantaneous hysteresis;

Noting as described with regard to FIG. 7 above, estimated hysteresis voltage of the battery should be zero. Accordingly, in example implementations b(6) in Equation 7 should be zero using SOC tracking block 715 to remove (or substantially remove) error due to hysteresis using SOC tracking. Accordingly, the SOC estimate is more accurate because hysteresis may be accounted for.

In FIGS. 8-10, buffer 1005 length may be Lb for parameter estimation and buffer 905 length may be Lc for capacity estimation. The EKF block 805 iterates for every k whereas the RLS 830 iterates for every k which is an integer multiple of Lb, and TLS 835 iterates for every k which is an integer multiple of Lc where k is the time index. The BFG estimates all the required model parameters and battery capacity required for SOC tracking except for the OCV parameters (that are estimated offline) and voltage and current measurement error standard deviations σv, σi that come from the calibration of measurement instrumentation circuitry. The RLS blocks do not require any external initial conditions—just setting λ=1 provides a robust LS estimate as initializations, i.e., {circumflex over (b)}RLSb] and ĈTLSc] where

κ b = k L b and κ c = k L c

are the batch numbers. The mathematical proof of the EKF block 805 is described below.

FIGS. 11 and 12 illustrate flowcharts of methods according to at least one example embodiment. The steps described with regard to FIGS. 11 and 12 may be performed due to the execution of software code stored in a memory (e.g., memory 230) associated with an apparatus (e.g., the BMS 110 as shown in FIGS. 1 and 2) and executed by at least one processor (e.g., processor 235) associated with the apparatus. However, alternative embodiments are contemplated such as a system embodied as a special purpose processor. Although the steps described below are described as being executed by, for example, a processor, the steps are not necessarily executed by a same processor. In other words, at least one processor may execute the steps described below with regard to FIGS. 11 and 12.

FIG. 11 illustrates a flowchart of a method for selecting an equivalent model representing a battery for use in calculating an estimated SOC. As shown in FIG. 11, in step S1105 a library of equivalent circuit models representing a battery is stored in a memory. For example, using the offline data collection module 555, data associated with battery 105 (or an equivalent battery) can be collected. Using the data and general circuit tools, at least one equivalent circuit representing the battery may be generated. The equivalent circuit may include any combination of at least one equivalent voltage, resistance, capacitance and/or impedance equivalent. See, for example, FIGS. 13A-13D below. A mathematical equivalent for each equivalent circuit can also be generated. The equivalent circuit and/or the mathematical equivalent may be stored in, for example, equivalent model library 305.

In step S1110 an operational mode of a battery is determined based on a load associated with the battery. For example, each equivalent model may be based on an operational mode of the battery (or an equivalent battery). The operational mode may be based on a load associated with the battery. For example, the operational mode may be based on the voltage drop across the load. For example, the operational mode may be based on whether or not the voltage drop across the load is relatively high or low, relatively constant or dynamic, and/or a combination thereof. Therefore, the operational mode may be determined based on a current and/or a voltage associated with the battery and/or a load associated with the battery.

In step S1115 one of the equivalent circuit models for the determined mode is selected based on the determined mode. For example, the equivalent model library 305 may be searched based on the determined operational mode. For example, the equivalent circuit and/or the mathematical equivalent representing the battery may be stored in equivalent model library 305 in correspondence with an operational mode identification (e.g., a unique name or a unique identification number). Accordingly, determining the operational mode may include determining an operational mode identification which is then used to search the equivalent model library 305. Selecting the equivalent circuit can include selecting the equivalent circuit or mathematical equivalent returned by the search of the equivalent model library 305.

In step S1120 a state of charge of charge (SOC), or an estimated SOC, of the battery is calculated using the selected equivalent circuit model. For example, as described above, calculating the SOC may be based on a voltage drop model parameter vector (b). The voltage drop model parameter vector may have parameters that are based on the equivalent circuit of the battery (see Equation 7 above). Accordingly, the determined voltage drop model parameter vector may more or less complex based on the equivalent circuit. For example, as described below, an equivalent circuit may not include RC circuit elements because the capacitor charges and bypasses the resistance. Accordingly, b(3) may be the only remaining voltage drop model parameter vector element. Thus simplifying the calculation of the SOC or estimated SOC. Further, a voltage across the battery 105 terminals v[k], which may be used in calculating the SOC or estimated SOC may be based on the equivalent circuit model. Equations relating v[k], SOC and the equivalent circuit model are described in more detail below.

FIG. 12 illustrates a flowchart of a method for calculating an estimated SOC using a recursive filter. As shown in FIG. 12, in step S1205 a stored estimated state of charge (SOC) of a battery is read from a buffer. For example, the buffer 850 may have stored in it at least one SOC error and SOC calculated in a previous iteration of the steps described with regard to this flowchart. At least one of the stored SOC values may be read from buffer 850.

In step S1210 a measured voltage across the battery is read. For example, a voltage (e.g., v[k] shown in FIGS. 13A-13D below) may be read or determined using, for example, digital amplifier 215. In one example implementation, the voltage is stored in a buffer. Accordingly, different iterations can use different voltage measurements. In other words, a previous (in time) voltage measurement can be used in a current iteration or v[k+1] could be used in iteration k+2.

In step S1215 a filter gain is calculated. For example, as described briefly above and in more detail below, filter gain for the EKF block 805 (e.g., G[k+1]) is calculated. Filter gain may be based on at least one capacity value calculated using a weighted least squared algorithm. For example, filter gain may be based on at least one capacity value calculated using at least one of a weighted recursive least squared (RLS) algorithm and a total least squared (TLS) algorithm. Filter gain may be based on a capacity value calculated using a weighted RLS algorithm based on a SOC tracking error covariance and a current measurement error standard deviation. Filter gain may be based on an estimated SOC variance. Filter gain may be based on a capacity value calculated using a TLS algorithm based on a recursive updating of a covariance matrix. Filter gain may be based on a capacity value calculated using an open circuit voltage (OCV) look-up. Each of the SOC tracking error covariance, current measurement error standard deviation, SOC variance, covariance matrix and OCV are described in more detail (e.g., mathematically) below.

In step S1220 an estimated SOC of the battery is calculated based on the stored SOC of the battery, the voltage across the battery, and the filter gain. For example, the estimated SOC may be equal to the filter gain times the digital voltage value plus the stored estimated SOC. In step S1225 the calculated estimated SOC is stored in the buffer (e.g., buffer 850). If further calculating of the estimated SOC is necessary and/or desired (S1230), processing returns to step S1205. For example, further calculations may be necessary and/or desired if the battery 105 is in continual use, if SOC error exceeds a desired value and further iterations may reduce the error, a battery test is in process and/or the like.

FIGS. 13A-13D illustrate schematic diagrams of battery equivalent models according to at least one example embodiment. FIGS. 13A-13D will be referred to as necessary below to describe one or more example implementations. As shown in FIGS. 13A-13D, equivalent models representing a battery 1300-1, 1300-2, 1300-3, 1300-4 may include any combination of resistors 1315, 1325, 1340, capacitors, 1330, 1345 and equivalent voltage sources 1305, 1310. Voltage 1355 represents the voltage drop across the battery when loaded. Currents 1320, 1335 and 1350 represent current flowing through (or to) an element of the equivalent model. For example, current 1350 represents the current flowing to a load.

A resistor and a capacitor may define an RC circuit. For example, resistor 1325 and 1330 define an RC circuit. In some example implementations, a capacitor may be fully charged and short causing an RC circuit to effectively disappear from the equivalent model. For example, in equivalent model representing a battery 1300-2 the RC circuit defined by resistor 1340 and capacitor 1345 is not in the model because capacitor 1345 is fully charged forming a short circuit. In some example embodiments there is no (or minimal) hysteresis associated with the battery (e.g., the battery is at rest or drawing minimal load). Therefore, as shown in equivalent model representing a battery 1300-4 equivalent voltage source 1310 is not in the model because of the lack of hysteresis.

This disclosure continues by describing details of example implementations. The details may include development (e.g., mathematical proof or simplification) of at least one of the above equations. The equations may be repeated for clarity, however, the equations will retain the equation number shown in a bracket ([ ]). Beginning with real time model identification, which may reference the following notations.

  • a[k]T Observation model
  • Aκ Consecutive observations of a[k]T in batch κ, stacked in a matrix
  • b[k] Observation model parameter
  • {circumflex over (b)}LS[κ] LS estimate of model parameters
  • {circumflex over (b)}RLS[κ] RLS estimate of model parameter
  • i[k] Current through the battery
  • Ki OCV parameters: K0, K1, K2, K3, K4, K5, K6, K7
  • Lb Length of batch for parameter estimation
  • ni[k] Current measurement error
  • nv[k] Voltage measurement error
  • Pb[κ] Covariance matrix of the LS estimator
  • R0 Battery internal series resistance
  • R1 Battery internal resistance in R1C1 circuit
  • R2 Battery internal resistance in R2C2 circuit
  • v[k] Voltage across the battery
  • vD[k] Voltage drop
  • vDκ κth batch of consecutively observed voltage drops in vector form
  • VD[z] z-transform of the voltage drop
  • xi1[k] Current through R1
  • xi2[k] Current through R2
  • xs[k] State of charge (SOC) s[k]
  • {circumflex over (x)}s[k] Estimate of xs[k]
  • zi[k] Measured current through the battery
  • zv[k] Measured voltage across the battery
  • Δ Sampling time
  • bi(k) LS fitting error
  • Ci[k] Percentage estimation error of Ci
  • Ri[k] Percentage estimation error of Ri
  • ΣDκ Voltage drop observation noise covariance

Elements of an SOC tracking algorithm may include:

    • a. Estimation of the OCV parameters: The OCV-SOC characterization is stable over temperature changes and aging of the battery when normalized by age and age dependent battery capacity.
    • b. Estimation of the dynamic electrical equivalent circuit parameters: These parameters have been observed to vary with temperature, SOC and age of the battery and hence should be adaptively estimated while the BFG is operational.
    • c. Estimation of battery capacity: Even though the nominal capacity of the battery is specified by the manufacturer, the usable battery capacity is known to vary due to errors in the manufacturing process, temperature changes, load patterns, and aging.
    • d. Model parameter-conditioned SOC tracking: Once the model parameters are known, the SOC tracking becomes a nonlinear filtering problem.

Example embodiments allow for the real time, linear estimation of dynamic equivalent circuit parameters for batteries. Improving existing approaches for battery equivalent circuit modeling and parameter estimation are accomplished in this example implementation by addressing the following issues:

    • a. Some models consider resistance-only and are unsuitable for dynamic loads.
    • b. They employ nonlinear approaches for system identification.
    • c. Require initial parameter estimates for model identification methods
    • d. A single dynamic equivalent model is assumed to represent all battery modes of operation

In this example implementation, the above four issues are addressed and summarized below as:

    • a. An online, linear approach for model parameter estimation without estimating the parameters of the exact physical representation of the battery equivalent circuit. SOC tracking state-space model leverages an estimation of modified parameters that can be linearly estimated.
    • b. Applicability to wide variety of batteries without requiring any initialization values or calibrations: Due to the adaptability of the example state-space model, the proposed SOC tracking approach does not require any offline initializations of model parameters. A least squares (LS) method provides initializations (or re-initializations) of parameters whenever required and a block recursive least squares (RLS) is employed to continuously track the model parameters. Further, a modified open circuit voltage (OCV) model is shown to be valid across different battery models, different temperatures and different load conditions. This allows an example BFG to be applicable in a plug-and-play fashion on a wide range of batteries without requiring any other additional information about them.
    • c. Possibility for seamless SOC tracking through different modes of the battery. Four different battery equivalent models may be identified in order to reflect very light loading or rest state, constant current or low frequency loading, dynamic loads and varying heavy loads. Four (slightly) different dynamic equivalent models are identified in order to best match these modes as well. These models can be used for seamless SOC tracking regardless of the mode changes in the battery operation.
    • d. Hysteresis modeling which obviates the need for hysteresis modeling: Example implementations recognize that it is nearly impossible to model hysteresis offline (perfectly) because hysteresis is a function of SOC∈[0 1] and load current I∈R. Therefore, according to example embodiments, in a voltage drop model, the hysteresis is modeled as the error in the OCV and the online filtering approach continuously tries to fill the gap by adjusting SOC (to the correct value.)

Real time model identification includes real time model parameter estimation using equivalent circuits. FIG. 13A is an equivalent circuit of an example battery (e.g., battery 105). When the battery is at rest, V0(s[k]) is the OCV of the battery. The OCV uniquely depends on the SOC of the battery, s[k]∈[0,1]. When the battery is active, for example, when there is current activity, the behavior of the battery is represented through the dynamic equivalent circuit consisting of a hysteresis component h[k], a series resistance R0 and two parallel RC circuits in series, (R1,C1) and (R2,C2). The discrete time is indicated using [k].

In FIG. 13A, the measured current through the battery is written as:


zi[k]=i[k]+ni[k]  (8)

where i[k] is the true current through the battery and ni[k] is the current measurement noise which is assumed to be zero mean and has standard deviation (s.d.) σi. The measured voltage across the battery is:


zv[k]=v[k]+nv[k]  (9)

where v[k] is the true voltage across the battery and nv[k] is the voltage measurement noise which is assumed to be zero mean with s.d. σv.

Writing the voltage drop of the battery across the internal components R0, R1, R2 and h[k] in the following form:


vD[k]zv[k]−V0[s[k]]=i[k]R0+xi1[k]R1+xi2[k]R2+xh[k]+nv[k]  (10)

where the currents through the resistors R1 and R2 can be written in the following form

x i 1 [ k + 1 ] = Δ i 1 [ k + 1 ] = α 1 i 1 [ k ] + ( 1 - α 1 ) i [ k ] ( 11 ) x i 2 [ k + 1 ] = Δ i 2 [ k + 1 ] = α 2 i 2 [ k ] + ( 1 - α 2 ) i [ k ] ( 12 ) where , α 1 = Δ e - Δ R 1 C 1 ; ( 13 ) α 2 = Δ e - Δ R 2 C 2 ; and ( 14 )

    • Δ is the sampling interval.

By substituting the measured current zi[k] for i[k], the currents in (11) and (12) can be rewritten as follows:


xi1[k+1]=α1xi1[k]+(1−α1)zi[k](1−α1)ni[k]  (15)


xi2[k+1]=α2xi2[k]+(1−α2)zi[k](1−α1)ni[k]  (16)

Now, using (8), (10) can be rewritten in the z-domain as follows:


VD[z]=Zi[z]R0+Xi1[z]R1+Xi2[z]R2+Xh[z]+Nv[z]−R0Ni[z]  (17)

Next, rewriting (15) in z-domain:


zXi1[z]=α1Xi1[z]+(1−α1)Zi[z]−(1−α1)Ni[z]  (18)

which yields

X i 1 [ z ] = 1 - α 1 z - α 1 ( Z i [ z ] - N i [ z ] ) ( 19 )

and similarly for (16),

X i 2 [ z ] = 1 - α 2 z - α 2 ( Z i [ z ] - N i [ z ] ) ( 20 )

By substituting (19) and (20) into (17):

V D [ z ] = Z i [ z ] R 0 + 1 - α 1 z - α 1 Z i [ z ] R 1 + 1 - α 2 z - α 2 Z i [ z ] R 2 + X h [ z ] + N v [ z ] - ( R 0 + 1 - α 1 z - α 1 R 1 + 1 - α 2 z - α 2 R 2 ) N i [ z ] ( 21 )

Rearranging (21) and converting it back to time domain:


vD[k]=αvD[k−1]−βvD[k−2]+R0zi[k]+{hacek over (R)}1zi[k−1]−{hacek over (R)}2zi[k−2 ]+ h[k]+ ni[k]+ nv[k]  (22)


where,


α=α12,  (23)


β=α1α2,  (24)


{hacek over (R)}1=(α12)R0−(1−α1)R1−(1−α2)R2,  (25)


{hacek over (R)}21α2R0−α2(1−α1)R1−α1(1−α2)R2,  (26)


h[k]=xh[k]−αxh[k−1]+βxh[k−2],  (27)


nv[k]=nv[k]−αnv[k−1]+βnv[k−2], and  (28)


ni[k]=R0ni[k]+{hacek over (R)}1ni[k−1]−{hacek over (R)}2ni[k−2]  (29)

Now, rewriting (22) in the following form:


vD[k]=[k]T+nD[k]  (30)

where the observation model a[k]T and the model parameter vector b are given by:


a[k]T=4[k]T[vD[k−1]−vD[k−2]zi[k]zi[k−1]−zi[k−2]1]  (31)


b=4[αβR0{hacek over (R)}1{hacek over (R)}2H]T  (32)

where the subscript 4 indicates the above model corresponding to Model 4 of the four models shown in FIGS. 13A-13B.

The noise in the voltage drop observation in (30) is written as:


nD[k] ni[k]+ nv[k]  (33)

which has autocorrelation given by:

R n D ( l ) E { n D [ k ] n D [ k - l ] } = { ( 1 + α 2 + β 2 ) σ v 2 + ( R 0 2 + R 1 2 + R 2 2 ) σ i 2 l = 0 - α ( 1 + β ) σ v 2 - R 1 ( R 0 + R 2 ) σ i 2 l = 1 β σ v 2 + R 0 R 2 σ i 2 l = 2 0 l > 2 ( 34 )

and it is assumed that the hysteresis component is a constant during the batch of time intervals of length Lb, for example,


h[l]=xh[l]−(α12)xh[l−1]+α1α2xh[l−2]≈H, l=k−Lb+1, . . . ,k  (35)

Now, four different “modes” of battery operations and appropriate battery equivalent models that match these modes can be described.

    • a. Mode 1—Light loading or rest state: When the battery undergoes only light loading and then followed by charging and then resting, the hysteresis component will be negligibly small. An example of this mode will be a cellular phone that, after being fully charged, spends almost all its time until the next charging event pinging the tower except for the possibility of few phone calls. A single resistor (see FIG. 13D), fits this mode well.

b. Mode 2—Constant current operation: When the current through the battery is constant, the capacitors in the RC circuits become fully charged. As a result, from a parameter estimation point of view, the resultant circuit can be considered as a single resistor and a hysteresis/bias component (see FIG. 13C). The constant current charging of the battery is a good example for this mode.

    • c. Mode 3—Dynamic loading: When the battery is in this mode, there is significant load of differing magnitudes. Example: a smart phone that is being regularly used for phone calls, web browsing, video clips etc. The battery equivalent shown in FIG. 13B fits this scenario well.
    • d. Mode 4—Heavy and varying usage: For a mobile phone, heavy and varying usage includes prolonged video play, multimedia and gaming applications, etc. FIG. 13A fits this scenario well.

Note that different model complexities of the dynamic equivalent circuit can be represented by changing only [k]T. The definitions of [k]T and for each model are shown below. For each of the above model complexities, the noise term nD[k] is expressed in terms of nt[k] and nv[k] as follows:

n _ v [ k ] = { n v [ k ] Model 1 n v [ k ] Model 2 n v [ k ] - α 1 n v [ k - 1 ] Model 3 n v [ k ] - ( α 1 + α 2 ) n v [ k - 1 ] + α 1 α 2 n v [ k - 2 ] Model 4 ( 36 ) n _ i [ k ] = { - R 0 n i [ k ] Model 1 - R 0 n i [ k ] Model 2 - R 0 n i [ k ] + R ~ 1 n i [ k - 1 ] Model 3 - R 0 n i [ k ] + R 1 n i [ k - 1 ] - R 2 n i [ k - 2 ] Model 4 ( 37 )

where,


α=α12  (38)


β=α1α2  (39)


{tilde over (R)}t1R0−(1−α1)R1  (40)

The following discussion relates to least squared estimation of time-invariant dynamic model parameters. Denoting the true SOC at time k as:


xs[k]s[k]  (41)

An SOC tracking algorithm developed can be used to obtain ̂xs[14], an updated estimate of xs[k]. Now, the voltage drop vD[k] in (10) can be written as:


vD[k]=zv[k]−V0({circumflex over (x)}s[k|k])  (42)

where V0({circumflex over (x)}s[k|k]) denotes the estimated open circuit voltage (OCV) of the battery which can be described as a function of estimated SOC. The following OCV-SOC relationship may be adopted:

V 0 ( x ^ s [ k k ] ) = K 0 + K 1 x ^ s [ k k ] + K 2 x ^ s [ k k ] 2 + K 3 x ^ s [ k k ] 3 + K 4 x ^ s [ k k ] 4 + K 5 x ^ s [ k k ] + K 6 ln ( x ^ s [ k k ] ) + K 7 ln ( 1 - x ^ s [ k k ] ) ( 43 )

The OCV parameters Ki∈{K0,K1,K2,K3,K4,K5,K6,K7} can be estimated offline through the procedure described in detail below. By considering a batch of Lb observations, (30) can be rewritten as follows:


vDκ=Aκ+nDκ  (44)

where κ is the batch number,


vDκ=[vD[κLb−Lb+1]vD[κLb−Lb+2] . . . vD[κLb]]T  (45)


Aκ=[[κLb−Lb+1][κLb−Lb+2] . . . [κLb]]T  (46)

and the noise nDκ has the following covariance


ΣDκ=E{nDκnDκT}  (47)

where ΣDκ is a pentadiagonal Toeplitz matrix for which the diagonal, first and second off diagonal entries are given by RnD (0), RnD(1) and RnD(2), respectively (see (32)). Now, the dynamic model parameter vector can be estimated from (42) through least squares (LS) optimization as follows:


{circumflex over (b)}LS[κ]=((Aκ)TDκ)−1Aκ)−1AκTDκ)−1vDκ  (48)

The covariance matrix of the LS estimator is given by:


Pb[κ]=((Aκ)TDκ)A−1κ)−1  (49)

When new batch of measurements are obtained, the LS estimates can be recursively updated by repeating (50)-(51)


Pb−1[κ+1]=λPb−1[κ]+(Aκ+1)TDκ)−1Aκ+1  (50)


{circumflex over (b)}RLS[κ+1]=Pb[κ+1](λPb−1[κ]{circumflex over (b)}RLS[κ]+(Aκ+1)TDκ)−1vDκ+1  (51)

where λ is the forgetting (fading memory) factor, (•)T denotes transpose, (•)−1 denotes inverse and Pb−1[κ] is known as the information matrix that can be initialized with an identity matrix of appropriate size multiplied by a suitable constant. It can be noticed that when λ=0, {circumflex over (b)}RLS becomes {circumflex over (b)}LS. There can be several ways of approximating ΣDκ. The following two approximations may be selected for comparison:

    • a. The following approximation can be made:


ΣDκ≈Ilb  (52)

    • b. Use the previous estimate of in order to construct the current covariance matrix, for example, use:


{circumflex over (b)}RLS[κ−1] in ΣDκ  (53)

The following discussion relates to minimum mean square error (MMSE) estimation of time-varying dynamic model parameters. Assuming the dynamic model parameters to be random variables that undergo the following slowly changing Wiener process:


xb[k+1]=xb[k]+wb[k]  (54)

where wb[k] is zero mean white Gaussian noise with covariance Σb. Now, using (30) as the measurement model and (53) as the process model, a Kalman filter gives the MMSE estimate of b. SOC may be used to determine vD[k] (see (42)) an iterative scheme of SOC tracking/smoothing and Kalman filtering based parameter estimation over a sufficient length observation window could be used for increased accuracy in SOC tracking and parameter estimation.

The following discussion relates to open circuit voltage (OCV) parameter estimation. SOC estimation may exploit a unique and stable relationship between the open circuit voltage (OCV) and SOC of the battery and allows computation the SOC for a measured OCV. However, it is possible to directly measure the OCV only when the battery is at rest. When the battery is in use, the dynamic relationship between the battery voltage and current has to be accounted for through parameter and state estimation approaches. The OCV-SOC based state of charge estimation approach includes error associated with (1) uncertainty in the modeling and parameter estimation of the dynamic electrical equivalent model of the battery; and (2) errors in measured voltage and current. The parameters of the OCV-SOC characterization in (43) can be estimated by collecting OCV characterization data on a sample battery as follows:

    • a. Start with a fully charged, fully rested battery
    • b. Record its open circuit voltage Vbatt=Vfull
    • c. Set k=1
    • d. Record v[k]=Vbatt; Record SOC[k]=1
    • e. Set k=k+1
    • f. Continuously discharge the battery using a very small amount of (typically, C/30 or C/40 where C is the capacity of the battery in Ah) constant current i[k] until the battery is completely discharged. Once fully discharged, leave the battery to rest and after that charge until the battery becomes full. Then
      • 1. Measure the battery terminal voltage, Vbatt every A seconds
      • 2. Record v[k]=Vbatt
    • g. Record SOC[k]=SOC[k−1]+chi[k]Δ

Now, OCV model (43) can be expressed in the following vector format for all the measurements v[k]:


v=Aocvk  (55)


where


v=[v[1],v[2] . . . ,v[Nv]]T  (56)


Aocv=[aocv(1),aocv(2), . . . ,aocv(Nv)]T  (57)


k=[K0K1K2K3K4K5K6K7R0]T  (58)

and by assigning s[k]=SOC[k]

a ocv [ k ] = [ 1 1 s [ k ] 1 s 2 [ k ] 1 s 3 [ k ] 1 s 4 [ k ] s [ k ] ln ( s [ k ] ) ln ( 1 - s [ k ] ) i [ k ] ] T ( 59 )

Now, the least square estimation of the OCV parameters and the battery internal resistant R0 are given by:


{circumflex over (k)}=(AocvTAocv)−1AocvTv  (60)

The following discussion relates to four exemplary equivalent circuit models.

TABLE 1 Model Number Equivalent Circuit Model 1 FIG. 13D Model 2 FIG. 13C Model 3 FIG. 13B Model 4 FIG. 13A

The voltage drop across the circuit components of each of the four equivalent circuit models shown in Table 1 can be written in the following form:

v D [ k ] = [ k ] T [ k ] + n D [ k ] ( 61 ) where , a [ k ] T = { a 1 T [ k ] z i [ k ] Model 1 a 2 T [ k ] z i [ k ] Model 2 a 3 T [ k ] [ v D [ k - 1 ] z i [ k ] - z i [ k - 1 ] 1 ] Model 3 a 4 T [ k ] [ v D [ k - 1 ] - v D [ k - 2 ] z i [ k ] - z i [ k - 1 ] z i [ k - 2 ] 1 ] Model 4 ( 62 ) b = { b 1 [ k ] R 0 Model 1 b 2 [ k ] [ R 0 H ] T Model 2 b 3 [ k ] [ α 1 R 0 R ~ 1 H ~ ] T Model 3 b 4 [ k ] [ α β R 0 R 1 R 2 H ] T Model 4 ( 63 )

for model 3:


{tilde over (R)}11R0−(1−α1)R1  (64)


{tilde over (H)}=h[k]−α1h[k−1]  (65)

and, for model 4:


α=α12  (66)


β=α1α2  (67)


{hacek over (R)}1=(α12)R0−(1−α1)R1−(1α2)R2  (68)


{hacek over (R)}21α2R0−α2(1−α1)R1−α1(1−α2)R2  (69)


{hacek over (H)}=h[k]−(α12)h[k−1]+α1α2h[k−2]  (70)

The following relates to a derivation of the noise correlation. In this section the autocorrelation (27) for |l|=0,1,2 and for |l|>2 may be derived from (33) the following:

l = 0 : R n D ( 0 ) = E { n D [ k ] n D [ k ] } = E { { n v 2 [ k ] + α 2 n v 2 [ k - 1 ] + β 2 n v 2 [ k - 2 ] + R 0 2 n i 2 [ k ] + R 1 2 n i 2 [ k - 1 ] + R 2 2 n i 2 [ k - 2 ] } } = ( 1 + α 2 + β 2 ) σ v 2 + ( R 0 2 + R 1 2 + R 2 2 ) σ i 2 ( 72 ) ( 71 ) l = 1 : R n D ( 1 ) = E { n D [ k ] n D [ k - 1 ] } = E { ( - α n v [ k - 1 ] + β n v [ k - 2 ] + R 1 n i [ k - 1 ] - R 2 n i [ k - 2 ] ) ( n v [ k - 1 ] - α n v [ k - 2 ] - R 0 n i [ k - 1 ] + R 1 n i [ k - 2 ] ) } = E { - α n v 2 [ k - 1 ] - α β n v 2 [ k - 2 ] - R 0 R 1 n i 2 [ k - 1 ] - R 1 R 2 n i 2 [ k - 2 ] } = - α ( 1 + β ) σ v 2 - R 1 ( R 0 + R 2 ) σ i 2 ( 73 ) l = 2 : R n D ( 2 ) = E { n D [ k ] n D [ k - 2 ] } = E { ( β n v [ k - 2 ] - R 2 n i [ k - 2 ] ) ( n v [ k - 2 ] - R 0 n i [ k - 2 ] ) } = E { β n v 2 [ k - 2 ] + R 0 R 2 n i 2 [ k - 2 ] } = β σ v 2 + R 0 R 2 σ i 2 ( 74 )

Now, the above can be expressed for each models as follows:

R n D ( 0 ) = { σ v 2 + R 0 2 σ i 2 Model 1 σ v 2 + R 0 2 σ i 2 Model 2 ( 1 + α 1 2 ) σ v 2 + ( R 0 2 + R ~ 1 2 ) σ i 2 Model 3 ( 1 + α 2 + β 2 ) σ v 2 + ( R 0 2 + R 1 2 + R 2 2 ) σ i 2 Model 4 ( 75 ) R n D ( 1 ) = { 0 Model 1 0 Model 2 - α 1 σ v 2 - R 0 R ~ 1 σ i 2 Model 3 - α ( 1 + β ) σ v 2 - R 1 ( R 0 + R 2 ) σ i 2 Model 4 ( 76 ) R n D ( 2 ) = { 0 Model 1 0 Model 2 0 Model 3 β σ v 2 + R 0 R 2 σ i 2 Model 4 ( 77 )

The discussion continues with real time capacity estimation, which may reference the following notations.

  • Cbatt Capacity of the battery
  • ch Coulomb counting coefficient
  • ĈLS LS estimate of battery capacity
  • ĈRLS RLS estimate of battery capacity
  • ĈTLS TLS estimate of the battery capacity
  • dcκ Vector of SOC differences
  • dc,ocvκ Vector of SOC differences between two rests
  • dsκ Vector of Coulombs
  • ds,ocvκ Vector of Coulombs between two rests
  • Hκ Augmented observation matrix
  • i[k] Current through the battery
  • Ki OCV parameters: K0, K1, K2, K3, K4, K5, K6, K7
  • ni[k] Noise in measured current
  • Ps[k|k] SOC estimation error variance
  • Qc[κ] Variance of capacity drift
  • Rc[κ] Capacity estimation error by TLS, RLS or OCV method
  • {circumflex over (R)}RLS[κ] RLS capacity estimation error variance
  • RTLS[κ] TLS capacity estimation error variance
  • ws[k] Process noise
  • {tilde over (w)}s[k] Differential SOC error
  • wsk Accumulative of process noise between rest at k and the subsequent rest
  • {tilde over (w)}s,ocvk Differential SOC error based on OCV lookup
  • {tilde over (w)}sκ Vector of differential SOC errors
  • {tilde over (w)}s,ocvκ Vector of differential OCV based SOC errors
  • xc[κ] Fused battery capacity
  • {circumflex over (x)}s[k|k] SOC estimate
  • {tilde over (x)}s[k|k] Error in the estimate of SOC
  • xs[k+1] SOC
  • {circumflex over (x)}s,ocv[k] OCV lookup based SOC estimate
  • {tilde over (x)}s,ocv[k] Error in OCV lookup based SOC estimate
  • zc[κ] Capacity estimates by TLS, RLS or OCV method
  • zi[k] Measured current
  • Cbatt[k] Capacity estimation error
  • ηc Charging efficiency (η=ηc)
  • ηd Discharging efficiency (η=ηd)
  • SHk Covariance of the augmented observation matrix
  • Σ{tilde over (w)}zk Covariance of differential SOC errors

The state of charge (SOC) of the battery, defined as:

SOC = RemainingchargeinAmperehours ( Ah ) CapacityofthebatteryinAmperehours ( Ah ) ( 78 )

Equation 78 provides information about the status of the battery. The knowledge of SOC and battery capacity are used to estimate the time to shut down (TTS) or time to fully charge (TTF) the battery. Battery capacity typically varies with temperature and that it fades over time depending on usage patterns and age. Accurate tracking of battery capacity is a critical element of battery fuel gauging.

In this example implementation, the online capacity estimates can be based on:

    • a. A weighted recursive least squares (RLS) estimate of capacity with the derivation of the exact weights. A weighted RLS approach for online capacity estimation includes deriving expressions for the weights based on the variances and covariances across times of the updated SOC tracking and the current measurement error standard deviation.
    • b. A TLS approach for real time tracking of battery capacity. The TLS approach gives a closed form expression for capacity estimation. This approach can be used for continuously tracking changes in the battery capacity.
    • c. Adaptive capacity estimation based on OCV lookup of a rested battery. A TLS approach for online tracking of battery capacity by exploiting battery resting instances for OCV lookup based SOC estimation.
    • d. Fusion of capacity estimates obtained through different approaches.

The following discussion relates to battery capacity estimation and fusion. The instantaneous state of charge (SOC) of the battery can be written as the following process model, which is also known as the Coulomb counting equation, in terms of the measured current as follows:

x s [ k + 1 ] = x s [ k ] + ηΔ 3600 C batt z i [ k ] + w s [ k ] ( 79 )

where xs[k]∈[0,1] denotes the SOC of the battery, Cbatt is the capacity of the battery in Ampere hours (Ah) and zi[k] is the measured current


zi[k]=i[k]+ni[k]  (80)

which is corrupted by zero mean white noise ni[k] with standard deviation (s.d.) σi. The process noise in (79) relates to the measurement noise in (80) as


ws[k]=−chΔni[k]  (81)

and is zero mean with s.d.


σs=chΔσi  (82)

where the Coulomb counting coefficient is

c h η 3600 C batt ( 83 )

Here, η is a constant that depends on whether the battery is being charged or discharged, for example,

η = { η c i [ k ] > 0 η d i [ k ] < 0 ( 84 )

and Δ is the (constant) sampling interval.

The following discussion relates to online battery capacity estimation using recursive least squared (RLS). Estimating SOC can be based on both voltage and current measurements. Two consecutive SOC values xs[k] and xs[k+1] are written in terms of their estimates as:


xs[k]={circumflex over (x)}s[k|k]+{tilde over (x)}s[k|k]  (84)


xs[k+1]={circumflex over (x)}s[k+1|k+1]+{tilde over (x)}s[k+1|k+1]  (85)

where the estimation errors {tilde over (x)}s[k|k] and {tilde over (x)}s[k+1|k+1] have zero mean and variances Ps[k|k] and Ps[k+1|k+1], respectively. The covariance between two consecutive estimation errors is:


E{{tilde over (x)}s[k|k]{tilde over (x)}s[k+1|k+1]}=(1−G[k+1]H[k+1])Ps[k|k]  (86)

where G[k+1] is the scalar Kalman gain and H[k+1] is the scalar linearized observation model at time k+1. Now, rewriting (80) in the following form:

x s [ k + 1 ] - x s [ k ] = ηΔ 3600 C batt z i [ k ] + w s [ k ] ( 87 )

Substituting (84) and (85) in (87) yields:

Δ x s [ k + 1 , k ] x ^ s [ k + 1 k + 1 ] - x ^ s [ k k ] = η h Δ C batt z i [ k ] + w ~ s [ k ] where , ( 88 ) η h = η 3600 ( 89 )

and the differential error given by:


{tilde over (w)}s[k]={tilde over (x)}s[k|k]−{tilde over (x)}s[k+1|k+1]+ws[k]  (90)

is zero mean with variance:


E{{tilde over (w)}s[k]2}≅R{tilde over (w)}s[k]=G[k+1]2S[k+1]  (91)

where S[k+1] is the innovation covariance of the Kalman filter. By considering a batch of Lc of samples, (88) can be written in vector from as follows:


dsκ=Cbatt−1+{tilde over (w)}sκ  (92)

where,

κ is the batch number,

Lc is the length of the batch,


dsκ=[Δxs[κLc−Lc+1,κLc−Lc]Δxs[κLc−Lc+2,κLc−Lc+1] . . . Δxs[κLc,κLc−1]]T  (93)


dcκ=[ηhΔκLc−Lc+1zi[κLc−Lc+1]ηhΔκLc−Lc+1Lc−Lc+2] . . . ηhΔκLczi[κLc]T  (94)


{tilde over (w)}sκ=[{tilde over (w)}[κLc−Lc+1]{tilde over (w)}[κLc−Lc+2] . . . {tilde over (w)}[κLc]]T  (95)

and {tilde over (w)}sκ is a white Gaussian noise vector with covariance:


Σ{tilde over (w)}sκ=E{sκ(sκ)T}  (96)

which is an Lc×Lc diagonal matrix with its nth diagonal element given by:


{tilde over (w)}sκ)=G[κLc−Lc+n]2S[κLc−Lc+n]  (97)

Now, the LS estimate of the inverse battery capacity is given by:


ĈLS−1=((dcκ)T{tilde over (w)}sκ)−1dcκ)−1(dcκ)T{tilde over (w)}sκ)−1dsκ  (98)

and the variance of the LS inverse capacity estimate is:


{circumflex over (R)}RLS[κ]=((dcκ)T{tilde over (w)}sκ)−1dcκ)−1  (99)

When a new batch of {dsκ+1,dcκ+1} pair arrives, the LS estimates can be recursively updated by:


{circumflex over (R)}RLS−1[κ+1]=λ{circumflex over (R)}RLS−1[κ]+(dcκ+1)T{tilde over (w)}sκ+1)−1dcκ+1  (100)


ĈRLS−1[κ+1]={circumflex over (R)}RLS[κ+1](λ{circumflex over (R)}RLS−1[κ]ĈRLS−1[κ]+(dcκ+1)T{tilde over (w)}sκ+1)−1dbκ+1  (101)

where {circumflex over (R)}RLS−1[κ] is the Lc×Lc information matrix for capacity estimation and λ is the fading memory constant. It should be noted that dcκ in (92) is constructed from measured current values that are known to be noisy whereas the LS and RLS estimation methods described above assume that dcκ is perfectly known. For a more realistic solution, the uncertainty in dcκ should be considered. Next, an approach based on total least squares (TLS) optimization that addresses errors in is described.

The following discussion relates to online battery capacity estimation using adaptive total least square (TLS). In this section, an online capacity estimation method is developed based on TLS which assumes uncertainty in both dsκ and dcκ in (92). Constructing the following augmented observation matrix:


Hκ=[dsκdcκ]  (102)

The information matrix associated with the augmented observation matrix is:


SHk=(Hκ)THκ  (103)

Writing the eigendecomposition of SHk in the following form:


SHk=VκΛκVκT  (104)

where,

    • Λκ is a diagonal 2×2 matrix of nonnegative eigenvalues arranged from the largest to the smallest, i.e., Λκ(1,1) denotes the largest eigen value and Λκ(2,2) denotes the smallest eigenvalue.
    • Each column of the 2×2 matrix Vk=[v1κ, v2κ] has the corresponding eigenvectors, i.e., the first column v1κ is the eigenvector corresponding to the largest eigenvalue and the second column v2κ is the eigenvector corresponding to the smallest eigenvalue.

The TLS estimate of the inverse battery capacity is then given by the ratio of the components of v2κ, namely:

C ^ TLS - 1 [ κ ] = - v 2 κ ( 1 ) v 2 κ ( 2 ) = S H k ( 1 , 2 ) S H k ( 1 , 1 ) - Λ κ ( 2 , 2 ) ( 105 ) [ 6 ]

where v2κ(i) is the ith element of v2κ and SHκ(i, j) is the (i, j)th element of SHk. The derivation of (105) is shown in below.

For smoother estimates, the information matrix in (103) can be updated with a fading memory, as follows:

S H k = λ S H k - 1 + ( H κ ) T H κ L c - 1 ( 106 )

Now, based on [85], the TLS estimation error covariance is (approximately):

R ^ TLS [ κ ] = ( 1 ( z κ ) T S H k z κ i = 1 M h i κ ( h i κ ) T ) - 1 ( 107 )

where hiκ is the ith row of Hκ, M is the number of rows in Hκ and

z κ = [ - v 2 κ ( 1 ) v 2 κ ( 2 ) - 1 ] T ( 108 )

The following discussion relates to open circuit voltage (OCV) based battery capacity estimation. For a given rested voltage zv[k], the corresponding SOC estimate {circumflex over (x)}s,ocv[k] can be obtained by inverting (33). Due to hysteresis in the battery, this SOC estimate {circumflex over (x)}s,ocv[k] will differ from the actual SOC xs[k], resulting in an OCV lookup error {tilde over (x)}s,ocv[k]. The OCV lookup error will always be negative during discharging and positive during charging. The open circuit voltage (OCV) of the battery can be written as a nonlinear function of SOC as

V 0 ( x s [ k ] ) = K 0 + K 1 x s [ k ] + K 2 x s [ k ] 2 + K 3 x s [ k ] 3 + K 4 x s [ k ] 4 + K 5 x 5 [ k ] + K 6 ln ( x s [ k ] ) + K 7 ln ( 1 - x s [ k ] )

where the coefficients K0, K1, K2, K3, K4, K5, K6 and K7 can be estimated offline by collecting voltage and current measurements by slowly charging and then discharging the battery. The resultant OCV-SOC characteristic curve can be used to get a measure of SOC whenever the battery is sufficiently rested. The SOC of the battery for a given at-rest terminal voltage (which is also the open circuit voltage) zv[k], written as:


{circumflex over (x)}s,ocv[k]=focv-soc−1(zv[k])  (110)

can be computed using the OCV-SOC characterization by computing the inverse of (109). There are several methods for computing the inverse of a nonlinear function, such as Newton's method and binary search. This may be referred to as OCV lookup based SOC estimate. The SOC estimate in (110) is corrupted by the hysteresis voltage as follows:


xs[k]={circumflex over (x)}s,ocv[k]+{tilde over (x)}s,ocv[k]  (111)

where the OCV lookup error {tilde over (x)}s,ocv[k] is caused by the hysteresis effect in OCV. It should be noted that when the battery comes to rest at time k after a discharging process, the OCV lookup error {tilde over (x)}s,ocv[k] should be negative. Similarly, when the battery comes to rest at time k after a charging process, the OCV lookup error {tilde over (x)}s,ocv[k] will always be positive. However, the magnitude of the error will vary with the amount of hysteresis, which is a function of the magnitude of the current before rest, SOC and time. Now, rewriting (79) in the following form:

x s [ k + 1 ] = x s [ k ] + c h Δ z i [ k ] + w s [ k ] ( 112 ) x s [ k + 2 ] = x s [ k + 1 ] + c h Δ k + 1 z i [ k + 1 ] + w s [ k + 1 ] ( 113 ) x s [ k + N ] = x s [ k + N - 1 ] + c h Δ k + N - 1 z i [ k + N - 1 ] + w s [ k + N - 1 ] ( 114 )

By adding (112) through (114) on both sides, the following results:

x s [ k + N ] = x s [ k ] + η j = k j = K + N - 1 Δ z i [ k ] 3600 C batt + j = k k + N - 1 w s [ j ] w _ s k ( 115 )

where,

    • wsk is zero mean with standard deviation √{square root over (N)}σs.

Assuming that the battery is at rest at time k and k+N, (115) can be written as:

d s , ocv k = C batt - 1 d c , cov k + w ~ s , ocv k where , ( 116 ) d c , ocv k = η j = k j = K + N - 1 Δ z i [ k ] 3600 ( 117 ) d s , ocv k = x ^ s , ocv [ k + N ] - x ^ s , ocv [ k ] ( 118 ) w ~ s , ocv k = x ~ s , ocv [ k ] - x ~ s , ocv [ k + N ] + w _ s k x ~ d , ocv k ( 119 )

It should be noted that, regardless of the fact that the sign of OCV lookup error) {tilde over (x)}s,ocv[k] is biased towards the battery mode∈{charging,discharging}, the “differential error” {tilde over (x)}s,ocv[k] (defined in (119)) can either be positive or negative. By considering a large number of differential errors, assuming {tilde over (x)}s,ocv[k] is approximately white. Assuming that the κth batch of differential SOCs ds,ocvκ is collected between a first set of rest points k=k1, k2, . . . , kLc and a second set of rest points k+N=k1+N1, k2+N2, . . . , kLc+NLc, respectively, and given by:


ds,ocvκ=Cbatt−1dc,ocvκ+{tilde over (w)}s,ocvκ  (120)


where,


ds,ocvκ=[ds,ocvk1,ds,ocvk2, . . . ,ds,ocvkLc]T  (121)


dc,ocvκ=[dc,ocvk1,dc,ocvk2, . . . ,dc,ocvkLc]T  (122)


{tilde over (w)}s,ocvκ=[ws,ocvk1,ws,ocvk2, . . . ,ws,ocvkLc]T  (123)

Now, it can be seen that (120) is in the same form as (92) with ds,ocvκ, dc,ocvκ, and {tilde over (w)}s,ocvκ replacing dsκ, dcκ, and {tilde over (w)}sκ, respectively. Hence, RLS and TLS based capacity estimates can be derived for OCV based observations, as shown below. Denoting the RLS and TLS estimates of OCV based capacity as ĈRO[κ] and ĈTO[κ], respectively. It should be noted that, given Nr number of rest states interspersed with a discharge, Nr(Nr−1)/2 differential observations are possible. For example, for Nr=4, assuming the battery is in rest state at time instances t1, t2, t3 and t4.

The following relates to capacity estimation through fusion. In this section, an example implementation for fusing the TLS estimates of capacity are described. The derivations in this section are developed for a TLS based capacity estimate. The derivations can be applied for fusing RLS based capacity estimates as well.

The online capacity estimate ĈTLS[κ] is corrupted by the uncertainty in dcκ (see (92)) which is caused by the errors in the measured current and the uncertainty in the dsκ which is caused by the errors in the SOC tracking algorithm. Similarly, the OCV based capacity estimation ĈTO[κ] is corrupted by the uncertainty in dc,ocvκ (see (120)) which is caused by the errors in the measured current and the uncertainty in sκ that is caused by the OCV lookup differential error. Assuming that the errors in online capacity estimates et[κ] and the OCV lookup based capacity estimates eto[κ] are uncorrelated. Based on these assumptions, the capacity the fusion becomes the fusion of two independent tracks.

First, it should be noted that estimates for the inverse capacities, for example, the capacity estimates ĈTLS−1[κ] and ĈTO−1[κ], respectively are estimates of 1/Cbatt. Correspondingly, the respective estimation error covariances, {circumflex over (R)}TLS[κ] and {circumflex over (R)}TO[κ] correspond to the inverse capacity estimates as well. Based on Taylor series expansion, the expected value of the TLS based dynamic capacity estimate and the corresponding estimation error variance are approximated as:

C ^ TLS [ κ ] = 1 C ^ TLS - 1 [ κ ] + R ^ TLS [ κ ] ( C ^ TLS - 1 [ κ ] ) 3 ( 124 ) R TLS [ κ ] = R ^ TLS [ κ ] ( C ^ TLS - 1 [ κ ] ) 4 ( 125 )

where ĈTLS is the estimate of Cbatt based on dynamic data and RTLS[κ] is the estimation error variance. By following the same procedure, the OCV based capacity estimates CTO[κ] and the corresponding estimation error covariance RTO[κ] can be obtained. Now, assuming the battery capacity to be a random variable that undergoes the following slowly changing Wiener process:


xc[κ+1]=xc[κ]+wc[κ]  (126)

where wc[κ] is assumed to be zero mean white Gaussian noise with variance a[κ]. The capacity estimates ĈTLS[κ] and ĈTO[κ] fit the following observation model:


zc[κ]=xc[κ]+nc[κ]  (127)


where,


zc[κ]∈{ĈTLS[κ′],ĈTO[κ″]}  (128)

κ′ and κ″ are the time indices of latest estimates from the corresponding algorithms (TLS and TO, respectively), and nc[κ] is assumed to be a zero mean white noise with variance:

R c [ κ ] = { R TLS [ κ ] if z c [ κ ] = C ^ TLS [ κ ] R TO [ κ ] if z c [ κ ] = C ^ TO [ κ ] ( 129 )

Now, whenever a new measurement zc[κ]∈{ĈTLS[κ′],ĈTO[κ″]} is received, where either κ′=κ or κ″=κ, the fused capacity estimate is obtained as:

x ^ c [ κ κ ] = x ^ c [ κ - 1 κ - 1 ] + P c [ k - 1 k - 1 ] + Q c [ κ - 1 ] P c [ κ - 1 κ - 1 ] + Q c [ κ - 1 ] + R c [ κ ] ( z c [ κ ] - x ^ c [ k - 1 / k - 1 ] ) ( 130 )

where {circumflex over (x)}c[κ−1|κ−1] is the previous update of capacity estimate and Pc[κ−1|κ−1] is the previous estimation error variance which is updated as:

P c [ κ κ ] = R c [ κ ] ( P c [ κ - 1 κ - 1 ] + Q c [ κ - 1 ] ) P c [ κ - 1 κ - 1 ] + Q c [ κ - 1 ] + R c [ κ ] ( 131 )

The above fusion approach can be similarly used for fusing RLS based capacity estimates.

The following relates to derivation of capacity estimation error covariance. In this section, the covariance of the differential error in (90) is derived. For convenience, the differential error (90) is rewritten below


{tilde over (w)}s[k]={tilde over (x)}s[k|k]−{tilde over (x)}s[k+1|k+1]+ws[k]  (90)

The objective is to compute the variance:


E{{tilde over (w)}s[k]{tilde over (w)}s[k]T}≅R{tilde over (w)}s[k]  (132)

Writing the process equation (79) in the following forms:


xs[k+1]=xs[k]+chΔzi[k]+ws[k]  (134)


{circumflex over (x)}s[k+1|k+1]={circumflex over (x)}s[k|k]+chΔzi[k]+G[k+1]v[k+1]  (135)

where {circumflex over (x)}s[k+1|k+1] is the Kalman filter estimate of xs[k+1], v[k+1] is the filter innovation and G[k+1] is the Kalman gain. The difference between (134) and (135) is:


{tilde over (x)}s[k+1]={tilde over (x)}s[k]+ws[k]−G[k+1]v[k+1]  (136)

which can be rearranged to the following form:


{tilde over (x)}s[k]−{tilde over (x)}s[k+1]+ws[k]={tilde over (w)}s[k]=G[k+1]v[k+1]  (137)


Hence,


R{tilde over (w)}s[k]=G[k+1]2S[k+1]  (138)

where,

    • S[k+1] is the innovation covariance.

Below is an alternative or second approach that corroborates the above derivation is described. Expanding (132):

E { w ~ s [ k ] w ~ s [ k ] } = E { x ~ s [ k k ] x ~ s [ k k ] } E 1 + E { x ~ s [ k + 1 k + 1 ] x ~ s [ k + 1 k + 1 ] } E 2 + E { w s [ k ] w s [ k ] } E 3 - 2 E { x ~ s [ k + 1 k + 1 ] x ~ s [ k k ] } E 4 + 2 E { x ~ s [ k k ] w s [ k ] } E 5 - 2 E { x ~ s [ k + 1 k + 1 ] w s [ k ] } E 6 where E 1 = P s [ k k ] ( 139 ) E 2 = P s [ k + 1 k + 1 ] ( 140 ) E 3 = σ s 2 ( 141 ) E 4 = E { x ~ s [ k + 1 ] x ~ s [ k k ] } = E { ( x s [ k ] + w s [ k ] - x ^ s [ k k ] - G [ k + 1 ] v [ k + 1 ] ) x ~ s [ k k ] } = E { ( x ~ s [ k k ] + w s [ k ] - G [ k + 1 ] v [ k + 1 ] ) x ~ s [ k k ] } = E { ( x ~ s [ k k ] + w s [ k ] - G [ k + 1 ] H [ k + 1 ] x ~ s [ k k ] ) x ~ s [ k k ] } = E { x ~ s [ k k ] x s [ k k ] } + E { w s [ k ] x ~ s [ k k ] } = 0 - G [ k + 1 ] H [ k + 1 ] E { x ~ s [ k k ] x ~ s [ k k ] } = ( 1 - G [ k + 1 ] H [ k + 1 ] ) P s [ k k ] ( 142 ) E 5 = 0 ( 143 ) E 6 = E { x ~ s [ k + 1 ] w s [ k ] } = E { x ~ s [ k k ] w s [ k ] } + E { w s [ k ] w s [ k ] } - G [ k + 1 ] H [ k + 1 ] E { x ~ s [ k k ] w s [ k ] } = σ s 2 ( 144 ) E { w ~ s [ k ] w ~ s [ k ] } = E 1 + E 2 + E 3 - 2 E 4 + 2 E 5 - 2 E 6 = = P s [ k k ] + P s [ [ k + 1 k + 1 ] + σ s 2 - 2 ( 1 - G [ k + 1 ] H [ k + 1 ] ) P s [ k k ] - 2 σ s 2 = P s [ k k ] + ( 1 - G [ k + 1 ] H [ k + 1 ] ) 2 P s [ k k ] + σ s 2 + G [ k + 1 ] R D [ 0 ] G [ k + 1 ] + σ s 2 - 2 ( [ 1 - G [ k + 1 ] H [ k + 1 ] ) P s [ k k ] - 2 σ s 2 = G [ k + 1 ] 2 H [ k + 1 ] 2 P s [ k k ] + G [ k + 1 ] R D ( 0 ) G [ k + 1 ] = G [ k + 1 ] 2 ( H [ k + 1 ] 2 P s [ k k ] + R D ( 0 ) ) = G [ k + 1 ] 2 S [ k + 1 ] ( 145 )

The following relates to a closed form derivation of total least square (TLS) capacity estimate. Writing the 2×2 matrix ASHk as:

A = [ σ 11 σ 12 σ 12 σ 22 ] ( 146 )

The eigenvalues of A satisfies

A - λ I = 0 ( 147 ) σ 11 - λ σ 12 σ 12 σ 22 - λ = 0 ( 148 )

which simplifies to

λ 1 = σ 11 + σ 22 + ( σ 11 - σ 22 ) 2 + 4 ( σ 12 ) 2 2 ( 149 ) λ 2 = σ 11 + σ 22 - ( σ 11 - σ 22 ) 2 + 4 ( σ 12 ) 2 2 ( 150 )

where λ1 is the largest eigenvalue and λ2 is the smallest eigenvalue. The eigenvector corresponding to λ2 satisfies

Av 2 κ = λ 2 v 2 κ where ( 151 ) v 2 κ = [ - σ 12 σ 12 2 + ( σ 11 - λ 2 ) 2 σ 11 - λ 2 σ 12 2 + ( σ 11 - λ 2 ) 2 ] for example , ( 152 ) v 2 κ ( 1 ) = - σ 12 σ 12 2 + ( σ 11 - λ 2 ) 2 ( 153 ) v 2 κ ( 2 ) = σ 11 - λ 2 σ 12 2 + ( σ 11 - λ 2 ) 2 and ( 154 ) C ^ TLS - 1 [ κ ] = - v 2 κ ( 1 ) v 2 κ ( 2 ) = S H k ( 1 , 2 ) S H k ( 1 , 1 ) - Λ κ ( 2 , 2 ) ( 155 ) [ 6 ]

The following relates to transformation of the inverse capacity estimates. An example implementation includes an approach to get the capacity estimate and the estimation error variance based on the inverse estimate and the inverse estimation error variance. Assigning simple variables for inverse capacity estimate and the error variance, for example,


x≅CTLS−1[κ]  (156)


x0≅E{x}=ĈTLS−1[κ]  (157)


Rx≅E{(x−x0)2}={circumflex over (R)}TLS[κ]  (158)

Defining:

y f ( x ) = 1 x ( 159 )

our objective is to find approximations for E{y} and E{(y−E{y})2}.

The following relates to determining the expected value of y. The second order Taylor series approximation is given by:

y = f ( x ) = f ( x 0 ) + f ( x 0 ) ( x - x 0 ) + 1 2 f ( x 0 ) ( x - x 0 ) 2 ( 160 )

The second order approximation of E{y} is given by:

E { y } = E { f ( x 0 ) } + f ( x 0 ) ( E { x } - E { x 0 } ) = 0 + 1 2 f ( x 0 ) E { ( x - x 0 ) 2 } = 1 x 0 + R x x 0 3 ( 161 )

The following relates to determining the variance of the expected value of y. Expanding f(x) as a first order Taylor series around the true value x0.


y=f(x)=f(x0)+f′(x0)(x−x0)  (162)

The variance of y is given by:

E { ( y - E { y } ) 2 } = E { ( f ( x 0 ) ( x - x 0 ) ) 2 } = R x x 0 4 ( 163 )

Now, the expected values of the capacity estimate and its estimation error variance are given by:

C TLS [ κ ] = 1 C ^ TLS - 1 [ κ ] + R ^ TLS [ κ ] ( C ^ TLS - 1 [ κ ] ) 3 ( 164 ) R TLS [ κ ] = R ^ TLS [ κ ] ( C ^ TLS - 1 [ κ ] ) 4 ( 165 )

The disclosure continues with state of charge (SOC) tracking, which may reference the following notations.

  • a[k]T Voltage drop model
  • ã[k]T Modified voltage drop model used in SOC tracking
  • BFG Battery fuel gauge
  • b Voltage drop model parameter
  • {tilde over (b)} Modified voltage drop model parameter used in SOC tracking
  • Cbatt Battery capacity
  • ch Coulomb counting coefficient
  • G[k+1] SOC tracking filter gain
  • h[k] Hysteresis voltage of the battery
  • i[k] Current through battery
  • i1[k] Current through R1
  • i2[k] Current through R2
  • Ki OCV parameters: K0, K1, K2, K3, K4, K5, K6, K7
  • nD[k] Voltage drop observation noise
  • ni[k] Noise in measured current
  • nv[k] Noise in measured voltage
  • nzv[k] Noise in measurement model
  • OCV Open circuit voltage
  • Ps[k+1|k] SOC estimation error variance
  • Ps[k+1|k+1] SOC estimation error variance
  • R0 Battery internal resistance in series
  • R1 Battery internal resistance in R1C1 circuit
  • R2 Battery internal resistance in R2C2 circuit
  • RnD Autocorrelation of the voltage drop observation noise
  • SOC State of charge
  • s[k] State of charge (SOC)
  • U[k] Cross correlation between measurement and process noise
  • v[k] Voltage across battery terminals
  • V0 (s[k]) Open circuit voltage (OCV)
  • xh[k] State component corresponding to h[k]
  • xi1[k] State component corresponding to i1[k]
  • xi2[k] State component corresponding to i2[k]
  • xs[k] State component corresponding to s[k]
  • {circumflex over (x)}s[k+1|k] Predicted SOC estimate
  • {circumflex over (x)}s[k+1|k+1] Update SOC estimate
  • x[k] States in vector form
  • zi[k] Measured current
  • zv[k] Measured voltage
  • αi(k) Current decay coefficient in RC circuit,

- Δ R i C i

  • Δ Time difference between adjacent samples
  • xs SOC tracking error
  • ηc Charging efficiency
  • ηd Discharging efficiency

In this example implementation, state of charge (SOC) of electrochemical storage devices (batteries) is tracked based on instantaneous terminal voltage, load current, and temperature measurements. An SOC tracking algorithm uses the knowledge of model parameter estimates and of the battery capacity estimate described above. Example SOC tracking models hysteresis as an error in the open circuit voltage (OCV) and employs a combination of parameter estimation and SOC tracking technique to compensate for it. This obviates the need for offline modeling of hysteresis as a function of SOC and load current. The example model results in a reduced order (e.g., single state) filtering for SOC tracking where no additional variables need to be tracked regardless of the level of complexity of the battery equivalent model. The presence of correlated noise is identified and used for improved SOC tracking. As a deviation from the conventional “one model fits all” strategy, four different equivalent models of the battery are identified that represent four unique modes of typical battery operation and develop the framework for seamless SOC tracking based on the appropriate model.

A typical reduced order state filtering approach that includes joint (recursive) estimation of SOC along with other redundant (nuisance) quantities involves computationally expensive matrix operations and reduces the accuracy of SOC estimation. In this example implementation, a reduced order filtering that does not increase the state space dimension resulting in better SOC accuracy and reduced computational complexity is utilized. The need for hysteresis modeling is obviated by modeling hysteresis as the error in the OCV and the online filtering approach continuously tries to fill the gap by adjusting SOC (to the correct value.) Hence, hysteresis is modeled as a time-varying bias. A noise whitening procedure is applied and a modified state-space model is derived in order to ensure that the SOC tracking algorithm yields the best possible results in the sense of minimum mean square error. SOC is tracked using different “modes” of the battery. At least four different battery equivalent models are used to reflect very light loading or rest state, constant current operations or low frequency loading (e.g., charging), dynamic loads and heavy loads. Four (slightly) different dynamic equivalent models are identified in order to best match these modes as well. The proposed reduced order filtering approach ensures seamless SOC tracking regardless of the mode changes in the battery operation.

The following discussion relates to an exemplary system model. The battery equivalent circuit model considered in this paper is shown in FIG. 13A. When the battery is at rest, V0(s[k]) is the OCV of the battery. The OCV uniquely depends on the SOC of the battery, s[k]. When the battery is active, for example, when there is current activity, the behavior of the battery is represented through the dynamic equivalent circuit consisting of a hysteresis component h[k], a series resistance R0 and two parallel RC circuits in series, (R1, C1) and (R2, C2). The discrete time is indicated using [k].

The battery equivalent circuit model considered in this section shown in FIG. 13A. The terminal voltage v[k] in terms of the components of the battery equivalent circuit is given by:


v[k]=V0(s[k])+i[k]R0+i1[k]R1+i2[k]R2+h[k]  (166)

where V0(s[k]) represents the open circuit voltage (in volts) of the battery at time k which is written here as a function of SOC at time k, s[k]∈[0,1]; h[k] accounts for the hysteresis in the battery voltage; i1[k] and i2[k] are the currents through R1 and R2, respectively.

There are several nonlinear representations that approximate the OCV as a function of SOC. In this example implementation, an inverse polynomial-log-linear model for the representation of OCV in terms of SOC:

V 0 ( s [ k ] ) = K 0 + K 1 s [ k ] + K 2 s 2 [ k ] + K 3 s 3 [ k ] + K 4 s 4 [ k ] + K 5 s [ k ] + K 6 ln ( s [ k ] ) + K 7 ln ( 1 - s [ k ] ) ( 167 ) [ 3 ]

where K0, K1, K2, K3, K4, K5, K6 and K7 can be estimated offline through OCV-SOC characterization. The instantaneous change in SOC can be written in the following form (the subscript of x is introduced to indicate a state component):


xs[k+1]≅s[k+1]=s[k]+chΔi[k]  (168)

where i[k] is in Amps,


ch=η/3600Cbatt  (169)

is the Coulomb counting coefficient in Amp−1 sec−1, Cbatt is the capacity of the battery in Ampere hours (Ah), Δ is the sampling interval in seconds and η is a constant that depends on whether the battery is being charged or discharged, for example,

η = { η c i [ k ] > 0 η d i [ k ] < 0 ( 170 )

It should be noted that (168) yields the instantaneous SOC of the battery. This technique of computing the SOC is referred to as Coulomb counting and/or as the “predicted SOC”. Coulomb counting, assumes knowledge of the initial state of charge and perfect knowledge of battery capacity to compute the remaining state of charge after accounting for the amount of Coulombs transferred from/into the battery. Coulomb counting error includes (1) uncertainty in the knowledge of initial SOC; (2) uncertainty in the knowledge of battery capacity; and (3) errors in measured Coulombs as a result of errors in the measured current and errors in time differences due to timing oscillator inaccuracies/drifts.

The current i[k] is measured and the current measurement is subject to errors. The measured current zi[k] is written as:


zi[k]=i[k]+ni[k]  (171)

where ni[k] is the current measurement noise, which is considered white, zero-mean and with known standard deviation (s.d.) σi. The state equation (168) can be rewritten by substituting zi[k] for i[k] as follows:


xs[k+1]=xs[k]+chΔzi[k]−chΔni[k]  (172)

The currents through the resistors R1 and R2 can be written in the following form

x i 1 [ k + 1 ] i 1 [ k + 1 ] = α 1 i 1 [ k ] + ( 1 - α 1 ) i [ k ] ( 172 ) x i 2 [ k + 1 ] i 2 [ k + 1 ] = α 2 i 2 [ k ] + ( 1 - α 2 ) i [ k ] where ( 173 ) α 1 = - Δ R 1 C 1 ( 174 ) α 2 = - Δ R 2 C 2 ( 175 )

By substituting the measured current zi[k] for i[k], the currents in (172) and (173) can be rewritten as follows:


xi1[k+1]=α1xi1[k]+(1−α1)zi[k]−(1−α1)ni[k]  (176)


xi2[k+1]=α2xi2[k]+(1−α2)zi[k]−(1−α2)ni[k]  (177)

The hysteresis voltage h[k] is a nonlinear function of the load current and SOC of the battery. The hysteresis process can be written as:


xh[k]≅h[k]=fh(xs[k],i[k])xh[k]+nh[k]  (178)

where nh[k] is the process noise of the hysteresis model which is assumed white, zero-mean Gaussian and with s.d. σh. The voltage in (166) is a measured quantity and the measured voltage zv[k] is subject to errors. The measured voltage is written as:

z v [ k ] = v [ k ] + n v [ k ] = V 0 ( s [ k ] ) + i [ k ] R 0 + i 1 [ k ] R 1 + i 2 [ k ] R 2 + h [ k ] + n v [ k ] ( 179 )

where nv[k] is assumed to be white Gaussian noise with zero mean and s.d. σv. Now, by substituting (171), (172), (173) and (178), in (179), the following measurement model is derived:


zv[k]=V0(xs[k])+zi[k]R0+xi1[k]R1+xi2[k]R2+xh[k]+nzv[k]  (180)


where,


nzv[k]=nv[k]−R0ni[k]  (181)

Now, given the instantaneous voltage and current measurements, zv[k] and zi[k], the objective of BFG is to track the instantaneous SOC of the battery xs[k]. The presence of “nuisance” variables xi1[k], xi2[k], and xh[k] in the observation model (180) makes it a joint estimation problem, i.e., SOC and these variables have to be jointly estimated. This can be achieved by forming a multidimensional process and measurement model in vector from as shown in (183)-(189) and/or by applying Bayesian nonlinear filtering techniques in order to recursively estimate:

[ k ] [ x s [ k ] x h [ k ] x i 1 [ k ] x i 2 [ k ] ] ( 182 )

given all the measurements up to time k, {[0], [1], [2], . . . , [k]} where consists of (171) and (180). This can be efficiently performed by applying well known nonlinear filtering techniques such as the extended Kalman filter (EKF), unscented Kalman filter (UKF) or the particle filter. The process equations (172), (176), (177) and (178) can be written in vector form as:

[ x s [ k + 1 ] x h [ k + 1 ] x i 1 [ k + 1 ] x i 2 [ k + 1 ] ] = [ 1 0 0 0 0 f h ( s [ k ] , i [ k ] ) 0 0 0 0 α 1 0 0 0 0 α 2 ] [ x s [ k ] x h [ k ] x i 1 [ k ] x i 2 [ k ] ] + [ c h Δ 0 1 - α 1 1 - α 2 ] z i [ k ] + [ - c h Δ 0 0 1 α 1 - 1 0 α 2 - 1 0 ] [ n i [ k ] n h [ k ] ] ( 183 )

or, written compactly as:

x [ k + 1 ] = F k x [ k ] + u [ k ] + Γ k w [ k ] where , ( 184 ) w [ k ] = [ n i [ k ] n h [ k ] ] ( 185 )

is a white noise vector with zero mean and covariance:

Σ w = [ σ i 2 0 0 σ h 2 ] ( 186 )

Correspondingly, the measurement equation (180) can be written as:


zv[k]=g([k])+zi[k]R0+nzv[k]  (187)


where,


g([k])=V0(xs[k])+xh[k]+xi1[k]R1+xi2[k]R2  (188)

and nz[k] noise vector with zero mean and s.d.


σz=√{square root over (σv2+R02σi2)}  (189)

In addition, it should be noted that the state-space representation (183)-(189) involves the following model parameters which need to be estimated through system identification techniques including battery capacity: Cbatt, open circuit voltage model parameters: K0, K1, K2, K3, K4, K5, K6, K7, dynamic equivalent circuit model parameters: R0, R1, C1, R2, C2 charging and discharging efficiencies: ηcd, process noise variances: σi2, σh2, and measurement noise variances σv2, σi2.

The requirement to estimate all the model parameters makes the SOC tracking problem more challenging. Further, the chemical properties of the battery change as a result of temperature changes, aging, and usage patterns and as a result these model parameters are subject to change over time. Hence the model parameters have to be re-estimated over time.

In example implementations, it is assumed that the OCV parameters K0, K1, . . . , K7 of the battery are estimated offline. A procedure to estimate these parameters is described above. The voltage and current measurement error standard deviations, σv and σi, respectively, are assumed to be available from the measurement circuitry design. The charging and discharging efficiencies, ηc and ηd, respectively, are assumed to be known through calibration. Hence, the objective is to develop an online SOC tracking algorithm by assuming the knowledge of battery capacity Cbatt and the electrical equivalent model parameters R0, R1, R2, C1 and C2 of the battery.

The following discussion relates to SOC tracking. The objective of reduced order filtering is to track xs[k] while avoiding the need to track the redundant variables xi1[k], xi2[k] and xh[k]. First, rewriting (172) in the following form:


xs[k+1]=xs[k]+chΔzi[k]+ws[k]  (190)


where,


ws[k]=−chΔni[k]  (191)

is the process noise which is white with s.d.


σs=chΔσi  (192)

Now, rewriting the voltage measurement (180) as:


zv[k]=V0(xs[k])+a[k]Tb+nD[k]  (193)


where,


a[k]Tb=[vD[k−1]vD[k−2]zi[k]zi[k−1]−zi[k−2]1]  (194)

and the voltage drop is given by:


vD[k]=zv[k]−V0(xs[k])  (195)

where b is a parameter vector to be estimated and nD[k] is the measurement noise. It should be noted that [k] in (194) is defined in terms of the voltage drops vD[k−1] and vD[k−2]. Estimating parameter b based on a voltage drop observation model is described above. The estimated parameters are derived in terms of the parameters of the battery equivalent model in FIG. 13A as:


b(1)≅α(k)=α12  (196)


b(2)≅β(k)=α1α2  (197)


b(3)=R0  (198)


b(4)≅{hacek over (R)}1=(α12)R0−(1−α1)R1−(1−α2)R2  (199)


b(5)≅{hacek over (R)}21α2R0−α2(1−α1)R1−α1(1−α2)R2  (200)


b(6)≅ĥ[k]=xh[k]−α(k)xh[k−1]+β(k)xh[k−2]  (201)

The measurement noise nD[k] is zero mean and with autocorrelation nD(l) given by:

n D ( l ) E { n D [ k ] n D [ k - l ] } = { ( 1 + α 2 + β 2 ) σ v 2 + ( R 0 2 + R 1 2 + R 2 2 ) σ i 2 l = 0 - ασ v 2 - R 0 R 1 σ i 2 l = 1 βσ v 2 + R 0 R 2 σ i 2 l = 2 0 l > 2 ( 202 )

Next, the significance of the voltage drop in estimating the parameters b in (193) is described. Using (193), the voltage drop (195) can be written as:


vD[k]=a[k]Tb+nD[k]  (203)

Given the voltage drop observations, the above model (203) can be used to linearly estimate b. However, in order to get the voltage drop as an observation, the knowledge of the SOC xs[k] for which a predicted value of SOC, {circumflex over (x)}s[k|k−1] or the updated SOC estimate {circumflex over (x)}s[k|k] can be used, for example,


vD[k|k]=zv[k]−V0({circumflex over (x)}s[k|k]  (204)

Below, how the predicted SOC {circumflex over (x)}s[k|k−1] and updated SOC {circumflex over (x)}s[k|k] are obtained (see (209) and (215), respectively) is described. The existing approaches for BFG use the voltage and current observations, zv[k] and zi[k], for model identification and SOC tracking. Consider the conventional voltage observation model (180). The terms in xh[k] denote the hysteresis voltage which, as shown in (178), is a function of current i[k], SOC xs[k] and time k. For example, when a battery experiences a load of 1 A (which is heavy in mobile applications) for a few seconds, the magnitude of the resulting hysteresis is small compared to when the load was 1 A continuously for 30 min. In addition, the magnitude of the hysteresis is a function of the SOC at that time as well.

Using the voltage observation (180) across battery terminals for model identification, the hysteresis xh[k] also needs to be modeled and the model parameters have to be estimated. A model for hysteresis in terms of SOC, current and time is nonlinear and not yet fully understood. Another disadvantage of trying to model and estimate hysteresis is that it makes online model identification almost impossible. Because hysteresis is a function of SOC, model identification requires the data spanning the entire range of SOC. This might be impossible at times since some applications might never use the battery from full to empty. Since hysteresis is also a function of current, model identification requires usage data spanning the possible load currents applied for various durations. Hence, complete modeling and model identification of hysteresis becomes impractical.

It is also important to note that estimating model parameters offline using sample batteries and then using those parameters in fuel gauging may not be satisfactory; some of the battery parameters are known to change based on usage patterns. Example embodiments avoid hysteresis modeling by introducing the voltage drop model described above. The voltage drop vD[k] represents the voltage across the internal battery model components R0, R2 and xh[k]. The term xh[k] is purposely introduced in order to account for the errors in predicted SOC {circumflex over (x)}s[k|k−1] that is used to derive the voltage drop “measurement” {circumflex over (v)}D[k]. The xh[k] can be referred to as an “instantaneous hysteresis” which, according to example embodiments, should be corrected to zero by adjusting SOC estimate {circumflex over (x)}s[k|k]. As described above with regard to FIG. 7, the use of the voltage drop model can be used to eliminate the effect of hysteresis. The current knowledge of SOC is used to compute the voltage drop. A batch of past voltage drops are collected in a buffer and used for estimation of the parameter b. A nonzero value of b(6)=ĥ[k] (as determined in the model estimation module or block 710) indicates the presence of instantaneous hysteresis, which implies SOC estimation error. The SOC tracking algorithm is devised to correct the SOC (in the SOC tracking block 715) whenever the estimated ĥ[k] is nonzero.

The OCV-SOC model (167) represents the OCV-SOC relationship. Assuming that {circumflex over (x)}s[k|k]=xs[k|k] in the voltage drop (195), the estimated value of ĥ[k] in (201) will be ĥ[k]=0. However, ĥ[k]≠0 implies errors in SOC estimates that is used in computing the voltage drop observation vD[k]. Hence, the SOC tracking algorithm needs to adjust {circumflex over (x)}s[k|k] accordingly. this accomplished by employing the following modified observation model in place of (193):


zv[k]=V0(xs[k])+ã[k]T{tilde over (b)}+nD(205)[5]


where,


ã[k]T=[vD[k−1]vD[k−2]zi[k]zi[k−1]−zi[k−2]]  (206)


{tilde over (b)}=[αβR0{hacek over (R)}1{hacek over (R)}2]T  (207)

are obtained by removing the last element in a[k]T and b, respectively. In other words, the hysteresis term is removed. Below, the significance of this modified observation model is described. Further, the following covariance is found between the process noise ws[k] in (190) and the measurement noise nD[k] in (205):


E{ws[k]nD[k]}≅U[k]=R0chΔσi2  (208)

Given the estimate of state of charge, {circumflex over (x)}s[k|k], and the associated variance Ps[k|k], the following EKF recursion (see FIG. 8) uses the voltage and current measurements zv[k+1], zi[k], zi[k+1] to yield the updated SOC estimate of {circumflex over (x)}s[k+1|k+1], and its associated variance Ps[k+1|k+1]. These steps also make sure that the SOC estimates are best adjusted to account for the covariance of (208). The filtering recursions consist of the following:

x ^ s [ k + 1 | k ] = x ^ s [ k | k ] + c h [ k ] Δ z i [ k ] ( 209 ) P s [ k + 1 | k ] = P s [ k | k ] + σ s 2 ( 210 ) H [ k + 1 ] = z v [ k ] x s [ k ] | x ^ s [ k + 1 | k ] ( 211 ) z ^ v [ k + 1 ] = V 0 ( x ^ s [ k + 1 | k ] ) + [ k ] T [ k ] ( 212 ) S [ k + 1 ] = H [ k + 1 ] P [ k | k ] H [ k + 1 ] T + R n D ( 0 ) + 2 H [ k + 1 ] U [ k ] ( 213 ) G [ k + 1 ] = P [ k + 1 | k ] H [ k + 1 ] T + U [ k ] S [ k + 1 ] ( 214 ) x ^ s [ k + 1 | k + 1 ] = x ^ s [ k + 1 | k ] + G [ k + 1 ] ( z v [ k + 1 ] - z ^ v [ k + 1 ] ) ( 215 ) P s [ k + 1 | k + 1 ] = ( 1 - G [ k + 1 ] H [ k + 1 ] ) P s [ k + 1 | k ] ( 1 - G [ k + 1 ] H [ k + 1 ] ) T + G [ k + 1 ] 2 R n D ( 0 ) ( 216 ) [ 2 ]

where ch[k] and {circumflex over (b)}[k] are the most recent estimates of the Coulomb counting coefficient and the model parameter vector, respectively. The importance of using ã[k]T and {tilde over (b)} in the state-space model (190)-(205) for SOC tracking should be described. Hysteresis can be thought of as an error in the OCV-SOC characteristic curve. It can be difficult to model and accurately estimate the hysteresis because it varies with the previous current and SOC (see (178)). However, the true OCV-SOC relationship can be estimated. Indeed, the V0(xs[k]) in (205) is based on the true OCV-SOC model. For example, assume that the estimated hysteresis is ĥ[k]=10 mV. This means the “perceived OCV” by the filter is 10 mV away from the actual OCV of the battery. For the BFG algorithm, the perceived OCV, V0(xs[k]), is directly (and monotonically) related to the SOC estimate {circumflex over (x)}s[k|k]. In other words, if the perceived OCV of the filter is different from the actual OCV, so is the filter estimate {circumflex over (x)}s[k|k] from the true SOC of the battery. Hence, when the filter sees a drop of 10 mV in its predicted terminal voltage {circumflex over (z)}v[k+1] in (212), it adjusts its SOC estimate {circumflex over (x)}s[k+1|k+1] in (215) such that the “perceived OCV error” (or estimated hysteresis H) is (gradually) adjusted to zero. Hence, a good indication of proper functioning of the proposed approach is the estimated ĥ[k] being always close to zero.

Reliable apparatus and methods to validate a fuel gauging algorithm in a desirable fashion do not exist. Using simulations to evaluate a fuel gauge is not feasible because of the lack of, for example, reliable mathematical models that can allow simulation of the dynamics of a battery. For example, an enhanced self-correcting model may not consider the effect of aging on a battery. Validation of a fuel gauge using a single metric or validation approach can be difficult due uncertainty in the true values of state of charge, battery capacity and internal impedance, all of which can be constantly drifting quantities. Several validation metrics need to be computed in order to understand the complete picture of a fuel gauge accuracy.

The disclosure continues with benchmarking, which begins with metrics. In this example implementation, several benchmarking approaches for the validation of fuel gauging algorithms of electrochemical storage devices (batteries) are described. Relatively accurate fuel gauging (FG) can extend the cycle life of batteries. This detailed description also describes a rigorous and objective fuel gauge evaluation scheme. The metrics described herein can be used to measure the FG accuracy in several aspects and return at least one number that can be indicative of the overall performance of a fuel gauge. The benchmarking described herein can be applied to a variety of fuel gauging algorithms. For example, the details included in this description can be combined with any of the concepts described in the description entitled “Methods and Apparatus Related to Tracking Battery State of Charge: A Reduced Order Filtering Approach”.

The benchmarking described in this detailed description can be performed by, for example, computing one or more of the three metrics defined below:

A first exemplary metric is coulomb counting error. With the knowledge of battery capacity and the starting state of charge (SOC) point of an experiment, Coulomb counting methods and/or apparatus can provide an accurate estimate of the state of charge of the battery. The error (e.g., root-mean square (RMS)) between Coulomb counting based SOC estimate and the SOC estimate of the fuel gauge over a period of time can function as the first metric of the benchmark. An error between the FG based SOC and the Coulomb counting based SOC could imply one or more of the following issues with the FG under validation:

The model employed in an open circuit voltage state of charge (OCV-SOC) characterization could be insufficiently accurate (assuming that the FG employs an OCV-SOC characterization)

A battery capacity estimate by the FG might be inaccurate

There might be issues with a dynamic equivalent circuit model: model selection and parameter estimation scheme used in the FG.

A second exemplary metric is OCV-SOC error. OCV-SOC characterization of the battery (which can be performed using one or more methods and/or apparatus) can provide a look-up procedure for finding the SOC. Hence, the SOC estimate of a fuel gauge at a given time can be compared for errors with the OCV-SOC characterization by bringing a battery to a fully (or at least a partial) rested state and by measuring its voltage. An OCV-SOC error can be an indicator of one or more of the following issues of a fuel gauge:

A dynamic model employed in the battery equivalent model may not be effective

Minimal OCV-SOC error can indicate that the dynamic model employed matches very well the actual dynamic nature of the battery.

A third exemplary metric is predicted time-to-voltage (TTV) error. A fuel gauge can predict (using one or more methods and/or apparatus) the time it takes to reach a certain voltage (TTV) given a constant load/charge current. Time to shut down (TTS) and time to full (TTF) can be special cases of the TTV estimates. Error in the TTV estimate can be computed after the actual voltage in question is reached. This TTV error can indicate one or more of the following about the fuel gauge under evaluation:

Accuracy of the battery impedance estimation,

Battery capacity estimation accuracy of a fuel gauge,

The fuel gauge's knowledge (e.g., information) of the battery SOC,

Accuracy of the OCV-SOC characterization.

A battery can exhibit different qualities in response to changes in temperatures. For example, a battery's impedance can be higher (and hence the available power can be lower) at cold temperatures. The rate of change of OCV can be greater and heavily non-linear in response to load and at lower SOC compared to the same at higher SOC levels. A good fuel gauge can have the ability to perform well over a wide range of temperatures and SOC levels. The benchmark described herein can be configured to ensure at least some of these elements are factored in during the performance evaluation.

The discussion below relates to OCV-SOC characterization based metrics. The state of charge of a battery can be uniquely related to its open circuit voltage (OCV). An example of such relationship is shown as a plot in FIG. 14.

Several approaches can be used to obtain OCV characterization data. An example approach is summarized below:

1) Start with a fully charged, fully rested battery

2) Record its open circuit voltage VBAT=Vfull

3) Set i=1

4) Record OCV(i)=VBAT

Record SOC(i)=1

5) Set i=i+1

6) Discharge the battery using constant current I for a duration of ΔT

7) Leave the battery to sufficiently rest (e.g., at least for 2 hours)

8) Measure the battery terminal voltage, VBAT

9) Record OCV(i)=VBAT

Compute SOC(i)=SOC(i−1)+chI(i) ΔT where ch=η/(3600 Cbatt), η is a constant indicating the charging/discharging efficiency, Cbatt is the battery capacity in Ampere hours (Ah) and I(i) is the current into the battery.

10) Repeat steps 5 to 9 until OCV(i) reaches the shut down voltage VSD of the battery.

Now, using the {OCV(i); SOC(i)} pairs, an OCV characterization can be obtained for SOC∈[0; 1].

Remarks:

1) OCV-SOC characterization can vary from one temperature to another. (several approaches can be used to compute OCV characterization at any temperature within a certain usage range).

2) In some implementations, battery capacity Cbatt can be obtained from manufacturer data sheets or it can be estimated.

3) OCV-SOC characterization can be unchanged regardless of the age of the battery.

4) Using the above OCV-SOC characterization, the OCV of a battery for a given SOC s, written as v=OCV(s), can be computed.

5) Using the above OCV-SOC characterization, the SOC of a battery for a given rested terminal voltage υr, written as s=OCV−1r), can be computed. Given that the SOC estimate of a certain fuel gauging algorithm at time k is reported as ŝFG[k], the corresponding error can be computed as


OCVFG[k]−OCV−1r[k])  (217)

where υr[k] is the terminal voltage (after resting the battery) at time k.

OCV-SOC characterization based validation can be used to compute the OCV errors (217) across temperatures and/or SOC regions.

Validation in a relatively high SOC region can be performed by starting with a fully charged battery and applying a time-varying load for a time sufficient to consume (approximately) less than ½ the capacity of the battery under test. Similarly, validation in the low SOC region can be performed by starting with either a fully charged battery or the battery after the high SOC validation and by applying dynamic load sufficient to bring the battery to the lower SOC region.

The average OCV-SOC error (in %) can be computed as

ε _ OCV = [ 1 8 i = 1 4 ε OCV ( s L , T i ) + ε OCV ( s H , T i ) ] 100 ( 218 )

where OCV(sL, Ti) indicates the error computed at the low SOC region and at temperature Ti. In some implementations, the lower OCV the better the FG algorithm.

The following discussion relates to relative coulomb counting error based metrics. Battery SOC can be computed by the Coulomb counting (CC) as follows


ŝCC[k]=ŝCC[k−1]+chtk−1tkI[t]dt  (219)

under the assumption that the battery capacity Cbatt and an accurate enough starting SOC, ŝCC[0], are known. Hence, the FG error (in %) related to Coulomb counting can be defined as:

ε _ CC = k = 1 T ( s ^ CC [ k ] - s ^ FG [ k ] ) 2 T 100 ( 220 )

where T is the duration (in seconds) in which the validation test is performed.

1) In some implementations, some of fuel gauging apparatus and/or methods can include Coulomb counting as a component. However, the above metric can still be considered a validation tool due to the assumption that the knowledge of the battery capacity as well as the starting SOC of the validation ŝCC[0] whereas the FG approach, may not assume this knowledge.

2) The battery capacity for the validation ŝCC[k] can be pre-estimated by completely discharging the battery from full (or substantially full) to empty (or substantially empty). Alternatively, the validation test can be performed from full (or substantially full) to empty (substantially empty) and ŝCC[k] can be updated with the newly estimated battery capacity, Cbatt. In some implementations, hysteresis and relaxation factors can be considered in accurate battery capacity estimation this way. In some implementations, the FG algorithm can be barred from doing so.

3) In some implementations, the temperature of the battery being evaluated can remain constant during the entire (e.g., substantially the entire) validation process.

The following discussion relates to time-to-voltage (TTV) based metrics. Given an SOC estimate of a fuel gauge algorithm at time k as sFG[k], the time it takes to reach voltage v can be written as follows

T FG , v = [ OCV - 1 ( v ) - s FG [ k ] ] I ( 221 )

where the current I (I>0 during charging and I<0 during discharging) is kept constant (or substantially constant) until the voltage v is reached.

The actual time at which the terminal voltage v is reached can be noted once that voltage is reached during operation. When the voltage v is reached at time, the following TTV validation metric can be computed

ε TTV = 1 T - k i = k T ( T FG , v [ i ] - T v [ i ] T v [ i ] ) 2 ( 222 )

where Tv[i]=T−i is the actual time it took from time i to reach the voltage v. The ∈TTV value can be in minutes. In some implementations, the following metric (in %) can be calculated:

ε _ TTV = ε TTV T 100 ( 223 )

A combined metric can be defined as:

ε _ FG = ε _ OCV + ε _ CC + ε _ TTV 3 ( 224 )

where FG is in %. In some implementations, the lower, the better the fuel gauge.

In some implementations, a benchmarking procedure can include loading a battery under evaluation with one or more different current loads that reflect a usage (e.g., a typical usage) of the battery and recording the fuel gauge reported SOC and TTV readings. This process can include repeating these steps at different temperatures until, for example, tables I, II and III are populated.

In some implementations, simulated as well as actual load profiles can be used during the validation. An advantage of the simulated load profiles is that an amount (e.g., exact amount) of Coulombs taken from the battery can be computed, hence, one or more errors due to sampling and current sensing can be avoided. This can be based on the assumption that the load simulation device may not introduce one or more significant errors. Various actual and simulated load profiles can be created.

Actual load profile: An actual load profile (e.g., shown in FIGS. 15A and 15B) can be created using, for example, a smartphone as a load. The following activities can be performed while the load is connected to a battery under validation: phone call (15 min), web surfing, reading email, game playing, etc. (20 min), texting (10 messages), listening to music or watching video using speaker phone (30 min video), standby cell radio enabled pinging tower (1 hours).

The load profile shown in FIGS. 15A and 15B illustrates a scenario where one entry for each of the three types of metrics can be computed in a single experiment. The experiment starts with a fully charged battery and the dynamic usage load is applied for about three hours and 15 minutes. After that the battery is relaxed for two hours. The five hour mark provides an opportunity to compute an OCV-SOC error metric ∈OCV(sH, Ti). The constant current load towards the end of the experiment allows to compute ∈TTV(sL, Ti). The Coulomb counting metric ∈CC(Ti) can be computed from the entire data.

The load profile shown in FIGS. 15A and 15B can be used to compute the following metrics at temperature Ti:

    • The OCV-OSC error metric at the high SOC region, OCV(sH, Ti)
    • The TTC metric at the low SOC region, TTV(sL, Ti)
    • The Coulomb counting metric CC(Ti)

Simulated load profile: A simulated load profile can be created using piecewise constant current loads of varying magnitudes 4, for small duration Δs. These piecewise loads can be mixed and stitched together to obtain a simulated load profile shown in FIGS. 16A and 16B. Note that the simulated load can appear between approximately 3.5 hours to 6.5 hours of the test. This load profile can be simulated using, for example, a Kikusui programmable load device with Δs=2 sec, and Im={40, 120, 130, 160, 300, 400, 440, 520, 600, 640, 800, 880} in mA.

The simulated load profile shown in FIGS. 16A and 16B illustrates a scenario where one entry for each of the three types of metrics can be computed in a single experiment. The experiment starts with a fully charged battery and a constant 500 mA load is applied for about 1.5 hours. After that the battery is relaxed for two hours and then the dynamic load profile is applied for three hours. The three hour and 15 minute mark provides an opportunity to compute an OCV-SOC error metric ∈OCV(sH, Tj). The constant current load towards the end of the experiment allows to compute ∈TTV(sL, Tj). The Coulomb counting metric ∈CC(Tj) can be computed from the entire data.

In some implementations, the simulated load profile shown in FIG. 16 can be used to compute the following metrics at temperature Ti:

    • The OCV-OSC error metric at the high SOC region, OCV(sH, Tj)
    • The TTC metric at the low SOC region, TTV(sH, Tj)
    • The Coulomb counting metric CC(Tj)

The example implementations described above describe SOC tracking as applicable to battery powered devices (e.g., portable mobile devices). The described example embodiments enable linear methods that are computationally inexpensive and performance wise superior to existing approaches for online model identification. Weighted least squares methods are described for parameter estimation. Weights (based on variances) in the LS method of parameter estimation and demonstrated significant improvement in parameter estimation are described. The applicability to different modes of operation of the battery including identifying four different equivalent models of the battery that represent typical battery operation modes and developed the framework for seamless SOC tracking. The described approach models hysteresis as an error in the open circuit voltage (OCV), thereby obviating the need for modeling hysteresis as a function of SOC and load current. This method also helps in the fast recovery from wrong SOC initialization.

The example implementations described above describe features for battery capacity estimation towards the advancement of battery fuel gauging. A weighted recursive least squares (RLS) estimate of capacity with the derivation of exact weights. Formulation of the weights may be computed based on the SOC tracking error covariance and current measurement error standard deviation. A TLS approach is described for real time tracking of battery capacity. The TLS estimate is derived in closed form and can be used for adaptive estimation by updating the covariance matrix with a fading memory. A technique for adaptive capacity estimation based on OCV lookup of a rested battery. The source of OCV lookup error (hysteresis) in the derivations is considered and an approach for adaptive estimation of capacity through OCV lookup is described. An approach for optimal fusion of capacity estimates obtained through different approaches is described based on the capacity estimates and the estimation error covariance's, the proposed approach uses a Kalman filter for adaptive, optimal fusion.

The example implementations described above describe SOC tracking as applicable to battery powered devices (e.g., portable mobile devices). The conventional techniques for estimating additional, redundant parameters by stacking them on the state vector along with SOC is computationally expensive and performance wise inferior. In order to avoid these issues, example embodiments describe a reduced order filtering model for SOC tracking through a new state space model. A state-space model with de-correlated noise models is described. The SOC tracking problem involves two measured quantities, voltage and current, and that this results in correlation between the state and measurement noise models of the SOC tracking problem. A modified state-space representation that has uncorrelated state and measurement noise processes is described. Example embodiments describe different modes of operation of the battery and identify, at least, four different equivalent models of the battery that represent typical battery operation modes and developed the framework for seamless SOC tracking. Example embodiments describe an approach that models hysteresis as an error in the open circuit voltage (OCV), hence obviating the need for modeling hysteresis as a function of SOC and load current. This method also helps in the fast recovery from wrong SOC initialization.

The example implementations described above describe SOC tracking as being achieved through several strategies. First, via minimal battery modeling. The proposed approach requires offline modeling of only the open circuit voltage (OCV) characteristics of the battery. All the other required parameters are estimated through robust means. Equipped with a single set of OCV parameters, the proposed approach is able to perform SOC tracking at any temperature without requiring any additional parameters. Second, the voltage drop observation model. The voltage drop model of observations allows online SOC tracking without the need to worry about modeling the hysteresis component of the battery. This results in better accuracy and robustness from the proposed approach. Third, through robust parameter estimation. The effect of correlated noise structure in the least squares model for parameter estimation is identified. This resulted in significantly better accuracy and enhanced robustness for the parameter estimation algorithm. Fourth, through battery capacity estimation. The proposed total least square (TLS) method for capacity estimation ensures superior accuracy for capacity estimation. And finally using filtering, the reduced order EKF method is accounting for the correlation of the noise process in the state-space model (derived for SOC tracking) and applies appropriate de-correlating filter in order to minimize errors in SOC tracking.

In the detailed description, a benchmarking approach for battery fuel gauging algorithms based on at least three evaluation metrics has been described. The first evaluation metric can be based on the open circuit voltage (OCV) characterization of the battery. The second evaluation metric can be based on relative Coulomb counting error of the fuel gauge and the third benchmark can be based on the computation of time it takes the battery to reach a certain voltage. Each validation metric can include computing several metrics at various SOC levels, different temperature, voltage regions, and/or so forth.

Some SOC tracking approaches include at least the following shortcomings. (1) some models consider resistance-only and are unsuitable for dynamic loads; (2) they employ nonlinear approaches for system identification; (3) require initial parameter estimates for model identification methods; (4) a single dynamic equivalent model is assumed to represent all battery modes of operation; (5) the importance of online capacity estimation is not addressed; (6) existing online battery capacity estimation techniques are affected by SOC and parameter estimation errors, i.e., they are not robust; (7) they employ online tracking of many redundant quantities in addition to SOC (which results in increased computational complexity and reduced SOC tracking accuracy); (8) they require separate modeling of battery hysteresis, which is a function of SOC and load current (hence infinite models.) It is only possible to model hysteresis approximately; (9) none of the existing approaches recognized the existence of correlation in the process and measurement noise processes; and (10) none of the existing approaches recognize the change in battery characteristics due to temperature, aging, SOC and load variations and the fact that a single equivalent model may not fit all these conditions.

Accordingly, the implementations described herein can have a short design time (within days), can have a relatively fast algorithm convergence, and can have an accuracy of approximately 1% SOC and battery capacity reporting accuracy in “Real World” use conditions. In some implementations, no (or few) custom battery models or data may be required, and can include an adaptive learning algorithm with relatively quick SOC tracking convergence. Some implementations can include automatic temperature, age, and load compensation.

Some implementations can be based on, for example, a reduced order extended Kalman filter, a correlated measurement noise decoupling, an online electrical model parameter estimation, and a real-time capacity estimation.

The reduced order Kalman filter can include an accurate SOC estimation (tracking) that involves jointly estimating four different parameters: SOC, currents through two different resistors in the dynamic equivalent model and hysteresis, all of which change when the battery is under load/charge. This involves complex matrix operations generally known as recursive filtering. The reduced filtering approach simplifies this in a way that only the SOC is estimated through the recursive filtering procedure. The three other parameters are marginalized through mathematical operation. The resulting SOC tracking algorithm(s) is now computationally feasible in a fuel gauge SOC.

The correlated measurement noise decoupling can include Kalman filters that operate on the assumption that process noise and measurement noise are uncorrelated. In the fuel gauge application, the measurement noise inherent in the current measurement can be coupled into both the measurement noise and the process noise of the SOC and Voltage variables in the reduced EKF. A unique approach has been employed which decouples the current sense noise from the process noise of the Kalman filter.

The online electrical model parameter estimation can include dynamic estimation of the model parameters (coefficients). The dynamic estimation of the model parameters (coefficients) can include estimation as they change with SOC, time-varying current load profiles, temperature, charge-discharge cycles, and/or so forth. The EKF filter is applicable provided that the model parameters of the dynamic equivalent circuit of the battery is known, however, the equivalent circuit represents the internal components of the battery; these model parameters can be estimated as well using the measurements available from the battery: voltage and current. The solutions described herein estimate the model parameters in real time which enables use of a Kalman filter approach.

The real-time or on-line capacity estimation can include one or more algorithms updating (e.g., constantly updating) usable capacity based on actual use conditions, load, temp, age. Some implementations can include a coulomb counting method which compares FG reported to SOC to calculated SOC based on coulomb counting (book keeping method). Some implementations can include a TTE (Time to Empty) Method, which can use FG to predict TTE and compared to actual. Some implementations can include a SOC/OCV Curve Look-up Method, which can compare FG reported SOC to SOC/OCV curve.

In some implementations, a variation of batteries can be supported that have a variety of specific battery models and chemistries, battery manufacturer aging data for each battery, and/or so forth. In some implementations, the fuel gauge evaluation procedure can vary. For example, a state of charge accuracy evaluation method and test procedure, a dynamic load detailed test requirements, and/or so forth can vary. In some implementations, feedback on requirement specification such as key system parameter and accuracy requirements, system integration requirements, and/or so forth can be varied. In some implementations, operating system driver requirements can be varied.

FIG. 17 is a diagram that illustrates an example system implementation. The system 1700 includes a fuel gauge evaluation module 1705, a battery 1710, a battery fuel gauge 1715 and a computing device 1715. The fuel gauge evaluation module 1705 may be implemented as a software module or an ASIC within the BMS 110. In other words, fuel gauge evaluation module 1705 could be code stored in memory 230 and executed by processor 235 and/or another module associated with BMS 110. The computing device 1715 may receive information from the fuel gauge evaluation module 1705 and display the information on a graphical user interface (e.g., as shown in FIG. 18).

FIG. 18 is a diagram that illustrates a user interface that can be used in conjunction with a system implementation. FIGS. 19A and 19B include graphs that illustrate an example discharge voltage/current profile to illustrate an SOC Lookup Validation and a TTS test. FIGS. 20A and 20B are graphs that illustrate an example CC evaluation method to illustrate the closeness of the Fuel Gage Algorithm to Coulomb Counting. FIGS. 21A and 21B are diagrams that illustrate a TTS evaluation method which illustrates a significant overlap of the Fuel Gauge and actual SOC as well as a TTS error.

Some of the above example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations as sequential processes, many of the operations may be performed in parallel, concurrently or simultaneously. In addition, the order of operations may be re-arranged. The processes may be terminated when their operations are completed, but may also have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, subprograms, etc.

Methods described above, some of which are illustrated by the flow charts, may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine or computer readable medium such as a storage medium. A processor(s) may perform the necessary tasks.

Specific structural and functional details disclosed herein are merely representative for purposes of describing example embodiments. Example embodiments, however, be embodied in many alternate forms and should not be construed as limited to only the embodiments set forth herein.

It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.

It will be understood that when an element is referred to as being “connected” or “coupled” to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected” or “directly coupled” to another element, there are no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a like fashion (e.g., “between” versus “directly between,” “adjacent” versus “directly adjacent,” etc.).

It should also be noted that in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed concurrently or may sometimes be executed in the reverse order, depending upon the functionality/acts involved.

Implementations of the various techniques described herein may be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. Implementations may implemented as a computer program product, i.e., a computer program tangibly embodied in an information carrier, e.g., in a machine-readable storage device (computer-readable medium, a non-transitory computer-readable storage medium, a tangible computer-readable storage medium) or in a propagated signal, for processing by, or to control the operation of, data processing apparatus, e.g., a programmable processor, a computer, or multiple computers. A computer program, such as the computer program(s) described above, can be written in any form of programming language, including compiled or interpreted languages, and can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

Portions of the above example embodiments and corresponding detailed description are presented in terms of software, or algorithms and symbolic representations of operation on data bits within a computer memory. An algorithm, as the term is used here, and as it is used generally, is conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of optical, electrical, or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

In the above illustrative embodiments, reference to acts and symbolic representations of operations (e.g., in the form of flowcharts) that may be implemented as program modules or functional processes include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types and may be described and/or implemented using existing hardware at existing structural elements. Such existing hardware may include one or more Central Processing Units (CPUs), digital signal processors (DSPs), application-specific-integrated-circuits, field programmable gate arrays (FPGAs) computers or the like.

It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, or as is apparent from the discussion, terms such as “processing” or “computing” or “calculating” or “determining” of “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical, electronic quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.

Note also that the software implemented aspects of the example embodiments are typically encoded on some form of non-transitory program storage medium or implemented over some type of transmission medium. The program storage medium may be magnetic (e.g., a floppy disk or a hard drive) or optical (e.g., a compact disk read only memory, or “CD ROM”), and may be read only or random access. Similarly, the transmission medium may be twisted wire pairs, coaxial cable, optical fiber, or some other suitable transmission medium. The example embodiments not limited by these aspects of any given implementation.

While certain features of the described implementations have been illustrated as described herein, many modifications, substitutions, changes and equivalents will now occur to those skilled in the art. It is, therefore, to be understood that the appended claims are intended to cover all such modifications and changes as fall within the scope of the implementations. It should be understood that they have been presented by way of example only, not limitation, and various changes in form and details may be made. Any portion of the apparatus and/or methods described herein may be combined in any combination, except mutually exclusive combinations. The implementations described herein can include various combinations and/or sub-combinations of the functions, components and/or features of the different implementations described.

Claims

1. A method comprising:

calculating a first estimated state of charge (SOC) of a battery at a first time;
receiving a voltage value representing a measured voltage across the battery at a second time;
calculating a filter gain at the second time; and
calculating a second estimated SOC of the battery at the second time based on the first estimated SOC, the voltage value, and the filter gain.

2. The method of claim 1, further comprising:

storing the second estimated SOC in a buffer; and
reading, before the calculating of the second estimated SOC of the battery, the first estimated SOC from the buffer.

3. The method of claim 1, further comprising:

storing the first estimated SOC in a buffer, reading, before the calculating of the second estimated SOC of the battery, the first estimated SOC from the buffer as one of: a vector of at least two SOC's, an array of at least two SOC's, an average of at least two SOC's, and a mean of at least two SOC's.

4. The method of claim 1, further comprising reading an estimated SOC variance from a buffer, wherein the filter gain is based on the estimated SOC variance.

5. The method of claim 1, wherein the calculating of the filter gain includes calculating at least one capacity value using at least one of a weighted recursive least squared (RLS) algorithm and a total least squared (TLS) algorithm.

6. The method of claim 1, wherein the calculating of the filter gain includes calculating a capacity value using a weighted RLS algorithm based on a SOC tracking error covariance and a current measurement error standard deviation.

7. The method of claim 1, wherein the calculating of the filter gain includes calculating a capacity value using a TLS algorithm based on a recursive updating of a covariance matrix.

8. The method of claim 1, wherein the calculating of the filter gain includes calculating a capacity value using an open circuit voltage (OCV) look-up.

9. The method of claim 1, wherein

the second estimated SOC is equal to the filter gain times the voltage value plus the first estimated SOC.

10. The method of claim 1, further comprising:

benchmarking the second estimated SOC based on at least one of a coulomb counting error metric, an OCV-SOC error metric and a predicted time-to-voltage (TTV) error metric.

11. A system comprising:

a battery; and
a battery fuel gauge module configured to calculate an estimated state of charge (SOC) of the battery using a reduced order filter, the reduced order filter being a single state filter configured to recursively calculate the estimated SOC based on a previously calculated SOC estimate.

12. The system of claim 11, wherein the battery fuel gauge includes:

a voltage drop prediction module configured to calculate a voltage drop based the estimated SOC;
a model estimation module configured to calculate at least one voltage drop model parameter based on an equivalent model representing the battery; and
a tracking module configured vary the at least one voltage drop model parameter to remove an instantaneous hysteresis.

13. The system of claim 11, wherein the battery fuel gauge includes a capacity module configured to calculate a capacity value of the battery using a total least squared (TLS) algorithm based on a recursive updating of a covariance matrix.

14. The system of claim 11, wherein the battery fuel gauge includes a capacity module configured to calculate a capacity value of the battery using an open circuit voltage (OCV) look-up.

15. The system of claim 11, wherein

the battery fuel gauge includes a buffer configured to store at least one estimated SOC value, and
the previously calculated SOC estimate is read from the buffer.

16. The system of claim 11, further comprising a data store configured to store OCV parameters, voltage measurement error standard deviations and current measurement error standard deviations, wherein at least one voltage drop model parameter associated with the reduced order filter is defined by one of the OCV parameters, voltage measurement error standard deviations and current measurement error standard deviations.

17. The system of claim 11, further comprising a display configured to display the estimated SOC.

18. A computer readable medium including code segments that, when executed by a processor, cause the processor to:

calculate an estimated state of charge (SOC) of a battery;
store the estimated SOC in a buffer; and
calculate an updated estimated SOC of the battery using a reduced order filter, the reduced order filter being a single state filter configured to recursively calculate the updated estimated SOC based on the estimated SOC.

19. The computer readable medium of claim 18, further including code segments that cause the processor to:

calculate a voltage drop based the estimated SOC;
calculate at least one voltage drop model parameter based on an equivalent model representing the battery; and
vary the at least one voltage drop model parameter to reduce an open circuit voltage (OCV) error indicating hysteresis.

20. The computer readable medium of claim 18, further including code segments that cause the processor to:

calculate a filter gain based on a capacity of the battery and at least one voltage drop model parameter, wherein the reduced order filter calculates the updated estimated SOC based on the filter gain and the estimated SOC.
Patent History
Publication number: 20140244193
Type: Application
Filed: Feb 20, 2014
Publication Date: Aug 28, 2014
Applicants: Fairchild Semiconductor Corporation (San Jose, CA), The University of Connecticut (Farmington, CT)
Inventors: Balakumar BALASINGAM (Storrs, CT), Brian FRENCH (Portsmouth, NH), Yaakov BAR-SHALOM (Mansfield, CT), Bharath PATTIPATI (Willimantic, CT), Krishna PATTIPATI (Storrs, CT), James MEACHAM (Gorham, ME), Travis WILLIAMS (Scarborough, ME), Gopi Vinod AVVARI (Willimantic, CT), Tai-Sik HWANG (Portland, ME)
Application Number: 14/185,790
Classifications
Current U.S. Class: Battery Monitoring (702/63)
International Classification: G01R 31/36 (20060101);