A Collaborative Recommend Algorithm Based on Bipartite Community

The recommendation algorithm based on bipartite network is superior to traditional methods on accuracy and diversity, which proves that considering the network topology of recommendation systems could help us to improve recommendation results. However, existing algorithms mainly focus on the overall topology structure and those local characteristics could also play an important role in collaborative recommend processing. Therefore, on account of data characteristics and application requirements of collaborative recommend systems, we proposed a link community partitioning algorithm based on the label propagation and a collaborative recommendation algorithm based on the bipartite community. Then we designed numerical experiments to verify the algorithm validity under benchmark and real database.


Introduction
Collaborative recommend technology is one of the most effective approaches in dealing with information overload. It has drawn great attention. However, with the development of network technologies, collaborative recommend has present complex dynamic characteristics and its key issues are still outstanding, such as data sparsity, scalable, and the shift of user interest.
In recent years, the study of complex networks has become a hot issue, and many theoretical models and analytical methods have been proposed. It provides new ideas and methods to solve those key problems. The bipartite network is an important manifestation of the complex network [1,2], which could well portray collaborative recommendation system's topology. Therefore, scholars have begun to utilize these topologies to deal with the problems on collaborative recommendation [3][4][5][6][7][8][9]. These approaches could capture the global structure and the relation between the various basic elements, which avoid the impacts of ordinary objects, such as the popular resources and active users, and further improve the recommended results. In addition, these approaches could reduce requirements of original data. For privacy factors, available raw data is not rich, such as rating data and personal information. And analyzing text contents such as some comments is difficult, while those operating data, such as clicks and web retention time, are relatively readily available.
However, current research on collaborative recommend based on bipartite topology is just starting and mainly focuses on the global structure. It also contains a clustering based on certain pattern of users and resources, such as users' common interests and similar resources' theme. This local feature, known as the community structure in complex networks, is very beneficial to collaborative recommendation, including the following three points.
(1) The communities are forming naturally and their size are controllable. Using them as nearest neighbourhoods can guarantee the relations between the object and its neighbours and enable the size of nearest neighbourhood to be dynamic. Compared with traditional methods, collaborative recommendation based on bipartite community can reduce influences of mistaken nearest neighbours. On the other hand, processing on local community structures can alleviate the scalability issues to a certain extent.

2
The Scientific World Journal (2) Structural properties of communities, such as overlap and hierarchy, could enrich the available information for collaborative recommend system. Studying on the inherent relationship between those structural properties and collaborative recommend process can bring new breakthroughs in data sparse and interpretability problems. (3) Research on community structure evolution can also grasp the dynamic nature of the recommendation system and reflect the behaviour of the continuous interactive and user feedback. So we can also discover certain patterns and predict the tendency of community structure, which could intelligentize collaborative recommend process.
Thus, we first proposed a bipartite community partitioning algorithm according to the real data environment of collaborative recommendation. And then we proposed a novel collaborative recommendation algorithm using these bipartite communities. Finally, we verify the validity of the algorithms by numerical experiments and analysed the phenomenon and reasons of the experimental results.

Dynamic Nearest Neighbourhood Algorithm.
In order to handle large-scale data set, the traditional researches are mainly focused on kNN methods, which predict recommendations by those historical choices of the target user's similar users. But fixed value of cannot satisfy different users' requirements. For example, if the number of similar users is less than , the user neighbourhoods generated from traditional methods will include unsimilar individuals, which could affect the recommend accuracy. Therefore, the size of the neighbourhoods should have a dynamic adaptability.
Reference [10] proposed collaborative recommendation algorithm based on indeterminacy neighbourhood. It selected neighbourhoods and trust subgroups by setting some thresholds and introduces a harmonic parameter to integrate user-based and resource-based collaborative recommendation. On this basis, reference [11] introduced opinion mining technology and adds semantic similarity measure for comments dimensions.
Reference [12] first corrects the similarity between the target users and their nearest neighbour by an improved overlap factor and the attribute of target resource class. Then it predicted resources' scores to certain target user after rearranging the sequence of neatest neighbours. Finally it recommended resources by sorting these scores.
The above algorithms both adopted the idea of dynamic nearest neighbourhoods. The former focused on the neighbourhood scale which is suitable for the target user's forecast scenarios, while the latter's concern is the modification of neighbourhood based on the attribute of resource class. In addition, the former integrated user-based and resourcebased collaborative recommendation. These algorithms overcome the limitations of traditional methods with fixed nearest neighbourhood and single dimension measure. But there are still some defects. The former needs to set a large number of parameters artificially, while the optimal value of parameter is difficult to determine under different scenarios, which will affect the algorithm stability. And resource class attribute introduced by the latter algorithm is too objective to reflect the rich content of users' subjective behaviour.

Bipartite Community Division.
The division of bipartite community is the process of identify bipartite network community. It has important theoretical significance and practical value on network structure analysis, functional evolution, and prediction. In General, we can get the structure of bipartite community by project bipartite network for a common network of one kind nodes and execute existing community division algorithms. However, the projection process will result in loss of information and other issues. Therefore, many scholars directly divide bipartite community against the original bipartite network structure. Existing bipartite community methods generally fall into three categories: modular-based methods, clique-based methods, and propagation-based methods.
There are two main policies in modular-based methods. One is regarding the modular as the target function for optimization [13][14][15][16]; the other is regarding modular as a stop condition in the hierarchical clustering [17]. On one hand, the modular depends on global network and has a resolution limitation problem. On the other hand, heuristic searching is relatively complex and time consuming. Therefore, with high computational and time complexity, modular-based algorithms are not appropriate for large-scale real networks. In addition, the above algorithms are restricted to nonoverlap communities.
Clique-based methods divide overlapping bipartite communities. Reference [18] extended the -clique community division algorithm in common network. It defined bipartite clique , as fully connected bipartite subgroup which consists of nodes and nodes. And it defined the structure of bipartite clique community as a union of a series of adjacent bipartite clique which share -1 nodes and -1 nodes at least. Then it implemented community division by the clique seepage. Reference [19] defined bipartite core subclique and executed the clustering method. Communities obtained by the above algorithms contain two kinds of nodes and have no heterogeneity.
Propagation-based methods are easy to implement parallel with a linear time complexity and without prior knowledge. Reference [20] introduced an improved label propagation algorithm for the bipartite network. It merely assigned different label to one certain kind of nodes at first, and then repeatedly synchronously updated the labels based on their heterogeneous neighbours in each iteration until a stable state was reached. However, this method is also restricted to nonoverlap communities.

Link Community
Division. For users and resources are different objects, the bipartite communities under collaborative recommendation environment should be able to distinguish between heterogeneous nodes in order to guarantee The Scientific World Journal 3 interpretability. At the same time, due to the common phenomenon of milt-interested users and milt-theme resources, the overlap and hierarchy of bipartite communities should be allowed. The division of link community is an effective way to achieve the above targets. However, current researches on link community division are mainly in common network.
Reference [21] provided a general framework of link community division. The basic idea was to build a weighted edge graph for the bipartite network and then directly use existing community division algorithms. The method could adapt to the existing algorithms but needs extra time and memory consumptions for the edge graph. In addition, the edge graph of bipartite networks will produce two types of edges.
Reference [22] defined a similarity measure based on nonsharing vertexes of a pair of edges and utilized the simple hierarchical clustering to obtain a dendrogram of link communities. However, the clustering process and measurement are both depending on global information. On the other hand, the dendrogram consumed large storage space, and many of its levels did not have practical significance. Otherwise, link communities on different levels of the dendrogram is not in the general sense of multiscale but just a process of merging or splitting communities layer-by-layer.
According to the collaborative recommend systems' environments and requirements, our community division algorithm needs to implement the following goals except for the accuracy: (1) low complexity, computational complexity, and parallelizability for the large-scale data, (2) adaptability for dynamic updating data, and (3) overlapping, hierarchical, and related community structures for the multiple content data. Therefore, we draw on the idea of label propagation to divide link communities into bipartite network.

Methods
Without loss of generality, defining a bipartite network as = ( , , ), where = { 1 , 2 , . . . , } is a set of nodes of kind , is the number of nodes and = { 1 , 2 , . . . , } is a set of nodes of kind , is the number of nodes and ∩ = 0, ⊆ ( × ). We note that the set of all nodes is = ∪ , is the number of nodes, and is the number of links. We call the nodes of the same type as homogeneous nodes and those of the different types as heterogeneous nodes.

Correlation Measurement
The heterogeneous neighbor is the direct property of a node; the degree of a node is the number of its heterogeneous neighbors, while the homogeneous neighbor is the indirect property of a node, because a node and its homogeneous neighbors contact with each other through those common heterogeneous neighbors. This interconnection is referred to as "cross linking, " and bipartite networks is exactly a cross-linked network. A Cross-linked structure is the basic unit of bipartite networks consisting of a pair of homogeneous nodes and common heterogeneous nodes. The formal definition is as follows.
Definition 1. In a given bipartite network , nodes , , form a cross-linked structure, if and only if they satisfy ( , ) ∈ ( ) ∩ ( , ) ∈ ( ). All the cross-linked structures which contain nodes and compose a cross-linked set ( , ). In other words, set ( , ) consisted of , and their common heterogeneous neighbors.
There is a certain correlation between a pair of homogeneous nodes in a cross-linked structure. For example, a cocitation relation means that literature articles are more or less similar to some degree if they have the same quotations. Therefore, reference [8] characterizes relations between homogeneous nodes by giving them cognitive ability and distinguishes their different position in the cross-linked structure. In this way, it completed the network projection and implemented collaborative recommendation based on the projection network. Combining with Definition 1, relevant formal definition is as follows.
Definition 2. Given a cross-linked structure ⟨ , ⟩ ( ), node is referred to as the intermediary node, while node, and are referred to as subjective target node and objective target node, respectively. So, theintermediary cross-linked correlation that node acts on is where these three functions and their forms are defined as (1) the description ability of the intermediate node: ( ) = 1/ ; (2) the independence of the subjective target node: ( ) = 1/ ; (3) the exclusiveness of the subjective target node to the object one: Δ ( ) = 1/( − + 1) , where is a parameter indicating degree of the contribution that the exclusiveness makes on the correlation and = | ( )∩ ( )|.
By accumulating the all correlations in cross-linked set ( , ), we can compute the correlation between target node and its homogeneous neighbor , expressed as ⟨ , ⟩ correlation. After normalization on all ⟨ , ⟩ correlations, we can obtain the importance probability ⟨ , ⟩ which means how important the node is to node . Relevant formal definitions are as follows.
Definition 3. Given a node and one of its homogeneous neighbor node , the ⟨ , ⟩ correlation is denoted as The Scientific World Journal  Definition 4. Given a node and one of its homogeneous neighbor node , the importance probability of in the view of is denoted as where is normalization factor. Figure 1 shows an example on calculating vertex correlations according to the above definitions where the value of is 1.

Edge Adjacent Structure.
In a common network, we generally say that two edges sharing the same endpoint are adjacent, because these edges clearly have higher similarity than those without common endpoint. But the common endpoint is unable to provide useful information for the similarity measure, and the higher its degree is, the more similar the edges are. Therefore, Ahn et al. [22] used the modified Jaccard index based on nonshared endpoints to measure the similarity of adjacent edges.
However, an edge exists in a pair of heterogeneous nodes in bipartite network. So, the common nodes of adjacent edges are different types.
For example, in Figure 1 adjacent edges of edge ( 1 , 1 ) are ( 1 , 2 ), ( 1 , 3 ), and ( 2 , 1 ). The common node shared by ( 1 , 1 ) and the former two edges are of type , while the node which ( 1 , 1 ) shared with the last one is of type . If we follow Ahn's similarity measure, the similarity between edge ( 1 , 1 ) ( 1 , 2 ) and ( 1 , 3 ) is represented by the similarity between nodes 1 ( 2 ) and 3 , while the similarity between edges ( 1 , 1 ) and ( 2 , 1 ) is represented by the similarity between nodes 1 and 2 . This results in the inconsistent similarity measure, and we can judge which one of the adjacent edges is more related to ( 1 , 1 ).
Therefore, for a given edge, we define another edge as its adjacent edge if and only if the edge has no common endpoints with it and each pair of homogeneous endpoints of them has common heterogeneous neighbors. This could unify the correlation of both dimensions, and we could measure it by the correlations of the two pairs of homogeneous nodes. For example, in Figure 1 the set of adjacent edges of formal definition is as follows.

Edge Correlation.
The property of an edge is determined by its endpoints. Therefore, we can measure the correlation of adjacent edges through indirectly multiplying the correlations of homogeneous endpoints. Relevant formal definition is as follows.
Definition 7. Given a pair of adjacent edges ( , ) and ( , ), their correlation under ( , )'s perspective is denoted as The above definition uses the correlation between two pairs of homogeneous neighbor nodes independently. When calculating Sig ⟨ , ⟩, each intermediary node of nodes and contributes to the correlation equally. Corollary 6 shows that intermediary nodes are also the common homogeneous neighbors of nodes and . Therefore, for an intermediary node, its ability to depict the correlation of the pair of homogeneous endpoints and becomes greater, if and only if the correlation between and it is closer to the one between The Scientific World Journal 5 and it. After modifying the description ability of intermediate nodes, we could obtain the correlation ⟨ , | , ⟩; the amended definition is as follows.
Definition 8. For a given pair of adjacent edges ( , ) and ( , ), their correlation under ( , )'s perspective is where ⟨ , ⟩ ( , ) represents the ⟨ , | , ⟩ correlation, and it satisfies where ( ⟨ , ⟩ , ⟨ , ⟩ ) represents the correction factor denoting how much the contribution intermediary node in cross-linked structure ( , ) made to the ⟨ , | , ⟩ correlation, and it satisfies If the intermediary node is exactly one endpoint of the edge, the correction factor is 1. It is like that people think their own ideas most important. Table 1 shows an example of calculating correlations among adjacent edges.

Bipartite Community Division Algorithm Based on Propagation.
In the real world, people often follow others' behaviors. For example, they will buy the same goods that their friends have bought. The edge correlation measure proposed in last section could be interpreted as to how a behavior depends on another one. Here, we propose a link community division algorithm based on label propagation (BELPA).

Algorithm Design.
The basic idea of BELPA is assigning unique labels to each edge at first and then repeatedly updating labels until they converge to a steady state. At last, edges with the same label belong to the same community. This process is equivalent to label propagation on a directed and weighted network where nodes are corresponding to edges in the bipartite network and the directed and weighted edges are corresponding to the correlation between adjacent edges. We need to solve three key problems: how to allocate initial labels, how to update labels, and when to stop the iterative process.
First of all, we select one kind of node sets as the starting set and then give the same label for edges ending up with each node in the node set. For example, if starting from the set of nodes, the label assigned to each edge is the identification of the edge's endpoint. This process is consistent with the idea in [19], because it is equivalent to the idea that nodes can also receive the labels from nodes.
After initial allocation, the label updating strategy includes following aspects.
(1) Label selection strategy. At the th iteration, we weight the correlation between a given edge and its adjacent edges and update its own label by adjacent label with the highest correlations. The label updating function is (2) Tie treatment strategy. When the above function returns more than one maximum labels, we will maintain the label of edge if it is one of them, otherwise we select one of them randomly.
(3) Updating execution strategy. We execute label updating synchronously, that is, the new label of each edge is independent of other edges in the current iteration and just relies on the adjacent labels in the last iteration. So we can obtain more stable results and make the algorithm parallel and practical.
According to the above steps, we execute the edge label propagation on the bipartite network shown in Figure 1, and the process is shown in Table 2.
In the initial iteration (iteration zero), the labels are identifiers of nodes. Finally we can obtain two communities: { 1 , 2 } and { 2 , 3 , 4 }, and two communities: { 1 , 2 , 3 , 5 } and { 2 , 4 , 6 , 3 }. Node 2 is the overlap section in communities, and both forms of its community membership are 0.5. Nodes 2 and 3 are the overlap section in communities, and both forms of their community membership are also 0.5. Furthermore, community identifiers are 1 and 4, respectively, which are initial labels reserved at last. Nodes 1 and 4 have higher degree and could make stronger influence on others so they become the community core and the initial label from them was reserved. On the contrary, nodes 2 , 2 , and 3 are all connecting the heterogeneous nodes with high degree, so they are receiving comparative attractions from two communities and become community border.

Algorithm Expansion.
Radicchi et al. [23] proposed the comparative definition of community dividing community into strong community and weak community. The strong community focuses on each node in it, while the weak one focuses on the whole community. On the other hand, the definition is still based on link density, namely, that links are dense in communities and are sparse among communities. 6 The Scientific World Journal   In bipartite networks, link pattern is more appropriate, because no links exist in and among homogeneous communities and meaningful bipartite community only contains homogeneous nodes. Because the correlation measure in upper section is calculated indirectly according to the network topology, which is equivalent to be obtained based on some kind of link pattern, it will be effective to divide community by our correlation definition. The hierarchical clustering algorithm [21] deals with edges in the whole network layer-by-layer and then gets different-scale communities by cutting the dendrogram. Communities on different levels of the dendrogram constitute the community hierarchy. The closer to the top level of the dendrogramis, the larger community will be obtained. However, this hierarchy is exactly equivalent to the different period during the merging and disintegrating communities; the optimal value will appear on a certain level of the dendrogram under the rule of cutting to meet biggest modular. So we take example by the definition of strong and weak community and introduce a parameter to control the label propagation process so that we can get a community of different scale.
That the given edge completes its label updating is equivalent to saying that the edge has joined into a link community with its new label. And this change will make an effect on the original link community, because the correlation between adjacent edges is bidirectional. For example, the whole correlation in the link community will be weakened, if the correlations between original edges inside and the given edge are very weak. This is similar to the access permission of some organizations in real life, such as some people who will be rejected to join in. Therefore, we modify formula (9) as ( ) = arg max Here, parameter denotes a factor of influence of how many members in the community will accept others out of the community. When = 0, it is just considering correlations under the view of the given edge itself. When = 1, it goes to the other extreme, namely considering correlations under the view of adjacent edges only. We can get differentscale communities by adjusting value of and Table 3 shows a simple example. From the table, we can see that some smaller communities are recognized when the parameter grows, which will be helpful to find out nested structures.

Recommend Algorithm Based on Bipartite Community.
We utilize BELPA algorithm to obtain the user and resource community and then forecast the value of resources which are not chosen by target users according to the community membership and corresponding relationship between communities to realize collaborative recommendation.
The Scientific World Journal 7 3.3.1. Related Concepts. Firstly, we take user and resource community as users' and resources' nearest neighbourhood, respectively, and call those community members as users' and resources' community neighbors, respectively. For a given user and a given resource , the formal definitions of their community neighbors are Γ ( ) = {V | V ∈ ( )} and Γ ( ) = { | ∈ ( )}, where ( ) and ( ) represent the community to which user and resource are belonging.
Secondly, we call those heterogeneous communities with same community label as corresponding community; that is, for any node V ∈ ( ), if it belongs to the community ( ) , its corresponding community is − ( ) . In particular, we define as the corresponding community for user and resource . Thus it can be seen that the membership of node in community has two meanings: one is the participative extent of user in community ( ) and the other is the extent of how important community − ( ) is to user . So, we take the community memberships as: (1) a weighting coefficient which is used to calculate correlations between a given user or resource and their community neighbors; (2) an initial score that a given user gives to his selected resource.
Finally, we use cosine theorem to calculate the similarity based on the community membership. The formal definition is as follows.
Definition 9. The similarity based on community membership of given node , V ∈ ∪ , V ∈ is where .mem ( ) and V.mem ( ) represent membership of nodes and V in community , respectively. Combining with the above definition, we use larger value strategy to modify the correlation measure between target object and its community neighbor, and weighting by its community membership. So, the correlation between given object and its community neighbor is defined as follows

Algorithm Design.
We maintain a recommended list for a target user ; the element in the list consists of the resource identifier and the score that user may rate in the resource. The resource with the higher score will be prior to be recommended to users. The recommended list is empty initially.
For a target user , the steps of user-community-based collaborative recommend (UCBCR) algorithm is as follows: (1) determining the user community neighbourhood Γ ( ) for ; (2) for ∀V ∈ Γ ( ), adding the resources which have been chosen by V but not been selected by to , and accumulating their scores brought from V. The score of resource brought from user V is defined as where V.
( V ) denotes the initial score of resource rated by user V; (3) sorting resources in the according to their scores.
Similarly, the steps of resource-community-based collaborative recommend (RCBCR) algorithm is as follows: (1) for ∀ ∈ ( ), determining the resource community neighborhood Γ ( ) for ; (2) adding resources in Γ ( ) which have not been selected by to and accumulating their scores brought from community neighbor . The score of resource brought from resource is defined as where . ( ) denotes the initial score of resource rated by ; (3) sorting resources in the according to their scores.

