Generalized class discovery method independent of labeled data

By training the feature extractor and initial classifier in the pre-training stage, and using the deployment data to construct positive and negative feature prototypes for known/unknown category division and pseudo-label calculation, the problem of generalized category discovery under passive domain data is solved, achieving accurate category discovery and privacy protection.

CN123179124APending Publication Date: 2026-11-27TONGJI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611330888.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing generalized category discovery methods cannot be applied to scenarios where passive domain data is available during the deployment phase, and cannot accurately estimate the number of unknown categories under completely unsupervised conditions, which raises privacy concerns.

Method used

By training a feature extractor and an initial classifier on labeled data during the pre-training phase, constructing positive and negative feature prototypes using deployment data to classify known/unknown categories, and discovering new categories through pseudo-label calculation and clustering, the classifier is expanded for model fine-tuning, thus achieving generalized category discovery without source domain data.

Benefits of technology

It enables accurate classification of known and unknown categories and discovery of new categories for deployed data while protecting data privacy, thereby improving the robustness and security of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179124A_ABST
    Figure CN123179124A_ABST
Patent Text Reader

Abstract

The application provides a generalized class discovery method independent of label data, comprising the following steps: step S1, training a feature extractor and an initial classifier on a private data set with labeled data; step S2, the feature extractor and the initial classifier perform reasoning on a deployment data set without labeled data, and the deployment data set is divided into a known class data subset and an unknown class data subset; step S3, the known class data subset is assigned with known class pseudo-labels, the unknown class data subset is clustered to assign pseudo-labels and obtain a clustering result; an extended classifier is obtained based on the clustering result and the initial classifier, the feature extractor is fine-tuned with all the pseudo-labels as a supervision signal, and the extended classifier is trained; and step S4, a generalized class discovery stage. The application improves the robustness and security of model deployment in a scenario where source domain data needs to be protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of artificial intelligence algorithms, and in particular relates to a generalized category discovery method that does not rely on label data. Background Technology

[0002] With the development of artificial intelligence technology, deep learning-based models are widely used in various fields, including autonomous driving and robot perception. Traditional deep learning algorithms mostly only consider closed-set training: that is, training the model on a labeled dataset and then directly deploying it to the application layer for downstream tasks during operation. However, in many real-world scenarios (such as autonomous driving scene perception), the system is constantly in a dynamic, complex, and ever-changing open environment, and the model often needs to cope with a variety of extreme and complex situations. These traditional algorithms were not designed with these complexities in mind, which can easily lead to severe performance degradation or even accidents in practical use.

[0003] Generalized Category Discovery (GCD) is a class of solutions for dealing with open worlds that utilize knowledge learned from known data to classify data of unknown categories. Currently, most methods in this class focus on semi-supervised learning, meaning they can simultaneously obtain both labeled and unlabeled data, using prior knowledge from the labeled data to assist in learning category discovery on the unlabeled data during training. However, in practice, models pre-trained on labeled datasets often face new, unlabeled data during deployment, but due to privacy concerns, training data is often unavailable. This renders existing GCD systems unusable in such situations.

[0004] In recent years, researchers have further explored the application of prototype learning in generalized category discovery. ProtoGCD proposes a unified, unbiased prototype learning framework that models known and unknown categories using joint prototypes and a unified learning objective. In the field of open set recognition, Zhong and Cui proposed the Positive-Negative Prototype Fusion Framework (PNPFF), introducing multiple positive prototypes to capture intra-class diversity and a negative prototype to enhance intra-class compactness and inter-class separability. Furthermore, research in the field of Source-Free Domain Adaptation (SFDA) explores methods for model adaptation without access to source domain data during the deployment phase.

[0005] However, the aforementioned existing technologies have the following shortcomings: First, most existing generalized category discovery methods require simultaneous access to both labeled source domain data and unlabeled target domain data, relying on the participation of source domain data throughout the training and deployment processes. However, in practical applications, source domain data is often inaccessible during the deployment phase due to privacy protection, trade secrets, or data security concerns, rendering existing generalized category discovery systems unusable directly. Second, while existing prototype learning methods (such as ProtoGCD) utilize prototypes for category representation, their known and unknown category prototypes are jointly trained within a unified learning framework, still relying on the participation of source domain data. Although the PNPFF framework introduces the concept of positive and negative prototypes, it is applied to open-set recognition scenarios, requiring only the detection of unknown categories without further classification, and its negative prototype is a single global negative prototype. These methods cannot solve the generalized category discovery problem in scenarios where "no source domain data is available during the deployment phase." Third, existing methods typically rely on prior knowledge or additional assumptions when estimating the number of unknown categories, lacking reliable means to automatically determine the number of unknown categories in completely unsupervised deployment scenarios.

[0006] In view of the problems existing in the current research, the present invention designs a generalized category discovery method that does not require source domain data. It can handle the situation where there is only a pre-trained model and unlabeled deployment data, but no access to source domain data. It can handle the above-mentioned scenarios that require data privacy and correct classification of data in the deployment stage. Summary of the Invention

[0007] The purpose of this invention is to provide a generalized category discovery method that does not rely on labeled data. Addressing the problem that current generalized category discovery systems cannot be applied to scenarios requiring both data privacy protection and accurate classification of open data during deployment, this invention utilizes a pre-trained model to perform known / unknown category segmentation, clustering to discover new categories, and expanding the classifier based on positive and negative feature prototypes during the deployment phase. This improves the robustness and security of model deployment in scenarios requiring protection of source domain data. The technical solution adopted is as follows: A generalized category discovery method that does not rely on label data includes the following steps: Step S1, Pre-training stage: Train the feature extractor and initial classifier on a private dataset with labeled data; Step S2, Deployment Phase: Divide the known and unknown categories: Use the trained feature extractor and initial classifier to infer the deployment dataset of unlabeled data to construct positive feature prototypes and several negative feature prototypes for each known category in the private dataset. Based on the similarity between the feature vectors of each sample in the deployment dataset and the positive and negative feature prototypes, divide the deployment dataset into a subset of known category data and a subset of unknown category data. Step S3, Pseudo-label Calculation and Model Fine-tuning Stage: Calculate pseudo-labels for the known category data subsets, cluster the unknown category data subsets to obtain clustering results, and assign pseudo-labels based on the clustering results; initialize classification parameters for the unknown categories based on the clustering results, and concatenate the initialized classification parameters to the existing classification parameters of the initial classifier to form an expanded classifier; fine-tune the feature extractor and train the expanded classifier on the deployment dataset using all pseudo-labels as supervision signals. Step S4, Generalized Category Discovery Stage: Using the fine-tuned feature extractor and the trained classifier, classify the deployment dataset to be classified, and output the classification results of all known and unknown categories.

[0008] Preferably, step S1 specifically includes: Step S1A: Obtain the private dataset with labeled data. ,in Tag space that belongs to labeled data , The quantity is ; Step S1B, in Training the feature extractor and the initial classifier After training, a pre-trained feature extractor is obtained. and the initial classifier ; in, It will not be accessed again after training is complete.

[0009] Preferably, in step S1B: The feature extractor The model is built on the visual pedestal model DINO, and only some modules of the visual pedestal model DINO are fine-tuned during training. The total loss function during training is a weighted sum of the cross-entropy classification loss, the self-supervised contrastive learning loss, and the supervised contrastive learning loss. The self-supervised contrastive learning loss is calculated based on positive sample pairs from different perspectives obtained by performing random data augmentation on the same batch of samples, while the supervised contrastive learning loss is based on the class labels in the private dataset to determine the positive sample pairs.

