Unknown classifiable open world target detection method
By introducing the unknown classification head and clustering refinement module into the Faster R-CNN model, combined with the bounding box proposal and IOU filtering generated by RPN, the problem of unknown object classification in open world target detection is solved, and the refinement of unknown objects is achieved. Improve classification and classification purity.
Patent Information
- Application Number
- CN202411039421.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-08
AI Technical Summary
Existing open world target detection methods are difficult to classify unknown objects and cannot determine whether multiple unknown instances belong to the same category, which limits their use in practical applications.
The Faster R-CNN target detection model is used as the basis, and the bounding box proposal generated by the region proposal network RPN is used as the prior information of the SAM segmentation algorithm. Unknown object pseudo labels are generated through IOU and shortest edge filtering, and the unknown classification is introduced in the original classification header. Header, similarity detection and clustering refinement modules are used to classify and refine unknown objects.
It achieves refined classification of unknown objects in the open world, improves the separability and classification purity of unknown objects, and overcomes the difficulties in differentiation and classification of existing methods.
Smart Images

Figure CN118747795A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an unknown classifiable open-world target detection method, belonging to the technical field of target detection in computer vision. Background Art
[0002] At present, deep learning methods have achieved great success in object detection. Traditional object detection methods are done under the assumption of a closed world, so they can only detect known (labeled) categories. However, the real world contains many unknown classes that are difficult to correctly handle by conventional detection. Therefore, studying the problem of open-world object detection (OWOD) for detecting unknown instances is of great significance for promoting practical applications. OWOD contains multiple incremental tasks. In each task, OWOD is able to identify all unknown instances as unknown. Then, human annotators can gradually assign labels to the classes of interest, and the model gradually learns these classes in the next task. However, in addition to distinguishing unknown classes, it is also necessary to determine whether multiple unknown instances belong to the same category. Therefore, there are still huge difficulties in using OWOD for practical tasks. Most of the existing open-world detectors are designed for the OWOD problem. For example, the Open World Object Detector (ORE) proposed by Joseph et al. in 2021 can detect unknown classes, but does not consider the case of classifying unknown objects. Summary of the invention
[0003] The purpose of the present invention is to provide a method for detecting unknown classifiable open-world objects, which can refine the classification of unknown objects in the open world based on the classification of known objects.
[0004] In order to achieve the above object, the present invention is implemented through the following technical solutions: Use the Faster R-CNN target detection model as the basic target detection model; The bounding box proposals generated by the region proposal network RPN are used as the prior information for the SAM segmentation algorithm to segment the input image and generate pseudo labels for all potential objects. The pseudo labels of potential objects are used to generate pseudo labels of unknown objects using IOU and shortest edge filtering methods; An unknown classifiable open-world target detection model is constructed based on the Faster R-CNN target detection model; the unknown classifiable open-world target detection model introduces an unknown classification head UCH (Unknown Classification Head) into the original classification head of the Faster R-CNN target detection model to mine unknown objects in the image, obtain an unknown object set, and use a similarity-based unknown classification SUC (Similarity-Based Unknown Classification) to detect different categories of unknown objects and calculate the similarity loss; the unknown object classification is refined through the unknown clustering refinement module UCH (Unknown Classification Head); Train an unknown classifiable open-world object detection model with true labels of known objects and pseudo labels of unknown objects.
[0005] Preferably, Faster R-CNN is used as the basic target detection model, which consists of a feature extraction backbone network, a region proposal network RPN, a region of interest pooling ROI Pooling, a bounding box regression and a classification head.
[0006] Preferably, the region proposal network RPN generates a rough bounding box proposal for the class-agnostic potential object in the input image, and the instance segmentation algorithm SAM accurately segments the potential object based on the rough bounding box proposal, calculates the maximum and minimum x, y coordinates for each mask, obtains the bounding box of the object, and generates a pseudo-label for the potential object, which includes the known object.
[0007] Preferably, the unknown object pseudo label is generated by using the IOU and shortest edge filtering method, and the specific steps include: Calculate the IOU of each potential object’s pseudo-label with the known object annotation and take the maximum value. If the maximum IOU value is greater than the preset threshold, it is considered as a repeated annotation. Calculate the minimum length and width of the potential object’s pseudo-label. If the minimum value is less than the preset threshold, it is considered as noise and deleted, and finally obtain the unknown object pseudo-label.
[0008] Preferably, multiple unknown classes are introduced into the original classification header: In the training phase, pseudo labels are marked as unknown. Since the original classification strategy cannot classify multiple unknown objects, the original classification loss is modified, and the classification loss of the unknown class is calculated using the maximum probability of pseudo labels and multiple unknown class predictions: in, is the total number of objects, is a known class label, is the unknown class pseudo label, is the predicted probability, is the number of known classes, is the number of unknown classes.
[0009] Preferably, similarity-based unknown classification SUC is used to detect different categories of unknown objects, and the similarity between objects is measured by pairwise classification loss. It is determined whether the sample pairs are similar to classify the unknown classes. The specific steps include: Category information output through the unknown category header UCH Calculate the similarity matrix between objects. The similarity matrix is as follows: , in, represents the L2 norm, , Indicates the number of instances, Indicates Tags and The similarity between the labels, Represents the category information of the output of the unknown classification head. Preferably, a supervised method is used to optimize the known objects, and the labeled data of the known objects are regarded as prior knowledge, and the similarity relationship between different unknown objects is guided. Since the relationship between unknown objects is unknown, only known-known instance pairs, unknown-known instance pairs, known-background instance pairs, and unknown-background instance pairs are used here to construct the labeling matrix ; Use the known class truth value to reduce the error and construct the similarity loss function as follows: .
[0010] Preferably, for unknown objects, the self-supervisory method selects similar and dissimilar object pairs through dynamic upper and lower thresholds. and is applied to the similarity matrix Dynamic upper and lower thresholds to obtain a self-labeling matrix ,in is an adaptive parameter that controls sample selection. and Unknown instance pairs with similarity between them are excluded from the training phase and the self-labeling matrix and class labels Constructing the labeling matrix , by the similarity matrix and the label matrix The similarity loss is calculated as follows: , in, represents the penalty term for the number of samples, Adaptive parameters, for The learning rate.
[0011] Preferably, the specific method of refining the unknown object classification by the unknown clustering refinement module UCR is as follows: According to the category information of the unknown category header UCH and the cluster centroid of the unknown class ; Use T distribution as kernel to calculate the category information stored in the refinement layer and the cluster centroid of the unknown class The specific formula for soft allocation between is as follows: , in, For example Assign to clusters The probability of soft allocation of Using auxiliary target distribution , the clusters are refined according to the high confidence assignments. The specific formula is as follows: , , in, is the soft cluster frequency; By minimizing soft allocation With auxiliary distribution The KL divergence loss between is used to refine the clustering, and the KL divergence loss is expressed as: .
[0012] Preferably, during the training process, the loss function of the unknown classifiable open world object detection model is as follows: , in, represents the loss term of the region proposal network, represents the loss term for bounding box regression, , , , Represents the weight factor.
[0013] Beneficial effects of the present invention: 1. Since the instance segmentation model SAM cannot distinguish between the foreground and background, and the same object may be segmented into multiple objects, and the RPN structure can only locate the rough position of the potential object, this method uses the RPN region proposal as the prior information of the segmentation model SAM to assist in generating pseudo labels for unknown objects. RPN can generate region proposals for foreground objects in the image, help the SAM model distinguish between the foreground and background, and accurately locate the position of potential objects in the image, so as to achieve accurate segmentation of the entire potential object and refine the potential object position information, thereby generating accurate pseudo label frames for potential objects.
[0014] 2. Obtain the unknown object pseudo label by performing IOU matching between the potential object pseudo label and the known class label. Considering the problem of incorrect segmentation caused by noise interference in segmentation, this method removes the extremely small pseudo label caused by noise through the shortest edge filtering method.
[0015] 3. In this method, during the training phase, unknown class classification loss and similarity loss are used to classify unknown classes and more instances are gradually added to the training. Finally, the soft assignment method is used to improve the separability of unknown objects through clustering, improve the clustering purity, and achieve refined classification of unknown classes. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0017] Figure 1 It is a schematic diagram of the process of the present invention.
[0018] Figure 2 It is a schematic diagram of the model structure of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Example 1 The unknown class open world target detection problem is defined as follows: there is a set of tasks In the task There is a known set and unknown set ,in is the number of known classes. Task The set of known classes in contains tasks The known class set in . Known Class Dataset No. The label of the object is , where the class label , Represents the bounding box center coordinates, width and height respectively. and are the input image and label respectively. Instances of unknown classes have no label. Open-world object detection model for unknown classes Ability to identify test instances belonging to any known class, and also detect new or unseen class instances as different unknown classes. Human users can identify new classes of interest from the unknown set of instances and provide corresponding training examples. Update the set of known classes By gradually adding new classes, the learner creates an updated model , without having to retrain the model on the entire dataset.
[0021] like Figure 1 As shown, this embodiment discloses a method for detecting unknown classifiable open-world objects, and the specific steps are as follows: S1: Use the Faster R-CNN target detection model as the basic target detection model.
[0022] S2: The bounding box proposals generated by the region proposal network RPN are used as the prior information for the SAM segmentation algorithm to segment the input image and generate pseudo labels for all potential objects.
[0023] S3: The pseudo labels of potential objects are used to generate pseudo labels of unknown objects using the IOU and shortest edge filtering method.
[0024] S4: An unknown classifiable open-world target detection model is constructed based on the Faster R-CNN target detection model; the unknown classifiable open-world target detection model introduces an unknown classification head UCH (Unknown Classification Head) into the original classification head of the Faster R-CNN target detection model to mine unknown objects in the image, obtain a set of unknown objects, and use a similarity-based unknown classification SUC (Similarity-Based Unknown Classification) to detect different categories of unknown objects and calculate the similarity loss; the unknown object classification is refined through the unknown clustering refinement module UCH (Unknown Classification Head).
[0025] S5: Train an unknown classifiable open-world object detection model with true labels of known objects and pseudo labels of unknown objects.
[0026] As a refinement of the above embodiment, in step S1, Faster R-CNN is used as the basic target detection model. Faster R-CNN is a traditional detection model, which consists of a feature extraction backbone network, a region proposal network RPN, a region of interest pooling ROI Pooling, and a bounding box regression and classification head in image classification tasks. Traditional detection tasks are trained on closed sets and assume that there are no potential objects in the image.
[0027] As a refinement of the above embodiment, the region proposal network RPN in step S2 can generate rough bounding box proposals for class-agnostic potential objects in the input image, and the instance segmentation algorithm SAM accurately segments the potential objects based on these rough bounding box proposals, calculates the maximum and minimum x, y coordinates for each mask, obtains the bounding box of the object, and generates pseudo labels for the potential objects, which include known objects.
[0028] As a refinement of the above embodiment, in step S3, the unknown object pseudo label is generated by using the IOU and shortest edge filtering method, and the specific steps include: The IOU of the pseudo-label of each potential object and the known object annotation is calculated, and the maximum value is taken. If the maximum IOU value is greater than the preset threshold, it is considered as a repeated annotation. The shortest edge filtering method calculates the minimum length and width of the pseudo-label of the potential object. If the minimum value is less than the preset threshold, it is considered as noise and deleted, and finally the pseudo-label of the unknown object is obtained.
[0029] As a refinement of the above embodiment, in step S4, the unknown object set is obtained through the unknown classification header UCH, and the unknown classification loss is calculated. Multiple unknown classes are introduced into the original classification header: Where U is the number of unknown classes. During the training phase, pseudo labels are marked as unknown. Since the original classification strategy cannot classify multiple unknown objects, the original classification loss is modified. The classification loss of the unknown class is calculated using the pseudo label and the maximum probability of multiple unknown class predictions: , in, is the total number of objects, is a known class label, is the unknown class pseudo label, is the predicted probability, is the number of known classes, is the number of unknown classes.
[0030] As a refinement of the above embodiment, in step S4, the unknown classification SUC based on similarity is used to detect different categories of unknown objects. The similarity between objects is measured by pairwise classification loss, and the unknown class can be classified by determining whether the sample pairs are similar. The specific steps include: Output category information through unknown category header UCH Calculate the similarity matrix between objects. The similarity matrix is as follows: , in, represents the L2 norm, , Indicates the number of instances, Indicates Tags and The similarity between the labels. In this method, supervised and self-supervised methods are used to optimize the model.
[0031] A supervised approach is used for known objects. The labeled data of known objects is regarded as prior knowledge and used to guide the similarity relationship between different unknown objects. Since the relationship between unknown objects is unknown, only known-known instance pairs, unknown-known instance pairs, known-background instance pairs, and unknown-background instance pairs are used here to construct the labeling matrix as follows: , in, Indicates The class label of the instance, , is a set of unknown classes. Use the known class truth value to reduce the error, by marking the matrix The similarity loss function is constructed as follows: .
[0032] Self-supervised methods for unknown objects. Selecting similar and dissimilar object pairs via dynamic upper and lower thresholds. and are the dynamic upper and lower thresholds applied to the similarity matrix S to obtain the self-labeling matrix ,as follows: in is an adaptive parameter that controls sample selection. and Unknown instance pairs with similarity between them are excluded from the training phase. and class labels Constructing the labeling matrix ,as follows: , The similarity matrix S and the label matrix The similarity loss is calculated as follows: , in, represents the penalty term for the number of samples, is the adaptive parameter, for The learning rate is As is continuously updated, more and more instance pairs participate in the training phase. In order to obtain clustering-friendly representations, we iteratively train the model from easy-to-classify unknown instance pairs to hard-to-classify unknown instance pairs according to the change of threshold. Terminated.
[0033] As a refinement of the above embodiment, the specific method of refining the unknown object classification by the unknown clustering refinement module UCR in step S4 is as follows: A soft assignment method is used to improve the unknown classification based on the previous network output. UCR uses clustering to improve the separability of unknown objects. Class information obtained based on the unknown classification head and the cluster centroid of the unknown class ; Use T distribution as kernel to calculate the category information stored in the refinement layer and the cluster centroid of the unknown class The specific formula for soft allocation between is as follows: , in, Can be interpreted as an example Assign to clusters The probability of soft allocation is . Using auxiliary target distribution , the clusters are refined according to the high confidence assignments. The specific formula is as follows: , , in, is the soft cluster frequency. The quadratic term of the auxiliary target distribution can emphasize high confidence assignments. Therefore, with the help of the auxiliary target distribution, the model can gradually learn a good clustering structure and improve cluster purity. By minimizing the soft assignment With auxiliary distribution The KL divergence loss between is used to refine the clustering, and the KL divergence loss is expressed as: , As a refinement of the above embodiment, the training process in step S5 is end-to-end, and the loss function of the unknown classifiable open world object detection model is as follows: , in, Propose network loss for standard areas, is the bounding box regression loss, where the standard Regression loss, , , , Represents the weight factor.
[0034] When the model only uses the current task When training a class, it will completely forget the information learned in the previous task. Therefore, a relatively simple few-example replay method is adopted in this method. Finally, the model is fine-tuned using a set of stored examples. .
[0035] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting unknown classifiable open-world objects, characterized in that: The following steps are involved: Use the Faster R-CNN target detection model as the basic target detection model; The bounding box proposals generated by the region proposal network RPN are used as the prior information for the SAM segmentation algorithm to segment the input image and generate pseudo labels for all potential objects. The pseudo labels of potential objects are used to generate pseudo labels of unknown objects using IOU and shortest edge filtering methods; An unknown classifiable open-world target detection model is constructed based on the Faster R-CNN target detection model; the unknown classifiable open-world target detection model introduces an unknown classification head UCH into the original classification head of the Faster R-CNN target detection model to mine unknown objects in the image, obtain a set of unknown objects, and uses a similarity-based unknown classification SUC to detect different categories of unknown objects and calculate the similarity loss; the unknown object classification is refined by the unknown clustering refinement module UCR; Train an unknown classifiable open-world object detection model with true labels of known objects and pseudo labels of unknown objects.
2. The unknown classifiable open-world target detection method according to claim 1, characterized in that: FasterR-CNN is used as the basic target detection model, which consists of a feature extraction backbone network, a region proposal network RPN, an interest region pooling ROIPooling, a bounding box regression, and a classification head.
3. The unknown classifiable open-world target detection method according to claim 1, characterized in that: The region proposal network RPN generates rough bounding box proposals for class-agnostic potential objects in the input image. The instance segmentation algorithm SAM accurately segments the potential objects based on the rough bounding box proposals, calculates the maximum and minimum x, y coordinates for each mask, obtains the bounding box of the object, and generates pseudo labels for the potential objects, which include known objects.
4. The unknown classifiable open-world target detection method according to claim 1, characterized in that: Generate pseudo labels for unknown objects using the IOU and shortest edge filtering method. The specific steps include: Calculate the IOU of each potential object’s pseudo-label with the known object annotation and take the maximum value. If the maximum IOU value is greater than the preset threshold, it is considered as a repeated annotation. Calculate the minimum length and width of the potential object’s pseudo-label. If the minimum value is less than the preset threshold, it is considered as noise and deleted, and finally obtain the unknown object pseudo-label.
5. The unknown classifiable open-world object detection method according to claim 1, characterized in that: Introduce multiple unknown classes into the original classification header: In the training phase, pseudo labels are marked as unknown. Since the original classification strategy cannot classify multiple unknown objects, the original classification loss is modified, and the classification loss of the unknown class is calculated using the maximum probability of pseudo labels and multiple unknown class predictions: , in, is the total number of objects, is a known class label, is the unknown class pseudo label, is the predicted probability, is the number of known classes, is the number of unknown classes.
6. The unknown classifiable open-world object detection method according to claim 1, characterized in that: The similarity-based unknown classification SUC is used to detect different categories of unknown objects. The similarity between objects is measured by pairwise classification loss. The unknown class can be classified by determining whether the sample pairs are similar. The specific steps include: Category information output through the unknown category header UCH Calculate the similarity matrix between objects. The similarity matrix is as follows: , in, represents the L2 norm, , Indicates the number of instances, Indicates Tags and The similarity between the labels.
7. The unknown classifiable open-world object detection method according to claim 1, characterized in that: A supervised method is used to optimize known objects, and the labeled data of known objects is regarded as prior knowledge, and guides the similarity relationship between different unknown objects. Since the relationship between unknown objects is unknown, only known-known instance pairs, unknown-known instance pairs, known-background instance pairs, and unknown-background instance pairs are used here to construct the labeling matrix ; Use the known class truth value to reduce the error and construct the similarity loss function as follows: 。 8. The unknown classifiable open-world object detection method according to claim 1, characterized in that: For unknown objects, the self-supervised method selects similar and dissimilar object pairs through dynamic upper and lower thresholds. and is applied to the similarity matrix Dynamic upper and lower thresholds to obtain a self-labeling matrix ,in is an adaptive parameter that controls sample selection. and Unknown instance pairs with similarity between them are excluded from the training phase and the self-labeling matrix and class labels Constructing the labeling matrix , by the similarity matrix and the label matrix The similarity loss is calculated as follows: , in, represents the penalty term for the number of samples, Adaptive parameters, for The learning rate.
9. The unknown classifiable open-world object detection method according to claim 1, characterized in that: The specific method of refining the unknown object classification by the unknown clustering refinement module UCR is as follows: According to the category information of the unknown category header UCH and the cluster centroid of the unknown class ; Use T distribution as kernel to calculate the category information stored in the refinement layer and the cluster centroid of the unknown class The specific formula for soft allocation between is as follows: , in, For example Assign to clusters The probability of soft allocation of Using auxiliary target distribution , the clusters are refined according to the high confidence assignments. The specific formula is as follows: , , in, is the soft cluster frequency; By minimizing soft allocation With auxiliary distribution The KL divergence loss between is used to refine the clustering, and the KL divergence loss is expressed as: 。 10. The unknown classifiable open-world object detection method according to claim 1, characterized in that: During the training process, the loss function of the unknown classifiable open world object detection model is as follows: , in, represents the loss term of the region proposal network, represents the loss term for bounding box regression, , , , Represents the weight factor.
Citation Information
Cited By
Image classification method based on continuous adaptive knowledge space
CN119445263A
Foreground and background decoupling modeling method for open world target detection
CN120032110A
Unsupervised domain adaptive open world target detection method
CN120032111A
