CN117761543A - Multi-sparse observer fusion power battery abnormal voltage identification method and system - Google Patents

Multi-sparse observer fusion power battery abnormal voltage identification method and system Download PDF

Info

Publication number
CN117761543A
CN117761543A CN202311832161.2A CN202311832161A CN117761543A CN 117761543 A CN117761543 A CN 117761543A CN 202311832161 A CN202311832161 A CN 202311832161A CN 117761543 A CN117761543 A CN 117761543A
Authority
CN
China
Prior art keywords
observer
voltage
sparse
data
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.)
Pending
Application number
CN202311832161.2A
Other languages
Chinese (zh)
Inventor
马建
张昭
赵轩
马宇骋
龚贤武
相里康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changan University
Original Assignee
Changan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changan University filed Critical Changan University
Priority to CN202311832161.2A priority Critical patent/CN117761543A/en
Publication of CN117761543A publication Critical patent/CN117761543A/en
Pending legal-status Critical Current

Links

Landscapes

  • Secondary Cells (AREA)

Abstract

一种多稀疏观测器融合动力电池异常电压识别方法及系统,方法包括由电动汽车上传的历史数据中,提取电池单体电压数据并进行预处理;基于预处理后的电池单体电压数据,确定时间窗长度,构建电压波动特征量;对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集;对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值;基于异常电压阈值,对车辆实时数据进行异常电压识别。本发明基于车辆在不同模式下的电压波动状态,采用多稀疏观测器融合的方法为动力电池异常电压确定阈值,可为热失控和具有潜在故障风险的车辆进行预警,提高行车安全性。

A multi-sparse observer fused power battery abnormal voltage identification method and system. The method includes extracting battery cell voltage data from historical data uploaded by electric vehicles and preprocessing; based on the preprocessed battery cell voltage data, determine The length of the time window is used to construct the voltage fluctuation characteristic quantity; the voltage fluctuation characteristic quantity is divided into modes to construct battery fluctuation characteristic quantity data sets under different modes; the voltage fluctuation characteristic quantity data sets under different modes are sparsely processed to construct sparse observations Collect the detectors and perform conditional judgment. If the conditions are met, sparse observer fusion is performed to determine the abnormal voltage threshold; based on the abnormal voltage threshold, abnormal voltage identification is performed on the vehicle's real-time data. Based on the voltage fluctuation status of the vehicle in different modes, the present invention uses a multi-sparse observer fusion method to determine the threshold for the abnormal voltage of the power battery. It can provide early warning for vehicles with thermal runaway and potential failure risks, and improve driving safety.

Description

一种多稀疏观测器融合动力电池异常电压识别方法及系统A multi-sparse observer fusion power battery abnormal voltage identification method and system

技术领域Technical field

本发明属于动力电池安全技术领域,具体涉及一种多稀疏观测器融合动力电池异常电压识别方法及系统。The invention belongs to the technical field of power battery safety, and specifically relates to a multi-sparse observer fusion power battery abnormal voltage identification method and system.

背景技术Background technique

随着全球能源短缺的不断加剧,电动汽车的普及程度不断提高,电动汽车目前已经被公认为汽车行业未来发展的重点方向。因此,针对车载电池系统安全性的研究越来越受到工业界和学术界的广泛关注。电压作为动力电池的外部表征参数,是评价电池系统安全性的一个重要指标。大量研究表明,异常的电压波动可能表明电池系统的安全水平正在下降,如果不加以控制,最终可能导致电压故障甚至热失控。因此,准确识别电压异常波动对于及早发现电池系统故障、保障运营车辆的安全运行极为重要。As global energy shortages continue to intensify, the popularity of electric vehicles continues to increase. Electric vehicles are currently recognized as a key direction for the future development of the automotive industry. Therefore, research on the safety of vehicle battery systems has received increasing attention from industry and academia. Voltage, as an external representation parameter of power batteries, is an important indicator for evaluating the safety of battery systems. A large number of studies have shown that abnormal voltage fluctuations may indicate that the safety level of the battery system is declining, and if not controlled, it may eventually lead to voltage failure or even thermal runaway. Therefore, accurate identification of abnormal voltage fluctuations is extremely important for early detection of battery system failures and ensuring the safe operation of operating vehicles.

基于阈值的异常电压识别方法由于单车识别时间短的优势被广泛应用在大规模车辆的实时安全监测。当前研究中异常阈值的确定往往基于一辆或少数车辆获得的实验结果,且始终保持恒定。然而,由于电池规格、驾驶员驾驶习惯和操作环境的巨大差异,不同车辆具有不同的“异常电压范围”。用于异常检测的恒定异常电压阈值很难推广到大规模车辆监控。因此,根据不同的车辆工况设置自适应的异常判定阈值对于快速准确的识别异常电压具有重要意义。The threshold-based abnormal voltage identification method is widely used in real-time safety monitoring of large-scale vehicles due to its short vehicle identification time. The determination of anomaly thresholds in the current study is often based on experimental results obtained on one or a small number of vehicles and remains constant throughout. However, due to huge differences in battery specifications, driver driving habits and operating environments, different vehicles have different "abnormal voltage ranges". The constant abnormal voltage threshold used for anomaly detection is difficult to generalize to large-scale vehicle monitoring. Therefore, setting adaptive abnormality determination thresholds according to different vehicle operating conditions is of great significance for quickly and accurately identifying abnormal voltages.

发明内容Contents of the invention

本发明的目的在于针对上述现有技术中的问题,提供一种多稀疏观测器融合动力电池异常电压识别方法及系统,通过车辆历史数据,基于车辆在不同模式下的电压波动状态,采用多稀疏观测器融合的方法为动力电池异常电压确定阈值,可对单车自适应设定异常电压阈值。The purpose of the present invention is to provide a multi-sparse observer fused power battery abnormal voltage identification method and system to solve the above-mentioned problems in the prior art. Through vehicle historical data and based on the voltage fluctuation status of the vehicle in different modes, the multi-sparse observer is used to identify the abnormal voltage of the power battery. The observer fusion method determines the threshold for the abnormal voltage of the power battery, and can adaptively set the abnormal voltage threshold for the bicycle.

为了实现上述目的,本发明有如下的技术方案:In order to achieve the above objects, the present invention has the following technical solutions:

第一方面,提供一种多稀疏观测器融合动力电池异常电压识别方法,包括:In the first aspect, a multi-sparse observer fusion power battery abnormal voltage identification method is provided, including:

由电动汽车上传的历史数据中,提取电池单体电压数据并进行预处理;From the historical data uploaded by electric vehicles, the battery cell voltage data is extracted and preprocessed;

基于预处理后的电池单体电压数据,确定时间窗长度,构建电压波动特征量;Based on the preprocessed battery cell voltage data, determine the length of the time window and construct the voltage fluctuation characteristic quantity;

对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集;Divide the voltage fluctuation characteristic quantities into modes and construct battery fluctuation characteristic quantity data sets under different modes;

对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值;Perform sparse processing on the voltage fluctuation feature data sets under different modes, construct a sparse observer set, and perform conditional judgments. If the conditions are met, sparse observer fusion will be performed to determine the abnormal voltage threshold;

基于异常电压阈值,对车辆实时数据进行异常电压识别。Based on the abnormal voltage threshold, abnormal voltage identification is performed on vehicle real-time data.

作为一种优选方案,根据国标GB/T 32960《电动汽车远程服务与管理系统技术规范》上传电动汽车的历史数据,提取电池单体电压数据并进行预处理,预处理的步骤包括:As an optimal solution, upload the historical data of electric vehicles according to the national standard GB/T 32960 "Technical Specifications for Remote Service and Management Systems of Electric Vehicles", extract the battery cell voltage data and perform preprocessing. The preprocessing steps include:

对于样本数据中出现的时间乱序、数据重复,将数据按时间进行排序并进行去冗操作;For time disorder and data duplication in the sample data, sort the data by time and perform redundant operations;

如果单体电池电压值列表存在空值,则认定为无效帧数据;If there is a null value in the single cell voltage value list, it will be considered as invalid frame data;

如果最高单体电压值大于6V,则认定为无效帧数据;If the highest cell voltage value is greater than 6V, it is considered invalid frame data;

如果最低单体电压值小于0V,则认定为无效帧数据。If the lowest cell voltage value is less than 0V, it is considered invalid frame data.

作为一种优选方案,所述电压波动特征量为单一电池单体在特定时间段的电压波动情况,计算表达式如下:As a preferred solution, the voltage fluctuation characteristic quantity is the voltage fluctuation of a single battery cell in a specific time period, and the calculation expression is as follows:

式中,xi表示观察窗内i时刻的电压值,μ表示观察窗内所有时刻电压值的平均数,n表示观察窗内样本数量,Stdi表示第i个电池单体固定时间窗口的电压标准差;In the formula, x i represents the voltage value at time i in the observation window, μ represents the average of the voltage values at all times in the observation window, n represents the number of samples in the observation window, and Std i represents the voltage of the i-th battery cell in the fixed time window. standard deviation;

将超出电池单体电压标准差的中位数10倍以上的单体剔除后计算标准差:Calculate the standard deviation after eliminating cells that exceed the median of the battery cell voltage standard deviation by more than 10 times:

式中,Stdmedian表示所有单体电压固定时间窗口标准差的中位数,Stdstd表示经过Pre-standard方法处理后的所有单体电池固定时间窗口标准差的标准差,Std_standardi表示第i个电池单体经过Pre-standard方法处理后的电压波动异常分数。In the formula, Std median represents the median of the standard deviation of all cell voltages in a fixed time window, Std std represents the standard deviation of the standard deviation of all cell voltages in a fixed time window after being processed by the Pre-standard method, and Std_standard i represents the i-th The abnormal voltage fluctuation score of a battery cell after being processed by the Pre-standard method.

作为一种优选方案,对电压波动特征量进行模式划分的步骤包括:取同时刻所有电池单体波动特征量的中位数表征对应时刻动力电池组的普遍波动趋势,称为安全模式;取同时刻所有电池单体波动特征量的最大值表征对应时刻动力电池组的极限波动趋势,称为极限模式。As a preferred solution, the step of dividing the voltage fluctuation characteristic quantity into modes includes: taking the median of the fluctuation characteristic quantity of all battery cells at the same time to represent the general fluctuation trend of the power battery pack at the corresponding time, which is called the safety mode; taking the same value The maximum value of the fluctuation characteristic quantity of all battery cells at a time represents the limit fluctuation trend of the power battery pack at the corresponding time, which is called the limit mode.

作为一种优选方案,所述对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合的步骤包括:As a preferred solution, the step of sparsely processing the voltage fluctuation feature data sets in different modes and constructing a sparse observer set includes:

对于不同模式下的电池波动特征量集合M,集合中的每一个对象都是一个观测器;在电池波动特征量集合M中随机抽取多个对象构成观测器集合,根据统计抽样理论,得到规定置信区间和抽样误差所需要的观测器数量,计算表达式如下:For the battery fluctuation feature set M under different modes, each object in the set is an observer; multiple objects are randomly selected from the battery fluctuation feature set M to form an observer set. According to the statistical sampling theory, the specified confidence is obtained The number of observers required for the interval and sampling error is calculated as follows:

式中,k为需要的观测器数量,m为电池波动特征量集合M中的对象数量,σ为电池波动特征量集合M的标准偏差,ε为不重复采样的极限误差,Z为置信系数;In the formula, k is the number of observers required, m is the number of objects in the battery fluctuation feature set M, σ is the standard deviation of the battery fluctuation feature set M, ε is the limit error without repeated sampling, and Z is the confidence coefficient;

计算每一个观测器和电池波动特征量集合M中每个对象的欧氏距离Di,j,构建距离矩阵D,即D={Di,j,i∈(1,2,...,m),j∈(1,2,...,k)};构建观测矩阵P用来储存距离数据集中每个对象最近的x个观测器的索引;Calculate the Euclidean distance D i,j of each observer and each object in the battery fluctuation feature set M, and construct a distance matrix D, that is, D={D i,j ,i∈(1,2,..., m), j∈(1,2,...,k)}; Construct an observation matrix P to store the indices of the x observers closest to each object in the data set;

对观测矩阵P中的所有索引值进行统计,创建矩阵U表示每个观测器出现的次数,即P={Pj,j∈(1,2,...,k)};根据矩阵U设置惰性阈值q,q的取值按下式计算:Calculate all index values in the observation matrix P and create a matrix U to represent the number of occurrences of each observer, that is, P = {P j ,j∈(1,2,...,k)}; set according to the matrix U The inertia threshold q, the value of q is calculated as follows:

q=Qρ(U)q= (U)

其中,Qρ(.)为分位数函数;Among them, Q ρ (.) is the quantile function;

当观测器出现的次数小于q时,认定对应观测器为惰性观测器,并将惰性观测器在观测器集合中删除;当移除惰性观测器后,剩余kact个观测器,成为活跃观测器,用来表征训练数据集的分布特性的低密度模型。When the number of occurrences of an observer is less than q, the corresponding observer is considered a lazy observer, and the lazy observer is deleted from the observer set; after the lazy observer is removed, k act observers remain and become active observers , a low-density model used to characterize the distribution characteristics of the training data set.

作为一种优选方案,所述进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值的步骤包括:As a preferred solution, the step of performing conditional judgment, performing sparse observer fusion if the condition is met, and determining the abnormal voltage threshold includes:

获取安全模式观测器集合Saf_sample和极限模式观测器集合Ext_sample,用波动系数fluc_coefficient表征动力电池自身的波动特性,计算表达式如下:Obtain the safe mode observer set Saf_sample and the extreme mode observer set Ext_sample, and use the fluctuation coefficient fluc_coefficient to characterize the fluctuation characteristics of the power battery itself. The calculation expression is as follows:

fluc_coefficient=min(Ext_sample)-max(Saf_sample)fluc_coefficient=min(Ext_sample)-max(Saf_sample)

将fluc_threshold作为判定车辆电压异常的阈值,计算表达式如下:Taking fluc_threshold as the threshold to determine vehicle voltage abnormality, the calculation expression is as follows:

当波动特征量大于fluc_threshold时,即认定为异常电压;When the fluctuation characteristic quantity is greater than fluc_threshold, it is identified as abnormal voltage;

采样时保证fluc_threshold大于Safe_sample的最小值,满足该条件则将两个观测器集合进行融合用于电压波动异常点的检测,如不满足则需重新进行采样。When sampling, ensure that fluc_threshold is greater than the minimum value of Safe_sample. If this condition is met, the two observer sets will be fused to detect voltage fluctuation anomalies. If not, resampling will be required.

作为一种优选方案,所述基于异常电压阈值,对车辆实时数据进行异常电压识别的步骤包括:对新对象o异常程度进行判断时,计算新对象o与低密度模型中的每一个观测器的欧式距离,形成一个长度为kact的距离矩阵N,记录距离最近的x个观测器的索引值,构建观察数组P;同时,计算新对象o与距离最近的x个观测器的平均距离,表示异常程度yoAs a preferred solution, the step of identifying abnormal voltage on vehicle real-time data based on abnormal voltage thresholds includes: when judging the abnormality degree of new object o, calculate the difference between new object o and each observer in the low-density model. Euclidean distance, forming a distance matrix N with a length of k act , recording the index values of the nearest x observers, and constructing an observation array P; at the same time, calculating the average distance between the new object o and the nearest x observers, expressed Abnormal degree y o :

式中,M(.)为中位数函数,d(,)为欧氏距离。In the formula, M(.) is the median function, and d(,) is the Euclidean distance.

第二方面,提供一种多稀疏观测器融合动力电池异常电压识别系统,包括:In the second aspect, a multi-sparse observer fusion power battery abnormal voltage identification system is provided, including:

