A multi-label classification method and device for incomplete data with missing labels

By constructing a neighborhood matrix and fuzzy similarity relationship, combined with a linear regression model, and optimizing the objective function, the problem of missing labels and nonlinear relationships in multi-label classification is solved, and the classification accuracy and efficiency are improved.

CN113535947BInactive Publication Date: 2024-10-15HENAN NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110558329.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-21
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing multi-label classification algorithms have low efficiency and low classification accuracy when processing incomplete data with missing labels, especially ignoring the non-linear relationship between features.

Method used

By constructing neighborhood identifiable and unidentifiable matrices, incomplete information is restored, and the feature weight matrix is ​​obtained. A new objective function is constructed by combining the fuzzy similarity relationship and linear regression model, and the alternating gradient descent strategy is used for optimization, taking into account the non-uniformity between features. linear relationship.

Benefits of technology

Improves the accuracy and efficiency of multi-label classification of incomplete data with missing markers, reducing sample number imbalance and manual setup time consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535947B_ABST
    Figure CN113535947B_ABST
Patent Text Reader

Abstract

The present invention relates to a multi-label classification method and device for incomplete data with missing labels, belonging to the technical field of data classification. The present invention is first based on the neighborhood rough set theory, and through the differences and similarities between samples, a neighborhood identifiable and unidentifiable matrix is ​​constructed to restore incomplete information and obtain the feature weight matrix of the restored information; then based on the fuzzy similarity relationship between samples, a new objective function that considers the nonlinear relationship between features is established by combining the fuzzy similarity relationship, the regression model and the feature weight matrix, and the gradient descent method is used to optimize and solve it, thereby realizing multi-label classification of incomplete data with missing labels. The present invention fully considers the nonlinear relationship between features, and greatly improves the accuracy and efficiency of multi-label classification of incomplete data with missing labels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a multi-label classification method and device for incomplete data with missing labels, belonging to the technical field of data classification. Background Art

[0002] In recent years, multi-label learning has attracted more and more research interests from scholars in various fields. Multi-label learning solves the problem that each sample is associated with multiple semantic tags at the same time. For example, a news report can belong to multiple topics such as politics, economics, and culture. The goal of multi-label learning is to train a classification model that can assign a set of relevant tags to each unlabeled instance. Due to its importance in real scenarios, many multi-label classification methods have been proposed and have achieved good results in various applications. Generally, most multi-label classification algorithms can be roughly divided into problem conversion methods and algorithm adaptation methods. Problem conversion methods often convert multi-label classification models into a series of single-label classification problems. Algorithm adaptation methods often improve traditional single-label classification models based on maximum a posteriori probability estimation so that they can be applied to multi-label datasets. However, the above methods usually ignore the correlation between labels in multi-label datasets.

[0003] Multi-label datasets are divided into complete datasets and incomplete datasets. For complete multi-label datasets, Tsoumakes et al. (Grigorios Tsoumakas, Ioannis Katakis. Multi-label classification: an overview. International Journal of Data Warehousing and Mining, 2009, 3 (3): 1-13.) transform the multi-label learning problem into a series of binary classification problems. The BR method makes full use of high-performance traditional single-label classification methods, which is a simple strategy that has been widely used in practice. However, this method requires more computational cost and ignores the correlation between labels, which will affect the prediction results. Jesse et al. (Jesse Read, Bernhard Pfahringer, Geoff Holmes, Eibe Frank. Classifier chains for multi-label classification. Machine Learning, 2009, 85 (3): 254-269.) considered high-order label correlation by utilizing label chains, hierarchical clustering and Bayesian network structures. However, this method cannot easily obtain the label correlation matrix. In some cases, these assumed structures do not even exist. Although many complete multi-label dataset classification methods have been designed in many fields, such methods have a fundamental assumption that each training instance is given a "complete" set of labels. However, in many cases, this assumption is difficult to hold. Due to the complexity of the actual environment, the data may often contain noise and missing features. In the early days, scholars represented by Rubin proposed four methods for dealing with missing data: direct deletion, interpolation-based methods, parameter likelihood-based methods, and weighted adjustment-based methods. In addition to the above four methods for dealing with missing data, in recent years, with the rise of data mining and analysis technology, data supplementation methods based on rough sets have gradually attracted the attention of scholars and are the most widely used. In this case, more and more experts and scholars have applied it to the field of incomplete data completion and proposed various improvement strategies. Duan Peng et al. (Duan Peng, Zhuang Honglin, He Lei, Zhang Hanyun. Improved algorithm for incomplete data analysis method (ROUSTIDA). Computer Engineering and Design, 2009, 30(7): 1681-1684) improved the traditional rough set-based algorithm to solve the situation where objects with missing attributes are not similar to any objects or are similar to multiple objects.Tian Shuxin et al. (Tian Shuxin, Wu Xiaoping, Wang Hongxia. A data completion method based on improved ROUSTIDA algorithm. Journal of Naval University of Engineering, 2011, 23(5):11-15.) distinguished between conditional attributes and decision attributes, expanded the application scope of traditional rough set-based algorithms, and used examples to illustrate that the improved algorithm can obtain more centralized decision rules. However, the above improved method cannot be directly used to process continuous attributes.

[0004] Due to the potential unreliable human annotations and the fact that annotators may sometimes be prone to errors, it is relatively difficult to obtain completely correctly labeled instances. Therefore, the datasets we obtain usually contain a large number of missing labels. For multi-label datasets without missing labels, based on deep neural network models, Zhang and Zhou et al. (Zhang Minling, Zhou Zhihua, Multilabel neural networks with applications to functional genomics and text categorization. IEEE Transactions on Knowledge and Data Engineering, 2006, 18 (10): 1338-1351.) tried to learn a novel feature space and then use the top classifier for prediction. However, it is not suitable for small datasets and requires a large number of hyperparameters to be manually set. In addition, some algorithms also try to automatically discover and exploit label correlations when learning multi-label classifiers. In general, multi-label learning is more challenging than traditional single-label classification tasks because there may be complex correlations between multiple labels. Although these methods can be effectively applied to multi-label datasets, the classification performance of these methods may be greatly reduced when the dataset contains missing labels.

[0005] In order to solve this defect, Bi and Kwok proposed a missing label multi-label learning method with label correlation in the literature (Bi Wei, Kwok James T. Multilabel classification with label correlations and missing labels. Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, 2014: 1680-1686.). This method can effectively solve multi-label data sets with missing labels and automatically learn and construct label correlation matrices. However, it only considers second-order, symmetric positive label correlations. Zhu et al. designed a multi-label classification method with global and local label correlation in the literature (Zhu Yue, James T. Kwok, Zhihua Zhou. Multi-label learning with global and local label correlation. IEEE Transactions on Knowledge and Data Engineering, 2018, 30: 1081-1094.), which learns multi-label classification of missing labels and simultaneously utilizes label correlation, but it does not specify global and local label correlations, but is merged by label manifold regularization. He et al. proposed a new method of feature selection and multi-label classification with label correlation applied to data with missing labels in the literature (He Zhifen, Yang Ming, Gao Yang, Liu Huidong, Yin Yilong. Joint multi-label classification and label correlation with missing labels and feature selection. Knowledge-Based Systems, 2019 163: 145-158.). This method can not only use independent binary algorithms for joint learning, but also jointly learn multi-label classification and label correlation. However, this method regards the multi-label classification task as several binary classification problems, resulting in higher time consumption.Zhang et al. proposed a unified robust multi-label learning framework for mixed noise data in the literature (Zhang Changqing, Yu Ziwei, FuHuazhu, Zhu Pengfei, Chen Lei, Hu Qinghua. Hybrid noise-oriented multilabel learning. IEEE Transactions on Cybernetics, 2019, 99: 1-14.), which can effectively process multi-label datasets with noise features and missing labels at the same time. However, existing multi-label classification algorithms for processing missing labels are usually limited to linear relationships in the feature space, while ignoring nonlinear relationships in the attribute set, which may lead to a decrease in classification ability. Summary of the invention

[0006] The purpose of the present invention is to provide a multi-label classification method and device for incomplete data with missing labels, so as to solve the problems of low efficiency and low classification accuracy in the current multi-label classification process of incomplete data with missing labels.

[0007] In order to solve the above technical problems, the present invention provides a multi-label classification method for incomplete data with missing labels, and the classification method comprises the following steps:

[0008] 1) obtaining an incomplete multi-label dataset containing missing labels, wherein the dataset is a text dataset, and calculating the neighborhood radius of each sample in the dataset on each feature to obtain an incomplete multi-label neighborhood decision system;

[0009] 2) According to the obtained neighborhood radius, the neighborhood identifiable matrix and the neighborhood unidentifiable matrix are calculated through the differences and similarities between samples;

[0010] 3) Based on the neighborhood identifiable matrix and the neighborhood unidentifiable matrix, the similarity between samples is determined, thereby restoring incomplete information and obtaining a feature weight matrix of the restored information;

[0011] 4) constructing a new objective function based on the feature weight matrix and combining the neighborhood fuzzy set and the linear regression model;

[0012] 5) The alternating gradient descent strategy is used to optimize the new objective function to achieve multi-label classification of incomplete data with missing labels.

[0013] The present invention also provides a multi-label classification device for incomplete data with missing labels, which includes a processor and a memory. The processor executes a computer program stored in the memory to implement the multi-label classification method for incomplete data with missing labels described in the present invention.

[0014] The present invention first constructs neighborhood identifiable and unidentifiable matrices based on neighborhood rough set theory through differences and similarities between samples, thereby restoring incomplete information and obtaining a feature weight matrix of the restored information; then, based on the fuzzy similarity relationship between samples, a new objective function that considers the nonlinear relationship between features is established by combining the fuzzy similarity relationship, the regression model and the feature weight matrix, and is optimized and solved by the gradient descent method, thereby realizing multi-label classification of incomplete data with missing labels. The present invention fully considers the nonlinear relationship between features and greatly improves the accuracy and efficiency of multi-label classification of incomplete data with missing labels.

[0015] Furthermore, in order to reduce the imbalance of the number of samples in the neighborhood set and reduce the time consumption of manual setting, the calculation formula of the neighborhood radius in step 1) is:

[0016]

[0017] Among them, δ a ′(x i ) is the sample x i The neighborhood radius on attribute a, mean(a) is the average value of all non-missing attributes in attribute a, and f a represents the density function of the so-called non-missing attributes in attribute a, max(f a ) is the density function f a The maximum value, f a (x i ) represents the sample x i The density function value corresponding to attribute a.

[0018] Furthermore, the feature weight matrix is:

[0019]

[0020] Among them, Iter represents the number of cells used to recover sample x. i The number of iterations used for the j-th feature, Iter max Indicates the maximum number of iterations.

[0021] Furthermore, the new objective function established in step 4) is:

[0022]

[0023]

[0024] where α, β, γ and λ are hyperparameters, X∈R m×n is a sample set, Y∈R t×nis a label set, B∈R t×t and W∈R t×m are the marker correlation matrix and the specific marker feature matrix, respectively. ||W||2 and ||B||2 are the l-2 regularization terms of the matrix W and the matrix B, respectively. Tr(BYL1Y T B T ) is the matrix BYL2Y T B T The trace of L2 = D2-S is a Laplacian matrix, S is a fuzzy similarity matrix, D2 is a diagonal matrix, and there is s ij Represents sample x i and sample x j The fuzzy similarity between them, C represents the feature weight matrix, w i and w j Respectively represent the values ​​of the i-th and j-th columns of the matrix W, b ij represents the value of the i-th row and j-th column in matrix B, and ⊙ represents the Hadamard product.

[0025] Furthermore, in order to improve computational efficiency, the step 5) divides the new objective function into W sub-problems and B sub-problems during the solution process. When solving the W sub-problem, B is fixed and updated, the new objective function is calculated and converted into partial derivatives with respect to W, and the solution is performed according to the iterative gradient descent strategy of the variable W; when solving the B sub-problem, W is fixed and updated, the new objective function is calculated and converted into partial derivatives with respect to B, and the solution is performed according to the iterative gradient descent strategy of the variable B.

[0026] The implementation process of step 3) is as follows:

[0027] a. Calculate the differences and similarities of samples;

[0028] b. Determine the set of missing attributes and the set of objects with missing attributes;

[0029] c. Determine a set arranged in ascending order of sample difference and a set arranged in descending order of sample similarity according to the missing attribute set and the object set of the missing attribute;

[0030] d. Use the feature mean of the common samples in the set arranged in ascending order of sample difference and the set arranged in descending order of sample similarity as the recovery value of the missing feature.

[0031] Furthermore, the calculation formulas for the sample differences and sample similarities in step a are respectively:

[0032]

[0033]

[0034] Where NS(xi ,x j ) represents the sample x i and x j The difference of, B is the attribute set, a k ∈B,a k is the attribute of the sample, M is the neighborhood discernibility matrix, PS(x i ,x j ) represents the sample x i and x j The neighborhood similarity of Represents sample x i and x j Similarity within the neighborhood radius of attribute a.

[0035] Furthermore, the missing attribute set in step b is:

[0036] MAS i ={a k |a k (x i )=*,k=1,…,m},

[0037] where a k is the kth attribute of the sample, x i and represent samples, and the symbol * represents missing features.

[0038] Furthermore, the object set of missing attributes in step b is:

[0039]

[0040] MAS i Represents a set of missing attributes, Represents the empty set. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flow chart of the multi-label classification method for incomplete data with missing labels of the present invention. DETAILED DESCRIPTION

[0042] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0043] Method Embodiment

