- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents

Journal of Applied Mathematics

Volume 2013 (2013), Article ID 248084, 8 pages

http://dx.doi.org/10.1155/2013/248084

## Multiangle Social Network Recommendation Algorithms and Similarity Network Evaluation

^{1}Department of Biostatistics and Computational Biology, University of Rochester, Rochester, NY 14642, USA^{2}Faculty of Engineering and Environment, Northumbria University, Newcastle upon Tyne, NE1 8ST, UK

Received 14 June 2013; Accepted 22 June 2013

Academic Editor: Dexing Kong

Copyright © 2013 Jinyu Hu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

Multiangle social network recommendation algorithms (MSN) and a new assessment method, called similarity network evaluation (SNE), are both proposed. From the viewpoint of six dimensions, the MSN are classified into six algorithms, including user-based algorithm from resource point (UBR), user-based algorithm from tag point (UBT), resource-based algorithm from tag point (RBT), resource-based algorithm from user point (RBU), tag-based algorithm from resource point (TBR), and tag-based algorithm from user point (TBU). Compared with the traditional recall/precision (RP) method, the SNE is more simple, effective, and visualized. The simulation results show that TBR and UBR are the best algorithms, RBU and TBU are the worst ones, and UBT and RBT are in the medium levels.

#### 1. Introduction

In recent years social tagging systems have become increasingly popular as a means to classify large sets of resources on the web. These systems allow users to add metadata in the form of keywords to share resources [1]. Nevertheless, the rapidly growing data in these systems present new technical challenges involved with recommended resources. Collaborative filtering [2] approach provides a solution to overcome this challenge, which makes recommendations solely base on the preferred database. The Top-N recommendation method [3] tries to recommend the top-n ranked resources that users may be interested in.

Computation of the similarity plays a key role in the collaborative filtering, and there are many different ways to compute the similarities such as the Pearson correlation [4], constrained Pearson correlation [5], cosine-based similarity [6], adjusted cosine similarity [7], and Spearman rank correlation [8]. Currently, the user-based collaborative filtering algorithm mainly considers user similarity from the resource perspective [9]. Some papers did not discuss the resource similarity from the user perspective [10]. Mostly, the tag-based recommendation only takes into account the tag similarity based on the resource tag [11]. Some papers also comprehensively consider the user similarity and resource similarity but do not consider the tag similarity [12]. Based on the pursuit of a recommendation system, the assessment indicators are employed to evaluate an algorithm, for instance, recall/precision, mean absolute error (MAE), mean average precision (MAP), and area under curve (AUC) [13]. For recommended results, there are some auxiliary assessment indicators [14], such as coverage (COV), diversity (DIV), and average popularity (AP).

In this paper, the concepts of the 1-mode network and 2-mode network in social network [15] are addressed for collaborative filtering. For movies, this paper gives recommended explanations of the six algorithms as follows: UBR: “Users who watched your favorite movies also watch…” UBT: “Users who used your favorite tags also watch …” RBU: “Users who watch this movie also watch …” RBT: “Tags which annotate this movie also annotate …” TBR: “Other Tags of this movie also annotate …” TBU: “Other Tags which you used also annotate …”

On the basis of the similarity network evaluation (SNE), and comparison with the recall/precision, it is indicated that the results from the two assessment methods are consistent, but the SNE is more simple, visualized, and effective with less steps.

#### 2. Multiangle Social Network Recommendation Algorithm (MSN)

##### 2.1. Pretreatment of Social Network

The triple () represents the raw data, which means the user is given the tag on the resource . From this triple, one can deduce three 2-mode networks such as , , and . Each 2-mode network can deduce two 1-mode networks. For instance, can infer two 1-mode networks and ; infers 1-mode networks and ; and infers 1-mode networks and (see Figure 1). In the present paper, the symbol of denotes the transpose of .

The matrix shows the membership of each pair of users who like the common resources, described by . The matrix represents the membership of each pair of resources which have the common users, described by . The matrix is the membership of each pair of resources which have the same tags, described by . The matrix indicates the membership of each pair of tags which have the common resources, with . The matrix means the membership of each pair of users who annotate the common tags, with . The matrix shows the membership of each pair of tags which have the common users, with .

##### 2.2. User-Based Social Network Algorithm (USN)

There are two steps of the USN algorithm: firstly to find other users who are similar to the target user and then recommend the other users’ favorite resources to the target user. The algorithm can be divided into the two algorithms UBR and UBT.