电池单体电压数据提取模块,用于由电动汽车上传的历史数据中,提取电池单体电压数据并进行预处理;The battery cell voltage data extraction module is used to extract the battery cell voltage data from the historical data uploaded by electric vehicles and perform preprocessing;

电压波动特征量构建模块,用于基于预处理后的电池单体电压数据,确定时间窗长度,构建电压波动特征量;The voltage fluctuation characteristic quantity building module is used to determine the length of the time window and construct the voltage fluctuation characteristic quantity based on the preprocessed battery cell voltage data;

电池波动特征量数据集划分模块,用于对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集;The battery fluctuation characteristic quantity data set division module is used to divide the voltage fluctuation characteristic quantity into modes and construct battery fluctuation characteristic quantity data sets in different modes;

异常电压阈值确定模块,用于对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值;The abnormal voltage threshold determination module is used to sparsely process voltage fluctuation feature data sets in different modes, construct a sparse observer set, and perform conditional judgments. If the conditions are met, sparse observer fusion is performed to determine the abnormal voltage threshold;

异常电压识别模块,用于基于异常电压阈值,对车辆实时数据进行异常电压识别。The abnormal voltage identification module is used to identify abnormal voltages on vehicle real-time data based on abnormal voltage thresholds.

第三方面,提供一种电子设备,包括:In a third aspect, an electronic device is provided, including:

存储器,存储至少一个指令;及处理器,执行所述存储器中存储的指令以实现所述的多稀疏观测器融合动力电池异常电压识别方法。A memory that stores at least one instruction; and a processor that executes the instructions stored in the memory to implement the multi-sparse observer fusion power battery abnormal voltage identification method.

第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行以实现所述的多稀疏观测器融合动力电池异常电压识别方法。In a fourth aspect, a computer-readable storage medium is provided. At least one instruction is stored in the computer-readable storage medium. The at least one instruction is executed by a processor in an electronic device to implement the multi-sparse observer fusion. Method for identifying abnormal voltage of power battery.

相较于现有技术,本发明至少具有如下的有益效果:Compared with the prior art, the present invention at least has the following beneficial effects:

对于运行中的电动汽车,不同车辆因为电池种类、驾驶员驾驶习惯、运行环境等方面的不同而存在异常电压定义范围的差异,本发明围绕电动汽车动力电池异常电压的识别,在电动汽车上传的实车运行大数据基础之上,针对不同车辆因为电池种类、驾驶员驾驶习惯、运行环境等方面的不同而导致电压的波动范围差异,提出了基于多稀疏观测器融合的动力电池异常电压自适应识别方法,通过对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集,对不同模式下的电压波动特征量数据集进行稀疏处理,构建得到稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值,最后基于确定出的异常电压阈值,对车辆实时数据进行异常电压识别。本发明通过使用稀疏表示的方法表征电池的正常波动范围,采用多稀疏观测器融合进行异常电压的识别,可为热失控和具有潜在故障风险的车辆进行提前预警,进而提高行车安全性。For electric vehicles in operation, different vehicles have different definition ranges of abnormal voltages due to differences in battery types, driver driving habits, operating environments, etc. The present invention focuses on the identification of abnormal voltages of electric vehicle power batteries and uploads data to Based on the big data of actual vehicle operation, in view of the differences in the voltage fluctuation range of different vehicles due to differences in battery types, driver driving habits, operating environments, etc., a power battery abnormal voltage adaptation based on the fusion of multiple sparse observers is proposed The identification method divides the voltage fluctuation characteristic quantity into patterns, constructs battery fluctuation characteristic quantity data sets in different modes, performs sparse processing on the voltage fluctuation characteristic quantity data sets in different modes, constructs a sparse observer set, and performs Conditional judgment, if the conditions are met, sparse observer fusion is performed to determine the abnormal voltage threshold. Finally, based on the determined abnormal voltage threshold, abnormal voltage identification is performed on the vehicle's real-time data. By using a sparse representation method to characterize the normal fluctuation range of the battery, and using multi-sparse observer fusion to identify abnormal voltages, the present invention can provide early warning for vehicles with thermal runaway and potential failure risks, thereby improving driving safety.

附图说明Description of the drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present invention. Those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.

图1是本发明实施例多稀疏观测器融合动力电池异常电压识别方法整体流程图;Figure 1 is an overall flow chart of the abnormal voltage identification method of a multi-sparse observer fused power battery according to an embodiment of the present invention;

图2是本发明实施例第一组车辆电池单体数据中各电池单体的电压曲线图;Figure 2 is a voltage curve diagram of each battery cell in the first group of vehicle battery cell data according to the embodiment of the present invention;

图3是本发明实施例第一组车辆电池单体数据中各电池单体的Std_standard曲线图;Figure 3 is a Std_standard curve diagram of each battery cell in the first group of vehicle battery cell data according to the embodiment of the present invention;

图4是本发明实施例第一组车辆电池单体数据中各电池单体的异常系数曲线图;Figure 4 is a graph of the abnormality coefficient of each battery cell in the first group of vehicle battery cell data according to the embodiment of the present invention;

图5是本发明实施例第二组车辆电池单体数据中各电池单体的电压曲线图;Figure 5 is a voltage curve diagram of each battery cell in the second set of vehicle battery cell data according to the embodiment of the present invention;

图6是本发明实施例第二组车辆电池单体数据中各电池单体的异常系数曲线图。Figure 6 is a graph of anomaly coefficients of each battery cell in the second set of vehicle battery cell data according to the embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明做进一步的详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings.

请参阅图1,本发明实施例提出的一种多稀疏观测器融合动力电池异常电压识别方法,包括以下步骤:Please refer to Figure 1. A multi-sparse observer fusion power battery abnormal voltage identification method proposed by an embodiment of the present invention includes the following steps:

(1)根据国标GB/T 32960《电动汽车远程服务与管理系统技术规范》,电动汽车上传历史数据,提取电池单体电压数据并进行预处理;(1) According to the national standard GB/T 32960 "Technical Specification for Electric Vehicle Remote Service and Management System", electric vehicles upload historical data, extract battery cell voltage data and perform preprocessing;

(2)基于电池单体电压数据,确定时间窗长度,构建电压波动特征量;(2) Based on the battery cell voltage data, determine the length of the time window and construct the voltage fluctuation characteristic quantity;

(3)对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集;(3) Divide the voltage fluctuation characteristic quantities into modes and construct battery fluctuation characteristic quantity data sets under different modes;

(4)对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,并确定异常电压阈值;(4) Perform sparse processing on the voltage fluctuation feature data sets in different modes, construct a sparse observer set, and perform conditional judgments. If the conditions are met, sparse observer fusion is performed and the abnormal voltage threshold is determined;

(5)基于异常电压阈值,对车辆实时数据进行异常电压识别。(5) Based on the abnormal voltage threshold, abnormal voltage identification is performed on vehicle real-time data.

在一种可能的实施方式中,步骤(1)中,需要对国标GB/T 32960《电动汽车远程服务与管理系统技术规范》电动汽车上传的数据,进行预处理后分析,预处理原则如下:In a possible implementation, in step (1), the data uploaded by the electric vehicle according to the national standard GB/T 32960 "Technical Specification for Electric Vehicle Remote Service and Management System" needs to be preprocessed and analyzed. The preprocessing principles are as follows:

1)针对样本数据中存在时间乱序、数据重复的问题,对数据按时间进行排序并进行去冗操作;1) In view of the problems of time disorder and data duplication in the sample data, sort the data by time and perform redundant operations;

2)如果单体电池电压值列表存在空值,表示此帧数据并非所有电压值都有效,故认定为无效帧数据;2) If there is a null value in the single cell voltage value list, it means that not all voltage values of this frame data are valid, so it is regarded as invalid frame data;

3)如果最高单体电压值大于6V,则认定为无效帧数据;3) If the highest cell voltage value is greater than 6V, it is considered invalid frame data;

