Battery pole piece crack detection method and device, electronic equipment and storage medium

By using SEM images and deep learning models, the problem of microscopic crack detection in battery pole pieces is solved, efficient and accurate crack identification and classification is achieved, the cost of detection is reduced, and the quality control of battery materials is supported.

CN118864339APending Publication Date: 2024-10-29NIO BATTERY TECH (ANHUI) CO LTD

Patent Information

Application Number
CN202310478208.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively detect microscopic cracks in battery pole pieces, resulting in reduced product quality and increased production costs. Moreover, traditional methods cannot identify the random diversity of crack shapes, and deep learning methods have not yet been applied in this field.

Method used

Scanning electron microscope (SEM) images and a crack detection model based on deep learning are used to detect cracks through the Yolo model combined with the backbone network CSPdarknet and the neck network PANet to generate a training data set and optimize the model parameters to achieve online detection of battery pole piece cracks. or offline detection.

Benefits of technology

It achieves accurate identification and classification of battery pole piece cracks, reduces detection costs, improves efficiency and accuracy, can quickly locate the location, quantity and type of crack defects, and supports battery material failure analysis and development design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864339A_ABST
    Figure CN118864339A_ABST
Patent Text Reader

Abstract

The invention discloses a battery pole piece crack detection method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a to-be-detected battery pole piece SEM image; inputting the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain a crack detection result; wherein the crack detection model is obtained through the following steps: obtaining an SEM image of a battery pole piece, marking the type and position of a crack in the SEM image, and generating a data set of the SEM image; inputting the data set into a pre-constructed crack detection model for iterative training; and judging whether a training ending condition is met or not, and if the training ending condition is met, obtaining a trained crack detection model. According to the scheme, the cracks in the battery pole piece are detected and classified by utilizing the SEM image of the battery pole piece and the crack detection model based on the deep learning network, the detection cost is low, the efficiency is high, the crack detection accuracy is high, and the classification is correct.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery technology, and in particular to a method, device, electronic equipment and storage medium for detecting cracks in a battery pole piece. Background Art

[0002] During the coating process of lithium-ion batteries, cracks of varying sizes are prone to appear on the surface of the battery pole piece. The width of fine cracks is less than 1mm, and the width of wide cracks can even reach 5mm. Foil will be exposed in areas with severe cracking, causing the pole piece to be scrapped; areas with slight cracking will have marks after rolling, affecting product quality and leading to increased production costs. Therefore, how to detect cracked battery pole pieces in a timely manner and deal with them as soon as possible is very necessary to improve battery product quality and reduce production costs.

[0003] Battery pole piece particle crack identification is also very important for battery failure analysis. Battery pole piece images are often huge in number, and manual identification requires a large workload. It also requires a high level of experience and technical skills from the judges. Different operators are prone to subjective judgment criteria for cracks, resulting in misjudgments. At the same time, due to the random diversity of electrode pole piece crack shapes, traditional feature extraction methods cannot effectively identify cracks. In addition, although deep learning methods based on convolutional neural networks have been applied to crack detection in bridges, roads, house construction, and rail transit, they have not yet been applied to microscopic crack detection in battery pole piece particles. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a method, device, electronic device and storage medium for detecting cracks in battery pole pieces that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present invention, a method for detecting cracks in a battery pole piece is provided, the method comprising:

[0006] Obtaining a SEM image of the battery electrode to be tested;

[0007] Input the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result; wherein the trained crack detection model is obtained by the following steps:

[0008] Acquire a SEM image of a battery pole piece, mark the type and location of cracks in the SEM image, and generate a data set of the SEM image;

[0009] Inputting the data set into a pre-built crack detection model for iterative training;

[0010] It is determined whether a training end condition is met, and if the training end condition is met, a trained crack detection model is obtained.

[0011] In some embodiments, the crack detection result includes at least the type, quantity and location of the cracks contained in the SEM image of the battery pole piece to be detected;

[0012] Among them, the type of crack includes at least one of the following types: opening type, sliding type, tearing type, composite type, linear crack, bifurcated crack, multi-bifurcated shape, and annular crack.

[0013] In some embodiments, before obtaining the SEM image of the battery electrode to be detected, the method further includes:

[0014] The SEM original image of the battery pole piece is obtained, and the particle area is identified and marked from the SEM original image to obtain the SEM image of the battery pole piece to be tested.

[0015] In some embodiments, the trained crack detection model includes a Yolo model, and the Yolo model includes a backbone network CSPdarknet, a neck network PANet, and a detection head;

[0016] The step of inputting the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result includes:

[0017] Extracting target features in the SEM image of the battery pole piece to be detected through the backbone network CSPdarknet;

