Abstract

Aiming at the problem of the lack of user social attribute characteristics in the process of dividing overlapping communities in multilayer social networks, in this paper, we propose a multilayer social network overlapping community detection algorithm based on trust relationship. By combining structural trust and social attribute trust, we transform a complex multilayer social network into a single-layer trust network. We obtain the community structure according to the community discovery algorithm based on trust value and merge communities with higher overlap. The experimental comparison and analysis are carried out on the synthetic network and the real network, respectively. The experimental results show that the proposed algorithm has higher harmonic mean and modularity than other algorithms of the same type.

1. Introduction

As a representation model of user interaction, a social network is often used to analyze the complex social structure between people in real life. A social network is composed of a set of nodes and an edge set, where nodes represent users and edges represent interactions between users [1]. According to different types of interactions, different social network structures are formed. In recent years, a large number of social network applications have gradually catered to the needs of people in all aspects of daily life and have developed towards more humane, daily and intelligent aspects, such as Weibo, Twitter, and Facebook. According to research, more than 80% of users use at least one social network application [2]. Users use social network applications as a platform to post their emotions, attitudes, and values to their circle of friends. They can forward, comment, and like each other. As a result, various complex social relationship data are generated. Since different social platforms correspond to different social relationships, it is obviously not advisable to adopt a traditional single-layer social network to establish a user interaction model. Therefore, multilayer social networks are proposed to represent the complex network of relationships between people in the real world. In a multilayer social network, the nodes are users, and each layer represents a type of user’s social relationship [35].

Community detection, as an important tool for analyzing and understanding multilayered social networks, is manifested in close connections between nodes in the same community and sparse connections between different communities. It is widely used in various aspects of real life, such as public opinion detection [6], recommendation systems [7], and epidemic spread [8], and has become one of the key technologies for understanding and analyzing the structure of multilayer social networks. As shown in Figure 1(b), the research network consists of three layers: coauthoring layer, Twitter, and Facebook. At the coauthoring layer, if the authors have copublished papers, the nodes are connected to each other. In the Twitter and Facebook layers, the connection between nodes corresponds to the interaction between users. As shown in Figure 1(c), its community is a group of researchers with the same research direction. Through community discovery, users in the same community communicate with each other, answer questions, and recommend papers to better serve scientific research [9]. For a long time in the past, many scholars mainly focused on the structural relationship of nodes in the network, that is, the association relationship between users, to detect nonoverlapping communities [10]. However, related studies have shown [11] that communities in the real world are not separated. For example, users have multiple roles in social networks and can be in multiple communities at the same time; that is, communities can overlap. Faced with such a complex multilayer social network, detecting overlapping communities has become a hot topic in the current research.

Currently, relevant researchers apply most overlapping community detection algorithms to single-layer social networks: for example, local optimization community detection algorithm [12, 13], improved label propagation community detection algorithm [14], and parallel multiobjective optimization community detection algorithm [15]. In addition, it also includes a nonnegative matrix factorization community detection algorithm [16]. Experimental results show that these algorithms have achieved good results in single-layer networks. However, a multilayer social network consists of multiple layers, and each layer corresponds to a social relationship between users. It can be seen that these algorithms cannot be directly adapted to multilayer networks. For this reason, many researchers adopt the most direct strategy to extend the single-layer overlapping community discovery method to multiple layers [17] or use a multiobjective optimization method [18] to divide communities. However, these methods show lower performance when the network is large.

In addition, some researchers are inspired by user interaction behavior in social networks to simulate social interaction by constructing trust between users and divide communities based on the trust relationship between users. Users with a stronger trust relationship establish similar interests and hobbies through mutual influence and finally form a relatively stable group [19]. Compared with other community division methods, the trust-based community division method is simple in principle and has strong practical significance. At the same time, the experimental results show that the trust-based community discovery method greatly improves the accuracy of community detection [20, 21]. However, for multilayer social networks, these methods can only obtain nonoverlapping communities of the network, and in the process of building trust, they rely excessively on the structural characteristics of the network and ignore the characteristics of social attributes. Structure and social attributes are the basic characteristics of the network. The structural characteristics describe the user’s social scope, while the social attributes are the inherent characteristics of the user and correspond to the user’s social style.

