CN113537525B - A fault state adaptive early warning method for battery energy storage system - Google Patents
A fault state adaptive early warning method for battery energy storage system Download PDFInfo
- Publication number
- CN113537525B CN113537525B CN202110836171.8A CN202110836171A CN113537525B CN 113537525 B CN113537525 B CN 113537525B CN 202110836171 A CN202110836171 A CN 202110836171A CN 113537525 B CN113537525 B CN 113537525B
- Authority
- CN
- China
- Prior art keywords
- battery
- distance
- matrix
- monitoring data
- dtw
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/20—Administration of product repair or maintenance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/211—Selection of the most significant subset of features
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/08—Probabilistic or stochastic CAD
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- Geometry (AREA)
- Secondary Cells (AREA)
Abstract
本发明公开了一种电池储能系统故障状态自适应预警方法,运用NJW聚类算法将高维监测数据进行降维,通过构建异源数据的拉式矩阵来获取其特征向量,再以特征向量唯一替代原始数据进行聚类分析,解决了传统方法对非凸形数据聚类经常出现的奇异性问题;利用DTW动态规整异步监测数据时间轴,将两组监测数据映射到同步时间轴上,克服了监测数据异步采样导致的观测误差,解决了传统方法取样点异源数据时间轴无法一一对应的问题;最后构建滑动窗口模型以抑制监测数据中少量离群点的影响,基于DTM距离进行聚类分析,通过稀疏系数LSR和故障阈值FT客观选定故障聚类点,避免了传统故障聚类方法对故障状态的过估计或欠估计,实现BESS故障状态自适应预警。
The invention discloses a fault state self-adaptive early warning method of a battery energy storage system. The NJW clustering algorithm is used to reduce the dimension of high-dimensional monitoring data. The only alternative to the original data for cluster analysis, solves the singularity problem that often occurs in traditional methods for non-convex data clustering; uses DTW to dynamically adjust the time axis of asynchronous monitoring data, and maps the two sets of monitoring data to the synchronous time axis to overcome the problem. The observation error caused by asynchronous sampling of monitoring data is solved, and the problem that the time axis of heterologous data of sampling points cannot be one-to-one corresponding to the traditional method is solved. Finally, a sliding window model is constructed to suppress the influence of a small number of outliers in the monitoring data, and clustering is carried out based on the DTM distance. Class analysis, through sparse coefficient LSR and fault threshold FT, objectively select fault clustering points, avoid over-estimation or under-estimation of fault state by traditional fault clustering method, and realize BESS fault state adaptive early warning.
Description
技术领域technical field
本发明涉及电池储能系统检测技术领域,具体为一种电池储能系统故障状态自适应预警方法。The invention relates to the technical field of battery energy storage system detection, in particular to a fault state adaptive early warning method for a battery energy storage system.
背景技术Background technique
电池储能系统(battery energy storage system,BESS)遇到的安全问题大都来自于电芯单体层面,主要包括过充电、过放电、内部短路与外部短路,在以往的BESS故障预警中,无论是通过建立精确电热仿真模型实现的参数估计法还是基于经验估计法实现的阈值限定法,都仅是对BESS运行过程中的异常数据进行识别,非常依赖正常数据起到参考修正作用,而忽略正常电池循环过程中的观测误差与过程噪声。但是大容量电池储能设备一般由成百上千个电芯单体串并联而成,配合电池箱工作的监测单元也多达几十个,不同监测单元针对不同电池箱进行异步测量,所获取的异源数据间往往存在很大的观测误差和过程噪声,并且不同监测单元记录得到的采样时间轴与电池循环过程也不相同,数据间很难进行比对,这些因素对BESS故障识别精度所造成的影响不可忽视。Most of the safety problems encountered by the battery energy storage system (BESS) come from the cell level, mainly including overcharge, overdischarge, internal short circuit and external short circuit. The parameter estimation method realized by establishing an accurate electrothermal simulation model or the threshold limit method realized based on the empirical estimation method only identifies abnormal data during the operation of BESS, and relies heavily on normal data for reference correction, while ignoring normal batteries Observational error and process noise during the cycle. However, large-capacity battery energy storage devices are generally composed of hundreds or thousands of battery cells in series and parallel, and there are dozens of monitoring units working with battery boxes. Different monitoring units perform asynchronous measurements on different battery boxes. There are often large observation errors and process noises between the heterogeneous data, and the sampling time axis and battery cycle process recorded by different monitoring units are also different, so it is difficult to compare the data. These factors affect the BESS fault identification accuracy. The impact cannot be ignored.
大容量BESS通常会进行电池分区,视需求不同协调各分区的电池箱采取不同的充放电策略,比如部分电池箱进行深充深放以满足电厂调峰填谷需求,同一时间其余电池箱则可能工作于浅充浅放形式来抑制用户谐波,解决电能质量问题;同一电池箱在充放电的不同阶段也有着完全不同的工作形式,充电初期与后期可能以涓流充电来保护电池安全,而在中期则采用高倍率快速充电,不同时期的电压、电流曲线存在很大差异。基于监测单元实测数据的故障识别方法要达到足够的识别精度,就必须跳出实验室环境,设法解决实际工作中不同电池分区电池箱在不同循环阶段的异步数据不匹配问题。Large-capacity BESS usually divides batteries, and coordinates the battery boxes of each partition to adopt different charging and discharging strategies according to different needs. For example, some battery boxes are deeply charged and deeply discharged to meet the peak load and valley filling needs of the power plant. At the same time, the rest of the battery boxes may be It works in the form of shallow charging and shallow discharging to suppress user harmonics and solve power quality problems; the same battery box also has completely different working forms in different stages of charging and discharging, and trickle charging may be used in the early and later stages of charging to protect battery safety, while In the mid-term, high-rate fast charging is used, and the voltage and current curves in different periods are very different. In order to achieve sufficient identification accuracy, the fault identification method based on the measured data of the monitoring unit must jump out of the laboratory environment and try to solve the problem of asynchronous data mismatch between different battery compartments in different cycle stages in actual work.
首先,现有方法在进行BESS故障状态预警时,不同电池箱监测单元的异源数据观测误差和过程噪声一般被直接忽略或者按照同源噪声进行处理,还没有文献对异源数据的匹配方法进行深入研究。实际的BMS(Battery Management System电池管理系统)监测数据和理论研究表明,不同监测单元记录得到的数据序列时间轴往往是异步的,很难直接进行比对,因此,在BESS故障状态预警时如果忽视异源数据的不匹配性,那么故障预警将很可能出现误判。First of all, when the existing method is used for early warning of BESS fault state, the heterologous data observation error and process noise of different battery box monitoring units are generally ignored directly or processed according to homologous noise. There is no literature on the matching method of heterologous data. Research in depth. The actual BMS (Battery Management System) monitoring data and theoretical research show that the time axis of the data sequence recorded by different monitoring units is often asynchronous, and it is difficult to compare directly. If the data from different sources does not match, the fault warning will likely be misjudged.
其次,现有技术在基于监测单元实测数据实现故障识别时,通常是根据电池类型直接限定充放电策略和电池循环形式。而工业过程使用的大容量BESS一般在各分区的电池箱采取不同的充放电策略,同一电池箱在充放电的不同阶段也有着完全不同的工作形式。如果不对监测数据做特征提取和时间轴规整,设法解决实际工作中不同电池分区电池箱在不同循环阶段的异步数据不匹配问题,故障状态预警就很容易出现不同程度的欠估计或过估计,使得BESS故障状态预警不能反映出对储能设备的真实安全状态。Secondly, in the prior art, when the fault identification is realized based on the measured data of the monitoring unit, the charging and discharging strategy and the battery cycle form are usually directly defined according to the battery type. The large-capacity BESS used in the industrial process generally adopts different charging and discharging strategies in the battery boxes of each partition, and the same battery box also has completely different working forms in different stages of charging and discharging. If the monitoring data is not extracted and the time axis is regularized, and the asynchronous data mismatch of the battery boxes of different battery partitions in different cycle stages is not matched in actual work, the fault state early warning will easily be underestimated or overestimated to varying degrees, making The BESS fault state warning cannot reflect the real safety state of the energy storage equipment.
另外,现有数据在通过故障聚类进行异常数据辨识时,往往采用距离法直接确定故障数据,然而故障点的聚类距离阈值一般通过经验估计给出,存在很大的偶然性,一旦聚类点集划定得过大或过小,就很容易导致故障预警的误报。In addition, when identifying abnormal data through fault clustering in existing data, the distance method is often used to directly determine the fault data. However, the clustering distance threshold of fault points is generally given by empirical estimation, and there is a lot of chance. If the set is too large or too small, it is easy to cause false alarms of fault warning.
术语解释:Terminology Explanation:
电池储能系统:将电池作为能量储存载体,以成百上千个电芯单体组合而成,存储电能和供应电能的储能系统,一般包含起储能作用的电池柜和起监测调控作用的控制柜两部分。Battery energy storage system: an energy storage system that uses batteries as an energy storage carrier and is composed of hundreds or thousands of battery cells to store and supply electrical energy, generally including battery cabinets that play the role of energy storage and monitoring and regulation. two parts of the control cabinet.
电池管理系统:电池管理系统是一套对储能电池安全及运行状态进行监控与控制的系统,电池管理系统将监测的电池信息保存、处理并实时反馈给用户,根据采集的信息调控各项参数,保护电池可靠稳定运行。Battery management system: The battery management system is a system that monitors and controls the safety and operation status of energy storage batteries. The battery management system saves, processes and feeds back the monitored battery information to users in real time, and adjusts various parameters according to the collected information. , to protect the reliable and stable operation of the battery.
NJW谱聚类算法:一种谱聚类算法,通过监测数据相似矩阵获取对应的拉普拉斯矩阵,选取前若干个最大特征值对应的特征向量作为原数据一一对应的替代矩阵,然后对其按行进行聚类。NJW spectral clustering algorithm: a spectral clustering algorithm that obtains the corresponding Laplacian matrix by monitoring the similarity matrix of the data, selects the eigenvectors corresponding to the first several largest eigenvalues as the one-to-one correspondence replacement matrix of the original data, and then calculates the corresponding Laplacian matrix. It is clustered by row.
动态时间规整算法(dynamic time warping,DTW):一种通过弯曲监测数据时间轴来比较异步时间序列相似度,并且对异步时间序列进行动态归整的算法。Dynamic time warping (DTW): an algorithm that compares the similarity of asynchronous time series by bending the time axis of monitoring data, and dynamically warps the asynchronous time series.
发明内容SUMMARY OF THE INVENTION
针对上述问题,本发明的目的在于提供一种电池储能系统故障状态自适应预警方法,基于NJW谱聚类算法处理异源数据,将相似工况,可做故障状态比对的电池箱进行归类,利用动态规整算法解决异步数据时间轴不一致问题,构建滑动窗口模型以抑制监测数据中少量离群点的影响,基于DTW距离进行聚类分析,通过稀疏系数和故障阈值客观选定故障聚类点,实现BESS故障状态自适应预警。技术方案如下:In view of the above problems, the purpose of the present invention is to provide an adaptive early warning method for the fault state of a battery energy storage system, processing heterogeneous data based on the NJW spectrum clustering algorithm, and classifying the battery boxes that can be compared with the fault state under similar working conditions. Class, use dynamic warping algorithm to solve the problem of asynchronous data timeline inconsistency, build a sliding window model to suppress the influence of a small number of outliers in monitoring data, perform cluster analysis based on DTW distance, and objectively select fault clusters through sparse coefficient and fault threshold point to realize the self-adaptive early warning of BESS fault status. The technical solution is as follows:
一种电池储能系统故障状态自适应预警方法,包括以下步骤:A fault state adaptive early warning method for a battery energy storage system, comprising the following steps:
步骤1:运用NJW聚类算法将高维的电池箱监测数据进行降维,通过构建异源数据的拉式矩阵来获取其安全特征标准矩阵,再以安全特征标准矩阵唯一替代电池箱目标监测参数原始数据进行聚类分析;Step 1: Use the NJW clustering algorithm to reduce the dimension of the high-dimensional battery box monitoring data, obtain its safety feature standard matrix by constructing a pull matrix of heterogeneous data, and then use the safety feature standard matrix to uniquely replace the battery box target monitoring parameters Cluster analysis of raw data;
步骤2:通过动态时间规整算法规整安全特征标准矩阵的时间轴,将两组监测数据映射到同步时间轴上,来比较异步监测数据相似程度;Step 2: Regularize the time axis of the security feature standard matrix through the dynamic time warping algorithm, and map the two sets of monitoring data to the synchronous time axis to compare the similarity of the asynchronous monitoring data;
步骤3:构建滑动窗口模型以抑制监测数据中少量离群点的影响,基于DTW距离进行聚类分析,通过稀疏系数LSR和故障阈值FT客观选定故障聚类点,进而确定故障电池箱。Step 3: Build a sliding window model to suppress the influence of a small number of outliers in the monitoring data, perform cluster analysis based on the DTW distance, objectively select the fault clustering points through the sparse coefficient LSR and the fault threshold FT, and then determine the faulty battery box.
进一步的,所述步骤1具体包括以下步骤:Further, the
步骤1.1:设电池管理系统监测电池箱目标监测参数为V,获取m组电池箱监测数据,每组数据包含有n个取样点,将待聚类监测数据表示为:Step 1.1: Set the target monitoring parameter of the battery management system to monitor the battery box as V, and obtain m groups of battery box monitoring data, each group of data contains n sampling points, and the monitoring data to be clustered is expressed as:
步骤1.2:提取电池箱监测数据构造相似度矩阵W={wij∣i≤m,j≤n}∈Vn×n如下:Step 1.2: Extract the battery box monitoring data and construct a similarity matrix W={w ij ∣i≤m,j≤n}∈V n×n as follows:
其中,ui和uj表示两个异源的电池箱目标监测数据;σi和σj为自适应识别参数,σi是电池箱目标监测参数ui与其余监测数据中欧氏距离最小的r个取样点平均值,σj是电池箱目标监测参数uj与其余监测数据中欧氏距离最小的r个取样点平均值;Among them, u i and u j represent two heterogeneous battery box target monitoring data; σ i and σ j are adaptive identification parameters, σ i is the r with the smallest Euclidean distance between the battery box target monitoring parameter ui and the rest of the monitoring data The average value of the sampling points, σ j is the average value of the r sampling points with the smallest Euclidean distance between the target monitoring parameter u j of the battery box and the rest of the monitoring data;
步骤1.3:根据相似度矩阵W计算得到度量矩阵D={dij∣i≤m,j≤n}∈Vn×n:Step 1.3: Calculate the metric matrix D={d ij ∣i≤m,j≤n}∈V n×n according to the similarity matrix W:
步骤1.4:由相似度矩阵W和度量矩阵D计算得到拉氏矩阵L:Step 1.4: Calculate the Laplace matrix L from the similarity matrix W and the metric matrix D:
步骤1.5:计算拉式矩阵L对应的特征值及特征向量,降序排列各特征值及特征向量,取前K个特征向量形成安全特征矩阵S=[s1,s2,…,sK]∈Vn×K中,对安全特征矩阵S逐行归一化,形成安全特征标准矩阵Y={yij∣i≤m,j≤n}∈Vn×K:Step 1.5: Calculate the eigenvalues and eigenvectors corresponding to the pull matrix L, arrange the eigenvalues and eigenvectors in descending order, and take the first K eigenvectors to form a security feature matrix S=[s 1 ,s 2 ,...,s K ]∈ In V n×K , the security feature matrix S is normalized row by row to form the security feature standard matrix Y={y ij ∣i≤m,j≤n}∈V n×K :
式中,sij为S矩阵第i行j列元素;In the formula, s ij is the element of the ith row and j column of the S matrix;
步骤1.6:安全特征标准矩阵Y的每一行对应一个电池箱目标监测参数序列,唯一替代原始采样数据。Step 1.6: Each row of the safety feature standard matrix Y corresponds to a battery box target monitoring parameter sequence, which uniquely replaces the original sampling data.
更进一步的,所述步骤2具体包括以下步骤:Further, the step 2 specifically includes the following steps:
步骤2.1:设安全特征标准矩阵Y中,两个异步的电池箱a、b对应监测数据特征向量分别为Ya={ya1,ya2,…,yan}和Yb={yb1,yb2,…,ybn},n为安全特征标准矩阵每一行的样本点数,即每个电池箱监测数据包含的取样点的个数,求解得电池箱a、b的距离矩阵R={rij∣i≤n,j≤n}:Step 2.1: In the safety feature standard matrix Y, the monitoring data feature vectors corresponding to the two asynchronous battery boxes a and b are Y a ={y a1 ,y a2 ,...,y an } and Y b ={y b1 , y b2 , . ij ∣i≤n,j≤n}:
MIN=min{ri-1,j,ri,j-1,ri-1,j-1}MIN=min{r i-1,j ,r i,j-1 ,r i-1,j-1 }
式中,d(yai,ybj)为样本点yai和ybj的欧氏距离;d(yai,ybj)+MIN为当前样本点与邻近各样本点的最小欧式距离之和;In the formula, d(y ai , y bj ) is the Euclidean distance between the sample points y ai and y bj ; d(y ai , y bj )+MIN is the sum of the minimum Euclidean distances between the current sample point and the neighboring sample points;
步骤2.2:形成距离矩阵之后,电池箱a、b的DTW距离为:Step 2.2: After forming the distance matrix, the DTW distances of battery boxes a and b are:
DTW(Ya,Yb)=rnn a,b≤mDTW(Y a ,Y b )=r nn a,b≤m
以同样的方式可以计算任意两个电池箱按照监测参数V度量的DTW距离,当a=b时,DTW距离为零。In the same way, the DTW distance measured by any two battery boxes according to the monitoring parameter V can be calculated. When a=b, the DTW distance is zero.
更进一步的,所述步骤3具体包括以下步骤:Further, the step 3 specifically includes the following steps:
步骤3.1:将长度为d的滑动窗口,d<<n,置于待聚类监测数据U的起始位置t1,并随着NJW-DTW聚类算法的计算不断向后移动,滑动增量为采样间隔时间q;计算并保存每个窗口中第a、b个电池箱的距离,直到形成第n-d+1个长度为d的子序列;依此类推,总共得到n-d+1个滑动窗口及对应的距离矩阵,表示为:Step 3.1: Place a sliding window of length d, d<<n, at the starting position t 1 of the monitoring data U to be clustered, and move backward with the calculation of the NJW-DTW clustering algorithm, sliding increments is the sampling interval time q; calculate and save the distances of the a and bth battery boxes in each window until the n-d+1th subsequence of length d is formed; and so on, a total of n-d+1 A sliding window and the corresponding distance matrix are expressed as:
DTWj={dtw1,dtw2,…,dtwn-d+1}∈Vm DTW j ={dtw 1 ,dtw 2 ,...,dtw n-d+1 }∈V m
故障状态发生在其中一个或多个时间窗口;The fault condition occurred in one or more of these time windows;
步骤3.2:计算稀疏系数LSRStep 3.2: Calculate the sparse coefficient LSR
将第a个电池箱的稀疏系数LSR(a)定义为该电池箱与其余距离k以内电池箱平均距离的倒数:The sparsity coefficient LSR(a) of the a-th battery box is defined as the reciprocal of the average distance between this battery box and the remaining battery boxes within the distance k:
式中,size(DTWk(Ya))为电池箱a在距离k以内电池箱的个数;DTW(Ya,Yb)电池箱a与b在k距离内电池箱的实际距离;不失一般性,k距离取为最远DTW距离的一半;In the formula, size (DTW k (Y a )) is the number of battery boxes within the distance k of battery box a; DTW (Y a , Y b ) is the actual distance of battery boxes a and b within the distance k; no For the loss of generality, the k distance is taken as half of the farthest DTW distance;
步骤3.3:将故障阈值FT定义为所有电池箱与其k距离内电池箱的平均距离的倒数:Step 3.3: Define the fault threshold FT as the reciprocal of the average distance of all battery boxes to the battery boxes within k distances:
步骤3.4:对所有m个电池箱的稀疏系数LSR(a)进行排列,并以故障阈值FT作为判断依据,将所有稀疏系数低于FT的电池箱认定为故障电池箱。Step 3.4: Arrange the sparse coefficients LSR(a) of all m battery boxes, and use the fault threshold FT as the judgment basis, and identify all battery boxes with sparse coefficients lower than FT as faulty battery boxes.
更进一步的,所述电池箱目标监测参数为电池箱端电压、支路电流、电池温度、绝缘电阻或电池容量。Further, the target monitoring parameter of the battery box is the terminal voltage of the battery box, the branch current, the battery temperature, the insulation resistance or the battery capacity.
本发明的有益效果是:The beneficial effects of the present invention are:
1)本发明运用NJW聚类算法将高维监测数据进行降维,通过构建异源数据的拉式矩阵来获取其特征向量,再以特征向量唯一替代原始数据进行聚类分析。NJW谱聚类克服了传统方法对数据维度和序列长度的限制,解决了传统方法对非凸形数据聚类经常出现的奇异性问题;1) The present invention uses the NJW clustering algorithm to reduce the dimension of high-dimensional monitoring data, obtains its eigenvectors by constructing a pull matrix of heterologous data, and then uses the eigenvectors to uniquely replace the original data for cluster analysis. NJW spectral clustering overcomes the limitations of traditional methods on data dimension and sequence length, and solves the singularity problem that often occurs in traditional methods for non-convex data clustering;
2)本发明利用DTW动态规整异步监测数据时间轴,将两组监测数据映射到同步时间轴上,克服了监测数据异步采样导致的观测误差,极大提高了聚类结果的准确性,解决了传统方法取样点异源数据时间轴无法一一对应的问题;2) The present invention uses DTW to dynamically adjust the time axis of asynchronous monitoring data, and maps two sets of monitoring data to the synchronous time axis, which overcomes the observation error caused by the asynchronous sampling of monitoring data, greatly improves the accuracy of clustering results, and solves the problem. The problem that the time axis of heterogeneous data of sampling points in traditional methods cannot be one-to-one correspondence;
3)本发明构建滑动窗口模型以抑制监测数据中少量离群点的影响,基于DTW距离进行聚类分析,通过稀疏系数LSR和故障阈值FT客观选定故障聚类点,避免了传统故障聚类方法对故障状态的过估计或欠估计,能够自动适应不同BESS的参数与实际工况,实现BESS故障状态自适应预警。3) The present invention constructs a sliding window model to suppress the influence of a small number of outliers in the monitoring data, performs cluster analysis based on the DTW distance, and objectively selects the fault clustering points through the sparse coefficient LSR and the fault threshold FT, thereby avoiding traditional fault clustering. The method can automatically adapt to different BESS parameters and actual working conditions by over-estimating or under-estimating the fault state, so as to realize the self-adaptive early warning of the fault state of the BESS.
附图说明Description of drawings
图1为本发明电池储能系统故障状态自适应预警方法的流程图。FIG. 1 is a flow chart of a fault state adaptive early warning method of a battery energy storage system according to the present invention.
图2为异源数据在同一时间轴的循环曲线。Figure 2 is a cycle curve of heterologous data on the same time axis.
图3为滑动窗口模型示意图。Figure 3 is a schematic diagram of the sliding window model.
图4为故障聚类示意图。Figure 4 is a schematic diagram of fault clustering.
具体实施方式Detailed ways
下面结合附图和具体实施例对本发明做进一步详细说明。本发明技术方案主要分为三个大步骤,即异源数据聚类、异步序列动态规整和故障状态识别,流程图如图1所示,其中每个大步骤及其小步骤的详细阐述如下:The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The technical solution of the present invention is mainly divided into three major steps, namely heterogeneous data clustering, asynchronous sequence dynamic regularization and fault state identification.
一、异源数据NJW谱聚类算法1. NJW spectral clustering algorithm for heterogeneous data
NJW谱聚类算法是将高维异源数据进行降维聚类的算法,它通过构建异源数据的拉式矩阵来获取其特征向量,再以特征向量唯一替代原始数据进行聚类分析。NJW谱聚类对数据维度没有限制,有效避免了异源非凸形经常出现的奇异性问题。本实施例以基于电池箱端电压的故障状态预警为例,其步骤如下(其余监测数据也有完全一致的计算步骤):The NJW spectral clustering algorithm is a dimensionality reduction clustering algorithm for high-dimensional heterogeneous data. It obtains its eigenvectors by constructing a pull matrix of heterogeneous data, and then uses the eigenvectors to uniquely replace the original data for cluster analysis. NJW spectral clustering has no limit to the data dimension, which effectively avoids the singularity problem that often occurs in heterogeneous non-convex shapes. This embodiment takes the fault state warning based on the terminal voltage of the battery box as an example, and the steps are as follows (the rest of the monitoring data also have completely consistent calculation steps):
1、设电池管理系统监测电池箱端电压为V,获取m组电池箱监测数据,每组数据包含有n个取样点,可将待聚类监测数据表示为:1. Set the terminal voltage of the battery box monitored by the battery management system as V, and obtain m groups of battery box monitoring data. Each group of data contains n sampling points, and the monitoring data to be clustered can be expressed as:
U={u1,u2,…,un}∈Vm (1)U={u 1 ,u 2 ,…,u n }∈V m (1)
2、提取监测数据构造相似度矩阵W={wij∣i≤m,j≤n}∈Vn×n如下:2. Extract the monitoring data to construct a similarity matrix W={w ij ∣i≤m,j≤n}∈V n×n as follows:
其中:ui和uj表示两个异源的电池箱端电压,σ为自适应识别参数。σi是电池箱目标监测参数ui与其余监测数据中欧氏距离最小的r个取样点平均值,σj是电池箱目标监测参数uj与其余监测数据中欧氏距离最小的r个取样点平均值,为保证聚类精确度,一般将r取为3~7。。Among them: u i and u j represent two heterogeneous battery box terminal voltages, and σ is an adaptive identification parameter. σ i is the average value of the r sampling points with the smallest Euclidean distance between the target monitoring parameter u i of the battery box and the rest of the monitoring data, and σ j is the average value of the r sampling points with the smallest Euclidean distance between the target monitoring parameter u j of the battery box and the remaining monitoring data. In order to ensure the accuracy of clustering, r is generally taken as 3 to 7. .
3、根据相似度矩阵W计算得到度量矩阵D={dij∣i≤m,j≤n}∈Vn×n:3. Calculate the metric matrix D={d ij ∣i≤m,j≤n}∈V n×n according to the similarity matrix W:
4、由相似度矩阵W和度量矩阵D计算得到拉氏矩阵L:4. Calculate the Laplace matrix L from the similarity matrix W and the metric matrix D:
5、计算拉式矩阵L对应的特征值及特征向量,降序排列各特征值及特征向量,取前K个特征向量形成安全特征矩阵S=[s1,s2,…,sK]∈Vn×K中,对S阵逐行归一化,形成安全特征标准矩阵Y={yij∣i≤m,j≤n}∈Vn×K:5. Calculate the eigenvalues and eigenvectors corresponding to the pull matrix L, arrange the eigenvalues and eigenvectors in descending order, and take the first K eigenvectors to form a security feature matrix S=[s 1 ,s 2 ,...,s K ]∈V In n×K , the S matrix is normalized row by row to form the security feature standard matrix Y={y ij ∣i≤m,j≤n}∈V n×K :
式中,sij为S矩阵第i行j列元素。In the formula, s ij is the element of the ith row and j column of the S matrix.
6、安全特征标准矩阵Y的每一行对应一个电池箱端电压序列,可唯一替代原始采样数据。接下来对其进行动态时间规整聚类。6. Each row of the safety feature standard matrix Y corresponds to a battery box terminal voltage sequence, which can uniquely replace the original sampling data. It is then subjected to dynamic time warping clustering.
二、动态时间规整算法Second, the dynamic time warping algorithm
如图2所示,实际工作中不同电池分区电池箱在不同循环阶段的获得的异步监测数据存在时间轴不匹配的问题。本发明将异源数据NJW谱聚类算法用到的K均值聚类算法进行了改进,将欧氏距离改进为DTW距离进行K均值聚类分析。DTW距离通过规整安全特征标准矩阵Y的时间轴来比较异步监测数据相似程度,其步骤如下:As shown in Figure 2, the asynchronous monitoring data obtained in different cycle stages of different battery compartments in actual work has the problem of time axis mismatch. The invention improves the K-means clustering algorithm used in the heterologous data NJW spectral clustering algorithm, and improves the Euclidean distance to DTW distance for K-means clustering analysis. The DTW distance compares the similarity of asynchronous monitoring data by regularizing the time axis of the security feature standard matrix Y. The steps are as follows:
1、设安全特征标准矩阵Y中,两个异步的电池箱a、b对应监测数据特征向量分别为Ya={ya1,ya2,…,yan}和Yb={yb1,yb2,…,ybn},n为安全特征标准矩阵每一行的样本点数,即每组电池箱监测数据包含的取样点的个数,可解得电池箱a、b的距离矩阵R={rij∣i≤n,j≤n}:1. In the safety feature standard matrix Y, the feature vectors of the monitoring data corresponding to the two asynchronous battery boxes a and b are respectively Y a ={y a1 ,y a2 ,...,y an } and Y b ={y b1 ,y b2 ,...,y bn }, n is the number of sample points in each row of the safety feature standard matrix, that is, the number of sampling points included in the monitoring data of each group of battery boxes, the distance matrix R={r of battery boxes a and b can be solved ij ∣i≤n,j≤n}:
MIN=min{ri-1,j,ri,j-1,ri-1,j-1} (7)MIN=min{r i-1,j ,r i,j-1 ,r i-1,j-1 } (7)
式中,d(yai,ybj)为样本点yai和ybj的欧氏距离;d(yai,ybj)+MIN为当前样本点与邻近各样本点的最小欧式距离之和;In the formula, d(y ai , y bj ) is the Euclidean distance between the sample points y ai and y bj ; d(y ai , y bj )+MIN is the sum of the minimum Euclidean distances between the current sample point and the neighboring sample points;
2、形成距离矩阵之后,电池箱a、b的DTW距离为2. After the distance matrix is formed, the DTW distances of battery boxes a and b are
DTW(Ya,Yb)=rnn a,b≤m (8)DTW(Y a ,Y b )=r nn a,b≤m (8)
以同样的方式可以计算任意两个电池箱按照监测参数V度量的DTW距离,当a=b时,DTW距离为零。In the same way, the DTW distance measured by any two battery boxes according to the monitoring parameter V can be calculated. When a=b, the DTW distance is zero.
DTW法在NJW安全特征标准矩阵Y的基础上,通过找到两组监测数据的数值相似性来动态规整其中一个序列时间轴,避免了数据异步记录导致的观测误差,能够将两个序列映射到同步时间轴上,从而计算得到两个序列的相似度,极大提高了聚类结果的准确性,避免了传统方法取样点异源数据时间轴无法一一对应的缺点。Based on the NJW security feature standard matrix Y, the DTW method dynamically adjusts the time axis of one of the series by finding the numerical similarity of the two sets of monitoring data, avoiding the observation error caused by the asynchronous recording of the data, and can map the two series to the synchronization On the time axis, the similarity of the two sequences can be calculated, which greatly improves the accuracy of the clustering results and avoids the disadvantage that the time axis of the heterologous data of the sampling points cannot be one-to-one corresponding to the traditional method.
三、故障状态识别算法3. Fault state identification algorithm
为了在监测数据中找出故障异常数据,本发明基于NJW-DTW聚类算法提出故障状态的识别方法,其步骤如下,为了简化叙述,以下“距离”即指DTW距离:In order to find fault abnormal data in the monitoring data, the present invention proposes a fault state identification method based on the NJW-DTW clustering algorithm. The steps are as follows. In order to simplify the description, the following "distance" refers to the DTW distance:
1、滑动窗口模型1. Sliding window model
采用滑动窗口模型抑制监测数据中少量离群点的影响。BMS监测电池箱端电压V获取m组电池箱监测数据,每组数据包含有n个取样点,可将待聚类监测数据表示为:U={u1,u2,…,un}∈Vm,1≤t≤n,将长度d(d<<n)的滑动窗口置于待聚类监测数据U的起始位置t1并随着NJW-DTW聚类算法的计算不断向后移动,滑动增量为采样间隔时间q,如图3所示。计算并保存每个窗口中第a,b个电池箱的距离,直到形成第n-d+1个长度为d的子序列;依此类推,总共可以得到n-d+1个滑动窗口及对应的距离矩阵,表示为:DTWj={dtw1,dtw2,…,dtwn-d+1}∈Vm,故障状态发生在其中一个或多个时间窗口。A sliding window model is used to suppress the influence of a small number of outliers in the monitoring data. BMS monitors the terminal voltage V of the battery box to obtain m groups of battery box monitoring data, each group of data contains n sampling points, and the monitoring data to be clustered can be expressed as: U={u 1 ,u 2 ,..., un }∈ V m , 1≤t≤n, place the sliding window of length d (d<<n) at the starting position t 1 of the monitoring data U to be clustered and move backwards with the calculation of the NJW-DTW clustering algorithm , the sliding increment is the sampling interval time q, as shown in Figure 3. Calculate and save the distances of the a and bth battery boxes in each window until the n-d+1th subsequence of length d is formed; and so on, a total of n-
2、稀疏系数LSR(local sparsity ratio,LSR)2. Sparse coefficient LSR (local sparsity ratio, LSR)
将第a个电池箱的稀疏系数LSR(a)定义为该电池箱与其余距离k以内电池箱平均距离的倒数:The sparsity coefficient LSR(a) of the a-th battery box is defined as the reciprocal of the average distance between this battery box and the remaining battery boxes within the distance k:
式中,size(DTWk(Ya))为电池箱a在距离k以内电池箱的个数;DTW(Ya,Yb)电池箱a与b在k距离内电池箱的实际距离;不失一般性,k距离取为最远DTW距离的一半;In the formula, size (DTW k (Y a )) is the number of battery boxes within the distance k of battery box a; DTW (Y a , Y b ) is the actual distance of battery boxes a and b within the distance k; no For the loss of generality, the k distance is taken as half of the farthest DTW distance;
稀疏系数LSR(i)反映了电池箱i周围所有电池箱的安全状态分布密度,局部稀疏系数越小,则电池箱i故障几率越大,反之亦然。The sparse coefficient LSR(i) reflects the safe state distribution density of all battery boxes around battery box i. The smaller the local sparse coefficient, the greater the failure probability of battery box i, and vice versa.
将故障阈值FT(fault threshold,FT)定义为所有电池箱与其k距离内电池箱的平均距离的倒数:The fault threshold FT (fault threshold, FT) is defined as the reciprocal of the average distance between all battery boxes and the battery boxes within k distances:
如果电池箱i发生故障,则它的稀疏系数应该小于故障因子FT,因为此时电池箱i与其他电池箱的安全距离比其他所有电池箱都要更远。将所有稀疏系数LSR小于故障因子FT的电池箱作为侯选的故障电池箱,故障聚类如图4所示。If battery box i fails, its sparsity factor should be less than the failure factor FT, because the safe distance of battery box i from other battery boxes is farther than all other battery boxes. All battery boxes whose sparse coefficient LSR is less than the fault factor FT are selected as candidate fault battery boxes, and the fault clustering is shown in Figure 4.
3、故障状态识别3. Fault status identification
对所有m个电池箱的稀疏系数LSR(a)进行排列,并以故障阈值FT作为判断依据,所有稀疏系数低于FT的电池箱即可认为是故障电池箱。The sparse coefficient LSR(a) of all m battery boxes is arranged, and the fault threshold FT is used as the judgment basis. All battery boxes with a sparse coefficient lower than FT can be regarded as faulty battery boxes.
本发明从异源监测数据出发,运用NJW聚类算法对高维数据进行降维,提取监测数据特征向量,消除观测误差和过程噪声影响;利用DTW法对异步数据进行动态归整,解决异源数据不匹配问题;基于客观指标进行故障聚类分析,对不同系统具有很强的自适应性,从而能够客观地反映电池储能系统安全运行状态,准确发出故障预警。The invention starts from the heterologous monitoring data, uses the NJW clustering algorithm to reduce the dimension of the high-dimensional data, extracts the characteristic vector of the monitoring data, and eliminates the influence of observation errors and process noise; the DTW method is used to dynamically reorganize the asynchronous data to solve the problem of heterologous data. Data mismatch problem; fault clustering analysis based on objective indicators has strong adaptability to different systems, so that it can objectively reflect the safe operation status of the battery energy storage system and accurately issue fault warnings.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110836171.8A CN113537525B (en) | 2021-07-23 | 2021-07-23 | A fault state adaptive early warning method for battery energy storage system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110836171.8A CN113537525B (en) | 2021-07-23 | 2021-07-23 | A fault state adaptive early warning method for battery energy storage system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113537525A CN113537525A (en) | 2021-10-22 |
| CN113537525B true CN113537525B (en) | 2022-07-15 |
Family
ID=78088791
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110836171.8A Active CN113537525B (en) | 2021-07-23 | 2021-07-23 | A fault state adaptive early warning method for battery energy storage system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113537525B (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114280352B (en) * | 2021-12-27 | 2024-02-13 | 杭州电子科技大学 | Current-based large instrument working hour calculation method |
| CN115267589B (en) * | 2022-09-26 | 2023-01-06 | 陕西汽车集团股份有限公司 | Multi-parameter joint diagnosis method for battery faults of electric vehicle |
| CN115308631B (en) * | 2022-10-09 | 2023-02-03 | 湖北工业大学 | A new energy vehicle power battery pack fault diagnosis method and system |
| CN116775408B (en) * | 2023-06-19 | 2024-02-09 | 上海启斯云计算有限公司 | Intelligent monitoring method for operation state of energy storage equipment |
| CN116577671B (en) * | 2023-07-12 | 2023-09-29 | 中国华能集团清洁能源技术研究院有限公司 | Battery system abnormality detection method and device |
| CN117331921B (en) * | 2023-09-28 | 2024-11-22 | 石家庄铁道大学 | A bearing monitoring multi-source data processing method |
| CN117171588A (en) * | 2023-11-02 | 2023-12-05 | 吉林省有继科技有限公司 | Method for detecting gradient utilization faults of power battery |
| CN117406098B (en) * | 2023-11-09 | 2024-12-24 | 山东大学 | Battery pack fault diagnosis method and system based on feature decomposition and data masking |
| CN119989239B (en) * | 2025-04-14 | 2025-06-24 | 南京佑赛科技有限公司 | Compressed air energy storage system running state evaluation method based on principal clustering analysis |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8890480B2 (en) * | 2006-11-30 | 2014-11-18 | The Boeing Company | Health management of rechargeable batteries |
| CN104897403B (en) * | 2015-06-24 | 2017-05-17 | 北京航空航天大学 | Self-adaption fault diagnosis method based on permutation entropy (PE) and manifold-based dynamic time warping (MDTW) |
| CN108414896B (en) * | 2018-06-04 | 2020-06-12 | 西南交通大学 | Power grid fault diagnosis method |
| CN108960321B (en) * | 2018-07-02 | 2021-10-22 | 国电南瑞科技股份有限公司 | A battery fault prediction method for large lithium battery energy storage power station |
| CN109002781B (en) * | 2018-07-02 | 2021-10-22 | 国电南瑞科技股份有限公司 | A fault prediction method for energy storage converters |
| US11555858B2 (en) * | 2019-02-25 | 2023-01-17 | Toyota Research Institute, Inc. | Systems, methods, and storage media for predicting a discharge profile of a battery pack |
| CN111046942A (en) * | 2019-12-09 | 2020-04-21 | 交控科技股份有限公司 | Turnout fault judgment method and device |
| CN111516548B (en) * | 2020-04-23 | 2021-11-23 | 华南理工大学 | Cloud platform-based charging pile system for realizing power battery fault diagnosis |
| CN112946522A (en) * | 2021-02-05 | 2021-06-11 | 四川大学 | On-line monitoring method for short-circuit fault in battery energy storage system caused by low-temperature working condition |
-
2021
- 2021-07-23 CN CN202110836171.8A patent/CN113537525B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN113537525A (en) | 2021-10-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113537525B (en) | A fault state adaptive early warning method for battery energy storage system | |
| CN111142036B (en) | On-line fast capacity estimation method for lithium-ion batteries based on incremental capacity analysis | |
| CN107093775B (en) | A kind of method for evaluating consistency and device of cascaded structure battery pack | |
| CN110161425B (en) | A Prediction Method of Remaining Service Life Based on Degradation Stages of Lithium Batteries | |
| CN116502112B (en) | New energy power supply test data management method and system | |
| CN112699913A (en) | Transformer area household variable relation abnormity diagnosis method and device | |
| CN110058178A (en) | A kind of lithium battery method for detecting health status and system | |
| CN114114039B (en) | A method and device for evaluating the consistency of single cells of a battery system | |
| CN111487532B (en) | A Decommissioned Battery Screening Method and System Based on Analytic Hierarchy Process and Entropy Method | |
| CN111967194B (en) | Battery classification method based on cloud historical data | |
| CN119029350B (en) | Battery control method and system | |
| CN117113232B (en) | A method for identifying thermal runaway risk of lithium-ion battery packs in electric vehicles | |
| CN109613446A (en) | A Lithium Battery Aging Detection Method Based on Time Series Analysis | |
| CN115800433A (en) | Battery pack consistency evaluation and grade evaluation method and device | |
| US20240110985A1 (en) | Method and apparatus for monitoring battery cell data, storage medium, and electronic device | |
| CN116404186B (en) | Power lithium-manganese battery production system | |
| CN115308603A (en) | Battery life prediction method based on multi-dimensional features and machine learning | |
| CN116381545A (en) | Method and device for determining consistency grade of energy storage battery pack | |
| CN117110892A (en) | Battery lithium precipitation early warning method, system and electronic equipment | |
| Ma et al. | State of health estimation of retired battery for echelon utilization based on charging curve | |
| Li et al. | A state-of-health estimation method of lithium-ion batteries using ICA and SVM | |
| CN116487737A (en) | Lithium battery matching method and device based on multiple clustering | |
| Chen et al. | Consistency evaluation for lithium-ion battery energy storage systems based on approximate low-rank representation and hypersphere concentration | |
| Qin et al. | Invariant learning based multi-stage identification for lithium-ion battery performance degradation | |
| Lin et al. | Research on inconsistency identification of Lithium-ion battery pack based on operational data |
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 |