Battery fault detection method and device

By using a model trained based on normal battery and faulty battery sample data, combined with the measured voltage and current of the battery for prediction and fusion, the accuracy problem of lithium-ion battery fault detection is solved and the accuracy and safety of battery fault detection are improved.

CN118837751APending Publication Date: 2024-10-25HUANENG CLEAN ENERGY RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411010263.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

It is difficult to detect faults caused by aging or overcharging of lithium-ion batteries, which increases the safety risks of energy storage systems and is difficult to effectively solve with existing technology.

Method used

Using a model trained based on normal battery and faulty battery sample data, the measured voltage and current of the battery are obtained, the voltage is predicted, and the fusion is performed to determine whether the battery has failed and eliminate the influence of model errors and noise.

Benefits of technology

It improves the accuracy of battery fault detection, reduces the impact of errors and noise, and enhances the ability to identify battery faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118837751A_ABST
    Figure CN118837751A_ABST
Patent Text Reader

Abstract

The invention provides a battery fault detection method and device, and relates to the technical field of batteries. The method comprises the following steps: acquiring a first measurement voltage and a measurement current of a battery to be detected at the nth moment; inputting the first measurement voltage and the measurement current into a first model and a second model, and obtaining a first prediction voltage and a second prediction voltage at the (n + 1) th moment output by the first model and a third prediction voltage and a fourth prediction voltage at the (n + 1) th moment output by the second model; fusing the first predicted voltage with the second predicted voltage and fusing the third predicted voltage with the fourth predicted voltage to obtain a first target voltage and a second target voltage; acquiring a second measurement voltage of the to-be-detected battery at the (n + 1) th moment; and according to the first target voltage, the second target voltage and the second measurement voltage, determining whether the to-be-detected battery has a fault. Therefore, the influence of errors and noise of the model can be eliminated, and the accuracy of fault detection of the battery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of battery technology, and in particular to a battery fault detection method and device. Background Art

[0002] Lithium-ion batteries are widely used in energy storage systems due to their high energy density and long cycle times. However, battery aging or overcharging can lead to varying degrees of battery failure, increasing the potential safety risks of energy storage systems. Therefore, battery fault detection is critical. Summary of the invention

[0003] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0004] The first embodiment of the present disclosure provides a battery fault detection method, comprising:

[0005] Obtaining a first measured voltage and a first measured current of the battery to be tested at time n;

[0006] Input the first measured voltage and the measured current into a first model and a second model to obtain a first predicted voltage and a second predicted voltage at the n+1th moment output by the first model, and a third predicted voltage and a fourth predicted voltage at the n+1th moment output by the second model, wherein the first model is generated based on sample data training of a normal battery, and the second model is generated based on sample data training of a faulty battery;

[0007] Merging the first predicted voltage with the second predicted voltage, and merging the third predicted voltage with the fourth predicted voltage, to obtain a first target voltage and a second target voltage at the (n+1)th moment;

[0008] Obtaining a second measured voltage of the battery to be detected at the n+1th time;

[0009] Whether the battery to be detected fails is determined according to the first target voltage, the second target voltage, and the second measured voltage.

[0010] A second aspect of the present disclosure provides a battery fault detection device, comprising:

[0011] A first acquisition module, used to acquire a first measured voltage and a first measured current of the battery to be detected at time n;

[0012] A second acquisition module is used to input the first measured voltage and the measured current into a first model and a second model to obtain a first predicted voltage and a second predicted voltage at the n+1th moment output by the first model, and a third predicted voltage and a fourth predicted voltage at the n+1th moment output by the second model, wherein the first model is generated based on sample data training of a normal battery, and the second model is generated based on sample data training of a faulty battery;

[0013] A third acquisition module, configured to merge the first predicted voltage with the second predicted voltage, and merge the third predicted voltage with the fourth predicted voltage, so as to acquire a first target voltage and a second target voltage at the (n+1)th moment;

[0014] A fourth acquisition module, used to acquire a second measured voltage of the battery to be detected at the n+1th time;

[0015] A determination module is used to determine whether the battery to be detected has a fault according to the first target voltage, the second target voltage and the second measured voltage.

[0016] The battery fault detection method and device provided by the present disclosure have the following beneficial effects:

[0017] In the disclosed embodiment, the first measured voltage and measured current of the battery to be detected at the nth moment are first obtained, and then the first measured voltage and measured current are input into the first model and the second model to obtain the first predicted voltage and the second predicted voltage output by the first model, and the third predicted voltage and the fourth predicted voltage output by the second model, and then the first predicted voltage is merged with the second predicted voltage, and the third predicted voltage is merged with the fourth predicted voltage to obtain the first target voltage and the second target voltage at the n+1th moment, and the second measured voltage of the battery to be detected at the n+1th moment is obtained, and finally, according to the first target voltage, the second target voltage and the second measured voltage, it is determined whether the battery to be detected has a fault. Thus, the first target voltage is predicted based on the first model trained by the sample data of the normal battery, and the second target voltage is predicted based on the second model trained by the sample data of the faulty battery, and then according to the first target voltage, the second target voltage and the second measured voltage, it is determined whether the battery has a fault, thereby eliminating the influence of the model error and noise, and improving the accuracy of the battery fault detection.

[0018] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A schematic diagram of a flow chart of a battery fault detection method provided by an embodiment of the present disclosure;

[0021] Figure 1A A schematic diagram of a battery equivalent circuit model provided by an embodiment of the present disclosure;

[0022] Figure 2 A schematic flow chart of a battery fault detection method provided by another embodiment of the present disclosure;

[0023] Figure 3 A schematic flow chart of a battery fault detection method provided by another embodiment of the present disclosure;

[0024] Figure 3A A schematic diagram of a battery state of charge estimation and fault detection structure provided in an embodiment of the present disclosure

[0025] Figure 4 A schematic diagram of the structure of a battery fault detection device provided by an embodiment of the present disclosure;

[0026] Figure 5 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0027] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0028] The following describes a battery fault detection method and device according to an embodiment of the present disclosure with reference to the accompanying drawings.

[0029] Figure 1 A schematic flow chart of a battery fault detection method provided in an embodiment of the present disclosure.

[0030] The embodiment of the present disclosure takes the battery fault detection method being configured in a battery fault detection device as an example. The battery fault detection device can be applied to any electronic device so that the electronic device can perform the battery fault detection function.

[0031] Among them, the electronic device can be a personal computer (PC), cloud device, mobile device, etc. The mobile device can be, for example, a mobile phone, tablet computer, personal digital assistant, wearable device, vehicle-mounted device, etc., which are hardware devices with various operating systems, touch screens and / or display screens.

[0032] like Figure 1 As shown, the battery fault detection method may include the following steps:

[0033] Step 101, obtaining a first measured voltage and a first measured current of a battery to be tested at the nth moment.

[0034] The battery to be detected is a battery to be detected for faults. The first measured voltage may be a voltage measured at the positive and negative electrodes of the battery to be detected at the nth moment.

[0035] Step 102, input the first measured voltage and the measured current into the first model and the second model to obtain the first predicted voltage and the second predicted voltage output by the first model at the n+1th moment, and the third predicted voltage and the fourth predicted voltage output by the second model at the n+1th moment.

[0036] The first model is generated by training based on sample data of normal batteries, and the second model is generated by training based on sample data of faulty batteries.

[0037] Among them, the structure of the first model is the same as that of the second model. Specifically, the first model includes a first-order Thevenin equivalent circuit model, a second-order Thevenin equivalent circuit model, a first unscented Kalman filter connected to the first-order Thevenin equivalent circuit model, and a second unscented Kalman filter connected to the second-order Thevenin equivalent circuit model.

[0038] The second model includes a first-order Thevenin equivalent circuit model, a second-order Thevenin equivalent circuit model, a third unscented Kalman filter connected to the first-order Thevenin equivalent circuit model, and a third unscented Kalman filter connected to the second-order Thevenin equivalent circuit model.

[0039] Among them, the parameters of the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the first model are generated by training based on sample data of normal batteries; the parameters of the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the second model are generated by training based on sample data of faulty batteries.

[0040] In some possible implementations, the first measured voltage and measured current at the nth moment can be input into the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the first model to obtain the first output corresponding to the first-order Thevenin equivalent circuit model in the first model and the second output corresponding to the second-order Thevenin equivalent circuit model. Then, the first output and the second output are respectively input into the first unscented Kalman filter (Unscented KalmanFilter, UKF) and the second unscented Kalman filter in the first model to obtain the first predicted voltage at the n+1th moment output by the first unscented Kalman filter and the second predicted voltage at the n+1th moment output by the second unscented Kalman filter.

[0041] Similarly, the first measured voltage and measured current at the nth moment are input into the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the second model to obtain the third output corresponding to the first-order Thevenin equivalent circuit model in the second model and the fourth output corresponding to the second-order Thevenin equivalent circuit model. Then, the third output and the fourth output are respectively input into the third unscented Kalman filter and the fourth unscented Kalman filter in the second model to obtain the third predicted voltage at the n+1th moment output by the third unscented Kalman filter and the fourth predicted voltage at the n+1th moment output by the fourth unscented Kalman filter.

[0042] Figure 1A A schematic diagram of a battery equivalent circuit model provided by an embodiment of the present disclosure, wherein: Figure 1A (a) is the first-order Thevenin equivalent circuit model, and (b) is the second-order Thevenin equivalent circuit model. oc is the open circuit voltage, R 0 is the ohmic internal resistance, U L is the terminal voltage, I L is the battery current, R d , R c is the polarization internal resistance, C d and C c is the polarization capacitance, I d ,I c is the current flowing through the polarization internal resistance R d , R c The current, U d , U c is the polarization internal resistance R d , R c Voltage across both ends.

[0043] Among them, the expressions of the equivalent circuit model are shown in equations (1) and (2):

[0044]

[0045] The OCV-SOC curve can be determined based on the model of the battery to be tested. The same model has the same corresponding OCV-SOC curve. The OCV-SOC curve can be fitted using the formula shown in formula (3):

[0046]

[0047] Among them, a 0 ,a 1 ,a 2 ,a 3 ,a 4 is the coefficient to be identified.

[0048] SOC is calculated based on the ampere-hour integration method in equation (4):

[0049]

[0050] Among them, SOC 0 is the initial charge value of the battery to be tested, C n Indicates rated capacity, η i represents the Coulomb efficiency, and k represents the sampling time.

[0051] Since the model is a discrete model in the actual operation process, equations (1) and (2) are discretized. Taking the second-order Thevenin equivalent circuit model as an example, the discretized state space model is expressed by equations (5) and (6), where equation (5) is the state equation of the model and equation (6) is the output equation of the model:

[0052]

[0053] U L (k) = U oc (k)-U c (k)-U d (k)-R 0 (k)I L (k)+R(k) (5)

[0054] Among them, τ c =R c C c ,τ d =R d C d ,x=[SOC,U c ,U d ], S(k) and R(k) are process noise and observation noise respectively, and t is the sampling interval. L (k)) indicates that U L (k) using g(x(k),I L(k)), and the coefficient matrix is ​​represented by A, B, and C respectively to obtain the form of formula (7):

[0055]

[0056] in:

[0057]

[0058] In some possible implementations, the parameters of the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the first model can be determined based on the least squares method and the sample data of the normal battery. The parameters of the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the second model can be determined based on the least squares method and the sample data of the faulty battery.

[0059] In some possible implementations, the principle of filtering the output corresponding to each circuit equivalent model based on the unscented Kalman filter can be as follows:

[0060] 1) Initialize the state vector x 0 , covariance matrix P, noise variance matrix S and R:

[0061]

[0062] 2) Calculate 2n+1 sigma sampling points:

[0063]

[0064] Where κ = α 2 (L+β)-L is a proportional parameter, where 2n+1 is the total number of sigma sampling points in the current time window, i represents the i-th sigma sampling point in the 2n-th sigma sampling point, and ψ i is the sigma sampling point, Represents a matrix square root The i-th column of .

[0065] 3) Prior estimation:

[0066]

[0067] Among them, W i m To find the expected weight, W i c is the weight when finding the variance, defined as:

[0068]

[0069] in, and Can be set to and

[0070] 4) Posterior estimation:

[0071]

[0072] 5) Kalman gain:

[0073]

[0074] 6) Update the residual covariance matrix:

[0075]

[0076] 7) Update of noise covariance matrix:

[0077]

[0078] Among them, M is the fixed window length, u(k) is the target residual sequence, specifically:

[0079]

[0080] Where γ(k) represents the difference between the first measured voltage and the predicted voltage at time k, As shown in formula 12.

[0081] Since the noise characteristics are easily disturbed by the measuring equipment and the external environment, if the window length is not adjusted in real time, the accuracy of the state estimation may be reduced. Therefore, in some possible implementations, a target residual sequence corresponding to each unscented Kalman filter can be generated, and based on each target residual sequence, the window length of each unscented Kalman filter can be adjusted.

[0082] Then, we can get formula (19):

[0083]

[0084] Among them, Q(k) is the expectation of the noise at time k, L(k) is the filter parameter matrix, T represents the adaptive window width, and F is defined as:

[0085]

[0086] Among them, u(i|k-1) and u(i|k) represent the residual mean at time k-1 and the target residual sequence at time k, respectively.

[0087] Therefore, the window width can be dynamically adjusted by equation (19). If the value of equation (17) changes less, F will increase to reduce the adjustment frequency of the noise matrix. Conversely, F will decrease to make the noise matrix close to the real characteristics.

[0088] Step 103 , merging the first predicted voltage with the second predicted voltage, and merging the third predicted voltage with the fourth predicted voltage, to obtain a first target voltage and a second target voltage at the (n+1)th moment.

[0089] In the disclosed embodiment, corresponding weights may be set in advance for the first predicted voltage and the second predicted voltage, and then the first predicted voltage and the second predicted voltage may be merged based on the corresponding weights to obtain the first target voltage.

[0090] Corresponding weights are set in advance for the third predicted voltage and the fourth predicted voltage, and then the third predicted voltage and the fourth predicted voltage are merged based on the corresponding weights to obtain the second target voltage.

