CN115684972A - A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model - Google Patents

A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model Download PDF

Info

Publication number
CN115684972A
CN115684972A CN202211283073.7A CN202211283073A CN115684972A CN 115684972 A CN115684972 A CN 115684972A CN 202211283073 A CN202211283073 A CN 202211283073A CN 115684972 A CN115684972 A CN 115684972A
Authority
CN
China
Prior art keywords
soh
formula
value
feature
ssa
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
Application number
CN202211283073.7A
Other languages
Chinese (zh)
Inventor
林达
赵波
张雪松
汪湘晋
葛晓慧
章雷其
龚迪阳
倪筹帏
李志浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd filed Critical Electric Power Research Institute of State Grid Zhejiang Electric Power Co Ltd
Priority to CN202211283073.7A priority Critical patent/CN115684972A/en
Publication of CN115684972A publication Critical patent/CN115684972A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electric Status Of Batteries (AREA)

Abstract

The invention discloses a lithium ion battery SOH estimation method based on an SSA-SVR model. The technical scheme adopted by the invention is as follows: collecting data; extracting health characteristics; constructing a characteristic processing model based on Savitzky-Golay filtering; taking a matrix F = [ F1, F2, F3 and F4] formed by the extracted and processed health characteristics as input, taking the SOH of the battery as output, and constructing a training set and a prediction set; and 5, constructing an SSA-SVR model: and constructing a reference SVR model, optimizing the hyperparameters of the SVR model by adopting a sparrow search algorithm based on the training set, constructing an SOH estimation model, and outputting the estimated SOH. The invention adopts a SVR model which considers 4 indexes of voltage and current segment data in the charging process, processes characteristics and adjusts parameters by combining a sparrow search algorithm, thereby realizing the SOH prediction of the lithium ion battery.

Description

一种基于SSA-SVR模型的锂离子电池SOH估计方法A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model

技术领域technical field

本发明涉及锂离子电池状态估计技术领域,具体地说是一种基于SSA-SVR模型的锂离子电池SOH估计方法。The invention relates to the technical field of lithium-ion battery state estimation, in particular to a lithium-ion battery SOH estimation method based on an SSA-SVR model.

背景技术Background technique

锂离子电池以其能够在成本、寿命、安全性与环境影响等各个性能参数之间取得良好均衡的优势,在电网储能系统与新能源汽车领域发挥着至关重要的作用。然而,锂离子电池的性能会随着使用周期逐渐下降,使电池系统产生安全隐患。为提高系统抵御风险故障的能力、降低维护成本,需要对锂离子电池的健康状态(SOH)进行准确估计。然而,与电池SOH直接相关的参数都是内部变量,难以直接用传感器测量,需要通过测量表征参数进行估计。锂离子电池SOH一般定义为实测容量与标称容量之比,当其下降到一定程度时,就应对电池单体进行更换维护。现有的SOH估计方法可以分为三类:基于模型的方法、基于数据驱动的方法与基于融合的方法。基于模型的方法为了获取高精度的SOH估计结果需要构建高复杂度的模型,难以应用实际。基于融合的方法旨在结合不同方法的优点,但尚未取得巨大进展,存在模型兼容性问题,计算复杂度较高。基于数据驱动的方法无需分析复杂的反应机理,可以从数据中提取出隐藏的映射关系。因此,相比之下,方法更为灵活,适用性更强的数据驱动方法是目前的研究热点。基于数据驱动的方法主要受输入特征与机器学习算法两方面的影响。Lithium-ion batteries play a vital role in the field of grid energy storage systems and new energy vehicles because of their advantages in achieving a good balance between various performance parameters such as cost, life, safety and environmental impact. However, the performance of lithium-ion batteries will gradually decrease with the use cycle, which will pose a safety hazard to the battery system. In order to improve the system's ability to resist risky failures and reduce maintenance costs, accurate estimation of the state of health (SOH) of lithium-ion batteries is required. However, the parameters directly related to battery SOH are internal variables, which are difficult to measure directly with sensors and need to be estimated by measuring characteristic parameters. Lithium-ion battery SOH is generally defined as the ratio of the measured capacity to the nominal capacity. When it drops to a certain level, the battery cell should be replaced and maintained. Existing SOH estimation methods can be divided into three categories: model-based methods, data-driven methods and fusion-based methods. The model-based method needs to build a high-complexity model in order to obtain high-precision SOH estimation results, which is difficult to apply in practice. Fusion-based methods aim to combine the advantages of different methods, but have not yet made great progress, suffer from model compatibility issues, and have high computational complexity. Based on the data-driven method, there is no need to analyze the complex reaction mechanism, and the hidden mapping relationship can be extracted from the data. Therefore, in contrast, the data-driven method with more flexible methods and stronger applicability is a current research hotspot. Data-driven methods are mainly influenced by input features and machine learning algorithms.

优质的输入特征具有所需数据稳定、易于提取、相关性高的特点。有研究采用放电过程中的数据进行特征提取,但是由于放电过程受工况与负载影响很大,不如充电过程数据稳定,利用放电数据的特征不利于模型适应复杂工况。高相关性的特征对于提高建模的精度具有重要作用,在提取特征后还可进行一些处理以提高特征与SOH之间的相关性。现有的机器学习模型种类多样,原理不一,各有优势;且机器学习方法较依赖于模型超参数的设置,不当的参数会导致模型泛化能力不足。因此,基于片段充电数据进行特征提取,并结合特征处理进一步提高所提特征与目标量的相关性,同时采用高性能的搜索算法对机器学习模型调参以提高SOH估计的精度是急需解决的问题。High-quality input features have the characteristics of stable required data, easy extraction, and high correlation. Some studies use the data in the discharge process for feature extraction, but because the discharge process is greatly affected by the working conditions and loads, it is not as stable as the data in the charging process, and the use of the characteristics of the discharge data is not conducive to the model's adaptation to complex working conditions. Highly correlated features play an important role in improving the accuracy of modeling, and some processing can be performed after feature extraction to improve the correlation between features and SOH. There are various types of existing machine learning models, different principles, and each has its own advantages; and machine learning methods are more dependent on the setting of model hyperparameters, and improper parameters will lead to insufficient generalization ability of the model. Therefore, feature extraction based on segment charging data, combined with feature processing to further improve the correlation between the extracted features and the target quantity, and at the same time use a high-performance search algorithm to adjust the parameters of the machine learning model to improve the accuracy of SOH estimation is an urgent problem to be solved .

发明内容Contents of the invention

为克服上述现有技术中存在的不足之处,本发明提出一种基于SSA-SVR模型的锂离子电池SOH估计方法,以期能从充电数据片段中挖掘出与SOH高度相关的特征,并采用Savitzky-Golay滤波算法对相关性不良的特征进行处理,以进一步提高已有特征的相关性,同时采用麻雀搜索算法对SVR的超参数进行寻优,从而提高SOH估计模型的预测精度。In order to overcome the deficiencies in the above-mentioned prior art, the present invention proposes a method for estimating the SOH of lithium-ion batteries based on the SSA-SVR model, in order to dig out features highly correlated with SOH from charging data segments, and adopt Savitzky -The Golay filter algorithm processes the features with poor correlation to further improve the correlation of the existing features. At the same time, the sparrow search algorithm is used to optimize the hyperparameters of SVR, so as to improve the prediction accuracy of the SOH estimation model.

为达到上述目的,本发明所采用的技术方案为:一种基于SSA-SVR模型的锂离子电池SOH估计方法,其包括:In order to achieve the above object, the technical solution adopted in the present invention is: a method for estimating the SOH of lithium-ion batteries based on the SSA-SVR model, which includes:

步骤1、数据采集:对锂离子电池进行多次充放电,并记录充放电过程中锂电池的电流、电压、时间数据以及每次放电完全的容量;Step 1. Data collection: charge and discharge the lithium-ion battery multiple times, and record the current, voltage, time data and the full capacity of each discharge of the lithium-ion battery during the charging and discharging process;

