{"id":127,"date":"2023-10-23T12:37:56","date_gmt":"2023-10-23T12:37:56","guid":{"rendered":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/chapter\/ai-speak-how-youtube-learns-you-part-1\/"},"modified":"2024-01-31T08:11:19","modified_gmt":"2024-01-31T08:11:19","slug":"ai-speak-how-youtube-learns-you-part-1","status":"publish","type":"chapter","link":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/chapter\/ai-speak-how-youtube-learns-you-part-1\/","title":{"raw":"AI Speak: How Youtube Learns You, part 1","rendered":"AI Speak: How Youtube Learns You, part 1"},"content":{"raw":"<h3 style=\"text-align: left\">Models and Recommendation<\/h3>\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\n<p class=\"textbox__title\"><strong>ACTIVITY<\/strong><\/p>\n\n<\/header>\n<div class=\"textbox__content\">\n\n<img class=\"wp-image-126 alignnone\" src=\"http:\/\/aiopentext.itd.cnr.it\/wp-content\/uploads\/sites\/10\/2023\/10\/ch4-page3-accounts.png\" alt=\"\" width=\"388\" height=\"431\">\n<p class=\"no-indent\">These are the credit card transactions of John Doe and Tom Harry, two men living in Nantes, France. They are looking for things to do this weekend. What will you recommend to them?<\/p>\n<p class=\"indent\">List to choose from:<\/p>\n\n<ol>\n \t<li>The new Burger King outlet<\/li>\n \t<li>An olive oil tasting event<\/li>\n \t<li>An online luggage store<\/li>\n \t<li>A river-side concert<\/li>\n \t<li>Baby swimming class<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<p class=\"no-indent\">Recommendation systems have been around at least as long as tourist guides and top-ten lists. While <em>The Guardian Best Books of 2022<\/em> recommends the same list to everyone, you would likely adapt it when choosing for yourself - pick a few and change the order of reading based on your personal preferences.<\/p>\n<p class=\"indent\">How to recommend options for strangers? In the activity above, you probably tried to imagine their personalities based on the given information: you made judgements and applied stereotypes. Then, once you had an idea of their <em>type<\/em>, you chose from the list things that could (or not) be relevant to them. Recommenders such as Amazon, Netflix and Youtube follow a similar process.<\/p>\n<p class=\"indent\">Nowadays, whenever someone is searching for information or looking to discover online content, they use some kind of personalised recommender system<sup>1,2<\/sup>. The main function of Youtube is to suggest to its users what to watch amongst all the videos available on the platform. For signed-in users, it uses their past activity to create a model, or a personality type. Once it has a model for John, it can see who else has models similar to his. It then recommends to John videos similar to what he has watched and those similar to what others like him have watched.<\/p>\n\n<h3 style=\"text-align: left\">What is a model?<\/h3>\n<p class=\"indent no-indent\">Models can be used to mimic anything from users to videos to lessons a child has to learn. A model is a simplified representation of the world, so a machine can pretend to understand it:<\/p>\nhttps:\/\/youtu.be\/2RSJH0vH0DM?list=PLkm8ZqYSzE3d6lEWsWz0fWhtSAbjwR8Z7\n<h3 style=\"text-align: left\">How Youtube learns who you are<\/h3>\n<p class=\"no-indent\">All recommendation problems involve asking a surrogate question: \"<em>What to recommend<\/em>\" is too general and vague for an algorithm. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Netflix_Prize\" target=\"_blank\" rel=\"noopener\" data-cke-saved-href=\"https:\/\/en.wikipedia.org\/wiki\/Netflix_Prize\"> Netflix asked developers<\/a> what will be the rating user A would give video B,\u00a0considering their ratings for other videos. Youtube asks what the watch time would be for a given user in a particular context. The choice of what to ask \u2013 and predict \u2013 has a big impact on what recommendation is shown<sup>3<\/sup>. The idea is that the correct prediction will lead to a good recommendation. The prediction itself is based on other users with a history of similar tastes<sup>4<\/sup>. That is, users whose models are similar.<\/p>\n\n<h3 style=\"text-align: left\">User models<\/h3>\n<p class=\"no-indent\">Youtube splits the task of recommendation into two parts and uses different models for each<sup>3<\/sup>. We, however, will stick to a simpler explanation here.<\/p>\n<p class=\"indent\">For creating a user model, its developers have to ask, what data is relevant to video recommendation. What about what the user has watched before? What about their reviews, ratings, and explicit preferences thus far? What did they search for? Youtube uses signals that are more implicit than explicit, since the latter are more readily available<sup>3<\/sup>. Did a user just click a video or did they watch it? If yes, for how long? How did the user react to previous recommendations<sup>1<\/sup>? Which ones were ignored? Apart from direct answers to these questions, demographic information such as gender, language, region and type of device are of great value when the user is new or not signed in<sup>3<\/sup>.<\/p>\n<p class=\"indent\">Once a model is available for each user, we can compare users and use that information for recommendations.<\/p>\n\n<h3 style=\"text-align: left\">Video Models<\/h3>\n<p class=\"no-indent\">We could also use videos that are both similar to and different from one another. Youtube looks at the information it has on a particular video \u2013 its title and description, video quality, how many people have watched it (view count), liked it, favoured it, commented on it or shared it, the time since it was uploaded and the number of users subscribed to the parent channel<sup>1<\/sup>.<\/p>\nhttps:\/\/www.youtube.com\/watch?v=Dhsw_5l9MRs&amp;list=PLkm8ZqYSzE3d6lEWsWz0fWhtSAbjwR8Z7&amp;index=3\n<p class=\"no-indent\">What a user watches next will also depend on whether one video is an episode within a series or an item in a playlist. If a user is discovering a new artist, he or she might move from the most popular songs to smaller niches. Also, a user might not click on a video whose thumbnail image is poor quality<sup>1,3<\/sup>. All of this information goes into the model too.<\/p>\n<p class=\"indent\">One of the building blocks of the recommendation system is to go from one video to a list of related videos. In this context, we define related videos as those that a user is likely to watch next<sup>3<\/sup>. The goal is to squeeze the most value out of data to make better recommendations<sup>4<\/sup>.<\/p>\n\n\n<hr>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>1 <\/sup>Davidson, J., Liebald, B., Liu, J., Nandy, P., Vleet, T., <em>The Youtube Video Recommendation System<\/em>, Proceedings of the 4th ACM Conference on Recommender Systems, Barcelona, 2010.<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>2 <\/sup>Spinelli, L., and Crovella, M., <em><a href=\"https:\/\/doi.org\/10.1145\/3386392.3399566\" target=\"_blank\" rel=\"noopener\" data-cke-saved-href=\"https:\/\/doi.org\/10.1145\/3386392.3399566\">How YouTube Leads Privacy-Seeking Users Away from Reliable Information<\/a><\/em>, In Adjunct Publication of the 28th ACM Conference on User Modeling, Adaptation and Personalization (UMAP '20 Adjunct), Association for Computing Machinery, New York, 244\u2013251, 2020.<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>3 <\/sup> Covington, P., Adams, J., Sargin, E., <em>Deep neural networks for Youtube Recommendations<\/em>, Proceedings of the 10th ACM Conference on Recommender Systems, ACM, New York, 2016.<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>4 <\/sup>Konstan, J., Terveen, L., <em>Human-centered recommender systems: Origins, advances, challenges, and opportunities<\/em>, AI Magazine, 42(3), 31-42, 2021.<\/p>","rendered":"<h3 style=\"text-align: left\">Models and Recommendation<\/h3>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><strong>ACTIVITY<\/strong><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-126 alignnone\" src=\"http:\/\/aiopentext.itd.cnr.it\/wp-content\/uploads\/sites\/10\/2023\/10\/ch4-page3-accounts.png\" alt=\"\" width=\"388\" height=\"431\" srcset=\"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-content\/uploads\/sites\/10\/2023\/10\/ch4-page3-accounts.png 692w, https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-content\/uploads\/sites\/10\/2023\/10\/ch4-page3-accounts-270x300.png 270w, https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-content\/uploads\/sites\/10\/2023\/10\/ch4-page3-accounts-65x72.png 65w, https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-content\/uploads\/sites\/10\/2023\/10\/ch4-page3-accounts-225x250.png 225w, https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-content\/uploads\/sites\/10\/2023\/10\/ch4-page3-accounts-350x388.png 350w\" sizes=\"(max-width: 388px) 100vw, 388px\" \/><\/p>\n<p class=\"no-indent\">These are the credit card transactions of John Doe and Tom Harry, two men living in Nantes, France. They are looking for things to do this weekend. What will you recommend to them?<\/p>\n<p class=\"indent\">List to choose from:<\/p>\n<ol>\n<li>The new Burger King outlet<\/li>\n<li>An olive oil tasting event<\/li>\n<li>An online luggage store<\/li>\n<li>A river-side concert<\/li>\n<li>Baby swimming class<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<p class=\"no-indent\">Recommendation systems have been around at least as long as tourist guides and top-ten lists. While <em>The Guardian Best Books of 2022<\/em> recommends the same list to everyone, you would likely adapt it when choosing for yourself &#8211; pick a few and change the order of reading based on your personal preferences.<\/p>\n<p class=\"indent\">How to recommend options for strangers? In the activity above, you probably tried to imagine their personalities based on the given information: you made judgements and applied stereotypes. Then, once you had an idea of their <em>type<\/em>, you chose from the list things that could (or not) be relevant to them. Recommenders such as Amazon, Netflix and Youtube follow a similar process.<\/p>\n<p class=\"indent\">Nowadays, whenever someone is searching for information or looking to discover online content, they use some kind of personalised recommender system<sup>1,2<\/sup>. The main function of Youtube is to suggest to its users what to watch amongst all the videos available on the platform. For signed-in users, it uses their past activity to create a model, or a personality type. Once it has a model for John, it can see who else has models similar to his. It then recommends to John videos similar to what he has watched and those similar to what others like him have watched.<\/p>\n<h3 style=\"text-align: left\">What is a model?<\/h3>\n<p class=\"indent no-indent\">Models can be used to mimic anything from users to videos to lessons a child has to learn. A model is a simplified representation of the world, so a machine can pretend to understand it:<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-1\" title=\"Models\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/2RSJH0vH0DM?list=PLkm8ZqYSzE3d6lEWsWz0fWhtSAbjwR8Z7\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h3 style=\"text-align: left\">How Youtube learns who you are<\/h3>\n<p class=\"no-indent\">All recommendation problems involve asking a surrogate question: &#8220;<em>What to recommend<\/em>&#8221; is too general and vague for an algorithm. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Netflix_Prize\" target=\"_blank\" rel=\"noopener\" data-cke-saved-href=\"https:\/\/en.wikipedia.org\/wiki\/Netflix_Prize\"> Netflix asked developers<\/a> what will be the rating user A would give video B,\u00a0considering their ratings for other videos. Youtube asks what the watch time would be for a given user in a particular context. The choice of what to ask \u2013 and predict \u2013 has a big impact on what recommendation is shown<sup>3<\/sup>. The idea is that the correct prediction will lead to a good recommendation. The prediction itself is based on other users with a history of similar tastes<sup>4<\/sup>. That is, users whose models are similar.<\/p>\n<h3 style=\"text-align: left\">User models<\/h3>\n<p class=\"no-indent\">Youtube splits the task of recommendation into two parts and uses different models for each<sup>3<\/sup>. We, however, will stick to a simpler explanation here.<\/p>\n<p class=\"indent\">For creating a user model, its developers have to ask, what data is relevant to video recommendation. What about what the user has watched before? What about their reviews, ratings, and explicit preferences thus far? What did they search for? Youtube uses signals that are more implicit than explicit, since the latter are more readily available<sup>3<\/sup>. Did a user just click a video or did they watch it? If yes, for how long? How did the user react to previous recommendations<sup>1<\/sup>? Which ones were ignored? Apart from direct answers to these questions, demographic information such as gender, language, region and type of device are of great value when the user is new or not signed in<sup>3<\/sup>.<\/p>\n<p class=\"indent\">Once a model is available for each user, we can compare users and use that information for recommendations.<\/p>\n<h3 style=\"text-align: left\">Video Models<\/h3>\n<p class=\"no-indent\">We could also use videos that are both similar to and different from one another. Youtube looks at the information it has on a particular video \u2013 its title and description, video quality, how many people have watched it (view count), liked it, favoured it, commented on it or shared it, the time since it was uploaded and the number of users subscribed to the parent channel<sup>1<\/sup>.<\/p>\n<p><iframe loading=\"lazy\" id=\"oembed-2\" title=\"What is the distance between a video and me?\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/Dhsw_5l9MRs?list=PLkm8ZqYSzE3d6lEWsWz0fWhtSAbjwR8Z7\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p class=\"no-indent\">What a user watches next will also depend on whether one video is an episode within a series or an item in a playlist. If a user is discovering a new artist, he or she might move from the most popular songs to smaller niches. Also, a user might not click on a video whose thumbnail image is poor quality<sup>1,3<\/sup>. All of this information goes into the model too.<\/p>\n<p class=\"indent\">One of the building blocks of the recommendation system is to go from one video to a list of related videos. In this context, we define related videos as those that a user is likely to watch next<sup>3<\/sup>. The goal is to squeeze the most value out of data to make better recommendations<sup>4<\/sup>.<\/p>\n<hr \/>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>1 <\/sup>Davidson, J., Liebald, B., Liu, J., Nandy, P., Vleet, T., <em>The Youtube Video Recommendation System<\/em>, Proceedings of the 4th ACM Conference on Recommender Systems, Barcelona, 2010.<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>2 <\/sup>Spinelli, L., and Crovella, M., <em><a href=\"https:\/\/doi.org\/10.1145\/3386392.3399566\" target=\"_blank\" rel=\"noopener\" data-cke-saved-href=\"https:\/\/doi.org\/10.1145\/3386392.3399566\">How YouTube Leads Privacy-Seeking Users Away from Reliable Information<\/a><\/em>, In Adjunct Publication of the 28th ACM Conference on User Modeling, Adaptation and Personalization (UMAP &#8217;20 Adjunct), Association for Computing Machinery, New York, 244\u2013251, 2020.<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>3 <\/sup> Covington, P., Adams, J., Sargin, E., <em>Deep neural networks for Youtube Recommendations<\/em>, Proceedings of the 10th ACM Conference on Recommender Systems, ACM, New York, 2016.<\/p>\n<p class=\"hanging-indent\" style=\"text-align: left\"><sup>4 <\/sup>Konstan, J., Terveen, L., <em>Human-centered recommender systems: Origins, advances, challenges, and opportunities<\/em>, AI Magazine, 42(3), 31-42, 2021.<\/p>\n","protected":false},"author":1,"menu_order":3,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":112,"_links":{"self":[{"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/pressbooks\/v2\/chapters\/127"}],"collection":[{"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/pressbooks\/v2\/chapters\/127\/revisions"}],"predecessor-version":[{"id":128,"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/pressbooks\/v2\/chapters\/127\/revisions\/128"}],"part":[{"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/pressbooks\/v2\/parts\/112"}],"metadata":[{"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/pressbooks\/v2\/chapters\/127\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/pressbooks\/v2\/chapter-type?post=127"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/wp\/v2\/contributor?post=127"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/aiopentext.itd.cnr.it\/aiforteacher\/wp-json\/wp\/v2\/license?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}