[0091] Step 104: Obtain a second measured voltage of the battery to be tested at the (n+1)th moment.

[0092] The second measured voltage may be a voltage measured at the positive and negative electrodes of the battery to be tested at the n+1th moment.

[0093] Step 105 , determining whether the battery to be detected has a fault according to the first target voltage, the second target voltage and the second measured voltage.

[0094] Optionally, a fifth difference between the first target voltage and the second measured voltage and a sixth difference between the second target voltage and the second measured voltage may be determined first, and then whether the battery to be detected fails may be determined based on the fifth difference and the sixth difference.

[0095] It can be understood that the first target voltage is the voltage predicted by the normal model, and if the battery is not faulty, the second predicted voltage should be closer to the first target voltage. Similarly, since the first target voltage is the voltage predicted by the fault model, if the battery is faulty, the second predicted voltage should be closer to the second target voltage. Therefore, when the fifth difference is less than the sixth difference, it is determined that the battery to be detected is not faulty, and when the fifth difference is greater than or equal to the sixth difference, it is determined that the battery to be detected is faulty.

[0096] In some embodiments, the fifth difference and the sixth difference can also be analyzed based on the hypothesis testing method to determine the fifth weight corresponding to the first target voltage and the sixth weight corresponding to the second target voltage. Then, when the fifth weight is 1 and the sixth weight is 0, it is determined that the battery to be detected has not failed; when the fifth weight is 0 and the sixth weight is 1, it is determined that the battery to be detected has failed.

[0097] In the disclosed embodiment, the relationship between the first target voltage predicted by the normal model and the second target voltage predicted by the fault model and the second measured voltage can be compared, thereby eliminating the influence of the model error and noise on the fault detection result, thereby making the determined fault detection result more accurate.

[0098] In the disclosed embodiment, the first measured voltage and measured current of the battery to be detected at the nth moment are first obtained, and then the first measured voltage and measured current are input into the first model and the second model to obtain the first predicted voltage and the second predicted voltage output by the first model, and the third predicted voltage and the fourth predicted voltage output by the second model, and then the first predicted voltage is merged with the second predicted voltage, and the third predicted voltage is merged with the fourth predicted voltage to obtain the first target voltage and the second target voltage at the n+1th moment, and the second measured voltage of the battery to be detected at the n+1th moment is obtained, and finally, according to the first target voltage, the second target voltage and the second measured voltage, it is determined whether the battery to be detected has a fault. Thus, the first target voltage is predicted based on the first model trained by the sample data of the normal battery, and the second target voltage is predicted based on the second model trained by the sample data of the faulty battery, and then according to the first target voltage, the second target voltage and the second measured voltage, it is determined whether the battery has a fault, thereby eliminating the influence of the model error and noise, and improving the accuracy of the battery fault detection.

[0099] Figure 2 FIG. 1 is a flow chart of a battery fault detection method provided by an embodiment of the present disclosure, such as Figure 2 As shown, the battery fault detection method may include the following steps:

[0100] Step 201, obtaining a first measured voltage and a measured current of a battery to be detected.

[0101] Step 202: input the first measured voltage and the measured current into the first model and the second model to obtain the first predicted voltage and the second predicted voltage output by the first model, and the third predicted voltage and the fourth predicted voltage output by the second model.

[0102] Step 203: Determine a first weight corresponding to the first predicted voltage and a second weight corresponding to the second predicted voltage based on a first difference between the first predicted voltage and the first measured voltage and a second difference between the second predicted voltage and the first measured voltage.

[0103] In some possible implementations, the first difference and the second difference may be processed based on Bayes' theorem to obtain the first weight and the second weight, so that the first weight corresponding to the first predicted voltage and the second weight corresponding to the second predicted voltage can be accurately determined.

[0104] Among them, based on Bayesian theorem, the specific implementation form of determining weights is as follows:

[0105] The rules for fusion are defined as:

[0106]

[0107] Among them, U f(k) is the first target voltage after fusion at time k, U 1 (k) is the first predicted voltage at time k, U 2 (k) is the second predicted voltage at time k, ω 1 is the first weight, ω 2 is the second weight.

[0108] A probabilistic method based on residual features, namely Bayes' theorem, is applied to calculate the weights.

[0109] The residual is defined as follows:

[0110]

[0111] Among them, U L (k) is the first measured voltage at time k, is the predicted voltage at time k.

[0112] If the value of γ(k) is small, the predicted voltage has high reliability. The probability density function can be obtained by normalizing equation (21):

[0113]

[0114] Among them, H j represents the parameters of the j-th unscented Kalman filter, Q j represents the corresponding noise variance.

[0115] The weights are calculated as follows:

[0116]

[0117] Among them, P(H j ) is calculated by the following formula:

[0118]

[0119] Combining equations (23) and (24), the corresponding weights can be redefined as:

[0120]

[0121] Step 204 , determining a third weight corresponding to the third predicted voltage and a fourth weight corresponding to the fourth predicted voltage based on a third difference between the third predicted voltage and the first measured voltage and a fourth difference between the fourth predicted voltage and the first measured voltage.

[0122] In some possible implementations, based on Bayes' theorem, the third difference and the fourth difference are processed to obtain the third weight and the fourth weight. For specific implementations, reference may be made to the detailed descriptions in other embodiments of the present disclosure, which will not be described in detail here.

[0123] Step 205 , based on the first weight and the second weight, the first predicted voltage and the second predicted voltage are merged to obtain a first target voltage.

[0124] In the embodiment of the present disclosure, after the first weight and the second weight are determined, the first predicted voltage and the second predicted voltage may be merged to obtain the first target voltage.

[0125] Step 206 , based on the third weight and the fourth weight, merge the third predicted voltage and the fourth predicted voltage to obtain a second target voltage.

[0126] In the embodiment of the present disclosure, after the third weight and the fourth weight are determined, the first predicted voltage and the second predicted voltage may be merged to obtain the second target voltage.

[0127] Step 207, obtaining a second measured voltage of the battery to be tested at the (n+1)th moment.

[0128] Step 208 , determining whether the battery to be tested has a fault according to the first target voltage, the second target voltage and the second measured voltage.

[0129] In the disclosed embodiment, based on Bayes' theorem, the first weight corresponding to the first predicted voltage and the second weight corresponding to the second predicted voltage, the third weight corresponding to the third predicted voltage and the fourth weight corresponding to the fourth predicted voltage can be accurately determined, and then based on the first weight and the second weight, the first predicted voltage and the second predicted voltage are fused to obtain the first target voltage; based on the third weight and the fourth weight, the third predicted voltage and the fourth predicted voltage are fused to obtain the second target voltage, and finally based on the first target voltage, the second target voltage and the second measured voltage of the battery to be detected at the n+1th moment, it is determined whether the battery to be detected has a fault. In this way, the first target voltage and the second target voltage can be further accurately determined, and the battery fault detection can be further accurately performed.

[0130] Figure 3 FIG. 1 is a flow chart of a battery fault detection method provided by an embodiment of the present disclosure, such as Figure 3As shown, the battery fault detection method may include the following steps:

[0131] Step 301, obtaining a first measured voltage and a first measured current of a battery to be tested at the nth moment.

[0132] Step 302, input the first measured voltage and the measured current into the first model and the second model to obtain the first predicted voltage and the second predicted voltage output by the first model at the n+1th moment, and the third predicted voltage and the fourth predicted voltage output by the second model at the n+1th moment.

[0133] Step 303: Obtain a first predicted remaining power SOC output by a first unscented Kalman filter and a second predicted SOC output by a second unscented Kalman filter in the first model.

[0134] In the disclosed embodiment, the first trace Kalman filter can output the first predicted SOC while outputting the first predicted voltage. The second trace Kalman filter can output the second predicted SOC while outputting the second predicted voltage. Thus, while performing fault detection on the battery to be detected, the state of charge of the battery to be detected can also be determined.

[0135] Step 304: Based on the first weight and the second weight, the first predicted SOC and the second predicted SOC are merged to obtain a target SOC corresponding to the battery to be tested.

[0136] In the disclosed embodiment, after obtaining the first predicted remaining power (State of Charge, SOC) output by the first unscented Kalman filter in the first model and the second predicted SOC output by the second unscented Kalman filter, the first predicted SOC and the second predicted SOC can be fused based on the first weight and the second weight to obtain the target SOC corresponding to the battery to be detected. Thus, while performing fault detection on the battery to be detected, the state of charge of the battery to be detected can also be accurately determined.

[0137] In some possible implementations, when using the unscented Kalman filter to estimate and predict the SOC, the target SOC determined at time k may be used as the initial SOC at time k+1.

[0138] Step 305 , merging the first predicted voltage with the second predicted voltage, and merging the third predicted voltage with the fourth predicted voltage, to obtain a first target voltage and a second target voltage at the (n+1)th moment.

[0139] Step 306: Obtain a second measured voltage of the battery to be tested at the (n+1)th moment.

[0140] Step 307 , determining whether the battery to be detected has a fault according to the first target voltage, the second target voltage and the second measured voltage.

[0141] Figure 3A A schematic diagram of a battery state of charge estimation and fault detection structure according to an embodiment of the present disclosure is shown in FIG. Figure 3A As shown, the first measured voltage (U L ) and the measured current (I L ) inputting the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the first model, and the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the second model;

[0142] and inputting the first output corresponding to the first-order Thevenin equivalent circuit model in the first model into the first unscented Kalman filter to obtain a first predicted SOC (SOC1) and a first predicted voltage (u1);