Experiments of Community Division Algorithm.
Standard data set. We used Southern Women data set to verify the validity of BELPA algorithm in this section. This data set describes the participation of 18 women in 14 social events. Many social scientists have divided 18 women into two groups: woman from 1 to 9 and woman from 10 to 18. Some other social scientists think that woman 9 belongs to both groups. Generally, the real women community partition of this data set is expressed by {1 ∼ 9} and {10 to 18}. Table 4 shows different results of related algorithms. We can see that the algorithm results of Guimerà et al. [13] are the optimal compared with the real partition. The algorithm results of Barber [14] misclassify woman 8, and algorithm results of Murata [15] and Suzuki and Wakita [16] contain many isolated small communities, especially Suzuki's. These differences are due to the format of bipartite modularity, especially that Murata and Suzuki both design modularity to find communities with many-to-many relationships. It also 8 The Scientific World Journal  can be speculation that the origin of these differences is the different positions of nodes in bipartite network. Therefore, we deem that the reasonable result contains two parts: the foundation partition which consists of two communities {1 ∼ 9} and {10 ∼ 18} and other small communities which are overlaps among communities, such as {8}, {9}, and {16}. What is more, members in the overlaps should be more affiliated to its foundation partition. For instance, communities {8}, {9} should be more affiliated to the community {1 ∼ 9} and {16} should be more affiliated to the community {10 ∼ 18}. This reasonable result will be more credible and has practical significance in the real world. Table 5 shows the result of BELPA algorithm. When is ranging from 0 to 0.4, woman 16 is the overlap in women communities and its membership of community {10 ∼ 18} is 0.5. When reaches 0.5, we can get the same result with the real partition. When is ranging from 0.6 to 1, woman 8 is the overlap and its membership of community {1 ∼ 9} is 2/3. When is ranging from 0.8 to 1, woman 9 is the overlap and its membership community of {1 ∼ 9} is 3/4.
We can also see that the final community label is 1 and 13, because the two women 1 and 13 have high frequency to participate in social events and they become the core of communities. Then, women 16, 8, and 9 nodes in overlaps all have lower frequentness of participating in social events, 2, 3, and 4, respectively, and they all have taken part in two social events, 8 and 9, in which many women have participated. So they are pulled by two communities and become community border.
The above experiments show that BELPA could obtain reasonable results consistent with the real partition under different parameter values. What is more, BELPA could identify the cores and borders of communities which are representatives of communities and bridges connecting different communities, respectively. This will play an important role in the practical applications.
Only meaningful communities in the real world can be further used of to achieve collaborative recommendation. Therefore, in this section we use MovieLens data set to verify the validity of BELPA algorithm. In order to test the recommendation algorithms afterwards, we extract some data in a random time slot from the original data set and divide it into two parts on the basis of time sequence; the training set contains 80% of it and the test set contains 20% of it.
The data set in this experiment contains 113 user nodes and 1024 resource nodes. The average degree of user nodes is 70 and the average degree of resource nodes is 7.8. If we choose resource nodes as the starting set, we can finally obtain the result shown in Figure 2. We can get the following conclusions.
(1) Basic community structure. With the growth of parameter , the data set was divided into three basic communities and the number of communities increased slightly along with the appearance of some small communities. Some community identifiers changed, which showed that internal structure of community including its core and border was changing. The 181 and 335 community are two rather stable communities among them. The 181 resource has high degree, so it becomes the core of community and has great influence on other nodes. This kind of resource often becomes the main focus in the real world. On the other hand, the degree of 335 resource is 2 and it connects 130 user whose degree is 1, which results in the edge between them having no adjacent edges and becoming an isolated community. In addition, some nodes with medium degree become the core of communities alternately, such as 204, 56, 79, and 185. (2) Nested community structure. With the growth of parameter , some small communities are separated, such as 816, 1213, and 619. Because the degrees of these resource nodes are all 2 and they are connected to two user nodes with higher degree, which makes them be pulled by the two link communities having comparative attraction at the same time, those resource nodes will be finally separated as special bordered structure of community. In other words, these small communities are not the isolated structures but the nested structures, which is meaningful in practical applications. It is like that there always exist smaller groups with closer relationships in a large group. the overlapping degree of user community is bigger than the one of resource community, because the average degree of user node is bigger, namely, that user nodes ending up with more edges will be more likely to belong to different communities.
Starting from user nodes, we can finally obtain the results shown in Figure 3. Comparing results in Figures 2 and 3, we can get the following conclusions.
(1) There are slight differences in both the number and size of communities between basic partitions of them. And there is also a certain correspondence between them. For example, 130 community is separated because it is connected to 335 resource. (2) The former user communities are more overlapped than the latter ones, while the former resource communities are less overlapped than the latter ones.
In the first iteration, nodes in the staring set can gain only one initial community label, while nodes in the receiving set can get more than one label through edges of different labels. Finally the former user communities with user nodes as receivers are more overlapped than the latter ones with user nodes as senders and so does the situation of rescores nodes.

10
The Scientific World Journal (3) The former nested community structures are slightly more than the latter ones with the growth of the parameter value, because the scale of resources in this experimental data set is larger than the scale of users, which makes the former number of initial labels slightly more bigger and nested community be easier to separate.
Above all, BELPA algorithm can get bipartite communities in the real data set. What's more, it can identify cores borders and of communities and some nested structures, which will play an important role in collaborative recommendation systems. For instance, we can use community cores to ease cold start-up problem or use community borders and nested structures to improve the recommendation diversity. Moreover, by comparing the results of different initial label distribution strategy, we found that the results of BELPA algorithm are relatively stable. But specific initial label distribution strategy and data structure will both affect the division results indeed.

Evaluating Measures.
Measures of collaborative recommendation contain accuracy and individualization. The former is the degree of correspondence between recommend results and users' preferences, and the latter is the difference degree between recommend results of different users.
We use rank accuracy and hitting rate to measure the accuracy. Rank accuracy is the mean of ranking score, which is defined as where is a resource in the testing set, is the number of resources which is not chosen by a certain user in the training set, and is the position of resource in the recommendation list. Smaller the value is, higher the chosen resource is likely to rank in the list of recommendation, in brief, more accurate of algorithm. In fact, users only concern resources at the front of recommend lists, so we use hitting rate to measure the percentage that the number of resources chose by the target user to a certain list length with certain length list. The hitting rate is defined as where is length of recommend list and is the number of resources that appear in both the testing set and the recommendation list. The higher the hitting rate is, higher the algorithm accuracy is.
We use popularity and diversity to measure the individualization degree of algorithm. The popularity is measured by average degree. In the real world, if the recommended results contain many popular resources which are chosen by many users, the accuracy could be guaranteed, while the individualization perhaps could be weakened, because the popular resource may not meet the individual needs of users. Therefore, the smaller the average degree is, the more personalized the recommendation results are.
Hamming distance can measure difference degree between recommend lists. It is defined as where is length of the recommendation list and is the number of common resources between recommend list of user and . The diversity is just the average of the hamming distance on all recommended results, and the greater the average hamming distance is value, the greater the diversity is.

