The Marketing Science Signal logo

The Marketing Science Signal

Applied marketing science and AI, from model to revenue

Mike is a leader in the field of Marketing Data Science & Operational Strategy with 20+ years leading global Data Science, AI/ML, and Marketing Analytics teams at Dell Technologies, Cisco, Pure Storage, Hitachi Vantara and Hearst Media. He is also an Accredited Professional StatisticianTM with the American Statistical Association.
Solving the Discovery Problem: Collaborative Filtering and the Science of “Look-Alike” Behavior

Why Collaborative Filtering (CF) Matters

Executive Summary

In modern B2B or B2C marketing, the “Discovery Problem” is the primary barrier to growth. Collaborative Filtering addresses this by:

  • Driving Growth: Unlocking cross-sell and up-sell opportunities by identifying hidden preferences.
  • Managing the “Cold Start”: Effectively engaging new entry-point customers and prospects by leveraging “look-alike” behavior.
  • Precision for “Grey Sheep”: Navigating the complexity of low-frequency customers who purchase niche products.
  • Strategic Segmentation: Providing a mathematical foundation for persona development that goes beyond basic demographics.

This is the third and final installment in my series on recommender systems, presented in the order I first applied them in B2B marketing. Fourteen years ago, my team began using Association Rules for product recommendations and media mix optimization — a technique that learns from individual “baskets” or bundles. We then progressed to Markov Chains, which decode a single customer’s sequence of actions. In this article, we move to Collaborative Filtering: a method that looks across the entire ecosystem of customers and items to identify “look-alike” patterns.

It is a powerful tool for engaging prospects and solving the “cold start” and “grey sheep” problems that arise when historical data is scarce. Recently Jidan Duan built a recommendation engine using CF with Matrix Factorization that was effective in B2B digital hardware marketing.  In practice, keeping a Human In The Loop to inspect recommendations to ensure that the products recommended are optimal in terms of margin, future products vs. legacy products, or special strategic initiatives is critical and this can be accomplished through an additional layer of business rules.

As we will see in this article, the techniques can be used together – as well as independently – when needed to solve a particular marketing problem.

Illustration of look-alike customers linked by shared product purchases in a recommender system
ArticleAlgorithmUnit of AnalysisQuestion
1Association RulesBaskets / sessionsWhat travels together?
2Markov ChainSingle customer’s sequenceWhat comes next?
3Collaborative FilteringAll customers × all itemsWho buys like me?

The Dataset: High-Volume Retail Reality

To demonstrate these concepts, I am evaluating a subset of the H&M Personalized Fashion Recommendations dataset. In its raw form, the training data consists of over 31 million transactions.

Here is a brief description of H&M Group and the dataset:

“H&M Group is a family of brands and businesses with 53 online markets and approximately 4,850 stores. Our online store offers shoppers an extensive selection of products to browse through. But with too many choices, customers might not quickly find what interests them or what they are looking for, and ultimately, they might not make a purchase. To enhance the shopping experience, product recommendations are key. More importantly, helping customers make the right choices also has a positive implications for sustainability, as it reduces returns, and thereby minimizes emissions from transportation… the purchase history of customers across time, along with supporting metadata.”


Summary Technical Overview of Process

Methodology diagram for the collaborative filtering process, from data preparation to latent factors and personas

Data Preparation: Loading raw transactions and quality filter

At 35M rows, simply loading three datasets (customers, articles and transactions) and attempting to merge the data triggered a Memory Error.  I had to have an approach that would allow me to sample the data to get all the patterns using less memory. I removed columns, reformatted string IDs, removed customers with <3 purchases and filtered out all but the last six months of fashion data to get to the following:

Loading TransactionsRecords
Raw rows loaded  2,788,325
After quality filter  2,576,695
 Unique customers    300,006
 Unique clothing articles     37,878

Data Preparation: Exploratory Data Analysis

The Long Tail and Marketing Efficiency

If 20% of products drive 80% of H&M revenue (Pareto Principle), a top sales ranking could handle most purchases, so this is no surprise. Collaborative Filtering shines in the long tail — the 80% of items that collectively drive 20%+ of sales but are invisible to simple ranking.  In the data below:

  • 17.4% of unique items drive 80% of sales.
  • The remaining 82.6% is the long tail CF was built for.

H&M has a catalog depth of 38,000 items, but their current momentum is driven by just 17%. To grow, they don’t need more products, they need better cross- / up-sell of existing products. A traditional merchandising approach would focus on best-sellers.  By employing collaborative filtering the 31,500 items in the long-tail would be marketed to the suitable niche target audiences.

A retention campaign could be targeted at the 30-purchase loyal customers to proactively prevent churn.

Long-tail distributions of sales by product and purchases per customer
Frequency distributions indicate that a small group of products and customers account for most purchases, creating an opportunity for improvement through top customer retention and high-potential customer cross-/up-sell.

Matrix Sparsity: The Need for “Latent” Logic

With thousands of products and over 100,000 users, the resulting Utility Matrix (where rows are users and columns are items) is 99.9% empty space. This is “Sparsity.” Simple statistics can’t fill these gaps. We need an algorithm that can “see” the hidden—or latent—factors that connect a customer’s preference for a specific blouse to their likely interest in a particular style of sweater.

