Lithium-ion battery SOC estimation algorithm based on FFRLS and EKF

Through the lithium-ion battery SOC estimation algorithm based on FFRLS and EKF, the problem that the model parameters in the traditional lithium-ion battery SOC estimation method cannot be estimated online and in real time is solved, and SOC estimation with higher accuracy and robustness is achieved.

CN112433154BActive Publication Date: 2024-09-10NANJING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910787275.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-25
Publication Date
2024-09-10
Estimated Expiration
2039-08-25

AI Technical Summary

Technical Problem

Traditional lithium-ion battery SOC estimation methods cannot achieve online and real-time estimation of model parameters, and the SOC estimation accuracy is low and the error is large.

Method used

Using the lithium-ion battery SOC estimation algorithm based on FFRLS and EKF, the Thevenin lithium-ion battery model is established, the intermittent discharge static method is used to determine the SOC-OCV relationship, the initial parameters of the battery model are estimated offline, and brought online The least squares method of genetic factors is used to identify battery model parameters, and the extended Kalman filter algorithm EKF is used to observe SOC.

Benefits of technology

It realizes online real-time identification of battery model parameters, reduces SOC estimation error, and improves the robustness and accuracy of estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112433154B
    Figure CN112433154B
Patent Text Reader

Abstract

The present invention discloses a lithium-ion battery SOC estimation algorithm based on FFRLS and EKF, the steps of which include: establishing a lithium-ion battery model, determining the SOC-OCV relationship by using a discharge static method, estimating the initial parameters of the battery model in an offline state, identifying the battery model parameters by using a least squares FFRLS algorithm with a forgetting factor in an online state, and estimating the SOC by using an extended Kalman filter algorithm EKF. The algorithm of the present invention is simple to implement and has strong practicality. By using FFRLS and EKF, the problem that the traditional Kalman filter cannot realize online parameter estimation, resulting in large estimation errors, is solved, and the accuracy of the lithium-ion battery estimation algorithm is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery state of charge estimation, and in particular to a lithium-ion battery SOC estimation algorithm based on FFRLS and EKF. Background Art

[0002] As the main energy source of electric vehicles, the SOC of power batteries is one of the most important and basic parameters in the energy management system. Only accurate SOC value estimation can make reasonable energy allocation, so as to make more efficient use of limited energy and correctly predict the remaining mileage of the vehicle. SOC (State of Charge) is defined as the state of charge of the battery, which is used to indicate the remaining power of the battery. The battery is a complex nonlinear system. When used in electric vehicles, it is difficult to obtain accurate noise statistics due to the numerous electronic devices and complex noise interference. In addition, the randomness of changes in external and internal environmental parameters makes the system mathematical model inaccurate and generates model errors. Therefore, it is necessary to study the anti-interference ability and adaptive ability of battery state of charge estimation to improve the robustness of the estimation and the effectiveness of the battery state of charge.

[0003] Among the currently available SOC estimation methods, the ampere-hour measurement method based on the current integration method is prone to cumulative errors; the open circuit voltage method and electromotive force method based on battery terminal voltage measurement require the battery to remain stationary for a long time and cannot estimate the SOC value in real time; the neural network method based on a large amount of sample data and a neural network model requires a large amount of data samples to provide a reliable training method; the Kalman filtering method based on the battery state space model and recursive equation cannot perform online estimation of model parameters, and the SOC estimation error is large. Summary of the invention

[0004] The purpose of the present invention is to provide a lithium-ion battery SOC estimation algorithm based on FFRLS and EKF to solve the problems that the traditional lithium-ion battery SOC estimation algorithm cannot realize online real-time estimation of model parameters, has low SOC estimation accuracy and large errors.

[0005] The technical solution to achieve the purpose of the present invention is: a lithium-ion battery SOC estimation algorithm based on FFRLS and EKF, comprising the following steps:

[0006] Step 1, establishing a Thevenin lithium-ion battery model;

[0007] Step 2: Determine the SOC-OCV relationship using the intermittent discharge static method;

[0008] Step 3: Estimate the initial parameters of the battery model in an offline state;

[0009] Step 4: The least squares method FFRLS with genetic factors is used to identify the battery model parameters online;

