Weakly supervised label distribution feature selection method and system based on label correlation

By calculating and embedding the label correlation of the label distribution data set, expanding the label matrix and performing binary constraints, the problem of model mismatch and low accuracy in weakly supervised label distribution feature selection in the existing technology is solved, and more efficient features are achieved. Selection and classification performance.

CN118427581BActive Publication Date: 2024-10-18EAST CHINA JIAOTONG UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410895163.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-18
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

In the existing technology, in weakly supervised label distribution feature selection, traditional classification algorithms have low performance and only consider local correlations, ignoring the overall scope of label correlations, resulting in model mismatch and low accuracy.

Method used

By calculating the tag correlation of the tag distribution data set, embedding the loss function to expand the tag matrix, and using the difference to perform binary constraints on the relevant loss function, an initial objective function is obtained, based on which the missing tags are predicted and the feature importance is calculated. Ranking, global label correlation is introduced to improve model learning efficiency and feature selection accuracy.

Benefits of technology

It improves the learning efficiency and feature selection accuracy of the model, enhances classification performance, can better handle label correlation in weakly supervised data, and reduces the impact of noise and missing labels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427581B_ABST
    Figure CN118427581B_ABST
Patent Text Reader

Abstract

The present invention provides a weakly supervised marker distribution feature selection method and system based on marker correlation. The method comprises obtaining a complete marker distribution data set, performing random missing preprocessing on the complete marker distribution data set, calculating the marker correlation of the complete marker distribution data set using a correlation calculation formula, embedding the marker correlation into a loss function to obtain a correlation loss function, using the correlation loss function to expand the marker matrix of the complete marker distribution data set, calculating the difference between the expanded marker matrix and the marker matrix of the marker distribution data set, subjecting the correlation loss function to a binary loss function constraint based on the difference, and obtaining an initial objective function; predicting the missing markers of the sample containing the missing markers based on the initial objective function, and ranking the features of the complete marker distribution data set by importance, thereby improving the learning efficiency of the model and improving feature selection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method and system for selecting weakly supervised label distribution features based on label correlation. Background Art

[0002] Feature selection plays a vital role in machine learning and data mining. It involves determining which features are the most informative and relevant for solving a given problem. By selecting the most relevant features, the data dimension can be reduced and irrelevant or redundant information can be excluded, thereby improving the performance of the model. In the era of big data, feature selection algorithms are of great significance for optimizing the performance and efficiency of machine learning models. They can help improve the prediction accuracy of the model, speed up training, improve model interpretability, and reduce the risk of overfitting, thus playing an important role in practical applications.

[0003] Weakly supervised labeled data refers to data that is only partially labeled or partially missing. Processing this data requires the design and implementation of effective algorithms and methods to fully utilize the information in the data and improve the performance and generalization ability of the model. In the existing labeled data, the labeled distribution provides richer and more meaningful semantic information, thereby improving the understanding and processing capabilities of the data, making machine learning tasks more accurate and efficient, and having better advantages than single-label and multi-label. Therefore, it is crucial to process the complete labeled distribution data set to fully utilize the information in the data.

[0004] In recent years, more and more studies have applied various correlations between labels and features to label learning and feature selection. Label correlation has been successfully used to improve classification performance, from multi-label learning to label distribution learning, from feature sorting to feature selection. Considering label correlation is of great significance for optimizing model performance, reducing redundant information, guiding feature selection, improving model interpretability, and optimizing label collection strategies. However, under weakly supervised data, it is often not enough to only consider local correlations or correlations in incomplete label spaces. Therefore, an integrated framework is proposed, which includes recovering missing labeled data and using global label correlations for weakly supervised learning.

[0005] The invention with patent application number CN201610256462.9 proposes a semi-supervised multi-label feature selection and classification method combined with label correlation. This model is mainly trained according to the following steps: 1) Use least squares regression as the loss function to classify multi-label data; 2) Use L2,1 norm as the regularization term to perform sparse feature selection for semi-supervised multi-label learning problems; 3) Automatically learn paired and symmetric label correlations by constructing a label covariance matrix, and use the information of unknown label data to help estimate the label covariance matrix; 4) Combine the previous steps to unify multi-label feature selection and multi-label classification into the same model framework for learning and prediction. However, this scheme has the following defects: ① The label correlation considered in this scheme is only based on the weight matrix and covariance matrix, and multi-label classification is not considered, resulting in a relatively split between the two parts, which is easy to affect the overall effect of the model. ② The constraints on label correlation in this scheme are too single, and lack consideration of label-specific features, which is easy to affect the classification effect of the model.

[0006] The invention with patent application number CN201710430547.9 proposes a joint learning method based on label covariance and multi-label classification. This scheme is mainly trained according to the following steps: 1) The label correlation matrix is ​​initialized as the unit matrix, that is, it is assumed that the same labels are correlated during initialization, while different labels are not correlated; 2) The label covariance and multi-label classification joint learning algorithm JLSML is used to learn the classification model parameters, label correlation and parameters corresponding to the threshold function: the label correlation matrix, classifier parameters and parameters corresponding to the threshold function are updated alternately and iteratively until the iteration termination condition is met and the learned classification model parameters, label correlation and parameters corresponding to the threshold function are output; 3) First, the learned classification model parameters and parameters corresponding to the threshold function are used to predict labels and obtain classification results; then, the labels of all multi-label data to be classified are predicted according to the classification model of multi-label data, and finally the classification results of multi-label data are output. However, this scheme has the following defects: ① The robustness of the JLSML joint algorithm is low, and when there are noise labels or missing labels, the performance is greatly affected. ②JLSML classification is a binary strategy, which is only applicable to single-label and multi-label data, and is not applicable to labeled distribution data. ③The parameter setting of classifier parameters and threshold function is affected by human subjective factors.