Record Category# of Records/Cells
Users300,006
Items             37,878
Matrix (300,006 x 37,878)     11,363,627,268
Filled (0.0227%)          2,576,695
Sparsity (99.9773%)     11,361,050,573

Visualizing the Utility Matrix

A Spy Plot can be used to understand the data.  By sorting the matrix by activity (most active users at the top, most popular items on the left), we can map our strategic challenges.

Visualizing Sparsity can help us build targeting segments for tactical use in messaging and promotion to improve sales through cross-/ up-sell, etc.

Customer segmentation such as the one above allow for a portfolio-style approach to marketing. Not all customers are treated equally.

The Four Quadrants of Interaction

  • Core Business (top left) are the “Champion” frequent shoppers of H&M popular items.  Association Rules from my earlier article could be applied here to increase their market basket of purchases and ensure retention.
  • Loyal Explorers (top right) heavily purchase the least popular items in the long tail.  Collaborative filtering can help in recommending low-volume niche products which appeal to look-alike customers.
  • Entry Point (bottom left) H&M shoppers may be new customers who have come in to purchase popular items. This is a Cold Start scenario where little data exists on the customer beyond popular product purchase and more of those should be served up – until more information is available.
  • Grey Sheep (bottom right) are occasional H&M shoppers who could be purchasing as a gift for someone else, or seasonally shopping.  Here again, there is little historical signal to help with recommendations.

Selecting Latent Factors

Scree plot of variance explained by each latent factor
Scree plotting is a first step in creating product recommendations tailored to different customer types.

Output: Hidden Dimensions: Latent Factor Loadings by Product Category

Statistically (using SVD or Singular Value Decomposition) we can separate the H&M customer base into groups or factors based on their product purchases, which allows us to make recommendations for each customer that are aligned with the typical purchases compelling to other customers in that grouping.

Latent factor loadings by product category used to define customer buying segments
Factor analysis for the creation of customer buying segments.

Looking at the patterns in the factor loadings, we can develop some personas based on the types of products purchased.  This can become the starting place for general customer segmentation by adding demographic, intent and other third party syndicated data as well as internal financial data.

FactorPrimary ProductMarketing LabelStrategic Insight
F1All CategoriesGeneral PopularityHigh-volume “Must-haves” across all segments. (Retention, x-/up-sell marketing).
F5/F9T-shirts, Shorts, Vest topsActive SummerHigh potential for seasonal x-sell (sunscreen/sunglasses).
F2Underwear, Vest topsFoundation CoreHigh-loyalty, repeat-purchase items (Retention focus).
F6Blouses, Sweaters, OuterwearProfessional“Back-to-Work” or “Evening” shopper persona.
F8Foundation WardrobeCasualX-sell complements of shorts, shirts, trousers, etc.

Summary

Once tuned and put into place, collaborative filtering can be a powerful tool for developing marketing output beyond product recommendations, which is an area it shines in because of its ability to deal with Grey Sheep and Cold Starts. It can also be combined with other techniques to develop a marketing segmentation scheme that is an enhanced version of RFM Segmentation as well as combine CF data with demographics and intent data to develop holistic customer personas.

I’ll come back to recommenders as I explore more applications of Agentic AI and marketing strategy.


Enhanced Technical Keywords & Methodology Index

Methodology & Strategy: Collaborative Filtering, Matrix Factorization, Singular Value Decomposition (SVD), Recommender Systems Architecture, Persona Development, Human-in-the-Loop (HITL) Marketing.

Statistical Concepts: Utility Matrix Sparsity (99.9%), Latent Factor Analysis, Root Mean Squared Error (RMSE) Optimization, Pareto Principle (Long Tail Analysis), Dimensionality Reduction.

Feature Engineering & Data Integrity: Utility Matrix Construction, Cold Start Problem Management, Latent Factor Loadings, Transactional Memory Management, High-Volume Data Sampling.

Business Intelligence: Marketing Efficiency Optimization, Cross-Sell/Up-Sell Dynamics, “Grey Sheep” Segmentation, Customer Loyalty & Retention, Seasonal Marketing Alignment.

Systems Architecture & AI: Agentic Decision Support, Scalable Data Pipelines, Recommender Engine Deployment, Automated Customer Segmentation.


Source: Foley, Michael E. (2026, April 1). Solving the Discovery Problem: Collaborative Filtering and the Science of “Look-Alike” Behavior. The Marketing Science Signal.


The Recommender Systems Series

Putting these methods to work in your organization? I advise B2B teams on quantitative go-to-market strategy through consulting and fractional leadership. Browse every article in the Article Archive.

Posted in ,

3 responses to “Solving the Discovery Problem: Collaborative Filtering and the Science of “Look-Alike” Behavior”

  1. […] Solving the Discovery Problem: Collaborative Filtering and the Science of “Look-Alike” B… […]

  2. […] Part 3: Solving the Discovery Problem: Collaborative Filtering and the Science of “Look-Alike” B… […]

  3. […] Part 3: Solving the Discovery Problem: Collaborative Filtering and the Science of “Look-Alike” B… […]

Leave a Reply