[0010] Preferably, step S2 specifically includes: Step S2A: Obtain the pre-trained feature extractor output from step S1. and the initial classifier And obtain the deployment dataset of unlabeled data. ; in, Label space belonging to unlabeled data , ; The quantity is ; Step S2B, for the tag space Each category in the dataset is based on the deployment dataset. The inference results of the medium sample construct the positive feature prototypes corresponding to this category and One negative feature prototype; Step S2C, Calculation The cosine similarity between the feature vector of each sample and the positive and negative feature prototypes is used to determine whether the sample belongs to a known or unknown category based on the calculated cosine similarity. Step S2D outputs data segmented based on positive and negative feature prototypes. Known category data subset and unknown category data subset .

[0011] Preferably, the formula for calculating cosine similarity in step S2C is:

[0012] in, For samples processed by feature extractor Extracted and L2-normalized feature vectors It can be a positive feature prototype or a negative feature prototype. and represents the L2 norm of the eigenvector and the eigenprototype, respectively.

[0013] Preferably, steps S2B to S2C specifically include: First, Each sample in the dataset is sequentially input into the feature extractor. and the initial classifier After forward propagation and Softmax normalization, the label space of each sample is obtained. The predicted probability for each category; Then, for the tag space any category Extract each sample corresponding to a category Based on the predicted probability values, select the K samples with the highest predicted probabilities to construct the categories. positive sample set , except for the set of positive samples All other samples except those that form categories negative sample set ; Next, for the set of positive samples... The mean of the feature vectors of each sample is used to obtain the category. Positive feature prototype For the negative sample set K-means clustering is performed on the feature vectors in the dataset, with the number of cluster centers set to 1. ,get Negative feature prototype And i=1,…, , Finally, calculate The feature vector of each sample and the positive feature prototype and the negative feature prototype The cosine similarity is calculated if the similarity with the positive feature prototype is higher than that with all negative feature prototypes. If the similarity is high, then the sample is determined to belong to the known category. Otherwise, the sample is determined to belong to an unknown category.

[0014] Preferably, step S3 includes: Step S3A: Obtain the known category data subset output from step S2. and unknown category data subset and the feature extractor output in step S1 and the initial classifier ; Step S3B: Calculate the known category data subset based on the positive feature prototype and negative feature prototype. Pseudo-labels for the data, and calculate the subset of data with unknown categories based on clustering algorithms. The pseudo-labels of the data were used to obtain clustering results, which included: 1 cluster, the center value of each cluster, and the cluster number; Step S3C: Obtain the expanded classifier : Will The center values ​​of each cluster are assigned to the feature prototype classifier for the new category. and will spliced ​​into the initial classifier This forms the expanded classifier. ; Step S3D, in Above, using all pseudo-labels as supervision signals, the feature extractor is fine-tuned. and training ; Step S3E: Output a new feature extractor and the trained classifier .

[0015] Preferably, step S3B includes the following steps: for The data in the dataset is used to calculate the feature vectors of the data and the positive feature prototypes of each known category. The cosine similarity is used to determine the known category corresponding to the positive feature prototype with the highest similarity, and a pseudo-label of length [value missing] is generated for the data. One-hot encoding; for The data in the dataset was subjected to K-means clustering, and the cluster numbers were used as... Pseudo-labels for each sample.

[0016] Preferably, step S4 specifically includes: Step S4A: Obtain the fine-tuned feature extractor output from step S3. and the trained classifier ; Step S4B: Input the deployment data to be classified into the fine-tuned feature extractor. and the trained classifier Inference is carried out in this way; Step S4D: Output the final classification results for all known and unknown categories of the deployment dataset to be classified.

[0017] Compared with the prior art, the advantages of the present invention are: 1. Based on positive and negative feature prototypes, the model can classify data in the deployment dataset into known and unknown categories without relying on private data, and the classification is accurate. 2. This invention ensures data privacy without relying on private data, and can effectively and robustly complete the task of accurate generalized category discovery on the deployed dataset. Attached Figure Description

[0018] Figure 1 Flowchart for a generalized category discovery method that does not rely on label data; Figure 2 This is a flowchart of the pre-training phase and the model structure.

[0019] Figure 3 The schematic diagrams are for steps S2 to S3. Detailed Implementation

[0020] The following will describe in more detail, with reference to the schematic diagrams, a generalized category discovery method of the present invention that does not rely on tag data, wherein preferred embodiments of the present invention are illustrated. It should be understood that those skilled in the art can modify the present invention described herein while still achieving the advantageous effects of the present invention. Therefore, the following description should be understood as being of broad knowledge to those skilled in the art and is not intended to limit the present invention.

[0021] like Figure 1 As shown, the generalized category discovery method that does not rely on label data includes the following steps: Step S1, Pre-training stage: Train the feature extractor and initial classifier on a private dataset with labeled data.

[0022] Given a labeled private dataset , Tag space that belongs to labeled data ; , where is the number of categories in the private label data.

[0023] in, For private datasets The samples in; For dataset The truth labels corresponding to the samples in the data; This means that this sample is the i-th sample in the dataset. A mathematical symbol represents a sample space; The label space represents labeled data; This indicates that it is labeled.

[0024] The model in the pre-training phase consists of a ViT DINO-based feature backbone extractor. Initial classifier based on feature prototypes and a parameter is Projector composition, and All are directly connected to the feature backbone extractor. For its specific structure, please refer to Figure 2 .

[0025] Figure 2 In China, "projection" "Refers to projector" "Classifier" "referring to" .

[0026] This model can only acquire labeled private data during the pre-training phase to perform classification learning.

[0027] In the pre-training phase, in addition to using cross-entropy loss for training, contrastive learning is also introduced.

[0028] With a batch of samples For example, random data augmentation can be performed on it to obtain different perspectives. Self-supervised contrastive learning is used to learn features: (1); Features This is the result that has already been L2 normalized. It is a projection head used to project features onto a feature learning space. This is the temperature coefficient (adjusted according to actual conditions).

[0029] Supervised representation learning is similar to self-supervised representation learning, the main difference being that positive samples are determined by class labels: (2); The loss during the pre-training phase consists of the cross-entropy classification loss and the two contrastive learning losses mentioned above. The weights of each loss need to be adjusted according to the actual situation.

[0030] Formulas (1) to (2) are all existing technologies.

[0031] Step S2, Deployment Phase: Divide Known and Unknown Categories: Use the trained feature extractor and initial classifier to infer the deployment dataset of unlabeled data to construct positive feature prototypes and several negative feature prototypes for each known category in the private dataset. Based on the similarity between each sample in the deployment dataset and the positive feature prototypes and several negative feature prototypes, divide the deployment dataset into a subset of known category data and a subset of unknown category data.

[0032] Step S2A: Obtain the pre-trained feature extractor output from step S1. and the initial classifier And obtain the unlabeled deployment dataset. ; Label space belonging to unlabeled data , ; The quantity is ; , where is the number of categories in the label data; This indicates that there is no label.

[0033] Step S2B: Constructing the tag space The positive feature prototypes corresponding to each category in the model and A negative feature prototype.

[0034] First use For the whole Inference is performed to determine that unlabeled data resides in the labeled space. The predicted probability for each category in the dataset. It relates to the output after softmax. The predicted probability.

[0035] With a belonging Category For example, The pseudo-label of a data point can be calculated as follows: First, for this category, select the top-K (K needs to be selected based on the actual situation) predicted samples with the highest predicted probabilities to obtain the positive sample set. Treat all other samples as negative samples. .

[0036] and These are all sets, containing corresponding samples extracted using the S1 pre-trained feature extractor. The feature vectors obtained are used to construct the data, where the subscript c represents a certain category in the labeled data.

[0037] For positive sample set The mean of the feature vectors of each sample is used to obtain the category. Positive feature prototype ; It is a feature vector; For negative sample set Perform K-means clustering to obtain Negative feature prototype ; That is, to obtain .

[0038] In this embodiment, the number of negative feature prototypes is set to be equal to the number of categories in the labeled dataset, which is an empirical value; (3); (4); Step S2C, Calculation The cosine similarity between the feature vector of each sample and the positive and negative feature prototypes. The sample is determined to belong to a known category or an unknown category based on the calculated cosine similarity.

[0039] If the similarity with the positive feature prototype is higher than that with all negative feature prototypes If the similarity is high, then the sample is determined to belong to the known category. Otherwise, the sample is determined to belong to an unknown category.

[0040] In other words, the likelihood of a sample belonging to a particular category can be measured by calculating the cosine similarity between a sample and the prototypes of positive and negative features. (5); in, That is, the cosine similarity function In the above formula (5) That is, referring to the prototype of positive features .

[0041] This represents the relevant category. The determination value, calculated using this formula, allows us to obtain the following for a single sample: A vector of dimensions, where 0 or 1 at each position represents whether it is possible to belong to that category.

[0042] If all values ​​of this vector are 0, then we consider it not to belong to any vector. The category should be a new category in the unlabeled dataset; If it has one or more categories If the value is 1, then we select the category with the highest similarity to the corresponding positive feature prototype among all possible categories as the category of the sample, and count it as one-hot.

[0043] Step S2D, therefore for all The data in the data can all be divided into a certain category. The data is either classified as a category or not, thus dividing the known category data and the new category data in the deployment dataset.

[0044] Step S3, Pseudo-label Calculation and Model Fine-tuning Stage: Assign pseudo-labels corresponding to the known categories to the subsets of data with known categories; cluster the subsets of data with unknown categories to obtain clustering results and assign pseudo-labels based on the clustering results; initialize classification parameters for unknown categories based on the sample clustering results; concatenate the initialized classification parameters to the existing classification parameters of the initial classifier to form the expanded classifier; fine-tune the sample feature extractor and train the expanded classifier on the sample deployment dataset using all pseudo-labels as supervision signals.

[0045] Step S3A: Obtain the known category data subset output from step S2. and unknown category data subset and the sample feature extractor output from step S1 and the initial classifier .

[0046] Step S3B: Calculate the known category data subset based on the positive feature prototype and the negative feature prototype. Pseudo-labels for data in the middle, calculating subsets of data with unknown categories based on clustering algorithms. The pseudo-labels of the data were used to obtain clustering results, which included: Each cluster contains a number of clusters, the center value of each cluster, and the cluster number.

[0047]

[0048] The total number of categories in the deployed dataset is The number of unknown categories is ,but and The deployment phase in step S2 is unknown.

[0049] However, after step S3B, the number of clusters obtained This completes the calculation of the total number of unknown categories. Automatic discovery.

[0050] That is, for the data belonging to the known category and the new category separated in step S2, the data belonging to the known category has been matched. The data in the category is given a length of The labels are in one-hot encoded form. For new category data, they are constructed into a new category set, and then aligned and K-means clustering is performed to obtain the results. Each cluster center serves as a feature prototype for the new category.

[0051] Simultaneously, the cluster numbers obtained from K-means are used as pseudo-labels and assigned to these potentially new categories, also processed into lengths of... The labels are in one-hot encoded form, and a unified cross-entropy classification loss is used to learn the classifier.

[0052] Step S3C: Obtain the expanded classifier : Will The center values ​​of each cluster are assigned to the feature prototype classifier for the new category. and will spliced ​​into the initial classifier Then, the expanded classifier is formed. Extended classifier It can learn all categories.

[0053]

[0054] Output dimension = number of unknown categories (i.e., the number of cluster centers).

[0055] Extended classifier The category parameters stored in the database are the feature prototypes of that category in the feature space.

[0056] Step S3D, in Above, using all pseudo-labels as supervision signals, the feature extractor is fine-tuned. and training .

[0057] like Figure 3 As shown, specifically, frozen Except for the parameters of the last layer, freeze. The parameters only make The last layer of parameters and The parameters can be updated through gradient backpropagation. The optimizer is AdamW, the learning rate is set to 1e-5, and the training is carried out for 200 epochs until the model converges (the actual learning rate and the number of training epochs need to be determined according to the actual application). The loss function used during training is the cross-entropy loss, which comes from the pseudo-labels calculated in the previous steps. In addition, the self-supervised contrastive learning loss of formula (1) will also be used.

[0058] It should be noted that, due to the feature extractor The classifier has already been pre-trained in step S1, so it is fine-tuned in step S3D (i.e., further optimized with a small learning rate); and the expanded classifier New category classification parameters (stored in) The learning rate is initialized by the center values ​​of the clusters and has not yet been trained with gradients, so it needs to be trained. Both can use a uniform learning rate or have different learning rates set separately, depending on the actual situation.

[0059] Step S3E: Output a new feature extractor and the trained classifier .

[0060] Step S4: For the model trained in S3, perform generalized category discovery and correct classification for all categories on the deployment dataset to be classified.

[0061] This invention enables the classification of known and unknown categories on a deployment dataset based on positive and negative feature prototypes. It can accurately classify known and unknown categories on the deployment dataset without relying on private data. This invention ensures the privacy of the model without relying on private data and can effectively and robustly complete the task of accurate generalized category discovery on the deployment dataset.

[0062] The above are merely preferred embodiments of the present invention and do not constitute any limitation on the present invention. Any equivalent substitutions or modifications made by those skilled in the art to the technical solutions and content disclosed in the present invention without departing from the scope of the present invention shall be deemed to have remained within the protection scope of the present invention.

Claims

1. A generalized category discovery method that does not rely on label data, characterized in that, Includes the following steps: Step S1, Pre-training stage: Train the feature extractor and initial classifier on a private dataset with labeled data; Step S2, Deployment Phase: Divide the known and unknown categories: Use the trained feature extractor and initial classifier to infer the deployment dataset of unlabeled data to construct positive feature prototypes and several negative feature prototypes for each known category in the private dataset. Based on the similarity between the feature vectors of each sample in the deployment dataset and the positive and negative feature prototypes, divide the deployment dataset into a subset of known category data and a subset of unknown category data. Step S3, Pseudo-label calculation and model fine-tuning stage: Calculate pseudo-labels for known category data subsets, cluster unknown category data subsets to obtain clustering results, and assign pseudo-labels based on the clustering results; Based on the clustering results, initialize classification parameters for unknown categories, then concatenate the initialized classification parameters to the existing classification parameters of the initial classifier to form an expanded classifier; on the deployment dataset, use all pseudo-labels as supervision signals to fine-tune the feature extractor and train the expanded classifier; Step S4, Generalized Category Discovery Stage: Using the fine-tuned feature extractor and the trained classifier, classify the deployment dataset to be classified, and output the classification results of all known and unknown categories.

2. The generalized category discovery method that does not rely on label data as described in claim 1, characterized in that, Step S1 specifically includes: Step S1A: Obtain the private dataset with labeled data. ,in Tag space that belongs to labeled data , The quantity is ; Step S1B, in Training the feature extractor and the initial classifier After training, a pre-trained feature extractor is obtained. and the initial classifier ; in, It will not be accessed again after training is complete.

3. The generalized category discovery method that does not rely on label data according to claim 2, characterized in that, In step S1B: The feature extractor The model is built on the visual pedestal model DINO, and only some modules of the visual pedestal model DINO are fine-tuned during training. The total loss function during training is a weighted sum of the cross-entropy classification loss, the self-supervised contrastive learning loss, and the supervised contrastive learning loss. The self-supervised contrastive learning loss is calculated based on positive sample pairs from different perspectives obtained by performing random data augmentation on the same batch of samples, while the supervised contrastive learning loss is based on the class labels in the private dataset to determine the positive sample pairs.