[0007] The shortcomings of the above-mentioned prior art can be summarized as follows: in weakly supervised label distribution feature selection, the use of traditional classification algorithms will lead to model mismatch, and the obtained performance and accuracy are too low. In addition, in most methods, only the correlation of some labels is considered, ignoring the overall scope of label correlation, and label classification and feature selection cannot be performed well. Therefore, in view of the shortcomings of the prior art, a weakly supervised label distribution feature selection method based on label correlation is proposed. Summary of the invention

[0008] In order to solve the above technical problems, the present invention provides a weakly supervised label distribution feature selection method and system based on label correlation, which are used to solve the technical problems in the prior art.

[0009] On the one hand, the invention provides the following technical solution, a weakly supervised label distribution feature selection method based on label correlation, the method comprising:

[0010] Acquire a complete marker distribution data set, perform random missing preprocessing on the complete marker distribution data set, and represent the processed complete marker distribution data set as samples with missing markers and samples without missing markers;

[0011] Calculate the label correlation of the complete label distribution data set using a correlation calculation formula, embed the label correlation into a loss function to obtain a correlation loss function, use the correlation loss function to expand the label matrix of the complete label distribution data set to obtain an expanded label matrix, and use the expanded label matrix to perform label distribution learning;

[0012] Calculating the difference between the extended label matrix and the label matrix of the label distribution data set, and subjecting the relevant loss function to a binary loss function constraint based on the difference to obtain an initial objective function;

[0013] The missing markers of the sample containing the missing markers are predicted based on the initial objective function, and the features of the complete marker distribution data set are ranked by importance.

[0014] Compared with the prior art, the beneficial effects of this application are:

[0015] By using the correlation calculation formula to calculate the label correlation of the complete label distribution data set, the label correlation is introduced into the weakly supervised label distribution feature selection, and is used to expand the missing label matrix and improve the classification performance respectively; in addition, by using the step of constraining the correlation loss function with a binary loss function based on the difference, the label correlation is embedded in the label distribution learning model to expand the missing label matrix, and the norm correlation between samples is calculated to obtain accurate label correlation, thereby improving the learning efficiency of the model and improving feature selection.

[0016] Furthermore, the step of performing random missing preprocessing on the complete marker distribution data set and representing the processed complete marker distribution data set as samples with missing markers and samples without missing markers respectively comprises:

[0017] Using a random number generation method to perform a random missing setting on the marker matrix of the complete marker distribution data set to obtain a missing rate of the complete marker distribution data set;

[0018] The complete marker distribution dataset is represented as samples containing missing markers and samples not containing missing markers based on the missing rate.

[0019] Furthermore, after the step of obtaining the initial objective function, the method further includes:

[0020] Using neighborhood granularity to measure the feature similarity of the samples without missing labels, using a local labeling formula to calculate the samples without missing labels based on the feature similarity to obtain local labeling correlation;

[0021] The complete label distribution data set is calculated based on the local label correlation using a global label formula to obtain a global label correlation, and a final objective function is obtained based on the initial objective function and the global label correlation.

[0022] Furthermore, the final objective function includes:

[0023]

[0024] in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, Expressed as the Frobenius norm, Expressed as 2,1 norm, is represented as the 2-norm, W is represented as the weight matrix, C is represented as the label correlation matrix, Z is represented as the predicted label matrix, and D is represented as the label matrix. to All are represented as balance factors, L is represented as Laplace matrix, X is represented as characteristic matrix, U is represented as selected diagonal matrix, tr is represented as trace of matrix, and T is represented as transpose of matrix.

[0025] Furthermore, the local marking formula includes:

[0026]

[0027] in, Expressed as local label correlation, is represented as the label matrix without missing labels, L is represented as the Laplace matrix, T is represented as the transpose of the matrix, tr is represented as the trace of the matrix, Represented as a samplei and samples j The similarity of Respectively represented as samples i and samples j The distribution of markers;

[0028] The global marking formula includes:

[0029]

[0030] Among them, GR represents the global label correlation, Z represents the predicted label matrix, D represents the label matrix, and U represents the selection diagonal matrix.

[0031] Furthermore, the initial objective function includes:

[0032]

[0033] in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, to are all represented as balance factors, X is represented as feature matrix, W is represented as weight matrix, D is represented as label matrix, C is represented as label correlation matrix, Expressed as the Frobenius norm, Expressed as 2,1 norm, Expressed as 2-norm.

[0034] Furthermore, the step of ranking the features of the complete label distribution data set by importance includes:

[0035] Based on the final objective function, the marker correlation matrix and the weight matrix of the complete marker distribution data set are respectively derived, and a predicted marker matrix is ​​calculated based on the derived marker correlation matrix and the weight matrix;

