CN117452261A - A method for predicting cycle life of lithium batteries - Google Patents
A method for predicting cycle life of lithium batteries Download PDFInfo
- Publication number
- CN117452261A CN117452261A CN202311405766.3A CN202311405766A CN117452261A CN 117452261 A CN117452261 A CN 117452261A CN 202311405766 A CN202311405766 A CN 202311405766A CN 117452261 A CN117452261 A CN 117452261A
- Authority
- CN
- China
- Prior art keywords
- data
- convolution
- dimensional
- cycle life
- battery
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 title claims abstract description 33
- 229910052744 lithium Inorganic materials 0.000 title claims abstract description 33
- 230000008569 process Effects 0.000 claims abstract description 53
- 238000004364 calculation method Methods 0.000 claims abstract description 31
- 238000003384 imaging method Methods 0.000 claims abstract description 25
- 238000012549 training Methods 0.000 claims abstract description 18
- 238000002474 experimental method Methods 0.000 claims abstract description 15
- 238000002679 ablation Methods 0.000 claims abstract description 10
- 239000011159 matrix material Substances 0.000 claims description 26
- 238000009826 distribution Methods 0.000 claims description 24
- 230000003993 interaction Effects 0.000 claims description 19
- 238000011176 pooling Methods 0.000 claims description 19
- 238000012360 testing method Methods 0.000 claims description 11
- 239000013598 vector Substances 0.000 claims description 11
- 230000015556 catabolic process Effects 0.000 claims description 9
- 238000006731 degradation reaction Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 claims description 9
- 230000004913 activation Effects 0.000 claims description 8
- 230000008859 change Effects 0.000 claims description 8
- 238000007599 discharging Methods 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 8
- 238000005070 sampling Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 claims description 7
- 238000012795 verification Methods 0.000 claims description 7
- 230000004927 fusion Effects 0.000 claims description 6
- 238000010606 normalization Methods 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 4
- 238000013135 deep learning Methods 0.000 claims description 4
- 238000013507 mapping Methods 0.000 claims description 4
- 238000000926 separation method Methods 0.000 claims description 4
- 230000000737 periodic effect Effects 0.000 claims 3
- 238000005096 rolling process Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000009466 transformation Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000011156 evaluation Methods 0.000 description 3
- 230000032683 aging Effects 0.000 description 2
- 238000013480 data collection Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 208000032953 Device battery issue Diseases 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000000875 corresponding effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 208000035475 disorder Diseases 0.000 description 1
- 238000003487 electrochemical reaction Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
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/392—Determining battery ageing or deterioration, e.g. state of health
-
- 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/396—Acquisition or processing of data for testing or for monitoring individual cells or groups of cells within a battery
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Secondary Cells (AREA)
Abstract
本发明公开了一种锂电池循环寿命预测方法,考虑了锂电池在充放电过程中的不同特性,首先,利用递归图作为时间序列成像方法,将不同周期的充电数据转换为多维数据,从放电数据中提取相关特征,并分析其与电池循环寿命的相关性;其次利用深度可分离三维卷积模型来减少参数计算并加快模型训练速度,同时引入3D通道注意力(3DCA)模块,以降低模型复杂度并增加各通道之间的交互性;最后进行消融实验,探讨不同时间序列成像方法对模型预测结果精度的影响。与现有技术相比,本发明能以更少的窗口周期准确预测循环寿命。同时消融实验结果证明,时间序列成像方法能够增加数据维度并提供更多信息,这有效地提高了模型的准确性。
The invention discloses a lithium battery cycle life prediction method, which takes into account the different characteristics of the lithium battery during the charge and discharge process. First, a recursive graph is used as a time series imaging method to convert charging data of different cycles into multi-dimensional data, from discharge to Extract relevant features from the data and analyze their correlation with battery cycle life; secondly, use a depth-separable three-dimensional convolution model to reduce parameter calculations and speed up model training, and introduce a 3D channel attention (3DCA) module to reduce the model complexity and increase the interactivity between channels; finally, an ablation experiment was conducted to explore the impact of different time series imaging methods on the accuracy of model prediction results. Compared with the existing technology, the present invention can accurately predict cycle life with fewer window periods. Simultaneous ablation experimental results prove that the time series imaging method can increase the data dimension and provide more information, which effectively improves the accuracy of the model.
Description
技术领域Technical field
本发明涉及锂电池技术领域,特别涉及一种锂电池循环寿命预测方法。The present invention relates to the technical field of lithium batteries, and in particular to a method for predicting the cycle life of lithium batteries.
背景技术Background technique
锂电池因其使用寿命长、能量密度高而被广泛应用于许多领域。然而,电池的寿命一般受到电池运行和环境条件的影响,如充电速率、运行时的电压、电流和温度。在电池使用期间,其性能会随着电池剩余使用寿命(RUL)的变化而下降。而且,即使是同一批次生产的锂电池,其最终的循环寿命也可能不尽相同。使用低于标准循环寿命的电池会造成安全隐患,因为电池会过早退化。因此,在电池的早期测试中,有必要对电池的循环寿命进行全面、反复的评估,以确保电池符合标准要求。但与许多复杂系统的测试一样,电池寿命测试通常需要数月甚至数年的时间,这大大增加了实验的时间成本。Lithium batteries are widely used in many fields due to their long service life and high energy density. However, battery life is generally affected by battery operating and environmental conditions, such as charging rate, operating voltage, current, and temperature. During battery use, its performance degrades as the remaining battery life (RUL) changes. Moreover, even lithium batteries produced in the same batch may have different final cycle lives. Using a battery with a substandard cycle life creates a safety hazard because the battery will degrade prematurely. Therefore, in the early testing of the battery, it is necessary to conduct a comprehensive and repeated evaluation of the battery's cycle life to ensure that the battery meets the standard requirements. But like the testing of many complex systems, battery life testing usually takes months or even years, which greatly increases the time cost of the experiment.
为了解决这一问题,提出了利用外部数据预测电池循环寿命的方法。这些方法旨在利用前期循环收集的数据来预测电池循环寿命,从而显著减少电池寿命实验所需的时间,为电池的生产和使用提供更多的机会。因此,准确预测电池循环寿命情况是电池故障预测和缩短实验时间的关键目标。To solve this problem, methods for predicting battery cycle life using external data have been proposed. These methods aim to predict battery cycle life using data collected in previous cycles, thereby significantly reducing the time required for battery life experiments and providing more opportunities for battery production and use. Therefore, accurately predicting battery cycle life is a key goal for battery failure prediction and shortening experimental time.
发明内容Contents of the invention
发明目的:针对现有技术存在的问题,本发明提供一种锂电池循环寿命预测方法,能提高循环寿命预测模型精度。Purpose of the invention: In view of the problems existing in the existing technology, the present invention provides a lithium battery cycle life prediction method, which can improve the accuracy of the cycle life prediction model.
技术方案:本发明提出一种锂电池循环寿命预测方法,包括以下步骤:Technical solution: The present invention proposes a lithium battery cycle life prediction method, which includes the following steps:
步骤1:采集锂电池循环寿命数据并对数据进行划分;对于充电过程的电压、电流、温度VIT数据,采用深度学习方法自动提取特征,利用递归图RP将充电过程中的一维VIT数据分别转化为三个二维矩阵,并将这些二维矩阵在深度方向拼接形成一个三维矩阵;Step 1: Collect lithium battery cycle life data and divide the data; for the voltage, current, and temperature VIT data during the charging process, use deep learning methods to automatically extract features, and use the recursive graph RP to transform the one-dimensional VIT data during the charging process respectively. are three two-dimensional matrices, and these two-dimensional matrices are spliced in the depth direction to form a three-dimensional matrix;
步骤2:分析放电过程的增量容量(Incremental Capacity,IC)曲线和放电容量Q-V曲线,引入地球移动距离EMD来计算电池在不同循环间的曲线变化情况,最终从曲线中提取关键放电特征并观察关键放电特征与电池循环寿命的相关性;Step 2: Analyze the incremental capacity (IC) curve and discharge capacity Q-V curve of the discharge process, introduce the earth's movement distance EMD to calculate the curve changes of the battery between different cycles, and finally extract the key discharge characteristics from the curve and observe Correlation of key discharge characteristics with battery cycle life;
步骤3:对于充电部分数据的建模,搭建3D深度可分离卷积模型,将不同循环下的VIT三维矩阵拼接成四维矩阵,通过深度分离卷积和逐点卷积减小参数的计算量,并引入3D通道注意力模块来加强VIT通道之间的数据交互,以保证在不增加模型训练参数的情况下达到部分通道间的交互;Step 3: For the modeling of the charging part data, build a 3D depth-separable convolution model, splice the VIT three-dimensional matrix under different cycles into a four-dimensional matrix, and reduce the calculation amount of parameters through depth separation convolution and point-by-point convolution. And the 3D channel attention module is introduced to strengthen the data interaction between VIT channels to ensure that the interaction between some channels can be achieved without increasing the model training parameters;
步骤4:对于放电部分数据的建模,搭建CBR层和MP层对数据进行卷积和池化操作;所述CBR层结构由卷积层、批归一化层和ReLU激活层构成;所述MP层结构由一个最大池化层和几个不同步幅的卷积层组成,其中最大池化层和步长为2的卷积层将通道数减半,并在拼接后保持输入输出通道数不变;Step 4: For the modeling of the discharge part data, build a CBR layer and an MP layer to perform convolution and pooling operations on the data; the CBR layer structure consists of a convolution layer, a batch normalization layer and a ReLU activation layer; the The MP layer structure consists of a maximum pooling layer and several convolutional layers with different strides. The maximum pooling layer and the convolutional layer with a stride of 2 reduce the number of channels by half and maintain the number of input and output channels after splicing. constant;
步骤5:将充电过程和放电过程模型输出的特征向量进行特征融合,并最终输出为锂电池循环寿命预测结果,最后进行消融实验以验证时间序列成像方法的有效性。Step 5: Feature fusion is performed on the feature vectors output by the charging process and discharging process models, and the final output is the lithium battery cycle life prediction result. Finally, an ablation experiment is performed to verify the effectiveness of the time series imaging method.
进一步地,所述步骤1中对采集到的两个锂电池数据集进行划分并利用RP图提取充电过程的VIT数据特征,包括如下步骤:Further, in step 1, the two collected lithium battery data sets are divided and the RP diagram is used to extract the VIT data characteristics of the charging process, including the following steps:
步骤1.1:在数据采集过程中去除问题电池后,将两个数据集分别按照一定比例划分为训练集、验证集和测试集;Step 1.1: After removing problematic batteries during the data collection process, divide the two data sets into training sets, verification sets and test sets according to a certain proportion;
步骤1.2:根据循环次数将两个数据集划分为多个区间,并将每个区间的训练数据、验证数据和测试数据按比例划分;Step 1.2: Divide the two data sets into multiple intervals according to the number of cycles, and divide the training data, verification data and test data of each interval in proportion;
步骤1.3:将电池充电过程中的电压、电流和温度视为容量比的函数,这些数据由不同周期的一维数据组成;RP图作为一种时间序列成像方法,将不同充电周期之间的充电数据转换为多维图像,从而获得更完整的锂电池退化信息;Step 1.3: The voltage, current and temperature during battery charging are regarded as functions of capacity ratio. These data are composed of one-dimensional data of different cycles; RP chart is a time series imaging method that combines the charging between different charging cycles. Data is converted into multi-dimensional images to obtain more complete lithium battery degradation information;
步骤1.4:RP图的计算原理如下:对于具有采样时间间隔Δt,长度为n的时间序列uk(k=1,2,...,n),在嵌入维数m和延迟时间τ后重构该时间序列,重构表达式为xi=(ui,ui+τ,...,ui+(m-1)τ),i=1,2,...,n-(m-1)τ,则重构空间中第i个和第j个数据点xi与xj之间的欧几里得距离sij表示为式(1):Step 1.4: The calculation principle of the RP diagram is as follows: for a time series u k (k=1,2,...,n) with a sampling time interval Δt and a length n, re-embed the dimension m and the delay time τ To construct this time series, the reconstructed expression is x i =(u i ,u i+τ ,...,u i+(m-1)τ ),i=1,2,...,n-(m -1)τ, then the Euclidean distance s ij between the i-th and j-th data points x i and x j in the reconstruction space is expressed as formula (1):
sij=||xi-xj||,i,j=1,2,...,n-(m-1)τ (1)s ij =||x i -x j ||,i,j=1,2,...,n-(m-1)τ (1)
然后计算递归值R(i,j):Then calculate the recursion value R(i,j):
R(i,j)=H(εi-sij),i,j=1,2,...,n (2)R(i,j)=H(ε i -s ij ),i,j=1,2,...,n (2)
式中,εi为阈值,随i固定或改变,H(x)代表Heaviside函数;In the formula, ε i is the threshold, which is fixed or changed with i, and H(x) represents the Heaviside function;
步骤1.5:将电池充电过程中的一维时间序列数据通过RP图成像方法转化为二维电压、电流、温度RP-VIT数据。Step 1.5: Convert the one-dimensional time series data during the battery charging process into two-dimensional voltage, current, and temperature RP-VIT data through the RP chart imaging method.
进一步地,所述步骤2中对于电池放电过程的特征提取,其步骤包括:Further, the steps for feature extraction of the battery discharge process in step 2 include:
步骤2.1:根据增量容量(Incremental Capacity,IC)分析方法得到IC曲线特征,IC由下式(3)计算:Step 2.1: Obtain the IC curve characteristics according to the Incremental Capacity (IC) analysis method. IC is calculated by the following formula (3):
式中,Q为当前状态下的电池容量,V为电压,I为放电电流,t为采样时间,IC为步进比电压dQ/dV,随着电压阶跃窗的移动,得到增量容量与电压之间的完整关系;In the formula, Q is the battery capacity in the current state, V is the voltage, I is the discharge current, t is the sampling time, IC is the step ratio voltage dQ/dV, as the voltage step window moves, the incremental capacity and The complete relationship between voltages;
步骤2.2:根据放电电压在周期i与周期j之间的变化曲线,表示为ΔQi-j(V)=Qi(V)-Qj(V),其中,i和j都表示循环次数,其和的值相差越大,则曲线ΔQi-j(V)越明显;Step 2.2: According to the variation curve of the discharge voltage between period i and period j, it is expressed as ΔQ ij (V) = Q i (V)-Q j (V), where i and j both represent the number of cycles, and their sum The greater the difference in values, the more obvious the curve ΔQ ij (V) will be;
步骤2.3:引入地球移动距离EMD来测量相邻两个周期ΔQ(V)曲线之间的差值。Step 2.3: Introduce the earth moving distance EMD to measure the difference between two adjacent period ΔQ(V) curves.
进一步地,所述步骤2.3中地球移动距离EMD测量相邻两个周期ΔQ(V)曲线之间的差值,其计算步骤如下:Further, in step 2.3, the earth moving distance EMD measures the difference between two adjacent period ΔQ(V) curves, and the calculation steps are as follows:
步骤2.3.1:EMD距离的定义为从一个分布P转换到另一个分布Q的最小成本的估计;Step 2.3.1: The EMD distance is defined as the estimate of the minimum cost of converting from one distribution P to another distribution Q;
步骤2.3.2:W(P,Q)表示两个概率分布之间的EMD,定义如下:Step 2.3.2: W(P,Q) represents the EMD between two probability distributions, which is defined as follows:
W(P,Q)=infγ∈Π(P,Q)E(x,y)~γ[||x-y||] (4)W(P,Q)=inf γ∈Π(P,Q) E (x,y)~γ [||xy||] (4)
式中,inf表示取所有可能的联合概率分布Π(P,Q)的下确界,γ为联合分布,Π(P,Q)为P和Q的所有联合分布的集合,P和Q为相邻两个周期IC曲线的分布,||x-y||为样本x与y间的距离,E(x,y)~γ[||x-y||]为距离期望;In the formula, inf means taking the lower bound of all possible joint probability distributions Π(P,Q), γ is the joint distribution, Π(P,Q) is the set of all joint distributions of P and Q, and P and Q are phases. The distribution of IC curves of two adjacent periods, ||xy|| is the distance between sample x and y, E (x, y) ~ γ [||xy||] is the distance expectation;
步骤2.3.3:距离期望的计算公式如下:Step 2.3.3: The calculation formula of distance expectation is as follows:
式中,i和j表示两个不同的周期,P(i,j)表示周期i和j的IC曲线的分布。In the formula, i and j represent two different periods, and P (i, j) represents the distribution of the IC curves of periods i and j.
进一步地,所述步骤3中搭建3D深度可分离卷积模型对充电部分数据建模,其步骤包括:Further, in step 3, a 3D depth separable convolution model is built to model the charging part data. The steps include:
步骤3.1:对于一个充电周期,利用RP成像方法将VIT数据转换为RP-VIT数据,将不同循环下的多个VIT三维矩阵拼接成一个四维矩阵;Step 3.1: For one charging cycle, use the RP imaging method to convert VIT data into RP-VIT data, and splice multiple VIT three-dimensional matrices under different cycles into a four-dimensional matrix;
步骤3.2:利用三维卷积对得到的四维矩阵进行特征提取,其特征映射的计算公式为:Step 3.2: Use three-dimensional convolution to extract features from the four-dimensional matrix. The calculation formula of the feature map is:
式中,Wout×Hout×Cout和Win×Hin×Cin分别表示图像输出和输入时的宽度、高度和通道数,w×h×c表示卷积核的大小,s表示步幅,p表示填充值,k表示扫描次数,卷积过程中的参数个数为(w×h×c+1)×k;In the formula, W out ×H out ×C out and W in ×H in ×C in represent the width, height and number of channels at image output and input respectively, w × h × c represents the size of the convolution kernel, and s represents the step. Amplitude, p represents the filling value, k represents the number of scans, and the number of parameters in the convolution process is (w×h×c+1)×k;
步骤3.3:采用深度可分离三维卷积降低模型训练的难度,并减少卷积计算量,将每个充电周期的特征图分成一组,分别在组内进行卷积运算,组内的卷积核生成特征图;Step 3.3: Use depth-separable three-dimensional convolution to reduce the difficulty of model training and reduce the amount of convolution calculations. Divide the feature maps of each charging cycle into a group, and perform convolution operations within the group. The convolution kernel in the group Generate feature maps;
步骤3.4:在深度卷积之后增加一个逐点卷积层,逐点卷积运算与常规卷积运算类似,其卷积核大小为1×1×n,其中n表示三维矩阵的深度方向,即第一个n循环的充电周期;逐点卷积计算将在深度方向上对前一步的图进行加权组合,生成新的特征图,并使用多个卷积核生成多个特征图;Step 3.4: Add a point-by-point convolution layer after the depth convolution. The point-by-point convolution operation is similar to the conventional convolution operation. The convolution kernel size is 1×1×n, where n represents the depth direction of the three-dimensional matrix, that is The first n-cycle charging cycle; point-by-point convolution calculation will weight the previous step's map in the depth direction to generate a new feature map, and use multiple convolution kernels to generate multiple feature maps;
步骤3.5:引入3D通道注意力(3D Channel Attention,3DCA)模块来学习这些特征,3DCA模块根据输入数据与电池循环寿命的相关性,从特征图中突出显示与循环寿命相关的特定区域,并结合注意力层检测输入数据中不同通道特征的显著性;Step 3.5: Introduce the 3D Channel Attention (3DCA) module to learn these features. The 3DCA module highlights the specific areas related to the cycle life from the feature map based on the correlation between the input data and the battery cycle life, and combines The attention layer detects the saliency of different channel features in the input data;
步骤3.6:在3DCA层之后增加3D全局平均池化(3D Global Average Pooling,3DGAP)层;其中3DGAP就是3D下的平均池化。Step 3.6: Add a 3D Global Average Pooling (3DGAP) layer after the 3DCA layer; 3DGAP is the average pooling in 3D.
进一步地,所述步骤3.5中多通道三维卷积的通道注意力3DCA模块的具体计算过程如下:Further, the specific calculation process of the channel attention 3DCA module of the multi-channel three-dimensional convolution in step 3.5 is as follows:
步骤3.5.1:首先,考虑到聚合特征y(y∈RC),在充电过程中,通过以下公式来描述:Step 3.5.1: First, considering the aggregated feature y (y∈R C ), during the charging process, it is described by the following formula:
ω=σ(Wky) (7)ω=σ(W k y) (7)
式中Wk为k×C的参数矩阵,ω为权值,σ为激活函数;In the formula, W k is the parameter matrix of k×C, ω is the weight, and σ is the activation function;
步骤3.5.2:仅考虑yi与其相邻节点k之间的相互作用来计算的权值ωi,则其权值改写为:Step 3.5.2: Calculate the weight ω i by only considering the interaction between y i and its adjacent node k, then its weight is rewritten as:
式中为相邻通道yi的集合k,所有通道共享相同的学习参数,通过一个具有k核大小的1×1×1卷积核来实现,即:in the formula is the set k of adjacent channels yi , all channels share the same learning parameters, which is implemented by a 1×1×1 convolution kernel with k kernel size, that is:
ω=σ(Convk(y)) (10)ω=σ(Conv k (y)) (10)
式中Convk表示核大小为1的三维卷积;In the formula, Conv k represents a three-dimensional convolution with a kernel size of 1;
步骤3.5.3:通道之间的交互程度通过改变k的大小来调整,内核k的大小由下式自适应地确定:Step 3.5.3: The degree of interaction between channels is adjusted by changing the size of k. The size of kernel k is adaptively determined by:
式中,c表示通道数,|a|odd表示距离a最近的奇数距离,通过非线性映射ψ,高维通道具有较长的距离相互作用,而低维通道具有较短的距离相互作用。In the formula, c represents the number of channels, |a| odd represents the nearest odd distance from a. Through nonlinear mapping ψ, high-dimensional channels have longer distance interactions, while low-dimensional channels have shorter distance interactions.
进一步地,所述步骤5中将充电过程和放电过程模型输出的特征向量进行特征融合,并最终输出为锂电池循环寿命预测结果,具体实现步骤为:Further, in step 5, the feature vectors output by the charging process and discharging process models are feature fused, and the final output is the lithium battery cycle life prediction result. The specific implementation steps are:
步骤5.1:通过全连接层将不同维度的特征转换为一维特征向量,并将其拼接,形成最终的新的特征矩阵;Step 5.1: Convert the features of different dimensions into one-dimensional feature vectors through the fully connected layer, and splice them to form the final new feature matrix;
步骤5.2:对电池循环寿命进行预测,将电池的窗口周期拆分为前n个充电周期nf和最近m个充电周期ml,从而完成电池的循环寿命预测,最后进行消融实验以验证时间序列成像方法的有效性。Step 5.2: Predict the battery cycle life, split the battery window period into the first n charging cycles n f and the latest m charging cycles m l to complete the battery cycle life prediction, and finally conduct an ablation experiment to verify the time series Effectiveness of Imaging Methods.
有益效果:Beneficial effects:
1、本发明提出了一种考虑充放电过程的深度可分离三维卷积网络模型融合通道注意力(DS-3DCA-CNN)模型,用于锂电池寿命预测。首先,利用递归图作为时间序列成像方法,将不同周期的充电数据转换为多维数据;从放电数据中提取相关特征,并分析其与电池循环寿命的相关性。其次,利用深度可分三维卷积来减少参数计算和加快模型训练速度,并引入3D通道注意(3DCA)模块来降低模型复杂度,同时增加各通道之间的交互性。通过分析锂电池放电过程中的增量容量曲线和电压变化曲线,推导出电池健康指标(healthindicators,HIs)退化数据。使用CNN模型通过多特征融合将这些HIs与充电过程特征整合在一起。这种全面的方法可以更彻底地描述电池老化过程。1. The present invention proposes a deep separable three-dimensional convolutional network model fused channel attention (DS-3DCA-CNN) model that takes into account the charging and discharging process for lithium battery life prediction. First, the recursive graph is used as a time series imaging method to convert the charging data of different cycles into multi-dimensional data; relevant features are extracted from the discharge data and their correlation with the battery cycle life is analyzed. Secondly, depth-separable three-dimensional convolution is used to reduce parameter calculations and speed up model training, and a 3D channel attention (3DCA) module is introduced to reduce model complexity while increasing the interactivity between channels. By analyzing the incremental capacity curve and voltage change curve during the discharge process of lithium batteries, the battery health indicators (HIs) degradation data are derived. These HIs are integrated with charging process features through multi-feature fusion using a CNN model. This comprehensive approach allows for a more thorough characterization of the battery aging process.
2、本发明提出了一种时间序列成像方法,增加充电数据的维数。将一维时间序列转换成递归图构造特征矩阵,从而获得更有效的特征。2. The present invention proposes a time series imaging method to increase the dimensionality of charging data. Convert one-dimensional time series into a recursive graph to construct a feature matrix to obtain more effective features.
3、本发明针对CNN模型参数过多、充电过程中测量值之间耦合度高的问题,提出了融合通道注意模块的深度可分离三维卷积模型(DS-3DCA-CNN),该方法减少了三维卷积过程中的参数计算,增强了各通道之间的数据交互性。3. Aiming at the problem of too many CNN model parameters and high coupling between measured values during the charging process, the present invention proposes a depth-separable three-dimensional convolution model (DS-3DCA-CNN) that fuses channel attention modules. This method reduces Parameter calculation during the three-dimensional convolution process enhances data interactivity between channels.
4、本发明提出了一种考虑充放电特征的快速预测框架,可预测不同充电协议下的电池循环寿命。通过不同的评价指标和时间序列成像消融研究验证了该方法的有效性。4. The present invention proposes a rapid prediction framework that considers charge and discharge characteristics, which can predict battery cycle life under different charging protocols. The effectiveness of this method was verified through different evaluation indicators and time series imaging ablation studies.
5、本发明基于RP成像方法以及DS-3DCA-CNN模型对多通道三维数据进行处理,能够有效预测电池在使用过程中的循环寿命,从而提前区分健康电池和不健康电池。5. The present invention processes multi-channel three-dimensional data based on the RP imaging method and the DS-3DCA-CNN model, and can effectively predict the cycle life of the battery during use, thereby distinguishing healthy batteries from unhealthy batteries in advance.
附图说明Description of the drawings
图1为本发明提供的基于放电过程的特征提取的流程示意图。Figure 1 is a schematic flow chart of feature extraction based on the discharge process provided by the present invention.
图2为本发明提供的DS-3DCA-CNN结构示意图。Figure 2 is a schematic structural diagram of the DS-3DCA-CNN provided by the present invention.
图3为本发明提供的锂电池循环寿命预测过程示意图。Figure 3 is a schematic diagram of the lithium battery cycle life prediction process provided by the present invention.
具体实施方式Detailed ways
下面结合附图对本发明进行进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings.
结合图1、图2和图3,本发明公开了一种锂电池循环寿命预测方法,将数据集按一定比例分为训练集,验证集和测试集并根据电池循环寿命将两个数据集划分为多个区间,并将每个区间的训练数据、验证数据和测试数据按比例划分。采用深度学习方法自动地从数据中提取充电过程的VIT数据的特征,具体的,通过将充电过程中的一维电压,电流和温度数据通过递归图转化为二维矩阵以提升数据信息量,并将3个二维矩阵进行深度方向拼接形成三维矩阵。对放电过程的增量容量(IC)曲线和放电容量(Q-V)曲线进行分析,并引入EMD距离来计算电池在不同循环间的曲线变化情况,从而得到EMD_IC曲线和EMD_QV曲线,从曲线中提取关键放电特征。搭建3D深度可分离卷积模型对充电部分数据的建模,通过深度分离卷积和逐点卷积来减小参数的计算量,并引入3D通道注意力模块来加强VIT通道之间的数据交互。搭建CBR层和MP层对放电部分数据的建模,其中CBR结构由卷积层、批归一化层和ReLU激活层构成,以确保网络具有一定的正则化效果,MP结构主要由一个最大池化层和几个不同步幅的卷积层组成。最后将充电过程和放电过程模型输出的特征向量进行特征融合,并最终输出为锂电池循环寿命预测结果,最后加入消融实验验证所采用的的时间序列成像方法的有效性。具体步骤如下:Combining Figure 1, Figure 2 and Figure 3, the present invention discloses a lithium battery cycle life prediction method, which divides the data set into a training set, a verification set and a test set according to a certain proportion, and divides the two data sets according to the battery cycle life. into multiple intervals, and divide the training data, validation data, and test data in each interval proportionally. The deep learning method is used to automatically extract the characteristics of VIT data during the charging process from the data. Specifically, the one-dimensional voltage, current and temperature data during the charging process are converted into a two-dimensional matrix through a recursive graph to increase the amount of data information, and Three two-dimensional matrices are spliced in the depth direction to form a three-dimensional matrix. Analyze the incremental capacity (IC) curve and discharge capacity (Q-V) curve of the discharge process, and introduce the EMD distance to calculate the curve changes of the battery between different cycles, thereby obtaining the EMD_IC curve and EMD_QV curve, and extracting key points from the curve discharge characteristics. Build a 3D depthwise separable convolution model to model the charging part of the data, reduce the calculation amount of parameters through depthwise separation convolution and point-by-point convolution, and introduce a 3D channel attention module to enhance the data interaction between VIT channels . Build a CBR layer and an MP layer to model the discharge part of the data. The CBR structure consists of a convolution layer, a batch normalization layer and a ReLU activation layer to ensure that the network has a certain regularization effect. The MP structure mainly consists of a maximum pool It consists of a layer and several convolutional layers with different strides. Finally, the feature vectors output by the charging process and discharging process models are feature fused, and the final output is the lithium battery cycle life prediction result. Finally, an ablation experiment is added to verify the effectiveness of the time series imaging method used. Specific steps are as follows:
步骤1:采集锂电池循环寿命数据并对数据进行划分。对于充电过程的电压、电流、温度(VIT)数据,采用深度学习方法自动提取特征。利用递归图(Recurrence Plots,RP)将充电过程中的一维VIT数据分别转化为三个二维矩阵以提升不同循环下的数据信息量,并将这些二维矩阵在深度方向拼接形成一个三维矩阵。Step 1: Collect lithium battery cycle life data and divide the data. For the voltage, current, and temperature (VIT) data of the charging process, deep learning methods are used to automatically extract features. Recurrence Plots (RP) are used to convert the one-dimensional VIT data during the charging process into three two-dimensional matrices to increase the amount of data information under different cycles, and these two-dimensional matrices are spliced in the depth direction to form a three-dimensional matrix. .
步骤1.1:在数据采集过程中去除部分问题电池后,将第一个140个电池的数据集按80%、10%、10%左右的比例分为训练集、验证集和测试集;对于第二个数据集,由于样本量较小,按照60%、20%和20%的比例共划分45个电池,以验证方法和所提出模型的有效性。Step 1.1: After removing some problematic batteries during the data collection process, divide the first 140-battery data set into a training set, a verification set, and a test set in proportions of about 80%, 10%, and 10%; for the second Due to the small sample size, a total of 45 batteries were divided into 45 batteries according to the ratio of 60%, 20% and 20% to verify the effectiveness of the method and the proposed model.
步骤1.2:由于两个数据集中,电池的循环寿命分布是不均匀的,大约在140到2240之间,所以在训练时模型可能会有偏差,因此,为了保证模型能够学习到平均不同循环寿命电池的特征,根据循环次数将两个数据集划分为多个区间,并将每个区间的训练数据、验证数据和测试数据按比例划分。Step 1.2: Since the battery cycle life distribution in the two data sets is uneven, approximately between 140 and 2240, the model may be biased during training. Therefore, in order to ensure that the model can learn the average battery life with different cycles Characteristics, divide the two data sets into multiple intervals according to the number of cycles, and divide the training data, verification data and test data of each interval in proportion.
步骤1.3:将电池充电过程中的电压、电流和温度视为容量比的函数,这些数据由不同周期的一维数据组成。RP图作为一种时间序列成像方法,可以将不同充电周期之间的充电数据转换为多维图像,从而获得更完整的锂电池退化信息。Step 1.3: Consider the voltage, current, and temperature during battery charging as functions of capacity ratio. These data consist of one-dimensional data at different cycles. As a time series imaging method, RP chart can convert charging data between different charging cycles into multi-dimensional images to obtain more complete lithium battery degradation information.
步骤1.4:RP图的计算原理如下:对于具有采样时间间隔Δt,长度为n的时间序列uk(k=1,2,...,n),在嵌入维数m和延迟时间τ后重构该时间序列,重构表达式为xi=(ui,ui+τ,...,ui+(m-1)τ),i=1,2,...,n-(m-1)τ。则重构空间中第i个和第j个数据点xi与xj之间的欧几里得距离sij可表示为式(1):Step 1.4: The calculation principle of the RP diagram is as follows: for a time series u k (k=1,2,...,n) with a sampling time interval Δt and a length n, re-embed the dimension m and the delay time τ To construct this time series, the reconstructed expression is x i =(u i ,u i+τ ,...,u i+(m-1)τ ),i=1,2,...,n-(m -1)τ. Then the Euclidean distance s ij between the i-th and j-th data points x i and x j in the reconstruction space can be expressed as formula (1):
sij=||xi-xj||,i,j=1,2,...,n-(m-1)τ (1)s ij =||x i -x j ||,i,j=1,2,...,n-(m-1)τ (1)
然后计算递归值R(i,j):Then calculate the recursion value R(i,j):
R(i,j)=H(εi-sij),i,j=1,2,...,n (2)R(i,j)=H(ε i -s ij ),i,j=1,2,...,n (2)
式中,εi为阈值,可随i固定或改变,H(x)代表Heaviside函数;In the formula, ε i is the threshold, which can be fixed or changed with i, and H(x) represents the Heaviside function;
步骤1.5:为了减少计算和复杂性,将充电容量分成110等份(范围0~1.1Ah),即每0.01Ah作为电压、电流和温度的一个数据采样点。这意味着总共有110个采样点作为单个充电周期的输入数据。Step 1.5: In order to reduce calculation and complexity, the charging capacity is divided into 110 equal parts (range 0~1.1Ah), that is, every 0.01Ah is used as a data sampling point for voltage, current and temperature. This means that there are a total of 110 sampling points as input data for a single charging cycle.
步骤1.6:将电池充电过程中电压循环为10,电流循环为150、300以及温度循环为450的一维时间序列数据通过RP成像方法转化为二维电压、电流、温度(RP-VIT)数据。这样能够突出数据的主要特征,为借鉴计算机视觉领域的特征提取机制提供了前提。Step 1.6: Convert the one-dimensional time series data of voltage cycle 10, current cycle 150, 300 and temperature cycle 450 into two-dimensional voltage, current, temperature (RP-VIT) data through RP imaging method during battery charging. This can highlight the main features of the data and provide a prerequisite for learning from the feature extraction mechanism in the field of computer vision.
步骤2:对于电池放电过程中的特征提取,分析放电过程的增量容量(IC)曲线和放电容量(Q-V)曲线,同时引入地球移动距离(Earth Mover's Distance,EMD距离)来计算电池在不同循环间的曲线变化情况,最终从曲线中提取了5个关键放电特征并观察了这些特征与电池循环寿命的相关性。Step 2: For feature extraction during battery discharge, analyze the incremental capacity (IC) curve and discharge capacity (Q-V) curve of the discharge process, and introduce the Earth Mover's Distance (EMD distance) to calculate the battery in different cycles Finally, five key discharge characteristics were extracted from the curve and the correlation between these characteristics and battery cycle life was observed.
步骤2.1:根据增量容量(Incremental Capacity,IC)分析方法得到IC曲线特征,该特征指示电池内部的电化学反应,反映电池的老化过程。IC可由下式(3)计算:Step 2.1: Obtain the IC curve characteristics according to the Incremental Capacity (IC) analysis method. This characteristic indicates the electrochemical reaction inside the battery and reflects the aging process of the battery. IC can be calculated by the following formula (3):
式中,Q为当前状态下的电池容量,V为电压,I为放电电流,t为采样时间,IC为步进比电压(dQ/dV)。随着电压阶跃窗的移动,可以得到增量容量与电压之间的完整关系。In the formula, Q is the battery capacity in the current state, V is the voltage, I is the discharge current, t is the sampling time, and IC is the step ratio voltage (dQ/dV). As the voltage step window moves, the complete relationship between incremental capacity and voltage can be obtained.
步骤2.2:由式(3)的变换可以看出,IC与电压对时间的导数呈负相关,说明电压变化越平缓,IC值越大。图1显示了放电过程中不同特征提取曲线。如图1(a)和(b)所示,与直接从Q-V曲线中提取特征相比,在电池的不同放电周期中,IC曲线的特征更为显著,最明显的特征是IC曲线的峰值漂移。可以看出,随着电池循环次数的增加,峰值高度减小并向左横移。因此,图1(b)中IC曲线的峰坐标(PICC)被认为是IC曲线的关键特征。其PICC的横坐标记为A1,纵坐标记为B1。Step 2.2: It can be seen from the transformation of equation (3) that IC is negatively correlated with the derivative of voltage with respect to time, indicating that the gentler the voltage change, the greater the IC value. Figure 1 shows different feature extraction curves during the discharge process. As shown in Figure 1(a) and (b), compared with extracting features directly from the Q-V curve, the features of the IC curve are more significant in different discharge cycles of the battery. The most obvious feature is the peak drift of the IC curve. . It can be seen that as the number of battery cycles increases, the peak height decreases and moves laterally to the left. Therefore, the peak coordinate (PICC) of the IC curve in Figure 1(b) is considered to be the key feature of the IC curve. The horizontal axis mark of its PICC is A1, and the vertical axis mark is B1.
步骤2.3:图1(c)为放电电压在周期i与周期j之间的变化曲线,可以表示为ΔQi-j(V)=Qi(V)-Qj(V),其中i和j都表示循环次数,其和的值相差越大,则曲线ΔQi-j(V)越明显。Step 2.3: Figure 1(c) shows the variation curve of discharge voltage between period i and period j, which can be expressed as ΔQ ij (V) = Q i (V)-Q j (V), where i and j both represent The greater the difference between the number of cycles and the sum, the more obvious the curve ΔQ ij (V) will be.
根据ΔQ(V)曲线,在i与j的值相同的情况下,不同循环寿命电池的ΔQ(V)曲线(PQVC)的峰值不同,且循环寿命较长的电池的峰值较小,说明其中包含了电池退化的相关信息。因此,选择PQVC峰值的纵坐标作为关键特征,记为B2;According to the ΔQ(V) curve, when the values of i and j are the same, the peak values of the ΔQ(V) curve (PQVC) of batteries with different cycle life are different, and the peak value of the battery with a longer cycle life is smaller, indicating that it contains information about battery degradation. Therefore, the ordinate of the PQVC peak is selected as the key feature, recorded as B2;
步骤2.4:引入EMD距离来测量相邻两个周期ΔQ(V)曲线之间的差值。图1(d)为引入EMD表示不同周期的变化后,根据不同i-j单元间EMD-ΔQ(V)曲线的变化趋势,在前10个循环内该曲线呈加速上升趋势,在达到第一个峰值后略有下降,并在大约50个循环后继续增加(尽管化学和降解机制未知)。此外,EMD-ΔQ(V)曲线对于不同循环寿命的电池具有不同的趋势,因此也作为描述电池退化的关键特征;Step 2.4: Introduce EMD distance to measure the difference between two adjacent period ΔQ(V) curves. Figure 1(d) shows the change trend of the EMD-ΔQ(V) curve between different i-j units after the introduction of EMD to represent changes in different cycles. In the first 10 cycles, the curve showed an accelerated upward trend and reached the first peak. then decreased slightly and continued to increase after approximately 50 cycles (although the chemical and degradation mechanisms are unknown). In addition, the EMD-ΔQ(V) curve has different trends for batteries with different cycle lives, and therefore is also used as a key feature to describe battery degradation;
步骤2.4.1:EMD距离被定义为从一个分布P转换到另一个分布Q的最小成本的估计。与Kullback-Leibler(KL)散度和Jensen-Shannon(JS)散度相比,即使没有重叠或重叠很小,EMD也能反映两个分布之间的距离。Step 2.4.1: The EMD distance is defined as the estimate of the minimum cost of transforming from one distribution P to another distribution Q. Compared with Kullback-Leibler (KL) divergence and Jensen-Shannon (JS) divergence, EMD can reflect the distance between two distributions even if there is no overlap or the overlap is small.
步骤2.4.2:W(P,Q)表示两个概率分布之间的EMD,定义如下:Step 2.4.2: W(P,Q) represents the EMD between two probability distributions, which is defined as follows:
W(P,Q)=infγ∈Π(P,Q)E(x,y)~γ[||x-y||] (4)W(P,Q)=inf γ∈Π(P,Q) E (x,y)~γ [||xy||] (4)
式中,inf表示取所有可能的联合概率分布Π(P,Q)的下确界,γ为联合分布,∏(P,Q)为P和Q的所有联合分布的集合,P和Q为相邻两个周期IC曲线的分布,‖x-y‖为样本x与y间的距离,E(x,y)~γ[||x-y||]为距离期望。In the formula, inf means taking the lower bound of all possible joint probability distributions Π(P,Q), γ is the joint distribution, ∏(P,Q) is the set of all joint distributions of P and Q, and P and Q are phases. The distribution of IC curves of two adjacent periods, ‖xy‖ is the distance between sample x and y, and E (x, y) ~ γ [||xy||] is the distance expectation.
步骤2.4.3:距离期望的计算公式如下:Step 2.4.3: The calculation formula of distance expectation is as follows:
式中,i和j表示两个不同的周期,P(i,j)表示周期i和j的IC曲线的分布。In the formula, i and j represent two different periods, and P (i, j) represents the distribution of the IC curves of periods i and j.
步骤2.5:从IC曲线生成EMD-IC曲线。图1(e)显示了不同电池之间IC曲线的EMD变化趋势,从图中可以看出,随着电池循环次数的增加,EMD-IC曲线逐渐减小。经过400次循环后,大多数电池的加速比呈下降趋势,并且每个电池的曲线下降趋势有所不同。可见,EMD-IC曲线与电池寿命有一定的相关性,也将其作为描述电池退化的关键特征。Step 2.5: Generate EMD-IC curve from IC curve. Figure 1(e) shows the EMD change trend of IC curves between different batteries. It can be seen from the figure that as the number of battery cycles increases, the EMD-IC curve gradually decreases. After 400 cycles, the acceleration ratio of most batteries shows a downward trend, and the downward trend of the curve is different for each battery. It can be seen that the EMD-IC curve has a certain correlation with battery life, and it is also used as a key feature to describe battery degradation.
步骤3:对于充电部分数据的建模,搭建3D深度可分离卷积模型。将不同循环下的VIT三维矩阵拼接成四维矩阵。通过深度分离卷积和逐点卷积来减小参数的计算量,并引入3D通道自注意力模块来加强VIT通道之间的数据交互,以保证在不增加模型训练参数的情况下达到部分通道间的交互。Step 3: For modeling of the charging part data, build a 3D depth separable convolution model. Splice the VIT three-dimensional matrices under different cycles into a four-dimensional matrix. The calculation amount of parameters is reduced through depth separation convolution and point-wise convolution, and a 3D channel self-attention module is introduced to strengthen the data interaction between VIT channels to ensure that some channels can be reached without increasing model training parameters. interactions between.
步骤3.1:对于一个充电周期,将VIT数据转换为RP-VIT数据后,有三个110×110矩阵。这种矩阵形式与多通道图像非常相似,对应一个110像素的正方形图像,有三个RGB分量(即VIT图像)。在预测电池循环寿命时,以前n个充电周期为预测窗口,得到一个四维110×110×3×n矩阵。Step 3.1: For one charging cycle, after converting VIT data to RP-VIT data, there are three 110×110 matrices. This matrix form is very similar to a multi-channel image, corresponding to a 110-pixel square image with three RGB components (i.e., VIT image). When predicting battery cycle life, the previous n charging cycles are used as the prediction window, and a four-dimensional 110×110×3×n matrix is obtained.
步骤3.2:利用三维卷积对得到的四维矩阵进行特征提取,其特征映射的计算公式为:Step 3.2: Use three-dimensional convolution to extract features from the four-dimensional matrix. The calculation formula of the feature map is:
式中,Wout×Hout×Cout和Win×Hin×Cin分别表示图像输出和输入时的宽度、高度和通道数,w×h×c表示卷积核的大小,s表示步幅,p表示填充值,k表示扫描次数,卷积过程中的参数个数为(w×h×c+1)×k;In the formula, W out ×H out ×C out and W in ×H in ×C in represent the width, height and number of channels at image output and input respectively, w × h × c represents the size of the convolution kernel, and s represents the step. Amplitude, p represents the filling value, k represents the number of scans, and the number of parameters in the convolution process is (w×h×c+1)×k;
步骤3.3:由于3DCNN与2DCNN相比,其在计算上多了一个维度,导致卷积过程中的参数较多,会给模型的计算带来较大的负担,因此采用深度可分三维卷积来降低模型训练的难度,并大大减少卷积计算量。具体方法是将每个充电周期的特征图分成一组,分别在组内进行卷积运算,组内的卷积核生成特征图。Step 3.3: Compared with 2DCNN, 3DCNN has one more dimension in calculation, resulting in more parameters in the convolution process, which will bring a greater burden to the calculation of the model. Therefore, depth-separable three-dimensional convolution is used. Reduce the difficulty of model training and greatly reduce the amount of convolution calculations. The specific method is to divide the feature map of each charging cycle into a group, perform convolution operations within the group respectively, and the convolution kernel in the group generates the feature map.
步骤3.4:由于深度卷积在不同循环之间没有信息,因此在深度卷积之后需要增加一个点卷积层。逐点卷积运算与常规卷积运算类似,其卷积核大小为1×1×n,其中n表示三维矩阵的深度方向,即第一个n循环的充电周期。因此,本次卷积计算将在深度方向上对前一步的图进行加权组合,生成新的特征图,并使用多个卷积核生成多个特征图。Step 3.4: Since depth convolution has no information between different cycles, a point convolution layer needs to be added after depth convolution. The point-by-point convolution operation is similar to the conventional convolution operation, and its convolution kernel size is 1×1×n, where n represents the depth direction of the three-dimensional matrix, that is, the charging cycle of the first n cycle. Therefore, this convolution calculation will weightedly combine the images of the previous step in the depth direction to generate a new feature map, and use multiple convolution kernels to generate multiple feature maps.
步骤3.5:为了自动评估电池充电过程中各种特征的显著性和相关性,以预测电池寿命,引入多通道三维卷积的通道注意力(3D Channel Attention,3DCA)模块来学习这些特征。3DCA模块根据输入数据与电池循环寿命的相关性,从特征图中突出显示与循环寿命相关的特定区域,并结合注意力层检测输入数据中不同通道特征的显著性。Step 3.5: In order to automatically evaluate the significance and correlation of various features during battery charging to predict battery life, the multi-channel three-dimensional convolutional channel attention (3D Channel Attention, 3DCA) module is introduced to learn these features. The 3DCA module highlights the specific areas related to the cycle life from the feature map based on the correlation between the input data and the battery cycle life, and combines the attention layer to detect the significance of different channel features in the input data.
步骤3.5.1:首先,考虑到聚合特征y(y∈RC),在充电过程中,可以通过下式表示:Step 3.5.1: First, considering the aggregate feature y (y∈R C ), during the charging process, it can be expressed by the following formula:
ω=σ(Wky) (7)ω=σ(W k y) (7)
式中Wk为k×C的参数矩阵,ω为权值,σ为激活函数。In the formula, W k is the parameter matrix of k×C, ω is the weight, and σ is the activation function.
步骤3.5.2:对于上式,仅考虑每一个周期i下yi与其相邻节点k之间的相互作用来计算的权值ωi,则其权值可改写为:Step 3.5.2: For the above formula, the weight ω i is calculated by only considering the interaction between y i and its adjacent node k in each period i. Then its weight can be rewritten as:
式中为相邻通道yi的集合k,所有通道共享相同的学习参数。注意,这种方法可以很容易地通过一个具有k核大小的1×1×1卷积核来实现,即in the formula is the set k of adjacent channels yi , and all channels share the same learning parameters. Note that this method can be easily implemented with a 1×1×1 convolution kernel with k kernel size, i.e.
ω=σ(Convk(y)) (10)ω=σ(Conv k (y)) (10)
式中Convk表示核大小为1的三维卷积。In the formula, Conv k represents a three-dimensional convolution with a kernel size of 1.
步骤3.5.3:通道之间的交互程度可以通过改变k的大小来调整,内核k的大小可以自适应地确定Step 3.5.3: The degree of interaction between channels can be adjusted by changing the size of k, and the size of kernel k can be determined adaptively
式中,c表示通道数,|a|odd表示距离a最近的奇数距离。通过非线性映射ψ,高维通道具有较长的距离相互作用,而低维通道具有较短的距离相互作用。In the formula, c represents the number of channels, |a| odd represents the nearest odd distance from a. By nonlinear mapping ψ, high-dimensional channels have longer distance interactions, while low-dimensional channels have shorter distance interactions.
步骤3.6:在3DCA层之后增加3D全局平均池化(3D Global Average Pooling,3DGAP)层。其中3DGAP就是3D下的平均池化,池化操作可以保留主要特征的同时减少参数和计算量,防止过拟合。该方法可以大大减少数据量和计算复杂度。Step 3.6: Add a 3D Global Average Pooling (3DGAP) layer after the 3DCA layer. Among them, 3DGAP is the average pooling in 3D. The pooling operation can retain the main features while reducing the parameters and calculation amount to prevent over-fitting. This method can greatly reduce the amount of data and computational complexity.
步骤4:对于放电部分数据的建模,搭建CBR层和MP层对数据进行卷积和池化操作。CBR结构由卷积层(convolutional layer)、批归一化层(batch normalization layer)和ReLU激活层(Rectified Linear Unit layer)构成,以确保网络具有一定的正则化效果。MP结构主要由一个最大池化层(max-pooling layer)和几个不同步幅的卷积层(convolutional layer)组成,其中最大池化层和步长为2的卷积层将通道数减半,并在拼接后保持输入输出通道数不变。Step 4: For the modeling of the discharge part data, build the CBR layer and MP layer to perform convolution and pooling operations on the data. The CBR structure consists of a convolutional layer, a batch normalization layer and a ReLU activation layer (Rectified Linear Unit layer) to ensure that the network has a certain regularization effect. The MP structure mainly consists of a max-pooling layer and several convolutional layers with different strides. The max-pooling layer and the convolutional layer with a stride of 2 reduce the number of channels by half. , and keep the number of input and output channels unchanged after splicing.
步骤4.1:由卷积层、批归一化层和ReLU激活层构成CBR结构。其中批归一化层的加入可以很好地改变原始数据的无序性,加快网络的收敛速度,具有一定的正则化效果,而ReLU层可以将线性变换转化为非线性变换;Step 4.1: The CBR structure consists of a convolution layer, a batch normalization layer and a ReLU activation layer. Among them, the addition of the batch normalization layer can well change the disorder of the original data, speed up the convergence speed of the network, and have a certain regularization effect, while the ReLU layer can convert linear transformation into nonlinear transformation;
步骤4.2:由一个最大池化层和几个不同步幅的卷积层组成MP结构。最大池化层和步长为2的卷积层将通道数减半,并在拼接后保持输入输出通道数不变。Step 4.2: The MP structure consists of a maximum pooling layer and several convolutional layers with different strides. The max pooling layer and the convolutional layer with a stride of 2 reduce the number of channels by half and keep the number of input and output channels unchanged after splicing.
步骤5:将充电过程和放电过程模型输出的特征向量进行特征融合,并最终输出为锂电池循环寿命预测结果。Step 5: Feature fusion is performed on the feature vectors output by the charging process and discharging process models, and the final output is the lithium battery cycle life prediction result.
步骤5.1:VIT数据经特征提取后,产生不同的特征维度和大小,因此构建特征融合模块以保证模型能够从不同的特征类型中获得全面的电池退化信息。该模块通过全连接层将不同维度的特征转换为一维特征向量,并将其拼接,形成最终的新的特征矩阵。Step 5.1: After feature extraction from VIT data, different feature dimensions and sizes are generated, so a feature fusion module is constructed to ensure that the model can obtain comprehensive battery degradation information from different feature types. This module converts features of different dimensions into one-dimensional feature vectors through a fully connected layer and splices them to form a final new feature matrix.
步骤5.2:预测模块负责对电池循环寿命进行预测。在该模块中,将电池的窗口周期拆分为前n个充电周期nf和最近m个充电周期ml,从而完成电池的循环寿命预测,最后进行消融实验以验证时间序列成像方法的有效性。Step 5.2: The prediction module is responsible for predicting the battery cycle life. In this module, the window period of the battery is split into the first n charging cycles n f and the latest m charging cycles m l to complete the cycle life prediction of the battery. Finally, an ablation experiment is performed to verify the effectiveness of the time series imaging method. .
步骤5.2.1:在相同的实验设置下,对两个数据集重复实验3次,共进行6次实验,分别命名为Case_1,Case_2,…,Case_6,但每个实验的数据集分区是随机的。为了评价估计的准确性,采用均方误差(MSE)、均方对数误差(MSLE)和平均绝对误差(MAE)作为评价指标,其计算方法如下:Step 5.2.1: Under the same experimental settings, repeat the experiment 3 times on the two data sets, and conduct a total of 6 experiments, named Case_1, Case_2,..., Case_6, but the data set partitioning of each experiment is random. . In order to evaluate the accuracy of estimation, mean square error (MSE), mean square logarithmic error (MSLE) and mean absolute error (MAE) are used as evaluation indicators. The calculation method is as follows:
式中,n为电池数,yi为真实值,为预测值。In the formula, n is the number of batteries, yi is the real value, is the predicted value.
步骤5.2.2:不同窗口周期的选择会改变模型输入数据的大小,最终可能会影响模型的预测精度。选取不同的前n次充放电循环(nf=10,nf=30,nf=50)进行对比实验。由于输入数据在被送入模型训练之前已经进行了归一化处理,所以在进行预测结果计算时,需要先进行反归一化计算。表1和表2给出了两个数据集在不同窗口周期下的实验结果。Step 5.2.2: The selection of different window periods will change the size of the model input data, which may ultimately affect the prediction accuracy of the model. Different first n charge and discharge cycles (n f =10, n f =30, n f =50) were selected for comparative experiments. Since the input data has been normalized before being sent to model training, denormalization calculation needs to be performed first when calculating the prediction results. Table 1 and Table 2 give the experimental results of the two data sets under different window periods.
表1数据集1上的实验结果Table 1 Experimental results on data set 1
表2数据集2上的实验结果Table 2 Experimental results on data set 2
很明显,与nf=10和nf=30的情况相比,nf=50时模型的误差最小,这意味着当窗口周期较大时,可以更准确地预测电池的循环寿命。It is obvious that compared with the cases of n f =10 and n f =30, the error of the model is smallest when n f =50, which means that when the window period is larger, the cycle life of the battery can be predicted more accurately.
步骤5.2.3:使用不同的模型预测不同电池的循环寿命,以验证所提模型在该领域上的准确性和有效性。表3给出了不同窗口周期下,本文模型与其他几种主流机器学习模型和深度学习模型的结果对比。Step 5.2.3: Use different models to predict the cycle life of different batteries to verify the accuracy and effectiveness of the proposed model in this field. Table 3 shows the comparison of the results of this model with several other mainstream machine learning models and deep learning models under different window periods.
表3不同电池循环寿命预测方法的比较Table 3 Comparison of different battery cycle life prediction methods
可以看出,大多数模型需要100次以上的充放电循环才能达到与DS-3DCA-CNN相当的效果。与其他模型相比,该模型能以更少的窗口周期准确预测循环寿命。It can be seen that most models require more than 100 charge-discharge cycles to achieve equivalent results to DS-3DCA-CNN. This model accurately predicts cycle life with fewer window periods than other models.
步骤5.2.4:为了验证时间序列成像方法的有效性,需要进行消融实验。除RP图之外,还有其他时间序列成像方法,如格拉姆角场(Gramian Angular Field,GAF)和马尔可夫转移场(Markov Transition Field,MTF),其中GAF又分为格拉姆角和场(Gram Angle SumField,GASF)和格拉姆角差场(Gram Angle difference Field,GADF),这些方法都将作为对照组一起进行实验分析。对于数据集1和数据集2,两次实验的结果如表4所示。Step 5.2.4: In order to verify the effectiveness of the time series imaging method, ablation experiments need to be performed. In addition to RP diagrams, there are other time series imaging methods, such as Gramian Angular Field (GAF) and Markov Transition Field (MTF), where GAF is divided into Gramian Angular Field and Field (Gram Angle SumField, GASF) and Gram Angle difference Field (GADF), these methods will be used as control groups for experimental analysis. For Data Set 1 and Data Set 2, the results of the two experiments are shown in Table 4.
表4不同时间序列成像方法实验结果的比较Table 4 Comparison of experimental results of different time series imaging methods
实验结果表明,与原始一维数据相比,使用时间序列成像方法可以提高模型的精度,因为在增加数据维数的过程中产生了更多的信息。Experimental results show that using time series imaging methods can improve the accuracy of the model compared to original one-dimensional data because more information is generated in the process of increasing the data dimensionality.
上述实施方式只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人能够了解本发明的内容并据以实施,并不能以此限制本发明的保护范围。凡根据本发明精神实质所做的等效变换或修饰,都应涵盖在本发明的保护范围之内。The above embodiments are only for illustrating the technical concepts and features of the present invention. Their purpose is to enable those familiar with this technology to understand the content of the present invention and implement it accordingly, and cannot limit the scope of protection of the present invention. All equivalent transformations or modifications made based on the spirit and essence of the present invention shall be included in the protection scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311405766.3A CN117452261B (en) | 2023-10-26 | 2023-10-26 | Lithium battery cycle life prediction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311405766.3A CN117452261B (en) | 2023-10-26 | 2023-10-26 | Lithium battery cycle life prediction method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117452261A true CN117452261A (en) | 2024-01-26 |
CN117452261B CN117452261B (en) | 2024-07-23 |
Family
ID=89582975
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311405766.3A Active CN117452261B (en) | 2023-10-26 | 2023-10-26 | Lithium battery cycle life prediction method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117452261B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118425820A (en) * | 2024-07-03 | 2024-08-02 | 中电建新能源集团股份有限公司 | A method, device and electronic device for determining health status value of energy storage battery |
CN118501719A (en) * | 2024-07-16 | 2024-08-16 | 昆明理工大学 | Real-time prediction method of remaining life of lithium battery based on Gram angle and field |
CN118549819A (en) * | 2024-05-17 | 2024-08-27 | 上海科技大学 | Battery life prediction method, system, device and medium based on single cycle data |
CN118914760A (en) * | 2024-09-04 | 2024-11-08 | 杭州电力设备制造有限公司 | Active power distribution network fault section positioning method based on voltage and current visualization |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112666480A (en) * | 2020-12-02 | 2021-04-16 | 西安交通大学 | Battery life prediction method based on charging process characteristic attention |
US20220114421A1 (en) * | 2020-01-08 | 2022-04-14 | Chongqing Unversity Of Posts And Telecommunications | Method for estimating the capacity of lithium battery based on convolution long-short-term memory neural network |
US20220284747A1 (en) * | 2021-03-08 | 2022-09-08 | Toyota Research Institute, Inc. | System and method for forecasting battery state with imperfect data |
CN116381517A (en) * | 2023-04-07 | 2023-07-04 | 北京航空航天大学 | A probabilistic prediction method for the remaining life of lithium batteries based on temporal convolutional attention mechanism |
-
2023
- 2023-10-26 CN CN202311405766.3A patent/CN117452261B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220114421A1 (en) * | 2020-01-08 | 2022-04-14 | Chongqing Unversity Of Posts And Telecommunications | Method for estimating the capacity of lithium battery based on convolution long-short-term memory neural network |
CN112666480A (en) * | 2020-12-02 | 2021-04-16 | 西安交通大学 | Battery life prediction method based on charging process characteristic attention |
US20220284747A1 (en) * | 2021-03-08 | 2022-09-08 | Toyota Research Institute, Inc. | System and method for forecasting battery state with imperfect data |
CN116381517A (en) * | 2023-04-07 | 2023-07-04 | 北京航空航天大学 | A probabilistic prediction method for the remaining life of lithium batteries based on temporal convolutional attention mechanism |
Non-Patent Citations (1)
Title |
---|
明彤彤;王凯;田冬冬;徐松;田浩含;: "基于LSTM神经网络的锂离子电池荷电状态估算", 广东电力, no. 03, 25 March 2020 (2020-03-25), pages 32 - 39 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118549819A (en) * | 2024-05-17 | 2024-08-27 | 上海科技大学 | Battery life prediction method, system, device and medium based on single cycle data |
CN118425820A (en) * | 2024-07-03 | 2024-08-02 | 中电建新能源集团股份有限公司 | A method, device and electronic device for determining health status value of energy storage battery |
CN118501719A (en) * | 2024-07-16 | 2024-08-16 | 昆明理工大学 | Real-time prediction method of remaining life of lithium battery based on Gram angle and field |
CN118914760A (en) * | 2024-09-04 | 2024-11-08 | 杭州电力设备制造有限公司 | Active power distribution network fault section positioning method based on voltage and current visualization |
Also Published As
Publication number | Publication date |
---|---|
CN117452261B (en) | 2024-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117452261B (en) | Lithium battery cycle life prediction method | |
CN111650453B (en) | Power equipment diagnosis method and system based on windowing characteristic Hilbert imaging | |
Huang et al. | A comprehensively optimized lithium-ion battery state-of-health estimator based on Local Coulomb Counting Curve | |
CN113805064A (en) | A method for predicting the state of health of lithium-ion battery packs based on deep learning | |
CN114283285A (en) | Cross consistency self-training remote sensing image semantic segmentation network training method and device | |
JP2023520970A (en) | Lithium battery SOC estimation method, apparatus, and computer-readable storage medium | |
CN117930012A (en) | Battery consistency assessment method and device, computer equipment and storage medium | |
CN116522153B (en) | Lithium battery capacity prediction method, lithium battery capacity prediction device, computer equipment and storage medium | |
CN119199561B (en) | A method, device, equipment and medium for predicting battery health status | |
Zhang et al. | Lithium-ion battery state of health prognostication employing multi-model fusion approach based on image coding of charging voltage and temperature data | |
CN117368784A (en) | Battery health state prediction method based on feature compression | |
CN116068407A (en) | A method and system for early battery life prediction based on convolutional neural network | |
CN116774053A (en) | Method, system and storage medium for predicting remaining service life of battery | |
Jiang et al. | Life prediction model for lithium-ion battery via a 3D convolutional network enhanced by channel attention considering charging and discharging process | |
CN112529068A (en) | Multi-view image classification method, system, computer equipment and storage medium | |
CN118897212B (en) | Lithium-ion battery health status assessment method and system based on time decomposition and feature fusion | |
CN119667488A (en) | A charging time prediction method based on multi-dimensional spatiotemporal characteristics and physical constraints of battery aging | |
CN119247140A (en) | Battery early micro-short circuit fault detection method, device, computer equipment and medium | |
CN119575224B (en) | Lithium ion battery health state estimation method and device and electronic equipment | |
CN120122018B (en) | Battery pack health state prediction method and device | |
CN105654128A (en) | Kernel norm regularized low-rank coding-based fan blade image fault identification method | |
CN118549839B (en) | Battery early life prediction method based on relative position matrix and residual error network | |
CN118244127B (en) | A lithium-ion battery health status assessment method based on graph convolution | |
CN118362898B (en) | New energy automobile battery performance detection system and method | |
CN119104913A (en) | Battery life prediction method, device and related 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |