Lithium iron phosphate battery SOC estimation and correction method based on fuzzy EKF-AH algorithm

Through the fuzzy EKF-AH algorithm combined with the extended Kalman filter and ampere-hour integration method, the weight and noise error are dynamically adjusted to solve the problem of initial value and cumulative error and plateau inaccuracy in lithium battery SOC estimation, and improve the performance of lithium iron phosphate batteries. The accuracy of SOC estimation and the ability to correct battery health conditions improve the performance and life prediction of energy storage systems.

CN118625142AActive Publication Date: 2024-09-10SHANGHAI HIGH-FLYING ELECTRONICS TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410724095.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-10
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Existing lithium battery SOC estimation methods have problems such as initial value error, process accumulation error, inaccurate plateau period, and poor robustness. Especially for lithium iron phosphate batteries, the OCV plateau period estimation is inaccurate, which affects the energy efficiency and life prediction of the energy storage system. .

Method used

Based on the fuzzy EKF-AH algorithm, combined with the extended Kalman filter and ampere-hour integration method, a fuzzy rule library related to SOC and SOH is established, the weight of the EKF-AH algorithm and the measurement noise error are dynamically adjusted, and the SOC is corrected through the open circuit voltage and the EKF algorithm. , eliminate the initial value error and process cumulative error, and improve the estimation accuracy.

Benefits of technology

It improves the accuracy of SOC estimation and the accuracy of the entire life cycle of lithium iron phosphate batteries, solves the inaccuracy problem of EKF during the plateau period, enhances the ability to correct battery health conditions, and improves the performance and life prediction of energy storage systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625142A
    Figure CN118625142A
Patent Text Reader

Abstract

The invention relates to the technical field of lithium battery state estimation, in particular to a lithium iron phosphate battery SOC estimation and correction method based on a fuzzy EKF-AH algorithm. Starting from a certain starting time of the energy storage equipment, reading the SOC and SOH of the energy storage equipment in the last shutdown time by the BMS, and selecting an open-circuit voltage OCV correction or an EKF algorithm to correct the SOC according to the standing time; an EKF-AH algorithm is used for estimating the SOC, a fuzzy rule base associated with the SOC and the SOH is established in combination with fuzzy control, and the weight of the EKF-AH algorithm and the noise measurement error are dynamically adjusted; and calculating estimated difference values of the EKF algorithm and the ampere-hour integral method, and if the sum of the estimated difference values is greater than a corresponding threshold value, issuing an SOH correction warning. The estimation precision of the whole life cycle of the lithium iron phosphate battery is improved, and meanwhile, SOH is assisted for correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lithium battery state estimation, and in particular to a method for estimating and correcting the SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm. Background Art

[0002] In order to better cope with environmental pollution and energy crisis, the development of energy storage technology has attracted much attention. As one of the main power sources of energy storage systems, lithium-ion batteries play a vital role in energy storage and management. The state of charge (SOC) of the battery is an important indicator for evaluating the remaining energy of the battery, which directly affects the performance, energy utilization efficiency and life prediction of the energy storage system. Improving the energy efficiency and performance of energy storage systems, including the accuracy of SOC estimation, is of great significance to achieving the dual carbon goals and promoting energy transformation.

[0003] At present, the mainstream SOC estimation methods include the ampere-hour integration method, the open circuit voltage method, the Kalman filter method, and the machine learning algorithm. The ampere-hour integration method is the most common SOC estimation method. It calculates the battery SOC by integrating the current over time. This method is greatly affected by the accuracy of the sensor, cannot eliminate the absolute error caused by the error in the initial value of SOC, and has the problem of accumulation of process errors over time. The open circuit voltage method estimates the remaining capacity of the battery by measuring the SOC value of the battery at different open circuit voltages, but this method requires the battery to be stationary for a long time, which is inconvenient for real-time monitoring, and the OCV plateau period of lithium iron phosphate batteries is not accurately estimated. Machine learning algorithms represented by neural networks rely on a large amount of experimental data, and have poor robustness and battery universality. In contrast, the Kalman filter method has become a research hotspot for SOC estimation methods due to its high estimation accuracy, good robustness, and the ability to eliminate the influence of incorrect initial values.

[0004] The essence of Extended Kalman Filter (EKF) SOC estimation is to simulate the polarization characteristics of the battery through an equivalent circuit model, and then use OCV and ampere-hour integration method to jointly estimate SOC. Therefore, the EKF algorithm includes the advantages and disadvantages of the open circuit voltage method. It is inaccurate during the plateau period of the battery (that is, the slope of the SOC-OCV curve is too small), which is easy to cause errors. At the same time, the traditional Kalman filter algorithm assumes that the measurement noise error γ is a fixed value, and does not consider the impact of battery life changes on the battery OCV characteristics, resulting in increasing estimation errors. Summary of the invention

[0005] In view of the limitations of the prior art, the present invention proposes a method for estimating and correcting the SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm.

[0006] The present invention estimates the SOC of a lithium iron phosphate battery by using an EKF-AH algorithm combining an extended Kalman filter and an ampere-hour integration, establishes a fuzzy rule base associated with the current state of charge SOC and the health status (lifespan) SOH, dynamically adjusts the EKF-AH algorithm weight and the measurement noise error γ, eliminates the initial value error and process cumulative error of the ampere-hour integration method, solves the problem of inaccuracy of the EKF in the plateau period, and improves the estimation accuracy of the entire life cycle of the lithium iron phosphate battery. A method for estimating and correcting the SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm is designed, which includes the following steps:

[0007] S1, starting from the start of a certain power-on of the energy storage device, the BMS reads the SOC and SOH values ​​at the last shutdown, recorded as SOC his , SOH his ;

[0008] S2, calculating the time difference between the current startup and the last shutdown as the battery rest time ΔT, and determining whether the battery rest time ΔT reaches a preset battery rest time value T;

[0009] If the battery rest time ΔT≥T, go to step S3;

[0010] If the battery rest time ΔT<T, go to step S4;

[0011] S3, use the open circuit voltage OCV to correct the SOC value and get a new SOC new , and calculate SOC his With SOC new The difference ΔSOC = |SOC his -SOC new |, let the battery SOH correction warning threshold be δ;

[0012] If ΔSOC>δ, determine SOH his If the estimation is wrong, execute step S9;

[0013] If ΔSOC≤δ, execute step S5;

[0014] S4, use the EKF algorithm to correct the SOC, the correction lasts for 1 minute, and the corrected SOC is obtained new , go to step S5;

[0015] S5, input the corrected SOC new As the initial value, the SOC is estimated using the EKF algorithm and the ampere-hour integration method to obtain the SOC EKF , SOC AH, combined with fuzzy control to establish a fuzzy rule base associated with the state of charge SOC and health status SOH, dynamically adjust the EKF-AH algorithm weight ω and measurement noise error γ, and obtain the SOC accurate estimation SOC NEW ;

[0016] S6, calculate the estimated difference between the EKF algorithm and the ampere-hour integration method e(k) = |SOC EKF -SOC AH |, establish TS fuzzy control rules, set different warning thresholds α according to whether the SOC is in the plateau period,

[0017] When 10%<SOC NEW <90%, that is, SOC is in the plateau period, then the warning threshold α is 2%;

[0018] When SOC NEW ≤10%, or SOC NEW ≥90%, that is, SOC is in the non-plateau period, and the warning threshold α is 5%;

[0019] S7, sum up the differences of the previous n estimates to get If the sum of the estimated differences e(k) is greater than the corresponding warning threshold α, go to step S9, otherwise go to step S8;

[0020] S8, BMS updates the current SOC of the energy storage device and accurately estimates the SOC NEW Assign value to SOC new , go to step S5;

[0021] S9, BMS determines SOH his The estimate was wrong and a SOH correction warning was issued.

[0022] Furthermore, in S3, the open circuit voltage OCV is used to perform correction calculation on the SOC value, which specifically includes the following contents:

[0023] S3.1, perform battery OCV-SOC test to obtain the relationship between the battery open circuit voltage OCV and the remaining capacity SOC under different temperatures and aging conditions;

[0024] S3.2, use MATLAB to fit the functional relationship polynomial between open circuit voltage OCV and SOC

[0025] OCV=f(SOC)=a0+a1SOC 1 +a2SOC 2 +…+a n SoC n ,

[0026] where a n is the coefficient of the nth power term;

[0027] S3.3, substitute the open circuit voltage OCV value read by the sensor after power-on into the polynomial to obtain SOC new .

[0028] Furthermore, the S4 uses the EKF algorithm to perform correction calculation on the SOC, which specifically includes the following contents:

[0029] S4.1, establish the Thevenin equivalent circuit model based on the polarization characteristics of lithium batteries;

[0030] S4.2, the working equation of the above Thevenin equivalent circuit model is,

[0031]

[0032] In the above formula, OCV is the open circuit voltage, R0 is the ohmic internal resistance of the battery, C is the polarization capacitor, R1 is the polarization resistor, U1 represents the voltage across the polarization resistor R1 and the polarization capacitor C, and U s is the battery terminal voltage, i is the current of the battery, charging is positive and discharging is negative;

[0033] S4.3, discretize the above equations and combine them with the extended Kalman filter to obtain the observation equation and measurement equation as follows:

[0034]

[0035] In the observation equation and measurement equation, t is the unit sampling interval, Q max is the current maximum capacity of the battery, which is related to SOH, Q represents the process noise error matrix, and R represents the measurement noise error matrix;

[0036] The algorithm recursively estimates as follows,

[0037] A priori estimate,

[0038]

[0039] Kalman gain update,

[0040]

[0041] The optimal estimate is updated.

[0042]

[0043] is the prior estimate of the observed state at the current moment, P k - is the prior error covariance matrix at the current moment, K k is the Kalman gain matrix, P k + is the optimal estimate at the current moment and the updated error covariance matrix, Q is the process noise error matrix, R k is the measurement noise error matrix at the current moment, U s is the voltage meter measurement value, is the estimated value of the terminal voltage at the current moment;

[0044] S4.4, conduct HPPC test, use continuous pulse sequence current to charge and discharge the battery to obtain the dynamic characteristics of the battery at different SOC values, use MATLAB to identify the battery parameters offline, and obtain R0, R1, and C;

[0045] S4.5, substitute the previous estimated SOC(k-1) and U1(k-1) to get SOC new =SOC(k).

[0046] Furthermore, in S4, the EKF algorithm is used to perform correction calculation on the SOC, and its measurement noise error matrix R=0.0003.

[0047] Furthermore, the fuzzy control in S5 dynamically adjusts the EKF-AH algorithm weight ω and the measurement noise error γ, specifically including the following contents:

