Lithium battery pole piece surface defect detection method based on migration learning MCS-YOLOv3

By introducing transfer learning, data enhancement and attention mechanism module CBAM into the network model, the problem of low detection accuracy of small target defects on the surface of lithium battery pole pieces is solved, and higher detection accuracy and robustness are achieved.

CN118570171APending Publication Date: 2024-08-30HARBIN UNIV OF SCI & TECH

Patent Information

Application Number
CN202410710473.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing network model has low detection accuracy for detecting small target defects on the surface of lithium battery pole pieces, and is prone to problems such as missed detection and false detection.

Method used

The MCS-YOLOv3 model based on transfer learning is adopted, and the network's feature extraction capability and detection accuracy for small targets are improved through data enhancement, the introduction of the attention mechanism module CBAM and the replacement of the loss function with the SIoU loss function.

Benefits of technology

The positioning accuracy of surface defect detection of lithium battery pole pieces is improved, missed detections and false detections are reduced, and the robustness and convergence speed of the model are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570171A
    Figure CN118570171A
Patent Text Reader

Abstract

The invention discloses a lithium battery pole piece surface defect detection method based on migration learning MCS-YOLOv3, and belongs to the field of industrial defect detection. According to the invention, the problems of low positioning precision of the detection effect of the small target defect on the surface of the lithium battery pole piece and easy missing detection and false detection are solved. Firstly, in an image preprocessing stage, Mosaic is used for data enhancement, random combination and increase of the number of defect samples, the learning ability and detection ability of a network to defect identification are improved, and the network has better robustness in a complex environment; secondly, in the training stage of the detection model, a transfer learning method is introduced, and the problems of large training fluctuation and long convergence time when the network is subjected to few-sample data training are solved; secondly, a mixed attention module (CBAM) is introduced into the network, so that the feature extraction capability of the network on a small target is improved, and more attention is paid to a defect area; and finally, replacing the original IoU loss function of the YOLOv3 with the SIoU loss function, thereby enhancing the detection precision and improving the convergence speed of the model at the same time. The method is applied to accurate detection of the surface defects of the lithium battery pole piece.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning and lithium battery pole piece surface defect detection, and more specifically, designs a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3. Background Art

[0002] Lithium battery pole pieces are parts used to conduct battery power. During their production, they need to go through coating, rolling and other process flows. During these process flows, some damage will occur, including defects such as bubbles, metal leakage, bright spots and scratches. These defects greatly affect the service life and chemical properties of lithium batteries, further affecting economic development and bringing safety hazards. Therefore, in the production and manufacturing process of lithium battery pole pieces, it is necessary to carry out corresponding defect detection, identify defect categories and locate defect locations, so that enterprises can specify relevant adjustments to the locations where defects exist, while improving production quality, reducing the probability of safety hazards and reducing economic losses.

[0003] The surface defects of lithium battery pole pieces are diverse and have complex textures. In the past, enterprises used manual methods to detect defects in the production process of lithium battery pole pieces. They used naked eye observation or hand touch under specific lighting conditions to detect defects. This method has a good detection rate, but it also has the following disadvantages:

[0004] (1) There are many process flows in the production of electrodes. In the case of mass production, manual inspection is slow, which will lead to an increase in the production cycle of electrodes and a situation where supply exceeds demand.

[0005] (2) Manual inspection involves a certain degree of subjectivity. Although companies have corresponding defect definition standards, the complexity of the defect contour texture and the subjectivity of the brain make it difficult for each quality inspector to achieve uniform standards, which can easily lead to inspection errors.

[0006] (3) When testing under specific lighting conditions for a long time, the testers’ eyes will become tired and their bodies will become exhausted, which may easily lead to testing errors.

