presentsUNAIVERSE
The UN AI timeline

Learn AI /Computer Vision and Language Technology /Topic modelling

Topic modelling

Also called: topic modeling, theme extraction.

Detail

In five seconds

What it is

A method that scans many documents and groups frequently co-occurring words into recurring themes, helping people see what a collection is mostly about.

In plain words

It is a way to scan many texts and find the main themes by noticing which words often show up together.

An everyday example

A team in Dakar receives 5,000 application forms. Nobody has time to read every page first, so they spread the forms across tables and look for pieces that often appear together: missing signatures, proof of address, school certificates, or medical documents. Soon, piles emerge such as “education records”, “identity papers”, and “health-related attachments”, even though some forms belong partly in more than one pile. A supervisor then gives each pile a practical label after looking at the documents inside. The piles help the team see the main patterns in the backlog before doing detailed review.

Where the story stops working

In the story, people can understand the meaning of each document and deliberately choose piles. A topic model does not read with human comprehension. It works from word distributions, so its topics can be mixed, vague or hard to name. Also, real models represent a document as a blend of topics with numeric weights, not as a form physically placed in one pile.

Remember thisTopic modelling proposes probabilistic themes from word co-occurrence. It does not discover definitive categories, and people must interpret the topics and check them against the source texts.

Understand it

Understand it

Why it matters

For a non-specialist, topic modelling matters because it helps turn a large pile of text into a manageable map of themes. That can support decisions about what to read first, what issues are recurring, and where manual review should focus. It is useful for surveys, complaint logs, consultation responses, archives and media monitoring. But its output is only a pattern-finding aid. If you treat the discovered topics as exact facts, clear public opinion, or complete summaries, you can make poor decisions. The safest use is to combine it with human review, sample checking and domain knowledge.

How topic modelling turns many documents into a small set of themes

After viewing this, a reader should be able to explain that topic modelling starts with many documents, detects recurring word patterns, and outputs topics plus topic mixtures for each document.

  1. 01

    1. Collect documents

    Start with many texts such as reports, comments or articles. The method works better when there is enough text to reveal repeated patterns.

    Draw a stack of 6 document icons on the left, each with 2 to 3 short lines. Add small labels like Report A, Comment B, Note C.

  2. 02

    2. Prepare the text

    Common formatting is removed and words are counted or otherwise represented so patterns can be compared across documents.

    Show the documents feeding into a middle box. Inside the box, display example tokens such as water, clinic, road, harvest, school as separated word chips.

  3. 03

    3. Find recurring word groups

    The model estimates hidden topics by spotting words that often appear together across the whole collection.

    Show 3 coloured clusters emerging from the middle box. Topic 1 has chips clinic, nurse, medicine. Topic 2 has road, bridge, transport. Topic 3 has rain, crop, harvest.

  4. 04

    4. Estimate topic mix per document

    Each document can contain several topics in different proportions, which helps with browsing and analysis.

    On the right, show 3 document cards with horizontal stacked bars, for example Report A: 60% Topic 1, 30% Topic 2, 10% Topic 3.

A left-to-right flow diagram with four panels: document collection, cleaned word counts, discovered topics, and document-topic mixtures. Read from left to right. Each panel shows how raw text becomes recurring word groups and then estimated topic proportions for individual documents.

Hovering over a topic colour highlights its top words and the matching segments in each document's stacked bar.

Describe this without the diagram

This diagram explains topic modelling as a four-step flow. First, many documents enter the process. Second, the text is prepared into comparable words. Third, the system identifies groups of words that frequently appear together across the collection, such as clinic-nurse-medicine, road-bridge-transport, and rain-crop-harvest. Fourth, each document is shown as a mixture of these topics, for example one document may be mostly health, another mostly transport, and another mixed. The main point is that the method finds recurring statistical themes across many texts and assigns each document a proportion for each theme.

With reduced motion: A static four-panel flow is shown with arrows between panels. Topic colours are fixed, and a small legend links each topic to its top words and to the stacked bars on the document cards.

Topic modelling looks across a collection of documents, often called a corpus, to find themes that appear repeatedly. The input is usually plain text such as reports, survey comments, news articles or support messages. The output is not a single summary. It is a set of topics, where each topic is represented by words that often appear together.

A topic here means a statistical pattern, not a human-written label. For example, one topic might contain words like “rainfall”, “crop”, “harvest” and “drought”. A person may then label that topic “agriculture and weather”. The system does not reliably know that label on its own. It only finds word groupings that tend to travel together across documents.

In simple terms, the method counts word patterns across many texts and estimates which hidden themes could explain those patterns. Many topic models also estimate two more things: which topics are common in each document, and which words are strongly associated with each topic. So one document might be estimated as 70% health services and 30% transport access.

This is useful when there are too many documents to read one by one. It can help with exploration, triage and briefing. But it can also mislead if the text is short, noisy, multilingual, poorly cleaned or taken out of context. Topic modelling is different from sentiment analysis, which looks for attitude such as positive or negative, and different from summarisation, which produces a shorter version of a text.

How “Sorting a large pile of application forms by recurring paperwork patterns” maps onto the real thing

In the storyIn the AI system
Application forms spread across tablesA corpus of many documents
Pieces that often appear togetherWords that frequently co-occur across documents
Piles formed from recurring patternsTopics inferred from statistical word patterns
Supervisor labels each pile after inspectionA human interprets and names the discovered topics