步骤2、进行健康特征提取:从充电过程中的电压与电流数据片段中提取出四个健康特征,即充电后的电压值、充电后的电流值、电压数据片段的充电持续时间和电流数据片段的充电持续时间;Step 2. Extract health features: Extract four health features from the voltage and current data fragments during charging, namely, the voltage value after charging, the current value after charging, the charging duration of the voltage data fragment, and the current data fragment charging duration;

步骤3、构建基于Savitzky-Golay滤波的特征处理模型:选定Savitzky-Golay滤波算法对提取的健康特征进行处理,消除健康特征由于充电数据受到传感器漂移噪声的影响而产生的杂乱波动,构建特征处理模型;Step 3. Build a feature processing model based on Savitzky-Golay filtering: select the Savitzky-Golay filtering algorithm to process the extracted health features, eliminate the cluttered fluctuations of the health features due to the impact of charging data on sensor drift noise, and construct feature processing Model;

步骤4、以提取与处理后的健康特征构成的矩阵F=[F1,F2,F3,F4]作为输入,电池的SOH作为输出,构建训练集和预测集;Step 4. Taking the matrix F=[F1, F2, F3, F4] formed by the extracted and processed health features as input, and the SOH of the battery as output, construct a training set and a prediction set;

步骤5、构建SSA-SVR模型:构建基准SVR模型,基于上述训练集,采用麻雀搜索算法对SVR模型的超参数进行寻优,构建SOH估计模型,输出估计的SOH。Step 5. Construct the SSA-SVR model: Construct the benchmark SVR model, based on the above training set, use the sparrow search algorithm to optimize the hyperparameters of the SVR model, construct the SOH estimation model, and output the estimated SOH.

进一步地,所述的步骤2包括:Further, the step 2 includes:

步骤2.1、提取充电过程中的电压数据片段[Va,Vb]的充电持续时间为第一个健康特征F1,利用式(1)计算特征F1:Step 2.1. Extract the charging duration of the voltage data segment [V a , V b ] during the charging process as the first health feature F1, and use the formula (1) to calculate the feature F1:

F1=tb-ta (1)F1=t b -t a (1)

式中,ta为电压上升到Va对应的充电时间,tb为电压上升到Vb对应的充电时间。In the formula, t a is the charging time corresponding to the voltage rising to V a , and t b is the charging time corresponding to the voltage rising to V b .

步骤2.2、提取充电过程中的电流数据片段[Ic,Id]的充电持续时间为第二个健康特征F2,利用式(2)计算特征F2:Step 2.2, extract the charging duration of the current data segment [I c , I d ] in the charging process as the second health feature F2, and use the formula (2) to calculate the feature F2:

F2=td-tc (2)F2=t d -t c (2)

式中,tc为电流下降到Ic对应的充电时间,td为电流下降到Id对应的充电时间。In the formula, tc is the charging time corresponding to the current drop to Ic , and td is the charging time corresponding to the current drop to Id .

步骤2.3、提取恒流充电过程中,从电压Ve作为计时起点,充电te时间后的电压值作为第三个健康特征F3,利用式(3)计算特征F3:Step 2.3, extracting the constant current charging process, starting from the voltage V e as the timing starting point, and the voltage value after charging t e time as the third health feature F3, using formula (3) to calculate the feature F3:

F3=Ve+ΔVe (3)F3=V e +ΔV e (3)

其中,ΔVe为te充电时间内变化的电压值。Among them, ΔV e is the voltage value changed within the charging time of t e .

步骤2.4、提取恒压充电过程中,从电流If作为计时起点,充电tf时间后的电流值作为第四个健康特征F4,利用式(4)计算特征F4:Step 2.4, extracting the constant voltage charging process, starting from the current I f as the timing starting point, and the current value after charging t f time as the fourth health feature F4, using the formula (4) to calculate the feature F4:

F4=If+ΔIf (4)F4=I f +ΔI f (4)

其中,ΔIf为tf充电时间内变化的电流值。Among them, ΔI f is the current value changed within tf charging time.

进一步地,所述的步骤3包括:Further, the step 3 includes:

步骤3.1、利用式(5)计算所提取的4种健康特征量与目标量SOH之间的相关性:Step 3.1, use formula (5) to calculate the correlation between the four extracted health characteristics and the target quantity SOH:

Figure BDA0003898880160000031
Figure BDA0003898880160000031

式中,X,Y分别为健康特征与SOH样本。In the formula, X and Y are healthy features and SOH samples, respectively.

步骤3.2、采用Savitzky-Golay滤波器构建特征处理模型,其由多项式阶数N和窗口长度L=2M+1决定,M表示测量窗口中最大与最小测量点坐标的绝对值;对于各测量点为(-M,-M+1,...,0,1,...,M-1,M)的数据,利用式(6)、(7)和(8)进行处理:Step 3.2, adopt Savitzky-Golay filter to build feature processing model, it is determined by polynomial order N and window length L=2M+1, and M represents the absolute value of maximum and minimum measurement point coordinates in the measurement window; For each measurement point is The data of (-M,-M+1,...,0,1,...,M-1,M) is processed using formulas (6), (7) and (8):

Figure BDA0003898880160000032
Figure BDA0003898880160000032

Figure BDA0003898880160000033
Figure BDA0003898880160000033

Figure BDA0003898880160000034
Figure BDA0003898880160000034

式中,p(n)为极限多项式,ak表示多项式项的系数,εN为最小二乘拟合的残差,x[n]是第n个序列中数据集的真实值,求解由(8)得出的方程组,最终得到最优的多项式系数。In the formula, p(n) is the limit polynomial, a k represents the coefficient of the polynomial term, ε N is the residual error of the least squares fitting, x[n] is the real value of the data set in the nth sequence, and the solution is obtained by ( 8) The obtained equation system finally obtains the optimal polynomial coefficients.

步骤3.3、设定阈值为0.97,当健康特征量与SOH之间的Pearson相关系数大于设定的阈值时,特征处理模型不会被激活,直接使用原始老化特征估计SOH;当健康特征量与SOH之间的Pearson相关系数小于设定的阈值时,表明该健康特征受到传感器漂移噪声的影响大,对该健康特征进行处理,提高健康特征与目标量之间的相关性。Step 3.3. Set the threshold to 0.97. When the Pearson correlation coefficient between the health feature and SOH is greater than the set threshold, the feature processing model will not be activated, and the original aging feature is directly used to estimate SOH; when the health feature and SOH When the Pearson correlation coefficient between is less than the set threshold, it indicates that the health feature is greatly affected by sensor drift noise, and the health feature is processed to improve the correlation between the health feature and the target quantity.

进一步地,所述的步骤5包括:Further, the step 5 includes:

步骤5.1、构建基准SVR模型Step 5.1, Build a benchmark SVR model

S={xi,yi|xi∈Rm,yi∈R};i=1,2,…,T (9)S={x i ,y i |xi i ∈R m ,y i ∈R}; i=1,2,...,T (9)

式中,xi为第i个样本的特征向量,yi为对应的回归值,T为样本数量,m为特征向量的维数;In the formula, x i is the feature vector of the i-th sample, y i is the corresponding regression value, T is the number of samples, and m is the dimension of the feature vector;

SVR函数定义为:The SVR function is defined as:

f(x)=ωΦ(x)+b (10)f(x)=ωΦ(x)+b (10)

式中,f(x)为输出,Φ(x)为非线性映射函数,ω,b为待确定的参数,最小化如下目标函数以求解ω与b:In the formula, f(x) is the output, Φ(x) is the nonlinear mapping function, ω, b are the parameters to be determined, and the following objective function is minimized to solve ω and b:

Figure BDA0003898880160000041
Figure BDA0003898880160000041

式中,C为惩罚系数,f(xi)是第i个样本的预测值,ε表示回归允许的最大误差,定义为:In the formula, C is the penalty coefficient, f( xi ) is the predicted value of the i-th sample, and ε represents the maximum error allowed by regression, which is defined as:

|y-f(x)|ε=max{0,|y-f(x)|-ε} (12)引入松弛变量ξi

Figure BDA0003898880160000047
后,化为以下目标函数:|yf(x)| ε =max{0,|yf(x)|-ε} (12) introduce the slack variable ξ i and
Figure BDA0003898880160000047
After that, it is transformed into the following objective function:

Figure BDA0003898880160000042
Figure BDA0003898880160000042

约束:constraint:

Figure BDA0003898880160000043
Figure BDA0003898880160000043

将式(10)转化为求解对偶问题:Transform equation (10) into solving the dual problem:

Figure BDA0003898880160000044
Figure BDA0003898880160000044

式中,βi

Figure BDA0003898880160000045
为拉格朗日算子,K(xi,xj)为核函数,选择线性逼近能力强的RBF核函数,定义为:In the formula, β i and
Figure BDA0003898880160000045
is a Lagrangian operator, K( xi , x j ) is a kernel function, and the RBF kernel function with strong linear approximation ability is selected, defined as:

Figure BDA0003898880160000046
Figure BDA0003898880160000046

式中,σ为核函数的宽度;In the formula, σ is the width of the kernel function;

步骤5.2、采用麻雀搜索算法对SVR模型的参数进行寻优,构建SOH估计模型,输出估计的SOH。Step 5.2, using the sparrow search algorithm to optimize the parameters of the SVR model, constructing the SOH estimation model, and outputting the estimated SOH.

进一步地,所述的步骤5.2包括:Further, the step 5.2 includes:

步骤5.2.1、利用式(17)对样本数据进行归一化,归一化的数据分为训练集与测试集,Step 5.2.1, using formula (17) to normalize the sample data, the normalized data is divided into training set and test set,

Figure BDA0003898880160000051
Figure BDA0003898880160000051

式中,Y和Y'分别为训练数据归一化前后的样本特征值,Ymin和Ymax分别表示样本特征数据中归一化前的最小值和最大值;In the formula, Y and Y' are the sample feature values before and after normalization of the training data, respectively, and Y min and Y max represent the minimum and maximum values of the sample feature data before normalization, respectively;

步骤5.2.2、设置麻雀搜索算法的参数;Step 5.2.2, setting the parameters of the sparrow search algorithm;

步骤5.2.3、设置惩罚系数C和核函数参数σ的取值范围,初始化种群;Step 5.2.3, set the penalty coefficient C and the value range of the kernel function parameter σ, and initialize the population;

步骤5.2.4、利用上述训练集训练SVR模型,并利用式(18)计算各个麻雀的适应度值:Step 5.2.4, use the above training set to train the SVR model, and use formula (18) to calculate the fitness value of each sparrow:

Figure BDA0003898880160000052
Figure BDA0003898880160000052

式中,

Figure BDA0003898880160000053
为第n个训练样本的预测值,Yn为第n个训练样本的真实值,Ntr为训练样本数;In the formula,
Figure BDA0003898880160000053
is the predicted value of the nth training sample, Y n is the true value of the nth training sample, and N tr is the number of training samples;

步骤5.2.5、计算并按照式(19)-(21)分别更新发现者、加入者、警戒者的位置;Step 5.2.5, calculate and update the positions of the discoverer, the joiner, and the vigilant respectively according to formulas (19)-(21);

发现者位置更新公式为:The finder location update formula is:

Figure BDA0003898880160000054
Figure BDA0003898880160000054

式中,

Figure BDA0003898880160000055
表示麻雀单体位置,i是1到P的正整数,j是1到d的正整数,P为种群总数,d为特征数据维度,α为0到1之间的随机数,itmax为最大迭代次数,R2为预警值,ST为安全值,Q为随机数,E为1×d的全1矩阵;当R2≥ST时,表示被捕食的风险较大,该位置的麻雀将快速转移;否则可扩大搜索范围;In the formula,
Figure BDA0003898880160000055
Indicates the position of a single sparrow, i is a positive integer from 1 to P, j is a positive integer from 1 to d, P is the total number of populations, d is the feature data dimension, α is a random number between 0 and 1, and it max is the maximum The number of iterations, R 2 is the warning value, ST is the safety value, Q is the random number, E is a 1×d matrix of all 1s; when R 2 ≥ ST, it means that the risk of being predated is high, and the sparrow at this position will quickly transfer; otherwise the search can be expanded;

加入者位置的更新公式为:The update formula for the joiner position is:

Figure BDA0003898880160000056
Figure BDA0003898880160000056

式中,

Figure BDA0003898880160000057
Figure BDA0003898880160000058
分别代表全局最不利和最有利的位置;A+是A的广义逆矩阵,A表示1×d的矩阵,其中元素随机预设为1或-1;当i>n/2时,表示跟随者抢夺食物失败,需进行转移;In the formula,
Figure BDA0003898880160000057
and
Figure BDA0003898880160000058
Represent the most unfavorable and most advantageous positions in the world; A + is the generalized inverse matrix of A, and A represents a 1×d matrix, in which elements are randomly preset to 1 or -1; when i>n/2, it means a follower Failed to snatch food and needs to be transferred;

警戒者位置的更新公式为:The update formula for the vigilante's position is:

Figure BDA0003898880160000059
Figure BDA0003898880160000059

式中,

Figure BDA0003898880160000061
表示当局最有利位置,γ为标准正态随机数,代表步长控制系数;k是-1到1的随机数,代表麻雀的方向;fg表示当局适应度最大值,fw和fg相反,ε是一个较小的常数,以确保分母不为0;fi表示第i个麻雀的适应度值;In the formula,
Figure BDA0003898880160000061
Indicates the most favorable position of the authority, γ is a standard normal random number, representing the step control coefficient; k is a random number from -1 to 1, representing the direction of the sparrow; f g represents the maximum fitness of the authority, and f w is opposite to f g , ε is a small constant to ensure that the denominator is not 0; f i represents the fitness value of the i-th sparrow;

步骤5.2.6、获得当前更新后的位置,计算获得最优个体以及最佳适应度值;Step 5.2.6, obtain the current updated position, calculate and obtain the optimal individual and the optimal fitness value;

步骤5.2.7、当训练后的结果达到设定的参数时,停止计算,执行输出参数(C,σ),否则,返回步骤5.2.4重新计算适应度值;Step 5.2.7. When the training result reaches the set parameter, stop the calculation and execute the output parameter (C, σ), otherwise, return to step 5.2.4 to recalculate the fitness value;

步骤5.2.8、根据参数(C,σ)建立估计模型,输出估计的SOH。Step 5.2.8. Establish an estimation model according to the parameters (C, σ), and output the estimated SOH.

与已有技术相比,本发明具有的有益效果体现在:Compared with prior art, the beneficial effect that the present invention has is reflected in:

本发明基于充电过程中的电压、电流数据片段进行特征提取,提取出四种高相关性的健康特征。这些健康特征相关性强、提取效率高、数量合适,可应用于锂离子电池SOH的在线高精度估计。The present invention performs feature extraction based on voltage and current data fragments in the charging process, and extracts four highly correlated health features. These health features have strong correlation, high extraction efficiency, and appropriate quantity, which can be applied to online high-precision estimation of lithium-ion battery SOH.

本发明针对数据采集过程中传感器易受噪声影响的特点,采用Savitzky-Golay滤波器对相关性相对较低的特征进行处理,消除噪声影响,进一步提高所提特征与目标量之间的相关性,提高了模型对SOH估计的预测精度与稳定性。Aiming at the characteristic that the sensor is easily affected by noise during the data collection process, the present invention adopts the Savitzky-Golay filter to process the features with relatively low correlation, eliminate the influence of noise, and further improve the correlation between the proposed features and the target quantity, The prediction accuracy and stability of the model for SOH estimation are improved.

