Clustering method and system for solving similarity tensor based on third-order tensor self-representation
The clustering method of finding similarity tensors through third-order tensor self-representation solves the computational complexity and high-order information capture problems of traditional clustering algorithms on large-scale, high-dimensional data sets, and achieves stability and accuracy. Improvement, applicable to multi-view and single-view data.
Patent Information
- Application Number
- CN202410774803.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional clustering algorithms have high computational complexity when processing large-scale, high-dimensional data sets and are difficult to capture the high-order structural information of the data, resulting in poor clustering results. Multi-view clustering methods can easily lead to distortion of sample information when processing complex relationships. and distortion, affecting stability and reliability.
A clustering method based on the self-expression of a third-order tensor is used to calculate the similarity tensor. By constructing a third-order tensor and performing T-Product operation and Fourier transform, combined with the self-multiplication operation of the function F(A), the similarity is optimized. Tensors to obtain deep and accurate clustering results.
It effectively retains the integrity of sample information, improves algorithm stability and reliability, and deeply explores high-order structural information of multi-view data. It is suitable for large-scale, high-dimensional data sets and improves clustering accuracy and computing performance.
Smart Images

Figure CN118535935A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data mining and machine learning, and in particular relates to a clustering method and system based on third-order tensor self-representation to obtain similarity tensors. Background Art
[0002] Cluster analysis, as an important research topic in the field of data mining and machine learning, aims to integrate similar data objects into different clusters to reveal the inherent structure and pattern of the data. However, with the rapid development and widespread application of information technology, the structure and relationship of data objects are becoming increasingly complex, showing highly nonlinear and multidimensional characteristics. Faced with the trend of data complexity and diversification, the research on clustering algorithms faces unprecedented challenges.
[0003] Traditional clustering algorithms, such as K-Means and hierarchical clustering, can show good clustering effects in specific scenarios. However, when faced with large-scale, high-dimensional data sets, they often have poor clustering effects due to high computational complexity or loss of a lot of high-order data information.
[0004] To meet this challenge, the industry has proposed a variety of multi-view clustering methods and graph clustering methods. Multi-view clustering methods enrich data representation by integrating information from multiple views, thereby improving the accuracy of clustering. Graph clustering methods capture the complex relationships between data by building graph models, thereby achieving effective clustering. However, these methods still face many difficulties when dealing with multi-view data with complex relationships. On the one hand, they find it difficult to effectively capture the potential high-order structural information and high-order relationships in the data, which limits the depth and accuracy of clustering analysis; on the other hand, due to the differences between different views, these methods are prone to distortion and distortion of sample information during the processing process, which in turn affects the stability and reliability of clustering. Summary of the invention
[0005] The purpose of the present invention is to provide a clustering method for calculating similarity tensors based on third-order tensor self-representation, aiming to solve the technical problems existing in the prior art identified in the background technology.
[0006] The present invention is implemented as follows: a clustering method based on third-order tensor self-representation to obtain similarity tensors, the method comprising:
[0007] Step 1: read the data set to be processed from the computer external device or storage medium, convert it into a structured data file that meets the clustering standard, and perform data preprocessing;
[0008] Step 2: Based on the data feature information, a similarity matrix between corresponding sample points is constructed for each view of the data set, and according to the definition of function F(A), that is, function F(A) is the accumulation of the self-multiplication results of the similarity matrix between sample points, a corresponding function F(A) is constructed for each view of the data set;
[0009] Step 3: Input the dataset based on the structural relationship of the dataset view and the characteristic information of the data Construct the corresponding third-order tensor according to the specific tensor dimension and structure Where n is the number of samples in the dataset, k is the number of views in the dataset, and d v is the dimension of samples in view v;
[0010] Step 4: Perform a T-Product operation to perform a third-order tensor self-representation on the similarity tensor of the learning data set, perform a Fourier transform on the constructed third-order tensor as a whole, map the data into the Fourier domain, and slice the tensor from the front according to the structure of the data set view, solve the sub-problem matrix slice by slice, and then recombine the slices into a complete third-order tensor and perform an inverse Fourier transform to obtain the preliminary result of the similarity tensor;
[0011] Step 5: Use the function F(A) defined in step 2 to correct and optimize the obtained similarity tensor;
[0012] Step 6: Check whether the learning and optimization results of the similarity tensor meet the preset qualification conditions. If not, re-execute steps 4 and 5 for iterative optimization until the qualification conditions are met.
[0013] Step 7: Based on the learned and optimized similarity tensor, reduce the dimension of the tensor to obtain a representative similarity matrix, and cluster the data based on the representative similarity matrix to obtain the final clustering result.
[0014] As a further solution of the present invention, the data preprocessing operation includes: cleaning the input data set to remove duplications, missing values and outliers, and during the cleaning process, setting thresholds according to data characteristics, filtering and correcting data that exceeds the threshold range, and then normalizing the data to convert the data to the same scale range.
[0015] 3. The method according to claim 1, characterized in that the function F(A)=A 1 +A 2 +A 3 +……+A i +……+A p , where A is the similarity matrix between sample points, i is the order of the matrix multiplication operation, and p is the total number of terms in the formula.
[0016] As a further solution of the present invention, the function Where A is the similarity matrix between sample points, i is the order of the matrix multiplication operation, and p is the total number of terms in the formula.
[0017] As a further solution of the present invention, slicing is started from the front side of the tensor according to the structure of the data set view. In the slicing operation, parameters including the dimension of the slicing matrix and the number of slices are involved, which are adjusted according to the dimension of the input data set and the number of views.
[0018] Another object of the present invention is to provide a clustering system for obtaining similarity tensors based on third-order tensor self-representation, the system comprising:
[0019] The data set extraction module is used to read the data set to be processed from the computer external device or storage medium, convert it into a structured data file that meets the clustering standard, and perform data preprocessing;
[0020] The function construction module is used to construct the similarity matrix between the corresponding sample points for each view of the data set according to the data feature information, and construct the corresponding function F(A) for each view of the data set according to the definition of the function F(A), that is, the function F(A) is the accumulation of the self-multiplication operation results of the similarity matrix between the sample points;
[0021] Tensor information building module, used to input data sets based on the structural relationship of data set views and the feature information of data. Construct the corresponding third-order tensor according to the specific tensor dimension and structure Where n is the number of samples in the dataset, k is the number of views in the dataset, and d v is the dimension of samples in view v;
[0022] The similarity tensor acquisition module is used to perform a third-order tensor self-representation learning dataset similarity tensor through T-Product operation, perform a Fourier transform on the constructed third-order tensor as a whole, map the data into the Fourier domain, and slice the tensor from the front according to the structure of the dataset view, solve the sub-problem matrix slice by slice, and then recombine the slices into a complete third-order tensor and perform an inverse Fourier transform to obtain the preliminary result of the similarity tensor;
[0023] A tensor data optimization module, used to modify and optimize the obtained similarity tensor using the function F(A) defined in step 2;
[0024] The data iteration optimization module is used to check whether the learning and optimization results of the similarity tensor meet the preset qualification conditions. If the qualification conditions are not met, steps 4 and 5 are re-executed to perform iterative optimization until the qualification conditions are met;
[0025] The result acquisition module is used to reduce the dimension of the tensor based on the learned and optimized similarity tensor to obtain a representative similarity matrix, and cluster the data based on the representative similarity matrix to obtain the final clustering result.
[0026] The beneficial effects of the present invention are:
[0027] 1. By introducing the third-order tensor representation and T-Product operation, the clustering algorithm of the present invention effectively utilizes the underlying complementary information of multi-view data and the specific attributes with heterogeneous characteristics, so that the clustering algorithm can be as unaffected as possible by the noise from other views during the processing process, thereby effectively retaining the integrity of the sample information and greatly improving the stability and reliability of the algorithm.
[0028] 2. The clustering algorithm of the present invention flexibly applies the function F(A) related to the similarity matrix between data sample points, which can flexibly explore the topological information of different levels in the data. Combined with the self-representation characteristics of the third-order tensor for data, the algorithm can deeply explore the high-order structural information and high-order relationships in multi-view data, which can deepen the clustering analysis and further improve the accuracy of the algorithm.
[0029] 3. The clustering algorithm of the present invention is suitable for large-scale, high-dimensional data sets, has excellent computing performance and scalability, can provide strong technical support for various practical application scenarios, and is an efficient clustering algorithm with broad application prospects.
[0030] 4. In addition to being applicable to multi-view data, the clustering algorithm of the present invention is also applicable to traditional single-view data, and has the advantage of a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flowchart of a clustering method for obtaining similarity tensors based on third-order tensor self-representation provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0033] Step 1: Get the data set to be processed as the input of the computer. First, read the data set to be processed from the computer external device or storage medium. The data set can be multi-view or single-view, and the data type can be in various forms such as text and image. However, no matter what form the data set is, it needs to be converted into a structured data file that meets the clustering standard. The single-view data set can copy the data as another auxiliary view.
[0034] Then, data preprocessing is performed. Data preprocessing operations including but not limited to the following can be performed according to standard procedures: Clean the input data set to remove duplicate, missing or outlier values. During the cleaning process, thresholds can be set according to data characteristics to filter or correct data that exceeds the threshold range. Normalize the data to convert the data to the same scale range to ensure comparability between different features. Normalization can use methods including but not limited to maximum and minimum value normalization, Z-score normalization, etc.;
[0035] Step 2: Construct the similarity matrix between sample points and function F(A). According to the data feature information, construct the similarity matrix between sample points for each view of the data set. The similarity matrix between sample points can be constructed by methods including but not limited to similarity-based methods. Then, according to the definition of function F(A) ( Or F(A)=A 1 +A 2 +A 3 +……+A i +……+A p , where A is the similarity matrix between sample points, i is the order of the matrix multiplication operation, and p is the total number of terms in the formula), that is, the function F(A) is the accumulation of the self-multiplication results of the similarity matrix between sample points, and the corresponding function F(A) is constructed for each view of the data set. Usually, the value of p can be adjusted according to the complexity of the data and computing resources.
[0036] Step 3: Construct a third-order tensor. Based on the structural relationship of the dataset view and the characteristic information of the data, the input dataset Construct the corresponding third-order tensor according to the specific tensor dimension and structure Where n is the number of samples in the dataset, k is the number of views in the dataset, and d v is the dimension of samples in view v.
[0037] Step 4. Use the T-Product operation to perform a third-order tensor self-representation to learn the similarity tensor of the dataset. First, perform a Fourier transform on the constructed third-order tensor as a whole to convert it into a specific form, that is, map the data into the Fourier domain. Then, slice from the front of the tensor according to the structure of the dataset view, and solve the sub-problem matrix slice by slice. In the slicing operation, parameters such as the dimension of the slice matrix and the number of slices are involved, which need to be adjusted according to the dimension of the input dataset and the number of views. Finally, the slices are recombined into a complete third-order tensor and an inverse Fourier transform is performed, that is, the data is remapped to the real number domain to obtain the preliminary result of the similarity tensor.
[0038] Step 5: Correction and optimization of the similarity tensor. Using the function F(A) defined in step (3), the similarity tensor obtained by the third-order tensor self-representation learning through the T-Product operation is corrected and optimized. The parameter p in F(A) can be adjusted according to the actual situation to obtain a better correction effect.
[0039] Step 6, check the results and iterate the optimization. Check whether the learning and optimization results of the similarity tensor meet the preset qualification conditions. If the qualification conditions are not met, re-execute steps (5) and (6) and perform iterative optimization until the qualification conditions are met. The iterative optimization method can use methods including but not limited to the ADMM algorithm, so the preset qualification conditions need to be flexible according to the iterative optimization method adopted, including but not limited to evaluation indicators such as the error of the similarity tensor is less than the set threshold and the consistency of the similarity tensor meets a certain standard.
[0040] Reduced dimensionality similarity tensor. Based on the learned and optimized similarity tensor, a suitable method (such as averaging, weighted summation, etc.) is used to reduce the dimensionality of the tensor to obtain a representative similarity matrix.
[0041] Step 7: Clustering based on the similarity matrix. Based on the representative similarity matrix, use a suitable clustering algorithm (such as spectral clustering, hierarchical clustering, etc.) to cluster the data. Among them, you can choose a suitable clustering algorithm and parameters according to the characteristics and needs of the data. After obtaining the clustering results, decide whether to visualize the results or perform subsequent analysis as needed.
[0042] In addition, the remaining parameters of the algorithm of the present invention not mentioned in the specific implementation manner are supplemented by the following description:
[0043] (1) α of the learning similarity tensor: The parameter α is used to control the weight or influence of the third-order tensor representation through the T-Product operation in the process of learning the similarity tensor. The value range of α can be adjusted according to the specific data set and computing resources. A larger α value can make the result of the third-order tensor representation operation occupy a larger proportion in the similarity tensor, thereby learning more of the underlying complementary information in the data set and better preserving the integrity of the sample information. A smaller α value helps to avoid the similarity tensor being overly affected by the high-order structural information in the data set, resulting in the loss of generality and authenticity of the result. In practical applications, the appropriate α value can be determined by methods including but not limited to cross-validation or grid search.
[0044] (2) Optimizing β of the similarity tensor: The parameter β is used to adjust the correction strength of the function F(A) in the process of optimizing the similarity tensor. The value of β can also be adjusted according to the characteristics and requirements of the data set. A larger β value can make the correction operation more significant, which helps to improve the quality of the similarity tensor more through higher-order relationships in the data set, thereby more flexibly exploring topological information at different levels in the data. A smaller β value can make the correction process more gentle and avoid causing excessive disturbances to the matrix. By adjusting the β value, better optimization effects can be achieved while ensuring the stability of the algorithm. In practical applications, the appropriate β value can also be determined by methods including but not limited to cross-validation or grid search.
[0045] (3) Parameter w of each view in the data set: In the present invention, the data set can be divided into a single view or multiple views, but each view must correspond to a parameter w. The parameter w is used to control the weight or influence of the function F(A) corresponding to each view when optimizing the similarity tensor. The value of w can be adjusted according to the importance of different views of the data. A larger w value can enable more important views to provide more high-order information in the optimization, which helps to capture key high-order information in the data set. A smaller w value can make the optimization effect of the view more localized, which helps to optimize the similarity matrix more reasonably and accurately. Reasonable selection of the w value can improve the accuracy and robustness of clustering while maintaining the optimization efficiency.
[0046] By reasonably setting and adjusting these parameters, the clustering algorithm of the present invention can better adapt to different data sets and clustering requirements, and achieve more accurate and efficient data clustering. It should be noted that the values of the above parameters are not fixed and can be adjusted and optimized according to the specific application scenario and data set characteristics. In practical applications, the appropriate value range of these parameters can be determined by experiments or empirical rules, and the parameters can be selected in combination with methods including but not limited to cross-validation.
[0047] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0048] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0049] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0050] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A clustering method and system based on third-order tensor self-representation to obtain similarity tensor, It is characterized in that The method comprises: Step 1: read the data set to be processed from the computer external device or storage medium, convert it into a structured data file that meets the clustering standard, and perform data preprocessing; Step 2: Based on the data feature information, a similarity matrix between corresponding sample points is constructed for each view of the data set, and according to the definition of function F(A), that is, function F(A) is the accumulation of the self-multiplication results of the similarity matrix between sample points, a corresponding function F(A) is constructed for each view of the data set; Step 3: Input the dataset based on the structural relationship of the dataset view and the characteristic information of the data Construct the corresponding third-order tensor according to the specific tensor dimension and structure Where n is the number of samples in the dataset, k is the number of views in the dataset, and d v is the dimension of samples in view v; Step 4: Perform a T-Product operation to perform a third-order tensor self-representation on the similarity tensor of the learning data set, perform a Fourier transform on the constructed third-order tensor as a whole, map the data into the Fourier domain, and slice the tensor from the front according to the structure of the data set view, solve the sub-problem matrix slice by slice, and then recombine the slices into a complete third-order tensor and perform an inverse Fourier transform to obtain the preliminary result of the similarity tensor; Step 5: Use the function F(A) defined in step 2 to correct and optimize the obtained similarity tensor; Step 6: Check whether the learning and optimization results of the similarity tensor meet the preset qualification conditions. If not, re-execute steps 4 and 5 for iterative optimization until the qualification conditions are met. Step 7: Based on the learned and optimized similarity tensor, reduce the dimension of the tensor to obtain a representative similarity matrix, and cluster the data based on the representative similarity matrix to obtain the final clustering result.
2. The method according to claim 1, It is characterized in that The data preprocessing operation includes: cleaning the input data set to remove duplicates, missing values and outliers, and during the cleaning process, setting thresholds according to data characteristics, filtering and correcting data that exceeds the threshold range, and then normalizing the data to convert the data to the same scale range.
3. The method according to claim 1, It is characterized in that The function F(A)=A 1 +A 2 +A 3 +……+A i +……+A p , where A is the similarity matrix between sample points, i is the order of the matrix multiplication operation, and p is the total number of terms in the formula.
4. The method according to claim 1, It is characterized in that The function Where A is the similarity matrix between sample points, i is the order of the matrix multiplication operation, and p is the total number of terms in the formula.
5. The method according to claim 1, It is characterized in that The slicing is started from the front side of the tensor according to the structure of the data set view. In the slicing operation, parameters including the dimension of the slicing matrix and the number of slices are involved, which are adjusted according to the dimension of the input data set and the number of views.
6. A clustering method and system based on third-order tensor self-representation to obtain similarity tensor, It is characterized in that The system comprises: The data set extraction module is used to read the data set to be processed from the computer external device or storage medium, convert it into a structured data file that meets the clustering standard, and perform data preprocessing; The function construction module is used to construct the similarity matrix between the corresponding sample points for each view of the data set according to the data feature information, and construct the corresponding function F(A) for each view of the data set according to the definition of the function F(A), that is, the function F(A) is the accumulation of the self-multiplication operation results of the similarity matrix between the sample points; Tensor information building module, used to input data sets based on the structural relationship of data set views and the feature information of data. Construct the corresponding third-order tensor according to the specific tensor dimension and structure Where n is the number of samples in the dataset, k is the number of views in the dataset, and d v is the dimension of samples in view v; The similarity tensor acquisition module is used to perform a third-order tensor self-representation learning dataset similarity tensor through T-Product operation, perform a Fourier transform on the constructed third-order tensor as a whole, map the data into the Fourier domain, and slice the tensor from the front according to the structure of the dataset view, solve the sub-problem matrix slice by slice, and then recombine the slices into a complete third-order tensor and perform an inverse Fourier transform to obtain the preliminary result of the similarity tensor; A tensor data optimization module, used to modify and optimize the obtained similarity tensor using the function F(A) defined in step 2; The data iteration optimization module is used to check whether the learning and optimization results of the similarity tensor meet the preset qualification conditions. If the qualification conditions are not met, steps 4 and 5 are re-executed to perform iterative optimization until the qualification conditions are met; The result acquisition module is used to reduce the dimension of the tensor based on the learned and optimized similarity tensor to obtain a representative similarity matrix, and cluster the data based on the representative similarity matrix to obtain the final clustering result.
