Image classification model acquisition method and image classification method, device and equipment
By generating and filtering the model parameter combination of image classification models, and optimizing the image classification model using the cross-variance method, the problem of unstable image classification effect is solved, and more efficient and accurate image classification is achieved.
Patent Information
- Application Number
- CN202410461353.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-04-17
AI Technical Summary
In the prior art, the image classification effect is unstable and classification errors occur frequently, resulting in high labor and time costs.
By generating multiple model parameter combinations, the classification effect of each combination is evaluated based on the target image data set, and the cross-variance method is used to filter out the optimal model parameter combination, thereby generating a target image classification model for classification annotation of image data.
It improves the stability and accuracy of image classification effects and reduces labor and time costs.
Smart Images

Figure CN118262125B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and specifically relates to an image classification model acquisition method and an image classification method, device and equipment. Background Art
[0002] Currently, deep learning models have been widely used to segment medical images for auxiliary diagnosis. During the training process of deep learning models, images in medical image datasets need to be manually annotated, and the annotation process consumes high manpower and time costs.
[0003] In related technologies, image data sets can be automatically classified and labeled through clustering methods. For example, the K-means clustering method can be used to divide data into K categories, each with its own label, so that automatic labeling of data can be achieved, saving manpower and time costs.
[0004] However, the classification effect of this method is unstable. The classification effect of images is sometimes very poor, or even wrong labeling occurs. Summary of the invention
[0005] The present application aims to provide an image classification model acquisition method and an image classification method, device, electronic device and storage medium to solve the problem of poor image classification effect in the prior art.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for acquiring an image classification model, the method comprising:
[0008] Generate a first population including a plurality of model parameter combinations; wherein the model parameter combinations include weight parameters of each classifier in an image classification model, and the image classification model includes at least one classifier;
[0009] Based on the target image data set and the model parameter combination, determining the evaluation indicators corresponding to the multiple model parameter combinations respectively; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the multiple model parameter combinations respectively;
[0010] Performing a preset number of rounds of crossover mutation on each model parameter combination included in the first population to obtain a second population corresponding to each round of crossover mutation and calculating evaluation indicators corresponding to each model parameter combination included in the second population;
[0011] Based on the target model parameter combination corresponding to the maximum value of all the evaluation indicators obtained, classifiers corresponding to the weight parameters contained in the target model parameter combination are extracted from the classifier library and combined to obtain a target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set.
[0012] Optionally, the model parameter combination includes a clustering category parameter and a distance index parameter, and determining evaluation indicators corresponding to the multiple model parameter combinations respectively based on the target image data set and the multiple model parameter combinations includes:
[0013] Based on the clustering category parameters and distance index parameters respectively corresponding to the various model parameter combinations, clustering the target image data set to obtain a first image data set with pre-labeled information;
[0014] Determine evaluation indicators corresponding to the multiple model parameter combinations respectively based on the first image data set.
[0015] Optionally, determining evaluation indicators corresponding to the plurality of model parameter combinations respectively based on the first image data set includes:
[0016] Dividing the first image data set into an image training set and an image test set according to a preset ratio and deleting the pre-labeled information contained in the image test set;
[0017] Predicting the predicted annotation results of the image test set based on the pre-annotated information contained in the image training set and the classifier library;
[0018] Determine evaluation indicators corresponding to the multiple model parameter combinations based on the prediction and annotation results of the image test set.
[0019] Optionally, the predictive annotation result of the image test set based on the pre-annotation information included in the image training set and the classifier library predicts includes:
[0020] Obtain a list of classifier types corresponding to the multiple classification models;
[0021] Selecting a first classifier from a classifier library based on the classifier type list;
[0022] The first classifier is trained based on the image training set to obtain a trained second classifier.
[0023] The image test set is input into the second classifier to obtain the predicted labeling result of the image test set output by the second classifier.
[0024] Optionally, the evaluation index includes a CH index, and determining the evaluation indexes corresponding to the plurality of model parameter combinations respectively based on the prediction and annotation results of the image test set includes:
[0025] Determine a first number of classifiers and a first number of categories corresponding to the plurality of model parameter combinations respectively;
[0026] Determine a target labeling result of the image test set based on the first number, the first number of categories, the predicted labeling result and the weight parameter respectively corresponding to each model parameter combination;
[0027] Determine the number of training samples of the image training set, and determine a first covariance matrix of image data between categories of the target image data set and a second covariance matrix of image data within each category of the target image data set based on the target annotation result;
[0028] The CH indexes corresponding to the plurality of model parameter combinations are determined based on the first number of categories, the number of training samples, the first covariance matrix, and the second covariance matrix.
[0029] Optionally, performing a preset number of rounds of crossover mutation based on the first population to obtain a second population corresponding to each round of crossover mutation and evaluation indicators corresponding to each model parameter combination included in the second population, include:
[0030] Selecting a first model parameter combination from the first population using a tournament method;
[0031] The first model parameter combination is cross-mutated to obtain a second population corresponding to each round of cross-mutation and evaluation indicators corresponding to each model parameter combination included in the second population.
[0032] In a second aspect, an embodiment of the present application provides an image classification method, the method comprising:
[0033] Obtain an unlabeled target image dataset;
[0034] The target image data set is input into a target image classification model to obtain a labeled image data set output by the target image classification model; wherein the target image classification model is obtained based on any of the above-described image classification model acquisition methods.
[0035] In a third aspect, an embodiment of the present application provides an image classification model acquisition device, the device comprising:
[0036] A first generation module generates a first population including a plurality of model parameter combinations; wherein the model parameter combinations include weight parameters of each classifier in an image classification model, and the image classification model includes at least one classifier;
[0037] A determination module, used to determine the evaluation indicators corresponding to the multiple model parameter combinations respectively based on the target image data set and the model parameter combination; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the multiple model parameter combinations respectively;
[0038] A crossover mutation module, used to perform a preset number of crossover mutations on each model parameter combination included in the first population, obtain a second population corresponding to each round of crossover mutation, and calculate evaluation indicators corresponding to each model parameter combination included in the second population;
[0039] The second generation module is used to extract classifiers corresponding to the weight parameters contained in the target model parameter combination from the classifier library based on the target model parameter combination corresponding to the maximum value of all the evaluation indicators obtained, and combine them to obtain a target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set.
[0040] Optionally, the model parameter combination includes a clustering category parameter and a distance index parameter, and the determination module includes:
[0041] A clustering submodule, configured to cluster the target image data set based on the clustering category parameters and distance index parameters respectively corresponding to the various model parameter combinations, to obtain a first image data set with pre-labeled information;
[0042] A determination submodule is used to determine evaluation indicators corresponding to the multiple model parameter combinations respectively based on the first image data set.
[0043] Optionally, the determining submodule includes:
[0044] a dividing unit, configured to divide the first image data set into an image training set and an image test set according to a preset ratio and delete the pre-labeled information contained in the image test set;
[0045] A prediction unit, used to predict the prediction and annotation results of the image test set based on the pre-annotation information contained in the image training set and the classifier library;
[0046] A determination unit is used to determine the evaluation indicators corresponding to the multiple model parameter combinations respectively based on the prediction and annotation results of the image test set.
[0047] Optionally, the prediction unit includes:
[0048] An acquisition subunit, used to acquire a list of classifier types corresponding to the multiple classification models;
[0049] A selection subunit, configured to select a first classifier from a classifier library based on the classifier type list;
[0050] A training subunit, used for training the first classifier based on the image training set to obtain a trained second classifier;
[0051] The prediction subunit is used to input the image test set into the second classifier to obtain the prediction and annotation results of the image test set output by the second classifier.
[0052] Optionally, the evaluation index includes a CH index, and the determination unit includes:
[0053] A first determining subunit, used to determine a first number of classifiers and a first number of categories corresponding to the plurality of model parameter combinations respectively;
[0054] A second determination subunit is used to determine a target annotation result of the image test set based on the first number, the first number of categories, the predicted annotation result and the weight parameter respectively corresponding to each model parameter combination;
[0055] A third determination subunit is used to determine the number of training samples of the image training set, and determine a first covariance matrix of image data between various categories of the target image data set and a second covariance matrix of image data within various categories of the target image data set based on the target annotation result;
[0056] The fourth determination subunit is used to determine the CH indexes corresponding to the multiple model parameter combinations respectively based on the first number of categories, the number of training samples, the first covariance matrix and the second covariance matrix.
[0057] Optionally, the crossover mutation module includes:
[0058] A selection submodule, used for selecting a first model parameter combination from the first population by using a tournament method;
[0059] The crossover mutation submodule is used to perform crossover mutation on the first model parameter combination to obtain a second population corresponding to each round of crossover mutation and evaluation indicators corresponding to each model parameter combination included in the second population.
[0060] In a fourth aspect, an embodiment of the present application provides an image classification device, the device comprising:
[0061] An acquisition module is used to acquire an unlabeled target image dataset;
[0062] A classification and annotation module is used to input the target image data set into a target image classification model to obtain an annotated image data set output by the target image classification model; wherein the target image classification model is obtained based on any of the image classification model acquisition methods described above.
[0063] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement any one of the above-mentioned image classification model acquisition methods, or any one of the above-mentioned image classification methods.
[0064] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement any one of the above-mentioned image classification model acquisition methods, or any one of the above-mentioned image classification methods.
[0065] Compared with the prior art, the present application generates a first population including multiple model parameter combinations; wherein the model parameter combination includes weight parameters of each classifier in the image classification model, and the image classification model includes at least one classifier; based on the target image data set and the model parameter combination, the evaluation indicators corresponding to the multiple model parameter combinations are determined; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the multiple model parameter combinations; a preset number of rounds of crossover mutation are performed on each model parameter combination included in the first population to obtain a second population corresponding to each round of crossover mutation and calculate the evaluation indicators corresponding to each model parameter combination included in the second population; based on the target model parameter combination corresponding to the maximum value of all the obtained evaluation indicators, the classifiers corresponding to the weight parameters included in the target model parameter combination are extracted from the classifier library and combined to obtain the target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set, and can randomly generate and screen the optimal classification model, thereby improving the stability of the image classification effect.
[0066] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0068] Figure 1 A schematic diagram of a flow chart of a method for acquiring an image classification model provided in an embodiment of the present application;
[0069] Figure 2 A schematic diagram of a flow chart of another method for obtaining an image classification model provided in an embodiment of the present application;
[0070] Figure 3 A flowchart of an image classification method provided in an embodiment of the present application;
[0071] Figure 4 A logical block diagram of an image classification model acquisition device provided in an embodiment of the present application;
[0072] Figure 5 A logic block diagram of an image classification device provided in an embodiment of the present application;
[0073] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0075] Reference Figure 1 , Figure 1 : is a flow chart of a method for obtaining an image classification model provided in an embodiment of the present application, and the method may include:
[0076] Step 101, generating a first population including a plurality of model parameter combinations; wherein the model parameter combinations include weight parameters of each classifier in an image classification model, and the image classification model includes at least one classifier.
[0077] In the embodiment of the present application, a classifier is a classification model, which is a machine learning technique that is intended to classify instances into different categories based on various data features. It can be applied not only to binary classification, but also to support a variety of classification tasks. The main task of the classifier is to determine the features of the input to learn the characteristics of the previous training samples and classify the new data based on these features. Classifiers include but are not limited to support vector machine (Support Vector Machine, SVM) classifiers, random forest classifiers, decision tree classifiers, K-nearest neighbor (KNN) classifiers, naive Bayes classifiers, etc. The image classification model may include multiple classifiers, each of which has its own weight parameters, which constitute the model parameter combination of the classification model, wherein the number of weight parameters contained in the model parameter combination can be preset. In the embodiment of the present application, a random generation method can be adopted to generate a preset number of model parameter combinations to form a first population. Among them, the number of model parameter combinations in the first population, that is, the number of individuals contained in the first population, can be preset. Usually, the weight parameters in each model parameter combination can be set to the same number.
[0078] Step 102, based on the target image data set and the model parameter combination, determine the evaluation indicators corresponding to the multiple model parameter combinations respectively; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the multiple model parameter combinations respectively.
[0079] In an embodiment of the present application, the target image dataset may be an unlabeled image dataset to be classified; each model parameter combination has a corresponding image classification model.
[0080] For example, if one of the image classification models includes M classifiers, if α i To represent the weight corresponding to the i-th classifier, its model parameter combination can be expressed as [α1, α2, …, α M ].
[0081] In the embodiments of the present application, the evaluation index can be a parameter used to evaluate the quality of the model. For example, for the first population, the fitness of the individuals in the population can be used to evaluate the quality of the classification model, where the individuals are the classification models in the first population; the Caliniski-Harabaz index can also be used to evaluate the quality of the classification model. The evaluation indexes corresponding to the multiple classification models can be calculated by combining the above model parameters.
[0082] For example, if the Caliniski-Harabaz index is used as an evaluation indicator, the various parameters required to calculate the Caliniski-Harabaz index can be obtained through the above model parameter combination, such as the number of training samples, the number of image categories, the covariance matrix between categories, the covariance matrix within the category, etc., and then the Caliniski-Harabaz index corresponding to each model can be calculated according to the formula. Among them, the larger the Caliniski-Harabaz index, the better the performance of the model.
[0083] Step 103 , performing a preset number of crossover mutations on the various model parameter combinations included in the first population, obtaining a second population corresponding to each round of crossover mutation, and calculating evaluation indicators corresponding to each model parameter combination included in the second population.
[0084] In an embodiment of the present application, in order to fully ensure the richness of the model parameter combination, the first population can be iterated according to the genetic algorithm. The number of iterations can be preset. In one iteration, the model parameter combination individuals in the first population can be randomly exchanged with weight parameters, and the weight parameters within the individuals can be randomly changed within a certain range, i.e., crossover mutation, so that a new weight parameter combination and a second population can be generated. Afterwards, the evaluation index corresponding to each weight parameter combination in the second population can be calculated. The specific calculation method of the evaluation index is the same as the calculation method of the evaluation index in step 102, and the embodiment content of step 102 can be referred to, which will not be repeated here.
[0085] Step 104, based on the target model parameter combination corresponding to the maximum value of all the evaluation indicators obtained, extract the classifiers corresponding to the weight parameters contained in the target model parameter combination from the classifier library and combine them to obtain a target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set.
[0086] In an embodiment of the present application, the classifier library may include a support vector machine classifier, a random forest classifier, a decision tree classifier, a K-nearest neighbor classifier, and a naive Bayes classifier. After the first population iteration is completed, the maximum value of the evaluation index can be found among all the calculated evaluation indexes, and the model parameter combination corresponding to the maximum value of the evaluation index is determined as the target model parameter combination. Then, according to the weight parameters included in the target model parameter combination, the classifiers corresponding to each weight parameter can be extracted in the classifier library for combination, so that the target image classification model corresponding to the target model parameter combination can be obtained. The target image classification model can be used to classify and annotate the target image data set, so that an image data set with annotations can be obtained.
[0087] In an embodiment of the present application, a first population comprising a plurality of model parameter combinations is generated; wherein the model parameter combination comprises weight parameters of each classifier in an image classification model, and the image classification model comprises at least one classifier; based on a target image data set and a model parameter combination, evaluation indicators corresponding to each of the plurality of model parameter combinations are determined; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the plurality of model parameter combinations; a preset number of rounds of crossover mutation are performed on each model parameter combination included in the first population to obtain a second population corresponding to each round of crossover mutation and to calculate the evaluation indicators corresponding to each model parameter combination included in the second population; based on a target model parameter combination corresponding to the maximum value of all the obtained evaluation indicators, classifiers corresponding to the weight parameters contained in the target model parameter combination are extracted from a classifier library and combined to obtain a target image classification model; wherein the target image classification model is used to classify and annotate image data in a target image data set, and can randomly generate and screen the optimal classification model, thereby improving the stability of the image classification effect.
[0088] Reference Figure 2 , Figure 2 : is a flow chart of another method for obtaining an image classification model provided in an embodiment of the present application, which method may include:
[0089] Step 201, generating a first population including a plurality of model parameter combinations; wherein the model parameter combinations include weight parameters of each classifier in an image classification model, and the image classification model includes at least one classifier.
[0090] In the embodiment of the present application, the implementation content of step 201 can refer to the implementation content of step 101, which will not be repeated here.
[0091] Step 202: clustering the target image dataset based on the clustering category parameters and distance index parameters corresponding to the respective model parameter combinations to obtain a first image dataset with pre-labeled information.
[0092] In an embodiment of the present application, the image classification model may include a clusterer, such as a C-means clusterer or a K-means clusterer. The number of clustering categories of the clusterer may be randomly generated and correspond one-to-one to the model parameter combination. After the target image data set is initially clustered using the clusterer, a first image data set with pre-labeled information is obtained. In addition, the model parameter combination may also include a power parameter when the classified image is at a distance from each cluster center. The distance between the classified image and each cluster center may be calculated using the following formula:
[0093]
[0094] In formula 1, L p(x i ,x j ) is point x i To point x j The distance between the points, l is the distance between the points i and point x j The dimension number, p is the power parameter mentioned above, and the value range of p is p≥1.
[0095] Therefore, in an embodiment of the present application, the model parameter set may include a clustering category parameter, a distance index parameter, and a weight parameter of the classifier.
[0096] For example, if the image classification model includes M classifiers, if α i To represent the weight corresponding to the i-th classifier, its model parameter combination can be expressed as [K, p, α1, α2, …, α M ].
[0097] Step 203: Determine evaluation indicators corresponding to the plurality of model parameter combinations respectively based on the first image data set.
[0098] In an embodiment of the present application, the pre-labeling information in the first image data set can be deleted, so that the first image data set includes labeled image data and unlabeled image data, and the classifier in the classifier library can be used to predict the classification category of the unlabeled image data based on the labeled image data, and then the evaluation indicators corresponding to each classification model can be calculated based on the predicted classification category of the unlabeled image data.
[0099] Optionally, step 203 may include the following sub-steps:
[0100] Sub-step 2031: divide the first image data set into an image training set and an image test set according to a preset ratio and delete the pre-labeled information contained in the image test set.
[0101] In an embodiment of the present application, a random algorithm can be used to divide the image data contained in the first image data set into an image training set and an image test set according to a preset ratio, and then the pre-labeled information contained in the image test set is deleted. In this way, the image data contained in the image test set are all unlabeled image data.
[0102] Sub-step 2032: predicting the annotation results of the image test set based on the annotation results of the image training set and the multiple classification models.
[0103] In an embodiment of the present application, multiple classification models can be trained using the annotation results of an image training set, and then the multiple classification models can be used to perform classification prediction on image data in an image test set, thereby obtaining predicted annotation results for the image test set.
[0104] Optionally, sub-step 2032 may include the following sub-steps:
[0105] Sub-step A1, obtaining a list of classifier types corresponding to the multiple classification models.
[0106] In an embodiment of the present application, each classification model may include a part of classifiers, and all the classifier types included in all the classification models may form a classifier type list. In an embodiment of the present application, a classifier type list corresponding to multiple classification models may be obtained.
[0107] For example, if the multiple classification models include a support vector machine classifier, a random forest classifier, a decision tree classifier, a K-nearest neighbor classifier, and a naive Bayes classifier, the classifier type list may include the above five classifiers.
[0108] Sub-step A2: selecting a first classifier from a classifier library based on the classifier type list.
[0109] In an embodiment of the present application, a first classifier can be randomly selected from a classifier library according to a classifier type list. For example, if the classifier type list is as shown in Table 1 below, a random number from 1 to 5 can be determined as a sequence number, and then the classifier corresponding to the sequence number is used as the first classifier.
[0110] Table 1
[0111] Serial number Classifier Type 1 SVM 2 Random Forest 3 Decision Tree 4 K-nearest neighbors 5 Naive Bayes
[0112] Sub-step A3: training the first classifier based on the image training set to obtain a trained second classifier.
[0113] In an embodiment of the present application, a machine learning training method can be used to train the selected first classifier based on the image training set, so as to obtain a trained second classifier. Obviously, the first classifier and the second classifier are of the same type. During the training process, part of the data in the training set can be randomly extracted to participate in the training. For example, each training process can randomly extract 80% of the image data contained in the image training set for training the first classifier. The training process of the classifier is the same as the conventional machine learning training process, which will not be repeated here.
[0114] Sub-step A4: input the image test set into the second classifier to obtain the predicted labeling result of the image test set output by the second classifier.
[0115] In an embodiment of the present application, after the first classifier is determined, the image test set can be input into the first classifier, and finally the labeled image test set output by the first classifier, that is, the predicted labeling result of the image test set, can be obtained.
[0116] In the embodiments of the present application, it should be noted that, since the model parameter combination of each classification model includes a preset number of weight parameters, the process from step A1 to step A3 can be repeated the same number of times as the preset number.
[0117] In an embodiment of the present application, by obtaining a list of classifier types corresponding to multiple classification models, a first classifier is randomly selected from a classifier library based on the classifier type list, and an image test set is input into the first classifier to obtain a predicted labeling result of the image test set output by the first classifier. A classifier can be randomly selected and the image test set can be predicted and labeled, thereby improving the availability and accuracy of the labeling results of the image test set.
[0118] Sub-step 2033, determining evaluation indicators corresponding to the multiple classification models respectively based on the prediction and annotation results of the image test set.
[0119] In an embodiment of the present application, the evaluation indicators corresponding to the multiple classification models can be determined according to the predicted annotation results of the image test set. Specifically, the classification category of the image test set can be determined according to the predicted annotation results, and then the image data contained in each category can be determined, and then the evaluation indicators corresponding to each classification model can be determined according to the image data features contained in each category. Generally speaking, the higher the similarity between the image data contained in each category of the image test set and the image data contained in each category of the image training set, the higher the evaluation indicator of the classification model.
[0120] Optionally, sub-step 2033 may include the following sub-steps:
[0121] Sub-step B1, determining the first number of classifiers and the first number of categories corresponding to the multiple model parameter combinations respectively.
[0122] In an embodiment of the present application, the evaluation index includes the Caliniski-Harabaz index, i.e., the CH index. In an embodiment of the present application, first, the first number and the first number of categories of classifiers respectively included in each model parameter combination can be determined. Among them, the first number can be the number of weight parameters in the model parameter combination, and the first number of categories can be the number of categories of weights included in each model parameter combination.
[0123] Sub-step B2, determining the target labeling result of the image test set based on the first number, the first number of categories, the predicted labeling result and the weight parameter corresponding to each model parameter combination.
[0124] In an embodiment of the present application, the weight of each classifier in each classification model can be determined according to the first number and the first number of categories. Since the weight parameter in the model parameter combination can only represent the weight of the classifier corresponding to the position of each weight parameter, and the number of classifiers included in the classification model can often be greater than the number of categories of the classifier, the weights corresponding to the classifiers of the same category can be added together to obtain the weights of each classifier in multiple classification models. Then, the labeling result of the image test set can be determined according to the predicted labeling result and the weight of each classifier. For a certain image data, the labeling result of the image data can be determined according to the predicted labeling result of each classifier and the weight of each classifier, and then the image test set can be traversed to obtain the labeling result of the image test set.
[0125] In the embodiments of the present application, a multi-classification task can be regarded as the superposition of multiple binary classification tasks.
[0126] For example, if a classification model includes 5 classifiers, namely classifier 1-1, classifier 1-2, classifier 2-1, classifier 1-3, and classifier 2-2, then the classification model includes two classifiers, classifier 1 and classifier 2. Among them, if the weights corresponding to the 5 classifiers are a1, a2, a3, a4, and a5, respectively, then the weight corresponding to classifier 1 is a1+a2+a4, and the weight corresponding to classifier 2 is a3+a5.
[0127] Continuing with the above example, if there is a medical image, classifier 1-1 identifies it as positive, classifier 1-2 and classifier 1-3 identify it as negative; classifier 2-1 and classifier 2-3 identify it as negative. If "1" is used to represent positive and "-1" is used to represent negative, then the weights of the same prediction results corresponding to each classifier can be multiplied by the prediction results first, and then the multiplication results are added to obtain the classification model's predicted annotation result for the medical image as a1-a2-a3-a4-a5. If a1-a2-a3-a4-a5<0, the predicted annotation result of the image is negative; if a1-a2-a3-a4-a5>0, the predicted annotation result of the image is positive. The same method can be used to obtain the annotation results corresponding to the image data of the entire image test set.
[0128] Sub-step B3, determining the number of training samples of the image training set, and determining a first covariance matrix of image data between categories of the target image data set and a second covariance matrix of image data within categories of the target image data set based on the target labeling result.
[0129] In an embodiment of the present application, after obtaining the annotation results of the image test set, the number of training samples of the image training set can be determined according to the data contained in the image training set, and the number of classification categories of the target image data set, the first covariance matrix of the image data between the categories of the target image data set, and the second covariance matrix of the image data within each category of the target image data set can be determined according to the annotation results of the image test set. For example, if the image data includes two types of image data, the size of the first covariance matrix is 2×2. The first covariance matrix and the second covariance matrix obtained by the above method are both symmetric matrices.
[0130] Sub-step B4, determining CH indexes corresponding to the multiple classification models respectively based on the first number of categories, the number of training samples, the first covariance matrix and the second covariance matrix.
[0131] In an embodiment of the present application, after obtaining the annotation results of the image test set to determine the number of classification categories of the target image data set, the number of training samples of the image training set, the first covariance matrix of the image data between the various categories of the target image data set, and the second covariance matrix of the image data within each category of the target image data set, the CH index corresponding to each model can be obtained according to the calculation formula of the CH index. The calculation formula of the CH index is as follows:
[0132] In Formula 2, m is the number of training samples in the image training set, k is the clustering category parameter contained in the model parameter combination, and B k is the first covariance matrix of image data between categories, W k is the second covariance matrix of the image data within the category, and tr() is the trace of the matrix.
[0133] In an embodiment of the present application, by determining the first number and the first number of categories of classifiers corresponding to multiple model parameter combinations, respectively, determining the target annotation result of the image test set based on the first number, the first number of categories, the predicted annotation result and the weight parameter corresponding to each model parameter combination, determining the number of training samples of the image training set, determining the first covariance matrix of the image data between each category of the target image data set and the second covariance matrix of the image data within each category of the target image data set based on the target annotation result, determining the CH index corresponding to multiple model parameter combinations based on the number of classification categories, the number of training samples, the first covariance matrix and the second covariance matrix, respectively, the CH index corresponding to each classification model can be calculated, and the CH index is used as the fitness and evaluation index of the individual classification model, thereby improving the accuracy of the classification model evaluation.
[0134] In an embodiment of the present application, the first image data set is divided into an image training set and an image test set according to a preset ratio; wherein the annotated images are all included in the image training set, and the predicted annotation results of the image test set are predicted based on the annotation results of the image training set and multiple classification models, and the evaluation indicators corresponding to the multiple classification models are determined based on the predicted annotation results of the image test set. The classification model can be trained based on the annotated image data, and the unlabeled image data can be annotated and predicted and the evaluation indicator of the classification model can be calculated, thereby improving the accuracy and reliability of the evaluation indicator.
[0135] In an embodiment of the present application, the target image data set is clustered based on the clustering category parameters and distance index parameters corresponding to each model parameter combination to obtain a first image data set with pre-labeled information, and evaluation indicators corresponding to multiple model parameter combinations are determined based on the first image data set. A clustering method can be added to the classification model to form a clustering-classifier combination model, thereby improving the availability and accuracy of the classification model.
[0136] Step 204 , performing a preset number of crossover mutations on the various model parameter combinations included in the first population, obtaining a second population corresponding to each round of crossover mutation, and calculating evaluation indicators corresponding to each model parameter combination included in the second population.
[0137] In the embodiment of the present application, the clustering category parameter and the distance index parameter in the model parameter combination can also participate in the crossover mutation process. For other implementation contents of this step, reference can be made to the embodiment contents of step 103, which will not be repeated here.
[0138] Optionally, step 204 may include the following sub-steps:
[0139] Sub-step 2041: Selecting a first model parameter combination from the first population using a tournament method.
[0140] In an embodiment of the present application, a tournament method may be used to select a first model parameter combination from the first population. The tournament method is a selection method. Typically, the number of the first model parameter combinations may be the same as the number of model parameter combinations included in the first population.
[0141] For example, in an embodiment of the present application, the process of selecting the first model parameter combination using the tournament method can be performed according to the following process:
[0142] Assuming that there are 100 classification model individuals in the first population, 50 classification model individuals can be randomly selected from the first population, and then the classification model individual with the highest fitness (CH index) among these 50 classification model individuals is selected as a first model parameter combination. Then repeat the above process and finally get 100 first model parameter combinations.
[0143] Sub-step 2042: performing crossover mutation on the first model parameter combination to obtain a second population corresponding to each round of crossover mutation and evaluation indicators corresponding to each classification model included in the second population.
[0144] In an embodiment of the present application, cross-mutation can be performed between each first model parameter combination, that is, the elements between each model parameter combination are randomly exchanged, and each element can fluctuate randomly within a certain numerical range, so that new classification model individuals and a second population composed of new model parameter combination individuals can be obtained, and then the evaluation indicators corresponding to each classification model in the second population can be calculated.
[0145] In an embodiment of the present application, a first model parameter combination is selected from a first population by adopting a tournament method, and a crossover mutation is performed on the first model parameter combination to obtain a second population corresponding to each round of crossover mutation and evaluation indicators corresponding to each model parameter combination contained in the second population. The tournament method can be used to screen individuals in each generation of the population, thereby improving the availability of the second population.
[0146] Step 205, based on the target model parameter combination corresponding to the maximum value of all the evaluation indicators obtained, extract the classifiers corresponding to the weight parameters contained in the target model parameter combination from the classifier library and combine them to obtain a target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set.
[0147] In the embodiments of the present application, the implementation content of this step can refer to the implementation content of step 104, which will not be repeated here.
[0148] In an embodiment of the present application, a first population including a plurality of model parameter combinations is generated; wherein the model parameter combination includes weight parameters of each classifier in an image classification model, and the image classification model includes at least one classifier; based on clustering category parameters and distance index parameters corresponding to each model parameter combination, a target image data set is clustered to obtain a first image data set with pre-labeled information; evaluation indicators corresponding to the plurality of model parameter combinations are determined based on the first image data set; a preset number of rounds of crossover mutation are performed on each model parameter combination included in the first population to obtain a second population corresponding to each round of crossover mutation and the evaluation indicators corresponding to each model parameter combination included in the second population are calculated; based on the target model parameter combination corresponding to the maximum value of all the obtained evaluation indicators, a classifier corresponding to the weight parameter included in the target model parameter combination is extracted from a classifier library for combination to obtain a target image classification model; wherein the target image classification model is used to classify and label image data in the target image data set, and a clustering-classifier combination model can be adopted to classify the target image data set, thereby improving the efficiency, accuracy and reliability of image data classification.
[0149] Reference Figure 3 , Figure 3 A schematic diagram of a flow chart of an image classification method provided in an embodiment of the present application, the method may include:
[0150] Step 301: Obtain an unlabeled target image dataset.
[0151] In an embodiment of the present application, an unlabeled image dataset may be obtained as a target image dataset. For example, the target image dataset may be a medical image to be labeled, a continuous image frame to be labeled, and the like.
[0152] Step 302: input the target image data set into a target image classification model to obtain a labeled image data set output by the target image classification model; wherein the target image classification model is obtained based on any of the above-described image classification model acquisition methods.
[0153] In an embodiment of the present application, the target image classification model may be an optimal classification model corresponding to the target image data set. After the image data in the target image data set is input into the target model, the target model may use a clusterer to cluster the image data. Since the target model is a screened optimal classification model, under the action of the clusterer, the image data in the target image data set may all be labeled by the clusterer. Thereafter, the image data labeled by the clusterer may be verified by the classifier. If the classification result of the classifier is consistent with the clustering result of the clusterer, the classification result is adopted. If the classification result of the classifier is inconsistent with the clustering result of the clusterer, the image data corresponding to the classification result is re-clustered.
[0154] In an embodiment of the present application, an unlabeled target image dataset is obtained, and the target image dataset is input into a target image classification model to obtain a labeled image dataset output by the target image classification model; wherein the target image classification model is obtained based on any of the image classification model acquisition methods described above, and the trained target classification model can be used to classify the target image dataset, thereby improving the accuracy and reliability of image data classification.
[0155] Reference Figure 4 , Figure 4 400 is a logic block diagram of an image classification model acquisition device provided in an embodiment of the present application. The image classification model acquisition device 400 may include:
[0156] A first generation module 401 generates a first population including a plurality of model parameter combinations; wherein the model parameter combinations include weight parameters of each classifier in an image classification model, and the image classification model includes at least one classifier;
[0157] A determination module 402 is used to determine evaluation indicators corresponding to the multiple model parameter combinations based on the target image data set and the model parameter combinations; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the multiple model parameter combinations;
[0158] A crossover mutation module 403 is used to perform a preset number of crossover mutations on each model parameter combination included in the first population, obtain a second population corresponding to each round of crossover mutation, and calculate evaluation indicators corresponding to each model parameter combination included in the second population;
[0159] The second generation module 404 is used to extract classifiers corresponding to the weight parameters contained in the target model parameter combination from the classifier library based on the target model parameter combination corresponding to the maximum value of all the evaluation indicators obtained, and combine them to obtain a target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set.
[0160] Optionally, the model parameter combination includes a clustering category parameter and a distance index parameter, and the determination module 402 includes:
[0161] A clustering submodule, configured to cluster the target image data set based on the clustering category parameters and distance index parameters respectively corresponding to the various model parameter combinations, to obtain a first image data set with pre-labeled information;
[0162] A determination submodule is used to determine evaluation indicators corresponding to the multiple model parameter combinations respectively based on the first image data set.
[0163] Optionally, the determining submodule includes:
[0164] a dividing unit, configured to divide the first image data set into an image training set and an image test set according to a preset ratio and delete the pre-labeled information contained in the image test set;
[0165] A prediction unit, used to predict the prediction and annotation results of the image test set based on the pre-annotation information contained in the image training set and the classifier library;
[0166] A determination unit is used to determine the evaluation indicators corresponding to the multiple model parameter combinations respectively based on the prediction and annotation results of the image test set.
[0167] Optionally, the prediction unit includes:
[0168] An acquisition subunit, used to acquire a list of classifier types corresponding to the multiple classification models;
[0169] A selection subunit, configured to select a first classifier from a classifier library based on the classifier type list;
[0170] The prediction subunit is used to input the image test set into the second classifier to obtain the prediction and annotation results of the image test set output by the second classifier.
[0171] Optionally, the evaluation index includes a CH index, and the determination unit includes:
[0172] A first determining subunit, used to determine a first number of classifiers and a first number of categories corresponding to the plurality of model parameter combinations respectively;
[0173] A second determination subunit is used to determine a target annotation result of the image test set based on the first number, the first number of categories, the predicted annotation result and the weight parameter respectively corresponding to each model parameter combination;
[0174] A third determination subunit is used to determine the number of training samples of the image training set, and determine a first covariance matrix of image data between various categories of the target image data set and a second covariance matrix of image data within various categories of the target image data set based on the target annotation result;
[0175] The fourth determination subunit is used to determine the CH indexes corresponding to the multiple model parameter combinations respectively based on the first number of categories, the number of training samples, the first covariance matrix and the second covariance matrix.
[0176] Optionally, the crossover mutation module 403 includes:
[0177] A selection submodule, used for selecting a first model parameter combination from the first population by using a tournament method;
[0178] The crossover mutation submodule is used to perform crossover mutation on the first model parameter combination to obtain a second population corresponding to each round of crossover mutation and evaluation indicators corresponding to each model parameter combination included in the second population.
[0179] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0180] The advantages of the model generation device and the image classification model acquisition method described in the aforementioned embodiment over the prior art are the same, and will not be repeated here.
[0181] Reference Figure 5 , Figure 5 An image classification device provided in an embodiment of the present application includes:
[0182] An acquisition module 501 is used to acquire an unlabeled target image dataset;
[0183] The classification and labeling module 502 is used to input the target image data set into the target image classification model to obtain the labeled image data set output by the target image classification model; wherein the target image classification model is obtained based on any of the above-mentioned image classification model acquisition methods.
[0184] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0185] The image classification device has the same advantages as the image classification method described in the above embodiment over the prior art, which will not be described in detail here.
[0186] The present application embodiment provides an electronic device, see Figure 6 The electronic device 60 includes: a processor 601, a memory 602, and a computer program 6021 stored in the memory 602 and executable on the processor 601. When the processor 601 executes the program, the image classification model acquisition method or the image classification method of the aforementioned embodiment is implemented.
[0187] An embodiment of the present application provides a readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the aforementioned image classification model acquisition method, or image classification method.
[0188] The embodiment of the present application also provides a computer program product. When the computer program product is run on an electronic device, the processor implements the steps in the image classification model acquisition method and the image classification method disclosed in the embodiment of the present application.
[0189] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0190] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, electronic devices, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0191] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0192] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0193] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0194] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0195] The above is a detailed introduction to a clustering-based image classification model acquisition method and an image classification method provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for acquiring an image classification model, characterized in that: The method comprises: Generate a first population including a plurality of model parameter combinations; wherein the model parameter combinations include weight parameters of each classifier in an image classification model, and the image classification model includes a plurality of classifiers; Based on the target image data set and the multiple model parameter combinations, determining evaluation indicators corresponding to the multiple model parameter combinations respectively; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the multiple model parameter combinations respectively; Performing a preset number of rounds of crossover mutation on each model parameter combination included in the first population to obtain a second population corresponding to each round of crossover mutation and calculating evaluation indicators corresponding to each model parameter combination included in the second population; Based on the target model parameter combination corresponding to the maximum value of all the evaluation indicators obtained, classifiers corresponding to the weight parameters contained in the target model parameter combination are extracted from the classifier library and combined to obtain a target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set; The model parameter combination includes a clustering category parameter and a distance index parameter, and the step of determining evaluation indicators corresponding to the multiple model parameter combinations based on the target image data set and the multiple model parameter combinations includes: Based on the clustering category parameters and distance index parameters respectively corresponding to the various model parameter combinations, clustering the target image data set to obtain a first image data set with pre-labeled information; Determining evaluation indicators corresponding to the plurality of model parameter combinations respectively based on the first image data set; The determining, based on the first image data set, evaluation indicators corresponding to the plurality of model parameter combinations respectively includes: Dividing the first image data set into an image training set and an image test set according to a preset ratio and deleting the pre-labeled information contained in the image test set; Predicting the predicted annotation results of the image test set based on the pre-annotated information contained in the image training set and the classifier library; Determining evaluation indicators corresponding to the plurality of model parameter combinations respectively based on the prediction and annotation results of the image test set; The evaluation index includes a Caliniski-Harabaz index, and the evaluation indexes corresponding to the plurality of model parameter combinations are determined based on the prediction and annotation results of the image test set, including: Determine the first number and the first number of categories of classifiers corresponding to the plurality of model parameter combinations respectively; wherein the first number represents the number of weight parameters in the model parameter combination; and the first number of categories represents the number of categories of weights contained in each model parameter combination; Determine a target labeling result of the image test set based on the first number, the first number of categories, the predicted labeling result and the weight parameter respectively corresponding to each model parameter combination; Determine the number of training samples of the image training set, and determine a first covariance matrix of image data between categories of the target image data set and a second covariance matrix of image data within each category of the target image data set based on the target annotation result; The Caliniski-Harabaz indexes corresponding to the plurality of model parameter combinations are determined based on the first number of categories, the number of training samples, the first covariance matrix, and the second covariance matrix.
2. The method for acquiring an image classification model according to claim 1, characterized in that: The pre-labeling information contained in the image training set and the prediction labeling result of the classifier library predicting the image test set include: Obtain a list of classifier types corresponding to the multiple classification models; Selecting a first classifier from a classifier library based on the classifier type list; Training the first classifier based on the image training set to obtain a trained second classifier; The image test set is input into the second classifier to obtain the predicted labeling result of the image test set output by the second classifier.
3. The method for acquiring an image classification model according to claim 1, characterized in that: The performing a preset number of crossover mutations based on the first population to obtain a second population corresponding to each round of crossover mutation and evaluation indicators corresponding to each model parameter combination included in the second population, includes: Selecting a first model parameter combination from the first population using a tournament method; The first model parameter combination is cross-mutated to obtain a second population corresponding to each round of cross-mutation and evaluation indicators corresponding to each model parameter combination included in the second population.
4. An image classification method, characterized in that: The method comprises: Obtain an unlabeled target image dataset; The target image data set is input into a target image classification model to obtain a labeled image data set output by the target image classification model; wherein the target image classification model is obtained based on the image classification model acquisition method according to any one of claims 1 to 3.
5. A model generation device, characterized in that: The device comprises: A first generation module generates a first population including a plurality of model parameter combinations; wherein the model parameter combinations include weight parameters of each classifier in an image classification model, and the image classification model includes a plurality of classifiers; A determination module, used to determine the evaluation indicators corresponding to the multiple model parameter combinations respectively based on the target image data set and the model parameter combination; wherein the evaluation indicators are used to evaluate the classification effects of the image classification models corresponding to the multiple model parameter combinations respectively; A crossover mutation module, used to perform a preset number of crossover mutations on each model parameter combination included in the first population, obtain a second population corresponding to each round of crossover mutation, and calculate evaluation indicators corresponding to each model parameter combination included in the second population; A second generation module is used to extract classifiers corresponding to the weight parameters contained in the target model parameter combination from the classifier library based on the target model parameter combination corresponding to the maximum value of all the evaluation indicators obtained, and combine them to obtain a target image classification model; wherein the target image classification model is used to classify and annotate the image data in the target image data set; Wherein, the model parameter combination includes a clustering category parameter and a distance index parameter, and the determination module includes: A clustering submodule, configured to cluster the target image data set based on the clustering category parameters and distance index parameters respectively corresponding to the various model parameter combinations, to obtain a first image data set with pre-labeled information; A determination submodule, configured to determine evaluation indicators corresponding to the plurality of model parameter combinations respectively based on the first image data set; The determination submodule comprises: a dividing unit, configured to divide the first image data set into an image training set and an image test set according to a preset ratio and delete the pre-labeled information contained in the image test set; A prediction unit, used to predict the prediction and annotation results of the image test set based on the pre-annotation information contained in the image training set and the classifier library; A determination unit, configured to determine evaluation indicators corresponding to the plurality of model parameter combinations respectively based on the prediction and annotation results of the image test set; The evaluation index includes the Caliniski-Harabaz index, and the determination unit includes: A first determination subunit is used to determine a first number and a first number of categories of classifiers corresponding to the plurality of model parameter combinations respectively; wherein the first number represents the number of weight parameters in the model parameter combination; and the first number of categories represents the number of categories of weights contained in each model parameter combination; A second determination subunit is used to determine a target annotation result of the image test set based on the first number, the first number of categories, the predicted annotation result and the weight parameter respectively corresponding to each model parameter combination; A third determination subunit is used to determine the number of training samples of the image training set, and determine a first covariance matrix of image data between various categories of the target image data set and a second covariance matrix of image data within various categories of the target image data set based on the target annotation result; The fourth determination subunit is used to determine the Caliniski-Harabaz indexes corresponding to the multiple model parameter combinations respectively based on the first number of categories, the number of training samples, the first covariance matrix and the second covariance matrix.
6. An image classification device, characterized in that: The device comprises: An acquisition module is used to acquire an unlabeled image dataset; A classification and labeling module is used to input the unlabeled image data set into a target image classification model to obtain a labeled image data set; wherein the target image classification model is obtained based on the image classification model acquisition method as described in any one of claims 1 to 3.
7. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image classification model acquisition method described in any one of claims 1 to 3, or the image classification method described in claim 4.
Citation Information
Patent Citations
Information generation method and device
CN108197652A
Online course learning supervision method and system
CN114863341A