(1)* User-Based Algorithm from Resource Perspective (User-Based Resources, UBR)*. The user similarity from resource (USR) perspective means that if two users like the same resources, they are similar. The element of the USR, denoted by is defined as:
Based on the above similarity, the user-resource interest matrix UBR is described by:

(2)* User-Based Algorithm from Tag Perspective (User-Based Tag, UBT)*. The user similarity from tag (UST) perspective indicates two users are similar if they prefer to use the same tags. The element of the UST, denoted by is computed by
Based on the similarity, the interest matrix UBT is defined as:

##### 2.3. Resource-Based Social Network Algorithm (RSN)

The RSN algorithm also has two steps: firstly to find out the resources that the target user likes and then recommend other similar ones to the user. It is divided into two algorithms: RBU and RBT.

(1) *Resource-Based Algorithm from User Perspective (Resources-Based User, RBU).* The resource similarity from user (RSU) perspective means that if two resources are enjoyed by the same user, they are similar, where is defined by
The interest matrix RBU is written as

(2) *Resource-Based Algorithm from Tag Perspective (Resources-Based Tag, RBT).* The resource similarity from tag (RST) perspective implies that if two resources are enjoyed by the same user, they are similar. The element of the RST is defined as
The interest matrix RBT is described by

##### 2.4. Tag-Based Social Network Algorithm (TSN)

The TSN algorithm consists of three parts: the first step is to look for the frequently used tags of the target user, next to find other similar tags and merge both of them into a tag set, finally to recommend these tag-set corresponding resources to the target user.

(1) *Tag-Based Algorithm from Resource Perspective (Tag-Based Resources, TBR)*. The tag similarity from resource (TSR) perspective means that if two resources are enjoyed by the same user, they are similar. The element of the TSR is computed as
The tag similarity matrix TSR, which is viewed from the resources, show that if two tags annotate the same resources, they are similar. One can have

(2) *Tag-Based Algorithm from User Perspective (Tag-Based User, TBU).* The tag similarity from user perspective (TSU) implies that if two resources are enjoyed by the same user, they are similar. The element of the TSU is defined as
The interest matrix TBU can be written as:

#### 3. Similarity Network Evaluation (SNE)

##### 3.1. Basic Concepts

*Definition 1 (similarity network (SN)). *A connection matrix is used to store similarity network (SN), whose element is , defined by
where is the similarity between the nodes and and . When , there is no edge between nodes and ; is a threshold.

The definition of the similarity of the SN is actually borrowed from the definition of the gene community network (GCN) proposed by [16].

*Definition 2 (types of the network). *The similarity networks can be divided into six categories in terms of the intensity of similarities.(1)Perfect correlation network (PCN): when , remove the edges whose weights are lower than 1, and the weights of all edges are 1. (2)Very strong correlation network (VSN): when , delete the edges with the weights lower than 0.8. (3)Strong correlation network (SCN): when , remove the edges with the weights lower than 0.6 to form a new network. (4)Moderate correlation network (MCN): when , delete the edges whose weights are lower than 0.4 to form a similarity Network. (5)Weak correlation network (WCN): when , the values of all the edges are lower than 0.2 in the network.(6)Uncorrelated network (UCN): when , all nodes are isolated nodes.

##### 3.2. Algorithm Principle

The core of the collaborative filtering algorithm is to calculate the similarity. The SNE method can better evaluate the algorithm if under a certain threshold value there are fewer isolated nodes but more small communities in its similarity networks. It includes the following requirements.

(1)* A Certain Threshold Value.* Relative to the entire resource, these recommended resources are quite few. Therefore, when we evaluate an algorithm, the PCN network () only needs to be considered. However, in order to have a comprehensive analysis, the VSN network () and the SCN network () should be considered together.

(2) *Fewer Isolated Nodes.* Recommendation algorithm is based on the similarity. The isolated node is not similar to any other nodes. In this case, the algorithm can not give a recommendation about these isolated nodes. Therefore, a good algorithm may produce a similarity network with fewer isolated nodes and more nonisolated ones.

*More Communities.* Each community () represents a different interest of users. The more the communities, the more detailed features can they reflect, which makes the recommended results more in line with the user’s taste.

*Fewer Nodes in the Largest Community.* In the largest community, there are too many nodes to reflect the user’s taste in detail. The nodes in the largest community should be as few as possible.

