Battery abnormality detection method, device, electronic device and storage medium
Through the methods of adaptive transfer learning and deviation threshold confirmation, the problems of resource waste and insufficient monitoring in the existing battery anomaly detection technology are solved, and efficient detection of multiple potential abnormal behaviors of the battery is achieved, improving safety and resource utilization. efficiency.
Patent Information
- Application Number
- CN202011087127.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-10-12
AI Technical Summary
Existing battery anomaly detection technology requires setting up different detection models for various abnormal behaviors, resulting in a waste of manpower and computing resources, and being unable to effectively monitor multiple potential behaviors of the battery, posing risks to the safety of users' lives and property.
By obtaining the target behavior data of the battery to be tested, and using the pre-trained historical behavior data of compliant batteries to perform adaptive transfer learning, a second detection model is obtained, its deviation is calculated, and whether the battery is an abnormal battery is confirmed based on the deviation threshold, reducing investment in human and computing resources.
It achieves effective detection of multiple potential abnormal behaviors of batteries, improves the sensitivity and accuracy of the detection model, and significantly reduces the manpower and computing resources required for battery detection model training.
Smart Images

Figure CN112444748B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of battery detection, and in particular, relates to a battery abnormality detection method, device, electronic device and storage medium. Background Art
[0002] With the development of science and social progress, many types of new energy vehicles have appeared on the market, among which electric vehicles are widely optimistic. However, battery technology is one of the main bottlenecks restricting the development of electric vehicles. Accidents caused by abnormal battery behavior also occur frequently. Therefore, if the abnormal behavior of power batteries is not detected in time, it will seriously threaten the safety of users' lives and property.
[0003] In the prior art, multiple detection models such as equivalent circuit models, electrochemical models and empirical models are usually established to obtain the normal fluctuation range of specific behavioral parameters of each single cell in the battery during the actual discharge or charging process, so as to detect whether the battery behavior is abnormal according to the threshold set manually based on experience and the corresponding battery characteristic curve.
[0004] This abnormal battery detection method requires setting up different detection models for various abnormal behaviors of batteries. Due to the limited abnormal behavior samples, it not only consumes a lot of human and computing resources, but also fails to effectively monitor the various potential behaviors of batteries. Summary of the invention
[0005] In view of this, the first aspect of the present application provides a battery abnormality detection method, the method comprising:
[0006] Obtain target behavior data of the battery to be tested;
[0007] Using the target behavior data to perform adaptive transfer learning on a first detection model to obtain a second detection model, wherein the first detection model is pre-trained based on historical behavior data of compliant batteries;
[0008] Obtaining a second deviation of the second detection model;
[0009] When the second deviation is greater than a deviation threshold, the battery to be tested is confirmed to be an abnormal battery, and the deviation threshold is obtained in advance according to the first deviation of the first detection model.
[0010] According to a second aspect of the present application, a battery abnormality detection device is provided, the device comprising:
[0011] An acquisition module, used for acquiring target behavior data of the battery to be tested;
[0012] A training module, configured to use the target behavior data to perform adaptive transfer learning on a first detection model to obtain a second detection model, wherein the first detection model is pre-trained based on historical behavior data of compliant batteries;
[0013] A processing module, used for obtaining a second deviation of the second detection model;
[0014] A confirmation module is used to confirm that the battery to be tested is an abnormal battery when the second deviation is greater than a deviation threshold, and the deviation threshold is obtained in advance according to the first deviation of the first detection model.
[0015] According to a third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the battery abnormality detection method described in any one of the first aspects is implemented.
[0016] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the battery abnormality detection method described in any one of the first aspects is implemented.
[0017] With respect to the prior art, this application has the following advantages:
[0018] The present application provides a battery anomaly detection method, device, electronic device and storage medium. By setting a threshold value according to the deviation of the detection model representing a compliant battery and a battery to be tested to perform battery anomaly detection, a variety of potential abnormal behaviors of the battery to be tested can be effectively detected, and the model can be updated through adaptive transfer learning, which greatly reduces the manpower and computing resources required for battery detection model training.
[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0021] Figure 1 is a flowchart of a battery abnormality detection method provided by an embodiment of the present application;
[0022] Figure 2 is a flowchart of another method for detecting abnormality of a battery provided by an embodiment of the present application;
[0023] Figure 3 is a logic flow chart of a battery abnormality detection method provided in an embodiment of the present application;
[0024] Figure 4 is a flowchart of a method for obtaining a deviation threshold value provided in an embodiment of the present application;
[0025] Figure 5 The embodiment of the present application provides a model network architecture of a CNN-LSTM detection model;
[0026] Figure 6 is a structural block diagram of a battery abnormality detection device provided in an embodiment of the present application;
[0027] Figure 7 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0029] Figure 1 : is a flowchart of a method for detecting battery abnormality provided by an embodiment of the present application, the method comprising:
[0030] Step 101, obtaining target behavior data of a battery to be tested.
[0031] In the embodiment of the present application, the battery to be tested may refer to the power battery in the electric vehicle. As the electric vehicle is used, various abnormal behaviors may occur in its power battery. In order to avoid threatening the life and property safety of the user, it is necessary to detect and discover the abnormal behavior of the power battery in a timely manner. The target behavior data refers to various behavior parameters reported by the battery system in the electric vehicle, such as current, voltage, temperature, insulation resistance, etc.
[0032] Step 102, using the target behavior data to perform adaptive transfer learning on the first detection model to obtain a second detection model, wherein the first detection model is pre-trained based on historical behavior data of compliant batteries.
[0033] In an embodiment of the present application, adaptive transfer learning is a machine learning method that can transfer the results learned from the source domain model to another domain, which can significantly improve the efficiency of model training. Specifically, it can include instance migration, feature migration, model parameter migration, and adaptive transfer learning methods of knowledge migration. The embodiment of the present application mainly adopts the method of model parameter migration. A compliant battery refers to a battery that does not exhibit abnormal behavior. The historical behavior data of the battery can be regarded as each behavior parameter therein meeting the requirements for safe operation. The first detection model obtained by offline training using the historical behavior data of compliant batteries can reflect the behavioral characteristics of compliant batteries.
[0034] Specifically, the embodiment of the present application specifically adopts the method of model parameter migration, firstly, the weight parameter files of each level of the pre-trained first detection model are stored; then, when the detection model is updated, the parameters of the detection model to be trained are adjusted based on the weight parameter file of the first detection model, the first detection model is restored, and finally, the first detection model is trained online based on the target behavior data of the battery to be tested, so as to quickly obtain the second detection model that can reflect the behavior characteristics of the battery to be tested, and the online adaptive transfer learning is performed. For example, if the update cycle is 1 month, the second detection model of last month is formed based on the online data feedback of the month before last, and so on, so the update of the second model this month should use the behavior data of last month. Deviation is an important parameter that reflects the performance of the model. The higher the deviation, the worse the performance of the model, and vice versa.
[0035] Step 103: Obtain a second deviation of the second detection model.
[0036] In the embodiment of the present application, the mean absolute error of the second deviation to the second detection model prediction value can be specifically calculated by the following formula (1):
[0037]
[0038] Wherein, m>0, m≥j>0, m and j are positive integers;
[0039] Deviation indicates the deviation, y j represents the jth actual behavior data, represents the jth predicted behavior data, and m represents the number of predicted behavior data and actual behavior data.
[0040] In practical applications, the behavior data of the battery to be tested within a specific time period can be predicted by the second detection model to obtain m predicted behavior data, and then the actual behavior data of the battery to be tested within the specific time period is recorded to obtain m actual behavior data corresponding to the m predicted behavior data, so as to calculate the second deviation of the second detection model by the above formula (1).
[0041] Step 104: when the second deviation is greater than a deviation threshold, confirm that the battery to be tested is an abnormal battery, wherein the deviation threshold is obtained in advance based on the first deviation of the first detection model.
[0042] In the embodiment of the present application, the process of calculating the first deviation according to the first detection model is similar to the process of calculating the second deviation, which will not be repeated here. The deviation threshold is determined based on the first deviation of the first detection model, and the first deviation can be appropriately enlarged or reduced as the deviation threshold according to actual needs. Compared with the prior art where the threshold is set based on human experience, the embodiment of the present application can effectively reduce the human input required for threshold setting.
[0043] By determining whether the second deviation of the second detection model is greater than the deviation threshold, abnormal batteries with potential risks can be effectively discovered, rather than just targeting specific abnormal behavior. It is understandable that due to the limited abnormal behavior samples in the prior art, the trained detection model cannot take into account various abnormal behavior manifestations, and cannot identify abnormal batteries in a timely manner, thereby posing a risk to the user's life and property safety. The solution of the embodiment of the present application is not limited to targeting a certain abnormal behavior, but compares the deviations of the first detection model that can represent the behavioral characteristics of a compliant battery and the second detection model that can represent the behavioral characteristics of the battery to be tested, so that abnormal batteries with abnormal behavior can be discovered in a timely manner.
[0044] The present application provides a battery anomaly detection method, which performs battery anomaly detection by setting a threshold based on the deviation of the detection model representing a compliant battery and a battery to be tested. This method can effectively detect a variety of potential abnormal behaviors of the battery to be tested, and update the model through adaptive transfer learning, thereby significantly reducing the manpower and computing resources required for battery detection model training.
[0045] Figure 2 : is a flowchart of another method for detecting battery abnormality provided by an embodiment of the present application, the method comprising:
[0046] Step 201, obtaining current behavior data of a battery to be tested in a preset time period.
[0047] In an embodiment of the present application, the preset time period refers to the period for the first detection model to perform model update, which can be specifically determined based on the aging rate of the battery to be tested. For example, if the aging rate of the battery to be tested is 1% / month, the preset time period can be one month. Of course, this is only an exemplary description, and the specific preset time period can be determined based on actual needs, which is not limited here.
[0048] The embodiment of the present application acquires the behavior data of the battery to be tested in a preset time period to perform model update, so that the detection model can be updated in a timely manner, thereby improving the sensitivity of battery abnormality detection.
[0049] Step 202: Slice the current behavior data according to a preset time step to obtain target behavior data.
[0050] In an embodiment of the present application, current behavior data refers to the behavior data of the battery to be tested in a preset time period before the current one, and the current behavior data can be arranged in chronological order. The preset time step is the time step for the data required by the detection model, which can be determined according to actual needs. In order to make the obtained current behavior data suitable for training needs, it is necessary to slice the current behavior data according to the preset time step to obtain target behavior data that can reflect time. For example, when there are W current behavior data and the preset time step is S, the number of target behavior data obtained can be W-S+1, where W and S are positive integers.
[0051] Step 203, using the target behavior data to update the weight parameters of the target layer of the first detection model to obtain a second detection model, wherein the first detection model is pre-trained based on the historical behavior data of compliant batteries.
[0052] In the embodiment of the present application, the target level refers to the level of the first detection model that needs to adjust the weight parameters during the model update process. In the process of using the adaptive transfer learning technology and using the target behavior data to update the first detection model, the weight parameters in all levels of the first detection model may not be adjusted, but the weight parameters of some levels, that is, the target level, are updated according to the target behavior data. Compared with the prior art that adjusts the weight parameters of all levels of the model when updating the model, the time required for model update can be significantly reduced, the efficiency of model update can be improved, and the computing resource cost required for model update can also be reduced. In practical applications, if the battery of an electric vehicle is tested at a high frequency, the detection model needs to be updated frequently, and the time and computing resource cost required will increase exponentially, resulting in great data processing pressure. However, this embodiment can significantly reduce the time and computing resource cost of a single model update, reducing the data processing pressure for updating the detection model.
[0053] Step 204: Obtain a second deviation of the second detection model.
[0054] This step can refer to the detailed description of step 103 and will not be repeated here.
[0055] Step 205: When the second deviation is greater than a deviation threshold, confirm that the battery to be tested is an abnormal battery. The deviation threshold is obtained in advance based on the first deviation of the first detection model.
[0056] This step can refer to the detailed description of step 104 and will not be repeated here.
[0057] Step 206: Analyze the target behavior data of the abnormal battery to obtain the abnormal type of the battery to be tested.
[0058] The abnormality type includes at least one of a point abnormality, a time sequence abnormality and a collective abnormality.
[0059] In an embodiment of the present application, the abnormal type of the abnormal battery can be obtained by further analyzing the target behavior data of the abnormal battery. The behavior data of the abnormal battery can be compared with the behavior data of a compliant battery to determine it. It can also be determined by detecting the behavior data of the abnormal battery using a conventional empirical model in the prior art for different abnormal behavior manifestations. The specific determination can be based on actual needs and is not limited here.
[0060] Since the target behavior data in the embodiment of the present application includes not only single-point data of the battery to be tested but also collective data, and is sliced according to a preset time step, the point anomaly, collective anomaly and timing anomaly of the battery to be tested can be effectively detected. Which of the point anomaly, timing anomaly and collective anomaly exists in the specific abnormal battery can be determined by detecting the target behavior data of the abnormal battery based on empirical models for point anomalies, timing anomalies and collective anomalies.
[0061] Specifically, refer to Figure 3 , the logic flow chart of the battery anomaly detection method provided by the embodiment of the present application, in the process of offline pre-training, the historical behavior data of the compliant battery is pre-processed and then the model training is performed to obtain the first detection model, and the model weight parameters of the first detection model are stored. Then, in the process of online model updating, the second detection model is adjusted by the model weight parameters obtained by offline pre-training, and the model training is performed using the pre-processed current behavior data, that is, the target behavior data, and the trained second detection model is used to perform model prediction to detect battery anomalies.
[0062] Optionally, the step 203 includes: using the target behavior data to update the weight parameters of the fully connected layer of the first detection model to obtain a second detection model.
[0063] In the embodiment of the present application, the fully connected layer is used to establish a mapping relationship between the features learned by model training and the input data. Since the behavior of the battery is mainly related to factors such as battery performance aging, and the fully connected layer is mapping the characteristics of the behavior with the behavior data under the current performance of the battery, the weight parameters of the fully connected layer in the first detection model are updated, while the weight parameters in other layers remain unchanged to obtain the second detection model, which can significantly reduce the time cost and computing resources required for model updating.
[0064] The present application uses adaptive transfer learning to update only the weight parameters of the fully connected layer of the first detection model during the model update process, which significantly reduces the time cost and computing resources required for model updating.
[0065] Optional, see Figure 4 , the deviation is obtained in advance through the following steps S1 to S2:
[0066] Step S1, obtaining a target quantile of a first deviation of the first detection model.
[0067] In the embodiment of the present application, the target quantile is a value in the deviation that is in a specific distribution probability, such as the median, quartile, percentile, etc. The specific value of the target quantile can be determined according to actual needs and is not limited here. The target quantile can be one or more.
[0068] Step S2, obtaining a deviation threshold according to the target quantile.
[0069] In the embodiment of the present application, when there is one target quantile, the target quantile can be directly enlarged or reduced to obtain the deviation threshold; when there are multiple target quantile data, multiple target quantiles can be combined according to a specific algorithm to obtain the deviation threshold. For example, the target quantile can include the 75% quantile p of the first deviation. t and the 25% quantile p f , the deviation threshold is obtained by combining the following formula (2):
[0070] thresh=p t +α×(p t -p f ) (2)
[0071] Among them, thresh is the deviation threshold, α is the model hyperparameter, and α can be set according to actual needs.
[0072] Optionally, the first detection model and the second detection model are obtained by combining convolutional neural network and recurrent neural network algorithms.
[0073] In the embodiment of the present application, a convolutional neural network (CNN) is a deep learning algorithm, which can be a convolutional neural network algorithm of the type of layered convolution, separable convolution, hole convolution, deep convolution, etc. in conventional technology. The convolutional neural network algorithm can be selected according to actual needs, and no specific limitation is made here. A recurrent neural network (RNN) is a neural network algorithm for processing sequence data, such as LSTM (Long Short-Term Memory), GRU (Gated Recurrent Unit networks), SRNN (Stacked Recurrent Neural Network), Bi-RNN (bidirectional recurrent neural network), etc., and the recurrent neural network algorithm can be selected according to actual needs, and no limitation is made here. The detection model obtained by combining a convolutional neural network that can effectively reflect data features with a recurrent neural network algorithm that effectively reflects timing features can effectively detect point anomalies, collective anomalies and timing anomalies of batteries, thereby improving the accuracy of the detection model.
[0074] Optionally, the recurrent neural network algorithm includes a long short-term memory network algorithm.
[0075] In an embodiment of the present application, a semi-supervised model combining CNN and LSTM can be used as a detection model. The CNN-LSTM obtained by the combination is a convolutional recurrent neural network model with good representation capabilities, which can effectively improve the accuracy of battery abnormality detection.
[0076] Optionally, the model network architecture of the first detection model and the second detection model includes: an input layer, a convolution layer, a pooling layer, a flattening layer, and a long short-term memory layer connected in sequence, wherein the convolution layer and the pooling layer each include at least one.
[0077] In the embodiments of this application, refer to Figure 5 , showing a model network architecture of a CNN-LSTM detection model:
[0078] From top to bottom, it includes the input layer, CNN-convolutional layer, MaxPooling-pooling layer, Flatten flattening layer, LSTM-long short-term memory layer and fully connected layer. batch identifies the batch size of input data, steps identifies the time step of input data, channel identifies the channel data volume of input data. features identifies the feature data of input data, K i-1 represents the number of convolution kernels in the i-1th convolution layer, F i-1 It represents the number of features output by the i-1th convolutional layer, N represents the number of combined pairs of the CNN layer and the MaxPooling layer, i is an integer and satisfies 1≤i≤N, when i=1, K0=channel and F0=features; lstm_num represents the number of neurons in the LSTM layer, and m represents the number of model prediction data. The input data can be the historical behavior data and target behavior data in the embodiment of the present application. The convolutional layer can be various forms of convolutional layers such as 1D, 2D, 3D, etc., which can be set according to actual needs and are not limited here.
[0079] Of course, this is only an exemplary description, and other model network architectures may also be used. For example, a regularization algorithm or a dropout algorithm may be used in the model network architecture, and layers may be added to avoid excessive aggregation, etc. The feasibility of this solution shall prevail and is not limited here.
[0080] Another battery anomaly detection method provided by the present application can effectively detect a variety of potential abnormal behaviors of the battery to be tested by setting a threshold according to the deviation of the detection model representing the compliant battery and the battery to be tested for battery anomaly detection, and update the model through adaptive transfer learning, which greatly reduces the manpower and computing resources required for battery detection model training. In addition, the detection model based on convolutional neural network and recurrent neural network is adopted to optimize the characterization ability of the model and effectively improve the accuracy of battery anomaly detection. And by obtaining the behavior data of the battery to be tested at a preset time period for model update, the detection model can be updated in time, which improves the sensitivity of battery anomaly detection.
[0081] Figure 6 The first battery abnormality detection device 30 provided in the embodiment of the present application includes:
[0082] Acquisition module 301, for acquiring target behavior data of the battery to be tested.
[0083] The training module 302 is used to use the target behavior data to perform adaptive transfer learning on the first detection model to obtain a second detection model, where the first detection model is pre-trained based on historical behavior data of compliant batteries.
[0084] The processing module 303 is used to obtain a second deviation of the second detection model.
[0085] The confirmation module 304 is used to confirm that the battery to be tested is an abnormal battery when the second deviation is greater than a deviation threshold, and the deviation threshold is obtained in advance according to the first deviation of the first detection model.
[0086] Optionally, the training module 302 is further used to:
[0087] The target behavior data is used to update the weight parameters of the target level of the first detection model to obtain a second detection model.
[0088] Optionally, the training module 302 is further used to:
[0089] The target behavior data is used to update the weight parameters of the fully connected layer of the first detection model to obtain a second detection model.
[0090] Optionally, the device further includes:
[0091] An analysis module 305 is used to analyze the target behavior data of the abnormal battery to obtain the abnormal type of the battery to be tested;
[0092] The abnormality type includes at least one of a point abnormality, a time sequence abnormality and a collective abnormality.
[0093] Optionally, the acquisition module 301 is further used to:
[0094] Obtaining current behavior data of the battery under test during a preset time period;
[0095] The current behavior data is sliced according to a preset time step to obtain target behavior data.
[0096] Optionally, the confirmation module 304 is also used to
[0097] Obtaining a target quantile of a first deviation of the first detection model;
[0098] A deviation threshold is obtained according to the target quantile.
[0099] Optionally, the first detection model and the second detection model are obtained by combining convolutional neural network and recurrent neural network algorithms.
[0100] Optionally, the recurrent neural network algorithm includes a long short-term memory network algorithm.
[0101] Optionally, the model network architecture of the first detection model and the second detection model includes: an input layer, a convolution layer, a pooling layer, a flattening layer, and a long short-term memory layer connected in sequence, wherein the convolution layer and the pooling layer each include at least one.
[0102] The present application provides a battery anomaly detection device, which performs battery anomaly detection by setting a threshold value based on the deviation of the detection model representing a compliant battery and a battery to be tested. This device can effectively detect a variety of potential abnormal behaviors of the battery to be tested, and update the model through adaptive transfer learning, thereby significantly reducing the manpower and computing resources required for battery detection model training.
[0103] As for the above-mentioned server embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0104] The present application also provides an electronic device, such as Figure 7 As shown, it includes a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.
[0105] Memory 403, used for storing computer programs;
[0106] The processor 401 is used to execute the program stored in the memory 403 to implement the following steps:
[0107] Obtain target behavior data of a battery to be tested; use the target behavior data to perform adaptive transfer learning on a first detection model to obtain a second detection model, wherein the first detection model is pre-trained based on historical behavior data of compliant batteries; obtain a second deviation of the second detection model; and when the second deviation is greater than a deviation threshold, confirm that the battery to be tested is an abnormal battery, wherein the deviation threshold is pre-obtained based on the first deviation of the first detection model.
[0108] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0109] The communication interface is used for communication between the above terminal and other devices.
[0110] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0111] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0112] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the battery abnormality detection method described in any one of the above embodiments.
[0113] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the battery abnormality detection method described in any one of the above embodiments.
[0114] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0115] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0116] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0117] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A battery abnormality detection method, It is characterized in that The method comprises: Obtain target behavior data of the battery to be tested; Using the target behavior data to perform adaptive transfer learning on a first detection model to obtain a second detection model, wherein the first detection model is pre-trained based on historical behavior data of compliant batteries; Obtaining a second deviation of the second detection model; In the case where the second deviation is greater than a deviation threshold, confirming that the battery to be tested is an abnormal battery, the deviation threshold is obtained in advance according to the first deviation of the first detection model, and the deviation is determined based on actual behavior data and predicted behavior data; The method for acquiring the target behavior data includes: Acquire current behavior data of the battery to be tested in a preset time period, wherein the preset time period is a period for the first detection model to perform model update, and the preset time period is determined based on the aging rate of the battery to be tested; slice the current behavior data according to a preset time step to obtain the target behavior data; The step of using the target behavior data to perform adaptive transfer learning on the first detection model to obtain a second detection model includes: The target behavior data is used to update the weight parameters of the target level of the first detection model to obtain a second detection model.
2. The method according to claim 1, It is characterized in that The step of updating the weight parameters of the target level of the first detection model by using the target behavior data to obtain the second detection model comprises: The target behavior data is used to update the weight parameters of the fully connected layer of the first detection model to obtain a second detection model.
3. The method according to claim 1, It is characterized in that After confirming that the battery to be tested is an abnormal battery, the method further includes: Analyzing the target behavior data of the abnormal battery to obtain the abnormal type of the battery to be tested; The abnormality type includes at least one of a point abnormality, a time sequence abnormality and a collective abnormality.
4. The method according to claim 1, It is characterized in that The deviation threshold is obtained by the following steps: Obtaining a target quantile of a first deviation of the first detection model; A deviation threshold is obtained according to the target quantile.
5. The method according to claim 1, It is characterized in that The first detection model and the second detection model are obtained by combining convolutional neural network and recurrent neural network algorithms.
6. The method according to claim 5, It is characterized in that The recurrent neural network algorithm includes a long short-term memory network algorithm.
7. The method according to claim 1, It is characterized in that The model network architecture of the first detection model and the second detection model includes: an input layer, a convolution layer, a pooling layer, a flattening layer, and a long short-term memory layer connected in sequence, wherein the convolution layer and the pooling layer each include at least one.
8. A battery abnormality detection device, It is characterized in that The device comprises: An acquisition module, used for acquiring target behavior data of the battery to be tested; A training module, configured to use the target behavior data to perform adaptive transfer learning on a first detection model to obtain a second detection model, wherein the first detection model is pre-trained based on historical behavior data of compliant batteries; A processing module, used for obtaining a second deviation of the second detection model; a confirmation module, configured to confirm that the battery to be tested is an abnormal battery when the second deviation is greater than a deviation threshold, wherein the deviation threshold is obtained in advance according to the first deviation of the first detection model, and the deviation is determined based on actual behavior data and predicted behavior data; Wherein, the acquisition module is also used for: Acquire current behavior data of the battery to be tested in a preset time period, wherein the preset time period is a period for the first detection model to perform model update, and the preset time period is determined based on the aging rate of the battery to be tested; slice the current behavior data according to a preset time step to obtain the target behavior data; The training module is also used for: The target behavior data is used to update the weight parameters of the target level of the first detection model to obtain a second detection model.
9. The device according to claim 8, It is characterized in that The training module is also used for: The target behavior data is used to update the weight parameters of the fully connected layer of the first detection model to obtain a second detection model.
10. The device according to claim 8, It is characterized in that The device further comprises: An analysis module, used for analyzing the target behavior data of the abnormal battery to obtain the abnormal type of the battery to be tested; The abnormality type includes at least one of a point abnormality, a time sequence abnormality and a collective abnormality.
11. The device according to claim 8, It is characterized in that The confirmation module is further used for: Obtaining a target quantile of a first deviation of the first detection model; A deviation threshold is obtained according to the target quantile.
12. The device according to claim 8, It is characterized in that The first detection model and the second detection model are obtained by combining convolutional neural network and recurrent neural network algorithms.
13. The device according to claim 12, It is characterized in that The recurrent neural network algorithm includes a long short-term memory network algorithm.
14. The device according to claim 8, It is characterized in that The model network architecture of the first detection model and the second detection model includes: an input layer, a convolution layer, a pooling layer, a flattening layer, and a long short-term memory layer connected in sequence, wherein the convolution layer and the pooling layer each include at least one.
15. An electronic device, It is characterized in that The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the battery abnormality detection method according to any one of claims 1 to 7 when executing the computer program.
16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the battery abnormality detection method according to any one of claims 1 to 7 is implemented.
