A lithium ion battery soc estimation method
By combining the Thevenin model and the adaptive extended Kalman filter algorithm, online joint estimation of the state of charge (SOC) and capacity of lithium-ion batteries is achieved, solving the problem of high-precision online estimation in existing technologies, improving estimation accuracy and saving costs.
Patent Information
- Application Number
- CN202410003419.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-02
AI Technical Summary
Existing lithium-ion battery SOC estimation methods cannot achieve online, high-precision estimation without OCV experiments, and fail to effectively consider battery capacity variations, resulting in low estimation accuracy.
By employing a recursive least squares method with a forgetting factor and an adaptive extended Kalman filter algorithm, combined with the Thevenin model, the system jointly estimates the state of charge (SOC) and capacity by acquiring battery data online. The adaptive extended Kalman filter algorithm is then used for real-time correction, enabling online estimation of open-circuit voltage and capacity.
Accurate estimation of SOC and capacity of lithium-ion batteries was achieved without conducting OCV experiments, improving estimation accuracy and saving time and costs.
Smart Images

Figure CN117949845B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery state of charge estimation technology, and in particular to a method for estimating the SOC of lithium-ion batteries. Background Technology
[0002] Currently, lithium-ion batteries are widely used in electric vehicles due to their superior performance in energy, power density, cycle life, and safety. To ensure the safe operation of lithium-ion batteries and extend their lifespan, accurate monitoring of their state of charge (SOC) is crucial. SOC is one of the most fundamental parameters of a battery management system (BMS), and accurate SOC estimation is a prerequisite for the rational use of the battery. Therefore, SOC estimation is of great significance for battery management and even overall vehicle energy management.
[0003] Currently, commonly used SOC estimation methods can be divided into two main categories: one is estimation through direct measurement, among which the open-circuit voltage method can accurately estimate the SOC value of a battery under non-operating conditions. However, the battery must undergo a long period of rest or online estimation to obtain the open-circuit voltage (OCV), and then the corresponding SOC is obtained by consulting the OCV-SOC relationship. The ampere-hour integration method can meet the real-time requirements, but it is greatly affected by initial SOC errors and measurement errors. Moreover, as time goes on, the accumulated errors lead to low SOC estimation accuracy. Both the open-circuit voltage method and the ampere-hour integration method are open-loop estimation methods, which cannot utilize measurement feedback for estimation correction, making it difficult to meet the requirements of online, high-precision SOC estimation.
[0004] Another type of model-based intelligent algorithm has been widely used, with representative examples including neural network algorithms and Kalman filtering algorithms. Neural network methods utilize experimental input and output data to build neural network models, estimating SOC through learning, memorizing, and processing samples. They possess high estimation accuracy, and well-trained models can achieve online estimation. However, neural network methods require a large amount of experimental data for training, and the estimation results are significantly affected by the data samples.
[0005] The aforementioned SOC estimation methods do not consider battery capacity variations, thus reducing the accuracy of SOC estimation. The Kalman filter algorithm estimates SOC based on a battery dynamic model, requiring less computation and making it suitable for online SOC estimation. Furthermore, the Kalman filter algorithm has a closed-loop property, making it easier to handle various uncertainties, and therefore has been widely used. However, the Kalman estimation method requires offline OCV (Optical Capacity Change) experiments to obtain the OCV-SOC relationship curve, which is time-consuming and expensive, and cannot adapt to changes in operating conditions and environment. Summary of the Invention
[0006] To address or partially address the problems existing in related technologies, this application provides a joint estimation method for SOC and capacity of lithium-ion batteries. This estimation method performs online estimation without conducting OCV experiments, saving significant time and costs. The equivalent circuit model parameters of the lithium-ion battery are determined online, improving the accuracy of SOC estimation. Furthermore, estimating the battery capacity further enhances the accuracy of SOC estimation.
[0007] This application provides a method for online joint estimation of SOC and capacity of lithium-ion batteries, including:
[0008] The system acquires battery charge and discharge data online and performs preprocessing, including extracting voltage, current, and temperature data from the raw data.
[0009] A battery model was selected, and the recursive least squares method with a forgetting factor was used to obtain the battery model parameters.
[0010] Using the charge / discharge data and the battery model parameters, the open-circuit voltage (OCV) is estimated using the first adaptive extended Kalman filter algorithm. The open-circuit voltage (OCV) and the model parameters are then input into the second adaptive extended Kalman filter algorithm to estimate the state of charge (SOC).
[0011] The first optional aspect, the feature test specifically includes: collecting charging and discharging data of lithium-ion batteries at a preset temperature to form a raw dataset, and the test mainly consists of incremental OCV test and urban driving cycle test.
[0012] The first optional aspect is the selection of battery models, which includes:
[0013] Based on the accuracy and complexity of the model, the Thevenin model was selected for use in lithium-ion battery SOC estimation. The Thevenin model was then processed to transform it into a form that facilitates model identification.
[0014] The first optional aspect, the Thevenin model processing procedure includes:
[0015] The mathematical expression for the Thevenin model can be represented as follows:
[0016] (1)
[0017] Discretizing equation (1) yields the state equation of the Thevenin model, which is expressed as:
[0018] (2)
[0019] In the formula, I L U represents the battery's operating current, Ts represents the system's sampling time, and U...OCV U represents the open-circuit voltage of the battery. t R represents the battery's terminal voltage. p and C p R1 and R2 represent the polarization resistance and polarization capacitance of the battery, respectively, and R0 represents the ohmic internal resistance of the battery.
[0020] Equation (2) can be expressed using the complex field as follows:
[0021] (3)
[0022] In the formula, E t Defined as U t with U OCV The difference between them represents the system output, where s is a complex factor;
[0023] Convert equation (3) into a transfer function.
[0024] (4)
[0025] make q is the discrete transformation factor. Equation (4) is then subjected to a bilinear transformation.
[0026] (5)
[0027] (6)
[0028] Due to battery U OCV It exhibits slow-changing characteristics, and during the model parameter identification phase, U OCV The changes at time steps k and k-1 are negligible, so equation (5) can be expressed as follows:
[0029] (7)
[0030] Optionally, the process of obtaining battery model parameters using the recursive least squares method with a forgetting factor includes: the detailed process of the recursive least squares method with a forgetting factor is expressed as follows:
[0031] (8)
[0032] (9)
[0033] In the formula, φ is the information matrix, θ is the parameter matrix, ε is the random noise variable, and y is the system output. K represents the algorithm gain, and P represents the covariance.
[0034] Optionally, the online joint estimation of open-circuit voltage (OCV) and capacity using a first adaptive extended Kalman filter algorithm includes the following steps:
[0035] Establish the differential equations for the open-circuit voltage OCV and the battery capacity. The two equations are as follows:
[0036] Equations of state:
[0037] (10)
[0038] Measurement equation:
[0039] (11)
[0040] In the formula, C n,k-1 Represents C at time k-1 n Estimated value, U OCV,k-1 U represents time k-1 OCV The estimated value, η represents the Coulomb efficiency, U p,k-1 U represents time k-1 p Estimated value;
[0041] Select state variables [C] n U OCV U p ] , thus obtaining the corresponding state matrix:
[0042] (12)
[0043] Initialize the parameters in the AEKF algorithm, including the initial capacity C. n Initial open-circuit voltage U OCV Initial polarization voltage U p Initial system noise covariance Q0, initial error covariance P0, initial measurement noise covariance R0;
[0044] The state variables are updated over time using equations (10) and (11);
[0045] Calculate the error covariance Pk at time k.
[0046] (13)
[0047] In the formula, Qk-1 represents the noise covariance;
[0048] Calculate the Kalman gain K at time k. k ,
[0049] (14)
[0050] Calculate the new information e at time k k ,
[0051] (15)
[0052] In the formula, y k Indicates the measured terminal voltage. Indicates the predicted terminal voltage;
[0053] Calculate the optimal estimate of the state variables and covariance at time k.
[0054] (16)
[0055] Calculate the process noise Q at time k k and measurement noise R k covariance,
[0056] (17)
[0057] Optionally, in the first aspect, the step of inputting the open-circuit voltage (OCV), capacity, and model parameters into a second adaptive extended Kalman filter algorithm to complete the SOC estimation includes:
[0058] The state equation for estimating SOC based on the AEKF algorithm is established as follows:
[0059] Equations of state:
[0060] (18)
[0061] Measurement equation:
[0062] (19)
[0063] Select state variable [U] p,k SOC k ], thus obtaining the corresponding state matrix:
[0064] (20)
[0065] The SOC is estimated using the AEKF estimation process.
[0066] The technical solution provided in this application may include the following beneficial effects: This application uses online estimation of the SOC and capacity of the battery without conducting OCV experiments, saving a lot of time and money; the equivalent circuit model parameters of the lithium-ion battery are determined online, improving the accuracy of SOC estimation; and the battery capacity is identified, further improving the accuracy of SOC estimation.
[0067] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0068] The above and other objects, features and advantages of this application will become more apparent from the more detailed description of exemplary embodiments thereof in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments thereof.
[0069] Figure 1 This is a schematic flowchart illustrating the lithium-ion battery SOC estimation method in an embodiment of this application;
[0070] Figure 2 This is the experimental setup of the battery for the lithium-ion battery SOC estimation method shown in the embodiments of this application;
[0071] Figure 3 This is a schematic flowchart illustrating the implementation of the lithium-ion battery SOC estimation method in the embodiments of this application;
[0072] Figure 4 This is a comparison diagram of the SOC estimation methods for lithium-ion batteries shown in the embodiments of this application. Detailed Implementation
[0073] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to make this application more thorough and complete, and to fully convey the scope of this application to those skilled in the art.
[0074] It should be understood that although the terms "first," "second," "third," etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0075] In the description of this application, it should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0076] Unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0077] The technical solutions of the embodiments of this application are described in detail below with reference to the accompanying drawings.
[0078] Figure 1 This is a schematic flowchart illustrating the lithium-ion battery SOC estimation method according to an embodiment of this application. See also... Figure 1 The lithium-ion battery SOC estimation method includes:
[0079] S101. Acquire battery charging and discharging data online and perform preprocessing, including acquiring the required data such as voltage, current and temperature data from the raw data.
[0080] See Figure 2 The charging and discharging data of lithium-ion batteries at a preset temperature are collected to form a raw dataset. The tests mainly consist of incremental OCV testing and FUDS testing. The required data mainly involves extracting voltage, current, and temperature data from the raw dataset. The incremental OCV test is used to verify the method proposed in this application.
[0081] S102. Select a battery model and use the recursive least squares method with a forgetting factor to obtain the battery model parameters.
[0082] The process of establishing the equivalent circuit model of a lithium-ion battery and identifying the corresponding model parameters is as follows:
[0083] The specific process of deriving the parameter expression is as follows:
[0084] The mathematical expression for the Thevenin model can be represented as follows:
[0085] (1)
[0086] Discretizing equation (1) yields the state equation of the Thevenin model, which can be expressed as:
[0087] (2)
[0088] In the formula, I L T represents the battery's operating current. s U represents the system's sampling time. OCVU represents the open-circuit voltage of the battery. t R represents the battery's terminal voltage. p and C p R1 and R2 represent the polarization resistance and polarization capacitance of the battery, respectively, and R0 represents the ohmic internal resistance of the battery.
[0089] Equation (2) can be expressed using the complex field as follows:
[0090] (3)
[0091] In the formula, E t Defined as U t with U OCV The difference between them represents the system output, and s is a complex factor.
[0092] Equation (3) can be converted into a transfer function as follows:
[0093] (4)
[0094] make q is the discrete transformation factor. The bilinear transformation of equation (4) can be expressed as:
[0095] (5)
[0096] (6)
[0097] Due to battery U OCV It exhibits slow-changing characteristics, and during the model parameter identification phase, U OCV The changes at time steps k and k-1 are negligible, therefore equation (5) can be expressed as follows:
[0098] (7)
[0099] The battery model parameters are obtained using a recursive least squares method with a forgetting factor. The specific process is as follows:
[0100] (8)
[0101] (9)
[0102] In the formula, φ is the information matrix, θ is the parameter matrix, ε is the random noise variable, y is the system output, K represents the algorithm gain, and P represents the covariance.
[0103] S103. Using the charge / discharge data and the battery model parameters, the open-circuit voltage (OCV) and capacity are jointly estimated using the first adaptive extended Kalman filter algorithm. The open-circuit voltage (OCV), capacity, and model parameters are then input into the second adaptive extended Kalman filter algorithm to estimate the state of charge (SOC).
[0104] The first adaptive extended Kalman filter algorithm is used to jointly estimate the open-circuit voltage (OCV) and capacity, specifically including the following steps:
[0105] Differential equations for the open-circuit voltage OCV and the battery capacity are established, and the two equations are as follows:
[0106] Equations of state:
[0107] (10)
[0108] Measurement equation:
[0109] (11)
[0110] In the formula, C n,k-1 Represents C at time k-1 n Estimated value, U OCV,k-1 U represents time k-1 OCV The estimated value, η represents the Coulomb efficiency, U p,k-1 U represents time k-1 p Estimated value.
[0111] Select state variables [C] n U OCV U p ] , thus obtaining the corresponding state matrix:
[0112] (12)
[0113] Initialize the relevant parameters in the AEKF algorithm, including the initial capacity C. n Initial open-circuit voltage U OCV Initial polarization voltage U p , initial system noise covariance Q0, initial error covariance P0, initial measurement noise covariance R0.
[0114] The state variables are updated over time using equations (10) and (11).
[0115] Calculate the error covariance P at time k. k The formula is as follows:
[0116] (13)
[0117] In the formula, Qk-1 This represents the noise covariance.
[0118] Calculate the Kalman gain K at time k. k The formula is as follows:
[0119] (14)
[0120] Calculate the new information at time k The formula is as follows:
[0121] (15)
[0122] In the formula, y k Indicates the measured terminal voltage. This indicates the predicted terminal voltage.
[0123] The optimal estimate of the state variables and covariance at time k is calculated using the following formula:
[0124] (16)
[0125] Calculate the process noise Q at time k k and measurement noise R k The covariance is given by the following formula:
[0126] (17)
[0127] The second adaptive extended Kalman filter algorithm is used to estimate the SOC. The specific process is as follows:
[0128] The state equation for estimating SOC based on the AEKF algorithm is established as follows:
[0129] Equations of state:
[0130] (18)
[0131] Measurement equation:
[0132] (19)
[0133] Select state variables: [U p,k SOC k ], thus obtaining the corresponding state matrix:
[0134] (20)
[0135] The AEKF estimation process in estimating the open-circuit voltage (OCV) is completed using the first adaptive extended Kalman filter algorithm, thus completing the SOC estimation.
[0136] Figure 3 This demonstrates the SOC estimation process of the prior art and the present invention. The biggest difference between the existing AEKF estimation and the AEKF estimation of this application is that the existing AEKF estimation obtains the open-circuit voltage by looking up a table based on the OCV-SOC relationship, while the method proposed in this application obtains it online in real time. Furthermore, the battery capacity is updated in real time during SOC estimation. The open-loop lookup table method uses the estimated OCV to obtain the SOC by looking up a table based on the prior OCV-SOC relationship.
[0137] Figure 4 The comparison of SOC results between the present invention and existing technologies is shown, verifying the effectiveness of the present invention. The performance of the proposed method is evaluated using root mean square error (RMSE) and mean absolute error (MAE), calculated as follows:
[0138] (twenty one)
[0139] In the formula, N represents the length of the measurement data, and w represents the measurement value. This represents an estimated value.
[0140] The results of three SOC estimation methods at three different temperatures are shown in Table 1:
[0141] Table 1. Results of three SOC estimation methods at three different temperatures.
[0142]
[0143] 1): T - Traditional method; P - This invention; L - Lookup table method
[0144] As can be seen from the estimation results of this embodiment, even under the same operating conditions at different temperatures, the method provided by this invention can still obtain accurate OCV without performing OCV experiments, and complete accurate estimation of SOC and capacity of lithium-ion batteries. The root mean square error (RMSE) and mean absolute error (MAE) are better than those of the prior art, proving the effectiveness of the method proposed in this invention.
Claims
1. A method for estimating the state of charge (SOC) of a lithium-ion battery, characterized in that, The lithium-ion battery SOC estimation method includes: The system acquires battery charge and discharge data online and performs preprocessing, including extracting voltage, current, and temperature data from the raw data. A battery model was selected, and the recursive least squares method with a forgetting factor was used to obtain the battery model parameters. Using the charge / discharge data and the battery model parameters, the open-circuit voltage (OCV) and capacity are jointly estimated online using the first adaptive extended Kalman filter algorithm, including: Establish the differential equations for the open-circuit voltage OCV and the battery capacity. The two equations are as follows: Equations of state: (10) Measurement equation: (11) In the formula, ,k-1 Represents time k-1 Estimated value ,k-1 Represents time k-1 The estimated value, where η represents the Coulomb efficiency. ,k-1 Represents time k-1 Estimated value; Select state variables [ , , ] , thus obtaining the corresponding state matrix: (12) Initialize the parameters in the AEKF algorithm, including the initial capacity. Initial open-circuit voltage Initial polarization voltage Initial system noise covariance Initial error covariance Initial measurement noise covariance ; The state variables are updated over time using equations (10) and (11); Calculate the error covariance at time k : (13) In the formula, Q k-1 Indicates the noise covariance; Calculate the Kalman gain at time k. : (14) Calculate the new information at time k : (15) In the formula, Indicates the measured terminal voltage. Indicates the predicted terminal voltage; Calculate the optimal estimate of the state variables and covariance at time k: (16) Calculate the process noise at time k and measuring noise Covariance: (17) The open-circuit voltage (OCV) and the model parameters are input into the second adaptive extended Kalman filter algorithm to estimate the state of charge (SOC), including: Establish the state equation for estimating SOC based on the AEKF algorithm: Equations of state: (18) Measurement equation: (19) Select state variables [ , ], thus obtaining the corresponding state matrix: (20) The online estimation of SOC is completed using the estimation process of the first adaptive extended Kalman filter algorithm.
2. The lithium-ion battery SOC estimation method according to claim 1, characterized in that, The feature test specifically includes: collecting charging and discharging data of lithium-ion batteries under driving conditions online to form a raw dataset.
3. The lithium-ion battery SOC estimation method according to claim 1, characterized in that, The selection of the battery model includes: Based on the accuracy and complexity of the model, the Thevenin model was selected for use in lithium-ion battery SOC estimation. The Thevenin model was then processed to transform it into a form that facilitates model identification.
4. The lithium-ion battery SOC estimation method according to claim 3, characterized in that, The Thevenin model processing procedure includes: The mathematical expression for the Thevenin model can be represented as follows: (1) Discretizing equation (1) yields the state equation of the Thevenin model, which is expressed as: (2) In the formula, I L U represents the battery's operating current, Ts represents the system's sampling time, and U... OCV U represents the open-circuit voltage of the battery. t R represents the battery's terminal voltage. p and C p R1 and R2 represent the polarization resistance and polarization capacitance of the battery, respectively, and R0 represents the ohmic internal resistance of the battery. Equation (2) can be expressed using the complex field as follows: (3) In the formula, E is defined as U t with U OCV The difference between them represents the system output, where s is a complex factor; Convert equation (3) into a transfer function. (4) make q is the discrete transformation factor. Equation (4) is then subjected to a bilinear transformation. (5) (6) Due to battery U OCV It exhibits slow-changing characteristics, and during the model parameter identification phase, U OCV The changes at time steps k and k-1 are negligible, so equation (5) can be expressed as follows: (7)。 5. The lithium-ion battery SOC estimation method according to claim 1, characterized in that, The process of obtaining battery model parameters using the recursive least squares method with a forgetting factor includes: The detailed process of the recursive least squares method with a forgetting factor is expressed as follows: (8) (9) In the formula, φ is the information matrix, θ is the parameter matrix, ε is the random noise variable, y is the system output, K represents the algorithm gain, and P represents the covariance.
