Abnormal pole piece detection method and device, electronic equipment and storage medium

Through the anomaly detection model and feature fusion technology, combined with labeled and unlabeled data, the problem of insufficient labeled data in pole piece anomaly detection is solved, the detection accuracy and efficiency are improved, and it is suitable for complex pole piece characteristics and real-time detection.

CN118570552APending Publication Date: 2024-08-30HEFEI GUOXUAN HIGH TECH POWER ENERGY

Patent Information

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

AI Technical Summary

Technical Problem

Existing pole piece anomaly detection methods require a large amount of annotated data, and traditional machine vision technology has limited ability to recognize complex nonlinear abnormal patterns, resulting in low efficiency and insufficient accuracy in pole piece anomaly detection.

Method used

By using the anomaly detection model, combined with labeled and unlabeled cell pictures, and using the comparison model and feature extraction layer, feature fusion layer, and detection layer, multi-size feature maps are generated for feature fusion and detection to achieve abnormal detection of pole pieces and reduce The need for manual annotation of data.

Benefits of technology

Without adding manual annotation data, the accuracy of pole piece anomaly detection is improved, labor costs are reduced, and it is suitable for real-time online detection of complex pole piece characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570552A
    Figure CN118570552A
Patent Text Reader

Abstract

The embodiment of the invention provides an abnormal pole piece detection method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: determining a to-be-detected picture of a to-be-detected battery cell; inputting the to-be-detected picture into the anomaly detection model to obtain an output target detection result; the anomaly detection model is trained by taking a labeled battery cell picture and an unlabeled battery cell picture as training samples and taking labeling information corresponding to the labeled battery cell picture and a first result corresponding to the unlabeled battery cell picture as training labels; the first result is obtained in the following mode: inputting each unlabeled battery cell picture into a trained comparison model, and obtaining a first result of each unlabeled battery cell picture output by the comparison model; the comparison model is trained by taking the labeled battery cell picture as a training sample and taking the labeling information corresponding to the labeled battery cell picture as a training label. According to the embodiment of the invention, the anomaly detection accuracy of the pole piece is improved on the basis of a small number of marked battery cell pictures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a method, device, electronic device and storage medium for detecting abnormal pole pieces. Background Art

[0002] The pole piece is an important part of the battery, and its performance directly affects the overall performance and life of the battery. Therefore, the quality control of the pole piece is very important, especially the abnormal detection of the pole piece. In the manufacturing process of lithium batteries, if the production process is not appropriate, it may lead to abnormal connection of the pole piece, and such batteries often fail to meet the production standards.

[0003] In recent years, with the development of deep learning technology, some studies have begun to try to apply deep learning to pole piece anomaly detection. However, a large amount of labeled data is required to train the model. Therefore, there is a problem that it is impossible to train a model with high pole piece anomaly detection accuracy based on a small amount of labeled data. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for detecting abnormal pole pieces, which are used to solve the technical problem that a model with high pole piece abnormality detection accuracy cannot be trained based on a small amount of labeled data.

[0005] According to a first aspect of an embodiment of the present application, a method for detecting an abnormal pole piece is provided, the method comprising: determining a to-be-detected picture of a to-be-detected battery cell, the to-be-detected picture including a display area of ​​the to-be-detected pole piece on the to-be-detected battery cell; The image to be detected is input into the anomaly detection model to obtain the target detection result output by the anomaly detection model. The target detection result is used to characterize whether the electrode to be detected is normal; The anomaly detection model is trained using the labeled battery cell images in the first training set and the unlabeled battery cell images in the second training set as training samples, and using the labeling information corresponding to the labeled battery cell images and the first results corresponding to the unlabeled battery cell images as training labels; The first result is obtained by: Inputting each unlabeled battery cell image in the second training set into the trained comparison model to obtain a first result of each unlabeled battery cell image output by the comparison model; The comparison model is trained using the labeled battery cell images in the first training set as training samples and the label information corresponding to the labeled battery cell images as training labels; Each labeled cell image includes a display area of ​​a pole piece on a corresponding first sample cell, and the labeled information of each labeled cell image is used to indicate whether the pole piece on the corresponding first sample cell is normal; Each unlabeled battery cell image includes a display area of ​​an electrode piece on a corresponding second sample battery cell, and the first result of each unlabeled battery cell image is used to indicate whether the electrode piece on the corresponding first sample battery cell is normal.

[0006] In a possible implementation, the first training set is generated in the following manner: Acquire at least one labeled first battery cell image and labeling information corresponding to the first battery cell image; the first battery cell image is a battery cell image including a display area of ​​a normal electrode piece or a display area of ​​an abnormal electrode piece; Using the first battery cell image as a training sample and the annotation information corresponding to the first battery cell image as a training label to train the first model until convergence, so as to serve as a screening model; Inputting unlabeled battery cell images into the screening model, obtaining predicted labeling information of each unlabeled battery cell image output by the screening model and the confidence level corresponding to the predicted labeling information; Taking the unlabeled battery cell pictures whose confidence levels are lower than the confidence threshold as the second battery cell pictures, labeling the second battery cell pictures, and obtaining labeling information corresponding to each second battery cell picture; The first battery cell image and the second battery cell image are both used as labeled battery cell images to form a first training set.

[0007] In another possible implementation, the training process of the comparison model includes: Based on the labeled battery cell images in the first training set and the labeling information corresponding to the labeled battery cell images, the second model is trained until convergence to serve as a comparison model; Among them, a round of iterative training includes: Inputting each labeled battery cell image in the first training set into the second model to obtain a feature representation of each labeled battery cell image; For any two labeled battery cell images, determine the contrast loss between the two labeled battery cell images according to the feature representation of the two labeled battery cell images; Determine a first contrast loss according to the contrast loss between any two labeled battery cell images having the same labeling information; Determine a second contrast loss according to the contrast loss between any two of the labeled battery cell images with different labeling information; Update the parameters of the second model according to the first contrast loss and the second contrast loss.

[0008] In another possible implementation, the anomaly detection model includes: a feature extraction layer, a feature fusion layer, and a detection layer; the image to be detected is input into the feature extraction layer to obtain a plurality of target feature maps of different sizes output by the feature extraction layer; Input multiple target feature maps of different sizes into the feature fusion layer for feature fusion, and obtain multiple fused feature maps output by the feature fusion layer; Multiple target fusion feature maps of different sizes are input into the detection layer to obtain the target detection result output by the detection layer.

[0009] In yet another possible implementation, the plurality of target feature maps of different sizes include a first target feature map, a second target feature map, a third target feature map, and a fourth target feature map; The image to be detected is input into the feature extraction layer to obtain multiple target feature maps of different sizes output by the feature extraction layer, including: Down-sample the image to be detected, segment and concatenate the down-sampled feature map, and obtain a first target feature map; Down-sampling the first target feature map, segmenting and concatenating the down-sampled feature map, and obtaining a second target feature map; Down-sampling the second target feature map, segmenting and concatenating the down-sampled feature map, and obtaining a third target feature map; The third target feature map is downsampled, and segmentation and concatenation operations are performed on the downsampled feature map to obtain a fourth target feature map.

[0010] In yet another possible implementation, a pooling operation is performed on the fourth target feature map through a plurality of pooling layers connected in series to obtain a pooling feature map output by each pooling layer; The pooling feature maps output by each pooling layer are spliced ​​to obtain a first spliced ​​feature map; Using multiple convolution kernels of preset sizes, respectively extracting features from the first concatenated feature map to obtain multiple first features of different sizes; Splicing first features of different sizes in the channel dimension to obtain a second spliced ​​feature map; Average pooling is performed on the feature values ​​on each channel of the second concatenated feature map to obtain a first global description vector for the target feature map; the global description vector is used to characterize the global information of each channel of the target feature map; Inputting the first global description vector of the second concatenated feature map into the first fully connected layer to obtain a second global description vector of a preset dimension output by the first fully connected layer; the preset dimension is smaller than the channel dimension of the target feature; The second global description vector is input into the second fully connected layer to obtain a third global description vector; the number of neurons in the second fully connected layer is the same as the channel dimension of the fourth target feature map; Input the third global description vector of the channel dimension into the activation function to obtain the weight of each channel; For each channel, the eigenvalues ​​of the channel are weighted based on the weight of the channel to obtain the weighted eigenvalues; Based on the weighted eigenvalues ​​in each channel, a fourth target feature map to be input into the feature fusion layer is obtained.

[0011] In another possible implementation, the fourth target feature map is upsampled, and the upsampled result is concatenated with the third target feature map to obtain a first fused feature map; Perform segmentation and splicing operations on the first fused feature map to obtain a spliced ​​first fused feature map; Upsampling the spliced ​​first fused feature map, and splicing the upsampling result with the second target feature map to obtain a second fused feature map; Perform segmentation and splicing operations on the second fused feature map to obtain a spliced ​​second fused feature map; Upsampling the spliced ​​second fused feature map, and splicing the upsampling result with the first target feature map to obtain a third fused feature map; Perform segmentation and splicing operations on the third fused feature map to obtain a first target fused feature map; Performing a convolution operation on the first target fusion feature, and splicing the convolution result with the spliced ​​second fusion feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a second target fusion feature map; Performing a convolution operation on the second target fusion feature map, and splicing the convolution result with the spliced ​​first fusion feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a third target fusion feature map; Performing a convolution operation on the third target fusion feature map, splicing the convolution result with the fourth target feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a fourth target fusion feature map; The first target fusion feature, the second target fusion feature, the third target fusion feature and the fourth target fusion feature output by the feature fusion layer are obtained.

[0012] In yet another possible implementation, the segmentation and concatenation operations include: For any feature map to be segmented and spliced, perform a convolution operation on the feature map to obtain a convolved feature map; Segment the convolved feature map to obtain a first segmentation feature map and a second segmentation feature map; Input the first segmentation feature image into multiple serially connected bottleneck blocks for convolution operation to obtain a reference feature image output by each bottleneck block; The reference feature map output by each bottleneck block and the second segmentation feature map are spliced ​​to obtain a feature map that has been segmented and spliced ​​and corresponds to the feature map to be segmented and spliced.

[0013] In another possible implementation, the target detection result is a to-be-detected picture or a to-be-detected picture containing a detection frame, and the detection frame is used to characterize an abnormal area of ​​the to-be-detected electrode on the to-be-detected picture; the detection layer includes: a detection module and a screening module; When the target detection result is a to-be-detected picture containing a detection frame, for a target fusion feature map of any size, the target fusion feature map is input into the detection module to obtain at least one candidate detection frame information output by the detection module; the candidate detection frame information includes: coordinates and confidence of the candidate detection frame; According to the confidence of each candidate detection frame, the information of each candidate detection frame is put into the candidate detection frame list in descending order of confidence; Perform multiple rounds of iterative screening according to the information of each candidate detection frame in the candidate detection frame list until the candidate detection frame list is empty or the maximum confidence in the candidate detection frame list is less than a preset confidence threshold, and output a picture to be detected containing at least one detection frame; A round of iterative screening includes: Determine the candidate detection frame with the highest confidence from the candidate detection frame list of this round, use the candidate detection frame as the detection frame, and delete it from the candidate detection frame list; For the detection frame and any candidate detection frame in the candidate detection frame list, determining an overlapping area between the detection frame and the candidate detection frame according to the coordinates of the detection frame and the coordinates of the candidate detection frame; For any candidate detection frame, if the overlapping area between the candidate detection frame and the detection frame is greater than the overlapping threshold, the candidate detection frame is deleted from the candidate frame list to obtain the next round of candidate detection frame list.

[0014] According to a second aspect of an embodiment of the present application, a device for detecting abnormal pole pieces is provided, the device comprising: A determination module, used to determine a picture to be detected of the battery cell to be detected, wherein the picture to be detected includes a display area of ​​a pole piece to be detected on the battery cell to be detected; An input module is used to input the image to be detected into the anomaly detection model to obtain the target detection result output by the anomaly detection model. The target detection result is used to characterize whether the electrode to be detected is normal; The anomaly detection model is trained using the labeled battery cell images in the first training set and the unlabeled battery cell images in the second training set as training samples, and using the labeling information corresponding to the labeled battery cell images and the first results corresponding to the unlabeled battery cell images as training labels; The first result is obtained by: Inputting each unlabeled battery cell image in the second training set into the trained comparison model to obtain a first result of each unlabeled battery cell image output by the comparison model; The comparison model is trained using the labeled battery cell images in the first training set as training samples and the label information corresponding to the labeled battery cell images as training labels; Each labeled cell image includes a display area of ​​a pole piece on a corresponding first sample cell, and the labeled information of each labeled cell image is used to indicate whether the pole piece on the corresponding first sample cell is normal; Each unlabeled battery cell image includes a display area of ​​an electrode piece on a corresponding second sample battery cell, and the first result of each unlabeled battery cell image is used to indicate whether the electrode piece on the corresponding first sample battery cell is normal.

[0015] According to a third aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory, and when the processor executes the program, the steps of the method provided in the first aspect are implemented.

[0016] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect are implemented.

[0017] According to the fifth aspect of the embodiment of the present application, a computer program product is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device executes the steps of implementing the method provided in the first aspect.

[0018] The beneficial effects of the technical solution provided by the embodiment of the present application are: The method for detecting abnormal pole pieces provided in the embodiment of the present application determines the picture to be detected of the battery cell to be detected, and inputs the picture to be detected into the abnormal detection model. Since the picture to be detected includes the display area of ​​the pole piece to be detected of the battery cell to be detected, the output of the abnormal detection model can be obtained to characterize whether the pole piece to be detected is normal. Since the abnormal detection model is trained with labeled battery cell pictures and unlabeled battery cell pictures as training samples, and with the annotation information corresponding to the labeled battery cell pictures and the first result corresponding to the unlabeled battery cell pictures as training labels, and the first result used to train the abnormal detection model is obtained by detection based on the comparison model obtained by training the labeled battery cell pictures, it is achieved that a large number of training samples for training the abnormal detection model can be obtained by using a small amount of manually labeled battery cell pictures, so that the characteristics of normal pole pieces and abnormal pole pieces can be effectively learned in the process of training the abnormal detection model. Without increasing the number of manually labeled labeled battery cell pictures, the accuracy of pole piece abnormality detection of the abnormal detection model can also be greatly improved, while reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.

[0020] Figure 1 A schematic diagram of the system architecture for implementing a method for detecting abnormal pole pieces provided in an embodiment of the present application; Figure 2 A schematic flow chart of a method for detecting abnormal pole pieces provided in an embodiment of the present application; Figure 3 A schematic flow chart of a method for generating a first training set in a method for detecting abnormal pole pieces provided in an embodiment of the present application; Figure 4 A schematic flow chart of a one-round iterative training method of a comparison model in a method for detecting abnormal pole pieces provided in an embodiment of the present application; Figure 5 A schematic diagram of a process for obtaining a target detection result in a method for detecting an abnormal pole piece provided in an embodiment of the present application; Figure 6 A schematic diagram of a network structure of a comparison model in a method for detecting an abnormal pole piece provided in an embodiment of the present application; Figure 7 A schematic diagram of a flow chart of obtaining a plurality of target characteristic graphs of different sizes in a method for detecting an abnormal pole piece provided in an embodiment of the present application; Figure 8 A schematic flow chart of a method for obtaining a fourth target feature map to be input into a feature fusion layer in a method for detecting an abnormal pole piece provided in an embodiment of the present application; Fig. 9 A flow chart of a method for obtaining multiple target fusion features in a method for detecting abnormal pole pieces provided in an embodiment of the present application; Fig.10 A schematic diagram of the flow of segmenting and splicing a feature map in a method for detecting an abnormal pole piece provided in an embodiment of the present application; Fig.11 A flow chart of a method for obtaining a target detection result in another abnormal pole piece detection method provided in an embodiment of the present application; Fig.12 A schematic flow chart of a method for iterative screening in another method for detecting abnormal pole pieces provided in an embodiment of the present application; Fig.13 A schematic diagram of the network structure of an abnormality detection model in a method for detecting an abnormal pole piece provided in an embodiment of the present application; Fig.14A schematic flow chart of a method for detecting abnormal pole pieces provided in an embodiment of the present application; Fig.15 A schematic diagram of the structure of a detection device for abnormal pole pieces provided in an embodiment of the present application; Fig.16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0022] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".

[0023] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0024] The following is an explanation of the relevant technologies: At present, the abnormality detection of pole pieces mainly relies on manual visual inspection or traditional machine vision technology. However, these methods have some problems: on the one hand, manual visual inspection is inefficient, easy to fatigue and highly subjective; on the other hand, traditional machine vision technology can usually only process simple and regular image features, and has limited ability to recognize complex and nonlinear abnormal patterns. In recent years, with the development of deep learning technology, some studies have begun to try to apply deep learning to the abnormality detection of pole pieces. For example, by using convolutional neural networks (CNN) to extract features from pole piece images, and then using traditional machine learning models such as support vector machines (SVM) or random forests (Random Forest) for classification to determine whether the pole piece is normal. However, although deep learning has shown potential in pole piece abnormality detection, the following problems still exist: 1. Existing deep learning-based detection methods usually require a large amount of labeled data to train the model. However, in the actual application of pole piece anomaly detection, the number of abnormal samples is often small, making this method difficult to implement. Most of the pole piece anomalies are difficult to detect due to similar colors, which brings certain difficulties to model recognition; 2. Traditional machine vision technology or shallow learning models can only process simple and regular image features, and have limited ability to recognize complex and nonlinear abnormal patterns. Deep learning models designed for specific types and characteristics of electrodes may not be able to generalize well to other types of electrodes; 3. Some existing deep learning models have high computational complexity, which limits their application in real-time online anomaly detection systems; 4. Current methods for detecting anomalies in pole pieces still rely heavily on manual visual inspection, which is not only inefficient but also prone to human errors.

[0025] In view of at least one of the above-mentioned technical problems or areas that need to be improved in the related art, the present application proposes a method for detecting abnormal pole pieces, by determining a to-be-detected picture of a to-be-detected battery cell and inputting the to-be-detected picture into an abnormality detection model. Since the to-be-detected picture includes a display area of ​​the to-be-detected pole piece of the to-be-detected battery cell, the output of the abnormality detection model can be obtained to characterize whether the pole piece to be detected is normal. Since the abnormality detection model is trained with labeled battery cell pictures and unlabeled battery cell pictures as training samples, and with the labeling information corresponding to the labeled battery cell pictures and the first result corresponding to the unlabeled battery cell pictures as training labels, and the first result used to train the abnormality detection model is obtained by detection based on a comparison model obtained by training the labeled battery cell pictures, it is achieved that a large number of training samples for training the abnormality detection model can be obtained by using a small amount of manually labeled battery cell pictures, so that the characteristics of normal pole pieces and abnormal pole pieces can be effectively learned in the process of training the abnormality detection model. Without increasing the number of manually labeled labeled battery cell pictures, the accuracy of pole piece abnormality detection of the abnormality detection model can also be greatly improved, while reducing labor costs.

[0026] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0027] Figure 1 A schematic diagram of the system architecture for implementing a method for detecting abnormal pole pieces provided in an embodiment of the present application, wherein the system architecture includes: a terminal 120 and a server 140.

[0028] The terminal 120 installs and runs an application program having a method for detecting abnormal electrodes. The terminal 120 is used to determine whether the electrode to be detected in the image to be detected is normal according to the abnormality detection model.

[0029] The terminal 120 is connected to the server 140 via a wireless network or a wired network.

[0030] The server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, the server 140 includes a processor 144 and a memory 142, and the memory 142 includes a display module 1421, a control module 1422, and a receiving module 1423. The server 140 is used to provide background services for the application of the abnormal pole piece detection method. Optionally, the server 140 undertakes the main computing work, and the terminal 120 undertakes the secondary computing work; or, the server 140 undertakes the secondary computing work, and the terminal 120 undertakes the main computing work; or, the server 140 and the terminal 120 use a distributed computing architecture for collaborative computing.

[0031] Optionally, the device types of the terminal include: at least one of a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer and a desktop computer.

[0032] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.

[0033] The present application provides a method for detecting abnormal pole pieces. Figure 2 As shown, the method includes: S101, determining a picture to be inspected of a battery cell to be inspected, wherein the picture to be inspected includes a display area of ​​a pole piece to be inspected on the battery cell to be inspected.

[0034] In an embodiment of the present application, the battery cell to be inspected is composed of key materials such as electrode, electrolyte and diaphragm. During the manufacturing process of the battery cell, the abnormality of the electrode will cause the battery cell to fail to meet the inspection standards. Therefore, after the production of the battery cell is completed, it is necessary to inspect the electrode of the battery cell to be inspected. The image to be inspected of the battery cell to be inspected includes a display area of ​​the electrode of the battery cell to be inspected, which is used to determine whether the electrode of the battery cell to be inspected is abnormal based on the image to be inspected.

[0035] S102, inputting the image to be detected into an anomaly detection model to obtain a target detection result output by the anomaly detection model, wherein the target detection result is used to indicate whether the electrode to be detected is normal; Among them, the anomaly detection model is trained with the labeled battery cell images in the first training set and the unlabeled battery cell images in the second training set as training samples, and with the labeling information corresponding to the labeled battery cell images and the first results corresponding to the unlabeled battery cell images as training labels.

[0036] In an embodiment of the present application, the image to be detected is input into a trained anomaly detection model, and a target detection result output by the anomaly detection model is obtained to characterize whether the electrode to be detected is normal. That is to say, the target detection result can be displayed as the electrode to be detected of the battery cell to be detected is normal, or it can be displayed as the electrode to be detected of the battery cell to be detected is abnormal.

[0037] In an embodiment of the present application, the labeled battery cell images in the first training set are images that are annotated with corresponding annotation information after manual confirmation of whether the electrode is abnormal, and the above-mentioned battery cell images can be annotated by Labelimg; the unlabeled battery cell images in the second training set are images that have not been manually labeled, and the trained comparison model is used to perform electrode abnormality detection to obtain the corresponding first result.

[0038] In the embodiment of the present application, each labeled cell image includes a display area of ​​a pole piece on a corresponding first sample cell, and the labeled information of each labeled cell image is used to indicate whether the pole piece on the corresponding first sample cell is normal.

[0039] In the embodiment of the present application, there is a display area of ​​the electrode of the corresponding first sample battery cell on the labeled battery cell image, and the labeled information of the labeled battery cell image is used to characterize whether the electrode on the corresponding first sample battery cell is normal, that is, the labeled information can display that the electrode is abnormal, or it can display that the electrode is normal.

[0040] In the embodiment of the present application, each unlabeled cell image includes a display area of ​​a pole piece on a corresponding second sample cell, and the first result of each unlabeled cell image is used to indicate whether the pole piece on the corresponding first sample cell is normal.

[0041] In an embodiment of the present application, there is also a display area for the electrode on the corresponding second sample battery cell on the unlabeled battery cell image, and the first result of the unlabeled battery cell image is used to characterize whether the electrode on the corresponding second sample battery cell is abnormal. That is to say, the first result predicted by the comparison model can be displayed as an abnormal electrode or a normal electrode.

[0042] In an embodiment of the present application, the number of labeled battery cell images in the first training set is much smaller than the number of unlabeled battery cell images in the second training set. The labeled battery cell images in the first training set and the unlabeled battery cell images in the second training set are used as training samples, and the labeling information corresponding to the labeled battery cell images and the first results corresponding to the unlabeled battery cell images are used as training labels to train the anomaly detection model. Without providing a large number of manually labeled labeled battery cell images, the anomaly detection model can effectively learn the characteristics of abnormal pole pieces and normal pole pieces during the training process, which greatly reduces the time required for manually labeling battery cell images, reduces labor costs, and can also correspondingly improve the robustness of the anomaly detection model.

[0043] In an embodiment of the present application, the first result is obtained by: inputting each unlabeled battery cell image in the second training set into a trained comparison model to obtain a first result of each unlabeled battery cell image output by the comparison model; the comparison model is trained using the labeled battery cell images in the first training set as training samples and using the labeling information corresponding to the labeled battery cell images as training labels.

[0044] In an embodiment of the present application, all the unlabeled battery cell images in the second training set are input into the trained comparison model to obtain the first result predicted by the comparison model for each unlabeled battery cell image, and the comparison model is also trained using the labeled battery cell images in the first training set as training samples and the labeling information of the labeled battery cell images as training labels, that is, the anomaly detection model and the comparison model are trained using the same first training set, so that without adding more manually labeled labeled battery cell images, the trained comparison model can provide more training labels that can be used for training for the training anomaly detection model.

[0045] In the embodiment of the present application, the method for generating the first training set is as follows: Figure 3 The specific contents are as follows: S201, obtaining at least one labeled first battery cell image and labeling information corresponding to the first battery cell image; the first battery cell image is a battery cell image including a display area of ​​a normal electrode piece or a display area of ​​an abnormal electrode piece; S202, using the first battery cell image as a training sample and the annotation information corresponding to the first battery cell image as a training label to train the first model until convergence, so as to serve as a screening model; S203, inputting unlabeled battery cell images into the screening model, obtaining predicted labeling information of each unlabeled battery cell image output by the screening model and the confidence level corresponding to the predicted labeling information; S204, taking the unlabeled battery cell pictures whose confidence levels are lower than the confidence threshold as second battery cell pictures, labeling the second battery cell pictures, and obtaining labeling information corresponding to each second battery cell picture; S205 , taking the first battery cell image and the second battery cell image as labeled battery cell images to form a first training set.

[0046] In S201 of the embodiment of the present application, the first battery cell image obtained is an image manually annotated with corresponding annotation information, and the first battery cell image obtained is a battery cell image including a display area of ​​a normal pole piece or an image of an abnormal pole piece, and the normal pole piece features of the display area of ​​the normal pole piece are representative, and the abnormal pole piece features of the display area of ​​the abnormal pole piece are representative.

[0047] In S202 of the embodiment of the present application, the first battery cell image is used as a training sample, and the annotation information of the first battery cell image is used as a training label to perform multiple rounds of iterative training on the first model until convergence, and the trained first model is used as a screening model.

[0048] In S203 of the embodiment of the present application, unlabeled battery cell images are input into the screening model to obtain the predicted labeling information for each unlabeled battery cell image output by the screening model, that is, the confidence level corresponding to the predicted labeling information. That is to say, when obtaining the predicted labeling information characterizing whether the electrode is normal or abnormal output by the screening model for each unlabeled battery cell image, a confidence level will also be output to characterize the accuracy of the current prediction result.

[0049] In S204 of the embodiment of the present application, since the lower the confidence level, the lower the accuracy of the current prediction result, it means that many features in the corresponding unlabeled battery cell picture have not been effectively learned by the model. Therefore, the unlabeled battery cell picture with a confidence level lower than the preset threshold is selected as the second battery cell picture, and the second battery cell picture is labeled, and the labeling information corresponding to each second battery cell picture is obtained, so that the most informative and representative battery cell picture is selected for labeling, and then used to train the anomaly detection model and the comparison model.

[0050] In S205 of the embodiment of the present application, the first battery cell picture and the second battery cell picture are both taken as labeled battery cell pictures to constitute a first training set, that is, on the basis of the labeled first battery cell pictures, a screening model is used to expand the labeled battery cell pictures by selectively labeling the most informative unlabeled battery cell pictures, thereby obtaining a first training set for training anomaly detection models and comparison models.

[0051] In an embodiment of the present application, the most informative and representative unlabeled battery cell images are selected for labeling through a screening model, which reduces the number of samples that need to be labeled, and can also help the trained model to learn the characteristics of abnormal pole pieces and normal pole pieces more effectively. In addition, labeling takes a long time and is costly. By intelligently selecting the unlabeled battery cell images that need to be labeled through the screening model, the labor cost is greatly reduced.

[0052] In an embodiment of the present application, after obtaining labeled battery cell images or unlabeled battery cell images, the battery cell images need to be preprocessed to make the battery cell images suitable for deep learning training and detection. The preprocessing steps include: adjusting the image size, normalization, enhancement (such as adding noise, rotation, cropping, etc.) and data expansion (such as random sampling, flipping, and mirroring, etc.) to improve the generalization ability and robustness of the model.

[0053] In an embodiment of the present application, the second model is trained to convergence based on the labeled battery cell images in the first training set and the labeling information corresponding to the labeled battery cell images to serve as a comparison model.

[0054] In an embodiment of the present application, during the training of the comparison model, the second model is iteratively trained for multiple rounds using the labeled cell images and corresponding annotation information in the first training set until convergence, thereby using the trained second model as the comparison model.

[0055] In the embodiment of the present application, the method of one round of iterative training of the comparison model is as follows Figure 4 The specific contents include: S301, inputting each labeled battery cell image in the first training set into a second model to obtain a feature representation of each labeled battery cell image; S302, for any two labeled battery cell images, determining the comparison loss between the two labeled battery cell images according to the feature representations of the two labeled battery cell images; S303, determining a first contrast loss according to contrast losses between any two of the annotated battery cell images having the same annotated information; S304, determining a second contrast loss according to the contrast loss between all pairs of labeled battery cell images with different labeling information; S305: Update the parameters of the second model according to the first contrast loss and the second contrast loss.

[0056] In S301 of an embodiment of the present application, each labeled battery cell image in the first training set is input into the second model to obtain a feature representation of each labeled battery cell image in a low-dimensional space vector. The above feature representation can characterize whether the detected labeled battery cell image is abnormal, and the area of ​​the abnormal area on the labeled battery cell image.

[0057] In S302 of the embodiment of the present application, the contrast loss between each pair of battery cell images is calculated based on the feature representation of each labeled battery cell image. The contrast loss refers to the distance between the feature representations corresponding to each pair of samples.

[0058] In an embodiment of the present application, any two labeled cell images with the same labeling information are positive sample pairs, and any two labeled cell images with different labeling information are negative sample pairs. For example, the labeling information of the labeled cell images A, B, C, and D are respectively characterized as normal pole piece, normal pole piece, abnormal pole piece, and abnormal pole piece. Then, the positive sample pair formed by the above four unlabeled cell images is: labeled cell images A and B and labeled cell images C and D; the negative sample pairs are: labeled cell images A and C, labeled cell images A and D, labeled cell images B and C, and labeled cell images B and D.

[0059] In S303 of the embodiment of the present application, pairs of labeled battery cell images with the same labeling information are regarded as positive sample pairs, and a first contrast loss is determined according to the contrast losses between all positive sample pairs.

[0060] In S304 of the embodiment of the present application, each pair of labeled battery cell images with different labeling information is regarded as a negative sample pair, and a second contrast loss is determined according to the contrast loss between all negative sample pairs.

[0061] In the embodiment of the present application, the contrast loss is calculated in the following manner:

[0062] Among them, q represents the feature representation of the current labeled battery cell image, Represents the feature vector of the positive sample related to the current labeled battery cell image, It represents a set of negative sample feature vectors that are irrelevant to the current labeled battery cell image. τ is a temperature hyperparameter used to scale the temperature parameter of the inner product and control the softening probability distribution.

[0063] In S305 of the embodiment of the present application, based on the first contrast loss and the second contrast loss, the parameters of the second model are updated using a gradient descent algorithm or other optimization algorithm to shorten the distance between positive sample pairs in the feature space and increase the distance between negative sample pairs in the feature space, thereby prompting the second model to learn more discriminative feature representations.

[0064] In the embodiment of the present application, the anomaly detection model includes: a feature extraction layer, a feature fusion layer and a detection layer. The method for obtaining the target detection result is as follows: Figure 5 The specific contents include: S401, inputting the image to be detected into the feature extraction layer, and obtaining a plurality of target feature maps of different sizes output by the feature extraction layer; S402, inputting multiple target feature maps of different sizes into a feature fusion layer for feature fusion, and obtaining multiple fused feature maps output by the feature fusion layer; S403, inputting multiple target fusion feature maps of different sizes into the detection layer to obtain the target detection result output by the detection layer.

[0065] In an embodiment of the present application, the anomaly detection model is an improved YOLOV8 model, which includes a feature extraction layer, a feature fusion layer and a detection layer.

[0066] In S401 of the embodiment of the present application, the image to be detected is input into the feature extraction layer, and a plurality of target feature maps of different sizes are obtained from the feature extraction layer. Through downsampling processing of different multiples, target feature maps of different sizes of the image to be detected are extracted, and representative features of the battery cell image to be detected are extracted through the feature extraction layer. As the downsampling multiple increases, the extracted features contain more discriminative information.

[0067] In S402 of the embodiment of the present application, multiple target features of different sizes are input into the feature fusion layer, and the feature fusion layer fuses the target feature maps of different sizes together to obtain multiple fused feature maps of multiple different sizes. By fusing multiple fused features of different sizes, the anomaly detection model can be helped to better classify the features of the pole piece, and through multi-layer feature fusion, the advantages of the rich semantic information of the high-level feature map and the rich spatial detail information of the low-level feature map can be combined to improve the efficiency of anomaly detection.

[0068] In S403 of the embodiment of the present application, the fused feature maps of each scale output by the feature fusion layer are detected respectively, and the target detection result of the image to be detected is output according to the characteristics of the display area of ​​the electrode of the battery cell to be detected.

[0069] In the embodiment of the present application, the network structure of the comparison model is as follows Figure 6 The specific contents are as follows: The comparison model includes: data augmentation module Data Augmentation, encoder Encode, and comparison loss module.

[0070] In the process of using the contrast model, the unlabeled data set is input into the data enhancement model; in the process of training the contrast model, the labeled data set is input into the data enhancement module to obtain the original sample Anchor output by the data enhancement module, the positive sample belonging to the same class as the original sample, and the negative sample belonging to a different class from the original sample. The original sample, positive sample and negative sample are input into the encoder to obtain the corresponding feature representation output by the encoder, the positive sample pairs and the negative sample pairs are input into the contrast loss module to calculate the contrast loss, so as to optimize the encoder according to the contrast loss.

[0071] In the embodiment of the present application, the plurality of target feature maps of different sizes include a first target feature map, a second target feature map, a third target feature map, and a fourth target feature map. The method for obtaining the plurality of target feature maps of different sizes is as follows: Figure 7 As shown, the specific contents include: S501, down-sampling the image to be detected, segmenting and splicing the down-sampled feature map, and obtaining a first target feature map; S502, down-sampling the first target feature map, segmenting and concatenating the down-sampled feature map, to obtain a second target feature map; S503, down-sampling the second target feature map, and performing segmentation and concatenation operations on the down-sampled feature map to obtain a third target feature map; S504, down-sample the third target feature map, and perform segmentation and concatenation operations on the down-sampled feature map to obtain a fourth target feature map.

[0072] In an embodiment of the present application, the target feature map includes: a first target feature map obtained after the image of the battery cell to be detected is downsampled four times, a second target feature map obtained after the image of the battery cell to be detected is downsampled eight times, a third target feature map obtained after the image of the battery cell to be detected is downsampled 16 times, and a fourth target feature map obtained after the image of the battery cell to be detected is downsampled 32 times.

[0073] In S501 of the embodiment of the present application, the image of the battery cell to be inspected is downsampled by two convolution modules to obtain a downsampled feature map, and the downsampled feature map is segmented and spliced ​​by the C2F module to obtain a first target feature map.

[0074] In S502 of the embodiment of the present application, the first target feature map is downsampled by a convolution module to obtain a downsampled feature map, and the downsampled feature map is segmented and concatenated by a C2F module to obtain a second target feature map.

[0075] In S503 of the embodiment of the present application, the second target feature map is downsampled by a convolution module to obtain a downsampled feature map, and the downsampled feature map is segmented and concatenated by a C2F module to obtain a third target feature map.

[0076] In S504 of the embodiment of the present application, the third target feature map is downsampled by a convolution module to obtain a downsampled feature map, and the downsampled feature map is segmented and concatenated by a C2F module to obtain a fourth target feature map.

[0077] By repeatedly stacking convolution modules, we can extract target feature maps at different downsampling multiples, helping the anomaly detection model to understand the image more comprehensively and improve the accuracy of model recognition.

[0078] In the embodiment of the present application, the method for obtaining the fourth target feature map to be input to the feature fusion layer is as follows: Figure 8 The specific contents include: S601, performing a pooling operation on the fourth target feature map through a plurality of pooling layers connected in series to obtain a pooling feature map output by each pooling layer; S602, concatenating the pooling feature maps output by each pooling layer to obtain a first concatenated feature map; S603, performing feature extraction on the first concatenated feature map using multiple convolution kernels of preset sizes to obtain multiple first features of different sizes; S604, splicing the first features of different sizes in the channel dimension to obtain a second spliced ​​feature map; S605, performing average pooling on the feature values ​​on each channel of the second concatenated feature map to obtain a first global description vector for the target feature map; the global description vector is used to characterize the global information of each channel of the target feature map; S606, inputting the first global description vector of the second concatenated feature map into the first fully connected layer to obtain a second global description vector of a preset dimension output by the first fully connected layer; the preset dimension is smaller than the channel dimension of the target feature; S607, inputting the second global description vector into the second fully connected layer to obtain a third global description vector; the number of neurons in the second fully connected layer is the same as the channel dimension of the fourth target feature map; S608, inputting the third global description vector of the channel dimension into the activation function to obtain the weight of each channel; S609, for each channel, weighting the eigenvalue of the channel based on the weight of the channel to obtain a weighted eigenvalue; S610, based on the weighted feature values ​​in each channel, obtain a fourth target feature map to be input into the feature fusion layer.

[0079] In S601 of the embodiment of the present application, a pooling operation is performed on the fourth target feature map through multiple maximum pooling layers connected in series in the SPPF module to obtain a pooling feature map output by each pooling layer. For example, there are a first pooling layer, a second pooling layer and a third pooling layer connected in series, the fourth target feature is input into the first pooling layer to obtain the first pooling feature map output by the first pooling layer, the first pooling feature map is input into the second pooling layer to obtain the second pooling feature map, and then the second pooling feature map is input into the third pooling layer to obtain the third pooling feature map.

[0080] In S602 of the embodiment of the present application, the first pooled feature map, the second pooled feature map, and the third pooled feature map obtained above are spliced ​​into one feature map to obtain a first spliced ​​feature map.

[0081] In S603 of the embodiment of the present application, feature extraction is performed on the first spliced ​​feature map through the Inception module, and the Inception module is composed of multiple branches, each branch extracts features of the first spliced ​​feature map through convolution kernels of different sizes to obtain first features of different sizes output by each branch.

[0082] In S604 of the embodiment of the present application, first features of different sizes are spliced ​​in the channel dimension, that is, first features of different sizes are stacked in the depth direction to obtain a second spliced ​​feature map.

[0083] In S605 of the embodiment of the present application, the feature values ​​on each channel of the second concatenated feature map are average pooled, the feature map of each channel is compressed into a numerical value, the global information of each channel is captured, and the first global description vector for the target feature map is obtained.

[0084] In S606 of an embodiment of the present application, in an embodiment of the present application, the first global description vector of the second spliced ​​feature map is input into the first fully connected layer, and the first global description vector is mapped to a low-dimensional space to obtain a second global vector of a preset dimension, and the preset dimension is smaller than the channel dimension of the fourth target feature map.

[0085] In S607 of the embodiment of the present application, the second global description vector is input into the second fully connected layer, and the second fully connected layer restores the dimension of the second global description vector to the dimension of the fourth target feature map to obtain the third global description vector, thereby realizing the modeling of the interdependence relationship between channels.

[0086] In S608 of the embodiment of the present application, the third global description vector of the channel dimension is input into the Sigmoid activation function, the third global description vector is normalized to the range of [0,1], and the importance weight of each channel is obtained, that is, the weight of each channel is obtained.

[0087] In S609 of the embodiment of the present application, for each channel of the fourth target feature map, the eigenvalues ​​of the channels are weighted based on the weights of the channels to obtain weighted eigenvalues ​​of each channel. By weighting the eigenvalues, the channel strength of the fourth target feature map is adjusted, and the importance of each channel is recalibrated to further strengthen the representation of important features and weaken the representation of unimportant features, so that the anomaly detection model pays more attention to important feature information.

[0088] In S610 of the embodiment of the present application, the feature values ​​of each channel in the fourth target feature map are weighted to reconstruct a new fourth target feature map.

[0089] In the embodiment of the present application, the above S603-S610 are completed by the SENet module, and the SENet module is composed of an Inception module, an average pooling module, two fully connected layers, an activation function and a Scale module.

[0090] By learning the importance of each channel, the ability of feature representation is enhanced, important features are emphasized and unimportant features are suppressed, making the network more sensitive in capturing key information. The accuracy of pole piece detection of the anomaly detection model is significantly improved without significantly increasing the computational complexity.

[0091] In the embodiment of the present application, the method for obtaining multiple target fusion features is as follows: Fig. 9 The specific contents are as follows: S701, upsampling the fourth target feature map, and concatenating the upsampling result with the third target feature map to obtain a first fused feature map; S702, performing segmentation and splicing operations on the first fused feature map to obtain a spliced ​​first fused feature map; S703, upsampling the spliced ​​first fused feature map, and splicing the upsampling result with the second target feature map to obtain a second fused feature map; S704, performing segmentation and splicing operations on the second fused feature map to obtain a spliced ​​second fused feature map; S705, upsampling the spliced ​​second fused feature map, and splicing the upsampling result with the first target feature map to obtain a third fused feature map; S706, performing segmentation and concatenation operations on the third fused feature map to obtain a first target fused feature map; S707, performing a convolution operation on the first target fusion feature, and splicing the convolution result with the spliced ​​second fusion feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a second target fusion feature map; S708, performing a convolution operation on the second target fused feature map, and splicing the convolution result with the spliced ​​first fused feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a third target fused feature map; S709, performing a convolution operation on the third target fusion feature map, and splicing the convolution result with the fourth target feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a fourth target fusion feature map; S710, obtaining a first target fusion feature, a second target fusion feature, a third target fusion feature and a fourth target fusion feature output by the feature fusion layer.

[0092] In S701 of the embodiment of the present application, the fourth target feature is upsampled by the Upsample module. At this time, the upsampling result of the fourth target feature map after upsampling is the same size as the third target feature map. The upsampling result is spliced ​​with the third target feature to obtain a first fused feature map.

[0093] In S702 of the embodiment of the present application, the first fused feature map is segmented by the C2F module, that is, the first fused feature map is split into two parts, one part of the feature map directly participates in the splicing operation, and the other part of the feature map is spliced ​​with the feature map directly participating in the splicing operation after a series of convolution, normalization and activation operations, so as to obtain the spliced ​​first fused feature map.

[0094] In S703 of the embodiment of the present application, the spliced ​​first fused feature map is upsampled, and the upsampling result obtained after upsampling the first fused feature map is the same size as the second target feature map. The upsampling result is spliced ​​with the second target feature map to obtain a second fused feature map.

[0095] In S704 of the embodiment of the present application, the second fused feature map is segmented by the C2F module, that is, the second fused feature map is split into two parts, one part of the feature map directly participates in the splicing operation, and the other part of the feature map is spliced ​​with the feature map directly participating in the splicing operation after a series of convolution, normalization and activation operations, so as to obtain the spliced ​​second fused feature map.

[0096] In S705 of the embodiment of the present application, the spliced ​​second fused feature map is upsampled, and the upsampling result obtained after upsampling the spliced ​​first fused feature map is the same size as the first target feature map, and the upsampling result is spliced ​​with the first target feature map to obtain a third fused feature map.

[0097] In S706 of the embodiment of the present application, the third fused feature map is segmented by the C2F module, and the third fused feature map is divided into two parts. One part of the feature map directly participates in the splicing operation, and the other part of the feature map is spliced ​​with the feature map directly participating in the splicing operation after a series of convolution, normalization and activation operations to obtain the first target fusion feature to be input into the detection layer.

[0098] In S707 of the embodiment of the present application, a convolution operation (downsampling operation) is performed on the first target fusion feature through a convolution module. After the convolution operation, the convolution result obtained by the first target fusion feature map is the same size as the second fusion feature map after splicing. The convolution result is spliced ​​with the second fusion feature map to obtain a splicing result. The splicing result is segmented by the C2F module and the splicing result is divided into two feature maps. One feature map directly participates in the splicing operation, and the other feature map is spliced ​​with the feature map directly participating in the splicing operation after a series of convolution, normalization and activation operations to obtain the second target fusion feature to be input into the detection layer.

[0099] In S708 of the embodiment of the present application, a convolution operation is performed on the second target fusion feature map through a convolution module. After the convolution operation on the second target fusion feature, the convolution result obtained has the same size as the first fusion feature map after splicing. The convolution result is spliced ​​with the first fusion feature map to obtain a splicing result. The splicing result is segmented by the C2F module and the splicing result is divided into two feature maps. One feature map directly participates in the splicing operation, and the other feature map is spliced ​​with the feature map directly participating in the splicing operation after a series of convolution, normalization and activation operations to obtain the third target fusion feature to be input into the detection layer.

[0100] In S709 of the embodiment of the present application, a convolution operation is performed on the third target fusion feature map through a convolution module. After the convolution operation on the third target fusion feature, the convolution result obtained has the same size as the fourth target feature map after splicing. The convolution result is spliced ​​with the fourth target feature map to obtain a splicing result. The splicing result is segmented by the C2F module and the splicing result is divided into two feature maps. One feature map directly participates in the splicing operation, and the other feature map is spliced ​​with the feature map directly participating in the splicing operation after a series of convolution, normalization and activation operations to obtain the fourth target fusion feature to be input into the detection layer.

[0101] In S710 of the embodiment of the present application, a first target fusion feature, a second target fusion feature, a third target fusion feature and a fourth target fusion feature output by the feature fusion layer are obtained.

[0102] Through the feature fusion of the above-mentioned feature maps of different sizes, the expression ability of the network can be enhanced and the detection effect can be improved. After feature fusion, the target fusion feature map of each size contains rich feature information from the feature map of other sizes, making the anomaly detection model more accurate in detecting pole pieces and more conducive to the positioning and classification of abnormal pole pieces.

[0103] In the embodiment of the present application, the method for segmenting and splicing the feature map is as follows: Fig.10 The specific contents are as follows: S801, for any feature map to be segmented and spliced, perform a convolution operation on the feature map to obtain a convolved feature map; S802, segmenting the convolved feature map to obtain a first segmentation feature map and a second segmentation feature map; S803, inputting the first segmentation feature image into a plurality of serially connected bottleneck blocks for convolution operation, and obtaining a reference feature image output by each bottleneck block; S804, splicing the reference feature map output by each bottleneck block and the second segmentation feature map to obtain a feature map that has been segmented and spliced ​​and corresponds to the feature map to be segmented and spliced.

[0104] In S801 of the embodiment of the present application, a convolution operation is performed on the feature map to be segmented and concatenated by a convolution module in the C2F module to obtain a convolved feature map.

[0105] In S802 of the embodiment of the present application, the convolved feature map is segmented by the Split module, and the convolved feature map is split into two parts to obtain a first segmented feature map and a second segmented feature map.

[0106] In S803 of the embodiment of the present application, the first segmentation feature map is input into a plurality of serially connected bottleneck blocks (Bottleneck) for processing to obtain a reference feature map output by each bottleneck block. The bottleneck block is usually composed of two convolutional layers and a skip connection. The first convolutional layer is used to reduce the number of channels of the feature map, and the second convolutional layer is used to extract the features of the feature map and increase the receptive field. The skip connection is used to add a skip connection between the convolutional layers to directly connect the input of the bottleneck module to the output. This connection method can alleviate the gradient vanishing problem and help the model learn better.

[0107] In S804 of the embodiment of the present application, the reference feature map output by each bottleneck block is feature fused with the second segmentation feature map to obtain a feature map that has been segmented and spliced ​​and corresponds to the feature map to be segmented and spliced.

[0108] The C2F module is used to segment and concatenate feature maps, which reduces the number of channels in the feature maps and the computational complexity. More features can be extracted to improve the expressiveness of the model. Skip connections are then used to alleviate the problem of gradient disappearance.

[0109] In an embodiment of the present application, the target detection result is a picture to be detected or a picture to be detected containing a detection frame, and the detection frame is used to characterize an abnormal area of ​​the electrode to be detected on the picture to be detected.

[0110] In an embodiment of the present application, when the output target detection result is a picture to be detected, it means that the pole piece of the battery cell to be detected in the picture to be detected is normal; when the output target detection result is a picture to be detected containing a detection frame, it means that the pole piece of the battery cell to be detected in the picture to be detected is abnormal, and the area with abnormal pole piece is displayed through the area defined by the detection frame.

[0111] In the embodiment of the present application, the detection layer includes: a detection module and a screening module. When the target detection result is a to-be-detected image containing a detection frame, the method for obtaining the target detection result is as follows: Fig.11 The specific contents are as follows: S901, for a target fusion feature map of any size, input the target fusion feature map into a detection module to obtain at least one candidate detection box information output by the detection module; the candidate detection box information includes: coordinates and confidence of the candidate detection box; S902, according to the confidence of each candidate detection frame, put the information of each candidate detection frame into a candidate detection frame list in descending order of confidence; S903, performing multiple rounds of iterative screening according to the information of each candidate detection box in the candidate detection box list until the candidate detection box list is empty or the maximum confidence in the candidate detection box list is less than a preset confidence threshold, and outputting a picture to be detected containing at least one detection box.

[0112] In the embodiment of the present application, the detection layer includes a detection module and a screening module. The detection module is composed of multiple detectors. Target fusion feature maps of different sizes are input into corresponding detectors for anomaly detection. Each detector is composed of a group of convolution kernel fully connected layers, which are used to predict the category of the pole piece on the target fusion feature map of the current size, that is, abnormal or normal.

[0113] In S901 of the embodiment of the present application, the target fusion feature map of each size is input into the corresponding detector in the detection module, and at least one candidate detection box information for the target fusion feature map of the corresponding size output by each detector is obtained, and the candidate detection information includes the coordinate area of ​​the candidate detection block on the target feature map, and the accuracy (confidence) of the existence of anomalies in the area within the candidate detection block.

[0114] In S902 of the embodiment of the present application, the candidate detection frames are put into the candidate detection frame list in order from large to small confidence levels, so that when the candidate detection frames are subsequently processed, the candidate detection frames with the highest confidence levels are preferentially processed.

[0115] In S903 of the embodiment of the present application, multiple rounds of iterative screening are performed according to the confidence level and coordinates of each candidate detection frame until the candidate detection frame list is empty or the maximum confidence in the candidate detection frame list is less than the preset confidence threshold; if the candidate detection frame list is empty, it means that all candidate frames have been processed at this time, so that the detection frame for outputting the target detection result can be obtained according to the current screening result. Since the candidate detection frame information in the candidate detection frame list is placed in order from large to small according to the confidence level, when the maximum confidence in the candidate detection frame list is less than the preset confidence threshold, it means that the credibility of the candidate detection frame with the highest confidence in the current candidate detection frame list is already low, then all candidate detection frames in the current candidate detection frame list cannot be screened out as detection frames for outputting the target detection result, and therefore, the screening is stopped.

[0116] In the present application example, a round of iterative screening method is as follows Fig.12 The specific contents include: S1001, determining a candidate detection frame with the highest confidence from the candidate detection frame list of this round, taking the candidate detection frame as the detection frame, and deleting it from the candidate detection frame list; S1002, for the detection frame and any candidate detection frame in the candidate detection frame list, determining an overlapping area between the detection frame and the candidate detection frame according to the coordinates of the detection frame and the coordinates of the candidate detection frame; S1003: For any candidate detection frame, if the overlapping area between the candidate detection frame and the detection frame is greater than the overlapping threshold, the candidate detection frame is deleted from the candidate frame list to obtain the next round of candidate detection frame list.

[0117] In S1001 of the embodiment of the present application, the candidate detection frame with the highest confidence is taken out from the candidate detection frame list of this round. That is to say, the confidences between all candidate detection frames are first compared, and the candidate detection frame with the highest confidence is determined as the detection frame, which is displayed on the image to be detected to characterize the abnormal area of ​​the pole piece.

[0118] In S1002 of the embodiment of the present application, since there may be multiple abnormal areas of the pole piece on the image to be detected, it is necessary to determine a candidate detection frame that is different from the coordinate area of ​​the currently identified detection frame. Therefore, the overlapping area between the detection frame and each candidate detection frame is first calculated according to the coordinates, and according to the size of the overlapping area, it can be determined which candidate detection frames in the detection frame list represent the same area where an abnormality exists.

[0119] In S1003 of the embodiment of the present application, if the overlapping area between the detection frame and the candidate detection frame is greater than the overlapping threshold, it means that the current candidate detection frame and the detection frame represent the same abnormal area, and all candidate detection frames representing the same abnormal area are deleted from the candidate detection frame list, thereby obtaining a candidate detection frame list for the next round of iterative screening. Then, the candidate detection frame list participating in the next round of iterative screening only contains candidate detection frames that represent different abnormal areas from the current detection frame.

[0120] In an embodiment of the present application, when the candidate detection frame selected in the next round of iteration meets the above-mentioned iteration conditions, continue to execute the above-mentioned S1001-S1003, and select a detection frame different from the abnormal area represented by the detection frame in the previous round according to the confidence of the candidate frame. Through multiple rounds of iterative screening, all areas with abnormalities in the pole piece of the image to be detected can be effectively screened out.

[0121] In the embodiments of the present application, Fig.13 The figure shows a network structure diagram of an anomaly detection model.

[0122] Feature extraction module (i.e., feature extraction layer): It consists of a convolution module for downsampling operations, a C2F module for segmentation and splicing operations, an SPPF module for pooling operations, and a SENet module for compression and excitation operations; among them, the convolution module consists of Conv2d+BatchNom2d+SiLU, and the SENet module consists of inception+Global average pooling+FC+Sigmoid+Scale.

[0123] Feature fusion module (feature fusion layer): It consists of an Upsample module for upsampling, a concat module for connecting feature maps, a C2F module for segmentation and splicing operations, and a convolution module for favorite adoption.

[0124] Detection head (i.e., detection layer): The four detection heads P2, P3, P4, and P5 respectively classify the target fusion feature maps of corresponding sizes for abnormality classification, and output the target detection results based on the classification results of each detection head.

[0125] In the embodiments of the present application, Fig.14 As shown, a flow chart of a method for detecting abnormality of a pole piece is provided.

[0126] S1101, inputting a picture of a battery cell to be detected into an abnormality detection model; S1102, obtaining target feature maps of different sizes through a feature extraction layer of anomaly detection model; S1103, performing feature fusion on target feature maps of different sizes through a feature fusion layer of anomaly detection model to obtain multiple target fusion feature maps of different sizes; S1104, detecting target fusion feature maps of different sizes respectively through the detection layer of the anomaly detection model to obtain information of multiple candidate detection boxes; S1105, determining whether there is an outputtable detection frame and the number of outputtable detection frames from the multiple candidate detection frames according to the candidate detection frame coordinates and confidences in the candidate detection frame information, and determining the target detection result; S1106. Based on the target detection result, if the classification result is that the electrode is normal, the image to be detected is displayed on the visualization interface; if the classification result is that the electrode is abnormal, the image to be detected and at least one detection frame are displayed on the visualization interface.

[0127] In the embodiment of the present application, the official YOLOv8n model, YOLOv8n-p2 and the anomaly detection model provided by the present application with SENet added to the small-sized channels in the feature fusion layer are trained 500 times respectively, and the trained YOLOv8n model, YOLOv8n-p2 and the anomaly detection model YOLOv8n-p2+SENet provided by the present application are compared. The comparison results are shown in the following table:

[0128] Table 1 From the above comparison results, it can be seen that the accuracy P, recall rate R and mean average precision (mAP50) of the anomaly detection model provided in the embodiment of the present application are higher than the values ​​of YOLOv8 provided by the official website. Therefore, the detection effect of the anomaly detection model provided in the embodiment of the present application is higher than the official method.

[0129] In the embodiments of the present application, the present invention can be widely used in the field of pole piece abnormality detection, improve the quality control level of pole pieces, reduce battery production costs, and improve the overall performance and life of batteries.

[0130] The method for detecting abnormal pole pieces provided in the embodiment of the present application determines the picture to be detected of the battery cell to be detected, and inputs the picture to be detected into the abnormal detection model. Since the picture to be detected includes the display area of ​​the pole piece to be detected of the battery cell to be detected, the output of the abnormal detection model can be obtained to characterize whether the pole piece to be detected is normal. Since the abnormal detection model is trained with labeled battery cell pictures and unlabeled battery cell pictures as training samples, and with the annotation information corresponding to the labeled battery cell pictures and the first result corresponding to the unlabeled battery cell pictures as training labels, and the first result used to train the abnormal detection model is obtained by detection based on the comparison model obtained by training the labeled battery cell pictures, it is achieved that a large number of training samples for training the abnormal detection model can be obtained by using a small amount of manually labeled battery cell pictures, so that the characteristics of normal pole pieces and abnormal pole pieces can be effectively learned in the process of training the abnormal detection model. Without increasing the number of manually labeled labeled battery cell pictures, the accuracy of pole piece abnormality detection of the abnormal detection model can also be greatly improved, while reducing labor costs. In addition, the use of the improved YOLOv8 model speeds up the recognition rate and realizes a real-time monitoring model with superior performance, which can adapt to complex electrode characteristics and is suitable for real-time online anomaly detection systems.

[0131] The present application embodiment provides a detection device for abnormal pole pieces, such as Fig.15 As shown, the abnormal pole piece detection device 150 may include: a determination module 1501 and an input module 1502, the specific contents of which are as follows: A determination module 1501 is used to determine a to-be-detected picture of the to-be-detected cell, wherein the to-be-detected picture includes a display area of ​​a to-be-detected electrode piece on the to-be-detected cell; An input module 1502 is used to input the image to be detected into the anomaly detection model to obtain the target detection result output by the anomaly detection model, and the target detection result is used to indicate whether the electrode to be detected is normal; The anomaly detection model is trained using the labeled battery cell images in the first training set and the unlabeled battery cell images in the second training set as training samples, and using the labeling information corresponding to the labeled battery cell images and the first results corresponding to the unlabeled battery cell images as training labels; The first result is obtained by: Inputting each unlabeled battery cell image in the second training set into the trained comparison model to obtain a first result of each unlabeled battery cell image output by the comparison model; The comparison model is trained using the labeled battery cell images in the first training set as training samples and the label information corresponding to the labeled battery cell images as training labels; Each labeled cell image includes a display area of ​​a pole piece on a corresponding first sample cell, and the labeled information of each labeled cell image is used to indicate whether the pole piece on the corresponding first sample cell is normal; Each unlabeled battery cell image includes a display area of ​​an electrode piece on a corresponding second sample battery cell, and the first result of each unlabeled battery cell image is used to indicate whether the electrode piece on the corresponding first sample battery cell is normal.

[0132] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0133] Furthermore, in a possible implementation, the first training set is generated in the following manner: Acquire at least one labeled first battery cell image and labeling information corresponding to the first battery cell image; the first battery cell image is a battery cell image including a display area of ​​a normal electrode piece or a display area of ​​an abnormal electrode piece; Using the first battery cell image as a training sample and the annotation information corresponding to the first battery cell image as a training label to train the first model until convergence, so as to serve as a screening model; Inputting unlabeled battery cell images into the screening model, obtaining predicted labeling information of each unlabeled battery cell image output by the screening model and the confidence level corresponding to the predicted labeling information; Taking the unlabeled battery cell pictures whose confidence levels are lower than the confidence threshold as the second battery cell pictures, labeling the second battery cell pictures, and obtaining labeling information corresponding to each second battery cell picture; The first battery cell image and the second battery cell image are both used as labeled battery cell images to form a first training set.

[0134] In another possible implementation, the training process of the comparison model includes: Based on the labeled battery cell images in the first training set and the labeling information corresponding to the labeled battery cell images, the second model is trained until convergence to serve as a comparison model; Among them, a round of iterative training includes: Inputting each labeled battery cell image in the first training set into the second model to obtain a feature representation of each labeled battery cell image; For any two labeled battery cell images, determine the contrast loss between the two labeled battery cell images according to the feature representation of the two labeled battery cell images; Determine a first contrast loss according to the contrast loss between any two labeled battery cell images having the same labeling information; Determine a second contrast loss according to the contrast loss between any two of the labeled battery cell images with different labeling information; Update the parameters of the second model according to the first contrast loss and the second contrast loss.

[0135] In another possible implementation, the anomaly detection model includes: a feature extraction layer, a feature fusion layer, and a detection layer; the image to be detected is input into the feature extraction layer to obtain a plurality of target feature maps of different sizes output by the feature extraction layer; Input multiple target feature maps of different sizes into the feature fusion layer for feature fusion, and obtain multiple fused feature maps output by the feature fusion layer; Multiple target fusion feature maps of different sizes are input into the detection layer to obtain the target detection result output by the detection layer.

[0136] In yet another possible implementation, the plurality of target feature maps of different sizes include a first target feature map, a second target feature map, a third target feature map, and a fourth target feature map; The image to be detected is input into the feature extraction layer to obtain multiple target feature maps of different sizes output by the feature extraction layer, including: Down-sample the image to be detected, segment and concatenate the down-sampled feature map, and obtain a first target feature map; Down-sampling the first target feature map, segmenting and concatenating the down-sampled feature map, and obtaining a second target feature map; Down-sampling the second target feature map, segmenting and concatenating the down-sampled feature map, and obtaining a third target feature map; The third target feature map is downsampled, and segmentation and concatenation operations are performed on the downsampled feature map to obtain a fourth target feature map.

[0137] In yet another possible implementation, a pooling operation is performed on the fourth target feature map through a plurality of pooling layers connected in series to obtain a pooling feature map output by each pooling layer; The pooling feature maps output by each pooling layer are spliced ​​to obtain a first spliced ​​feature map; Using multiple convolution kernels of preset sizes, respectively extracting features from the first concatenated feature map to obtain multiple first features of different sizes; Splicing first features of different sizes in the channel dimension to obtain a second spliced ​​feature map; Average pooling is performed on the feature values ​​on each channel of the second concatenated feature map to obtain a first global description vector for the target feature map; the global description vector is used to characterize the global information of each channel of the target feature map; Inputting the first global description vector of the second concatenated feature map into the first fully connected layer to obtain a second global description vector of a preset dimension output by the first fully connected layer; the preset dimension is smaller than the channel dimension of the target feature; The second global description vector is input into the second fully connected layer to obtain a third global description vector; the number of neurons in the second fully connected layer is the same as the channel dimension of the fourth target feature map; Input the third global description vector of the channel dimension into the activation function to obtain the weight of each channel; For each channel, the eigenvalues ​​of the channel are weighted based on the weight of the channel to obtain the weighted eigenvalues; Based on the weighted eigenvalues ​​in each channel, a fourth target feature map to be input into the feature fusion layer is obtained.

[0138] In another possible implementation, the fourth target feature map is upsampled, and the upsampled result is concatenated with the third target feature map to obtain a first fused feature map; Perform segmentation and splicing operations on the first fused feature map to obtain a spliced ​​first fused feature map; Upsampling the spliced ​​first fused feature map, and splicing the upsampling result with the second target feature map to obtain a second fused feature map; Perform segmentation and splicing operations on the second fused feature map to obtain a spliced ​​second fused feature map; Upsampling the spliced ​​second fused feature map, and splicing the upsampling result with the first target feature map to obtain a third fused feature map; Perform segmentation and splicing operations on the third fused feature map to obtain a first target fused feature map; Performing a convolution operation on the first target fusion feature, and splicing the convolution result with the spliced ​​second fusion feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a second target fusion feature map; Performing a convolution operation on the second target fusion feature map, and splicing the convolution result with the spliced ​​first fusion feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a third target fusion feature map; Performing a convolution operation on the third target fusion feature map, splicing the convolution result with the fourth target feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a fourth target fusion feature map; The first target fusion feature, the second target fusion feature, the third target fusion feature and the fourth target fusion feature output by the feature fusion layer are obtained.

[0139] In yet another possible implementation, the segmentation and concatenation operations include: For any feature map to be segmented and spliced, perform a convolution operation on the feature map to obtain a convolved feature map; Segment the convolved feature map to obtain a first segmentation feature map and a second segmentation feature map; Input the first segmentation feature image into multiple serially connected bottleneck blocks for convolution operation to obtain a reference feature image output by each bottleneck block; The reference feature map output by each bottleneck block and the second segmentation feature map are spliced ​​to obtain a feature map that has been segmented and spliced ​​and corresponds to the feature map to be segmented and spliced.

[0140] In another possible implementation, the target detection result is a to-be-detected picture or a to-be-detected picture containing a detection frame, and the detection frame is used to characterize an abnormal area of ​​the to-be-detected electrode on the to-be-detected picture; the detection layer includes: a detection module and a screening module; When the target detection result is a to-be-detected picture containing a detection frame, for a target fusion feature map of any size, the target fusion feature map is input into the detection module to obtain at least one candidate detection frame information output by the detection module; the candidate detection frame information includes: coordinates and confidence of the candidate detection frame; According to the confidence of each candidate detection frame, the information of each candidate detection frame is put into the candidate detection frame list in descending order of confidence; Perform multiple rounds of iterative screening according to the information of each candidate detection frame in the candidate detection frame list until the candidate detection frame list is empty or the maximum confidence in the candidate detection frame list is less than a preset confidence threshold, and output a picture to be detected containing at least one detection frame; A round of iterative screening includes: Determine the candidate detection frame with the highest confidence from the candidate detection frame list of this round, use the candidate detection frame as the detection frame, and delete it from the candidate detection frame list; For the detection frame and any candidate detection frame in the candidate detection frame list, determining an overlapping area between the detection frame and the candidate detection frame according to the coordinates of the detection frame and the coordinates of the candidate detection frame; For any candidate detection frame, if the overlapping area between the candidate detection frame and the detection frame is greater than the overlapping threshold, the candidate detection frame is deleted from the candidate frame list to obtain the next round of candidate detection frame list.

[0141] In an embodiment of the present application, an electronic device (computer device / equipment / system) is provided, including a memory, a processor and a computer program stored in the memory, and the processor executes the above-mentioned computer program to implement the steps of the abnormal pole piece detection method. Compared with the related art, it can be achieved: by determining the image to be detected of the battery cell to be detected, and inputting the image to be detected into the abnormal detection model, because the image to be detected includes the display area of ​​the pole piece to be detected of the battery cell to be detected, therefore, the output of the abnormal detection model can be obtained to characterize whether the pole piece to be detected is normal, because the abnormal detection model is trained with labeled battery cell images and unlabeled battery cell images, and with labeled battery cell images. The labeling information corresponding to the battery cell image and the first result corresponding to the unlabeled battery cell image are trained with training labels, and the first result used to train the anomaly detection model is obtained based on the comparison model detection obtained by training the labeled battery cell image. Therefore, it is achieved that a large number of training samples for training the anomaly detection model can be obtained using a small amount of manually labeled battery cell images, so that the characteristics of normal and abnormal pole pieces can be effectively learned in the process of training the anomaly detection model. Without increasing the number of manually labeled labeled battery cell images, the accuracy of the anomaly detection model for detecting pole pieces can be greatly improved, while reducing labor costs. In an optional embodiment, an electronic device is provided, such as Fig.16 As shown, Fig.16 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.

[0142] Processor 4001 may be a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0143] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0144] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0145] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0146] Among them, the electronic equipment package may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.16 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0147] The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, the following can be implemented: By determining the image to be detected of the battery cell to be detected and inputting the image to be detected into the abnormality detection model, since the image to be detected includes the display area of ​​the electrode to be detected of the battery cell to be detected, the output of the abnormality detection model can be obtained to characterize whether the electrode to be detected is normal. Since the abnormality detection model is trained with labeled battery cell images and unlabeled battery cell images as training samples, and with the annotation information corresponding to the labeled battery cell image and the first result corresponding to the unlabeled battery cell image as training labels, and the first result used to train the abnormality detection model is obtained by detection based on the comparison model obtained by training the labeled battery cell images, therefore, it is achieved that a large number of training samples for training the abnormality detection model can be obtained using a small amount of manually labeled battery cell images, so that the characteristics of normal electrodes and abnormal electrodes can be effectively learned in the process of training the abnormality detection model. Without increasing the number of manually labeled labeled battery cell images, the accuracy of the abnormality detection model for detecting electrode abnormalities can be greatly improved, while reducing labor costs.

[0148] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0149] The present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the above method embodiments when executed by a processor. Compared with the prior art, it can achieve: By determining the image to be detected of the battery cell to be detected and inputting the image to be detected into the abnormality detection model, since the image to be detected includes the display area of ​​the electrode to be detected of the battery cell to be detected, the output of the abnormality detection model can be obtained to characterize whether the electrode to be detected is normal. Since the abnormality detection model is trained with labeled battery cell images and unlabeled battery cell images as training samples, and with the annotation information corresponding to the labeled battery cell image and the first result corresponding to the unlabeled battery cell image as training labels, and the first result used to train the abnormality detection model is obtained by detection based on the comparison model obtained by training the labeled battery cell images, therefore, it is achieved that a large number of training samples for training the abnormality detection model can be obtained using a small amount of manually labeled battery cell images, so that the characteristics of normal electrodes and abnormal electrodes can be effectively learned in the process of training the abnormality detection model. Without increasing the number of manually labeled labeled battery cell images, the accuracy of the abnormality detection model for detecting electrode abnormalities can be greatly improved, while reducing labor costs.

[0150] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0151] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0152] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A method for detecting abnormal pole pieces, It is characterized in that include: Determine a picture to be tested of the battery cell to be tested, wherein the picture to be tested includes a display area of ​​a pole piece to be tested on the battery cell to be tested; Input the image to be detected into the anomaly detection model to obtain a target detection result output by the anomaly detection model, wherein the target detection result is used to indicate whether the electrode to be detected is normal; The anomaly detection model is trained using the labeled battery cell images in the first training set and the unlabeled battery cell images in the second training set as training samples, and using the labeling information corresponding to the labeled battery cell images and the first result corresponding to the unlabeled battery cell images as training labels; The first result is obtained by: Inputting each unlabeled battery cell image in the second training set into a trained comparison model to obtain a first result of each unlabeled battery cell image output by the comparison model; The comparison model is trained by using the labeled battery cell images in the first training set as training samples and the labeling information corresponding to the labeled battery cell images as training labels; Each labeled cell image includes a display area of ​​a pole piece on a corresponding first sample cell, and the labeled information of each labeled cell image is used to indicate whether the pole piece on the corresponding first sample cell is normal; Each unlabeled battery cell image includes a display area of ​​an electrode piece on a corresponding second sample battery cell, and the first result of each unlabeled battery cell image is used to indicate whether the electrode piece on the corresponding first sample battery cell is normal.

2. The method for detecting abnormal pole pieces according to claim 1, It is characterized in that The first training set is generated in the following way: Acquire at least one labeled first battery cell image and labeling information corresponding to the first battery cell image; the first battery cell image is a battery cell image including a display area of ​​a normal electrode piece or a display area of ​​an abnormal electrode piece; Using the first battery cell image as a training sample and the annotation information corresponding to the first battery cell image as a training label to train the first model until convergence, so as to serve as a screening model; Inputting unlabeled battery cell images into the screening model, obtaining predicted labeling information of each unlabeled battery cell image output by the screening model and the confidence level corresponding to the predicted labeling information; Taking the unlabeled battery cell pictures whose confidence level is lower than the confidence level threshold as the second battery cell pictures, labeling the second battery cell pictures, and obtaining labeling information corresponding to each second battery cell picture; The first battery cell image and the second battery cell image are both used as the labeled battery cell images to form a first training set.

3. The method for detecting abnormal pole pieces according to claim 1, It is characterized in that The training process of the comparison model includes: Training a second model until convergence based on the labeled battery cell images in the first training set and the labeling information corresponding to the labeled battery cell images to serve as the comparison model; Among them, a round of iterative training includes: Inputting each labeled battery cell image in the first training set into the second model to obtain a feature representation of each labeled battery cell image; For any two labeled battery cell images, determining the contrast loss between the two labeled battery cell images according to the feature representations of the two labeled battery cell images; Determine a first contrast loss according to the contrast loss between any two labeled battery cell images having the same labeling information; Determine a second contrast loss according to the contrast loss between any two of the labeled battery cell images with different labeling information; Update parameters of the second model according to the first contrast loss and the second contrast loss.

4. The method for detecting abnormal pole pieces according to claim 1, It is characterized in that The anomaly detection model includes: a feature extraction layer, a feature fusion layer and a detection layer; The step of inputting the image to be detected into the anomaly detection model to obtain the target detection result output by the anomaly detection model includes: Inputting the image to be detected into the feature extraction layer to obtain a plurality of target feature maps of different sizes output by the feature extraction layer; Inputting the multiple target feature maps of different sizes into the feature fusion layer for feature fusion, and obtaining multiple fused feature maps output by the feature fusion layer; The target fusion feature maps of the multiple different sizes are input into the detection layer to obtain the target detection result output by the detection layer.

5. The method for detecting abnormal pole pieces according to claim 4, It is characterized in that The plurality of target feature maps of different sizes include a first target feature map, a second target feature map, a third target feature map, and a fourth target feature map; The step of inputting the image to be detected into the feature extraction layer to obtain a plurality of target feature maps of different sizes output by the feature extraction layer includes: Down-sampling the image to be detected, and performing segmentation and splicing operations on the down-sampled feature map to obtain the first target feature map; Down-sampling the first target feature map, and performing segmentation and splicing operations on the down-sampled feature map to obtain the second target feature map; Down-sampling the second target feature map, and performing segmentation and splicing operations on the down-sampled feature map to obtain the third target feature map; Down-sample the third target feature map, and perform segmentation and splicing operations on the down-sampled feature map to obtain the fourth target feature map.

6. The method for detecting abnormal pole pieces according to claim 5, It is characterized in that The obtaining of the fourth target feature map further comprises: Performing a pooling operation on the fourth target feature map through a plurality of pooling layers connected in series to obtain a pooling feature map output by each pooling layer; The pooling feature maps output by each pooling layer are spliced ​​to obtain a first spliced ​​feature map; Using a plurality of convolution kernels of preset sizes, respectively extracting features from the first spliced ​​feature map to obtain a plurality of first features of different sizes; Splicing first features of different sizes in the channel dimension to obtain a second spliced ​​feature map; Performing average pooling on the feature values ​​on each channel of the second concatenated feature map to obtain a first global description vector for the target feature map; the global description vector is used to characterize the global information of each channel of the target feature map; Inputting the first global description vector of the second concatenated feature map into the first fully connected layer to obtain a second global description vector of a preset dimension output by the first fully connected layer; the preset dimension is smaller than the channel dimension of the target feature; Inputting the second global description vector into a second fully connected layer to obtain a third global description vector; the number of neurons in the second fully connected layer is the same as the channel dimension of the fourth target feature map; Inputting the third global description vector of the channel dimension into an activation function to obtain the weight of each channel; For each channel, weighting the eigenvalue of the channel based on the weight of the channel to obtain a weighted eigenvalue; Based on the weighted eigenvalues ​​in each channel, a fourth target feature map to be input into the feature fusion layer is obtained.

7. The method for detecting abnormal pole pieces according to claim 5, It is characterized in that The step of inputting the plurality of target feature maps of different sizes into the feature fusion layer for feature fusion to obtain a plurality of target fusion feature maps output by the feature fusion layer includes: Upsampling the fourth target feature map, and concatenating the upsampling result with the third target feature map to obtain a first fused feature map; Performing segmentation and splicing operations on the first fused feature map to obtain a spliced ​​first fused feature map; Upsampling the spliced ​​first fused feature map, and splicing the upsampling result with the second target feature map to obtain a second fused feature map; Performing segmentation and splicing operations on the second fused feature map to obtain a spliced ​​second fused feature map; Upsampling the spliced ​​second fused feature map, and splicing the upsampling result with the first target feature map to obtain a third fused feature map; Perform segmentation and splicing operations on the third fused feature map to obtain a first target fused feature map; Performing a convolution operation on the first target fusion feature, splicing the convolution result with the spliced ​​second fusion feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a second target fusion feature map; Performing a convolution operation on the second target fusion feature map, splicing the convolution result with the spliced ​​first fusion feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a third target fusion feature map; Performing a convolution operation on the third target fusion feature map, splicing the convolution result with the fourth target feature map, and performing a segmentation operation and a splicing operation on the splicing result to obtain a fourth target fusion feature map; A first target fusion feature, a second target fusion feature, a third target fusion feature and a fourth target fusion feature output by the feature fusion layer are obtained.

8. The method for detecting abnormal pole pieces according to claim 5 or 7, It is characterized in that The segmentation and splicing operations include: For any feature map to be segmented and spliced, a convolution operation is performed on the feature map to obtain a convolved feature map; Segment the convolved feature map to obtain a first segmentation feature map and a second segmentation feature map; Inputting the first segmentation feature image into a plurality of serially connected bottleneck blocks for convolution operation to obtain a reference feature image output by each bottleneck block; The reference feature map output by each bottleneck block and the second segmentation feature map are spliced ​​to obtain a feature map corresponding to the feature map to be segmented and spliced ​​and subjected to segmentation and splicing operations.

9. The method for detecting abnormal pole pieces according to claim 4, It is characterized in that The target detection result is a picture to be detected or a picture to be detected containing a detection frame, and the detection frame is used to represent the abnormal area of ​​the electrode to be detected on the picture to be detected; the detection layer includes: a detection module and a screening module; When the target detection result is a to-be-detected picture including a detection frame, inputting the multiple target fusion feature maps of different sizes into the detection layer to obtain the target detection result output by the detection layer includes: For a target fusion feature map of any size, the target fusion feature map is input into the detection module to obtain at least one candidate detection box information output by the detection module; the candidate detection box information includes: coordinates and confidence of the candidate detection box; According to the confidence of each candidate detection frame, the information of each candidate detection frame is put into the candidate detection frame list in descending order of confidence; Perform multiple rounds of iterative screening according to the information of each candidate detection frame in the candidate detection frame list until the candidate detection frame list is empty or the maximum confidence in the candidate detection frame list is less than a preset confidence threshold, and output a picture to be detected containing at least one detection frame; A round of iterative screening includes: Determine the candidate detection frame with the highest confidence from the candidate detection frame list of this round, use the candidate detection frame as the detection frame, and delete it from the candidate detection frame list; For the detection frame and any candidate detection frame in the candidate detection frame list, determining an overlapping area between the detection frame and the candidate detection frame according to coordinates of the detection frame and coordinates of the candidate detection frame; For any candidate detection frame, if the overlapping area between the candidate detection frame and the detection frame is greater than the overlapping threshold, the candidate detection frame is deleted from the candidate frame list to obtain the next round of candidate detection frame list.

10. A device for detecting abnormal pole pieces, It is characterized in that include: A determination module, used for determining a picture to be detected of the battery cell to be detected, wherein the picture to be detected includes a display area of ​​a pole piece to be detected on the battery cell to be detected; An input module, used for inputting the image to be detected into the anomaly detection model to obtain a target detection result output by the anomaly detection model, wherein the target detection result is used to indicate whether the electrode to be detected is normal; The anomaly detection model is trained using the labeled battery cell images in the first training set and the unlabeled battery cell images in the second training set as training samples, and using the labeling information corresponding to the labeled battery cell images and the first result corresponding to the unlabeled battery cell images as training labels; The first result is obtained by: Inputting each unlabeled battery cell image in the second training set into a trained comparison model to obtain a first result of each unlabeled battery cell image output by the comparison model; The comparison model is trained by using the labeled battery cell images in the first training set as training samples and the labeling information corresponding to the labeled battery cell images as training labels; Each labeled cell image includes a display area of ​​a pole piece on a corresponding first sample cell, and the labeled information of each labeled cell image is used to indicate whether the pole piece on the corresponding first sample cell is normal; Each unlabeled battery cell image includes a display area of ​​an electrode piece on a corresponding second sample battery cell, and the first result of each unlabeled battery cell image is used to indicate whether the electrode piece on the corresponding first sample battery cell is normal.

11. An electronic device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Welding defect detection method, device and equipment based on semi-supervision and medium

    CN115272270A

  • Battery cell pole piece detection method and device and electronic equipment

    CN116309265A

  • Pedestrian detection method and device in dense shielding scene, medium and product

    CN118116030A

Cited By

  • Abnormal electrode sheet detection method and apparatus, electronic device, and storage medium

    WO2026001722A1