Feature selection method and device, multimedia and network data dimensionality reduction method and device

By introducing a scale factor to scale the coefficient matrix of least squares regression, the problem of lack of interpretability of feature importance evaluation in the embedded feature selection method is solved, and the globality and sparsity of feature selection are realized, and the optimal solution is found and Reduction in computational overhead.

CN111783816BActive Publication Date: 2024-09-20BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010123816.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-27
Publication Date
2024-09-20
Estimated Expiration
2040-02-27

AI Technical Summary

Technical Problem

Existing embedded feature selection methods lack interpretability when evaluating feature importance, and cannot find optimal solutions to the projection matrix that are both global and sparse.

Method used

By introducing a scale factor to scale the coefficient matrix of least squares regression, and using the scale factor to evaluate feature importance, a discriminative feature selection method based on scale factor weighting is proposed, which alternately optimizes the regression coefficient matrix and bias vector until The convergence condition is reached to select the target features.

Benefits of technology

It achieves the interpretability of feature importance evaluation and finds the optimal solution to the projection matrix that is both global and sparse, reducing computational overhead and avoiding the need for repeated iterative training of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111783816B
    Figure CN111783816B
Patent Text Reader

Abstract

The present disclosure relates to a feature selection method and device, multimedia and network data dimensionality reduction method and equipment. The feature selection method includes: obtaining an original data matrix and a number of features k to be selected, wherein the original data matrix is ​​an original data matrix of electronic data; determining a target value function according to the original data matrix, a regression coefficient matrix, a label matrix, a scale factor matrix and a bias vector; determining a scale factor vector when the target value is minimum; selecting k scale factors from the scale factor vector, and taking the features corresponding to the k scale factors as target features. The present disclosure introduces a scale factor to scale the coefficient matrix of the least squares regression, and can use the scale factor to evaluate the importance of the feature.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of feature selection, and in particular to a feature selection method and device, and a multimedia and network data dimensionality reduction method and device. Background Art

[0002] With the rapid development of digital technology in modern society, the form of data has become more and more complex and the dimension of data has become higher and higher. Therefore, people urgently need efficient and stable FS (Feature Selection) methods to remove redundant and invalid interference features from massive data and retain truly valuable features. Feature selection algorithms aim to sort and select subsets of relevant data features according to the relevance, preference or importance defined in a specific task. Since feature selection can reduce the number of features used to train machine learning models, it can alleviate the dimensionality disaster, accelerate the learning process, improve model performance and enhance the understanding of data. Researchers have studied feature selection algorithms in various application conditions and multiple practical scenarios. At present, feature selection has become an important part of machine learning and data mining. Summary of the invention

[0003] The inventors found through research that feature selection methods can be divided into three categories: wrapper, filter, and embedding. Figure 1 Schematic diagram of three types of feature selection methods. Package feature selection (such as Figure 1 (a)) Methods use relevant task objectives (classification and regression, etc.) as metrics to evaluate feature subsets. Filtering feature selection (e.g. Figure 1 (b)) Methods generally use some characteristics of the data itself, such as mutual information, information gain, and correlation, to score each feature. Embedded feature selection (such as Figure 1 (c)) The method integrates feature selection and machine learning processes, and uses the weight coefficients of different features to score during the objective function optimization process.

[0004] In practical applications, since the wrapper feature selection algorithm evaluates the features through the final machine learning task to select the most suitable feature subset, the wrapper feature selection algorithm is better than the filter feature selection algorithm in performance, but it requires repeated iterative training of the model, so the computational overhead is large. The filter feature selection algorithm directly uses the statistical information of the data itself to evaluate the features, which is irrelevant to the final target task. Unlike the wrapper and filter feature selection algorithms, the embedded feature selection algorithm is tightly coupled with the final machine learning task. It uses l1 or l 2,1The penalty term constrains the projection matrix W to be learned to obtain the corresponding score of the feature, but the feature importance obtained using this penalty term lacks interpretability, and it is impossible to find the optimal solution for the projection matrix that is both global and sparse.

[0005] In view of at least one of the above technical problems, the present disclosure provides a feature selection method and device, a multimedia and network data dimensionality reduction method and device, which can evaluate the importance of features by using scale factors.

[0006] According to one aspect of the present disclosure, there is provided a feature selection method, comprising:

[0007] Obtaining an original data matrix and a number k of features to be selected, wherein the original data matrix is ​​an original data matrix of electronic data;

[0008] Determine the target value function according to the original data matrix, the regression coefficient matrix, the label matrix, the scale factor matrix and the bias vector;

[0009] Determine the scale factor vector when the target value is minimized;

[0010] Select k scale factors from the scale factor vector, and use the features corresponding to the k scale factors as target features.

[0011] In some embodiments of the present disclosure, determining the target value function according to the original data matrix, the regression coefficient matrix, the label matrix, the scale factor matrix and the bias vector includes:

[0012] Determine the first term of the target value function, and use the scale factor matrix to scale the regression coefficient matrix, wherein the first term of the target value function is an expanded least squares regression term, which is used to map the original data matrix to the label matrix using the regression coefficient matrix;

[0013] The regression coefficient matrix l F The regularization term of the norm, as the second term of the objective value function;

[0014] The sum of the first term and the second term of the objective value function is taken as the objective value function.

[0015] In some embodiments of the present disclosure, determining the scale factor vector when the target value is minimized includes:

[0016] Processing the objective value function, eliminating the scale factor vector, and generating a second objective value function of a regression coefficient matrix and a bias vector;

[0017] Alternately optimize the two variables of regression coefficient matrix and bias vector until the convergence condition is reached;

[0018] The scale factor vector that reaches the convergence condition is used as the scale factor vector when the target value is minimized.

[0019] In some embodiments of the present disclosure, the second objective value function of processing the objective value function, eliminating the scale factor vector, and generating a regression coefficient matrix and a bias vector includes:

[0020] The least squares regression term is used as the first term of the second objective value function;

[0021] The regression coefficient matrix l 2,1 The norm square regularization term is used as the second term of the second objective value function;

[0022] The sum of the first term and the second term of the second objective value function is taken as the second objective value function.

[0023] In some embodiments of the present disclosure, the alternating optimization of the two variables of the regression coefficient matrix and the bias vector includes:

[0024] Set the regression coefficient matrix unchanged and determine the optimal solution of the current iteration of the bias vector;

[0025] Set the bias vector unchanged and determine the optimal solution of the current iteration of the regression coefficient matrix.

[0026] In some embodiments of the present disclosure, selecting k scale factors from the scale factor vector and taking features corresponding to the k scale factors as target features includes:

[0027] Sort all scale factors in the scale factor vector from largest to smallest;

[0028] The features corresponding to the first k scale factors are selected as target features.

[0029] According to another aspect of the present disclosure, a method for dimensionality reduction processing of multimedia data is provided, comprising:

[0030] Obtaining the original data matrix of multimedia data;

[0031] Using the feature selection method described in any of the above embodiments to determine the target features of the original data matrix;

[0032] The original data of the multimedia data is subjected to dimensionality reduction processing according to the target feature.

[0033] According to another aspect of the present disclosure, a network data dimensionality reduction processing method is provided, comprising:

[0034] Get the original data matrix of network data;

[0035] Using the feature selection method described in any of the above embodiments to determine the target features of the original data matrix;

[0036] The original data of the network data is subjected to dimensionality reduction processing according to the target features.

[0037] According to another aspect of the present disclosure, there is provided a feature selection device, comprising:

[0038] A data acquisition module, used to acquire an original data matrix and a number k of features to be selected, wherein the original data matrix is ​​an original data matrix of electronic data;

[0039] An objective function determination module is used to determine an objective value function according to an original data matrix, a regression coefficient matrix, a label matrix, a scale factor matrix and a bias vector;

[0040] A scale factor determination module, used to determine a scale factor vector when the target value is minimum;

[0041] The feature selection module is used to select k scale factors from the scale factor vector and use the features corresponding to the k scale factors as target features.

[0042] In some embodiments of the present disclosure, the feature selection device is used to perform operations to implement the feature selection method described in any of the above embodiments.

[0043] According to another aspect of the present disclosure, there is provided a feature selection device, characterized in that it comprises:

[0044] A memory for storing instructions;

[0045] The processor is used to execute the instruction so that the feature selection device performs the operation of implementing the feature selection method described in any of the above embodiments.

[0046] According to another aspect of the present disclosure, a multimedia data dimensionality reduction processing device is provided, comprising:

[0047] A multimedia data matrix acquisition device, used to acquire an original data matrix of multimedia data;

[0048] The feature selection device as described in any of the above embodiments is used to determine the target features of the original data matrix;

[0049] The multimedia data dimensionality reduction processing device is used to perform dimensionality reduction processing on the original data of the multimedia data according to the target features.

[0050] According to another aspect of the present disclosure, a network data dimensionality reduction processing device is provided, comprising:

[0051] A network data matrix acquisition device is used to acquire the original data matrix of network data;

[0052] The feature selection device as described in any of the above embodiments is used to determine the target features of the original data matrix;

[0053] The network data dimensionality reduction processing device is used to perform dimensionality reduction processing on the original data of the network data according to the target characteristics.

[0054] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the feature selection method as described in any of the above embodiments is implemented.

[0055] The present disclosure introduces a scale factor to scale the coefficient matrix of least squares regression, and the scale factor can be used to evaluate the importance of features. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, 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 disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0057] Figure 1 Schematic diagram of three types of feature selection methods.

[0058] Figure 2 Schematic diagram of some embodiments of the feature selection method disclosed in the present invention.

[0059] Figure 3 Schematic diagrams of some embodiments of the feature selection device disclosed in the present invention.

[0060] Figure 4 Schematic diagrams of other embodiments of the feature selection device disclosed in the present invention.