[0048] S5.1, Get SOC new , SOH his , using the ampere-hour integration method and EKF to calculate SOC new SOC is estimated respectively AH , SOC EKF , the discretization formula of the ampere-hour integration method is as follows,

[0049]

[0050] Q max =SOH his *Q 出厂 ,

[0051] In the above formula, t is the unit sampling interval, i is the current current of the battery, charging is positive and discharging is negative, Q max is the current maximum capacity of the battery, Q 出厂 This is the maximum capacity of the battery when it leaves the factory. As the battery is used, it loses power. max With SOH continuously decreasing;

[0052] S5.2, in the fuzzy controller, SOC new , SOH hisAs the input of the fuzzy controller, the EKF-AH algorithm weight ω and the measurement noise error γ are taken as the output of the system;

[0053] The three fuzzy subsets of SOC are defined as Bigger (B), Middler (M) and Lower (L);

[0054] The three fuzzy subsets of SOH are defined as Old (O), NOW (M) and New (N);

[0055] Similarly, the fuzzy subsets of ω and γ are defined as Big (B), Mid (M) and Low (L) respectively;

[0056] According to the membership function type and parameter settings, fuzzy inference rules are formulated through the design of fuzzy controller;

[0057] S5.3, through the design of fuzzy controller, combined with the state of charge SOC interval and the size of the health state SOH, the fuzzy controller is used to realize the dynamic adaptive adjustment of the EKF-AH algorithm weight ω and the measurement noise error γ. Finally, the adjusted measurement noise error γ is transferred to the measurement noise error matrix R in the Kalman filter gain coefficient, and the latest EKF-AH algorithm weight ω is used to calculate the SOC accurate estimation SOC NEW , see the formula as follows,

[0058] SOC NEW (k) = ωSOC AH (k)+(1-ω)SOC EKF (k).

[0059] Furthermore, the modified warning threshold δ is set to 10%.

[0060] Compared with the prior art, the present invention has the advantages that:

[0061] 1. The EKF-AH algorithm combining extended Kalman filtering and ampere-hour integration is used to estimate the SOC of lithium iron phosphate batteries, eliminating the initial value error and process accumulation error of the ampere-hour integration method, solving the problem of EKF inaccuracy during the plateau period, and improving the accuracy of SOC estimation;

[0062] 2. Establish a fuzzy rule base associated with the current state of charge SOC and health status (lifespan) SOH, dynamically adjust the EKF-AH algorithm weight and measurement noise error γ, and improve the estimation accuracy of the entire life cycle of lithium iron phosphate batteries;

[0063] 3. Set different thresholds according to whether the SOC is in the plateau period, compare the cumulative estimation errors of the two algorithms with the threshold values, determine whether the SOH estimation is wrong, and then assist in correcting the SOH. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a flow chart of a method for estimating and correcting SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm in an embodiment of the present invention;

[0065] Figure 2 is the Thevenin equivalent circuit model in the embodiment of the present invention;

[0066] Figure 3 The OCV-SOC curve diagram of the battery at different SOH in the embodiment of the present invention;

[0067] Figure 4 The EKF algorithm estimation effect in the embodiment of the present invention;

[0068] Figure 5 This is the estimation effect of the EKF-AH algorithm in the embodiment of the present invention. DETAILED DESCRIPTION

[0069] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be further described below. It should be noted that the implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure.

[0070] A method for estimating and correcting SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm comprises the following steps:

[0071] S1, starting from the start of a certain power-on of the energy storage device, the BMS reads the SOC and SOH values ​​at the last shutdown, recorded as SOC his , SOH his ;

[0072] S2, calculating the time difference between the current startup and the last shutdown as the battery rest time ΔT, and determining whether the battery rest time ΔT reaches a preset battery rest time value T;

[0073] If the battery rest time ΔT≥T, go to step S3; if the battery rest time ΔT<T, go to step S4;

[0074] S3, use the open circuit voltage OCV to correct the SOC value and get a new SOC new , and calculate SOC his With SOC new The difference ΔSoC=|SOC his -SOC new |, let the battery SOH correction warning threshold be δ;

[0075] If ΔSOC>δ, determine SOH his If the estimation is wrong, execute step S9;

[0076] If ΔSOC≤δ, execute step S5;

[0077] S4, use the EKF algorithm to correct the SOC, the correction lasts for 5 minutes, and the corrected SOC is obtained new , go to step S5;

[0078] S5, input the corrected SOC new As the initial value, the SOC is estimated using the EKF algorithm and the ampere-hour integration method to obtain the SOC EKF , SOC AH , combined with fuzzy control to establish a fuzzy rule base associated with the state of charge SOC and health status SOH, dynamically adjust the EKF-AH algorithm weight ω and measurement noise error γ, and obtain the SOC accurate estimation SOC NEW ;

[0079] S6, calculate the estimated difference between the EKF algorithm and the ampere-hour integration method e(k) = |SOC EKF -SOC AH |, establish TS fuzzy control rules, set different warning thresholds α according to whether the SOC is in the plateau period,

[0080] When 10%<SOC NEW <90%, that is, SOC is in the plateau period, then the warning threshold α is 2%;

[0081] When SOC NEW ≤10%, or SOC NEW ≥90%, that is, SOC is in the non-plateau period, and the warning threshold α is 5%;

