rocchio algorithm to enhance semantically collaborative
TRANSCRIPT
![Page 1: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/1.jpg)
HAL Id: hal-01255469https://hal.archives-ouvertes.fr/hal-01255469
Submitted on 13 Jan 2016
HAL is a multi-disciplinary open accessarchive for the deposit and dissemination of sci-entific research documents, whether they are pub-lished or not. The documents may come fromteaching and research institutions in France orabroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, estdestinée au dépôt et à la diffusion de documentsscientifiques de niveau recherche, publiés ou non,émanant des établissements d’enseignement et derecherche français ou étrangers, des laboratoirespublics ou privés.
Rocchio Algorithm to Enhance SemanticallyCollaborative Filtering
Sonia Ben Ticha, Azim Roussanaly, Anne Boyer, Khaled Bsaies
To cite this version:Sonia Ben Ticha, Azim Roussanaly, Anne Boyer, Khaled Bsaies. Rocchio Algorithm to Enhance Se-mantically Collaborative Filtering. Valérie Monfort, Karl-Heinz Krempels. Lecture Notes in BusinessInformation Processing, 226, Springer International Publishing, pp.295-311, 2015, �10.1007/978-3-319-27030-2_19�. �hal-01255469�
![Page 2: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/2.jpg)
Rocchio Algorithm to Enhance Semantically CollaborativeFiltering
Sonia Ben Ticha1,2, Azim Roussanaly1, Anne Boyer1 and Khaled Bsaıes21 LORIA-KIWI Team, Lorraine University, Nancy, France
2LIPA Lab, Tunis El Manar University, Tunis, Tunisia{sonia.benticha, azim.roussanaly, anne.boyer}@loria.fr, [email protected]
Keywords:Hybrid Recommender System, Latent Semantic Analysis, Rocchio Algorithm.
Abstract:Recommender system provides relevant items to users from huge catalogue. Collaborative filter-ing and content-based filtering are the most widely used techniques in personalized recommendersystems. Collaborative filtering uses only the user-ratings data to make predictions, while content-based filtering relies on semantic information of items for recommendation. Hybrid recommenda-tion system combines the two techniques. In this paper, we present another hybridization approach:User Semantic Collaborative Filtering. The aim of our approach is to predict users preferencesfor items based on their inferred preferences for semantic information of items. In this aim, wedesign a new user semantic model to describe the user preferences by using Rocchio algorithm.Due to the high dimension of item content, we apply a latent semantic analysis to reduce thedimension of data. User semantic model is then used in a user-based collaborative filtering tocompute prediction ratings and to provide recommendations. Applying our approach to real dataset, the MoviesLens 1M data set, significant improvement can be noticed compared to usage onlyapproach, content based only approach.
1 INTRODUCTION
Thanks to computers and computer networks, oursociety is undergoing rapid transformation in al-most all aspects. We buy online, read news on-line, listen music online, gather information bysearch engines and live a significant part of oursocial life on the Internet. However, the ongo-ing rapid expansion of the Internet, requires tohelp user to access to items that may interesther or him. Recommender Systems (RS) pro-vide relevant items to users from a large numberof choices. Several recommendations techniquesexist in the literature. Among these techniques,there are those that provide personalized recom-mendations by defining a profile for each user. Inthis work, we are interested in personalized rec-ommender systems where the user model is basedon an analysis of usage. This model is usuallydescribed by a user-item ratings matrix, which isextremely sparse (≥ 90% of missing data).
Collaborative Filtering (CF) and Content-
Based (CB) filtering are the most widely usedtechniques in RS. In CF, user will be recom-mended items that people with similar tastes andpreferences liked in the past (Schafer et al., 2007).CB filtering assumes that each user operates in-dependently and user will be recommended itemssimilar to the ones he preferred in the past (Paz-zani and Billsus, 2007). The major differencebetween CF and CB recommender systems isthat CF relies only on the user-item ratings datato make predictions and recommendations, whileCB relies on item content (semantic information)for recommendations. Hybrid approach (Burke,2007) is another important technique, which com-bine collaborative and content-based methods toprovide recommendations.
In this paper, we present a new approach:User Semantic Collaborative Filtering (USCF),that takes into account the semantic informationof items to enhance collaborative recommen-dations. User Semantic Collaborative Filtering(USCF) consists of two components as shownin Figure1: the first builds a new user model, the
![Page 3: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/3.jpg)
Data from Item
content (textual
information)
Data from usage
analysis (user
ratings)
Building User Semantic
Model
Computing predictions
and Recommendations
User Semantic
Model
Relevant items
Active user
Figure 1: User Semantic Collaborative Filtering (USCF) Architecture.
User Semantic Model, by inferring user preferencesfor item content; the second computes predictionsand provides recommendations by using the UserSemantic Model in a user-based collaborative fil-tering algorithm (Resnick et al., 1994) to calculatethe similarity between users. The originality ofthis work is in the building of the User SemanticModel. Indeed, assuming that items are repre-sented by structured data in which each item isdescribed by a same set of attributes, we build aUser Semantic Attribute Model for each relevantattribute. With this aim, we define two classes ofattributes: dependent and non dependent and wepropose a suited algorithm for each class. UserSemantic Model is then deducted from the horizontalconcatenation of all User Semantic Attribute Model.In previous works (Ben Ticha et al., 2012; Ben Tichaet al., 2011) we have presented solutions based onmachine learning algorithm to build a User SemanticAttribute Model for non dependent attribute.
In this work, we present a new approach forbuilding a user semantic attribute model for depen-dent attribute by using Rocchio algorithm (Rocchio,1971). Due to the high number of attribute values,and to reduce the expensiveness of user similaritycomputing, we apply a Latent Semantic Analysis(LSA) (Dumais, 2004) to reduce the size of the usersemantic attribute model. We compare our resultsto the standards user-based CF, item-based CF andContent Based algorithms. Our approach results inan overall improvement in prediction accuracy.
The rest of this paper is organized as follows:Section 2 summarizes the related work. Section 3presents the Latent Semantic Analysis (LSA) algo-rithm. The algorithm of building the User SemanticModel is described in Section 4. Section 5 describesour approach to build User Semantic Attribute Modelfor non dependent attribute. Section 6 describes therecommendation component of our system. Experi-mental results are presented and discussed in Section7. Finally, we conclude with a summary of our find-ings and some directions for future work.
2 RELATED WORK
Recommender Systems (RS) (Goldberg et al., 1992)have become an independent research area sincethe appearance of the first papers on collaborativefiltering in the mid-1990s (Resnick et al., 1994;Shardanand and Maes, 1995; Hill et al., 1995).Collaborative Filtering (CF) (Ekstrand et al., 2011)is the most widespread used technique in RS. Thefundamental assumption of CF is that if users Xand Y rate n items similarly and hence will rate oract on other items similarly (Su and Khoshgoftaar,2009). In CF, the user model is usually described bya user-item rating matrix (users in lines and items incolumns). Each value in the matrix is either a ratingassigned by the user to the corresponding item, or amissing value if no information is available about thecorresponding couple (user, item). Thus, CF systemstry to predict ratings of items for the active userbased only on the items previously rated by otherusers. BREESE et al. (Breese et al., 1998) haveidentified two classes of CF algorithms: Memory-based and Model-based algorithms. Memory-basedalgorithms use heuristic functions and the entire ofthe user-item ratings matrix to generate predictions.This allows them to be very reactive by integratingimmediately modifications of users profiles into thesystem. User-based CF, introduced by Resnicket al. (Resnick et al., 1994), and Item-based CF,introduced by SARWAR et al. (Sarwar et al., 2001),are the most prevalent memory-based algorithms.They are both based on the k-Nearest-Neighborsalgorithm. The first computes similarities betweenusers and the second computes similarities betweenitems. However, even if these methods work well withsmall-sized database, BREESE et al. (Breese et al.,1998) think that their scalability is problematic forbig databases with great number of items and/orusers. The model-based algorithms (Miyahara andPazzani, 2000; Sarwar et al., 2002; Xue et al., 2005)constitute an alternative to this problem. Thesealgorithms build descriptive models via a learningprocess. Thus, predictions are inferred from thesemodels.
Content Based filtering (CB) (Lops et al., 2011) is
![Page 4: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/4.jpg)
another important technique used in RS. Unlike CFrecommendation methods, CB recommender systemsrely on the content of items to provide personalizedrecommendations to active user. CB assumes thateach user operates independently and recommendsitems similar to the ones he or she preferred in thepast. Content-based systems focus on recommendingitems containing textual information, such as doc-uments, web page, news or item attributes. Thatis why, Content-based filtering has its roots in in-formation retrieval (Salton, 1989; Baeza-Yates andRibeiro-Neto, 1999) and information filtering (Belkinand Croft, 1992) research. Furthermore, in contentbased filtering, item profile is usually represented by aVector Space Model (VSM). Like collaborative filter-ing, there are two classes of CB algorithms : Memory-based and Model-based algorithms (Adomavicius andTuzhilin, 2005). In memory-based algorithms (Paz-zani and Billsus, 1997), various candidate items arecompared with items previously rated by the activeuser and the best matching item(s) are recommended.The similarities between items are computed usingheuristic formula like cosine measure. In model basetechniques (Mooney and Roy, 2000; Pazzani and Bill-sus, 2007), predictions are provided based on a modellearned from the underlying data using statisticallearning and machine learning techniques.
However, CF and CB filtering must face manychallenges (Adomavicius and Tuzhilin, 2005), like thedata sparsity problem due to missing data in user-item matrix; the scalability problem for large datasetswith the increasing numbers of users and items; thecold start problem when new user logs in, the sys-tem ignores his or her preferences. Furthermore, eachtechnique introduced its own shortcomings. In CFtechnique, if new item appears in the database, thereis no way to be recommended before it is rated, thisproblem is known also as Cold-start problem. Neigh-bor transitivity refers to a problem with sparse data,in which users with similar tastes may not be identi-fied as such if they have any items rated in common.CB filtering suffers a problem of over-specializationwhere a user is restricted to seeing items similar tothose already rated.
To overcome the disadvantages of both tech-niques and benefit from their strengths, several rec-ommender systems use a hybrid approach by combin-ing CF and CB techniques. The Fab System (Bala-banovic and Shoham, 1997) counts among the firsthybrid RS. Many systems have been developed since(Burke, 2007). Moreover, because of the huge numberof items and users, calculating the similarity betweenusers in CF algorithm becomes very expensive in timecomputing. Dimension reduction of data is one of thesolution to alleviate the expensiveness of users simi-larity computing (Sarwar et al., 2000). Mobasher etal. (Mobasher et al., 2004) combine values of all at-tributes and then apply a Latent Semantic Analysis(LSA) to reduce dimension of data. Sen et al. (Senet al., 2009) are inferring user preferences for only oneattribute, the item’ tags, without reducing dimension.Manzato (Manzato, 2012) computes a user semantic
model for only the movie genre attribute and appliesa Singular Value Decomposition (SVD) to reduce thedimension of data.
3 LATENT SEMANTICANALYSIS (LSA)
Latent Semantic Analysis (LSA) (Dumais, 2004) isa dimensionality reduction technique which is widelyused in information retrieval (Salton, 1989) and in-formation filtering (Belkin and Croft, 1992) research.Given a term-document frequency matrix Md,l (ddocuments and l terms), in witch each document isdescribed by a Vector Space Model (VSM), LSA isused to decompose it into two matrices of reduceddimensions and a diagonal matrix of singular values.Each dimension in the reduced space is a latent factorrepresenting groups of highly correlated index terms.
Singular Value Decomposition (SVD) is a wellknown technique used in LSA to perform matrix de-composition. SVD decomposes the term-documentfrequency matrix M into three matrices D, Σ and T :
M = Dd,r ∗ Σr,r ∗ T tr,l (1)
where D and T are two orthogonal matrices; r =min(d, l) is the rank of matrix M . Σ is a diagonalmatrix, where its diagonal entries contain all singularvalues of matrix M stored in decreasing order. Dand T matrices are the left and right singular vectors.LSA uses a truncated SVD, keeping only the k largestsingular values and their associated vectors, so
M ≈M′
= Dd,k ∗ Σk,k ∗ T tk,l (2)
M′
is the rank-k approximation of M . M′
is whatLSA uses for its semantic space. The rows in Dd,k arethe document vectors in LSA space and the rows inTl,k are the term vectors in LSA space. Each doc-ument in Dd,k is represented by a set of k latentvariables, instead of the original terms. Each termin Tl,k is represented by a set of k latent variablesinstead of the original document. This, results in amuch less sparse matrix. Furthermore, the generatedlatent variables represent groups of highly correlatedterms in the original data, thus potentially reducingthe amount of noise associated with the semantic in-formation.
4 USER SEMANTIC MODEL
In this paper, we are interested only to items de-scribed by structured data. According to the defini-tion of Pazzani et al. (Pazzani and Billsus, 2007), instructured representation, item can be represented bya small number of attributes, and there is a known setof values that each attribute may have. For instance,the attributes of a movie can be title, genre, actorand director. In the following, we will use the term
![Page 5: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/5.jpg)
feature to refer to an attribute value. For instance,Documentary, Musical and Thriller are features ofmovie genre attribute.
4.1 Dependent and NonDependent Attribute
In structured representation, each attribute has a setof restricted features. However, the number of fea-tures can be related or not to the number of items.That is why we have defined two classes of attributes:
• Dependent attribute: attribute, which havingvery variable number of features. This number isclosely related to the number of items. So, whenthe number of items is increasing, the number offeatures is increasing also. For example: directorsand actors of movies, keywords.
• Non dependent attribute: attribute, whichhaving a very few variable number of features,and this number is not related to the number ofitems. Thus, the increasing number of items hasno effect on the number of features. For example:movie genre, movie origin and cuisine of restau-rants.
In addition, all attributes do not have the samedegrees of importance to users. There are attributesmore relevant than others. For instance, the moviegenre can be more significant, in the evaluation crite-ria of user, than the origin. Experiments that we haveconducted (see Section 7.4) confirmed this hypothe-sis. In this paper, we assume that relevant attributeswill be provided by a human expert. Therefore, foreach relevant attribute A, we build a user semanticattribute model that predicts the users preferences forits features (or group of features). This model is de-scribed by a matrix QA (users in lines and features (orgroup of features) of A in columns). In our approach,we design a suited algorithm for building the user se-mantic attribute model for each class of attribute.
For non dependent attribute, due to the low num-ber of features, we have used a clustering algorithm.Section 4.2 briefly described the operating principleof our solutions that have been addressed in previousworks (Ben Ticha et al., 2012; Ben Ticha et al., 2011).
For dependent attribute, we have explored tech-niques issues from information retrieval (IR) research.In (Ben Ticha et al., 2013) we have presented an ap-proach based on user rating frequency. In this paperwe present an other approach based on Rocchio algo-rithm (Rocchio, 1971).
The user semantic model for all relevant at-tributes, described by the matrix Q, is the result ofthe horizontal concatenation of all user semantic at-tribute models QA as shown in algorithm 1.
4.2 User Semantic Model for NonDependent Attribute
Let us denote by S the set of items, U the set of users,s a given item ∈ S, u a given user ∈ U and a rating
Algorithm 1 Building User Semantic Model
Input: L: List of relevant attributes, users rat-ings, items content
Output: Q the User Semantic Matrix1: for A in L {This loop is fully
parallelizable} do2: build QA the User Semantic Attribute
Model of A3: end for4: for A in L do5: Q ← horizontal concatenation of (Q and
QA)6: end for
value r ∈ {1, 2, ..., 5} ≡ R. Us the set of users thatrating the item s, then we define the rating functionfor item s by δs : u ∈ Us 7−→ δs(u) ∈ R. We denotealso by FA the set of features of attribute A, f agiven feature ∈ FA and Sf the set of items associatedto feature f . For instance if we consider the moviegenre attribute, Saction is the set of all action movies.
An item s is represented by its usage profile vectorsup = (δs(u) − δu)(u=1..|U|), where δu is the averagerating of all rated items by user u. The idea is topartition all items described by their usage profile inK clusters, each cluster is labeled by a feature f ∈ FA
(or a set of features).The number K of clusters and the initial center of
each cluster is computed by the initialization step ofthe clustering algorithm. In initial step, each clusterCk consists of items in
⋃f labeling Ck
Sf and labeled
by the set of corresponding features; so its center isthe mean of its items described by their usage pro-file vector sup. Moreover, an attribute can be monovalued or multivalued depending on the number offeatures that can be associated to a given item s. Forexample, the attribute movie genre is multivalued be-cause a movie can have several genres while movieorigin is a mono valued attribute because a moviehas only one origin. Thus, if an attribute is multi-valued, s can belong to several clusters Ck, while formono valued attribute, an item should belong only toone cluster. Therefore, for multivalued attribute, theclustering algorithm should provide non disjointedclusters (a fuzzy clustering), whereas, for mono val-ued attribute, the clustering algorithm should providedisjointed clusters.
After running the clustering algorithm, we obtainK cluster centers; each center k is described by a vec-tor ck = (qk,u)(u=1..|U|). The K centers is modelingk latent variables issued from the features of the at-tribute A. Thus, the user semantic attribute model isdescribed by the matrix QA = (qu,k)(u=1..|U|, k=1..K).
With non dependent attribute, the number of as-sociated features is low, this is why the clustering issuitable. Moreover, the user semantic attribute modelallows an important reduction of dimension and so re-duce the expensiveness of user similarity computing.In (Ben Ticha et al., 2011), we have used the Fuzzy
![Page 6: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/6.jpg)
CMean Algorithm on the movie genre attribute, wehave obtained good performance because the user se-mantic attribute model has no missing values and allsimilarities between users were able to be computed.In (Ben Ticha et al., 2012), we have used the KMeanclustering algorithm on the movie origin attribute.Because of the missing values in the user item ratingmatrix, we have proposed an algorithm for the initial-ization step of the KMean clustering using a movieorigin ontology. We obtained good results comparedto user-based CF but not as good as results for thegenre attribute.
5 USER SEMANTIC MODELFOR DEPENDENTSATTRIBUTES
For a dependent attribute A, the set FA of its featurescan be important and it augments with the increasingof the set of items S. In this paper, we present oursolution to compute a user semantic attribute modelfor dependent attribute.
In addition to the formalism used in Section 4.2,we denote by FAs the set of features f ∈ FA asso-ciated to item s and by Su the set of items s ∈ Srated by user u. We define also, the rating functionof user u as δu : s ∈ Su 7→ δu(s) ∈ R; and the ItemFrequency Function of item s as freqs described informula 3.
∀s ∈ S, f ∈ FA, freqs(f) =
{1 if f ∈ FAs .0 otherwise.
(3)
The Frequency Item Matrix F =(freqs(f))s∈S and f∈FA is provided by comput-ing freqs(f) for all items and all features. Table 1provides an example of Frequency Item matrix forS = {i1, i2, i3} and FA = {f1, f2, f3, f5}.
f1 f2 f3 f4i1 0 1 0 1i2 0 0 1 1i3 1 1 0 1
Table 1: Example of Item Frequency Matrix
The building of user semantic attribute modelconsists of three steps:
1. Computing the TF-IDF measure on the Fre-quency Item Matrix F .
2. Reducing the dimension of feature space by ap-plying a LAS.
3. Computing the user semantic attribute model onitems in LSA space by using the Rocchio algo-rithm.
5.1 Computing the TF-IDFmeasure on the FrequencyItem Matrix F
One of the best-known measures for specifying key-word weights in Information Retrieval is the TF-IDF (Term Frequency/Inverse Document Frequency)(Salton, 1989). It is a numerical statistic, which re-flects how important a word is to a document in acorpus. In our case, we replace document by itemand term by feature and compute TF-IDF on the Fre-quency Item Matrix F .
TF (f, s) =freqs(f)
maxjfreqs(j)(4)
where the maximum is computed over the freqs(j) ofall features in FAs of item s.
The measure of Inverse Document Frequency(IDF) is usually defined as:
IDF (f) = log|S||Sf |
(5)
where |Sf | is the number of items assigned to featuref (ie freqs(f) 6= 0). Thus, the TF-IDF of feature ffor item s is defined as:
TFIDF (s, f) = TF (f, s)× IDF (f) (6)
In the flowing, we will denote by FTFIDF the TF-IDF frequency matrix provided by computing TF-IDF measure on the item frequency matrix F , soFTFIDF = TFIDF (s, f)s∈S and f∈FA .
5.2 Reducing Dimension of theTF-IDF Frequency matrix
For dependent attribute, the number of feature is cor-related to the number of items. So it can be veryelevated and even higher than the number of items.Thus, the semantic user attribute model can have di-mension greater than the user rating matrix therebyaggravating the scalability problem. Therefore, in or-der to reduce the dimension of features space, we ap-ply a LSA with rank k (see section 3) to the FTFIDF
matrix. The rank k is well below the number of fea-tures of attribute A (k << |FA|). As shown in section3, LSA uses a truncated SVD (see formula 2) keepingonly the k largest singular values and their associatedvectors. So, the rank-k approximation matrix of theFTFIDF matrix is provided by formula 7.
FTFIDF ≈ I|S|,k ∗ Σk,k ∗ V tk,|FA| (7)
The rows in Ik are the item vectors in LSA spaceand the rows in V are the feature vectors in LSAspace. Thus, each item is represented in the LSAspace by a set of k latent variables instead of thefeatures of FA. This, results in a much less sparsematrix and a reduced dimension of feature space.
![Page 7: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/7.jpg)
5.3 Computing the User SemanticAttribute Model
Rocchio algorithm (Rocchio, 1971) is a relevance feed-back procedure, which is used in information re-trieval. It designed to produce improved query for-mulations following an initial retrieval operation. Ina vector processing environment, both the stored in-formation document D and the requests for informa-tion B can be represented as t-dimensional vectorsD = (d1, d2, ..., dt) and B = (b1, b2, ..., bt). In eachcase, di and bi represent the weight of term i in Dand B respectively. A typical query-document sim-ilarity measure can then be computed as the innerproduct between corresponding vectors.
Rocchio showed in (Rocchio, 1971), that in a re-trieval environment that uses inner product computa-tions to assess the similarity between query and doc-ument vectors, the best query leading to the retrievalof many relevant items from a collection of documentsis:
Bopt =1
|R|∑R
Di
|Di|− 1
|NR|∑NR
Di
|Di|(8)
Where Di represent document vectors, and |Di| isthe corresponding Euclidean vector length; R is theset of relevant documents and NR is the set of nonrelevant documents.
We have applied the Rocchio formula (8) for com-puting the user semantic attribute profile of user u.We replace documents by items in S described inLSA space. Thus, the user semantic attribute modelQA(u) for user u and attribute A is given by formula9.
QA(u) =1
|Ru|∑R
si|si|− 1
|NRu|∑NR
si|si|
(9)
Where Ru is the set of relevant items of u. Itis composed of all items in Su having rating greaterthan the rating average of u (δu(s) ≥ δu). NRu isthe set of non relevant items of u. It is composed ofall items in Su \Ru ((δu(s) < δu).
6 RECOMMENDATION
To provide recommendations for the active user ua,we use the user-based CF algorithm (Resnick et al.,1994). User-Based CF predicts the rating value ofactive user ua on non rated item s ∈ S based on hisor her nearest neighbors. The principle of the user-based CF consists of the following steps:
Similarity : compute the similarities between ua
and all others users. The similarity between two usersu and v is equal to the cosine of the angle between ~uand ~v (see equation 10). The set of the nearest neigh-bors of ua is equal to the B users with the highestsimilarity values. In the standard user-based CF algo-rithm, the users-items rating matrix (δu(s)(u∈U, s∈S))
is used to compute users’ similarities. In our algo-rithm, the user semantic matrix Q is used insteadfor computing the similarities between users. As wehave already mentioned, the matrix Q is the horizon-tal concatenation of user semantic attribute modelQA for each relevant attribute A.
sim(u, v) = cos(~u,~v) =~u • ~v‖~u‖ ‖~v‖ (10)
Prediction : compute the prediction valuep(ua, s) = of rating of user ua on non rated item s.Prediction value is equal to a weighted aggregate ofthe b nearest neighbor ratings of user ua (see equation11).
p(ua, s) = δua +
∑v∈V sim(ua, v)(δv(s)− δv)∑
v∈V |sim(ua, v)| (11)
where V is the set of the B nearest neighbors(most similar users) to ua that have rated item s.B can range anywhere from 1 to the number of allusers.
Recommendation: recommend to the activeuser ua a list L(u) of the Top-N relevant items. Rele-vant items are those having predicted ratings greaterthan or equal a given threshold.
Although we apply a user-based CF for recommen-dation, our approach is also a model-based methodbecause it is based on a new user model to provide rat-ings of active user on non rated items. Our approachresolves the scalability problem for several reasons.First, the building process of user semantic model isfully parallelizable (because the computing of user se-mantic attribute model is done in independent wayfor each other) and can be done off line. Second, thismodel allows a dimension reduction since the numberof columns in the user semantic model is much lowerthan those of user item rating matrix, so, the comput-ing of similarities between users is less expensive thanin the standard user-based CF. In addition, our ap-proach allows inferring similarity between two userseven when they have any co-rated items because theusers-semantic matrix has less missing values thanuser item ratings matrix. Thus, our approach pro-vides solution to the neighbor transitivity problememanates from the sparse nature of the underlyingdata sets. In this problem, users with similar pref-erences may not be identified as such if they haven’tany items rated in common.
7 PERFORMANCE STUDY
In this section, we study the performance of our algo-rithm, User Semantic Collaborative Filtering (USCFin plots), against the standards CF algorithms: User-Based CF (UBCF in the plot) (Resnick et al., 1994),and Item-Based CF (IBCF in the plot) (Sarwar et al.,
![Page 8: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/8.jpg)
(a) (b)
(c) (d)
Figure 2: Impact of LSA on prediction accuracy of Rocchio algorithm.
2002); standard CB algorithm (CB in the plot) (Lopset al., 2011).
It should be noted that the building of User Se-mantic Attribute Model for the non dependent at-tributes genre and origin have been addressed re-spectively in previous works (Ben Ticha et al., 2011;Ben Ticha et al., 2012). Therefore, we will not detailthe experiments conducted for these attributes in thispaper.
7.1 Data set
We have experimented our approach on real data fromthe MovieLens1M data set (data set, 2014) of theMovieLens recommender system (MovieLens, 2014).The MovieLens1M provides the usage data set andcontains 1,000,209 explicit ratings of approximately3,900 movies made by 6,040 users. The ratings areuser-provided star ratings, from 1 to 5 stars. Forthe semantic information of items, we use the Het-Rec 2011 data set (HetRec2011, 2011) that links themovies of MovieLens data set with their correspond-ing web pages at Internet Movie Database (IMDb)and Rotten Tomatoes movie review systems. We usemovie genre and movie origin as non dependent at-tributes, movie director, movie actor and movie key-word as dependent attributes.
We have filtered the data by maintaining onlyusers with at least 20 ratings and available featuresfor all movies. After the filtering process, we obtaina data set with 6020 users, 3552 movies, 19 genres,43 origins, 1825 directors, 4237 actors and 12367 key-words . The usage data set has been sorted by thetimestamps, in ascending order, and has been dividedinto a training set (including the first 80% of all rat-ings) and a test set (the last 20% of all ratings). Thus,ratings of each user in test set have been assigned af-ter those of training set.
7.2 Evaluation Metrics
Several metrics have been used to evaluate the pre-diction accuracy of recommendation algorithms (Her-locker et al., 2004; Shani and Gunawardana, 2011).There are mainly two classes of metrics. The firstmeasure the ratings prediction accuracy and are usedto evaluate the accuracy of algorithms predicting therating values. The second measure the accuracy ofrecommendation and are used to evaluate algorithmsthat provide a Top-N list of relevant items. In thispaper, we have used the widely accepted metrics foreach class. Thus, for measuring the accuracy of ratingprediction we have used the Root Mean Squared Er-ror (RMSE)(see equation 12). RMSE computes the
![Page 9: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/9.jpg)
Figure 3: Impact of user semantic attribute algorithm on prediction accuracy.
square root of the average of the absolute differencebetween the predictions and true ratings in the testdata set. RMSE disproportionally penalizes large er-rors. Lower the RMSE is, better is the predictionaccuracy.
RMSE =
√∑u,s(p(u, s)− δu(s))2
d(12)
Where d is the total number of ratings over all users,p(u, s) is the predicted rating for user u on item s,and δu(s) is the actual rating for user u on item s intest data set.
For Top-N recommendation list, we have used thePrecision metric. We have computed a Precision foreach test user u in the test set by using formula 13.Then, the Precision for all users is equal to the aver-age.
Precision(u) =|L(u) ∩Rtest(u)|
|L(u)| (13)
where L(u) is the list of N items recommendedto user u. Rtest(u) is the set of relevant items for uin the test data set. In all our experiments, an itemis relevant if its rating is greater than or equal to 4.The Precision measure describes the proportion of therecommendations were actually suitable for the user.Higher the Precision is, better is the recommendationaccuracy.
7.3 Impact of LSA on PredictionAccuracy of Rocchio algorithm
In Figure 2, the RMSE has been plotted withrespect to the LSA rank. It compares the Rocchioapproach with and without applying LSA (dimensionreduction) on director attribute (Figure 2(a)),actor attribute (Figure 2(b)), combined attributedirector actor (Figure 2(c)) and Keyword attribute(Figure 2(d)). For attributes director and actor,the plots (Figures 2(a) and 2(b)) have the samelook, the RMSE of Rocchio with LSA decreasesuntil it reaches the RMSE value of Rocchio withoutLSA. So, LSA dimension reduction has no effecton improving the accuracy of Rocchio approach on
director and actor attributes. The poor performanceof these two attributes may be explained by the factthat their features are not highly correlated. Indeed,for the director attribute, for instance, the RMSEwithout reduction (1825 features) is equal to 0.9142while the best value with LSA is equal to 1.017. Foractor attribute, the best accuracy (RMSE=0.9153)of Rocchio with LSA is reached for LSA rank=1100,it is equal to the performance of Rocchio withoutLSA, with a dimension reduction about 75%.
However, for combined attributes director actor(Figure 2(a)) and Keyword (Figure 2(d)) the LSAdimension reduction improves the accuracy of Roc-chio approach. Because of features in keyword at-tribute are more correlated than in actor or direc-tor attribute, using LSA can potentially reduces theamount of noise associated with the semantic infor-mation. For keyword attribute, the best accuracy(RMSE= 0.909) is reached for LSA rank=3552 areduction of about 71%. For rank equal to 1000,RMSE= 0.9145, so a dimension reduction about 91%for a loss of accuracy about 0.60% against the bestaccuracy of Keyword attribute.
Although the LSA doesnt improve the accuracy,dimension reduction is significant. Thus, it allows toreduce the cost of users similarity computing, spe-cially when the number of features is very high, as isthe case of combined attributes director actor.
7.4 Impact of Attribute Class onPrediction Accuracy
Figure 3 compares algorithms for building user se-mantic attribute model in term of RMSE. Fuzzy CMean algorithm (FuzzyCM in plot) is a fuzzy clus-tering used for non dependent and multivalued at-tribute (here genre) and KMean algorithm (KMeanin plot) is used on non dependent and mono valuedattribute (here origin). Moreover, Rocchio algorithm(Rocchio in plot) is applied here for all attributes de-pendent and non dependent. For origin and directorattributes, Rocchio without LSA provides best resultsthan with dimension reduction. For actor attribute,
![Page 10: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/10.jpg)
(a) Higher the Precision is, better is the recom-mendation
(b) Lower the RMSE is, better is the prediction
Figure 4: Evaluation of USCF against CB in terms of Precision (a) against standards CF in terms of RMSE (b).
LSA with rank equal to 1100 is performed, for genreattribute a factorization (LSA with rank equal to 18)is applied, for keyword attribute LSA with rank equalto 3400 is applied. Rocchio+LSA in plot means theRocchio approach is performed with LSA. When an-alyzing this figure we note that, if we performed theRocchio algorithm to non dependent attribute theperformance compares unfavorably against the de-pendent attribute. Indeed, the best performance isachieved by FuzzyCM algorithm on genre attributeand the difference with Rocchio approach, even withfactorization, is important (0.9066 for FuzzyCM and0.9314 for Rocchio with LSA (rank=18)). This al-lows us to deduce that, using a suited algorithm foreach attribute class provides best performance thanapplying the same algorithm for all attributes. Sec-ond, the origin attribute has the worst performancecompared to the other three attributes and this for allalgorithms. This is confirm our hypothesis that all at-tributes don’t have the same relevance to users. Theattribute origin can be less significant in the choiceof users than the genre, actor or director, which isintuitively understandable.
7.5 Comparative results of USCFagainst CF and CBrecommender system
Figure4 depicts the recommendation accuracy ofUSCF in contrast to those produced by pure CB(CB in plots) recommender system (Figure4(a)) us-ing Precision metric to measure the recommenda-tion accuracy; and standard Item-Based CF (IBCF)and User-Based CF (UBCF) (Figure4(b)). USCF-<Attributes> in plot means the list of relevant at-tributes involved in building the user semantic modelQ. For each relevant attribute, the suited algorithmis applied. So, Fuzzy CMean for genre, KMeanfor origin, Rocchio with LSA (rank=1200) for com-bined attribute director actor and Rocchio with LSA(rank=3400) for Keyword attribute. Pure CB al-gorithm exploits only item-content for recommenda-
tions. Thus, we have built an item-item similaritymatrix based on Cosinus. Item is described by aVector Space Model (VSM) composed by featuresof selected attributes as shown in Figure4(a). InFigure4(a), recommendations are computed for 60nearest neighbors. We note that our algorithm USCFresults in an overall improvement in accuracy againstCB for all combinations of attributes. In Figure4(b),RMSE has been plotted with respect to the number ofneighbors (similar users) for computing rating predic-tion (see section 6). In all cases, the RMSE convergesbetween 50 and 60 neighbors, however, USCF resultsin an overall improvement in accuracy. In addition,the best performance is achieved by the combinationgenre-director actor. This improvement can be ex-plained by many reasons. First, taking into accountthe semantic profile of items in a CF recommendationprocess. Second, for non dependent attribute, UserSemantic Attribute Model is built according to a col-laborative principle; ratings of all users are used tocompute the semantic profile of each user. Third, thechoice of the attribute can have significant influenceon improving the accuracy. Lastly, Users SemanticModel has few missing values, so, it allows inferringsimilarity between two given users even when theyhave any items rated in common.
8 CONCLUSION AND FUTUREWORK
The approach presented in this paper is a componentof a global work, which the aim, is to semanticallyenhance collaborative Filtering recommendation andto resolve the scalability problem by reducing thedimension. For this purpose, we have designed anew hybridization technique, which predicts users’preferences for items based on their inferred prefer-ences for semantic information. We have defined twoclasses of attributes: dependent and non dependentattribute, and presented a suited algorithm for eachclass for building user semantic attribute model.
![Page 11: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/11.jpg)
The aim of this paper is to present our approach forbuilding user semantic attribute model for dependentattribute. We have defined an algorithm based onRocchio algorithm and have applied Latent SemanticAnalysis (LSA) for dimension reduction. Our ap-proach provides solutions to the scalability problem,and alleviates the data sparsity problem by reducingthe dimensionality of data. The experimental resultsshow that USCF algorithm improves the predictionaccuracy compared to usage only approach (UBCFand IBCF) and Content based only approach. In ad-dition, we have shown that applying Rocchio formulaon non dependent attribute, decreases significantlythe prediction accuracy compared to results obtainedwith machine learning algorithms. Furthermore,we have experimentally shown that all attributesdon’t have the same importance to users. Fi-nally, experiments have shown that the combinationof relevant attributes enhances the recommendations.
An interesting area of future work is to use ma-chine learning techniques to infer relevant attributes.We will also study the extension of the user seman-tic model to non structured data in witch items aredescribed by free text. Lastly, study how our ap-proach can provide solution to the cold start problemin which new user has few ratings. Indeed, CF can-not provide recommendation because similarities withothers users cannot be computed.
REFERENCES
Adomavicius, G. and Tuzhilin, A. (2005). Towardthe next generation of recommender systems:A survey of the state-of-the-art and possibleextensions. IEEE Trans. Knowl. Data Eng.,17(6):734–749.
Baeza-Yates, R. and Ribeiro-Neto, B. (1999). ModernInformation Retrieval. Addison-Wesley.
Balabanovic, M. and Shoham, Y. (1997). Fab:Content-based, collaborative recommendation.Commun. ACM, 40(3):66–72.
Belkin, N. J. and Croft, W. B. (1992). Informationfiltering and information retrieval: Two sides ofthe same coin? Commun. ACM, 35(12):29–38.
Ben Ticha, S., Roussanaly, A., and Boyer, A. (2011).User semantic model for hybrid recommendersystems. In The 1st Int. Conf. on Social Eco-Informatics - SOTICS, pages 95–101, Barcelona,Espagne. IARIA.
Ben Ticha, S., Roussanaly, A., Boyer, A., and Bsaıes,K. (2012). User semantic preferences for col-laborative recommendations. In Huemer, C.and Lops, P., editors, E-Commerce and WebTechnologies, volume 123 of Lecture Notes inBusiness Information Processing, pages 203–211. Springer Berlin Heidelberg.
Ben Ticha, S., Roussanaly, A., Boyer, A., and Bsaıes,K. (2013). Feature frequency inverse user fre-
quency for dependant attribute to enhance rec-ommendations. In The Third Int. Conf. on So-cial Eco-Informatics - SOTICS, Lisbon, Portu-gal. IARIA.
Breese, J., Heckerman, D., and Kadie, C. (1998). Em-pirical analysis of predictive algorithms for col-laborative filtering. In Proceeding of the Four-teenth Conference on Uncertainty in ArtificialIntelligence (UAI), pages 43–52, Morgan Kauf-mann, San Francisco. Madison, Wisconsin.
Burke, R. (2007). Hybrid web recommender systems.In Brusilovsky, P., Kobsa, A., and Nejdl, W.,editors, The Adaptive Web, volume 4321 of Lec-ture Notes in Computer Science, pages 377–408.Springer Berlin Heidelberg.
data set, M. (2014).http://grouplens.org/datasets/movielens/.July 2014.
Dumais, S. T. (2004). Latent semantic analysis. An-nual Review of Information Science and Tech-nology, 38(1):188–230.
Ekstrand, M. D., Riedl, J. T., and Konstan, J. A.(2011). Collaborative filtering recommender sys-tems. Found. Trends Hum.-Comput. Interact.,4(2):81–173.
Goldberg, D., Nichols, D., Oki, B. M., and Terry,D. (1992). Using collaborative filtering toweave an information tapestry. Commun. ACM,35(12):61–70.
Herlocker, J. L., Konstan, J. A., Terveen, L. G., andRiedl, J. T. (2004). Evaluating collaborative fil-tering recommender systems. ACM Trans. Inf.Syst., 22(1):5–53.
HetRec2011 (2011). In 2nd Int Workshop on Informa-tion Heterogeneity and Fusion in RecommenderSystems. The 5th ACM Conf. RecSys.
Hill, W., Stead, L., Rosenstein, M., and Furnas, G.(1995). Recommending and evaluating choices ina virtual community of use. In Proceedings of theSIGCHI Conference on Human Factors in Com-puting Systems, CHI ’95, pages 194–201, NewYork, NY, USA. ACM Press/Addison-WesleyPublishing Co.
Lops, P., de Gemmis, M., and Semeraro, G. (2011).Content-based recommender systems: State ofthe art and trends. In Recommender SystemsHandbook, pages 73–105. Springer US.
Manzato, M. G. (2012). Discovering latent factorsfrom movies genres for enhanced recommenda-tion. In Proceedings of the Sixth ACM Con-ference on Recommender Systems, RecSys ’12,pages 249–252, New York, NY, USA. ACM.
Miyahara, K. and Pazzani, M. J. (2000). Collabo-rative filtering with the simple bayesian classi-fier. In Proceedings of the 6th Pacific Rim In-ternational Conference on Artificial Intelligence,PRICAI’00, pages 679–689, Berlin, Heidelberg.Springer-Verlag.
Mobasher, B., Jin, X., and Zhou, Y. (2004). Semanti-cally enhanced collaborative filtering on the web.
![Page 12: Rocchio Algorithm to Enhance Semantically Collaborative](https://reader033.vdocuments.us/reader033/viewer/2022051323/627be3d71abf8c422546ed00/html5/thumbnails/12.jpg)
In Berendt, B., Hotho, A., Mladenic, D., vanSomeren, M., Spiliopoulou, M., and Stumme,G., editors, Web Mining: FromWeb to Seman-ticWeb, volume 3209 of Lecture Notes in Com-puter Science, pages 57–76. Springer Berlin /Heidelberg.
Mooney, R. J. and Roy, L. (2000). Content-basedbook recommending using learning for text cat-egorization. In Proceedings of the Fifth ACMConference on Digital Libraries, DL ’00, pages195–204, New York, NY, USA. ACM.
MovieLens (2014). www.movielens.org. July 2014.
Pazzani, M. and Billsus, D. (1997). Learning and re-vising user profiles: The identification of inter-esting web sites. Machine Learning, 27(3):313–331.
Pazzani, M. J. and Billsus, D. (2007). Content-basedrecommendation systems. In Brusilovsky, P.,Kobsa, A., and Nejdl, W., editors, The AdaptiveWeb, pages 325–341. Springer-Verlag, Berlin,Heidelberg.
Resnick, P., Iacovou, N., Suchak, M., Bergstrom, P.,and Riedl, J. (1994). GroupLens: an open ar-chitecture for collaborative filtering of netnews.In The 1994 ACM conference on Computer sup-ported cooperative work, page 175186.
Rocchio, J. (1971). Relevance feedback in informationretrieval. In Salton, G., editor, The Smart Re-trieval System - Experiments in Automatic Doc-ument Processing, chapter 14, pages 313–323.Prentice-Hall, Inc.
Salton, G. (1989). Automatic Text Processing.Addison-Wesley.
Sarwar, B., Karypis, G., Konstan, J., and Riedl, J.(2000). Application of dimensionality reductionin recommender system-a case study. In Proceed-ings of the ACM WebKDD 2000 Web Mining forE-Commerce Workshop.
Sarwar, B., Karypis, G., Konstan, J., and Riedl, J.(2001). Item-based collaborative filtering recom-mendation algorithms. In Proceedings of the 10thInternational Conference on World Wide Web,WWW ’01, pages 285–295, New York, NY, USA.ACM.
Sarwar, B., Karypis, G., Konstan, J., and Riedl, J.(2002). Recommender systems for large-scale e-commerce: Scalable neighborhood formation us-ing clustering. In Proceedings of the Fifth Inter-national Conference on Computer and Informa-tion Technology (ICCIT 02).
Schafer, J. B., Frankowski, D., Herlocker, J., andSen, S. (2007). Collaborative filtering recom-mender systems. In Brusilovsky, P., Kobsa, A.,and Nejdl, W., editors, The Adaptive Web, num-ber 4321 in Lecture Notes in Computer Science,pages 291–324. Springer Berlin Heidelberg.
Sen, S., Vig, J., and Riedl, J. (2009). Tagommenders:Connecting users to items through tags. In Pro-ceedings of the 18th International Conference onWorld Wide Web, WWW ’09, pages 671–680,New York, NY, USA. ACM.
Shani, G. and Gunawardana, A. (2011). Evaluatingrecommendation systems. In Ricci, F., Rokach,L., Shapira, B., and Kantor, P. B., editors, Rec-ommender Systems Handbook, pages 257–297.Springer US.
Shardanand, U. and Maes, P. (1995). Social in-formation filtering: Algorithms for automating“word of mouth”. In Proceedingsof the SIGCHI Conference on Human Factorsin Computing Systems, CHI ’95, pages 210–217, New York, NY, USA. ACM Press/Addison-Wesley Publishing Co.
Su, X. and Khoshgoftaar, T. M. (2009). A survey ofcollaborative filtering techniques. Adv. in Artif.Intell., 2009:4:2–4:2.
Xue, G.-R., Lin, C., Yang, Q., Xi, W., Zeng, H.-J.,Yu, Y., and Chen, Z. (2005). Scalable collab-orative filtering using cluster-based smoothing.In Proceedings of the 28th Annual InternationalACM SIGIR Conference on Research and De-velopment in Information Retrieval, SIGIR ’05,pages 114–121, New York, NY, USA. ACM.