本发明针对机器学习方法较依赖于模型超参数的设置,不当的参数会导致模型泛化能力不足的特点,采用对数据量的要求较少,非线性回归能力较强的支持向量回归作为基准模型,并通过麻雀搜索算法对其超参数进行寻优,保证了SOH估计模型的有效性。In view of the fact that the machine learning method is more dependent on the setting of model hyperparameters, and improper parameters will lead to insufficient generalization ability of the model, the present invention adopts the support vector regression with less requirements on the amount of data and strong nonlinear regression ability as the benchmark model , and optimize its hyperparameters through the sparrow search algorithm to ensure the validity of the SOH estimation model.

附图说明Description of drawings

图1为本发明具体实施方式中归一化后的四种初始提取特征的变化趋势图;Fig. 1 is the variation trend figure of four kinds of initial extraction features after normalization in the specific embodiment of the present invention;

图2(a)为本发明具体实施方式中Savitzky-Golay滤波前后F2特征变化趋势对比图;Fig. 2 (a) is before and after Savitzky-Golay filtering in the specific embodiment of the present invention F2 feature change trend contrast figure;

图2(b)为本发明具体实施方式中Savitzky-Golay滤波前后F4特征变化趋势对比图;Fig. 2 (b) is before and after Savitzky-Golay filtering F4 feature variation trend contrast figure in the specific embodiment of the present invention;

图3为本发明具体实施方式中SSA-SVR模型的建模流程图;Fig. 3 is the modeling flowchart of SSA-SVR model in the specific embodiment of the present invention;

图4为本发明具体实施方式中B0005电池的不同方法的预测结果对比图;Fig. 4 is a comparison chart of prediction results of different methods of B0005 battery in the specific embodiment of the present invention;

图5为本发明具体实施方式中B0007电池的不同方法的预测结果对比图。Fig. 5 is a comparison chart of the prediction results of different methods for the B0007 battery in the specific embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明了,下面结合具体实施方式并参照附图,对本发明进一步详细说明。应该理解,这些描述只是示例性的,而并非要限制本发明的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本发明的概念。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are exemplary only, and are not intended to limit the scope of the present invention. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present invention.

本实施例为一种基于SSA-SVR模型的锂离子电池SOH估计方法,能够实现高特征提取效率、高估计精度的SOH在线估计为目标,结合充电过程片段数据特征提取,挖掘电压、电流不同数据类型中与电池退化相关的信息,并结合特征处理优化相关特征,增强相关特征与目标量之间的相关性,得到输入特征后通过麻雀搜索算法优化SVR模型,提高了整体框架的预测精度。具体地说,该估计方法按如下步骤进行:This embodiment is a lithium-ion battery SOH estimation method based on the SSA-SVR model, which can achieve high feature extraction efficiency and high estimation accuracy SOH online estimation as the goal, combined with the feature extraction of the charging process segment data, mining different data of voltage and current The information related to battery degradation in the type is combined with feature processing to optimize the relevant features, enhance the correlation between the relevant features and the target quantity, and optimize the SVR model through the sparrow search algorithm after obtaining the input features, which improves the prediction accuracy of the overall framework. Specifically, the estimation method proceeds as follows:

步骤一、数据采集。对锂离子电池进行多次充放电,并记录充放电过程中锂电池的电流、电压、时间数据以及每次放电完全的容量。Step one, data collection. Charge and discharge the lithium-ion battery many times, and record the current, voltage, time data and the full capacity of each discharge of the lithium battery during the charge and discharge process.

本实施例使用的锂离子电池退化数据来自NASA PCOE研究中心,其中包括几个商用锂离子18650电池组的充放电测试数据。电池数据集记录了电池循环老化实验过程中电压、电流和温度的详细数据。电池B05与B07被选为实验对象,记录它们的详细数据在三种工作模式(充电,放电和阻抗测试)在温度24℃。电池B05、B07的额定容量为2Ah。充电过程以恒流(CC)模式在1.5A下进行,直到电池电压达到4.2V,然后恒压(CV)模式充电,直到充电电流下降到20mA。放电过程在2A恒流(CC)模式下进行,直到电池电压B05、B07分别降至2.7V、2.2V。The lithium-ion battery degradation data used in this example comes from the NASA PCOE Research Center, which includes charge and discharge test data of several commercial lithium-ion 18650 battery packs. The battery dataset records detailed data on voltage, current, and temperature during battery cycle aging experiments. Batteries B05 and B07 were selected as the experimental objects, and their detailed data were recorded in three working modes (charging, discharging and impedance test) at a temperature of 24°C. The rated capacity of batteries B05 and B07 is 2Ah. The charging process is carried out at 1.5A in constant current (CC) mode until the battery voltage reaches 4.2V, and then charged in constant voltage (CV) mode until the charging current drops to 20mA. The discharge process is carried out in 2A constant current (CC) mode until the battery voltages B05 and B07 drop to 2.7V and 2.2V respectively.

步骤二、特征提取Step 2. Feature extraction

随着周期数的增加,电压与电流曲线会发生规律性的变化。随着电池的老化,相同电压区间内的持续时间逐渐变短;相同电流区间内的持续时间逐渐变长;从某一特定电压与电流值开始充电相同的时间后电压与电流值越高。为此,本实施例选取了以下四个健康特征:充电后的电压值、充电后的电流值、电压数据片段的充电持续时间和电流数据片段的充电持续时间,用于SOH估计。As the number of cycles increases, the voltage and current curves will change regularly. As the battery ages, the duration of the same voltage range gradually becomes shorter; the duration of the same current range gradually becomes longer; the voltage and current value are higher after charging for the same time from a certain voltage and current value. To this end, the present embodiment selects the following four health features: the voltage value after charging, the current value after charging, the charging duration of the voltage data segment and the charging duration of the current data segment for SOH estimation.

步骤2.1、提取充电过程中的电压数据片段[Va,Vb]的充电持续时间为第一个健康特征F1。利用式(1)计算特征F1:Step 2.1. Extract the charging duration of the voltage data segment [V a , V b ] in the charging process as the first health feature F1. Use formula (1) to calculate feature F1:

F1=tb-ta (1)F1=t b -t a (1)

式中,ta为电压上升到Va对应的充电时间,tb为电压上升到Vb对应的充电时间。In the formula, t a is the charging time corresponding to the voltage rising to V a , and t b is the charging time corresponding to the voltage rising to V b .

本发明通过遍历法选择F1的最优片段,以3.6V为电压下限,4.2V为电压上限,0.01V为变化间隔进行遍历,由遍历可得,Va=3.7V,Vb=4.2V。The present invention selects the optimal segment of F1 through the traversal method, with 3.6V as the lower voltage limit, 4.2V as the upper voltage limit, and 0.01V as the change interval for traversal. From the traversal, V a =3.7V, V b =4.2V.

步骤2.2、提取充电过程中的电流数据片段[Ic,Id]的充电持续时间为第二个健康特征F2。利用式(2)计算特征F2:Step 2.2, extracting the charging duration of the current data segment [I c , I d ] in the charging process as the second health feature F2. Use formula (2) to calculate feature F2:

F2=td-tc (2)F2=t d -t c (2)

式中,tc为电流下降到Ic对应的充电时间,td为电流下降到Id对应的充电时间。In the formula, tc is the charging time corresponding to the current drop to Ic , and td is the charging time corresponding to the current drop to Id .

本发明通过遍历法选择F2的最优片段,以0.3A为电流下限,1.5A为电流上限,0.01A为变化间隔进行遍历,由遍历可得,Ic=1.49A,Id=0.42A。The present invention selects the optimal segment of F2 through the traversal method, with 0.3A as the lower limit of the current, 1.5A as the upper limit of the current, and 0.01A as the change interval for traversal. From the traversal, I c =1.49A, I d =0.42A.

步骤2.3、提取恒流(CC)充电过程中,从电压Ve作为计时起点,充电te时间后的电压值作为第三个健康特征F3。利用式(3)计算特征F3:Step 2.3, extracting the constant current (CC) charging process, starting from the voltage Ve as the timing start point, and taking the voltage value after charging t e as the third health feature F3. Use formula (3) to calculate feature F3:

F3=Ve+ΔVe (3)F3=V e +ΔV e (3)

