A recommendation system built on hundreds of thousands of receipts

Retail and e-commerce

Michael Jan Rogocki delivered this project before founding cm-opti. We use the same method in client projects today.

Industry and type of organization

A retail chain with its own e-commerce channel and hundreds of thousands of transactions. The receipts held knowledge no one was reading: what customers buy together.

Business problem

The chain had the full purchase history, but that knowledge lay untouched in the receipts. Decisions about what to place next to what, what to suggest at the checkout and what to keep in stock were based on experience, even though the answer was in the receipts themselves: what actually lands together in the basket.

Approach and scope of work

Hundreds of thousands of receipts were analyzed with market basket analysis, one of the classic data mining techniques, to extract association rules: which products go into the basket together and how often. These patterns became the basis of a recommendation system that suggests combinations backed by sales data.

The same result can be used in several places: in data analysis for inventory planning, in sales as a prompt for staff, and as product recommendations on the website.

The foundation in this project was market basket analysis, which works on anonymous receipts because it only looks at what is in the basket. It covered all sales: both online and register receipts from brick-and-mortar stores. Collaborative filtering, in turn, is a general recommendation method based on the behavior of customers with similar baskets ("customers like you also bought"). It requires linking purchases to a customer, so it works wherever that is possible, both online and with a loyalty card in a brick-and-mortar store.

Business impact

hundreds of thousands

receipts analyzed

product co-occurrence patterns

3 uses

cross-selling, inventory, online prompts

one model, many points of use

Product combinations rest on what really happens in the baskets, not on guesswork. The same analysis suggests what to offer at the point of sale, what to place side by side and what to keep in stock.

Basket patterns reveal two things that are hard to spot by eye. Slow-moving goods often sell alongside a specific bestseller, so adding them to such a combination clears stock that would otherwise sit unsold. You also see non-obvious links between products already in the range that no one had deliberately paired before, and each one is a ready-made idea for a new product bundle.

Scale of the implementation

The analysis covered the chain's full sales history. The longer the history, the more reliable the co-occurrence patterns.

If you have a sales history that no one draws conclusions from, describe your case to us. We will check what patterns can be found in it.

Related articles in the cm-opti knowledge base

Service area: Machine learning and forecasting (data analysis and recommendation systems).

More case studies