Cross-community identity automatic association method and system and storage medium
By combining the language model and the neural network model in cross-community identity association, and using the edit distance similarity calculation method optimized by cross-entropy, the problem of ignoring user attributes and insufficient understanding of proprietary fields in the existing technology is solved, and cross-community improvement is improved. Identity association accuracy and model comprehension.
Patent Information
- Application Number
- CN202410887082.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-24
AI Technical Summary
Existing cross-community identity association algorithms ignore the user's own attributes, are difficult to accurately capture the characteristic information of community users, and lack the ability to understand words or languages in specialized fields, resulting in insufficient accuracy of traditional models in cross-platform identity association.
Through steps such as data preprocessing, cross-community knowledge graph construction, information aggregation, node optimization, and cross-graph attention neighborhood matching, combined with the language model and neural network model, the cross-entropy optimized edit distance similarity calculation method is used to enhance the model. The representation ability of user naming habits and personality signatures, and entity alignment training.
It improves the accuracy of cross-community identity association, enhances the model's ability to understand text in the field of network security, can more accurately capture user behavior habits and personality characteristics, and improves the accuracy of identity association between communities.
Smart Images

Figure CN118690840A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cross-community identity association, and in particular to a method, system and storage medium for automatic cross-community identity association. Background Art
[0002] With the development of Internet technology, cross-community identity association plays an increasingly important role in the fields of intelligent policing, user behavior analysis, and user feature profiling. Especially in the field of safe communities, how to associate the same entities between communities across platforms and dimensions, and complete user information and identity profiling, is becoming an urgent problem to be solved in the field of identity association.
[0003] Most of the existing cross-community identity association algorithms only focus on a single network structure feature, while ignoring the user's own attributes. However, in the real world, the user's own attributes, such as user naming features, can better optimize the cross-graph attention mechanism in community association, allowing the model to not only focus on the model's graph structure data, but also characterize the user's attribute characteristics. In addition, current research lacks the ability to understand domain-specific words or languages. This makes it difficult for traditional models to accurately capture the characteristic information of community users and locate users of the same identity through the similarity of user characteristic information. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method, system and storage medium for automatic association of identities across communities.
[0005] The objective of the present invention is achieved through the following technical solutions: The first aspect of the present invention provides: a method for automatic cross-community identity association, comprising the following steps: S1: Data preprocessing stage, obtaining the identity information and follow-up lists of users on multiple platforms, marking users with the same contact information across platforms as seed nodes and performing data preprocessing to obtain the first identity information and the first follow-up list; S2: In the cross-community knowledge graph construction phase, the user ontology is modeled based on the first identity information and the first follow list to construct a cross-community knowledge graph; S3: Information aggregation stage: Generate embeddings for the user's personal signature and location based on the language model, then initialize the node vector to obtain the initialization vector, and use the neural network model to aggregate the initialization vector to obtain the first safe community; S4: Node optimization stage: based on the first safe community, the neighbor nodes whose probability of context relevance with the target node is lower than the first preset probability are eliminated to obtain the second safe community; S5: In the cross-graph attention neighborhood matching stage, the central nodes of the second safe community are sampled across the graph, and the third safe community is obtained by cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy; S6: In the entity alignment training phase, the neighbor information of the target node in the third node set is aggregated to the central node through neighborhood aggregation, and the final embedding is generated to perform entity alignment training on the associated model.
[0006] Preferably, the first identity information and the first attention list are represented using RDF format.
[0007] Preferably, the S3: information aggregation stage further includes the following steps: first inputting the user's personal signature and location into the word segmenter and then into the language model; the information aggregation is completed by propagating to each node, and the propagation formula is as follows: , , in, For the l The hidden layer i hidden features, is a nonlinear activation function, To represent a node by a Boolean value i With Node j Is there any connection between them? The learnable linearly varying weights defined for the model, For Node i exist l -1 layer of hidden state, is the first bias term, is the normalized adjacency matrix of graph G relative to the node degree matrix D, is the node degree matrix of graph G, N is the number of all nodes in the security community, A is the adjacency matrix representing the connectivity between nodes, For Node i The degree.
[0008] Preferably, the context relevance probability of the neighbor node is calculated by a normalized exponential function, and the calculation formula is as follows: in, For Node i With Node i Neighbor nodes j The probability of correlation, For Node i After the features learned by the neural network model, is the learnable parameter matrix, For Node iNeighbor nodes j The transposition of the features after the neural network model, For nodes i The neighbor nodes k , For Node i Neighbor nodes k Transpose of features after passing through the neural network model.
[0009] Preferably, the second safe community at least includes the first community E 1 and 2nd community E 2. When the first community E 1 and 2nd community E 2 When performing cross-graph sampling, for the first community E 1, each node in the second community E Choose from 2 n Nodes are used to calculate the probability of candidate nodes. The first community E Node i in 1 selects the second community E The probability of node j in 2 being a candidate node is calculated by the following formula: in, To select nodes in the second community j As the first community node i The probability of being a candidate node, For Node i After the features learned by the neural network model, For Node j After the features learned by the neural network model, L 1 is the Manhattan distance, For Node k Belongs to the second community E 2 .
[0010] Preferably, the cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy comprises the following steps: Count the occurrence frequency of characters in the usernames of users in the second most secure community p i , , in, n i Indicates the number of times the i-th character appears. n Indicates the total length of the string; Calculate the standard entropy based on the frequency of occurrence of all characters e s , ; Traverse the entire username string and get the number of conversions of all character types m , based on the number of conversions m Calculate the crossover frequency factor t , ; According to the crossover frequency factor t Calculating cross entropy e c , ; Total entropy of username e = e c + e s ; The second security community includes at least the first user name a and the second username b , based on the edit distance First Username a and the second username b The similarity between , the calculation formula is as follows: , in i , j Representatives need to a , b Before i , j characters to be calculated; Perform normalization calculation ; Based on the first user name a and the second username b The corresponding user identity information is aggregated and the edit distance similarity feature vector based on cross entropy optimization is generated , ; Computing First Community E 1. The neighbor node p of node i and the second community E The attention coefficient of the cross-graph neighborhood matching of the neighbor node q of node j in 2 , , in, Indicates the first community E All neighbor nodes of node i after cross-graph sampling in 1, represents the embedding vector of neighbor node p; According to the attention coefficient Calculate the neighbor node p corresponding to the second community E The matching vectors of all neighbor nodes of node j in 2 , Concatenate to generate the final embedding of neighbor node p when computing node neighborhood information in, is the second bias term.
[0011] Preferably, the neighborhood aggregation is calculated by the following formula: in, is the neighborhood aggregation result of node i, are all neighbors of node i after cross-graph attention neighborhood matching, W is the weight of the association model, is a nonlinear activation function, The first weight matrix is a learnable parameter, The second weight matrix is a learnable parameter; The final embedding of node i ; The distance between node i and node j in, L 1 is the Manhattan distance; Loss function for the association model in, is the seed node, is the node of negative sampling, is the constant for the third bias term, For Node r and nodes t The spacing, For Node and nodes spacing.
[0012] Preferably, back propagation is used to perform entity alignment training on the association model; the language model is SecureBERT; and the neural network model is GCN.
[0013] The second aspect of the present invention provides: a cross-community identity automatic association system, used to implement any of the above cross-community identity automatic association methods, comprising: A data preprocessing module, used to obtain the identity information and follow-up lists of users on multiple platforms, mark users with consistent contact information between platforms as seed nodes, and perform data preprocessing to obtain first identity information and first follow-up lists; A cross-community knowledge graph construction module, used for constructing a cross-community knowledge graph by performing ontology modeling on the user based on the first identity information and the first follow list; An information aggregation module is used to generate embeddings for the user's personal signature and location based on a language model, then perform node vector initialization to obtain an initialization vector, and use a neural network model to perform information aggregation on the initialization vector to obtain a first safe community; A node optimization module, configured to eliminate neighbor nodes whose probability of context relevance with the target node is lower than a first preset probability based on the first safe community to obtain a second safe community; A cross-graph attention neighborhood matching module is used to perform cross-graph sampling on the central nodes of the second safe community, and obtain the third safe community by performing cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy; The entity alignment training module is used to aggregate the neighbor information of the target node in the third node set to the central node through neighborhood aggregation, and generate the final embedding to perform entity alignment training on the associated model.
[0014] The third aspect of the present invention provides: a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, any of the above-mentioned cross-community identity automatic association methods is implemented.
[0015] The beneficial effects of the present invention are: 1) It has a stronger understanding of texts in the specialized field of network security, thereby more accurately characterizing the behavioral habits and personalities of users in the security community. The model's stronger understanding ability in the specialized field provides support for cross-community identity positioning.
[0016] 2) The edit distance similarity feature vector calculation method based on cross entropy optimization is integrated into the attention mechanism, so that the model pays more attention to the naming habits of users between communities. Combined with the naming features, the focus is placed on the switching frequency between characters and numbers through cross entropy, reducing the model's attention to commonly used user names. On this basis, the user naming similarity is calculated based on the edit distance, so that the model pays attention to users with the same naming habits between communities, improving the accuracy of identity association between communities.
[0017] 3) Use SecureBert, a pre-trained model in the network security field, to perform document-level initialization on the graph convolutional network (GCN) in NMN. Compared with the traditional FastText word embedding, document-level embedding is used to map the user's personality signature and regional information into the vector space, capturing the semantic information of the entire sentence and enhancing the model's ability to understand and robustness in the field of cyberspace security. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Flowchart of methods for automating association of identities across communities; Figure 2 It is a cross-community knowledge graph structure diagram; Figure 3 Initialize the schematic for the node vector; Figure 4Graph showing the process of calculating edit distance similarity based on cross entropy optimization. DETAILED DESCRIPTION
[0019] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] Starting from attribute information, users with the same identity tend to show the same information in different communities. By capturing the edit distance similarity of user names and the semantic features of personal signatures, users with similar identities can be located using node similarity. Starting from the network structure, by aggregating the social network information of users in different networks and mining the social attributes of user nodes in the graph structure, the same user can be located by the neighborhood similarity of user nodes in different network structures. Therefore, combining attribute information and neighborhood features between social networks can effectively solve the problems existing in the existing technology.
[0021] See also Figure 1-Figure 4 The first aspect of the present invention provides: a method for automatically associating identities across communities, comprising the following steps: S1: Data preprocessing stage, obtaining the identity information and follow-up lists of users on multiple platforms, marking users with the same contact information across platforms as seed nodes and performing data preprocessing to obtain the first identity information and the first follow-up list; S2: In the cross-community knowledge graph construction phase, the user ontology is modeled based on the first identity information and the first follow list to construct a cross-community knowledge graph; S3: Information aggregation stage: Generate embeddings for the user's personal signature and location based on the language model, then initialize the node vector to obtain the initialization vector, and use the neural network model to aggregate the initialization vector to obtain the first safe community; S4: Node optimization stage: based on the first safe community, the neighbor nodes whose probability of context relevance with the target node is lower than the first preset probability are eliminated to obtain the second safe community; S5: In the cross-graph attention neighborhood matching stage, the central nodes of the second safe community are sampled across the graph, and the third safe community is obtained by cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy; S6: In the entity alignment training phase, the neighbor information of the target node in the third node set is aggregated to the central node through neighborhood aggregation, and the final embedding is generated to perform entity alignment training on the associated model.
[0022] In this embodiment, a crawler is used to obtain the user's personal signature, regional information, and follow list through multi-platform user lists, and the consistent mailboxes between platforms are used as seed entities for training the association model.
[0023] In some embodiments, the first identity information and the first watchlist are represented using RDF format.
[0024] In this embodiment, the crawled user information is represented in the RDF (Resource Description Framework) format to facilitate the construction of the model input. RDF (Resource Description Framework) is a framework for representing information and knowledge. RDF describes data through triples, each of which consists of a subject, a predicate, and an object.
[0025] In some embodiments, the S3: information aggregation stage further includes the following steps: first inputting the user's personal signature and location into the word segmenter and then into the language model; the information aggregation is completed by propagating to each node, and the propagation formula is as follows: , , in, For the l The hidden layer i hidden features, is a nonlinear activation function, To represent a node by a Boolean value i With Node j Is there any connection between them? The learnable linearly varying weights defined for the model, For Node i exist l -1 layer of hidden state, is the first bias term, is the normalized adjacency matrix of graph G relative to the node degree matrix D, is the node degree matrix of graph G, N is the number of all nodes in the security community, A is the adjacency matrix representing the connectivity between nodes, For Node i The degree.
[0026] In this embodiment, the language model is Securebert, which uses 98,411 texts extracted from books, articles, papers, and blogs in the field of network security, and has a stronger understanding ability in the field of network security. The user's personal signature and region text information are input into Securebert after being converted by Tokenizer, so that it generates two digital vectors. The two vectors are spliced as the initial input of the neural network model.
[0027] In some embodiments, the context relevance probability of the neighbor node is calculated by a normalized exponential function, and the calculation formula is as follows: in, For Node i With Node i Neighbor nodes j The probability of correlation, For Node i After the features learned by the neural network model, is the learnable parameter matrix, For Node i Neighbor nodes j The transposition of the features after the neural network model, For nodes i The neighbor nodes k , For Node i Neighbor nodes k Transpose of features after passing through the neural network model.
[0028] In this embodiment, the user's own attributes and neighbor features are the key to entity alignment across knowledge graphs. Since the multi-layer GCN has aggregated the data of all nodes, the nodes have acquired the ability to characterize neighbor nodes, so only the one-hop neighbors of the node are considered in this step. In reality, not every neighbor plays a positive role in the entity alignment of the target node. Therefore, when aggregating node information, we also need to eliminate nodes that have a negative effect on entity alignment. When selecting valid neighbor nodes, it is necessary to screen the context relevance of neighbor nodes to the central node. During the screening process, we select neighbor nodes by calculating the context relevance between the node and its neighbors. Arrange the probability distribution of node context relevance in descending order, select according to the distribution of neighbor nodes, and discard neighbors with too low context relevance during the aggregation process. Because too low context relevance will have a negative impact on the entity alignment process. The present invention takes the previous K The nodes are considered as relevant nodes, and the neighbors with low context relevance are excluded in subsequent calculations.
[0029] In some embodiments, the second safe community includes at least the first community E 1 and 2nd community E 2. When the first community E 1 and 2nd community E 2 When performing cross-graph sampling, for the first community E 1, each node in the second community E Choose from 2 n Nodes are used to calculate the probability of candidate nodes. The first community E Node i in 1 selects the second community E The probability of node j in 2 being a candidate node is calculated by the following formula: Among them, is to select nodes in the second community j As the first community node i The probability of being a candidate node, For Node i After the features learned by the neural network model, For Node j After the features learned by the neural network model, L 1 is the Manhattan distance, For Node k Belongs to the second community E 2 .
[0030] In this embodiment, directly calculating the similarity of all nodes in two graphs has high time and space complexity. If there are too many nodes, it will consume a lot of computing resources. Therefore, a neighborhood sampling strategy is adopted here. It is assumed that the community that needs identity association is E 1 and E 2. Targeting the community E Each node in the community E Choose from 2 n The most similar nodes are used for the next calculation operation.
[0031] In some embodiments, the cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy includes the following steps: Count the occurrence frequency of characters in the usernames of users in the second most secure community p i , , in, n i Indicates the number of times the i-th character appears. n Indicates the total length of the string; Calculate the standard entropy based on the frequency of occurrence of all characters e s , ; Traverse the entire username string and get the number of conversions of all character types m , based on the number of conversions m Calculate the crossover frequency factor t , ; According to the crossover frequency factor t Calculating cross entropy e c , ; Total entropy of username e = e c + e s ; The second security community includes at least the first user name a and second username b , based on the edit distance First Username a and second username b The similarity between , the calculation formula is as follows: , in i , j Representatives need to a , b Before i , j characters are calculated; Perform normalization calculation ; Based on the first user name a and second username b The corresponding user identity information is aggregated and the edit distance similarity feature vector based on cross entropy optimization is generated , ; Computing First Community E 1. The neighbor node p of node i and the second community E The attention coefficient of the cross-graph neighborhood matching of the neighbor node q of node j in 2 , , in, Indicates the first community E All neighbor nodes of node i after cross-graph sampling in 1, represents the embedding vector of neighbor node p; According to the attention coefficient Calculate the neighbor node p corresponding to the second community EThe matching vectors of all neighbor nodes of node j in 2 , Concatenate to generate the final embedding of neighbor node p when computing node neighborhood information , in, is the second bias term.
[0032] In this embodiment, in order to expand their influence, users of the community tend to use the same or similar usernames on different platforms, but the same username cannot determine the same identity. Therefore, the present invention takes the entropy of the username into consideration through the attention mechanism. The graph convolution network parameters calculated by the previous knowledge graph structure embedding module are integrated. The process of entity alignment is optimized. First, the entropy of the username is calculated. In the present invention, the entropy calculation method of the username is different from the calculation of the traditional string entropy. The various arrangements of the English letters of the username do not affect the entropy of common usernames. For example, the most common username John, although the four letters are different, the username still belongs to a common type. Therefore, the present invention introduces a cross gain calculation module here. The focus of the calculation is on the length of the username itself and the switching order of numbers and letters. In the basic entropy result obtained, cross entropy is added to enhance the robustness of the username entropy calculation.
[0033] Levenshtein Distance is the distance between communities. E 1's user name i is converted to a safe community through operations such as replacement, deletion, and addition. E The minimum number of steps to convert username j is 2. For example, the minimum number of steps to convert "Secure" to "sec" is 4. The purpose is to capture the difference between the neighbor vectors of two nodes. When the feature representations of the two nodes are similar, the matching vector approaches zero. When the node feature gap is large, the value of the matching feature will increase during the propagation process.
[0034] In some embodiments, the neighborhood aggregation is calculated by the following formula: in, is the neighborhood aggregation result of node i, are all neighbors of node i after cross-graph attention neighborhood matching, W is the weight of the association model, is a nonlinear activation function, The first weight matrix is a learnable parameter, The second weight matrix is a learnable parameter; The final embedding of node i ; The distance between node i and node j in, L 1 is the Manhattan distance; Loss function for the association model in, is the seed node, is the node of negative sampling, is the constant for the third bias term, For Node r and nodes t The spacing, For Node and nodes spacing.
[0035] In this embodiment, the neighbor information of all nodes is aggregated into the central node, so that the central node can have more identity representation information of the neighbor nodes.
[0036] In some embodiments, back propagation is used to perform entity alignment training on the association model; the language model is SecureBERT; and the neural network model is GCN.
[0037] The second aspect of the present invention provides: a cross-community identity automatic association system, used to implement any of the above cross-community identity automatic association methods, comprising: A data preprocessing module, used to obtain the identity information and follow-up lists of users on multiple platforms, mark users with consistent contact information between platforms as seed nodes, and perform data preprocessing to obtain first identity information and first follow-up lists; A cross-community knowledge graph construction module, used for constructing a cross-community knowledge graph by performing ontology modeling on the user based on the first identity information and the first follow list; An information aggregation module is used to generate embeddings for the user's personal signature and location based on a language model, then perform node vector initialization to obtain an initialization vector, and use a neural network model to perform information aggregation on the initialization vector to obtain a first safe community; A node optimization module, configured to eliminate neighbor nodes whose probability of context relevance with the target node is lower than a first preset probability based on the first safe community to obtain a second safe community; A cross-graph attention neighborhood matching module is used to perform cross-graph sampling on the central nodes of the second safe community, and obtain the third safe community by performing cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy; The entity alignment training module is used to aggregate the neighbor information of the target node in the third node set to the central node through neighborhood aggregation, and generate the final embedding to perform entity alignment training on the associated model.
[0038] The third aspect of the present invention provides: a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, any of the above-mentioned cross-community identity automatic association methods is implemented.
[0039] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A method for automatically associating identities across communities, Features: Includes the following step: S1: Data preprocessing stage, obtaining the identity information and follow-up lists of users on multiple platforms, marking users with the same contact information across platforms as seed nodes and performing data preprocessing to obtain the first identity information and the first follow-up list; S2: In the cross-community knowledge graph construction phase, the user ontology is modeled based on the first identity information and the first follow list to construct a cross-community knowledge graph; S3: Information aggregation stage: Generate embeddings for the user's personal signature and location based on the language model, then initialize the node vector to obtain the initialization vector, and use the neural network model to aggregate the initialization vector to obtain the first safe community; S4: Node optimization stage: based on the first safe community, the neighbor nodes whose probability of context relevance with the target node is lower than the first preset probability are eliminated to obtain the second safe community; S5: In the cross-graph attention neighborhood matching stage, the central nodes of the second safe community are sampled across the graph, and the third safe community is obtained by cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy; S6: In the entity alignment training phase, the neighbor information of the target node in the third node set is aggregated to the central node through neighborhood aggregation, and the final embedding is generated to perform entity alignment training on the associated model.
2. The cross-community identity automatic association method according to claim 1, Features: The first identity information and the first attention list are represented in RDF format.
3. The cross-community identity automatic association method according to claim 1, Features: The S3: information aggregation stage also includes the following steps: first inputting the user's personal signature and location into the word segmenter and then into the language model; the information aggregation is completed by propagating to each node, and the propagation formula is as follows: , , in, For the l The hidden layer i hidden features, is a nonlinear activation function, To represent a node by a Boolean value i With Node j Is there any connection between them? The learnable linearly varying weights defined for the model, For Node i exist l -1 layer of hidden state, is the first bias term, is the normalized adjacency matrix of graph G relative to the node degree matrix D, is the node degree matrix of graph G, N is the number of all nodes in the security community, A is the adjacency matrix representing the connectivity between nodes, For Node i The degree.
4. The cross-community identity automatic association method according to claim 1, Features: The context relevance probability of the neighbor node is calculated by a normalized exponential function, and the calculation formula is as follows: in, For Node i With Node i Neighbor nodes j The probability of correlation, For Node i After the features learned by the neural network model, is the learnable parameter matrix, For Node i Neighbor nodes j The transposition of the features after the neural network model, For nodes i The neighbor nodes k , For Node i Neighbor nodes k Transpose of features after passing through the neural network model.
5. The cross-community identity automatic association method according to claim 1, Features: The second safe community at least includes the first community E 1 and the second community E 2 , when the first community E 1 and the second community E 2 When performing cross-graph sampling, for the first community E 1 Each node in the second community E 2 Select n Nodes are used to calculate the probability of candidate nodes. The first community E 1 Node i in selects the second community E 2 The probability of node j in being a candidate node is calculated by the following formula: in, To select nodes in the second community j As the first community node i The probability of being a candidate node, For Node i After the features learned by the neural network model, For Node j After the features learned by the neural network model, L 1 is the Manhattan distance, For Node k Belongs to the second community E 2 .
6. The cross-community identity automatic association method according to claim 5, Features: The cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy includes the following steps: Count the occurrence frequency of characters in the usernames of users in the second most secure community p i , , in, n i Indicates the number of times the i-th character appears. n Indicates the total length of the string; Calculate the standard entropy based on the frequency of occurrence of all characters e s , ; Traverse the entire username string and get the number of conversions of all character types m , based on the number of conversions m Calculate the crossover frequency factor t , ; According to the crossover frequency factor t Calculating cross entropy e c , ; Total entropy of username e = e c + e s ; The second security community includes at least the first user name a and the second username b , based on the edit distance First Username a and the second username b The similarity between , the calculation formula is as follows: , in i , j Representatives need to a , b Before i , j characters are calculated; Perform normalization calculation ; Based on the first user name a and the second username b The corresponding user identity information is aggregated and the edit distance similarity feature vector based on cross entropy optimization is generated , ; Computing First Community E 1 The neighbor node p of the middle node i and the second community E 2 Attention coefficient of cross-graph neighborhood matching of neighbor node q of node j , , in, Indicates the first community E 1 All neighbor nodes of node i after cross-graph sampling, represents the embedding vector of neighbor node p; According to the attention coefficient Calculate the neighbor node p corresponding to the second community E 2 The matching vectors of all neighbor nodes of node j , Concatenate to generate the final embedding of neighbor node p when computing node neighborhood information in, is the second bias term.
7. The method for automatic cross-community identity association according to claim 6, Features: The neighborhood aggregation is calculated by the following formula: in, is the neighborhood aggregation result of node i, are all neighbors of node i after cross-graph attention neighborhood matching, W is the weight of the association model, is a nonlinear activation function, The first weight matrix is a learnable parameter, The second weight matrix is a learnable parameter; The final embedding of node i ; The distance between node i and node j in, L 1 is the Manhattan distance; Loss function for the association model in, is the seed node, is the node of negative sampling, is the constant for the third bias term, For Node r and nodes t The spacing, For Node and nodes spacing.
8. The method for automatic cross-community identity association according to any one of claims 1 to 7, Features: The association model is trained for entity alignment using back propagation; the language model is SecureBERT; and the neural network model is GCN.
9. A cross-community identity automated association system, Features: The method for implementing the cross-community identity automatic association method according to any one of claims 1 to 8 comprises: A data preprocessing module, used to obtain the identity information and follow-up lists of users on multiple platforms, mark users with consistent contact information between platforms as seed nodes, and perform data preprocessing to obtain first identity information and first follow-up lists; A cross-community knowledge graph construction module, used for constructing a cross-community knowledge graph by performing ontology modeling on the user based on the first identity information and the first follow list; An information aggregation module is used to generate embeddings for the user's personal signature and location based on a language model, then perform node vector initialization to obtain an initialization vector, and use a neural network model to perform information aggregation on the initialization vector to obtain a first safe community; A node optimization module, configured to eliminate neighbor nodes whose probability of context relevance with the target node is lower than a first preset probability based on the first safe community to obtain a second safe community; A cross-graph attention neighborhood matching module is used to perform cross-graph sampling on the central nodes of the second safe community, and obtain the third safe community by performing cross-graph attention neighborhood matching based on the edit distance similarity optimized by cross entropy; The entity alignment training module is used to aggregate the neighbor information of the target node in the third node set to the central node through neighborhood aggregation, and generate the final embedding to perform entity alignment training on the associated model.
10. A computer-readable storage medium, Features: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the cross-community identity automatic association method as described in any one of claims 1-8 is implemented.
Citation Information
Cited By
Cross-domain recommendation method based on multilayer loop graph convolutional network
CN118897918A
Paper recommendation method and system based on cross-community knowledge graph in hyperbolic space
CN119357409A
Multi-tenant shopping mall safety supervision method and system based on big data analysis
CN120934830A