[0082] S7, sum up the differences of the previous n estimates to get If the sum of the estimated differences e(k) is greater than the corresponding warning threshold α, go to step S9, otherwise go to step S8;

[0083] S8, BMS updates the current SOC of the energy storage device and accurately estimates the SOC NEW Assign value to SOC new , go to step S5;

[0084] S9, BMS determines SOH his The estimate was wrong and a SOH correction warning was issued.

[0085] Furthermore, in S3, the open circuit voltage OCV is used to perform correction calculation on the SOC value, which specifically includes the following contents:

[0086] S3.1, perform battery OCV-SOC test to obtain the relationship between the battery open circuit voltage OCV and the remaining capacity SOC under different temperatures and aging conditions;

[0087] S3.2, use MATLAB to fit the functional relationship polynomial between open circuit voltage OCV and SOC

[0088] OCV=f(SOC)=a0+a1SOC 1 +a2SOC 2 +…+a n SOC n ,

[0089] where a n is the coefficient of the nth power term;

[0090] S3.3, substitute the open circuit voltage OCV value read by the sensor after power-on into the polynomial to obtain SOC new .

[0091] Furthermore, the S4 uses the EKF algorithm to perform correction calculation on the SOC, which specifically includes the following contents:

[0092] S4.1, establish the Thevenin equivalent circuit model based on the polarization characteristics of lithium batteries;

[0093] S4.2, the working equation of the above Thevenin equivalent circuit model is,

[0094]

[0095] In the above formula, OCV is the open circuit voltage, R0 is the ohmic internal resistance of the battery, C is the polarization capacitor, R1 is the polarization resistor, U1 represents the voltage across the polarization resistor R1 and the polarization capacitor C, and U s is the battery terminal voltage, i is the current of the battery, charging is positive and discharging is negative;

[0096] S4.3, discretize the above equations and combine them with the extended Kalman filter to obtain the observation equation and measurement equation as follows:

[0097]

[0098] In the observation equation and measurement equation, t is the unit sampling interval, Q max is the current maximum capacity of the battery, which is related to SOH, Q represents the process noise error matrix, and R represents the measurement noise error matrix;

[0099] The algorithm recursively estimates as follows,

[0100] A priori estimate,

[0101]

[0102] Kalman gain update,

[0103]

[0104] The optimal estimate is updated.

[0105]

[0106] is the prior estimate of the observed state at the current moment, P k - is the prior error covariance matrix at the current moment, K k is the Kalman gain matrix, P k + is the optimal estimate at the current moment and the updated error covariance matrix, Q is the process noise error matrix, R k is the measurement noise error matrix at the current moment, U s is the voltage meter measurement value, is the estimated value of the terminal voltage at the current moment;

[0107] S4.4, conduct HPPC test, use continuous pulse sequence current to charge and discharge the battery to obtain the dynamic characteristics of the battery at different SOC values, use MATLAB to identify the battery parameters offline, and obtain R0, R1, and C;

[0108] S4.5, substitute the previous estimated SOC(k-1) and U1(k-1) to get SOC new =SOC(k).

[0109] Furthermore, in S4, the EKF algorithm is used to perform correction calculation on the SOC, and its measurement noise error matrix R=0.0003.

[0110] Furthermore, the fuzzy control in S5 dynamically adjusts the EKF-AH algorithm weight ω and the measurement noise error γ, specifically including the following contents:

[0111] S5.1, Get SOC new , SOH his , using the ampere-hour integration method and EKF to calculate SOC new SOC is estimated respectively AH , SOC EKF , the discretization formula of the ampere-hour integration method is as follows,

[0112]

[0113] Q max =SOHhis *Q 出厂 ,

[0114] In the above formula, t is the unit sampling interval, i is the current current of the battery, charging is positive and discharging is negative, Q max is the current maximum capacity of the battery, Q 出厂 This is the maximum capacity of the battery when it leaves the factory. As the battery is used, it loses power. max With SOH continuously decreasing;

[0115] S5.2, in the fuzzy controller, SOC new , SOH his As the input of the fuzzy controller, the EKF-AH algorithm weight ω and the measurement noise error γ are taken as the output of the system;

[0116] The three fuzzy subsets of SOC are defined as Bigger (B), Middler (M) and Lower (L);

[0117] The three fuzzy subsets of SOH are defined as Old (O), NOW (M) and New (N);

[0118] Similarly, the fuzzy subsets of ω and γ are defined as Big (B), Mid (M) and Low (L) respectively;

[0119] According to the membership function type and parameter settings, fuzzy inference rules are formulated through the design of fuzzy controller;

[0120] S5.3, through the design of fuzzy controller, combined with the state of charge SOC interval and the size of the health state SOH, the fuzzy controller is used to realize the dynamic adaptive adjustment of the EKF-AH algorithm weight ω and the measurement noise error γ. Finally, the adjusted measurement noise error γ is transferred to the measurement noise error matrix R in the Kalman filter gain coefficient, and the latest EKF-AH algorithm weight ω is used to calculate the SOC accurate estimation SOC NEW , see the formula as follows,

[0121] SOC NEW (k) = ωSOC AH (k)+(1-ω)SOC EKF (k).

[0122] Furthermore, the modified warning threshold δ is set to 10%.

[0123] Example

[0124] Taking lithium iron phosphate battery as the research object, the experimental test environment is PB5060LP28 STM32 DEMO, lithium iron phosphate battery (pack), BMS_Studio host computer, and Yishengda battery detection system.

[0125] like Figure 1 As shown, a method for estimating and correcting the SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm includes the following specific steps:

[0126] S1. Starting from the start of a certain power-on of the energy storage device, the BMS reads the SOC and SOH values ​​at the last shutdown, recorded as SOC his , SOH his .

[0127] S2. Calculate the time difference between the current startup and the last shutdown as the battery standstill time ΔT, and determine whether the battery standstill time ΔT reaches the preset battery standstill time value T; in this embodiment, take lithium iron phosphate battery as an example, and take T=2h,

[0128] If the battery rest time ΔT ≥ 2h, go to S3;

[0129] If the battery rest time ΔT is less than 2h, go to S4;

[0130] S3. Since the battery has been stationary for a long enough time, the open circuit voltage OCV is used to correct the SOC value and obtain a new SOC new , and calculate SOC his With SOC new The difference ΔSOC = |SOC his -SOC new |, assuming that the battery's SOH correction warning threshold is δ, in this embodiment, the SOH correction warning threshold δ is 10%;

[0131] If ΔSOC>10%, then SOH his If the estimation is wrong, execute step S9;

[0132] If ΔSOC≤10%, execute step S5;

[0133] S3 uses the open circuit voltage OCV to correct the SOC value, which includes the following contents:

[0134] S3.1, perform battery OCV-SOC test to obtain the relationship between the battery open circuit voltage OCV and the remaining capacity SOC under different temperatures and aging conditions;

[0135] S3.2, use MATLAB to fit the functional relationship polynomial between open circuit voltage OCV and SOC

[0136] OCV=f(SOC)=a0+a1SOC 1 +a2SOC 2 +…+a n SOC n ,

[0137] where a n is the coefficient of the nth power term;

[0138] S3.3, substitute the open circuit voltage OCV value read by the sensor after power-on into the polynomial to obtain SOC new .

[0139] The battery is affected by aging, weather, self-discharge, etc., and the open circuit voltage OCV will continue to decrease during the static period, so SOC correction is required to reduce the estimation error caused by the initial value error. However, if the SOC correction value is greater than the threshold, the threshold is set to 10% in this embodiment, then it is considered that the battery aging problem is verified, and a SOH correction is required to determine the fault.

[0140] S4. Since the battery rest time is short, the EKF algorithm is used to correct the SOC value. The measurement noise correction lasts for 1 minute to obtain the corrected SOC new , go to S5.

[0141] S4 uses the EKF algorithm to correct the SOC calculation, including the following:

[0142] S4.1, based on the polarization characteristics of lithium batteries, establish the Thevenin equivalent circuit model, such as Figure 2 As shown;

[0143] S4.2, the working equation of the above Thevenin equivalent circuit model is;

[0144]

[0145] In the above formula, OCV is the open circuit voltage, R0 is the ohmic internal resistance of the battery, C is the polarization capacitor, R1 is the polarization resistor, U1 represents the voltage across the polarization resistor R1 and the polarization capacitor C, and U s is the battery terminal voltage, i is the current of the battery, charging is positive and discharging is negative;

[0146] S4.3, discretize the above equations and combine them with the extended Kalman filter to obtain the observation equation and measurement equation as follows:

[0147]

[0148] In the observation equation and measurement equation, t is the unit sampling interval, Q maxis the current maximum capacity of the battery, which is related to SOH, Q represents the process noise error matrix, and R represents the measurement noise error matrix;

[0149] The algorithm recursively estimates as follows,

[0150] A priori estimate,

[0151]

[0152] Kalman gain update,

[0153]

[0154] The optimal estimate is updated.

[0155]

[0156] is the prior estimate of the observed state at the current moment, P k - is the prior error covariance matrix at the current moment, K k is the Kalman gain matrix, P k + is the optimal estimate at the current moment and the updated error covariance matrix, Q is the process noise error matrix, R k is the measurement noise error matrix at the current moment, U s is the voltage meter measurement value, is the estimated value of the terminal voltage at the current moment;

[0157] S4.4, conduct HPPC test, use continuous pulse sequence current to charge and discharge the battery to obtain the dynamic characteristics of the battery at different SOC values, use MATLAB to identify the battery parameters offline, and obtain R0, R1, and C;

[0158] S4.5, substitute the previous estimated SOC(k-1) and U1(k-1) to get SOC new =SOC(k).

[0159] In this embodiment, for simplicity of explanation, an offline parameter identification method is used, so S4.4 can be improved into various online parameter identification methods, and the results still fall within the protection scope of this patent.

[0160] The S4 uses the EKF algorithm to perform correction calculation on the SOC. In order to improve the correction capability of the observed value, the measurement noise error matrix R of this step is 0.0003.

[0161] S5, input the corrected SOC newAs the initial value, the SOC is estimated using the EKF algorithm and the ampere-hour integration method to obtain the SOC EKF , SOC AH , combined with fuzzy control to establish a fuzzy rule base associated with the state of charge SOC and health status SOH, dynamically adjust the EKF-AH algorithm weight ω and measurement noise error γ, and obtain the SOC accurate estimation SOC NEW ;

[0162] like Figure 3 As shown, the OCV-SOC curve of the lithium iron phosphate battery has a plateau period, and the OCV-SOC curves are different under different SOH.

[0163] Based on the actual test results, [10%, 90%] is selected as the SOC plateau period in this embodiment. The OCV changes in this interval are not obvious, resulting in a decrease in the accuracy of OCV correction and EKF estimation. At the same time, as the battery ages and the SOH decreases, the OCV of the battery in the non-plateau period will change, so it is necessary to consider whether the state of charge SOC is in the plateau period and the degree of battery aging characterized by the health status (lifetime) SOH.

[0164] S5 specifically includes the following:

[0165] The fuzzy control in S5 dynamically adjusts the EKF-AH algorithm weight ω and the measurement noise error γ, which specifically includes the following:

[0166] S5.1, Get SOC new , SOH his , using the ampere-hour integration method and EKF to calculate SOC new SOC is estimated respectively AH , SOC EKF , the discretization formula of the ampere-hour integration method is as follows,

[0167]

[0168] Q max =SOH his *Q 出厂 ,

[0169] In the above formula, t is the unit sampling interval, i is the current current of the battery, charging is positive and discharging is negative, Q max is the current maximum capacity of the battery, Q 出厂 This is the maximum capacity of the battery when it leaves the factory. As the battery is used, it loses power. max With SOH continuously decreasing;

[0170] S5.2, in the fuzzy controller, SOC new , SOH hisAs the input of the fuzzy controller, the EKF-AH algorithm weight ω and the measurement noise error γ are taken as the output of the system;

[0171] The three fuzzy subsets of SOC are defined as Bigger (B), Middler (M) and Lower (L);

[0172] The three fuzzy subsets of SOH are defined as Old (O), NOW (M) and New (N);

[0173] Similarly, the fuzzy subsets of ω and γ are defined as Big (B), Mid (M) and Low (L) respectively;

[0174] According to the membership function type and parameter settings, fuzzy inference rules are formulated through the design of fuzzy controller, as shown in Table 1;

[0175] In this embodiment, the first input variable of the fuzzy control is the state of charge SOC. The fuzzy subset is defined here as [L, M, B], which corresponds to three intervals of SOC, [0%, 10%], (10%, 90%), and [90%, 100%], namely, non-plateau period, plateau period, and non-plateau period.

[0176] The second variable is the health status (lifespan) SOH, where the fuzzy subset is defined as [O, M, N], corresponding to three intervals of SOH, [70%, 85%], (85%, 95%), and [95%, 100%], representing the battery aging degree of old, medium, and new.

[0177] Usually, batteries with SOH less than 70% are recycled, so 70% is taken as the lower limit, and the fuzzy domain and interval division can be adjusted according to actual conditions.

[0178] By analogy, the classification of ω and γ is the same. This paragraph is only an example. The specific classification requires actual measurements on batteries of different specifications.

[0179] Table 1 Fuzzy rule library

[0180] ω and γ SOH=N SOH=M SOH=O SOC=B L M M SOC=M B B B SOC=L L M B

[0181] S5.3, through the design of fuzzy controller, combined with the state of charge SOC interval and the size of the health state SOH, the fuzzy controller is used to realize the dynamic adaptive adjustment of the EKF-AH algorithm weight ω and the measurement noise error γ. Finally, the adjusted measurement noise error γ is transferred to the measurement noise error matrix R in the Kalman filter gain coefficient, and the latest EKF-AH algorithm weight ω is used to calculate the SOC accurate estimation SOC NEW , see the formula as follows,

[0182] SOC NEW (k) = ωSOCAH (k)+(1-ω)SOC EKF (k).

[0183] The larger the ω is, the greater the weight of the AH algorithm is, indicating that the ampere-hour integration method is more reliable. According to Table 1, when the battery is in the plateau period, the selection of ω and γ is Big (B), because in this case the OCV-SOC curve is less nonlinear, and the algorithm trusts the ampere-hour integration method more;

[0184] When the battery ages and the SOH decreases, the selection of ω and γ will become larger, changing from L to M, because the OCV-SOC curve in this case is different from that of the factory battery, resulting in inaccurate OCV estimation in the Kalman filter part, and the algorithm trusts the ampere-hour integration method more;

[0185] In this embodiment, since the test battery is in good health, SOH=N, when it is in the plateau period, that is, SOC=M, ω(B)=0.7, γ(B)=0.03; when it is in the non-plateau period, that is, SOC=L or B, ω(L)=0.45, γ(L)=0.0003.

[0186] S6, calculate the estimated difference between the EKF algorithm and the ampere-hour integration method e(k) = |SOC EKF -SOC AH |, establish TS fuzzy control rules, set different warning thresholds α according to whether the SOC is in the plateau period,

[0187] When 10%<SOC NEW <90%, that is, SOC is in the plateau period, then the warning threshold α is 2%;

[0188] When SOC NEW ≤10%, or SOC NEW ≥90%, that is, SOC is in the non-plateau period, and the warning threshold α is 5%;

[0189] S7, sum up the differences of the previous n estimates to get If the sum of the estimated differences e(k) is greater than the corresponding warning threshold α, go to step S9, otherwise go to step S8;

[0190] S8, BMS updates the current SOC of the energy storage device and accurately estimates the SOC NEW Assign value to SOC new , go to step S5;

[0191] S9, BMS recognized SOH his The estimate was wrong and a SOH correction warning was issued.