其中,ΔVe为te充电时间内变化的电压值。Among them, ΔV e is the voltage value changed within the charging time of t e .

本发明通过遍历法选择F3的最优片段,以3.6V为电压下限,4.2V为电压上限,0.01V为电压变化间隔、50s为时间变化间隔进行遍历,由遍历可得,Ve=3.72V,te=400s。The present invention selects the optimal segment of F3 through the traversal method, takes 3.6V as the voltage lower limit, 4.2V as the voltage upper limit, 0.01V as the voltage change interval, and 50s as the time change interval for traversal, and can be obtained by traversal, Ve = 3.72V , t e =400s.

归一化后的四种初始提取特征的变化趋势图如图1所示。The change trend graph of the four initial extracted features after normalization is shown in Figure 1.

步骤2.4、提取恒压(CV)充电过程中,从电流If作为计时起点,充电tf时间后的电流值作为第四个健康特征F4。利用式(4)计算特征F4:Step 2.4, extracting the current value after charging t f from the current I f as the timing starting point during constant voltage (CV) charging as the fourth health feature F4. Use formula (4) to calculate feature F4:

F4=If+ΔIf (4)F4=I f +ΔI f (4)

其中,ΔIf为tf充电时间内变化的电流值。Among them, ΔI f is the current value changed within the charging time of t f .

本发明通过遍历法选择F4的最优片段,以0.3A为电流下限,1.5A为电流上限,0.01A为电流变化间隔、50s为时间变化间隔进行遍历,由遍历可得,If=1.41V,tf=1800s。The present invention selects the optimal segment of F4 through the traversal method, takes 0.3A as the lower limit of the current, 1.5A as the upper limit of the current, 0.01A as the current change interval, and 50s as the time change interval for traversal, which can be obtained by traversal, I f =1.41V , t f =1800s.

步骤三、特征处理Step 3, feature processing

步骤3.1、利用式(5)计算所提取的4种特征量与目标量SOH之间的相关性:Step 3.1, using formula (5) to calculate the correlation between the extracted four feature quantities and the target quantity SOH:

Figure BDA0003898880160000081
Figure BDA0003898880160000081

式中,X,Y分别为健康特征与SOH样本。相关系数绝对值越大,表明特征与SOH之间的相关性越强,用该特征估计SOH时准确度也会更高。In the formula, X and Y are healthy features and SOH samples, respectively. The larger the absolute value of the correlation coefficient, the stronger the correlation between the feature and SOH, and the higher the accuracy of estimating SOH with this feature.

步骤3.2、采用Savitzky-Golay滤波器构建特征处理模型,其由多项式阶数N和窗口长度L=2M+1决定,M表示测量窗口中最大与最小测量点坐标的绝对值;对于各测量点为(-M,-M+1,...,0,1,...,M-1,M)的数据,利用式(6)、(7)和(8)进行处理:Step 3.2, adopt Savitzky-Golay filter to build feature processing model, it is determined by polynomial order N and window length L=2M+1, and M represents the absolute value of maximum and minimum measurement point coordinates in the measurement window; For each measurement point is The data of (-M,-M+1,...,0,1,...,M-1,M) is processed using formulas (6), (7) and (8):

Figure BDA0003898880160000082
Figure BDA0003898880160000082

Figure BDA0003898880160000083
Figure BDA0003898880160000083

Figure BDA0003898880160000091
Figure BDA0003898880160000091

式中,p(n)为极限多项式,ak表示多项式项的系数,εN为最小二乘拟合的残差,x[n]是第n个序列中数据集的真实值,求解由(8)得出的方程组,最终得到最优的多项式系数。In the formula, p(n) is the limit polynomial, a k represents the coefficient of the polynomial term, ε N is the residual error of the least squares fitting, x[n] is the real value of the data set in the nth sequence, and the solution is obtained by ( 8) The obtained equation system finally obtains the optimal polynomial coefficients.

步骤3.3、设定阈值为0.97,当特征量与SOH之间的Pearson相关系数大于设定的阈值时,特征处理模型不会被激活,直接使用原始老化特征估计SOH;当特征量与SOH之间的Pearson相关系数小于设定的阈值时,表明该特征受到传感器漂移噪声的影响较大,对该特征进行处理,提高特征与目标量之间的相关性。Step 3.3, set the threshold to 0.97, when the Pearson correlation coefficient between the feature quantity and SOH is greater than the set threshold, the feature processing model will not be activated, and directly use the original aging features to estimate SOH; when the feature quantity and SOH When the Pearson correlation coefficient is less than the set threshold, it indicates that the feature is greatly affected by sensor drift noise, and the feature is processed to improve the correlation between the feature and the target quantity.

从充电电流数据中提取的特征F2与F4与从电压数据中提取的特征相比相关性要低,特征的变化趋势波动较大。这是由于充电电流数据容易受到电流传感器漂移噪声的影响,这种波动是不可避免的。因此,本发明采用Savitzky-Golay(SG)滤波算法去除F2与F4特征的噪声。为形象展示特征处理的效果,Savitzky-Golay滤波前后特征变化趋势对比图如图2(a)、图2(b)所示。Compared with the features extracted from the voltage data, the features F2 and F4 extracted from the charging current data have lower correlation, and the change trend of the features fluctuates greatly. This is because the charging current data is easily affected by the drift noise of the current sensor, and this fluctuation is unavoidable. Therefore, the present invention uses Savitzky-Golay (SG) filter algorithm to remove the noise of F2 and F4 features. In order to visualize the effect of feature processing, the comparison charts of feature change trends before and after Savitzky-Golay filtering are shown in Figure 2(a) and Figure 2(b).

步骤四、利用上述步骤得到的四个健康特征作为输入,电池的SOH作为输出,建立训练集与预测集。Step 4. Use the four health features obtained in the above steps as input and the SOH of the battery as output to establish a training set and a prediction set.

步骤五、构建SSA-SVR模型。Step five, constructing the SSA-SVR model.

步骤5.1、构建基准SVR模型Step 5.1, Build a benchmark SVR model

S={xi,yi|xi∈Rn,yi∈R};(i=1,2,…T) (9)S={x i , y i |xi i ∈ R n , y i ∈ R}; (i=1,2,...T) (9)

式中,xi为第i个样本的特征向量,yi为对应的回归值,T为样本数量,n为特征向量的维数。In the formula, x i is the feature vector of the i-th sample, y i is the corresponding regression value, T is the number of samples, and n is the dimension of the feature vector.

SVR函数定义为:The SVR function is defined as:

f(x)=ωΦ(x)+b (10)f(x)=ωΦ(x)+b (10)

式中,f(x)为输出,Φ(x)为非线性映射函数,ω,b为待确定的参数。最小化如下目标函数以求解ω与b:In the formula, f(x) is the output, Φ(x) is the nonlinear mapping function, and ω,b are the parameters to be determined. Minimize the following objective function to solve for ω and b:

Figure BDA0003898880160000092
Figure BDA0003898880160000092

式中,C为惩罚系数,f(xi)是第i个样本的预测值,ε表示回归允许的最大误差,定义为:In the formula, C is the penalty coefficient, f( xi ) is the predicted value of the i-th sample, and ε represents the maximum error allowed by regression, which is defined as:

|y-f(x)|ε=max{0,|y-f(x)|-ε} (12)|yf(x)| ε =max{0,|yf(x)|-ε} (12)

引入松弛变量ξi

Figure BDA0003898880160000107
后,可化为以下目标函数:Introducing slack variables ξ i and
Figure BDA0003898880160000107
After that, it can be transformed into the following objective function:

Figure BDA0003898880160000101
Figure BDA0003898880160000101

约束:constraint:

Figure BDA0003898880160000102
Figure BDA0003898880160000102

将式(10)转化为求解对偶问题:Transform equation (10) into solving the dual problem:

Figure BDA0003898880160000103
Figure BDA0003898880160000103

式中,βi

Figure BDA0003898880160000104
为拉格朗日算子,K(xi,xj)为核函数,本发明选择线性逼近能力强的RBF核函数,定义为:In the formula, β i and
Figure BDA0003898880160000104
is a Lagrangian operator, K( xi , xj ) is a kernel function, and the present invention selects an RBF kernel function with strong linear approximation ability, defined as:

Figure BDA0003898880160000105
Figure BDA0003898880160000105

式中,σ为核函数的宽度。In the formula, σ is the width of the kernel function.

步骤5.2、采用麻雀搜索算法对SVR模型的参数进行寻优。Step 5.2, using the sparrow search algorithm to optimize the parameters of the SVR model.

惩罚因子C和核函数参数σ是SVR模型的关键参数,决定了估计模型的估计精度和拟合能力。SSA是一种根据麻雀觅食和躲避捕食者的行为提出的新型自然启发式算法。SSA中的麻雀能够通过跳到当前最优解附近收敛到当前最优解,在精度与收敛速度等方面性能优异。采用麻雀搜索算法对超参数进行寻优可以有效提高模型的估计性能。SSA-SVR的步骤简要描述如下:The penalty factor C and the kernel function parameter σ are the key parameters of the SVR model, which determine the estimation accuracy and fitting ability of the estimation model. SSA is a new nature-heuristic algorithm proposed based on the behavior of sparrows foraging and avoiding predators. The sparrow in SSA can converge to the current optimal solution by jumping to the vicinity of the current optimal solution, and has excellent performance in terms of accuracy and convergence speed. Using the sparrow search algorithm to optimize the hyperparameters can effectively improve the estimation performance of the model. The steps of SSA-SVR are briefly described as follows:

步骤5.2.1、利用式(17)对样本数据进行归一化。归一化的数据可分为训练集与测试集。Step 5.2.1, using formula (17) to normalize the sample data. The normalized data can be divided into training set and test set.

Figure BDA0003898880160000106
Figure BDA0003898880160000106

式中,Y和Y'分别为训练数据归一化前后的样本特征值,Ymin和Ymax分别表示样本特征数据中归一化前的最小值和最大值。In the formula, Y and Y' are the sample feature values before and after normalization of the training data, respectively, and Y min and Y max represent the minimum and maximum values of the sample feature data before normalization, respectively.

步骤5.2.2、设置麻雀搜索算法的参数,最大迭代次数N=150,种群大小n=50,发现者数量PD=0.6,警戒者数量SD=0.3,安全值ST=0.5,自变量的上下限DL=[-7,7];Step 5.2.2, set the parameters of the sparrow search algorithm, the maximum number of iterations N = 150, the population size n = 50, the number of discoverers PD = 0.6, the number of vigilantes SD = 0.3, the security value ST = 0.5, the upper and lower limits of independent variables DL=[-7,7];

步骤5.2.3、设置惩罚系数C和核函数参数σ的取值范围,初始化种群;Step 5.2.3, set the penalty coefficient C and the value range of the kernel function parameter σ, and initialize the population;

步骤5.2.4、利用上述训练集训练SVR模型,并利用式(18)计算各个麻雀的适应度值:Step 5.2.4, use the above training set to train the SVR model, and use formula (18) to calculate the fitness value of each sparrow:

Figure BDA0003898880160000111
Figure BDA0003898880160000111

式中,

Figure BDA0003898880160000112
为第n个训练样本的预测值,Yn为第n个训练样本的真实值,Ntr为训练样本数。In the formula,
Figure BDA0003898880160000112
is the predicted value of the nth training sample, Y n is the real value of the nth training sample, and N tr is the number of training samples.

步骤5.2.5、计算并按照式(19)-(21)分别更新发现者、加入者、警戒者的位置。Step 5.2.5. Calculate and update the positions of the discoverer, the joiner, and the vigilant respectively according to formulas (19)-(21).

发现者位置更新公式为:The finder location update formula is:

Figure BDA0003898880160000113
Figure BDA0003898880160000113

式中,

Figure BDA0003898880160000114
表示麻雀单位位置,i是1到P的正整数,j是1到d的正整数,P为种群总数,d为特征数据维度,α为0到1之间的随机数,itmax为最大迭代次数,R2为预警值,ST为安全值,Q为随机数,E为1×d的全1矩阵;当R2≥ST时,表示被捕食的风险较大,该位置的麻雀将快速转移;否则可扩大搜索范围。In the formula,
Figure BDA0003898880160000114
Indicates the position of the sparrow unit, i is a positive integer from 1 to P, j is a positive integer from 1 to d, P is the total population, d is the feature data dimension, α is a random number between 0 and 1, and it max is the maximum iteration The number of times, R 2 is the warning value, ST is the safety value, Q is the random number, and E is a 1×d matrix of all 1s; when R 2 ≥ ST, it means that the risk of being predated is high, and the sparrow at this position will move quickly ; Otherwise, the search range can be expanded.

当发现者寻到较好的食物时,就会有加入者进行抢夺。若成功则发现者位置改变,否者加入者的位置改变。When the finder finds better food, there will be joiners to snatch it. If successful, the position of the discoverer changes, otherwise the position of the joiner changes.

加入者位置的更新公式为:The update formula for the joiner position is:

Figure BDA0003898880160000115
Figure BDA0003898880160000115

式中,

Figure BDA0003898880160000116
Figure BDA0003898880160000117
分别代表全局最不利和最有利的位,A+是A的广义逆矩阵,A表示1×d的矩阵,其中元素随机预设为1或-1;当i>n/2时,表示跟随者抢夺食物失败,需进行转移。In the formula,
Figure BDA0003898880160000116
and
Figure BDA0003898880160000117
Represent the most unfavorable and most advantageous bits in the world respectively, A + is the generalized inverse matrix of A, and A represents a 1×d matrix, in which elements are randomly preset to 1 or -1; when i>n/2, it means a follower Failed to snatch food, need to transfer.

警戒者位置的更新公式为:The update formula for the vigilante's position is:

Figure BDA0003898880160000118
Figure BDA0003898880160000118

式中,

Figure BDA0003898880160000119
表示当局最有利位置;γ为标准正态随机数,代表步长控制系数;k是-1到1的随机数,代表麻雀的方向;fg表示当局适应度最大值,fw和fg相反,ε是一个常数,以确保分母不为0;fi表示第i个麻雀的适应度值。In the formula,
Figure BDA0003898880160000119
Indicates the most favorable position of the authority; γ is a standard normal random number, representing the step control coefficient; k is a random number from -1 to 1, representing the direction of the sparrow; f g represents the maximum fitness of the authority, and f w is opposite to f g , ε is a constant to ensure that the denominator is not 0; f i represents the fitness value of the i-th sparrow.

步骤5.2.6、获得当前更新后的位置,计算获得最优个体以及最佳适应度值。Step 5.2.6, obtain the current updated position, calculate and obtain the optimal individual and the optimal fitness value.

步骤5.2.7、当训练后的结果达到设定的参数时,停止计算,执行输出参数(C,σ),否则,返回步骤5.2.4重新计算适应度值。Step 5.2.7. When the training result reaches the set parameter, stop the calculation and execute the output parameter (C, σ), otherwise, return to step 5.2.4 to recalculate the fitness value.

步骤5.2.8、根据参数(C,σ)建立估计模型,输出估计的SOH。Step 5.2.8. Establish an estimation model according to the parameters (C, σ), and output the estimated SOH.

SSA-SVR模型的建模流程图如图3所示。The modeling flowchart of the SSA-SVR model is shown in Figure 3.

