Battery SOC estimation method and device
By using the extended Kalman filter algorithm and optimized state transition equation in lithium battery SOC estimation, combined with the second-order RC battery model, the problem of low accuracy of lithium battery SOC estimation in the existing technology is solved, and higher estimation accuracy and adaptability are achieved. sex.
Patent Information
- Application Number
- CN202410714262.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-08
AI Technical Summary
Existing lithium battery SOC estimation methods have low accuracy when considering battery aging and environmental factors, require a large amount of training data and complex computing resources, and are difficult to adapt to dynamic changes in batteries.
The extended Kalman filter algorithm (EKF) is used combined with the optimized state transition equation, taking into account the battery temperature and charge and discharge efficiency, and accurately estimates the SOC through the second-order RC battery model, improving the model parameter accuracy and estimation accuracy.
It improves the precision and accuracy of lithium battery SOC estimation, reduces the dependence on complex models and training data, and adapts to the dynamic changes of batteries under different working conditions.
Smart Images

Figure CN118747261A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of battery power estimation, and in particular to a battery SOC (State Of Charge) estimation method and device. Background Art
[0002] As a green energy source, lithium batteries have the advantages of high energy density, long life, fast charging, environmental friendliness and high safety. These characteristics make lithium batteries widely used in electric vehicles, mobile devices and other fields, and become an important energy choice for future sustainable development.
[0003] Due to the fact that lithium battery SOC cannot be directly measured, as well as factors that affect lithium battery SOC such as ambient temperature and load changes, how to accurately estimate lithium battery SOC has always been an important research direction for industry insiders. It is very important for battery life, performance and user experience.
[0004] Traditional lithium battery SOC estimation methods include the ampere-hour integration method and the open circuit voltage method. The SOC estimation result of lithium batteries can be obtained by integrating the current or directly measuring the voltage, which has the advantages of being simple and easy to use. However, these methods do not take into account the effects of battery aging such as battery internal resistance and capacity attenuation, and are greatly affected by factors such as the working state and temperature of the battery, resulting in low estimation accuracy.
[0005] The existing lithium battery SOC estimation methods include neural network method and Kalman filter method, both of which have high SOC estimation accuracy. The former can adapt to various battery types and working conditions, but its disadvantages are also obvious. It requires a large amount of training data and computing resources, and the training and optimization of the model are relatively complicated; the latter can consider the internal resistance of the battery and has high estimation accuracy, but it requires accurate battery models and model parameters. In order to meet the requirements of computing speed, most existing technologies use simplified models and fixed model parameters. Since the battery system is a highly nonlinear system, its parameters such as capacity, internal resistance, charge and discharge efficiency will change with changes in temperature and charge and discharge current, which causes a mismatch between the battery model and the implementation system, reduces the model accuracy, and thus leads to the problem of increased SOC estimation error. Summary of the invention
[0006] The embodiments of the present invention provide a battery SOC estimation method and device to improve the accuracy of battery model parameters, thereby improving the battery SOC estimation accuracy.
[0007] In one aspect, an embodiment of the present invention provides a battery SOC estimation method, the method comprising:
[0008] Determine a state quantity and an initial value of the state quantity according to a battery model, wherein the state quantity includes a battery SOC;
[0009] Determine an optimized state transfer equation, wherein the optimized state transfer equation is: Among them, SOC t , SOC t+Δt They represent the battery SOC values at time t and time t+Δt, respectively, and Q t , Q t+Δt They represent the discharge capacity at time t and time t+Δt respectively, ΔQ represents the discharge capacity difference function based on the real-time current and temperature at the two moments, I t represents the battery load current at time t;
[0010] The battery SOC value is calculated using the EKF algorithm and the optimized state transfer equation.
[0011] Optionally, the battery model is a first-order RC battery model or a second-order RC battery model.
[0012] Optionally, the calculating the battery SOC value by using the EKF algorithm and the optimized state transfer equation includes:
[0013] Initialize the system noise covariance matrix ω, the measurement noise covariance matrix σ, and the state quantity covariance matrix Р;
[0014] During the battery discharge process, the EKF algorithm is used to perform iterative calculation based on the optimized state transfer equation to obtain the battery SOC value.
[0015] Optionally, the using an EKF algorithm to perform iterative calculation based on the optimized state transfer equation to obtain a battery SOC value includes:
[0016] Calculate the estimated value of the battery terminal voltage according to the optimized state transfer equation;
[0017] Calculate the difference between the estimated value and the measured value of the battery terminal voltage;
[0018] According to the state transfer matrix, calculate the prior state quantity covariance matrix at time t+Δt;
[0019] Calculate the Kalman gain K at time t+Δt based on the observation matrix, the prior state quantity covariance matrix, and the measurement noise covariance matrix;
[0020] According to the Kalman gain K at time t+Δt, the posterior estimate of the state quantity is calculated to obtain the battery SOC value.
[0021] Optionally, calculating the estimated value of the battery terminal voltage according to the optimized state transfer equation includes:
[0022] According to the optimized state transfer equation and the prior state quantity estimation equation, the a posteriori estimation value of the state quantity at time t is calculated;
[0023] According to the a posteriori estimated value of the state quantity at time t and the battery terminal voltage estimation equation, the estimated value of the battery terminal voltage is calculated.
[0024] Optionally, the iterative calculation based on the optimized state transfer equation using the EKF algorithm further includes: updating the state quantity covariance matrix Р according to the Kalman gain K at time t+Δt.
[0025] On the other hand, an embodiment of the present invention further provides a battery SOC estimation device, the device comprising:
[0026] A parameter determination module, used to determine a state quantity and an initial value of the state quantity according to a battery model, wherein the state quantity includes a battery SOC;
[0027] The state transfer equation determination module is used to determine the optimized state transfer equation, and the optimized state transfer equation is: Among them, SOC t , SOC t+Δt They represent the battery SOC values at time t and time t+Δt, respectively, and Q t , Q t+Δt They represent the discharge capacity at time t and time t+Δt respectively, ΔQ represents the discharge capacity difference function based on the real-time current and temperature at the two moments, I t represents the battery load current at time t;
[0028] The calculation module is used to calculate the battery SOC value using the EKF algorithm and the optimized state transfer equation.
[0029] Optionally, the calculating the battery SOC value by using the EKF algorithm and the optimized state transfer equation includes:
[0030] Initialization unit, used to initialize the system noise covariance matrix ω, the measurement noise covariance matrix σ, and the state quantity covariance matrix Р;
[0031] The iterative calculation unit is used to perform iterative calculation based on the optimized state transfer equation using the EKF algorithm during the battery discharge process to obtain the battery SOC value.
[0032] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the battery SOC estimation method described above are executed.
[0033] On the other hand, an embodiment of the present invention further provides a battery SOC estimation device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and the processor executes the steps of the battery SOC estimation method described above when running the computer program.
[0034] The battery SOC estimation method and device provided in the embodiment of the present invention use the EKF algorithm to estimate the battery SOC, and fully consider the influence of battery temperature and charge and discharge efficiency on battery characteristics, and optimize the state transfer equation used in the EKF algorithm so that the battery model parameters can more accurately characterize the dynamic characteristics of the battery, thereby effectively improving the estimation accuracy of the SOC. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram of the second-order RC equivalent circuit model of the battery;
[0036] Figure 2 is a flow chart of a battery SOC estimation method provided by an embodiment of the present invention;
[0037] Figure 3 It is a flowchart of iterative calculation based on optimized state transfer equation using EKF algorithm;
[0038] Figure 4 It is a battery parameter fitting curve when the battery SOC is 95%;
[0039] Figure 5 It is a schematic diagram of battery discharge data recorded in the comparative experiment;
[0040] Figure 6 is based on Figure 5 The diagram shown is a comparison diagram of the battery discharge data using the method of the present invention and the existing standard EKF algorithm to estimate the battery SOC.
[0041] Figure 7 It is a structural schematic diagram of a battery SOC estimation device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0043] When current flows through the battery, internal resistance is generated. The size of the internal resistance is determined by factors such as the battery's electrode material, electrochemical reaction, and electrolyte concentration. It is generally divided into ohmic polarization internal resistance, electrochemical polarization internal resistance, and concentration polarization internal resistance. The size of the battery internal resistance directly affects the battery's output voltage, current, available capacity, and other battery parameters.
[0044] To estimate the battery SOC using the EKF (Extend Kalman Filter) algorithm, the battery model must first be determined. To balance the accuracy of the battery model with the complexity of the actual application, the following is usually used: Figure 1 The second-order RC equivalent circuit model shown. Where I represents the battery load current, Ubat represents the battery terminal voltage, Uocv represents the battery voltage, R0 represents the ohmic polarization internal resistance, which represents the impedance encountered when the current flows through the positive and negative electrode current collectors, electrolytes, and diaphragms, and obeys Ohm's law; C1, R1 resistor-capacitor circuit represents electrochemical polarization internal resistance, which represents the impedance encountered when the current flows through the positive and negative electrodes of the battery where chemical reactions occur, R1 represents the electromotive force required to maintain the chemical reactions of the positive and negative electrodes of the battery, and C1 represents the influence of the chemical reactions of the positive and negative electrodes of the battery on the response speed and stability of the battery terminal voltage; C2, R2 resistor-capacitor circuit represents concentration polarization internal resistance, which represents the impedance caused by the consumption of ions in the electrolyte when the chemical reactions occur at the positive and negative electrodes of the battery during operation, resulting in uneven electrolyte concentration, R2 represents the electromotive force required for the electrolyte ions to detach and embed in the pores of the positive and negative electrode materials, and C2 represents the influence of the diffusion of ions in the electrolyte on the response speed and stability of the battery terminal voltage. U0, U1, and U2 represent the voltage drops caused by the ohmic polarization internal resistance, electrochemical polarization internal resistance, and concentration polarization internal resistance respectively when current flows through the battery.
[0045] The values of the parameters Uocv, R0, R1, C1, R2, and C2 in the second-order RC equivalent circuit model are obtained by the following fitting formula (1) using the least squares fitting method:
[0046]
[0047] The fitting sample data can be obtained through a standard HPPC (Hybrid Pulse Power Characteristic) experiment, and examples of the obtained parameters are shown in Table 1.
[0048] Table 1
[0049]
[0050] In the standard HPPC experiment, the battery is first pulse-discharged, i.e., instantaneous high-current discharge, to simulate the rapid startup of the system. Then, constant-current discharge is performed to simulate the long-term operation of the system. Through the combination of these two discharge modes, the dynamic characteristics of the battery can be fully evaluated to understand the performance of the battery under different conditions.
[0051] according to Figure 1 The battery model shown in the figure has the known values of SOC, U1, U2, and I at time t, expressed as SOC t 、U1 t 、U2t ,I t After Δt, the values of SOC, U1, and U2 are obtained by the following state transfer equation:
[0052]
[0053] Wherein, η is the coulomb efficiency coefficient, Q is the rated capacity of the battery, and the values of R1, C1, R2, and C2 can be obtained by looking up the parameter table obtained by the HPPC experiment (as shown in Table 1), and their values are different under different SOC conditions.
[0054] The battery SOC cannot be measured directly and there is no corresponding characterization circuit in the battery model. The standard EKF algorithm estimates the battery SOC using the Coulomb integration method, which calculates the SOC value at time t+Δt using the SOC at the previous time t and the rated battery capacity Q.
[0055] Since different working conditions have different effects on battery capacity, as shown in Table 2, the actual discharge capacity of a 4350mAh rated capacity battery under different ambient temperatures and discharge rates.
[0056] Table 2
[0057]
[0058] The Coulomb integration method ignores the impact of different operating conditions on battery capacity as shown in Table 2, resulting in an error in the calculated SOC at time t+Δt, which will also affect the calculation accuracy of U1 and U2. This error will gradually accumulate with the iteration process of the EKF algorithm, resulting in a decrease in the accuracy of the battery model, which will directly affect the estimation accuracy of the SOC.
[0059] When the same battery has the same charge state, its discharge capacity and SOC value will be different due to different working conditions. Therefore, the SOC values under different working conditions need to be converted to each other.
[0060] Taking the discharge rate as an example, assuming that the discharge capacities at 0.1C and 0.2C discharge rates are Q1 and Q2 respectively, and the difference between the two discharge capacities is ΔQ, the remaining capacity of the battery at a discharge rate of 0.1C is: SOC1×Q1; the remaining capacity of the battery at a discharge rate of 0.2C is: SOC2×Q2.
[0061] Since the remaining capacity of the battery remains the same when the discharge rate changes, the conversion relationship between SOC1 and SOC2 can be obtained as shown in formula (2).
[0062]
[0063] Similarly, under temperature change conditions, the above SOC conversion relationship is also applicable.
[0064] Based on the above principles and combined with the standard EKF algorithm, the above SOC state transfer equation is optimized, namely:
[0065]
[0066] Among them, Q t , Q t+Δt They represent the discharge capacity at time t and time t+Δt respectively, and ΔQ represents the discharge capacity difference function based on the real-time current and temperature at the two times. Under constant working conditions, ΔQ = 0, that is, Q t+Δt =Q t .
[0067] Accordingly, an embodiment of the present invention provides a battery SOC estimation method and device, which optimizes the SOC state transfer equation and improves the accuracy of battery model parameters through improvement based on the standard EKF algorithm, thereby improving the battery SOC estimation accuracy.
[0068] like Figure 2 FIG. 1 is a flow chart of a battery SOC estimation method provided by an embodiment of the present invention, comprising the following steps:
[0069] Step 201, determining a state quantity and an initial value of the state quantity according to a battery model, wherein the state quantity includes a battery SOC.
[0070] The battery model may be determined according to accuracy requirements, and may be a first-order or second-order RC battery model, which is not limited in this embodiment of the present invention.
[0071] Depending on the battery model, the number and specific parameters of the state variables may vary. Figure 1 Taking the second-order RC battery model shown as an example, the state quantity includes the above-mentioned U1 and U2 in addition to the battery SOC, wherein U1 represents the voltage drop caused by the electrochemical polarization internal resistance when current flows through the battery, and U2 represents the voltage drop caused by the concentration polarization internal resistance when current flows through the battery.
[0072] Correspondingly, the state quantity can be recorded as X:
[0073]
[0074] When the battery is fully charged and fully at rest, SOC=100, U1=0, and U2=0.
[0075] Step 202: determine the optimized state transfer equation.
[0076] The optimized state transfer equation is the above formula (3), that is:
[0077]
[0078] Among them, SOC t , SOC t+Δt They represent the battery SOC values at time t and time t+Δt, respectively, and Q t , Q t+Δt I represents the discharge capacity at time t and time t+Δt respectively, ΔQ represents the discharge capacity difference function based on the real-time current and temperature at the two times, that is, the discharge capacity at different times is related to the current and temperature. For example, in a limiting embodiment, the discharge capacity difference can be obtained by looking up a table; I t Represents the battery load current at time t, which is the measured value.
[0079] Step 203: Calculate the battery SOC value using the EKF algorithm and the optimized state transfer equation.
[0080] Specifically, we first need to initialize the system noise covariance matrix ω, the measurement noise covariance matrix σ, and the state quantity covariance matrix Р.
[0081] Among them, the system noise represents the deviation between the battery model and the actual battery, and the measurement noise represents the deviation between the measured values of current, voltage, etc. obtained by the sensor and the actual values. Both conform to the normal distribution.
[0082] Among them, the state quantity covariance matrix P represents the relationship between the state quantity elements, and the system noise covariance matrix ω is needed to calculate the state quantity covariance matrix P.
[0083] The initial value of the above covariance matrix can be determined according to the accuracy requirements, for example, it can be set as follows:
[0084] σ=[0.01]
[0085] Then, during the battery discharge process, the EKF algorithm is used to perform iterative calculations based on the optimized state transfer equation and the above-mentioned matrices to obtain the battery SOC value.
[0086] Reference Figure 3 , Figure 3 A flowchart of iterative calculation of the state transfer equation optimized by the EKF algorithm in an embodiment of the present invention is shown, including the following steps:
[0087] Step 301, calculating the estimated value of the battery terminal voltage according to the optimized state transfer equation.
[0088] Specifically, the a posteriori estimate of the state quantity at time t can be calculated based on the optimized state transfer equation and the priori state quantity estimation equation; and then the battery terminal voltage estimate can be calculated based on the a posteriori estimate of the state quantity at time t and the battery terminal voltage estimation equation.
[0089] For ease of understanding, the process of calculating the estimated value of the battery terminal voltage in the existing standard EKF algorithm for estimating the battery SOC is first described below.
[0090] In the existing standard EKF algorithm for estimating battery SOC, the prior state quantity estimation equation is shown in the following formula (4):
[0091]
[0092] Where, X t+Δt represents the state quantity at time t+Δt, Α represents the state transfer matrix, represents the posterior estimated value of the state quantity at time t, Β is the input control matrix, I t Represents the actual measured value of the battery load current, which can be obtained by the current sensor. Among them:
[0093]
[0094] According to the above formula (4), the posterior estimate of the state quantity at time t can be obtained:
[0095] The battery terminal voltage estimation equation is shown in the following formula (5):
[0096]
[0097] Where R0 represents the ohmic polarization internal resistance, I t represents the battery load current at time t;
[0098] H represents the observation matrix:
[0099]
[0100] Wherein, Uocv represents the battery voltage.
[0101] According to the above formula (5), the estimated value of the battery terminal voltage Ubat can be obtained.
[0102] In the embodiment of the present invention, the a posteriori state estimation value SOC at time t needs to be converted according to the real-time working condition, that is, the a posteriori estimation value of the state quantity at time t and the battery terminal voltage estimation value are calculated based on the above-mentioned optimized state transfer equation.
[0103] In order to distinguish it from the prior art, the posterior estimate of the state quantity at time t is expressed as Then the prior state quantity estimation equation can be expressed as shown in the following formula (6):
[0104]
[0105] in,
[0106] Similarly, the terminal voltage value estimation equation can be expressed as shown in the following formula (7):
[0107]
[0108] The above formula (6) is used to calculate the a posteriori estimate of the state quantity at time t, and then the above formula (7) is used to calculate the estimated value of the battery terminal voltage.
[0109] Step 302, calculating the difference between the estimated value and the measured value of the battery terminal voltage.
[0110] The difference between the estimated value and the measured value of the battery terminal voltage can be expressed as:
[0111] ΔV=Ubat-V t (8)
[0112] Among them, V t is the actual measured value of voltage, which can be obtained through a voltage sensor.
[0113] Step 303: Calculate the prior state quantity covariance matrix at time t+Δt according to the state transfer matrix.
[0114] The specific calculation formula is as follows:
[0115]
[0116] in, represents the posterior estimate of the state quantity covariance matrix Р at time t, Α T Represents the transpose of the state transition matrix.
[0117] Step 304, calculating the Kalman gain K at time t+Δt according to the observation matrix, the prior state quantity covariance matrix, and the measurement noise covariance matrix.
[0118] The calculation formula is shown in the following formula (10):
[0119] K t+Δt =P t+Δt ×H t T ×(H t × t+Δt ×H t T +σ) -1 (10)
[0120] Step 305: Calculate the a posteriori estimate of the state quantity according to the Kalman gain K at time t+Δt to obtain the battery SOC value.
[0121] The calculation formula of the posterior estimated value of the state quantity is shown in the following formula (11):
[0122]
[0123] According to the above formula (11), the a posteriori estimated value of each state quantity can be calculated, thereby obtaining the battery SOC value.
[0124] It should be noted that the above steps 301 to 305 are just one EKF algorithm iteration calculation process. If multiple iterations are required, the following steps may be further included:
[0125] Step 306: Update the state quantity covariance matrix Р according to the Kalman gain K at time t+Δt.
[0126] The update calculation formula of the state quantity covariance matrix Р is as follows:
[0127]
[0128] During the battery discharge process, the above steps 301 to 306 may be iterated cyclically to obtain an accurate battery SOC estimation value at each moment.
[0129] The battery SOC estimation method provided in the embodiment of the present invention estimates the battery SOC by using the EKF algorithm, and fully considers the influence of battery temperature and charge and discharge efficiency on battery characteristics (that is, when the current is constant, the lower the battery temperature, the lower the discharge capacity; when the temperature is constant, the greater the discharge current, the lower the discharge capacity). By optimizing the state transfer equation used in the EKF algorithm, the battery model parameters can more accurately characterize the dynamic characteristics of the battery, thereby effectively improving the estimation accuracy of the SOC.
[0130] Referring to the battery discharge capacity information at different ambient temperatures and discharge rates shown in Table 2, the difference in accuracy between the battery SOC estimated by the method of the present invention and the existing standard EKF algorithm is illustrated below.
[0131] Example 1:
[0132] Under the condition of changing working conditions, take the 0.1C and 0.2C discharge rates at 25 degrees as an example, assuming that the current battery SOC1 value is 80% and the load current is 0.1C. Due to the change in working conditions, the load current changes to 0.2C and the discharge lasts for 10S.
[0133] According to the SOC state transfer equation in the existing standard EKF algorithm, that is, the above formula (2), the battery SOC2 value is calculated as follows:
[0134]
[0135] It can be seen from Table 2 that under the conditions of 0.1C and 0.2C discharge rates, the battery discharge capacity is different, and SOC1 cannot be directly used equivalently when the load current changes. Therefore, there must be errors in the SOC2 calculated using the SOC state transfer equation of the standard EFK algorithm.
[0136] Using the optimized SOC state transfer equation provided by the method of the present invention, that is, the above formula (3) and the battery discharge capacity information under the load current conditions of 0.1C and 0.2C shown in Table 2, when the load current changes from 0.1C to 0.2C, the SOC2 calculation value is as follows:
[0137] ΔQ=Q1-Q2=4536-4430=106
[0138] 0.8×Q1=SOC2×Q2+ΔQ
[0139]
[0140] After the load current changes to 0.2C, the discharge continues at 0.2C for 10S, and the calculated SOC2 value is as follows:
[0141]
[0142] It should be noted that the above SOC values are all expressed in percentage.
[0143] The values of each discharge capacity (i.e., Q1, Q2) in the above formula can be calculated according to the corresponding discharge capacity under different temperature T and discharge rate I conditions, for example, according to the following formula:
[0144]
[0145] Where I represents the discharge rate, for example, 0.1C discharge rate I=0.1; T represents the battery temperature.
[0146] It should be noted that under different temperature T and discharge rate I conditions, the coefficients of the various parameters in the discharge capacity Q calculation formula are different.
[0147] Example 2:
[0148] Under constant operating conditions, the current battery SOC1 value is 80%, the load current is 0.1C, and the discharge is continuous for 10S.
[0149] According to the SOC state transfer equation in the existing standard EKF algorithm, the value of SOC2 is calculated as follows:
[0150]
[0151] Using the optimized SOC state transfer equation provided by the method of the present invention, the value of SOC2 is calculated as follows:
[0152]
[0153] By comparing the SOC values calculated by the above two different methods, it can be seen that: under the condition of changing operating conditions, the SOC accuracy calculated by using the optimized SOC state transfer equation provided by the method of the present invention is about 0.47% higher than that of the standard EKF algorithm; under the condition of constant operating conditions, the SOC accuracy calculated by using the optimized SOC state transfer equation provided by the scheme of the present invention is equal to that of the standard EKF algorithm.
[0154] Similarly, under the conditions of temperature of -10, 0, 45 degrees, and load current of 0.2C, 0.5C, 1C, and operating condition changes, the SOC estimation results of the method of the present invention and the standard EKF algorithm under the operating condition change conditions are compared as shown in Table 3 below.
[0155] Table 3
[0156]
[0157] It can be seen from the comparison results shown in Table 3 that, considering the variable working conditions in actual applications and the characteristics of the EFK algorithm that requires cyclic iterations, the SOC state transfer equation provided by the present invention can effectively improve the battery SOC estimation accuracy; moreover, compared with the existing EKF battery SOC estimation method, there is no need to increase the computational complexity, additional complex models, and a large number of training samples, and the battery SOC estimated by the method of the present invention has a higher estimation accuracy.
[0158] In order to further verify the accuracy and reliability of the method of the present invention, the following experiment was also conducted: a lithium-ion battery with a nominal voltage of 3.91V and a rated capacity of 4850mAh was used to conduct a comparative experiment at a room temperature of 25°C.
[0159] Refer to the battery specification, use the standard charging method to fully charge the battery at 25℃ room temperature and let it stand for 30 minutes. Then discharge the battery to the cut-off voltage at a discharge rate of 0.1C and let it stand for 2h. Repeat the above steps 3 times, record the battery discharge capacity each time, take the average of the 3 battery discharge capacities, and record it as the battery capacity at a discharge rate of 0.1C. The battery capacity at discharge rates of 0.2C, 0.5C, and 1C is obtained by the same method. The discharge capacity data of the battery at each discharge rate is recorded as shown in Table 4 below.
[0160] Table 4
[0161]
[0162] The battery was fully charged in a standard charging method and left at room temperature for 2 hours to fully eliminate the impact of battery hysteresis on the terminal voltage. According to the standard HPPC battery test method, the discharge rate was set to 0.1C, and the battery was discharged, left to stand, and charged at intervals of 10S-40S-10S, and the battery terminal voltage data was recorded.
[0163] According to the battery equivalent model and battery parameter fitting method in the method of the present invention, the discharge voltage data is used to fit the battery parameters according to the battery second-order RC equivalent circuit model using the above fitting formula (1), and the battery parameter fitting curve obtained when the battery SOC is 95% is as follows: Figure 4 shown.
[0164] According to the above battery fitting formula (1), the battery parameter calculation formula is as follows:
[0165]
[0166] Simplifying the above fitting formula, we get:
[0167] Ubat=fa×(1-e -ct )-b×(1-e -dt )
[0168]
[0169] like Figure 4 As shown, a, b, c, d, and f are intermediate parameters obtained according to the battery fitting formula (1), and their values are obtained by least squares fitting. Among them, a represents the steady-state value of the voltage of the electrochemical polarization equivalent RC circuit, b represents the steady-state value of the voltage of the concentration polarization equivalent RC circuit, c represents the inverse of the time constant of the electrochemical polarization equivalent RC circuit, d represents the inverse of the time constant of the concentration polarization equivalent RC circuit, and f represents the battery terminal voltage after the open circuit voltage is subtracted from the ohmic internal resistance voltage. R0 represents the internal resistance of the battery, which is calculated using the Ohm's formula, and ΔV represents the voltage difference before and after the start of discharge, which is measured by the voltage sensor. I represents the discharge current, and the 0.1C discharge rate is about 485mA, which is measured by the current sensor. U ocv Indicates the open circuit voltage of the battery, which can be obtained from the battery specification manual.
[0170] According to the above formula, the battery fitting parameters at each SOC state are calculated every 5% SOC step, and the obtained battery parameter values are shown in Table 5. The battery parameters at other discharge rates of 0.2C, 0.5C, and 1C are obtained in the same way.
[0171] Table 5
[0172]
[0173] The comparative experiment was conducted at a room temperature of 25°C, and the battery was discharged to the battery cut-off voltage. The recorded battery discharge data is as follows: Figure 5 As shown, it includes battery information such as battery load current and battery terminal voltage. The battery discharge current range is selected from 100 to 3000 mA, including instantaneous high current discharge to simulate the system's rapid startup conditions, and small current constant current discharge to simulate the system's long-term operation conditions.
[0174] Based on the same data and battery parameters, that is Figure 5 The same battery discharge data shown in FIG. 1 and the same battery parameters shown in Table 5 are respectively estimated using the optimized EKF algorithm in the method of the present invention and the existing standard EKF algorithm. For example, Figure 6 shown.
[0175] Depend on Figure 6 As shown, at the beginning of discharge, the estimated SOC of both is closer to the true value; as the battery discharges, the SOC estimation errors of both are increasing, which is due to the accuracy of the battery equivalent model and the characteristics of the EKF algorithm iteration. At the end of discharge, due to the exhaustion of battery energy, the internal chemical reaction is unstable, and the battery parameter fitting deviation is large, the errors of the battery SOC values estimated by both are large. However, looking at the entire discharge process, it can be seen that the SOC state transfer equation established by the method of the present invention increases the SOC estimation accuracy under the condition of load current condition changes, reduces the accumulated error in the estimation process, and makes the estimated final SOC result closer to the true value. In order to intuitively demonstrate the high accuracy of the SOC estimation of the present invention, the comparative experiment is only carried out under the single condition of load current change. Under the condition of temperature change, and under complex conditions such as the superposition of the above conditions, the SOC result estimated according to the present invention is more accurate than the standard EKF algorithm and closer to the true value of SOC.
[0176] Accordingly, an embodiment of the present invention further provides a battery SOC estimation device, such as Figure 7 Shown is a structural schematic diagram of the device.
[0177] The battery SOC estimation device 700 includes the following modules:
[0178] A parameter determination module 701 is used to determine a state quantity and an initial value of the state quantity according to a battery model, wherein the state quantity includes a battery SOC;
[0179] The state transfer equation determination module 702 is used to determine the optimized state transfer equation, and the optimized state transfer equation is: Among them, SOC t , SOC t+Δt They represent the battery SOC values at time t and time t+Δt, respectively, and Q t , Qt+Δt They represent the discharge capacity at time t and time t+Δt respectively, ΔQ represents the discharge capacity difference based on the real-time current and temperature at the two times, I t represents the battery load current at time t;
[0180] The calculation module 703 is used to calculate the battery SOC value using the EKF algorithm and the optimized state transfer equation.
[0181] The calculation module 703 includes an initialization unit and an iterative calculation unit. The initialization unit is used to initialize the system noise covariance matrix ω, the measurement noise covariance matrix σ, and the state quantity covariance matrix Р; the iterative calculation unit is used to perform iterative calculation based on the optimized state transfer equation using the EKF algorithm during the battery discharge process to obtain the battery SOC value. The specific calculation process can refer to the description in the embodiment of the battery SOC estimation method of the present invention, which will not be repeated here.
[0182] For other related descriptions of the modules and units in the battery SOC estimation device 700, reference may be made to the related descriptions in the previous embodiment of the method of the present invention, which will not be repeated here.
[0183] Regarding the various modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, or hardware modules / units, or they can be partially software modules / units and partially hardware modules / units. For example, for various devices and products applied to or integrated in a chip, the various modules / units included therein can all be implemented in the form of hardware such as circuits, or at least some of the modules / units can be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in a chip module, the various modules / units included therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component of the chip module (such as a chip, circuit module, etc.) or in different components, or at least some of the modules / units can be implemented in the form of software programs. It is implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in hardware such as circuits; for various devices and products applied to or integrated in the terminal equipment, the various modules / units contained therein can be implemented in hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal equipment, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal equipment, and the remaining (if any) modules / units can be implemented in hardware such as circuits.
[0184] The embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed, Figure 2 or Figure 3 The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. The storage medium may also include a non-volatile memory (non-volatile) or a non-transitory memory, etc.
[0185] The embodiment of the present invention further provides a battery SOC estimation device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor can execute when running the computer program. Figure 2 or Figure 3 Some or all of the steps of the method shown in .
[0186] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means.
[0187] In the several embodiments provided in the present application, it should be understood that the disclosed devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0190] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present application.
[0191] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.
Claims
1. A battery SOC estimation method, characterized in that: The method comprises: Determine a state quantity and an initial value of the state quantity according to a battery model, wherein the state quantity includes a battery SOC; Determine an optimized state transfer equation, wherein the optimized state transfer equation is: Among them, SOC t , SOC t+Δt They represent the battery SOC values at time t and time t+Δt, respectively, and Q t , Q t+Δt They represent the discharge capacity at time t and time t+Δt respectively, ΔQ represents the discharge capacity difference function based on the real-time current and temperature at the two moments, I t represents the battery load current at time t, η is the Coulomb efficiency coefficient; The battery SOC value is calculated using the EKF algorithm and the optimized state transfer equation.
2. The method according to claim 1, characterized in that The battery model is a first-order RC battery model or a second-order RC battery model.
3. The method according to claim 1, characterized in that The battery SOC value calculated by using the EKF algorithm and the optimized state transfer equation includes: Initialize the system noise covariance matrix ω, the measurement noise covariance matrix σ, and the state quantity covariance matrix Р; During the battery discharge process, the EKF algorithm is used to perform iterative calculation based on the optimized state transfer equation to obtain the battery SOC value.
4. The method according to claim 3, characterized in that The method of using the EKF algorithm to perform iterative calculation based on the optimized state transfer equation to obtain the battery SOC value includes: Calculate the estimated value of the battery terminal voltage according to the optimized state transfer equation; Calculate the difference between the estimated value and the measured value of the battery terminal voltage; According to the state transfer matrix, calculate the prior state quantity covariance matrix at time t+Δt; Calculate the Kalman gain K at time t+Δt based on the observation matrix, the prior state quantity covariance matrix, and the measurement noise covariance matrix; According to the Kalman gain K at time t+Δt, the posterior estimate of the state quantity is calculated to obtain the battery SOC value.
5. The method according to claim 4, characterized in that Calculating the estimated value of the battery terminal voltage according to the optimized state transfer equation includes: According to the optimized state transfer equation and the prior state quantity estimation equation, the a posteriori estimation value of the state quantity at time t is calculated; According to the a posteriori estimated value of the state quantity at time t and the battery terminal voltage estimation equation, the estimated value of the battery terminal voltage is calculated.
6. The method according to claim 4, characterized in that The iterative calculation based on the optimized state transfer equation using the EKF algorithm also includes: According to the Kalman gain K at time t+Δt, the state quantity covariance matrix Р is updated.
7. A battery SOC estimation device, characterized in that: The device comprises: A parameter determination module, used to determine a state quantity and an initial value of the state quantity according to a battery model, wherein the state quantity includes a battery SOC; The state transfer equation determination module is used to determine the optimized state transfer equation, and the optimized state transfer equation is: Among them, SOC t , SOC t+Δt They represent the battery SOC values at time t and time t+Δt, respectively, and Q t , Q t+Δt They represent the discharge capacity at time t and time t+Δt respectively, ΔQ represents the discharge capacity difference function based on the real-time current and temperature at the two moments, I t represents the battery load current at time t, η is the Coulomb efficiency coefficient; The calculation module is used to calculate the battery SOC value using the EKF algorithm and the optimized state transfer equation.
8. The device according to claim 7, characterized in that The battery SOC value calculated by using the EKF algorithm and the optimized state transfer equation includes: Initialization unit, used to initialize the system noise covariance matrix ω, the measurement noise covariance matrix σ, and the state quantity covariance matrix Р; The iterative calculation unit is used to perform iterative calculation based on the optimized state transfer equation using the EKF algorithm during the battery discharge process to obtain the battery SOC value.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the battery SOC estimation method according to any one of claims 1 to 6 are executed.
10. A battery SOC estimation device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor runs the computer program, the processor performs the steps of the battery SOC estimation method according to any one of claims 1 to 6.
