What Is a Recommendation System, and How Does It Work?
A recommendation system suggests films, products or articles based on what you and similar people liked before. Here is how the two main methods work.
On this page
Short answer
A recommendation system is software that suggests items a person is likely to want, such as films, products or articles, based on what that person and similar people liked before, using collaborative filtering, content-based filtering or a hybrid of both.
What is a recommendation system?
A recommendation system is software that suggests items a person is likely to want, such as films, products or articles, based on what that person and similar people have liked before. It turns past behaviour into a ranked list of suggestions that feels personal.
| Type | How it decides | Best for |
|---|---|---|
| Collaborative filtering | People who liked the same things as you | Shops and streaming with many users |
| Content-based | Items similar to ones you liked | Catalogues with clear item details |
| Hybrid | Both methods combined | Most large services |
| Knowledge-based | Rules about what fits your stated needs | Expensive or rare purchases |
The system does not know what you want. It makes a guess from patterns: if people with tastes like yours liked a film, it guesses you will like it too. The guess improves as the system sees more of your choices. A good starting point is our guide to building an AI proof of concept if you plan to test one.
How does collaborative filtering work?
Collaborative filtering works by comparing your behaviour with the behaviour of other users. The system builds a table of who liked what, finds users whose tastes overlap with yours, and suggests items those users liked that you have not seen yet.
There are two common forms. User-based filtering finds similar people, while item-based filtering finds items that are often liked together, such as two films that the same people rate highly. Item-based filtering is more common in large shops because item relationships change slowly, while user tastes change fast. The method needs enough data to work: a new user with no history gets poor suggestions until the system learns from a few choices.
Cold items cause the same problem in reverse. A new film with no ratings cannot be suggested by collaborative filtering, because the system has no record of anyone liking it. Teams handle this by mixing in content-based suggestions for new items until enough people have rated them.
How does content-based filtering work?
Content-based filtering works by looking at the features of items you liked and finding more items with similar features. If you watch many space documentaries, it suggests other films tagged with space, science and documentary, because those features match your history.
This method needs good item data: tags, categories, descriptions and, for text, the words used. It works well for new items, since a new film can be recommended as soon as it is tagged, even before anyone has watched it. Its weakness is narrowness: it keeps suggesting the same kind of item and rarely surprises you with something new.
What data does a recommendation system need?
A recommendation system needs three kinds of data: who the user is, what the items are, and what happened between them. The third kind matters most, and it comes in two forms: explicit signals such as ratings and likes, and implicit signals such as clicks, watch time and purchases.
Implicit signals are usually more plentiful, because people click far more often than they rate. A shop might record that a user viewed a product five times and bought it once, which is a stronger signal than a single five-star rating. Data quality matters more than volume: a system trained on bot clicks or accidental taps will recommend the wrong items. Teams should clean the data and check for fake or duplicate accounts before training.
Context adds a third layer. The same user may want different things at work and at home, or in the morning and at night, so many systems record time, device and location alongside each event. This extra context helps the system suggest a short news article on a phone in the morning and a long film on a television in the evening.
How do you measure whether recommendations work?
Measure a recommendation system by whether people act on its suggestions and whether the business gains from it. The usual numbers are click-through rate, conversion rate, and how often a suggested item is bought or watched to the end.
Example (hypothetical): an online shop shows recommendations to 10,000 visitors a week. Before the system, 400 of them clicked a suggested product, which is a 4% click-through rate. After improving the ranking, 650 click, which is 6.5%. That is 250 more clicks a week, and if one in ten clicks leads to a purchase, the shop gains 25 extra orders a week from the same traffic.
Offline tests come first: split past data into training and test sets and check whether the system would have suggested items people actually chose. Online tests come second, with a small share of real users seeing the new system while the rest see the old one, so the team can compare real behaviour.
How to build a first recommendation system
A first recommendation system should be simple and measurable. These five steps fit a small team and can be done in a few weeks.
- Pick one surface. Choose a single place to show suggestions, such as the product page or the home screen.
- Start with a simple rule. Use best sellers or items similar to the one being viewed before you train a model.
- Collect clean events. Record views, clicks and purchases in one place with user and item identifiers.
- Train a simple model. Try collaborative filtering first, since it needs only the user-item table.
- Test with real users. Show the new system to a small share of users and compare clicks and purchases.
Keep the first version small. A simple system that works and is measured beats a complex one that nobody can explain or trust. You can add a hybrid method later, once the simple version proves its value.
Common mistakes
The most common mistake is recommending the same popular items to everyone. Popular items are safe, but they teach the system nothing about individual taste, and users quickly learn to ignore a list that never changes.
- Cold start ignored. New users and new items need a plan, such as asking for a few preferences first.
- Only optimising clicks. Clickbait suggestions win clicks but lose trust and sales over time.
- No feedback loop. The system must learn from what people skip, not only from what they click.
- Dirty data. Bot traffic and duplicate accounts poison the training data.
Another mistake is never checking whether recommendations change what people buy. A system that suggests items people would have found anyway adds no value. Measure the extra orders or views that the suggestions themselves caused, not just the total.
Key takeaways
- A recommendation system ranks suggestions from past behaviour, not from knowing what you want.
- Collaborative filtering uses similar users; content-based filtering uses similar item features.
- Implicit signals like clicks and watch time are usually more plentiful than ratings.
- Measure click-through and conversion, and test with real users before scaling.
- Plan for the cold start: new users and new items need a fallback.
Frequently asked questions
What is the difference between collaborative and content-based filtering?
Collaborative filtering suggests items that similar users liked, while content-based filtering suggests items with features similar to ones you already liked. Most large services combine both methods into a hybrid system.
What is a recommendation system used for?
Recommendation systems are used by shops, streaming services, news apps and music apps to suggest products, films, articles and songs. They help users find items in a large catalogue and help businesses sell more of what they already stock.
What is the cold start problem?
The cold start problem is that a new user with no history, or a new item with no ratings, gets poor suggestions. Teams handle it by asking for a few preferences, showing popular items first, or using item features until behaviour data arrives.
How much data does a recommendation system need?
It needs enough user-item interactions to find patterns, which usually means thousands of users and items for collaborative filtering. Content-based methods need less behaviour data but more item data, such as tags and descriptions.
Do recommendation systems create filter bubbles?
They can, because content-based methods keep suggesting the same kind of item. Teams reduce this by mixing in popular or diverse items and by measuring whether users still discover new categories over time.
How do you test a recommendation system?
First test offline by checking whether the system would have suggested items people actually chose in past data. Then test online with a small share of real users and compare clicks and purchases against the old system.