[0018] Performing feature fusion on the target features through the neck network PANet to obtain a feature map;

[0019] The detection head performs multi-scale target detection on the feature map to obtain the crack detection result.

[0020] In some embodiments, the data set for generating a SEM image comprises:

[0021] According to the distribution of electrode particle areas in the SEM images of each battery electrode, the data set is divided into training set, validation set and test set;

[0022] Determining whether a training end condition is met, if the training end condition is met, obtaining a trained crack detection model includes:

[0023] The crack detection model is trained, verified or tested using a training set, a validation set or a test set respectively, the training, validation or test results are compared with the marking information of the SEM image to obtain a comparison result, and the parameters in the crack detection model are optimized according to the comparison result.

[0024] In some implementations, optimizing the parameters in the trained crack detection model according to the comparison result includes:

[0025] The optimal detection frame is determined by using a non-maximum suppression method, thereby optimizing the parameters in the trained detection model, specifically including the following steps:

[0026] Step 1, sorting the confidence scores of multiple detection frames in each particle area of ​​the SEM image, and selecting the detection frame M with the highest confidence score;

[0027] Step 2, calculating the overlapping area intersection ratio IoU between other detection frames in the particle area and the detection frame M;

[0028] Step 3: If the IoU between another detection box and the detection box M is greater than the first threshold, the confidence score of the detection box is lowered;

[0029] Step 4: Take the detection frame with the second highest confidence score as the detection frame M, repeat steps 1 to 3, and obtain the updated confidence score ranking of each detection frame;

[0030] Step five: set a second threshold, compare the confidence score ranking of each detection frame after update with the second threshold, and determine the detection frame with a confidence score greater than the second threshold as the best detection frame.

[0031] In some implementations, optimizing the parameters in the trained crack detection model according to the comparison result includes:

[0032] The recognition rate and confidence of the cracks by the trained crack detection model are improved by using hyperparameter tuning, which specifically includes the following steps:

[0033] Initialize hyperparameters and set the initial values ​​of hyperparameters in the crack detection model;

[0034] Selecting a weighted function as a fitness function, and using the weighted function to weight individual performance indicators in the genetic algorithm;

[0035] Each of the hyperparameters is further optimized based on a genetic algorithm and the weighting function.

[0036] According to another aspect of the present invention, a device for detecting cracks in a battery pole piece is provided, the device comprising:

[0037] An image acquisition module, suitable for acquiring a SEM image of a battery electrode to be inspected;

[0038] The model detection module is suitable for inputting the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result; wherein the trained crack detection model is obtained by the following steps: obtaining the SEM image of the battery pole piece, marking the type and position of the crack in the SEM image, and generating a data set of the SEM image; inputting the data set into the pre-built crack detection model for iterative training; judging whether the training end condition is met, and if the training end condition is met, obtaining the trained crack detection model.

[0039] According to another aspect of the present invention, there is provided an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes any one of the above-mentioned methods for detecting cracks in a battery pole piece.

[0040] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method for detecting cracks in a battery pole piece according to any one of the above items is implemented.

[0041] As can be seen from the above, according to the above technical solution disclosed in the present invention, first, obtain the SEM image of the battery pole piece to be detected; then, input the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result. The above technical solution can realize online or offline detection of battery pole pieces, and for the first time use the SEM image of the battery pole piece and the crack detection model based on the deep learning network to realize the detection and classification of cracks in the battery pole piece, and the detection cost is low, the efficiency is high, the accuracy of crack detection is high and the classification is correct.

[0042] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] 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 invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0044] Figure 1 A schematic flow chart of a method for detecting cracks in a battery pole piece according to an embodiment of the present invention is shown;

[0045] Figure 2A schematic structural diagram of a battery pole piece crack detection model according to an embodiment of the present invention is shown;

[0046] Figure 3 A schematic structural diagram of a battery pole piece crack detection device according to an embodiment of the present invention is shown;

[0047] Figure 4 A schematic diagram of the overall process of battery pole piece crack detection according to an embodiment of the present invention is shown;

[0048] Figure 5 A schematic diagram showing a battery pole piece crack detection effect according to an embodiment of the present invention;

[0049] Figure 6 A schematic structural diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0050] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention 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 invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0051] Figure 1 A flow chart of a method for detecting cracks in a battery pole piece according to an embodiment of the present invention is shown, and the method is applied to an electronic device. The electronic device includes an intelligent terminal device, a computer device and / or a cloud installed with a computer program, wherein the intelligent terminal device includes but is not limited to a smart phone and a PAD; the computer device includes but is not limited to a personal computer, a laptop computer, an industrial computer, a network host, a single network server, and a plurality of network server sets; the cloud is composed of a large number of computers or network servers based on cloud computing, wherein cloud computing is a type of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets.