[0061] Figure 5 Schematic diagram of some embodiments of the multimedia data dimensionality reduction processing method disclosed in the present invention.

[0062] Figure 6 Schematic diagram of some embodiments of the multimedia data dimensionality reduction processing device disclosed in the present invention.

[0063] Figure 7 Schematic diagram of some embodiments of the network data dimensionality reduction processing method disclosed in the present invention.

[0064] Figure 8 Schematic diagram of some embodiments of the network data dimensionality reduction processing device disclosed in the present invention. DETAILED DESCRIPTION

[0065] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0066] Unless specifically stated otherwise, the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure.

[0067] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0068] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0069] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0070] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0071] The inventors found through research that the embedded feature selection method of the related art uses l 2,1 After constraining the optimization of the projection matrix W with equal penalty terms, the importance of the feature is evaluated according to the size of the l2 norm of each row of W. However, this evaluation method lacks interpretability.

[0072] In order to solve the problem that the embedded feature selection method in the related art lacks interpretability in evaluating features using a projection matrix, the present disclosure proposes a discriminative feature selection method and device based on scale factor weighting, which is explained below through specific embodiments.

[0073] Figure 2 Schematic diagrams of some embodiments of the feature selection method disclosed herein. Preferably, this embodiment can be performed by the feature selection device disclosed herein. The method includes the following steps 21 to 24, wherein:

[0074] Step 21, obtaining an original data matrix and the number k of features to be selected, wherein the original data matrix is ​​an original data matrix of electronic data.

[0075] In some embodiments of the present disclosure, electronic data may be various types of network data, gene expression data, document word frequency data, user data, and multimedia data, among which network data may include various types of network data such as network document data and network usage data, and multimedia data may include data in various media forms such as text, sound, and video.

[0076] In some embodiments of the present disclosure, various types of electronic data such as network data, gene expression data, document word frequency data, user data and multimedia data are high-dimensional data, that is, multi-dimensional data, which is data with attributes greater than 2.

[0077] In some embodiments of the present disclosure, step 21 may include steps 211 to 213, wherein:

[0078] Step 211, define symbols and norms in the present disclosure. In the present disclosure, matrices are written using italic uppercase letters, and vectors are represented using italic lowercase letters.

[0079] For example: for the matrix M = (m ij ), use m i Indicates its i-th row, m j represents its j-th column.

[0080] matrix The Frobenius norm of is defined as

[0081] matrix l 2,1 The norm is defined as

[0082] Step 212, assuming that there are c classes of training data samples is the i-th sample data, d is the number of sample features, n is the number of training samples, and the corresponding category label matrix is is the label of the i-th sample. If the sample x i Belongs to the i-th class, then the label y i The jth element of The remaining elements are all 0.

[0083] Step 22, determining the target value function according to the original data matrix, the regression coefficient matrix, the label matrix, the scale factor matrix and the bias vector.

[0084] In some embodiments of the present disclosure, step 22 may include steps 221 to 223, wherein:

[0085] Step 221, determine the first term of the objective value function, and use the scale factor matrix to scale the regression coefficient matrix, wherein the first term of the objective value function is an expanded least squares regression term, which is used to use the regression coefficient matrix to map the original data matrix to the label matrix.

[0086] Step 222: transform the regression coefficient matrix l F The regularization term of the norm is used as the second term of the objective value function.

[0087] Step 223: The sum of the first term and the second term of the objective value function is used as the objective value function.

[0088] In some other embodiments of the present disclosure, step 22 may include: in order to measure the importance of d features, introducing a scale factor vector The jth element of the scale factor θ j > 0, (1≤j≤d) evaluates the jth feature, and the sum of all scale factors is 1, that is Specifically, if the goal of the feature selection task is to select the k most important features, the elements in the scale factor vector θ can be sorted from large to small, and the features corresponding to the scale factors with the largest values ​​in the first k can be selected. In order to fully utilize the advantages of the close integration of the embedded feature selection method and the target task (classification or regression), this disclosure proposes a discriminative feature selection algorithm based on scale factor weighting, and its target formula is shown in formula (1):

[0089]

[0090] In formula (1), is a diagonal matrix with diagonal elements The off-diagonal elements are 0. is the regression coefficient matrix, which is used to regress the original data to the label target Y, b is the bias vector, e is a vector whose elements are all 1, and λ is the regularization parameter. The first term of formula (1) It is an extended least squares regression. Its motivation is to make the solved variables W and b map samples to corresponding labels and embed the discriminative information of data labels into the regression coefficient matrix W. The second term for l F The regularization term of the norm.

[0091] Step 23, determining the scale factor vector when the target value is minimized.

[0092] In some embodiments of the present disclosure, step 23 may include steps 231 to 233, wherein:

[0093] Step 231, processing the objective value function, eliminating the scale factor vector, and generating a second objective value function of the regression coefficient matrix and the bias vector.

[0094] In some embodiments of the present disclosure, step 231 may include: taking the least squares regression term as the first term of the second objective value function; taking the l of the regression coefficient matrix 2,1 The norm square regularization term is used as the second term of the second objective value function; and the sum of the first term and the second term of the second objective value function is used as the second objective value function.

[0095] In some other embodiments of the present disclosure, step 231 may include:

[0096] Since the first term in formula (1) exists T ΘW, the variables Θ and W are coupled together, which is not conducive to the optimization solution, so let Substituting into formula (1), we get the following transformed target formula (2):

[0097]

[0098] Assuming that W and b variables are fixed, solving the optimal θ at this time is equivalent to solving the optimization problem of the following formula (3):

[0099]

[0100] The constrained optimization problem in formula (3) can be transformed into an unconstrained optimization problem by using the Lagrange multiplier method, and the optimal solution is shown in formula (4):

[0101]

[0102] Substituting formula (4) into the objective formula of optimization problem (3), we obviously have formula (5):

[0103]

[0104] Then the objective formula (2) can eliminate the optimization variable θ and obtain the simplified objective formula (6):

[0105]

[0106] The second term of the simplified target formula (6) is for l 2,1 The norm square regularization term, the optimal solution W is a row sparse matrix, that is, most of the rows of W are all zero vectors, and only a few rows are non-zero vectors. The scale factor θ of the jth feature jThe optimal solution is as shown in formula (7), where the value of the scale factor reflects the importance of the corresponding feature in the task, and also gives the value of ||w j ||2 The evaluation characteristics provide theoretical support.

[0107]

[0108] Step 232, alternately optimize the two variables of the regression coefficient matrix and the bias vector until the convergence condition is reached.

[0109] In some embodiments of the present disclosure, in step 232, the step of alternately optimizing the two variables of the regression coefficient matrix and the bias vector may include step (1) and step (2), wherein:

[0110] Step (1), set the regression coefficient matrix W unchanged, and determine the optimal solution of the current iteration of the bias vector b, that is, set W fixed to solve b.

[0111] When the variable W is fixed, the optimization objective formula (6) is equivalent to the optimization formula (8):

[0112]

[0113] Calculate the partial derivative of the variable b in the above formula and set it to 0. After sorting, the optimal solution of the variable b in the current iteration is obtained as formula (9):

[0114]

[0115] Step (2), set the bias vector b unchanged, and determine the optimal solution of the current iteration of the regression coefficient matrix W, that is, fix b to solve W.

[0116] When the variable b is fixed, the optimization objective formula (6) is equivalent to the optimization problem of the following formula (10):

[0117]

[0118] However The range of values ​​of may include 0, which will cause Formula (10) to be non-differentiable at the point where its value is 0. To avoid this situation, 2,1 Norm Relaxation Where ε is a very small constant, usually 10 -5 . 2,1 The target formula after relaxation is shown in formula (11):

[0119]

[0120] make Derivative of the optimization variable W in the objective formula (10) And set it to 0 to get:

[0121]

[0122] In formula (12), is a diagonal matrix, and the j-th diagonal element of the diagonal matrix Q is The value of Q is obtained based on W. W and Q can be solved alternately and iteratively. The optimal analytical solution of Q has been obtained. Now fix Q, solve W, and transform the target formula (11) into formula (13):

[0123]

[0124] In formula (13), Tr(W T QW) represents the matrix W T QW seeks the trace.

[0125] Will Substituting into formula (13) we can obtain formula (14).

[0126]

[0127] In formula (14) Where I is the identity matrix, the partial derivative of W can be obtained and set to 0, as shown in formula (15):

[0128] 2X T (HX T W-HY)42λQW=0 (15)

[0129] Then the optimal solution of this iteration is in the form of formula (16):

[0130] W=(XH T HX T +λQ) -1 XH T HY (16)

[0131] Due to H T H=H, formula (16) can be finally simplified to formula (17):

[0132] W=(XHX T 4λQ) -1 XHY (17)

[0133] Step 233: The scale factor vector that reaches the convergence condition is used as the scale factor vector when the target value is minimized.

[0134] Step 24, select k scale factors from the scale factor vector, and use the features corresponding to the k scale factors as target features.

[0135] In some embodiments of the present disclosure, step 24 may include: sorting all scale factors in the scale factor vector from large to small; and selecting features corresponding to the first k scale factors as target features.

[0136] Based on the feature selection method provided in the above embodiment of the present disclosure, the coefficient matrix of the least squares regression is scaled by introducing a scale factor, and the feature importance is evaluated using the scale factor. The above embodiment of the present disclosure proves that the proposed method is equivalent to using l 2,1 The square of the norm is used as a penalty term in the sparse feature selection model, and the scale factor can provide interpretability for evaluating the importance of features using sparse solutions. The above embodiments of the present disclosure finally propose an efficient convergent iterative optimization algorithm to optimize and solve the proposed discriminative feature selection method based on scale factor weighting.

[0137] The feature selection method of the above-mentioned embodiment of the present disclosure can be applied to high-dimensional data processing and analysis fields such as high-dimensional data visualization, high-dimensional image classification, and high-dimensional data compression of electronic data such as network data and multimedia data, among which high-dimensional data compression specifically reduces high-dimensional data to 2 or 3 dimensions for low-dimensional data display; high-dimensional image classification specifically reduces the dimensionality of high-dimensional images and then uses a classifier to classify the images, such as face recognition, medical image classification, and high-resolution satellite image classification; high-dimensional data compression specifically compresses high-dimensional data and then transmits the data.

[0138] Table 1 is a schematic diagram of the alternating iterative optimization algorithm in some embodiments of the feature selection method disclosed herein.

[0139]

[0140] The above embodiments of the present disclosure do not require repeated iterative training of the model, and the computational overhead is low. The above embodiments of the present disclosure prove that the proposed method is equivalent to using l 2,1 The square of the norm is used as a sparse feature selection model for the penalty term, and the scale factor can provide interpretability for evaluating the importance of features using sparse solutions. The feature selection algorithm of the above embodiment of the present disclosure is tightly coupled with the final machine learning task. The above embodiment of the present disclosure can find the optimal solution of the projection matrix that is both global and sparse.

[0141] In order to verify the effectiveness of the method proposed in the above embodiment of the present disclosure, the feature selection method proposed in the above embodiment of the present disclosure is verified on eight standard data sets. Information of the eight standard data sets is shown in Table 2.

[0142] Table 2

[0143]

[0144] The above embodiment of the present disclosure uses a discriminative feature selection algorithm weighted by a scale factor to select features for training samples in the experiment, and then uses a nearest neighbor classifier to perform classification tasks, and uses the final classification accuracy to measure the effect of feature selection. At the same time, in order to compare with other traditional feature selection methods, the experimental results of the proposed method are compared with the unsupervised feature dimensionality reduction method PCA (principal components analysis), the unsupervised feature selection algorithm Laplacian Score (LS) and the supervised feature selection algorithm Relief-F algorithm, and all features are used for nearest neighbor classification as a baseline.

[0145] The above embodiment of the present disclosure randomly divides the data set ten times, selects 9 parts of the data as training data each time, and uses the remaining 1 part of the data as test data for algorithm performance measurement. The above operation is repeated 10 times, and the average value of the 10 results is taken as the final experimental result.

[0146] Table 3

[0147]

[0148]

[0149] Table 3 shows the classification results of five different methods on standard data sets, specifically the classification task accuracy results of the feature selection method proposed in the above embodiment of the present disclosure and the other four comparative methods on 8 standard data sets, and the variances of 10 experiments are shown in brackets. The baseline method does not perform feature selection and directly uses all the original data features for classification. PCA, LS, Relief-F and the method proposed in the above embodiment of the present disclosure retain the number of original features after sorting. For subsequent classification tasks, special attention is that when the sample data dimension is much higher than the number of samples d>>n, PCA retains the data The feature of the number of samples is used as the input of the classifier. From the results in Table 2, it can be seen that the feature selection algorithm proposed in the present invention has achieved the best classification accuracy on the 7 data sets. The classification performance on the Binalpha data set is slightly lower than that of the Baseline and PCA, but higher than that of the LS and Relief-F feature selection algorithms in the related technologies. The reason for this may be that there are many categories in the Binalpha data (c=16), and the feature selection algorithm selects some of the features, which may lead to a large loss of category information, and thus the final classification accuracy is significantly different from that of the Baseline without feature selection algorithm and the feature dimensionality reduction algorithm PCA.

[0150] The above embodiments of the present disclosure do not require repeated iterative training of the model, and the computational overhead is low. The above embodiments of the present disclosure prove that the proposed method is equivalent to using l 2,1 The square of the norm is used as a sparse feature selection model for the penalty term, and the scale factor can provide interpretability for evaluating the importance of features using sparse solutions. The feature selection algorithm of the above embodiment of the present disclosure is tightly coupled with the final machine learning task. The above embodiment of the present disclosure can find the optimal solution of the projection matrix that is both global and sparse.

[0151] Figure 3 Schematic diagram of some embodiments of the feature selection device disclosed in the present invention. Figure 3 As shown, the feature selection device disclosed in the present invention includes a data acquisition module 31, an objective function determination module 32, a scale factor determination module 33 and a feature selection module 34, wherein:

[0152] The data acquisition module 31 is used to acquire an original data matrix and the number k of features to be selected, wherein the original data matrix is ​​an original data matrix of electronic data.

[0153] In some embodiments of the present disclosure, electronic data may be various types of network data, gene expression data, document word frequency data, user data, and multimedia data, among which network data may include various types of network data such as network document data and network usage data, and multimedia data may include data in various media forms such as text, sound, and video.

[0154] In some embodiments of the present disclosure, various types of electronic data such as network data, gene expression data, document word frequency data, user data and multimedia data are high-dimensional data, that is, multi-dimensional data, which is data with attributes greater than 2.

