CN116224074A - A method, device, and storage medium for estimating the state of charge of a soft-pack lithium-ion battery - Google Patents
A method, device, and storage medium for estimating the state of charge of a soft-pack lithium-ion battery Download PDFInfo
- Publication number
- CN116224074A CN116224074A CN202310184114.5A CN202310184114A CN116224074A CN 116224074 A CN116224074 A CN 116224074A CN 202310184114 A CN202310184114 A CN 202310184114A CN 116224074 A CN116224074 A CN 116224074A
- Authority
- CN
- China
- Prior art keywords
- charge
- battery
- state
- stress
- deep learning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/367—Software therefor, e.g. for battery testing using modelling or look-up tables
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/382—Arrangements for monitoring battery or accumulator variables, e.g. SoC
- G01R31/3842—Arrangements for monitoring battery or accumulator variables, e.g. SoC combining voltage and current measurements
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
Description
技术领域technical field
本发明涉及电动汽车储能电池领域,尤其是涉及一种基于动态应力与深度学习的软包锂离子电池荷电状态估计方法、装置及存储介质。The invention relates to the field of electric vehicle energy storage batteries, in particular to a method, device and storage medium for estimating the state of charge of a soft-pack lithium-ion battery based on dynamic stress and deep learning.
背景技术Background technique
目前,低碳愿景推动新能源汽车的发展,其中一条重要路线是纯电动汽车。动力电池负责能量存储和功率输出。锂离子电池由于能量/功率密度高、使用寿命长和环境友好等优点,成为整车厂商、高校与科研机构的研究热点。电池荷电状态定义为剩余电量与最大可用容量之比,用于指示电池剩余电量,是确定剩余可行驶里程、充电/放电功率、安全工作范围的重要状态量。At present, the low-carbon vision promotes the development of new energy vehicles, and one of the important routes is pure electric vehicles. The power battery is responsible for energy storage and power output. Due to the advantages of high energy/power density, long service life and environmental friendliness, lithium-ion batteries have become a research hotspot for vehicle manufacturers, universities and scientific research institutions. The state of charge of the battery is defined as the ratio of the remaining power to the maximum available capacity, which is used to indicate the remaining power of the battery and is an important state quantity to determine the remaining mileage, charging/discharging power, and safe working range.
常规的荷电状态估计方法包括安时积分法、基于模型的方法和数据驱动方法。安时积分法基于荷电状态定义,是一种开环估计,受初始误差和测量噪声影响很大。基于模型的方法通过建立电池模型并构造自适应滤波器来估计电池荷电状态,估计精度、适应性及对测量噪声的抗干扰能力受模型和观测器的影响大。数据驱动方法基于电池可测量信息和内部状态之间的关系来实现荷电状态估计。Conventional SOC estimation methods include ampere-hour integration methods, model-based methods, and data-driven methods. The ampere-hour integration method is based on the definition of the state of charge, which is an open-loop estimation, which is greatly affected by the initial error and measurement noise. The model-based method estimates the state of charge of the battery by establishing a battery model and constructing an adaptive filter. The estimation accuracy, adaptability and anti-interference ability to measurement noise are greatly affected by the model and the observer. The data-driven approach implements state-of-charge estimation based on the relationship between battery measurable information and internal state.
数据驱动方法的一般思想是在电池充放电时测量电池的电流、电压、温度等,将这些数据直接作为输入,搭建数据驱动模型并训练以获得合适的模型参数,用训练好的模型进行电池荷电状态估计。因此,提高数据驱动方法的估计性能需要考虑的问题主要有两个:一是如何选择并搭建强适应性的数据驱动模型,二是如何获取高质量的电池数据。The general idea of the data-driven method is to measure the current, voltage, temperature, etc. of the battery when the battery is charging and discharging, use these data directly as input, build a data-driven model and train it to obtain appropriate model parameters, and use the trained model to perform battery charging. Electrical state estimation. Therefore, there are two main issues that need to be considered to improve the estimation performance of data-driven methods: one is how to select and build a strong adaptable data-driven model, and the other is how to obtain high-quality battery data.
当前常用于荷电状态估计的数据驱动模型主要分为传统机器学习模型和神经网络模型。传统机器学习方法包括高斯过程回归和支持向量机等;神经网络模型包括卷积神经网络和递归神经网络等。与传统的机器学习技术相比,深度学习技术可以处理相对更大的滑动窗口长度,处理时间序列的深度学习模型包括长短期记忆神经网络和门控循环神经网络。The current data-driven models commonly used for SOC estimation are mainly divided into traditional machine learning models and neural network models. Traditional machine learning methods include Gaussian process regression and support vector machines; neural network models include convolutional neural networks and recurrent neural networks. Compared with traditional machine learning techniques, deep learning techniques can handle relatively larger sliding window lengths, and deep learning models for processing time series include long short-term memory neural networks and gated recurrent neural networks.
电池传感技术和多维数据是数据驱动电池状态估计的关键,常规的荷电状态估计方法一般采用电信号和热信号等来实现荷电状态估计。当前常用的基于数据驱动方法的荷电状态估计通常将滑动窗口内的电池电流、电压和温度等测量值作为模型输入。随着先进电池传感技术的发展,有希望利用更多的传感信号来实现电池状态估计,比如电池应力信号。在电池充电和放电期间,锂离子从电极活性材料嵌入嵌出会导致电极材料的结构变化,进而引起电池体积变化,产生应力变化。Battery sensing technology and multi-dimensional data are the key to data-driven battery state estimation. Conventional state-of-charge estimation methods generally use electrical signals and thermal signals to achieve state-of-charge estimation. Current state-of-charge estimation based on data-driven methods usually takes measured values such as battery current, voltage, and temperature within a sliding window as model input. With the development of advanced battery sensing technology, it is expected to utilize more sensing signals for battery state estimation, such as battery stress signals. During charging and discharging of the battery, the intercalation and deintercalation of lithium ions from the electrode active material will lead to structural changes in the electrode material, which in turn will cause changes in the volume of the battery, resulting in stress changes.
将先进传感技术和机器学习技术结合有希望实现更精细的电池状态估计。目前该方法的问题主要在于:一是当前的数据驱动模型没有考虑电池测量数据的时间序列特性,不能有效利用历史信息;二是目前荷电状态估计中未能有效利用电池的应力信息,无法实现准确、有效和可靠的电池SOC估计。Combining advanced sensing techniques and machine learning techniques holds promise for more refined battery state estimation. At present, the main problems of this method are: first, the current data-driven model does not consider the time series characteristics of battery measurement data, and cannot effectively use historical information; Accurate, efficient and reliable battery SOC estimation.
发明内容Contents of the invention
本发明的目的就是为了提供一种基于动态应力与深度学习的软包锂离子电池荷电状态估计方法、装置及存储介质,考虑电池测量数据的时间序列特性,效利用电池的应力信息,提高电池荷电状态估计的可靠性。The purpose of the present invention is to provide a method, device, and storage medium for estimating the state of charge of a soft-pack lithium-ion battery based on dynamic stress and deep learning, taking into account the time series characteristics of battery measurement data, effectively using the stress information of the battery, and improving the battery life. Reliability of state of charge estimation.
本发明的目的可以通过以下技术方案来实现:The purpose of the present invention can be achieved through the following technical solutions:
一种基于动态应力与深度学习的软包锂离子电池荷电状态估计方法,包括以下步骤:A method for estimating the state of charge of a soft-pack lithium-ion battery based on dynamic stress and deep learning, comprising the following steps:
步骤1)建立包含动态应力信号的电池充放电数据集,所述电池充放电数据集包括电流、端电压、动态应力数据和参考荷电状态;Step 1) Establishing a battery charge and discharge data set containing dynamic stress signals, said battery charge and discharge data set including current, terminal voltage, dynamic stress data and reference state of charge;
步骤2)离线训练基于动态应力与深度学习的软包锂离子电池荷电状态估计模型;Step 2) off-line training based on dynamic stress and deep learning soft pack lithium-ion battery state of charge estimation model;
步骤21)根据深度学习网络所需输入形式将电池充放电数据集里的电流、端电压和动态应力的时间序列特征重组为三维张量样本集;Step 21) reorganize the time series features of the current, terminal voltage and dynamic stress in the battery charge and discharge data set into a three-dimensional tensor sample set according to the required input form of the deep learning network;
步骤22)搭建电池荷电状态估计模型的深度学习网络结构,基于参考荷电状态和样本集离线训练电池荷电状态估计模型;Step 22) Build the deep learning network structure of the battery state of charge estimation model, and train the battery state of charge estimation model offline based on the reference state of charge and sample set;
步骤3)在线电池荷电状态估计:Step 3) Online battery state of charge estimation:
步骤31)在电池实际充放电过程中在线获取电池电流、端电压和动态应力信号;Step 31) Obtaining battery current, terminal voltage and dynamic stress signals online during the actual charging and discharging process of the battery;
步骤32)根据训练完成的电池荷电状态估计模型,进行动力电池的荷电状态在线估计。Step 32) Perform online estimation of the state of charge of the power battery according to the trained battery state of charge estimation model.
所述步骤1)包括以下步骤:Described step 1) comprises the following steps:
步骤11)采用约束夹具和应变传感器搭建软包电池应力测量实验装置;Step 11) Build a pouch battery stress measurement experimental device by using a restraint fixture and a strain sensor;
步骤12)根据电池推荐的环境温度和充放电电流设计电池充放电实验,按设定的工况进行测试,在测试过程中记录电池电流、端电压和动态应力,并计算电池参考荷电状态,构建电池充放电数据集。Step 12) Design battery charging and discharging experiment according to the ambient temperature and charging and discharging current recommended by the battery, test according to the set working conditions, record the battery current, terminal voltage and dynamic stress during the test, and calculate the reference state of charge of the battery, Build a battery charge and discharge dataset.
所述步骤11)中,实验室环境下通过约束夹具和应力传感器进行平面应力测量,车载应用中将应力传感器布置在两个软包电池之间测量平面应力。In the step 11), the plane stress measurement is carried out through the restraint fixture and the stress sensor in the laboratory environment. In the vehicle application, the stress sensor is arranged between the two pouch batteries to measure the plane stress.
所述步骤12)中,测试过程中记录的动态应力Sd是与电池运行状态相关的应力,为总应力St减去初始静态应力Ss后的值:In the step 12), the dynamic stress S d recorded during the test is the stress related to the battery operating state, which is the value after subtracting the initial static stress S s from the total stress S t :
Sd=St-Ss S d =S t -S s
其中,所述总应力是在充电/放电期间由压力传感器直接在电池表面上测量的瞬时应力,静态应力是在充分的休息时间使电池达到平衡状态后获得的应力;Wherein, the total stress is the instantaneous stress measured directly by the pressure sensor on the surface of the battery during charging/discharging, and the static stress is the stress obtained after the battery reaches an equilibrium state with sufficient rest time;
电池参考荷电状态根据定义计算:The battery reference state of charge is calculated by definition:
其中,SOCk和Ik分别是k时刻的电池荷电状态和电流,Δt是采样时间,Cm是电池容量。Among them, SOC k and I k are the state of charge and current of the battery at time k, respectively, Δt is the sampling time, and C m is the battery capacity.
所述步骤12)中,设定的工况包括:长期充放电工况、短期充放电工况、脉冲充放电工况和动态行驶工况。In the step 12), the working conditions set include: long-term charging and discharging working conditions, short-term charging and discharging working conditions, pulse charging and discharging working conditions and dynamic driving working conditions.
所述步骤21)中,k时刻的电池充放电数据为xk=[Ik,Vk,Fk],其中,Ik是k时刻的电流,Vk是k时刻的端电压,Fk是k时刻的动态应力;In the step 21), the battery charge and discharge data at time k is x k =[I k , V k , F k ], where I k is the current at time k, V k is the terminal voltage at time k, and F k is the dynamic stress at time k;
采用长度为n的滑动窗口,得到用于训练深度学习网络的输入为Xk=[xk-n+1,…,xk-1,xk],数据长度记为Ndata,则获得的样本量为:Using a sliding window with a length of n, the input for training the deep learning network is X k = [x k-n+1 ,...,x k-1 , x k ], and the data length is recorded as N data , then the obtained The sample size is:
Nsamples=Ndata-n+1N samples =N data -n+1
将数据重组为三维张量形式:[Nsamples,n,Nfeatures],其中,Nfeatures表示特征数量。Reorganize the data into a three-dimensional tensor form: [N samples ,n,N features ], where N features represent the number of features.
所述步骤22)中,深度学习网络包括一层输入层、两层LSTM隐藏层、一层全连接层和一层输出层,其中LSTM网络激活过程如下:In said step 22), the deep learning network includes one layer of input layer, two layers of LSTM hidden layers, one layer of fully connected layer and one layer of output layer, wherein the LSTM network activation process is as follows:
其中,ft遗忘门、it是输入门,ot是输出门,是更新过程的候选状态,Wx是权重,bx是偏置,σ(·)是sigmoid激活函数,tanh(·)是双曲正切激活函数。Among them, ft forget gate, it is the input gate, o t is the output gate, is the candidate state for the update process, W x is the weight, b x is the bias, σ( ) is the sigmoid activation function, and tanh( ) is the hyperbolic tangent activation function.
所述步骤32)中,电池的荷电状态估计方法为:In the step 32), the method for estimating the state of charge of the battery is:
SOC*=LSTM(x*)SOC * =LSTM(x * )
其中,LSTM为训练好的电池荷电状态估计模型,x*为在线获取的电池电流、端电压与动态应力构成的输入向量。Among them, LSTM is a trained battery state of charge estimation model, and x * is an input vector composed of battery current, terminal voltage and dynamic stress obtained online.
一种充电桩即插即充功能测试装置,包括存储器、处理器,以及存储于所述存储器中的程序,所述处理器执行所述程序时实现如上述所述的方法。A plug-and-charge function test device for a charging pile, comprising a memory, a processor, and a program stored in the memory, and the processor implements the above-mentioned method when executing the program.
一种存储介质,其上存储有程序,所述程序被执行时实现如上述所述的方法。A storage medium, on which a program is stored, and when the program is executed, the method as described above is implemented.
与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:
本发明的电池荷电状态估计方法在电流、电压外额外考虑了动态应力信号,能够反映电池充放电过程中锂离子嵌入脱出引起的体积变化,结合深度学习网络,实现电池荷电状态在线估计,使得模型对不同工况适应性强,在数据长度有限的情况下估计性能良好,对电池测量噪声干扰鲁棒性强。The method for estimating the state of charge of the battery in the present invention considers the dynamic stress signal in addition to the current and voltage, and can reflect the volume change caused by the insertion and extraction of lithium ions during the charging and discharging process of the battery. Combined with the deep learning network, the online estimation of the state of charge of the battery is realized. The model has strong adaptability to different working conditions, good estimation performance in the case of limited data length, and strong robustness to battery measurement noise interference.
附图说明Description of drawings
图1为本发明的方法流程图;Fig. 1 is method flowchart of the present invention;
图2为电池应力与荷电状态之间关系的示意图;2 is a schematic diagram of the relationship between battery stress and state of charge;
图3为基于动态应力与深度学习的软包锂离子电池荷电状态估计结果;Figure 3 shows the state of charge estimation results of soft-pack lithium-ion batteries based on dynamic stress and deep learning;
图4为基于本发明方法估计得到的荷电状态估计误差图。Fig. 4 is a diagram of the state of charge estimation error estimated based on the method of the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明进行详细说明。本实施例以本发明技术方案为前提进行实施,给出了详细的实施方式和具体的操作过程,但本发明的保护范围不限于下述的实施例。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is carried out on the premise of the technical solution of the present invention, and detailed implementation and specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.
本实施例提供一种基于动态应力与深度学习的软包锂离子电池荷电状态估计方法,如图1所示,包括以下步骤:This embodiment provides a method for estimating the state of charge of a soft-pack lithium-ion battery based on dynamic stress and deep learning, as shown in FIG. 1 , including the following steps:
步骤1)建立包含动态应力信号的电池充放电数据集,所述电池充放电数据集包括电流、端电压、动态应力数据和参考荷电状态。Step 1) Establish a battery charge and discharge data set containing dynamic stress signals, the battery charge and discharge data set includes current, terminal voltage, dynamic stress data and reference state of charge.
步骤11)采用约束夹具和应变传感器搭建软包电池应力测量实验装置。Step 11) Build a pouch battery stress measurement experimental device by using a restraint fixture and a strain sensor.
电池工作过程中除了测量电压、电流和温度外,需要测量电池的平面应力。实验室环境下通过约束夹具和应力传感器进行平面应力测量,车载应用中将应力传感器布置在两个软包电池之间测量平面应力。In addition to measuring voltage, current and temperature during battery operation, it is necessary to measure the plane stress of the battery. In the laboratory environment, the plane stress measurement is carried out through the restraint fixture and the stress sensor. In the vehicle application, the stress sensor is arranged between two pouch batteries to measure the plane stress.
本实施案例中所使用的电池为软包锂离子电池,正负极材料分别为锰酸锂和石墨。该款电池的标称容量为8Ah,标称电压3.7V,充电截止电压为4.2V,放电截止电压为2.8V。The battery used in this implementation case is a soft-pack lithium-ion battery, and the positive and negative electrode materials are lithium manganate and graphite respectively. The nominal capacity of this battery is 8Ah, the nominal voltage is 3.7V, the charge cut-off voltage is 4.2V, and the discharge cut-off voltage is 2.8V.
步骤12)根据电池推荐的环境温度和充放电电流设计电池充放电实验,按设定的工况进行测试,在测试过程中记录电池电流、端电压和动态应力,并计算电池参考荷电状态,构建电池充放电数据集。Step 12) Design battery charging and discharging experiment according to the ambient temperature and charging and discharging current recommended by the battery, test according to the set working conditions, record the battery current, terminal voltage and dynamic stress during the test, and calculate the reference state of charge of the battery, Build a battery charge and discharge dataset.
电池充放电过程中锂离子在两个电极间嵌入脱出会引起电池体积变化从而产生应力。测试过程中记录的动态应力Sd是与电池运行状态(如电流、荷电状态等)相关的应力,为总应力St减去初始静态应力Ss后的值:The intercalation and deintercalation of lithium ions between the two electrodes during battery charging and discharging will cause the volume change of the battery and cause stress. The dynamic stress S d recorded during the test is the stress related to the operating state of the battery (such as current, state of charge, etc.), which is the value after subtracting the initial static stress S s from the total stress S t :
Sd=St-Ss S d =S t -S s
其中,总应力是在充电/放电期间由压力传感器直接在电池表面上测量的瞬时应力,静态应力是在充分的休息时间(通常为2小时)使电池达到平衡状态后获得的应力。Among them, the total stress is the instantaneous stress measured directly by the pressure sensor on the battery surface during charging/discharging, and the static stress is the stress obtained after a sufficient rest period (usually 2 hours) to bring the battery to an equilibrium state.
本步骤中,设定的工况应尽可能涵盖电池的实际工作场景,本实施例中包括:长期充放电工况、短期充放电工况、脉冲充放电工况和动态行驶工况等,以提高估计模型的适应性。In this step, the working conditions set should cover the actual working conditions of the battery as much as possible. Improve the fitness of the estimated model.
本实施例中设计四种典型工况以模拟电池实际充放电。In this embodiment, four typical working conditions are designed to simulate the actual charge and discharge of the battery.
工况一:恒流工况,模拟电池的长期充放电。以1C的电流倍率恒流充放电,记为Cy1和Cy2。Working condition 1: Constant current working condition, simulating the long-term charge and discharge of the battery. Charge and discharge at a constant current rate of 1C, denoted as Cy1 and Cy2.
工况二:短期工况,模拟电池的短期充放电。电池以不同的电流倍率(例如,0.25C、0.5C、1.5C和2C)充电至设定的荷电状态,然后以1C电流放电至0%荷电状态,分别记为Cy3-Cy6。设定的荷电状态分别为20%、40%、60%和80%。Working condition 2: short-term working condition, simulating short-term charge and discharge of the battery. The batteries were charged to a set state of charge at different current rates (for example, 0.25C, 0.5C, 1.5C, and 2C), and then discharged to 0% state of charge at a current of 1C, denoted as Cy3-Cy6, respectively. The set states of charge are 20%, 40%, 60% and 80%, respectively.
工况三:脉冲工况,模拟电池的功率特性。该工况包括两个子工况:子工况一使用不同的电流倍率(0.25C、0.5C、1.5C和2C)将电池充电至设定的荷电状态,然后将电池静置2小时,记为Cy7-Cy10;子工况二先以1C恒流充电至设定的荷电状态,然后加载不同电流倍率(0.25C、0.5C、1.5C和2C)的60秒放电-充电脉冲,在两个相邻荷电状态点之间静置1小时,分别记为Cy11-Cy14。Working condition three: pulse working condition, simulating the power characteristics of the battery. This working condition includes two sub-working conditions:
工况四:动态工况,模拟电动汽车的实际行驶。采用两种常用的行驶工况——新的欧洲驾驶循环(NEDC)和城市道路循环(UDDS),分别记为Cy15和Cy16。Working condition four: dynamic working condition, simulating the actual driving of electric vehicles. Two commonly used driving conditions - the New European Driving Cycle (NEDC) and the Urban Road Cycle (UDDS), denoted as Cy15 and Cy16 respectively.
测量的电池应变是减去初始压力后的应变值。实验过程中,夹具和测试电池放置在恒温箱中以确保环境一致性,环境温度设置为25℃。The measured cell strain is the strain value after subtracting the initial stress. During the experiment, the fixture and test cells were placed in an incubator to ensure environmental consistency, and the ambient temperature was set at 25 °C.
根据定义通过电流积分计算电池参考荷电状态,参考荷电状态作为离线训练的输出标签。电池荷电状态定义为电池剩余可使用的电量与电池当前容量的比值,可以用前一时刻的SOCk-1加上当前时刻变化的电量IkΔt(放电时Ik为负,充电时Ik为正)与容量Cm的比值计算,本实施例中采样时间Δt=1s,电池容量Cm=8Ah。于是,电池参考荷电状态计算为:According to the definition, the reference state of charge of the battery is calculated by current integration, and the reference state of charge is used as the output label of offline training. The state of charge of the battery is defined as the ratio of the remaining usable power of the battery to the current capacity of the battery, which can be calculated by adding the SOC k-1 of the previous moment to the current changing power I k Δt (I k is negative when discharging, and I k is negative when charging. k is positive) and the capacity C m is calculated as a ratio. In this embodiment, the sampling time Δt=1s, and the battery capacity C m =8Ah. The battery reference state of charge is then calculated as:
如图2所示,电池应力与荷电状态之间的关系受电池工作电流影响较小。通过Pearson和Spearman相关系数定量评价电池应力/应变与荷电状态之间的关系,Pearson相关系数表明动态应力与荷电状态线性相关,Spearman相关系数表明动态应力与荷电状态的单调关系。电池动态应力和荷电状态间的两个相关系数分别超过0.97和0.985,表明电池动态应力信号与荷电状态之间的强关联性,适合用作荷电状态估计模型的输入。As shown in Figure 2, the relationship between battery stress and state of charge is less affected by the battery operating current. The relationship between battery stress/strain and state of charge is quantitatively evaluated by Pearson and Spearman correlation coefficients. Pearson correlation coefficient indicates that dynamic stress is linearly related to state of charge, and Spearman correlation coefficient indicates a monotonic relationship between dynamic stress and state of charge. The two correlation coefficients between battery dynamic stress and state of charge exceed 0.97 and 0.985, respectively, indicating a strong correlation between the battery dynamic stress signal and state of charge, suitable for use as an input to the state of charge estimation model.
步骤2)离线训练基于动态应力与深度学习的软包锂离子电池荷电状态估计模型。Step 2) Offline training of the state-of-charge estimation model for soft-pack lithium-ion batteries based on dynamic stress and deep learning.
步骤21)根据深度学习网络所需输入形式将电池充放电数据集里的电流、端电压和动态应力的时间序列特征重组为三维张量样本集。Step 21) Reorganize the time series features of current, terminal voltage and dynamic stress in the battery charge and discharge data set into a three-dimensional tensor sample set according to the required input form of the deep learning network.
k时刻的电池充放电数据为xk=[Ik,Vk,Fk],其中,Ik是k时刻的电流,Vk是k时刻的端电压,Fk是k时刻的动态应力。The battery charge and discharge data at time k is x k = [I k , V k , F k ], where I k is the current at time k, V k is the terminal voltage at time k, and F k is the dynamic stress at time k.
采用长度为n的滑动窗口,也就是在k时刻使用时刻k-n+1至k的电池传感数据,得到用于训练深度学习网络的输入为Xk=[xk-n+1,…,xk-1,xk],数据长度记为Ndata,则获得的样本量为:Using a sliding window with a length of n, that is, using the battery sensor data from time k-
Nsamples=Ndata-n+1N samples =N data -
将数据重组为三维张量形式:[Nsamples,n,Nfeatures],其中,Nfeatures表示特征数量,本实施例中特征数量为3,分别是电流、端电压和动态应力。Reorganize the data into a three-dimensional tensor form: [N samples ,n,N features ], where N features represent the number of features, and in this embodiment the number of features is 3, which are current, terminal voltage and dynamic stress respectively.
本实施例中用于训练荷电状态估计模型和用于在线测试的数据划分矩阵如表1所示:In this embodiment, the data division matrix used for training the state of charge estimation model and for online testing is shown in Table 1:
表1数据集划分矩阵Table 1 Dataset partition matrix
步骤22)搭建电池荷电状态估计模型的深度学习网络结构,基于参考荷电状态和样本集离线训练电池荷电状态估计模型。Step 22) Build the deep learning network structure of the battery state of charge estimation model, and train the battery state of charge estimation model offline based on the reference state of charge and the sample set.
本实施例中,深度学习网络包括包含一个序列输入层,两个带有0.05Dropout的LSTM隐藏层,一个全连接层和一个回归层。其中,每层LSTM选取100个隐藏单元。序列输入层负责将序列数据输入到构建的网络,完全连接层将LSTM的输出乘以权重矩阵并加上偏置,回归层用于执行回归任务。In this embodiment, the deep learning network includes a sequence input layer, two LSTM hidden layers with 0.05 Dropout, a fully connected layer and a regression layer. Among them, each layer of LSTM selects 100 hidden units. The sequence input layer is responsible for inputting sequence data into the constructed network, the fully connected layer multiplies the output of the LSTM by the weight matrix and adds bias, and the regression layer is used to perform the regression task.
隐藏层由多个重复LSTM单元组成,每个LSTM单元将两个状态转移到下一个单元,即单元状态(ct)和隐藏状态(ht)。xt和yt分别是对应的模型输入和输出序列。单元状态包含从前一时间步骤中学习到的信息,隐藏状态也称为输出状态。在每个时间步骤,LSTM层将有效信息添加到或丢弃来自先前单元状态的无效信息,包括单元和隐藏状态的遗忘、更新和输出过程。这些操作由三个不同的门控制,包括输入门it、遗忘门ft和输出门ot。遗忘过程确定应使用遗忘门丢弃或保留哪些信息。更新过程控制单元状态更新的级别,并使用输入门向单元状态添加信息。最后,采用输出门和单元状态来决定下一个隐藏状态。表示更新过程的候选状态,Wx表示权重,bx是偏置,σ(·)是sigmoid激活函数,tanh(·)是双曲正切激活函数,关键激活操作如下:The hidden layer consists of multiple repeating LSTM units, and each LSTM unit transfers two states to the next unit, the unit state (c t ) and the hidden state (h t ). xt and yt are the corresponding model input and output sequences, respectively. The cell state contains the information learned from the previous time step, the hidden state is also called the output state. At each time step, the LSTM layer adds valid information to or discards invalid information from previous cell states, including the forgetting, updating, and output processes of cells and hidden states. These operations are controlled by three different gates, including the input gate it , the forget gate ft and the output gate o t . The forgetting process determines which information should be discarded or kept using the forget gate. Update the level of process control cell state updates and add information to cell state using input gates. Finally, the output gate and cell state are used to decide the next hidden state. Represents the candidate state of the update process, W x represents the weight, b x is the bias, σ(·) is the sigmoid activation function, tanh(·) is the hyperbolic tangent activation function, and the key activation operations are as follows:
LSTM模型使用的训练数据为参考荷电状态和三维张量样本集。其中k时刻的标签为SOCk,输入为Xk。The training data used by the LSTM model is the reference state of charge and the three-dimensional tensor sample set. The label at time k is SOC k , and the input is X k .
LSTM模型训练使用Adam优化器,初始学习率被设置为0.001,并且每100个epoch学习率分段下降,下降因子为0.2;梯度衰减因子β1为0.9,平方梯度衰退因子β2为0.999。由于深度学习模型的训练过程具有一定的随机性,每个模型训练三次,最终荷电状态估计结果取三次的平均值。LSTM model training uses the Adam optimizer, the initial learning rate is set to 0.001, and every 100 epochs the learning rate decreases in segments, and the decrease factor is 0.2; the gradient decay factor β 1 is 0.9, and the square gradient decay factor β 2 is 0.999. Due to the randomness of the training process of the deep learning model, each model is trained three times, and the final SOC estimation result is the average of the three times.
步骤3)在线电池荷电状态估计Step 3) Online battery state of charge estimation
步骤31)在电池实际充放电过程中在线获取电池电流、端电压和动态应力信号。Step 31) Obtain battery current, terminal voltage and dynamic stress signals online during the actual charging and discharging process of the battery.
车载应用时,将电池管理系统实时采集电池的电流、端电压和动态应力作为模型输入。需要注意的是,此处也需按照步骤21)将在线测得的电池电流、端电压和动态应力数据重组为三维张量形式。In vehicle applications, the battery management system collects the current, terminal voltage and dynamic stress of the battery in real time as the model input. It should be noted that the battery current, terminal voltage and dynamic stress data measured online also need to be reorganized into a three-dimensional tensor form according to step 21).
步骤32)根据训练完成的电池荷电状态估计模型,进行动力电池的荷电状态在线估计:Step 32) Perform online estimation of the state of charge of the power battery according to the battery state of charge estimation model that has been trained:
SOC*=LSTM(x*)SOC * =LSTM(x * )
其中,LSTM为训练好的电池荷电状态估计模型,x*为在线获取的电池电流、端电压与动态应力构成的输入向量。Among them, LSTM is a trained battery state of charge estimation model, and x * is an input vector composed of battery current, terminal voltage and dynamic stress obtained online.
如图3所示是Cy14的荷电状态估计结果,可以看出在三个场景下基于机械信号和深度学习的电池荷电状态估计方法都能很好的估计动力电池荷电状态。如图4所示,各循环荷电状态估计的总体RMSE和MAE分别为1.88%和1.35%,这些循环中RMSE的最大值低于5%,MAE的最大值低于4%,体现出良好的估计精度。如表1所示,本实施例中场景1和场景2中工况四未参与训练,但在在线估计时获得小的RMSE和MAE,这说明该方法对不同工况具备适应性。Figure 3 shows the state of charge estimation results of Cy14. It can be seen that in the three scenarios, the battery state of charge estimation method based on mechanical signals and deep learning can estimate the state of charge of the power battery very well. As shown in Fig. 4, the overall RMSE and MAE of state-of-charge estimation for each cycle are 1.88% and 1.35%, respectively, and the maximum value of RMSE in these cycles is lower than 5%, and the maximum value of MAE is lower than 4%, reflecting good Estimated accuracy. As shown in Table 1, working condition 4 in
另外,由于应力数据的加入,相较于只适用电流电压信息,电池荷电状态估计精度提高了0.24%,也因此对滑动窗口长度敏感程度较低,能够在数据长度有限的情况下获得良好的估计性能。In addition, due to the addition of stress data, compared with only current and voltage information, the estimation accuracy of the battery state of charge is increased by 0.24%. Therefore, it is less sensitive to the length of the sliding window and can obtain good results when the data length is limited. Estimate performance.
在步骤3)中,对三个测量值加上0.5%的测量噪声后,荷电状态估计误差相较于无噪声数据只有5.09%的相对增加,体现了本发明良好的鲁棒性。In step 3), after adding 0.5% measurement noise to the three measurement values, the state of charge estimation error has only a relative increase of 5.09% compared with the noise-free data, reflecting the good robustness of the present invention.
综上所述,本发明的一个实施例是可行的,并且估计结果与实际荷电状态数据误差较小,对不同工况具备适应性,支持小数据长度的估计,对测量噪声有良好鲁棒性。In summary, an embodiment of the present invention is feasible, and the error between the estimated result and the actual state of charge data is small, adaptable to different working conditions, supports the estimation of small data length, and has good robustness to measurement noise sex.
上述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the above functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .
以上详细描述了本发明的较佳具体实施例。应当理解,本领域的普通技术人员无需创造性劳动就可以根据本发明的构思做出诸多修改和变化。因此,凡本技术领域中技术人员依据本发明的构思在现有技术的基础上通过逻辑分析、推理、或者有限的实验可以得到的技术方案,皆应在权利要求书所确定的保护范围内。The preferred specific embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make many modifications and changes according to the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experiments on the basis of the prior art shall be within the scope of protection defined in the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310184114.5A CN116224074A (en) | 2023-02-28 | 2023-02-28 | A method, device, and storage medium for estimating the state of charge of a soft-pack lithium-ion battery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310184114.5A CN116224074A (en) | 2023-02-28 | 2023-02-28 | A method, device, and storage medium for estimating the state of charge of a soft-pack lithium-ion battery |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116224074A true CN116224074A (en) | 2023-06-06 |
Family
ID=86584007
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310184114.5A Pending CN116224074A (en) | 2023-02-28 | 2023-02-28 | A method, device, and storage medium for estimating the state of charge of a soft-pack lithium-ion battery |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116224074A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118033432A (en) * | 2024-04-12 | 2024-05-14 | 中国科学院大连化学物理研究所 | Battery state of charge estimation method and device and computer equipment |
CN118409225A (en) * | 2024-07-03 | 2024-07-30 | 钛深科技(深圳)有限公司 | SOC calculation method, detection component, system and device for rechargeable battery |
CN119471453A (en) * | 2025-01-15 | 2025-02-18 | 深圳广联数科科技有限公司 | A battery health prediction method, system, storage medium and program product |
-
2023
- 2023-02-28 CN CN202310184114.5A patent/CN116224074A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118033432A (en) * | 2024-04-12 | 2024-05-14 | 中国科学院大连化学物理研究所 | Battery state of charge estimation method and device and computer equipment |
CN118409225A (en) * | 2024-07-03 | 2024-07-30 | 钛深科技(深圳)有限公司 | SOC calculation method, detection component, system and device for rechargeable battery |
CN118409225B (en) * | 2024-07-03 | 2024-11-08 | 钛深科技(深圳)有限公司 | SOC calculation method, detection assembly, system and device for rechargeable battery |
CN119471453A (en) * | 2025-01-15 | 2025-02-18 | 深圳广联数科科技有限公司 | A battery health prediction method, system, storage medium and program product |
CN119471453B (en) * | 2025-01-15 | 2025-05-13 | 深圳广联数科科技有限公司 | Battery health prediction method, system, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113740736B (en) | A deep network adaptive SOH estimation method for electric vehicle lithium batteries | |
Takyi-Aninakwa et al. | An optimized relevant long short-term memory-squared gain extended Kalman filter for the state of charge estimation of lithium-ion batteries | |
US11366171B2 (en) | Battery state estimation method | |
CN112540298B (en) | Lithium ion battery SOC estimation method based on deep-migration learning | |
CN110554324B (en) | SOC and SOH joint estimation method | |
CN116224074A (en) | A method, device, and storage medium for estimating the state of charge of a soft-pack lithium-ion battery | |
CN109061506A (en) | Lithium-ion-power cell SOC estimation method based on Neural Network Optimization EKF | |
CN112557907A (en) | SOC estimation method of electric vehicle lithium ion battery based on GRU-RNN | |
Cheng et al. | State‐of‐charge estimation with aging effect and correction for lithium‐ion battery | |
CN109459699A (en) | A real-time monitoring method for SOC of lithium-ion power battery | |
CN113128672B (en) | Lithium ion battery pack SOH estimation method based on transfer learning algorithm | |
CN112684363A (en) | Lithium ion battery health state estimation method based on discharge process | |
CN113608126B (en) | An online SOC prediction method for lithium batteries at different temperatures | |
CN112345939A (en) | Parameter identification method of lithium-ion battery model based on continuous impulse response | |
CN116643196A (en) | Battery health state estimation method integrating mechanism and data driving model | |
CN115598535B (en) | A battery state of charge estimation method and system considering health status | |
CN114509677A (en) | Multi-factor evaluation method and system for residual capacity of battery and electronic equipment | |
Chen et al. | State of charge estimation for lithium-ion battery based on whale optimization algorithm and multi-kernel relevance vector machine | |
Lyu et al. | State-of-charge estimation of lithium-ion batteries based on deep neural network | |
CN116626499A (en) | Lithium battery health state estimation method based on peak-pressing feature and improved LSTM | |
CN114200328B (en) | Lithium ion battery SOC estimation method under non-Gaussian Levy noise | |
Meng et al. | A Domain-Adversarial Neural Network for Transferable Lithium-ion Battery State of Health Estimation | |
CN118655469A (en) | A lithium battery SOC estimation method based on CS-BP neural network and ARIMA model | |
CN117169743A (en) | Battery health state estimation method and device based on partial data and model fusion | |
Dai et al. | Battery state-of-health estimation based on random charge curve fitting and broad learning system with attention mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |