This application relates to battery fault diagnosis, and more particularly to a method, device and non-transitory computer-readable storage medium for online diagnosis of power battery voltage fault based on an entropy algorithm.
With the rapid development of the electric vehicle industry in recent years, safety accidents caused by faults in power batteries have become increasingly frequent. Therefore, fault diagnosis of electric vehicle power batteries is of great importance. The power battery system faults are often caused by over-voltage, under-voltage, short circuits, over-temperature, or poor consistency of one or more cells. These faults are typically reflected in the cell voltage parameter, i.e., inconsistent voltage fluctuation. Therefore, quickly and accurately monitoring and assessing the abnormal voltage fluctuations in individual cells can provide a more comprehensive understanding of the safety of the power battery system. Currently, various entropy-based methods are widely applied in the battery fault diagnosis due to their remarkable effectiveness in evaluating the system disorder level and uncertainty. However, the improvement of the model precision is often accompanied by the decline in the computational efficiency.
Therefore, there is an urgent need to provide an entropy algorithm-based method for online diagnosis of power battery voltage fault.
A purpose of the present application is to provide a method for online diagnosis of power battery voltage fault based on an entropy algorithm to solve the above problems in the prior art.
The present application provides a method for online diagnosis of power battery voltage fault based on an entropy algorithm, comprising:
In an embodiment, the length of the sliding time window is k, and the width of the sliding time window is equal to the number of the plurality of cells n; and the second voltage data matrix B is represented by:
wherein bi,j represents the voltage value of the j-th cell at the i-th index; i=1, 2, . . . k; and j=1, 2, . . . n
In an embodiment, the step (S102) comprises:
In an embodiment, the step (S103) comprises:
representing a probability that the voltage values of the j-th cell in the third voltage data matrix D fall into the i-th interval; and
representing a Shannon entropy value of the j-th cell calculated based on the second voltage data matrix B.
In an embodiment, the step (S104) comprises:
In an embodiment, the step of determining whether a abnormal cell among the plurality of cells exists based on a safety evaluation strategy comprises:
The present application further provides a device for online fault diagnosis of power battery voltage based on entropy algorithm, comprising:
The present application further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program; and the computer program is configured to be executed by a processor to implement the method for online diagnosis of power battery voltage fault based on entropy algorithm.
This application at least has the following beneficial effects.
The existing method typically adopts entropy calculations based on intervals and probabilities, but this method is sensitive to changes in the voltage data intervals. The size of Shannon entropy calculated by this method is susceptible to long-duration voltage data segments without fluctuations, leading to a high misdiagnosis rate. To address this, the method provided herein provides an additional data processing step that involves excluding and reconstructing the raw data. The data processing principle ensures that fault data without abnormal fluctuations is excluded, while also removing data segments prone to misdiagnosis, remarkably improving fault diagnosis accuracy.
Furthermore, in the existing Z-score methods, the mean value and standard deviation calculations are susceptible to extreme values. To further improve the precision of abnormal detection for cells, the method provided herein replaces the mean value by the median during the normalization process of Shannon entropy and removes outliers before calculating the standard deviation. The method provided herein further reduces the misdiagnosis rate.
The method provided herein also employs the principle of the sliding time window, using the voltage data within the sliding window to locate the position and occurrence time of the faculty cell. This reduces the computational load and enables real-time application, distinguishing this method from existing fault diagnosis methods that calculate the data over their entire lifecycle.
The present disclosure will be described in detail below with reference to the accompanying drawings.
The technical solutions of this application are described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of this application and the specific features within the embodiments are detailed descriptions of the technical solutions of this application and are not intended to limit the technical solutions of this application. Where there is no conflict, the embodiments of this application and the technical features within the embodiments may be combined with one another.
A method for online fault diagnosis of power battery voltage based on an entropy algorithm provided herein includes the following steps.
(S100) A voltage time-series data of each of a plurality of cells in a battery pack of a to-be-diagnosed vehicle is obtained to construct a first voltage data matrix A; where the first voltage data matrix A is expressed by:
In the above formula, m is a time-series length; n is the number of the plurality of cells; and ai,j represents a voltage of a j-th cell in an i-th index; i=1, 2, . . . m; and j=1, 2, . . . n.
(S101) A length and a width of a sliding time window are set. Data interception on the first voltage data matrix A is performed by using the sliding time window to form a second voltage data matrix B.
(S102) Voltage values of the second voltage data matrix B is subjected to data exclusion and reconstruction based on a data processing method to form a third voltage data matrix D.
(S103) A Shannon entropy value of each of the plurality of cells is calculated based on the third voltage data matrix D by using an optimized entropy algorithm.
(S104) The Shannon entropy value is transformed into a voltage abnormal fluctuation evaluation coefficient based on an improved Z-score method.
(S105) Whether there is an abnormal cell among the plurality of cells is determined based on a safety evaluation strategy. If yes, step (S106) is performed; otherwise, step (S107) is performed.
(S106) A position and an occurrence time of the abnormal cell are determined. An abnormality degree of the abnormal cell is determined to send a corresponding alert to a driver.
(S107) The sliding time window down is moved down within the first voltage data matrix A. Steps (S101)-(S105) are repeated for a next iteration.
In the step (S101), the length of the sliding time window is set as k and the width of the sliding time window is equal to the number of the plurality of cells n. The second voltage data matrix B is represented by:
In the above formula, bi,j represents the voltage value of the j-th cell at the i-th index; i=1, 2, . . . k; and j=1, 2, . . . n.
The step (S102) includes the following sub-steps.
(S200) A voltage difference between neighboring data sampling points for each of the plurality of cells is monitored to establish a voltage difference matrix C.
The voltage difference matrix C is represented by:
In the above formula, ci,j represents a voltage difference of the j-th cell between the i-th index and an (i+1)-th index; i=1, 2, . . . , k−1; and j=1, 2,., n.
(S201) For each of the plurality of cells, data locations in the voltage difference matrix C where voltage differences are not greater than 0.001V are identified, and row indices for more than k/10 consecutive data points are locked.
(S202) Data fragments corresponding to the row indices identified in step (S201) are removed from the second voltage data matrix B.
(S203) Remaining data in the second voltage data matrix B is sequentially spliced to form the third voltage data matrix D, where a value of a spliced point is an average of values of an immediately preceding row and an immediately following row. The third voltage data matrix D is represented by:
Step (S103) includes the following sub-steps.
(S300) A maximum value dmax and a minimum value dmin of the third voltage data matrix D are found. The maximum value dmax and the minimum value dmin are represented by:
In the above formula, L=1, 2, 3, . . . . I.
(S302) The number of voltage values of each of the plurality of cells in the third voltage data matrix D respectively falling into each of the/intervals is calculated to obtain a frequency matrix F. The frequency matrix F is represented by:
In the above formula, fi,j represents the number of voltage values of the j-th cell in the third voltage data matrix D that falls into an i-th interval.
(S303) Each value in the frequency matrix F is divided by a sum of values in a corresponding column of the frequency matrix F to obtain a probability matrix P, represented by:
In the above formula,
representing a probability that the voltage values of the j-th cell in the third voltage data matrix D fall into the i-th interval.
(S304) The Shannon entropy value of each of the plurality of cells is calculated based on the second voltage data matrix B to obtain a first Shannon entropy sequence H(B). The first Shannon entropy sequence H(B) is expressed by:
H(B)=[H1,H2,L,Hj,L,Hn].
In the above formula,
representing a Shannon entropy value of the j-th cell calculated based on the second voltage data matrix B.
The step (S104) includes the following steps.
(S400) The first Shannon entropy sequence H(B) is obtained.
(S401) A mean value μH of Shannon entropy values of the plurality of cells in the first Shannon entropy sequence is calculated.
(S402) Values exceeding 2*μH are excluded from the first Shannon entropy sequence H(B) to form a second Shannon entropy sequence H(B)′. A mean value and a standard deviation of Shannon entropy values in the second Shannon entropy sequence H(B)′ are calculated. The mean value of the Shannon entropy values of the second Shannon entropy sequence is represented by:
The standard deviation of the Shannon entropy values of the second Shannon entropy sequence is represented by:
(S403) A median Hme of the Shannon entropy values of the plurality of cells in the second Shannon entropy sequence is calculated.
(S404) The Shannon entropy values of the plurality of cells in the second Shannon entropy sequence H(B)′ are normalized to obtain the voltage abnormal fluctuation evaluation coefficient of the plurality of cells, expressed by:
In the above formula, Hj′ represents a Shannon entropy value of the j-th cell in the second Shannon entropy sequence; and σH′ represents the standard deviation of the second Shannon entropy sequence.
The safety evaluation strategy is performed through the following steps.
(S500) Whether there is a cell among the plurality of cells whose voltage abnormal fluctuation evaluation coefficient absolute value is greater than 3.5 is determined. The cell whose voltage abnormal fluctuation evaluation coefficient absolute value is greater than 3.5 is identified as the abnormal cell.
(S501) If not, step (S502) is proceeded. If yes, step (S503) is proceeded.
(S502) The sliding time window is moved down by one row within the first voltage data matrix A and steps (S101)-(S105) are repeated for the next iteration.
(S503) Whether the voltage abnormal fluctuation evaluation coefficient absolute value is larger than 4 is determined. If yes, step (S505) is proceeded. Otherwise, step (S504) is proceeded.
(S504) A secondary fault warning is sent. A duration of a secondary fault is calculated. Whether the duration of the secondary fault exceeds a preset threshold is determined. If yes, step (S505) is proceeded with. Otherwise, step (S502) is returned.
(S505) A primary fault warning is sent to the driver, the to-be-diagnosed vehicle is checked.
Specifically, as an example, consider a vehicle battery pack with 95 cells and 200 sampling data points. Based on this data, the voltage-time series matrix A for all cells is constructed as follows:
In the above formula, ai,j represents a voltage value of the j-th cell at the i-th index; i=1, 2, . . . 200; and j=1,2, . . . 95.
In the step (S101), the length of the sliding time window is 100 and the width of the sliding time window is 95. Using the sliding time window, the voltage-time series matrix A is intercepted. The voltage data matrix B segmented for first iteration is expressed by:
Based on the voltage data matrix B, the step (S102) is executed according to the flowchart shown in
In the step (S200), the voltage differences between neighboring data sampling points for each cell are monitored, and the voltage difference matrix C for each cell in the voltage data matrix B is established. The voltage difference matrix C is represented by:
In the step (S201), for each of the plurality of cells, data locations in the voltage difference matrix C where voltage differences are not greater than 0.001V are identified, and row indices for more than 10 consecutive data points are locked.
In the step (S202), the data fragments corresponding to the row indices identified in step S201 are removed from the voltage data matrix B.
In the step (S203), the remaining data in the voltage data matrix B is sequentially spliced, and the value of the spliced point is an average of values of an immediately preceding row and an immediately following row.
In the above formula, di,j represents a voltage of the j-th cell at the i-th index, and e≤k.
The step (S103) (the optimized entropy algorithm) is executed as shown in
In the step (S300), a maximum value dmax and a minimum value dmin of the voltage data matrix D are found. The maximum value dmax and the minimum value dmin are represented by:
In the step (S301), the interval (dmin, dmax) is divided into 10 intervals. The 10 intervals are each represented by:
In the above formula, L=1, 2, . . . , 10.
In the step (S302), the number of voltage values for each cell in the voltage data matrix D respectively falling into each of the 10 intervals is calculated to obtain a frequency matrix F. The frequency matrix F is represented by:
In the above formula, fi,j represents the number of voltage values of the j-th cell in the voltage data matrix D that falls into the intervals
In the step (S303), the probability matrix P is calculated based on matrix F. The probability matrix P is represented by:
In the above formula,
represents a probability that the voltage values of the j-th cell in the voltage data matrix D fall into the i-th interval.
In the step (S304), a Shannon entropy sequence H(B) is obtained based on the voltage data matrix B. The Shannon entropy sequence H(B) is expressed by:
H(B)=[H1,H2,L,Hj,L,H95].
In the above formula,
and Hj represents a Shannon entropy value of the j-th cell calculated based on the second voltage data matrix B.
The step (S104) (the improved Z-score method) is executed as shown in
In the step (S401), the mean value μH of the Shannon entropy sequence H(B) is calculated. The mean value of the Shannon entropy sequence is expressed by:
In the step (S402), a Shannon entropy value in the first Shannon entropy sequence H(B) that exceeds a value of 2*μH is excluded to form a second Shannon entropy sequence H(B)′. H(B)′=[H1, H2,L, Hg]. A mean value and a standard deviation of Shannon entropy values of H(B)′ are calculated. The mean value of the Shannon entropy values of H(B)′ is represented by:
The standard deviation of the Shannon entropy values of H(B) is represented by:
In the step (S403), a median Hme of the Shannon entropy value of the Shannon entropy sequence in the second Shannon entropy sequence is calculated.
In the step (S404), the Shannon entropy values in the sliding time window based on the Z-score theory are normalized to obtain the voltage abnormal fluctuation evaluation coefficient AF for each cell. The voltage abnormal fluctuation evaluation coefficient AF is represented by:
In the above formula, Hj′ represents a Shannon entropy value of the j-th cell in the second Shannon entropy sequence; and σH′ represents the standard deviation of the second Shannon entropy sequence.
Finally, steps (S105), (S106) and (S107) are executed according to the process shown in
In the step (S500), based on a large amount of real fault and normal vehicle data analysis and verification, cell with 3.5<|AF| is identified as having voltage abnormal fluctuations, indicating the abnormal cell.
In step (S501), if 3.5<|AF|, the system will proceed to step (S503). If |AF|≤3.5, no voltage abnormal fluctuations are detected in the cell and step (S502) is proceeded.
In the step (S502), the sliding time window is moved down one row within the first voltage data matrix A and then steps (S101)-(S105) are repeated for the second iteration. The matrix B in the second iteration is represented by:
In the step (S503), whether the absolute value of the voltage abnormal fluctuation evaluation coefficient of the abnormal cell is larger than 4 is determined. If yes, step (S505) is proceeded; otherwise, step (S504) is proceeded.
The step (S504) has step (S504a) and step (S504b). In the step (S504a), a secondary fault warning is sent and a duration of a secondary fault is calculated. In the step (S504b), whether the duration of the secondary fault exceeds a preset threshold is determined; if yes, step (S505) is proceeded, otherwise, step (S502) is returned.
In the step (S505), a primary fault warning is sent to the driver, and the to-be-diagnosed vehicle is checked.
The above process exemplifies the complete calculation process for a single data interception using the sliding time window. In the implementation of this present disclosure, the method for online diagnosis of power battery voltage faults based on the entropy algorithm can continuously repeat the above steps for iterative calculations, enabling real-time and accurate assessment of voltage abnormal fluctuation.
Based on the same inventive concept as the aforementioned embodiment of the method for online diagnosis of power battery voltage faults using the entropy algorithm, the present disclosure also provides a device for online diagnosis of power battery voltage faults based on the entropy algorithm. This device includes a memory configured to store a computer program; and a processor. The processor is configured to execute the computer program to implement the steps of:
(S100) A voltage time-series data of each of a plurality of cells in a battery pack of a to-be-diagnosed vehicle is obtained to construct a first voltage data matrix A; where the first voltage data matrix A is expressed by:
In the above formula, m is a time-series length; n is the number of the plurality of cells; and ai,j represents a voltage of a j-th cell in an i-th index; i=1, 2, . . . m; and j=1, 2, . . . n.
(S101) A length and a width of a sliding time window are set. Data interception on the first voltage data matrix A is performed by using the sliding time window to form a second voltage data matrix B.
(S102) Voltage values of the second voltage data matrix B is subjected to data exclusion and reconstruction based on a data processing method to form a third voltage data matrix D.
(S103) A Shannon entropy value of each of the plurality of cells is calculated based on the third voltage data matrix D by using an optimized entropy algorithm;.
(S104) The Shannon entropy value is transformed into a voltage abnormal fluctuation evaluation coefficient based on an improved Z-score method.
(S105) Whether there is an abnormal cell among the plurality of cells is determined based on a safety evaluation strategy. If yes, step (S106) is proceeded; otherwise, step (S107) is proceeded.
(S106) A position and an occurrence time of the abnormal cell are determined. An abnormality degree of the abnormal cell is determined to send a corresponding alert to a driver.
(S107) The sliding time window down is moved down within the first voltage data matrix A. Steps (S101)-(S105) are repeated for a next iteration.
Based on the same inventive concept as the aforementioned embodiment of the method for online diagnosis of power battery voltage faults using the entropy algorithm, the present disclosure also provides a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores an computer program; and the computer program is configured to be executed by a processor to implement the steps of:
(S100) A voltage time-series data of each of a plurality of cells in a battery pack of a to-be-diagnosed vehicle is obtained to construct a first voltage data matrix A; where the first voltage data matrix A is expressed by:
In the above formula, m is a time-series length; n is the number of the plurality of cells; and ai,j represents a voltage of a j-th cell in an i-th index; i=1, 2, . . . m; and j=1, 2, . . . n.
(S101) A length and a width of a sliding time window are set. Data interception on the first voltage data matrix A is performed by using the sliding time window to form a second voltage data matrix B.
(S102) Voltage values of the second voltage data matrix B is subjected to data exclusion and reconstruction based on a data processing method to form a third voltage data matrix D.
(S103) A Shannon entropy value of each of the plurality of cells is calculated based on the third voltage data matrix D by using an optimized entropy algorithm;.
(S104) The Shannon entropy value is transformed into a voltage abnormal fluctuation evaluation coefficient based on an improved Z-score method.
(S105) Whether there is an abnormal cell among the plurality of cells is determined based on a safety evaluation strategy. If yes, step (S106) is proceeded; otherwise, step (S107) is proceeded.
(S106) A position and an occurrence time of the abnormal cell are determined. An abnormality degree of the abnormal cell is determined to send a corresponding alert to a driver.
(S107) The sliding time window down is moved down within the first voltage data matrix A. Steps (S101)-(S105) are repeated for a next iteration.
It will be understood by those skilled in the art that embodiments of the present disclosure may be provided as a method, system, or computer program product. Therefore, the present disclosure may be implemented entirely in hardware, entirely in software, or in a combination of both hardware and software. Moreover, the present disclosure may be implemented in the form of a computer program product stored on one or more computer-readable storage medium containing computer-usable program code, including but not limited to magnetic disk storage, CD-ROM, optical storage, and so forth.
The present disclosure is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the disclosure. It should be understood that each block and/or combination of blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, which, when the instructions are executed by the computer or other programmable data processing device, creates means for implementing the functions specified in one or more blocks of the flowcharts and/or block diagrams.
These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable storage medium constitute an article of manufacture including instruction means, which implement the functions specified in one or more blocks of the flowcharts and/or block diagrams.
Additionally, these computer program instructions may be loaded onto a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more blocks of the flowcharts and/or block diagrams.
It is apparent that those skilled in the art may make various modifications and adaptations to the present disclosure without departing from the spirit and scope of the disclosure. Therefore, if these modifications and adaptations fall within the scope of the claims of the present disclosure and their equivalent technologies, the present disclosure is intended to include these modifications and adaptations.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202311016786.1 | Aug 2023 | CN | national |
This application is a continuation of International Patent Application No. PCT/CN2024/105738, filed on Jul. 16, 2024, which claims the benefit of priority from Chinese Patent Application No. 202311016786.1, filed on Aug. 14, 2023. The content of the aforementioned application, including any intervening amendments made thereto, is incorporated herein by reference in its entirety.
| Number | Date | Country | |
|---|---|---|---|
| Parent | PCT/CN2024/105738 | Jul 2024 | WO |
| Child | 19031712 | US |