[0192] Before algorithm fusion, there must be estimation errors between the EKF algorithm and the ampere-hour integration method, and the error gaps between the two algorithms are different in different SOC ranges.

[0193] Since the EKF algorithm in the plateau period will trust the ampere-hour integration method more, a larger measurement noise error γ is selected, and the algorithm error should be smaller in theory, so a smaller warning threshold α=2% is selected.

[0194] Similarly, the slope of the SOC-OCV curve in the non-plateau period is relatively large, and the EKF algorithm requires that a smaller measurement noise error γ be selected. Theoretically, the algorithm error should be relatively large, so the warning threshold α=5% is selected.

[0195] Since both algorithms rely on the ampere-hour integration method to varying degrees, and the ampere-hour integration method is affected by SOH, if the error between the two algorithms is greater than the threshold, it means that the currently displayed battery health SOH result has errors and needs to be re-estimated and tested.

[0196] like Figure 4 , 5 As shown in the figure, this embodiment performs a charging test, respectively, using the single EKF algorithm and the EKF-AH algorithm to estimate SOC, and the latter uses dynamic parameter adjustment. The figure contains the estimation error, SOC estimation result, and terminal voltage estimation result. The more accurate the estimation result, the more the image curve of the actual value and the estimated value overlap. Figure 4 It can be seen that the estimation error of the single EKF algorithm is large, so the actual value and the estimated value do not overlap; Figure 5 It can be seen that the EKF-AH algorithm has good robustness, the curves are highly overlapped, and it is more accurate.

[0197] The results show that the error of the single EKF algorithm is stable at 3%, while the error of the fuzzy EKF-AH algorithm is stable at around 0.2%.

[0198] In summary, the EKF-AH algorithm combining the extended Kalman filter and the ampere-hour integration is used to estimate the SOC of the lithium iron phosphate battery, which eliminates the initial value error and the process cumulative error of the ampere-hour integration method, and solves the problem of the inaccuracy of the EKF in the plateau period; a fuzzy rule base associated with the current state of charge SOC and health status (lifespan) SOH is established, and the weights of the EKF-AH algorithm and the measurement noise error γ are dynamically adjusted to improve the estimation accuracy of the entire life cycle of the lithium iron phosphate battery; different thresholds are set according to whether the SOC is in the plateau period, and the cumulative estimation errors and threshold sizes of the two algorithms are compared to determine whether the SOH estimation is incorrect, thereby assisting in correcting the SOH.

[0199] The above is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any technician in the relevant technical field, without departing from the scope of the technical solution of the present invention, makes any form of equivalent replacement or modification to the technical solution and technical content disclosed in the present invention, which does not depart from the content of the technical solution of the present invention and still falls within the protection scope of the present invention.

Claims

1. A method for estimating and correcting SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm, characterized in that: The following steps are included: S1, starting from the start of a certain power-on of the energy storage device, the BMS reads the SOC and SOH values ​​at the last shutdown, recorded as SOC his , SOH his ; S2, calculating the time difference between the current startup and the last shutdown as the battery rest time ΔT, and determining whether the battery rest time ΔT reaches a preset battery rest time value T; If the battery rest time ΔT≥T, go to step S3; If the battery rest time ΔT<T, go to step S4; S3, use the open circuit voltage OCV to correct the SOC value and get a new SOC new , and calculate SOC his With SOC new The difference ΔSOC = |SOC his -SOC new |, let the battery SOH correction warning threshold be δ; If ΔSOC>δ, determine SOH his If the estimation is wrong, execute step S9; If ΔSOC≤δ, execute step S5; S4, use the EKF algorithm to correct the SOC, the correction lasts for 1 minute, and the corrected SOC is obtained new , go to step S5; S5, input SOC new As the initial value, the SOC of the next state is estimated using the EKF algorithm and the ampere-hour integration method to obtain the SOC EKF , SOC AH , combined with fuzzy control to establish a fuzzy rule base associated with the state of charge SOC and health status SOH, dynamically adjust the EKF-AH algorithm weight ω and measurement noise error γ, and obtain the SOC accurate estimation SOC NEW ; S6, calculate the estimated difference between the EKF algorithm and the ampere-hour integration method e(k) = |SOC EKF -SOC AH |, establish TS fuzzy control rules, set different warning thresholds α according to whether the SOC is in the plateau period, When 10%<SOC NEW <90%, that is, SOC is in the plateau period, then the warning threshold α is 2%; When SOC NEW ≤10%, or SOC NEW ≥90%, that is, SOC is in the non-plateau period, and the warning threshold α is 5%; S7, sum up the differences of the previous n estimates to get If the sum of the estimated differences e(k) is greater than the corresponding warning threshold α, go to step S9, otherwise go to step S8; S8, BMS updates the current SOC of the energy storage device and accurately estimates the SOC NEW Assign value to SOC new , go to step S5; S9, BMS determines SOH his The estimate was wrong and a SOH correction warning was issued.

2. According to claim 1, a method for estimating and correcting SOC of a lithium iron phosphate battery based on a fuzzy EKF-AH algorithm is characterized in that: The S3 uses the open circuit voltage OCV to perform correction calculation on the SOC value, specifically including the following contents: S3.1, perform battery OCV-SOC test to obtain the relationship between the battery open circuit voltage OCV and the remaining capacity SOC under different temperatures and aging conditions; S3.2, use MATLAB to fit the functional relationship polynomial between open circuit voltage OCV and SOC OCV=f(SOC)=a0+a1SOC 1 +a2SOC 2 +…+a n SOCIETY n , where a n is the coefficient of the n-th power term; S3.3, substitute the open circuit voltage OCV value read by the sensor after power-on into the polynomial to obtain SOC new .