Taking into account the previous points, and also considering these different networks with different number of nodes, the score of the similarity network evaluation (SNE) is described by where SS is the score function of similarity network, is the threshold, is the number of all nodes in the network, is the number of nonisolated nodes in the network, is the number of communities, and is the number of nodes in the largest community.

##### 3.3. Steps of SNE

The recall/precision rate of an algorithm has nine calculation steps (see Figure 2).

The SNE method only needs to calculate similarity matrices; thus one can directly evaluate the algorithms after constructing similarity networks. It is a simple method, which only has one intermediate step (see Figure 3).

#### 4. Results and Discussions

The dataset is “hetrec2011-movielens-2k” from HetRec 2011 [17], which is an extension of MovieLens 10M dataset, with 2113 users, 10197 movies, 13222 tags, and 855598 ratings. In this paper, we focus on the users, resources, and tags and ignore the ratings.

##### 4.1. Visual Analysis of the SNE

Visual similarity network analysis can be more intuitive to roughly evaluate various kinds of recommendation algorithms. We use the Pajek [18] to show the six PCN networks. To see more clearly, we just intercept 1/16 of the original screen in the upper-left corner (see Figure 4).

In the SNE evaluation, an algorithm with more small communities is better than the one with more large communities. In Figure 4, we can see the following:(1)The UST’s big communities are more obvious than the USR’s; therefore, UBR is better than UBT, denoted by UBR > UBT.(2)The RSU has more big communities than the RST; thus RBT > RBU, indicating RBT is better than RBU. (3)There are very big communities in TSU. Conversely, TSR has fewer ones. Therefore, TBR > TBU, meaning TBR is better than TBU.(4)Obviously, the TSU and RSU have the largest communities; thus the algorithms TBU and RBU are relatively poor.(5)In the same way, the better algorithms are UBR and TBR, and the medium ones are UBT and RBT.

##### 4.2. Quantitative Analysis of SNE

Based on score function of SNE, the scores of different algorithms under the threshold values of 1, 0.8, and 0.6 are, respectively, displayed in Tables 1–3.

According to the similarity scores shown by Tables 1 and 2, one can give the order of the algorithms from best to worst as follows: TBR > UBR > UBT > RBT > RBU > TBU. And from Table 3, in order of the best algorithm, it goes as follows: TBR > UBR > UBT > RBT > TBU > RBU. Overall, RBU and TBU are the worst algorithms.

##### 4.3. Comparison with Recall/Precision

The recall/precision rates can evaluate the accuracy of algorithms. Based on the training set, we recommend the top-N resources to users by using the six algorithms. Corresponding to the test set, one can obtain the Recall/Precision rates under different values, respectively (see Tables 4 and 5).

The Recall and Precision rates of different algorithms and different values are shown in Figure 5.

The comparative analysis of two evaluation indicators is given in Table 6.

From the comparison, one can see that the results of two evaluation algorithms are very agreeable, where the same results are UBR > UBT, RBT > RBU, and TBR > TBU. The similarity network visualization method can roughly evaluate algorithms. From the perspective of the complexity and visualization, the similarity network assessment algorithm is in an advantageous position.

#### 5. Conclusion and Future Work

In the paper, not only the collaborative filtering algorithms are proposed based on social network, but also a new assessment method of similarity network evaluation is addressed. For these six algorithms, TBR and UBR are the best algorithms, RBU and TBU are the worst ones, and UBT and RBT are in the medium levels. From the recommended effects, we can conclude that UBR > UBT, RBT > RBU, and TBR > TBU. It is noted that, in the actual use of algorithms, the accuracy of the algorithm is not the unique factor to be considered; the complexity of the algorithm and the maintenance cost of the algorithm have to be taken into account as well.

Future work is encouraged for the three aspects: recommended algorithm based on the current similarity calculation method is of interest; hybrid algorithms based on two recommendation algorithms are of significance; the SNE assessment would be extended to evaluate other algorithms rather than the collaborative recommended algorithms.

#### References

- A. K. Milicevic, A. Nanopoulos, and M. Ivanovic, “Social tagging in recommender systems: a survey of the state-of-the-art and possible extensions,”
*Artificial Intelligence Review*, vol. 33, no. 3, pp. 187–209, 2010. View at Publisher · View at Google Scholar · View at Scopus - A. K. Menon, K. Chitrapura, S. Garg, D. Agarwal, and N. Kota, “Response prediction using collaborative filtering with hierarchies and side-information,” in
*Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '11)*, pp. 141–149, San Diego, Calif, USA, August 2011. View at Publisher · View at Google Scholar · View at Scopus - X. Ning and G. Karypis, “SLIM: sparse linear methods for top-n recommender systems,” in
*Proceedings of the 11th IEEE International Conference on Data Mining (ICDM '11)*, pp. 497–506, Vancouver, Canada, December 2011. View at Publisher · View at Google Scholar · View at Scopus - J. Bobadilla, F. Serradilla, and A. Hernando, “Collaborative filtering adapted to recommender systems of e-learning,”
*Knowledge-Based Systems*, vol. 22, no. 4, pp. 261–265, 2009. View at Publisher · View at Google Scholar · View at Scopus - G. Chen, F. Wang, and C. Zhang, “Collaborative filtering using orthogonal nonnegative matrix tri-factorization,”
*Information Processing and Management*, vol. 45, no. 3, pp. 368–379, 2009. View at Publisher · View at Google Scholar · View at Scopus - L. Candillier, F. Meyer, and M. Boullé, “Comparing state-of-the-art collaborative filtering systems,” in
*Proceedings of the International Conference on Machine Learning and Data Mining*, pp. 548–562, Leipzig, Germany, July 2007. - K. Choi and Y. Suh, “A new similarity function for selecting neighbors for each target item in collaborative filtering,”
*Knowledge-Based Systems*, vol. 37, no. 1, pp. 146–153, 2013. View at Google Scholar - D. Helic, “Managing collaborative learning processes in e-learning applications,” in
*Proceedings of the 29th IEEE International Conference on Information Technology Interfaces*, pp. 345–350, Dubrovnik, Croatia, June 2007. View at Publisher · View at Google Scholar · View at Scopus - C. Cechinela, M. Siciliab, and S. Sánchez-Alonsob, “Evaluating collaborative filtering recommendations inside large learning object repositories,”
*Information Processing and Management*, vol. 49, no. 1, pp. 34–50, 2013. View at Google Scholar - A. Rajput, M. Dubey, S. Thakur, and M. Gondgly, “Improved item based collaboration filtering using recommendation system,”
*Binary Journal of Data Mining and Networking*, vol. 1, no. 1, pp. 6–13, 2011. View at Google Scholar - R. Jäschke, A. Hotho, F. Mitzlaff, and G. Stumme, “Challenges in tag recommendations for collaborative tagging systems: recommender systems for the social web,”
*Intelligent Systems Reference Library*, vol. 32, pp. 65–87, 2012. View at Google Scholar - D. Zhang and C. Xu, “A collaborative filtering recommendation system by unifying user similarity and item similarity,” in
*Web-Age Information Management*, vol. 7142 of*Lecture Notes in Computer Science*, pp. 175–184, Springer, Berlin, Germany, 2012. View at Google Scholar - Y. Shi, M. Larson, and A. Hanjalic, “Mining contextual movie similarity with matrix factorization for context-aware recommendation,”
*ACM Transactions on Intelligent Systems and Technology*, vol. 4, no. 1, article 16, 2013. View at Google Scholar - L. Lü, M. Medob, C. Yeungb, Y. Zhang, Z. Zhang, and T. Zhou, “Recommender systems,”
*Physics Report*, vol. 519, no. 1, pp. 1–49, 2012. View at Google Scholar - A. Mislove, B. Viswanath, K. P. Gummadi, and P. Druschel, “You are who you know: inferring user profiles in online social networks,” in
*Proceedings of the ACM 3rd International Conference on Web Search and Data Mining (WSDM '10)*, pp. 251–260, New York, NY, USA, February 2010. View at Publisher · View at Google Scholar · View at Scopus - J. Hu and Z. Gao, “Modules identification in gene positive networks of hepatocellular carcinoma using Pearson agglomerative method and Pearson cohesion coupling modularity,”
*Journal of Applied Mathematics*, vol. 2012, Article ID 248658, 21 pages, 2012. View at Publisher · View at Google Scholar - I. Cantador, P. Brusilovsky, and T. Kuflik, “Second Workshop on Information Heterogeneity and Fusion in Recommender Systems,” in
*Proceedings of the 5th ACM conference on Recommender Systems (RecSys '11)*, pp. 387–388, Chicago, Ill, USA, October 2011. View at Publisher · View at Google Scholar · View at Scopus - W. Nooy, A. Mrva, and V. Batagelj,
*Exploratory Social Network Analysis with Pajek*, Cambridge University Press, Cambridge, UK, 2005.