A method, apparatus, terminal device, and storage medium for high-dimensional data clustering based on random mapping.
By performing dimensionality reduction and random mapping on high-dimensional data, a random mapping matrix of independent and identically distributed Gaussian random variables is generated, which solves the privacy protection problem in high-dimensional data clustering and achieves effective protection of high-dimensional data and improved accuracy of clustering results.
Patent Information
- Application Number
- CN202411097607.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2044-08-12
AI Technical Summary
Existing privacy protection algorithms cannot effectively protect privacy data when clustering high-dimensional data. They are easily affected by redundant features, leading to local optima in the clustering results. Cluster centers are easily exposed, and sensitive information can be easily obtained by attackers.
By reducing the dimensionality of high-dimensional data and retaining features related to the dependent variable, a random mapping matrix of independent and identically distributed Gaussian random variables is generated. The dimensionality-reduced data is then subjected to random mapping transformation to generate data to be clustered. The k-means algorithm is then used for clustering to generate clustering results.
It effectively protects the privacy of high-dimensional data, reduces interference from redundant features, avoids local optima in clustering, and improves the accuracy and security of clustering results.
Smart Images

Figure CN118965032B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of privacy-preserving data mining technology, and in particular to a high-dimensional data clustering method, apparatus, terminal device, and storage medium based on random mapping. Background Technology
[0002] In recent years, with the rise of big data technology and the rapid development of information technology, various organizations, such as medical institutions and educational institutions, generate a large amount of high-dimensional data every day. Data mining techniques can extract valuable data from this high-dimensional data for utilization, thereby enabling scientific decision-making. Clustering, as one of the most effective algorithms used in data mining, has been widely adopted. However, as clustering mining techniques mature in the field of high-dimensional data, clustering analysis may involve a large amount of sensitive information, such as personal information and trade secrets. Therefore, with the development of computing technology and data mining, information security applications not only require generators capable of outputting random numbers in various forms, but also need more in-depth research and analysis of privacy-preserving clustering to provide theoretical support for related applications.
[0003] Currently, with the rapid development of information technology, people's demand for highly secure clustered data is gradually increasing. However, when clustering high-dimensional data, current privacy protection algorithms are still unable to effectively protect the privacy data within high-dimensional data. Because high-dimensional data contains numerous features, and current privacy protection algorithms are easily affected by redundant features, their clustering results are prone to local optima. Ultimately, this makes the cluster centers easily exposed. When the cluster centers are exposed, attackers can use this information to obtain sensitive information from the original data.
[0004] Therefore, how to effectively protect the privacy of high-dimensional data has become an urgent problem to be solved. Summary of the Invention
[0005] This invention provides a method, apparatus, terminal device, and storage medium for high-dimensional data clustering based on random mapping. By reducing the dimensionality of high-dimensional data and using a random mapping matrix to protect privacy data before clustering, the privacy data contained in the high-dimensional data can be protected during clustering.
[0006] An embodiment of the present invention provides a high-dimensional data clustering method based on random mapping, comprising: Obtain a high-dimensional dataset consisting of several features and several pre-defined dependent variables; Based on the dependent variables, determine several relevant features in the high-dimensional dataset, and generate dimensionality-reduced data based on the relevant features. Generate the first random mapping matrix based on the number of relevant features in the dimensionality-reduced data; Wherein, the elements in the first random mapping matrix are all independent and identically distributed Gaussian random variables; Based on the first random mapping matrix, a random mapping transformation is performed on the dimensionality-reduced data to generate a feature transformation matrix; Generate a second random mapping matrix based on the feature transformation matrix and the first random mapping matrix; The second random mapping matrix is used to perform a random mapping transformation on the dimensionality-reduced data to generate data to be clustered; The data to be clustered is used as an initial cluster center, and the clustering operation is repeated. When the number of cluster centers generated by the clustering operation is not less than the preset cluster center target value, the clustering result of the high-dimensional dataset is generated.
[0007] Furthermore, the step of determining several relevant features in the high-dimensional dataset based on several dependent variables, and generating dimensionality-reduced data based on several relevant features, includes: The correlation score between each dependent variable and each feature in the high-dimensional dataset is calculated using the symmetric uncertainty formula. Based on the correlation scores, several initial redundant features and several initial correlated features are determined; The Pearson correlation coefficient formula was used to calculate the Pearson coefficient between each dependent variable and each initial correlation feature; Initial correlation features that are less than a preset coefficient threshold are used as redundant features, and initial correlation features that are not less than a preset coefficient threshold are used as correlation features. Dimensionally reduced data is then generated based on these correlation features.
[0008] Furthermore, after determining several initial redundancy features and several initial correlation features, the process also includes: Normalize the initial data under each initial correlation feature to generate normalized data under each initial correlation feature; Based on the normalized data under each initial correlation feature, plot the normal distribution function of each initial correlation feature and calculate the standard deviation of each state distribution function; Get the preset data filtering rules; When the data filtering rule is determined to be an appropriate rule, normalized data that are greater than twice the standard deviation are deleted. When the data filtering rule is determined to be a strict rule, normalized data that are greater than the standard deviation are deleted.
[0009] Furthermore, the feature transformation matrix includes: a feature matching matrix and a noise interference matrix to be added; The step of performing a random mapping transformation on the dimensionality-reduced data based on the first random mapping matrix to generate a feature transformation matrix includes: The first random mapping matrix is orthogonalized, and then the orthogonalized first random mapping matrix is split to generate a first random mapping submatrix and a second random mapping submatrix. The first random mapping submatrix and the second random mapping submatrix are used to perform random mapping transformation on the dimensionality reduction data to generate a feature matching matrix and a noise interference matrix to be added.
[0010] Furthermore, generating the second random mapping matrix based on the feature transformation matrix and the first random mapping matrix includes: The noise-adding operation is performed on the interference matrix to be noised to generate a noise-added interference matrix; A second random mapping matrix is generated based on the first random mapping matrix, the second random mapping matrix, the feature matching matrix, and the noise interference matrix.
[0011] Furthermore, the clustering partitioning operation includes: Obtain a plurality of first cluster centers; wherein, initially, the first cluster centers are the initial cluster centers; Clustering operations are performed on the data to be clustered based on several of the first cluster centers; Calculate the total error value of each first cluster center, and divide the first cluster center with the smallest total error value into two second cluster centers; Calculate the total number of centers in the first and second clusters; When the total number of cluster centers is less than the preset target value for cluster centers, the current first cluster center and second cluster center are used as the first cluster center required for the next round of clustering operations; The clustering operation ends when the total number of cluster centers is not less than the preset target value for cluster centers.
[0012] Another embodiment of the present invention provides a high-dimensional data clustering device based on random mapping, comprising: The data acquisition module is used to acquire a high-dimensional dataset consisting of several features and several preset dependent variables; The data dimensionality reduction module is used to determine several relevant features in the high-dimensional dataset based on several dependent variables, and to generate dimensionality-reduced data based on the several relevant features. The first matrix generation module is used to generate a first random mapping matrix based on the number of relevant features in the dimensionality-reduced data. Wherein, the elements in the first random mapping matrix are all independent and identically distributed Gaussian random variables; The transformation matrix generation module is used to perform random mapping transformation on the dimensionality-reduced data according to the first random mapping matrix to generate a feature transformation matrix; The second matrix generation module is used to generate a second random mapping matrix based on the feature transformation matrix and the first random mapping matrix; The random mapping module is used to perform random mapping transformation on the dimensionality-reduced data using the second random mapping matrix to generate data to be clustered; The data clustering module is used to take the data to be clustered as an initial cluster center and then repeatedly perform clustering operations. When the number of cluster centers generated by the clustering operations is not less than a preset cluster center target value, the clustering result of the high-dimensional dataset is generated.
[0013] Furthermore, the data dimensionality reduction module determines several relevant features in the high-dimensional dataset based on several dependent variables, and generates dimensionality-reduced data based on these relevant features, including: The correlation score between each dependent variable and each feature in the high-dimensional dataset is calculated using the symmetric uncertainty formula. Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a high-dimensional data clustering method based on random mapping as described in any of the embodiments.
[0014] Another embodiment of the present invention provides a storage medium, characterized in that the storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to execute a high-dimensional data clustering method based on random mapping as described in any of the above embodiments.
[0015] The following benefits can be obtained by implementing the present invention: This invention discloses a high-dimensional data clustering method, apparatus, terminal device, and storage medium based on random mapping. The method performs dimensionality reduction on high-dimensional data according to a preset dependent variable, retaining only features relevant to the dependent variable and removing redundant features unrelated to the dependent variable, thus significantly reducing the impact of redundant features on subsequent data clustering. Subsequently, before clustering, a random mapping matrix is used to perform random transformations on the dimensionality-reduced data to protect it. Therefore, this invention avoids interference from redundant features and the problem of local optima in clustering by removing redundant features, and further protects privacy data through the random mapping matrix. Attached Figure Description
[0016] Figure 1This is a flowchart illustrating a high-dimensional data clustering method based on random mapping provided in an embodiment of the present invention.
[0017] Figure 2 This is a schematic diagram of a high-dimensional data clustering device based on random mapping provided in an embodiment of the present invention.
[0018] Figure 3 This is a schematic diagram of random mapping of dimensionality-reduced data provided in an embodiment of the present invention.
[0019] Figure 4 This is a bar chart showing the number of cluster centers and cluster evaluation indicators provided in an embodiment of the present invention.
[0020] Figure 5 This is a flowchart of a privacy-preserving clustering process provided in an embodiment of the present invention.
[0021] Figure 6 This is a comparison chart of anonymity rates of high-dimensional data aggregation results with different numbers of sensitive attributes provided in an embodiment of the present invention. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0024] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0025] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0026] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0027] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0028] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0029] See Figure 1 This is a flowchart illustrating a high-dimensional data clustering method based on random mapping provided in an embodiment of the present invention, including: S1. Obtain a high-dimensional dataset consisting of several features and several pre-defined dependent variables; In a preferred embodiment of the present invention, high-dimensional data generally refers to high-dimensional and multivariate data, which contains data characteristics that differ from those of two-dimensional and three-dimensional spatial data. Specifically, high-dimensional data refers to data with a very high dimension, even far greater than the number of samples. In space, data is very sparse, and the sample size is always very small compared to the dimension of the space.
[0030] In organizations such as medical institutions and educational institutions, a large amount of high-dimensional data is generated every day. In this embodiment, taking the data of medical institutions as an example, height, weight, blood type and other features in the high-dimensional data are the features in the high-dimensional data. If the high-dimensional data is clustered to explore the relationship between height and weight and the incidence of diabetes, then the incidence of diabetes is the preset dependent variable.
[0031] S2. Based on the dependent variables, determine several relevant features in the high-dimensional dataset, and generate dimensionality-reduced data based on the relevant features. In a preferred embodiment of the present invention, such as Figure 5 As shown, by reducing the dimensionality of high-dimensional data based on the dependent variable, we can identify the relevant features that are highly correlated with the dependent variable, remove some irrelevant features, improve the subsequent clustering effect, protect the privacy of more valuable data, and save more computing resources.
[0032] Preferably, the step of determining several relevant features in the high-dimensional dataset based on several dependent variables, and generating dimensionality-reduced data based on several relevant features, includes: S21. Using the symmetric uncertainty formula, calculate the correlation score between each dependent variable and each feature in the high-dimensional dataset; S22. Based on the correlation scores, determine several initial redundant features and several initial correlated features; In a preferred embodiment of the present invention, the correlation score between each dependent variable and each feature in the high-dimensional dataset is calculated using the following formula: ; in, This represents the pairwise information gain between the dependent variable Y and the feature X. Representing self-characteristics Information entropy Representing the dependent variable Information entropy.
[0033] It is understandable that the correlation score ranges from [0,1]. If the correlation score is 1, it can be determined that feature X is related to the dependent variable Y. If the correlation score is 0, it can be determined that feature X is unrelated to the dependent variable Y.
[0034] Preferably, after determining several initial redundant features and several initial relevant features, the method further includes: S221. Normalize the initial data under each initial correlation feature to generate normalized data under each initial correlation feature; S222. Based on the normalized data under each initial correlation feature, plot the normal distribution function of each initial correlation feature and calculate the standard deviation of each state distribution function. S223. Obtain the preset data filtering rules; S224. When the data filtering rule is determined to be an appropriate rule, normalized data that are greater than twice the standard deviation are deleted. S225. When the data filtering rule is determined to be a strict rule, normalized data that are greater than the standard deviation are deleted.
[0035] In a preferred embodiment of the present invention, in order to identify low-frequency data, firstly, normalization is used to refine the data under each feature; secondly, a normal distribution function is plotted for each column of the data according to the characteristics of the standard normal distribution function; finally, strict rules or moderate rules are used to delete sensitive data in a policy-driven manner.
[0036] Specifically, based on the principles of low repetition rate and high potential for privacy infringement, in the moderate mode, records with differences exceeding twice the standard deviation are deleted when publishing information. In the strict mode, records with differences equal to or greater than the standard deviation are deleted when publishing information.
[0037] S23. Using the Pearson correlation coefficient formula, calculate the Pearson coefficient between each dependent variable and each initial correlation feature; S24. Initial correlation features that are less than a preset coefficient threshold are used as redundant features, and initial correlation features that are not less than a preset coefficient threshold are used as correlation features. Dimensionality reduction data is generated based on the correlation features.
[0038] In a preferred embodiment of the present invention, for the feature and dependent variable The formula for calculating the Pearson correlation coefficient between them is: ; Understandably, the Pearson correlation coefficient is a tool for measuring the correlation between two random variables. Based on the Pearson coefficients of each initial correlated feature, irrelevant and redundant features can be further filtered out. Therefore, in this embodiment, during the data dimensionality reduction stage, the use of symmetric uncertainty and the Pearson coefficient significantly removes redundant features, greatly reducing the impact of data dimensionality on the privacy protection algorithm.
[0039] S3. Generate the first random mapping matrix based on the number of relevant features in the dimensionality-reduced data; Wherein, the elements in the first random mapping matrix are all independent and identically distributed Gaussian random variables; In a preferred embodiment of the present invention, when the number of relevant features in the dimensionality-reduced data is n, independent and identically distributed features are generated. dimensional random matrix ,Right now Let be an n-dimensional column vector whose elements are independent and identically distributed Gaussian random variables, i.e. .
[0040] S4. Based on the first random mapping matrix, perform random mapping transformation on the dimensionality-reduced data to generate a feature transformation matrix; Preferably, the feature transformation matrix includes: a feature matching matrix and a noise interference matrix to be added; The step of performing a random mapping transformation on the dimensionality-reduced data based on the first random mapping matrix to generate a feature transformation matrix includes: S41. Orthogonalize the first random mapping matrix, and then split the orthogonalized first random mapping matrix to generate a first random mapping submatrix and a second random mapping submatrix. S42. The first random mapping submatrix and the second random mapping submatrix are used to perform random mapping transformation on the dimensionality reduction data to generate a feature matching matrix and a noise interference matrix to be added.
[0041] In a preferred embodiment of the present invention, in order to maintain the maximum similarity between the mapped vector and the original vector, the first random mapping matrix is... Perform Gram-Schmidt orthogonalization to evenly divide the first random mapping matrix. We obtain mutually independent first random mapping submatrices Second random mapping submatrix ,in .
[0042] Then the first random mapping submatrix is used. Second random mapping submatrix Perform a random mapping transformation on the dimensionality-reduced data to generate a feature transformation matrix. From the feature matching matrix and the noise interference matrix to be added Composed of, among which, , All of them Dimensional features.
[0043] S5. Generate a second random mapping matrix based on the feature transformation matrix and the first random mapping matrix; Preferably, generating the second random mapping matrix based on the feature transformation matrix and the first random mapping matrix includes: S51. Perform a noise-adding operation on the noise-adding interference matrix to be noise-adding, and generate a noise-adding interference matrix; S52. Generate a second random mapping matrix based on the first random mapping matrix, the second random mapping matrix, the feature matching matrix, and the noise interference matrix.
[0044] In a preferred embodiment of the present invention, in the noise interference matrix to be added Add a random uniform distribution Dimensional noise The noise interference matrix is obtained. .
[0045] Furthermore, such as Figure 3 As shown, using a sub-random mapping matrix , Cross-fusion transformation features are obtained Save it as a second random mapping matrix .
[0046] S6. The second random mapping matrix is used to perform a random mapping transformation on the dimensionality-reduced data to generate data to be clustered. S7. Take the data to be clustered as an initial cluster center, and then repeat the clustering operation. When the number of cluster centers generated by the clustering operation is not less than the preset cluster center target value, generate the clustering result of the high-dimensional dataset.
[0047] Preferably, the clustering operation includes: S71. Obtain a plurality of first cluster centers; wherein, initially, the first cluster centers are the initial cluster centers; S72. Perform clustering operations on the data to be clustered based on a plurality of the first cluster centers; S73. Calculate the total error value of each first cluster center, and divide the first cluster center with the smallest total error value into two second cluster centers; S74. Calculate the total number of centers in the first cluster center and the second cluster center; S75. When the total number of cluster centers is less than the preset target value for cluster centers, the current first cluster center and the second cluster center are used as the first cluster center required for the next round of clustering operations. S76. When the total number of cluster centers is not less than the preset target value for cluster centers, the clustering operation ends.
[0048] In a preferred embodiment of the present invention, the k-means algorithm is used to cluster the data to be clustered. Specifically, the dimensionality-reduced data is treated as a single cluster (cluster center), and the k-means algorithm is used to cluster the data, then the total error of each cluster is calculated. When the current number of clusters is less than the preset cluster center target value k, the cluster with the smallest error is selected for partitioning, until k clusters are reached. Figure 6 As shown in the figure, the anonymity rate comparison chart of the aggregation results after aggregating high-dimensional data with different numbers of sensitive attributes using the high-dimensional data clustering method disclosed in this embodiment shows that the high-dimensional data clustering method disclosed in this embodiment can effectively protect sensitive data in high-dimensional data.
[0049] It should be noted that the goal of clustering is to improve the quality of clusters while keeping the number of clusters constant. In this embodiment, before clustering the data to be clustered, the following algorithm is used to obtain the cluster quality. Figure 4 The results shown are used to determine the final target value of cluster centers. Specifically, within the possible range of the number of clusters, different numbers of clusters are used to run the K-means algorithm to obtain the corresponding clustering results. Then, a clustering effectiveness function is constructed with the number of clusters k as the independent variable to evaluate the clustering results of K-means. The optimal number of clusters is determined by optimizing the clustering effectiveness function.
[0050] This embodiment provides a high-dimensional data clustering method based on random mapping. By performing dimensionality reduction on high-dimensional data according to a preset dependent variable, only features relevant to the dependent variable are retained, while redundant features unrelated to the dependent variable are removed, significantly reducing the impact of redundant features on subsequent data clustering. Subsequently, before clustering, a random mapping matrix is used to perform random transformations on the dimensionality-reduced data to protect it. Therefore, this invention avoids interference from redundant features and the problem of local optima in clustering by removing redundant features, and further protects privacy data through the random mapping matrix.
[0051] See Figure 2 This is a schematic diagram of a high-dimensional data clustering device based on random mapping according to an embodiment of the present invention, comprising: The data acquisition module is used to acquire a high-dimensional dataset consisting of several features and several preset dependent variables; The data dimensionality reduction module is used to determine several relevant features in the high-dimensional dataset based on several dependent variables, and to generate dimensionality-reduced data based on the several relevant features. The first matrix generation module is used to generate a first random mapping matrix based on the number of relevant features in the dimensionality-reduced data. Wherein, the elements in the first random mapping matrix are all independent and identically distributed Gaussian random variables; The transformation matrix generation module is used to perform random mapping transformation on the dimensionality-reduced data according to the first random mapping matrix to generate a feature transformation matrix; The second matrix generation module is used to generate a second random mapping matrix based on the feature transformation matrix and the first random mapping matrix; The random mapping module is used to perform random mapping transformation on the dimensionality-reduced data using the second random mapping matrix to generate data to be clustered; The data clustering module is used to take the data to be clustered as an initial cluster center and then repeatedly perform clustering operations. When the number of cluster centers generated by the clustering operations is not less than a preset cluster center target value, the clustering result of the high-dimensional dataset is generated.
[0052] Preferably, the data dimensionality reduction module determines several relevant features in the high-dimensional dataset based on several dependent variables, and generates dimensionality-reduced data based on the several relevant features, including: The correlation score between each dependent variable and each feature in the high-dimensional dataset is calculated using the symmetric uncertainty formula. Based on the correlation scores, several initial redundant features and several initial correlated features are determined; The Pearson correlation coefficient formula was used to calculate the Pearson coefficient between each dependent variable and each initial correlation feature; Initial correlation features that are less than a preset coefficient threshold are used as redundant features, and initial correlation features that are not less than a preset coefficient threshold are used as correlation features. Dimensionally reduced data is then generated based on these correlation features.
[0053] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0054] Those skilled in the art will clearly understand that, for convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0055] Another preferred embodiment of the present invention provides a terminal device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a high-dimensional data clustering method based on random mapping as described in any of the above embodiments.
[0056] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0057] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0058] The memory can be used to store the computer program. The processor implements various functions of the terminal device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0059] Another preferred embodiment of the present invention provides a storage medium, which is a computer-readable storage medium. A computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0060] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A high-dimensional data clustering method based on random mapping, characterized in that, include: Obtain a high-dimensional dataset consisting of several features and several pre-defined dependent variables; The correlation score between each dependent variable and each feature in the high-dimensional dataset is calculated using the symmetric uncertainty formula. Based on the correlation scores, several initial correlation features are determined; The Pearson correlation coefficient formula was used to calculate the Pearson coefficient between each dependent variable and each initial correlation feature; Initial correlation features that are less than a preset coefficient threshold are used as redundant features, and initial correlation features that are not less than a preset coefficient threshold are used as correlation features. Dimensionally reduced data is generated based on the correlation features. Generate the first random mapping matrix based on the number of relevant features in the dimensionality-reduced data; Wherein, the elements in the first random mapping matrix are all independent and identically distributed Gaussian random variables; Based on the first random mapping matrix, a random mapping transformation is performed on the dimensionality-reduced data to generate a feature transformation matrix; A second random mapping matrix is generated based on the feature transformation matrix and the first random mapping matrix; The second random mapping matrix is used to perform a random mapping transformation on the dimensionality-reduced data to generate data to be clustered; The data to be clustered is used as an initial cluster center, and the clustering operation is repeated. When the number of cluster centers generated by the clustering operation is not less than the preset cluster center target value, the clustering result of the high-dimensional dataset is generated.
2. The high-dimensional data clustering method based on random mapping as described in claim 1, characterized in that, After determining several initial redundancy features and several initial correlation features, the following is also included: Normalize the initial data under each initial correlation feature to generate normalized data under each initial correlation feature; Based on the normalized data under each initial correlation feature, plot the normal distribution function of each initial correlation feature and calculate the standard deviation of each state distribution function; Get the preset data filtering rules; When the data filtering rule is determined to be an appropriate rule, normalized data that are greater than twice the standard deviation are deleted. When the data filtering rule is determined to be a strict rule, normalized data that are greater than the standard deviation are deleted.
3. The high-dimensional data clustering method based on random mapping as described in claim 1, characterized in that, The feature transformation matrix includes: a feature matching matrix and a noise interference matrix to be added; The step of performing a random mapping transformation on the dimensionality-reduced data based on the first random mapping matrix to generate a feature transformation matrix includes: The first random mapping matrix is orthogonalized, and then the orthogonalized first random mapping matrix is split to generate a first random mapping submatrix and a second random mapping submatrix. The first random mapping submatrix and the second random mapping submatrix are used to perform random mapping transformation on the dimensionality reduction data to generate a feature matching matrix and a noise interference matrix to be added.
4. The high-dimensional data clustering method based on random mapping as described in claim 3, characterized in that, The step of generating a second random mapping matrix based on the feature transformation matrix and the first random mapping matrix includes: The noise-adding operation is performed on the interference matrix to be noised to generate a noise-added interference matrix; A second random mapping matrix is generated based on the first random mapping matrix, the second random mapping matrix, the feature matching matrix, and the noise interference matrix.
5. The high-dimensional data clustering method based on random mapping as described in claim 1, characterized in that, The clustering partitioning operation includes: Obtain a plurality of first cluster centers; wherein, initially, the first cluster centers are the initial cluster centers; Clustering operations are performed on the data to be clustered based on several of the first cluster centers; Calculate the total error value of each first cluster center, and divide the first cluster center with the smallest total error value into two second cluster centers; Calculate the total number of centers in the first and second clusters; When the total number of cluster centers is less than the preset target value for cluster centers, the current first cluster center and second cluster center are used as the first cluster center required for the next round of clustering operations; The clustering operation ends when the total number of cluster centers is not less than the preset target value for cluster centers.
6. A high-dimensional data clustering device based on random mapping, characterized in that, include: The data acquisition module is used to acquire a high-dimensional dataset consisting of several features and several preset dependent variables; The data dimensionality reduction module is used to calculate the correlation score between each dependent variable and each feature in the high-dimensional dataset using the symmetric uncertainty formula; determine several initial redundant features and several initial relevant features based on the correlation scores; calculate the Pearson coefficient between each dependent variable and each initial relevant feature using the Pearson correlation coefficient formula; designate initial relevant features with a coefficient less than a preset threshold as redundant features, designate initial relevant features with a coefficient not less than a preset threshold as relevant features, and generate dimensionality-reduced data based on the relevant features. The first matrix generation module is used to generate a first random mapping matrix based on the number of relevant features in the dimensionality-reduced data; Wherein, the elements in the first random mapping matrix are all independent and identically distributed Gaussian random variables; The transformation matrix generation module is used to perform random mapping transformation on the dimensionality-reduced data according to the first random mapping matrix to generate a feature transformation matrix; The second matrix generation module is used to generate a second random mapping matrix based on the feature transformation matrix and the first random mapping matrix; The random mapping module is used to perform random mapping transformation on the dimensionality-reduced data using the second random mapping matrix to generate data to be clustered; The data clustering module is used to take the data to be clustered as an initial cluster center and then repeatedly perform clustering operations. When the number of cluster centers generated by the clustering operations is not less than a preset cluster center target value, the clustering result of the high-dimensional dataset is generated.
7. A terminal device, characterized in that, The system includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements a high-dimensional data clustering method based on random mapping as described in any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to perform a high-dimensional data clustering method based on random mapping as described in any one of claims 1 to 5.
Citation Information
Patent Citations
High-dimensional private data publishing method based on Bayesian network attribute clustering analysis technology
CN112131604A
Construction method of correlation data transaction framework oriented to high-dimensional private data
CN115630964A
