Unsupervised learning battery system fault early warning method and system

Through the unsupervised learning method and DBSCAN clustering technology, the charging voltage data of the battery pack is used to extract features and calculate the dimensionless parameter D, which solves the problem of fault warning and fault location in the battery system, and realizes the early fault detection of lithium-ion battery packs. Identification and cell-level positioning improve the accuracy and adaptability of fault warning.

CN118671602APending Publication Date: 2024-09-20SHANGHAI JIAOTONG UNIV

Patent Information

Application Number
CN202410966450.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively provide early fault warning in battery systems. Especially in lithium-ion battery packs, fault identification capabilities are limited due to inconsistencies between battery cells, and existing methods are insufficient in local abnormality identification.

Method used

The unsupervised learning method is used to perform feature extraction and clustering based on the dimensionless parameter D based on DBSCAN clustering and the charging voltage data of the battery pack to achieve advance warning of battery system faults and the location of faulty cells.

Benefits of technology

It achieves early warning of battery system faults and accurate location of faulty cells, can identify fault cells 50 days in advance, adapts to random operating conditions and low data quality, and reduces algorithm calculation complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118671602A
    Figure CN118671602A
Patent Text Reader

Abstract

The invention provides an unsupervised learning battery system fault early warning method and system, and the method comprises the steps: carrying out the data cleaning of cloud data, and obtaining the charging voltage data of a battery pack of each effective charging cycle; feature extraction is carried out on the charging voltage data of the battery pack in each effective charging cycle to obtain voltage and voltage gradient feature vectors, so that tiny offset of voltage signals is captured, interference caused by accidental factors is suppressed, and the method adapts to the randomness of actual working conditions; secondly, aiming at the feature vectors, performing DBSCAN clustering for multiple times by using a dichotomy, solving a dimensionless parameter D, and realizing measurement of battery voltage consistency; the D value of each charging cycle is compared with a threshold value, a fault early warning mark is established, unsupervised learning early warning of battery faults is achieved, and a fault cell index is stored. The method can be used for various equipment power battery systems or energy storage battery systems, and can realize advanced early warning of battery faults in the battery systems for 50 days in advance and accurate positioning of fault cells.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery safety technology, and in particular to an unsupervised learning battery system fault early warning method and system, and more particularly to a method for quantifying the degree of consistency between battery pack cells by a dimensionless parameter D defined based on DBSCAN clustering, thereby achieving unsupervised learning advance warning of battery system faults and faulty cell positioning. Background Art

[0002] In recent years, with the transformation of energy structure and the continuous improvement of new energy sources, batteries have been widely used in energy storage systems and electric vehicles. Battery energy storage is an energy storage technology that uses electrochemical reactions to achieve mutual conversion between electrical energy and chemical energy. Among them, lithium-ion batteries are currently the best choice for electric vehicle (EV) power sources due to their high energy density, low self-discharge rate and no memory. However, battery safety accidents caused by battery failures occur frequently, and how to effectively provide early warning of battery failures has become an important research direction in the current automotive industry.

[0003] Due to the limitations of the manufacturing technology of lithium-ion battery cells, in order to meet the needs of current, voltage, power and energy, a large number of battery cells need to be connected in series and parallel to form battery modules in the battery system. The difference between these battery cells, that is, the consistency of the battery, is closely related to the performance and safety of the entire battery system.

[0004] From the perspective of battery system performance, battery consistency is positively correlated with the performance of the battery system. Differences in production processes and working conditions lead to differences in capacity, internal resistance, self-discharge rate, etc. between different battery cells. Due to the short board effect, the overall capacity of the battery pack is limited by the cell with the smallest capacity. When it is fully charged / discharged, the entire battery pack also stops charging / discharging, but the capacity of the entire battery pack is not actually fully utilized. At the same time, cells with smaller capacity are more prone to overcharge and over-discharge, resulting in battery abuse and greatly increased probability of failure.

[0005] From the perspective of battery system safety, battery consistency is one of the concrete manifestations of battery system failure. In most cases, battery system power battery failure occurs in a few cells. When a failure occurs, the faulty cell must be different from the normal cell, causing the battery consistency to deteriorate and usually abnormal changes in the external parameters of the battery.

[0006] Except for sudden failures caused by collisions and other reasons, most other failures have an evolution process from minor to serious. Therefore, timely and accurate detection of inconsistent battery cells in the battery pack and replacement are of great significance to maintaining the safe and stable operation of the battery pack. It is practical to use battery consistency to achieve early warning of battery failures in the cloud.

[0007] Patent document CN113933736B (application number: CN202111215727.8) discloses a battery pack consistency evaluation method based on cloud discharge data. This method performs envelope processing on the discharge voltage data of the battery cell to obtain the cumulative curve of the maximum and minimum values ​​of the upper envelope at each moment and the cumulative curve of the maximum and minimum values ​​of the lower envelope at each moment. The two are accumulated to obtain the final sum curve, and the consistency of the battery pack is quantitatively evaluated by the size of its slope. This method uses envelopes when evaluating voltage consistency, which enhances the generalization ability of the algorithm, but does not consider the selection of curve segments when fitting the final sum curve, which makes the algorithm limited in its ability to recognize local abnormalities of the final sum curve.

[0008] Patent document CN113765179B (application number: CN202110943753.6) discloses a cloud-based battery pack consistency analysis method based on hierarchical clustering and class center distance. This method uses hierarchical clustering to identify the location with the largest temperature inconsistency in the battery pack and the single battery with the largest voltage inconsistency. The class center distance indicator can quantitatively analyze the trend of battery pack temperature consistency and voltage consistency over time and the correlation between the two. This method uses hierarchical clustering to overcome the problem of low cloud data accuracy and the problem of misjudgment caused by directly using measured voltage, current or temperature data analysis. However, the voltage and temperature of the entire discharge process are used to solve the Euclidean distance as the basis for scoring, and the ability to identify local inconsistencies is limited. Summary of the invention

[0009] In view of the defects in the prior art, the object of the present invention is to provide an unsupervised learning battery system failure early warning method and system.

[0010] According to the present invention, an unsupervised learning battery system failure early warning method is provided, comprising:

[0011] Step S1: acquiring battery pack charging voltage data of each effective charging cycle based on cloud working condition data;

[0012] Step S2: extracting features from the battery pack charging voltage data of each effective charging cycle to obtain a feature vector;

[0013] Step S3: Perform multiple DBSCAN clustering on the feature vector using the dichotomy method to solve the dimensionless parameter D;

[0014] Step S4: Determine or update the warning threshold, compare the D value of each charging cycle with the threshold, set an alarm flag, and store the faulty cell index to achieve early advance warning of battery failure in the battery system and locate the faulty cell.

[0015] Preferably, the step S1 adopts:

[0016] Step S1.1: Obtain the operating data of all battery packs in the cloud, including: battery ID, sampling time, date, total current, SOC, battery voltage list and charging status;

[0017] Step S1.2: pre-processing the operating condition data of all battery packs acquired from the cloud, and arranging the pre-processed data of each battery pack in chronological order;

[0018] Step S1.3: extracting effective charging cycles from the charge and discharge data based on the charging state;

[0019] Step S1.4: sort the battery voltage list data of the effective charging cycle to obtain the voltage data of each single battery;

[0020] The effective charging cycle is a charging cycle in which the charging SOC interval span meets a predetermined threshold.

[0021] Preferably, the step S2 adopts:

[0022] Step S2.1: Calculate the voltage matrix and voltage gradient matrix of the effective charging cycle according to the voltage data of the battery pack;

[0023]

[0024] dv it =v it -v i(t-τ)

[0025] (1≤i≤m,τ <t≤n)

[0026]

[0027] Where V represents the voltage matrix; dV represents the voltage gradient matrix; m represents the number of single cells; n represents the number of sampling points during the charging process; v it represents the voltage of the ith single cell at the tth sampling time; dv it represents the voltage gradient of the ith single cell at the tth sampling time;

[0028] Step S2.2: Calculate the voltage range and voltage gradient range of all single cells at each moment, obtain the time index of the largest k elements, and thereby obtain the voltage characteristic vectors f1 and f2;

[0029]

[0030] α j = argmax [j] R v ,j=1,2,...,k

[0031]

[0032] β j = argmax [j] R dv ,j=1,2,...,k

[0033]

[0034] Where m represents the number of cells in the battery system, n represents the number of charging cycle sampling points, and v it represents the voltage of the ith single cell at the tth sampling time, dv it represents the voltage gradient of the ith single cell at the tth sampling time, R v (t) represents the voltage range of all monomers at the tth sampling moment; R dv (t) represents the voltage gradient extreme value of all monomers at the tth sampling time; denoted by argmax [i] (x) represents the index corresponding to the i-th largest element in the x vector, then α j (1≤j≤k) and β j (1≤j≤k) respectively represent R v With R dv is the time index of the jth largest element in , f1 and f2 are the voltage eigenvectors, and k represents the number of sampling points used to calculate the eigenvectors.

[0035] Preferably, the dimensionless parameter D in step S3 is:

[0036] Assume there are n sample points in the two-dimensional feature space, then:

[0037]

[0038] Among them, Aved min represents the average minimum distance, d min (i) represents the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius.

[0039] Preferably, the step S3 adopts:

[0040] Step S3.1: Use the feature vectors f1 and f2 as inputs to the DBSCAN clustering algorithm;

[0041] Step S3.2: Initialize the search interval [Down, Up] and search precision precision of the dimensionless parameter D value;

[0042] Step S3.3: Initialize the D value and the fault cell index Refer. The initial value of Refer is empty. The definition formula of the initial value of D value is as follows:

[0043] D=Down

[0044] Step S3.4: Update the neighborhood parameters of DBSCAN clustering, the formula is as follows:

[0045] eps=D*Aved min

[0046] Among them, Aved min represents the average minimum distance, eps is the neighborhood radius of DBSCAN clustering; the minimum number of neighbors of the DBSCAN clustering method remains unchanged;

[0047]

[0048] Among them, d min (i) is the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius;

[0049] Step S3.5: Calculate the number of clusters of DBSCAN clustering; if the number of clusters is greater than 1, update the parameter formula as follows:

[0050] D=D+|D-Up| / 2

[0051] After updating the D value, if the D value is greater than the warning threshold, the index of the secondary cluster sample is recorded and the faulty cell index Refer is updated. The formula is as follows:

[0052] Refer=Ref∪Index

[0053] If the number of clusters is not greater than 1, the update parameter formula is as follows:

[0054] Trans=D-|D-Up| / 2

[0055] Up=D,D=Trans

[0056] The secondary clusters in the DBSCAN clustering are all clusters except the cluster with the largest number;

[0057] Repeat steps S3.4 to S3.5 until the following conditions are met and the iteration stops:

[0058] |D-Up| <precision。

[0059] Preferably, the step S4 adopts:

[0060] If the D value is greater than or equal to the warning threshold, the alarm flag is set to 1, otherwise, the alarm flag is set to 0;

[0061] The method for determining the warning threshold is as follows:

[0062] The dimensionless parameter D is solved for all valid charging cycles of all battery packs in the database, and then the distribution of D values ​​is statistically analyzed using a box plot, with the upper limit of the box plot used as the threshold for fault warning.

[0063] The storing of the faulty cell index comprises: selecting and storing the first 8 values ​​of the obtained faulty cell index list; for a normal battery pack, if the faulty cell index is an empty list, it is replaced by a null value.

[0064] According to the present invention, an unsupervised learning battery system failure early warning system is provided, comprising:

[0065] Module M1: Obtain the battery pack charging voltage data for each effective charging cycle based on the cloud operating condition data;

[0066] Module M2: extracting features from the battery pack charging voltage data of each effective charging cycle to obtain a feature vector;

[0067] Module M3: Use the binary method to perform multiple DBSCAN clustering on the feature vector to solve the dimensionless parameter D;

[0068] Module M4: Determine or update the warning threshold, compare the D value of each charging cycle with the threshold, establish an alarm flag, and store the faulty cell index to achieve early advance warning of battery failure in the battery system and locate the faulty cell.

[0069] Preferably, the module M1 adopts:

[0070] Module M1.1: Obtain the operating data of all battery packs in the cloud, including: battery ID, sampling time, date, total current, SOC, battery voltage list and charging status;

[0071] Module M1.2: pre-process the working condition data of all battery packs obtained from the cloud, and arrange the pre-processed data of each battery pack in chronological order;

[0072] Module M1.3: Extract effective charging cycles from charging and discharging data based on the charging state;

[0073] Module M1.4: Separate the battery voltage list data of the effective charging cycle to obtain the voltage data of each single battery;

[0074] The effective charging cycle is a charging cycle in which the charging SOC interval span meets a predetermined threshold.

[0075] Preferably, the module M2 adopts:

[0076] Module M2.1: Calculate the voltage matrix and voltage gradient matrix of the effective charging cycle according to the voltage data of the battery pack;

[0077]

[0078] dv it =v it -v i(t-τ)

[0079] (1≤i≤m,τ <t≤n)

[0080]

[0081] Where V represents the voltage matrix; dV represents the voltage gradient matrix; m represents the number of single cells; n represents the number of sampling points during the charging process; v it represents the voltage of the ith single cell at the tth sampling time; dv it represents the voltage gradient of the ith single cell at the tth sampling time;

[0082] Module M2.2: Calculate the voltage range and voltage gradient range of all single cells at each moment, obtain the time index of the largest k elements, and thereby obtain the voltage characteristic vectors f1 and f2;

[0083]

[0084] α j = argmax [j] R v ,j=1,2,...,k

[0085]

[0086] β j = argmax [j] R dv ,j=1,2,...,k

[0087]

[0088] Where m represents the number of cells in the battery system, n represents the number of charging cycle sampling points, and v it represents the voltage of the ith cell at the tth sampling time, dv it represents the voltage gradient of the ith cell at the tth sampling time, R v (t) represents the voltage range of all monomers at the tth sampling moment; R dv(t) represents the voltage gradient extreme value of all monomers at the tth sampling time; denoted by argmax [i] (x) represents the index corresponding to the i-th largest element in the x vector, then α j (1≤j≤k) and β j (1≤j≤k) respectively represent R v With R dv is the time index of the jth largest element in , f1 and f2 are the voltage eigenvectors, and k represents the number of sampling points used to calculate the eigenvectors.

[0089] Preferably, the dimensionless parameter D in the module M3 is:

[0090] Assume there are n sample points in the two-dimensional feature space, then:

[0091]

[0092]

[0093] Among them, Aved min represents the average minimum distance, d min (i) represents the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius;

[0094] The module M3 adopts:

[0095] Module M3.1: Use feature vectors f1 and f2 as input to the DBSCAN clustering algorithm;

[0096] Module M3.2: Initialize the search interval [Down, Up] and search precision precision of the dimensionless parameter D value;

[0097] Module M3.3: Initialize the D value and the fault cell index Refer. The initial value of Refer is empty. The definition formula of the initial value of D is as follows:

[0098] D=Down

[0099] Module M3.4: Update the neighborhood parameters of DBSCAN clustering. The formula is as follows:

[0100] eps=D*Aved min

[0101] Among them, Aved min represents the average minimum distance, eps is the neighborhood radius of DBSCAN clustering; the minimum number of neighbors of the DBSCAN clustering method remains unchanged;

[0102]

[0103] Among them, d min (i) is the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius;

[0104] Module M3.5: Calculate the number of clusters of DBSCAN clustering; if the number of clusters is greater than 1, the update parameter formula is as follows:

[0105] D=D+|D-Up| / 2

[0106] After updating the D value, if the D value is greater than the warning threshold, the index of the secondary cluster sample is recorded and the faulty cell index Refer is updated. The formula is as follows:

[0107] Refer=Ref∪Index

[0108] If the number of clusters is not greater than 1, the update parameter formula is as follows:

[0109] Trans=D-|D-Up| / 2

[0110] Up=D,D=Trans

[0111] The secondary clusters in the DBSCAN clustering are all clusters except the cluster with the largest number;

[0112] Repeatedly trigger modules M3.4 to S3.5 until the following conditions are met, and the iteration stops:

[0113] |D-Up| <precision。

[0114] Compared with the prior art, the present invention has the following beneficial effects:

[0115] 1. The present invention uses an improved mean feature to extract features from the two perspectives of voltage and voltage gradient for charging voltage data. It captures small abnormal changes in the voltage curve by locating multiple sampling points when the voltage consistency is the worst during the charging process. It can adapt to cloud data with random operating conditions and low data quality.

[0116] 2. The present invention achieves quantification of the consistency degree of cells between battery packs through dimensionless parameters defined based on DBSCAN clustering, and determines the warning threshold based on big data analysis, thereby achieving early warning of faults and cell-level positioning of faults;

[0117] 3. The present invention adopts an unsupervised learning method, which can be quickly deployed in the cloud without historical data training. At the same time, the algorithm has low computational complexity, and uses the dichotomy method to further simplify the calculation process, which can meet actual performance requirements;

[0118] 4. The present invention adopts an unsupervised learning method to avoid the difficulty of labeling battery fault labels. At the same time, based on the proposed new features and new warning algorithms, it can achieve 50 days in advance warning of battery failures in the battery system and accurately locate the faulty battery cells. BRIEF DESCRIPTION OF THE DRAWINGS

[0119] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0120] Figure 1 Flowchart of the unsupervised learning method for early warning of battery system failure.

[0121] Figure 2a to Figure 2f The DBSCAN clustering result diagram for a single effective charging cycle.

[0122] Figure 3 This is the box plot analysis result.

[0123] Figure 4 This is the early warning result diagram of the faulty battery.

[0124] Figure 5 This is a warning result diagram for a healthy battery. DETAILED DESCRIPTION

[0125] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0126] Example 1

[0127] like Figure 1 As shown, according to an unsupervised learning battery system fault early warning method provided by the present invention, unsupervised learning early warning of battery fault is realized based on voltage consistency, including the following steps:

[0128] Step S1: obtaining the battery pack charging voltage data of each effective charging cycle by cleaning the cloud data;

[0129] Specifically, in step S1, the method adopted during data cleaning is as follows: Read the specific data of all battery packs in the database for one day. The read cloud working condition data includes: battery ID, sampling time, date, total current, SOC, battery voltage list, and charging status. For the data of each battery pack, eliminate the rows with missing or abnormal data and rearrange them in chronological order. According to the charging status, extract the effective charge cycles from the charge-discharge data, and split the battery voltage list data of the effective charge cycles to obtain the voltage data of each single battery cell.