[0155] The objective function determination module 32 is used to determine the objective value function according to the original data matrix, the regression coefficient matrix, the label matrix, the scale factor matrix and the bias vector.

[0156] In some embodiments of the present disclosure, the objective function determination module 32 can be used to determine the first term of the objective value function, and scale the regression coefficient matrix using a scale factor matrix, wherein the first term of the objective value function is an expanded least squares regression term, and is used to map the original data matrix to the label matrix using the regression coefficient matrix; l of the regression coefficient matrix F The regularization term of the norm is used as the second term of the objective value function; the sum of the first term and the second term of the objective value function is used as the objective value function.

[0157] The scale factor determination module 33 is used to determine the scale factor vector when the target value is minimized.

[0158] In some embodiments of the present disclosure, the scale factor determination module 33 can be used to process the objective value function, eliminate the scale factor vector, generate a second objective value function of the regression coefficient matrix and the bias vector; alternately optimize the two variables of the regression coefficient matrix and the bias vector until the convergence condition is reached; and use the scale factor vector that reaches the convergence condition as the scale factor vector when the objective value is minimized.

[0159] In some embodiments of the present disclosure, the scale factor determination module 33 processes the objective value function, eliminates the scale factor vector, and generates a second objective value function of a regression coefficient matrix and a bias vector. The least squares regression term can be used as the first term of the second objective value function; the l of the regression coefficient matrix 2,1 The norm square regularization term is used as the second term of the second objective value function; and the sum of the first term and the second term of the second objective value function is used as the second objective value function.

[0160] In some embodiments of the present disclosure, the scale factor determination module 33 can be used to set the regression coefficient matrix unchanged and determine the optimal solution of the current iteration of the bias vector; set the bias vector unchanged and determine the optimal solution of the current iteration of the regression coefficient matrix when alternately optimizing the two variables of the regression coefficient matrix and the bias vector.

[0161] The feature selection module 34 is used to select k scale factors from the scale factor vector and use features corresponding to the k scale factors as target features.

[0162] In some embodiments of the present disclosure, the feature selection module 34 may be used to sort all the scale factors in the scale factor vector from large to small; and select features corresponding to the first k scale factors as target features.

[0163] In some embodiments of the present disclosure, the feature selection device is used to implement any of the above embodiments (for example Figure 2 Operation of the feature selection method described in Example).

[0164] Based on the feature selection device provided by the above embodiment of the present disclosure, the coefficient matrix of the least squares regression is scaled by introducing a scale factor, and the feature importance is evaluated using the scale factor. The above embodiment of the present disclosure proves that the proposed method is equivalent to using l 2,1 The square of the norm is used as a penalty term in the sparse feature selection model, and the scale factor can provide interpretability for evaluating the importance of features using sparse solutions. The above embodiment of the present disclosure also proposes an efficient convergent iterative optimization algorithm to optimize and solve the proposed discriminative feature selection method based on scale factor weighting.

[0165] Figure 4Schematic diagrams of other embodiments of the feature selection device disclosed in the present invention. Figure 4 As shown, the feature selection device disclosed in the present invention includes a memory 41 and a processor 42, wherein:

[0166] The memory 41 is used for storing instructions.

[0167] The processor 42 is used to execute the instruction so that the feature selection device performs any of the above embodiments (for example Figure 2 Operation of the feature selection method described in Example).

[0168] The above embodiments of the present disclosure do not require repeated iterative training of the model, and the computational overhead is low. The above embodiments of the present disclosure prove that the proposed method is equivalent to using l 2,1 The square of the norm is used as a sparse feature selection model for the penalty term, and the scale factor can provide interpretability for evaluating the importance of features using sparse solutions. The feature selection algorithm of the above embodiment of the present disclosure is tightly coupled with the final machine learning task. The above embodiment of the present disclosure can find the optimal solution of the projection matrix that is both global and sparse.

[0169] Figure 5 Schematic diagram of some embodiments of the multimedia data dimensionality reduction processing method disclosed in the present invention. Preferably, this embodiment can be performed by the multimedia data dimensionality reduction processing device disclosed in the present invention. The method includes the following steps 51 to 53, wherein:

[0170] Step 51: Obtain the original data matrix of multimedia data.

[0171] In some embodiments of the present disclosure, multimedia data may include data in various media forms such as text, sound, and video.