[0036] An iterative solution is performed based on the predicted label matrix to obtain a coefficient matrix, and a feature importance ranking of the complete label distribution data set is obtained based on the coefficient matrix using a paradigm definition.

[0037] In a second aspect, the invention provides the following technical solution: a weakly supervised label distribution feature selection system based on label correlation, the system comprising:

[0038] A processing module, used for obtaining a complete marker distribution data set, performing random missing preprocessing on the complete marker distribution data set, and representing the processed complete marker distribution data set as samples with missing markers and samples without missing markers;

[0039] An expansion module, used to calculate the label correlation of the complete label distribution data set using a correlation calculation formula, embed the label correlation into a loss function to obtain a correlation loss function, use the correlation loss function to expand the label matrix of the complete label distribution data set to obtain an expanded label matrix, and use the expanded label matrix to perform label distribution learning;

[0040] A constraint module, used for calculating the difference between the extended label matrix and the label matrix of the label distribution data set, and performing a binary loss function constraint on the relevant loss function based on the difference to obtain an initial objective function;

[0041] A sorting module is used to predict the missing marks of the sample containing the missing marks based on the initial objective function, and to sort the features of the complete marker distribution data set by importance.

[0042] In the third aspect, the invention provides the following technical solution: a computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the weakly supervised label distribution feature selection method based on label correlation as described above is implemented.

[0043] In a fourth aspect, the invention provides the following technical solution: a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the weakly supervised label distribution feature selection method based on label correlation as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 A flowchart of a method for selecting weakly supervised label distribution features based on label correlation provided in the first embodiment of the present invention;

[0046] Figure 2 A flowchart of a method for selecting weakly supervised label distribution features based on label correlation provided in a second embodiment of the present invention;

[0047] Figure 3 A structural block diagram of a weakly supervised label distribution feature selection system based on label correlation provided by a third embodiment of the present invention;

[0048] Figure 4 A schematic diagram of the hardware structure of a computer provided in accordance with the fourth embodiment of the present invention.

[0049] The embodiments of the present invention will be further described below with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout are the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the embodiments of the present invention, and should not be construed as limiting the present invention.

[0051] In the description of the embodiments of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0052] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0053] Embodiment 1

[0054] See also Figure 1 , a weakly supervised label distribution feature selection method based on label correlation, comprising the following steps S01 to S04:

[0055] S01, obtaining a complete marker distribution data set, performing random missing preprocessing on the complete marker distribution data set, and representing the processed complete marker distribution data set as samples with missing markers and samples without missing markers.

[0056] Specifically, the steps of performing random missing preprocessing on the complete marker distribution data set and representing the processed complete marker distribution data set as samples with missing markers and samples without missing markers include:

[0057] S11, performing random missing settings on the marker matrix of the complete marker distribution data set using a random number generation method to obtain a missing rate of the complete marker distribution data set;

[0058] S12, representing the complete marker distribution data set as samples containing missing markers and samples not containing missing markers based on the missing rate.

[0059] In this embodiment, several different labeled distribution data sets are collected and divided into a test set and a training set. Since data with some missing data is to be simulated, in order to improve the persuasiveness of the model, the collected data needs to be preprocessed by data missingness and data division according to whether the data is missing. Among them, data missingness is applicable to the training set and the test set, while data division is only applicable to the training set.

[0060] Data missingness: Before using this method, set the data missing rate. Use the random number generation method RandStream in MATLAB to set the label matrix to be randomly missing, and save the designed data set with the same missing rate.

[0061] Formal definition: Assume Represented as a low-dimensional feature matrix, where It is i instances, n is the number of instances. In the labeled distribution learning framework Always use the true mark ,in c is the number of candidate markers, is the jth labeled pair instance The relative importance of For convenience, is represented as a label distribution matrix.

[0062] Data partitioning: Classify the labeled distribution data with missing values ​​set. The sample set without missing labels is defined as and , which are represented as feature matrix and label matrix respectively, and label distribution learning can be performed normally. For the sample set with missing labels, it is defined as and . Where l represents the number of complete instances in the labeled distribution data, and u represents the number of instances with missing labels in the labeled distribution data. .

[0063] S02, using the correlation calculation formula to calculate the label correlation of the complete label distribution data set, embedding the label correlation into a loss function to obtain a correlation loss function, using the correlation loss function to expand the label matrix of the complete label distribution data set to obtain an extended label matrix, and using the extended label matrix to perform label distribution learning.

[0064] In this embodiment, in label distribution learning, it is assumed that the feature space is linearly related to the label space, that is, the output model can be expressed as follows:

[0065]

[0066] in It is represented as the label distribution matrix predicted by the traditional label distribution learning model, is the weight matrix, and X is the feature matrix. A sample usually has the features of all labels, but some labels may only be determined by some specific features of themselves. Therefore, the weight matrix Set the representation to be sparse, constrained by the L2,1 norm. And given an arbitrary matrix , the L2,1 normal form definition (correlation calculation formula) is as follows:

[0067]

[0068] Where d represents the dimension of the feature, c is the number of candidate tags, W ij Expressed as i Feature pairs j The importance of each tag, L2,1 norm is a kind of structured sparse, which requires row sparseness, that is, each row of the weight matrix requires feature-tag importance sparse, W is represented as the weight matrix.