3. The method for estimating and correcting SOC of a lithium iron phosphate battery based on fuzzy EKF-AH algorithm according to claim 1, characterized in that: The S4 uses the EKF algorithm to perform correction calculation on the SOC, which specifically includes the following contents: S4.1, establish the Thevenin equivalent circuit model based on the polarization characteristics of lithium batteries; S4.2, the working equation of the above Thevenin equivalent circuit model is, In the above formula, OCV is the open circuit voltage, R0 is the ohmic internal resistance of the battery, C is the polarization capacitor, R1 is the polarization resistor, U1 represents the voltage across the polarization resistor R1 and the polarization capacitor C, and U s is the battery terminal voltage, i is the current of the battery, charging is positive and discharging is negative; S4.3, discretize the above equations and combine them with the extended Kalman filter to obtain the observation equation and measurement equation as follows: In the observation equation and measurement equation, t is the unit sampling interval, Q max is the current maximum capacity of the battery, which is related to SOH, Q represents the process noise error matrix, and R represents the measurement noise error matrix; The algorithm recursively estimates as follows, A priori estimate, Kalman gain update, The optimal estimate is updated. is the prior estimate of the observed state at the current moment, P k - is the prior error covariance matrix at the current moment, K k is the Kalman gain matrix, P k + is the optimal estimate at the current moment and the updated error covariance matrix, Q is the process noise error matrix, R k is the measurement noise error matrix at the current moment, U s is the voltage meter measurement value, is the estimated value of the terminal voltage at the current moment; S4.4, conduct HPPC test, use continuous pulse sequence current to charge and discharge the battery to obtain the dynamic characteristics of the battery at different SOC values, use MATLAB to identify the battery parameters offline, and obtain R0, R1, and C; S4.5, substitute the previous estimated SOC(k-1) and U1(k-1) to get SOC new =SOC(k).

4. The method for estimating and correcting SOC of a lithium iron phosphate battery based on fuzzy EKF-AH algorithm according to claim 3, characterized in that: In the S4, the EKF algorithm is used to correct the SOC calculation, and its measurement noise error matrix R=0.0003.

5. The method for estimating and correcting SOC of a lithium iron phosphate battery based on fuzzy EKF-AH algorithm according to claim 1, characterized in that: The fuzzy control in S5 dynamically adjusts the EKF-AH algorithm weight ω and the measurement noise error γ, specifically including the following contents: S5.1, Get SOC new , SOH his , using the ampere-hour integration method and EKF to calculate SOC new SOC is estimated respectively AH , SOC EKF , the discretization formula of the ampere-hour integration method is as follows, Q max =SOH his *Q 出厂 , In the above formula, t is the unit sampling interval, i is the current current of the battery, charging is positive and discharging is negative, Q max is the current maximum capacity of the battery, Q 出厂 This is the maximum capacity of the battery when it leaves the factory. As the battery is used, it loses power. max With SOH continuously decreasing; S5.2, in the fuzzy controller, SOC new , SOH his As the input of the fuzzy controller, the EKF-AH algorithm weight ω and the measurement noise error γ are taken as the output of the system; The three fuzzy subsets of SOC are defined as Bigger (B), Middler (M) and Lower (L); The three fuzzy subsets of SOH are defined as Old (O), NOW (M) and New (N); Similarly, the fuzzy subsets of ω and γ are defined as Big (B), Mid (M) and Low (L) respectively; According to the membership function type and parameter settings, fuzzy inference rules are formulated through the design of fuzzy controller; S5.3, through the design of fuzzy controller, combined with the state of charge SOC interval and the size of the health state SOH, the fuzzy controller is used to realize the dynamic adaptive adjustment of the EKF-AH algorithm weight ω and the measurement noise error γ. Finally, the adjusted measurement noise error γ is transferred to the measurement noise error matrix R in the Kalman filter gain coefficient, and the latest EKF-AH algorithm weight ω is used to calculate the SOC accurate estimation SOC NEW , see the formula as follows, SOC NEW (k)=ωSOC AH (k)+(1-ω)SOC EKF (k)。 6. The method for estimating and correcting SOC of a lithium iron phosphate battery based on fuzzy EKF-AH algorithm according to claim 1, characterized in that: The modified warning threshold δ is set to 10%.

Citation Information

Patent Citations

  • Method for battery SOC estimation based on small model error criterion expanding Kalman filter

    CN103941195A

  • Evaluation method of state of charge of vehicle lithium ion power battery

    CN106443459A

  • Self-adaptive fuzzy Kalman estimation SOC algorithm

    CN111985154A

  • Lithium iron phosphate battery SOC estimation method based on ampere-hour integral reference compensation

    CN117074980A

  • Online state of charge (SOC) estimation system for 48v mild hybrid vehicle lithium ion battery

    WO2021035500A1

Cited By

  • Battery SOC estimation method and system and vehicle

    CN119959796A

  • SOC auxiliary correction method, system and equipment based on dynamic voltage interval band

    CN120610175A

  • Fuzzy EKF-ah algorithm-based SOC estimation and correction method for lithium iron phosphate battery

    WO2025251583A1