为验证本发明所提方法的优越性,选取以下三种方法结合实际SOH进行比较,方法一:为本发明所提方法,包含SG滤波优化特征,并采用SSA优化SVR的超参数。方法二:包含SG滤波,但是不采用SSA优化SVR的超参数。方法三:采用SSA优化超参数,但是并不包括SG滤波。方法二的存在是为了验证利用SSA优化超参数的优越性,方法三的存在是为了验证采用SG滤波优化特征方法的有效性。本发明利用NASA数据集中的B0005、B0007两块电池进行实验。以电池全寿命周期的60%作为训练集,其余用于测试,B0005、B0007电池的预测起点为101。B0005与B0007电池的不同方法的预测结果对比图如图4和图5所示。In order to verify the superiority of the method proposed in the present invention, the following three methods are selected for comparison with the actual SOH. Method 1: The method proposed in the present invention includes SG filter optimization features, and SSA is used to optimize the hyperparameters of SVR. Method 2: Include SG filtering, but do not use SSA to optimize the hyperparameters of SVR. Method 3: Use SSA to optimize hyperparameters, but does not include SG filtering. The existence of method two is to verify the superiority of using SSA to optimize hyperparameters, and the existence of method three is to verify the effectiveness of using SG filter optimization feature method. The present invention utilizes two batteries B0005 and B0007 in the NASA data set to carry out experiments. 60% of the battery life cycle is used as the training set, and the rest is used for testing. The prediction starting point of the B0005 and B0007 batteries is 101. The comparison charts of the prediction results of different methods for B0005 and B0007 batteries are shown in Figure 4 and Figure 5.

综上,本发明基于SSA-SVR模型估计锂离子电池的健康状态,从充电电压、电流曲线片段中提取出的4种特征与SOH具有极高的相关性,奠定了模型高精度预测的基础。针对从充电电流片段中提取的带有噪声影响的两个特征,采用SG滤波进行优化。实验结果表明,该方法可使模型误差降低50%以上。采用SSA对SVR模型的参数进行全局寻优,同样可使误差降低50%以上,有效地提高了模型的精度与泛化能力。In summary, the present invention estimates the state of health of lithium-ion batteries based on the SSA-SVR model, and the four features extracted from charging voltage and current curve segments have a high correlation with SOH, laying the foundation for high-precision prediction of the model. For the two features extracted from the charging current segment with noise influence, SG filtering is used for optimization. Experimental results show that this method can reduce the model error by more than 50%. Using SSA to optimize the parameters of the SVR model globally can also reduce the error by more than 50%, effectively improving the accuracy and generalization ability of the model.

应当理解的是,本发明的上述具体实施方式仅仅用于示例性说明或解释本发明的原理,而不构成对本发明的限制。因此,在不偏离本发明的精神和范围的情况下所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。此外,本发明所附权利要求旨在涵盖落入所附权利要求范围和边界、或者这种范围和边界的等同形式内的全部变化和修改例。It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principle of the present invention, and not to limit the present invention. Therefore, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present invention shall fall within the protection scope of the present invention. Furthermore, it is intended that the appended claims of the present invention embrace all changes and modifications that come within the scope and metesques of the appended claims, or equivalents of such scope and metes and bounds.

Claims (10)

1. A lithium ion battery SOH estimation method based on an SSA-SVR model is characterized by comprising the following steps:
step 1, data acquisition: carrying out charging and discharging on the lithium ion battery for multiple times, and recording current, voltage and time data of the lithium ion battery in the charging and discharging process and the capacity of complete discharging in each time;
step 2, health feature extraction: extracting four health characteristics from the voltage and current data segments in the charging process, namely a charged voltage value, a charged current value, the charging duration of the voltage data segment and the charging duration of the current data segment;
step 3, constructing a feature processing model based on Savitzky-Golay filtering: selecting a Savitzky-Golay filtering algorithm to process the extracted health characteristics, eliminating messy fluctuation of the health characteristics caused by the influence of the charging data on the drift noise of the sensor, and constructing a characteristic processing model;
step 4, constructing a training set and a prediction set by taking a matrix F = [ F1, F2, F3, F4] formed by the extracted and processed health characteristics as input and the SOH of the battery as output;
and 5, constructing an SSA-SVR model: and constructing a reference SVR model, optimizing the hyper-parameters of the SVR model by adopting a sparrow search algorithm based on the training set, constructing an SOH estimation model, and outputting the estimated SOH.
2. The method for estimating the SOH of the lithium ion battery based on the SSA-SVR model according to claim 1, wherein the step 2 comprises:
step 2.1, extracting a voltage data segment [ V ] in the charging process a ,V b ]Is the first healthy feature F1, the feature F1 is calculated using equation (1):
F1=t b -t a (1)
in the formula, t a For voltage rising to V a Corresponding charging time, t b For voltage rising to V b Corresponding charging time.
3. The method for estimating the SOH of the lithium ion battery based on the SSA-SVR model according to claim 2, wherein the step 2 further comprises:
step 2.2, extracting a current data segment [ I ] in the charging process c ,I d ]Is the second healthy feature F2, the feature F2 is calculated using equation (2):
F2=t d -t c (2)
in the formula, t c For the current to drop to I c Corresponding charging time, t d For the current to drop to I d Corresponding charging time.
4. The method for estimating the SOH of the lithium ion battery based on the SSA-SVR model according to claim 3, wherein said step 2 further comprises:
step 2.3, extracting the secondary voltage V in the constant current charging process e As a starting point of the time counting, charging t e The voltage value after the time is taken as a third healthy feature F3, and the feature F3 is calculated by using equation (3):
F3=V e +ΔV e (3)
wherein, is Δ V e Is t e The voltage value that changes during the charging time.
5. The method for estimating SOH of a lithium ion battery based on SSA-SVR model according to claim 4, wherein the step 2 further comprises:
step 2.4, extracting the secondary current I in the constant voltage charging process f As a starting point of time counting, charging t f The current value after the time is taken as a fourth healthy feature F4, and the feature F4 is calculated by equation (4):
F4=I f +ΔI f (4)
wherein, delta I f Is t f The current value that varies during the charging time.
6. The method for estimating the SOH of the lithium ion battery based on the SSA-SVR model according to claim 1, wherein said step 3 comprises:
step 3.1, calculating the correlation between the extracted 4 health characteristic quantities and the target quantity SOH by using the formula (5):
Figure FDA0003898880150000021
in the formula, X and Y are respectively a health characteristic and an SOH sample.
7. The method for estimating SOH of a lithium ion battery based on SSA-SVR model according to claim 6, wherein the step 3 further comprises:
step 3.2, constructing a feature processing model by adopting a Savitzky-Golay filter, wherein the feature processing model is determined by a polynomial order N and a window length L =2M +1, and M represents the absolute value of the maximum and minimum measurement point coordinates in a measurement window; for data for each measurement point of (-M, -M + 1.., 0,1.., M-1,M), processing is performed using equations (6), (7), and (8):
Figure FDA0003898880150000022
Figure FDA0003898880150000023
Figure FDA0003898880150000024
in which p (n) is a limiting polynomial, a k Coefficient, epsilon, representing a polynomial term N For the residual of the least squares fit, x [ n ]]And (4) solving the equation set obtained in the step (8) to obtain the optimal polynomial coefficient.
8. The method for estimating SOH of a lithium ion battery based on SSA-SVR model according to claim 7, wherein the step 3 further comprises:
step 3.3, setting a threshold value to be 0.97, and when the Pearson correlation coefficient between the health characteristic quantity and the SOH is larger than the set threshold value, not activating the characteristic processing model, and directly estimating the SOH by using the original aging characteristic; and when the Pearson correlation coefficient between the health characteristic quantity and the SOH is smaller than a set threshold value, the health characteristic is greatly influenced by the drift noise of the sensor, and the health characteristic is processed to improve the correlation between the health characteristic and the target quantity.
9. The method for estimating SOH of a lithium ion battery based on SSA-SVR model according to claim 1, wherein the step 5 comprises:
step 5.1, constructing a reference SVR model
S={x i ,y i |x i ∈R m ,y i ∈R};i=1,2,…,T (9)
In the formula, x i Is the feature vector of the ith sample, y i Is the corresponding regression value, T is the number of samples, and m is the dimension of the feature vector;
the SVR function is defined as:
f(x)=ωΦ(x)+b (10)
in the formula, f (x) is output, Φ (x) is a nonlinear mapping function, ω, b are parameters to be determined, and the following objective function is minimized to solve ω and b:
Figure FDA0003898880150000031
wherein C is a penalty coefficient, f (x) i ) Is the predicted value of the ith sample, and epsilon represents the maximum error allowed by regression and is defined as:
|y-f(x)| ε =max{0,|y-f(x)|-ε} (12)
introducing a relaxation variable xi i And
Figure FDA0003898880150000036
then, it is transformed into the following objective function:
Figure FDA0003898880150000032
and (3) constraint:
Figure FDA0003898880150000033
equation (10) is converted to solve the dual problem:
Figure FDA0003898880150000034
in the formula, beta i And
Figure FDA0003898880150000035
for Lagrangian, K (x) i ,x j ) Selecting an RBF kernel function with strong linear approximation capability as a kernel function, and defining the RBF kernel function as follows:
Figure FDA0003898880150000041
where σ is the width of the kernel function;
and 5.2, optimizing the parameters of the SVR model by adopting a sparrow search algorithm, constructing an SOH estimation model, and outputting the estimated SOH.
10. The method for estimating SOH of a lithium ion battery based on SSA-SVR model according to claim 9, wherein the step 5.2 comprises:
step 5.2.1, normalizing the sample data by using the formula (17), wherein the normalized data is divided into a training set and a testing set,
Figure FDA0003898880150000042
in the formula, Y and Y' are sample characteristic values before and after the normalization of the training data respectively, Y min And Y max Respectively representing the minimum value and the maximum value before normalization in the sample characteristic data;
step 5.2.2, setting parameters of a sparrow searching algorithm;
step 5.2.3, setting the value ranges of the penalty coefficient C and the kernel function parameter sigma, and initializing a population;
and 5.2.4, training an SVR model by using the training set, and calculating the fitness value of each sparrow by using a formula (18):
Figure FDA0003898880150000043
in the formula (I), the compound is shown in the specification,
Figure FDA0003898880150000044
is the predicted value of the nth training sample, Y n Is the true value of the nth training sample, N tr The number of training samples;
step 5.2.5, calculating and respectively updating the positions of the finder, the joiner and the alertness according to the formulas (19) - (21);
the finder location update formula is:
Figure FDA0003898880150000045
in the formula (I), the compound is shown in the specification,
Figure FDA0003898880150000046
representing the position of a sparrow monomer, i is a positive integer from 1 to P, j is a positive integer from 1 to d, P is the total number of the population, d is the dimension of characteristic data, alpha is a random number between 0 and 1, it max For maximum number of iterations, R 2 Is an early warning value, ST is a safety value, Q is a random number, and E is a 1 × d all-1 matrix; when R is 2 ST ≧ represents that the risk of being prey is greater, and the sparrow at that position will be rapidly transferred; otherwise, the searching range can be expanded;
the update formula of the subscriber location is:
Figure FDA0003898880150000051
in the formula (I), the compound is shown in the specification,
Figure FDA0003898880150000052
and
Figure FDA0003898880150000053
representing the global least favorable and most favorable bits, A, respectively + Is a generalized inverse of A, A representing a 1 × d matrix, where the elements are randomly preset to 1 or-1; when i is more than n/2, the follow-up person fails to snatch food and needs to transfer;
the updated formula for the position of the alert is:
Figure FDA0003898880150000054
in the formula (I), the compound is shown in the specification,
Figure FDA0003898880150000055
indicating the most favorable position of the authorities; gamma is a standard normal random number and represents a step length control coefficient; k is a random number from-1 to 1, representing the orientation of a sparrow; f. of g Represents the maximum value of the fitness of the authority, f w And f g Conversely, ε is a constant to ensure that the denominator is not 0; f. of i Representing the fitness value of the ith sparrow;
step 5.2.6, obtaining the current updated position, and calculating to obtain the optimal individual and the optimal fitness value;
5.2.7, when the result after training reaches the set parameter, stopping calculation, and executing output parameter (C, σ), otherwise, returning to 5.2.4 to recalculate the fitness value;
and 5.2.8, establishing an estimation model according to the parameters (C, sigma) and outputting the estimated SOH.
CN202211283073.7A 2022-10-20 2022-10-20 A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model Pending CN115684972A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211283073.7A CN115684972A (en) 2022-10-20 2022-10-20 A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211283073.7A CN115684972A (en) 2022-10-20 2022-10-20 A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model