[0010] Step 5: Use the extended Kalman filter algorithm EKF to observe the SOC.

[0011] Compared with the prior art, the present invention has the following significant advantages: the least squares method FFRLS with genetic factors can perform online real-time identification of battery model parameters, the genetic factors enhance the amount of information provided by new data, gradually weaken old data, and prevent data saturation, thereby reducing the SOC estimation error compared with the general Kalman filter algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is the algorithm flow chart of the present invention.

[0013] Figure 2 This is a diagram of the second-order Thevenin lithium-ion battery model.

[0014] Figure 3 It is the intermittent discharge current diagram.

[0015] Figure 4 It is the intermittent discharge voltage diagram.

[0016] Figure 5 It is a schematic diagram of the voltage response curve at the end of discharge of a lithium-ion battery.

[0017] Figure 6 This is the result diagram of SOC observation experiment. DETAILED DESCRIPTION

[0018] like Figure 1 As shown, a lithium-ion battery SOC estimation algorithm based on FFRLS and EKF includes the following steps:

[0019] Step 1, establishing a Thevenin lithium-ion battery model;

[0020] Step 2: Determine the SOC-OCV relationship using the intermittent discharge static method;

[0021] Step 3: Estimate the initial parameters of the battery model in an offline state;

[0022] Step 4: The least squares method FFRLS with genetic factors is used to identify the battery model parameters online;

[0023] Step 5: Use the extended Kalman filter algorithm EKF to observe the SOC.

[0024] Furthermore, the lithium-ion battery model is a second-order Thevenin model.

[0025] Furthermore, the initial parameters of the battery model are calculated offline using the voltage response curve after the intermittent discharge of the battery; the initial parameters include the ohmic internal resistance of the battery, the resistance and capacitance of the two RC parallel circuits.

[0026] Furthermore, the extended Kalman filter algorithm EKF is used to estimate the SOC value. The discrete state equation and output equation of the extended Kalman filter EKF are as follows:

[0027]

[0028] Among them, U p,k+1 , U s,k+1 are the voltages of two RC parallel circuits, R is the ohmic resistance of the battery, SOC k+1 is the battery SOC value, T is the sampling time, R p , C p , R s , C s are the resistance and capacitance values ​​of the two series circuits respectively, i k is the current value, w k , m k are independent zero-mean Gaussian white noises, V ocv,k+1 (SOC k+1 ) is the open circuit voltage of the battery, V k+1 is the output voltage value of the battery;

[0029] The state variable is x k =[U p,k U s,k SOC k ] T , the coefficient matrices are

[0030] State transition matrix: Control Matrix: Output matrix: Input matrix: u = i k

[0031] The estimation process of the extended Kalman filter EKF is as follows:

[0032] (1) Initialize parameters:

[0033] V=0.4

[0034] Among them, Q is the prediction model noise matrix and V is the observation noise covariance.

[0035] (2) State prediction matrix:

[0036]

[0037] in, is the state matrix, F is the state transfer matrix, G is the control matrix, u k-1 Is the input quantity.

[0038] (3) Transfer of noise covariance matrix:

[0039] P k - =FP k-1 F T +Q

[0040] Among them, P k - is the noise covariance matrix at the current moment, P k-1 is the noise covariance matrix of the previous moment.

[0041] (4) Obtain the Kalman coefficient:

[0042] K k =P k - H T inv(HP k - H T +V)

[0043] Among them, K k is the Kalman coefficient, H is the output matrix, and V is the observation noise covariance.

[0044] (5) Update status:

[0045] V k =V ocv,k (SOC k )-U p,k -U s,k -i k R

[0046]

[0047] Among them, V k is the predicted output voltage at the current moment, U p,k , U s,k are the voltages of the two RC parallel circuits, i k is the output current, R is the ohmic resistance of the battery, is the updated state variable, is the current state variable, y k is the actual output voltage measured.

[0048] (6) Update of noise covariance matrix:

[0049] P k =(IKk H)P k -

[0050] Where I is the identity matrix, P k is the updated noise covariance.

[0051] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0052] Example

[0053] Combination Figure 2 , a second-order Thevenin lithium-ion battery model is established, the open-circuit voltage E(t) is used to represent the voltage source, R represents the ohmic resistance of the battery, and a second-order RC loop is used to simulate the polarization process of the battery.