[0007] In order to overcome the shortcomings of manual defect detection, manufacturers are eager to develop a set of automatic product defect detection systems that combine computers and industrial equipment. Driven by the needs of the market and daily life, defect detection systems for various products have been developed. With the rapid development of computer technology and industrial intelligence, visual inspection technology based on traditional digital image processing and deep learning has also been developed and applied. Visual inspection technology essentially uses computers and industrial cameras to replace human eyes for inspection. After collecting pictures, industrial cameras transmit them to computers, use visual technologies such as image processing or model training to identify defects, and feedback relevant information to make relevant decisions. Compared with manual inspection, visual inspection has good stability and faster inspection speed. While maintaining the inspection accuracy, it also greatly improves the inspection efficiency. At the same time, it is a non-contact, non-secondary damage inspection technology. This method has greatly improved the shortcomings and disadvantages of manual inspection and is an effective way for industry to realize intelligent inspection. Summary of the invention

[0008] The present invention aims to solve the problems of low positioning accuracy, easy missed detection and false detection in the detection effect of existing network models on small target defects on the surface of lithium battery pole pieces, and provides a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3.

[0009] Step 1: Randomly select 10,000 lithium battery electrode surface defect data of the same specimen to create a data set;

[0010] Step 2: Divide the prepared data set into a training image set, a verification image set, and a test image set;

[0011] Step 3: Preprocessing the surface defect images of lithium battery pole pieces in the training image set;

[0012] Step 4: Build a lithium battery electrode surface defect detection model based on transfer learning MCS-YOLOv3;

[0013] Step 5: Use the training image set to train the lithium battery electrode surface defect detection model;

[0014] Step 6: Use the trained lithium battery electrode surface defect detection model to detect the test image set and finally obtain the detection results.

[0015] Furthermore, in the present invention, in step 1, the surface defect images of lithium battery pole pieces collected by the cooperative company on its actual production line are used, totaling 10,000 pictures, which belong to a non-public data set. The pictures are all colorless grayscale pictures with a resolution of 256×256. The provided data set has 6 main types of pole piece surface defects, namely bubbles, bright spots, dark spots, metal leakage, scratches, and scratches. The original image data in the data set is enhanced and expanded offline and labeled. Among them, in order to continue to increase the number of samples of defective pictures, three methods of angle flipping, mirroring, and mixing of defect-free pictures and defective pictures are used for offline enhancement and expansion. The labeling tool for labeling different defective images is labelimg. The content of the labeling is mainly to mark the position of the surface defects of the pole piece with a rectangular box, and label the marked rectangular box.

[0016] Furthermore, in the present invention, in step 2, the data set processed in step 1 is divided, and the first 60% of the images in the data set are selected as the training image set, the middle 20% of the images are selected as the verification image set, and the last 20% of the images are selected as the test image set.

[0017] Furthermore, in the present invention, in step 3, Mosaic data enhancement is performed on the surface defect image of the lithium battery pole piece in the preprocessing stage. Mosaic data enhancement is to randomly select four pictures and combine them during image preprocessing, so that a new picture can be obtained. Then, the picture and label data are continued to be mapped in the range of (0, 1) and passed into the established network for learning.

[0018] Further, in the present invention, in step 4, the construction of the lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 is implemented according to the following steps:

[0019] Step 4.1: For the original YOLOv3 network, build a pre-training module based on YOLOv3, adopt the strategy of transfer learning, pre-train the original YOLOv3 network on the large-scale original domain dataset MS-COCO dataset, and then obtain the weight parameters of the original YOLOv3 network trained on the MS-COCO dataset, and then initialize the new network weight parameters with the trained network weight parameters;

[0020] Step 4.2: Based on the original YOLOv3 network, the attention mechanism module CBAM is introduced. The backbone network of YOLOv3 is the Darknet-53 model. This model uses the step size of the convolution kernel instead of the maximum pooling to change the tensor size transformation in the forward propagation. It uses a network structure similar to FPN to extract feature maps of different scales. The basic component DBL of the YOLOv3 network structure consists of a convolution layer, a BN layer, and a Leaky ReLU activation function. The residual unit is formed by the convolution and jump connection of two DBLs. While deepening the number of layers of the neural network, the gradient disappearance problem is effectively avoided. Darknet-53 alternately uses residual units and 3×3 convolution kernels with a step size of 2 to reduce the input model 416×416 size image by 32 times. Subsequent multiple convolutions and two upsamplings ensure that the tensor scale is the same when FPN is spliced, and outputs three feature maps of different scales. Among them, the feature maps of the second and third layers are obtained by upsampling the feature maps of the previous layer and fusing them with the feature maps of the same size in the lower network. The present invention embeds the attention module CBAM into 5 positions of the YOLOv3 network structure, which are respectively located after the 3 feature layers output by the backbone network Darknet-53 model and after the two feature layers obtained by upsampling processing in the feature fusion stage, so as to obtain the improved network model YOLOv3-CBAM;

[0021] Step 4.3: For the original YOLOv3 network, the present invention uses a more advanced SIoU loss function to replace the IoU loss function of the original YOLOv3 network. SIoU takes into account three aspects: angle, distance, and shape. First, the angle variable α is introduced to correct the deviation of the prediction box angle, where α is the angle between the line connecting the center point of the real box and the prediction box and the x-axis. The prediction box approaches the real box along the x-axis. If α≥π / 4, it continues to approach in the other direction. Secondly, considering the distance between the real box and the prediction box, the distance-related variable Δ is introduced to solve the position offset problem between the prediction box and the real box. Δ is defined as:

[0022]

[0023] in,

[0024]

[0025] When α approaches 0, Δ becomes smaller, and when α approaches π / 4, Δ becomes larger.

[0026] Finally, considering the shape of the prediction box, we introduce a shape-related variable Ω, which is defined as:

[0027]

[0028] in,

[0029]

[0030] From the definition, shape loss mainly looks at whether the shape of the regression box is similar to the label box. The value of shape loss is unique in each dataset. The value of θ controls the importance of shape loss. The value of θ defined in the experiment in this study is 4.

[0031] Based on the above three points, the loss function SIoU is obtained:

[0032]

[0033] in,

[0034]

[0035] The total loss function is:

[0036] L=W box L b0x +W ClS L cls (9)

[0037] Among them, W box is the bounding box loss weight, W cls is the classification probability loss weight, L cls is the focal loss. The total loss function L includes the bounding box loss and the classification probability loss.

[0038] Step 4.4, combine the YOLOv3-based pre-training module built in step 4.1, the improved network model YOLOv3-CBAM built in step 4.2, and the loss function module replaced in step 4.3 to complete the construction of the lithium battery pole surface defect detection model based on transfer learning MCS-YOLOv3.

[0039] Furthermore, in the present invention, in step 5, the preprocessed training image set is used to import the built lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 for training, and the network training uses the following training parameters: the learning rate is 0.01, the number of model iterations is set to 220 times, the batch_size is 8, and the optimizer uses Adam. When the model loss function and the average accuracy value tend to be stable, the final weight of the training is obtained, and then the trained model is obtained.

[0040] Furthermore, in the present invention, in step 6, the test image set is imported and tested for the trained lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3, and the algorithm performance is evaluated using the average accuracy mAP, recall rate Recall, and accuracy Precision to obtain the final detection result.

[0041] Beneficial Effects

[0042] The present invention uses a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3. First, in the image preprocessing stage, Mosaic is used for data enhancement, and the number of defect samples is randomly combined and increased to improve the network's learning ability and detection ability for defect recognition, so that the network has better robustness in the face of complex environments. Secondly, in the training stage of the model, a transfer learning method is introduced to alleviate the problems of large training fluctuations and long convergence time when the network is trained with a small number of sample data. Thirdly, a hybrid attention module CBAM is introduced into the network to improve the network's feature extraction ability for small targets, especially paying more attention to defect areas. Finally, the SIoU loss function is used instead of the original IoU loss function of YOLOv3, which enhances the detection accuracy and improves the model convergence speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 This is a flow chart of a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 in the method of the present invention.