[0130] The effective charge cycle is a charge cycle where the starting SOC of charging is lower than 60% and the ending SOC of charging is higher than 80%.

[0131] Step S2: Extract features from the charging voltage data of each battery pack in the effective charge cycle to obtain a feature vector, so as to capture the small offset of the voltage signal, suppress the interference caused by accidental factors, and adapt to the randomness of the actual working condition;

[0132] Specifically, in step S2, the method adopted for feature extraction is as follows:

[0133] Step S2.1: Obtain the voltage matrix and voltage gradient matrix of the effective charge cycle;

[0134] Suppose there are m single battery cells in the battery system and a total of n sampling points during the charging process. Then the voltage matrix V and the voltage gradient matrix dV can be expressed as:

[0135]

[0136] Among them, the voltage gradient is defined based on the voltage change amount within a certain time interval τ. v it (1 ≤ i ≤ m, 1 ≤ t ≤ n) represents the voltage of the i-th single battery cell at the t-th sampling moment, and dv it (1 ≤ i ≤ m, τ < t ≤ n) represents the voltage gradient of the i-th single battery cell at the t-th sampling moment. In this embodiment, m = 384 and τ = 20.

[0137] Step S2.2: Calculate the voltage range and voltage gradient range of all single battery cells at each moment, obtain the time indices of the largest k elements among them, and thus obtain the voltage feature vectors f1 and f2; The method adopted is as follows:

[0138]

[0139] α j = argmax [j] R v , j = 1, 2,..., k (5)

[0140]

[0141] β j = argmax [j] R dv , j = 1, 2, ..., k(7)

[0142]

[0143] where m is the number of single cells in the battery system, n is the number of sampling points for the charging cycle, and v it (1 ≤ i ≤ m, 1 ≤ t ≤ n) represents the voltage of the ith single cell at the tth sampling moment, dv it (1 ≤ i ≤ m, τ < t ≤ n) represents the voltage gradient of the ith single cell at the tth sampling moment, R v (t)(1 ≤ t ≤ n) represents the voltage range of all single cells at the tth sampling moment, R dv (t)(τ < t ≤ n) represents the voltage gradient range of all single cells at the tth sampling moment. Denote argmax [i] (x) as the index corresponding to the ith largest element in the x vector. Then α j (1 ≤ j ≤ k) and β j (1 ≤ j ≤ k) respectively represent the time indices of the jth largest elements in R v and R dv . f1 and f2 are voltage feature vectors, and k represents the number of sampling points used when calculating the feature vectors. Thus, a small offset of the voltage signal can be captured, the interference caused by accidental factors can be suppressed, and the randomness of the actual working conditions can be adapted.

[0144] Step S3: For the feature vectors, use the binary method to perform multiple DBSCAN clusterings, solve the dimensionless parameter D, and record the indices of the faulty cells to achieve the measurement of the battery voltage consistency.

[0145] Specifically, in Step S3, the method adopted in the process of solving the dimensionless parameter D using the binary method is as follows:

[0146] Step S3.1: Take the feature vectors f1 and f2 as the inputs of the DBSCAN clustering algorithm;

[0147] Step S3.2: Initialize the search interval of the dimensionless parameter D value as [Down, Up] and the search precision precision. In this embodiment, Down = 2, Up = 50, precision = 1;

[0148] Step S3.3: Initialize the D value and the index of the faulty cell Refer. The initial value of Refer is empty, and the initial value of the D value is the same as the Down value.

[0149] Step S3.4: When the absolute value of the difference between the D value and the Up value is less than the search accuracy, perform algorithm iteration and update the parameter value;

[0150] |D-Up| <precision (10)

[0151] Step S3.5: Output the D value and the Refer value.

[0152] During the algorithm iteration process, the following two situations are considered:

[0153] 1) Update the neighborhood parameters of DBSCAN clustering and calculate the number of clusters of DBSCAN clustering. If the number of clusters is greater than 1, the update parameter formula is as follows:

[0154] D=D+|D-Up| / 2(11)

[0155] After updating the D value, if the D value is greater than the warning threshold, the index of the secondary cluster sample is recorded and the faulty cell index Refer is updated. The formula is as follows:

[0156] Refer=Ref∪Index(12)

[0157] 2) Update the neighborhood parameters of DBSCAN clustering and calculate the number of clusters of DBSCAN clustering. If the number of clusters is not greater than 1, the update parameter formula is as follows:

[0158]

[0159] The formula for updating the neighborhood parameters of DBSCAN clustering is as follows:

[0160] eps=D*Aved min (14)

[0161] Among them, Aved min represents the average minimum distance, and eps is the neighborhood radius of DBSCAN clustering. The minimum number of neighbors MinPts of the DBSCAN clustering method remains unchanged. In this embodiment, MinPts=5.

[0162] The secondary clusters in the DBSCAN clustering are all clusters except the cluster with the largest number.

[0163] The dimensionless parameter D is defined as follows: Assuming there are n sample points in the two-dimensional feature space, then:

[0164]

[0165] Where Aved min represents the average minimum distance, d min(i) is the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius.

[0166] The minimum neighborhood radius is defined as follows: In DBSCAN clustering, when the minimum number of neighbors remains unchanged, as the neighborhood radius increases, the number of core points will also increase, and sample points from different clusters will be judged to be density-connected, and the number of clusters will decrease, eventually becoming one cluster. Therefore, there is a minimum neighborhood radius that just achieves the unique number of clusters in DBSCAN clustering, which is the minimum neighborhood radius.

[0167] Figure 2a to Figure 2f This is an iterative clustering result diagram of solving the D value in a single cycle of an unsupervised learning battery system fault early warning method in Example 1 of the present invention. During the iteration process, the D value search interval is [2,50], the initial value is 2, and there are 6 iterations in total. The D values ​​are 2, 26, 38, 44, 47, and 48.5 respectively. Since the alarm threshold of the D value has been obtained as 40 through big data analysis, the last 3 of the 6 iterations exceeded the alarm threshold. In the last three clusters, that is, Figure 2d , Figure 2e , Figure 2f , the samples that do not belong to the largest number of clusters are outliers, and their indexes are the indexes of abnormal cells. At the same time, since there is a possibility of exceeding the warning threshold multiple times during the iteration process, the final result is the union of the obtained indexes.

[0168] Step S4: After determining or updating the threshold, the D value of each charging cycle is compared with the threshold, the alarm flag is updated, and the faulty cell index is stored to achieve early advance warning of battery failure in the battery system and location of the faulty cell.

[0169] In step S4, the threshold comparison method is: if the D value is greater than or equal to the warning threshold, the alarm flag is set to 1, otherwise, the alarm flag is set to 0.

[0170] In step S4, the method for determining the warning threshold is as follows:

[0171] The dimensionless parameter D is solved for all valid charging cycles of all battery packs in the database, and then the distribution of D values ​​is statistically analyzed using a box plot, and the upper limit of the box plot is used as the threshold for fault warning.

[0172] Figure 3 This is a box plot analysis result diagram of an unsupervised learning battery system fault early warning method in this example. MinPts has a relatively low impact on the result, and in this embodiment, MinPts=5 is selected.

[0173] In step S4, the method for storing the faulty cell index is: selecting the first 8 values ​​of the obtained faulty cell index list for storage. For a normal battery pack, if the faulty cell index is an empty list, it is replaced by a null value.

[0174] Figure 4 It is the warning result of the faulty battery pack of an unsupervised learning battery system failure early warning method in this example.

[0175] Figure 5 This is the warning result of a healthy battery pack using an unsupervised learning battery system failure early warning method in this example.

[0176] The present invention realizes a battery fault warning based on voltage consistency for the cloud platform. After actual vehicle data testing, it is shown that the method has the characteristics of low algorithm calculation complexity and strong adaptability to working conditions. It can accurately identify faulty single cells more than 50 days in advance and realize cell-level fault location. It has the advanced nature and accurate reliability of fault warning. The fault warning algorithm proposed in this paper has high adaptability and versatility. It can be quickly deployed in the cloud without historical data training. It is used for early fault warning and fault cell location of power battery systems and energy storage battery systems, supporting the safe use and intelligent operation and maintenance of battery systems.

[0177] The present invention also provides an unsupervised learning battery system failure early warning system, which can be implemented by executing the process steps of the unsupervised learning battery system failure early warning method, that is, those skilled in the art can understand the unsupervised learning battery system failure early warning method as a preferred implementation of the unsupervised learning battery system failure early warning system.

[0178] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0179] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. An unsupervised learning method for early warning of battery system failure, It is characterized in that include: Step S1: acquiring battery pack charging voltage data of each effective charging cycle based on cloud working condition data; Step S2: extracting features from the battery pack charging voltage data of each effective charging cycle to obtain a feature vector; Step S3: Perform multiple DBSCAN clustering on the feature vector using the dichotomy method to solve the dimensionless parameter D; Step S4: Determine or update the warning threshold, compare the D value of each charging cycle with the threshold, set an alarm flag, and store the faulty cell index to achieve early advance warning of battery failure in the battery system and locate the faulty cell.

2. The unsupervised learning battery system failure early warning method according to claim 1, It is characterized in that The step S1 adopts: Step S1.1: Obtain the operating data of all battery packs in the cloud, including: battery ID, sampling time, date, total current, SOC, battery voltage list and charging status; Step S1.2: pre-processing the operating condition data of all battery packs acquired from the cloud, and arranging the pre-processed data of each battery pack in chronological order; Step S1.3: extracting effective charging cycles from the charge and discharge data based on the charging state; Step S1.4: sort the battery voltage list data of the effective charging cycle to obtain the voltage data of each single battery; The effective charging cycle is a charging cycle in which the charging SOC interval span meets a predetermined threshold.

3. The unsupervised learning battery system failure early warning method according to claim 1, It is characterized in that The step S2 adopts: Step S2.1: Calculate the voltage matrix and voltage gradient matrix of the effective charging cycle according to the voltage data of the battery pack; dv it =v it -v i(t-τ) (1≤i≤m,τ <t≤n) Where V represents the voltage matrix; dV represents the voltage gradient matrix; m represents the number of single cells; n represents the number of sampling points during the charging process; v it represents the voltage of the ith single cell at the tth sampling time; dv it represents the voltage gradient of the ith single cell at the tth sampling time; Step S2.2: Calculate the voltage range and voltage gradient range of all single cells at each moment, obtain the time index of the largest k elements, and thereby obtain the voltage characteristic vector f 1 and f 2 ; a j =argmax [j] R v ,j=1,2,...,k b j =argmax [j] R dv ,j=1,2,...,k Where m represents the number of cells in the battery system, n represents the number of charging cycle sampling points, and v it represents the voltage of the ith cell at the tth sampling time, dv it represents the voltage gradient of the ith cell at the tth sampling time, R v (t) represents the voltage range of all monomers at the tth sampling moment; R dv (t) represents the voltage gradient extreme value of all monomers at the tth sampling time; denoted by argmax [i] (x) represents the index corresponding to the i-th largest element in the x vector, then α j (1≤j≤k) and β j (1≤j≤k) respectively represent R v With R dv The time index of the jth largest element in f 1 and f 2 is the voltage eigenvector, and k is the number of sampling points used to calculate the eigenvector.

4. The unsupervised learning battery system failure early warning method according to claim 1, It is characterized in that The dimensionless parameter D in step S3 is: Assume there are n sample points in the two-dimensional feature space, then: Among them, Aved min represents the average minimum distance, d min (i) represents the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius.

5. The unsupervised learning battery system failure early warning method according to claim 1, It is characterized in that The step S3 adopts: Step S3.1: Transform the feature vector f 1 and f 2 As input to the DBSCAN clustering algorithm; Step S3.2: Initialize the search interval [Down, Up] and search precision precision of the dimensionless parameter D value; Step S3.3: Initialize the D value and the fault cell index Refer. The initial value of Refer is empty. The definition formula of the initial value of D value is as follows: D=Down Step S3.4: Update the neighborhood parameters of DBSCAN clustering, the formula is as follows: eps=D*Aved min Among them, Aved min represents the average minimum distance, eps is the neighborhood radius of DBSCAN clustering; the minimum number of neighbors of the DBSCAN clustering method remains unchanged; Among them, d min (i) is the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius; Step S3.5: Calculate the number of clusters of DBSCAN clustering; if the number of clusters is greater than 1, update the parameter formula as follows: D=D+|D-Up| / 2 After updating the D value, if the D value is greater than the warning threshold, the index of the secondary cluster sample is recorded and the faulty cell index Refer is updated. The formula is as follows: Refer=Ref∪Index If the number of clusters is not greater than 1, the update parameter formula is as follows: Trans=D-|D-Up| / 2 Up=D,D=Trans The secondary clusters in the DBSCAN clustering are all clusters except the cluster with the largest number; Repeat steps S3.4 to S3.5 until the following conditions are met and the iteration stops: |D-Up| <precision。 6. The unsupervised learning battery system failure early warning method according to claim 1, It is characterized in that The step S4 adopts: If the D value is greater than or equal to the warning threshold, the alarm flag is set to 1, otherwise, the alarm flag is set to 0; The method for determining the warning threshold is as follows: The dimensionless parameter D is solved for all valid charging cycles of all battery packs in the database, and then the distribution of D values ​​is statistically analyzed using a box plot, with the upper limit of the box plot used as the threshold for fault warning. The storing of the faulty cell index comprises: selecting first 8 values ​​of the obtained faulty cell index list for storage; For a normal battery pack, if the faulty cell index is an empty list, it will be replaced by a null value.

7. An unsupervised learning early warning system for battery system failure, It is characterized in that include: Module M1: Obtain the battery pack charging voltage data for each effective charging cycle based on the cloud operating condition data; Module M2: extracting features from the battery pack charging voltage data of each effective charging cycle to obtain a feature vector; Module M3: Use the binary method to perform multiple DBSCAN clustering on the feature vectors to solve the dimensionless parameter D; Module M4: Determine or update the warning threshold, compare the D value of each charging cycle with the threshold, establish an alarm flag, and store the faulty cell index to achieve early advance warning of battery failure in the battery system and locate the faulty cell.

8. The unsupervised learning battery system failure early warning system according to claim 7, It is characterized in that The module M1 adopts: Module M1.1: Obtain the operating data of all battery packs in the cloud, including: battery ID, sampling time, date, total current, SOC, battery voltage list and charging status; Module M1.2: pre-process the operating condition data of all battery packs obtained from the cloud, and arrange the pre-processed data of each battery pack in chronological order; Module M1.3: Extract effective charging cycles from charging and discharging data based on the charging state; Module M1.4: Separate the battery voltage list data of the effective charging cycle to obtain the voltage data of each single battery; The effective charging cycle is a charging cycle in which the charging SOC interval span meets a predetermined threshold.

9. The unsupervised learning battery system failure early warning system according to claim 7, It is characterized in that The module M2 adopts: Module M2.1: Calculate the voltage matrix and voltage gradient matrix of the effective charging cycle based on the voltage data of the battery pack; dv it =v it -v i(t-τ) (1≤i≤m,τ <t≤n) Where V represents the voltage matrix; dV represents the voltage gradient matrix; m represents the number of single cells; n represents the number of sampling points during the charging process; v it represents the voltage of the ith single cell at the tth sampling time; dv it represents the voltage gradient of the ith single cell at the tth sampling time; Module M2.2: Calculate the voltage range and voltage gradient range of all single cells at each moment, obtain the time index of the largest k elements, and obtain the voltage characteristic vector f 1 and f 2 ; a j =argmax [j] R v ,j=1,2,...,k b j =argmax [j] R dv ,j=1,2,...,k Where m represents the number of cells in the battery system, n represents the number of charging cycle sampling points, and v it represents the voltage of the ith cell at the tth sampling time, dv it represents the voltage gradient of the ith cell at the tth sampling time, R v (t) represents the voltage range of all monomers at the tth sampling moment; R dv (t) represents the voltage gradient extreme value of all monomers at the tth sampling time; denoted by argmax [i] (x) represents the index corresponding to the i-th largest element in the x vector, then α j (1≤j≤k) and β j (1≤j≤k) respectively represent R v With R dv The time index of the jth largest element in f 1 and f 2 is the voltage eigenvector, and k is the number of sampling points used to calculate the eigenvector.

10. The unsupervised learning battery system failure early warning system according to claim 7, It is characterized in that The dimensionless parameter D in the module M3 is: Assume there are n sample points in the two-dimensional feature space, then: Among them, Aved min represents the average minimum distance, d min (i) represents the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius; The module M3 adopts: Module M3.1: Transform the feature vector f 1 and f 2 As input to the DBSCAN clustering algorithm; Module M3.2: Initialize the search interval [Down, Up] and search precision precision of the dimensionless parameter D value; Module M3.3: Initialize the D value and the fault cell index Refer. The initial value of Refer is empty. The definition formula of the initial value of D is as follows: D=Down Module M3.4: Update the neighborhood parameters of DBSCAN clustering. The formula is as follows: eps=D*Aved min Among them, Aved min represents the average minimum distance, eps is the neighborhood radius of DBSCAN clustering; the minimum number of neighbors of the DBSCAN clustering method remains unchanged; Among them, d min (i) is the distance from the i-th sample point to the nearest sample point, n is the total number of sample points, eps min is the minimum neighborhood radius; Module M3.5: Calculate the number of clusters of DBSCAN clustering; if the number of clusters is greater than 1, the update parameter formula is as follows: D=D+|D-Up| / 2 After updating the D value, if the D value is greater than the warning threshold, the index of the secondary cluster sample is recorded and the faulty cell index Refer is updated. The formula is as follows: Refer=Ref∪Index If the number of clusters is not greater than 1, the update parameter formula is as follows: Trans=D-|D-Up| / 2 Up=D,D=Trans The secondary clusters in the DBSCAN clustering are all clusters except the cluster with the largest number; Repeatedly trigger modules M3.4 to S3.5 until the following conditions are met, and the iteration stops: |D-Up| <precision。

Citation Information

Patent Citations

  • A Cloud-Based Battery Pack Consistency Analysis Method Based on Hierarchical Clustering and Class Center Moment

    CN113765179B

  • Battery pack consistency evaluation method based on cloud discharge data

    CN113933736B

Cited By

  • Standby power energy storage battery grading early warning method and system based on unsupervised learning algorithm

    CN121723201A