Multi-view data classification method and system based on dynamic self-attention capsule network

The dynamic self-attention capsule network method is used to perform feature selection and weighting on multi-view data, which solves the problem of insufficient information integration in the existing technology and achieves higher classification accuracy and robustness.

CN118887482BActive Publication Date: 2025-01-24QINGDAO UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411375132.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-24
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

Existing multi-view data classification methods fail to effectively integrate and utilize information between different views, resulting in the ignored information or the redundant information being introduced, affecting model performance.

Method used

A method based on dynamic self-attention capsule network is adopted to eliminate the influence of redundant and noisy data by dynamically selecting and weighting the feature information of different views, maximizing the use of the specific information of each view, and classifying data through the capsule network.

Benefits of technology

It improves the accuracy and robustness of multi -view data classification, which significantly improves the accuracy of classification. Especially in multi -category tasks, it can more effectively capture the complementarity and correlation between viewing maps, improve the adaptability and of the model and Performance stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887482B_ABST
    Figure CN118887482B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of multi-view data classification, and discloses a multi-view data classification method and system based on a dynamic self-attention capsule network, including S1, multi-view feature self-attention learning: for each view, calculate the feature self-attention weight and the view self-attention weight, perform self-attention weighting, and obtain the data features after feature weighting and view weighting; S2, dynamic learning of view self-attention weight: classify the final weighted data of each view, and dynamically learn the view self-attention weight through the difference between the predicted probability value corresponding to the sample label category and the single weight value of the view, and the sample predicted probability and the label, to obtain a feature matrix; S3, data classification: input the spliced ​​feature matrix M into the capsule network to complete the task of accurately classifying the sample data. The present invention improves the classification accuracy of multi-view learning by dynamically weighting and fusing different information in multi-view data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of multi-view data classification, in particular to effectively integrating and utilizing information from multiple different perspectives, and to a multi-view data classification method and system based on a dynamic self-attention capsule network. Background Art

[0002] With the advancement of data collection technology, data diversity and complexity continue to increase. Data from different views originate from diverse data sources or in multiple forms. These views often contain rich and complementary information. Integrating and leveraging this multi-view data is a crucial research topic. Multi-view learning is a key technique for processing data with multiple views. The application of multiple views not only improves data analysis but also provides new perspectives and methods for understanding complex systems.

[0003] The focus of multi-view data classification is how to effectively integrate and utilize information from multiple views to improve the accuracy and robustness of classification. Each view represents a different feature or aspect of the data, and there may be a complementary relationship between these views. Multi-view clustering considers the differences and complementarities between different views and simultaneously analyzes data from multiple views to discover the potential structure and patterns in the data, thereby effectively processing multi-view data. Based on the research on multi-view clustering, multi-view data classification technology has gradually developed. Unlike clustering, the goal of multi-view data classification is to use existing label information to accurately classify new data by training models.

[0004] The Multilayer Perceptron (MLP), a nonlinear feature extractor, maps raw view data into a new feature space. By training the MLP independently on each view, or jointly training MLPs on multiple views, more abstract and representative features can be obtained. The Capsule Network (CPN), a novel neural network-based architecture, implements feature extraction through a dynamic routing mechanism, effectively capturing the spatial hierarchical relationships of the input data. Early CPNs suffered from high computational complexity, limiting their application to large-scale datasets. In recent years, various improved methods, such as the Efficient Capsule Network (ECN), have been proposed to address these issues.

[0005] Existing methods mainly rely on simple feature fusion strategies. Most of the current methods do not consider the dynamic selection of information between different feature information and views and the dynamic weighting of useful information, resulting in some useful information being ignored or redundant information being introduced, affecting the final performance of the model.

[0006] To this end, the present invention proposes a new multi-view data classification method based on dynamic self-attention capsule network for multi-view data integration. Summary of the Invention

[0007] To address the shortcomings of existing technologies, the present invention provides a multi-view data classification method and system based on a dynamic self-attention capsule network. First, during the multi-view data integration process, feature information from different views is dynamically selected to fully utilize the useful feature information from each view and eliminate the effects of redundant and noisy data. Second, the multi-view information provided by the multi-view data is dynamically weighted according to the task requirements. Therefore, the present invention aims to improve the classification accuracy and model robustness of multi-view learning by dynamically weighting and fusing the different information in multi-view data.

[0008] The proposed method primarily dynamically selects the most informative features, eliminating the influence of redundant and noisy feature data and retaining the most useful features. It also weights different views to maximize the use of the specific information in each view, improving the quality and interpretability of the final data fusion. Ultimately, the fused data is accurately classified.

[0009] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0010] The multi-view data classification method based on dynamic self-attention capsule network includes the following steps:

[0011] S1. Multi-view feature self-attention learning:

[0012] For each view, calculate the feature self-attention weight and view self-attention weight, perform self-attention weighting, and obtain the data features after feature weighting and view weighting;

[0013] S2. Dynamic learning of view self-attention weights:

[0014] The weighted final data of each view is classified. The view self-attention weight is dynamically learned by the difference between the predicted probability value corresponding to the sample label category and the single weight value of the view, and the sample predicted probability and label, and finally the feature matrix is ​​obtained.

[0015] S3. Data classification: The concatenated feature matrix M is input into the capsule network composed of a fully connected layer, a main capsule layer, and a phenotype capsule layer to complete the task of accurately classifying the sample data.

[0016] Furthermore, step S1 includes the following steps:

[0017] S11, multi-view data input: the data samples and features corresponding to each view are taken as input;

[0018] S12. Learn feature self-attention weights through the encoder: Assign a self-attention weight to each feature of each view in all samples, multiply the obtained self-attention weight by the initial feature value element by element, perform attention weighting on the feature, and obtain feature data after feature self-attention weighting;

[0019] S13. First, use the encoder to reduce the dimension of each view to obtain a low-dimensional representation of the view feature data, and at the same time achieve dimension alignment of the view data; then, for the reduced-dimensional data, assign a single weight value based on the overall features of the view to each view, and directly multiply the weight value with the feature matrix to achieve view self-attention weighting of the data after feature self-attention weighting;

[0020] Furthermore, S12 is as follows:

[0021] S1201: The data corresponding to each view is input separately into the feature self-attention encoder implemented by the multi-layer perceptron MLP; the weight matrix dimension in the MLP is the same as the sample feature dimension of each view, representing the self-attention weight of the feature under each sample;

[0022] S1202: Performing element-wise multiplication of the obtained weight matrix and the initial eigenvalue matrix to weight the original eigenvalues;

[0023] S1203: Perform L1 norm constraint on the obtained weight matrix.

[0024] Furthermore, S13 is as follows:

[0025] S1301: For each view, the feature-weighted data is input into an independent view encoder for dimensionality reduction processing, that is, the feature dimension of each view is reduced, a low-dimensional representation of the feature is extracted, and the dimension of the view feature data is aligned;

[0026] S1302: Input the obtained low-dimensional feature representation into an MLP for view weight calculation to generate a single weight value for the view, indicating the different importance of each view in the overall feature fusion process;

[0027] S1303: Multiply the weight value obtained for each view by the corresponding low-dimensional feature representation to perform overall weighting processing.

[0028] Furthermore, step S2 is specifically as follows:

[0029] S21. For each view, the data features after feature and view weighting are classified by using an auxiliary classifier implemented by MLP to obtain the initial classification prediction result of each sample in a single view;

[0030] S22. Based on the initial view classification prediction results, dynamically learn and adjust the view self-attention weights: compare the predicted probability value corresponding to the sample label category of each view with the view single weight value, and the sample prediction probability with the sample label, and calculate the loss function; use the loss value to perform backpropagation training on the model to optimize the model parameters;

[0031] S23. Multi-view data splicing and integration: Use the splicing operation to splice the feature representations from different views together according to the samples to obtain the final feature matrix M.

[0032] Furthermore, step S3 is specifically as follows:

[0033] S31, data is sequentially input into the fully connected layer, the main capsule layer, and the phenotype capsule layer;

[0034] S32. Dynamic routing dynamically adjusts parameters in the network structure: The main capsule layer and the phenotype capsule layer use a dynamic routing mechanism to dynamically adjust the information transmission path between the two layers based on the similarity and correlation between capsules, and update the weight coefficient and coupling coefficient in the routing process;

[0035] S33. Obtain the final category prediction output probability and complete the classification task.

[0036] Furthermore, step S31 is specifically as follows:

[0037] S3101: The processed multi-view data is first passed through a fully connected layer with bias and activation function using Relu() to map the concatenated high-dimensional data dimension to a low dimension;

[0038] S3102: In the main capsule layer, convolution kernel is used to perform convolution operation on the features and convert the features into capsule vector representation. The length of the capsule vector in the main capsule layer is L, and the number of main capsules is N;

[0039] S3103: Each capsule in the main capsule layer generates a feature vector for the input data, and the length is L, the vector length of the main capsule layer;

[0040] S3104: The feature vector in each primary capsule and the weight matrix W in the phenotype capsule ij Perform matrix multiplication to generate the prediction vector of each phenotypic capsule j for the main capsule i .

[0041] Furthermore, in step S32, the feature information between the main capsule layer and the phenotype capsule layer is dynamically routed n times. The detailed steps of the dynamic routing process are as follows:

[0042] S3201: Calculate the routing weight coefficient for each pair of primary capsule and phenotype capsule , Initial value setting: When the data enters the capsule for calculation for the first time, it does not go through dynamic routing calculation, and the initial weight coefficient Set to 0;

[0043] S3202: Calculate the coupling coefficient of the phenotypic capsule : Use the softmax function to calculate the routing coefficients of all primary capsules to each phenotype capsule Normalize them so that their sum is 1;

[0044] The specific calculation is: ;

[0045] because The initial value is set to 0, so Initially, it is calculated as a series of uniformly distributed probability values; in the dynamic routing process, the coupling coefficient in each round of routing is calculated according to Update the value of

[0046] S3203: For each phenotype capsule j, calculate its activation value ;

[0047] S3204: Get the output vector of each phenotype capsule , use the Squash function to ensure that the length of the output vector is between 0 and 1:

[0048] ;

[0049] S3205: Update of routing parameters: For each final phenotypic capsule output, the weight coefficient is iteratively updated using the prediction vector between capsule pairs. The number of updates is the same as the number of routings.

[0050] The update strategy can be summarized as follows: ;

[0051] S3206: After the data is calculated for the first time to obtain the output vector, the newly updated weight coefficient is obtained After the value of , dynamic routing begins;

[0052] Repeat S3202 to S3205 until a predetermined number of iterations is reached;

[0053] In S33, the final phenotypic capsule output vector is converted into the final sample category prediction probability output through the softmax function. The number of capsules in the last phenotypic layer is the same as the sample category in the dataset, and the capsule vector lengths in the phenotypic capsule layer are both .

[0054] The present invention also provides a multi-view data classification system based on a dynamic self-attention capsule network, which is used to implement the multi-view data classification method based on a dynamic self-attention capsule network as described above, including a dynamic self-attention capsule network, which includes a multi-view feature self-attention learning module, a view self-attention dynamic learning module, and a capsule network module.

[0055] The multi-view feature self-attention learning module calculates the feature self-attention weight and the view self-attention weight for each view, performs self-attention weighting, and obtains the feature-weighted and view-weighted data features;

[0056] The view self-attention dynamic learning module is used to classify the weighted data of each view, dynamically learn the view self-attention weight through the predicted probability corresponding to the sample label category and the single weight value of the view, and the difference between the sample predicted probability and the label, and finally obtain the feature matrix M;

[0057] The capsule network module is used to input the spliced ​​feature matrix M into the capsule network composed of a fully connected layer, a main capsule layer, and a phenotype capsule layer to complete the task of accurately classifying the sample data.

[0058] Compared with the prior art, the advantages of the present invention are:

[0059] (1) For data from different views, by dynamically selecting and weighting the feature information of each view, we can fully utilize the useful information of each view while removing redundant and noisy data, thereby improving the quality of multi-view data fusion.

[0060] (2) For multi-classification tasks, this method can significantly improve the classification accuracy and enhance the robustness of classification.

[0061] (3) Applicable to various scenarios of multi-view data classification, including situations with high data dimensionality and feature diversity. By comprehensively considering the information and characteristics of different views, the model can perform well in complex data environments.

[0062] (4) The dynamic self-attention mechanism optimizes the information fusion between views, which can effectively capture the complementarity and correlation between views, and improve the adaptability and performance stability of the model when processing heterogeneous data. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 is a flow chart of the method of the present invention;

[0065] Figure 2 It is a system structure diagram of the present invention;

[0066] Figure 3 This is a specific implementation diagram of the dynamic routing mechanism of the present invention. DETAILED DESCRIPTION

[0067] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0068] like Figure 1 As shown, this embodiment provides a multi-view data classification method based on a dynamic self-attention capsule network. The method mainly eliminates the influence of redundant and noisy feature data by dynamically selecting the features with the largest amount of information, and retains the most useful features. At the same time, different views are weighted to maximize the use of the specific information of each view, thereby improving the quality and interpretation ability of the final data fusion. Finally, the fused data is accurately classified. In order to verify the effect of the data classification task proposed in the present invention in the context of multiple views, a breast cancer patient dataset provided by the TCGA (The cancer genome atlas) database is used to perform a multi-classification task. Specifically, breast cancer patients are divided into five molecular subtypes: normal-like, basal-like, human epidermal growth factor receptor 2 (HER2) enriched, luminal a and luminal b. The three view data respectively represent the sample's mRNA expression data, DNA methylation data, and miRNA expression data.

[0069] The specific steps include:

[0070] S1. Multi-view feature self-attention learning:

[0071] For each view, the feature self-attention weight and view self-attention weight are calculated, and self-attention weighting is performed to obtain the data features after feature weighting and view weighting.

[0072] S11. Multi-view data input: The data samples and features corresponding to each view are taken as input.

[0073] We selected multi-view feature data from a breast cancer dataset downloaded from the TCGA database and input the data samples and features corresponding to each view. The feature dimensions for the three views were 1000, 1000, and 503, respectively. The sample dimension used for model training was 612 samples, and the number of test samples was 263.

[0074] S12. Learn feature self-attention weights through the encoder: Assign a self-attention weight to each view feature in all samples, multiply the obtained self-attention weight by the initial feature value element by element, perform attention weighting on the feature, and obtain feature data after feature self-attention weighting.

[0075] The details are as follows:

[0076] S1201: The data corresponding to each view is input separately into the feature self-attention encoder implemented by the multi-layer perceptron MLP; the weight matrix dimension in the MLP is the same as the sample feature dimension of each view, representing the self-attention weight of the feature under each sample;

[0077] S1202: performing an element-wise multiplication operation on the obtained weight matrix and the initial feature matrix, symbolized by e, to weight the original eigenvalues;

[0078] S1203: The obtained weight matrix is ​​subjected to L1 norm constraint to improve sparsity.

[0079] S13. First, use the encoder to reduce the dimension of each view to obtain a low-dimensional representation of the view feature data and achieve dimension alignment of the view data. Then, for the reduced-dimensional data, assign a single weight value based on the overall feature of the view to each view, and directly multiply the weight value with the feature matrix. The symbol is represented as , perform view self-attention weighting on the data after feature self-attention weighting.

[0080] The details are as follows:

[0081] S1301: For each view, the feature-weighted data is input into an independent view encoder for dimensionality reduction. The hidden layer feature dimension is selected to be 500. That is, the feature dimension of each view is reduced to 500, and a low-dimensional representation of the feature is extracted to achieve dimensional alignment of the view feature data.

[0082] S1302: The obtained low-dimensional feature representation is input into an MLP for view weight calculation. The linear layer changes from 500 to 1 to generate a single weight value for the view, which represents the different importance of each view in the overall feature fusion process.

[0083] S1303: Multiply the weight value obtained for each view by the corresponding low-dimensional feature representation to perform overall weighting processing.

[0084] S2. Dynamic learning of view self-attention weights:

[0085] The weighted final data of each view is classified, and the view self-attention weight is dynamically learned through the predicted probability value corresponding to the sample label category and the single weight value of the view, and the difference between the sample predicted probability and the label, and finally the feature matrix is ​​obtained.

[0086] Step S2 is specifically as follows:

[0087] S21. For each view, the data features after feature and view weighting are classified by using an auxiliary classifier implemented by MLP to obtain the initial classification prediction result of each sample in a single view; the number of neurons in the last layer of the classifier is the same as the sample category of the dataset, that is, the number of neurons in the last layer of the auxiliary MLP classifier of the breast cancer dataset is 5.

[0088] S22. Based on the initial view classification prediction results, dynamically learn and adjust the view self-attention weights: compare the predicted probability value corresponding to the sample label category of each view with the view single weight value, and the sample prediction probability with the sample label, and calculate the loss function; use the loss value to perform backpropagation training on the model to optimize the model parameters;

[0089] S23. Multi-view data splicing and integration: Use the splicing operation to splice the feature representations from different views together according to the samples to obtain the final feature matrix M.