Numerical Results.
In this section we used the above measures to estimate our collaborative recommend algorithm based on communities in Figures 2 and 3. The results of UCBCR and RCBCR are shown in Figures 4 and 5, respectively.
Looking at the overall trend of different indexes in the figures, we can get the following conclusions.
(1) Each value of different measures under different parameter values presented a gentle change, which verified that the basic partition changed both on size and number of communities as we have mentioned before.
(2) The variation tend of these measure values keeps basic consistent with the one of both the overlapping degree of community structure and separation degree of nested structure in Figures 4 and 5. This shows that the greater the overlapping degree is or the more the nested structures are, the better the recommend effect is.
Different initial label assignment strategy results in different community partition. Therefore, observing results of illustrations and in Figures 4 and 5, we can get the following conclusions.
(1) As a whole, the effects of UCBCR and RCBCR algorithm based on communities obtained by BELPA starting from user nodes are superior to the ones based on communities obtained by BELPA starting from resource nodes.
(2) When the length of list is separately 10, 50, and 100, the hitting rate of RCBCR algorithm based on communities obtained by BELPA starting from resource nodes is higher than the one based on communities obtained by BELPA starting from user nodes. However, the diversity and popularity index is still slightly optimal in RCBCR algorithm based on communities obtained by BELPA starting from resource nodes.
As mentioned before, both user and resource communities obtained by BELPA starting from resource nodes are more meticulous, but the overlapping degree of resources communities is slightly lower than those obtained by BELPA starting from user nodes. Therefore, the above phenomenon can also explain that, the higher overlapping degree and the more apparent nested structure are helpful to improve recommend accuracy on the whole and guarantee individuation of algorithm at the same time.
In addition, there is an obvious inflection point on the curve of the illustration in Figures 4 and 5 when parameter reaches 1, and each index value has a significant improvement. From Figure 5, we can find that, at this time, overlapping degrees of user communities and resources communities and the number of nested structures were obviously increased. This phenomenon again proves that the high overlap degree and apparent nested structure could improve the recommend effects on the whole.
The above analysis shows the relationship between effects of collaborative recommend algorithms and community characters, including the overlapping degree and the separation degree of nested structures. The reasons are mainly the following two points.
(1) Because our collaborative recommend algorithms adopt the similarity based on the community membership, the higher the overlapping degree of communities is, the more abundant the information of nodes' community membership is. And we can depict the scale of neatest neighborhood and the correlations among the neighbors much more accurately.
(2) The separation of nested structures comes down to find out those nodes as the community borders, which are bridges between different communities. They can expand the scope of the nearest neighborhoods by introducing other possible related objects, which could ensure both algorithms accuracy and recommend diversity, especially the latter.
Finally, we compared metrics of our collaborative recommend algorithms ( UCBCR and RCBCR) with those of algorithms (RCNCR and UCNCR) as benchmark algorithms in [8]. The results are shown in Figure 6. Analyzing the above results, we can get the following conclusions.
(1) Compared with benchmark algorithms, each measure of UCBCR and RCBCR algorithms improved. Our algorithms ensured the algorithm accuracy and showed an obvious advantage in the recommend diversity individuation. It also proved that those user and resource communities could effectively represent the nearest neighborhood, which could verify the validity of BELPA algorithm at the same time. On the other hand, the community neighbors could break limits from cross-linked structure, which played an important role to raise the novelty of collaborative recommendations.
(2) Comparing the results of different algorithms under different community divisions, the improvements of the algorithms UCBCR and RCBCR are more apparent than the ones of the algorithms UCNCR (U) and RCBCR (U), which we have mentioned before.
(3) Comparing the results of different measures, on the algorithm accuracy, the improvement of the algorithm UCBCR is more apparent than the algorithm RCBCR, which verifies the importance of the community overlapping degree to improve recommend effects. On the recommend diversity, the improvement of algorithm RCBCR is very apparent, because the number of resources community is larger and the resources nodes in the community border can introduce new objects from other communities, so more community neighbors could become recommended objects. Another possibility is that if the overlapping degree is too high, it may reduce the recommend diversity.

Conclusion
In order to use local characters of the topology structure of collaborative recommend systems, we put forward a bipartite The Scientific World Journal link community division algorithm based on the label propagation (BELPA). We redefined the structure of adjacent edges and the edge correlation measure by making full use of the properties of endpoints on the edge. Then we gave a label to each edge and synchronously updated labels according to edge correlations until steady state was reached. Those edges with the same label comprise a community. Taking example by the idea of defining strength and weak community, we expanded the basic algorithm by adjusting the label updating function to make the scale of community variable. Finally, we designed numerical experiments on relevant data sets to verify the algorithm validity. We proposed a collaborative recommendation algorithm based on the bipartite community obtained by BELPA. In detail, we used the overlaps and corresponding relationship of the user resource communities to realize the dynamic nearest neighbourhood. At last, by the numerical experiment and the analysis of experimental results, we prove that our recommend algorithms could effectively improve the recommended accuracy and individuation.