[0044] Before introducing the specific implementation steps of the present invention, some basic knowledge used in the present invention is introduced first, mainly the introduction of neighborhood rough sets and neighborhood fuzzy sets.

[0045] Neighborhood Rough Set

[0046] Given an incomplete neighborhood decision system INDS=<U,C,D,V,f,Δ,δ> , where U = {x1, x2, …, x m} represents the complete set of samples; C and D represent conditional attributes and decision classes respectively; V = ∪ a∈AT V a , and V a is the value range of attribute a; f is an information function and satisfies the mapping relationship f:U×{C∪D}→V, f(a,x) is the value of sample x on attribute a; the symbol '*' represents the missing feature, Δ is a distance function; 0≤δ≤1 is the neighborhood parameter. This incomplete neighborhood decision system can be abbreviated as INDS=<U,C,D,δ> Then the sample set in the neighborhood of sample x on attribute set B can be expressed as:

[0047] δ B (x)={y|x,y∈U,Δ B (x,y)≤δ,δ≥0}, (1)

[0048] in represents the Euclidean distance, and N is the number of features in the feature set B.

[0049] Given an incomplete neighborhood decision system INDS=<U,C,D,δ> , for any and B = B C ∪B N , where B C is the set of decision attributes, B N is a set of feature attributes, then the neighborhood tolerance relationship on the feature set B can be expressed as:

[0050]

[0051] For any x∈U and Then the neighborhood tolerance class can be expressed as:

[0052]

[0053] Neighborhood fuzzy sets

[0054] Assume NDS =<U,C,D,V,f,Δ,δ> is a neighborhood decision system. U={x1,x2,…,x m} is a sample set, C and D represent the condition attribute set decision class. a is the value range of attribute a, and V = ∪ a∈AT V a. f is a mapping function, and f:U×{C∪D}→V, f(a,x) is the value of sample x on attribute value a. Δ represents the distance function, δ represents the neighborhood parameter, and 0≤δ≤1. The neighborhood decision system is abbreviated as NDS=<U,C,D,f> .

[0055] Given a neighborhood decision system NDS =<U,C,D,f> , a∈C, where δ is the fuzzy neighborhood radius parameter, indicating the similarity of samples. Then, for any two samples x, y∈U, their fuzzy neighborhood similarity relationship on attribute a is expressed as:

[0056]

[0057] For any x,y∈U, contains the fuzzy binary relation R on the set U B , then R B They satisfy reflexivity and symmetry, namely

[0058] (1)R B (x,x) = 1, where x∈U;

[0059] (2)R B (x,y)=R B (y,x), where x,y∈U.

[0060] Given a neighborhood decision system NDS =<U,C,D,f> , for any x,y∈U, the parameterized fuzzy neighborhood information granularity of sample x relative to B is expressed as:

[0061]

[0062] On the basis of the above-mentioned technology, the present invention first constructs a neighborhood identifiable and indistinguishable matrix through the differences and similarities between samples, and performs feature recovery based on the principle that the difference between the target sample and the sample in the neighborhood identifiable matrix should be as large as possible, the similarity between the target sample and the sample in the sample should be as large as possible, and the neighborhood indistinguishable matrix should be as large as possible; then the fuzzy similarity relationship is improved based on the Gaussian kernel function so that it can consider the nonlinear relationship between features. Then, the fuzzy similarity relationship is combined with the linear regression model to construct a new loss function, which is optimized using the gradient descent method. In addition to being applicable to text data, the classification method of the present invention can also be effectively applied to images, biology, music and other fields. The implementation process of the method is as follows: Figure 1 As shown, the specific implementation steps are as follows:

[0063] 1. Obtain an incomplete multi-label dataset with missing labels.

[0064] The incomplete multi-label dataset containing missing labels obtained in this embodiment may be a text dataset or other types of datasets.

[0065] 2. Calculate the neighborhood radius of each sample in the data set on each feature and obtain an incomplete multi-label neighborhood decision system.

[0066] Assume an incomplete multi-marker decision system IMDS =<U,C,D,V,f> ,have For any x i ∈U, a∈B, sample x i The neighborhood radius on attribute a is calculated as follows:

[0067]

[0068] where mean(a) is the mean of all non-missing attributes in attribute a, and f a represents the density function of the so-called non-missing attributes in attribute a, max(f a ) is the density function f a The maximum value, f a (x i ) represents the sample x i The density function value corresponding to attribute a.

[0069] According to the neighborhood radius of each sample on each feature, an incomplete multi-label neighborhood decision system IMNDS can be obtained.<U,C,D,V,f,δ'> .

