Multi-view community discovery method in semantic social networks based on text feature integration
By integrating text features of social networks and graph learning algorithms, social networks are reconstructed, which solves the problem of ignoring semantic information in existing technologies and achieves high-quality and highly accurate community discovery results.
Patent Information
- Application Number
- CN202210073662.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-21
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-01-21
AI Technical Summary
Existing online social network community discovery methods ignore users' semantic information and only start from the topological structure, resulting in community discovery results that cannot accurately reflect the real situation, and it is difficult for traditional algorithms to improve performance, resulting in poor community structure quality and low cohesion.
A multi-perspective community discovery method for semantic social networks based on text feature integration is adopted. By capturing user semantic information, preprocessing, word frequency feature extraction, TF-IDF value calculation and topic model acquisition are performed, and the social network is reconstructed using Pearson correlation coefficient. Multi-view clustering algorithm for graph learning for community discovery.
It improves the quality, accuracy and cohesion of community structure division, ensuring the high accuracy and high cohesion of community discovery results.
Smart Images

Figure CN114461879B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of semantic community discovery, and in particular to a semantic social network multi-view community discovery method based on text feature integration. Background Art
[0002] Online social networks have changed the way people communicate. Millions of people around the world use social media to create, share and discuss information and build networks. These social network applications attract more and more users by providing more and more services and keep about 1 billion people connected worldwide, which has led to an exponential growth of social network analysis (SNA) in the past few years. Different techniques have been created to analyze opinions about a product, predict survey results, and study how fake news spreads through social networks. At the same time, the growing interest in the aggregation and analysis of social network information has also attracted people to various research fields, not only those related to computer science, but also fields such as physics, psychology, marketing, tourism and finance. Specific topics include clustering, graph mining, community discovery, natural language processing, entity disambiguation, information fusion, sentiment analysis or recommendation systems.
[0003] Community discovery clusters connected users in a social network into groups that are tight within groups and loose within groups. Accessing information from these groups allows detecting the underlying community structure of the network. The formation of such communities can be explained by the similarity between social actors with common interests and preferences. Therefore, this structure is not only encoded in the network topology, but also reflected by the data diffusion of similar groups of actors. Through community discovery methods, coupling content and relationship information in the clustering of social networks can make the community topology well connected and semantically consistent. The reason why community discovery is so important in network analysis is that it has many important applications in various fields. For example, for some e-commerce platforms, a good way to make their products and services more competitive is to detect customer communities with similar interests in the marketing network, because it can enable e-commerce platforms to build more efficient and sophisticated recommendation systems to better guide customers.
[0004] The purpose of semantic community discovery is to cluster nodes with similar semantic contexts into the same community. Social networks are usually composed of a variety of complex data. If these data are analyzed from a single perspective, a lot of details in the data will be ignored. Word frequency is a well-known, well-researched and commonly used statistical tool in mathematical linguistics; keywords are defined as meaningful and important words in a document, which provides an accurate description of its content; topics can be used as a distinguishing factor for text classification, and can also be used as a consideration for community discovery in social networks. Text analysis based on word frequency, keywords and topics can effectively represent the characteristics of social networks.
[0005] The problem with existing methods is that the current community discovery methods for online social networks rarely consider the semantic information of users themselves, and only start from the topological structure of user nodes, or only perform a single analysis of social network data, which will ignore a lot of details in the data, resulting in the final community discovery results being unable to accurately reflect the real social network. In addition, traditional community discovery algorithms are usually only applicable to single-view data. Even if all view data are connected into a single view, and then the latest community discovery algorithm is used on this view, it is difficult to improve performance, resulting in poor quality of the divided community structure. Summary of the invention
[0006] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0007] To this end, the purpose of the present invention is to propose a multi-perspective community discovery method for semantic social networks based on text feature integration, which ensures high quality, high accuracy and high cohesion of community structure division results.
[0008] To achieve the above-mentioned purpose, an embodiment of the present invention proposes a multi-perspective community discovery method for a semantic social network based on text feature integration, comprising the following steps: step S1, capturing semantic information published by users in a social network, and preprocessing the semantic information to obtain initial semantic information; step S2, extracting word frequency features for the initial semantic information, selecting a preset number of word frequency features, to construct a word frequency vector matrix; step S3, calculating the TF-IDF value for the initial semantic information, extracting a preset number of keyword features, to construct a keyword vector matrix; step S4, using an LDA topic model to obtain the topic of the initial semantic information and the topic distribution of each user, to construct a topic vector matrix; step S5, stacking the word frequency vector matrix, the keyword vector matrix, and the topic vector matrix to form a data matrix, using the Pearson correlation coefficient to solve the similarity matrix between the word frequency vector matrix, the keyword vector matrix, and the topic vector matrix in the data matrix, and comparing it with a preset threshold, if it is greater than, establishing a connection to reconstruct the original social network to obtain a semantic social network, otherwise, not connecting; step S6, using a multi-perspective clustering algorithm based on graph learning to perform multi-perspective community discovery on the semantic social network to obtain a community division result.
[0009] The multi-perspective community discovery method for semantic social networks based on text feature integration of the embodiment of the present invention considers the semantic information of social networks from multiple perspectives and uses a multi-perspective clustering algorithm of graph learning to discover communities, thereby solving the problem that the community discovery method for online social networks only starts from the topological structure, does not consider the semantic information possessed by the social network itself, and only performs a single analysis on the social network data, resulting in the final community discovery result being unable to reflect the actual situation of the social network and the community division results being of poor quality and low cohesion, thereby ensuring the high quality, high accuracy and high cohesion of the community structure division results.
[0010] In addition, the semantic social network multi-perspective community discovery method based on text feature integration according to the above embodiment of the present invention may also have the following additional technical features:
[0011] Furthermore, in one embodiment of the present invention, in step S1, invalid information in the semantic information is cleaned using regular expressions and a stop word list to obtain the initial semantic information.
[0012] Furthermore, in one embodiment of the present invention, the step S2 specifically includes: step S201, taking the initial semantic information as a whole corpus D′ to perform word frequency statistics and calculating the word frequency of each word; step S202, sorting the word frequency of each word in descending order, selecting the word frequency according to preset requirements, forming the word frequency vector matrix and its feature quantity, and counting the number of times the word frequency vector matrix appears in each piece of semantic information in turn.
[0013] Furthermore, in one embodiment of the present invention, the TF-IDF value solution formula is:
[0014]
[0015] Among them, f i,j is the number of times the word frequency vector matrix appears in each piece of semantic information, w j For file d j is the number of different words in the corpus, |D| is the total number of texts in the corpus, that is, the total number of semantic information published by users in the social network, {j:w i ∈d j}| contains the word w i The number of files.
[0016] Further, in one embodiment of the present invention, the step S3 specifically includes: step S301, filtering, segmenting and part-of-speech screening the initial semantic information; step S302, taking the processed initial semantic information as document d', using the TF-IDF value solving formula and the preset corpus to obtain the TF-IDF value of each phrase in the document d', and taking the phrase corresponding to the first t TF-IDF values as the keyword kw, where t is a positive integer; step S303, taking all the semantic information of document d' as corpus D', and the information published by a certain user as document d'. j , again TF-IDF value solution formula calculates keyword kw j In the document d j The TF-IDF values in are used to construct the keyword vector matrix.
[0017] Furthermore, in one embodiment of the present invention, the step S4 specifically includes: step S401, cleaning and filtering the initial semantic information; step S402, determining the number of topics that need to be generated, using LDA to generate documents to extract topics from the processed initial semantic information, and obtaining the topic distribution of each piece of information; step S403, using the topics as rows of the topic vector matrix, and the information published by the user as columns of the topic vector matrix, and the topic distribution of the information as the value of the data matrix to construct the topic vector matrix.
[0018] Furthermore, in one embodiment of the present invention, the specific process of generating documents by LDA is as follows: Assume that the prior distribution of the initial semantic information is Dirichlet distribution, that is, for any text information published by a user, j ∈D, get the topic distribution θ of the text d =Dirichlet(α), where α is a hyperparameter vector that determines the distribution ratio of topics in the document; assuming that the prior distribution of the topic is Dirichlet distribution, that is, for any topic t∈T, we get the word distribution β t =Dirichlet(η), where η is a hyperparameter vector that determines the distribution ratio of words in the topic; for any semantic information d j The nth word in the topic distribution θ d Get its subject number From the subject number Know the word The probability distribution of
[0019] Further, in one embodiment of the present invention, the process of solving the Pearson correlation coefficient in step S5 is:
[0020]
[0021] Among them, r i,j is the similarity matrix for each view, x i and x j are the i-th and j-th columns of the word frequency vector matrix, keyword vector matrix, or topic vector matrix, respectively, and N is the total number of columns of the word frequency vector matrix, keyword vector matrix, or topic vector matrix.
[0022] Further, in one embodiment of the present invention, the step S6 specifically includes: step S601, performing multi-view community discovery on the semantic social network based on a multi-view clustering algorithm of graph learning, and learning to obtain a final matrix after fusion of multiple views by adaptively adjusting the weight of each view; step S602, using a rank constraint rank (L s )=nc makes the number of connected components of the final matrix just equal to the community structure number.
[0023] Furthermore, in one embodiment of the present invention, the objective function of step S602 is:
[0024]
[0025]
[0026] in, is the jth column of the similarity matrix of the vth perspective, for The weight of n is the number of rows or columns of the similarity matrix, s j is the jth column of the final matrix S, V is the number of viewing angles, γ is the trade-off parameter, P = {p1, p2, ..., p c} is the cluster indicator matrix, L s is the Laplacian matrix of the final matrix S, c is the number of community structures, and I is a vector of all 1s.
[0027] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0029] Figure 1 A multi-perspective community discovery method for a semantic social network based on text feature integration according to an embodiment of the present invention;
[0030] Figure 2 It is a social network reconstruction diagram of word frequency, keyword and subject information similarity in the first specific embodiment of the present invention;
[0031] Figure 3 is the community discovery result in the first specific embodiment of the present invention;
[0032] Figure 4 It is the visualization result of the operation results of multi-view and single-view in the second specific embodiment of the present invention using the node feature representation of the graph embedding method Node2vec;
[0033] Figure 5 It is a comparison chart of the modularity Q value performance in the second specific embodiment of the present invention compared with the existing 7 baseline methods. DETAILED DESCRIPTION
[0034] 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.
[0035] The following describes a multi-perspective community discovery method for a semantic social network based on text feature integration according to an embodiment of the present invention with reference to the accompanying drawings.
[0036] Figure 1 The present invention is a flowchart of a multi-perspective community discovery method for a semantic social network based on text feature integration according to an embodiment of the present invention.
[0037] like Figure 1 As shown, the semantic social network multi-view community discovery method based on text feature integration includes the following steps:
[0038] In step S1, semantic information posted by users in social networks is captured and preprocessed to obtain initial semantic information.
[0039] Furthermore, in one embodiment of the present invention, in step S1, regular expressions and a stop word list are used to clean invalid information in the semantic information to obtain initial semantic information.
[0040] It should be noted that those skilled in the art can extract semantic information published by any individual in a social network according to preset requirements, especially popular semantic social networks such as Facebook, Twitter, and Sina Weibo, which are not specifically limited here.
[0041] That is to say, firstly use the open source crawler project to crawl the semantic information posted by users in the above social network; then use regular expressions and stop word lists to clean invalid information in the data.
[0042] In step S2, word frequency features are extracted from the initial semantic information, and a preset number of word frequency features are selected to construct a word frequency vector matrix.
[0043] That is to say, the initial semantic information in the social network is feature extracted from the perspective of word frequency, and the word frequency vector is constructed based on the extraction results to obtain the semantic feature representation from the perspective of word frequency of the social network.
[0044] Furthermore, in one embodiment of the present invention, step S2 specifically includes:
[0045] Step S201, taking the initial semantic information as a whole corpus D′ to perform word frequency statistics, and calculating the word frequency of each word;
[0046] Step S202, sort the word frequency of each word in descending order, select the word frequency according to the preset requirements, form a word frequency vector matrix and its feature quantity, and count the number of times the word frequency vector matrix appears in each semantic information in turn.
[0047] Specifically, the word frequency feature extraction process of step S2 can be:
[0048] First, let f i,j Indicates word frequency, that is, word w i In file d j The number of times it appears in , where d∈D, D is the collected social network data set.
[0049] Then, the initial semantic information is used as a whole corpus D′ to perform word frequency statistics and calculate the word frequency of each word, that is, f i The value of w i appears once in D′, then f i =1,w i appears n times in D′, then f i = n; then, the above phrases are sorted from large to small according to the word frequency, and a preset word frequency is selected according to the sorting result to form the feature quantity of the word frequency vector matrix X;
[0050] Finally, the number of times these phrases appear in each piece of semantic information is counted. i,j , where x i,j =f i,j .
[0051] It should be noted that the text processing intensity of word frequency is relatively low, which can retain most of the information in the social network, but at the same time it will also increase the invalid information in the social network, thereby increasing the frequency of noise in the constructed graph.
[0052] In step S3, the TF-IDF value is calculated for the initial semantic information, and a preset number of keyword features are extracted to construct a keyword vector matrix.
[0053] That is to say, the TF-IDF (Term Frequency-Inverse Document Frequency) value of the semantic information in the social network is calculated and used as a criterion for measuring keywords. The TF-IDF value of the words in the semantic information posted by users in the social network is used as a feature vector to construct a keyword vector matrix.
[0054] Among them, the TF-IDF value solution formula is:
[0055]
[0056] Among them, f i,j is the number of times the word frequency vector matrix appears in each piece of semantic information, w j For file d j is the number of different words in the corpus, |D| is the total number of texts in the corpus, that is, the total amount of semantic information published by users in the social network, |{j:w i ∈d j}| contains the word w i The number of files.
[0057] Furthermore, in one embodiment of the present invention, step S3 specifically includes:
[0058] Step S301, filtering, segmenting and part-of-speech screening of initial semantic information;
[0059] Step S302, taking the processed initial semantic information as the document d', using the TF-IDF value solving formula and the preset corpus to obtain the TF-IDF value of each phrase in the document d', and taking the phrases corresponding to the first t TF-IDF values as the keyword kw, where t is a positive integer;
[0060] Step S303: All semantic information of document d' is taken as corpus D', and information published by a certain user is taken as document d j , again TF-IDF value solution formula calculates keyword kw j In the document d j TF-IDF values in to construct the keyword vector matrix.
[0061] Specifically, the specific process of keyword feature extraction in step S3 is as follows:
[0062] First, the initial semantic information is filtered, segmented, and part-of-speech screened; then the processed initial semantic information is taken as a document d', and the TF-IDF value of each phrase in d' is obtained using formula (1) and the corpus previously counted on the network, and the phrases corresponding to the first t TF-IDF values are taken as keywords kw; finally, all the semantic information of document d' is taken as corpus D', and the information published by a certain user is taken as document d j , use formula (1) again to calculate the keyword kw i In d j The TF-IDF value in is denoted as TI i,j , and use it as the value of the keyword vector matrix, that is, x i,j =TI i,j .
[0063] Compared with word frequency, keywords can suppress the weighting of noise and also take into account information such as the organizational structure and grammar of the semantic information text, but they also reduce the amount of semantic feature information in social networks.
[0064] In step S4, the LDA topic model is used to obtain the topic of the initial semantic information and the topic distribution of each user to construct a topic vector matrix.
[0065] That is to say, the topic information contained in the social network is extracted through the LDA model, and the feature vector is obtained according to the topic distribution of each semantic information, so as to construct a feature data matrix from the perspective of the social network topic.
[0066] Furthermore, in one embodiment of the present invention, step S4 specifically includes:
[0067] Step S401, cleaning and filtering the initial semantic information;
[0068] Step S402, determining the number of topics to be generated, using LDA to generate documents to extract topics from the processed initial semantic information, and obtaining the topic distribution of each piece of information;
[0069] Step S403, taking the topics as rows of the topic vector matrix, the information published by the user as columns of the topic vector matrix, and the topic distribution of the information as values of the data matrix to construct the topic vector matrix.
[0070] Among them, the specific process of LDA generating documents is:
[0071] First, assume that the prior distribution of the initial semantic information is Dirichlet distribution, that is, for any text information published by a user, j ∈D, get the topic distribution θ of the text d = Dirichlet(α);
[0072] Assume that the prior distribution of topics is Dirichlet distribution, that is, for any topic t∈T, we get the word distribution β t =Dirichlet(η); where parameters α and η are hyperparameter vectors, which determine the distribution ratio of topics in documents and the distribution ratio of words in topics respectively;
[0073] Then for any semantic information d j The nth word in the topic distribution θ d Get its subject number From the topic number Know the word The probability distribution of
[0074] Specifically, the specific process of completing the semantic feature representation of the social network from the perspective of the topic in step S4 is: first, the initial semantic information is cleaned and filtered; then the number of topics to be generated is determined, and the information text is extracted from the topic using the above-mentioned LDA document generation step to obtain the topic distribution of each information (the probability corresponding to the topic is expressed in the form of a floating point number); finally, the topic and the information published by the user are used as the rows and columns of the data matrix, and the topic distribution of the information is used as the value of the topic vector matrix to complete the semantic feature representation from the perspective of the topic.
[0075] In step S5, the word frequency vector matrix, keyword vector matrix and topic vector matrix are stacked to form a data matrix, and the Pearson correlation coefficient is used to solve the similarity matrix between the word frequency vector matrix, keyword vector matrix and topic vector matrix in the data matrix, and compared with the preset threshold. If it is greater than, a connection is established to reconstruct the original social network to obtain a semantic social network. Otherwise, no connection is made.
[0076] That is to say, after the initial semantic information is represented from three different perspectives, three data matrices will be obtained, where the rows of the matrix X represent the values of the feature attributes and the columns represent the node vectors. Therefore, the user's node representation is completed with three vectors, which are stacked together to form data matrices from different perspectives, and then the social network is reconstructed by calculating the similarity between the user's semantic information.
[0077] Among them, step S5 uses the Pearson correlation coefficient to solve the similarity, and the specific solution formula is:
[0078]
[0079] Among them, r i,j is the similarity matrix for each view, x i and x jare the i-th and j-th columns of the word frequency vector matrix, keyword vector matrix, or topic vector matrix, respectively, and N is the total number of columns of the word frequency vector matrix, keyword vector matrix, or topic vector matrix.
[0080] It should be noted that the Pearson correlation coefficient measures the degree of correlation between two variables, and the result ranges from -1 to +1. A Pearson correlation coefficient of 1 indicates that the data objects are completely positively correlated, that is, when the value of one variable increases, the value of the other variable also increases; -1 indicates that the data objects are negatively correlated, that is, when the value of one variable increases, the value of the other variable decreases. Therefore, if the Pearson correlation coefficient of the semantic correlation of two users is greater than a threshold, the embodiment of the present invention establishes a connection between the two users and completes the reconstruction of the social network.
[0081] In step S6, a multi-view clustering algorithm based on graph learning is used to perform multi-view community discovery on the semantic social network to obtain community division results.
[0082] Further, in one embodiment of the present invention, step S6 specifically includes:
[0083] Step S601, a multi-view clustering algorithm based on graph learning is used to perform multi-view community discovery on the semantic social network, and a final matrix after fusion of multiple views is obtained by learning by adaptively adjusting the weight of each view;
[0084] Step S602: using the rank constraint rank(L s )=nc makes the number of connected components of the final matrix exactly the number of community structures.
[0085] Specifically, the similarity matrix R of each view is obtained by formula (2): (v) , where v∈V represents the current number of views and V represents the total number of views, for example, R (1) ,R (2) ,R (3) Represent the similarity matrix of word frequency, keyword and topic respectively. Then, a multi-view clustering algorithm based on graph learning is used to discover multi-view communities on social networks. By adapting the weight of each view, the final matrix S after fusion of multiple views is learned, and the rank constraint rank (L s )=nc, so that the number of connected components of the final fusion matrix S is exactly the number of community structures c, where the objective function is:
[0086]
[0087] in, is the jth column of the similarity matrix of the vth perspective, for The weight of n is the number of rows (columns) of the similarity matrix, s j is the jth column of the final matrix S, V is the number of perspectives (word frequency, keywords, topics), L s is the Laplacian matrix of the final matrix S, L = UB, U is the diagonal matrix, B=(S T +S) / 2, c is the community structure number.
[0088] Furthermore, in order to obtain the optimal solution for S, it is necessary to optimize formula (3). According to Fan's theorem, formula (3) can be rewritten as:
[0089]
[0090] in, is the jth column of the similarity matrix of the vth perspective, for The weight of n is the number of rows or columns of the similarity matrix, s j is the jth column of the final matrix S, V is the number of perspectives (word frequency, keywords, topics), γ is the weight parameter, P = {p1, p2, ..., p c} is the cluster indicator matrix, L s is the Laplacian matrix of the final matrix S, c is the number of community structures, and I is a vector of all 1s. Finally, the optimal solution of the final matrix S is obtained by the alternating iteration method. More specifically, one can be selected to update while keeping the other variables unchanged.
[0091] Finally, the alternating iteration method is used to obtain the optimal solution of S. More specifically, we can choose to update one while keeping the other variables unchanged, and get:
[0092]
[0093] in, h j is a vector. The above formula can be solved using the Lagrange multiplier method and KKT conditions to obtain the following formula:
[0094]
[0095] Among them, (x) + =max(x,0), 1 is a vector of all ones, and ξ is a Lagrange multiplier.
[0096] The semantic social network multi-perspective community discovery method based on text feature integration proposed in the embodiment of the present invention is further illustrated by two specific embodiments below.
[0097] Embodiment 1
[0098] First, the semantic information of 1023 users was collected from the social network and preprocessed. Then the word frequency information was extracted, and the word frequencies were sorted from large to small. The words ranked in the top 10,000 in frequency were used as feature attributes for feature representation. The following matrix can be obtained:
[0099]
[0100] Using formula (1) and the corresponding step S3 to extract keywords from all semantic information, and selecting the words with the top 3000 TF-IDF values as the feature attributes from the keyword perspective, we can get:
[0101]
[0102] The LDA topic model is used to obtain the topics of all data and the topic distribution of each node, where the number of topics is 30, and the following topic distribution data matrix is obtained:
[0103]
[0104] Then, the Pearson correlation coefficient is used to calculate the similarity between node vectors (columns of the data matrix), and the similarity threshold is set to 0.15. The node similarities below the threshold are set to 0, and the nodes above the threshold are linked to complete the reconstruction of the social network. Figure 2 The figure shows the reconstruction of the social network based on word frequency, keyword and topic information similarity. Finally, a multi-view clustering algorithm based on graph learning is used to perform multi-view community discovery on the semantic social network. Figure 3 Community discovery results shown.
[0105] Embodiment 2
[0106] Ncut, Louvain, SMR, DMF, CRSC and MVGL are selected as comparison algorithms. WebKB (consisting of 203 web pages of 4 categories collected by the Department of Computer Science of Cornell University), BBC (from 250 BBC news websites), BBCSport (consisting of sports news articles on 5 topics (athletics, football, tennis, rugby and cricket) on the BBC Sports website from 2004 to 2005), 20NGs (consisting of 20 different newsgroup document collections), Wikipedia (partial documents selected from the collection of featured articles on Wikipedia), 100leaves (consisting of 1600 plant samples) and HW2sources (2000 samples collected from two sources, MNIST handwritten digits (0-9) and USPS handwritten digits (0-9)) are used as experimental data sets. Table 1 lists the statistics of the corresponding features of the 8 data sets, of which the first 6 data sets are text data sets and the last two are image data sets.
[0107] Table 1 Description of the multi-view dataset
[0108] Dataset Number of communities Number of viewing angles Number of samples Number of features WebKB 4 3 203 1703 / 230 / 230 BBC 5 4 685 4659 / 4633 / 4665 / 4684 BBC Sports 5 2 544 3183 / 3203 20NGs 5 3 500 2000 / 2000 / 2000 3Sources 6 3 169 3560 / 3631 / 3068 Wikipedia 10 2 693 128 / 10 100leaves 100 3 1600 64 / 64 / 64 HW2sources 10 2 2000 784 / 256
[0109] Figure 4 After running the multi-view community discovery method of the present invention for the datasets 20NGs and 100leaves, the running results of the multi-view and single-view are visualized using the node feature representation of the graph embedding method Node2vec. Figure 4 It can be observed that the operating results under multi-perspective are significantly better than those under single-perspective, and the community structure under multi-perspective is obvious and the error rate is low.
[0110] Figure 5 The figure shows the modularity Q value performance of the method proposed in the embodiment of the present invention compared with the other 7 baseline methods. It can be found that the method proposed in the present invention has a slightly lower Q value on the WebKB, BBC and 3sources datasets, but is in a leading position on other datasets. It is very stable compared with other baseline algorithms and does not perform very poorly on a certain dataset. This shows that the community structure obtained by the ALMV algorithm has high cohesion and stability.
[0111] According to the multi-view community discovery method for semantic social networks based on text feature integration proposed in an embodiment of the present invention, feature representation and node representation are performed in order from word frequency, keywords, and topics according to the text processing strength, and the social network is reconstructed through the Pearson correlation coefficient. Finally, a multi-view clustering algorithm based on graph learning is used to integrate text features and effectively divide the community structure of the social network. That is to say, the semantic information of the social network is considered from multiple perspectives, and the multi-view clustering algorithm of graph learning is used for community discovery, which ensures the high quality, high accuracy and high cohesion of the community structure division results.
[0112] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0113] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0114] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A multi-view community discovery method for semantic social networks based on text feature integration, characterized in that: The following steps are involved: Step S1, capturing semantic information posted by users in a social network, and preprocessing the semantic information to obtain initial semantic information; Step S2, extracting word frequency features from the initial semantic information, selecting a preset number of word frequency features, and constructing a word frequency vector matrix; Step S3, calculating the TF-IDF value of the initial semantic information, extracting a preset number of keyword features, and constructing a keyword vector matrix; Step S4, using the LDA topic model to obtain the topic of the initial semantic information and the topic distribution of each user to construct a topic vector matrix; Step S5, stacking the word frequency vector matrix, the keyword vector matrix and the topic vector matrix to form a data matrix, using the Pearson correlation coefficient to solve the similarity matrix between the word frequency vector matrix, the keyword vector matrix and the topic vector matrix in the data matrix, and comparing them with a preset threshold, if it is greater than, establishing a connection to reconstruct the original social network to obtain a semantic social network, otherwise, not connecting; as well as Step S6, using a multi-view clustering algorithm based on graph learning to perform multi-view community discovery on the semantic social network to obtain a community division result; The step S6 specifically includes: Step S601, performing multi-view community discovery on the semantic social network based on a multi-view clustering algorithm based on graph learning, and learning to obtain a final matrix after fusion of multiple views by adaptively adjusting the weight of each view; Step S602: using rank constraint Make the number of connected components of the final matrix exactly the number of community structures; The objective function of step S602 is: in, For the The similarity matrix of the perspective List, for The weight of is the number of rows or columns of the similarity matrix, The final matrix No. List, is the number of viewing angles, To balance the parameters, is the cluster indicator matrix, The final matrix The Laplacian matrix of is the community structure number, is a vector of all 1s.
2. The semantic social network multi-view community discovery method based on text feature integration according to claim 1 is characterized in that: In the step S1, regular expressions and a stop word list are used to clean invalid information in the semantic information to obtain the initial semantic information.
3. The semantic social network multi-view community discovery method based on text feature integration according to claim 1 is characterized in that: The step S2 specifically includes: Step S201: taking the initial semantic information as a whole corpus Perform word frequency statistics and calculate the frequency of each word; Step S202, sorting the word frequency of each word in descending order, selecting the word frequency according to preset requirements, forming the word frequency vector matrix and its feature quantity, and sequentially counting the number of times the word frequency vector matrix appears in each piece of semantic information.
4. The semantic social network multi-view community discovery method based on text feature integration according to claim 1 is characterized in that: The TF-IDF value solution formula is: in, is the number of times the word frequency vector matrix appears in each piece of semantic information, For File The number of different words in is the total number of texts in the corpus, that is, the total number of semantic information published by users in the social network. To contain words The number of files.
5. The method for discovering multi-perspective communities in semantic social networks based on text feature integration according to claim 1, characterized in that: The step S3 specifically includes: Step S301, filtering, segmenting and part-of-speech screening the initial semantic information; Step S302: The processed initial semantic information is used as the document , use the TF-IDF value solution formula and the preset corpus to obtain the document The TF-IDF value of each phrase in The phrase corresponding to the TF-IDF value is used as the keyword ,in, is a positive integer; Step S303: All semantic information of , information published by a user as a document , again TF-IDF value solution formula calculates keywords In the document The TF-IDF values in are used to construct the keyword vector matrix.
6. The semantic social network multi-view community discovery method based on text feature integration according to claim 1 is characterized in that: The step S4 specifically includes: Step S401, cleaning and filtering the initial semantic information; Step S402, determining the number of topics to be generated, using LDA to generate documents to extract topics from the processed initial semantic information, and obtaining the topic distribution of each piece of information; Step S403, taking the topics as the rows of the topic vector matrix, the information published by the user as the columns of the topic vector matrix, and the topic distribution of the information as the value of the data matrix to construct the topic vector matrix.
7. The semantic social network multi-view community discovery method based on text feature integration according to claim 6 is characterized in that: The specific process of LDA generating documents is as follows: Assume that the prior distribution of the initial semantic information is Dirichlet distribution, that is, for any text information published by a user , get the topic distribution of the text , is a hyperparameter vector that determines the distribution ratio of topics in the document; Assume that the prior distribution of the topic is Dirichlet distribution, that is, for any topic , get the word distribution , is a hyperparameter vector that determines the distribution ratio of words in the topic; For any semantic information The words, from the topic distribution Get its subject number , from the subject number Know the word The probability distribution of .
8. The semantic social network multi-view community discovery method based on text feature integration according to claim 1 is characterized in that: The process of solving the Pearson correlation coefficient in step S5 is: in, is the similarity matrix for each view, and are the i-th and j-th columns of the word frequency vector matrix, keyword vector matrix, or topic vector matrix, respectively. is the total number of columns in the word frequency vector matrix, keyword vector matrix, or topic vector matrix.
Citation Information
Patent Citations
OSN community discovery method based on LDA Theme model
CN105302866A
Topic mining sentiment analysis method based on user feature optimization
CN109933657A
Work order processing method based on community scene and related components
CN111881296A
Intelligent customer service system constructed based on knowledge graph
CN112084312A
Clustering for social media data
US20170300564A1