[0069] The expression obtained by using the Frobenius norm of the matrix as the loss function is as follows:

[0070]

[0071] in, and Expressed as and A matrix with a value of 1, Expressed as The value of 0 is a matrix, X represents the feature matrix, W represents the weight matrix, D represents the label matrix, λ1 represents the balance factor, Expressed as the Frobenius norm, It is represented as 2,1 norm. The following constraints are represented as the tag importance and the tag distribution data are represented as 1 and greater than or equal to 0.

[0072] In summary, the sample set without missing labels is used as the training set , we can get the following formula (related loss function):

[0073]

[0074] Among them, the label distribution learning is performed on the complete partial data set, and W is represented as the weight matrix (feature-label importance matrix). represents the marker matrix without missing markers, λ1 represents the balance factor, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, Represented as the feature matrix of samples without missing labels.

[0075] In the field of machine learning, label relevance plays a vital role in improving model performance. By labeling and analyzing the correlation of training data, machine learning algorithms can more accurately capture the inherent laws and structures of data. This helps the algorithm perform better on the test set, thereby improving the accuracy of prediction and classification. Therefore, embedding label relevance in the above label distribution learning model to improve model learning performance is as follows:

[0076]

[0077] Among them, adding tag correlation improves model performance, where X l is represented as a feature matrix without missing tags, W is represented as a weight matrix (feature-tag importance matrix), is represented as the marker matrix without missing markers, C is represented as the marker correlation matrix, λ1 is represented as the balance factor, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, Expressed as the Frobenius norm, It is expressed as 2,1 norm. Experiments show that the correlation of other labels can be used to reconstruct missing labels. That is, the label correlation matrix can be used to expand the incomplete label matrix and generate a new supplementary label matrix. Inspired by this, samples with missing labels are combined with samples without missing labels, and the matrix is ​​expanded through label correlation. Label distribution learning is performed based on the expanded matrix, and the following function can be obtained:

[0078]

[0079] S03, calculating the difference between the extended label matrix and the label matrix of the label distribution data set, and performing a binary loss function constraint on the relevant loss function based on the difference to obtain an initial objective function.

[0080] Specifically, the initial objective function includes:

[0081]

[0082] in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, to are all represented as balance factors, X is represented as feature matrix, W is represented as weight matrix, D is represented as label matrix, C is represented as label correlation matrix, Expressed as the Frobenius norm, Expressed as 2,1 norm, Expressed as 2-norm.

[0083] In this embodiment, directly using the label vector to calculate the label correlation in samples with missing labels will lead to inaccuracy. On the contrary, by calculating the L2 norm correlation between samples, the missing values ​​in the original label matrix can be effectively processed to obtain a more accurate label correlation, so the following function can be obtained:

[0084]

[0085] Among them, the L2 norm is used as a regularization term for label correlation, which is used to prevent overfitting of label correlation.

[0086] At the same time, after embedding the tag correlation, in order to minimize the difference between the predicted tag and the true tag, a binary loss function is used to further constrain the function (initial objective function) as follows:

[0087]

[0088] After adding the label correlation, there may be some differences between DC and D, and a binary loss function is added for constraint. and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, to are all represented as balance factors, X is represented as feature matrix, W is represented as weight matrix, D is represented as label matrix, C is represented as label correlation matrix, Expressed as the Frobenius norm, Expressed as 2,1 norm, Expressed as 2-norm.

[0089] S04, predicting the missing markers of the sample containing the missing markers based on the initial objective function, and ranking the features of the complete marker distribution data set by importance.

[0090] In summary, marker correlation is introduced into weakly supervised marker distribution feature selection and used to expand the missing marker matrix and improve the classification performance, respectively.

[0091] In order to embed label correlation in the label distribution learning model to expand the missing label matrix, the accurate label correlation is obtained by calculating the L2 norm correlation between samples. Considering that the model loss may change after introducing label correlation, a binary damage function is added to further constrain and improve the learning efficiency of the model.

[0092] In order to improve the classification performance by using label correlation in feature selection of label distribution learning, considering that the correlation measurement of samples with missing labels is not accurate enough, feature similarity is used to measure, and neighborhood rough sets and manifold regularization are introduced to represent label correlation. In order to further use samples with missing labels, global label correlation is used instead of local label correlation, and corresponding constraints are added.

[0093] Label correlations are introduced into weakly supervised label distribution learning to expand the missing label matrix.

[0094] Compared with multi-label data, labeled distribution data contains richer semantic information. For labeled distribution data with missing labels, label correlation is used to expand the missing label matrix, and then the classification model is obtained through label distribution learning to predict and fill in the missing data. At the same time, factors such as label-specific features are considered, and certain constraints are added to label correlation.

[0095] While using label correlation to learn label distribution, we also consider using global label correlation to improve model classification performance.

[0096] The current label distribution data with missing labels only considers local label correlation to improve the classification performance of the model, that is, only considers the label correlation of samples without missing labels. Therefore, it is proposed to use feature similarity instead of label correlation to achieve the label correlation of all samples, and at the same time add constraints on samples with missing labels to obtain accurate label correlation.

[0097] Embodiment 2