4)如果最低单体电压值小于0V,则认定为无效帧数据。4) If the lowest cell voltage value is less than 0V, it is considered invalid frame data.

在一种可能的实施方式中,步骤(2)选取标准差作为表征单体电池电压波动的特征量,为了表征单一电池单体在特定时间段的电压波动情况,故采用观察窗技术。计算公式如下:In a possible implementation, step (2) selects the standard deviation as a characteristic quantity to characterize the voltage fluctuation of a single battery cell. In order to characterize the voltage fluctuation of a single battery cell in a specific time period, observation window technology is used. Calculated as follows:

式中,xi表示观察窗内i时刻的电压值,μ表示观察窗内所有时刻电压值的平均数,n表示观察窗内样本数量,Stdi表示第i个电池单体固定时间窗口的电压标准差。In the formula, x i represents the voltage value at time i in the observation window, μ represents the average of the voltage values at all times in the observation window, n represents the number of samples in the observation window, and Std i represents the voltage of the i-th battery cell in the fixed time window. standard deviation.

为了表征同一时间段内不同电池单体之间的横向比较,Pre-standard方法被提出。针对动力电池故障早期的电压波动特性,Pre-standard方法基于Z-score标准化方法进行了改进。无论在电池组的早期微小异常波动,还是在故障前期的电池单体瞬间变化,往往出现异常的电池单体发生在电池组众多单体中的少数,故在Pre-standard方法中,用电池单体电压标准差的中位数代替平均值来表征电池组的正常状态。同样,在计算标准差时,通过对多辆热失控故障车辆的分析中得出,故障前期异常单体的标准差常常会超出正常状态的10倍以上,故对超出电池单体电压标准差的中位数的10倍以上的单体剔除后计算标准差,从而保证其不受故障前期电压突变的影响,计算公式如下:In order to characterize the horizontal comparison between different battery cells within the same time period, the Pre-standard method was proposed. In view of the voltage fluctuation characteristics in the early stage of power battery failure, the Pre-standard method is improved based on the Z-score standardization method. Regardless of the small abnormal fluctuations in the early stages of the battery pack or the instantaneous changes in the battery cells in the early stage of failure, abnormal battery cells often occur in a few of the many cells in the battery pack. Therefore, in the Pre-standard method, battery cells are used The median of the body voltage standard deviation replaces the average value to characterize the normal state of the battery pack. Similarly, when calculating the standard deviation, it is concluded from the analysis of multiple vehicles with thermal runaway failures that the standard deviation of abnormal cells in the early stage of failure often exceeds the normal state by more than 10 times. Therefore, the standard deviation of the battery cell voltage exceeding the standard deviation is The standard deviation is calculated after the monomers that are more than 10 times the median are eliminated to ensure that they are not affected by voltage mutations in the early stage of failure. The calculation formula is as follows:

其中,Stdmedian表示所有单体电压固定时间窗口标准差的中位数,Stdstd表示经过Pre-standard方法处理后的所有单体电池固定时间窗口标准差的标准差。Std_standardi表示第i个电池单体经过Pre-standard方法处理后的电压波动异常分数。Among them, Std median represents the median of the standard deviation of all single cell voltages in a fixed time window, and Std std represents the standard deviation of the standard deviation of all single cells in a fixed time window after being processed by the Pre-standard method. Std_standard i represents the abnormal voltage fluctuation score of the i-th battery cell after being processed by the Pre-standard method.

在一种可能的实施方式中,步骤(3)基于动力电池的工作特性,提出了能够用于稀疏观测器使用的表征动力电池电压正常状态下波动范围的两种模式。对于动力电池组而言,在故障早期的微小异常波动往往体现在单一或少数单体,因此,对于绝大多数单体而言,在存在单体异常波动的情况下,它们仍可以保证以正常状态运行。故取同时刻所有电池单体波动特征量的中位数表征该时刻动力电池组的普遍波动趋势,称为安全模式;取同时刻所有电池单体波动特征量的最大值表征该时刻动力电池组的极限波动趋势,称为极限模式。将不同模式下的电池波动特征量集合独立保存,构建不同模式下的电池波动特征量数据集。In one possible implementation, based on the operating characteristics of the power battery, step (3) proposes two modes that can be used by the sparse observer to characterize the fluctuation range of the power battery voltage in the normal state. For power battery packs, small abnormal fluctuations in the early stages of failure are often reflected in a single or a few cells. Therefore, for the vast majority of cells, in the presence of abnormal cell fluctuations, they can still guarantee normal operation. status running. Therefore, the median of the fluctuation characteristics of all battery cells at the same time is taken to represent the general fluctuation trend of the power battery pack at that time, which is called the safety mode; the maximum value of the fluctuation characteristics of all battery cells at the same time is taken to represent the power battery pack at that time. The extreme fluctuation trend is called the extreme mode. Save the battery fluctuation feature sets in different modes independently to construct battery fluctuation feature data sets in different modes.

在一种可能的实施方式中,步骤(4)中,提出了基于多稀疏观测器融合的异常电压阈值判定方法。首先初始化观测器,对于不同模式下的电池波动特征量集合M,集合中的每一个对象都可称为是一个观测器。在M中随机抽取多个对象构成观测器集合,根据统计抽样理论,可以得到规定置信区间和抽样误差所需要的观测器数量,计算公式如下:In a possible implementation, in step (4), an abnormal voltage threshold determination method based on multi-sparse observer fusion is proposed. First, initialize the observer. For the battery fluctuation feature set M under different modes, each object in the set can be called an observer. Multiple objects are randomly selected from M to form an observer set. According to the statistical sampling theory, the number of observers required to specify the confidence interval and sampling error can be obtained. The calculation formula is as follows:

其中,k为需要的观测器数量,m为M中的对象数量,σ为M的标准偏差,ε为不重复采样的极限误差,取ε=0.1σ,Z为置信系数,取95%的置信区间,故Z=1.96。Among them, k is the number of observers required, m is the number of objects in M, σ is the standard deviation of M, ε is the limit error of non-repeated sampling, take ε = 0.1σ, Z is the confidence coefficient, take 95% confidence interval, so Z=1.96.

其次构建观察矩阵,计算每一个观测器和M中每个对象的欧氏距离Di,j,构建距离矩阵D,即D={Di,j,i∈(1,2,...,m),j∈(1,2,...,k)}。构建观测矩阵P用来储存距离数据集中每个对象最近的x个观测器的索引。x一般取值为3-10,且不会对异常点的识别造成较大的偏差,但它与k的取值和场景特性有关。因此在选取时应综合考量,确保不会出现模型过于简化和过拟合的问题。Secondly, the observation matrix is constructed, the Euclidean distance D i,j of each observer and each object in M is calculated, and the distance matrix D is constructed, that is, D={D i,j ,i∈(1,2,..., m),j∈(1,2,...,k)}. The observation matrix P is constructed to store the indices of the x nearest observers to each object in the data set. The general value of x is 3-10, and it will not cause a large deviation in the identification of abnormal points, but it is related to the value of k and the scene characteristics. Therefore, comprehensive considerations should be taken when selecting to ensure that the problems of oversimplification and overfitting of the model will not occur.

随后移除惰性观测器,对观测矩阵中的所有索引值进行统计,创建矩阵U表示每个观测器出现的次数,即P={Pj,j∈(1,2,...,k)}。根据矩阵U设置惰性阈值q,计算公式如下:Then the lazy observer is removed, all index values in the observation matrix are counted, and a matrix U is created to represent the number of occurrences of each observer, that is, P={P j ,j∈(1,2,...,k) }. Set the inertia threshold q according to the matrix U, and the calculation formula is as follows:

q=Qρ(U)q= (U)

其中,Qρ(.)为分位数函数,根据经验测试ρ取0.3时效果较好。Among them, Q ρ (.) is the quantile function. According to empirical tests, when ρ is 0.3, the effect is better.

当观测器出现的次数小于q时,认定为惰性观测器并将其在观测器集合中删除。这种筛除可以保证剩余的观测器能够代表训练数据的中高密度区域,避免异常点对识别效果的干扰。移除惰性观测器后,剩余kact个观测器,成为活跃观测器,即为可以用来表征训练数据集的分布特性的低密度模型。When the number of occurrences of an observer is less than q, it is considered a lazy observer and is deleted from the observer set. This filtering can ensure that the remaining observers can represent the medium and high density areas of the training data and avoid the interference of outliers on the recognition effect. After removing the lazy observers, the remaining k act observers become active observers, which are low-density models that can be used to characterize the distribution characteristics of the training data set.

最后,将两种模式下的波动特征量分别进行上述操作,得到安全模式观测器集合Saf_sample和极限模式观测器集合Ext_sample。用波动系数fluc_coefficient表征动力电池自身的波动特性,计算公式如下:Finally, the fluctuation characteristic quantities in the two modes are subjected to the above operations respectively to obtain the safe mode observer set Saf_sample and the extreme mode observer set Ext_sample. The fluctuation coefficient fluc_coefficient is used to characterize the fluctuation characteristics of the power battery itself. The calculation formula is as follows:

fluc_coefficient=min(Ext_sample)-max(Saf_sample)fluc_coefficient=min(Ext_sample)-max(Saf_sample)

由上式可知,不同车辆、不同训练样本都会对波动系数产生不同的影响,这恰恰体现了多因素影响下不同车辆电压波动的独特性,且对于同一辆车,随着电池使用时间的不同,老化程度的逐渐加剧,波动系数也理应呈现出相应的变化。波动系数越大,表明该电池在所处环境下的波动相较于其他电池更加剧烈,其正常运行状态下的电压波动范围更大,故异常电压的判定标准也应随之提高。It can be seen from the above formula that different vehicles and different training samples will have different effects on the fluctuation coefficient, which exactly reflects the uniqueness of voltage fluctuations of different vehicles under the influence of multiple factors. And for the same vehicle, as the battery usage time is different, As the degree of aging gradually intensifies, the fluctuation coefficient should also show corresponding changes. The larger the fluctuation coefficient, it means that the fluctuation of the battery in the environment is more severe than other batteries, and the voltage fluctuation range under normal operation is larger, so the standard for determining abnormal voltage should also be increased.

将fluc_threshold作为判定车辆电压异常的阈值,计算公式如下:Taking fluc_threshold as the threshold to determine vehicle voltage abnormality, the calculation formula is as follows:

当波动特征量大于fluc_threshold时,即认定为异常电压。考虑到两种模式的分布特性和稀疏表示时存在的系统误差,避免出现样本分布不平衡的问题,采样时应保证fluc_threshold大于Safe_sample的最小值,满足则将两个观测器集合进行融合用于电压波动异常点的检测,如不满足则需重新进行采样。When the fluctuation characteristic quantity is greater than fluc_threshold, it is determined to be an abnormal voltage. Taking into account the distribution characteristics of the two modes and the systematic errors in sparse representation, to avoid the problem of unbalanced sample distribution, it should be ensured that fluc_threshold is greater than the minimum value of Safe_sample when sampling. If satisfied, the two observer sets will be fused for voltage Detection of fluctuation abnormal points, if not satisfied, re-sampling is required.

在一种可能的实施方式中,步骤(5)中,当有新对象o进入需要对其异常程度进行判断时,应计算新对象o与低密度模型中的每一个观测器的欧式距离,形成一个长度为kact的距离矩阵N,记录距离其最近的x个观测器的索引值,构建观察数组P。同时,计算新对象o与距离其最近的x个观测器的平均距离,即可表示为异常程度yo,计算公式如下:In a possible implementation, in step (5), when a new object o enters and its abnormality degree needs to be judged, the Euclidean distance between the new object o and each observer in the low-density model should be calculated, forming A distance matrix N of length k act records the index values of the x nearest observers to construct an observation array P. At the same time, the average distance between the new object o and the x nearest observers is calculated, which can be expressed as the anomaly degree y o . The calculation formula is as follows:

其中,M(.)为中位数函数,d(,)为欧氏距离。Among them, M(.) is the median function and d(,) is the Euclidean distance.

本发明的多稀疏观测器融合动力电池异常电压识别方法围绕电动汽车动力电池异常电压的识别,在电动汽车上传的实车运行大数据基础之上,针对不同车辆因为电池种类、驾驶员驾驶习惯、运行环境等方面的不同导致电压的波动范围差异,提出了基于多稀疏观测器融合的动力电池异常电压自适应识别方法,采用基于方差和Pre-standard方法的特征量表征动力电池电压波动,用稀疏表示的方法表征电池的正常波动范围,采用多稀疏观测器融合进行异常电压的识别,可为热失控和具有潜在故障风险的车辆进行提前预警,进而提高行车安全性。The multi-sparse observer fused power battery abnormal voltage identification method of the present invention focuses on the identification of abnormal voltage of the electric vehicle power battery. Based on the real vehicle operation big data uploaded by the electric vehicle, it is targeted at different vehicles due to battery types, driver driving habits, Differences in the operating environment and other aspects lead to differences in the voltage fluctuation range. An adaptive identification method for power battery abnormal voltage based on the fusion of multiple sparse observers is proposed. Feature quantities based on variance and Pre-standard methods are used to characterize power battery voltage fluctuations. Sparse The representation method represents the normal fluctuation range of the battery, and uses multi-sparse observer fusion to identify abnormal voltages, which can provide early warning for vehicles with thermal runaway and potential failure risks, thereby improving driving safety.

为了验证本发明方法对热失控和具有潜在故障风险的车辆的预警效果,两辆实际运行车辆的运行数据被用来验证。第一组车辆电池单体数据采用2019年8月11日至2019年8月16日六天的数据用于训练,2019年9月29日的数据用于测试。图2展示了测试时间片段内各单体电池电压变化情况,从图2中可以发现,28号电池单体在短时间内发生了数次电压极大、极小值的变更,电压波动情况较其余单体更加剧烈,这无疑属于电压的异常波动。图3展现了其波动特征量Std_standard的变化情况,通过图3可以看出,这一时刻的Std_standard明显高于其他时刻,因此Std_standard准确地表征了这一电压异常情况。将各电池单体的波动特征量放入模型中进行测试,得到图4所示的单体电压异常系数波动图,图中表明了当前时刻的电压波动相比于车辆历史数据是否存在异常,从图中可以看出,该时刻的电压波动异常系数高于异常阈值,故认定其为异常点。In order to verify the early warning effect of the method of the present invention on vehicles with thermal runaway and potential failure risks, the operating data of two actually operating vehicles were used for verification. The first set of vehicle battery cell data uses six days of data from August 11, 2019 to August 16, 2019 for training, and the data of September 29, 2019 is used for testing. Figure 2 shows the voltage changes of each single cell during the test time segment. From Figure 2, it can be found that the No. 28 battery cell has experienced several maximum and minimum voltage changes in a short period of time, and the voltage fluctuations are relatively large. The remaining cells are more violent, which is undoubtedly an abnormal fluctuation of voltage. Figure 3 shows the change of its fluctuation characteristic quantity Std_standard. It can be seen from Figure 3 that the Std_standard at this moment is significantly higher than other moments, so Std_standard accurately characterizes this voltage abnormality. The fluctuation characteristic quantity of each battery cell is put into the model for testing, and the cell voltage abnormal coefficient fluctuation chart shown in Figure 4 is obtained. The figure shows whether the voltage fluctuation at the current moment is abnormal compared with the vehicle's historical data. From It can be seen from the figure that the abnormal coefficient of voltage fluctuation at this moment is higher than the abnormal threshold, so it is identified as an abnormal point.