Based on this, in this paper, we propose a multilayer social network overlapping community detection algorithm based on trust relationship (MOCBT). We integrate the characteristics of social attributes and transform the complex social information in the multilayer social network into a single-layer network based on trust value. We divide the community by using the local information of the network, thereby improving the accuracy of community detection.

The main contributions of this article are summarized as follows:(1)By integrating the characteristics of social attributes, we propose an evaluation model for evaluating the strength of trust between users(2)Based on the trust relationship between nodes, we propose a community detection algorithm based on trust value(3)We propose a multilayer network overlapping community detection algorithm based on trust relationship (MOCBT), which provides a general framework for multilayer network community discovery based on trust relationship. Experimental results show that the MOCBT algorithm is better than other community detection algorithms of the same type as a whole

The structure of the rest of the article is as follows: Section 2 summarizes the research status and the existing problems of multilayer social network community detection. Section 3 introduces the relevant theories of community detection. Section 4 discusses the proposed algorithm in detail. Section 5 verifies the feasibility of the proposed algorithm through experimental analysis. Section 6 summarizes the full text and indicates the work to be done in the next step.

Recalling the traditional community detection methods in multilayer social networks can be divided into two main strategies: single-layer community expansion and integration methods and other methods. The first strategy extends the single-layer network community detection algorithm to multilayer networks. Rodriguez [22] proposed a multilayer network community detection algorithm framework based on path algebra. They use tensors to represent multilayer networks and slice bidirectionally to generate a single relational path matrix. Chen et al. [23] fused the multilayer network into a weighted single-layer network by calculating the similarity between nodes and used an improved label propagation algorithm to obtain the community. However, these methods will cause the lack of network information in the process of integration and expansion, resulting in inaccurate community detection [24]. Besides, Ma et al. [24] proposed a semisupervised nonnegative matrix factorization algorithm for multilayer networks, by obtaining denser communities in the network in advance. Gao et al. [25] proposed a community detection model suitable for complex networks by combining a competitive learning mechanism and random deterministic roles. However, the communities obtained by the above algorithm are nonoverlapping. To this end, Tehrani and Magnani [17] used the first strategy to redefine the definition of faction filtering algorithms and proposed an extensible faction filtering overlapping community discovery algorithm. Based on the basic theory that users in the same community have dense connections and users in different communities have sparse connections, Shahmoradi et al. [18] obtained network overlapping communities by using multiobjective optimization. However, these methods only use the structural characteristics of the network in the process of community detection, and the divided communities are not ideal when the data scale is large.

As we all know, social networks are composed of users and the interaction between users, but the interaction between users is ultimately a trust relationship between each other. Based on this, Chen et al. [26] established a trust model by integrating direct trust and indirect trust between users. They proposed a single-layer social network-oriented nonoverlapping community discovery algorithm by combining edge fitness and community fitness. Ding et al. [27] established a trust evaluation model between users by integrating structural similarity and neighbor similarity and then obtained overlapping communities of single-layer networks by using coarse-grained K-medoids. In contrast, Li et al. [28] established a trust model between users by analyzing the homogeneity between nodes and the shortest path and proposed a multilayer network local community discovery algorithm based on trust relationships. However, in the process of establishing a trust model, these algorithms essentially only use the structural features of the network, ignoring the social attributes of the network. Therefore, for multilayer social networks, it is necessary to design an overlapping community discovery algorithm based on trust relationships and integrating social attribute characteristics.

3.1. Multilayer Social Network

The user information we collect and extract is usually expressed as unstructured. To facilitate analysis and understanding, we use the ontology model [29] to structure the user’s social information. The ontology model can be used as a standard modeling tool, while also ensuring interoperability between data.

After the data is structured, we define a multilayer social network as an undirected graph with attribute information.

represents the number of network layers. represents the set of nodes in the graph. represents the set of edges in the graph. The edges represent the social relationships between nodes, and the social relationships at different levels are different. The edge weight represents the strength of the relationship between the nodes. represents the set of attributes of nodes in the network.

3.2. Community

We collected descriptions of communities from previous literature [718], which can be summarized as follows:(i)Nature 1: the nodes within the community are closely connected, and the nodes within the community are sparsely connected with nodes outside the community.

It can be seen that the definition of community in the past literature focuses on the structural characteristics of the network. However, this is not the case. Users with close structural relationships but different social attributes may not necessarily join the same community. This is mainly determined by the user’s social status and value; that is, birds of a feather flock together. Structural characteristics and social attribute characteristics are the two basic attributes of the network. Social attribute characteristics include two aspects of personal status and value. Personal status refers to demographic characteristics, such as race, gender, age, education level, and occupation. Personal value refers to thoughts, attitudes, lifestyles, etc.(ii)Nature 2: structural features are only the prerequisites for the formation of communities, and what really matters is the characteristics of social attributes. In other words, nodes within the community are closely connected and have similar social attribute characteristics, while nodes with different social attribute characteristics and close connections may not be in the same community.

3.3. Degree of Community Overlap

When there are many common nodes between two communities, it means that they can be merged.

Definition 1 (degree of community overlap, ) [19]. is used to judge whether the communities can be merged. When is higher, it means that the communities can be merged.

represents the number of nodes shared by communities and , and represents the minimum number of nodes owned by communities and .

3.4. Problem Description

Trust, as the core part of social interaction, is a concentrated expression of a person’s mode of getting along in social networks, and it is also a bridge to maintain and establish interpersonal relationships. By building trust, people maintain a long-term and stable social connection. As time changes, users with stronger trust relationships gather together and share information with each other. Through mutual influence, similar interests and hobbies are established, and finally a relatively stable group is formed [19]. It can be seen that the strength of the trust relationship between users is the main factor that affects the formation of the community structure. Based on this relationship, in this article, we transform the complex information between users in a multilayer network into a trust relationship. After that, we proposed an overlapping community discovery algorithm based on trust relationship, which provides a new idea for the division of overlapping communities in multilayer social networks.

4. Algorithm Description

Aiming at the shortcomings of traditional community detection methods, in this article, we propose a multilayer network overlapping community detection algorithm based on trust relationships (MOCBT). By combining the social attribute characteristics of the network, we transform the complex information between nodes in the multilayer network into a single-layer network based on trust value. Based on the community detection algorithm of trust value, we obtain overlapping community structure.

As shown in Figure 2, our proposed community detection algorithm consists of three steps.(Step 1)We combine node structure trust and social attribute trust to obtain a comprehensive trust value.(Step 2)We convert the trust value between nodes into trust distance and obtain the core node set according to the trust factor and the minimum trust distance and then expand the nodes that meet the conditions to the community where the core node is located.(Step 3)We merge communities with a high degree of overlap.

4.1. Establish Trust Value

In this section, we will describe in detail how to convert the complex information of nodes in a multilayer social network into a single-layer trust value. Since the structure and social attributes of nodes are the two basic characteristics of the network and trust value can be used to measure the intensity of interaction between user nodes in the network and the possibility of being in the same community, the structure and social attributes of nodes have become the main factors affecting trust.

4.1.1. The Impact of Structure on Trust

Definition 2 (trust value of the single-layer shortest path, ). The longer the shortest path between user nodes and , the smaller the value of .

In the field of communication, the longer the path the information travels, the weaker the accuracy and completeness of the information. Similarly, in one of the layers of a multilayer social network, when two user nodes need to establish an interactive relationship, the more nodes they pass, the lower the trust between them. For example, if users A and B have no direct interaction relationship, but both have a direct connection with user C; the trust between users A and C or B and C is stronger than the trust between users A and B.

Definition 3 (trust value of the number of single-level paths, ). The more paths between user nodes and , the greater the value of .

For example, users A and B are friends and have many friends in common, indicating that they have many common interests and show closeness.

Definition 4 (multilayer structure trust value, ). Given a multilayer social network , combined with Definitions 2 and 3, the multilayer structure trust value between nodes can be expressed aswhere represents the number of network layers and represents the interaction weight, that is, the frequency of interaction between users. The larger the , the higher the user’s trust.

4.1.2. The Impact of Social Attributes on Trust

Structural features mainly exist in the form of edges in multilayer social networks, while social attribute features are attached to the network and are inherent characteristics of users. Research shows [30] that the higher the similarity of social attributes between nodes in social networks, the stronger the homogeneity between users, and homogeneity can be described as the degree of trust between users [27].

Definition 5 (social attribute trust value, ). Given a multilayer social network , the more social attributes shared between users, the stronger the social attribute trust value.where represents the number of social attributes, represents the weight of the attribute in the layer, and represents the trust relationship between nodes and for the attribute. According to different types of attributes, the value of can be divided into two situations. When the attribute is a discrete attribute, such as occupation and diploma, if users and have the same attribute value, the value of is 1; otherwise, it is 0. When the attribute is the attribute of the text, such as search records and chat records, inspired by short text mining, we calculate the value of based on the frequency of keywords in the text. Assuming that is the keyword of the text attribute, then .Where represents the number of nodes containing the keyword and represents whether the attribute of node contains , if it does, ; otherwise, .

4.1.3. Comprehensive Trust Value

Definition 6 (comprehensive trust value, ). Given , , and , the comprehensive trust value of user to user can be expressed aswhere represents the one-way trust value of user to . When the value of is closer to 1, the trust relationship between user and is stronger. represents the sum of trust between user and its neighbor node. represents an indicator function. When is less than or equal to 0, ; on the contrary, .

Affected by education, experience, and life background, the trust between users is not equivalent; that is, user ’s trust for is not equivalent to user ’s trust for . However, in the process of interaction, the establishment of a trust relationship between users often depends on the party with a lower trust value. For this reason, we choose as the ultimate trust between users.

4.2. Discover the Community

In the previous section, we transformed the complex multilayer social network into a single-layer network based on trust value, which greatly simplified the scale of the problem. In this section, we abstract the transformed single-layer trust network into a data domain based on the data field theory [27], where the data points represent users and the trust value is expressed as the distance between the data points, that is, the interaction strength of the nodes. In view of the network’s small-world effect, scale-free nature, and the aggregation characteristics of the network node structure, the core nodes in the community often have strong local interactions. That is, the core node has strong interaction with neighbor nodes, but the interaction between core nodes in different communities is weak. We find the core node by calculating the trust factor and the minimum trust value, obtain the community where the core node is located according to the core value change rate, and propose a community discovery algorithm based on trust value (CAOT).

Since the trust value between nodes decreases with the increase of the distance, we use the Gaussian function to objectively measure the changing trend of the trust value of the nodes with the distance.

Definition 7 (trust distance, ). Given a multilayer social network , the trust distance of node to node is expressed as

Definition 8 (trust factor, ). The trust factor is described as the sum of the trust value of node and its neighbor node . The trust factor of node is expressed as

Definition 9 (minimum trust distance, ). Due to the large trust distance between core nodes in different communities, is described as the minimum trust distance from node to node with a higher trust factor. According to the value of the trust factor, is divided into two types of values, defined asWhen the trust factor of the node is the largest, is the maximum value of of node and other nodes . On the contrary, when the trust factor of node is not the maximum, is the minimum value of of the node and other nodes , and the trust factor of node is greater than the trust factor of node .

Since core nodes have a higher trust factor and a larger minimum trust distance than noncore nodes, we sort the core value of each node in an ascending order. There is a clear downward trend from the core value of the core node to the core value of the noncore node. Therefore, we use the trend of slope change to automatically select the core node and define the trend as , where is the weight value to prevent the rapid increase of , so as to improve the accuracy of core node selection. Finally, we denote the obtained core node set as .

Definition 10 (the community where the core node is located, ). Given the core node and the noncore node , if , then .

The threshold determines whether node can join community . In order to determine the value of , we conducted a detailed experimental comparative analysis.

The CAOT algorithm first uses the Gaussian function to objectively measure the trend of the trust value between nodes with distance. By calculating the trust factor and trust distance of each node, the algorithm automatically obtains the network core node set . After that, the algorithm initializes the community set where each core node is located and adds noncore nodes that meet the conditions to the current community. Finally, the community set where each core node is located is obtained, and the pseudocode of the algorithm is shown in Algorithm 1.

Input: Multi-layer social network,
Output: The community collection where the core node is located,
1: Initialization,
2:
3:   
4:     
5:   
6:
7:
8:   
9:
10:
11:According to , the core node set is obtained
12: // We initialize the community where each core node is located, that is, the core node represents an initial community.
13:
14:   
15:   
16:        //Node is added to community .
17:     
18:   
19:
20:return
4.3. Community Merger

When there are more public nodes in any two communities obtained by the above steps, the communities may have excessive overlap. Therefore, it is necessary for us to further process the obtained communities to reduce redundant communities and improve the quality of community discovery. In this paper, we use formula (1) to calculate the degree of overlap between two communities to determine whether the communities can be integrated.

4.4. Algorithm Description

Aiming at the problem of the lack of social attribute characteristics when constructing user trust relationships in multilayer social networks, we integrate social attribute characteristics to propose a new way of representing user trust values. Combining the community discovery algorithm CAOT based on trust value, we propose a multilayer social network overlapping community discovery algorithm based on trust relationships (MOCBT). The proposed algorithm supports two or more layers of social networks. The input of the algorithm is a multilayer social network , and the output is a set of overlapping communities . The algorithm first combines structure and attribute trust to obtain a comprehensive trust value . After that, the community set where the core node is located is obtained according to the CAOT algorithm. Finally, the communities with a higher degree of overlap are merged according to the fusion threshold . The algorithm steps are in Algorithm 2.

Input: Multi-layer social network.
Output: Overlapping community sets.
1: Initialization
2:
3:   
4:     
5:   
6:
7:
8: According to Algorithm 1, we obtain the community set where the core node is located.
9:
10:
11:     
12:      :
13:       
14:      
15:
16: Return
4.5. Algorithm Complexity Analysis

In order to verify the practicability of the algorithm, we analyzed the time and space complexity of Algorithms 1 and 2, respectively.

4.5.1. Time Complexity

In a multilayer network, represents the number of nodes, and represents the number of core nodes. In Section 4.1, we establish the trust value between user nodes by traversing each node in the network, and the time complexity is . In Section 4.2, we first convert the trust between nodes in the network into distance, and the time complexity is . Then, we get the core value of each node, and the time complexity is . We sort the core values to obtain core nodes, and the time complexity is . Finally, we obtain the community where each core node is located, and the time complexity is . In Section 4.3, the time complexity of merging communities is . Therefore, the total time complexity of Algorithm 1 is . The time complexity of Algorithm 2 is .

4.5.2. Space Complexity

Since we used the sorting method, the space complexity of Algorithms 1 and 2 is in the best case, and the space complexity is in the worst case.

5. Experimental Analysis

5.1. Data Set and Evaluation Indicators

We use the random model [31] to generate 8 multilayer synthetic social networks with different structure types according to the matching degree of the community and social attributes. The matching degree of the 8 synthetic networks is increased from 0.3 to 1. The matching degree is described as the similarity between the social attribute and the community theme set. In other words, when , it indicates that the probability of the user’s social attribute appearing in the community theme set is 0.3. The greater the probability, the higher the similarity. Each network is composed of 4 layers, and each layer adopts a different generation model. Each network is divided into two overlapping communities, including 100 nodes and 8 social attributes. As shown in Table 1, represents the number of nodes and represents the number of edges. represents the number of social attribute features, and represents the number of communities. represents the number of network layers.

As shown in Table 2, we use four real multilayer social network data sets [28], such as Twitter data set, QQ Zone data set, Remote Sensing, and Bio GRID. The Twitter data set contains various topics such as entertainment, science, and sports and is divided into three levels: mention, repost, and reply. The QQ Zone data set collects the user’s spatial data information, including the user’s age and gender. The data set is divided into three levels: posting, comment, and like. The Remote Sensing data set is a network structure derived from satellite remote sensing images and contains five levels. Bio GRID contains human genetic data and various protein interaction data and consists of seven layers. The way the proteins interact in each layer is different.(1)Extended modularity, : since we considered the structure and attribute relationships of nodes, in order to measure the quality of overlapping communities, inspired by the literature [32], we rewrite the modularity aswhere represents the number of communities in the network, represents the weight between the node and , represents the sum of the weights of all edges in the network, and represents the possibility that the nodes and are connected in a random state. If the node completely belongs to the community where the core node is located; then . If node does not completely belong to the community where core node is located, the value range of satisfies . Otherwise, .(2)Harmonic mean value, [33]: is a comprehensive measure of precision and recall. The closer is to 1, the closer the community divided by the algorithm is to the real community

5.2. Experimental Results and Analysis

In order to verify the effectiveness of our proposed algorithm, the following five experiments are designed:(1)By changing the value of parameter , we observe the changes in the evaluation index in the synthetic data set to determine the appropriate value of (2)We selected 11 representative community discovery algorithms to compare with the proposed algorithm to verify the community overlap performance of the proposed algorithm(3)Through the analysis of the community detection results of the synthetic network and the real network, we verify the correctness of the proposed community nature(4)In the synthetic network, we compare and analyze the proposed algorithm with the contrast algorithm(5)In the real network, we compare and analyze the proposed algorithm with the contrast algorithm

Throughout the experiment, according to a previous literature, we set the parameter . reflects the degree of community overlap. The higher the value of , the more nodes shared between communities. In order to reduce community redundancy, we set a fusion threshold . That is, when , it indicates that communities with many nodes in common can be merged into one community. The higher the value of , the smaller the number of final communities. In this article, we set [27].

5.2.1. The Value of Parameter

In this section, we discuss the influence of parameter on the proposed algorithm. In the 8 synthetic networks, we use three evaluation indicators: accuracy, recall, and harmonic mean, to observe the impact of the value of on the division of communities. The experimental results are shown in Figure 3. In each subgraph, as the value of increases, the original nodes in the community are deleted because they do not meet the conditions, which leads to an increase in the precision and a decrease in the recall. This satisfies the mutual restriction of precision and recall. The value of increases first and then gradually decreases. Since we convert the trust value between users into a distance value, when the trust value between users is greater, the distance is smaller, and the possibility of being in the same community is greater. When users have a small trust value, they have a large distance between them, and the possibility of being in the same community is relatively small. When the value of reaches the maximum, in each subgraph, the value of corresponding gradually increases from 0.3 to 0.4. At this time, the quality of community division is the best. It can be seen that the value of can be divided into two situations. When the social attribute has a high similarity with the community theme, . On the contrary, when the similarity between the social attribute and the community theme is weak, .

5.2.2. Community Overlap Analysis

In this paper, based on the synthetic data set, we compare the proposed algorithm with the single-layer network community detection algorithm and the multilayer network community detection algorithm, respectively, to verify the community overlap performance of the proposed algorithm.

We chose some classic single-layer network community detection algorithms, such as local optimization algorithm (LCDNN) [12], improved label propagation algorithm (TNS-LPA) [14], multiobjective optimization algorithm (PMOEA) [15], and nonnegative matrix factorization community detection algorithm (MOCBT) [16].

We also choose some high-performance multilayer network community discovery algorithms, such as multilayer network community detection algorithm based on semisupervised nonnegative matrix factorization (S2-JNMF) [27], multiobjective optimization-based multilayer network overlap community detection algorithm (OMCS) [18], and the MTLCD [28] algorithm that expresses the trust relationship in the form of a tensor.

In this paper, we adopt the idea of expansion and merging [17] and apply the single-layer network community detection algorithm to the multilayer network. It can be seen from Figure 4 that as the matching degree gradually increases, the ratio of the proposed algorithm to correctly identify nodes is significantly higher than that of the comparison algorithm. reflects the degree of similarity between the social attributes and the community theme set. The smaller the value of , the more chaotic the node partition. As the value of increases, node partitions become clearer, and the accuracy of overlapping nodes falling into different communities gradually improves. In general, the proposed algorithm has better performance in detecting overlapping communities.

5.2.3. Verify Nature 2

We conduct experimental analysis on the synthetic network and the real network, respectively, to verify the correctness of nature 2.

By adjusting the matching degree , we observe the changes in the community. The value of is 0.3-1, corresponding to 8 synthetic networks. The experimental results are shown in Figure 5. As the value of increases, the quality of community detection is better. When , the community detection basically tends to be stable, and the detection result is the best. The experimental results show that the structural relationship of user nodes is only a prerequisite for the formation of communities, and what really matters is the social attributes of user nodes.

We split the proposed algorithm according to social attribute features and structural features and divide it into a community detection algorithm that only considers social attribute features (PMOCBT), a community detection algorithm that only considers structural features (SMOCBT), and the proposed algorithm (MOCBT). The experimental results are shown in Figure 6. In the four real data sets, the value of the SMOCBT algorithm is significantly lower than that of the PMOCBT and MOCBT algorithms. At the same time, the value of the PMOCBT algorithm is closer to that of MOCBT. The experimental results further show the correctness of the proposed nature 2.

5.2.4. Compared with Other Algorithms on the Synthetic Network

The experimental results are shown in Table 3. It can be seen from the table that the evaluation index of the proposed algorithm is significantly better than that of other single-layer network community detection algorithms. Multilayer networks cover a variety of complex relationships between users and are a further extension of single-layer networks. The proposed algorithm not only considers the user’s structural relationship but also combines the user’s attribute characteristics, so that the community detection result is significantly better than the single-layer network.

It can be seen from Table 4 that the evaluation index of the MTLCD algorithm based on the trust relationship is significantly better than that of the S2-JNMF and OMCS algorithms based on the structure relationship, and the proposed algorithm has the best performance compared to other comparison algorithms. The MTLCD algorithm obtains local communities on the network by establishing a trust model. The experimental results show that using the trust value to divide the community has better performance. However, this trust model essentially only uses the structural characteristics of the node, while ignoring the attribute characteristics of the node. Our proposed algorithm combines the characteristics of social attributes to ingeniously transform the complex relationships of multilayer social networks into trust relationships between users. We use the local information of the core node to divide the community and discard the inaccurate community results brought by the global information of the network, and the proposed algorithm shows a better detection result. In the data set G1, since the matching degree is low, the values of and are relatively low. In data set G8, since the matching degree is the largest, the values of and are relatively high. This fits our description of the nature of the community.

5.2.5. Compared with Other Algorithms on the Real Network

We use four real multilayer social network data sets, namely, Twitter number, QQ Zone, Bio GRI, and Remote Sensing data sets, to verify the feasibility and scalability of our proposed algorithm. Since the result of a community in a given real network is unknown, this paper uses modularity as a measure of community detection. It can be seen from Table 5 that the community results of the MTLCD algorithm based on the trust relationship are better than those of the S2-JNMF and OMCS algorithms based on the structural relationship. Compared with other comparison algorithms, our proposed algorithm has the best evaluation index. It can be seen that the trend of the real network experiment results is similar to that of the synthetic network. At the same time, in these two data sets, the modularity is greater than 0.5, which meets the standards of community testing [32].

6. Conclusion and Summary

Although traditional community detection algorithms based on trust relationships greatly improve the accuracy of community discovery, these methods rely excessively on the structural characteristics of the network. Therefore, to solve the problem of the lack of social attributes when constructing user trust relationships in multilayer social networks, we propose a multilayer social network overlapping community detection algorithm based on trust relationship. By integrating structural trust and social attribute trust, we transform a complex multilayer social network into a single-layer trust network. Based on the community discovery algorithm of trust value, we obtain the overlapping community structure of multilayer social networks. We carried out experimental comparative analysis on the synthetic network and the real network, respectively. The experimental results show that the proposed algorithm has higher and compared with other algorithms of the same type, which effectively reveals the community structure of the network. However, the user’s trust relationship is not static, but changes over time. Therefore, in a future work, we will focus on how to establish a dynamic trust model and design a fast and efficient dynamic overlapping community discovery algorithm.

Data Availability

Data are available at http://twitter.mpi-sws.org/data-icwsm2010.html.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (61967013) and was also supported by Northwest Normal University Graduate Research Funding Project (2020).