[0090] S3. Data classification: The concatenated feature matrix M is input into the capsule network composed of a fully connected layer, a main capsule layer, and a phenotype capsule layer to complete the task of accurately classifying the sample data.

[0091] Step S3 is as follows:

[0092] S31. The data is sequentially input into the fully connected layer, the main capsule layer, and the phenotype capsule layer.

[0093] Step S31 is specifically as follows:

[0094] S3101: The processed multi-view data is first passed through a fully connected layer with a bias and activation function using Relu() to map the concatenated high-dimensional data dimension to a low dimension. In this embodiment, the fused data dimension of 1500 is mapped to 150 dimensions.

[0095] S3102: In the main capsule layer, a 5×1 convolution kernel is used to perform a convolution operation on the features to convert the features into capsule vector representations. The capsule vector length in the main capsule layer is L, and the number of main capsules is N. In this embodiment, the capsule vector length is 4, and the number of main capsules is 16. For each capsule, its feature representation is (1, 73, 4).

[0096] S3103: Each capsule in the main capsule layer generates a feature vector for the input data, and the length is the vector length L of the main capsule layer; in this embodiment, the vector length is 4. The total representation of all 16 capsules in the main capsule layer can be expressed as: (73×16, 4), such as Figure 3 The main capsule layer structure represented in .

[0097] S3104: The feature vector in each primary capsule and the weight matrix W in the phenotype capsule ij Perform matrix multiplication to generate the prediction vector of each phenotypic capsule j for the main capsule i .

[0098] S32. Dynamic routing dynamically adjusts parameters in the network structure: The main capsule layer and the phenotype capsule layer use a dynamic routing mechanism to dynamically adjust the information transmission path between the two layers based on the similarity and correlation between capsules, and update the weight coefficient and coupling coefficient in the routing process, thereby effectively capturing and transmitting useful feature information.

[0099] In step S32, the feature information between the main capsule layer and the phenotype capsule layer is dynamically routed n times (for example, 3 times), and the information transmission path between the two layers is dynamically adjusted based on the similarity and correlation between the capsules, and the relevant parameters in the routing are updated. Figure 3 As shown in the figure, the detailed steps of the dynamic routing process are as follows:

[0100] S3201: Calculate the routing weight coefficient for each pair of primary capsule and phenotype capsule , Initial value setting: When the data enters the capsule for calculation for the first time, it does not go through dynamic routing calculation, and the initial weight coefficient Set to 0;

[0101] S3202: Calculate the coupling coefficient of the phenotypic capsule : Use the softmax function to calculate the routing coefficients of all primary capsules to each phenotype capsule Normalize them so that their sum is 1;

[0102] The specific calculation is: ;

[0103] because The initial value is set to 0, so Initially, it is calculated as a series of uniformly distributed probability values; in the dynamic routing process, the coupling coefficient in each round of routing is calculated according to Update the value of

[0104] S3203: For each phenotype capsule j, calculate its activation value ;

[0105] S3204: Get the output vector of each phenotype capsule , use the Squash function to ensure that the length of the output vector is between 0 and 1:

[0106] ;

[0107] S3205: Update of routing parameters: For each final phenotypic capsule output, the weight coefficient is iteratively updated using the prediction vector between capsule pairs. The number of updates is the same as the number of routings.

[0108] The update strategy can be summarized as follows: ;

[0109] S3206: After the data is calculated for the first time to obtain the output vector, the newly updated weight coefficient is obtained After the value of , dynamic routing begins;

[0110] Repeat S3202 to S3205 until the predetermined number of iterations (3) is reached. Through multiple iterations, the model gradually optimizes the coupling coefficient, making the information transmission path more accurate.

[0111] in Figure 3 In the example, one main capsule layer and two phenotypic capsule layers are used. Figure 3 u1, u2, ..., u in the main capsule layer represent all capsules, W 11 , W 12 Represents the weight matrix multiplied by the feature vector of the first primary capsule, W i1 , W i2 Represents the weight matrix multiplied by the feature vector of the i-th primary capsule to generate the prediction vector, and Represents the corresponding prediction vector generated, r 11 , r i1 , r 12 , r i2 represents the coupling coefficient, I1 and I2 represent the activation values ​​calculated by the two phenotypic capsules, and O1 and O2 represent the output vectors of the two phenotypic capsules.

[0112] S33. Obtain the final category prediction output probability and complete the classification task.