第二组车辆电池单体数据采用2020年1月13日至2020年1月19日七天的数据用于训练,2020年3月2日的数据用于测试,车辆在3月2日发生了热失控故障。图5展示了测试时间片段内各单体电池电压变化情况,从图中可以看出,在325帧数据之前,车辆处于充电状态且已经接近充满,其各单体的电压不断升高且电压波动一直呈现着较好的一致性,在325帧数据处,23-27号单体突然发生电压的骤降,最低达到了0.25V,28号单体发生了电压的骤升,达到4.998V,且这种变化一直持续到热失控故障发生。将各电池单体的波动特征量放入模型中进行测试,得到图6所示的单体电压异常系数波动图,在故障单体发生突变的瞬间,23-28号单体均高于依据车辆历史数据确定的异常阈值,故本发明所提出的方法能够及时对电压异常波动进行识别,在一定程度上对故障起到了预测作用。The second set of vehicle battery cell data uses seven days of data from January 13, 2020 to January 19, 2020 for training, and the data of March 2, 2020 is used for testing. The vehicle experienced a thermal event on March 2. Out of control failure. Figure 5 shows the voltage changes of each single battery during the test time segment. It can be seen from the figure that before 325 frames of data, the vehicle was in a charging state and was nearly full. The voltage of each single battery continued to increase and the voltage fluctuated. It has always shown good consistency. At the 325th frame of data, the voltage of monomer No. 23-27 suddenly dropped, reaching a minimum of 0.25V. The voltage of monomer No. 28 suddenly rose, reaching 4.998V, and This change continues until a thermal runaway failure occurs. The fluctuation characteristics of each battery cell were put into the model for testing, and the cell voltage abnormal coefficient fluctuation chart shown in Figure 6 was obtained. At the moment when the faulty cell suddenly mutated, cells No. 23-28 were all higher than those of the vehicle according to the vehicle. The abnormal threshold determined by historical data, therefore, the method proposed by the present invention can identify abnormal voltage fluctuations in a timely manner and play a predictive role in faults to a certain extent.

对于运行中的电动汽车,不同车辆因为电池种类、驾驶员驾驶习惯、运行环境等方面的不同而存在异常电压定义范围的差异,故本发明基于多稀疏观测器融合方法采用稀疏表示的方法表征电压的正常波动范围并生成自适应阈值,对超出阈值的电压时刻进行识别和定位。此外,本发明在特征量构建、稀疏表征、模式划分等方面都极大的降低了计算量,保证了本发明所提出的方法更适用于实车在线数据的监测,确保了异常电压识别方法的实时性,为运行车辆的实时安全风险监测提供了理论支撑。For electric vehicles in operation, different vehicles have different definition ranges of abnormal voltage due to differences in battery types, driver driving habits, operating environments, etc. Therefore, the present invention uses a sparse representation method to characterize the voltage based on the multi-sparse observer fusion method. The normal fluctuation range is generated and an adaptive threshold is generated to identify and locate the voltage moment exceeding the threshold. In addition, the present invention greatly reduces the amount of calculation in terms of feature construction, sparse representation, pattern division, etc., ensuring that the method proposed by the present invention is more suitable for monitoring real vehicle online data and ensuring the accuracy of the abnormal voltage identification method. Real-time performance provides theoretical support for real-time safety risk monitoring of operating vehicles.

本发明的另一实施例还提出一种多稀疏观测器融合动力电池异常电压识别系统,包括:Another embodiment of the present invention also proposes a multi-sparse observer fusion power battery abnormal voltage identification system, including:

电池单体电压数据提取模块,用于由电动汽车上传的历史数据中,提取电池单体电压数据并进行预处理;The battery cell voltage data extraction module is used to extract the battery cell voltage data from the historical data uploaded by electric vehicles and perform preprocessing;

电压波动特征量构建模块,用于基于预处理后的电池单体电压数据,确定时间窗长度,构建电压波动特征量;The voltage fluctuation characteristic quantity building module is used to determine the length of the time window and construct the voltage fluctuation characteristic quantity based on the preprocessed battery cell voltage data;

电池波动特征量数据集划分模块,用于对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集;The battery fluctuation characteristic quantity data set division module is used to divide the voltage fluctuation characteristic quantity into modes and construct battery fluctuation characteristic quantity data sets in different modes;

异常电压阈值确定模块,用于对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值;The abnormal voltage threshold determination module is used to sparsely process voltage fluctuation feature data sets in different modes, construct a sparse observer set, and perform conditional judgments. If the conditions are met, sparse observer fusion is performed to determine the abnormal voltage threshold;

异常电压识别模块,用于基于异常电压阈值,对车辆实时数据进行异常电压识别。The abnormal voltage identification module is used to identify abnormal voltages on vehicle real-time data based on abnormal voltage thresholds.

本发明的另一实施例还提出一种电子设备,包括:Another embodiment of the present invention also provides an electronic device, including:

存储器,存储至少一个指令;及处理器,执行所述存储器中存储的指令以实现所述的多稀疏观测器融合动力电池异常电压识别方法。A memory that stores at least one instruction; and a processor that executes the instructions stored in the memory to implement the multi-sparse observer fusion power battery abnormal voltage identification method.

本发明的另一实施例还提出一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行以实现所述的多稀疏观测器融合动力电池异常电压识别方法。Another embodiment of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the multiple tasks. Sparse observer fusion power battery abnormal voltage identification method.

示例性的,所述存储器中存储的指令可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在计算机可读存储介质中,并由所述处理器执行,以完成本发明的多稀疏观测器融合动力电池异常电压识别方法。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机程序在服务器中的执行过程。Exemplarily, the instructions stored in the memory may be divided into one or more modules/units, and the one or more modules/units are stored in a computer-readable storage medium and executed by the processor, To complete the multi-sparse observer fusion power battery abnormal voltage identification method of the present invention. The one or more modules/units may be a series of computer-readable instruction segments capable of completing specific functions. The instruction segments are used to describe the execution process of the computer program in the server.

所述电子设备可以是智能手机、笔记本、掌上电脑及云端服务器等计算设备。所述电子设备可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,所述电子设备还可以包括更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子设备还可以包括输入输出设备、网络接入设备、总线等。The electronic device may be a computing device such as a smartphone, a notebook, a PDA, a cloud server, etc. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the electronic device may also include more or less components, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, bus etc.