[0052] like Figure 1 As shown, the method for detecting cracks in a battery pole piece includes the following steps:

[0053] Step S110: Acquire a SEM image of the battery electrode to be inspected.

[0054] Scanning electron microscopy (SEM) is an observation method between transmission electron microscopy and optical microscopy. The image obtained by scanning with SEM is called SEM image. SEM uses a focused narrow high-energy electron beam to scan the sample, and stimulates various physical information through the interaction between the beam and the material. This information is collected, amplified, and re-imaged to achieve the purpose of characterizing the microscopic morphology of the material. The resolution of the scanning electron microscope can reach 1nm; the magnification can reach 300,000 times and above and is continuously adjustable; and it has a large depth of field, a large field of view, and a good three-dimensional imaging effect.

[0055] The SEM image of the battery pole piece to be inspected in step S110 can be obtained online by installing a SEM device on the battery pole piece processing equipment. Of course, the above-mentioned SEM image of the battery pole piece can also be obtained in an offline manner.

[0056] Step S120: inputting the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result.

[0057] The above-trained crack detection model is a neural network model based on deep learning and is obtained through the following steps:

[0058] Step S131: obtaining a SEM image of a battery electrode, marking the type and position of cracks in the SEM image, and generating a data set of the SEM image.

[0059] It should be pointed out that the SEM image of the battery pole piece used for training can be one or more original images obtained by the SEM device by scanning the battery pole piece; or it can be a typical image screened out from the above original images according to the crack conditions.

[0060] According to the needs of model training, the SEM images of the battery pole pieces are marked to obtain marking information such as the number, location, type and anchor frame of the cracks.

[0061] Optionally, the SEM image of the battery pole piece may be preprocessed, including scaling, histogram equalization, normalization, interpolation, etc. of the SEM image.

[0062] Step S132: input the data set into a pre-built crack detection model for iterative training.

[0063] Combination Figure 2As shown, the crack detection model in the embodiment of the present invention is preferably an end-to-end deep learning model, preferably a neural network model, which receives the SEM image through the input layer, uses multiple hidden layer neural networks, and learns the high-order representation features of the intrinsic laws of the data through a large number of vector calculations, and uses these features to perform target recognition and classification, and outputs results such as the type and location of the crack through the output layer.

[0064] Step S133: determine whether the training end condition is met, and if the training end condition is met, obtain a trained crack detection model.

[0065] The above training end condition may be the number of training times, or the loss function in the crack detection model reaching a convergence condition, etc., so as to obtain a trained crack detection model.

[0066] The above-mentioned embodiment utilizes the SEM image of the battery pole piece and the crack detection model based on the deep learning network for the first time to realize the detection and classification of cracks in the battery pole piece, and can reduce the detection cost, improve the detection efficiency and accuracy, and can quickly locate the position, quantity and type of crack defects in the battery pole piece, thereby providing a basis for battery material failure analysis and development design.

[0067] In some embodiments, the crack detection result includes at least the type, quantity and location of the cracks contained in the SEM image of the battery pole piece to be detected.

[0068] Among them, the type of crack includes at least one of the following types: opening type, sliding type, tearing type, composite type, linear crack, bifurcated crack, multi-bifurcated shape, and annular crack.

[0069] Specifically, combined with the classification of crack marking during training, cracks can be divided into: (1) Opening mode (Type I, Opening mode) cracks, under the action of tensile stress orthogonal to the crack surface, the crack surface produces an opening displacement (displacement is orthogonal to the crack surface), and the displacement of the upper and lower surfaces is opposite; (2) Sliding mode (Type II, Sliding mode) cracks, under the action of shear stress parallel to the crack surface and perpendicular to the crack tip line, the crack surface produces relative slip (displacement parallel to the shear stress direction); (3) Anti-plane shear mode (Type III, Anti-plane shear mode) cracks, under the action of shear stress perpendicular to the crack surface and parallel to the crack tip line, the crack surface produces relative slip along the outside of the crack surface (displacement parallel to the shear stress direction); (4) Composite type, which has at least two of the characteristics of the above three types. Among them, Type I cracks are the most common, most dangerous, and most important type.

[0070] In addition, according to the crack shape, cracks can also be divided into linear cracks, bifurcated cracks, multi-bifurcated cracks, and annular cracks.

[0071] In specific training and testing, a crack label file can be created in the SEM image database in the .xml format and stored in the square label area of ​​the crack area.

[0072] In some embodiments, before obtaining the SEM image of the battery pole piece to be inspected, S110 further includes: obtaining the SEM original image of the battery pole piece, identifying and marking the particle area from the SEM original image, and obtaining the SEM image of the battery pole piece to be inspected.

[0073] Of course, the above preprocessing operations are also applicable to SEM images used for training.

[0074] Combination Figure 5 As shown, since the particle gaps on the surface of the battery pole piece are similar to the crack morphology, in order to avoid the interference of the particle gaps with the identification of cracks inside the particles and improve the accuracy of the crack identification algorithm, the following preprocessing can be performed on the SEM images of the battery pole piece to be detected and the SEM images used for training: use traditional algorithms (including edge detection, corrosion expansion, and connected domain analysis) to identify and extract the particle area ROI (Region of Interest), and then perform crack target detection based on the particle area segmentation.

[0075] In some embodiments, the trained crack detection model includes a Yolo model, and the Yolo model includes a backbone network CSPdarknet, a neck network PANet, and a detection head.

[0076] The Yolo model mainly consists of four parts: input, backbone network (Backone, used to extract features), neck (Neck, used for data enhancement) and detection head (Head, used for detection or prediction). Among them, Backbone: a convolutional neural network that aggregates and forms image features at different image granularity; Neck: a series of network layers that mix and combine image features and pass image features to the prediction layer; Head: predicts image features, generates bounding boxes and predicts categories.

[0077] Specifically, the backbone network preferably adopts CSPDarknet53, which can effectively improve the feature extraction capability of the model by using residual structure and feature reuse mechanism. In one embodiment, the backbone network may specifically include: 1. Focus network structure. The specific operation of the Focus structure is to extract each pixel in the row and column direction of an image to form a new feature layer. Each image can be reorganized into 4 feature layers, and then the 4 feature layers are stacked to expand the input channel by 4 times. The stacked feature layer has 12 channels compared to the original 3 channels; 2. Residual network. The residual network in CSPDarknet is divided into two branches. The trunk branch performs a 1x1 convolution and a 3x3 convolution. The residual side does not perform any processing, which is equivalent to directly combining the input and output of the trunk; 3. CSPNet network structure. The structure of CSPNet is also divided into two parts, the trunk part stacks residual blocks, and the other part is connected to the end of the trunk after a small amount of processing, just like the residual side; 4. SiLU activation function. The SiLU activation function is an improved version of Signoid and ReLU. It has the characteristics of lower bounds but no upper bounds, smoothness, and non-monotonicity. It works better than ReLU on deep models; 5. SPP structure. SPP is the abbreviation of Spatial Pyramid Pooling. In CSPDarknet, MaxPool with different pooling kernel sizes is used for feature extraction to improve the receptive field of the network. The maximum pooling methods of 1×1, 5×5, 9×9 and 13×13 can be used for multi-scale feature fusion.

[0078] The neck network PANet includes a top-down part, which realizes the fusion of features at different levels by upsampling and fusing with coarser-grained feature maps; it also includes a bottom-up part, which mainly fuses feature maps from different levels through a convolutional layer; then the feature maps of the top-down part and the bottom-up part are fused to obtain the final feature map for target detection.

[0079] The detection head is mainly responsible for multi-scale target detection on the feature maps extracted by the backbone network. Among them, the detection anchor box (Anchors, i.e., detection box) is used to define target boxes of different sizes and aspect ratios. It is usually obtained by clustering the target boxes of the training set using K-means clustering. It can be calculated before model training and stored in the model to generate detection boxes for prediction. The classifier (Classification) is used to classify each detection box to determine whether it is a target object. It usually uses a fully connected layer plus a Softmax function to classify features. Regression (Regression) is used to regress each detection box to obtain its position and size. It usually uses a fully connected layer to regress features.

[0080] Then, in step S120, the SEM image of the battery electrode to be detected is input into the trained crack detection model to obtain the crack detection result, which specifically includes:

[0081] Extracting target features in the SEM image of the battery pole piece to be detected through the backbone network CSPdarknet;

[0082] Performing feature fusion on the target features through the neck network PANet to obtain a feature map;

[0083] The detection head performs multi-scale target detection on the feature map to obtain the crack detection result.

[0084] In some embodiments, the step S131 generates a data set of SEM images including:

[0085] According to the distribution of electrode particle areas in the SEM images of each battery pole piece, the dataset is divided into training set, validation set and test set.

[0086] Specifically, according to the shape characteristics of the particle area, the SEM images with similar particle area shapes are divided into one category, and then the SEM images of each category are divided into training set, validation set and test set according to the ratio. Furthermore, the data set can be divided according to the ratio of 7:2:1 to generate training set, validation set and test set.

[0087] Then step S133 determines whether the training end condition is met. If the training end condition is met, the trained crack detection model is obtained, including:

[0088] The crack detection model is trained, verified or tested using a training set, a validation set or a test set respectively, the training, validation or test results are compared with the marking information of the SEM image to obtain a comparison result, and the parameters in the crack detection model are optimized according to the comparison result.

[0089] Among them, the crack detection model can optimize the hyperparameters in the battery pole piece detection model and the parameters in the vector operation by means of hyperparameter tuning and non-maximum suppression.

[0090] In an optional embodiment, optimizing the parameters in the trained crack detection model according to the comparison result includes:

[0091] The optimal detection frame is determined by using a non-maximum suppression method, including an anchor frame for the detection head, so as to optimize the parameters in the trained detection model, specifically including the following steps:

[0092] Step 1, sorting the confidence scores of multiple detection frames in each particle area of ​​the SEM image, and selecting the detection frame M with the highest confidence score;

[0093] Step 2, calculating the overlapping area intersection ratio IoU between other detection frames in the particle area and the detection frame M;

[0094] Step 3: If the IoU between another detection box and the detection box M is greater than the first threshold, the confidence score of the detection box is lowered;

[0095] Step 4: Take the detection frame with the second highest confidence score as the detection frame M, repeat steps 1 to 3, and obtain the updated confidence score ranking of each detection frame;

[0096] Step five: set a second threshold, compare the confidence score ranking of each detection frame after update with the second threshold, and determine the detection frame with a confidence score greater than the second threshold as the best detection frame.

[0097] Specifically, non-max suppression (NMS), that is, suppressing non-maximum elements and retaining maximum elements, can be used in the training, verification and even testing of crack target detection. Through the operation of non-maximum suppression, the parameters in the model can be optimized.

[0098] Take crack target detection as an example. In the traditional target detection reasoning process, many detection frames (A, B, C, D, E, F, etc.) are generated, many of which detect the same target, but in the end, only one detection frame is needed for each target. The general NMS selects the detection frame with the highest score (assuming it is C), and then calculates the corresponding IOU value between C and the remaining frames. When the IOU value exceeds the set threshold (generally set to 0.5, it can be set to 0.7 in target detection), the frame exceeding the threshold is suppressed. The suppression method is to set the score of the detection frame to 0. After one round, continue to search for the highest score in the remaining detection frames, and then suppress the frame with IOU exceeding the threshold, until the frame with almost no overlap is retained. In this way, basically only one detection frame is left for each target.

[0099] The above algorithm is mainly applicable to the detection of a single target. For the situation where there are many cracks in a particle area, the embodiment of the present invention proposes an optimized weighted non-maximum suppression algorithm, and the specific steps are as follows:

[0100] (1) Sort the confidence scores of each detection box and select the detection box M with the highest confidence score;

[0101] (2) Calculate the intersection over union (IoU) of the remaining detection boxes bi and the detection box M respectively;

[0102] (3) Set the first IoU threshold Nt. If the intersection-over-union ratio of the remaining detection box bi and M is greater than Nt, it is considered that the detection box M has an overlapping part, and the confidence score of the detection box bi is lowered. However, it still exists in the detection box list. The adjustment method is as follows:

[0103]

[0104] Among them, the confidence weighting of the detection frame is realized by Si=Si*(1-IoU(M,bi)). The higher the overlap with the detection frame M, the greater the attenuation of the confidence score of the detection frame.

[0105] (4) Then put the current detection frame M into the new list E, and then take the detection frame with the second highest confidence score as the detection frame M, repeat steps 1 to 3 until the detection frames in the original list are executed, and obtain the updated confidence score sorted list E of each detection frame;

[0106] (5) Determine whether the confidence score of each detection frame in list E is greater than a second threshold Threshold. If so, detection frame M is the best detection frame. There may be multiple best detection frames.

[0107] One of the cores of the above-mentioned weighted non-maximum suppression is to reduce the confidence. For example, there are three overlapping detection frames on a crack, and the confidence scores are 0.9, 0.7, and 0.85 respectively. Select the detection frame with the highest score. After the first processing, the scores become 0.9, 0.65, and 0.55 respectively, and then save the highest score at this time in E. Then select the second detection frame as the one with the highest score. The confidences after processing are 0.65 and 0.45 respectively. Then put the second detection frame into the list E, and finally select the third one. The score does not change after processing, and the third one is also put into E. Finally, the confidences of the three boxes after suppression are 0.9, 0.65, and 0.45 respectively. Finally, set the threshold Threshold to 0.5, remove the ones with scores si less than the threshold 0.5, and determine the two best detection frames. This shows that there are actually two cracks at this location.

[0108] According to the above method, even at a low retrieval rate, the detection performance is still greatly improved.

[0109] In some implementations, optimizing the parameters in the trained crack detection model according to the comparison result includes:

[0110] The recognition rate and confidence of the cracks by the trained crack detection model are improved by using hyperparameter tuning, which specifically includes the following steps:

[0111] Initialize hyperparameters and set initial values ​​of hyperparameters in the crack detection model; select a weighting function as a fitness function and use the weighting function to weight individual performance indicators; and finally further optimize the hyperparameters based on a genetic algorithm and the weighting function.

[0112] Specifically, the specific steps of using genetic algorithm to optimize the hyperparameters in the Yolo model include:

[0113] (1) Initialize hyperparameters and set the hyperparameters in the Yolo model to their initial values. For example, set the values ​​of 25 parameters such as learning rate lr0, weight decay coefficient weight.decay, and learning rate momentum to the system initial values.

[0114] (2) Define the fitness function as a weighted function, and use the weighted function to weight the individual performance indicators determined in the genetic algorithm; optionally, the weight coefficient components (indicators) correspond to [P, R, mAP@0.5, mAP@0.5:0.95], that is, fitness is the weighted sum of the precision P, the recall rate R, and the scores of mAP@0.5 and mAP_0.5:0.95, and the weight coefficient can be [0.0, 0.0, 0.1, 0.9];

[0115] (3) Hyperparameter optimization is performed based on genetic algorithm (GA). By using genetic algorithm to perform crossover and mutation operations on hyperparameters, the hyperparameter value corresponding to the maximum fitness value is solved to optimize the above 25 parameters.

[0116] See also Figure 3 As shown, an embodiment of the present invention provides a battery pole piece crack detection device 300, the device comprising:

[0117] An image acquisition module 310, adapted to acquire a SEM image of a battery electrode to be inspected;

[0118] The model detection module 320 is suitable for inputting the SEM image of the battery pole piece to be detected into a trained crack detection model to obtain a crack detection result; wherein the trained crack detection model is obtained by the following steps: obtaining an SEM image of the battery pole piece, marking the type and position of the cracks in the SEM image, and generating a data set of the SEM image; inputting the data set into a pre-built crack detection model for iterative training; and determining whether a training end condition is met. If the training end condition is met, a trained crack detection model is obtained.

[0119] In some embodiments, the crack detection result includes at least the type, quantity and location of the cracks contained in the SEM image of the battery pole piece to be detected;

[0120] Among them, the type of crack includes at least one of the following types: opening type, sliding type, tearing type, composite type, linear crack, bifurcated crack, multi-bifurcated shape, and annular crack.

[0121] In some embodiments, the image acquisition module 310 is further adapted to:

[0122] The SEM original image of the battery pole piece is obtained, and the particle area is identified and marked from the SEM original image to obtain the SEM image of the battery pole piece to be tested.

[0123] In some embodiments, the trained crack detection model includes a Yolo model, and the Yolo model includes a backbone network CSPdarknet, a neck network PANet, and a detection head;

[0124] The model detection module 320 is also adapted to:

[0125] Extracting target features in the SEM image of the battery pole piece to be detected through the backbone network CSPdarknet;

[0126] Performing feature fusion on the target features through the neck network PANet to obtain a feature map;

[0127] The detection head performs multi-scale target detection on the feature map to obtain the crack detection result.

[0128] In some embodiments, the data set for generating the SEM image in the model detection module 320 includes:

[0129] According to the distribution of electrode particle areas in the SEM images of each battery electrode, the data set is divided into training set, validation set and test set;

[0130] Determining whether a training end condition is met, and if the training end condition is met, obtaining a trained crack detection model includes:

[0131] The crack detection model is trained, verified or tested using a training set, a validation set or a test set respectively, the training, validation or test results are compared with the marking information of the SEM image to obtain a comparison result, and the parameters in the crack detection model are optimized according to the comparison result.

[0132] In some embodiments, optimizing the parameters in the trained crack detection model according to the comparison result includes:

[0133] The optimal detection frame is determined by using a non-maximum suppression method, thereby optimizing the parameters in the trained detection model, specifically including the following steps:

[0134] Step 1, sorting the confidence scores of multiple detection frames in each particle area of ​​the SEM image, and selecting the detection frame M with the highest confidence score;

[0135] Step 2, calculating the overlapping area intersection ratio IoU between other detection frames in the particle area and the detection frame M;

[0136] Step 3: If the IoU between another detection box and the detection box M is greater than the first threshold, the confidence score of the detection box is lowered;

[0137] Step 4: Take the detection frame with the second highest confidence score as the detection frame M, repeat steps 1 to 3, and obtain the updated confidence score ranking of each detection frame;

