Image classification method, device and electronic equipment

By setting misjudgment conditions and confidence thresholds, the classification correction of the Ji'er image is performed, which solves the problem of classification contradiction caused by the Ji'er image containing both normal and abnormal classes, and improves the classification accuracy and precision.

CN117636079BActive Publication Date: 2024-10-18CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410107885.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2024-10-18
Estimated Expiration
2044-01-25

AI Technical Summary

Technical Problem

In the existing technology, in Ji'er image classification, if the image contains both normal and abnormal classes, the classification results will be contradictory, resulting in misjudgment and low classification accuracy.

Method used

By obtaining the confidence corresponding to multiple classifications of the Ji'er image, setting misjudgment conditions (the confidence of the normal class is less than the first threshold and the confidence of the abnormal class is greater than the second threshold), the classification of the image is corrected to the target abnormal class. Specific steps This includes obtaining a sample set for network model training, calculating the confidence threshold, and ranking the confidence to determine the most appropriate anomaly class.

Benefits of technology

It reduces the misjudgment rate, improves the accuracy of image classification, and ensures the accuracy and precision of the classification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117636079B_ABST
    Figure CN117636079B_ABST
Patent Text Reader

Abstract

This application discloses an image classification method, apparatus, and electronic device, comprising: acquiring a first electrode image; inputting the first electrode image into a classification model to obtain confidence scores corresponding to multiple categories, including a normal class and multiple abnormal classes; if the first electrode image is determined to belong to the normal class based on the confidence scores corresponding to the multiple categories, and if the confidence scores corresponding to the multiple categories meet a misclassification condition, then the classification of the first electrode image is corrected to a target abnormal class, wherein the target abnormal class is determined based on the confidence scores corresponding to multiple abnormal classes, and the misclassification condition is: the confidence score corresponding to the normal class of the first electrode image is less than a first threshold, and at least one of the multiple abnormal classes of the first electrode image has a confidence score greater than its corresponding second threshold. This allows for further judgment of the first electrode image that has been determined to be normal, correcting the classification of the first electrode image, reducing the misclassification rate, and improving the classification accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image classification method, device and electronic equipment. Background Art

[0002] The image quality evaluation method for tab folding imaging can pre-identify problems that may occur in tab imaging, so as to assist lithium battery production line engineers to adjust imaging equipment in a timely manner.

[0003] Since an image may have multiple defects, in the prior art, a classification model is used to classify the tab image. The classification model outputs the confidence corresponding to each of the multiple classifications, and the classifications with higher confidence are used as the classification results of the image. For example, if the first three classifications with higher confidence are selected, and these three classifications are all abnormal classes, it means that the image includes the abnormalities corresponding to these three classifications. However, if there are normal classes and abnormal classes in these three classifications, the image belongs to both the normal class and the abnormal class, and the classification results of the image are contradictory, and the classification results are obviously wrong. Summary of the invention

[0004] The present application provides an image classification method, device and electronic device for further judging the classification results of tab images, correcting erroneous classification results, and improving the accuracy of image classification.

[0005] In a first aspect, the present application provides an image classification method, comprising:

[0006] Acquire a first pole lug image;

[0007] Inputting the first tab image into a classification model to obtain confidences corresponding to a plurality of classifications, wherein the plurality of classifications include a normal class and a plurality of abnormal classes;

[0008] In the case where it is determined that the first pole lug image belongs to the normal class according to the confidences corresponding to the multiple classifications, if the confidences corresponding to the multiple classifications meet the misjudgment condition, the classification of the first pole lug image is corrected to a target abnormal class, wherein the target abnormal class is determined according to the confidences corresponding to the multiple abnormal classes;

[0009] The misjudgment conditions are:

[0010] The confidence corresponding to the normal class of the first tab image is less than a first threshold, and the confidence corresponding to at least one abnormal class among the multiple abnormal classes of the first tab image is greater than the corresponding second threshold.

[0011] In this embodiment, by analyzing the confidences corresponding to each of the multiple classifications of the first pole ear image, when the first pole ear image belongs to the normal class, if the confidences corresponding to the multiple classifications meet the misjudgment conditions, the classification of the first pole ear image is corrected to the target abnormal class. Through the above steps, the first pole ear image judged as the normal class can be further judged, the classification of the first pole ear image can be corrected, the misjudgment rate can be reduced, and the classification accuracy can be improved.

[0012] In one embodiment of the present application, the target abnormal class is the abnormal class with the highest confidence among the at least one abnormal class.

[0013] In this embodiment, the classification of the first tab image is corrected to the abnormal class with the highest confidence level to improve the classification accuracy.

[0014] In one embodiment of the present application, before inputting the first tab image into the classification model, the method further includes:

[0015] Acquire a sample set, the sample set comprising a plurality of second pole lug images, each second pole lug image is annotated with a corresponding classification, and the plurality of second pole lug images correspond to a plurality of classifications;

[0016] The sample set is used to train the initial network model to obtain a classification model.

[0017] In this embodiment, the sample set is used to train the initial network model to obtain a classification model, so as to facilitate the subsequent use of the classification model to classify the first tab image.

[0018] In an embodiment of the present application, the method further includes:

[0019] Acquire a plurality of third pole lug images, wherein the plurality of third pole lug images belong to the normal class;

[0020] Inputting the plurality of third tab images into the classification model to obtain a confidence level that each third tab image is identified as a normal class;

[0021] The mean of the confidence that each image is identified as a normal class is calculated to obtain the first threshold.

[0022] In this embodiment, the first threshold is determined by calculating based on the confidence that the pole ear image is identified as a normal class. This can make the determination of the first threshold more accurate, facilitate the subsequent determination of the misjudgment conditions based on the first threshold, and thus make the classification of the first pole ear image more accurate.

[0023] In an embodiment of the present application, the method further includes:

[0024] Acquire a plurality of fourth pole lug images, wherein the plurality of fourth pole lug images belong to a first abnormality class among a plurality of abnormality classes;

[0025] Inputting the plurality of fourth pole lug images into the classification model to obtain a confidence level that each fourth pole lug image is identified as a first abnormal class;

[0026] The average confidence level of each fourth tab image being identified as a first abnormal class is calculated to obtain a second threshold corresponding to the first abnormal class.

[0027] In this embodiment, the second threshold corresponding to the first abnormal class is determined by calculating based on the confidence that the pole ear image is identified as the first abnormal class. This can make the determination of the second threshold more accurate and facilitate the subsequent determination of the misjudgment conditions based on the second threshold, thereby making the classification of the first pole ear image more accurate.

[0028] In one embodiment of the present application, after obtaining the confidences corresponding to the multiple classifications, and before correcting the classification of the first tab image to the target abnormal class, the method further includes:

[0029] Sorting the confidences corresponding to the multiple categories of the first tab image from large to small to obtain a sorting result;

[0030] If at least one confidence score ranked first in the sorting result includes a confidence score corresponding to the normal class, it is determined that the first tab image belongs to the normal class.

[0031] In this embodiment, when determining the classification of the first pole ear image, the classification corresponding to at least one confidence level ranked first in the sorting result is taken as the classification of the first pole ear image. If this at least one confidence level includes the confidence level that the first pole ear image is identified as a normal class, then the first pole ear image is determined to belong to the normal class. In this case, there is a possibility that the first pole ear image is misjudged, and further judgment is required to correct the classification of the first pole ear image, reduce the misjudgment rate, and improve the classification accuracy.

[0032] In one embodiment of the present application, the multiple abnormal categories include at least one of uneven lighting, jitter, too dark, overexposure, blur, too large tail, dirty prism and left out of view.

[0033] In this embodiment, a plurality of abnormal categories are set according to problems that occur in the tab imaging, so that the precision of image classification can be improved when classifying the first tab image.

[0034] In a second aspect, an embodiment of the present application provides an image classification device, comprising:

[0035] A first acquisition module, used for acquiring a first electrode lug image;

[0036] A second acquisition module is used to input the first tab image into a classification model to obtain confidences corresponding to a plurality of classifications, wherein the plurality of classifications include a normal class and a plurality of abnormal classes;

[0037] A correction module, configured to, when it is determined that the first pole lug image belongs to the normal class according to the confidences corresponding to the multiple classifications, correct the classification of the first pole lug image to a target abnormal class if the confidences corresponding to the multiple classifications meet a misjudgment condition, wherein the target abnormal class is determined according to the confidences corresponding to the multiple abnormal classes;

[0038] The misjudgment conditions are:

[0039] The confidence corresponding to the normal class of the first tab image is less than a first threshold, and the confidence corresponding to at least one abnormal class among the multiple abnormal classes of the first tab image is greater than the corresponding second threshold.

[0040] In this embodiment, by analyzing the confidences corresponding to each of the multiple classifications of the first pole ear image, when the first pole ear image belongs to the normal class, if the confidences corresponding to the multiple classifications meet the misjudgment conditions, the classification of the first pole ear image is corrected to the target abnormal class. Through the above steps, the first pole ear image judged as the normal class can be further judged, the classification of the first pole ear image can be corrected, the misjudgment rate can be reduced, and the classification accuracy can be improved.

[0041] In one embodiment of the present application, the target abnormal class is the abnormal class with the highest confidence among the at least one abnormal class.

[0042] In this embodiment, the classification of the first tab image is corrected to the abnormal class with the highest confidence level to improve the classification accuracy.

[0043] In one embodiment of the present application, the device further includes:

[0044] A third acquisition module is used to acquire a sample set, wherein the sample set includes a plurality of second pole lug images, each second pole lug image is annotated with a corresponding classification, and the plurality of second pole lug images correspond to a plurality of classifications;

[0045] The training module is used to train the initial network model using the sample set to obtain a classification model.

[0046] In this embodiment, the sample set is used to train the initial network model to obtain a classification model, so as to facilitate the subsequent use of the classification model to classify the first tab image.

[0047] In one embodiment of the present application, the device further includes:

[0048] A fourth acquisition module is used to acquire a plurality of third pole lug images, wherein the plurality of third pole lug images belong to the normal category;

[0049] A fifth acquisition module, used for inputting the plurality of third tab images into the classification model to obtain the confidence that each third tab image is identified as a normal class;

[0050] The first calculation module is used to calculate the mean of the confidence that each image is identified as a normal class to obtain the first threshold.

[0051] In this embodiment, the first threshold is determined by calculating based on the confidence that the pole ear image is identified as a normal class. This can make the determination of the first threshold more accurate, facilitate the subsequent determination of the misjudgment conditions based on the first threshold, and thus make the classification of the first pole ear image more accurate.

[0052] In one embodiment of the present application, the device further includes:

[0053] A sixth acquisition module, used for acquiring a plurality of fourth pole lug images, wherein the plurality of fourth pole lug images belong to a first abnormal category among a plurality of abnormal categories;

[0054] a seventh acquisition module, configured to input the plurality of fourth tab images into the classification model to obtain a confidence level that each fourth tab image is identified as a first abnormal class;

[0055] The second calculation module is used to calculate the average confidence level of each fourth tab image being identified as a first abnormal class, and obtain a second threshold corresponding to the first abnormal class.

[0056] In this embodiment, the second threshold corresponding to the first abnormal class is determined by calculating based on the confidence that the pole ear image is identified as the first abnormal class. This can make the determination of the second threshold more accurate and facilitate the subsequent determination of the misjudgment conditions based on the second threshold, thereby making the classification of the first pole ear image more accurate.

[0057] In one embodiment of the present application, the device further includes:

[0058] A sorting module, used for sorting the confidences corresponding to the multiple categories of the first tab image from large to small to obtain a sorting result;

[0059] A determination module is configured to determine that the first tab image belongs to the normal class if at least one confidence score ranked first in the sorting result includes a confidence score corresponding to the normal class.

[0060] In this embodiment, when determining the classification of the first pole ear image, the classification corresponding to at least one confidence level ranked first in the sorting result is taken as the classification of the first pole ear image. If this at least one confidence level includes the confidence level that the first pole ear image is identified as a normal class, then the first pole ear image is determined to belong to the normal class. In this case, there is a possibility that the first pole ear image is misjudged, and further judgment is required to correct the classification of the first pole ear image, reduce the misjudgment rate, and improve the classification accuracy.

[0061] In one embodiment of the present application, the multiple abnormal categories include at least one of uneven lighting, jitter, too dark, overexposure, blur, too large tail, dirty prism and left out of view.

[0062] In this embodiment, a plurality of abnormal categories are set according to problems that occur in the tab imaging, so that the precision of image classification can be improved when classifying the first tab image.

[0063] In a third aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the image classification method described in the first aspect are implemented.

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

[0065] The features, advantages and technical effects of exemplary embodiments of the present application will be described below with reference to the accompanying drawings.

[0066] Figure 1 A schematic diagram of the process of an image classification method provided in an embodiment of the present application;

[0067] Figure 2 A schematic diagram of the structure of an image classification device provided in an embodiment of the present application;

[0068] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0070] Unless otherwise defined, all technical and scientific terms used in this application have the same meanings as those commonly understood by technicians in the technical field of this application; the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order or a primary and secondary relationship.

[0071] In the prior art, a classification model is used to classify the lug image, and the classification model outputs the confidence corresponding to each of the multiple classifications. Since a lug image may have multiple defects at the same time, if the classification with the largest confidence is selected as the classification result of the image, only the classification result that the image includes one defect can be obtained. Based on this, several classifications with larger confidences are often selected as the classification result of the image. For example, if three confidences with larger values ​​are selected, and the classifications corresponding to these three confidences are all abnormal classifications, it means that the image includes these three abnormalities at the same time. However, if these three confidences correspond to normal classes and abnormal classes, that is, the image belongs to both the normal class and the abnormal class, there are contradictions in the classification results of the image, and the classification results are obviously wrong. In order to improve the classification accuracy of lug images, the embodiments of the present application provide an image classification method, device and electronic device.

[0072] Figure 1 A flowchart of an image classification method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes steps 101 to 103, wherein:

[0073] Step 101, obtaining a first electrode tab image.

[0074] The first pole tab image refers to a pole tab image to be classified.

[0075] Step 102: input the first tab image into a classification model to obtain confidences corresponding to a plurality of classifications, wherein the plurality of classifications include a normal class and a plurality of abnormal classes.

[0076] For example, the plurality of abnormal classes may include one or more of uneven lighting, jitter, too dark, overexposed, blurry, too large tail, dirty prism, and left super-viewing field.

[0077] The classification model can be pre-trained using a sample set. The classification model can output the confidence level corresponding to the normal class and each abnormal class based on the input ear image. The greater the confidence level, the greater the possibility that the image belongs to the classification corresponding to the confidence level.

[0078] It should be noted that the first tab image may be an image obtained by normalizing the collected tab image. Similarly, the images in the sample set used to train the classification model are also normalized images.

[0079] The first pole lug image is input into the classification model, and the classification model outputs the confidence corresponding to each of the multiple classifications. For example, if the number of the multiple classifications is 3, the classification model outputs the confidence corresponding to the normal class and the confidence corresponding to the two abnormal classes.

[0080] Step 103, when it is determined that the first pole ear image belongs to the normal class according to the confidences corresponding to the multiple classifications, if the confidences corresponding to the multiple classifications meet the misjudgment condition, the classification of the first pole ear image is corrected to the target abnormal class, wherein the target abnormal class is determined according to the confidences corresponding to the multiple abnormal classes.

[0081] Whether the first pole ear image belongs to the normal class can be determined based on the confidence levels corresponding to multiple classifications. If it belongs to the normal class, there is a possibility that the first pole ear image is judged as the normal class and also as the abnormal class. Further judgment is needed to determine whether the classification of the first pole ear image needs to be corrected to a certain abnormal class.

[0082] Exemplarily, the confidences corresponding to the multiple classifications can be sorted from large to small, and the classification corresponding to the confidences ranked in the first Y positions in the sorting is taken as the classification of the first pole ear image; if Y is 1, the classification corresponding to the confidence ranked first in the sorting is taken as the classification of the first pole ear image. If the classification corresponding to the confidence ranked first is the normal class, the first pole ear image belongs to the normal class. In this case, there may be misjudgments. For example, the pole ear image of the prism dirt class is easily misjudged as the normal class and further judgment is required; if Y is 2, the classification corresponding to the first 2 confidences in the sorting is taken as the classification of the first pole ear image. If the first 2 confidences in the sorting are the confidence corresponding to the normal class and the confidence corresponding to the prism dirt, respectively, the classification of the first pole ear image is both the normal class and the prism dirt class. In this case, there is a contradiction in the classification of the first pole ear image, and there is a possibility of misjudgment, which requires further judgment.

[0083] The misjudgment condition is a condition for determining that the first pole ear image is a normal class. When it is determined that multiple confidences meet the misjudgment condition, the classification of the first pole ear image is corrected. For example, it is corrected to the abnormal class corresponding to the maximum confidence among the confidences corresponding to multiple abnormal classes. In this case, the target abnormal class is the abnormal class corresponding to the maximum confidence. It should be noted that if multiple confidences do not meet the misjudgment condition, the first pole ear image is a normal class. In this case, the first pole ear image is only a normal class and does not belong to any abnormal class. The misjudgment condition is:

[0084] The confidence corresponding to the normal class of the first tab image is less than a first threshold, and the confidence corresponding to at least one abnormal class among the multiple abnormal classes of the first tab image is greater than the corresponding second threshold.

[0085] Specifically, the first pole ear image is input into the classification model, and the classification model outputs the confidence corresponding to the normal class and the confidence corresponding to each of the multiple abnormal classes. If the confidence corresponding to the normal class of the first pole ear image is less than the first threshold, and the confidence corresponding to at least one abnormal class among the multiple abnormal classes is greater than the second threshold corresponding to the abnormal class, it means that the misjudgment condition is met, and the first pole ear image belongs to the normal class, which is a misjudgment and needs to be corrected. The first threshold and the second threshold can be set according to the actual situation, for example, determined according to statistical experiments.

[0086] Taking the dirty prism class as an example, dirty prisms are easily identified as normal. If a certain condition can be found so that when the condition is met, the images that are misidentified as normal can be corrected to dirty prisms, while trying not to affect the normal class images that were originally correctly identified, and prevent these correct images from being misidentified as dirty prisms, then the accuracy of dirty prisms can be improved.

[0087] If f(OK) is the confidence that the first tab image is identified as a normal class, f(NG) is the confidence that the first tab image is identified as a prism dirty class, g(OK) is the first threshold, which can be 0.7, and g(NG) is the second threshold corresponding to the prism dirty class, which can be 0.24. If the following misjudgment conditions are met:

[0088] ;

[0089] This means that the first tab image is misjudged as normal and should be corrected to the prism dirty class.

[0090] For each of the multiple abnormal classes, a similar method to the above-mentioned prism contamination class can be used for processing, that is, the confidence corresponding to the abnormal class is compared with the second threshold corresponding to the abnormal class. If the confidence corresponding to the abnormal class is greater than the second threshold corresponding to the abnormal class, it means that the first pole ear image is misclassified as a normal class and needs to be corrected to an abnormal class that meets the misjudgment condition. It should be noted that if the number of at least one abnormal class mentioned above is greater than 2, it means that the confidence corresponding to 2 or more abnormal classes is greater than the second threshold corresponding to each. In this case, the target abnormal class is the abnormal class with the largest confidence among the at least one abnormal class, and the classification of the first pole ear image is corrected to the target abnormal class to improve the classification accuracy.

[0091] In the above, by setting the misjudgment condition, it can be determined whether the first tab image is misjudged as normal, thereby correcting the classification of the first tab image and improving the classification accuracy.

[0092] In this embodiment, by analyzing the confidences corresponding to the multiple classifications of the first pole ear image, when the first pole ear image belongs to the normal class, if the confidences corresponding to the multiple classifications meet the misjudgment condition, the classification of the first pole ear image is corrected to the target abnormal class. Through the above steps, the first pole ear image determined to be the normal class can be further judged, the classification of the first pole ear image can be corrected, the misjudgment rate can be reduced, and the classification accuracy can be improved. In some other embodiments of the present application, before the first pole ear image is input into the classification model, the method further includes:

[0093] Acquire a sample set, the sample set comprising a plurality of second pole lug images, each second pole lug image is annotated with a corresponding classification, and the plurality of second pole lug images correspond to a plurality of classifications;

[0094] The sample set is used to train the initial network model to obtain a classification model.

[0095] Specifically, each second pole lug image can be annotated manually. If the second pole lug image has no abnormality, it is annotated as a normal class. If the second pole lug image has an abnormality, it is annotated as a corresponding abnormal class. It should be noted that the plurality of second pole lug images need to include pole lug images annotated as normal classes and second pole lug images annotated as a plurality of abnormal classes.

[0096] The initial network model can be a neural network model, which is not limited here. After the training is completed, a classification model can be obtained, and the classification model can classify the input ear tab image. It should be noted that the classification model outputs the normal class and the confidence corresponding to each abnormal class. The greater the confidence, the greater the probability of belonging to the classification corresponding to the confidence.

[0097] Through the above process, the sample set is used to train the initial network model to obtain a classification model, which is convenient for subsequent use of the classification model to classify the first pole lug image.

[0098] In some embodiments of the present application, the method further includes:

[0099] Acquire a plurality of third pole lug images, wherein the plurality of third pole lug images belong to the normal class;

[0100] Inputting the plurality of third tab images into the classification model to obtain a confidence level that each third tab image is identified as a normal class;

[0101] The mean of the confidences of each image being identified as a normal class is calculated to obtain the first threshold.

[0102] In this embodiment, the plurality of third lug images may be normal lug images obtained from a sample set, or may be re-photographed normal lug images, which are not limited here. Each third lug image is input into a classification model to obtain the confidence level of each third lug image being identified as normal, and the average confidence level of each third lug image being identified as normal is used as the first threshold.

[0103] In this embodiment, the third pole lug image of the normal class is input into the classification model to obtain the confidence that each third pole lug image is identified as a normal class, and the average of these confidences is calculated to obtain the first threshold. In the above, by calculating based on the confidence that the pole lug image is identified as a normal class to determine the first threshold, the determination of the first threshold can be made more accurate, which is convenient for the subsequent determination of the misjudgment condition based on the first threshold, thereby making the classification of the first pole lug image more accurate.

[0104] In some embodiments of the present application, the method further includes:

[0105] Acquire a plurality of fourth pole lug images, wherein the plurality of fourth pole lug images belong to a first abnormality class among a plurality of abnormality classes;

[0106] Inputting the plurality of fourth pole lug images into the classification model to obtain a confidence level that each fourth pole lug image is identified as a first abnormal class;

[0107] The mean of the confidence that each image is identified as a first abnormal class is calculated to obtain a second threshold corresponding to the first abnormal class.

[0108] In this embodiment, the plurality of fourth pole lug images may be pole lug images of the first abnormal class obtained from the sample set, or may be pole lug images of the first abnormal class obtained by reshooting, which is not limited here. Each fourth pole lug image is input into the classification model to obtain the confidence that each fourth pole lug image is identified as the first abnormal class, and the average of the confidences that each fourth pole lug image is identified as the first abnormal class is used as the second threshold.

[0109] Each of the multiple exception classes is processed using the processing method of the first exception class to obtain a second threshold corresponding to each exception class.

[0110] In this embodiment, by inputting the fourth pole lug image of the first abnormal class into the classification model, the confidence of each fourth pole lug image being identified as the first abnormal class is obtained, and the average of these confidences is calculated to obtain the second threshold corresponding to the first abnormal class. In the above, by calculating based on the confidence of the pole lug image being identified as the first abnormal class to determine the second threshold corresponding to the first abnormal class, the determination of the second threshold can be made more accurate, which is convenient for the subsequent determination of the misjudgment condition based on the second threshold, thereby making the classification of the first pole lug image more accurate.

[0111] In some embodiments of the present application, after obtaining the confidences corresponding to the multiple classifications, and before correcting the classification of the first tab image to the target abnormal class, the method further includes:

[0112] Sorting the confidences corresponding to the multiple categories of the first tab image from large to small to obtain a sorting result;

[0113] If at least one confidence level ranked first in the sorting result includes a confidence level corresponding to the normal class, it is determined that the first tab image belongs to the normal class.

[0114] Specifically, the first Y positions in the sorting result can be taken. If Y is 1, the classification corresponding to the confidence of the first position in the sorting result is taken as the classification of the first pole ear image. If the classification corresponding to the confidence of the first position is the normal class, the first pole ear image belongs to the normal class. In this case, there may be misjudgment. For example, the pole ear image of the prism dirt class is easily misjudged as the normal class and further judgment is required; if Y is 2, the classification corresponding to the first 2 confidences in the sorting result is taken as the classification of the first pole ear image. If the first 2 confidences in the sorting result are the confidence corresponding to the normal class and the confidence corresponding to the prism dirt, respectively, the classification of the first pole ear image is both the normal class and the prism dirt class. In this case, there is a contradiction in the classification of the first pole ear image, and there is a possibility of misjudgment, which requires further judgment.

[0115] That is to say, when determining the classification of the first pole ear image, the classification corresponding to at least one confidence level ranked first in the sorting result is taken as the classification of the first pole ear image. If this at least one confidence level includes the confidence level that the first pole ear image is identified as a normal class, then the first pole ear image is determined to belong to the normal class. In this case, there is a possibility that the first pole ear image is misjudged, and further judgment is needed to correct the classification of the first pole ear image, reduce the misjudgment rate, and improve the classification accuracy.

[0116] See also Figure 2 , is a schematic diagram of the structure of the image classification device provided in the embodiment of the present application, such as Figure 2 As shown, the image classification device 200 includes:

[0117] A first acquisition module 201, used to acquire a first electrode lug image;

[0118] A second acquisition module 202 is used to input the first tab image into a classification model to obtain confidences corresponding to a plurality of classifications, wherein the plurality of classifications include a normal class and a plurality of abnormal classes;

[0119] A correction module 203 is used for, when it is determined that the first pole lug image belongs to the normal class according to the confidences corresponding to the multiple classifications, if the confidences corresponding to the multiple classifications meet the misjudgment condition, correcting the classification of the first pole lug image to a target abnormal class, wherein the target abnormal class is determined according to the confidences corresponding to the multiple abnormal classes;

[0120] The misjudgment conditions are:

