Metafeature enhancement-based small sample PCB defect detection method
By introducing the global feature fusion module and the meta-feature enhancement method of the self-attention module in PCB defect detection, the problem of low defect detection recall rate and poor classification accuracy in PCB images is solved, and the comprehensiveness and recall rate of detection are improved, achieving Improves the robustness and adaptability of the model.
Patent Information
- Application Number
- CN202410671948.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Existing target detection methods based on meta-learning have low recall rates and poor classification accuracy when detecting defects in PCB images. Especially because the defects are small and the differences between classes are small, the model is prone to missed detections and false detections.
The global feature fusion module and self-attention module are introduced to enhance the small sample PCB defect detection method through meta-features, improve the problem of easy confusion between new class and base class defects, and improve the comprehensiveness and recall rate of target detection.
The detection recall rate and classification accuracy of PCB defect detection are improved. Through the combination of meta-learning and fine-tuning strategies, prior knowledge is extracted and quickly generalized on new types of defects, which improves classification ambiguity in the knowledge transfer process and avoids classification confusion. , improve the robustness and adaptability of the model.
Smart Images

Figure CN118587176A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet big data, and in particular to a small sample PCB defect detection method based on meta-feature enhancement. Background Art
[0002] Printed circuit boards (PCBs) are an important part of connecting various electronic components in devices. They provide circuit connection and hardware support functions, which are essential for the stable and reliable operation of devices. With the advancement of integrated circuit packaging technology, the wiring on printed circuit boards has become increasingly dense, and even tiny surface defects may cause unreliable power transmission and shorten the service life of the circuit board.
[0003] The detection algorithm based on convolutional neural network (CNN) obtains the semantic type and location information of specific targets in the image by training a large amount of data, and is widely used in PCB surface defect detection. However, due to the limitations of the industry, there are many difficulties in building a target sample library with a large amount of data in actual scenarios. In some special scenarios, only a very small number of sample images can be obtained. In response to the above problems, small sample learning adopts the idea of generalization of prior knowledge to obtain the desired results with very few training samples. Small sample object detection (FSOD) is one of the branches of small sample learning. Unlike classification, it is a more challenging task because it not only needs to distinguish the category of the target, but also needs to locate the specific location of the target.
[0004] Current few-sample object detection methods are mainly divided into two categories: fine-tuning-based and meta-learning-based methods. The fine-tuning strategy transfers the knowledge learned in the source domain to the target domain to improve the detection performance of the target task under small sample conditions. In the prior art, a method based on transfer learning is proposed, which freezes all networks before the detector head on the new class and only fine-tunes the last layer. This simple training method brings significant accuracy improvements. However, the fine-tuning method requires the use of a large number of original base class samples to achieve the generalization of the source task, and has high requirements on the correlation between the source domain data and the target domain data. Unlike fine-tuning, meta-learning enables the model to better utilize the empirical knowledge in previous tasks to generalize to new scenarios by training on multiple small sample tasks. For example, in the prior art, a lightweight meta-model Meta-YOLO based on YOLOv2 is constructed, which uses a feature extractor to extract meta-features that can be generalized to new object classes, and then introduces reweighted vectors in the support branch to generate global features of the image to help detect new categories. The existing technology also focuses on each RoI feature, introduces a prediction head reshaping network (PRN) to infer its class attention vector and inputs the weighted attention feature into the detection head to complete the detection task. The existing technology also proposes the Meta-DETR meta-learning framework, which uses an encoder-decoder to replace the original post-processing operations such as non-maximum suppression to achieve target classification and positioning at the image level.
[0005] The applicant found that the existing meta-learning-based target detection methods are mainly applicable to natural scene images. However, PCB images present unique challenges. On the one hand, the defects on the PCB are usually very small, with a size of only millimeters. When the network performs feature extraction, it will inevitably lose image information and cause missed detections, which in turn leads to poor comprehensiveness of PCB defect detection, that is, low detection recall rate. On the other hand, PCB contains multiple defect categories with small differences between categories. When the amount of data is limited, it is more likely to cause the model to misdetect different types of defects, which leads to low classification accuracy during PCB defect detection. Therefore, how to improve the detection recall rate and classification accuracy of PCB defect detection is a technical problem that needs to be solved urgently. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is: how to provide a small sample PCB defect detection method based on meta-feature enhancement, improve the problem that new class defects are easily confused with base class defects by introducing a global feature fusion module, and introduce a self-attention module to help solve the problem of missed detection of PCB defect targets, thereby improving the detection recall rate and classification accuracy of PCB defect detection.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] A small sample PCB defect detection method based on meta-feature enhancement, comprising:
[0009] S1: Acquire the PCB image to be inspected;
[0010] S2: Input the PCB image to be inspected into the trained defect detection model, and output the detection boxes of all detected defect targets and their predicted types;
[0011] The processing steps when training a defect detection model are as follows:
[0012] S201: Divide the training sample set into a query image set and a support image set;
[0013] S202: extracting query features and support features of the query image set and the support image set respectively through the backbone networks of the query branch and the support branch;
[0014] S203: The query branch enhances the query features through the self-attention module to generate query enhanced features;
[0015] S204: The support branch performs feature fusion on the support features through a global feature fusion module to generate support enhancement features;
[0016] S205: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature;
[0017] S206: Classifying and regressing the aggregated features through the detector head, and outputting the detection frames of all detected defect targets and their predicted types;
[0018] The training of the defect detection model includes a meta-training phase and a meta-testing phase. The training sample set in the meta-training phase is the base class image, which is used to optimize all parameters of the defect detection model. The training sample set in the meta-testing phase is the base class image and the new class image, which is used to optimize only the parameters of the detector head of the defect detection model.
[0019] S3: The regression boxes of all detected defects and their predicted types are taken as the defect detection results of the PCB image to be detected.
[0020] Preferably, in step S2, the processing steps of the meta-training stage are as follows:
[0021] S211: using the base class image set as a training sample set for the defect detection model;
[0022] S212: dividing the base class image set into a support image set and a query image set, and extracting query features and support features of the support image set and the query image set through the backbone networks of the query branch and the support branch respectively;
[0023] S213: The query branch enhances the query features through the self-attention module to generate query enhanced features;
[0024] S214: The support branch performs feature fusion on the query features through a global feature fusion module to generate support enhancement features;
[0025] S215: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature;
[0026] S216: Classify and regress the aggregated features through the detector head, and output the detection boxes and predicted types of all detected defect targets;
[0027] S217: Calculate the model loss based on the true box labels and true type labels corresponding to the base class image set, combined with the detection boxes of all detected defect targets and their predicted types, and optimize the parameters of the defect detection model;
[0028] S218: Repeat steps S211 to S217 until the model converges to obtain a meta-training model.
[0029] Preferably, in step S2, the processing steps of the meta-test phase are as follows:
[0030] S221: using a balanced image set including base class images and new class images as a training sample set for a meta-training model;
[0031] S222: dividing the balanced image set into a support image set and a query image set, and extracting query features and support features of the support image set and the query image set through the backbone networks of the query branch and the support branch respectively;
[0032] S223: The query branch enhances the query features through the self-attention module to generate query enhanced features;
[0033] S224: The support branch performs feature fusion on the support features through a global feature fusion module to generate support enhancement features;
[0034] S225: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature;
[0035] S226: Classify and regress the aggregated features through the detector head, and output the detection boxes and predicted types of all detected defect targets;
[0036] S227: Calculate the model loss based on the true box labels and true type labels corresponding to the balanced image set, combined with the detection boxes of all detected defect targets and their predicted types; then freeze all parameters of the meta-training model except the detector head, and only optimize the parameters of the detector head;
[0037] S228: Repeat steps S221 to S227 until the model converges to obtain a trained defect detection model.
[0038] Preferably, in step S2, the backbone network selects ResNet-101, whose basic structural unit is a convolution-based residual block;
[0039] The processing steps of the residual block are as follows:
[0040] 1) The input x of the backbone network passes through the first convolutional layer and activation function to obtain the feature F(x);
[0041] 2) After the feature F(x) is processed by the weight layer and added to the input x, the feature H(x) = F(x) + x is obtained;
[0042] 3) The feature H(x) is activated by the Relu function and passed to the next layer of the network.
[0043] Preferably, in step S2, the processing steps of the self-attention module are as follows:
[0044] 1) Feature F of the self-attention module input q Perform a 1*1 convolution operation on the channel dimension to obtain the Query vector, Key vector, and Value vector;
[0045] 2) The attention score is calculated by performing a dot product operation on the query vector and the key vector, and the attention score is normalized using the Softmax layer;
[0046] 3) Multiply the Value vector by the attention score to obtain the self-attention feature;
[0047] The formula is:
[0048]
[0049] 4) The feature F q Added to the self-attention feature A(Q,K,V) to obtain the query enhancement feature F q′ ;
[0050] The formula is:
[0051] F q′ =A(Q,K,V)⊕F q ;
[0052] Where A(Q, K, V) represents the self-attention feature; Q, K, V represent the Query vector, Key vector, and Value vector respectively; K T Represents the transpose of the Key vector; Represents the Query vector dimension; ⊕ represents matrix addition.
[0053] Preferably, in step S2, the processing steps of the global feature fusion module are as follows:
[0054] 1) Introduce a learnable linear layer L to support the feature F of the branch input S Perform a linear transformation, that is, weight the features of each spatial position to generate the corresponding output ω;
[0055] The formula is:
[0056] ω=Linear(F S );
[0057] 2) After performing softmax normalization on the output ω, the weight distribution of the corresponding pixel is generated, and then the weight distribution is combined with the feature F S Perform matrix multiplication on the channel dimension to obtain the global channel feature G;
[0058] The formula is:
[0059]
[0060] 3) Use the leaky ReLU activation function to activate the global channel feature G and superimpose it on the feature F S On the top, generate support enhancement feature F S′ ;
[0061] The formula is:
[0062] F S′ =α·LeakyReLU(G)⊕F s ;
[0063] Where: Linear represents the process of performing linear transformation; represents the matrix multiplication operation; α represents the scaling factor.
[0064] Preferably, in step S2, the loss function when training the defect detection model includes Faster R-CNN loss and meta-loss.
[0065] Preferably, in step S2, the FasterR-CNN loss includes classification loss and regression loss;
[0066] 1) The calculation formula of classification loss is expressed as:
[0067]
[0068]
[0069] Where: p iIndicates the probability that anchor box i is predicted as a detection box. If anchor box i is the detection box of the defect target, then the real box label is 1, otherwise it is 0;
[0070] 2) The calculation formula of regression loss is expressed as:
[0071]
[0072] Where: t i Represents the coordinate parameters of the i-th detection box; Represents the coordinate parameters of the real box corresponding to the positive anchor box; L1 represents the smooth loss function; It means that the regression loss is only valid when the anchor box prediction is correct.
[0073] Preferably, in step S2, the calculation formula of the meta-loss is expressed as:
[0074]
[0075] Where: s i Represents the probability distribution of the i-th RoI sample belonging to each category; is the true category label.
[0076] Preferably, in step S2, the loss function calculation formula when training the defect detection model is expressed as:
[0077]
[0078] Compared with the prior art, the small sample PCB defect detection method based on meta-feature enhancement in the present invention has the following beneficial effects:
[0079] The training of the defect detection model in the present invention includes a meta-training stage and a meta-testing stage. In the meta-training stage, a large number of base class sample images are input and all parameters of the model are optimized. In the meta-testing stage, a small number of balanced samples of base class samples and new class samples are input and only the parameters of the detector head are optimized, i.e., fine-tuned. First, the present invention combines meta-learning with fine-tuning strategies, and introduces a meta-learning scheme to fully extract prior knowledge and quickly generalize on new types of defects, thereby improving the robustness and adaptability of the model during PCB defect detection. Secondly, the present invention updates the entire model parameters in the training stage, and freezes some parameters in the meta-testing stage and only fine-tunes the detector head, which can improve the classification ambiguity in the knowledge transfer process (if the parameters of the entire network are directly updated in the meta-testing stage, the knowledge transfer from the base class to the new class may cause classification confusion, which will damage the detection accuracy of the new class), avoid classification confusion in the meta-knowledge transfer process, and thus improve the classification accuracy during PCB defect detection.
[0080] In view of the problem that new class defects are easily confused with base class defects in PCB detection tasks, the present invention designs a global feature fusion module on the support branch of the model, and fuses the global channel features with the original support features to distinguish different defect categories. This improves the imbalance of class samples in small sample data sets in PCB surface defect detection tasks, and further improves the problem that new class defects are easily confused with base class defects, thereby further improving the classification accuracy during PCB defect detection. At the same time, in view of the problem that instance targets are small in PCB image defect detection tasks, the present invention introduces a self-attention module on the query branch of the model, captures global context information through the self-attention module, learns feature representations at different levels, and thus better pays attention to small target defects on the PCB surface, which helps solve the problem of missed detection of PCB defect targets, thereby improving the comprehensiveness and recall rate of PCB defect detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] In order to make the purpose, technical solution and advantages of the invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings, in which:
[0082] Figure 1 This is the network structure diagram of the defect detection model;
[0083] Figure 2 Schematic diagram of the division of tasks for meta-learning;
[0084] Figure 3 Schematic diagram of the meta-training stage;
[0085] Figure 4 It is a schematic diagram of the meta-testing phase;
[0086] Figure 5 It is the network structure diagram of the residual module;
[0087] Figure 6 The network structure diagram of the self-attention module;
[0088] Figure 7 This is the network structure diagram of the global feature fusion module;
[0089] Figure 8 This is an example of PCB defect detection data;
[0090] Fig. 9 is the defect category of PCB dataset; Fig. 9 (a) to Fig. 9 (f) represents short, missing_hole, spurious_copper, open_circuit, mouse_bite and spur respectively;
[0091] Fig.10 This is a comparison diagram of the global feature fusion module; Fig.10 (a) represents the global feature fusion effect, Fig.10 (b) represents the original feature effect;
[0092] Fig.11 This is a comparison chart of the recall rate of the self-attention module;
[0093] Fig.12 Visualize a comparison chart for the new category. DETAILED DESCRIPTION
[0094] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but only represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0095] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In the description of the present invention, it should be noted that the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invention product is usually placed when used, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. In addition, the terms "horizontal", "vertical", etc. do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted. In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0096] The following is a further detailed description through specific implementation methods:
[0097] Example:
[0098] This embodiment discloses a small sample PCB defect detection method based on meta-feature enhancement, including:
[0099] S1: Acquire the PCB image to be inspected;
[0100] S2: Input the PCB image to be inspected into the trained defect detection model, and output the detection boxes of all detected defect targets and their predicted types;
[0101] like Figure 1 As shown, the processing steps when training a defect detection model are as follows:
[0102] S201: Divide the training sample set into a query image set and a support image set;
[0103] S202: extracting query features and support features of the query image set and the support image set respectively through the backbone networks of the query branch and the support branch;
[0104] S203: The query branch enhances the query features through the self-attention module to generate query enhanced features;
[0105] S204: The support branch performs feature fusion on the support features through a global feature fusion module to generate support enhancement features;
[0106] S205: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature;
[0107] In this embodiment, the enhanced query and supporting features are aggregated through convolution and sent to the detector head for positioning and classification.
[0108] S206: Classifying and regressing the aggregated features through the detector head, and outputting the detection frames of all detected defect targets and their predicted types;
[0109] The training of the defect detection model includes a meta-training phase and a meta-testing phase; the training sample set in the meta-training phase is a (large) number of base class images, which are used to optimize all parameters of the defect detection model; the training sample set in the meta-testing phase is a base class image and a (small) number of new class images, which are used to optimize only the parameters of the detector head of the defect detection model;
[0110] In this embodiment, the support images are part of the data set in the meta-task, which is used to train the model. The samples in the support set are considered to be known, and the features of each category learned from the support set, namely the class prototype vector, are usually used as category templates to help identify new categories.
[0111] The query image is also part of the meta-task data set used to evaluate the performance of the model on new categories. It contains unseen samples, usually samples from new categories. After the model updates the parameters on the support set, it uses the learned parameters to make predictions on the query set. The purpose of the query set is to evaluate the generalization ability and performance of the model on new categories.
[0112] New class images represent the new defects to be detected in this paper. These defect samples are extremely rare and are truly small samples. New class samples are used to evaluate the generalization ability of the model when facing unknown defect targets. By training new class samples in the meta-test phase, the model parameters are continuously optimized to better adapt to new class detection.
[0113] S3: The regression boxes of all detected defects and their predicted types are taken as the defect detection results of the PCB image to be detected.
[0114] The training of the defect detection model in the present invention includes a meta-training stage and a meta-testing stage. In the meta-training stage, a large number of base class sample images are input and all parameters of the model are optimized. In the meta-testing stage, a small number of balanced samples of base class samples and new class samples are input and only the parameters of the detector head are optimized, i.e., fine-tuned. First, the present invention combines meta-learning with fine-tuning strategies, and introduces a meta-learning scheme to fully extract prior knowledge and quickly generalize on new types of defects, thereby improving the robustness and adaptability of the model during PCB defect detection. Secondly, the present invention updates the entire model parameters in the training stage, and freezes some parameters in the meta-testing stage and only fine-tunes the detector head, which can improve the classification ambiguity in the knowledge transfer process (if the parameters of the entire network are directly updated in the meta-testing stage, the knowledge transfer from the base class to the new class may cause classification confusion, which will damage the detection accuracy of the new class), avoid classification confusion in the meta-knowledge transfer process, and thus improve the classification accuracy during PCB defect detection.
[0115] In view of the problem that new class defects are easily confused with base class defects in PCB detection tasks, the present invention designs a global feature fusion module on the support branch of the model, and fuses the global channel features with the original support features to distinguish different defect categories. This improves the imbalance of class samples in small sample data sets in PCB surface defect detection tasks, and further improves the problem that new class defects are easily confused with base class defects, thereby further improving the classification accuracy during PCB defect detection. At the same time, in view of the problem that instance targets are small in PCB image defect detection tasks, the present invention introduces a self-attention module on the query branch of the model, captures global context information through the self-attention module, learns feature representations at different levels, and thus better pays attention to small target defects on the PCB surface, which helps solve the problem of missed detection of PCB defect targets, thereby improving the comprehensiveness and recall rate of PCB defect detection.
[0116] Experiments show that the PCB defect detection method of the present invention is effective under extremely small sample conditions, and the test accuracy on 10-shot (10-shot refers to 10 labeled instance training, for example, there may be more than 10 real box annotations on multiple pictures, and only 10 samples are taken for training.) reaches 62.4%, which is higher than most FSOD models.
[0117] In order to better introduce the technical solution of the present invention, the prior art is analyzed as follows:
[0118] Existing small sample target detection methods usually adopt a two-stage training paradigm: base training and small sample fine-tuning. Set the dataset as D = {(x, y), x∈X, y∈Y)}, where x is the input image and y is the corresponding label. The dataset has C categories. In the entire small sample learning task, all categories C are divided into base categories C b and the new class Cn , C b The number of samples in is much larger than C n It is worth noting that: C b ∪C n =C and Typically, during training, the rich C b The samples are trained on the base class, and then a small number of m-shot (m = 1, 2, 3, ...) new class samples C are trained. n The ultimate goal is to learn a new class of samples C that can detect n Model.
[0119] The meta-learning framework follows the FSOD setting above but is somewhat different. The first stage extracts meta-knowledge from a large number of base class samples, which is called meta-training. The second stage uses base class and new class samples for fine-tuning, which is called meta-testing. Meta-learning is trained by constructing meta-tasks. represents the support set, which contains m different objects of interest. is a query set, which contains one or more images and annotation information. The meta-task can be expressed as T = {S1,…,S n ,Q}. In the N-way M-shot task setting, in the meta-training phase, b Randomly select N categories and M labeled instances from C to form N*M support set samples. b Several samples are extracted from the query set. By co-training in the PCB defect detection dataset in the form of a meta-task, the model has the ability to detect the query image target with only a small number of support samples. Unlike the base class with a large amount of sample data, the new class has only M target samples.
[0120] This two-stage meta-learning task division method is as follows Figure 2 As shown in the figure, the base class is marked with a yellow box and the new class is marked with a red box. In the meta-testing phase, the present invention constructs a meta-learning task by sampling the same number of training samples from the base class and the new class. The purpose of this is to avoid the performance degradation of the model in the base class while fine-tuning the new class.
[0121] Faster R-CNN (from REN SQ, HE KM, GIRSHICK R, et al. Faster r-cnn: Towards real-time object detection with region proposal networks) is a popular two-stage object detection algorithm. The model components mainly include the backbone network, the region proposal network (RPN), and the Bbox detection head. The detection head consists of a classifier and a regressor. The classifier classifies the object category, and the regressor is used to predict the regression of the bounding box coordinates. Meta R-CNN (from YAN XP, CHEN ZL, XUA, et al. Meta r-cnn: Towards general solver for instance-level low-shot learning) combines meta-learning with the RoI features extracted by RPN in Faster R-CNN, solving the problem that meta-learning is difficult to handle multiple instances in a single image.
[0122] In the meta-training stage, Meta R-CNN first uses the backbone network to extract base class meta features, and then shares them with the query and support branches. The support and query branches generate ROI features of different categories through the RPN network respectively. s and F q , F s and F q Perform feature aggregation and input the aggregated ROI features into the detector head to complete the detection task. In the meta-testing phase, MetaR-CNN uses balanced samples of base classes and new classes for fine-tuning. Figure 3 As shown in the figure: Meta R-CNN fine-tunes the entire network in order to transfer the base class knowledge learned during the meta-training process to achieve detection of new categories. However, in Faster R-CNN, RPN is mainly used to extract ROI features, which is class-agnostic in function. The specific classification is done by the Bbox detection head. If the parameters of the entire network are updated directly, the knowledge transfer from the base class to the new class may cause classification confusion, thereby damaging the detection accuracy of the new category.
[0123] The present invention divides feature representation learning and Bbox classification prediction learning into two steps. The first step is the same as Meta R-CNN, which performs meta-training on data-rich base class samples to fully extract base class meta features. The second step, the meta-test phase, fine-tunes only the last layer of the detector on a small-scale balanced dataset to complete the Bbox classification prediction. Figure 4As shown in the figure, most parameters are frozen in the meta-test phase, and only the detector head is fine-tuned. No further parameter updates are required, and the features learned from the base class are transferred to the new class. At the same time, to facilitate the introduction of the specified module in the next step, the query and support branches are feature decoupled. For feature decoupling: a c-way m-shot (c categories, m labeled samples) annotated image is input to the backbone network, and c class vectors are output, denoted as Then, multiple RoI features are output through the RoI pooling layer in the RCNN network, and the feature set is recorded as For the convenience of research, according to the definition of meta-learning, F s That is, the supporting eigenvector, F q That is, query the feature vector.
[0124] Specifically, in the present invention:
[0125] Combination Figure 3 As shown in Figure 2, the processing steps of the meta-training phase are as follows:
[0126] S211: using the base class image set as a training sample set for the defect detection model;
[0127] S212: dividing the base class image set into a support image set and a query image set, and extracting query features and support features of the support image set and the query image set through the backbone networks of the query branch and the support branch respectively;
[0128] S213: The query branch enhances the query features through the self-attention module to generate query enhanced features;
[0129] S214: The support branch performs feature fusion on the query features through a global feature fusion module to generate support enhancement features;
[0130] S215: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature;
[0131] S216: Classify and regress the aggregated features through the detector head, and output the detection boxes and predicted types of all detected defect targets;
[0132] S217: Calculate the model loss based on the true box labels and true type labels corresponding to the base class image set, combined with the detection boxes of all detected defect targets and their predicted types, and optimize the parameters of the defect detection model;
[0133] S218: Repeat steps S211 to S217 until the model converges to obtain a meta-training model.
[0134] Combination Figure 4As shown, the processing steps of the meta-test phase are as follows:
[0135] S221: using a balanced image set including base class images and new class images as a training sample set for a meta-training model;
[0136] In this embodiment, in the meta-test phase, the same number of training samples are sampled from the base class and the new class to construct a meta-learning task (i.e., balanced image samples). The purpose of this is to avoid the performance degradation of the model in the base class while fine-tuning the new class.
[0137] S222: dividing the balanced image set into a support image set and a query image set, and extracting query features and support features of the support image set and the query image set through the backbone networks of the query branch and the support branch respectively;
[0138] S223: The query branch enhances the query features through the self-attention module to generate query enhanced features;
[0139] S224: The support branch performs feature fusion on the support features through a global feature fusion module to generate support enhancement features;
[0140] S225: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature;
[0141] S226: Classify and regress the aggregated features through the detector head, and output the detection boxes and predicted types of all detected defect targets;
[0142] S227: Calculate the model loss based on the true box labels and true type labels corresponding to the balanced image set, combined with the detection boxes of all detected defect targets and their predicted types; then freeze all parameters of the meta-training model except the detector head, and only optimize the parameters of the detector head;
[0143] S228: Repeat steps S221 to S227 until the model converges to obtain a trained defect detection model.
[0144] The present invention combines meta-learning with fine-tuning strategies, and introduces a meta-learning scheme to fully extract prior knowledge and quickly generalize on new types of defects, thereby improving the robustness and adaptability of the model during PCB defect detection. Secondly, the present invention updates the entire model parameters in the training phase, and freezes some parameters in the meta-test phase to only fine-tune the detector head, which can improve the classification ambiguity in the knowledge transfer process (if the parameters of the entire network are directly updated in the meta-test phase, the knowledge transfer from the base class to the new class may cause classification confusion, which will damage the detection accuracy of the new class), avoid classification confusion in the meta-knowledge transfer process, and thus improve the classification accuracy during PCB defect detection.
[0145] In the specific implementation process, in the selection of backbone network, by comparing the performance of various convolutional neural networks, it is found that ResNet-101 (from HE KM, ZHANG XY, REN SQ, et al. Deep residual learning for image recognition) is more efficient under the same scale of parameters and is suitable for PCB defect detection with small data sets and high precision requirements. Therefore, the present invention selects ResNet-101 for feature extraction, and its basic structural unit is the residual block based on convolution.
[0146] like Figure 5 As shown, the processing steps of the residual block are as follows:
[0147] 1) The input x of the backbone network passes through the first convolutional layer and activation function to obtain the feature F(x);
[0148] 2) After the feature F(x) is processed by the weight layer and added to the input x, the feature H(x) = F(x) + x is obtained;
[0149] 3) The feature H(x) is activated by the Relu function and passed to the next layer of the network.
[0150] In the specific implementation process, the pixels of the original PCB image are generally between 2000 and 3000, but the defective target to be detected usually contains only a few pixel values. If the features extracted by the backbone network are directly used for detection, the model will not be able to fully extract the target features and thus lack the ability to distinguish the target. In order to solve the above problem, the present invention introduces a self-attention module in the query branch for feature enhancement.
[0151] Combination Figure 6 As shown in Figure 2, the processing steps of the self-attention module are as follows:
[0152] 1) Feature F of the query branch input q Perform a 1*1 convolution operation on the channel dimension to obtain the Query vector, Key vector, and Value vector;
[0153] 2) The attention score is calculated by performing a dot product operation on the query vector and the key vector, and the attention score is normalized using the Softmax layer;
[0154] 3) Multiply the Value vector by the attention score to obtain the final self-attention feature;
[0155] The formula is:
[0156]
[0157] 4) The feature Fq Added to the self-attention feature A(Q,K,V) to get the final query enhancement feature F q′ ;
[0158] The formula is:
[0159] F q′ =A(Q,K,V)⊕F q ;
[0160] Where A(Q, K, V) represents the self-attention feature; Q, K, V represent the Query vector, Key vector, and Value vector respectively; K T Represents the transpose of the Key vector; Represents the Query vector dimension, divided by It can prevent very small gradients from being generated after the Softmax operation and ensure the stability of training; ⊕ represents matrix addition.
[0161] The present invention aims at the problem of small instance targets in PCB image defect detection tasks, introduces a self-attention module on the query branch of the model, captures global context information through the self-attention module, learns feature representations at different levels, and thus better pays attention to small target defects on the PCB surface, which helps solve the problem of missed detection of PCB defect targets, thereby improving the comprehensiveness of PCB defect detection. The self-attention module has the following advantages: first, it does not need to rely on context information, can focus on the characteristics of the target itself, and avoid interference from other targets; second, it establishes a connection between the target and the surrounding pixels by calculating the attention weight between any two positions, thereby improving the representation ability.
[0162] In the specific implementation process, distinguishing between defect classes on PCB images is a challenging task. In the meta-learning network, the image features extracted by the query branch need to be weighted and aggregated with the supporting features to distinguish the category to which the PCB defects belong. Therefore, the supporting features play the role of category templates. In order to improve the quality of supporting features and accurately distinguish different categories, a global feature fusion module is designed here.
[0163] Combination Figure 7 As shown in Figure 2, the processing steps of the global feature fusion module are as follows:
[0164] 1) Introduce a learnable linear layer L∈R C×1 The feature F of the support branch input S ∈R C×H×W Perform a linear transformation, that is, weight the features of each spatial position to generate the corresponding output ω∈R 1×H×W ; This output represents the weight of each spatial position.
[0165] The formula is:
[0166] ω=Linear(F S );
[0167] 2) After performing softmax normalization on the output ω, the weight distribution of the corresponding pixel is generated, and then the weight distribution is combined with the feature F S Perform matrix multiplication on the channel dimension to obtain the global channel feature G∈R 1×C ;
[0168] The formula is:
[0169]
[0170] 3) Use the leaky ReLU activation function to activate the global channel feature G and superimpose it on the feature F S On top, generate the final support enhancement feature f S′ ;
[0171] The formula is:
[0172] F S′ =α·LeakyReLU(G)⊕F s ;
[0173] Where: Linear represents the process of performing linear transformation; Represents matrix multiplication operation; α represents the scaling factor, which is used to adjust the proportion of global channel features, and helps improve the distinction between defect categories on the PCB image by superimposing the original support enhancement features.
[0174] Aiming at the problem that new class defects are easily confused with base class defects in PCB detection tasks, the present invention designs a global feature fusion module on the support branch of the model, and fuses the global channel features with the original support features to distinguish different defect categories. This improves the imbalance of category samples in small sample data sets in PCB surface defect detection tasks, and further improves the problem that new class defects are easily confused with base class defects, thereby further improving the classification accuracy during PCB defect detection.
[0175] In the specific implementation process, the loss function of the present invention when training the defect detection model is the same as Meta R-CNN. The first part is the standard Faster R-CNN loss, including classification loss and regression loss. cls is the cross entropy loss of the Bbox classifier, L reg is the L1 loss of the Bbox regressor. The second part is the meta-loss. The support feature vectors learned from different categories should have different selection effects on the RoI features of different categories, so as to avoid ambiguity and ambiguity in the prediction process. Similar to the classification loss, Lmeta The cross entropy loss is used to force the target vector to fall into the class to which the target belongs.
[0176] 1) FasterR-CNN loss includes classification loss and regression loss;
[0177] 1.1) The calculation formula of classification loss is expressed as:
[0178]
[0179] Where: p i represents the probability that anchor box i is predicted as the detection box of the defect target. If anchor box i is the detection box of the defect target (i.e., it can accurately predict the object), then the real box label is 1, otherwise it is 0;
[0180] 1.2) The calculation formula of regression loss is expressed as:
[0181]
[0182] Where: t i Represents the coordinate parameters of the i-th detection box; Represents the coordinate parameters of the real box corresponding to the positive anchor box; L1 represents the smooth loss function; It means that the regression loss is only valid when the anchor box prediction is correct, that is, the anchor box i is the real box label when the defect target is detected is 1 if the value is true, otherwise it is 0.
[0183] 2) The calculation formula of the meta-loss is expressed as:
[0184]
[0185] Where: s i Represents the probability distribution of the i-th RoI sample belonging to each category; is the true category label.
[0186] 3) The loss function calculation formula when training the defect detection model is expressed as:
[0187]
[0188] In order to better illustrate the advantages of the technical solution of the present invention, this embodiment discloses the following experiment.
[0189] 1. PCB defect detection dataset
[0190] The experiment uses the public dataset PKU-Market-PCB (from HUANG WB, WEIP. A PCB dataset for defects detection and classification), which is a public synthetic PCB dataset with 693 images suitable for defect detection tasks and a total of 2953 annotated instances. There are 6 types of PCB defects: missing holes, rat bites, open circuits, short circuits, burrs, and fake copper. In the training task, 554 images are randomly selected as the training set and 139 images are used as the validation set. In the FSOD task, the rat bite category is selected as the new class, and the remaining five categories are used as base classes. Only base class data is used in the pre-training stage, and base class and new class data of the same instances are added in the fine-tuning stage. The dataset example is as follows Figure 8 As shown in the figure, the PCB defect targets are extremely small, the board circuits are complex, and the new category of rat bite is easily confused with the basic categories of burr and open circuit. Fig. 9 : A total of 6 types of defects are included.
[0191] 2. Performance evaluation indicators
[0192] The performance indicator for evaluating PCB defect detection uses the average mAP of each category of AP. AP is obtained by calculating the area under the precision-recall curve, which is expressed by the formula:
[0193]
[0194] Where: TP is the number of positive examples correctly classified as positive examples, FP is the number of negative examples incorrectly classified as positive examples, and FN is the number of positive examples incorrectly classified as negative examples. TP and FP are determined by the intersection over union (IoU) of the same predicted box and the true box. If the IoU is greater than a certain threshold, the detection box is TP, otherwise it is FP. If the corresponding target is not detected on the image, it is marked as FN. IOU formula definition:
[0195]
[0196] Where: B p is the prediction box, B gt is the real annotation box. area() represents the area. IOU is calculated by B p With B gt The intersection-over-union ratio indicates the degree of overlap between the predicted box and the real box. According to the Pascal VOC criteria, the IOU threshold in this experiment is 0.5, and the corresponding mAP value is calculated based on this.
[0197] 3. Experimental setup
[0198] All methods in this experiment are implemented on Mmdetection, using the pytorch framework and 4 RTX3090 GPUs for training. For fair comparison, all models are trained in a multi-scale manner. The backbone network uses ResNet101 pre-trained on ImageNet (from DENG J, DONG W, SOCHER R, et al. Imagenet: A large-scale hierarchical image database). SGD is used as the optimizer during training, and the batch size of a single GPU is 4. The global feature fusion module constant α is set to 0.1. In the meta-training phase, the learning rate is set to 0.02, the momentum is set to 0.9, the weight decay is set to 1e4, and the maximum number of iterations is 8000. In the meta-test phase, the learning rate is set to 0.02. The base class and the new class are set to the same number of samples and the number of iterations corresponds to {100, 100, 200, 500, 600} in K = {1, 2, 3, 5, 10} shots, and the other hyperparameters are kept the same as Meta R-CNN.
[0199] 4. Ablation experiment
[0200] Based on the proposed method, ablation experiments were designed to analyze the effectiveness of each module in the system. All ablation experiments were performed on the PKU-Market-PCB dataset to demonstrate the detection performance of a new class (rat bite).
[0201] 1) Improvement of the baseline network. Based on Meta R-CNN, the training strategy is adjusted. Specifically, the backbone network and RPN network are frozen in the meta-test phase, and only the head is fine-tuned to ensure that the classification accuracy is not affected in the generalization process of the base class to the new class knowledge. As shown in Table 1, the adjustment in the meta-test phase significantly improves the overall accuracy of the baseline network, especially in 10-shot, which shows the effectiveness of the meta-learning combined with the fine-tuning strategy. At the same time, the improved baseline network saves more video memory because the entire network does not need to be retrained in the meta-test phase.
[0202] Table 1 Baseline network improvement effect
[0203]
[0204] 2) The influence of the meta-feature enhancement module. Table 2 verifies the effectiveness of the meta-feature enhancement module. Through comparative experiments, it can be seen that the two modules are independent of each other in terms of effect and can promote each other to improve the detection effect. At the same time, when the number of samples is small, the attention module improves the accuracy higher, and in 10-shot, the effect of the global feature fusion module is more obvious, which may be determined by the characteristics of the PCB image.
[0205] Table 2. Effectiveness verification of the meta-feature enhancement module
[0206]
[0207] like Fig.10 As shown, when detecting new categories under the same 0.3 threshold condition, Fig.10 (a) Feature fusion in the support branch, Fig.10 (b) shows the use of original features. The yellow box shows the location and confidence of the detection box. Obviously, there is not much difference in the positioning effect between the two, but the confidence of the new category using the original support features is low, and the classification is ambiguous. After fusing the support features in the channel dimension, the classification effect is significantly enhanced, which also further illustrates the importance of support features for category distinction.
[0208] Fig.11 The self-attention module improves the target recall rate. The recall rate is significantly improved when there are 1-10 samples, especially when the number of samples is very limited.
[0209] 5. Comparison with other methods
[0210] Deep learning-based general object detection requires a large number of labeled samples for training. However, when the number of available labeled samples is limited and there is a distribution difference between the training set and the test set, the detection effect will drop significantly. Tables 3 and 4 respectively show the mAP (%) results of general target detection models Faster-RCNN (from REN SQ, HE KM, GIRSHICK R, et al. Faster r-cnn: Towards real-time object detection with region proposal networks), YOLOV8, RT-DETR (from LV WY, ZHAO Y, XU SL, et al. Detrs beat yolos on real-time object detection) and small sample learning-based target detection models Meta R-CNN, TFA (from WANG X, HUANG T, GONZALEZ J, et al. Frustratingly simple few-shot object detection), MPSR (from WU JX, LIU ST, HUANG D, et al. Multi-scale positive sample refinement for few-shot object detection), VFA (from HAN JM, REN YQ, DING J, et al. Few-shot object detection via variational feature aggregation) and other models and the method proposed in the present invention on the PCB defect detection dataset. Among them, the effect of traditional detection algorithms in small sample target detection tasks is very unsatisfactory. When a new category contains 10 labeled samples, the maximum mAP can only reach 37.4%. Therefore, it is necessary to mine the prior knowledge contained in a small number of samples from multiple aspects such as models and algorithms to improve the target detection effect.
[0211] Table 3 Comparison with traditional target detection methods
[0212]
[0213] Compared with other FSOD algorithms, the model of the present invention has unique advantages, indicating that the meta-feature enhancement module designed according to the characteristics of PCB images has achieved high improvements in classification and recall, and the accuracy has been significantly improved.
[0214] Table 4 Comparison with small sample target detection methods
[0215]
[0216] Combination Fig.12 It can be seen that the Meta R-CNN algorithm is suitable for the detection of natural scenes, ignoring the problems existing in the PCB defect detection scene. Therefore, it tends to mistakenly identify new classes as base classes, resulting in obvious confusion between classes and a high missed detection rate. The method of the present invention significantly improves the problem of false detection of new class defects and maintains a high confidence level. In addition, the missed detection rate of the target is also reduced to a certain extent.
[0217] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A small sample PCB defect detection method based on meta-feature enhancement, characterized in that: include: S1: Acquire the PCB image to be inspected; S2: Input the PCB image to be inspected into the trained defect detection model, and output the detection boxes of all detected defect targets and their predicted types; The processing steps when training a defect detection model are as follows: S201: Divide the training sample set into a query image set and a support image set; S202: extracting query features and support features of the query image set and the support image set respectively through the backbone networks of the query branch and the support branch; S203: The query branch enhances the query features through the self-attention module to generate query enhanced features; S204: The support branch performs feature fusion on the support features through a global feature fusion module to generate support enhancement features; S205: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature; S206: Classifying and regressing the aggregated features through the detector head, and outputting the detection frames of all detected defect targets and their predicted types; The training of the defect detection model includes a meta-training phase and a meta-testing phase; The training sample set in the meta-training phase is the base class image, which is used to optimize all parameters of the defect detection model; The training sample set in the meta-test phase is the base class images and the new class images, which are used to optimize only the parameters of the detector head of the defect detection model; S3: The regression boxes of all detected defects and their predicted types are taken as the defect detection results of the PCB image to be detected.
2. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 1 is characterized in that: In step S2, the processing steps of the meta-training phase are as follows: S211: using the base class image set as a training sample set for the defect detection model; S212: dividing the base class image set into a support image set and a query image set, and extracting query features and support features of the support image set and the query image set through the backbone networks of the query branch and the support branch respectively; S213: The query branch enhances the query features through the self-attention module to generate query enhanced features; S214: The support branch performs feature fusion on the query features through a global feature fusion module to generate support enhancement features; S215: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature; S216: Classify and regress the aggregated features through the detector head, and output the detection boxes and predicted types of all detected defect targets; S217: Calculate the model loss based on the true box labels and true type labels corresponding to the base class image set, combined with the detection boxes of all detected defect targets and their predicted types, and optimize the parameters of the defect detection model; S218: Repeat steps S211 to S217 until the model converges to obtain a meta-training model.
3. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 2 is characterized in that: In step S2, the processing steps of the meta-test phase are as follows: S221: using a balanced image set including base class images and new class images as a training sample set for a meta-training model; S222: dividing the balanced image set into a support image set and a query image set, and extracting query features and support features of the support image set and the query image set through the backbone networks of the query branch and the support branch respectively; S223: The query branch enhances the query features through the self-attention module to generate query enhanced features; S224: The support branch performs feature fusion on the support features through a global feature fusion module to generate support enhancement features; S225: performing a dot product operation on the query enhancement feature and the support enhancement feature to generate a corresponding aggregate feature; S226: Classify and regress the aggregated features through the detector head, and output the detection boxes and predicted types of all detected defect targets; S227: Calculate the model loss based on the true box labels and true type labels corresponding to the balanced image set, combined with the detection boxes of all detected defect targets and their predicted types; then freeze all parameters of the meta-training model except the detector head, and only optimize the parameters of the detector head; S228: Repeat steps S221 to S227 until the model converges to obtain a trained defect detection model.
4. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 1 is characterized in that: In step S2, the backbone network selects ResNet-101, whose basic structural unit is a convolution-based residual block; The processing steps of the residual block are as follows: 1) The input x of the backbone network passes through the first convolutional layer and activation function to obtain the feature F(x); 2) After the feature F(x) is processed by the weight layer and added to the input x, the feature H(x) = F(x) + x is obtained; 3) The feature H(x) is activated by the Relu function and passed to the next layer of the network.
5. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 1 is characterized in that: In step S2, the processing steps of the self-attention module are as follows: 1) Feature F of the self-attention module input q Perform a 1*1 convolution operation on the channel dimension to obtain the Query vector, Key vector, and Value vector; 2) The attention score is calculated by performing a dot product operation on the query vector and the key vector, and the attention score is normalized using the Softmax layer; 3) Multiply the Value vector by the attention score to obtain the self-attention feature; The formula is: 4) The feature F q Added to the self-attention feature A(Q,K,V) to obtain the query enhancement feature F q′ ; The formula is: F q′ =A(Q,K,V)⊕F q ; Where: A(Q,K,V) represents the self-attention feature; Q, K, and V represent the Query vector, Key vector, and Value vector, respectively; K T Represents the transpose of the Key vector; Represents the Query vector dimension; ⊕ represents matrix addition.
6. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 1 is characterized in that: In step S2, the processing steps of the global feature fusion module are as follows: 1) Introduce a learnable linear layer L to support the feature F of the branch input S Perform a linear transformation, that is, weight the features of each spatial position to generate the corresponding output ω; The formula is: ω=Linear(F S ); 2) After performing softmax normalization on the output ω, the weight distribution of the corresponding pixel is generated, and then the weight distribution is combined with the feature F S Perform matrix multiplication on the channel dimension to obtain the global channel feature G; The formula is: 3) Use the leaky ReLU activation function to activate the global channel feature G and superimpose it on the feature F S On the top, generate support enhancement feature F S′ ; The formula is: F S′ =α·LeakyReLU(G)⊕F s ; Where: Linear represents the process of performing linear transformation; represents the matrix multiplication operation; α represents the scaling factor.
7. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 1 is characterized in that: In step S2, the loss function when training the defect detection model includes Faster R-CNN loss and meta-loss.
8. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 7 is characterized in that: In step S2, FasterR-CNN loss includes classification loss and regression loss; 1) The calculation formula of classification loss is expressed as: Where: p i Indicates the probability that anchor box i is predicted as a detection box. If anchor box i is the detection box of the defect target, then the real box label is 1, otherwise it is 0; 2) The calculation formula of regression loss is expressed as: Where: t i Represents the coordinate parameters of the i-th detection box; Represents the coordinate parameters of the real box corresponding to the positive anchor box; L1 represents the smooth loss function; It means that the regression loss is only valid when the anchor box prediction is correct.
9. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 7, characterized in that: In step S2, the calculation formula of the meta-loss is expressed as: Where: s i Represents the probability distribution of the i-th RoI sample belonging to each category; is the true category label.
10. The small sample PCB defect detection method based on meta-feature enhancement as claimed in claim 7, characterized in that: In step S2, the loss function calculation formula when training the defect detection model is expressed as:
Citation Information
Patent Citations
Method and device based on small sample target object defect detection and electronic equipment
CN114881989A
Small sample target detection method based on support sample feature fusion and attention mechanism
CN117953343A
Single-stage small-sample-object detection method based on decoupled metric
US11205098B1
Cited By
Robot inspection defect detection method based on cross attention and multi-dimensional measurement
CN119295732A
Robot inspection defect detection method based on cross attention and multi-dimension measurement
CN119295732B
Chip surface defect target detection network based on meta-learning and training method and application thereof
CN119399145A
Cross-scene belt defect identification method based on adaptive typical sample learning technology
CN119942061A
Cross-scene belt defect recognition method based on adaptive typical sample learning technology
CN119942061B