A worked example

A conference focal point in Lima is reviewing 240 published side-event concept notes before the programme is circulated.

Starting from: The notes contain phrases such as “affordable connectivity and rural access”, “digital skills for young people”, and “financing infrastructure through public and private investment”.

  1. The focal point tokenises and normalises the text, removes common function words and forms a corpus from the 240 notes.
  2. A topic model is configured to estimate three topics from patterns of words that frequently occur together.
  3. The model returns weighted word groups: connectivity, access, rural, network; skills, training, youth, education; and financing, investment, infrastructure, partnership.
  4. For one concept note, the estimated mixture is 0.65 connectivity, 0.25 financing and 0.10 skills. Another is 0.70 skills, 0.20 connectivity and 0.10 financing.
  5. The focal point reads representative notes, assigns practical labels to the three topics and checks whether the groupings remain sensible across languages.

Result: The topic mixtures give the focal point a first map of the programme and help identify heavily represented themes. They do not replace reading the concept notes or deciding how side events should be scheduled.

In a United Nations workplace

At Headquarters, a budget officer in a documentation and library service is preparing talking points for informals on the next workplan. Before clearance at close of business, she reviews several hundred published meeting records and non-confidential service-request summaries in an approved text-analysis environment.

A topic model can surface recurring clusters of co-occurring words, such as multilingual access, digitisation and accessibility. It can also show that a single record contains a mixture of themes, helping the officer structure the talking points without treating every document as belonging to one fixed category.

Before you try thisDo not place raw service requests in a tool that is not approved for personal or confidential information. Names, contact details and free-text identifiers must be removed where required. Topic labels are human interpretations, not model findings, and must be checked against source records, particularly across languages.

Where you may hear it

  • At a vendor demo for a text-analysis tool
  • During clearance of a monitoring report based on open-ended responses
  • In an inter-agency working group reviewing a document corpus
  • At a front-office discussion on how to structure a briefing note

Avoid confusion

Avoid confusion

Often confused with

Common misconceptions

  • Common misconception: It tells you exactly what each document means.

    Correction: Not exactly. It detects recurring word patterns across many documents. People usually still need to inspect documents and assign human-readable labels. A topic can be broad, mixed or ambiguous, especially when the text is short or noisy.

  • Common misconception: It is the same as sentiment analysis.

    Correction: No. Sentiment analysis looks for attitude or emotional tone, such as positive, negative or neutral. Topic modelling looks for themes such as health, transport or education. A document can be negative in tone and still belong mainly to a transport topic.

  • Common misconception: Each document belongs to one topic only.

    Correction: Many topic models represent each document as a mixture of topics. That matters because real documents often discuss several issues at once, such as health supplies and road access in the same field note.

  • Common misconception: The topics are objective truths discovered automatically.

    Correction: The results depend on the data, language, cleaning choices, number of topics requested and the model used. Topic labels are usually human interpretations. Different reasonable settings can produce different topic sets.

Quick check

What does topic modelling mainly produce from a large collection of documents?

Go deeper

Go deeper

The simple version

It is a way to scan many texts and find the main themes by noticing which words often show up together.

The technical version

Topic modelling is an unsupervised text analysis approach that infers latent thematic structure from a corpus. In common methods such as Latent Dirichlet Allocation, each document is modelled as a probability distribution over topics, and each topic as a probability distribution over words. The model estimates these distributions from observed word co-occurrence patterns, often after preprocessing such as tokenisation, stop-word removal and normalisation. The result is typically: top-weighted words for each topic, topic proportions for each document, and sometimes document groupings for exploration. This differs from simple clustering because the primary objects of interest are latent topics and document-topic mixtures, not only document groups. It also differs from classification because there are no predefined labels to predict.

Reviewed external resources

  • EncyclopaediaTopic model (opens in a new tab)Wikipedia

    Wikipedia gives a broad overview of the concept and common methods, which suits readers who want orientation before details.

    Intermediatelink checked 2026-07-31

  • ArticleMachine Learning Glossary (opens in a new tab)Google

    Google's Machine Learning Glossary helps readers clarify related terminology, which suits quick reference while reading other material.

    Intermediatelink checked 2026-07-31

  • CourseMachine Learning Crash Course (opens in a new tab)Google

    Google's Machine Learning Crash Course gives introductory machine learning context, which suits readers who want supporting background rather than a topic-modelling deep dive.

    Intermediatelink checked 2026-07-31

  • VideoVideo explanations: Topic modelling (opens in a new tab)YouTube search

    The YouTube search results page offers multiple video explanations from different creators, which suits readers who prefer to compare teaching styles before choosing one.

    search results, not one pagelink checked 2026-07-31

  • DiscussionCommunity discussion: Topic modelling (opens in a new tab)Reddit search

    The Reddit search results page shows community discussions and practical questions on the topic, which suits readers who want informal examples and debates with caution about reliability.

    search results, not one pagelink checked 2026-07-31

Where this came from

Drafted with a language model through an offline pipeline, checked against this site's schema, and every external link above fetched to see whether it answers. Treat it as a starting point and check anything that matters against the primary sources. How this site is built and what that means.

The one thing to remember

Topic modelling proposes probabilistic themes from word co-occurrence. It does not discover definitive categories, and people must interpret the topics and check them against the source texts.