Visual analysis system and method for generating ensemble classifiers for small sample learning tasks
By selecting the appropriate base learner and labeled samples in the small sample learning task, generating an integrated classifier, and using visualization technology to display the results, the problem of performance degradation in the small sample learning task in the existing technology is solved, and the accuracy of the model is improved. rate and user interactivity.
Patent Information
- Application Number
- CN202110542475.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-05-18
AI Technical Summary
In small-sample learning tasks, existing technology is difficult to effectively select appropriate base learners and labeled samples, resulting in a decline in the performance of the integrated classifier, and existing visualization technology cannot effectively display and improve the model.
Propose a visual analysis system that receives multiple base learners and samples, calculates dissimilarity and cost, selects base learners and labeled samples suitable for small sample learning tasks, generates an integrated classifier, and uses the visualization module Display classification results and iteratively improve the model.
It improves the model accuracy and generalization ability in small sample learning tasks, enhances the user's understanding and interactivity of the model, and forms an integrated classifier with better performance.
Smart Images

Figure CN113344038B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to computer technology, and in particular, to a visual analysis system, method, and computer-readable storage medium for generating an integrated classifier for a small sample learning task. Technical Background
[0002] With the advent of the big data era, data-driven machine learning methods have achieved success in many fields, and an important factor for these successes is that machine learning uses a large number of labeled samples. However, in real applications, a large number of labeled samples are usually not easy to obtain, and sometimes only a very small number of labeled samples can be obtained. In machine learning, it is easy to cause overfitting problems when only a very small number of labeled samples are used. In contrast, humans have the ability to learn quickly and are good at identifying new categories of objects with a very small number of labeled samples, while deep learning is easy to overfit in this case. Therefore, how to make machine learning methods achieve good performance with only a very small number of labels, that is, the small sample learning problem, has become one of the important research directions in the field of machine learning. In addition, the process involved in training a machine learning model through small sample learning is also very complicated, and people have limited understanding of it. Therefore, using visualization technology to display machine learning models is now a hot topic in the industry. The machine learning model visualization tool in the related technology provides users with the classification results of the machine learning model, which enables users to have a deeper understanding of the machine learning model and help users generate machine learning models with better performance. Summary of the invention
[0003] The present invention aims to solve the above technical problems at least to a certain extent.
[0004] To this end, the first objective of the present invention is to propose a visual analysis system for generating an integrated classifier for small sample learning tasks. The system allows users to select base learners and labeled samples suitable for small sample learning tasks from multiple base learners and multiple samples, and then establish an integrated classifier with better performance.
[0005] The second object of the present invention is to propose a method for selecting base learners and labeled samples and establishing an integrated classifier in a visual analysis system for generating an integrated classifier for a small sample learning task.
[0006] The third object of the present invention is to propose a method for selecting an image-based learner and labeled image samples for a small sample image set and establishing an image ensemble classifier.
[0007] A fourth object of the present invention is to provide a computer-readable storage medium.
[0008] A fifth object of the present invention is to provide a computer program product.
[0009] To achieve the above-mentioned purpose, according to an embodiment of the first aspect of the present invention, a visual analysis system for generating an integrated classifier for a small sample learning task is proposed, comprising: a receiving module, configured to receive multiple base learners and multiple samples, the multiple samples including a limited number of labeled samples; a base learner selection module, configured to select a base learner suitable for the small sample learning task based on the multiple base learners and the multiple samples; a sample selection module, configured to select labeled samples suitable for the small sample learning task based on the selected base learners and the multiple samples; an integrated classifier generation module, configured to generate an integrated classifier based on the selected base learners and the selected labeled samples; and a visualization module, configured to display the classification results of the integrated classifier for multiple samples.
[0010] According to the second aspect of the present invention, an embodiment of the present invention proposes a method for selecting base learners and labeled samples and establishing an integrated classifier in a visual analysis system for generating an integrated classifier for a small sample learning task, including: obtaining multiple base learners and multiple samples, wherein the multiple samples include a limited number of labeled samples; selecting a base learner suitable for the small sample learning task by calculating the dissimilarity between each base learner in the multiple base learners and each sample in the multiple samples, the degree of non-cooperation between any two base learners in the multiple base learners, and the cost of each base learner in the multiple base learners; selecting a labeled sample suitable for the small sample learning task according to the selected base learner by calculating the dissimilarity between any two samples in the multiple samples and the cost of each sample in the multiple samples. annotate samples; generate an ensemble classifier using the selected base learner and the selected labeled samples; classify the unlabeled samples in multiple samples using the ensemble classifier; display the classification results of the ensemble classifier for multiple samples; select unlabeled samples suitable for small sample learning tasks according to the selected base learner by calculating the dissimilarity between any two samples in multiple samples and the cost of each sample in multiple samples; label the selected unlabeled samples by category using the generated ensemble classifier; receive input to verify the category labeling of the generated ensemble classifier of the selected unlabeled samples to make them another set of labeled samples; generate an improved ensemble classifier according to the selected base learner and the selected labeled samples and another set of labeled samples.
[0011] The third aspect of the present invention proposes a method for selecting image-based learners and labeled image samples for a small sample image set and establishing an image ensemble classifier, including: obtaining multiple image-based learners and multiple image samples, wherein the multiple image samples include a limited number of labeled image samples; selecting an image-based learner suitable for the small sample image classification task by calculating the dissimilarity between each image-based learner in the multiple image-based learners and each image sample in the multiple image samples, the degree of non-cooperation between any two image-based learners in the multiple image-based learners, and the cost of each image-based learner in the multiple image-based learners; selecting labeled image samples suitable for the small sample image classification task based on the selected image-based learner by calculating the dissimilarity between any two image samples in the multiple image samples and the cost of each image sample in the multiple image samples; and utilizing the selected image-based learner to select labeled image samples suitable for the small sample image classification task. The invention relates to an image-based learner and a selected labeled image sample to generate an image ensemble classifier; using the image ensemble classifier, classify the unlabeled image samples in a plurality of image samples; display the classification results of the image ensemble classifier on the plurality of image samples; according to the selected image-based learner, by calculating the dissimilarity between any two image samples in the plurality of image samples and the cost of each image sample in the plurality of image samples, select the unlabeled image samples suitable for the small sample learning task; using the generated image ensemble classifier to classify the selected unlabeled image samples; receiving input to classify and verify the class labeling of the generated ensemble classifier of the selected unlabeled image samples so as to make them another set of labeled image samples; generating an improved image ensemble classifier according to the selected image-based learner, the selected labeled image samples and another set of labeled image samples.
[0012] The fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a visual analysis system for generating an integrated classifier for a small sample learning task as in the first aspect of the present invention.
[0013] The fifth aspect of the present invention provides a computer program product. When the instruction processor in the computer program product executes, it executes the visual analysis system for generating an integrated classifier for a small sample learning task as described in the first aspect of the present invention.
[0014] Additional aspects and advantages of the present invention will be given in the following detailed description, and the advantages of the present invention will become apparent from the following description or be understood through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The invention itself, as well as the mode of use, objects, features and advantages of its preferred embodiments, may be better understood by reading the following detailed description of illustrative embodiments with reference to the accompanying drawings, in which:
[0016] Figure 1 shows a few-shot learning task for bird image classification;
[0017] Figure 2 3 base learners and 6 samples used to build a small sample learning ensemble classifier are shown;
[0018] Figure 3 A structural block diagram of a visual analysis system for generating an integrated classifier for a small sample learning task proposed in an embodiment of the present invention is shown;
[0019] Figure 4 Shows Figure 3 In the base learner selection module Figure 2 The process of selecting 3 base learners and 6 samples to obtain 2 selected base learners;
[0020] Figure 5 Shows Figure 3 In the sample selection module Figure 2 The process of selecting the 6 samples shown in Figure 1 to obtain 2 selected labeled samples;
[0021] Figure 6 An interface of a visualization module of a visual analysis system for generating an integrated classifier for a small sample learning task proposed according to an embodiment of the present invention is shown;
[0022] Figure 7 A flowchart of a method for selecting base learners and labeled samples and establishing an integrated classifier in a visual analysis system for generating an integrated classifier for a small sample learning task is shown;
[0023] Figure 8 The present invention shows a flow chart of a method for selecting an image-based learner and labeled image samples for a small sample image set and establishing an image ensemble classifier. DETAILED DESCRIPTION
[0024] The following description includes exemplary methods, systems, techniques, and instruction sequences that embody the technology of the present invention. However, it should be understood that in one or more aspects, the described invention can be practiced without these specific details. In other cases, well-known protocols, structures, and techniques are not shown in detail to avoid obscuring the present invention. Those of ordinary skill in the art will understand that the described techniques and mechanisms can be applied to various architectures of visual analysis systems that generate integrated classifiers for small sample learning tasks.
[0025] Embodiments of the present invention are described below with reference to the accompanying drawings. In the following description, many specific details are set forth in order to more fully understand the present invention. However, it is obvious to those skilled in the art that the present invention may be implemented without some of these specific details. In addition, it should be understood that the present invention is not limited to the specific embodiments described. On the contrary, any combination of the following features and elements may be considered to implement the present invention, regardless of whether they relate to different embodiments. Therefore, the following aspects, features, embodiments and advantages are intended for illustration only and should not be considered as elements or limitations of the appended claims unless clearly stated in the claims.
[0026] As mentioned above, the small sample learning problem is one of the important research directions in the field of machine learning and has a broad application prospect. In small sample learning, the samples include labeled samples and unlabeled samples, among which the number of labeled samples is very small. Small sample learning aims to train a good machine learning model using only a small amount of labeled sample information. In recent years, there have been many related studies, among which the method based on the ensemble model combines the results given by each base learner and can better balance the model accuracy and model generalization ability. However, in practical applications, the existing ensemble model-based methods are not targeted at small sample learning, and their accuracy and generalization ability are still unsatisfactory when used in small sample learning. Existing studies have shown that the diversity and cooperation ability of each base learner in the ensemble model, as well as the representativeness of the labeled samples, will greatly affect the performance of the small sample learning model. For example, low-quality base learners will make incorrect classifications and mislead the ensemble model, resulting in a decrease in the performance of the ensemble model; low-quality labeled samples often cause the existing ensemble model to have overfitting problems, which makes the performance of the existing ensemble model significantly degraded when applied to small sample learning. Therefore, for the small sample learning task, it is necessary to propose an improved ensemble model. At the same time, existing visualization techniques cannot display the classification results of the integrated model well, nor can they interact with users well to further improve the integrated model.
[0027] In the present invention, a base learner and annotated samples can be selected in the scenario of small sample learning to form an improved integrated model. The improved integrated model can achieve higher model accuracy and model generalization ability. And the classification results of the integrated model are well displayed through visualization technology, and the integrated model is well interacted with the user to further improve the integrated model.
[0028] For example, Figure 1 Figure 2 shows a few-shot learning task for bird image classification, with three base learners and four labeled samples. and a sample x to be labeled. Each base learner uses the following steps: 1) extracting features from both the labeled sample and the sample to be labeled; 2) calculating the Euclidean distance between the features of the labeled sample and the features of the sample to be labeled; 3) using a normalized exponential function to convert the Euclidean distance between the features of the labeled sample and the features of the sample to be labeled into the degree of similarity between the labeled sample and the sample to be labeled; 4) classifying the sample to be labeled according to the degree of similarity between the labeled sample and the sample to be labeled. Subsequently, the integrated classifier averages the class label distributions of the samples to be labeled given by all base learners to obtain the final class label distribution of the samples to be labeled, thereby classifying the samples to be labeled. The present invention finds that, using the existing integrated classifier, the class labeling results obtained by using all base learners for classification may give an incorrect class label distribution due to the poor performance of some base learners, thereby causing the integrated classifier to give an incorrect final class label distribution, resulting in a decrease in the performance of the integrated classifier for class labeling; it may also be due to the poor quality of the labeled samples, causing the base learners to be unable to accurately calculate the degree of similarity between the labeled samples and the samples to be labeled, thereby giving an incorrect class label distribution. Therefore, it is necessary to select base learners and labeled samples to form an integrated classifier with better performance.
[0029] The above is a small sample learning task described using images as an example. In fact, those skilled in the art will know that small sample learning is not only applicable to image samples, but also to video samples, text samples, table samples or user-specified samples, etc.
[0030] For example, Figure 2 The diagram shows three base learners (including base learners 201-203) and six samples (including labeled samples 204-205 and unlabeled samples 206-209) for establishing a small sample learning ensemble classifier. Those skilled in the art should know that the three base learners and six samples mentioned above are only exemplary, and any number of base learners and any number of samples can be used in actual applications. Figure 2 Taking the scenario as an example, it aims to select appropriate base learners and labeled samples for small sample learning tasks to form an improved ensemble classifier, thereby improving the classification accuracy of small sample learning tasks.
[0031] Figure 3 FIG. 3 shows a block diagram of a visual analysis system 300 for generating an integrated classifier for a small sample learning task according to an embodiment of the present invention. Figure 3As shown, the system 300 includes a receiving module 310, a base learner selection module 320, a sample selection module 330, an ensemble classifier generation module 340, and a visualization module 350. The receiving module 310 is configured to receive multiple base learners 301 and multiple samples 302, wherein the multiple samples 302 include a limited number of labeled samples; the base learner selection module 320 is configured to select a base learner 303 suitable for a small sample learning task based on the multiple base learners 301 and the multiple samples 302; the sample selection module 330 is configured to select a labeled sample 304 suitable for a small sample learning task based on the selected base learner 303 and the multiple samples 302; the ensemble classifier generation module 340 is configured to generate an ensemble classifier 305 based on the selected base learner 303 and the selected labeled samples 304; and the visualization module 350 is configured to display the classification results of the ensemble classifier 305 on the multiple samples 302. The visualization module 350 further includes a base learner visualization module 360, which is configured to display the differences in classification results of the multiple base learners 301 and the ensemble classifier 305 for the multiple samples 302. The visual analysis system 300 for generating an ensemble classifier for a small sample learning task can be implemented as an application on a general computer system, or as an application on a server system, or as a network application, or as an application on a cloud platform.
[0032] In one embodiment, the receiving module 310 may be configured to receive the multiple base learners 301 and the multiple samples 302 uploaded from the user through a graphical user interface or a user command, etc. The receiving module 310 may also be configured to store the multiple base learners 301 and the multiple samples 302 somewhere for reading by the receiving module 310. The receiving module 310 may also be configured to obtain the multiple base learners 301 and the multiple samples 302 through network transmission, etc.
[0033] In one embodiment, the base learner selection module 320 can be configured to select a base learner 303 suitable for the small sample learning task by calculating the dissimilarity between each base learner in the multiple base learners 301 and each sample in the multiple samples 302, the degree of non-cooperation between any two base learners in the multiple base learners 301, and the cost of each base learner in the multiple base learners 301.
[0034] In one embodiment, the dissimilarity between the base learner and the sample can be indicated by the confidence (also called confidence) of the base learner in predicting the sample, and prediction confidence has multiple definitions in the prior art. The present invention can adopt any definition. In a preferred embodiment, prediction confidence can be defined as the maximum value minus the second largest value in the class label distribution predicted by the base learner for the sample, and the lower the value, the higher the dissimilarity. In another embodiment, prediction confidence can be defined as 1 minus the second largest value in the class label distribution predicted by the base learner for the sample.
[0035] In one embodiment, the degree of uncooperation between any two base learners can be indicated by the mean of the symmetric KL divergence of the class label distribution predicted by the two base learners for the multiple samples 302. The mean of the symmetric KL divergence can be calculated using the following formula:
[0036]
[0037] in, and Represent two base learners θ respectively k ,θ l Given the predicted class label distribution of multiple samples 302, for and The KL divergence between the two base learners, N is the number of the multiple samples 302. The higher the mean of the symmetric KL divergence, the higher the degree of non-cooperation between the two base learners. Those skilled in the art should know that the degree of non-cooperation between the two base learners can also be indicated by using the total variation of the class label distribution predicted by the two base learners for the multiple samples 302, the Hellinger distance of the class label distribution predicted by the two base learners for the multiple samples 302, the χ2 divergence of the class label distribution predicted by the two base learners for the multiple samples 302, etc. These calculation methods are well known to those skilled in the art and will not be repeated here.
[0038] In one embodiment, the cost of each base learner can be indicated by the mean of the negative log-likelihood function values of the base learner for the labeled samples. The mean of the negative log-likelihood function values can be calculated using the following formula:
[0039] The mean of the negative log-likelihood function is -∑logp(y i |x i ) / N
[0040] Where p(y i |x i) represents the likelihood function value, and N is the number of samples. The larger the mean of the negative log-likelihood function value, the higher the cost of the base learner. Those skilled in the art should know that the cost of the base learner can also be indicated by the product of the likelihood function of the base learner for the labeled samples, the sum of the likelihood function of the base learner for the labeled samples, and so on. These calculation methods are well known to those skilled in the art and will not be repeated here.
[0041] The base learner selection module 320 expects the selected base learner 303 to satisfy: the dissimilarity between the selected base learner 303 and the multiple samples 302 is low, the non-cooperation between any two base learners in the selected base learner 303 is low, and the cost of each base learner in the selected base learner 303 is low, so the cost function can be defined as the sum of three items, wherein the first item is the sum of the minimum values of the dissimilarity between the multiple samples 302 and the selected base learner 303, the second item is the sum of the non-cooperation between any two base learners in the selected base learner 303, and the third item is the sum of the cost of each base learner in the selected base learner 303. Those skilled in the art can know that summation is only a specific implementation method, and other functional relationships can also be used, such as weighted summation, logarithmic transformation before summation, and so on.
[0042] Figure 4 Shows Figure 3 The base learner selection module 320 is Figure 2 The process of selecting 3 base learners and 6 samples to obtain 2 selected base learners is shown. Figure 4 The left half of represents another way of displaying the dissimilarity between each base learner in the multiple base learners 301 and each sample in the multiple samples 302, the degree of non-cooperation between any two base learners in the multiple base learners 301, and the cost of each base learner in the multiple base learners 301 calculated by the base learner selection module 320. It is assumed that in the connection between the base learner and the sample, the dashed line edge indicates that the dissimilarity between the base learner and the sample is large (assuming it is 100), while the solid line edge indicates that the dissimilarity between the base learner and the sample is small (assuming it is 1); and it is assumed that the degree of non-cooperation between every two base learners is 1, and the cost of each base learner is 10. In one embodiment, the base learners 201 and 203 can be selected by inputting the above parameters into the sparse subset selection algorithm. At this time, the total cost is 6*1+1*1+10*2=27, which is a base learner selection method with the lowest total cost. Those skilled in the art will appreciate that the subset selection method used in the base learner selection module 320 may be any existing sparse subset selection method (such as an exhaustive method, a greedy search method, a solution optimization system method, etc.) or any sparse subset selection method developed in the future.
[0043] In one embodiment, the sample selection module 330 may be configured to calculate the dissimilarity between any two samples in the plurality of samples 302 and the cost of each sample in the plurality of samples 302 to select a labeled sample 304 suitable for a small sample learning task.
[0044] In one embodiment, the dissimilarity between any two samples can be indicated by the mean of the Euclidean distances in the feature space obtained by the base learner 303 selected by any two samples in the base learner selection module 320, wherein the lower the mean of the Euclidean distances, the lower the dissimilarity. Those skilled in the art should know that the dissimilarity between samples can also be indicated by the mean of the cosine distances in the feature space obtained by the base learner 303 selected by the base learner selection module 320 between samples, the mean of the Euclidean distances in the feature space obtained by multiple base learners 301 between samples, the mean of the cosine distances in the feature space obtained by multiple base learners 301 between samples, and the like. These calculation methods are well known to those skilled in the art and will not be described in detail here.
[0045] In one embodiment, the cost of each sample can be indicated by the mean of the sample prediction confidence of the base learner 303 selected in the base learner selection module 320. The smaller the mean of the sample prediction confidence, the smaller the sample cost. At the same time, if the sample has been labeled, its cost will be further reduced, which can be achieved by multiplying the cost of the labeled sample by a reduction factor of 0.1. Those skilled in the art should know that the value of the reduction factor multiplied here is only exemplary, and in actual applications it can be any real number greater than or equal to 0 and less than 1.
[0046] The sample selection module 330 expects the selected labeled samples 304 to satisfy: the dissimilarity between the selected labeled samples 304 and the multiple samples 302 is low, and the cost of each sample in the selected labeled samples 304 is low, so the cost function is defined as the sum of two terms, wherein the first term is the sum of the minimum values of the dissimilarity between the multiple samples 302 and the selected labeled samples 304, and the second term is the sum of the costs of each sample in the selected labeled samples 304. Those skilled in the art can know that summing is only a specific implementation, and other functional relationships can also be used, such as weighted summing, performing logarithmic transformation first and then summing, and so on.
[0047] In one embodiment, the sample selection module 330 can be further configured to calculate the dissimilarity between any two samples in the plurality of samples 302 and the cost of each sample in the plurality of samples 302 to select unlabeled samples suitable for small sample learning tasks. The integrated classifier generation module 340 can be further configured to use the integrated classifier 305 to classify the selected unlabeled samples. The visualization module 350 can be further configured to receive input to verify the classifier labeling of the unlabeled samples, thereby making them another group of labeled samples. The input can come from the user, and the user can further revise the classification results of the integrated classifier 305 for the unlabeled samples to make their classification more accurate. Then, the integrated classifier generation module 340 can be further configured to generate an improved integrated classifier based on the selected base learner 303 and the selected labeled samples 304 and the other group of labeled samples. Since the improved integrated classifier is generated using more accurate labeled samples, and the process can be iterative, the classification accuracy of the final improved integrated classifier will be greatly improved.
[0048] Figure 5 Shows Figure 3 In the sample selection module 330 Figure 2 The process of selecting the 6 samples shown in Figure 1 to obtain 2 selected labeled samples. Figure 5 The left half of represents another display form of the sample selection module 330 calculating the dissimilarity between any two samples in the plurality of samples 302 and the cost of each sample in the plurality of samples 302. It is assumed that in the lines between samples, the dashed lines indicate that the dissimilarity between samples is large (assuming it is 100), while the solid lines indicate that the dissimilarity between samples is small (assuming it is 1); and it is assumed that the cost of the labeled sample is 1 and the cost of the unlabeled sample is 10. The labeled sample 205 and the unlabeled sample 208 can be selected as the labeled samples by the sparse subset selection algorithm. At this time, the total cost is 6*1+1+10=17, which is the lowest selection method for labeled samples. Among them, since the unlabeled sample 208 has no category label before, it needs to be confirmed by the expert for category labeling after selection. Those skilled in the art can know that the subset selection method used in the sample selection module 330 can be any existing sparse subset selection method (such as exhaustive method, greedy search method, solution optimization system method, etc.) or any sparse subset selection method developed in the future.
[0049] In one embodiment, the ensemble classifier generation module 340 may be configured to generate an ensemble classifier 305 using the selected base learners 303 and the selected labeled samples 304. The ensemble classifier 305 may be generated using any prior art ensemble classifier generation method, which will not be described in detail here.
[0050] In one implementation, the visualization module 350 may be configured to utilize the generated ensemble classifier 305 and the multiple samples 302 to display the classification results of the generated ensemble classifier 305 on the multiple samples 302 in a visualized form. Figure 6 An interface of a visualization module 350 of a visual analysis system for generating an integrated classifier for a small sample learning task according to an embodiment of the present invention is shown. In one embodiment, a dimensionality reduction algorithm (such as a tSNE algorithm) can be used to reduce the dimensionality of multiple samples 302, various graphics (such as circles, rectangles, etc.) can be used to represent samples, and the attributes of the graphics (such as the color of the graphics, the thickness of the lines, etc.) can be used to represent the category of sample prediction, thereby converting multiple samples 302 into a two-dimensional scatter plot. Figure 6 Box 610 in FIG. 6 shows an example of using the tSNE algorithm to reduce the dimension of multiple samples 302, using circles to represent samples, using the color of the circles to represent the predicted category of the samples, and then converting multiple samples 302 into a two-dimensional scatter plot. A person skilled in the art will know that the MDS algorithm, UMAP algorithm, Isomap algorithm, etc. can also be used to reduce the dimension of multiple samples 302. These dimensionality reduction algorithms are well known to those skilled in the art and will not be described in detail here. A person skilled in the art will know that when converting the projection results of multiple samples 302 into a two-dimensional scatter plot, other graphics such as rectangles, triangles, and diamonds can also be used to represent the samples; other graphic attributes such as textures and shadows can also be used to represent the predicted category of the samples. These visualization methods are well known to those skilled in the art and will not be described in detail here.
[0051] The user can use the visualization module 350 to mark a portion of the plurality of samples 302 by category, and then modify the labeled samples 304 selected by the sample selection module 330. The user can use the mouse to circle a portion of the unlabeled samples. Figure 6 After checking the classification of the samples by the integrated classifier 305 in the box 620 in the figure, click the mouse to confirm the category labeling of the samples, and complete the addition of labeled samples. Figure 6 After checking the classification of the categories of this part of samples by the integrated classifier 305 in the box 620 in the figure, click the mouse to confirm the removal of the labeled samples to complete the deletion of the labeled samples. The user can iteratively form adjusted labeled samples through the above two operations. The integrated classifier generation module 340 generates a further improved integrated classifier based on the adjusted labeled samples. Through these visual operations, the user can better understand the role of different labeled samples in the integrated classifier 305, so as to better adjust the labeled samples and form an integrated classifier with higher accuracy.
[0052] In the base learner visualization module 360, multiple base learners 301 and ensemble classifiers 305 are used to display the differences in classification results of multiple samples 302 by multiple base learners 301 and ensemble classifiers 305 using a matrix-based view, wherein each unit of the matrix uses a graphic (e.g., a rectangle) to show the differences in classification results of multiple samples 302 by multiple base learners 301 and ensemble classifiers 305, wherein the first attribute of the graphic (e.g., the length of the rectangle) is used to represent the total number of samples classified as a specific category by multiple base learners 301 or ensemble classifiers 305, and the second attribute of the graphic (e.g., the width of the rectangle) is used to represent the number of samples classified as a specific category only by multiple base learners 301, the number of samples classified as a specific category only by the ensemble classifier 305, and the number of samples classified as a specific category by multiple base learners 301 and ensemble classifiers 305 at the same time. Figure 6 The box 630 in FIG. 1 shows an example of using rectangles to show the difference between the prediction results of multiple base learners 301 and the integrated classifier 305, wherein the length of the rectangle represents the total number of samples predicted as a specific category by multiple base learners 301 or the integrated classifier 305, and the width of the rectangle represents the number of samples predicted as a specific category only by multiple base learners 301 ( Figure 6 Box 640 in ), the number of samples predicted as only one specific category by the ensemble classifier 305 ( Figure 6 ), the number of samples predicted as a specific category by multiple base learners 301 and the ensemble classifier 305 ( Figure 6 In another embodiment, a sector may be used to show an example of the difference between the prediction results of the multiple base learners 301 and the integrated classifier 305, wherein the radius of the sector represents the total number of samples predicted as a specific category by the multiple base learners 301 or the integrated classifier 305, and the angle of the sector represents the number of samples predicted as a specific category only by the multiple base learners 301, the number of samples predicted as a specific category only by the integrated classifier 305, the number of samples predicted as a specific category by both the multiple base learners 301 and the integrated classifier 305, and so on.
[0053] At the same time, the user can compare the results predicted by multiple base learners 301 through the base learner visualization module 360, decide whether to add or delete a base learner on the basis of the existing integrated classifier 305, and modify the base learner 303 selected in the base learner selection module 320. You can use the mouse to click the graphics in the rectangle to view the distribution of the corresponding samples in the scatter plot. You can select a base learner from an unselected base learner to add to the integrated classifier by clicking the mouse, or you can remove the base learner from the existing integrated classifier by clicking the mouse. The user can form an adjusted base learner through the above two operations, and the integrated classifier generation module 340 can generate a further improved integrated classifier based on the adjusted base learner. Through these visualized operations, the user can better understand the role of different base learners in the integrated classifier 305, so as to better adjust the base learner, thereby forming an integrated classifier with higher accuracy.
[0054] The present invention also proposes a method for selecting base learners and labeled samples and establishing an integrated classifier in a visual analysis system for generating an integrated classifier for a small sample learning task. Figure 7 A flowchart 700 of a method for selecting base learners and labeled samples and establishing an integrated classifier in a visual analysis system 300 for generating an integrated classifier for a small sample learning task is shown. Figure 7 As shown, in step 710, multiple base learners and multiple samples are obtained. In step 720, a base learner is selected by calculating the dissimilarity between each base learner in the multiple base learners and each sample in the multiple samples, the degree of non-cooperation between any two base learners in the multiple base learners, and the cost of each base learner in the multiple base learners. In step 730, a labeled sample is selected based on the selected base learner by calculating the dissimilarity between any two samples in the multiple samples and the cost of each sample in the multiple samples. In step 740, an integrated classifier is generated using the selected base learners and the selected labeled samples.
[0055] In one embodiment, method 700 further includes: in step 750, using the generated ensemble classifier to classify the unlabeled samples in the multiple samples. In one embodiment, method 700 further includes: in step 760, displaying the classification results of the multiple samples by the generated ensemble classifier. The dissimilarity between each base learner in the multiple base learners and each sample in the multiple samples, the degree of non-cooperation between any two base learners in the multiple base learners, the cost of each base learner in the multiple base learners, the dissimilarity between any two samples in the multiple samples, and how to calculate the cost of each sample in the multiple samples have been described above and will not be repeated here.
[0056] The present invention also proposes a method for selecting an image-based learner and labeled image samples for a small sample image set and establishing an image ensemble classifier. Figure 8 A flowchart 800 of a method for selecting an image-based learner and labeled image samples for a small sample image set and establishing an image ensemble classifier is shown. Figure 8 As shown, in step 810, multiple image-based learners and multiple image samples are obtained. In step 820, an image-based learner is selected by calculating the dissimilarity between each image-based learner in the multiple image-based learners and each image sample in the multiple image samples, the degree of non-cooperation between any two image-based learners in the multiple image-based learners, and the cost of each image-based learner in the multiple image-based learners. In step 830, a labeled image sample is selected based on the selected image-based learner by calculating the dissimilarity between any two image samples in the multiple image samples and the cost of each image sample in the multiple image samples. In step 840, an image ensemble classifier is generated using the selected image-based learner and the selected labeled image sample.
[0057] In one embodiment, method 800 further includes: in step 850, using the generated image ensemble classifier to classify the unlabeled image samples in the multiple image samples. In one embodiment, method 800 further includes: in step 860, displaying the classification results of the multiple image samples by the generated image ensemble classifier. The dissimilarity between each image-based learner in the multiple image-based learners and each image sample in the multiple image samples, the degree of non-cooperation between any two image-based learners in the multiple image-based learners, the cost of each image-based learner in the multiple image-based learners, the dissimilarity between any two image samples in the multiple image samples, and how to calculate the cost of each image sample in the multiple image samples have been described above and will not be repeated here.
[0058] The present invention may be a system, a method and / or a computer-readable storage medium. The computer-readable storage medium carries computer-readable program instructions for causing a processor to implement various aspects of the present invention. The method of the present invention may be executed on an independent computer system, on a distributed computing system, or even on a cloud platform.
[0059] Various aspects of the present invention are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer-readable storage media according to embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of the boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0060] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer-readable storage medium according to multiple embodiments of the present invention. In this regard, each square frame in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the function marked in the square frame can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square frames can actually be performed substantially in parallel, and they can also be performed in reverse order sometimes, depending on the function involved.
[0061] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A visual analysis system for generating an integrated classifier for a small sample learning task, the system comprising: A receiving module is configured to receive a plurality of base learners and a plurality of samples, wherein the plurality of samples include a limited number of labeled samples; A base learner selection module, configured to select a base learner suitable for the small sample learning task according to the multiple base learners and the multiple samples; A sample selection module, configured to select a labeled sample suitable for the small sample learning task according to the selected base learner and the plurality of samples; An integrated classifier generation module is configured to generate an integrated classifier according to the selected base learners and the selected labeled samples; as well as The visualization module is configured to display the classification results of the integrated classifier on the multiple samples.
2. The system according to claim 1, wherein the base learner selection module is further configured to select a base learner suitable for the small sample learning task by calculating the dissimilarity between each base learner in the multiple base learners and each sample in the multiple samples, the degree of non-cooperation between any two base learners in the multiple base learners, and the cost of each base learner in the multiple base learners.
3. The system according to claim 1, wherein the sample selection module is further configured to select a labeled sample suitable for the small sample learning task by calculating the dissimilarity between any two samples in the multiple samples and the cost of each sample in the multiple samples.
4. The system according to claim 1, wherein the sample selection module is further configured to select an unlabeled sample suitable for the small sample learning task by calculating the dissimilarity between any two samples in the multiple samples and the cost of each sample in the multiple samples; The ensemble classifier generation module is further configured to use the generated ensemble classifier to perform category labeling on the selected unlabeled samples; wherein the visualization module is further configured to receive input to perform category labeling verification on the category labels of the generated ensemble classifier of the selected unlabeled samples to make them another set of labeled samples; and The ensemble classifier generation module is further configured to generate an improved ensemble classifier according to the selected base learners, the selected labeled samples and the other group of labeled samples.
5. The system according to claim 4, wherein the visualization module is further configured to use a dimensionality reduction algorithm to reduce the dimensions of the multiple samples, and convert the dimensionality reduction results of the multiple samples into a two-dimensional scatter plot, wherein the samples are represented by a graph, and the attributes of the graph are used to represent the category labels of the ensemble classifier for classifying the multiple samples; wherein the visualization module is further configured to receive input to adjust the category labels of the labeled samples used to generate the improved ensemble classifier to form adjusted labeled samples, and wherein the ensemble classifier generation module is further configured to generate a further improved ensemble classifier based on the adjusted labeled samples.
6. The system of claim 5, wherein the visualization module further comprises: a base learner visualization module configured to display the difference between the classification results of the multiple base learners and the integrated classifier on the multiple samples using a matrix-based view, wherein each unit of the matrix uses a graph to display the difference between the classification results of the multiple base learners and the integrated classifier on the multiple samples, wherein a first attribute of the graph is used to represent the total number of samples classified as a specific category by the multiple base learners or the integrated classifier, and a second attribute of the graph is used to represent the number of samples classified as a specific category only by the multiple base learners, the number of samples classified as a specific category only by the integrated classifier, and the number of samples classified as a specific category by both the multiple base learners and the integrated classifier; wherein the base learner visualization module is further configured to receive input to adjust the selected base learners to form adjusted base learners; and The ensemble classifier generation module is further configured to generate a further improved ensemble classifier based on the adjusted base learner.
7. The system according to any one of claims 1 to 6, wherein the type of the sample comprises one of the following: Tabular data; Image data; Video data; Text data; and User specified data.
8. A method for selecting base learners and labeled samples and establishing an ensemble classifier in the system according to any one of claims 1 to 7, comprising: Obtain multiple base learners and multiple samples, wherein the multiple samples include a limited number of labeled samples; Selecting a base learner suitable for the small sample learning task by calculating the dissimilarity between each base learner in the multiple base learners and each sample in the multiple samples, the degree of non-cooperation between any two base learners in the multiple base learners, and the cost of each base learner in the multiple base learners; According to the selected base learner, selecting a labeled sample suitable for the small sample learning task by calculating the dissimilarity between any two samples in the multiple samples and the cost of each sample in the multiple samples; and Generate an ensemble classifier using the selected base learners and the selected labeled samples.
9. The method of claim 8, further comprising: Using the integrated classifier, classifying the unlabeled samples among the multiple samples; as well as Display the classification results of the integrated classifier on the multiple samples.
10. The method of claim 9, further comprising: According to the selected base learner, selecting an unlabeled sample suitable for the small sample learning task by calculating the dissimilarity between any two samples in the multiple samples and the cost of each sample in the multiple samples; Use the generated integrated classifier to label the selected unlabeled samples; Receiving input to verify the category labeling of the generated ensemble classifier of the selected unlabeled samples, thereby making it another set of labeled samples; An improved ensemble classifier is generated according to the selected base learner, the selected labeled samples and the another group of labeled samples.
11. A method for selecting an image-based learner and labeled image samples for a small sample image set and establishing an image ensemble classifier, comprising: Acquire multiple image-based learners and multiple image samples, wherein the multiple image samples include a limited number of labeled image samples; Selecting an image-based learner suitable for the small sample image classification task by calculating the dissimilarity between each image-based learner in the multiple image-based learners and each image sample in the multiple image samples, the degree of non-cooperation between any two image-based learners in the multiple image-based learners, and the cost of each image-based learner in the multiple image-based learners; According to the selected image-based learner, by calculating the dissimilarity between any two image samples in the multiple image samples and the cost of each image sample in the multiple image samples, a labeled image sample suitable for the small sample image classification task is selected; as well as An image ensemble classifier is generated using the selected image-based learner and the selected labeled image samples.
12. The method of claim 11, further comprising: Using the image ensemble classifier, classifying the unlabeled image samples among the multiple image samples; as well as Display the classification results of the image ensemble classifier on the multiple image samples.
13. The method of claim 12, further comprising: According to the selected image-based learner, by calculating the dissimilarity between any two image samples in the multiple image samples and the cost of each image sample in the multiple image samples, an unlabeled image sample suitable for the small sample learning task is selected; Use the generated image ensemble classifier to label the selected unlabeled image samples; receiving input to verify the category annotation of the generated ensemble classifier of the selected unlabeled image samples, so as to make them another set of labeled image samples; An improved image ensemble classifier is generated according to the selected image-based learner, the selected labeled image samples and the another group of labeled image samples.
14. The method according to claim 12 or 13, further comprising: Using a dimensionality reduction algorithm to reduce the dimensionality of the multiple image samples; Converting the dimension reduction results of the multiple image samples into a two-dimensional scatter plot, wherein the sample is represented by a graph, and the attributes of the graph are used to represent the category labels of the multiple image samples classified by the image ensemble classifier; An input is received to adjust the category annotations of annotated image samples used to generate an improved image ensemble classifier to form an adjusted annotated image sample; and a further improved image ensemble classifier is generated based on the adjusted annotated image sample.
15. The method of claim 12 or 13, further comprising: Using a matrix-based view to display the differences in classification results of the multiple image samples by the multiple image-based learners and the image ensemble classifier, wherein each unit of the matrix uses a graph to display the differences in classification results of the multiple image-based learners and the image ensemble classifier for the multiple image samples, wherein a first attribute of the graph is used to represent the total number of image samples classified as a specific category by the multiple image-based learners or the image ensemble classifier, and a second attribute of the graph is used to represent the number of image samples classified as a specific category only by the multiple image-based learners, the number of image samples classified as a specific category only by the image ensemble classifier, and the number of image samples classified as a specific category by both the multiple image-based learners and the image ensemble classifier; receiving an input to adjust the selected image-based learner to form an adjusted image-based learner; and A further improved image ensemble classifier is generated based on the adjusted image-based learner.
16. A computer-readable storage medium having program instructions stored therein, wherein the program instructions can be executed by a computing device to cause the computing device to perform the method according to any one of claims 8 to 15.
17. A computer system comprising: Memory; and at least one processor operably coupled to the memory and configured to execute the method as claimed in any one of claims 8 to 15.