[0113] The final phenotypic capsule output vector is converted into the final sample category prediction probability output through the softmax function. The number of capsules in the last phenotypic layer is the same as the sample category in the dataset, and the capsule vector lengths in the phenotypic capsule layer are both That is, for the breast cancer dataset, the number of phenotypic capsules is 5. Finally, the final sample category prediction probability is calculated based on the capsule vector value calculated by the capsule network. The capsule vector length of each phenotypic capsule is 16.

[0114] like Figure 2 As shown, this embodiment also provides a multi-view data classification system based on a dynamic self-attention capsule network, which is used to implement a multi-view data classification method based on a dynamic self-attention capsule network, including a dynamic self-attention capsule network, which includes a multi-view feature self-attention learning module, a view self-attention dynamic learning module, and a capsule network module.

[0115] The multi-view feature self-attention learning module calculates the feature self-attention weight and the view self-attention weight for each view, performs self-attention weighting, and obtains the data features after feature weighting and view weighting.

[0116] The view self-attention dynamic learning module is used to classify the weighted data of each view, dynamically learn the view self-attention weight through the predicted probability corresponding to the sample label category and the single weight value of the view, and the difference between the sample predicted probability and the label, and finally obtain the feature matrix M.

[0117] The capsule network module is used to input the spliced ​​feature matrix M into the capsule network composed of a fully connected layer, a main capsule layer, and a phenotype capsule layer to complete the task of accurately classifying the sample data.

[0118] The functional implementation and data processing process of each module can be found in the detailed steps of the multi-view data classification method based on dynamic self-attention capsule network recorded above, which will not be repeated here.

[0119] It should be noted that the present invention uses the evaluation indicators of classification tasks, accuracy (Acc), F1 score (F1-score), and area under the ROC curve (AUC) to evaluate model performance, and conducts comparative tests with other multi-view data classification methods to evaluate model performance and verify that the model can more effectively complete the multi-view classification task and achieve better prediction results than the comparison models.

[0120] The comparison models are detailed as follows:

[0121] K-nearest neighbor algorithm (KNN), support vector machine (SVM), fully connected neural network (NN),

[0122] GMU: Gated Multimodal Unit (GMU) constructs intermediate multi-view representations by combining data to promote information fusion;

[0123] CF: Final multimodal representation cascade (CF), which integrates multimodal data by concatenating subsequent feature representations;

[0124] TMC: Trusted Multi-View Classification (TMC), taking into account the different confidence levels of each view, performs decision fusion based on the confidence level;

[0125] MOGONET: Multi-omics Graph Convolutional Network, which builds a graph for each view, uses GCN to obtain information, and uses correlation discovery network to explore correlations between multimodal data;

[0126] Dynamical: Dynamic fusion of credible multi-view classification, modeling feature and modality information to distinguish the specificity of different features and views;

[0127] MLCLNet: Multi-level Confidence Learning for Trusted Multi-view Classification, which uses feature and label confidence learning methods and uses GCN to obtain features for cross-modal label fusion.

[0128] The evaluation indicators are described in detail as follows:

[0129] ACC (Accuracy):

[0130] Definition: Accuracy is the ratio of the number of samples correctly predicted by a model to the total number of samples. Specifically: Accuracy (ACC) = Number of correctly predicted samples / Total number of samples / Total number of samples. ACC is the most common classification performance metric, used to measure the accuracy of a model's overall classification.

[0131] F1_macro (macro F1 score):

[0132] Definition: Macro F1 score is calculated for multi-class classification problems by calculating the F1 score (the harmonic mean of precision and recall) for each class and then averaging the F1 scores across all classes. It is a simple average of the F1 scores for all classes, regardless of the number of samples in each class. F1_macro focuses more on the performance of the minority class and is suitable for cases with imbalanced class distributions because it gives equal weight to each class.

[0133] F1_weighted (weighted F1 score):

[0134] Definition: The weighted F1 score is similar to the macro F1 score, but it takes a weighted average of the F1 scores for each class based on the class's proportion in the dataset. The weights are determined by the proportion of samples in each class in the dataset. F1_weighted is particularly important in datasets with class imbalances because it reflects the actual contribution of different classes to overall model performance. Compared to a simple average, it more accurately measures model performance in cases of uneven class distribution, preventing the minority class from overly influencing the overall evaluation.

[0135] AUC (Area Under the Curve):

