Facebook Friend Suggestion Algorithm
Arunav Goswami
Data Scientist || Machine Learning || NLP || Analytics || Stock Market
Facebook?is a social networking service that allows you to interact and share information with your family and friends over the?internet. Facebook?is a social networking service that allows you to interact and share information with your family and friends over the?internet. Originally designed for college students, Facebook was created in 2004 by Mark Zuckerberg while he was enrolled at Harvard University. Today, Facebook is the world’s largest social network, with?more than?1 billion users?worldwide.
What makes Facebook unique is the ability to?connect and share?with the people you care about at the same time. Facebook allows you to?send?messages?and?post status updates?to keep in touch with friends and family. You can also share different types of content, like?photos?and?links. But what’s more interesting is the people suggestion feature that everyone sees on their Facebook where most common people are recommended for mutual to add on your friend list. So how does Facebook do this? Let's explore it.
How Does Facebook’s Suggested Friends Work?
Your friend suggestions are generated when one of your friends select you as someone who knows someone else on Facebook. If you add your suggested friends as friends, a normal friend request will be sent. If you do not, no one will be notified that you ignored a suggestion. The friendship suggestion is based on the Facebook algorithm, which considers a variety of issues, including previous connections, previous activities, and profile information. Facebook uses?Collaborative?& Content-based filtering?to recommend people you might know, display ads based on your posts, jobs you might like, groups you might want to follow, or companies you might be interested in. Facebook also uses?Apache Giraph to analyze the social graph formed by users and their connections. Facebook has been working on how to improve its algorithm to surface the best content to the people who are most likely to engage with it, which should lead to fewer interruptions for users. The Facebook algorithm ensures that all Facebook users get the most relevant updates, news, and information they are interested in. It is by no means an easy algorithm to crack, but some ranking factors are well known : inventory , signals , predictions and relevancy score.
Some of the ML techniques that Facebook uses are:
Collaborative & Content-Based filtering
Collaborative Filtering?is a?Machine Learning?technique for detecting connections between data sets. This method is often used in?recommender systems?to find similarities between user data and items. Content-based filtering?is a form of a?recommender system?that tries to predict what a user might like based on their?past behavior.?Content-based filtering generates suggestions by matching?keywords?and?attributes?related to database items to a user profile.
In?collaborative?based on the user's?previous?activity, the groups they follow on Facebook, kind of photos they are tagged in are the some of the factors that the?collaborative?algorithm?will consider and?suggest?a friend accordingly.
In?content-based?users’?predefined?data such as age, gender, location, and school/work based on this information the?content-based algorithm?will?suggest?a friend.
K-Mean Clustering
K-means?clustering is a widely used?clustering?method. In general, practitioners begin by learning about the dataset’s architecture. The K-means clustering algorithm divides data points into?distinct,?non-overlapping?groups.
For Facebook friend recommendation a user will get a?recommendation?from another user who belongs to a?similar?group. The?similarity?can be based on multiple things such as their interest, followings, location, background, etc considering all these factors a?cluster?can be formed.
Deep Text
While photographs may appear to be the most significant aspect of Facebook, writing is just as crucial. On Facebook, there is a lot of?writing. Facebook utilizes?DeepText, a?deep?learning-based text?engine?that can comprehend thousands of posts in a second in more than 20 languages with as much accuracy as you can!
领英推荐
We can recommend based on the?comments?of the users over a particular topic.?Deep?learning?can analyze these comments and give a?recommendation?based on their response. For example, if two users commented something?positive?on a topic or a post they both can be?recommended?to each other, not just positive even if two users gave a?negative?comment can be?recommended?to each other.
. . . .
The Facebook algorithm determines which posts people see every time they check their Facebook feed, and in what order those posts show up. The algorithm isn’t static. Meta has a whole team of people working on artificial intelligence and machine learning. Part of their work is to improve the algorithms that connect Facebook users with the most valuable content for them. It also determines the friend suggestions based on various factors. Some of the are:
Conclusion:
Facebook is constantly trying to acquire more information on its users to build a more accurate network graph, which will in turn lead way to better services like friend suggestions, event suggestions, and maybe even what shows up in your top news feed. Facebook is working on rolling out updates to its algorithm to promote more engaging content.
References: