A method for automatically identifying abnormalities in lead-acid battery packs used in data centers
The clustering method identifies abnormal operation data of the same group of batteries in the data center, which solves the problem that the abnormal operation risk of batteries cannot be effectively identified in the prior art, and improves the operating safety and risk identification capabilities of batteries.
Patent Information
- Application Number
- CN202210494489.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-07
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-05-07
AI Technical Summary
In the prior art, when the monitoring platform does not provide a risk warning, battery failures still occur from time to time, and the methods based on threshold rules fail to fully meet actual needs, and it is impossible to effectively identify the abnormal operation risks of the same set of batteries.
By obtaining the operating data of the same group of batteries, the number and center points of the cluster are determined by using the quartile method, the position of the center point of the cluster is iteratively calculated, abnormal samples are identified, and the risk identification ability of the battery is improved.
It realizes automatic identification of abnormal operating data in the same set of batteries, improves the operating safety and risk identification capabilities of the battery, and enhances the operational safety of the data center infrastructure.
Smart Images

Figure CN114897068B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of operation and maintenance of data center technical facilities, and more specifically to a method for automatically identifying abnormalities in a lead-acid battery pack used in a data center. Background Art
[0002] With the development of big data and cloud computing, the proposal of new infrastructure, and the launch of the "East Data West Computing" project, data centers are becoming more and more important. As the basic facilities of the entire data center, the safe operation of the power system is of great significance to ensuring the uninterrupted and stable operation of information services. As an important part of the power system, the uninterruptible power supply system can improve the power supply quality on the one hand, and enable the power system to cope with short-term power outages on the other hand. In order to cope with short-term power outages, the uninterruptible power supply system needs to be equipped with a large number of batteries. Since batteries store a large amount of energy, the safety risk is high. When the number of battery cells reaches thousands or tens of thousands, safety hazards are very likely to occur. According to the survey results of the research institution Ponemon Institute, UPS system failure is the main factor leading to unexpected shutdowns in data centers. Among UPS system failures, a large proportion of failures are related to batteries. Therefore, it is of great significance to improve the operational safety of batteries.
[0003] In order to improve the operational safety of batteries, an important technical means is to monitor the battery voltage, internal resistance and temperature online, and set threshold rules for the above indicators. When the monitoring value exceeds the threshold, the monitoring platform will give a risk warning, and professional maintenance personnel will conduct on-site verification and confirmation. Although the above threshold rule-based method effectively improves the operational safety of batteries, it cannot fully meet actual needs. Battery failures still occur from time to time without any risk warnings from the monitoring platform, and they are often serious accidents such as battery leakage and fire. Therefore, it is necessary to further strengthen the automatic identification capability of battery operation risks on the existing basis.
[0004] The existing operation risk identification method based on threshold rules only uses the voltage, internal resistance and temperature data of the battery itself, without considering the operation data of other batteries in the same group. The same group of batteries usually uses the same batch of batteries during initial construction and renovation, and the operating environment is similar, so their parameter changes should be similar. When the operating parameters of a battery are significantly different from those of other batteries, it indicates that it is likely to have operation risks.
[0005] Therefore, how to provide a method for automatically identifying abnormalities in a lead-acid battery group for a data center using a clustering method to automatically identify abnormal operating data in the same group of batteries and improve the risk identification capability of the battery is an urgent problem that technicians in this field need to solve. Summary of the invention
[0006] In view of this, the present invention provides a method for automatically identifying abnormalities in a lead-acid battery group for a data center. By adopting a clustering method, automatic identification of abnormal operating data in the same group of batteries is achieved, thereby improving the risk identification capability of the battery and improving the operating safety of the battery.
[0007] In order to achieve the above object, the present invention adopts the following technical solution:
[0008] A method for automatically identifying abnormalities in a lead-acid battery pack for a data center, comprising:
[0009] S1. Obtain the operating data of the same group of batteries to obtain a data set D;
[0010] S2, sort the samples in the data set D from small to large, and determine the current number of clusters and the current center point set according to the quartile method;
[0011] S3. If the number of clusters is equal to 1, there is no abnormal sample in the battery group; if the number of clusters is greater than 1, execute S4;
[0012] S4, calculate the distance from each sample in the data set D to each current center point one by one, determine the cluster to which the sample belongs based on the minimum distance, and recalculate the center point position based on the newly divided clusters; iteratively calculate the center point position of the clusters until the center point position of each cluster no longer changes, and obtain the final center point set;
[0013] S5. Determine the cluster to which each sample in the data set D belongs according to the final set of center points to form the final cluster division;
[0014] S6. Calculate the number of samples contained in each cluster in the cluster division, take the cluster containing the largest number of samples as the normal cluster, and the other clusters as abnormal clusters, and take the samples in the other clusters as abnormal samples of the batteries in the group.
[0015] Furthermore, in the above-mentioned method for automatically identifying abnormalities in a lead-acid battery pack for a data center, the data set in S1 is an internal resistance data set, a voltage data set or a temperature data set.
[0016] Furthermore, in the above-mentioned method for automatically identifying abnormalities in a lead-acid battery pack for a data center, S2 includes:
[0017] S21. Sort the samples in data set D from small to large, and calculate the minimum value x of the samples in data set D. min , the first quartile Q1, the second quartile x med , the third quartile Q3 and the maximum value x max ; Define the initial number of clusters k = 1;
[0018] If the maximum value of x max > Q3 + 1.5(Q3 - Q1) or the minimum value of x min < Q1 - 1.5(Q3 - Q1), then k is incremented by 1; if the maximum value of x max > Q3 + 1.5(Q3 - Q1) and the minimum value of x min < Q1 - 1.5(Q3 - Q1), then k is incremented by 2;
[0019] S22. If the number of clusters k = 2, then:
[0020] When the maximum value of x max > Q3 + 1.5(Q3 - Q1), the set of cluster center points U = {x med , x max};
[0021] When the minimum value of x min < Q1 - 1.5(Q3 - Q1), the set of cluster center points U = {x med , x min};
[0022] If the number of clusters k = 3, then: the set of cluster center points U = {x med , x max , x min}.
[0023] Furthermore, in the above method for automatically identifying anomalies in a lead - acid battery pack in a data center, if the maximum value of x max and the minimum value of x min both do not satisfy: x max > Q3 + 1.5(Q3 - Q1) and x min < Q1 - 1.5(Q3 - Q1), then k = 1.
[0024] Furthermore, in the above method for automatically identifying anomalies in a lead - acid battery pack in a data center, S4 includes:
[0025] S41. Calculate the distance d ij = |x i - u j | for each sample in the dataset D to all center points in the current center point set one by one, and obtain an m - row k - column matrix D = (d ij ); x i represents the sample in the dataset D, 1 ≤ i ≤ m; u j represents the center point in the current center point set U, 1 ≤ j ≤ k, and k represents the number of current center points;
[0026] S42. Solve the minimum value of each row in the matrix D one by one and obtain the row number i and column number j where the minimum value is located. If the sample xi Corresponding distance d ij Minimum, then the sample x i Divide into cluster C j ;
[0027] S43, calculate each cluster C j The center point u j , get a new set of center points;
[0028] S44, compare the difference between the latest center point set and the center point set obtained last time, if the two are the same, the iterative update is completed; if the two are not the same, iteratively execute S41-S43 until the latest center point set is the same as the last center point set.
[0029] Further, in the above-mentioned method for automatically identifying abnormalities in a lead-acid battery pack for a data center, in S43, u j The calculation formula is:
[0030]
[0031] Among them, u j represents the center point, n represents the cluster C j The number of samples in , x represents the sample.
[0032] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a method for automatically identifying abnormalities in a lead-acid battery pack for a data center, which has the following beneficial effects:
[0033] 1. The present invention uses the quartile method to solve the problem of selecting the number of clusters, and uses the maximum value, minimum value and median value to solve the problem of setting the initial center point of the cluster.
[0034] 2. The present invention utilizes a clustering algorithm to realize automatic identification of abnormal operating internal resistance, voltage, and temperature within a battery pack, and based on the clustering results, a cluster containing fewer samples is determined as an abnormal class. The method is simple and has a fast calculation speed.
[0035] 3. The present invention improves the ability to detect battery operation risks and enhances the operational safety of data center infrastructure by realizing the identification of abnormal operation in the battery pack. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A flow chart of a method for automatically identifying abnormalities in a lead-acid battery pack for a data center provided by the present invention;
[0038] Figure 2 The result of automatic identification of abnormalities within a battery group when the number of clusters is 2;
[0039] Figure 3 The figure shows the automatic identification result of abnormalities within a battery group when the number of clusters is 3. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] like Figure 1 As shown, the embodiment of the present invention discloses a method for automatically identifying abnormalities in a lead-acid battery pack for a data center, comprising the following steps:
[0042] S1. Obtain the operating data of the same group of batteries to obtain a data set D;
[0043] S2, sort the samples in the data set D from small to large, and determine the current number of clusters and the current center point set according to the quartile method;
[0044] S3. If the number of clusters is equal to 1, there is no abnormal sample in the battery group; if the number of clusters is greater than 1, execute S4;
[0045] S4, calculate the distance from each sample in the data set D to each current center point one by one, determine the cluster to which the sample belongs based on the minimum distance, and recalculate the center point position based on the newly divided clusters; iteratively calculate the center point position of the clusters until the center point position of each cluster no longer changes, and obtain the final center point set;
[0046] S5. Determine the cluster to which each sample in the data set D belongs according to the final set of center points to form the final cluster division;
[0047] S6. Calculate the number of samples contained in each cluster in the cluster division, take the cluster containing the largest number of samples as the normal cluster, and the other clusters as abnormal clusters, and take the samples in the other clusters as abnormal samples of the batteries in the group.
[0048] The above steps are further explained below.
[0049] S1. Acquisition of operating data of the same group of storage batteries: The data set can be an internal resistance data set, a voltage data set, or a temperature data set; the internal resistance data set R of the same group of storage batteries = {r1, r2,..., r m}, the voltage data set V = {v1, v2,..., v m}, and the temperature data set T = {t1, t2,..., t m}, where m is the number of sections of the same group of storage batteries. For 12V storage batteries, m is usually 40, and for 2V storage batteries, m is usually 120. The internal resistance data set, the voltage data set, and the temperature data set are uniformly denoted as the data set D = {x1, x2,..., x m}.
[0050] S2. Determination of the number of clustering clusters:
[0051] S21. Sort the samples x m (1 ≤ i ≤ m) in the data set D = {x1, x2,..., x i} from smallest to largest, and calculate the minimum value x i of the sample x min , the first quartile Q1, the second quartile, that is, the median x med , the third quartile Q3, and the maximum value x max ; define the initial number of clustering clusters k = 1;
[0052] If the maximum value x max > Q3 + 1.5(Q3 - Q1) or the minimum value x min < Q1 - 1.5(Q3 - Q1), then k is increased by 1;
[0053] If the maximum value x max > Q3 + 1.5(Q3 - Q1) and the minimum value x min < Q1 - 1.5(Q3 - Q1), then k is increased by 2.
[0054] S22. Determination of the initial center points of the clustering clusters; if the number of clustering clusters k = 2:
[0055] When the maximum value x max > Q3 + 1.5(Q3 - Q1), at this time, the set U of the initial center points of the clustering clusters = {x med , x max};
[0056] When the minimum value x min < Q1 - 1.5(Q3 - Q1), at this time, the set U of the initial center points of the clustering clusters = {x med , x min}.
[0057] If the number of clustering clusters k = 3, the set U of the initial center points of the clustering clusters = {xmed ,x max ,x min}.
[0058] S3. The possible values of the number of clusters k are 1, 2, and 3. If k is 1, the process ends directly, and there is no outlier in the data set D. If k is 2 or 3, the process proceeds to S4.
[0059] S4. Iterative calculation of cluster center points:
[0060] S41. Calculation of the distance from the sample point to the cluster center:
[0061] Calculate the distance d from each sample in the data set D to all the center points in the current center point set one by one ij =|x i -u j |, we get the matrix D = (d ij ); x i represents the sample in the data set D, 1≤i≤m; u j Represents the center point in the current center point set U, 1≤j≤k, k represents the number of current center points.
[0062] S42. Division of clusters to which sample points belong:
[0063] For a matrix D with m rows and k columns, ij ), solve the minimum value of each row one by one and obtain the row number i and column number j where the minimum value is located. If the sample x i Corresponding distance d ij Minimum, then the sample x i Divide into cluster C j For example, if the sample x1 corresponds to the distance d 12 The smallest, then the sample x1 is divided into cluster C2; if the sample x2 corresponds to the distance d 21 The smallest, then the sample x2 is divided into cluster C1.
[0064] S43. Calculation of cluster center points:
[0065] For cluster C j , whose center point u j The calculation formula is as follows:
[0066]
[0067] Where n represents the cluster C j The number of sample points in , x represents the sample.
[0068] For the divided cluster set C = {C1, C2, ..., C k}, and calculate each cluster one by one to obtain a new set of center points U = {u1,u2,…,u k}
[0069] S44, iterative update of cluster center points:
[0070] Compare the difference between the latest set of center points and the last set of center points obtained. If the two are the same, the iterative update is completed; if the two are not the same, iteratively execute S41-S43 until the latest set of center points is the same as the last set of center points.
[0071] S5. Cluster division:
[0072] According to the final determined center point set U = {u1,u2,…,u k}Calculate the data set D = {x1, x2, ..., x m}For each sample x i The clusters they belong to form the final cluster partition C = {C1, C2, ..., C k}.
[0073] S6. Identification of outliers:
[0074] Calculate the cluster partition C = {C1, C2, ..., C k The number of sample points contained in each cluster in} is calculated, among which the cluster with the most samples is the normal cluster, and the other clusters are abnormal clusters. The samples in the abnormal clusters are identified as abnormal points, thereby realizing the identification of abnormal resistance, abnormal voltage, and abnormal temperature within the group.
[0075] The method of the present invention is further described below with reference to specific embodiments.
[0076] Example 1: Taking the internal resistance data of a battery pack on January 14, 2021 as an example
[0077] S1. Acquisition of the operating data of the same group of batteries: Acquire the internal resistance data set R = {r1, r2, ..., r m}, m is 40, denoted as D={x1,x2,…,x 40}.
[0078] S2. Determination of the number of clusters and center points:
[0079] S21. Determine the number of clusters: Set the data set D = {x1, x2, ..., x 40 Sample x in} i Sort from small to large and calculate sample x i The minimum value x min , the first quartile Q1, the second quartile, that is, the median xmed , the third quartile Q3, and the maximum value x max . The calculation results of the above values are as follows:
[0080] x min = 0 mΩ, Q1 = 2.57 mΩ, x med = 3.26 mΩ, Q3 = 3.57 mΩ, x max = 4.48 mΩ.
[0081] Define the initial number of clusters k = 1;
[0082] If the maximum value x max > Q3 + 1.5(Q3 - Q1), then k is incremented by 1. The actual calculation result is:
[0083] 4.48 < 3.57 + 1.5(3.57 - 2.57) = 5.07, so k is not incremented.
[0084] If the minimum value x min < Q1 - 1.5(Q3 - Q1), then k is incremented by 1. The actual calculation result is:
[0085] 0 < 2.57 - 1.5(3.57 - 2.57) = 1.07, so k is incremented by 1.
[0086] Therefore, the value of the number of clusters k is 2.
[0087] S22. Determination of the initial center points of the clusters. If the number of clusters k = 2:
[0088] When the maximum value x max > Q3 + 1.5(Q3 - Q1), at this time the set of initial center points of the clusters U = {x med , x max};
[0089] When the minimum value x min < Q1 - 1.5(Q3 - Q1), at this time the set of initial center points of the clusters U = {x med , x min}. According to the calculation results of S21, the set of initial center points of the clusters U = {x med , x min}, which is U = {3.26, 0}
[0090] S4. Iterative calculation of the cluster center points:
[0091] S41. Calculation of the distance from the sample point to the cluster center point:
[0092] In the data set D = {x1, x2, …, x 40} for the sample x iTo the center point u in the center point set U = {3.26,0} j The distance d ij =|x i -u j |, calculate the distance from each sample point in the data set D to all the center points in the center point set U one by one, and get a 40-row 2-column matrix D = (d ij ).
[0093] S42. Division of clusters to which sample points belong:
[0094] For a matrix D with 40 rows and 2 columns, ij ), solve the minimum value of each row one by one and obtain the row number i and column number j where the minimum value is located, then the sample x in the data set i Divide into cluster C j For example, if the sample x1 corresponds to the distance d 12 The smallest, then the sample x1 is divided into cluster C2; if the sample x2 corresponds to the distance d 21 The smallest, then sample x2 is divided into cluster C1. The specific results are shown in Table 1, where cluster 1 represents C1 and cluster 2 represents C2.
[0095] Table 1 Clustering results of Example 1
[0096]
[0097]
[0098] S43. Calculation of cluster center points:
[0099] For cluster C j , whose center point u j :
[0100]
[0101] Where n represents the cluster C j Calculate each cluster in the divided cluster set C = {C1, C2} one by one to obtain a new center point set U = {u1, u2}, that is, U = {3.39, 0.47}.
[0102] S44, iterative update of cluster center points:
[0103] Repeat S41-S43 to obtain the latest center point set U={3.49,0.374}. Compare the difference between the latest center point set and the last obtained center point set U={3.39,0.47}, and find that the two are different.
[0104] Continue to iterate and get the latest center point set U = {3.49, 0.374}. Compare the latest center point set with the last center point set U = {3.49, 0.374} and find that they are the same. Stop iteration and the final cluster center point set is U = {3.49, 0.374}.
[0105] S5. Cluster division:
[0106] Based on the final determined center point set U = {3.49, 0.374}, the data set D = {x1, x2, …, x 40}For each sample x i The clusters they belong to form the final cluster partition C = {C1, C2}, as shown in Table 2.
[0107] Table 2 Final cluster division results of Example 1
[0108]
[0109]
[0110] S6. Identification of outliers:
[0111] Calculate the number of sample points contained in each cluster in the cluster partition C = {C1, C2}. The cluster with the most samples is the normal cluster, and the other clusters are abnormal clusters. The sample points in the abnormal cluster are identified as abnormal points. From Table 2, it can be calculated that cluster C1 contains 30 samples and cluster C2 contains 10 samples. Therefore, cluster C2 is an abnormal cluster and the samples in the cluster are abnormal samples. Figure 2 The automatic identification results of abnormalities within the battery group are given.
[0112] Example 2: Taking the internal resistance data of a battery pack on January 26, 2021 as an example
[0113] S1. Acquisition of operating data of batteries in the same group;
[0114] Get the internal resistance data set R = {r1, r2, …, r m}, m is 40, denoted as D={x1,x2,…,x 40}.
[0115] S2. Determination of the number of clusters and center points:
[0116] S21. Determine the number of clusters: Set the data set D = {x1, x2, ..., x 40 Sample x in} i Sort from small to large and calculate sample x i The minimum value x min, the first quartile Q1, the second quartile, i.e., the median x med , the third quartile Q3 and the maximum value x max . The calculation results of the above values are as follows:
[0117] x min = 0 mΩ, Q1 = 3.745 mΩ, x med = 4.05 mΩ, Q3 = 4.4775 mΩ, x max = 9 mΩ.
[0118] Define the initial number of clusters k = 1;
[0119] If the maximum value x max > Q3 + 1.5(Q3 - Q1), then k is incremented by 1. The actual calculation results are as follows:
[0120] 9 > 4.4775 + 1.5*(4.4775 - 3.745) = 5.57625, so k is incremented by 1.
[0121] If the minimum value x min < Q1 - 1.5(Q3 - Q1), then k is incremented by 1. The actual calculation results are as follows:
[0122] 0 < 3.745 - 1.5*(4.4775 - 3.745) = 2.64625, so k is incremented by 1.
[0123] Therefore, the value of the number of clusters k is 3.
[0124] S22, Determination of the initial cluster centers:
[0125] If the number of clusters k = 3, the set of initial cluster centers U = {x med , x max , x min}.
[0126] According to the calculation results of the second step, the set of initial cluster centers U = {4.05, 0, 9}
[0127] S4, Iterative calculation of the cluster centers:
[0128] S41, Calculation of the distance from the sample points to the cluster centers:
[0129] For the sample x 40 in the dataset D = {x1, x2,..., x i} to the center point u j in the center point set U = {4.05, 0, 9}, the distance d ij = |x i - u j|, calculate the distance from each sample point in the data set D to all the center points in the center point set U one by one, and get a 40-row 3-column matrix D = (d ij ).
[0130] S42. Division of clusters to which sample points belong:
[0131] For a matrix D with 40 rows and 3 columns, ij ), solve the minimum value of each row one by one and obtain the row number i and column number j where the minimum value is located, then the sample x in the data set i Divide into cluster C j The specific results are shown in Table 3, where cluster 1 represents C1, cluster 2 represents C2, and cluster 3 represents C3.
[0132] Table 3 Example 2 Clustering results
[0133]
[0134]
[0135] S43. Calculation of cluster center points:
[0136] For cluster C j , whose center point u j :
[0137]
[0138] Where n represents the cluster C j The number of sample points in the cluster. Calculate each cluster in the divided cluster set C = {C1, C2, C3} one by one to obtain a new center point set U = {u1, u2, u3}. That is, U = {4.156, 0, 9}.
[0139] S44, iterative update of cluster center points:
[0140] Repeat S41-S43 to obtain the latest center point set U = {4.156, 0, 9}. Compare the difference between the latest center point set and the last obtained center point set U = {4.156, 0, 9}. If the two are found to be the same, stop iteration. The final cluster center point set is U = {4.156, 0, 9}.
[0141] S5. Cluster division:
[0142] Based on the final determined center point set U = {4.156, 0, 9}, the data set D = {x1, x2, …, x 40}For each sample x iThe clusters they belong to form the final cluster partition C = {C1, C2, C3}, as shown in Table 4.
[0143] Table 4 Final cluster division results of Example 2
[0144] Serial number 1 2 3 4 5 6 7 8 9 10 Cluster 1 1 1 1 1 1 3 1 1 1 Serial number 11 12 13 14 15 16 17 18 19 20 Cluster 1 1 1 1 1 1 1 1 1 1 Serial number 21 22 23 24 25 26 27 28 29 30 Cluster 1 1 1 1 1 1 1 2 2 2 Serial number 31 32 33 34 35 36 37 38 39 40 Cluster 1 1 1 1 1 1 1 1 1 1
[0145] S6. Identification of outliers:
[0146] Calculate the number of sample points contained in each cluster in the cluster partition C = {C1, C2, C3}. The cluster with the most samples is the normal cluster, and the other clusters are abnormal clusters. The sample points in the abnormal cluster are identified as abnormal points. From the table, it can be calculated that cluster C1 contains 36 samples, cluster C2 contains 3 samples, and cluster C3 contains 1 sample. Therefore, clusters C2 and C3 are abnormal clusters, and the samples in the clusters are abnormal samples. Figure 3 The automatic identification results of abnormalities within the battery group are given.
[0147] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0148] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for automatically identifying abnormalities in a lead-acid battery pack for a data center, characterized in that: include: S1. Obtain the operating data of the same group of batteries to obtain a data set D; S2. Sort the samples in the data set D from small to large, and determine the current number of clusters and the current center point set according to the quartile method; including: S21. Sort the samples in data set D from small to large, and calculate the minimum value x of the samples in data set D. min , the first quartile Q1, the second quartile x med , the third quartile Q3 and the maximum value x max ; Define the initial number of clusters k = 1; If the maximum value of x max > Q3 + 1.5(Q3 - Q1) or the minimum value of x min < Q1 - 1.5(Q3 - Q1), then k is incremented by 1; If the maximum value of x max > Q3 + 1.5(Q3 - Q1) and the minimum value of x min < Q1 - 1.5(Q3 - Q1), then k is increased by 2; S22. If the number of clusters k = 2, then: When the maximum value x max >Q3+1.5(Q3-Q1), the cluster center point set U={x med , x max }; When the minimum value x min < Q1 - 1.5(Q3 - Q1), the set of cluster center points U = {x med , x min}; If the number of clusters k = 3, then: the cluster center point set U = {x med , x max , x min }; S3. If the number of clusters is equal to 1, there is no abnormal sample in the battery group; if the number of clusters is greater than 1, execute S4; S4, calculate the distance from each sample in the data set D to each current center point one by one, determine the cluster to which the sample belongs based on the minimum distance, and recalculate the center point position based on the newly divided clusters; iteratively calculate the center point position of the clusters until the center point position of each cluster no longer changes, and obtain the final center point set; S5. Determine the cluster to which each sample in the data set D belongs according to the final set of center points to form the final cluster division; S6. Calculate the number of samples contained in each cluster in the cluster division, take the cluster containing the largest number of samples as the normal cluster, and the other clusters as abnormal clusters, and take the samples in the other clusters as abnormal samples of the batteries in the group.
2. The method for automatically identifying abnormalities in a lead-acid battery pack for a data center according to claim 1, characterized in that: The data set in S1 is an internal resistance data set, a voltage data set or a temperature data set.
3. The method for automatically identifying abnormalities in a lead-acid battery pack for a data center according to claim 1, characterized in that: If the maximum value of x max and the minimum value of x min both do not satisfy: x max > Q3 + 1.5(Q3 - Q1) and x min < Q1 - 1.5(Q3 - Q1), then k = 1.
4. The method for automatically identifying abnormalities in a lead-acid battery pack for a data center according to claim 1, characterized in that S4 include: S41, calculate the distance d from each sample in the data set D to all the center points in the current center point set one by one ij =|x i -u j |, we get the matrix D with m rows and k columns = (d ij ); x i represents the sample in the data set D, 1≤i≤m; u j represents the center point in the current center point set U, 1≤j≤k, k represents the number of current center points; S42, solve the minimum value of each row in the matrix D one by one and obtain the row number i and column number j where the minimum value is located. If the sample x i Corresponding distance d ij Minimum, then the sample x i Divide into cluster C j ; S43, calculate each cluster C j The center point u j , get a new set of center points; S44, compare the difference between the latest center point set and the center point set obtained last time, if the two are the same, the iterative update is completed; if the two are not the same, iteratively execute S41-S43 until the latest center point set is the same as the last center point set.
5. The method for automatically identifying abnormalities in a lead-acid battery pack for a data center according to claim 4, characterized in that: In S43, u j The calculation formula is: Among them, u j represents the center point, n represents the cluster C j The number of samples in , x represents the sample.