[0136] Definition: AUC is an important metric for measuring the performance of classification models, particularly in binary classification tasks. It assesses a model's ability to distinguish between positive and negative examples. The ROC curve depicts the relationship between a model's false positive rate (FPR) and true positive rate (TPR) at different thresholds. It quantifies the overall performance of a model's ability to distinguish between positive and negative examples.

[0137] This example uses a breast cancer patient dataset to evaluate the model's performance in a multi-view, multi-classification task. As shown in Table 1, the model performs well across multiple metrics, including ACC (accuracy), F1_macro (macro F1 score), and F1_weighted (weighted F1 score). First, the model's ACC score of 0.875 outperforms most of the compared methods, demonstrating that the model accurately classifies the majority of samples and its strong overall classification performance. Furthermore, its F1_macro score is significantly higher than all other models, demonstrating its significant advantage in handling class-imbalanced data. Regarding the F1_weighted score, the model optimizes the overall classification task by comprehensively considering the imbalance in the number of samples across categories. These excellent performances fully demonstrate the model's strong adaptability and generalization capabilities in multi-view, multi-classification tasks.

[0138] Table 1 Comparison of the effects of different methods on the multi-classification dataset of breast cancer patients

[0139]

[0140] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Any changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should fall within the scope of protection of the present invention.

Claims

1. A multi-view data classification method based on a dynamic self-attention capsule network, characterized in that: The following steps are involved: S1. Multi-view feature self-attention learning: For each view, calculate the feature self-attention weight and view self-attention weight, perform self-attention weighting, and obtain the data features after feature weighting and view weighting; S11, multi-view data input: the data samples and their features corresponding to each view are taken as input; S12. Learn feature self-attention weights through the encoder: assign a self-attention weight to each feature of each view in all samples, multiply the obtained self-attention weight by the initial feature value element by element, perform attention weighting on the feature, and obtain feature data after feature self-attention weighting; S13, firstly, use the encoder to reduce the dimension of each view to obtain a low-dimensional representation of the view feature data, and realize the dimension alignment of the view data; then, for the data after dimension reduction, assign a single weight value based on the overall feature of the view to each view, and directly multiply the weight value with the feature matrix to realize the view self-attention weighting of the data after feature self-attention weighting; S2. Dynamic learning of view self-attention weights: Classify the weighted final data of each view, and dynamically learn the view self-attention weights through the predicted probability value corresponding to the sample label category and the single weight value of the view, and the difference between the sample predicted probability and the label, and finally obtain the feature matrix; S21. For each view, the data features after feature and view weighting are classified by using an auxiliary classifier implemented by MLP to obtain an initial classification prediction result of each sample in a single view; S22. According to the initial classification prediction results of the view, dynamically learn and adjust the view self-attention weight: compare the predicted probability value corresponding to the sample label category of each view with the single weight value of the view, and the sample prediction probability with the sample label, and calculate the loss function; use the loss value to perform back-propagation training on the model to optimize the parameters of the model; S23, multi-view data splicing and integration: The feature representations from different views are spliced ​​together according to samples using the splicing operation to obtain the final feature matrix M; S3, data classification: The concatenated feature matrix M is input into the capsule network composed of a fully connected layer, a main capsule layer, and a phenotype capsule layer to complete the task of accurately classifying the sample data.

2. The multi-view data classification method based on dynamic self-attention capsule network according to claim 1 is characterized in that: S12 is as follows: S1201: inputting the data corresponding to each view into the feature self-attention encoder implemented by the multi-layer perceptron MLP separately; the dimension of the weight matrix in the MLP is the same as the dimension of the sample feature of each view, indicating the self-attention weight of the feature under each sample; S1202: performing element-level multiplication operation on the obtained weight matrix and the initial feature matrix to weight the original eigenvalues; S1203: Perform L1 norm constraint on the obtained weight matrix.

3. The multi-view data classification method based on dynamic self-attention capsule network according to claim 1, characterized in that: S13 is as follows: S1301: For each view, input the feature-weighted data into an independent view encoder for dimensionality reduction processing, that is, reduce the feature dimension of each view, extract a low-dimensional representation of the feature, and achieve dimension alignment of view feature data; S1302: inputting the obtained low-dimensional feature representation into an MLP for view weight calculation to generate a single weight value of the view, indicating the different importance of each view in the overall feature fusion process; S1303: Multiply the weight value obtained for each view by the corresponding low-dimensional feature representation to perform overall weighted processing.