[0121] The confidence corresponding to the normal class of the first tab image is less than a first threshold, and the confidence corresponding to at least one abnormal class among the multiple abnormal classes of the first tab image is greater than the corresponding second threshold.

[0122] In this embodiment, by analyzing the confidences corresponding to each of the multiple classifications of the first pole ear image, when the first pole ear image belongs to the normal class, if the confidences corresponding to the multiple classifications meet the misjudgment conditions, the classification of the first pole ear image is corrected to the target abnormal class. Through the above steps, the first pole ear image judged as the normal class can be further judged, the classification of the first pole ear image can be corrected, the misjudgment rate can be reduced, and the classification accuracy can be improved.

[0123] In one embodiment of the present application, the target abnormal class is the abnormal class with the highest confidence among the at least one abnormal class.

[0124] In this embodiment, the classification of the first tab image is corrected to the abnormal class with the highest confidence level to improve the classification accuracy.

[0125] In one embodiment of the present application, the device further includes:

[0126] A third acquisition module is used to acquire a sample set, wherein the sample set includes a plurality of second pole lug images, each second pole lug image is annotated with a corresponding classification, and the plurality of second pole lug images correspond to a plurality of classifications;

[0127] The training module is used to train the initial network model using the sample set to obtain a classification model.

[0128] In this embodiment, the sample set is used to train the initial network model to obtain a classification model, so as to facilitate the subsequent use of the classification model to classify the first tab image.

[0129] In one embodiment of the present application, the device further includes:

[0130] A fourth acquisition module is used to acquire a plurality of third pole lug images, wherein the plurality of third pole lug images belong to the normal category;

[0131] A fifth acquisition module, used for inputting the plurality of third tab images into the classification model to obtain the confidence that each third tab image is identified as a normal class;

[0132] The first calculation module is used to calculate the mean of the confidence that each image is identified as a normal class to obtain the first threshold.

[0133] In this embodiment, the first threshold is determined by calculating based on the confidence that the pole ear image is identified as a normal class. This can make the determination of the first threshold more accurate, facilitate the subsequent determination of the misjudgment conditions based on the first threshold, and thus make the classification of the first pole ear image more accurate.

[0134] In one embodiment of the present application, the device further includes:

[0135] A sixth acquisition module, used for acquiring a plurality of fourth pole lug images, wherein the plurality of fourth pole lug images belong to a first abnormal category among a plurality of abnormal categories;

[0136] a seventh acquisition module, configured to input the plurality of fourth tab images into the classification model to obtain a confidence level that each fourth tab image is identified as a first abnormal class;

[0137] The second calculation module is used to calculate the average confidence level of each fourth tab image being identified as a first abnormal class, and obtain a second threshold corresponding to the first abnormal class.

[0138] In this embodiment, the second threshold corresponding to the first abnormal class is determined by calculating based on the confidence that the pole ear image is identified as the first abnormal class. This can make the determination of the second threshold more accurate and facilitate the subsequent determination of the misjudgment conditions based on the second threshold, thereby making the classification of the first pole ear image more accurate.

[0139] In one embodiment of the present application, the device further includes:

[0140] A sorting module, used for sorting the confidences corresponding to the multiple categories of the first tab image from large to small to obtain a sorting result;

[0141] A determination module is configured to determine that the first tab image belongs to the normal class if at least one confidence score ranked first in the sorting result includes a confidence score corresponding to the normal class.

[0142] In this embodiment, when determining the classification of the first pole ear image, the classification corresponding to at least one confidence level ranked first in the sorting result is taken as the classification of the first pole ear image. If this at least one confidence level includes the confidence level that the first pole ear image is identified as a normal class, then the first pole ear image is determined to belong to the normal class. In this case, there is a possibility that the first pole ear image is misjudged, and further judgment is required to correct the classification of the first pole ear image, reduce the misjudgment rate, and improve the classification accuracy.

[0143] In one embodiment of the present application, the multiple abnormal categories include at least one of uneven lighting, jitter, too dark, overexposure, blur, too large tail, dirty prism and left out of view.

[0144] In this embodiment, a plurality of abnormal categories are set according to problems that occur in the tab imaging, so that the precision of image classification can be improved when classifying the first tab image.

[0145] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0146] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.

[0147] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0148] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In some instances, the memory 402 may include a removable or non-removable (or fixed) medium, or the memory 502 is a non-volatile solid-state memory. In some embodiments, the memory 502 may be inside or outside the battery device.

[0149] In some examples, the memory 502 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0150] The memory 502 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the image classification method provided in the embodiment of the present application.

