A clustering method, system and storage medium in a high-dimensional real scene based on density peak
Through the clustering method CSMCA in high-dimensional real scenarios, the parameter-free local kernel density and boundary degree calculation method is used to establish a cluster center selection model, which solves the problem of parameter sensitivity and low accuracy of clustering methods in high-dimensional data processing. problem, achieving effective clustering of multi-density and high-dimensional data.
Patent Information
- Application Number
- CN202110457361.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-04-27
AI Technical Summary
Existing clustering methods have problems with unreasonable parameter settings, cluster center selection bias, and parameter sensitivity in high-dimensional real data processing, resulting in low clustering accuracy and especially difficulty in effectively processing multi-density and high-dimensional data.
A clustering method CSMCA in high-dimensional real scenes based on density peaks is proposed. Through parameter-free local kernel density calculation method and boundary degree calculation method, the cluster center selection model CSM is established, the nearest neighbor parameter K is adaptively calculated, and the core objects are extracted , form a mutual neighbor relationship graph, determine the cluster center, and complete the division of data objects.
It solves the problem of density measurement imbalance caused by unreasonable parameter settings, reduces cluster center selection deviation, improves clustering accuracy, has good robustness, and can effectively handle multi-density and high-dimensional data sets containing noise.
Smart Images

Figure CN113205124B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine learning and data mining, and in particular to a clustering method, system and storage medium in a high-dimensional real scene based on density peak value. Background Art
[0002] Cluster analysis is one of the important research directions in the field of machine learning and data mining. It aims to analyze the distribution of data, study the characteristics of data, and discover the potential internal structure of data. It plays an important role in data exploration and machine learning, and is widely used in recommendation systems, target group segmentation, business intelligence and other fields. At the same time, clustering algorithms are often used as auxiliary algorithms in various research fields, such as computer vision, privacy protection, natural language processing and other fields.
[0003] The density peak clustering algorithm published in 2014 is a simple and efficient algorithm. Due to its easy execution and high scalability, it is widely used in various practical tasks. However, the algorithm still has some defects, such as unreasonable density measurement, low representativeness of cluster centers, manual selection of cluster centers, and parameter sensitivity.
[0004] A reasonable center position can represent the geometric distribution of an object or space. In the field of cluster analysis, the cluster center is the skeleton of the cluster. Selecting a suitable cluster center can effectively characterize the distribution structure of the cluster and improve the clustering accuracy. With the continuous clustering algorithms proposed by scholars, the selection method (technology) of the cluster center has also improved, such as K-means and FCM algorithms based on random selection; SP-MI-FCM and FCM-AIC algorithms based on iterative optimization; Str-FSFDP and DC-MDACC algorithms based on statistical distribution and threshold truncation; DPC, LPC, and CDP algorithms based on decision diagrams.
[0005] Existing center selection methods often have problems such as parameter sensitivity, too many parameters, over-reliance on prior knowledge, and manual participation (manual selection), which lead to deviations in the selection of cluster centers and low clustering accuracy. How to accurately select cluster centers becomes the key to improving clustering accuracy.
[0006] Partition-based clustering algorithms represented by K-means and FCM use random selection strategies to initialize cluster centers, and continuously update cluster centers and partition objects until the objective function converges and clustering is completed. Among them, the FCM algorithm introduces fuzzy theory and applies membership to the object partitioning process. Its clustering results are better than those of the K-means algorithm. Due to the unreasonable initialization and calculation methods of cluster centers, such algorithms cannot effectively handle high-dimensional and non-spherical clusters.
[0007] Density-based clustering algorithms such as DBSCAN regard core objects as cluster centers in a broad sense, and connect core objects that meet reachability conditions to form clusters. The algorithm can identify clusters of any shape, but the algorithm uses fixed radius and threshold parameters to calculate density, which makes the algorithm unable to effectively handle multi-density and high-dimensional clustering. At the same time, the parameter values lack prior knowledge reference.
[0008] The density peak-based clustering algorithm represented by DPC is based on variables such as density, establishes a decision graph, and manually selects density peak objects as cluster centers. The use of decision graphs improves the accuracy of cluster center selection. Among them, the DPC and CDP algorithms use the global cutoff distance to measure object density. For multi-density data sets, unreasonable parameter settings will cause a chain reaction of object division errors, which will eventually affect clustering accuracy; the LPC algorithm regards the data set as a weighted undirected graph and uses Laplace centrality to characterize object density, avoiding interference caused by unreasonable density parameter settings. However, the algorithm's density measurement method relies on traditional statistical models. For high-dimensional, multi-density data sets, its density measurement may be biased, which in turn affects the clustering position of the cluster center in the decision graph, and ultimately leads to unsatisfactory clustering results.
[0009] In order to estimate the number of cluster centers and reduce the dependence of the cluster center acquisition process on parameters, the FCM-AIC and SP-MI-FCM algorithms give a range of values for the number of cluster centers, use the idea of evidence accumulation to repeatedly run the FCM algorithm, merge the membership to form a cumulative membership matrix; and obtain the number of cluster centers by graph segmentation of the cumulative membership matrix. The center initialization strategy of the FCM algorithm determines that the membership matrix will have deviations, resulting in the instability of the number of cluster centers obtained by the FCM-AIC and SP-MI-FCM algorithms.
[0010] The DC-MDACC and Str-FSFDP algorithms use linear regression and residual analysis techniques to consider objects that are not in the confidence interval as cluster centers, and divide the remaining objects according to the density peak clustering principle. The algorithm can automatically select cluster centers, but the selection process is easily affected by the confidence factor parameters, resulting in unsatisfactory clustering results. Summary of the invention
[0011] In order to solve the problems that the existing clustering methods cannot efficiently process high-dimensional real data and the clustering center selection deviation causes low clustering accuracy, the present invention provides a clustering method CSMCA in high-dimensional real scenarios based on density peak value, which measures the object density by the proposed parameter-free local kernel density calculation method, and establishes a cluster center selection model CSM to determine the cluster center by combining the proposed boundary degree calculation method. Finally, the remaining objects are assigned according to the division principle to complete the clustering task.
[0012] The present invention provides a clustering method in a high-dimensional real scene based on density peak, comprising the following steps:
[0013] Step 1: Collect data;
[0014] Step 2: Clean the collected data;
[0015] Step 3: Calculate the neighbor parameter K, local density, density weight and boundary degree;
[0016] Step 4: Use the CSM model to determine the cluster center;
[0017] Step 5: Divide the remaining data objects;
[0018] Step 6: Based on the division results, sort out the available information to assist decision making;
[0019] Step 7: Output available information.
[0020] As a further improvement of the present invention, in step 3, k nearest neighbors are used as the sampling space of the exponential kernel function to form a local density, which is defined as follows: Let x∈D, the local density den(x) of the object x is given by the following formula:
[0021] den(x)=∑ y∈knn(x) exp(-dist(x,y)) (1)
[0022] Where dist(x, y) is the Euclidean distance between objects x and y, and knn(x) is the k nearest neighbor set of object x.
[0023] As a further improvement of the present invention, in step 3, the adaptive calculation process of the neighbor parameter K is: first, the initial value of the loop variable T is set to 1, and the incremental step is 1; then, the T neighbor set and the mutual neighbor set of the object are iteratively calculated until a stable state is reached: the size of the mutual neighbor set of the object no longer changes, and the number of mutual neighbors of the object has fully characterized the distribution of its surroundings; finally, the mean value of the number of mutual neighbors of the object in the stable state is taken as the value of the k neighbor parameter.
[0024] As a further improvement of the present invention, in step 3, the boundary degree BD(x) of the object x is calculated as follows:
[0025]
[0026] sc(x) represents skewness, and the calculation formula of skewness sc(x) is as follows:
[0027]
[0028] As a further improvement of the present invention, in step 3, the density weight W(x) of the object x is calculated as follows:
[0029] W(x)=den(x)*δ(x) (5)
[0030] Among them, δ(x) represents the minimum distance between x and the high-density data object.
[0031] As a further improvement of the present invention, in step 4, first, the CSM model extracts core objects based on the boundary degree and the proportion factor λ to form a set core_object_set, and based on the idea of graph, establishes the mutual neighbor relationship of the core objects to form a mutual neighbor relationship graph knn_graph, and calculates the number of connected areas through a traversal algorithm, that is, the number of cluster centers cluster_no, and finally, combined with the position distribution of the cluster centers in the descending sequence of density weights, determines the expected cluster centers to form a set cluster_center_set.
[0032] The present invention also provides a clustering system in a high-dimensional real scene based on density peaks, comprising:
[0033] Acquisition module: used to collect data;
[0034] Cleaning module: used to clean the collected data;
[0035] Variable calculation module: used to calculate the neighbor parameter K, local density, density weight and boundary degree;
[0036] Processing module: used to determine the cluster center using the CSM model;
[0037] Partitioning module: used to partition the remaining data objects;
[0038] Sorting module: used to sort out available information for decision support based on the division results;
[0039] Output module: used to output available information.
[0040] As a further improvement of the present invention, in the variable calculation module, the k nearest neighbors are used as the sampling space of the exponential kernel function to form a local density, which is defined as follows: Let x∈D, the local density den(x) of the object x is given by the following formula:
[0041] den(x)=∑ y∈knn(x) exp(-dist(x,y)) (1)
[0042] Where dist(x, y) is the Euclidean distance between objects x and y, knn(x) is the k nearest neighbor set of object x; the adaptive calculation process of the nearest neighbor parameter K is as follows: first, the initial value of the loop variable T is set to 1, and the increment step is 1; then, the T nearest neighbor set and the mutual nearest neighbor set of the object are iteratively calculated until a stable state is reached: the size of the mutual nearest neighbor set of the object no longer changes, and the number of mutual nearest neighbors of the object has fully characterized the distribution of its surroundings; finally, the mean value of the number of mutual nearest neighbors of the object in the stable state is taken as the value of the k nearest neighbor parameter;
[0043] The boundary degree BD(x) of object x is calculated as follows:
[0044]
[0045] sc(x) represents skewness, and the calculation formula of skewness sc(x) is as follows:
[0046]
[0047] The density weight W(x) of object x is calculated as follows:
[0048] W(x)=den(x)*δ(x) (5)
[0049] Among them, δ(x) represents the minimum distance between x and the high-density data object.
[0050] As a further improvement of the present invention, in the processing module, first, the CSM model extracts core objects based on the boundary degree and the proportion factor λ to form a set core_object_set, and based on the idea of graph, establishes the mutual neighbor relationship of the core objects to form a mutual neighbor relationship graph knn_graph, and calculates the number of connected areas through a traversal algorithm, that is, the number of cluster centers cluster_no, and finally, combined with the position distribution of the cluster centers in the descending sequence of density weights, determines the expected cluster centers to form a set cluster_center_set.
[0051] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the clustering method of the present invention when called by a processor.
[0052] The beneficial effects of the present invention are as follows: the present invention solves the problem of density measurement imbalance caused by unreasonable parameter setting, solves the problems of center selection bias and parameter sensitivity, and has good robustness, can effectively cluster multi-density and high-dimensional data sets containing noise, and has high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1(a) is a diagram showing the distribution of Syn;
[0054] Figures 1(b), (c), and (d) respectively show the heat distribution diagrams of density under different k values, where K = 2 in Figure 1(b), K = 9 in Figure 1(c), and K = 75 in Figure 1(d);
[0055] Figure 2(a) to Figure 2(f) A schematic diagram of the cluster center acquisition of each algorithm under different parameter values is given, among which Figure 2(a) is 4k2-far, Figure 2(b) is Aggregation, Figure 2(c) is Heart Disease, Figure 2(d) is CylinderBands, Figure 2(e) is Jain, and Figure 2(f) is Japanese;
[0056] Figure 3 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0057] The present invention discloses a clustering method CSMCA in a high-dimensional real scene based on density peak. The method is based on the proposed parameter-free local kernel density calculation method and boundary degree measurement method, and establishes a clustering center selection model Clustering Center Selection Model (CSM); and according to the division principle of density peak clustering, the remaining objects are divided into corresponding clusters to form the final clustering. Experimental results on synthetic data sets and real data sets verify the effectiveness of the clustering center selection model and the method. Compared with similar algorithms, this method has higher clustering accuracy.
[0058] The innovative points of the clustering method of the present invention are as follows: (1) a parameter-free local kernel density calculation method is proposed; (2) a method for calculating the boundary degree of an object is proposed, and a cluster center selection model is established.
[0059] The following are the relevant definitions of the present invention
[0060] Density metric analysis:
[0061] The density calculation of an object is essentially the sampling of the distribution around the data object. Sampling techniques can be divided into static sampling and dynamic sampling. Hypersphere sampling, cubic sampling, and grid sampling belong to static sampling techniques. The idea is to use a fixed-length neighborhood as the sampling radius to form a sampling space around the object, and use the number of objects in the space as the object density. For multi-density or high-dimensional data, the distribution around the object is relatively sparse, and it is difficult for static sampling techniques to set a sampling radius of appropriate size, resulting in inaccurate measurement of the distribution characteristics of the object, which in turn affects the clustering results.
[0062] Static sampling technology is only suitable for processing low-dimensional, uniformly distributed data, while dynamic sampling can dynamically define the shape and size of the sampling space according to the distribution of the object. K-nearest neighbor sampling is a dynamic sampling that always extracts the k nearest objects to form a sampling space. Due to the randomness of the object distribution, the k-nearest neighbor sampling space of the object is an irregular polygon, which truly reflects the distribution around the object, and can accurately characterize the density of the object. The present invention combines the idea of kernel density estimation and uses the k-nearest neighbor as the sampling space of the exponential kernel function to form a local kernel density, which is defined as follows:
[0063] Definition 1. (Local density) Let x∈D, the local kernel density den(x) of object x is given by:
[0064] den(x)=∑ y∈knn(x) exp(-dist(x,y)) (1)
[0065] Where dist(x, y) is the Euclidean distance between objects x and y, and knn(x) is the k nearest neighbor set of object x.
[0066] Although the k-nearest neighbor space can effectively measure the density of objects, the value of the neighbor parameter k is difficult to determine. If the k value is too small, the sampling is insufficient, and the (K-nearest neighbor space) cannot represent the true distribution of the object; if the k value is too large, it degenerates into global sampling, and the sampling space (K-nearest neighbor space) of all objects is almost the same. Selecting a suitable k value is the key to accurate density measurement. Based on the idea of true friends in social networks, the present invention proposes an adaptive calculation method for the neighbor parameter k. For objects x and y, if y exists among the neighbors of x and x exists among the k neighbors of y, then objects x and y have a mutual neighbor relationship, indicating that the properties between the objects are similar. Therefore, the number of mutual neighbors of an object can characterize the distribution of its surroundings.
[0067] Based on this, the adaptive calculation process of the k value is as follows: first, the initial value of the loop variable T is set to 1, and the increment step is 1; then the T nearest neighbor set and the mutual nearest neighbor set of the object are iteratively calculated until a stable state is reached: the size of the mutual nearest neighbor set of the object no longer changes, and the number of mutual nearest neighbors of the object has fully characterized the distribution of its surroundings; finally, the mean value of the number of mutual nearest neighbors of the object in the stable state is taken as the value of the k nearest neighbor parameter. The calculation steps are shown in Table 1:
[0068] Table 1 Adaptive calculation process of parameter k
[0069]
[0070] Take the dataset Syn as an example. This dataset is formed by extracting some objects from the synthetic dataset Compound. There are 83 objects in total, which are divided into two clusters. The objects near the center of the cluster are densely distributed, and the objects in the periphery are sparsely distributed. Figure 1(a) shows the distribution of Syn, and Figures 1(b), (c), and (d) respectively give the heat distribution diagrams of density under different k values. As shown in Figure 1(b), when the value of k is too small, its (K nearest neighbor space) sampling space is too small and cannot fully obtain the distribution characteristics of the object; as shown in Figure 1(d), when the value of k is too large, the sampling space (K nearest neighbor space) almost covers all objects, and the density difference between core and non-core objects becomes smaller, resulting in a deviation in density measurement; as shown in Figure 1(c), the local density calculation method proposed in the present invention adaptively calculates the parameter k, and the sampling space formed by the K nearest neighbors accurately obtains the surrounding distribution characteristics of the object and effectively measures the object density.
[0071] Core object acquisition:
[0072] In density-based clustering algorithms, objects can be divided into core objects and non-core objects. Core objects are internal objects of clusters, which constitute the skeleton of clusters and can better characterize the characteristics of data sets; while non-core objects include noise, outliers, and boundary points, which are mainly located at the edge of clusters, in the middle of clusters, or in areas far away from clusters. Non-core objects often cause some undesirable phenomena, such as bridging interference, noise interference, unclear boundaries, cluster merging, etc., which make the algorithm unable to perform effective clustering. Accurately extracting core objects is a prerequisite for obtaining the correct cluster center. The present invention combines the concept of skewness and uses the proposed boundary degree calculation method to extract core objects.
[0073] The K nearest neighbors of the core object are evenly distributed around it. The objects around non-core objects, such as noise, boundaries, and bridge objects, are sparsely distributed and have a large bias, that is, they tend to gather in a certain direction. For example, the objects around the boundary object are concentrated in the direction of the cluster, and the distribution in the direction outside the cluster is sparse, showing a large skew state. Based on the difference in spatial distribution between core objects and non-core objects, we give a definition of skewness.
[0074] Definition 1. (Skewness) Let x∈D. In the k-neighbor space of object x, the skewness sc(x) is defined as follows:
[0075]
[0076] The objects around the core object are distributed evenly, and their skewness is small; the objects around the non-core object are distributed sparsely, and their skewness is large. For some special noises, such as random noise, the distribution of the surrounding objects is also even, so that the skewness of these objects is not much different from that of the core object. In order to increase the difference between the core object and the non-core object, the present invention proposes a boundary degree calculation method, which is defined as follows:
[0077] Definition 3. (Boundary Degree) Let x∈D, the boundary degree BD(x) of object x is defined as follows:
[0078]
[0079] The concept of boundary degree reflects the degree to which an object belongs to a non-core object. The boundary degree of a non-core object is large, while the boundary degree of a core object is small. After sorting the objects in descending order according to the boundary degree, the objects can be divided into core objects or non-core objects according to the core object proportion factor λ. All core objects constitute the core object set core_object_set={x|x∈D AND BD(x)≤bd_sort_des(flag)}, where bd_sort_asc is the ascending sort of the boundary degree set BD, The object classification criteria are as follows:
[0080]
[0081] About the clustering method CSMCA of the present invention
[0082] Cluster center selection model:
[0083] Reasonable cluster centers can effectively characterize the distribution structure of clusters and improve clustering accuracy. The DPC algorithm provides a selection principle for cluster centers: the cluster center has a large density and is surrounded by some lower-density objects, and is far away from high-density objects. In order to increase the feature difference between the cluster center and other objects, we give a density weight definition based on the local density definition.
[0084] Definition 4. (Density Weight) Let x∈D, the density weight W(x) of data object x is given by:
[0085] W(x)=den(x)*δ(x) (5)
[0086] Among them, δ(x) represents the minimum distance between x and the high-density data object, that is:
[0087]
[0088] Density weight is used to measure the possibility of an object becoming a cluster center. Since the cluster center has a higher density and is farther away from high-density objects, the larger the density weight of an object, the greater the possibility of the object becoming a cluster center. After sorting the objects in descending order of density weight, the cluster center will exist (be located) in the first half of the sequence.
[0089] The present invention proposes a center selection model (Center Selection Model) CSM. First, the model extracts core objects based on the boundary degree and the proportion factor λ to form a set core_object_set; based on the idea of graph, the mutual neighbor relationship of the core objects is established to form a mutual neighbor relationship graph knn_graph; the number of connected areas is calculated by the traversal algorithm, which is the number of cluster centers cluster_no; finally, the expected cluster centers are determined in combination with the position distribution of the cluster centers in the descending sequence of density weights to form a set cluster_center_set. The processing process of the CSM model is shown in Table 2:
[0090] Table 2 Model processing
[0091]
[0092] Model validity test:
[0093] The present invention selects some typical data sets from Table 3 to test the effectiveness of the CSM model under complex distribution, high dimension, and real data. In addition to the data sets numbered 1, 2, 3, 4, 13, and 15 in Table 3, the Aggregation data set has seven clusters of different sizes, and there is bridging interference between clusters, which is used to test the model's ability to identify cluster centers under bridging interference; the Japanese Credit data set is a real data set, which is used to test the algorithm's ability to detect cluster centers for high-dimensional data. Table 4 shows the experimental results of the CSM model and various cluster center selection algorithms.
[0094] Table 3 Basic information of the dataset
[0095]
[0096]
[0097] The cluster center selection method proposed by the DC-MDACC algorithm regards objects that are not in the confidence interval as cluster centers, but the selection process is easily affected by the confidence factor parameters. If the confidence factor parameter is too large, the confidence interval will be reduced, and the algorithm can only obtain part of the cluster centers, resulting in unstable cluster center acquisition capabilities of the algorithm, such as the Jain, Compound, and Spiral data sets. The cluster center selection method proposed by the SP-MI-FCM algorithm takes minimizing the sum of squared errors as the convergence condition of the objective function. For non-spherical clusters, the algorithm's center recognition ability is low. At the same time, the cluster center initialization method of the FCM algorithm determines that the membership matrix has deviations, which will affect the subsequent iteration process and lead to cluster center selection deviations, such as the Spiral and Compound data sets.
[0098] The CSM model proposed in the present invention can correctly identify cluster centers on data sets of different types, dimensions, and sample sizes, indicating that the model is effective in selecting cluster centers.
[0099] Table 4 Comparison of cluster center identification results
[0100]
[0101]
[0102] Model robustness test:
[0103] In order to test the parameter robustness of the CSM model, the present invention selects synthetic data sets and UCI data sets to perform parameter sensitivity analysis on the model. Since the algorithms involved in the experimental analysis have different parameters and the parameter value ranges are not the same, we give different value intervals for each parameter and uniformly use interpolation method to obtain 10 parameter values. The value interval of the CSM model parameter λ is [0.5-0.75], the parameter value interval of the Str-FSFDP algorithm is [0.01-0.46], and the parameter value interval of the SP-MI-FCM algorithm is [5-50]. Figure 2(a) to Figure 2(f) The cluster center acquisition of each algorithm under different parameter values is given, and each horizontal axis position represents the parameter value when it is equally divided in the value range.
[0104] The center selection model proposed in the present invention can accurately identify the cluster center of each data set and the effect is stable. It can be seen that the center selection model of this paper is effective. (The parameters of the CSM model have high robustness).
[0105] The clustering method (CSMCA) of the present invention is mainly divided into three steps: calculation, center selection, and division. The algorithm first calculates the neighbor parameter K, local density, density weight, and boundary degree; secondly, the cluster center is obtained according to the CSM model; finally, the remaining objects are divided into corresponding clusters to complete the clustering task. The detailed steps of the algorithm are shown in Table 5:
[0106] Table 5: Steps of the clustering method (CSMCA)
[0107]
[0108] In summary, if Figure 3 As shown, the present invention discloses a clustering method in a high-dimensional real scene based on density peak, comprising the following steps:
[0109] Step 1: Collect data, such as data generated by medical, financial, and bioengineering.
[0110] Step 2: Clean the collected data.
[0111] Step 3: Calculate the neighbor parameter K, local density, density weight, and boundary degree.
[0112] Step 4: Use the CSM model to determine the cluster centers.
[0113] Step 5: Divide the remaining data objects.
[0114] Step 6: Based on the division results, organize the available information to assist decision making.
[0115] Step 7: Output available information.
[0116] In step 7, for example, available information in the financial field is output: user high risk, user medium risk, user low risk.
[0117] In step 7, for example, available medical diagnosis information is output: sick, not sick.
[0118] In step 7, for example, the bioengineering available information is output: phylum 1, phylum 2, ...
[0119] It can be seen that the present invention can be applied to data mining in real scenarios, and can provide decision support for big data analysis in the fields of financial credit, medical diagnosis, and bioengineering. For example, for real data generated in the field of medical diagnosis, the present invention can roughly classify the data into two categories, namely, high probability of illness, low probability of illness, and no possibility of illness, so as to reduce the workload of medical diagnosis; for data sets generated in the field of financial credit, the present invention can classify users into different risk levels according to actual needs, thereby reducing the workload of credit review by financial institutions; for data generated in the field of bioengineering, the present invention can classify them into several categories according to real animal and plant classes, which can solve the problem of unsatisfactory classification accuracy of deep learning methods in the absence of a large number of samples for training.
[0120] Algorithm experimental analysis:
[0121] Hardware environment: CPU is AMD Athlon(tm)X4750 Quad Core Processor 3.40GHz, memory is 4.00GB, operating system is Microsoft Windows 7, and compilation environment is MatlabR2014a.
[0122] The experimental data sets include artificial synthetic data sets and UCI data sets. For details, see Table 3. Numbers 1-6 are artificial synthetic data sets, which are used to test the clustering effect of the algorithm under different data forms; numbers 7-15 are UCI data sets, which are used to test the clustering effect of the algorithm in a real environment.
[0123] In order to comprehensively evaluate the clustering results, the present invention uses accuracy (ACC), purity (Purify), FM index (FMI: Fowlkes and Mallows Index), Rand index (RI: RAND INDEX), and Jaccard similarity coefficient (JC: Jaccard similarity coefficient) to measure the clustering quality.
[0124] The parameter setting principles of the comparison algorithm are as follows:
[0125] For algorithms that take cluster centers as parameters, we give the correct number of cluster centers parameter;
[0126] For other parameters, we use interpolation method to obtain parameter values according to the parameter value range, and take the best clustering result as the final clustering result;
[0127] For algorithms whose clustering process involves iterative calculations, we give a uniform number of runs, run them multiple times, and take the mean of each indicator as the final clustering effect.
[0128] Synthetic Dataset:
[0129] In order to test the clustering effect of the algorithm under different data distribution forms, the present invention selected synthetic data sets with different characteristics. The synthetic data sets selected for the experiment include the following distribution forms: multi-density, flow spiral, micro-cluster, non-spherical, cluster nesting, cluster semi-inclusion, and there are multiple types of noise interference: random noise, bridging noise, and outlier noise. Among them, the R15 data set has 15 adjacent micro-clusters and a small amount of outlier noise, which is used to test whether the algorithm can completely identify all clusters in the data set; the Compound data set contains 6 clusters with uneven density, and there are nested and encircled relationships between clusters, which is used to test whether the algorithm can identify multi-density and nested clusters; the Spiral and Jain data sets show a spiral distribution, and there is a mutual inclusion relationship between clusters, which is used to test whether the algorithm can identify non-spherical clusters; the 4k2-far data set contains 4 clusters and random noise, which is used to detect whether the algorithm can accurately cluster under noise interference. Table 6 gives the clustering evaluation index values of each algorithm on the synthetic data set, where the bold part indicates the highest value reached by the index.
[0130] Table 6 Comparison of clustering results on synthetic datasets
[0131]
[0132]
[0133]
[0134] Real dataset:
[0135] In order to test the clustering effect of the algorithm in a real, high-dimensional environment, this paper selected UCI data sets from the fields of geological exploration, bioengineering, medical diagnosis, game gambling, finance, etc. The Sonar data set comes from the field of geological exploration and records the sonar echoes of different rocks; the Cylinder Bands and Balloons data sets come from the field of physical engineering; the Heartdisease, Parkinson, and SPECT Heart data sets come from the field of medical diagnosis and record the biochemical indicators of patients; the Soybean data set comes from the field of bioengineering and records the characteristics of soybean diseases; the Tic-tac-toe data set comes from the field of gambling and records the board data of three-in-a-row chess; the German Credit data set comes from the field of finance and records the credit status of users in different regions. Table 7 gives the evaluation index values of each algorithm on the real data set.
[0136] For real data sets, the attribute dimensions are generally high and the data structures are mostly heterogeneous. The object distribution does not strictly follow the statistical laws of Euclidean space, and the cluster shape is not a traditional spherical cluster. Therefore, the clustering effect of traditional clustering algorithms suitable for processing spherical clusters is not good, such as the Soybean, Tic-Tac-Toe, and Wine data sets of the K-means algorithm, and the Zoo and Cylinder Bands data sets of the FCM algorithm.
[0137] Since data is sparsely distributed in high-dimensional space, it is difficult to set appropriate values for the radius and threshold parameters of the DBSCAN algorithm, making the clustering effect of the algorithm unstable. For example, the algorithm has the best clustering effect on the Soybean dataset, but poor results on the Iris, German Credit, and Wine datasets.
[0138] Due to the application of decision graph technology in the clustering process, DPC, LPC, and CDP algorithms can all be effectively clustered. However, in some high-dimensional data, it is difficult to set appropriate values for the cutoff distance parameters of the DPC and CDP algorithms, which makes the positions of some objects in the decision graph too close or overlapping, weakening the advantages of the decision graph and interfering with the center selection process. For example, the CDP algorithm does not work well on the Sonar dataset, and the DPC algorithm does not work well on the Balloons dataset. The LPC algorithm uses Laplace centrality to measure density. Its principle is based on the law of statistical distribution. For high-dimensional datasets, the Laplace centrality measurement will produce deviations, which will affect the clustering effect. For example, the algorithm does not perform well on Heart disease, Balloons, and SPECT Heart.
[0139] The clustering method (CSMCA) of the present invention achieves the best clustering indexes on most of the data sets, and the remaining indexes are not much different from the best indexes, which shows that the clustering method (CSMCA) of the present invention is effective in processing real, high-dimensional clustering.
[0140] Table 7 Comparison of clustering results on real datasets
[0141]
[0142]
[0143]
[0144] Algorithm complexity analysis:
[0145] Time complexity is an important indicator to measure the efficiency of an algorithm. The main time overhead of the clustering method (CSMCA) of the present invention is as follows: calculation of variables such as neighbor parameter k and boundary degree, establishment and traversal of mutual neighbor relationships of core objects, object division, etc.
[0146] The neighbor relationship between objects is the basis for calculating each variable. The present invention uses a local sensitive hash function to search for the neighbor relationship of an object, and reduces the time complexity by increasing the amount of code, and its time complexity is O(nlog2n); the time complexity of calculating the neighbor parameter k is O(tnlog2n), t is the number of iterations, t<<n; the time complexity of calculating the local density and density weight is O(nlog2n+n); the time complexity of calculating the boundary degree and sorting is O(nlog2n+n+nlog2n); the time complexity of establishing mutual neighbor relationship is O(nk); the time complexity of traversing the mutual neighbor graph is O(n+k); the time complexity of object partitioning is O(n). The sum of the time complexity of each step of the clustering method (CSMCA) of the present invention is O(nlog2n+tnlog2n+nlog2n+n+kn+n+k+n), so the time complexity of the clustering method (CSMCA) of the present invention is O(nlog2n). Table 8 shows the time complexity of each comparison algorithm. It can be seen that the time complexity of the clustering method (CSMCA) of the present invention is lower than that of the same type of algorithms such as DPC, LPC, and CDP. Since the clustering method (CSMCA) of the present invention uses a local sensitive hash function to search the neighbor space of the object, the algorithm does not need to store the similarity matrix between objects, and the space complexity of the algorithm is reduced from O(n 2 ) is reduced to O(kn).
[0147] Table 8 Time complexity analysis of the algorithm
[0148]
[0149]
[0150] Conclusion: Based on the spatial distribution characteristics of cluster centers, the present invention proposes a clustering method (CSMCA) based on density peaks in high-dimensional real scenarios. A parameter-free local kernel density calculation method is proposed to solve the problem of density measurement imbalance caused by unreasonable parameter settings; at the same time, a cluster center selection model is established based on the proposed boundary degree calculation method, which effectively extracts cluster centers and solves the problems of center selection deviation and parameter sensitivity. The clustering method (CSMCA) of the present invention has only one parameter: the proportion factor λ, which has fewer parameters than most clustering algorithms and has good robustness. It can effectively cluster multi-density and high-dimensional data sets containing noise with high accuracy.
[0151] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A clustering method based on density peaks in high-dimensional real scenarios, characterized in that: The steps include: Step 1: Collect data; Step 2: Perform a cleaning operation on the collected data, wherein the cleaning operation refers to performing default value processing and attribute normalization on the data; Step 3: Calculate the neighbor parameter K, local density, density weight and boundary degree; Step 4: Use the CSM model to determine the cluster center; Step 5: Divide the remaining data objects; Step 6: Based on the division results, sort out the available information to assist decision making; Step 7: Output available information; This clustering method is applied in the fields of computer vision and natural language processing; In step 3, the k nearest neighbors are used as the sampling space of the exponential kernel function to form a local density, which is defined as follows: Let x∈D, D is the data set, and the local density den(x) of the object x is given by the following formula: den(x)=∑ y∈knn(x) exp(-dist(x,y)) (1) Where dist(x,y) is the Euclidean distance between objects x and y, and knn(x) is the set of k nearest neighbors of object x; In step 3, the boundary degree BD(x) of object x is calculated as follows: sc(x) represents skewness, and the calculation formula of skewness sc(x) is as follows: Among them, x ij represents the j-th attribute of object i, x p is the k nearest neighbors of object i, x pj is the jth attribute of object p; In step 3, the density weight W(x) of object x is calculated as follows: W(x)=den(x)*δ(x) (5) Among them, δ(x) represents the minimum distance between x and the high-density data object.
2. The clustering method according to claim 1, characterized in that: In step 3, the adaptive calculation process of the neighbor parameter K is: first, the initial value of the loop variable T is set to 1, and the increment step is 1; then, the T neighbor set and the mutual neighbor set of the object are iteratively calculated until a stable state is reached: the size of the mutual neighbor set of the object no longer changes, and the number of mutual neighbors of the object has fully characterized the distribution of its surroundings; finally, the mean value of the number of mutual neighbors of the object in the stable state is taken as the value of the k neighbor parameter.
3. The clustering method according to any one of claims 1 to 2, characterized in that: In step 4, first, the CSM model extracts core objects based on the boundary degree and the proportion factor λ to form a set core_object_set. Based on the idea of graph, the mutual neighbor relationship of the core objects is established to form a mutual neighbor relationship graph knn_graph. The number of connected areas is calculated through a traversal algorithm, which is the number of cluster centers cluster_no. Finally, the expected cluster centers are determined in combination with the position distribution of the cluster centers in the descending sequence of density weights to form a set cluster_center_set.
4. A clustering system based on density peaks in high-dimensional real-world scenarios, characterized in that: include: Acquisition module: used to collect data; Cleaning module: used to clean the collected data; Variable calculation module: used to calculate the neighbor parameter K, local density, density weight and boundary degree; Processing module: used to determine the cluster center using the CSM model; Partition module: used to partition the remaining data objects; Sorting module: used to sort out available information for decision support based on the division results; Output module: used to output available information; This clustering system is used in the fields of computer vision and natural language processing; In the variable calculation module, the k nearest neighbors are used as the sampling space of the exponential kernel function to form a local density, which is defined as follows: Let x∈D, the local density den(x) of object x is given by: den(x)=∑ y∈knn(x) exp(-dist(x,y)) (1) Where dist(x,y) is the Euclidean distance between objects x and y, and knn(x) is the set of k nearest neighbors of object x; The adaptive calculation process of the nearest neighbor parameter K is as follows: first, the initial value of the loop variable T is set to 1, and the increment step is 1; then, the T nearest neighbor set and the mutual nearest neighbor set of the object are iteratively calculated until a stable state is reached: the size of the mutual nearest neighbor set of the object no longer changes, and the number of mutual nearest neighbors of the object has fully characterized the distribution of its surroundings; finally, the mean value of the number of mutual nearest neighbors of the object in the stable state is taken as the value of the k nearest neighbor parameter; The boundary degree BD(x) of object x is calculated as follows: sc(x) represents skewness, and the calculation formula of skewness sc(x) is as follows: The density weight W(x) of object x is calculated as follows: W(x)=den(x)*δ(x) (5) Among them, δ(x) represents the minimum distance between x and the high-density data object.
5. The clustering system according to claim 4, characterized in that: In the processing module, first, the CSM model extracts core objects based on the boundary degree and the proportion factor λ to form a set core_object_set. Based on the idea of graph, the mutual neighbor relationship of the core objects is established to form a mutual neighbor relationship graph knn_graph. The number of connected areas is calculated through a traversal algorithm, which is the number of cluster centers cluster_no. Finally, combined with the position distribution of the cluster center in the descending sequence of density weight, the expected cluster center is determined to form a set cluster_center_set.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the clustering method according to any one of claims 1 to 3 when called by a processor.