[0143] Input the second output corresponding to the second-order Thevenin equivalent circuit model in the first model into the second unscented Kalman filter to obtain a second predicted SOC (SOC2) and a second predicted voltage (u2);

[0144] Input the third output corresponding to the first-order Thevenin equivalent circuit model in the first model into the third unscented Kalman filter to obtain a third predicted voltage (u3);

[0145] The fourth output corresponding to the second-order Thevenin equivalent circuit model in the first model is input into the fourth unscented Kalman filter to obtain a fourth predicted voltage (u4).

[0146] Inputting the first predicted voltage, the second predicted voltage, the third predicted voltage and the fourth predicted voltage into a fault detection module to obtain a fault detection result;

[0147] The first predicted SOC and the second predicted SOC are input into the SOC estimation module to obtain the target SOC.

[0148] In the disclosed embodiment, the first measured voltage and measured current of the battery to be detected are first obtained, and then the first measured voltage and measured current are input into the first model and the second model to obtain the first predicted voltage and the first predicted SOC, the second predicted voltage and the second predicted SOC output by the first model, and the third predicted voltage and the fourth predicted voltage output by the second model, and then the first predicted voltage is merged with the second predicted voltage, and the third predicted voltage is merged with the fourth predicted voltage to obtain the first target voltage and the second target voltage, and the first predicted SOC and the second predicted SOC are merged to obtain the target SOC corresponding to the battery to be detected, and finally, according to the first target voltage and the second target voltage, and the second measured voltage of the battery to be detected at the n+1th moment, it is determined whether the battery to be detected has a fault. In this way, not only can the battery fault be accurately detected, but also the battery state of charge can be accurately determined.

[0149] In order to implement the above embodiments, the present disclosure also provides a battery fault detection device.

[0150] Figure 4 A schematic diagram of the structure of a battery fault detection device provided in an embodiment of the present disclosure.

[0151] like Figure 4 As shown, the battery fault detection device 400 may include:

[0152] A first acquisition module 401 is used to acquire a first measured voltage and a first measured current of a battery to be detected at time n;

[0153] A second acquisition module 402 is used to input the first measured voltage and the measured current into the first model and the second model to obtain the first predicted voltage and the second predicted voltage at the n+1th moment output by the first model, and the third predicted voltage and the fourth predicted voltage at the n+1th moment output by the second model, wherein the first model is generated based on the sample data of the normal battery and the second model is generated based on the sample data of the faulty battery;

[0154] A third acquisition module 403 is used to merge the first predicted voltage with the second predicted voltage, and merge the third predicted voltage with the fourth predicted voltage, so as to obtain the first target voltage and the second target voltage at the (n+1)th moment;

[0155] A fourth acquisition module 404 is used to acquire a second measured voltage of the battery to be detected at the n+1th time;

[0156] The determination module 405 is used to determine whether the battery to be detected has a fault according to the first target voltage, the second target voltage and the second measured voltage.

[0157] In some possible implementations, the third acquisition module 403 is specifically configured to:

[0158] Determine a first weight corresponding to the first predicted voltage and a second weight corresponding to the second predicted voltage based on a first difference between the first predicted voltage and the first measured voltage and a second difference between the second predicted voltage and the first measured voltage;

[0159] Determining a third weight corresponding to the third predicted voltage and a fourth weight corresponding to the fourth predicted voltage based on a third difference between the third predicted voltage and the first measured voltage and a fourth difference between the fourth predicted voltage and the first measured voltage;

[0160] Based on the first weight and the second weight, the first predicted voltage and the second predicted voltage are merged to obtain a first target voltage;

[0161] Based on the third weight and the fourth weight, the third predicted voltage and the fourth predicted voltage are merged to obtain the second target voltage.

[0162] In some possible implementations, the third acquisition module 403 is specifically configured to:

[0163] Based on Bayesian theorem, the first difference and the second difference are processed to obtain a first weight and a second weight;

[0164] Based on Bayes' theorem, the third difference and the fourth difference are processed to obtain a third weight and a fourth weight.

[0165] In some possible implementations, the determination module 405 is specifically configured to:

[0166] determining a fifth difference between the first target voltage and the second measured voltage, and a sixth difference between the second target voltage and the second measured voltage;

[0167] It is determined whether the battery to be detected fails according to the fifth difference and the sixth difference.

[0168] In some possible implementations, the determination module 405 is specifically configured to:

[0169] Based on a hypothesis testing method, the first difference sequence and the second difference sequence are analyzed to determine a fifth weight corresponding to the first target voltage and a sixth weight corresponding to the second target voltage;

[0170] When the fifth weight is 1 and the sixth weight is 0, it is determined that the battery to be detected has not failed; or, when the fifth weight is 0 and the sixth weight is 1, it is determined that the battery to be detected has failed.