[0070] 3. Based on the obtained neighborhood radius, the neighborhood identifiable matrix and the neighborhood unidentifiable matrix are calculated through the differences and similarities between samples.

[0071] For the incomplete multi-label neighborhood decision system IMNDS =<U,C,D,V,f,δ'> In terms of For any a k ∈B,x i ,x j ∈U,δ' ak (x i ) represents the sample x i In attribute a k The neighborhood radius on , then the neighborhood identifiability matrix M is defined as follows:

[0072]

[0073] Where i, j = 1, 2, ..., |U|; "*" indicates missing attribute value; n δ' {a} represents the set of samples in the neighborhood of sample x on attribute a, and n δ'{a} (x)={y∈U|Δ {a} (x,y)≤δ' a (x)∧a(y)≠*}.

[0074] For an incomplete multi-label neighborhood decision system IMNDS =<U,C,D,V,f,δ'> ,have For any x i ∈U,a∈B,δ' a (x i ) represents the sample x i Neighborhood radius on attribute a, m a ={x∈U|a(x)≠*} is a non-empty sample set on attribute a. For any x, y∈U, a∈B, the similarity between samples x and y is expressed as follows:

[0075]

[0076] Among them, Δ {a} (x,y) represents the distance between samples x and y on attribute a.

[0077] For the incomplete multi-label neighborhood decision system IMNDS =<U,C,D,V,f,δ'> ,have For any x i ,x j ∈U, then the sample x i and sample x j The indiscernibility is expressed as follows:

[0078]

[0079] It can be seen that when NS(x i ,x j ) contains more features, the sample x i and x j The identifiability is stronger, that is, the two samples are more likely to be heterogeneous.

[0080] 4. Based on the neighborhood identifiable matrix and the neighborhood indistinguishable matrix, the similarity between samples is determined, and thereby the feature weight matrix for recovering incomplete information is determined.

[0081] Given an incomplete multi-label neighborhood decision system IMNDS =<U,C,D,V,f,δ'> ,have For any two samples x i ,x j ∈U, then the sample x i and x j The neighborhood similarity can be expressed as follows:

[0082]

[0083] When PS(x i ,x j ) is larger, the sample x i and x j The similarity between them is greater, that is, the two samples are more likely to be of the same type.

[0084] The set of missing attributes and the set of objects with missing attributes can be represented as:

[0085] MAS i ={a k |a k (x i )=*,k=1,…,m}, (11)

[0086]

[0087] The missing features cannot be fully restored in one iteration, and it will take several iterations to complete the restoration. The earlier the feature is restored, the higher the confidence of the feature, and vice versa. In view of the above situation, the present invention constructs a feature weight matrix, that is, the earlier the feature is restored, the higher its weight.

[0088] For an incomplete multi-label neighborhood decision system IMNDS =<U,C,D,V,f,δ'> , for any x i ∈MOS,a j (x i )∈MAS i , then the feature weight matrix C is calculated as follows:

[0089]

[0090] Among them, Iter represents the number of cells used to recover sample x. i The number of iterations used for the j-th feature, Iter max Indicates the maximum number of iterations.

[0091] The algorithm flow for missing feature completion and feature weight matrix solution is as follows:

[0092]

[0093]

[0094] 5. Construct a new objective function by combining neighborhood fuzzy sets and linear regression model.

[0095] Most of the existing multi-label classification methods for dealing with missing labels are based on linear models, but it is difficult to find nonlinear relationships between features in the data space, which in turn affects the accuracy of classification. To this end, the present invention uses Gaussian kernel function and regression model for missing label multi-label classification based on fuzzy similarity relationship to further explore nonlinear relationships in the data space.

[0096] Given a multi-label neighborhood decision system MNDS with missing labels<U,C,D,δ'> ,in B={f1,f2,…,f m}, For any x i ,x j ∈U, then the sample x i and sample x j The fuzzy similarity relation on B can be expressed as:

[0097]

[0098] in, Π B (x i ,x j ) is the Gaussian kernel function that transforms the sample x i and x j The distance from the mapping in the original feature space to the high-dimensional feature space.

[0099] Π B (x i ,x j )=|K B (x i ,x i )+K B (x j ,x j )-2K B (x i ,x j )|, (15)

[0100] Where K B (x i ,x j ) represents the sample x i and x j Gaussian inner product on feature space B, K(x i ,x j )= <x i ,x j >= And 0≤K(x i ,x j )≤1,0≤Π B (x i ,xj )≤2, where

[0101] Assume that U is the set of all samples, given a training set For any x i ,x j ∈X, then the sample x in the fuzzy similarity matrix S i and x j The fuzzy similarity is:

[0102] S(i,j)=R B (x i ,x j ), (16)

[0103] Where S is an n-dimensional square matrix representing the fuzzy similarity between any two samples. Obviously, S is a symmetric matrix, that is, S(i,j)=S(j,i), and the value of its main diagonal is 0, that is, S(i,i)=0.

[0104] Given a training dataset X∈R m×n and its corresponding tag set Y∈R t×n , B∈R t×t and W∈R t×m are the tag correlation matrix and the specific tag feature matrix respectively, then a general objective function can be written as:

[0105]

[0106] where L(·,·) and R(·) are the loss function and regularization function respectively, and λ is a hyperparameter.

[0107] Given a training label set matrix Y∈R t×n and a label correlation matrix B∈R t×t In order to ensure the consistency between the original label matrix and the restored label matrix:

[0108]

[0109] where y i ∈R t×1 belongs to the training sample x i The label vector of ||Y-BY|| F Represents the Frobenius norm of the matrix Y-BY.

[0110] Given a feature labeling matrix W∈R t×m and a label correlation matrix B∈R t×t To ensure that the higher the similarity between tags, the closer the feature weights are, an equation was designed:

[0111]

[0112] where b ij represents the similarity between tag i and tag j, w i and w j denote the weights of the models corresponding to label i and label j respectively. L1=D1-B is the graph Laplacian matrix, D1 is a diagonal matrix, and

[0113] Given a training sample set X∈R m×n and its corresponding tag set Y∈R t×n , B∈R t×t and W∈R t×m They are the tag correlation matrix and the specific tag feature matrix respectively. The new objective function can be written as:

[0114]

[0115] where β, γ and λ are hyperparameters.

[0116] Given a training sample set X∈R m×n and its corresponding tag set Y∈R t×n , B∈R t×t and W∈R t×m They are the label correlation matrix and the specific label feature matrix, respectively. For any two training samples x i ,x j ∈X, when they have high similarity, it should be ensured that relative to x i and x j The restored marker vector of should be closer. Then, the consistency between the feature vector and the restored marker vector is designed as:

[0117]

[0118] Among them, Tr(BYL1Y T B T ) is the matrix BYL2Y T B T traces, s ij The calculation method of is shown in formula (16) which represents the sample x i and sample x j The fuzzy similarity between them, L2 = D2-S is a Laplacian matrix, S is a fuzzy similarity matrix, D2 is a diagonal matrix, and there is

[0119] Given a training sample set X∈R m×n and its corresponding tag set Y∈R t×n , B∈Rt×t and W∈R t×m They are the tag correlation matrix and the specific tag feature matrix respectively. A new objective function can be written as:

[0120]

[0121] where α, β, γ and λ are hyperparameters, ||W||2 and ||B||2 are the l-2 regularization terms of the matrices W and B respectively.

[0122] Given an incomplete training sample set X∈R m×n and its corresponding tag set Y∈R t×n , B∈R t×t and W∈R t×m They are the tag correlation matrix and the specific tag feature matrix respectively. Considering the case of missing features, the new objective function can be written as:

[0123]

[0124] Where ⊙ represents the Hadamard product, and C is the weight matrix calculated based on formula (13).

[0125] 6. Optimize and solve the objective function

[0126] There are two variables W and B in the process of optimizing and solving the new objective function (Formula 23). At the same time, since the objective function is convex, the present invention uses an alternating gradient descent strategy to optimize the objective function, and divides the optimization problem into two sub-problems, namely, the W sub-problem and the B sub-problem, that is, one variable can be optimized while the other variable is fixed as a constant. The specific optimization process is as follows:

[0127] For the W subproblem, fix B and update W. Then the partial derivative of the objective function L(W,B) with respect to W can be written as:

[0128]

[0129] Where ⊙ represents the Hadamard product, and then the iterative gradient descent strategy for the variable W can be written as:

[0130]

[0131] Where lr is a hyperparameter representing the learning rate.

[0132] For the B subproblem, fix W and update B, then the partial derivative of the objective function L(W,B) with respect to B can be written as:

[0133]

[0134] Where ⊙ represents the Hadamard product, and then the iterative gradient descent strategy for variable B can be written as:

[0135]

[0136] Where lr is a hyperparameter representing the learning rate.

[0137] The above method can achieve the optimization solution of W and B, thereby realizing the classification of multi-label data sets.

[0138] Device Embodiment

[0139] The multi-label classification device for incomplete data with missing labels of the present invention comprises a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the method of the present invention to implement the above method embodiment. That is, the method in the above method embodiment should be understood to be a process of the multi-label classification method for incomplete data with missing labels implemented by computer program instructions. These computer program instructions can be provided to the processor so that the processor executes these instructions to generate functions specified by the above method flow.

[0140] The processor referred to in this embodiment refers to a processing device such as a microprocessor MCU or a programmable logic device FPGA; the memory referred to in this embodiment includes a physical device for storing information, which usually digitizes the information and then stores it in a medium using electrical, magnetic or optical methods. For example: various memories that use electrical energy to store information, such as RAM, ROM, etc.; various memories that use magnetic energy to store information, such as hard disks, floppy disks, magnetic tapes, magnetic core memories, magnetic bubble memories, and U disks; various memories that use optical methods to store information, such as CDs or DVDs. Of course, there are other types of memories, such as quantum memories, graphene memories, and so on.

[0141] The device is composed of the above-mentioned memory, processor and computer program, and is implemented by the processor executing corresponding program instructions in the computer. The processor can be equipped with various operating systems, such as Windows operating system, Linux system, Android, iOS system, etc.

[0142] As another embodiment, the device may further include a display, and the display is used to display the classification results for reference by staff.

[0143] Experimental verification

[0144] In order to further verify the effect of the present invention, the present invention is compared with four existing classic multi-label classification algorithms.

[0145] (1) Experimental preparation

[0146] Four multi-label text datasets are selected for experiments. The specific description of the datasets is shown in Table 3. The datasets can be downloaded from http: / / mulan.sourceforge.net / datasets.html. In order to evaluate the effectiveness of the algorithm proposed in this invention, it is compared with four classic multi-label classification algorithms, namely, Hybrid noise-oriented multilabel learning (IEEE Transactions on Cybernetics, 2019, 99: 1-14) (abbreviated as HNOML) by Zhang et al., Multilabel classification via calibratedlabel ranking (Machine Learning, 2008, 73(2): 133-153) (abbreviated as CLR) by Furnkranz et al., ML-KNN: A lazy learning approach to multi-label learning (Pattern Recognition, 2007, 40(7): 2038-2048) (abbreviated as ML-kNN) by Zhang and Zhou, and Classifier chains for multi-label classification (Machine Learning, 2009, 85(3): 254-269) (abbreviated as ECC) by Read et al. The experiments were run on MATLAB 2016b on Windows 10 with a 3.00 GHz processor and 8.00 GB of memory space.

[0147] Table 3

[0148]

[0149] (2) Experimental setup

[0150] This experiment selects five evaluation indicators, Average Precision (AP), Coverage (CV), Hamming Loss (HL), Ranking Loss (RL), and One Error (OE), to analyze and measure the experimental results.

[0151] Average Precision (AP): It is used to examine the average probability that the tags that are ranked before the tag belonging to the sample still belong to the sample tag in the ranking of the predicted tags of all samples. It is defined as:

[0152]

[0153] Among them, Ri={l|Yil=+1} represents the set of labels related to sample xi, and Ri={l|Yil=-1} represents the set of labels irrelevant to sample xi.

[0154] Coverage (CV): It is used to measure how many steps are needed to search for each sample on average to traverse all the tags related to the sample. It is defined as follows:

[0155]

[0156] Hamming Loss (HL): It is used to measure the misclassification of samples on a single category label and is defined as:

[0157]

[0158] in Represents the exclusive OR operation.

[0159] Ranking Loss (RL): It is used to examine the average probability that the irrelevant labels of all samples are ranked before the relevant labels, and is defined as:

[0160]

[0161] One Error (OE): indicates the probability that the mark in the front of the sample class mark ranking does not belong to the relevant mark combination:

[0162]

[0163] Among them, Ri={l|Yil=+1} represents the set of labels related to sample xi, and Ri={l|Yil=-1} represents the set of labels irrelevant to sample xi.

[0164] Among the above five evaluation indicators, the larger the value of the indicator AP, the better the classification performance; the smaller the value of the indicators CV, HL, RL and OE, the better the classification performance.

[0165] (3) Experimental comparison

[0166] The present invention is compared with other four multi-label classification algorithms on the text datasets Education, Recreation, Medical and Arts, and the evaluation indicators are Average Precision (AP), Coverage (CV), Hamming Loss (HL), Ranking Loss (RL) and One Error (OE). We use five-fold cross validation for each test, and the obtained means and variances are recorded in Table 4.

[0167] Table 4

[0168]

[0169]

[0170] It can be seen from Table 4 that the method (MCGDO) proposed in the present invention is slightly inferior to HNOML under the OE indicator of the Recreation dataset, and slightly inferior to HNOML and ECC under the HL indicator of the Medical dataset. In other cases, it performs best. In summary, the MCGDO algorithm proposed in the present invention has good classification performance.

Claims

1. A multi-label classification method for incomplete data with missing labels, It is characterized in that The classification method includes the following steps: 1) obtaining an incomplete multi-label dataset containing missing labels, wherein the dataset is a text dataset, and calculating the neighborhood radius of each sample in the dataset on each feature to obtain an incomplete multi-label neighborhood decision system; 2) According to the obtained neighborhood radius, the neighborhood identifiable matrix and the neighborhood unidentifiable matrix are calculated through the differences and similarities between samples; 3) Based on the neighborhood identifiable matrix and the neighborhood unidentifiable matrix, the similarity between samples is determined, thereby restoring incomplete information and obtaining a feature weight matrix of the restored information; 4) constructing a new objective function based on the feature weight matrix and combining the neighborhood fuzzy set and the linear regression model; 5) Using the alternating gradient descent strategy to optimize the new objective function to achieve multi-label classification of incomplete data with missing labels; The calculation formula of the neighborhood radius in step 1) is: Among them, δ a ′(x i ) is the sample x i The neighborhood radius on attribute a, mean(a) is the average value of all non-missing attributes in attribute a, and f a represents the density function of the so-called non-missing attributes in attribute a, max(f a ) is the density function f a The maximum value, f a (x i ) represents the sample x i The density function value corresponding to attribute a; The new objective function established in step 4) is: where α, β, γ and λ are hyperparameters, X∈R m×n is a sample set, Y∈R t×n is a label set, B∈R t×t and W∈R t×m are the marker correlation matrix and the marker-specific feature matrix, respectively, ||W|| 2 and ||B|| 2 are the l-2 regularization terms of the matrices W and B, Tr(BYL 1 Y T B T ) is the matrix BYL 2 Y T B T The trace of L 2 =D 2 -S is a Laplacian matrix, S is a fuzzy similarity matrix, D 2 is a diagonal matrix with s ij Represents sample x i and sample x j The fuzzy similarity between them, C represents the feature weight matrix, w i and w j Respectively represent the values ​​of the i-th and j-th columns of the matrix W, b ij represents the value of the i-th row and j-th column in matrix B, and ⊙ represents the Hadamard product.

