Articulo de referencia

Item-item collaborative filtering

Item-item collaborative filtering , or item-based , or item-to-item , is a form of collaborative filtering for recommender systems based on the similarity between items calculat...

Item-item collaborative filtering, or item-based, or item-to-item, is a form of collaborative filtering for recommender systems based on the similarity between items calculated using people's ratings of those items. Item-item collaborative filtering was invented and used by Amazon.com in 1998.[1][2] It was first published in an academic conference in 2001.[3]

Earlier collaborative filtering systems based on rating similarity between users (known as user-user collaborative filtering) had several problems:

  • systems performed poorly when they had many items but comparatively few ratings
  • computing similarities between all pairs of users was expensive
  • user profiles changed quickly and the entire system model had to be recomputed

Item-item models resolve these problems in systems that have more users than items. Item-item models use rating distributions per item, not per user. With more users than items, each item tends to have more ratings than each user, so an item's average rating usually doesn't change quickly. This leads to more stable rating distributions in the model, so the model doesn't have to be rebuilt as often. When users consume and then rate an item, that item's similar items are picked from the existing system model and added to the user's recommendations.

Method

First, the system executes a model-building stage by finding the similarity between all pairs of items. This similarity function can take many forms, such as correlation between ratings or cosine of those rating vectors. As in user-user systems, similarity functions can use normalized ratings (correcting, for instance, for each user's average rating).

Second, the system executes a recommendation stage. It uses the most similar items to a user's already-rated items to generate a list of recommendations. Usually this calculation is a weighted sum or linear regression. This form of recommendation is analogous to "people who rate item X highly, like you, also tend to rate item Y highly, and you haven't rated item Y yet, so you should try it".

Results

Item-item collaborative filtering had less error than user-user collaborative filtering. In addition, its less-dynamic model was computed less often and stored in a smaller matrix, so item-item system performance was better than user-user systems.

Example

Consider the following matrix :

Si un usuario está interesado en el Artículo 1, ¿qué otro artículo le sugerirá un sistema que utiliza el algoritmo de Amazon de artículo a artículo  ?

El objetivo es proponer al usuario el artículo con el mayor valor de coseno. Así es como lo hacemos  :

En primer lugar, convertimos la matriz Usuario-Artículo en una matriz binaria y creamos una matriz simple para cada artículo.

  • A1 = [1, 1, 0]
  • A2 = [1, 1, 1]
  • A3 = [0, 1, 0]

En segundo lugar, multiplicamos la matriz A1 por cada matriz para hallar el producto escalar.

  • A1 * A2 = (1*1) + (1*1) + (0*1) = 2
  • A1 * A3 = (1*0) + (1*1) + (0*0) = 1

En tercer lugar, hallamos la norma de cada vector.

  • ||A1|| =12+12+02{\displaystyle {\sqrt {1^{2}+1^{2}+0^{2}}}}=2{\displaystyle {\sqrt {2}}}= 1,4142
  • ||A2|| =12+12+12{\displaystyle {\sqrt {1^{2}+1^{2}+1^{2}}}}=3{\displaystyle {\sqrt {3}}}= 1,7320
  • ||A3|| =02+12+02{\displaystyle {\sqrt {0^{2}+1^{2}+0^{2}}}}=1{\displaystyle {\sqrt {1}}}= 1

En cuarto lugar, calculamos el coseno.

  • A1 y A2 = COS(θ) =A1A2||A1||||A2||{\displaystyle {\frac {A1*A2}{||A1||*||A2||}}}=223{\displaystyle {\frac {2}{{\sqrt {2}}*{\sqrt {3}}}}}=63{\displaystyle {\frac {\sqrt {6}}{3}}}= 0,8165
  • A1 y A3 = COS(θ) =A1A3||A1||||A3||{\displaystyle {\frac {A1*A3}{||A1||*||A3||}}}=121{\displaystyle {\frac {1}{{\sqrt {2}}*1}}}=12{\displaystyle {\frac {1}{\sqrt {2}}}}=22{\displaystyle {\frac {\sqrt {2}}{2}}}= 0,7071

Conclusión: Si un usuario está interesado en el artículo 1, el algoritmo le sugerirá el artículo 2, basándose en sus preferencias individuales.

Referencias

  1. "Recomendaciones colaborativas mediante mapeos de similitud entre elementos" .
  2. Linden, G; Smith, B; York, J (22 de enero de 2003). "Recomendaciones de Amazon.com: filtrado colaborativo de ítem a ítem". IEEE Internet Computing . 7 (1): 76– 80. doi : 10.1109/MIC.2003.1167344 . ISSN 1089-7801 . S2CID 14604122 .  
  3. Sarwar, Badrul; Karypis, George; Konstan, Joseph; Riedl, John (2001). «Algoritmos de recomendación de filtrado colaborativo basados ​​en ítems». Actas de la 10.ª conferencia internacional sobre la World Wide Web . ACM . págs. 285–295 . CiteSeerX 10.1.1.167.7612 . doi : 10.1145/371920.372071 . ISBN   978-1-58113-348-6. S2CID 8047550 .