• A
  • A
  • A
  • ABC
  • ABC
  • ABC
  • А
  • А
  • А
  • А
  • А
Regular version of the site
  • HSE University
  • News
  • Neural Networks of Power: AI Unravels Knots and Tangles in Relationships between Humans, Elves and Hobbits

Neural Networks of Power: AI Unravels Knots and Tangles in Relationships between Humans, Elves and Hobbits

Neural Networks of Power: AI Unravels Knots and Tangles in Relationships between Humans, Elves and Hobbits

Photo: Wikimedia Commons

One of the most popular writers of the last century, John Ronald Reuel Tolkien, was born on January 3rd. Researchers from HSE University, AIRI and MISSIS have used machine learning to explore the social connections between the characters of his Middle-earth universe. The algorithm managed to create an accurate picture of the social structures and dynamics of the characters' relationships, providing a unique map of interactions in the epic world. The researchers believe that this approach can be applied in many areas beyond literature. The results of the work were published in IEEE Xplore.

The analysis of literary works is a complex and time-consuming process. When reading any text, the researcher needs to capture numerous nuances and features — from the author's style and word choice to the relationships between characters and their role in the plot. Most often, this work is done manually by literary critics. Ilya Makarov, Senior Research Fellow at the School of Data Analysis and Artificial Intelligence at the HSE Faculty of Computer Science, head of the ‘AI in Industry’ group at the Artificial Intelligence Research Institute (AIRI), and Anastasia Yaschenko, HSE University graduate, applied computational linguistics and machine learning tools to a series of books by John Ronald Reuel Tolkien about Middle-earth. The AI ‘read’ the books, isolating the key elements: the characters, their belonging to a particular race and their social ties. It demonstrated the results in the form of a graph, which allows us to not only trace the relationship between the characters, but also to see more clearly the structure of their social network.

Ilya Makarov

Ilya Makarov

Senior Research Fellow at the School of Data Analysis and Artificial Intelligence

‘We chose the world of Middle-earth as the basis for our analysis for a number of key reasons. Firstly, J. R. R. Tolkien's texts are widely known and loved by readers around the world, which makes the study universal and global. Secondly, the system of characters in Tolkien's books is very rich and diverse, which creates optimal conditions for such an analysis. Finally, thanks to the long history of studying Tolkien's world, a large set of metadata is available, including detailed descriptions of characters and their race, which facilitates the process of automatic clustering and verification of results.’

The main goal was to create a program that could ‘understand’ human language, analyse literary texts, identify the characters of the book and determine their relationship. This work is based on the concept of social networks. This is an approach widely used in sociology, psychology and more recently in the field of computer science. In the context of literature analysis, each character is considered as a node, and the interactions between them are the edges connecting these nodes. When two characters interact with each other in the text, a connection, or edge, is established between their nodes. The more interactions occur between the characters, the stronger this edge is.

The use of machine learning algorithms has made it possible to automatically analyse texts and identify such interactions between characters, turning literary works into simulated social networks. Named Entity Recognition (NER), a natural language processing technology was used to automatically identify and classify entities in the text, such as names, places and organisations.

This technology helped scientists to create a list of each unique character mentioned in the books. Further semantic analysis allowed them to determine the race of each character. It was conducted by analysing the context and linking each character to a specific race based on the words and phrases that accompany his mention. For example, if a character is often referred to in context with the words ‘elf’ or ‘elvish; the algorithm classifies them as an elf. Due to the large amount of metadata of J. R. R. Tolkien's characters (races, related relationships, belonging to a certain kingdom, etc.) the researchers chose racial characteristic to interpret communities, as every character in the universe belongs to a certain race.

In addition, the use of named entities and semantic analysis of the text allowed researchers to determine not only the connection between the characters, but also the nature of these relationships — friendship, enmity or neutral relations. Artificial intelligence managed to identify complex social relationships between the characters and divide the characters into groups.

It is especially important that this approach is not limited only to The Lord of the Rings, but can be applied to any text, opening up new opportunities for automated research in literature.

‘Our study contains a sequence of steps that can be used to extract named entities and their relationships based on other texts. For example, to identify the relationship between the motives of works by different authors or to analyse complex legal documents,’ said Ilya Makarov.

See also:

AI Users Earn Up to 41.8% More Than Non-Users

