The Azerbaijan State News Agency

Algorithm Predicts Circles of Friends Using Contacts Data

Baku, November 5 (AZERTAC). Computer scientists have developed an algorithm that automates the task of assembling contact lists into circles of friends and colleagues.

One important feature of social networks is the ability to group friends and contacts into lists or circles. Typical circle classifications include members of the same family, friends from university, colleagues from work and so on.

One problem, however, is that creating and maintaining these circles is a time consuming business. So a useful tool would be an algorithm that analyses a user`s entire list of contacts and automatically divides them up into useful circles.

Today, Julian McAuley and Jure Leskovec from Stanford University say they`ve developed an algorithm that does just that. The algorithm can predict a user`s set of circles from scratch without any user input at all and then predicts which circles new users should be added to.

The algorithm works by analysing the profile information associated with each person in a user`s set of contacts. On Facebook, for example, this would include name, sex, age, location, company, company location, education and so on.

It then looks for links between these contacts. So a circle might consist of all the people who went to the same university or who work at the same company or who share the same surname and so on.

It then looks for links with the user, whether it be those who work at the same company, went to the same high school and so on. Having learnt the set of parameters that link contacts in the same circle, it then hunts for others with a similar profile.

McAuley and Leskovec say a crucial feature of this algorithm is that contacts can appear in more than one circle and that these circles can overlap or be nested within each other. For example, one circle might consist of all the people at the same university and another might consist of all the people who took the same class, a circle that is clearly nested within the first.

Finally, McAuley and Leskovec asked ten Facebook users to draw up and fully annotate all the circles in their social network using 26 different variables to categorise their contacts. This dataset consisted of 4039 contacts which formed into 193 circles for these ten users. On average each user identified 19 circles with 22 contacts in each circle.

Finally they set their algorithm to work on the raw data to see if it could find the circles that the users themselves had identified.

The results are decent but far from perfect. For example, the algorithm never identifies more than 10 circles per user. However, McAuley and Leskovec say their algorithm outperforms all others that aim to do a similar job.

They carry out a similar analysis on publicly available data from 133 Google+ users, consisting of 479 circles and over 100,000 contacts. They do a similar analysis of 1000 Twitter users with over 80,000 contacts organised into more than 4,800 circles.

These data sets are much less rich than the Facebook set. Google+ offers 6 categories of information per contact and Twitter only 2. What`s more the links between users are directed in these datasets. For example, one circle on Google+ contains candidates from the 2012 republican primaries who presumably do not follow this user or each other.

Nevertheless, McAuley and Leskovec say their algorithm outperforms the competition. Howeve, it is unable to reconstruct circles as accurately as with the richer Facebook data.

This algorithm is certainly an interesting approach. The ability to automatically create circles from a user`s contacts list is certainly valuable, The algorithm also has the ability to add new contacts to appropriate circles.

 

Share news on social media

Follow us on social network

Top stories update

Prime Minister of Cambodia arrives in Azerbaijan on official visit

Azerbaijan, Belarus Swimming Federations sign memorandum of cooperation

Winners of 3rd International Gabala–Khankendi Ultramarathon announced

Top stories update 

Azerbaijan showcases its culture at 4th World Cultures Festival in Ankara

Final stage of 3rd International Khankendi Ultramarathon kicks off in Aghdam

Azerbaijani judokas finish World Championships with seven medals

Azerbaijani MPs and NGO Heads appeal to US lawmakers

Top stories update

Azerbaijan, China explore agricultural cooperation

Participants of 4th International Conference in Baku Dialogue format visit Lachin district

President Ilham Aliyev and Head of Chechen Republic of Russia have lunch together VIDEO

Verstappen wins dramatic, rain-hit Singapore Sprint as Russell crashes and McLarens collide

President Ilham Aliyev and Head of Chechen Republic of Russia visited Baku White City VIDEO

President Ilham Aliyev received Head of Chechen Republic of Russia VIDEO

Ramzan Kadyrov reiterates condolences over Baku–Grozny aircraft crash

International travelers observe demining process in Jabrayil district

Release from the Press Service of the President

10-man Galatasaray strike twice late to beat Kasimpasa 3-1 in Turkish Super Lig

Trump says Russia to supply diesel fuel to American, global markets

Yemen urges UN Security Council to take action against Houthis

Azerbaijani Agriculture Minister visits China

Azerbaijani ambassador to Sweden meets with SSANA representatives

International travelers visit Zangilan district

Indonesian ambassador officially inaugurates Azerbaijan Pencak Silat Community

Top stories update

Azeri Light price exceeds $130

China's Long March-12 rocket launches new internet satellite group

Oil prices climb on global markets

Azerbaijan highlights importance of Baku Call to Action at UN discussion

Türkiye part ways with head coach Montella after World Cup exit, Nations League defeats

Former ICC judge Navi Pillay wins 2026 Nobel Peace Prize

Israeli tourists visit Gabala State Historical and Artistic Reserve

Uzbek-Language edition of “IRS-Heritage” magazine presented in Tashkent

SOCAR secures ESG rating in S&P Global’s 2026 Corporate Sustainability Assessment

President Ilham Aliyev’s social media accounts shared video on his visit to Turkmenistan VIDEO

Panel highlighting Azerbaijani literature held at Frankfurt Book Fair

Drought declared in Yorkshire after dry weather

Russia developing Caspian Sea research program — Putin

Azerbaijan, Japan explore enhancing digital development cooperation

ASAN Khidmet experience presented to Japanese delegation

Azerbaijan, Germany enhance energy and technology partnership

Azerbaijani figure skaters win bronze at international tournament in Almaty

Ethiopia tells UN Security Council it has no choice but to defend itself against Eritrea

Azerbaijani Para-taekwondo fighter bags silver in France

Azerbaijani Permanent Mission to UN: TRIPP to unlock new opportunities for regional trade and economic integration

International travellers visit Ganjasar Monastery Complex

Tokyo's historic Hyakudan Kaidan building reopens after one-year closure

Azerbaijan, Türkiye expand healthcare cooperation

Kazakh President highlights importance of Trans-Caspian Route

Azerbaijan, Germany exchange expertise in banking regulation

Azerbaijani Permanent Mission to UN: Extensive presence of landmines continues to hinder return of IDPs

Kyrgyzstan, Korea to develop cooperation in investment sector

International conference participants visit Shusha

CIS declares 2029 Year of Transport Connectivity

Azerbaijan calls on states to prohibit organizations that promote or incite racial discrimination

Sadyr Zhaparov invites CIS leaders to Global Mountain Summit in Bishkek in 2027

President of Uzbekistan proposes new directions for expanding cooperation within the CIS

Azerbaijan joins Olympic Solidarity Forum in Croatia

Azerbaijan, Asian Infrastructure Investment Bank sign grant agreements for green energy projects

CIS countries to join forces in fight against cybercrime

CIS heads of state adopt statement on preservation of historical memory

CIS countries to conduct population censuses as close to 2030 as possible

President Ilham Aliyev concluded working visit to Turkmenistan

President Ilham Aliyev met with President of Iran in Turkmenbashi VIDEO

® Silk Way West Airlines expands digital booking access through CargoAi

Vietnamese delegation visits Azerbaijan Academy of Sciences

® Azercell — exclusive partner of Gamesummit and OMNI AI Summit

West Nile virus-carrying mosquitoes found in Central and Northern Israel

Azerbaijan’s tourism potential showcased in Poland

UN Resident Coordinator visits ASAN Khidmet Center in Baku

International travelers tour Khudavang Monastery Complex in Kalbajar

Turkmenbashi hosted expanded meeting of Caspian Environmental Summit VIDEO

Azerbaijani delegation holds several meetings as part of 78th Frankfurt International Book Fair

16 donors in Bulgaria led to 34 transplantations in 2025 - Simidchiev MP

Baku hosts opening ceremony of EYBA Autumn Conference 2026

Malaysia closes schools in several states, territories due to haze

President Ilham Aliyev: It is necessary to assess the possible long-term consequences of ongoing changes and take them into account in decision-making

President Ilham Aliyev: Permanent mechanism needed for cooperation and monitoring of implementation of decisions on Caspian Sea

President Ilham Aliyev: Continued shallowing of the Caspian could have catastrophic consequences

President: Preservation of the Caspian’s unique ecosystem is a common task for all littoral states

President Ilham Aliyev: It is important to preserve the Caspian as a zone of peace, stability, and constructive partnership

NATO Training Course opens in Baku

Baku hosts 14th International Acoustic Engineering Forum

President Ilham Aliyev viewed national stands of CIS member states in Turkmenbashi

Turkish media highlights Azerbaijani President’s visit to Turkmenistan

Participants of 4th International Conference in Baku Dialogue format visit Khojaly Genocide Memorial

Azerbaijan showcases its year-round tourism offerings in four cities across Türkiye

Turkmenbashi hosted expanded-format meeting of CIS Council of Heads of State VIDEO

Azerbaijan and Estonia exchange expertise in insurance sector

Azerbaijan’s Central Bank Governor addresses Istanbul Economic Forum

Top stories update

Istanbul marks Turkic States Cooperation Day, 17th anniversary of Nakhchivan Agreement

Azerbaijan keen to strengthen cooperation with UN

President Ilham Aliyev attended limited-format meeting of CIS Council of Heads of State VIDEO

Pashinyan: Azerbaijani railway used to transport cargo to Armenia; TRIPP project set to be implemented

® Kapital Bank expands access to international investment markets through bond placement

Gold prices rise by nearly $70 on global markets

5 dead, 14 injured in school bus accident in Nepal