A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Content-Based Filtering

Graduate Depth 90 in the knowledge graph ☐ I know this ☆ Set as goal
502prerequisites beneath it
See this on the map →
Recommendation SystemsFeature Engineering and Selection→
content-based item-features user-profile

Core Idea

Content-based filtering recommends items similar to those a user previously liked, using rich item features (genre, actors, keywords). User profiles aggregate interaction history; recommendations match profiles to item features using similarity metrics. This approach handles new items well but requires detailed metadata and can lead to narrow recommendations.

Explainer

From your introduction to recommendation systems, you know the basic challenge: given a user's history, predict what they will like next. Content-based filtering approaches this by focusing on *what* items are, rather than *who else* liked them. If you enjoyed a science fiction novel with themes of artificial intelligence and a dystopian setting, a content-based system looks for other items sharing those features — regardless of whether any other user has rated them. This stands in contrast to collaborative filtering, which relies on finding similar users.

The system works in two stages. First, each item is represented as a feature vector describing its attributes. For movies, features might include genre, director, cast, plot keywords, and release year. For articles, features could be extracted using techniques from feature engineering — TF-IDF vectors of the text, named entities, topic tags. Second, the system builds a user profile by aggregating the feature vectors of items the user has interacted with, weighted by their ratings or engagement signals. If a user has watched and rated highly ten action movies and two romantic comedies, their profile will have strong weights on action-related features. Recommendation then becomes a similarity computation: score each candidate item by how closely its feature vector matches the user profile, typically using cosine similarity or dot product.

Content-based filtering has a distinctive strength: it handles the cold-start problem for items elegantly. A brand-new movie that no one has rated yet can still be recommended based on its metadata — its genre, director, and plot description are enough to match it against user profiles. Collaborative filtering cannot do this because it needs rating data from other users. Content-based systems are also transparent: you can explain a recommendation by pointing to the matching features ("recommended because you liked other films by this director").

The approach has real limitations, however. It requires rich, structured metadata for every item, which can be expensive to create and maintain. More fundamentally, content-based filtering tends toward over-specialization: it recommends items similar to what the user already likes, creating a filter bubble that never surfaces surprising or diverse content. A user who has only watched comedies will never be recommended a documentary, no matter how much they might enjoy it. This is why production systems often combine content-based filtering with collaborative methods in hybrid approaches, using content features to handle new items and cold starts while relying on collaborative signals to introduce serendipity and capture preferences that metadata alone cannot express.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Vectors in Two Dimensions → Vector Operations: Addition, Subtraction, and Scalar Multiplication → Dot Product (Inner Product in R^n) → Matrix Multiplication → Determinants of 2×2 and 3×3 Matrices → Invertible Matrices and Matrix Inverses → Systems of Linear Equations and Matrix Form → Gaussian Elimination and Row Reduction → Row Echelon Form and Back Substitution → The Standard Matrix of a Linear Transformation → Composition of Linear Transformations → Change of Basis and Coordinate Systems → Diagonalization → Principal Component Analysis → Dimensionality Reduction Techniques → Feature Engineering and Selection → Content-Based Filtering

Longest path: 91 steps · 502 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.