[0054] Combination Figure 3 and Figure 4 , the horizontal axis is time, Figure 3 The ordinate is the discharge current, Figure 4 The vertical axis is the open circuit voltage. The SOC-OCV relationship is determined by the intermittent discharge static method. First, the battery is fully charged to 100% SOC. Secondly, a negative pulse current is used to discharge the battery at every 10% SOC. Then the battery is left to rest for 1 hour to eliminate the polarization reaction. Finally, the average value at rest is calculated to obtain the SOC-OCV curve. The pulse discharge current is set to C / 2, and its discharge time width corresponds to a certain amount of charge (i.e. 10% SOC).

[0055] Figure 5 This is a schematic diagram of the voltage response curve at the end of the discharge of a lithium-ion battery. (V1-V0) is the process in which the voltage drop on the internal ohmic resistance of the battery disappears after the discharge is completed. From this, the ohmic internal resistance of the battery can be obtained:

[0056]

[0057] Wherein, R is the ohmic resistance, I is the output current, V1 is the voltage value when the pulse responds to node 1, and V0 is the voltage value when the pulse responds to node 0.

[0058] The polarization process of the battery is simulated by superimposing two resistance and capacitance links. Figure 2 The time constant of the RC parallel circuit composed of Cs and Rs is small, and the pulse response node V1 to the pulse response node V2 is used to simulate the process of rapid voltage change of the battery when the current suddenly changes. The time constant of the parallel circuit of Cp and Rp is large, and the pulse response node V2 to the pulse response node V3 is used to simulate the process of slow voltage change.

[0059] Assume that the battery is discharged for a period of time during (t0-tr) and then remains at rest for the rest of the time. During this process, the voltage of the RC network is:

[0060]

[0061]

[0062] Where t0, t d ,t r are the discharge start time, discharge stop time and static stop time respectively, and t is the time parameter.

[0063] Let τ s =R s C s , τ p =R p C sp , is the time constant of the two RC parallel circuits. The voltage change from the pulse response node V1 to the pulse response node V3 is caused by the disappearance of the polarization reaction of the battery. In this process, the voltage output is: Matlib can be used to fit the coefficients of the double exponential term and identify R s , R p , C S , C P The value of .

[0064] according to Figure 2 The functional relationship of the equivalent circuit model is as follows:

[0065]

[0066] The recursive operation of the least squares method with genetic factors can be obtained as follows:

[0067]

[0068] in, is the parameter matrix predicted at the next moment, The parameter matrix at the current moment, K(k+1) is the gain matrix, Φ(k+1) is the observation matrix, I is the unit matrix, λ is the genetic factor, P(k)=(Φ(k) T Φ(k)) -1 .

[0069] In the recursive operation of the least squares method, more and more old data will cause the recursive result to not reflect the characteristics of the new data well. To avoid the above situation, the forgetting factor λ is introduced.

[0070] The discrete state equation and output equation of the extended Kalman filter EKF are as follows:

[0071]

[0072] Among them, w k , m k are independent zero-mean Gaussian white noises, and the state variable is x k =[U p,k U s,k SOC k ] T , the coefficient matrices are

[0073] State transition matrix: Control Matrix: Output matrix: Input matrix: u = i k

[0074] The estimation process of the extended Kalman filter EKF is as follows:

[0075] Step 1: Initialize parameters:

[0076] V=0.4

[0077] Among them, Q is the prediction model noise matrix, V is the observation noise covariance

[0078] Step 2, state prediction matrix:

[0079]

[0080] in, is the state matrix, F is the state transfer matrix, G is the control matrix, u k-1 For input

[0081] Step 3, transfer of noise covariance matrix:

[0082] P k - =FP k-1 F T +Q

[0083] Among them, P k - is the noise covariance matrix at the current moment, P k-1 is the noise covariance matrix of the previous moment

[0084] Step 4, calculate the Kalman coefficient:

[0085] K k =P k - H T inv(HP k - H T +V)

[0086] Among them, K k is the Kalman coefficient, H is the output matrix, and V is the observation noise covariance

[0087] Step 5, update status:

[0088] V k =V ocv,k (SOC k )-U p,k -U s,k -i k R

[0089]

[0090] Among them, V k is the predicted output voltage at the current moment, U p,k , U s,k are the voltages of the two RC parallel circuits, i k is the output current, R is the ohmic resistance of the battery, is the updated state variable, is the current state variable, y k is the actual output voltage measured.

[0091] Step 6, update of the noise covariance matrix:

[0092] P k =(IK k H)P k -

[0093] Where I is the identity matrix, P k is the updated noise covariance matrix.

[0094] The experimental results are shown in the figure Figure 6 As shown, the results show good following and small SOC estimation bias.

Claims

1. A lithium-ion battery SOC estimation algorithm based on FFRLS and EKF, characterized in that: The following steps are involved: Step 1: Establish a Thevenin lithium-ion battery model, where the lithium-ion battery model is a second-order Thevenin model; Step 2: Determine the SOC-OCV relationship using the intermittent discharge static method; Step 3, in an offline state, using the voltage response curve after the battery intermittent discharge ends to calculate the initial parameters of the battery model; the initial parameters include the battery ohmic internal resistance, the resistance and capacitance of the two RC parallel circuits; Step 4: Using the forgetting factor recursive least squares algorithm FFRLS to identify the battery model parameters online; Assume that the battery is at (t0-t r ) during which it discharges for a period of time and then remains in a static state for the rest of the time. During this process, the RC network voltage is: Where t0, t d ,t r are the discharge start time, discharge stop time and rest stop time respectively, and t is the time parameter; Let τ s =R s C s , τ p =R p C sp , is the time constant of the two RC parallel circuits. The voltage change from the pulse response node V1 to the pulse response node V3 is caused by the disappearance of the polarization reaction of the battery. In this process, the voltage output is: Use Matlib to fit the coefficients of the double exponential term and identify R s , R p , C s , C P The value of The functional relationship of the equivalent circuit model is as follows: After the recursive operation of the least squares method with the forgetting factor, the equation can be obtained as follows: in, is the parameter matrix predicted at the next moment, The parameter matrix at the current moment, K(k+1) is the gain matrix, Φ(k+1) is the observation matrix, I is the unit matrix, λ is the forgetting factor, P(k)=(Φ(k) T Φ(k)) -1 ; Step 5: Use the extended Kalman filter algorithm EKF to estimate the SOC value. The discrete state equation and output equation of the extended Kalman filter EKF are as follows: Among them, U p,k+1 , U s,k+1 are the voltages of two RC parallel circuits, R is the ohmic resistance of the battery, SOC k+1 is the battery SOC value, T is the sampling time, R p , C p , R s , C s are the resistance and capacitance values ​​of the two series circuits respectively, i k is the current value, w k , m k are independent zero-mean Gaussian white noises, V ocv,k+1 (SOC k+1 ) is the open circuit voltage of the battery, V k+1 is the output voltage value of the battery; The state variable is x k =[U p,k U s,k SOC k ] T ; State transition matrix: Control Matrix: Output matrix: Input matrix: u = i k ; The estimation process of the extended Kalman filter EKF is as follows: (1) Initialize parameters: Among them, Q is the prediction model noise matrix, V is the observation noise covariance; (2) State prediction matrix: in, is the state matrix, F is the state transfer matrix, G is the control matrix, u k-1 is the input quantity; (3) Transfer of noise covariance matrix: P k - =FP k-1 F T +Q Among them, P k - is the noise covariance matrix at the current moment, P k-1 is the noise covariance matrix of the previous moment; (4) Obtain the Kalman coefficient: K k =P k - H T inv(HP k - H T +V) Among them, K k is the Kalman coefficient, H is the output matrix, and V is the observation noise covariance; (5) Update status: V k =V ocv,k (SOC k )-U p,k -U s,k -i k R Among them, V k is the predicted output voltage at the current moment, U p,k , U s,k are the voltages of the two RC parallel circuits, i k is the output current, R is the ohmic resistance of the battery, is the updated state variable, is the current state variable, y k is the measured actual output voltage; (6) Update of noise covariance matrix: P k =(I-K k H)P k - Where I is the identity matrix, P k is the updated noise covariance.