[0138] Step five: set a second threshold, compare the confidence score ranking of each detection frame after update with the second threshold, and determine the detection frame with a confidence score greater than the second threshold as the best detection frame.

[0139] In some embodiments, optimizing the parameters in the trained crack detection model according to the comparison result includes:

[0140] The recognition rate and confidence of the cracks by the trained crack detection model are improved by using hyperparameter tuning, which specifically includes the following steps:

[0141] Initialize hyperparameters and set the initial values ​​of hyperparameters in the crack detection model;

[0142] Selecting a weighted function as a fitness function, and using the weighted function to weight each of the hyperparameters;

[0143] Each of the hyperparameters is further optimized based on a genetic algorithm and the weighting function.

[0144] The crack detection scheme of the embodiment of the present invention can reduce the number of model parameters and the amount of calculation, improve the detection speed, meet the real-time defect detection of battery pole piece particles in SEM images, and on the other hand, improve the feature extraction capability of battery pole pieces.

[0145] It should be noted that the specific implementation of the above-mentioned device embodiments can be carried out with reference to the specific implementation of the above-mentioned corresponding method embodiments, which will not be repeated here.

[0146] Combination Figure 4 In a specific implementation example shown, battery pole piece crack detection specifically includes the following steps:

[0147] 1. Construct SEM image dataset;

[0148] Select appropriate battery electrode SEM images and perform preprocessing.

[0149] 2. Crack annotation of dataset;

[0150] First, the particle area is marked for each SEM image, crack location and classification are performed, and a crack label is established in the SEM test image in .xml format to record the box area of ​​the crack.

[0151] In an optional embodiment, the crack labels are divided into four categories: (1) opening mode (Type I, Opening mode) crack, (2) sliding mode (Type II, Sliding Mode) crack, (3) tearing mode (Type III, Anti-plane Shear Mode) crack, and (4) composite type.

[0152] 3. Divide the pole piece SEM test image data set into training set, validation set and test set;

[0153] For example, the image dataset can be divided into a training set, a validation set, and a test set in a ratio of 7:2:1.

[0154] 4. Model training;

[0155] Based on the Yolo deep learning model, crack feature training is performed to obtain the trained YoloCrack (crack detection) model, so as to identify, locate and classify cracks in the SEM images of battery pole pieces according to the trained YoloCrack model.

[0156] 5. Model testing, verification and optimization;

[0157] Test, evaluate and optimize the electrode microscopic images based on the YoloCrack model.

[0158] Hyperparameter tuning and non-maximum suppression are used to optimize the model and improve the accuracy of testing and detection.

[0159] 6.YoloCrack model deployment and application;

[0160] The YoloCrack model is deployed in a SEM image scanner to achieve real-time crack monitoring or deployed in a SEM image storage workstation for offline batch crack detection.

[0161] Optionally, the above-mentioned battery pole piece crack detection model and SEM equipment are deployed together in an online detection system. During deployment, it is necessary to generate an updated weight file .pt based on Yolo's crack detection model; based on the weight file, batch detection of pole piece microscopic images is performed.

[0162] 7. Test result output;

[0163] According to the input SEM image, the crack type, crack number and crack position are output after model detection, so as to locate and classify the cracks in the battery pole piece.

[0164] The crack detection scheme disclosed in the above example can reduce the number of model parameters and calculations, improve the detection speed, meet the real-time defect detection of battery pole piece particles in SEM images, and on the other hand improve the feature extraction capability of battery pole pieces.

[0165] Combination Figure 5 It can be seen from the test results shown that the above examples of the present invention improve the efficiency and accuracy of the test, and realize the automatic detection and rapid positioning of battery pole cracks, thereby providing a basis for battery material failure analysis and development and design.

[0166] It should be noted that:

[0167] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general-purpose devices can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific language is for the purpose of disclosing the best mode of the present invention.

[0168] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0169] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0170] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0171] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0172] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the battery pole piece crack detection device according to an embodiment of the present invention. The present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0173] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the above-mentioned battery pole piece crack detection method in any of the above-mentioned method embodiments.

[0174] Figure 6 The schematic diagram of the structure of the electronic device embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.

[0175] like Figure 6 As shown, the electronic device may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .

[0176] Wherein: the processor 602, the communication interface 604, and the memory 606 communicate with each other through the communication bus 608. The communication interface 604 is used to communicate with other devices such as a client or other server network elements. The processor 602 is used to execute the program 610, which can specifically execute the relevant steps in the above-mentioned battery electrode crack detection method embodiment for electronic equipment.

[0177] Specifically, the program 610 may include program codes, which include computer operation instructions.

[0178] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0179] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0180] The program 610 can be specifically used to enable the processor 602 to execute operations corresponding to the above-mentioned battery pole piece crack detection method embodiment.

[0181] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

Claims

1. A method for detecting cracks in a battery pole piece, the method comprising: Obtaining a SEM image of the battery electrode to be tested; Input the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result; wherein the trained crack detection model is obtained by the following steps: Acquire a SEM image of a battery pole piece, mark the type and location of cracks in the SEM image, and generate a data set of the SEM image; Inputting the data set into a pre-built crack detection model for iterative training; It is determined whether a training end condition is met, and if the training end condition is met, a trained crack detection model is obtained.

2. The method according to claim 1, characterized in that The crack detection result at least includes the type, quantity and location of the cracks contained in the SEM image of the battery pole piece to be detected; Among them, the type of crack includes at least one of the following types: opening type, sliding type, tearing type, composite type, linear crack, bifurcated crack, multi-bifurcated shape, and annular crack.

3. The method according to claim 1, characterized in that Before obtaining the SEM image of the battery pole piece to be tested, the method further includes: The SEM original image of the battery pole piece is obtained, and the particle area is identified and marked from the SEM original image to obtain the SEM image of the battery pole piece to be tested.

4. The method according to claim 1, characterized in that: The trained crack detection model includes a Yolo model, and the Yolo model includes a backbone network CSPdarknet, a neck network PANet and a detection head; The step of inputting the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result includes: Extracting target features in the SEM image of the battery pole piece to be detected through the backbone network CSPdarknet; Performing feature fusion on the target features through the neck network PANet to obtain a feature map; The detection head performs multi-scale target detection on the feature map to obtain the crack detection result.

5. The method according to claim 3, characterized in that: The data set for generating the SEM image includes: According to the distribution of electrode particle areas in the SEM images of each battery electrode, the data set is divided into training set, validation set and test set; Determining whether a training end condition is met, if the training end condition is met, obtaining a trained crack detection model includes: The crack detection model is trained, verified or tested using a training set, a validation set or a test set respectively, the training, validation or test results are compared with the marking information of the SEM image to obtain a comparison result, and the parameters in the crack detection model are optimized according to the comparison result.

6. The method according to claim 5, characterized in that Optimizing the parameters in the trained crack detection model according to the comparison result includes: The optimal detection frame is determined by using a non-maximum suppression method, thereby optimizing the parameters in the trained detection model, specifically including the following steps: Step 1, sorting the confidence scores of multiple detection frames in each particle area of ​​the SEM image, and selecting the detection frame M with the highest confidence score; Step 2, calculating the overlapping area intersection ratio IoU between other detection frames in the particle area and the detection frame M; Step 3: If the IoU between another detection box and the detection box M is greater than the first threshold, the confidence score of the other detection box is lowered; Step 4: Take the detection frame with the second highest confidence score as the detection frame M, repeat steps 1 to 3, and obtain the updated confidence score ranking of each detection frame; Step five: set a second threshold, compare the confidence score ranking of each detection frame after update with the second threshold, and determine the detection frame with a confidence score greater than the second threshold as the best detection frame.

7. The method according to claim 5 or 6, characterized in that: Optimizing the parameters in the trained crack detection model according to the comparison result includes: The recognition rate and confidence of the cracks by the trained crack detection model are improved by using hyperparameter tuning, which specifically includes the following steps: Initialize hyperparameters and set the initial values ​​of hyperparameters in the crack detection model; Selecting a weighted function as a fitness function, and using the weighted function to weight individual performance indicators in the genetic algorithm; Each of the hyperparameters is optimized based on a genetic algorithm and the weighting function.

8. A battery pole piece crack detection device, the device comprising: An image acquisition module, suitable for acquiring a SEM image of a battery electrode to be inspected; The model detection module is suitable for inputting the SEM image of the battery pole piece to be detected into the trained crack detection model to obtain the crack detection result; wherein the trained crack detection model is obtained by the following steps: obtaining the SEM image of the battery pole piece, marking the type and position of the crack in the SEM image, and generating a data set of the SEM image; inputting the data set into the pre-built crack detection model for iterative training; judging whether the training end condition is met, and if the training end condition is met, obtaining the trained crack detection model.

9. An electronic device, wherein: The electronic device comprises: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the method for detecting cracks in a battery pole piece according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by the processor, the method for detecting cracks in a battery pole piece according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Deep learning chip packaging crack defect detection method based on YOLO

    CN112967243A

  • Grain crack detection and identification method, computer device and storage medium

    CN113822887A

Cited By

  • Tab cracking detection method and device, computer equipment and readable storage medium

    CN121612885A