Multi-view data clustering method, device, computer equipment and storage medium
By obtaining the data sets to be classified from multiple perspectives, feature extraction and calculation are performed to obtain the relationship feature matrix, which solves the problem of low accuracy of high-dimensional data clustering in traditional methods and achieves more accurate multi-view data clustering results.
Patent Information
- Application Number
- CN202311665044.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-12-04
AI Technical Summary
The traditional multi-view clustering method cannot effectively reflect the data structure information in the Euclidean distance of sample points in high-dimensional data, resulting in low accuracy of clustering results.
By obtaining the data set to be classified from multiple perspectives, feature extraction and calculation are performed to obtain the relationship feature matrix, and the feature mapping indicator matrix is further calculated and spliced into a real-valued category indicator matrix to determine the clustering results under multiple perspectives.
It improves the accuracy of multi-view data clustering results, makes full use of hidden information in multiple views, and enhances the correlation structure and potential shared features between data.
Smart Images

Figure CN117725440B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a multi-view data clustering method, device, computer equipment and storage medium. Background Art
[0002] With the rapid development of computer technology, data is growing explosively. It is very meaningful to extract useful information from massive data. Cluster analysis refers to the analytical process of grouping a collection of physical or abstract objects into multiple classes consisting of similar objects. The goal of cluster analysis is to collect data for classification based on similarity. Clustering originates from many fields, including mathematics, computer science, statistics, biology, and economics. In different application fields, many clustering techniques have been developed. These technical methods are used to describe data, measure the similarity between different data sources, and classify data sources into different clusters.
[0003] Real-world data often has multiple perspectives. For example, web page data contains both image information and text information; video data contains both audio information and image information. The fundamental task of multi-view learning is to use the complementary information between different perspectives to improve learning performance. Multi-view clustering is a basic task of multi-view learning. Traditional multi-view clustering methods are mostly based on spectral clustering, and the Euclidean distance is mainly used to measure the similarity of sample points under different perspective representations. However, the intrinsic representation of sample points in the data is often in different subspaces, and the Euclidean distance of sample points under its high-dimensional representation cannot effectively reflect the structural information of the data, resulting in low accuracy of the clustering results. Summary of the invention
[0004] The present application proposes a multi-view data clustering method, apparatus, computer equipment and storage medium to improve the accuracy of multi-view data clustering results.
[0005] In a first aspect, a multi-view data clustering method is provided, comprising:
[0006] Obtain a dataset of target objects to be classified from multiple perspectives;
[0007] Extracting features of the data to be classified in each of the data sets to be classified to obtain data feature information corresponding to the data to be classified;
[0008] Calculating every two pieces of data feature information in each of the data sets to be classified to obtain a relationship feature matrix corresponding to each of the data sets to be classified;
[0009] Calculate the relationship feature information between every two of the relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each of the data sets to be classified;
[0010] Concatenating the feature mapping indicator matrices to obtain the real-valued category indicator matrix;
[0011] Based on the real-valued category indicator matrix, clustering results of the to-be-classified data set under multiple perspectives are determined.
[0012] In a second aspect, a multi-view data clustering device is provided, comprising:
[0013] An acquisition module is used to acquire a dataset to be classified of a target object under multiple viewing angles;
[0014] An extraction module, used for extracting features of the data to be classified in each of the data sets to be classified, to obtain data feature information corresponding to the data to be classified;
[0015] A first calculation module, used for calculating each two pieces of data feature information in each of the data sets to be classified, to obtain a relationship feature matrix corresponding to each of the data sets to be classified;
[0016] A second calculation module is used to calculate the relationship feature information between each two relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each of the data sets to be classified;
[0017] A concatenation module, used for concatenating the feature mapping indicator matrices to obtain the real-valued category indicator matrix;
[0018] A determination module is used to determine the clustering results of the to-be-classified data set under multiple perspectives based on the real-valued category indicator matrix.
[0019] Optionally, in some embodiments of the present application, the splicing module further includes:
[0020] A first determination submodule, configured to determine a symmetric positive definite matrix based on the feature mapping indicator matrix;
[0021] A decomposition submodule, used for decomposing the symmetric positive definite matrix to obtain an upper triangular matrix;
[0022] A first calculation submodule is used to calculate the upper triangular matrix and the feature mapping indicator matrix to obtain an orthogonal representation indicator matrix corresponding to the feature mapping indicator matrix;
[0023] The splicing submodule is used to splice the orthogonal representation indicator matrices to obtain the real-valued category indicator matrix.
[0024] Optionally, in some embodiments of the present application, the decomposition submodule further includes:
[0025] A decomposition unit is used to perform square root decomposition on the symmetric positive definite matrix based on a preset decomposition order to obtain the upper triangular matrix.
[0026] Optionally, in some embodiments of the present application, the first calculation module further includes:
[0027] A second calculation submodule is used to perform Euclidean distance calculation between each two pieces of data feature information in each of the data sets to be classified to obtain a distance difference matrix;
[0028] The second determining submodule is used to use the distance difference matrix as the relationship feature matrix.
[0029] Optionally, in some embodiments of the present application, it further includes:
[0030] A third calculation submodule is used to calculate the distance weight matrix between each two pieces of data feature information in each of the data sets to be classified;
[0031] The fourth calculation submodule is used to calculate the distance weight matrix and the distance difference matrix to obtain the relationship feature matrix.
[0032] Optionally, in some embodiments of the present application, the third calculation submodule further includes:
[0033] A calculation subunit, used for inputting each two pieces of data feature information in the data set to be classified into a pre-trained twin network for similarity calculation to obtain similarity values corresponding to the two pieces of data feature information;
[0034] A first determining subunit, configured to use the similarity value as a distance weight between two pieces of data feature information if the similarity value is greater than a similarity threshold;
[0035] A second determining subunit is used to obtain a preset value if the similarity value is less than or equal to the similarity threshold, and use the preset value as a distance weight between the two pieces of data feature information;
[0036] The third determining subunit is used to use each of the distance weights as the distance weight matrix.
[0037] Optionally, in some embodiments of the present application, the determining module further includes:
[0038] A transformation submodule, used for performing an orthogonal transformation on the real-valued category indicator matrix to obtain a discrete category indicator matrix;
[0039] The third determination submodule is used to determine the clustering results of the to-be-classified data set under multiple perspectives based on the discrete category indicator matrix.
[0040] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned multi-view data clustering method when executing the computer program.
[0041] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multi-view data clustering method are implemented.
[0042] The present application provides a multi-perspective data clustering method, device, computer equipment and storage medium, which obtains the data sets to be classified from multiple perspectives of the target object; extracts features of the data to be classified in each data set to be classified to obtain data feature information corresponding to the data to be classified; calculates every two data feature information in each data set to be classified to obtain the relationship feature matrix corresponding to each data set to be classified; calculates the relationship feature information between every two relationship feature matrices to obtain the feature mapping indicator matrix corresponding to each data set to be classified; splices each feature mapping indicator matrix to obtain a real-valued category indicator matrix; based on the real-valued category indicator matrix, determines the clustering results of the data sets to be classified from multiple perspectives. In the multi-perspective data clustering scheme provided by the present application, the relationship feature information belonging to the same target object in the relationship feature matrix in each data set to be classified is calculated to obtain the feature mapping indicator matrix corresponding to each data set to be classified, and then each feature mapping indicator matrix is spliced to obtain a real-valued category indicator matrix, and the clustering results are obtained based on the real-valued category indicator matrix. It can be seen that through the feature mapping indicator matrix, the real-valued category indicator matrix is obtained. The real-valued category indicator matrix can be used to fuse the data sets to be classified from multiple perspectives to make full use of the hidden information in the data sets to be classified from multiple perspectives, and then determine the clustering results based on the real-valued category indicator matrix, which is beneficial to the accuracy of the multi-perspective data clustering results. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 An application environment diagram of the multi-view data clustering method provided in an embodiment of the present application;
[0045] Figure 2A flowchart of a multi-view data clustering method provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of a structure for extracting features from classified data provided in an embodiment of the present application;
[0047] Figure 4 A structural block diagram of a multi-view data clustering device provided in an embodiment of the present application;
[0048] Figure 5 A structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0051] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0052] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0053] The multi-view data clustering method provided by the embodiment of the present invention can be applied in the following aspects: Figure 1In an application environment, the computer device 110 communicates with the user 120 through the network 130, and the user can operate the computer device 110. The computer device 110 can obtain the target object under multiple perspectives of the data set to be classified; extract the features of the data to be classified in each data set to be classified to obtain the data feature information corresponding to the data to be classified; calculate every two data feature information in each data set to be classified to obtain the relationship feature matrix corresponding to each data set to be classified; calculate the relationship feature information between every two relationship feature matrices to obtain the feature mapping indicator matrix corresponding to each data set to be classified; splice each feature mapping indicator matrix to obtain a real-valued category indicator matrix; based on the real-valued category indicator matrix, determine the clustering results of the data set to be classified under multiple perspectives, and display the clustering results of the data set to be classified through the computer device 110. In the present invention, by calculating the relationship feature information belonging to the same target object in the relationship feature matrix in each data set to be classified, the feature mapping indicator matrix corresponding to each data set to be classified is obtained, and then the feature mapping indicator matrices are spliced to obtain the real-valued category indicator matrix, and the clustering results are obtained based on the real-valued category indicator matrix. It can be seen that by using the feature mapping indicator matrix, a real-valued category indicator matrix can be obtained, and the data sets to be classified under multiple perspectives can be fused through the real-valued category indicator matrix to make full use of the hidden information in the data sets to be classified under multiple perspectives, and then based on the real-valued category indicator matrix, the clustering result is determined, which is conducive to the accuracy of the multi-perspective data clustering result. Among them, the computer device 110 can be but is not limited to various smart phones 110-1, tablet computers 110-2 and laptop computers 110-3. The present invention is described in detail below through specific embodiments.
[0054] See also Figure 2 As shown, Figure 2 A flowchart of a multi-view data clustering method provided by an embodiment of the present invention is provided. The method can be applied to both a terminal and a server. This embodiment is illustrated by applying it to a server. The multi-view data clustering method includes the following steps:
[0055] 101: Obtain a dataset of target objects to be classified under multiple perspectives.
[0056] With the continuous development of data acquisition technology, multi-view data is increasingly appearing in various application fields, such as video analysis, social media analysis, medical image processing, etc. With the help of computers and Internet technology, data can usually be collected from different fields, or obtained from various feature extractors. Therefore, the same data has different features and can be described from multiple perspectives, so that the target object can be obtained from multiple perspectives. The data set to be classified. For example, assuming that the target object is a cup image, and there are 3 cup images, the perspective may include three primary colors (RedGreenBlue, RGB) features, local binary patterns (Local Binary Pattern, LBP) features, directional gradient histograms (Histogram of OrientedGradient, HOG) features and scale-invariant feature transforms (Scale-invariant feature transform, SIFT), then, exemplarily, the corresponding data set to be classified under the perspective of the three primary colors (RedGreenBlue, RGB) features includes the three primary colors feature image of the first cup image, the three primary colors feature image of the second cup image, and the three primary colors image of the third cup image. For another example, the target object may be a network security situation assessment, and the data sets to be classified corresponding to each perspective may be obtained from network logs, sensors, web crawler data, etc. Each data set to be classified includes security situation information from the network log perspective, security situation information from the sensor perspective, and web crawler data from the web crawler data perspective.
[0057] For example, given x = {x (1) , x (2) ,...x (m)} is a dataset containing m perspectives, x (1) , x (2) ,...x (m) Indicates that the data set includes m perspectives of the data set to be classified. Represents the data of the vth perspective, d v represents the feature dimension corresponding to the data to be classified in the data set to be classified under the vth perspective, n is the preset number of target objects, which is a positive integer greater than 0, Represents the i-th data to be classified in the data set to be classified under the v-th perspective, i is a positive integer from 1 to n, and j is a positive integer from 1 to n.
[0058] 102: Extract features of the data to be classified in each data set to be classified to obtain data feature information corresponding to the data to be classified.
[0059] Among them, each data set to be classified corresponds to a sub-neural network, and all the data to be classified in the data set to be classified are input into the sub-neural network corresponding to each data set to be classified for feature extraction to obtain data feature information corresponding to the data to be classified.
[0060] like Figure 1 As shown, suppose the dataset to be classified includes v perspectives, that is, x (1) , x (2) ,...x (m) , where x (1) is the dataset to be classified from the first perspective, x (2) is the dataset to be classified from the second perspective, x (m) is the dataset to be classified from the mth perspective, is the i-th data to be classified in the data set to be classified under the v-th perspective. As input, it is sent to the vth sub-neural network corresponding to the data set to be classified under the vth perspective, and the output is
[0061] 103: Calculate every two pieces of data feature information in each data set to be classified to obtain a relationship feature matrix corresponding to each data set to be classified.
[0062] Among them, the similarity between each two data feature information in the relationship feature matrix is expressed in the Euclidean space, and the similarity reflects the similarity between two data to be classified in the same data set to be classified.
[0063] The cosine similarity algorithm can be used to calculate the feature information of every two data in each data set to be classified, and obtain the relationship feature matrix corresponding to each data set to be classified.
[0064] The distance difference matrix can be obtained by calculating every two data feature information in a data set to be classified, thereby determining the relationship feature matrix. That is, the step of "calculating every two data feature information in each data set to be classified to obtain the relationship feature matrix corresponding to each data set to be classified" includes:
[0065] (10) performing Euclidean distance calculation between every two data feature information in each data set to be classified to obtain a distance difference matrix;
[0066] (11) The distance difference matrix is used as the relationship feature matrix.
[0067] Since the similarity between each pair of data feature information in the dataset to be classified is constant in different projection space manifolds, the distance difference matrix corresponding to the dataset to be classified can be calculated according to the following formula (1):
[0068]
[0069] In the formula, is the distance difference matrix corresponding to the dataset to be classified at the vth perspective, that is, the relationship feature matrix. The size of the distance difference matrix is i*i, f i (v) is the feature vector outputted by the v-th sub-neural network corresponding to the v-th perspective data set to be classified after the i-th data set to be classified in the v-th perspective data set to be classified is input into the v-th perspective data set to be classified. The feature vector outputted after the j-th data to be classified in the data set to be classified at the v-th perspective is input into the v-th sub-neural network corresponding to the data set to be classified at the v-th perspective.
[0070] After determining the distance difference matrix, the distance weight matrix between each two data feature information in each data set to be classified can be calculated based on the distance weight matrix and the distance difference matrix. That is, after the step of "calculating the Euclidean distance between each two data feature information in each data set to be classified to obtain the distance difference matrix", it also includes:
[0071] (20) calculating the distance weight matrix between every two data feature information in each data set to be classified;
[0072] Clustering algorithm can be used to calculate the distance weight matrix between each two data feature information in each data set to be classified
[0073] (21) The distance weight matrix and the distance difference matrix are calculated to obtain the relationship feature matrix.
[0074] The relationship feature matrix can be calculated according to the following formula (2):
[0075]
[0076] In the formula, is the relationship feature matrix corresponding to the dataset to be classified at the vth perspective, is the distance difference matrix corresponding to the data set to be classified at the vth perspective. The size of the distance difference matrix is i*i. The distance weight matrix corresponding to the data set to be classified from the vth perspective is the wth distance weight matrix. ij The element is the feature vector f output by the i-th data to be classified in the v-th perspective data set to be classified after inputting the v-th sub-neural network corresponding to the v-th perspective data set to be classified i (v) The feature vector output by the vth sub-neural network corresponding to the data set to be classified at the vth perspective after the jth data set to be classified in the data set to be classified at the vth perspective is The distance weight between .
[0077] The twin network can be used to calculate each pair of data feature information in the to-be-classified data set to obtain the similarity value corresponding to the two data feature information, thereby determining the distance weight matrix based on each similarity value. That is, the step of "calculating the distance weight matrix between each pair of data feature information in each to-be-classified data set" includes:
[0078] (30) Inputting every two data feature information in the data set to be classified into the pre-trained twin network to calculate the similarity, and obtaining the similarity value corresponding to the two data feature information;
[0079] (31) If the similarity value is less than the similarity threshold, the similarity value is used as the distance weight between the two data feature information;
[0080] (32) If the similarity value is greater than or equal to the similarity threshold, a preset value is obtained and the preset value is used as the distance weight between the two data feature information;
[0081] (33) Each distance weight is used as a distance weight matrix.
[0082] If the similarity value is less than the similarity threshold, it means that the two data feature information are connected, that is, Connection, based on this, the similarity value is used as the distance weight between the two data feature information.
[0083] The distance weight matrix can be calculated according to the following formula (3):
[0084]
[0085] In the formula, The distance weight matrix corresponding to the data set to be classified from the vth perspective is the wth distance weight matrix. ij The element is the feature vector f output by the i-th data to be classified in the v-th perspective data set to be classified after inputting the v-th sub-neural network corresponding to the v-th perspective data set to be classified i (v) The feature vector output by the vth sub-neural network corresponding to the data set to be classified at the vth perspective after the jth data set to be classified in the data set to be classified at the vth perspective is The distance weight between The output of a sub-neural network after the i-th data to be classified in the data set to be classified under the v-th perspective is input into the twin network. The output of another sub-neural network after the j-th data to be classified in the data set to be classified from the v-th perspective is input into the twin network. δ is a constant parameter, which is determined according to the actual application scenario and is not specifically limited here.
[0086] 104: Calculate the relationship feature information between every two relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each data set to be classified.
[0087] Among them, the relationship feature information of the corresponding positions between each two relationship feature matrices is calculated to obtain the feature mapping indicator matrix corresponding to each data set to be classified. The feature mapping indicator matrix can represent the similarity between the relationship feature information at the same position in the relationship feature matrices of two different perspectives. The similarity is used to represent the similarity between the data to be classified in the data sets to be classified at different perspectives, that is, the feature mapping indicator matrix contains the correlation between each two data to be classified in each data set to be classified and the correlation between the data to be classified in the data sets to be classified at each two perspectives.
[0088] The relationship feature information between each two relationship feature matrices can be mapped to the Euclidean space to obtain the feature mapping indicator matrix corresponding to each data set to be classified. That is, the feature mapping indicator matrix can be expressed according to the following formula (4):
[0089]
[0090] Among them, F (v) is the feature mapping indication matrix corresponding to the data set to be classified at the v-th perspective, wherein the size of the feature mapping indication matrix is n*d, wherein n is the preset number of target objects, d is the feature dimension of the feature mapping indication information in the feature mapping indication matrix, is the i-th relation feature information in the relation feature matrix of the v-th perspective, is the i-th relationship feature information in the relationship feature matrix of the p-th perspective, v is a positive integer from 1 to m, p is a positive integer from 1 to m, and m is the number of perspectives.
[0091] Among them, F (v) The i-th row of data F i (v) It represents the representation of the i-th data to be classified in the v-th perspective in the feature mapping indicator matrix. Therefore, the real-valued category indicator matrix F v It can be regarded as a set of feature vectors corresponding to the data to be classified in the data set to be classified from different perspectives. Each feature vector corresponds to a feature mapping indicator vector in the feature mapping indicator matrix. Therefore, the real-valued category indicator matrix can capture the feature information of the data to be classified under different perspectives. (v) The feature vectors in can present the correlation structure and potential shared features between data, which is beneficial to improve the clustering accuracy of image datasets under multiple perspectives.
[0092] 105: Concatenate the feature mapping indicator matrices to obtain a real-valued category indicator matrix.
[0093] The size of the real-valued category indicator matrix is n*C, where n is the number of target objects, i.e., from 1 to n, and C is the category, i.e., each column in the real-valued category matrix represents the category of a target object.
[0094] A symmetric positive definite matrix can be determined based on the feature mapping indicator matrix, and a real-valued category indicator matrix can be determined based on the symmetric positive definite matrix and the feature mapping indicator matrix. That is, the step of "joining the feature mapping indicator matrices to obtain a real-valued category indicator matrix" includes:
[0095] (40) determining a symmetric positive definite matrix based on the characteristic mapping indicator matrix;
[0096] (41) Decompose the symmetric positive definite matrix to obtain an upper triangular matrix;
[0097] (42) calculating the upper triangular matrix and the characteristic mapping indicator matrix to obtain an orthogonal representation indicator matrix corresponding to the characteristic mapping indicator matrix;
[0098] (43) The orthogonal representation indicator matrices are concatenated to obtain a real-valued category indicator matrix.
[0099] According to the following formula (5):
[0100] (F (v) ) T F (v) =I (5)
[0101] In the formula, F (v) is the feature mapping indicator matrix corresponding to the dataset to be classified at the vth perspective, (F (v) ) T F (v) is the symmetric positive definite matrix of the vth perspective, and I is the identity matrix.
[0102] The singular value decomposition method can be used to decompose the symmetric positive definite matrix to obtain an upper triangular matrix.
[0103] The orthogonal representation indicator matrix is calculated according to the following formula (6):
[0104]
[0105] In the formula, The orthogonal representation indicator matrix corresponding to the dataset to be classified at the vth perspective, F (v) is the feature mapping indicator matrix corresponding to the dataset to be classified at the vth perspective, (L (v) ) T represents an upper triangular matrix.
[0106] The symmetric positive definite matrix can be decomposed by using the square root decomposition method. That is, the step of "decomposing the symmetric positive definite matrix to obtain an upper triangular matrix" includes:
[0107] (50) Perform square root decomposition on the symmetric positive definite matrix based on a preset decomposition order to obtain an upper triangular matrix.
[0108] The preset decomposition order may be from top to bottom and from left to right, that is, the symmetric positive definite matrix is decomposed by square root according to the decomposition order from top to bottom and from left to right to obtain an upper triangular matrix.
[0109] Because (F (v) ) T F (v) is a symmetric positive definite matrix, so there is a relationship (F (v) ) T F (v) =L (v) (L (v) ) T , at this time (L (v) ) -1 is a lower triangular matrix, and ((L (v) ) -1 ) T is an upper triangular matrix, so the following relationship holds:
[0110] (F (v) ) T F (v) =(L (v) ) -1 (F (v) ) T F (v) ((L (v) ) -1 ) T =(L (v) ) -1 LL T ((L (v) ) -1 ) T =L -1 LL T (L -1 ) T
[0111] Where L is a lower triangular matrix.
[0112] therefore, is a representation with orthogonality constraints.
[0113] 106: Based on the real-valued category indicator matrix, determine the clustering results of the data set to be classified under multiple perspectives.
[0114] Since each column in the real-valued category matrix represents a category of a target object, the category corresponding to the maximum category probability can be selected from each column as the category of the target object to achieve clustering, thereby determining the clustering results of the data set to be classified from multiple perspectives.
[0115] The real-valued category indicator matrix can be orthogonally transformed to obtain a discrete category indicator matrix, and the clustering results of the data set to be classified under multiple perspectives can be determined based on the discrete category indicator matrix. That is, the step of "determining the clustering results of the data set to be classified under multiple perspectives based on the real-valued category indicator matrix" includes:
[0116] (60) performing an orthogonal transformation on the real-valued category indicator matrix to obtain a discrete category indicator matrix;
[0117] (61) Based on the discrete category indicator matrix, the clustering results of the data set to be classified under multiple perspectives are determined.
[0118] Among them, the real-valued category indicator matrix can be orthogonally transformed through an orthogonal layer composed of a neural network to obtain a discrete category indicator matrix, that is, an orthogonal constraint can be imposed on the real-valued category indicator matrix, and the position corresponding to the value with the largest category probability in each column is mapped to 1, and the remaining positions are mapped to 0, so that the clustering label of each column can be obtained, thereby determining the clustering results of the data set to be classified from multiple perspectives based on the discrete category indicator matrix.
[0119] The above is the multi-view data clustering process of this application.
[0120] As mentioned above, the present application provides a multi-perspective data clustering method, apparatus, computer equipment and storage medium, by obtaining a data set to be classified under multiple perspectives of a target object; extracting features of the data to be classified in each data set to be classified to obtain data feature information corresponding to the data to be classified; calculating every two data feature information in each data set to be classified to obtain a relationship feature matrix corresponding to each data set to be classified; calculating the relationship feature information between every two relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each data set to be classified; splicing each feature mapping indicator matrix to obtain a real-valued category indicator matrix; based on the real-valued category indicator matrix, determining the clustering results of the data sets to be classified under multiple perspectives. In the multi-perspective data clustering scheme provided by the present application, by calculating the relationship feature information belonging to the same target object in the relationship feature matrix in each data set to be classified, a feature mapping indicator matrix corresponding to each data set to be classified is obtained, and then each feature mapping indicator matrix is spliced to obtain a real-valued category indicator matrix, and a clustering result is obtained based on the real-valued category indicator matrix. It can be seen that through the feature mapping indicator matrix, the real-valued category indicator matrix is obtained. The real-valued category indicator matrix can be used to fuse the data sets to be classified from multiple perspectives to make full use of the hidden information in the data sets to be classified from multiple perspectives, and then determine the clustering results based on the real-valued category indicator matrix, which is beneficial to the accuracy of the multi-perspective data clustering results.
[0121] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0122] In one embodiment, a multi-view data clustering device is provided, and the multi-view data clustering device corresponds to the multi-view data clustering method in the above embodiment. Figure 4 As shown, the multi-view data clustering device includes an acquisition module 201, an extraction module 202, a first calculation module 203, a second calculation module 204, a splicing module 205 and a determination module 206. The functional modules are described in detail as follows:
[0123] An acquisition module is used to acquire a dataset to be classified of a target object under multiple viewing angles;
[0124] An extraction module is used to extract features of the data to be classified in each data set to be classified, and obtain data feature information corresponding to the data to be classified;
[0125] The first calculation module is used to calculate every two pieces of data feature information in each data set to be classified to obtain a relationship feature matrix corresponding to each data set to be classified;
[0126] The second calculation module is used to calculate the relationship feature information between each two relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each data set to be classified;
[0127] A concatenation module, used for concatenating the feature mapping indicator matrices to obtain a real-valued category indicator matrix;
[0128] The determination module is used to determine the clustering results of the to-be-classified data set under multiple perspectives based on the real-valued category indicator matrix.
[0129] Optionally, in some embodiments, the splicing module further includes:
[0130] A first determination submodule is used to determine a symmetric positive definite matrix based on a feature mapping indicator matrix;
[0131] A decomposition submodule is used to decompose the symmetric positive definite matrix to obtain an upper triangular matrix;
[0132] A first calculation submodule is used to calculate the upper triangular matrix and the feature mapping indicator matrix to obtain an orthogonal representation indicator matrix corresponding to the feature mapping indicator matrix;
[0133] The concatenation submodule is used to concatenate the orthogonal representation indicator matrices to obtain a real-valued category indicator matrix.
[0134] Optionally, in some embodiments, the decomposition submodule further includes:
[0135] The decomposition unit is used to perform square root decomposition on the symmetric positive definite matrix based on a preset decomposition order to obtain an upper triangular matrix.
[0136] Optionally, in some embodiments, the first calculation module further includes:
[0137] The second calculation submodule is used to calculate the Euclidean distance between each pair of data feature information in each data set to be classified, and obtain a distance difference matrix;
[0138] The second determination submodule is used to use the distance difference matrix as the relationship feature matrix.
[0139] Optionally, in some embodiments, it further includes:
[0140] The third calculation submodule is used to calculate the distance weight matrix between every two data feature information in each data set to be classified;
[0141] The fourth calculation submodule is used to calculate the distance weight matrix and the distance difference matrix to obtain the relationship feature matrix.
[0142] Optionally, in some embodiments, the third calculation submodule further includes:
[0143] A calculation subunit is used to input each two data feature information in the data set to be classified into the pre-trained twin network for similarity calculation to obtain the similarity value corresponding to the two data feature information;
[0144] A first determination subunit is used to use the similarity value as a distance weight between two pieces of data feature information if the similarity value is greater than a similarity threshold;
[0145] A second determination subunit is used to obtain a preset value if the similarity value is less than or equal to the similarity threshold, and use the preset value as the distance weight between the two data feature information;
[0146] The third determination subunit is used to take each distance weight as a distance weight matrix.
[0147] Optionally, in some embodiments, the determining module further includes:
[0148] A transformation submodule, used for performing an orthogonal transformation on the real-valued category indicator matrix to obtain a discrete category indicator matrix;
[0149] The third determination submodule is used to determine the clustering results of the to-be-classified data set under multiple perspectives based on the discrete category indicator matrix.
[0150] In one embodiment, a computer device is provided, the internal structure diagram of which can be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer program is executed by the processor, the functions or steps of a multi-view data clustering method are implemented.
[0151] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0152] By obtaining the data sets to be classified of the target object under multiple perspectives; extracting features of the data to be classified in each data set to be classified to obtain data feature information corresponding to the data to be classified; calculating every two data feature information in each data set to be classified to obtain a relationship feature matrix corresponding to each data set to be classified; calculating the relationship feature information between every two relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each data set to be classified; splicing each feature mapping indicator matrix to obtain a real-valued category indicator matrix; based on the real-valued category indicator matrix, determining the clustering results of the data sets to be classified under multiple perspectives.
[0153] In this embodiment, the relationship feature information belonging to the same target object in the relationship feature matrix in each data set to be classified is calculated to obtain the feature mapping indicator matrix corresponding to each data set to be classified, and then the feature mapping indicator matrices are spliced to obtain a real-valued category indicator matrix, and the clustering result is obtained based on the real-valued category indicator matrix. It can be seen that the real-valued category indicator matrix can be obtained through the feature mapping indicator matrix, and the data sets to be classified under multiple perspectives can be fused through the real-valued category indicator matrix to make full use of the hidden information in the data sets to be classified under multiple perspectives, and then the clustering result is determined based on the real-valued category indicator matrix, which is conducive to the accuracy of the multi-perspective data clustering result.
[0154] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0155] By obtaining the data sets to be classified of the target object under multiple perspectives; extracting features of the data to be classified in each data set to be classified to obtain data feature information corresponding to the data to be classified; calculating every two data feature information in each data set to be classified to obtain a relationship feature matrix corresponding to each data set to be classified; calculating the relationship feature information between every two relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each data set to be classified; splicing each feature mapping indicator matrix to obtain a real-valued category indicator matrix; based on the real-valued category indicator matrix, determining the clustering results of the data sets to be classified under multiple perspectives.
[0156] In this embodiment, the relationship feature information belonging to the same target object in the relationship feature matrix in each data set to be classified is calculated to obtain the feature mapping indicator matrix corresponding to each data set to be classified, and then the feature mapping indicator matrices are spliced to obtain a real-valued category indicator matrix, and the clustering result is obtained based on the real-valued category indicator matrix. It can be seen that the real-valued category indicator matrix can be obtained through the feature mapping indicator matrix, and the data sets to be classified under multiple perspectives can be fused through the real-valued category indicator matrix to make full use of the hidden information in the data sets to be classified under multiple perspectives, and then the clustering result is determined based on the real-valued category indicator matrix, which is conducive to the accuracy of the multi-perspective data clustering result.
[0157] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0158] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0159] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0160] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A multi-view data clustering method, characterized in that: include: Acquire a data set to be classified under multiple viewing angles of a target object, wherein the target object is an image, and the viewing angles of the image include three primary color features, local binary features, directional gradient histogram features, and scale-invariant feature conversion; Extracting features of the data to be classified in each of the data sets to be classified to obtain data feature information corresponding to the data to be classified; Calculating every two pieces of data feature information in each of the data sets to be classified to obtain a relationship feature matrix corresponding to each of the data sets to be classified; Calculating the relationship feature information between every two of the relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each of the data sets to be classified, wherein the feature mapping indicator matrix represents the correlation between every two data sets to be classified in each data set to be classified and the correlation between the data sets to be classified in every two perspectives; Concatenating the feature mapping indicator matrices to obtain a real-valued category indicator matrix; Determining clustering results of the to-be-classified data set from multiple perspectives based on the real-valued category indicator matrix; The step of calculating each two pieces of data feature information in each of the data sets to be classified to obtain a relationship feature matrix corresponding to each of the data sets to be classified comprises: Performing Euclidean distance calculation between each pair of data feature information in each of the data sets to be classified to obtain a distance difference matrix; Using the distance difference matrix as the relationship feature matrix; After calculating the Euclidean distance between each pair of data feature information in each of the data sets to be classified to obtain a distance difference matrix, the method further includes: Calculate the distance weight matrix between each two pieces of data feature information in each of the data sets to be classified; Calculating the distance weight matrix and the distance difference matrix to obtain the relationship feature matrix; The calculating of the distance weight matrix between each two pieces of data feature information in each of the data sets to be classified comprises: Inputting every two pieces of data feature information in the data set to be classified into the pre-trained twin network to perform similarity calculation to obtain similarity values corresponding to the two pieces of data feature information; If the similarity value is greater than the similarity threshold, the similarity value is used as the distance weight between the two pieces of data feature information; If the similarity value is less than or equal to the similarity threshold, a preset value is obtained, and the preset value is used as the distance weight between the two pieces of data feature information; Each of the distance weights is used as the distance weight matrix.
2. The multi-view data clustering method according to claim 1, characterized in that: The step of concatenating the feature mapping indicator matrices to obtain the real-valued category indicator matrix includes: Determining a symmetric positive definite matrix based on the feature map indicator matrix; Decomposing the symmetric positive definite matrix to obtain an upper triangular matrix; Calculating the upper triangular matrix and the feature mapping indicator matrix to obtain an orthogonal representation indicator matrix corresponding to the feature mapping indicator matrix; The orthogonal representation indicator matrices are concatenated to obtain the real-valued category indicator matrix.
3. The multi-view data clustering method according to claim 2, characterized in that: The step of decomposing the symmetric positive definite matrix to obtain an upper triangular matrix includes: The symmetric positive definite matrix is decomposed by performing square root decomposition based on a preset decomposition order to obtain the upper triangular matrix.
4. The multi-view data clustering method according to claim 1, characterized in that: The step of determining clustering results of the to-be-classified data set from multiple perspectives based on the real-valued category indicator matrix includes: Performing an orthogonal transformation on the real-valued category indicator matrix to obtain a discrete category indicator matrix; Based on the discrete category indicator matrix, clustering results of the to-be-classified data set under multiple perspectives are determined.
5. A multi-view data clustering device, characterized in that: include: An acquisition module is used to acquire a data set to be classified under multiple viewing angles of a target object, wherein the target object is an image, and the viewing angles of the image include three primary color features, local binary features, directional gradient histogram features, and scale-invariant feature conversion; An extraction module, used for extracting features of the data to be classified in each of the data sets to be classified, to obtain data feature information corresponding to the data to be classified; A first calculation module, used for calculating each two pieces of data feature information in each of the data sets to be classified, to obtain a relationship feature matrix corresponding to each of the data sets to be classified; A second calculation module is used to calculate the relationship feature information between every two of the relationship feature matrices to obtain a feature mapping indicator matrix corresponding to each of the data sets to be classified, wherein the feature mapping indicator matrix represents the correlation between every two data sets to be classified in each data set to be classified and the correlation between the data sets to be classified in every two perspectives; A concatenation module, used for concatenating the feature mapping indicator matrices to obtain a real-valued category indicator matrix; A determination module, configured to determine clustering results of the to-be-classified data set from multiple perspectives based on the real-valued category indicator matrix; The first calculation module also includes: A second calculation submodule is used to perform Euclidean distance calculation between each two pieces of data feature information in each of the data sets to be classified to obtain a distance difference matrix; A second determination submodule is used to use the distance difference matrix as the relationship feature matrix; The first calculation module also includes: A third calculation submodule is used to calculate the distance weight matrix between each two pieces of data feature information in each of the data sets to be classified; A fourth calculation submodule, used for calculating the distance weight matrix and the distance difference matrix to obtain the relationship feature matrix; The third calculation submodule further includes: A calculation subunit, used for inputting every two pieces of data feature information in the data set to be classified into a pre-trained twin network for similarity calculation, to obtain similarity values corresponding to the two pieces of data feature information; A first determining subunit, configured to use the similarity value as a distance weight between two pieces of data feature information if the similarity value is greater than a similarity threshold; A second determining subunit is used to obtain a preset value if the similarity value is less than or equal to the similarity threshold, and use the preset value as a distance weight between the two pieces of data feature information; The third determining subunit is used to use each of the distance weights as the distance weight matrix.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the multi-view data clustering method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the multi-view data clustering method according to any one of claims 1 to 4 are implemented.