[0044] Figure 2 It is a network structure diagram of the improved network model YOLOv3-CBAM in the method of the present invention.

[0045] Figure 3 It is the overall structure diagram of the attention mechanism module CBAM in the method of the present invention.

[0046] Figure 4 It is a structural diagram of the channel attention module of the attention mechanism module CBAM in the method of the present invention.

[0047] Figure 5 It is a structural diagram of the spatial attention module of the attention mechanism module CBAM in the method of the present invention.

[0048] Figure 6 This is an experimental verification effect diagram of a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 in the method of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention. It should be noted that the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.

[0050] Specific implementation method 1: refer to Figure 1 Specifically describing this embodiment, a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 described in this embodiment includes:

[0051] Step 1: Randomly select 10,000 lithium battery electrode surface defect data of the same specimen to create a data set;

[0052] Step 2: Divide the prepared data set into a training image set, a verification image set, and a test image set;

[0053] Step 3: Preprocessing the surface defect images of lithium battery pole pieces in the training image set;

[0054] Step 4: Build a lithium battery electrode surface defect detection model based on transfer learning MCS-YOLOv3;

[0055] Step 5: Use the training image set to train the lithium battery electrode surface defect detection model;

[0056] Step 6: Use the trained lithium battery electrode surface defect detection model to detect the test image set and finally obtain the detection results.

[0057] Furthermore, in the present invention, in step 1, the surface defect images of lithium battery pole pieces collected by the cooperative company on its actual production line are used, totaling 10,000 pictures, which belong to a non-public data set. The pictures are all colorless grayscale pictures with a resolution of 256×256. The provided data set has 6 main types of pole piece surface defects, namely bubbles, bright spots, dark spots, metal leakage, scratches, and scratches. The original image data in the data set is offline enhanced and expanded, and labeled. Among them, in order to continue to increase the number of samples of defective pictures, three methods of angle flipping, mirroring, and mixing of defect-free pictures and defective pictures are used for offline enhancement and expansion. When training the target detection network, the original defective pictures are used as the input of the network training, and the corresponding label data is required to calculate the loss, so as to perform back propagation. The original defective pictures on the surface of lithium battery pole pieces actually collected by the company do not have label information, and it is also necessary to manually label the defective pictures to obtain the labels required for network detection. The labeling tool for labeling different defect images is labelimg. Import the defect image folder and then label it. The content of the labeling is mainly to mark the location of the defect on the surface of the electrode with a rectangular frame and label the marked rectangular frame.

[0058] Furthermore, in the present invention, in step 2, after the previous step is completed, the data set is divided into a training set, a validation set and a test set. The training set is used as the input of the detection network for network training; the validation set does not participate in network training, and is mainly used for network verification, which is convenient for real-time observation and adjustment of network training, without the need for back propagation optimization; the test set is used to test the trained network, obtain test accuracy, and evaluate the network detection effect. The present invention divides the data set processed in step 1, selects the first 60% of the images in the data set as the training image set, the middle 20% of the images as the validation image set, and the last 20% of the images as the test image set.

[0059] Furthermore, in the present invention, in step 3, the surface defect image of the lithium battery pole piece is subjected to Mosaic data enhancement in the preprocessing stage. Mosaic data enhancement is to randomly select four pictures and combine them during image preprocessing, so that a new picture can be obtained. Then, the picture and label data are mapped in the range of (0, 1) and passed into the established network for learning. The specific steps of Mosaic data enhancement are as follows:

[0060] Step 3.1: Determine whether the input image is in the sample set that needs Mosaic data enhancement. If not, do not enhance it and execute step 3.4. If it is, execute step 3.2.

[0061] In step 3.2, randomly select a logical instruction from True or False. If it is False, execute step 3.4. If it is True, execute step 3.3. The purpose of this is to enable multi-scale training for a certain defect.

[0062] Step 3.3: Randomly select three images from the sample set that needs Mosaic data enhancement, and perform Mosaic data enhancement with the current input image;

[0063] Step 3.4: Input the image into the network.

[0064] Furthermore, in the present invention, in step 4, the construction of the lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 is implemented according to the following steps:

[0065] Step 4.1: For the original YOLOv3 network, build a pre-training module based on YOLOv3, adopt the strategy of transfer learning, pre-train the original YOLOv3 network on the large-scale original domain dataset MS-COCO dataset, and then obtain the weight parameters of the original YOLOv3 network trained on the MS-COCO dataset, and then initialize the new network weight parameters with the trained network weight parameters;

[0066] Step 4.2: Based on the original YOLOv3 network, the attention mechanism module CBAM is introduced. The backbone network of YOLOv3 is the Darknet-53 model. This model uses the step size of the convolution kernel instead of the maximum pooling to change the tensor size transformation in the forward propagation. It uses a network structure similar to FPN to extract feature maps of different scales. The basic component DBL of the YOLOv3 network structure consists of a convolution layer, a BN layer, and a Leaky ReLU activation function. The residual unit is formed by the convolution and jump connection of two DBLs. While deepening the number of layers of the neural network, the gradient disappearance problem is effectively avoided. Darknet-53 alternately uses residual units and 3×3 convolution kernels with a step size of 2 to reduce the input model 416×416 size image by 32 times. Subsequent multiple convolutions and two upsamplings ensure that the tensor scale is the same when FPN is spliced, and outputs three feature maps of different scales. Among them, the feature maps of the second and third layers are obtained by upsampling the feature maps of the previous layer and fusing them with the feature maps of the same size in the lower network.

[0067] The present invention embeds the attention module CBAM into five positions of the YOLOv3 network structure, which are located after the three feature layers output by the backbone network Darknet-53 model and after the two feature layers obtained by upsampling in the feature fusion stage, so as to obtain the improved network model YOLOv3-CBAM, the structure of which is as follows: Figure 2As shown in Figure 2. The attention mechanism module CBAM infers the attention map in two independent dimensions (channel and space) in turn, multiplies the attention map with the input feature map, and performs adaptive feature optimization. The output of the convolutional layer is shown in Figure 2. Figure 3 As shown, after passing through the channel attention module, it is weighted with the original input result. After obtaining the weighted result, it passes through the spatial attention module and is weighted with the previous weighted result. The implementation of the channel attention mechanism can be divided into two parts. First, for a single feature layer of the input, global average pooling and global maximum pooling are performed respectively. Then, the results of average pooling and maximum pooling are processed using a shared fully connected layer. After processing, the two results are added. Finally, the activation function Sigmoid is used to obtain the weight (0~1) of each channel of the input feature layer. After obtaining this weight, this weight is multiplied by the original input feature layer. The implementation process is as follows Figure 4 As shown in . The spatial attention mechanism takes the maximum and average values ​​of the channels of each feature point in the input feature layer, then stacks the two results, adjusts the number of channels using a convolution with a channel number of 1, and then uses the activation function Sigmoid to obtain the weight (0 to 1) of each feature point in the input feature layer, and finally multiplies this weight by the original input feature layer. The implementation process is as follows Figure 5 shown.

[0068] After the introduction of the attention mechanism module CBAM, the network can perform refined processing on the region of interest, further improve the network's positioning of the region of interest, and obtain higher detection accuracy.

[0069] Step 4.3: For the original YOLOv3 network, the present invention uses a more advanced SIoU loss function to replace the IoU loss function of the original YOLOv3 network. SIoU takes into account three aspects: angle, distance, and shape. First, the angle variable α is introduced to correct the deviation of the prediction box angle, where α is the angle between the line connecting the center point of the real box and the prediction box and the x-axis. The prediction box approaches the real box along the x-axis. If α≥π / 4, it continues to approach in the other direction. Secondly, considering the distance between the real box and the prediction box, the distance-related variable Δ is introduced to solve the position offset problem between the prediction box and the real box. Δ is defined as:

[0070]

[0071] in,

[0072]

[0073] When α approaches 0, Δ becomes smaller, and when α approaches π / 4, Δ becomes larger.

[0074] Finally, considering the shape of the prediction box, we introduce a shape-related variable Ω, which is defined as:

[0075]

[0076] in,

[0077]

[0078] From the definition, shape loss mainly looks at whether the shape of the regression box is similar to the label box. The value of shape loss is unique in each dataset. The value of θ controls the importance of shape loss. The value of θ defined in the experiment in this study is 4.

[0079] Based on the above three points, the loss function SIoU is obtained:

[0080]

[0081] in,

[0082]

[0083] The total loss function is:

[0084] L=W box L box +W cls L cls (9)

[0085] Among them, W box is the bounding box loss weight, W cls is the classification probability loss weight, L cls is focal loss. The total loss function L includes the bounding box loss and the classification probability loss. The total loss function L includes the bounding box loss and the classification probability loss. In the bounding box loss part, the problem of mismatch between the predicted box and the real box is solved by introducing three parameters: angle, distance and shape. The angle vector is used to correct the deviation angle of the predicted box, the distance-related variables are used to solve the position offset problem between the predicted box and the real box, and the shape-related variables are introduced to regulate the shape of the bounding box. The introduced loss function SIoU takes into account the overlap of the two boxes, the center point distance and shape, etc., which effectively solves the problem of mismatch between the bounding boxes when the defect detection model performs complex defect prediction, and enhances the detection accuracy while also improving the model convergence speed.

[0086] Step 4.4, combine the YOLOv3-based pre-training module built in step 4.1, the improved network model YOLOv3-CBAM built in step 4.2, and the loss function module replaced in step 4.3 to complete the construction of the lithium battery pole surface defect detection model based on transfer learning MCS-YOLOv3.

[0087] Furthermore, in the present invention, in step 5, the preprocessed training image set is used to import the built lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 for training, and the network training uses the following training parameters: the learning rate is 0.01, the number of model iterations is set to 220 times, the batch_size is 8, and the optimizer uses Adam. When the model loss function and the average accuracy value tend to be stable, the final weight of the training is obtained, and then the trained model is obtained.

[0088] Furthermore, in the present invention, in step 6, the test image set pictures are standardized so as to be imported into the trained lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3. Then, the model will output the standardized pictures and perform output area threshold filtering to filter out locations where lithium battery pole piece surface defects are unlikely to exist. Next, the confidence threshold is used to filter the final results, and only lithium battery pole piece surface defect targets with confidence levels greater than the threshold will be output as the final detection, and then the renderings and parameter results of the lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 are output. In order to better reflect the optimization effect of the method of the present invention on the original YOLOv3, Figure 6 The detection effects before and after optimization are demonstrated, and it can be seen that the method of the present invention significantly improves the detection effect of small target defects on the surface of lithium battery pole pieces, and the problems of low positioning accuracy, easy missed detection, false detection, etc.

[0089] Table 1 shows the comparison results of the method proposed in the present invention and other target detection algorithms SSD, Faster-RCNN, and YOLOv3 on the data set described in the present invention. The results show that the detection performance of the method proposed in the present invention is better than that of other methods, and its detection accuracy of the six types of defects in the data set reaches 96.51%.

[0090] Table 1 Performance comparison of the method of the present invention with other algorithms

[0091]

[0092] As shown in Table 1, the mAP and accuracy of the lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 proposed in the present invention are 96.51% and 97.08%, respectively, which are 2.16% and 0.36% higher than the original YOLOv3. In addition, the number of parameters of the method proposed in the present invention is also greatly optimized compared with other algorithms.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

Claims

1. A lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3, characterized in that: The following steps are involved: Step 1: Randomly select 10,000 lithium battery electrode surface defect data of the same specimen to create a data set; Step 2: Divide the prepared data set into a training image set, a verification image set, and a test image set; Step 3: Preprocessing the surface defect images of lithium battery pole pieces in the training image set; Step 4: Build a lithium battery electrode surface defect detection model based on transfer learning MCS-YOLOv3; Step 5: Use the training image set to train the lithium battery electrode surface defect detection model; Step 6: Use the trained lithium battery electrode surface defect detection model to detect the test image set and finally obtain the detection results.

2. According to claim 1, a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 is characterized in that: The step 1 of preparing the data set includes: offline enhancement and expansion of the original image data in the data set, and labeling.

3. According to claim 1, a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 is characterized in that: In step 2, the data is divided into the following steps: the first 60% of the images in the data set are selected as the training image set, the middle 20% of the images are selected as the verification image set, and the last 20% of the images are selected as the test image set.

4. According to claim 1, a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 is characterized in that: In the preprocessing described in step 3, the surface defect image of the lithium battery electrode is enhanced by Mosaic data. Then, the image and label data are mapped in the range of (0, 1) and input into the network built as follows.

5. According to claim 1, a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 is characterized in that: The construction of the lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 described in step 4 is implemented according to the following steps: Step 4.1: For the original YOLOv3 network, build a pre-training module based on YOLOv3, adopt the strategy of transfer learning, use the MS-COCO dataset to pre-train the YOLOv3 network, and then obtain the weight parameters of the YOLOv3 network trained on the MS-COCO dataset and retain them, and load them into the defect detection model to be built below; Step 4.2: Based on the original YOLOv3 network, the attention mechanism module CBAM is introduced. The backbone network of YOLOv3 is the Darknet-53 model. The attention module CBAM is embedded into five positions of the YOLOv3 network structure, which are located after the three feature layers output by the backbone network Darknet-53 model and after the two feature layers obtained by upsampling in the feature fusion stage, so as to obtain the improved network model YOLOv3-CBAM. Step 4.3: For the original YOLOv3 network, replace the target position information IoU loss function responsible for the prior box position regression prediction with the more advanced SIoU loss function; Step 4.4, combine the YOLOv3-based pre-training module built in step 4.1, the improved network model YOLOv3-CBAM built in step 4.2, and the loss function module replaced in step 4.3 to complete the construction of the lithium battery pole surface defect detection model based on transfer learning MCS-YOLOv3.

6. According to claim 1, a lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 is characterized in that: In step 5, the preprocessed training image set is used to import the built lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 for training. The model training parameters are set as follows: the learning rate is 0.01, the number of model iterations is set to 220 times, the batch_size is 8, and the optimizer uses Adam to obtain the final weight of the training, thereby obtaining the trained model.

7. A lithium battery pole piece surface defect detection method based on transfer learning MCS-YOLOv3 according to claim 1, characterized in that: The data set described in step 6 is directly provided by the cooperative company and is derived from the collection of the company's actual production line. It is a non-public data set with a total of 10,000 samples. The first 60% of the images in the data set are selected as the training image set, the middle 20% of the images are selected as the verification image set, and the last 20% of the images are selected as the test image set. The test image set is imported into the trained lithium battery pole piece surface defect detection model based on transfer learning MCS-YOLOv3 for testing. The recall rate Recall, accuracy Precision, and average accuracy mAP are used to evaluate the algorithm performance to obtain the final detection results. In the formula, TP represents the number of real defect targets correctly detected by the network, FN represents the number of real defect targets not detected by the network, FP represents the number of non-target defects detected by the network as real target defects, and AP represents the average precision of each class.

Citation Information

Patent Citations

  • Lithium battery defect detection method based on improved YOLOv4

    CN114049313A

  • Insulator defect detection method based on improved YOLOv3 convolutional neural network

    CN114283117A

  • Battery pole piece surface defect detection method and processor

    CN115908332A

  • Battery pole piece defect detection method, computing equipment and storage medium

    CN117058105A

Cited By

  • Training method of migration target detection model from GPU to NPU and target detection method

    CN120911529A