[0098] See also Figure 2 , a weakly supervised label distribution feature selection method based on label correlation, comprising the following steps S101 to S106:

[0099] S101, obtaining a complete marker distribution data set, performing random missing preprocessing on the complete marker distribution data set, and representing the processed complete marker distribution data set as samples with missing markers and samples without missing markers respectively;

[0100] S102, using a correlation calculation formula to calculate the label correlation of the complete label distribution data set, embedding the label correlation into a loss function to obtain a correlation loss function, using the correlation loss function to expand the label matrix of the complete label distribution data set to obtain an expanded label matrix, and using the expanded label matrix to perform label distribution learning;

[0101] S103, calculating the difference between the extended label matrix and the label matrix of the label distribution data set, and performing a binary loss function constraint on the relevant loss function based on the difference to obtain an initial objective function;

[0102] S104, using neighborhood granularity to measure the feature similarity of the samples without missing marks, and using a local labeling formula to calculate the samples without missing marks based on the feature similarity to obtain local labeling correlation;

[0103] S105, using a global labeling formula to calculate the complete label distribution data set based on the local labeling correlation to obtain a global labeling correlation, and obtaining a final objective function based on the initial objective function and the global labeling correlation;

[0104] Specifically, the local marking formula includes:

[0105]

[0106] in, Expressed as local label correlation, is represented as the label matrix without missing labels, L is represented as the Laplacian matrix, T is represented as the transpose of the matrix, Represented as a sample i and samples j The similarity of Respectively represented as samples i and samples j The label distribution of , tr is represented as the trace of the matrix;

[0107] The global marking formula includes:

[0108]

[0109] in, GR Expressed as a global tag correlation, tr is represented as the trace of the matrix, Z is represented as the predicted label matrix, D is represented as a labeling matrix, U Represented as a selected diagonal matrix.

[0110] In this embodiment, it is worth noting that in samples with missing tags, since the features are complete and not affected by missing values, the correlation obtained using sample features is more reliable than the information obtained from tag information. In theory, when sample similarity is used instead of tag correlation, the higher the similarity of samples to features, the higher the similarity of samples to tags. Based on this, the gram matrix of neighborhood granularity is introduced to represent feature similarity, where the definition of neighborhood granularity is as follows:

[0111]

[0112] Where V is the global feature, δ is the threshold of the neighborhood granularity, and Δ is the distance metric. The relationship is modeled at the neighborhood granularity of to measure feature similarity. The values ​​in the similarity matrix S are is defined as:

[0113]

[0114] in, x g Represented as a sample, Represented as a sample i and samples j The similarity of T Represented as the transpose of a matrix;

[0115] The correlation of local labels is defined by the idea that "if the features of two samples are similar, then the labels of the two samples are similar". LR Based on manifold regularization, the local label correlation can be defined as follows:

[0116]

[0117] in Expressed as a Laplacian matrix, It is represented as a diagonal matrix whose diagonal elements are the row sums of S, which is represented as a similarity matrix. l is represented as the label matrix without missing labels, L is represented as the Laplace matrix, and T represents the transpose of the matrix. The above label correlation only uses samples without missing labels. For samples with missing labels, it is also hoped that it can be used to promote optimization. To achieve this goal, a predicted label matrix of all training data is defined as ,in and are the predicted label matrices of samples without missing labels and samples with missing labels, respectively. According to the above regularization, the correlation of global labels can be obtained as follows:

[0118]

[0119] After adding samples with missing labels, a new global label correlation GR is derived, where tr is represented by the trace of the matrix, Z is represented by the predicted label matrix, L is represented by the Laplace matrix, and T is represented by the transpose of the matrix.

[0120] Considering that directly replacing the local label correlation with the global label correlation will lead to inconsistency between the actual labels of Z and D, a global minus local constraint is added to obtain the global label correlation formula as follows:

[0121]

[0122] Where GR represents the global label correlation, tr represents the trace of the matrix, and Z represents the predicted label matrix. L Expressed as a Laplacian matrix, D is represented as a labeling matrix, Expressed as a selected diagonal matrix, T It is represented as the transpose of the matrix. If the sample does not contain a missing mark, the diagonal element corresponding to it is represented as ∝, otherwise it is represented as 0. Based on this, the final objective function is obtained. The final objective function includes:

[0123]

[0124] in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, Expressed as the Frobenius norm, Expressed as 2,1 norm, is represented as the 2-norm, W is represented as the weight matrix, C is represented as the label correlation matrix, Z is represented as the predicted label matrix, and D is represented as the label matrix. to All are represented as balance factors, L is represented as Laplace matrix, X is represented as characteristic matrix, U is represented as selected diagonal matrix, tr is represented as trace of matrix, and T is represented as transpose of matrix.

[0125] S106, predicting the missing markers of the sample containing the missing markers based on the final objective function, and ranking the features of the complete marker distribution data set by importance.

[0126] Specifically, the step of ranking the features of the complete labeled distribution data set by importance includes:

[0127] Based on the final objective function, the marker correlation matrix and the weight matrix of the complete marker distribution data set are respectively derived, and a predicted marker matrix is ​​calculated based on the derived marker correlation matrix and the weight matrix;

[0128] An iterative solution is performed based on the predicted label matrix to obtain a coefficient matrix, and a feature importance ranking of the complete label distribution data set is obtained based on the coefficient matrix using a paradigm definition.

[0129] In this embodiment, since the optimization problem described in the final objective function is convex, the accelerated proximal gradient method is used to achieve optimization. For simplicity, the final objective function is expressed as , and experiments have shown that by setting If certain conditions are met, the convergence speed can be increased to In addition, by comparing and The Lipschitz constant is determined by the relationship between the size of Since it is impractical to optimize all variables simultaneously, an alternating optimization technique is used to optimize the final objective function. θ Expressed as model coefficients W, C, Z tuple of Expressed as θ exist t The result of the iteration. By proving the Lipschitz continuity, it can be proved that the final objective function is differentiable, where and They are respectively represented as the model coefficient tuples corresponding to the final objective function, and are introduced only to prove that the final objective function is continuous and differentiable.

[0130] The specific optimization process is as follows:

[0131] fixed ,renew :The final objective function is The formula for calculating the derivative is as follows:

[0132]

[0133] Among them, ▽ represents the derivation of the final objective function, θ represents the tuple of model coefficients W, C, Z. X represents the feature matrix, W represents the weight matrix, D represents the label matrix, C represents the label correlation matrix, λ1 represents the balance factor, Represented as a diagonal matrix, T represents the transpose of the matrix, W1 to W d It is represented as a tuple of weight coefficients for each sample, defined as follows:

[0134]

[0135] fixed ,renew :The final objective function is The formula for calculating the derivative is as follows:

[0136]

[0137] Among them, ▽ represents the derivation of the final objective function, and θ represents the model coefficient W, C, Z , X represents the feature matrix, W represents the weight matrix, D represents the label matrix, C represents the label correlation matrix, λ2 and λ3 represent the balance factors, and T represents the transpose of the matrix.

[0138] renew and Afterwards, by calculating The predicted label matrix can be obtained . Only the marker matrix needs to be updated for data with missing markers , considering the characteristics of the label distribution, we can The value of is constrained, and the constraint formula is as follows:

[0139]

[0140] The predicted missing tag values ​​are constrained, that is, the value of each tag is guaranteed to be between 0 and 1. It is expressed as the importance of the i-th sample to the j-th tag. Through iterative solution, the final coefficient matrix is ​​obtained and the L2,1 norm is taken to sort the feature importance. The L2,1 norm is a kind of structured sparsity, which requires row sparsity, that is, each row of the weight matrix requires sparse feature-tag importance, and the feature importance ranking corresponding to each tag can be obtained.

[0141] On the one hand, in order to solve the problem of missing label filling, the traditional label distribution learning least squares method is used to embed the label correlation, which is used to augment the missing label matrix and obtain a new complete label matrix. At the same time, a binary loss function constraint is used between the predicted label and the true label, and the label correlation is regularized by norm to take into account the label specific characteristics.

[0142] Finally, the optimization method is used to solve and iterate, and the final weight matrix is ​​obtained by taking the L2,1 norm to obtain the feature ranking.

[0143] It is worth mentioning that in recent years, deep learning has made good progress in many fields, such as speech recognition, image classification, natural language processing, etc. With the emergence of deep neural networks, the demand for a large amount of labeled data has led to the inability to meet the demand for each sample to have complete labels, especially for large data sets generated by online crowdsourcing or automatic annotation methods. In other words, the data labels of many large data sets will inevitably be missing. It is very difficult to train a deep network that is robust to missing data sets because deep networks can fully fit these missing labels. In addition, since large data sets are often described by high-dimensional features, there is a lot of irrelevant and redundant information. Inspired by this, this paper uses label distribution learning based on label correlation to predict missing labels and sort and select features in order to avoid overfitting of missing labels and dimensionality disasters in deep networks, assuming that there are missing labels.

[0144] In summary, in order to consider the global label relevance, we introduce neighborhood granularity to measure feature similarity, that is, samples with high feature similarity also have high label relevance. At the same time, in order to meet the smoothness of the real label and popular structure of the training data, manifold regularization is used to mine the hidden information of missing labels. In addition, the predicted label matrix of all training data is represented as a whole, and popular regularization is performed on the whole and the parts separately to fully utilize the information of the complete label distribution data set.

[0145] In order to improve the classification performance by using label correlation in feature selection of label distribution learning, considering that the correlation measurement of samples with missing labels is not accurate enough, feature similarity is used to measure, and neighborhood rough sets and manifold regularization are introduced to represent it as label correlation. In order to further use samples with missing labels, global label correlation is used instead of local label correlation, and corresponding constraints are added.

[0146] Embodiment 3

[0147] like Figure 3 As shown, a weakly supervised label distribution feature selection system based on label correlation is provided, and the system includes:

[0148] A processing module 10 is used to obtain a complete marker distribution data set, perform random missing preprocessing on the complete marker distribution data set, and represent the processed complete marker distribution data set as samples with missing markers and samples without missing markers;

[0149] An expansion module 20 is used to calculate the label correlation of the complete label distribution data set using a correlation calculation formula, embed the label correlation into a loss function to obtain a correlation loss function, use the correlation loss function to expand the label matrix of the complete label distribution data set to obtain an expanded label matrix, and use the expanded label matrix to perform label distribution learning;

