A battery pack collision detection method and system
By collecting the real-time and historical collision characteristics and working status sequence of the battery pack, using the collision detection model to perform weighted fusion and Kmeans algorithm adjustment, the problem of inaccurate collision detection of the battery pack in the existing technology is solved, and accurate collision detection results are achieved. Ensure the safe use of the battery pack.
Patent Information
- Application Number
- CN202411054686.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Existing battery pack collision detection methods cannot obtain accurate collision detection results and cannot effectively determine whether the battery pack is abnormal after a collision, resulting in safety hazards.
By collecting the real-time and historical collision characteristics of the battery pack, combined with the working status sequence, the trained collision detection model is input for feature extraction and weighted fusion, and the Kmeans algorithm is used to adjust the coefficients to improve the accuracy of the detection results and achieve accurate collision detection.
It can accurately reflect all collision information and charge and discharge information suffered by the battery pack, promptly determine whether the battery pack is abnormal, ensure the safety of the battery pack, and avoid accidents such as leakage and explosion.
Smart Images

Figure CN118560286B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of collision detection, and in particular to a collision detection method and system for a battery pack. Background Art
[0002] With the continuous development of new energy technology, battery packs are being used more and more widely. In new energy vehicles, battery packs are often installed at the bottom of new energy vehicles as the main power source; when new energy vehicles are driving, when the road is bumpy or the bottom is hit by collisions and impacts, the battery packs will be damaged due to collisions, thus inducing safety accidents such as battery leakage and explosion.
[0003] At present, the patent application document with application publication number CN116901711A discloses a collision detection processing method and equipment for a battery, wherein the method comprises: obtaining detection signals collected by sensors arranged at multiple positions on the battery when sensing the battery being collided; determining the local impact position and the corresponding impact energy of the battery being collided based on the detection signals of each of the sensors; determining a collision detection result indicating whether the battery is abnormal based on the local impact position and the corresponding impact energy; in response to the collision detection result being that the battery is abnormal, performing a preset early warning process; wherein the step of determining the collision detection result indicating whether the battery is abnormal based on the local impact position and the corresponding impact energy comprises: comparing the impact energy with a first preset energy threshold to obtain a comparison result; in response to the comparison result being that the impact energy is greater than or equal to the first preset energy threshold, determining that the collision detection result is that the battery is abnormal.
[0004] The above method first obtains the local impact positions and corresponding impact energies in a collision, and determines whether the battery is abnormal by comparing the impact energy with a preset energy threshold. However, for a battery pack, the working state of the battery pack when a collision occurs will also affect whether the battery is abnormal after the collision. The above method cannot obtain accurate collision detection results based only on the impact energy. Summary of the invention
[0005] In order to solve the technical problem of inaccurate surface defect detection results, the present application provides a battery pack collision detection method and system, which can obtain accurate collision detection results.
[0006] In a first aspect of the present application, a collision detection method for a battery pack is provided, the detection method comprising: collecting real-time collision features of the battery pack, splicing various historical collision features and the real-time collision features to obtain a collision feature sequence, the real-time collision features including the impact force at each position in this collision; obtaining a working state sequence of the battery pack, the working state sequence including a charging power sequence and a discharging power sequence within a preset time window; inputting the collision feature sequence and the working state sequence into a trained collision detection model, performing feature extraction on the collision feature sequence and the working state sequence respectively to obtain a collision vector and a working vector, weightedly fusing the collision vector and the working vector according to a preset coefficient, and classifying the weighted fusion results to obtain a collision detection result, the collision detection result including normal and abnormal.
[0007] In one embodiment, the operating state further includes a battery pack temperature sequence within a preset time window.
[0008] In one embodiment, the calculation method of the preset coefficient includes: obtaining collision vectors and working vectors of all training data, weightedly fusing the collision vectors and working vectors according to the initial coefficients to obtain weighted fusion results of each group of training data, clustering the weighted fusion results using the Kmeans algorithm to obtain two clustering clusters corresponding to the initial coefficients; calculating the normal proportion and abnormal proportion of the collision detection labels of the training data in each clustering cluster, and calculating the information entropy of the normal proportion and the abnormal proportion, and taking the maximum value of the information entropy as the target value; adjusting the initial coefficient, and taking the initial coefficient when the target value takes the minimum value as the preset coefficient.
[0009] The Kmeans algorithm is used to cluster the weighted fusion results of all training data to obtain two clusters. The target value can reflect whether the collision detection labels of all training data in each cluster are consistent, and the accuracy of the collision detection results can be judged. The initial coefficient is continuously updated to adjust the weighted fusion results of each training data. When the target value takes the minimum value, it means that the accuracy of the collision detection result reaches the maximum. At this time, the initial coefficient can maximize the accuracy of the collision detection result and obtain the preset coefficient.
[0010] In one embodiment, the clustering distance of the clustering operation is the Euclidean distance or the Manhattan distance of the weighted fusion result between any two sets of training data.
[0011] In one embodiment, the method for calculating the weighted fusion result includes:
[0012] ;in, is the collision vector, is the working vector, is the preset coefficient, is the weighted fusion result.
[0013] The weighted fusion result comprehensively reflects the working status at the time of this collision, as well as the collision information of all collisions of the battery pack, providing a basis for obtaining accurate collision detection results.
[0014] In one embodiment, the training method of the collision detection model includes: selecting the current batch of training data; using the collision detection model to obtain the output results of each training data, using the cross entropy loss between the output results and the collision detection labels of the training data as the preset loss to train the collision detection model, and completing the training of the current batch; iteratively performing training of multiple batches until the preset loss is less than the preset value, completing the training.
[0015] The collision detection model is updated by presetting the loss, and the output result is constrained to be consistent with the collision detection label of the training data, so that the collision detection model can output accurate collision detection results.
[0016] In one embodiment, the preset loss also includes: calculating the weighted fusion results of each group of training data according to the preset coefficient, using the Kmeans algorithm to obtain two clustering clusters corresponding to the preset coefficient, taking the clustering cluster with the largest proportion of normal collision detection labels as the normal clustering cluster, and the other clustering cluster as the abnormal clustering cluster; taking the training data with abnormal collision detection labels in the normal clustering cluster and the training data with normal collision detection labels in the abnormal clustering cluster as difficult data; setting data weights for difficult data and other training data other than the difficult data, and taking the product of the data weight and the cross entropy loss as the preset loss, and the data weight of the difficult data is greater than the data weight of other training data other than the difficult data.
[0017] For different training data, the difficulty of obtaining accurate collision detection results is different. Therefore, in the process of training the collision detection model according to the preset loss, different weights are assigned to each group of training data in the current batch; the training data with abnormal collision detection labels in the normal clustering cluster and the training data with normal collision detection labels in the abnormal clustering cluster are regarded as difficult data, and a larger data weight is assigned to the difficult data, so as to effectively update the collision detection model and improve the accuracy of the output results of the collision detection model.
[0018] In one embodiment, in response to the collision detection result being abnormal, a reminder is issued.
[0019] In a second aspect of the present application, a collision detection system for a battery pack is provided, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a collision detection method for a battery pack according to the first aspect of the present application is implemented.
[0020] The technical solution of this application has the following beneficial technical effects:
[0021] Since the battery pack will be subjected to multiple collisions during use, when the impact force at any position is greater than the impact threshold, it means that the battery pack has suffered a collision. The collision features of this collision and all historical collisions are arranged in chronological order to obtain a collision feature sequence, which can accurately reflect the collision information of all collisions suffered by the battery pack; at the same time, the working state sequence of the battery pack during this collision is collected, and the working state sequence can accurately reflect the charging and discharging information of the battery pack during this collision; the working state sequence and the collision feature sequence are input into the trained collision detection model, which can comprehensively consider the collision information of all collisions of the battery pack and the charging and discharging information during this collision, obtain accurate collision detection results, and timely repair or replace the battery pack. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0023] Figure 1 is a flow chart of a battery pack collision detection method according to an embodiment of the present application;
[0024] Figure 2 is a structural schematic diagram of a collision detection model according to an embodiment of the present application;
[0025] Figure 3 is a flow chart of a method for training a collision detection model according to an embodiment of the present application;
[0026] Figure 4 4 is a structural block diagram of a collision detection system for a battery pack according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0028] It should be understood that when the terms "first", "second", etc. are used in the claims, specification and drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0029] According to the first aspect of the present application, the present application provides a battery pack collision detection method, which is used to detect whether the state of the battery pack is abnormal after the battery pack collides in different scenarios. When the state of the battery pack is abnormal, the battery pack is replaced or repaired in time to ensure the safe use of the battery pack. For example, for the battery pack in the new energy vehicle scenario, it can be determined whether the state of the battery pack is abnormal after the battery pack collides.
[0030] Figure 1 FIG. 1 is a flow chart of a battery pack collision detection method according to an embodiment of the present application. Figure 1 As shown, the battery pack collision detection method 100 includes steps S101 to S103, which are described in detail below.
[0031] S101, collecting real-time collision features of the battery pack, splicing historical collision features and the real-time collision features to obtain a collision feature sequence, wherein the real-time collision features include the collision force at each position in the current collision.
[0032] In one embodiment, multiple collision sensors are arranged at different positions on the surface of the battery pack, and the collision sensors are strain sensors, acceleration sensors, pressure sensors, etc., for collecting the impact force at the corresponding position. For example, a battery pack is a cube with 6 contact surfaces, and 4 collision sensors are distributed in an array on each contact surface. Then, 24 sensor readings can be collected in one collision, and each sensor reading can reflect the impact force at the corresponding position.
[0033] For a battery pack, the impact force at each position at each moment can be collected through the collision sensor. When the impact force at any position is greater than the impact threshold, it means that the battery pack has experienced a collision. At this time, the impact force at each position is combined into a vector with A rows and 1 column to obtain the real-time collision feature of this collision, where A is the number of collision sensors on the battery pack. The real-time collision feature can reflect the impact force suffered by each position during this collision.
[0034] It is understandable that a battery pack may experience multiple collisions, and each collision will cause certain damage to the battery pack based on the previous collision; therefore, the collision detection result of the battery pack after this collision is related to both this collision and the historical collisions of the battery pack, where the historical collisions are the collisions suffered by the battery pack before this collision.
[0035] By splicing all historical collision features and real-time collision features together in the order of collision time, a collision feature sequence can be obtained. For example, a battery pack has experienced 3 historical collisions. When it encounters this collision, the collision features of the 3 historical collisions and this collision are spliced together in the order of collision time to obtain a collision feature sequence of row A and column 4.
[0036] S102, obtaining a working state sequence of the battery pack, where the working state sequence includes a charging power sequence and a discharging power sequence within a preset time window.
[0037] In one embodiment, the working state of the battery pack during a collision will also affect the collision detection result. The working state includes the charging power and discharging power of the battery pack. When the battery pack is in a full-load working state, its charging power is 0 and the discharging power reaches the maximum rated power.
[0038] The preset time window includes the current moment and a preset number of historical moments before the current moment, each moment corresponds to a charging power and a discharging power, which is used to accurately reflect the working state of the battery pack at the corresponding moment. The preset number is 9, that is, the working state sequence size is 2 rows and 10 columns.
[0039] In another embodiment, the working state further includes a battery pack temperature sequence within a preset time window. In this case, the working state sequence size is 3 rows and 10 columns.
[0040] S103, inputting the collision feature sequence and the working state sequence into the trained collision detection model, performing feature extraction on the collision feature sequence and the working state sequence respectively to obtain a collision vector and a working vector, weightedly fusing the collision vector and the working vector according to a preset coefficient, and classifying the weighted fusion result to obtain a collision detection result, wherein the collision detection result includes normal and abnormal.
[0041] In one embodiment, see Figure 2, is a schematic diagram of the structure of the collision detection model according to the embodiment of the present application. The collision detection model 200 includes a first feature extraction sub-model 201, a second feature extraction sub-model 202 and a classification sub-model 203; the first feature extraction sub-model 201 is used to extract features from the collision feature sequence to obtain a collision vector; the second feature extraction sub-model 202 is used to extract features from the working state sequence to obtain a working vector; after weighted fusion of the collision vector and the working vector according to a preset coefficient, the weighted fusion result is input into the classification sub-model 203 for classification to obtain a collision detection result.
[0042] Among them, the first feature extraction sub-model 201 and the second feature extraction sub-model 202 are both recurrent neural networks, and can adopt existing recurrent neural network structures such as LSTM or GRU; the classification sub-model 203 can be an existing binary classification model such as Softmax classification function, logistic regression or SVM; the sizes of the collision vector and the working vector are both N rows and 1 column, and the value of N is related to the model structure of the first feature extraction sub-model 201 and the second feature extraction sub-model 202.
[0043] In one embodiment, the calculation method of the preset coefficient includes: obtaining collision vectors and working vectors of all training data, weightedly fusing the collision vectors and working vectors according to the initial coefficients to obtain weighted fusion results of each group of training data, clustering the weighted fusion results using the Kmeans algorithm to obtain two clustering clusters corresponding to the initial coefficients; calculating the normal proportion and abnormal proportion of the collision detection labels of the training data in each clustering cluster, and calculating the information entropy of the normal proportion and the abnormal proportion, and taking the maximum value of the information entropy as the target value; adjusting the initial coefficient, and taking the initial coefficient when the target value takes the minimum value as the preset coefficient.
[0044] The battery pack sample is placed on a collision test bench, and the battery pack sample is subjected to multiple collision tests continuously. After each collision test, the battery pack sample is subjected to quality monitoring. If the quality monitoring meets the standard, the collision detection label is normal. If the quality monitoring does not meet the standard, the collision detection label is abnormal. By performing collision tests on multiple battery pack samples, multiple sets of training data can be obtained. One set of training data includes a collision feature sequence, a working state sequence, and a collision detection label. The collision detection label is normal or abnormal.
[0045] Exemplarily, taking the 5th collision test of the battery pack sample as an example, the impact force at each position in the 5th collision test is collected as the collision feature of the 5th collision test, wherein the collision feature of the 5th collision test is also a vector of A rows and 1 columns, and A is the number of collision sensors on the battery pack sample. Further, the collision features of the 1st to 5th collision tests are spliced together to obtain a collision feature sequence of the 5th collision test; during the 5th collision test, the charging power sequence and the discharging power sequence of the battery pack sample within a preset time window are collected to obtain a working state sequence of the 5th collision test; the collision feature sequence, the working state sequence and the collision detection label of the 5th collision test are stored to obtain a set of training data.
[0046] In the process of clustering the weighted fusion results of each group of training data using the Kmeans algorithm, the K value is set to 2, and the clustering distance is the Euclidean distance or Manhattan distance of the weighted fusion results between any two groups of training data.
[0047] The initial coefficient is any value between 0 and 1. In the embodiment of the present application, the initial coefficient is set to 0.
[0048] Among them, the collision detection label is normal or abnormal, and the information entropy of the normal ratio and the abnormal ratio satisfies the relationship: ;in, For the The normal proportion of collision detection labels in clusters, For the The abnormal proportion of collision detection labels in clusters, For the The information entropy of the clusters.
[0049] It can be understood that a cluster includes at least one group of training data. When the normal proportion and abnormal proportion of the collision detection labels of each group of training data are close to the 01 distribution (that is, the normal proportion is 0 and the abnormal proportion is 1; or the normal proportion is 1 and the abnormal proportion is 0), the smaller the information entropy of the cluster, the more accurate the collision detection result can be obtained; by continuously adjusting the initial coefficient and taking the initial coefficient when the target value takes the minimum value as the preset coefficient, the accuracy of the collision detection result can be improved.
[0050] Specifically, the process of weighted fusion of the collision vector and the working vector according to the preset coefficient is: ; is the collision vector, is the working vector, is the preset coefficient, It is the weighted fusion result of the collision vector and the working vector.
[0051] In another embodiment, the value of the preset coefficient may be directly set to 0.5.
[0052] In one embodiment, in response to the collision detection result being abnormal, indicating that there is an abnormality in the battery pack after the collision, a reminder is issued to promptly inspect or replace the battery pack to avoid safety accidents such as battery leakage and explosion.
[0053] In one embodiment, in order to ensure that the collision detection model can output accurate collision detection results, it is necessary to collect collision test data and train the collision detection model on all training data. Figure 3 , is a flow chart of a method for training a collision detection model according to an embodiment of the present application. Specifically, the method 300 for training a collision detection model includes steps S301 to S304, which are described in detail below.
[0054] S301, selecting the current batch of training data.
[0055] In one embodiment, the number of training data in a batch is 64 or 32, and the implementer may also adjust it as needed, and randomly select a batch of training data from all the training data as the current batch.
[0056] S302, using the collision detection model to obtain the output results of each training data, and using the cross entropy loss between the output results and the collision detection labels of the training data as the preset loss to train the collision detection model, thereby completing the training of the current batch.
[0057] In one embodiment, the training data of the current batch are sequentially input into the collision detection model to obtain the output results of each training data of the current batch, and the output results are normal or abnormal. The cross entropy loss between the output results of each training data and the collision detection label is calculated as the preset loss, and the preset loss satisfies the relationship: ; is the number of training data in the current batch, and They are the first Output results and collision detection labels for training data; for and The cross entropy loss is is the value of the preset loss.
[0058] In another embodiment, the difficulty of obtaining accurate collision detection results varies for different training data. Therefore, in the process of training the collision detection model according to the preset loss, different weights can be assigned to each group of training data in the current batch, so that the collision detection model pays more attention to the training data that is difficult to detect, thereby improving the accuracy of the collision detection results.
[0059] Specifically, the preset loss also includes: calculating the weighted fusion results of each group of training data according to the preset coefficient, using the Kmeans algorithm to obtain two clustering clusters corresponding to the preset coefficient, taking the clustering cluster with the largest normal proportion of collision detection labels as the normal clustering cluster, and the other clustering cluster as the abnormal clustering cluster; taking the training data with abnormal collision detection labels in the normal clustering cluster and the training data with normal collision detection labels in the abnormal clustering cluster as difficult data; setting data weights for difficult data and other training data other than the difficult data, and taking the product of the data weight and the cross entropy loss as the preset loss, and the data weight of the difficult data is greater than the data weight of other training data other than the difficult data.
[0060] Wherein, the preset loss satisfies the relationship: ;in, is the number of training data in the current batch, and They are the first Output results and collision detection labels for training data; for and The cross entropy loss is For the The data weight of training data, is the value of the preset loss. training data is difficult data, then The data weight of training data , training data is other training data other than difficult data, then The data weight of training data .
[0061] Among them, the weighted fusion result of each group of training data is calculated according to the preset coefficient, and the two cluster clusters corresponding to the preset coefficient are obtained by using the Kmeans algorithm, including: weighted fusion of the collision vector and the working vector with the preset coefficient to obtain the weighted fusion result of each group of training data, and then clustering the weighted fusion result of each group of training data using the Kmeans algorithm to divide all the training data into two cluster clusters to obtain the two cluster clusters corresponding to the preset coefficient.
[0062] It can be understood that, ideally, the collision detection labels of all training data in the normal cluster are normal. When the collision detection label of a training data in the normal cluster is abnormal, it means that the training data is easily misidentified as normal, and the training data is difficult data in the normal cluster; similarly, difficult data in the abnormal cluster can be obtained.
[0063] In this way, the preset loss of the collision detection model is determined. The smaller the preset loss is, the more accurate the output result of the collision detection model is. The collision detection model is back-propagated according to the preset loss to update the model parameters in the collision detection model.
[0064] S303, iteratively perform multiple batches of training until the preset loss is less than a preset value, and the training is completed.
[0065] In one embodiment, multiple batches of training data are iteratively selected, and the collision detection model is trained multiple times until the preset loss is less than a preset value, indicating that the collision detection model can output accurate collision detection results. At this time, the training is completed to obtain a trained collision detection model. The preset value is 0.01.
[0066] The technical principle and implementation details of the collision detection method of the battery pack of the present application are introduced above through specific embodiments. Since the battery pack will be subjected to multiple collisions during use, when the impact force at any position is greater than the collision threshold, it means that the battery pack has been subjected to a collision. The collision features of this collision and all historical collisions are arranged in chronological order to obtain a collision feature sequence, which can accurately reflect the collision information of all collisions suffered by the battery pack; at the same time, the working state sequence of the battery pack during this collision is collected, and the working state sequence can accurately reflect the charge and discharge information of the battery pack during this collision; the working state sequence and the collision feature sequence are input into the trained collision detection model, which can comprehensively consider the collision information of all collisions of the battery pack and the charge and discharge information during this collision, obtain accurate collision detection results, and timely repair or replace the battery pack.
[0067] According to the second aspect of the present application, the present application also provides a collision detection system for a battery pack. Figure 4 is a structural block diagram of a collision detection system for a battery pack according to an embodiment of the present application. Figure 4 As shown, the system 50 includes a processor and a memory, the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a battery pack collision detection method according to the first aspect of the present application is implemented. The system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, whose settings and functions are known in the art, so they are not described here.
[0068] In the present application, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in this application may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0069] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0070] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A battery pack collision detection method, characterized in that: The detection method comprises: Collecting real-time collision features of the battery pack, splicing historical collision features and the real-time collision features to obtain a collision feature sequence, wherein the real-time collision features include the impact force at each position in the current collision; Acquire a working state sequence of the battery pack, wherein the working state sequence includes a charging power sequence and a discharging power sequence within a preset time window; Inputting the collision feature sequence and the working state sequence into the trained collision detection model, performing feature extraction on the collision feature sequence and the working state sequence respectively to obtain a collision vector and a working vector, weightedly fusing the collision vector and the working vector according to a preset coefficient, and classifying the weighted fusion result to obtain a collision detection result, wherein the collision detection result includes normal and abnormal; The training method of the collision detection model includes: selecting the training data of the current batch; using the collision detection model to obtain the output results of each training data, using the cross entropy loss between the output results and the collision detection labels of the training data as the preset loss to train the collision detection model, and completing the training of the current batch; iteratively performing the training of multiple batches until the preset loss is less than the preset value, completing the training; The preset loss also includes: calculating the weighted fusion results of each group of training data according to the preset coefficient, using the Kmeans algorithm to obtain two clustering clusters corresponding to the preset coefficients, taking the clustering cluster with the largest proportion of normal collision detection labels as the normal clustering cluster, and the other clustering cluster as the abnormal clustering cluster; taking the training data with abnormal collision detection labels in the normal clustering cluster and the training data with normal collision detection labels in the abnormal clustering cluster as difficult data; setting data weights for difficult data and other training data other than difficult data, and taking the product of the data weight and the cross entropy loss as the preset loss, and the data weight of difficult data is greater than the data weight of other training data other than difficult data.
2. A battery pack collision detection method according to claim 1, characterized in that: The operating status also includes a battery pack temperature sequence within a preset time window.
3. The battery pack collision detection method according to claim 1, characterized in that: The calculation method of the preset coefficient includes: Obtain collision vectors and working vectors of all training data, perform weighted fusion on the collision vectors and working vectors according to the initial coefficients to obtain weighted fusion results of each group of training data, perform clustering operation on the weighted fusion results using the Kmeans algorithm to obtain two clustering clusters corresponding to the initial coefficients; Calculate the normal ratio and abnormal ratio of the collision detection labels of the training data in each cluster, and calculate the information entropy of the normal ratio and the abnormal ratio, and take the maximum value of the information entropy as the target value; The initial coefficient is adjusted, and the initial coefficient when the target value takes the minimum value is used as the preset coefficient.
4. A battery pack collision detection method according to claim 3, characterized in that: The clustering distance of the clustering operation is the Euclidean distance or Manhattan distance of the weighted fusion results between any two sets of training data.
5. The battery pack collision detection method according to claim 1, characterized in that: The calculation method of the weighted fusion result includes: ;in, is the collision vector, is the working vector, is the preset coefficient, is the weighted fusion result.
6. A battery pack collision detection method according to claim 1, characterized in that: In response to the collision detection result being abnormal, a reminder is issued.
7. A battery pack collision detection system, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a collision detection method for a battery pack according to any one of claims 1 to 6 is implemented.