Research conducted by economists at HSE University has revealed a significant correlation between the regular use of GenAI in the workplace and higher pay among Russian employees. The study found that individuals who frequently use GenAI in their professional activities earn notably more than those who reject these new tools or resort to them occasionally. The salary premium for highly qualified specialists reaches 41.8%. The article was published in the Voprosy Ekonomiki journal.

AI Robot for Environmental Recognition Tested at HSE University

Engineers and researchers at the HSE Institute for Robotics Systems have successfully run the first tests of an AI-powered environmental recognition model deployed on a robot dog. The robot navigated around the HSE Pokrovka building and Pokrovsky Bulvar, analysing the surrounding environment to identify its location.

Algebra, Geometry, and AI: Russian and Vietnamese Mathematicians Discuss Current Research

A delegation of scientists from Hanoi visited the HSE Faculty of Computer Science and then took part in a Russian-Vietnamese conference in St Petersburg. The events were part of the three-year project ‘Flexibility and Computational Methods.’ Over the course of the project, the researchers have prepared joint publications and obtained new mathematical results.

Scientific Expedition to Hainan: HSE Scientists Organise Conference on Statistical AI in China

The Statistical AI Conference was held in Sanya, Hainan Island, China, from 24 to 28 August 2026. The international event brought together leading experts in statistics, machine learning, and applied AI. Alexey Naumov, Director of the AI and Digital Science Institute at the HSE Faculty of Computer Science, and Sergey Samsonov, Head of the International Laboratory of Stochastic Algorithms and High-Dimensional Inference, were among the conference organisers.

How to Assess Students’ Knowledge in the Age of AI

A researcher at HSE University has proposed a flowchart to help lecturers decide how to assess students who use artificial intelligence. It shows where the use of AI should be restricted and where it can be incorporated into the learning process. The article has been published in IT Professional.

Scientists Train Neural Network to Generate Process Plans from 3D Models

Researchers at the HSE FCS AI and Digital Science Institute have developed CAD2TechSpec, a framework that converts 3D models of mechanical parts into machining process plans—step-by-step instructions for machine tools. The solution aims to reduce the time required for the design and preparation of technical process documentation in mechanical engineering, aircraft manufacturing, and other high-tech industries. The study findings have been published in PeerJ Computer Science.

Researchers Assess Contributions of BRICS Countries to Leading ML/AI Conferences

The HSE Scientometrics Centre analysed more than 104,000 papers published between 2020 and 2025 and presented at ten top-level A* conferences ranked by ICORE 2026. The researchers examined the contributions of Brazil, Russia, India, China and South Africa. Together, these countries accounted for around 40,800 publications, or 39.2% of the total. However, the distribution is highly uneven, and a shared BRICS research space has yet to emerge.

Laboratory of Future Networks: HSE Telecommunications Research Institute Develops 5G/6G Research Testbed

The 5G/6G testbed at the HSE Telecommunications Research Institute is becoming a research platform, an educational laboratory, and a foundation for developing new software components for future networks. It makes it possible not only to observe how a mobile network operates, but also to change its operating conditions and measure the results: data-transmission speed, latency, errors, radio-resource utilisation, and other parameters. Based on the testbed, researchers plan to develop MIMO, O-RAN, xApp, and IAB technologies, as well as experiment with artificial intelligence.

Hybrid Intelligence: Competencies in the Age of AI Discussed at Technoprom-2026

Artificial intelligence is not creating new professions, but rather transforming the nature of existing ones. This was the conclusion reached by participants in the panel session ‘Hybrid Intelligence: Digital and Human Drivers of Development,’ organised by the Institute for Statistical Studies and Economics of Knowledge (ISSEK) at HSE University as part of the 13th International Forum of Technological Development (Technoprom-2026). The experts discussed how the nature of work is changing, which skills are becoming increasingly sought after, and what prevents companies from fully capitalising on new technologies.

Researchers Rank Recommendation Algorithms Using Sports Tournament Model

Researchers from the AI and Digital Science Institute at the HSE Faculty of Computer Science have developed an approach for selecting recommendation algorithms more effectively. Their approach uses pairwise comparisons of algorithms to create a tournament table, with the overall ranking based on their performance across all datasets in the tournament. This can reduce the number of algorithms that need to be tested when developing new services, saving both time and money. The study was presented at the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD 2026).