4. The generalized category discovery method that does not rely on label data according to claim 2, characterized in that, Step S2 specifically includes: Step S2A: Obtain the pre-trained feature extractor output from step S1. and the initial classifier And obtain the deployment dataset of unlabeled data. ; in, Label space belonging to unlabeled data , ; The quantity is ; Step S2B, for the tag space Each category in the dataset is based on the deployment dataset. The inference results of the medium sample construct the positive feature prototype corresponding to this category and One negative feature prototype; Step S2C, Calculation The cosine similarity between the feature vector of each sample and the positive and negative feature prototypes is used to determine whether the sample belongs to a known or unknown category based on the calculated cosine similarity. Step S2D outputs data segmented based on positive and negative feature prototypes. Known category data subset and unknown category data subset .

5. The generalized category discovery method that does not rely on label data according to claim 4, characterized in that, The formula for calculating cosine similarity in step S2C is as follows: ; in, For samples after feature extraction Extract the feature vectors and normalize them using L2. It can be a positive feature prototype or a negative feature prototype. and represents the L2 norm of the eigenvector and the eigenprototype, respectively.

6. The generalized category discovery method that does not rely on label data according to claim 4, characterized in that, The specific steps in steps S2B to S2C include: First, Each sample in the dataset is sequentially input into the feature extractor. and the initial classifier After forward propagation and Softmax normalization, the label space of each sample is obtained. The predicted probability for each category; Then, for the tag space any category Extract each sample corresponding to a category Based on the predicted probability values, select the K samples with the highest predicted probabilities to construct the categories. positive sample set , except for the set of positive samples All other samples except those that form categories negative sample set ; Next, for the set of positive samples... The mean of the feature vectors of each sample is used to obtain the category. Positive feature prototype For the negative sample set K-means clustering is performed on the feature vectors in the dataset, with the number of cluster centers set to 1. ,get Negative feature prototype And i=1,…, , Finally, calculate The feature vector of each sample and the positive feature prototype and the negative feature prototype The cosine similarity is calculated if the similarity with the positive feature prototype is higher than that with all negative feature prototypes. If the similarity is high, then the sample is determined to belong to the known category. Otherwise, the sample is determined to belong to an unknown category.

7. The generalized category discovery method that does not rely on label data according to claim 2, characterized in that, Step S3 includes: Step S3A: Obtain the known category data subset output from step S2. and unknown category data subset and the feature extractor output in step S1 and the initial classifier ; Step S3B: Calculate the known category data subset based on the positive feature prototype and negative feature prototype. Pseudo-labels for the data, and calculate the subset of data with unknown categories based on clustering algorithms. The pseudo-labels of the data were used to obtain clustering results, which included: 1 cluster, the center value of each cluster, and the cluster number; Step S3C: Obtain the expanded classifier : Will The center values ​​of each cluster are assigned to the feature prototype classifier for the new category. and will spliced ​​into the initial classifier This forms the expanded classifier. ; Step S3D, in Above, using all pseudo-labels as supervision signals, the feature extractor is fine-tuned. and training ; Step S3E: Output a new feature extractor and the trained classifier .

8. The generalized category discovery method that does not rely on label data according to claim 7, characterized in that, The specific steps of step S3B include: for The data is used to calculate the feature vectors of each known category and their positive feature prototypes. The cosine similarity is used to determine the known category corresponding to the positive feature prototype with the highest similarity, and a pseudo-label of length [value missing] is generated for the data. One-hot encoding; for The data in the dataset was subjected to K-means clustering, and the cluster numbers were used as... Pseudo-labels for each sample.

9. The generalized category discovery method that does not rely on label data according to claim 7, characterized in that, Step S4 specifically includes: Step S4A: Obtain the fine-tuned feature extractor output from step S3. and the trained classifier ; Step S4B: Input the deployment data to be classified into the fine-tuned feature extractor. and the trained classifier Inference is carried out in this way; Step S4D: Output the final classification results for all known and unknown categories of the deployment dataset to be classified.