A network community mining method and its application in part processing area identification
By predicting the number of communities between network nodes to reason about the community structure, it solves the problems of overlapping community mining and community number estimation in the existing technology, realizes community mining without relying on community number information, and improves the accuracy of community mining. and efficiency, suitable for a variety of online community tasks.
Patent Information
- Application Number
- CN202111524759.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-14
AI Technical Summary
Existing unsupervised community mining methods cannot effectively handle the problem of overlapping communities, and need to estimate the number of communities in advance. If the estimation is inaccurate, the final effect will be affected.
Infer the communities in the network by predicting the number of communities to which network nodes belong together, avoiding reliance on community number information, and using methods such as maximum likelihood estimation, Gaussian process regression or graph neural networks for community mining.
It realizes community mining without relying on community quantity information, improves the accuracy and efficiency of community mining, and is suitable for a variety of network community tasks, such as social networks and identification of parts processing areas.
Smart Images

Figure CN114186691B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of community mining in network science, and specifically relates to a new method based on predicting the number of network communities to which network nodes belong together and then inferring the network communities. It is a method for mining complex network communities using computer technology, logical reasoning, etc., and its application in identifying parts processing areas. Background Art
[0002] There are various complex systems in nature, engineering, human society and other fields. They are composed of a large number of interacting subsystems. In research, subsystems are usually abstracted as nodes, and the interactions between subsystems are abstracted as connections between nodes, so that complex systems are abstracted as networks, such as the Internet, protein networks, urban subway networks, social networks, etc. Research on networks helps to explore and discover the properties and laws of the corresponding complex systems.
[0003] Community structure is an important feature of most networks, and community mining has become a hot area in network science research. There are currently two main definitions of network communities. The first defines network communities structurally as a collection of network nodes that are tightly connected internally and sparsely connected externally; the second defines network communities functionally as a collection of network nodes that share a certain function or role. Regardless of whether it is a structural definition or a functional definition, a network community is essentially a collection of network nodes. Network community mining has important theoretical significance and practical value in many fields, such as predicting the spread of the COVID-19 pandemic through community mining in the COVID-19 pandemic network, finding different interpersonal circles through community mining in social networks, and finding possible protein complexes through community mining in protein networks.
[0004] In the field of network science community mining research, a large number of community mining algorithms have been proposed. Depending on whether the same network node is allowed to belong to multiple network communities, the community mining task can be divided into non-overlapping community mining and overlapping community mining. Since overlapping community mining allows the same network node to belong to any number of network communities, the mining difficulty is greatly increased compared to non-overlapping community mining. Since real communities in the real world often overlap with each other, the practical significance of overlapping community mining is far greater than that of non-overlapping community mining. On the other hand, depending on whether relevant information about real communities is needed to train the model, the existing community mining algorithms can be divided into unsupervised methods and supervised methods. Unsupervised methods mainly include clustering-based methods, spectral methods, dynamics-based methods, optimization-based methods, etc. Among them, typical clustering-based methods include Louvain method and Infomap method based on hierarchical clustering; typical spectral methods include spectral bisection method based on eigenvector of Laplace matrix of graph; typical dynamics-based methods include random walk-based methods, flow simulation methods, etc.; typical optimization-based methods include Kernighan-Lin algorithm based on edge number optimization, a series of optimization algorithms based on network modularity optimization, etc. These unsupervised community mining methods usually only consider the topological structure characteristics of the network and cannot use node features or label information of the real community. The algorithm effect is very limited. Therefore, the existing unsupervised community mining methods are mainly aimed at non-overlapping community mining problems.
[0005] With the rise of machine learning technology, a large number of supervised community mining methods based on machine learning models have been proposed and used to solve complex overlapping community mining problems. In 2019, Oleksandr Shchur proposed a graph convolutional neural network combined with a Bernoulli-Poisson probability model to achieve overlapping community mining. In 2019, Giancarlo Sperlí introduced sparse matrix convolution in convolutional neural networks to achieve community mining in large-scale social networks. In 2019, Yuting Jia proposed a generative adversarial model to achieve overlapping community mining. The supervised community mining model based on machine learning can not only capture the characteristics of network topology, but also make full use of the high-dimensional characteristics of network nodes, and learn the community division pattern of the network from limited real community label information, thereby achieving complex overlapping community mining and functional communities. However, the existing community mining models based on machine learning mainly make direct predictions for network communities, and need to estimate the number of communities in the network in advance. If the estimation is not accurate enough, it will have a huge impact on the final effect, which makes the unknown number of communities a recognized problem in this field.
[0006] Patent CN201310415022X proposes a complex network community mining method based on a genetic algorithm of minimum spanning tree clustering. This method uses a genetic algorithm to optimize network modularity and uses minimum spanning tree clustering to avoid premature convergence. This method is an unsupervised, non-overlapping community mining method that only considers the topological structure characteristics of the network and cannot use node features or label information of real communities. It has limited effect and cannot mine functional communities. Summary of the invention
[0007] The present invention aims at the problem of unknown number of communities in the process of network community mining, converts the prediction of network communities into prediction of network nodes, provides a network community mining method and its application in part processing area identification, and infers the communities in the network by predicting the number of communities that network nodes belong to in common, thus avoiding dependence on community quantity information.
[0008] One of the technical solutions of the present invention is:
[0009] A network community mining method, characterized by comprising:
[0010] Obtain the number n of network nodes and the characteristics of the network nodes;
[0011] Select an integer k from 2, 3, 4, ..., n;
[0012] Select k network nodes from n network nodes as a combination, and predict the number of network communities to which the k network nodes in the combination belong as the community value of the combination;
[0013] The combination of all or part of the k network nodes contained in the network and the community value of each combination are used as constraint conditions to infer the network community.
[0014] The k network nodes are k identical, different or non-identical network nodes; if there are identical network nodes in the combination of the k network nodes, the identical network nodes are merged, for example, the combination {v1, v1, v2} is transformed into {v1, v2} by merging the identical network nodes, that is, the number of network communities to which v1, v1, and v2 belong together is equivalent to the number of network communities to which v1 and v2 belong together.
[0015] The method of inferring the network community by using the combination of all or part of k network nodes and the community value of each combination as constraint conditions is as follows:
[0016] For a network node v, if k v are taken as a combination, the community value of the combination is the number of network communities to which v belongs. Let this number be i (i ≥ 1), and use the combination of all or part of i+1 network nodes and their community values as constraints to infer the i network communities to which v belongs;
[0017] Taking i=2 as an example, let r be a network node that belongs to only two network communities, and let these two network communities be C1 and C2. According to the community value of the combination of this node and other network nodes, other network nodes in C1 and C2 can be obtained. Among them, some network nodes belong to two network communities with r, and C1 and C2 contain these network nodes at the same time; another part of the network nodes only belong to one network community with r. Take any two network nodes from them, set them as r′1 and r′2. If the community value of the combination of r, r′1, and r′2 is 1, then r′1 and r′2 exist in C1 or C2 at the same time. If the community value of the combination of r, r′1, and r′2 is 0, then r′1 and r′2 belong to C1 and C2 respectively. By analogy, all network nodes included in C1 and C2 can be inferred.
[0018] For the case where i≠2, the above reasoning method can still be used to infer i network communities.
[0019] In order to continue to infer the remaining network communities, the constraints contained in the inferred network communities are removed from the existing constraints, that is, the community value of the combination of all k network nodes in the inferred network community is reduced by 1;
[0020] Reasoning about the remaining network communities based on the updated constraints;
[0021] The above process is repeated until the current constraints cannot infer new network communities.
[0022] The characteristics of the network nodes are characteristic information describing a single network node or multiple network nodes, and the information type is scalar data, vector data, tensor data, image data, text data or other user-specified data.
[0023] The method or model used for the prediction is a statistical method or model of maximum likelihood estimation or Gaussian process regression, or a machine learning method or model of support vector machine, random forest, neural network, graph neural network, or other methods or models that perform direct calculations based on the characteristics of the actual network.
[0024] The second technical solution of the present invention is:
[0025] A method for identifying parts processing areas based on a network community mining method, characterized in that it includes the following steps:
[0026] The part model is represented as a network, the nodes of the network correspond to the faces on the part model, the edges of the network correspond to the edges on the part model, and since the part processing area is composed of the faces on the part model, the processing area corresponds to the network community;
[0027] Execute the network community mining method to obtain the number of nodes in the network and obtain the features of each face on the part model as the features of the corresponding network nodes;
[0028] Obtain part models of parts whose processing areas have been identified, calculate the community values of all combinations of two network nodes according to the network communities corresponding to the processing areas, and match the features of every two network nodes with the community values of the combinations of these two network nodes to form label sample data;
[0029] Build a machine learning model to learn the mapping relationship between the features of every two network nodes and the community value of the combination of these two network nodes based on the existing labeled sample data;
[0030] For new part models with unidentified processing areas, the trained machine learning model is used to predict the community values of all combinations of two network nodes, and then the community values of all or part of the combinations are used as constraints to infer the network community;
[0031] For a network node v, if the community value of the combination {v,v} is 1, that is, v belongs to only one network community, then according to the community value of the combination of this node and other network nodes, we can get m network nodes that belong to only one community with v, set as v′1,v′2,v′3…v′ m , since v belongs to only one network community, v′1,v′2,v′3…v′ m are all in the same network community, so the network community to which v belongs is {v,v′1,v′2,v′3…v′ m}.
[0032] In order to continue to infer other communities, the constraints contained in the community are removed from the existing constraints, that is, the community value of all combinations of two network nodes in the network community is reduced by 1;
[0033] Reason about the remaining network communities using the updated constraints;
[0034] Repeat the above process until the current constraints cannot infer new network communities;
[0035] The inferred network community is used as the processing area of the part.
[0036] The beneficial effects of the present invention are:
[0037] The present invention can be widely used in community mining tasks of various networks, such as social network community mining, part geometry network processing area mining, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is an implementation flow chart of the present invention.
[0039] Figure 2 This is a part model used as an example in an embodiment of the present invention.
[0040] Figure 3 It is a network constructed by part models in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0042] (1) Implementation 1: A network community mining method
[0043] Let G1, G2, …, G 21 are 21 networks from the same scenario, which have similar topological structures and network community patterns. 20 The network community is known to 21 The network community of G is unknown. Now, the method in the present invention is used to 21 Mining online communities in
[0044] First, obtain G 21 The number of network nodes is 10, and G 21 The network node features are expressed in vector form as follows:
[0045] h0=[1,1.23,1.53,0.56,0,1,0]
[0046] h1=[1,0.65,0.23,1.20,1,0,0]
[0047] h2=[2,0.72,0.36,1.32,1,0,0]
[0048] h3=[2,0.43,1.16,1.78,0,1,0]
[0049] h4=[2,0.98,1.46,1.32,1,0,0]
[0050] h5=[2,0.64,1.76,1.55,0,0,1]
[0051] h6=[3,0.15,0.96,0.74,0,1,0]
[0052] h7=[3,0.09,0.68,0.39,0,0,1]
[0053] h8=[4,0.12,1.20,0.46,1,0,0]
[0054] h9=[4,0.75,1.56,0.57,1,0,0]
[0055] The integer k selected from 2 to 10 is 2.
[0056] Establish a graph neural network model from G1 to G 20 The mapping relationship between the features of every two network nodes and the community value of the combination of these two network nodes is learned.
[0057] The training sample data of the graph neural network is obtained as follows: i (1≤i≤20), calculate the community value of each combination of two network nodes based on the known network community, and match the features of each two network nodes with the community value of the combination of these two network nodes to form label sample data. After training, use this graph neural network to predict G 21 The community value of each combination of 2 network nodes is as follows:
[0058]
[0059] The diagonal elements of this matrix are G 21 The number of network communities to which each network node belongs, and the off-diagonal elements are the number of network communities to which every two different network nodes belong. The prediction result is used as a constraint to infer the network community, and the process is as follows:
[0060] From the prediction results, we can see that v0 belongs to only one network community, and v0, v3, v4, and v7 all belong to only one network community. Therefore, the network community to which v0 belongs is {v0, v3, v4, v7}; similarly, the network community to which v1 belongs is {v1, v5, v6, v8, v9}.
[0061] In order to continue to infer the remaining network communities, the constraints contained in the inferred network communities are removed from the existing constraints, that is, the community value of every combination of 2 network nodes is reduced by 1. The updated constraints are as follows:
[0062]
[0063] For the updated constraints, v3, v4, and v5 belong to only one network community respectively. Using the current constraints, we can infer {v3, v7, v8, v9}, {v4, v5, v9}. We update the constraints again as shown below:
[0064]
[0065] For the updated constraints, v9 belongs to only one network community. Using the current constraints, we can infer {v2, v6, v8, v9}. We update the constraints again as follows:
[0066]
[0067] For the updated constraints, v2, v6, v7, and v8 belong to only one network community. Using the current constraints, we can infer {v2, v6, v7, and v8}. We update the constraints again as follows:
[0068]
[0069] The current constraints make it impossible to infer any network community, so the community mining results are {v0,v3,v4,v7}, {v1,v5,v6,v8,v9}, {v3,v7,v8,v9}, {v4,v5,v9}, {v2,v6,v8,v9} and {v2,v6,v7,v8}.
[0070] (2) Implementation 2: A method for identifying part processing areas based on supervised learning
[0071] Existing parts need to be processed, such as Figure 2 As shown, a part processing area recognition method based on supervised learning proposed by the present invention is used to identify Figure 2 The processing area of the part.
[0072] The part model is represented as a network. The nodes of the network correspond to the faces on the part model, and the edges of the network correspond to the edges on the part model. Since the part processing area is composed of the faces on the part model, the processing area to be identified corresponds to the network community to be mined. Since the part to be processed is a slot structure, the processing areas to be identified are all within the slot structure. Therefore, it is actually only necessary to establish a network for the slot structure, such as Figure 3 shown.
[0073] The network community mining method proposed in the present invention is executed to obtain 13 nodes in the network. The geometric properties such as the normal vector, the number of adjacent faces, and the face type of each face on the part model in the machining coordinate system are obtained as features. The features corresponding to the network nodes are expressed in vector form as follows:
[0074] h0=[1,0,0,5,0,1]
[0075] h1=[0,-1,0,3,0,1]
[0076] h2=[-1,0,0,5,0,1]
[0077] h3=[0,1,0,3,0,1]
[0078] h4=[0.707,-0.707,0,3,1,0]
[0079] h5=[-0.707,-0.707,0,3,1,0]
[0080] h6=[-0.707,0.707,0,3,1,0]
[0081] h7=[0.707,0.707,0,3,1,0]
[0082] h8=[0,0,1,8,0,1]
[0083] h9=[0,0,1,8,0,1]
[0084] h 10 =[0.707,-0.707,0,4,1,0]
[0085] h 11 =[0,-1,0,4,0,1]
[0086] h 12 =[-0.707,-0.707,0,4,1,0]
[0087] The integer k selected from 2 to 10 is 2.
[0088] Obtain similar part models with identified processing areas, calculate the community value of each combination of two network nodes based on the network community corresponding to the processing area, and match the features of each two network nodes with the community value of the combination of these two network nodes to form labeled sample data.
[0089] A graph neural network machine learning model is established to learn the mapping relationship between the features of every two network nodes and the community of the combination of these two network nodes based on the existing labeled sample data.
[0090] For the network community corresponding to the part, the trained machine learning model is used to predict the community value of each combination of 2 network nodes, and then it is used as a constraint condition, as shown below:
[0091]
[0092] From the constraints, we can see that v1 belongs to only one network community, and v1, v2, v3, v4, v5, v6, and v7 belong to only one network community together. Therefore, the network community to which v1 belongs is {v1, v2, v3, v4, v5, v6, v7}, and the same goes for {v8} and {v9}.
[0093] In order to continue to infer the remaining network communities, the constraints contained in the inferred network communities are removed from the existing constraints, that is, the community value of every combination of two network nodes in the inferred network community is reduced by 1. The updated constraints are as follows:
[0094]
[0095] For the updated constraints, v0,v2,v3,v6,v7,v 10 ,v 11 ,v 12 Each of them belongs to only one network community. Using the current constraints, we can infer that {v0,v2,v3,v6,v7,v 10 ,v 11 ,v 12}, and update the constraints again as follows:
[0096]
[0097] The current constraints make it impossible to infer any network community, so the community mining results are {v1,v2,v3,v4,v5,v6,v7},{v8},{v9} and {v0,v2,v3,v6,v7,v 10 ,v 11 ,v 12}, and the inferred network community is used as the processing area of the part to complete the processing area identification.
[0098] The parts not involved in the present invention are the same as the prior art and are implemented by using the prior art.
Claims
1. A method for identifying parts processing areas based on network community mining method, Features: The following steps are involved: The part model is represented as a network, the nodes of the network correspond to the faces on the part model, the edges of the network correspond to the edges on the part model, and since the part processing area is composed of the faces on the part model, the processing area corresponds to the network community; Execute the network community mining method to obtain the number of nodes in the network and obtain the features of each face on the part model as the features of the corresponding network nodes; Obtain part models of parts whose processing areas have been identified, calculate the community values of all combinations of two network nodes according to the network communities corresponding to the processing areas, and match the features of every two network nodes with the community values of the combinations of these two network nodes to form label sample data; Build a machine learning model to learn the mapping relationship between the features of every two network nodes and the community value of the combination of these two network nodes based on the existing labeled sample data; For new part models with unidentified processing areas, the trained machine learning model is used to predict the community values of all combinations of two network nodes, and then the community values of all or part of the combinations are used as constraints to infer the network community; For a network node v, if the community value of the combination {v,v} is 1, that is, v belongs to only one network community, then according to the community value of the combination of this node and other network nodes, we can get m network nodes that belong to only one community with v, set as v′ 1 ,v′ 2 ,v′ 3 …v′ m , since v belongs to only one network community, v′ 1 ,v′ 2 ,v′ 3 …v′ m are all in the same network community, so the network community to which v belongs is {v,v′ 1 ,v′ 2 ,v′ 3 …v′ m }; In order to continue to infer other communities, the constraints contained in the community are removed from the existing constraints, that is, the community value of all combinations of two network nodes in the network community is reduced by 1; Reason about the remaining network communities using the updated constraints; Repeat the above process until the current constraints cannot infer new network communities; The inferred network community is used as the processing area of the part.
2. The method according to claim 1, Its characteristics are The network community mining method comprises: Obtain the number n of network nodes and the characteristics of the network nodes; Select an integer k from 2, 3, 4, ..., n; Select k network nodes from n network nodes as a combination, and predict the number of network communities to which the k network nodes in the combination belong as the community value of the combination; The combination of all or part of the k network nodes contained in the network and the community value of each combination are used as constraint condition inference network community; the method of constraint condition inference network community is as follows: For a network node v, if k v are taken as a combination, the community value of the combination is the number of network communities to which v belongs. Let this number be i, i ≥ 1, and use the combination of all or part of i+1 network nodes and their community values as constraints to infer the i network communities to which v belongs; In order to continue to infer the remaining network communities, the constraints contained in the inferred network communities are removed from the existing constraints, that is, the community value of the combination of all k network nodes in the inferred network community is reduced by 1; Reasoning about the remaining network communities based on the updated constraints; The above process is repeated until the current constraints cannot infer new network communities.
3. The method according to claim 2, Features: The k network nodes are k identical, different or not completely identical network nodes; if there are identical network nodes in the combination of the k network nodes, the identical network nodes are merged.
4. The method according to claim 2, Features: The characteristics of the network node are characteristic information describing a single network node or multiple network nodes.
5. The method according to claim 2, Features: The method or model used for the prediction is the statistical method or model of maximum likelihood estimation and Gaussian process regression.
6. The method according to claim 2, Features: The method or model used for the prediction is a machine learning method or model of support vector machine, random forest, or neural network.
7. The method according to claim 6, Features: The neural network is a graph neural network.