[0171] In some possible implementations, the determination module 405 is specifically configured to:

[0172] When the fifth difference is less than the sixth difference, it is determined that the battery to be tested has not failed; or,

[0173] When the fifth difference is greater than or equal to the sixth difference, it is determined that the battery to be detected fails.

[0174] In some possible implementations, the second acquisition module 402 is specifically configured to:

[0175] Inputting the first measured voltage and the measured current into the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the first model to obtain a first output corresponding to the first-order Thevenin equivalent circuit model in the first model and a second output corresponding to the second-order Thevenin equivalent circuit model;

[0176] Inputting the first output and the second output into a first unscented Kalman filter and a second unscented Kalman filter in the first model respectively, so as to obtain a first predicted voltage output by the first unscented Kalman filter and a second predicted voltage output by the second unscented Kalman filter;

[0177] Input the first measured voltage and the measured current into the first-order Thevenin equivalent circuit model and the second-order Thevenin equivalent circuit model in the second model to obtain a third output corresponding to the first-order Thevenin equivalent circuit model and a fourth output corresponding to the second-order Thevenin equivalent circuit model in the second model;

[0178] The third output and the fourth output are respectively input into the third unscented Kalman filter and the fourth unscented Kalman filter in the second model to obtain a third predicted voltage output by the third unscented Kalman filter and a fourth predicted voltage output by the fourth unscented Kalman filter.

[0179] In some possible implementations, a fifth acquisition module is further included, which is specifically configured to:

[0180] Obtain a first predicted remaining power SOC output by a first unscented Kalman filter and a second predicted SOC output by a second unscented Kalman filter in the first model;

[0181] Based on the first weight and the second weight, the first predicted SOC and the second predicted SOC are fused to obtain a target SOC corresponding to the battery to be tested.

[0182] In some possible implementations, an adjustment module is further included, which is specifically used to:

[0183] Determine the target residual sequence corresponding to each unscented Kalman filter;

[0184] Based on each target residual sequence, the window length of each unscented Kalman filter is adjusted.

[0185] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0186] The fault detection device of the battery of the disclosed embodiment first obtains the first measured voltage and measured current of the battery to be detected at the nth moment, and then inputs the first measured voltage and measured current into the first model and the second model to obtain the first predicted voltage and the second predicted voltage output by the first model, and the third predicted voltage and the fourth predicted voltage output by the second model, and then fuses the first predicted voltage with the second predicted voltage, and fuses the third predicted voltage with the fourth predicted voltage to obtain the first target voltage and the second target voltage at the n+1th moment, and obtains the second measured voltage of the battery to be detected at the n+1th moment, and finally determines whether the battery to be detected has a fault according to the first target voltage, the second target voltage and the second measured voltage. Thus, the first target voltage is predicted based on the first model trained by the sample data of the normal battery, and the second target voltage is predicted based on the second model trained by the sample data of the faulty battery, and then determines whether the battery has a fault according to the first target voltage, the second target voltage and the second measured voltage, thereby eliminating the influence of the model error and noise, and improving the accuracy of the fault detection of the battery.

[0187] In order to implement the above embodiments, the present disclosure further proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the battery fault detection method proposed in the above embodiments of the present disclosure is implemented.

[0188] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the battery fault detection method proposed in the above embodiments of the present disclosure is implemented.

[0189] Figure 5 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 5 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0190] like Figure 5 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0191] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0192] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0193] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disk read only memory (hereinafter referred to as: CD-ROM), a digital versatile disk read only memory (hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0194] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0195] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0196] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.

[0197] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0198] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0199] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0200] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0201] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0202] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0203] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0204] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A battery fault detection method, characterized in that: include: Obtaining a first measured voltage and a first measured current of the battery to be tested at time n; Input the first measured voltage and the measured current into a first model and a second model to obtain a first predicted voltage and a second predicted voltage at the n+1th moment output by the first model, and a third predicted voltage and a fourth predicted voltage at the n+1th moment output by the second model, wherein the first model is generated based on sample data training of a normal battery, and the second model is generated based on sample data training of a faulty battery; Merging the first predicted voltage with the second predicted voltage, and merging the third predicted voltage with the fourth predicted voltage, to obtain a first target voltage and a second target voltage at the (n+1)th moment; Obtaining a second measured voltage of the battery to be detected at the n+1th time; Whether the battery to be detected fails is determined according to the first target voltage, the second target voltage, and the second measured voltage.

2. The method according to claim 1, characterized in that The fusing the first predicted voltage with the second predicted voltage, and fusing the third predicted voltage with the fourth predicted voltage to obtain the first target voltage and the second target voltage at the (n+1)th moment, includes: Determine a first weight corresponding to the first predicted voltage and a second weight corresponding to the second predicted voltage based on a first difference between the first predicted voltage and the first measured voltage and a second difference between the second predicted voltage and the first measured voltage; Determining a third weight corresponding to the third predicted voltage and a fourth weight corresponding to the fourth predicted voltage based on a third difference between the third predicted voltage and the first measured voltage and a fourth difference between the fourth predicted voltage and the first measured voltage; Based on the first weight and the second weight, the first predicted voltage and the second predicted voltage are merged to obtain the first target voltage; Based on the third weight and the fourth weight, the third predicted voltage and the fourth predicted voltage are merged to obtain the second target voltage.

3. The method according to claim 1, characterized in that: Also includes: Based on Bayes' theorem, the first difference and the second difference are processed to obtain the first weight and the second weight; Based on the Bayesian theorem, the third difference and the fourth difference are processed to obtain the third weight and the fourth weight.

4. The method according to claim 1, characterized in that: The determining whether the battery to be detected fails according to the first target voltage, the second target voltage and the second measured voltage includes: determining a fifth difference between the first target voltage and the second measured voltage, and a sixth difference between the second target voltage and the second measured voltage; It is determined whether the battery to be detected fails according to the fifth difference and the sixth difference.

5. The method according to claim 4, characterized in that The step of determining whether the battery to be detected fails according to the fifth difference and the sixth difference includes: Based on a hypothesis testing method, analyzing the first difference sequence and the second difference sequence to determine a fifth weight corresponding to the first target voltage and a sixth weight corresponding to the second target voltage; When the fifth weight is 1 and the sixth weight is 0, it is determined that the battery to be detected has not failed; or, when the fifth weight is 0 and the sixth weight is 1, it is determined that the battery to be detected has failed.

6. The method according to claim 4, characterized in that The step of determining whether the battery to be detected fails according to the fifth difference and the sixth difference includes: When the fifth difference is less than the sixth difference, it is determined that the battery to be detected has no fault; or, When the fifth difference is greater than or equal to the sixth difference, it is determined that the battery to be detected fails.

7. The method according to claim 1, characterized in that The step of inputting the first measured voltage and the measured current into the first model and the second model to obtain the first predicted voltage and the second predicted voltage at the n+1th moment output by the first model, and the third predicted voltage and the fourth predicted voltage at the n+1th moment output by the second model comprises: Inputting the first measurement voltage and the measurement current into a first-order Thevenin equivalent circuit model and a second-order Thevenin equivalent circuit model in the first model to obtain a first output corresponding to the first-order Thevenin equivalent circuit model and a second output corresponding to the second-order Thevenin equivalent circuit model in the first model; Inputting the first output and the second output into a first unscented Kalman filter and a second unscented Kalman filter in the first model respectively, so as to obtain the first predicted voltage output by the first unscented Kalman filter and the second predicted voltage output by the second unscented Kalman filter; Inputting the first measurement voltage and the measurement current into a first-order Thevenin equivalent circuit model and a second-order Thevenin equivalent circuit model in the second model to obtain a third output corresponding to the first-order Thevenin equivalent circuit model and a fourth output corresponding to the second-order Thevenin equivalent circuit model in the second model; The third output and the fourth output are respectively input into the third unscented Kalman filter and the fourth unscented Kalman filter in the second model to obtain the third predicted voltage output by the third unscented Kalman filter and the fourth predicted voltage output by the fourth unscented Kalman filter.

8. The method according to claim 7, characterized in that Also includes: Obtaining a first predicted remaining power SOC output by the first unscented Kalman filter and a second predicted SOC output by the second unscented Kalman filter in the first model; Based on the first weight and the second weight, the first predicted SOC and the second predicted SOC are fused to obtain a target SOC corresponding to the battery to be tested.

9. The method according to claim 7, characterized in that: Also includes: Determine the target residual sequence corresponding to each unscented Kalman filter; Based on each of the target residual sequences, the window length of each unscented Kalman filter is adjusted.

10. A battery fault detection device, characterized in that: include: A first acquisition module, used to acquire a first measured voltage and a first measured current of the battery to be detected at time n; A second acquisition module is used to input the first measured voltage and the measured current into a first model and a second model to obtain a first predicted voltage and a second predicted voltage at the n+1th moment output by the first model, and a third predicted voltage and a fourth predicted voltage at the n+1th moment output by the second model, wherein the first model is generated based on sample data training of a normal battery, and the second model is generated based on sample data training of a faulty battery; A third acquisition module, configured to merge the first predicted voltage with the second predicted voltage, and merge the third predicted voltage with the fourth predicted voltage, so as to acquire a first target voltage and a second target voltage at the (n+1)th moment; A fourth acquisition module, used to acquire a second measured voltage of the battery to be detected at the n+1th time; A determination module is used to determine whether the battery to be detected has a fault according to the first target voltage, the second target voltage and the second measured voltage.