[0150] A constraint module 30, configured to calculate a difference between the extended label matrix and the label matrix of the label distribution data set, and to perform a binary loss function constraint on the relevant loss function based on the difference to obtain an initial objective function;

[0151] The sorting module 40 is used to predict the missing marks of the sample containing the missing marks based on the initial objective function, and sort the features of the complete marker distribution data set by importance.

[0152] In some optional embodiments, the processing module includes:

[0153] A sample unit, used for performing random missing setting on the marker matrix of the complete marker distribution data set by using a random number generation method to obtain a missing rate of the complete marker distribution data set;

[0154] The complete marker distribution dataset is represented as samples containing missing markers and samples not containing missing markers based on the missing rate.

[0155] In some optional embodiments, the system includes:

[0156] An obtaining module is used to measure the feature similarity of the samples without missing marks by using neighborhood granularity, and calculate the samples without missing marks based on the feature similarity by using a local marking formula to obtain local marking correlation;

[0157] The complete label distribution data set is calculated based on the local label correlation using a global label formula to obtain a global label correlation, and a final objective function is obtained based on the initial objective function and the global label correlation.

[0158] Furthermore, the initial objective function includes:

[0159]

[0160] in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, to are all represented as balance factors, X is represented as feature matrix, W is represented as weight matrix, D is represented as label matrix, C is represented as label correlation matrix, Expressed as the Frobenius norm, Expressed as 2,1 norm, Expressed as 2-norm.

[0161] Furthermore, the final objective function includes:

[0162]

[0163] in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, Expressed as the Frobenius norm, Expressed as 2,1 norm, is represented as the 2-norm, W is represented as the weight matrix, C is represented as the label correlation matrix, Z is represented as the predicted label matrix, and D is represented as the label matrix. to All are represented as balance factors, L is represented as Laplace matrix, X is represented as characteristic matrix, U is represented as selected diagonal matrix, tr is represented as trace of matrix, and T is represented as transpose of matrix.

[0164] Furthermore, the local marking formula includes:

[0165]

[0166] in, Expressed as local label correlation, is represented as the label matrix without missing labels, L is represented as the Laplace matrix, T is represented as the transpose of the matrix, tr is represented as the trace of the matrix, Represented as a sample i and samples j The similarity of Respectively represented as samples i and samples j The distribution of markers;

[0167] The global marking formula includes:

[0168]

[0169] Among them, GR represents the global label correlation, Z represents the predicted label matrix, D represents the label matrix, and U represents the selection diagonal matrix.

[0170] In some optional embodiments, the sorting module includes:

[0171] A sorting unit, used for respectively deriving a marker correlation matrix and a weight matrix of the complete marker distribution data set based on the final objective function, and calculating a predicted marker matrix based on the derived marker correlation matrix and the weight matrix;

[0172] An iterative solution is performed based on the predicted label matrix to obtain a coefficient matrix, and a feature importance ranking of the complete label distribution data set is obtained based on the coefficient matrix using a paradigm definition.

[0173] The weakly supervised label distribution feature selection system based on label correlation provided in the embodiment of the present invention has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the system embodiment, reference can be made to the corresponding contents in the aforementioned method embodiment.

[0174] Embodiment 4

[0175] like Figure 4 As shown, an embodiment of the present invention provides the following technical solution: a computer, comprising a memory 202, a processor 201, and a computer program stored in the memory 202 and executable on the processor 201, wherein the processor 201 implements the weakly supervised label distribution feature selection method based on label correlation as described above when executing the computer program.

[0176] Specifically, the processor 201 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0177] Among them, the memory 202 may include a large-capacity memory for data or instructions. For example, but not limitation, the memory 202 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 202 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 202 may be inside or outside the data processing device. In a specific embodiment, the memory 202 is a non-volatile memory. In a specific embodiment, the memory 202 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM) or a flash memory (FLASH), or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0178] The memory 202 may be used to store or cache various data files that need to be processed and / or used for communication, as well as possible computer program instructions executed by the processor 201 .

[0179] The processor 201 implements the above-mentioned weakly supervised label distribution feature selection method based on label correlation by reading and executing the computer program instructions stored in the memory 202.

[0180] In some embodiments, the computer may further include a communication interface 203 and a bus 200. Figure 4 As shown, the processor 201, the memory 202, and the communication interface 203 are connected via a bus 200 and communicate with each other.

[0181] The communication interface 203 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 203 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0182] The bus 200 includes hardware, software or both, and couples the components of the computer to each other. The bus 200 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 200 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 200 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0183] Embodiment 5

[0184] In combination with the above-mentioned weakly supervised label distribution feature selection method based on label correlation, an embodiment of the present invention provides the following technical solution: a storage medium having a computer program stored thereon, and the computer program implements the above-mentioned weakly supervised label distribution feature selection method based on label correlation when executed by a processor.

[0185] Those skilled in the art will appreciate that the logic and / or steps described in the flowchart as data or in other ways herein, for example, can be considered as a sequenced data table of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses.

