Pages

Friday, September 23, 2016

How does YouTube's autoplay suggest a next video



How does YouTube's autoplay suggest a next video


When playing a video on YouTube, the Autoplay feature, when enabled suggests a new video to be played next (Marked in red)

After the original video ends, a timer gives the option to cancel the next video that was suggested in Autoplay, if not cancelled or played, it plays automatically:

How does the autoplay works? What algorithms determine which video would be played next?
Youtube's Autoplay work on 2 things:
1. If the videos are in a playlist and it is set has "official playlist" then, the next video that comes up, will be from the playlist, even if the user is not playing a playlist, but an individual video.
For example: if you are playing TVF pitchers Episode one than YouTube will automatically show Episode2 in the up next trail.
2. If that video is not belong to any playlist or series then, YouTube tries to "sense" what to show to its viewers after any given video.
Basically what happen YouTube will show next video to which the major population had played after that particular video.
For example: If you play Adele's Hello the Upnext section will show you Ariana Grande- Focus, this is because the major population after listening to Adele's Hello listen to the Ariana Grande's Focus.
This is how YouTube's Autoplay works.
No one expert youtube would be able to answer the kind of algorithm used for next song suggestions, but there are few obvious answers 
  1. It uses the current song string as an input to match the existing database of songs and probably lists down the songs based on number of views
  2. The songs that are upcoming can be based on the search pattern of the people around the world and aggregate of their searches when the current song is finished playing.
  3. Don't forget for subscribe my channel and checked all video funny interest.YOUTUBE CHANNEL
It seems to be a pretty simple look at related videos type of algorithm. I've achieved similar results by taking all the related videos and building out those videos related videos and ranking them. Hopefully it uses collaborative filtering or something but I doubt it. 

I mostly use youtube for music and it consistently degrades into playing the same pop music (Obscure coldplay just went to Swedish House Mafia on me. Next up they are playing a full album of Swedish House Mafia). This leads me to belief algorithm favors videos that have a large number of related videos linking it. 

It doesn't seem to typify videos too much. Individual songs will consistently have full albums or 1 hour long repeats on next.

The same way Facebook suggests you profiles to add them as friends. It uses data structure algorithms. One common data structure is graph. You might be familiar with graph search for Facebook. Same might be the method to suggest next video to play on youtube.

From the trend that I have seen it should be graph search (refer it in 'Google' if you don't know the term , as it is a really interesting part of data structures). Also Facebook uses the same.

No comments:

Post a Comment