Representative co-location pattern extraction method based on frequent co-location pattern
By extracting and clustering maximum co-located patterns, and combining features and distribution similarities, a representative set of co-located patterns is generated, which solves the problems of redundant pattern generation and insufficient compression capabilities of traditional co-located pattern mining frameworks, and achieves a more efficient representation of co-located patterns. and analysis.
Patent Information
- Application Number
- CN202410748783.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-11
AI Technical Summary
Traditional frequent co-location pattern mining frameworks generate a large number of redundant patterns, making it difficult for users to analyze, and the compression capability of co-location pattern compression algorithms cannot exceed that of maximum co-location patterns, and the feature overlap between maximum co-location patterns destroys simplicity.
By obtaining frequent co-located pattern sets, extracting maximum co-located patterns and performing K-Means clustering, select representative maximum co-located patterns based on characteristics and distribution similarity, generate high-order redundant patterns, and check maximum co-located patterns from top to bottom. sub-patterns, remove redundant patterns, and thereby extract a set of representative homotopic patterns.
It effectively reduces redundant patterns, improves the compression capability and simplicity of parity patterns, breaks through the balance strategy restrictions between maximum parity patterns and closed parity patterns, and achieves a more stable pattern representation.
Smart Images

Figure CN118760969A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical fields of spatial data mining, co-location pattern mining and pattern compression, and in particular to a representative co-location pattern extraction method based on frequent co-location patterns. Background Art
[0002] Frequent co-location pattern mining is an important branch of spatial data mining. A frequent co-location pattern represents a subset of spatial features whose instances are usually co-located in a spatial neighborhood. For example, the set {supermarket, parking lot} may be a frequent co-location pattern because parking lots are often adjacent to supermarkets. Spatial co-location patterns provide decision support for many fields such as environmental science, public health, urban planning, and public transportation.
[0003] As spatial data grows, traditional frameworks for mining co-location patterns generate a large number of redundant co-location patterns, which makes it difficult for users to conduct further analysis. There are two classic representations for the traditional compression of frequent co-location patterns: maximal co-location patterns and closed co-location patterns. The superset patterns of maximal co-location patterns are all infrequent, have strong compression capabilities, and provide highly concise representations of frequent co-location patterns. However, they are regarded as lossy representations because they only focus on the characteristic composition of the pattern and ignore its specific distribution. On the other hand, the participation of closed co-location patterns is not equal to the participation of its superset pattern, retaining all the information of frequent co-location patterns and being regarded as lossless representations. However, due to its strict definition, the compression ability of closed co-location patterns is weak and unstable, and even slight perturbations of spatial datasets can have a significant impact on closed co-location patterns.
[0004] In subsequent studies, researchers are committed to finding a balance between maximal co-patterns and closed co-patterns. By relaxing the evaluation criteria for closed co-patterns, compression capabilities are enhanced while preventing information loss. However, the balance strategy limits the further development of compression methods because the ultimate limitation of any compression method developed under this strategy is two basic representations: maximal co-patterns and closed co-patterns. The compression capabilities of these methods cannot exceed maximal co-patterns. Another problem is that even if there is no inclusion relationship between maximal co-patterns, they can still exhibit significant feature overlap, which undermines their simplicity. Therefore, this paper extracts representative co-patterns from maximal co-patterns and non-maximal co-patterns, respectively, to break through this bottleneck. Summary of the invention
[0005] The purpose of the present invention is to provide a representative isochronous pattern extraction method based on frequent isochronous patterns, aiming to change the problem that the current traditional framework for mining isochronous patterns generates a large number of redundant isochronous patterns, making it difficult for users to conduct further analysis, and at the same time solve the problem that the compression capacity of the current isochronous pattern compression algorithm cannot exceed the extremely large isochronous pattern.
[0006] To achieve the above object, the present invention provides a representative co-location pattern extraction method based on frequent co-location patterns, comprising the following steps:
[0007] (1) Obtain a set of frequent co-location patterns;
[0008] (2) Obtaining the maximum co-location pattern from the frequent co-location pattern set;
[0009] (3) K-Means clustering of the maximum homotopic patterns based on feature similarity;
[0010] (4) Obtain similar patterns of each maximal homotopic pattern in the same cluster based on distribution similarity;
[0011] (5) Select the maximal co-location pattern with the largest number of similar patterns as the representative maximal co-location pattern, and delete the selected representative maximal co-location pattern and its similar patterns from the cluster, and repeat step (5) until all clusters are empty;
[0012] (6) Obtaining a non-maximal co-location pattern set from a frequent co-location pattern set;
[0013] (7) obtaining a second-order sub-co-pattern set with similar distribution of maximal co-patterns, and generating all high-order redundant patterns based on the pattern set;
[0014] (8) Check from top to bottom whether the sub-patterns of the maximal co-location pattern are in the high-order redundant pattern set. If the pattern is in the high-order redundant pattern set, it is directly deleted from the non-maximal co-location pattern set. Otherwise, calculate the distribution similarity between the pattern and the maximal co-location pattern. If the distribution is similar, delete the pattern from the non-maximal co-location pattern set.
[0015] (9) Delete the second-order distribution similar co-location patterns and high-order redundant patterns from the non-maximal co-location pattern set, and repeat steps (7) to (9) until all maximal co-location patterns are checked;
[0016] Frequent co-location patterns refer to a set of spatial features in which a set of instances frequently appear in adjacent areas in a specific space. In the process of obtaining the set of frequent co-location patterns, all frequent co-location patterns are mined from the spatial dataset through a clique-based approach, which is called neighborhood-driven patterning. Unlike traditional connection-based methods, neighborhood-driven patterning mines cliques and stores them through hash tables. The total set of cliques contains all neighboring relations in the spatial dataset. Therefore, the table instance of each co-location pattern can be derived from the corresponding clique and the participation of each co-location pattern can be calculated according to the hash table and all frequent co-location patterns can be mined.
[0017] A maximal parity pattern refers to a parity pattern whose superset is not a frequent pattern among the frequent parity patterns. In the process of obtaining a maximal parity pattern, the frequent parity patterns are first sorted in descending order of order, and the frequent parity pattern with the largest order is considered to be the maximal parity pattern. Then, the remaining frequent parity patterns are compared with the current maximal parity pattern. If the maximal parity pattern does not contain the current parity pattern, then the frequent parity pattern is a maximal parity pattern, otherwise it is a non-maximal parity pattern.
[0018] The feature similarity between any two maximal co-location patterns is evaluated. Then, the maximal co-location patterns are clustered using the K-Means algorithm, where the number of clusters is recommended to be set to |0.25*average size of maximal co-location patterns|. After clustering, maximal co-location patterns with high feature similarity are assigned to the same cluster.
[0019] For each cluster, the distribution similarity between the maximal homotopic patterns is calculated, and then the similar patterns of each pattern are stored in the similar pattern set. In this way, the number of patterns that meet the conditions of both feature similarity and distribution similarity is found.
[0020] The maximal co-location pattern with the largest number of similar patterns is selected as the representative maximal co-location pattern. If a pattern is similar to the representative pattern, the pattern is deleted from the cluster. The above operation is repeated until the cluster is empty.
[0021] Valuable co-patterns are mined from non-maximal co-patterns, maximal co-patterns are removed from the frequent co-pattern set, and the remaining frequent patterns are regarded as valuable non-maximal co-patterns.
[0022] For each maximal parity pattern, its second-order parity patterns are first collected, and then the distribution similarity between the maximal parity pattern and each second-order parity pattern is calculated to obtain a set of second-order parity patterns with similar distributions, and a high-order redundant pattern is generated based on the pattern set.
[0023] Then, a method of checking whether the sub-pattern of the maximal co-location pattern is a redundant pattern is adopted from top to bottom. If the sub-pattern is in the high-order redundant pattern set, it is directly deleted from the non-maximal co-location pattern set. Otherwise, the distribution similarity between the pattern and the maximal co-location pattern is calculated. If the distribution is similar, the pattern is deleted from the non-maximal co-location pattern set.
[0024] Finally, the remaining redundant patterns are deleted from the non-maximal co-location pattern set, and the remaining maximal co-location patterns are further checked. Finally, the patterns in the remaining set are valuable non-maximal co-location patterns.
[0025] Among them, we propose two metrics, feature similarity and distribution similarity, to evaluate the similarity between any frequent co-patterns from the perspectives of feature composition and instance distribution. The feature composition of a frequent co-pattern refers to the features involved in forming the co-pattern. When two co-patterns share more features (i.e., have more overlapping features), their feature composition becomes more similar. Highly similar feature combinations may convey the same information to users. Instance distribution refers to the specific location of its row instances in space. When two co-patterns show similar instance distributions, it indicates that their respective row instances frequently form adjacent relationships in a given area. For users, this relationship may represent redundant information. For the redundancy between maximal co-patterns, we believe that there is redundancy between two maximal co-patterns only when both feature similarity and distribution similarity meet the conditions. For non-maximal co-patterns, redundancy exists when the distribution similarity meets the conditions.
[0026] The present invention provides a representative co-pattern extraction method based on frequent co-patterns, and extracts representative co-patterns from a frequent pattern set. Based on two similarity metrics, namely feature similarity and distribution similarity, the similarity between patterns is evaluated. First, representative maximal co-patterns are mined from maximal co-patterns, which have the most similar maximal co-patterns. Then, valuable co-patterns are extracted from non-maximal co-patterns, because representative maximal co-patterns can only represent frequent co-patterns from a feature perspective, but cannot represent the instance distribution of all frequent co-patterns. Finally, a representative co-pattern set is obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 This is a flowchart of a representative isotope pattern extraction method based on frequent isotopes.
[0029] Figure 2 is an example of frequent co-location pattern mining.
[0030] Figure 3 is an example of building a hash table.
[0031] Figure 4 This is a pseudocode introduction to computing the similarity of the distribution of any two frequent co-location patterns.
[0032] Figure 5This is a pseudocode introduction to K-Means clustering of maximal homotopic patterns based on feature similarity.
[0033] Figure 6 This is a pseudocode introduction to extracting representative maximal homonymous patterns based on clustering and distribution similarity.
[0034] Figure 7 This is a pseudocode introduction to extracting valuable co-location patterns from non-maximal co-location patterns.
[0035] Figure 8 is based on Figure 1 An example of mining valuable homotopic patterns from a dataset. DETAILED DESCRIPTION
[0036] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0037] See also Figure 1 The present invention proposes a representative co-location pattern extraction method based on frequent co-location patterns, comprising the following steps:
[0038] (1) Obtain a set of frequent co-location patterns;
[0039] (2) Obtaining the maximum co-location pattern from the frequent co-location pattern set;
[0040] (3) K-Means clustering of the maximum homotopic patterns based on feature similarity;
[0041] (4) Obtain similar patterns of each maximal homotopic pattern in the same cluster based on distribution similarity;
[0042] (5) Select the maximal co-location pattern with the largest number of similar patterns as the representative maximal co-location pattern, and delete the selected representative maximal co-location pattern and its similar patterns from the cluster, and repeat step (5) until all clusters are empty;
[0043] (6) Obtaining a non-maximal co-location pattern set from a frequent co-location pattern set;
[0044] (7) obtaining a second-order sub-co-pattern set with similar distribution of maximal co-patterns, and generating all high-order redundant patterns based on the pattern set;
[0045] (8) Check from top to bottom whether the sub-patterns of the maximal co-location pattern are in the high-order redundant pattern set. If the pattern is in the high-order redundant pattern set, it is directly deleted from the non-maximal co-location pattern set. Otherwise, calculate the distribution similarity between the pattern and the maximal co-location pattern. If the distribution is similar, delete the pattern from the non-maximal co-location pattern set.
[0046] (9) Delete the second-order distribution similar co-location patterns and high-order redundant patterns from the non-maximal co-location pattern set, and repeat steps (7) to (9) until all maximal co-location patterns are checked;
[0047] See also Figure 2 , combined with examples to illustrate the specific steps of frequent co-location pattern mining:
[0048] Step 1: Figure 2 The spatial dataset shown in (a) includes four spatial features such as (ABCD) and their instances (such as A.1). The lines between the instances represent the spatial proximity relationship.
[0049] Step 2: According to Figure 2 (a) generates all candidate patterns and their corresponding table instances, and calculates the participation rate and participation degree of each candidate pattern according to the following formula to obtain the frequent co-location patterns. Figure 2 From (b), we can know that PR({A,B,C},A)=0.75, PR({A,B,C},B)=0.8, PR({A,B,C},C)=0.75.
[0050]
[0051] PI(c)=min f∈c {PR(c,f)}
[0052] See also Figure 3 , combined with examples to illustrate the specific steps of building a hash table:
[0053] Step 1: Initialize a secondary hash table and store each neighboring clique in the hash table. For example, the neighboring clique {A.1, B.1, C.1, D.1}. Since the corresponding homonymous pattern of the neighboring clique does not exist in the key of the hash table, create a primary key {ABCD} and store the corresponding instance in the corresponding secondary key. For example, A.1 is stored in CliqueHash[ABCD][A].
[0054] Step 2: Traverse the neighboring clusters one by one. If the corresponding homonymous pattern of the neighboring cluster already exists in the key of the hash table, directly assign the neighboring cluster to the corresponding key. For example, {A.2, B.2, C.2, D.2}, since the key {ABCD} already exists, directly store A.2 in CliqueHash[ABCD][A]. This continues until all neighboring clusters are assigned to the hash table.
[0055] Furthermore, the present invention is further described in detail with reference to specific embodiments and pseudo codes:
[0056] See also Figure 4 ,The specific steps of the algorithm are as follows:
[0057] Algorithm 1 shows the pseudo code for calculating the distribution similarity between two isochronous patterns, where Ch represents a hash table, and c1 and c2 represent two isochronous patterns.
[0058] (Step 1-4) Use union_Instance to store instances of cu, and use Instances to store instances of c1 and c2.
[0059] (Step 5-8) For each key-value pair kv in the hash table, if cu∈kv.key, add the instance in kv.value to union_Instance.
[0060] (Steps 13-16) If c1∈kv.key or c2∈kv.key, the instance in kv.value is added to Instances (Steps 9-12). We then calculate IS({c1,c2},f) for each feature f belonging to cu and return the minimum value as DS(c1,c2).
[0061] See also Figure 5 ,The specific steps of the algorithm are as follows:
[0062] Algorithm 2 shows the pseudo code for K-Means clustering of maximal clusters based on feature similarity, where MCPs stands for Maximum Colocalization Patterns and k represents the number of clusters.
[0063] (Step 1) According to the feature similarity between the maximal co-location patterns, the maximal co-location patterns are divided into k clusters. The calculation formula of the feature similarity is as follows.
[0064]
[0065] Where c1 and c2 are arbitrary frequent co-location patterns.
[0066] (Step 2-4) After clustering, MCPs with high feature similarity are assigned to the same cluster.
[0067] See also Figure 6 ,The specific steps of the algorithm are as follows:
[0068] Algorithm 3 shows the pseudo code for the process of generating representative maximal co-location patterns from k clusters, where cps represents the co-location pattern set, min_DS represents the minimum distribution threshold, and SimilarPattern represents the similar pattern set.
[0069] (Step 1-9) For each cluster, calculate the distribution similarity between the maximal co-location patterns, and then store the similarity patterns of each pattern in a similarity pattern set.
[0070] (Steps 10-16) The GetMaxPattern method finds the pattern with the largest number of similar patterns from the similar pattern set and regards the pattern as a representative pattern. The pattern and similar patterns are then deleted from the cluster. The above operation is repeated until the cluster is empty, and the representative pattern in the cluster is obtained.
[0071] See also Figure 7 ,The specific steps of the algorithm are as follows:
[0072] Algorithm 4 shows the pseudocode for identifying valuable co-patterns from a non-maximal co-pattern set, where MCPs stands for maximal co-patterns, PCPs stands for frequent co-patterns, and θ stands for the minimum distribution similarity threshold set by the user.
[0073] (Step 1-2) In the initialization step, all non-maximal parity patterns are considered as valuable maximal parity patterns.
[0074] (Step 3-10) For each maximal co-location pattern, first collect the second-order subsets of the pattern, then calculate the distribution similarity between the maximal co-location pattern and its subsets, and if they are similar, add the subset to the set of second-order redundant patterns.
[0075] (Step 11-24) Then, use the second-order redundant pattern set to generate higher-order redundant patterns and add them to the higher-order redundant pattern set, and then further generate redundant patterns in the descending subsets of the maximum co-location pattern and dynamically update the higher-order redundant pattern set.
[0076] (Steps 25-27) Delete the redundant mode from WNMCP.
[0077] See also Figure 8 , combined with examples to illustrate the specific steps of discovering redundant patterns from non-maximal co-location patterns:
[0078] Step 1: First, we need to verify the distribution similarity between the maximum co-location pattern {A, B, C, D} and all second-order patterns, for example, DS({A, B, C, D}, {A, B}) = 1, and the calculation formula is as follows:
[0079]
[0080] where Chkey[f] is the set of instances of key-value pairs belonging to feature f.
[0081] Step 2: If the minimum distribution similarity threshold is set to 0.7, then the patterns {A,B} and {A,B,C,D} are similar in distribution. In addition, given two co-location patterns c1 and c2, pattern c3 is a superset of their union pattern cu (c1∪c2=cu∈c3). If c1 and c2 are both similar in distribution to c3, then cu is also similar in distribution to c3. For example, {A,B} and {A,C} are both similar to {A,B,C,D}, then {A,B,C} is also similar to {A,B,C,D}.
[0082] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A representative co-location pattern extraction method based on frequent co-location patterns, It is characterized in that The following steps are involved: (1) Obtain a set of frequent co-location patterns; (2) Obtaining the maximum co-location pattern from the frequent co-location pattern set; (3) Perform k-means clustering on the maximum homotopic patterns based on feature similarity; (4) Obtain similar patterns of each maximal homotopic pattern in the same cluster based on distribution similarity; (5) Select the maximal co-location pattern with the largest number of similar patterns as the representative maximal co-location pattern, and delete the selected representative maximal co-location pattern and its similar patterns from the cluster, and repeat step (5) until all clusters are empty; (6) Obtaining a non-maximal co-location pattern set from a frequent co-location pattern set; (7) obtaining a second-order sub-co-pattern set with similar distribution of maximal co-patterns, and generating all high-order redundant patterns based on the pattern set; (8) Check from top to bottom whether the sub-patterns of the maximal co-location pattern are in the high-order redundant pattern set. If the pattern is in the high-order redundant pattern set, it is directly deleted from the non-maximal co-location pattern set. Otherwise, calculate the distribution similarity between the pattern and the maximal co-location pattern. If the distribution is similar, delete the pattern from the non-maximal co-location pattern set. (9) Delete the second-order distribution similar co-location patterns and high-order redundant patterns from the non-maximal co-location pattern set, and repeat steps (7) to (9) until all maximal co-location patterns have been checked.
2. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that The frequent co-location pattern described in step (1) refers to a set of spatial features in which a group of instances frequently appear in adjacent areas in a specific space. In the process of obtaining the set of frequent co-location patterns, all frequent co-location patterns are mined from the spatial dataset through a clique-based method, which is called a neighborhood-driven pattern. Different from traditional connection-based methods, neighborhood-driven pattern mining clusters and store clusters through hash tables. The total set of clusters contains all neighboring relationships in the spatial dataset. Therefore, the table instance of each co-pattern can be derived from the corresponding cluster and the participation of each co-pattern can be calculated according to the hash table and all frequent co-patterns can be mined.
3. The representative co-location pattern extraction method based on frequent co-location patterns as claimed in claim 1, It is characterized in that The maximal parity pattern described in step (2) refers to the frequent parity patterns whose supersets are not frequent parity patterns. First, the frequent parity patterns are sorted in descending order of order, and the frequent parity pattern with the largest order is considered to be the maximal parity pattern. Then, the remaining frequent parity patterns are compared with the current maximal parity pattern. If the maximal parity pattern does not contain the current parity pattern, then the frequent parity pattern is the maximal parity pattern, otherwise it is a non-maximal parity pattern.
4. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that In step (3), the feature similarity between any two maximal co-location patterns is first evaluated. Then, the maximal co-location patterns are clustered using the k-means algorithm, where the number of clusters is recommended to be set to |0.25*average size of maximal co-location patterns|. After clustering, maximal co-location patterns with high feature similarity are assigned to the same cluster.
5. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that In step (4), for each cluster, the distribution similarity between the maximum co-location patterns is calculated, and then the similar patterns of each pattern are stored in the similar pattern set. In this way, the number of patterns that meet the conditions of both feature similarity and distribution similarity is found.
6. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that In step (5), the maximal co-location pattern with the largest number of similar patterns is selected as the representative maximal co-location pattern. If a pattern is similar to the representative pattern, the pattern is deleted from the cluster. The above operation is repeated until the cluster is empty.
7. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that In step (6), the maximal co-patterns are removed from the set of frequent co-patterns, and the remaining frequent patterns are regarded as valuable non-maximal co-patterns.
8. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that In step (7), for each maximal co-location pattern, first collect its second-order co-location patterns, then calculate the distribution similarity between the maximal co-location pattern and each second-order co-location pattern, obtain a set of second-order co-location patterns with similar distribution, and generate a high-order redundant pattern based on the pattern set.
9. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that In step (8), a method is adopted to check from top to bottom whether the sub-pattern of the maximal co-location pattern is a redundant pattern. If the sub-pattern is in the high-order redundant pattern set, it is directly deleted from the non-maximal co-location pattern set. Otherwise, the distribution similarity between the pattern and the maximal co-location pattern is calculated. If the distribution is similar, the pattern is deleted from the non-maximal co-location pattern set.
10. The representative co-location pattern extraction method based on frequent co-location patterns according to claim 1, It is characterized in that In step (9), the remaining redundant patterns are deleted from the non-maximal co-location pattern set, and the remaining maximal co-location patterns are further checked. Finally, the patterns in the remaining set are valuable non-maximal co-location patterns.