Publications (1)

Publication Number Publication Date
CN115684972A true CN115684972A (en) 2023-02-03

Family

ID=85065851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211283073.7A Pending CN115684972A (en) 2022-10-20 2022-10-20 A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model

Country Status (1)

Country Link
CN (1) CN115684972A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116953554A (en) * 2023-07-25 2023-10-27 国网江苏省电力有限公司镇江供电分公司 Multi-fragment data-based method and device for estimating SOH of lithium battery of energy storage power station
CN118980954A (en) * 2024-08-01 2024-11-19 昆明理工大学 A SOH estimation method for lithium-ion batteries based on impedance feature selection and optimized support vector regression
CN119783988A (en) * 2025-03-10 2025-04-08 湘江实验室 A regional short-term carbon emission prediction method and related equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116953554A (en) * 2023-07-25 2023-10-27 国网江苏省电力有限公司镇江供电分公司 Multi-fragment data-based method and device for estimating SOH of lithium battery of energy storage power station
CN118980954A (en) * 2024-08-01 2024-11-19 昆明理工大学 A SOH estimation method for lithium-ion batteries based on impedance feature selection and optimized support vector regression
CN118980954B (en) * 2024-08-01 2025-06-13 昆明理工大学 A SOH estimation method for lithium-ion batteries based on impedance feature selection and optimized support vector regression
CN119783988A (en) * 2025-03-10 2025-04-08 湘江实验室 A regional short-term carbon emission prediction method and related equipment

Similar Documents

Publication Publication Date Title
CN110221225B (en) Spacecraft lithium ion battery cycle life prediction method
CN111103544B (en) Lithium ion battery remaining service life prediction method based on long-time and short-time memory LSTM and particle filter PF
CN115684972A (en) A Lithium-ion Battery SOH Estimation Method Based on SSA-SVR Model
CN113917337A (en) Battery state of health estimation method based on charging data and LSTM neural network
CN110058178A (en) A kind of lithium battery method for detecting health status and system
CN112630662B (en) Power battery SOH estimation method based on data driving and multi-parameter fusion
CN113219343A (en) Lithium battery health state prediction method, system, equipment and medium based on elastic network
CN113740736A (en) Electric vehicle lithium battery SOH estimation method based on deep network self-adaptation
CN113109715B (en) Battery Health Prediction Method Based on Feature Selection and Support Vector Regression
CN112989690B (en) A multi-time scale state of charge estimation method for lithium batteries in hybrid electric vehicles
CN114280490B (en) Lithium ion battery state of charge estimation method and system
CN112858918B (en) Power lithium ion battery health state online estimation method based on optimization multi-factor
CN115684971A (en) Lithium ion battery health state estimation method based on fragment multi-charging feature fusion
CN111679199A (en) Method and device for estimating SOC of lithium ion battery
CN114545275B (en) An indirect prediction method for the remaining service life of lithium-ion batteries
CN114397577A (en) New energy automobile lithium battery health state assessment method based on ASTUKF-GRA-LSTM model
CN115389946B (en) Lithium battery health state estimation method based on equal voltage rising energy and GRU improvement
Poh et al. A review of machine learning applications for Li-Ion battery State estimation in electric vehicles
CN119029350B (en) Battery control method and system
CN116953547A (en) Energy storage battery health assessment method, system, equipment and storage medium
CN117647741A (en) Lithium ion battery SOC and SOH joint estimation method and device
CN118501712A (en) Model and data fusion lithium battery state parameter estimation method and system
CN116774045A (en) A lithium battery health status prediction method based on HHO-SVR
CN118980954B (en) A SOH estimation method for lithium-ion batteries based on impedance feature selection and optimized support vector regression
CN114415041A (en) Battery remaining capacity estimation method, device and terminal equipment

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