2. The multi-label classification method for incomplete data with missing labels according to claim 1, It is characterized in that The feature weight matrix is: Among them, Iter represents the number of cells used to recover sample x. i The number of iterations used for the j-th feature, Iter max Indicates the maximum number of iterations.

3. The multi-label classification method for incomplete data with missing labels according to claim 1, It is characterized in that In the step 5), the new objective function is divided into W sub-problems and B sub-problems during the solution process. When solving the W sub-problem, B is fixed and W is updated, the new objective function is calculated and converted into a partial derivative with respect to W, and the solution is performed according to the iterative gradient descent strategy of the variable W; When solving subproblem B, fix W and update B, calculate the new objective function and convert it into partial derivatives with respect to B, and solve it according to the iterative gradient descent strategy of variable B.

4. The multi-label classification method for incomplete data with missing labels according to claim 2, It is characterized in that The implementation process of step 3) is as follows: a. Calculate the differences and similarities of samples; b. Determine the set of missing attributes and the set of objects with missing attributes; c. Determine a set arranged in ascending order of sample difference and a set arranged in descending order of sample similarity according to the missing attribute set and the object set of the missing attribute; d. Use the feature mean of the common samples in the set arranged in ascending order of sample difference and the set arranged in descending order of sample similarity as the recovery value of the missing feature.

5. The multi-label classification method for incomplete data with missing labels according to claim 4, It is characterized in that The calculation formulas for the sample difference and sample similarity in step a are: Where NS(x i ,x j ) represents the sample x i and x j The difference of k ∈B,a k is the attribute of the sample, M is the neighborhood discernibility matrix, PS(x i ,x j ) represents the sample x i and x j The neighborhood similarity of Represents sample x i and x j Similarity within the neighborhood radius of attribute a.

6. The multi-label classification method for incomplete data with missing labels according to claim 4, It is characterized in that The missing attribute set in step b is: MAS i ={a k |a k (x i )=*,k=1,…,m}, where a k is the kth attribute of the sample, x i and represent samples, and the symbol * represents missing features.

7. The multi-label classification method for incomplete data with missing labels according to claim 4, It is characterized in that The object set of missing attributes in step b is: MAS i Represents a set of missing attributes, Represents the empty set.

8. A multi-label classification device for incomplete data with missing labels, It is characterized in that The device comprises a processor and a memory, wherein the processor executes a computer program stored in the memory to implement the multi-label classification method for incomplete data with missing labels as described in any one of claims 1 to 7.