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

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.
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:
How Neural Networks Detect and Interpret Wordplay: New Insights from HSE Researchers
An international team including researchers from the HSE Faculty of Computer Science has presented KoWit-24, an annotated dataset of 2,700 Russian-language Kommersant news headlines containing wordplay. The dataset enables an assessment of how artificial intelligence detects and interprets wordplay. Experiments with five large language models show that even advanced systems still make mistakes, and that interpreting wordplay is more challenging for them than detecting it. The results were presented at the RANLP conference; the paper is available on Arxiv.org, and the dataset and the code for reproducing the experiments are available on GitHub.
Human Intuition Proves Stronger than Algorithms: Game Theory Tournament Held at HSE University in Perm
Researchers from the International Laboratory of Intangible-driven Economy (Perm) and the HSE Laboratory of Sports Studies, together with mathematician and science populariser Alexey Savvateev, organised a game theory tournament entitled ‘The Election Race.’ Participants competed both against one another and against artificial intelligence. For now, humans have managed to gain the upper hand and propose more effective strategies.
Educational Programmes on Robotics and Neural Network Technologies Launch at HSE University’s Faculty of Computer Science
Every year, in response to IT industry demands, the Higher School of Economics Faculty of Computer Science launches new educational programmes while updating existing ones. In 2026, the faculty introduced Bachelor’s and Master’s degree programmes in robotics for the first time.
‘Policymakers Should Prioritise Investing in AI for Climate Adaptation’
Michael Appiah, from Ghana, is a Postdoctoral Fellow at the International Laboratory of Intangible-Driven Economy (IDLab) at HSE University–Perm. He recently spoke at the seminar ‘Artificial Intelligence, Digitalization, and Climate Vulnerability: Evidence from Heterogeneous Panel Models’ about his research on ‘the interplay between artificial intelligence, digitalisation, and climate vulnerability.’ Michael told the HSE News Service about the academic journey that led him to HSE University, his early impressions of Perm, and how AI can be utilised to combat climate change.
AI Overestimates How Smart People Are, According to HSE Economists
Scientists at HSE University have found that current AI models, including ChatGPT and Claude, tend to overestimate the rationality of their human opponents—whether first-year undergraduate students or experienced scientists—in strategic thinking games, such as the Keynesian beauty contest. While these models attempt to predict human behaviour, they often end up playing 'too smart' and losing because they assume a higher level of logic in people than is actually present. The study has been published in the Journal of Economic Behavior & Organization.
HSE Scientists Develop DeepGQ: AI-based 'Google Maps' for G-Quadruplexes
Researchers at the HSE AI Research Centre have developed an AI model that opens up new possibilities for the diagnosis and treatment of serious diseases, including brain cancer and neurodegenerative disorders. Using artificial intelligence, the team studied G-quadruplexes—structures that play a crucial role in cellular function and in the development of organs and tissues. The findings have been published in Scientific Reports.
HSE Strategic Technological Projects in 2025
In 2025, HSE University continued its participation in the Priority 2030 Strategic Academic Leadership Programme, maintaining a strong focus on technological leadership in line with the programme’s updated framework. A key element of the university’s technological leadership strategy is its Strategic Technological Projects (STPs), aimed at creating in-demand, knowledge-intensive products and services.
School Students Master Communication with GigaChat at HSE and Sber Hackathon
In late December 2025, a unique competition was held at HSE University where participants solved challenges not by writing code, but solely by interacting with Sber’s GigaChat artificial intelligence model. The Improm(p)tu hackathon was an experiment less about programming skills than a new form of literacy: the ability to work effectively with AI by translating complex problems into a language neural networks can understand.
Artificial Intelligence Transforms Employment in Russian Companies
Russian enterprises rank among the world’s top ten leaders in AI adoption. In 2023, nearly one-third of domestic companies reported using artificial intelligence. According to a new study by Larisa Smirnykh, Professor at the HSE Faculty of Economic Sciences, the impact of digitalisation on employment is uneven: while the introduction of AI in small and large enterprises led to a reduction in the number of employees, in medium-sized companies, on the contrary, it contributed to job growth. The article has been published in Voprosy Ekonomiki.
HSE Seeks New Ideas for AI Agents: Initiative Competition Launched
HSE University is inviting researchers and lecturers to present concepts for new digital products based on artificial intelligence. The best projects will receive expert and technological support. Applications are open until December 19, 2025.