[0186] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0187] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0188] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0189] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A weakly supervised label distribution feature selection method based on label correlation, characterized in that: The method comprises: Obtain a complete labeled distribution data set for speech recognition or image classification, perform random missing preprocessing on the complete labeled distribution data set, and represent the processed complete labeled distribution data set as samples with missing labels and samples without missing labels; Calculate the label correlation of the complete label distribution data set using a correlation calculation formula, embed the label correlation into a loss function to obtain a correlation loss function, use the correlation loss function to expand the label matrix of the complete label distribution data set to obtain an expanded label matrix, and use the expanded label matrix to perform label distribution learning; Calculating the difference between the extended label matrix and the label matrix of the label distribution data set, and subjecting the relevant loss function to a binary loss function constraint based on the difference to obtain an initial objective function; The missing markers of the sample containing the missing markers are predicted based on the initial objective function, and the features of the complete marker distribution data set are ranked by importance.

2. The weakly supervised label distribution feature selection method based on label correlation according to claim 1 is characterized in that: The step of performing random missing preprocessing on the complete marker distribution data set and representing the processed complete marker distribution data set as samples with missing markers and samples without missing markers respectively comprises: Using a random number generation method to perform a random missing setting on the marker matrix of the complete marker distribution data set to obtain a missing rate of the complete marker distribution data set; The complete marker distribution dataset is represented as samples containing missing markers and samples not containing missing markers based on the missing rate.

3. The weakly supervised label distribution feature selection method based on label correlation according to claim 1 is characterized in that: After the step of obtaining the initial objective function, the method further comprises: Using neighborhood granularity to measure the feature similarity of the samples without missing labels, using a local labeling formula to calculate the samples without missing labels based on the feature similarity to obtain local labeling correlation; The complete label distribution data set is calculated based on the local label correlation using a global label formula to obtain a global label correlation, and a final objective function is obtained based on the initial objective function and the global label correlation.

4. The weakly supervised label distribution feature selection method based on label correlation according to claim 3 is characterized in that: The final objective function includes: in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, Expressed as the Frobenius norm, Expressed as 2,1 norm, is represented as the 2-norm, W is represented as the weight matrix, C is represented as the label correlation matrix, Z is represented as the predicted label matrix, and D is represented as the label matrix. to All are represented as balance factors, L is represented as Laplace matrix, X is represented as characteristic matrix, U is represented as selected diagonal matrix, tr is represented as trace of matrix, and T is represented as transpose of matrix.

5. The weakly supervised label distribution feature selection method based on label correlation according to claim 3 is characterized in that: The local labeling formula includes: in, Expressed as local label correlation, is represented as the label matrix without missing labels, L is represented as the Laplace matrix, T is represented as the transpose of the matrix, tr is represented as the trace of the matrix, Represented as a sample i and samples j The similarity of Respectively represented as samples i and samples j The distribution of markers; The global marking formula includes: Among them, GR represents the global label correlation, Z represents the predicted label matrix, D represents the label matrix, and U represents the selection diagonal matrix.

6. The weakly supervised label distribution feature selection method based on label correlation according to claim 3 is characterized in that: The step of ranking the features of the complete label distribution data set by importance comprises: Based on the final objective function, the marker correlation matrix and the weight matrix of the complete marker distribution data set are respectively derived, and a predicted marker matrix is ​​calculated based on the derived marker correlation matrix and the weight matrix; An iterative solution is performed based on the predicted label matrix to obtain a coefficient matrix, and a feature importance ranking of the complete label distribution data set is obtained based on the coefficient matrix using a paradigm definition.

7. The weakly supervised label distribution feature selection method based on label correlation according to claim 1 is characterized in that: The initial objective function includes: in, and Expressed as and A matrix with a value of 1, Expressed as A matrix with a value of 0, to are all represented as balance factors, X is represented as feature matrix, W is represented as weight matrix, D is represented as label matrix, C is represented as label correlation matrix, Expressed as the Frobenius norm, Expressed as 2,1 norm, Expressed as 2-norm.

8. A weakly supervised label distribution feature selection system based on label correlation, characterized in that: The system comprises: A processing module, used for obtaining a complete labeled distribution data set for speech recognition or image classification, performing random missing preprocessing on the complete labeled distribution data set, and representing the processed complete labeled distribution data set as samples with missing labels and samples without missing labels; An expansion module, used to calculate the label correlation of the complete label distribution data set using a correlation calculation formula, embed the label correlation into a loss function to obtain a correlation loss function, use the correlation loss function to expand the label matrix of the complete label distribution data set to obtain an expanded label matrix, and use the expanded label matrix to perform label distribution learning; A constraint module, used for calculating the difference between the extended label matrix and the label matrix of the label distribution data set, and performing a binary loss function constraint on the relevant loss function based on the difference to obtain an initial objective function; A sorting module is used to predict the missing marks of the sample containing the missing marks based on the initial objective function, and to sort the features of the complete marker distribution data set by importance.

9. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the weakly supervised label distribution feature selection method based on label correlation according to any one of claims 1 to 7 is implemented.

10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the method for selecting weakly supervised label distribution features based on label correlation according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Semi-supervised multi-tag feature selection and classification method based on tag correlation

    CN105975978A

  • Combined learning method based on label covariance and multi-label classification

    CN107330448A

  • Multi-label classification method and system, readable storage medium and computer equipment

    CN109947938A

  • Noise tolerance-based partial multi-mark learning method

    CN111581468A