[0172] Step 52, using any of the above embodiments (e.g. Figure 2 The feature selection method described in Example 1 determines the target features of the original data matrix.

[0173] Step 53: Perform dimensionality reduction processing on the original data of the multimedia data according to the target feature.

[0174] In some embodiments of the present disclosure, step 53 may include: performing dimensionality reduction processing on the original data of the multimedia data according to the target features by using principal component analysis, partial least squares or nonlinear mapping.

[0175] Figure 6 Schematic diagram of some embodiments of the multimedia data dimensionality reduction processing device disclosed in the present invention. Figure 6 As shown, the multimedia data dimensionality reduction processing device disclosed in the present invention may include a multimedia data matrix acquisition device 61, a feature selection device 62 and a multimedia data dimensionality reduction processing device 63, wherein:

[0176] The multimedia data matrix acquisition device 61 is used to acquire the original data matrix of the multimedia data.

[0177] The feature selection device 62 is used to determine the target features of the original data matrix.

[0178] In some embodiments of the present disclosure, the feature selection device 62 may be any of the above embodiments (e.g. Figure 3 or Figure 4 Embodiment) described in the feature selection device.

[0179] The multimedia data dimensionality reduction processing device 63 is used to perform dimensionality reduction processing on the original data of the multimedia data according to the target features.

[0180] The above-mentioned embodiments of the present disclosure can determine the target features more efficiently and accurately, so that the dimensionality reduction processing of multimedia data can be conveniently and efficiently performed, and the multimedia data in the high-dimensional space can be projected into a low-dimensional space, generally a two-dimensional or three-dimensional space, to facilitate subsequent multimedia data classification and multimedia data analysis and other data processing.

[0181] Figure 7 Schematic diagram of some embodiments of the network data dimensionality reduction processing method disclosed in the present invention. Preferably, this embodiment can be performed by the network data dimensionality reduction processing device disclosed in the present invention. The method includes the following steps 71 to 73, wherein:

[0182] Step 71, obtaining the original data matrix of the network data.

[0183] In some embodiments of the present disclosure, network data may include various types of network data such as network document data and network usage data.

[0184] Step 72, using any of the above embodiments (e.g. Figure 2 The feature selection method described in Example 1 determines the target features of the original data matrix.

[0185] Step 73: Perform dimensionality reduction processing on the original data of the network data according to the target feature.

[0186] In some embodiments of the present disclosure, step 53 may include: using principal component analysis, partial least squares or nonlinear mapping to perform dimensionality reduction processing on the original data of the network data according to the target features.

[0187] Figure 8 Schematic diagram of some embodiments of the network data dimensionality reduction processing device disclosed in the present invention. Figure 8As shown, the network data dimensionality reduction processing device disclosed in the present invention may include a network data matrix acquisition device 81, a feature selection device 82 and a network data dimensionality reduction processing device 83, wherein:

[0188] The network data matrix acquisition device 81 is used to acquire the original data matrix of the network data.

[0189] The feature selection device 82 is used to determine the target features of the original data matrix.

[0190] In some embodiments of the present disclosure, the feature selection device 82 may be any of the above embodiments (e.g. Figure 3 or Figure 4 Embodiment) described in the feature selection device.

[0191] The network data dimensionality reduction processing device 83 is used to perform dimensionality reduction processing on the original data of the network data according to the target feature.

[0192] The above-mentioned embodiments of the present disclosure can determine the target features more efficiently and accurately, so that the network data can be conveniently and efficiently reduced in dimensionality, and the network data in the high-dimensional space can be projected into a low-dimensional space, generally a two-dimensional or three-dimensional space, to facilitate subsequent data processing such as network data classification and network data analysis.

[0193] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, any of the above embodiments (for example Figure 2 The feature selection method described in the embodiment).

[0194] Based on the computer-readable storage medium provided by the above embodiment of the present disclosure, the coefficient matrix of the least squares regression is scaled by introducing a scale factor, and the feature importance is evaluated using the scale factor. The above embodiment of the present disclosure proves that the proposed method is equivalent to using l 2,1 The square of the norm is used as a penalty term in the sparse feature selection model, and the scale factor can provide interpretability for evaluating the importance of features using sparse solutions. The above embodiment of the present disclosure also proposes an efficient convergent iterative optimization algorithm to optimize and solve the proposed discriminative feature selection method based on scale factor weighting.

[0195] The above embodiments of the present disclosure do not require repeated iterative training of the model, and the computational overhead is low. The above embodiments of the present disclosure prove that the proposed method is equivalent to using l 2,1The square of the norm is used as a sparse feature selection model for the penalty term, and the scale factor can provide interpretability for evaluating the importance of features using sparse solutions. The feature selection algorithm of the above embodiment of the present disclosure is tightly coupled with the final machine learning task. The above embodiment of the present disclosure can find the optimal solution of the projection matrix that is both global and sparse.

[0196] The feature selection device, multimedia data dimensionality reduction processing equipment and network data dimensionality reduction processing equipment described above can be implemented as a general-purpose processor, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof for performing the functions described in this application.

[0197] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.

[0198] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0199] The description of the present disclosure is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present disclosure to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure, and to enable those of ordinary skill in the art to understand the present disclosure and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A feature selection method, characterized in that: include: Obtaining an original data matrix and a number k of features to be selected, wherein the original data matrix is ​​an original data matrix of electronic data, and the original data is multimedia data and / or network data; Determine the target value function according to the original data matrix, the regression coefficient matrix, the label matrix, the scale factor matrix and the bias vector, wherein the determination of the target value function according to the original data matrix, the regression coefficient matrix, the label matrix, the scale factor matrix and the bias vector comprises: determining the first term of the target value function, scaling the regression coefficient matrix using the scale factor matrix, wherein the first term of the target value function is an extended least squares regression term, which is used to map the original data matrix to the label matrix using the regression coefficient matrix; F The regularization term of the norm is used as the second term of the objective value function; the sum of the first term and the second term of the objective value function is used as the objective value function; Determine a scale factor vector when the target value is minimized, wherein the determining the scale factor vector when the target value is minimized includes: processing the target value function, eliminating the scale factor vector, and generating a second target value function of a regression coefficient matrix and a bias vector, wherein the processing the target value function, eliminating the scale factor vector, and generating a second target value function of a regression coefficient matrix and a bias vector includes: using the least squares regression term as the first term of the second target value function, and 2,1 The norm square regularization term is used as the second term of the second objective value function, and the sum of the first term and the second term of the second objective value function is used as the second objective value function; the two variables of the regression coefficient matrix and the bias vector are optimized alternately until the convergence condition is reached; the scale factor vector that reaches the convergence condition is used as the scale factor vector when the objective value is minimized; Select k scale factors from the scale factor vector, and use the features corresponding to the k scale factors as target features.

2. The feature selection method according to claim 1, characterized in that: The two variables of the alternating optimization regression coefficient matrix and the bias vector include: Set the regression coefficient matrix unchanged and determine the optimal solution of the current iteration of the bias vector; Set the bias vector unchanged and determine the optimal solution of the current iteration of the regression coefficient matrix.

3. The feature selection method according to claim 1 or 2, characterized in that: The step of selecting k scale factors from the scale factor vector and taking features corresponding to the k scale factors as target features includes: Sort all scale factors in the scale factor vector from largest to smallest; The features corresponding to the first k scale factors are selected as target features.

4. A multimedia data dimensionality reduction processing method, characterized in that: include: Obtaining the original data matrix of multimedia data; Determine the target features of the original data matrix using the feature selection method according to any one of claims 1 to 3; The original data of the multimedia data is subjected to dimensionality reduction processing according to the target feature.

5. A network data dimensionality reduction processing method, characterized in that: include: Get the original data matrix of network data; Determine the target features of the original data matrix using the feature selection method according to any one of claims 1 to 3; The original data of the network data is subjected to dimensionality reduction processing according to the target features.

6. A feature selection device, characterized in that: include: A data acquisition module, used to acquire an original data matrix and a number k of features to be selected, wherein the original data matrix is ​​an original data matrix of electronic data, and the original data is multimedia data and / or network data; An objective function determination module is used to determine an objective value function according to an original data matrix, a regression coefficient matrix, a label matrix, a scale factor matrix and a bias vector; A scale factor determination module, used to determine a scale factor vector when the target value is minimum; A feature selection module is used to select k scale factors from the scale factor vector and use the features corresponding to the k scale factors as target features; The objective function determination module is used to determine the first term of the objective value function, and scales the regression coefficient matrix using the scale factor matrix. The first term of the objective value function is the expanded least squares regression term, which is used to map the original data matrix to the label matrix using the regression coefficient matrix. F The regularization term of the norm is used as the second term of the objective value function; the sum of the first term and the second term of the objective value function is used as the objective value function; The scale factor determination module is used to process the target value function, eliminate the scale factor vector, generate the second target value function of the regression coefficient matrix and the bias vector; alternately optimize the two variables of the regression coefficient matrix and the bias vector until the convergence condition is reached; and use the scale factor vector that reaches the convergence condition as the scale factor vector when the target value is minimized; The scale factor determination module processes the objective value function, eliminates the scale factor vector, and generates a second objective value function of a regression coefficient matrix and a bias vector, and is used to use the least squares regression term as the first term of the second objective value function; 2,1 The norm square regularization term is used as the second term of the second objective value function; and the sum of the first term and the second term of the second objective value function is used as the second objective value function.

7. A feature selection device, characterized in that: include: A memory for storing instructions; A processor is used to execute the instruction so that the feature selection device performs the operation of implementing the feature selection method according to any one of claims 1 to 3.

8. A multimedia data dimensionality reduction processing device, characterized in that: include: A multimedia data matrix acquisition device, used to acquire an original data matrix of multimedia data; The feature selection device as claimed in claim 6 or 7, used to determine the target features of the original data matrix; The multimedia data dimensionality reduction processing device is used to perform dimensionality reduction processing on the original data of the multimedia data according to the target features.

9. A network data dimensionality reduction processing device, characterized in that: include: A network data matrix acquisition device is used to acquire the original data matrix of network data; The feature selection device as claimed in claim 6 or 7, used to determine the target features of the original data matrix; The network data dimensionality reduction processing device is used to perform dimensionality reduction processing on the original data of the network data according to the target characteristics.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the instructions are executed by a processor, the feature selection method according to any one of claims 1 to 3 is implemented.