所述处理器可以是中央处理单元(CentraL Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(DigitaL SignaL Processor,DSP)、专用集成电路(AppLication Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieLd-ProgrammabLe Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor can be a central processing unit (CentraL Processing Unit, CPU), or other general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (AppLication Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

所述存储器可以是所述服务器的内部存储单元,例如服务器的硬盘或内存。所述存储器也可以是所述服务器的外部存储设备,例如所述服务器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure DigitaL,SD)卡,闪存卡(FLash Card)等。进一步地,所述存储器还可以既包括所述服务器的内部存储单元也包括外部存储设备。所述存储器用于存储所述计算机可读指令以及所述服务器所需的其他程序和数据。所述存储器还可以用于暂时地存储已经输出或者将要输出的数据。The memory may be an internal storage unit of the server, such as a hard disk or memory of the server. The memory may also be an external storage device of the server, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash memory card ( FLash Card) etc. Further, the memory may also include both an internal storage unit of the server and an external storage device. The memory is used to store the computer readable instructions and other programs and data required by the server. The memory may also be used to temporarily store data that has been output or is to be output.

需要说明的是,上述模块单元之间的信息交互、执行过程等内容,由于与方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the above-mentioned module units are based on the same concept as the method embodiments, and their specific functions and technical effects can be found in the method embodiments section, which will not be discussed here. Repeat.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application. For the specific working processes of the units and modules in the above system, please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, this application can implement all or part of the processes in the methods of the above embodiments by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps of each of the above method embodiments may be implemented. Wherein, the computer program includes computer program code, which may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code to the camera device/terminal device, recording media, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electrical carrier signals, telecommunications signals, and software distribution media. For example, U disk, mobile hard disk, magnetic disk or CD, etc.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not detailed or documented in a certain embodiment, please refer to the relevant descriptions of other embodiments.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the above-mentioned implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of this application, and should be included in within the protection scope of this application.

Claims (10)

1.一种多稀疏观测器融合动力电池异常电压识别方法,其特征在于,包括:1. A multi-sparse observer fusion power battery abnormal voltage identification method, which is characterized by including: 由电动汽车上传的历史数据中,提取电池单体电压数据并进行预处理;From the historical data uploaded by electric vehicles, the battery cell voltage data is extracted and preprocessed; 基于预处理后的电池单体电压数据,确定时间窗长度,构建电压波动特征量;Based on the preprocessed battery cell voltage data, determine the length of the time window and construct the voltage fluctuation characteristic quantity; 对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集;Divide the voltage fluctuation characteristic quantities into modes and construct battery fluctuation characteristic quantity data sets under different modes; 对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值;Perform sparse processing on the voltage fluctuation feature data sets under different modes, construct a sparse observer set, and perform conditional judgments. If the conditions are met, sparse observer fusion will be performed to determine the abnormal voltage threshold; 基于异常电压阈值,对车辆实时数据进行异常电压识别。Based on the abnormal voltage threshold, abnormal voltage identification is performed on vehicle real-time data. 2.根据权利要求1所述的多稀疏观测器融合动力电池异常电压识别方法,其特征在于,根据国标GB/T 32960《电动汽车远程服务与管理系统技术规范》上传电动汽车的历史数据,提取电池单体电压数据并进行预处理,预处理的步骤包括:2. The multi-sparse observer fusion power battery abnormal voltage identification method according to claim 1, characterized in that the historical data of electric vehicles are uploaded according to the national standard GB/T 32960 "Technical Specification for Remote Service and Management Systems of Electric Vehicles" and extracted. Battery cell voltage data and preprocessing, the preprocessing steps include: 对于样本数据中出现的时间乱序、数据重复,将数据按时间进行排序并进行去冗操作;For time disorder and data duplication in the sample data, sort the data by time and perform redundant operations; 如果单体电池电压值列表存在空值,则认定为无效帧数据;If there is a null value in the single cell voltage value list, it will be considered as invalid frame data; 如果最高单体电压值大于6V,则认定为无效帧数据;If the highest cell voltage value is greater than 6V, it is considered invalid frame data; 如果最低单体电压值小于0V,则认定为无效帧数据。If the lowest cell voltage value is less than 0V, it is considered invalid frame data. 3.根据权利要求1所述的多稀疏观测器融合动力电池异常电压识别方法,其特征在于,所述电压波动特征量为单一电池单体在特定时间段的电压波动情况,计算表达式如下:3. The multi-sparse observer fusion power battery abnormal voltage identification method according to claim 1, characterized in that the voltage fluctuation characteristic quantity is the voltage fluctuation of a single battery cell in a specific time period, and the calculation expression is as follows: 式中,xi表示观察窗内i时刻的电压值,μ表示观察窗内所有时刻电压值的平均数,n表示观察窗内样本数量,Stdi表示第i个电池单体固定时间窗口的电压标准差;In the formula, x i represents the voltage value at time i in the observation window, μ represents the average of the voltage values at all times in the observation window, n represents the number of samples in the observation window, and Std i represents the voltage of the i-th battery cell in the fixed time window. standard deviation; 将超出电池单体电压标准差的中位数10倍以上的单体剔除后计算标准差:Calculate the standard deviation after eliminating cells that exceed the median of the battery cell voltage standard deviation by more than 10 times: 式中,Stdmedian表示所有单体电压固定时间窗口标准差的中位数,Stdstd表示经过Pre-standard方法处理后的所有单体电池固定时间窗口标准差的标准差,Std_standardi表示第i个电池单体经过Pre-standard方法处理后的电压波动异常分数。In the formula, Std median represents the median of the standard deviation of all cell voltages in a fixed time window, Std std represents the standard deviation of the standard deviation of all cell voltages in a fixed time window after being processed by the Pre-standard method, and Std_standard i represents the i-th The abnormal voltage fluctuation score of a battery cell after being processed by the Pre-standard method. 4.根据权利要求1所述的多稀疏观测器融合动力电池异常电压识别方法,其特征在于,对电压波动特征量进行模式划分的步骤包括:取同时刻所有电池单体波动特征量的中位数表征对应时刻动力电池组的普遍波动趋势,称为安全模式;取同时刻所有电池单体波动特征量的最大值表征对应时刻动力电池组的极限波动趋势,称为极限模式。4. The multi-sparse observer fusion power battery abnormal voltage identification method according to claim 1, characterized in that the step of pattern dividing the voltage fluctuation characteristic quantity includes: taking the median of all battery cell fluctuation characteristic quantities at the same time. The number represents the general fluctuation trend of the power battery pack at the corresponding time, which is called the safety mode; the maximum value of the fluctuation characteristic quantity of all battery cells at the same time represents the extreme fluctuation trend of the power battery pack at the corresponding time, which is called the limit mode. 5.根据权利要求4所述的多稀疏观测器融合动力电池异常电压识别方法,其特征在于,所述对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合的步骤包括:5. The multi-sparse observer fusion power battery abnormal voltage identification method according to claim 4, characterized in that the step of performing sparse processing on the voltage fluctuation feature data sets in different modes and constructing a sparse observer set includes : 对于不同模式下的电池波动特征量集合M,集合中的每一个对象都是一个观测器;在电池波动特征量集合M中随机抽取多个对象构成观测器集合,根据统计抽样理论,得到规定置信区间和抽样误差所需要的观测器数量,计算表达式如下:For the battery fluctuation feature set M under different modes, each object in the set is an observer; multiple objects are randomly selected from the battery fluctuation feature set M to form an observer set. According to the statistical sampling theory, the specified confidence is obtained The number of observers required for the interval and sampling error is calculated as follows: 式中,k为需要的观测器数量,m为电池波动特征量集合M中的对象数量,σ为电池波动特征量集合M的标准偏差,ε为不重复采样的极限误差,Z为置信系数;In the formula, k is the number of observers required, m is the number of objects in the battery fluctuation feature set M, σ is the standard deviation of the battery fluctuation feature set M, ε is the limit error without repeated sampling, and Z is the confidence coefficient; 计算每一个观测器和电池波动特征量集合M中每个对象的欧氏距离Di,j,构建距离矩阵D,即D={Di,j,i∈(1,2,...,m),j∈(1,2,...,k)};构建观测矩阵P用来储存距离数据集中每个对象最近的x个观测器的索引;Calculate the Euclidean distance D i,j of each observer and each object in the battery fluctuation feature set M, and construct a distance matrix D, that is, D={D i,j ,i∈(1,2,..., m), j∈(1,2,...,k)}; Construct an observation matrix P to store the indices of the x observers closest to each object in the data set; 对观测矩阵P中的所有索引值进行统计,创建矩阵U表示每个观测器出现的次数,即P={Pj,j∈(1,2,...,k)};根据矩阵U设置惰性阈值q,q的取值按下式计算:Calculate all index values in the observation matrix P and create a matrix U to represent the number of occurrences of each observer, that is, P = {P j ,j∈(1,2,...,k)}; set according to the matrix U The inertia threshold q, the value of q is calculated as follows: q=Qρ(U)q= (U) 其中,Qρ(.)为分位数函数;Among them, Q ρ (.) is the quantile function; 当观测器出现的次数小于q时,认定对应观测器为惰性观测器,并将惰性观测器在观测器集合中删除;当移除惰性观测器后,剩余kact个观测器,成为活跃观测器,用来表征训练数据集的分布特性的低密度模型。When the number of occurrences of an observer is less than q, the corresponding observer is considered a lazy observer, and the lazy observer is deleted from the observer set; after the lazy observer is removed, k act observers remain and become active observers , a low-density model used to characterize the distribution characteristics of the training data set. 6.根据权利要求5所述的多稀疏观测器融合动力电池异常电压识别方法,其特征在于,所述进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值的步骤包括:6. The multi-sparse observer fusion power battery abnormal voltage identification method according to claim 5, characterized in that the step of performing conditional judgment, performing sparse observer fusion if the conditions are met, and determining the abnormal voltage threshold includes: 获取安全模式观测器集合Saf_sample和极限模式观测器集合Ext_sample,用波动系数fluc_coefficient表征动力电池自身的波动特性,计算表达式如下:Obtain the safe mode observer set Saf_sample and the extreme mode observer set Ext_sample, and use the fluctuation coefficient fluc_coefficient to characterize the fluctuation characteristics of the power battery itself. The calculation expression is as follows: fluc_coefficient=min(Ext_sample)-max(Saf_sample)fluc_coefficient=min(Ext_sample)-max(Saf_sample) 将fluc_threshold作为判定车辆电压异常的阈值,计算表达式如下:Taking fluc_threshold as the threshold to determine vehicle voltage abnormality, the calculation expression is as follows: 当波动特征量大于fluc_threshold时,即认定为异常电压;When the fluctuation characteristic quantity is greater than fluc_threshold, it is identified as abnormal voltage; 采样时保证fluc_threshold大于Safe_sample的最小值,满足该条件则将两个观测器集合进行融合用于电压波动异常点的检测,如不满足则需重新进行采样。When sampling, ensure that fluc_threshold is greater than the minimum value of Safe_sample. If this condition is met, the two observer sets will be fused to detect voltage fluctuation anomalies. If not, resampling will be required. 7.根据权利要求6所述的多稀疏观测器融合动力电池异常电压识别方法,其特征在于,所述基于异常电压阈值,对车辆实时数据进行异常电压识别的步骤包括:7. The multi-sparse observer fusion power battery abnormal voltage identification method according to claim 6, characterized in that the step of identifying abnormal voltage on vehicle real-time data based on abnormal voltage thresholds includes: 对新对象o异常程度进行判断时,计算新对象o与低密度模型中的每一个观测器的欧式距离,形成一个长度为kact的距离矩阵N,记录距离最近的x个观测器的索引值,构建观察数组P;同时,计算新对象o与距离最近的x个观测器的平均距离,表示异常程度yoWhen judging the abnormality of a new object o, calculate the Euclidean distance between the new object o and each observer in the low-density model, form a distance matrix N with a length of k act , and record the index values of the nearest x observers , construct the observation array P; at the same time, calculate the average distance between the new object o and the nearest x observers, indicating the abnormality degree y o : 式中,M(.)为中位数函数,d(,)为欧氏距离。In the formula, M(.) is the median function, and d(,) is the Euclidean distance. 8.一种多稀疏观测器融合动力电池异常电压识别系统,其特征在于,包括:8. A multi-sparse observer fusion power battery abnormal voltage identification system, which is characterized by including: 电池单体电压数据提取模块,用于由电动汽车上传的历史数据中,提取电池单体电压数据并进行预处理;The battery cell voltage data extraction module is used to extract the battery cell voltage data from the historical data uploaded by electric vehicles and perform preprocessing; 电压波动特征量构建模块,用于基于预处理后的电池单体电压数据,确定时间窗长度,构建电压波动特征量;The voltage fluctuation characteristic quantity building module is used to determine the length of the time window and construct the voltage fluctuation characteristic quantity based on the preprocessed battery cell voltage data; 电池波动特征量数据集划分模块,用于对电压波动特征量进行模式划分,分别构建不同模式下的电池波动特征量数据集;The battery fluctuation characteristic quantity data set division module is used to divide the voltage fluctuation characteristic quantity into modes and construct battery fluctuation characteristic quantity data sets in different modes; 异常电压阈值确定模块,用于对不同模式下的电压波动特征量数据集进行稀疏处理,构建稀疏观测器集合,并进行条件判断,满足条件则进行稀疏观测器融合,确定异常电压阈值;The abnormal voltage threshold determination module is used to sparsely process voltage fluctuation feature data sets in different modes, construct a sparse observer set, and perform conditional judgments. If the conditions are met, sparse observer fusion is performed to determine the abnormal voltage threshold; 异常电压识别模块,用于基于异常电压阈值,对车辆实时数据进行异常电压识别。The abnormal voltage identification module is used to identify abnormal voltages on vehicle real-time data based on abnormal voltage thresholds. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that it includes: 存储器,存储至少一个指令;及a memory to store at least one instruction; and 处理器,执行所述存储器中存储的指令以实现如权利要求1至7中任意一项所述的多稀疏观测器融合动力电池异常电压识别方法。A processor that executes instructions stored in the memory to implement the multi-sparse observer fusion power battery abnormal voltage identification method according to any one of claims 1 to 7. 10.一种计算机可读存储介质,其特征在于:所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行以实现如权利要求1至7中任意一项所述的多稀疏观测器融合动力电池异常电压识别方法。10. A computer-readable storage medium, characterized in that: the computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement claims 1 to 7 The multi-sparse observer fusion power battery abnormal voltage identification method described in any one of the above.
CN202311832161.2A 2023-12-27 2023-12-27 Multi-sparse observer fusion power battery abnormal voltage identification method and system Pending CN117761543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311832161.2A CN117761543A (en) 2023-12-27 2023-12-27 Multi-sparse observer fusion power battery abnormal voltage identification method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311832161.2A CN117761543A (en) 2023-12-27 2023-12-27 Multi-sparse observer fusion power battery abnormal voltage identification method and system

Publications (1)

Publication Number Publication Date
CN117761543A true CN117761543A (en) 2024-03-26

Family

ID=90320058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311832161.2A Pending CN117761543A (en) 2023-12-27 2023-12-27 Multi-sparse observer fusion power battery abnormal voltage identification method and system

Country Status (1)

Country Link
CN (1) CN117761543A (en)

Similar Documents

Publication Publication Date Title
CN109633448B (en) Method and device for identifying battery health state and terminal equipment
CN114148216A (en) Battery self-discharge rate abnormality detection method, system, device and storage medium
CN114818831A (en) Method and system for fault detection of bidirectional lithium-ion battery based on multi-source sensing
CN114487856A (en) Thermal runaway early warning method and system for battery replacement station
CN113415165A (en) Fault diagnosis method and device, electronic equipment and storage medium
CN115793990A (en) Memory health state determination method and device, electronic equipment and storage medium
CN112530049B (en) Battery state monitoring method and device, electronic device and storage medium
CN116400249A (en) Detection method and device for energy storage battery
CN116306806A (en) Fault diagnosis model determining method and device and nonvolatile storage medium
CN112737834A (en) Cloud hard disk fault prediction method, device, equipment and storage medium
CN116990697A (en) Method for detecting abnormal single body in lithium battery pack based on probability distribution
CN115389954A (en) Method for estimating battery capacity, electronic device and readable storage medium
CN117761543A (en) Multi-sparse observer fusion power battery abnormal voltage identification method and system
CN117630678A (en) Online diagnosis method and system for abnormal voltage fluctuation of electric vehicle battery
CN116992274A (en) Short-term wind speed prediction method and system based on improved principal component regression model
CN116400231A (en) Battery multi-fault detection method, device and electronic equipment for energy storage system
CN116820821A (en) Disk failure detection method, apparatus, electronic device and computer readable storage medium
CN116840689A (en) A battery capacity prediction method, device and computer-readable storage medium
CN114429046A (en) Battery life estimation method and battery management system
CN113591813B (en) Association rule algorithm-based abnormity studying and judging method, model construction method and device
CN118517383B (en) Intelligent detection method and equipment for wind turbine operation risk based on deep learning
CN116431454B (en) Big data computer performance control system and method
CN118604640B (en) Battery evaluation method, device, electronic device, storage medium and program product
CN116150666B (en) Energy storage system fault detection method and device and intelligent terminal
CN119001468A (en) Method and related device for diagnosing short circuit fault in battery by combining entropy change

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