[0151] The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement Figure 1 The image classification method in the embodiment shown in the figure can achieve Figure 1 The corresponding technical effects achieved by executing the methods / steps in the example shown are not repeated here for the sake of brevity.

[0152] In addition, the embodiments of the present application may be implemented by providing a computer storage medium having computer program instructions stored thereon; when the computer program instructions are executed by a processor, any one of the image classification methods in the above embodiments is implemented.

[0153] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0154] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memory, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0155] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0156] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device, equipment and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. An image classification method, characterized in that: include: Acquire a first pole lug image; Inputting the first tab image into a classification model to obtain confidences corresponding to a plurality of classifications, wherein the plurality of classifications include a normal class and a plurality of abnormal classes; In the case where it is determined that the first pole lug image belongs to the normal class according to the confidences corresponding to the multiple classifications, if the confidences corresponding to the multiple classifications meet the misjudgment condition, then it is a misjudgment that the first pole lug image belongs to the normal class, and the classification of the first pole lug image is corrected to a target abnormal class, wherein the target abnormal class is determined according to the confidences corresponding to the multiple abnormal classes; the misjudgment condition is a condition that the determination that the first pole lug image belongs to the normal class is a misjudgment; The misjudgment conditions are: The confidence corresponding to the normal class of the first tab image is less than a first threshold, and the confidence corresponding to at least one abnormal class among the multiple abnormal classes of the first tab image is greater than the corresponding second threshold.

2. The image classification method according to claim 1, characterized in that: The target abnormal class is the abnormal class with the highest confidence among the at least one abnormal class.

3. The image classification method according to claim 1, characterized in that: Before inputting the first tab image into the classification model, the method further includes: Acquire a sample set, the sample set comprising a plurality of second pole lug images, each second pole lug image is annotated with a corresponding classification, and the plurality of second pole lug images correspond to a plurality of classifications; The sample set is used to train the initial network model to obtain a classification model.

4. The image classification method according to claim 1, characterized in that: The method further comprises: Acquire a plurality of third pole lug images, wherein the plurality of third pole lug images belong to the normal class; Inputting the plurality of third tab images into the classification model to obtain a confidence level that each third tab image is identified as a normal class; The mean of the confidence that each image is identified as a normal class is calculated to obtain the first threshold.

5. The image classification method according to claim 1, characterized in that: The method further comprises: Acquire a plurality of fourth pole lug images, wherein the plurality of fourth pole lug images belong to a first abnormality class among a plurality of abnormality classes; Inputting the plurality of fourth pole lug images into the classification model to obtain a confidence level that each fourth pole lug image is identified as a first abnormal class; The average confidence level of each fourth tab image being identified as a first abnormal class is calculated to obtain a second threshold corresponding to the first abnormal class.

6. The image classification method according to any one of claims 1 to 5, characterized in that: After obtaining the confidences corresponding to the multiple classifications, and before correcting the classification of the first tab image to the target abnormal class, the method further includes: Sorting the confidences corresponding to the multiple categories of the first tab image from large to small to obtain a sorting result; If at least one confidence score ranked first in the sorting result includes a confidence score corresponding to the normal class, it is determined that the first tab image belongs to the normal class.

7. The image classification method according to any one of claims 1 to 5, characterized in that: The multiple abnormal categories include at least one of uneven lighting, jitter, too dark, overexposure, blur, too large tail, dirty prism and left super field of view.

8. An image classification device, characterized in that: include: A first acquisition module, used for acquiring a first electrode lug image; A second acquisition module is used to input the first tab image into a classification model to obtain confidences corresponding to a plurality of classifications, wherein the plurality of classifications include a normal class and a plurality of abnormal classes; A correction module, for determining that the first pole lug image belongs to the normal class as a misjudgment if the confidences corresponding to the multiple classifications meet a misjudgment condition, and correcting the classification of the first pole lug image to a target abnormal class, wherein the target abnormal class is determined according to the confidences corresponding to the multiple abnormal classes; and the misjudgment condition is a condition that determining that the first pole lug image belongs to the normal class is a misjudgment; The misjudgment conditions are: The confidence corresponding to the normal class of the first tab image is less than a first threshold, and the confidence corresponding to at least one abnormal class among the multiple abnormal classes of the first tab image is greater than the corresponding second threshold.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the image classification method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Abnormal video detection method and device, electronic equipment, medium and program product

    CN114882414A

  • Defect detection method, device and equipment for battery pole piece and storage medium

    CN115205247A