4. The multi-view data classification method based on dynamic self-attention capsule network according to claim 1, characterized in that: Step S3 is as follows: S31, data is sequentially input into the fully connected layer, the main capsule layer, and the phenotype capsule layer; S32, Dynamic routing dynamically adjusts the parameters in the network structure: The main capsule layer and the phenotype capsule layer use a dynamic routing mechanism to dynamically adjust the path of information transmission between the two layers based on the similarity and correlation between capsules, and update the weight coefficient and coupling coefficient in the routing process; S33. Obtain the final category prediction output probability and complete the classification task.

5. The multi-view data classification method based on dynamic self-attention capsule network according to claim 4 is characterized in that: Step S31 is specifically as follows: S3101: The processed multi-view data is first passed through a fully connected layer with bias and activation function using Relu() to map the concatenated high-dimensional data dimension to a low dimension; S3102: In the main capsule layer, convolution operation is performed on the features using the convolution kernel to convert the features into capsule vector representation. The length of the capsule vector in the main capsule layer is L, and the number of main capsules is N. S3103: Each capsule in the main capsule layer generates a feature vector for the input data, and the length is L, the vector length of the main capsule layer; S3104: The feature vector in each primary capsule and the weight matrix W in the phenotype capsule ij Perform matrix multiplication to generate the prediction vector of each phenotypic capsule j for the main capsule i 6. The multi-view data classification method based on dynamic self-attention capsule network according to claim 4, characterized in that: Step S32: The feature information between the main capsule layer and the phenotype capsule layer is dynamically routed n times. The detailed steps of the dynamic routing process are as follows: S3201: For each pair of primary capsule and phenotype capsule, calculate its routing weight coefficient p ij , Initial value setting: When the data enters the capsule for calculation for the first time, it does not go through dynamic routing calculation, and the initial weight coefficient p ij Set to 0; S3202: Calculate the coupling coefficient r of the phenotypic capsule ij : Use the softmax function to calculate the routing coefficient p of all primary capsules to each phenotype capsule ij Normalize them so that their sum is 1; The specific calculation is: Because p ij The initial value is set to 0, so r ij Initially, it is calculated as a series of uniformly distributed probability values; in the dynamic routing process, the coupling coefficient is calculated according to p in each round of routing. ij Update the value of S3203: For each phenotype capsule j, calculate its activation value S3204: Get the output vector O of each phenotype capsule j , use the Squash function to ensure that the length of the output vector is between 0 and 1: S3205: Update of routing parameters: for each final phenotype capsule output, the weight coefficient is iteratively updated through the prediction vector between capsule pairs, and the number of updates is the same as the number of routings; The update strategy can be summarized as: S3206: After the data is calculated for the first time to obtain the output vector, the newly updated weight coefficient p′ is obtained ij After the value of , dynamic routing starts; Repeat S3202 to S3205 until a predetermined number of iterations is reached; In S33, the final phenotypic capsule output vector is converted into the final sample category prediction probability output through the softmax function, where the number of capsules in the last phenotypic layer is the same as the sample category in the data set, and the capsule vector length in the phenotypic capsule layer is L′.

7. A multi-view data classification system based on dynamic self-attention capsule network, characterized in that The method for implementing the multi-view data classification method based on the dynamic self-attention capsule network as claimed in any one of claims 1 to 6 comprises a dynamic self-attention capsule network, wherein the dynamic self-attention capsule network comprises a multi-view feature self-attention learning module, a view self-attention dynamic learning module, and a capsule network module. The multi-view feature self-attention learning module calculates the feature self-attention weight and the view self-attention weight for each view, performs self-attention weighting, and obtains feature-weighted and view-weighted data features; The view self-attention dynamic learning module is used to classify the weighted data of each view, dynamically learn the view self-attention weight through the predicted probability corresponding to the sample label category and the single weight value of the view, and the difference between the sample predicted probability and the label, and finally obtain the feature matrix M; The capsule network module is used to input the concatenated feature matrix M into the capsule network composed of a fully connected layer, a main capsule layer, and a phenotype capsule layer to complete the task of accurately classifying the sample data.

Citation Information

Patent Citations

  • Image classification method based on improved capsule network

    CN116246110A

  • Multi-view multi-label classification method based on view position information

    CN116452893A