Skip to main content

MercuryMinds

Five machine learning use cases have a genuine, documented track record in ecommerce: product recommendations, demand forecasting, dynamic pricing, fraud detection, and semantic search. Each has real evidence behind it — not vendor marketing, but specific, sourced results — and each also has specific data prerequisites that determine whether it will work for your business at all. The algorithm is rarely the constraint. Whether you have the right data, in the right shape, in sufficient volume, almost always is. This guide treats that distinction as the central finding, not a caveat mentioned once and forgotten.

Most "AI for ecommerce" content is written for someone evaluating whether AI is worth taking seriously at all. This isn't that article. It's written for a founder or CTO who has already decided ML matters and needs the next layer down: which specific use cases have real evidence behind them, what data you need before any of them will actually work, and whether building in-house or buying a vendor solution is the right call for each one — decisions that depend on your specific data maturity and team capacity, not a generic recommendation.

Each use case below follows the same structure deliberately, because the structure itself is the point: a real, sourced result first (so you can judge the evidence quality yourself, not just take a claim on faith), the specific data prerequisite that determines whether that result is reachable for your business, and an honest build-vs-buy call with the reasoning shown, not just the conclusion. If you only have time for one section, the cross-cutting "data foundation" section after the five use cases is the one that will save the most wasted engineering time — it's the pattern every documented failure in this space traces back to.

Clean, complete, centralized product & transaction data Recomm- endations Demand Forecast Pricing Fraud Detection Search
Figure 1 — All five use cases sit on top of the same foundation. Weak data underneath any node caps the ceiling on that use case, regardless of algorithm sophistication.

Product recommendations

Recommendation engines use collaborative filtering (what similar users bought), content-based filtering (what's similar to items a user already engaged with), or increasingly a hybrid of both, to surface products a shopper is statistically likely to want next — on product pages, in cart, and in post-purchase email.

Documented result: Amazon's own recommendation engine is widely cited as driving approximately 35% of the company's total revenue — the most frequently referenced existence proof of this use case's ceiling, though the exact figure traces to industry analysis rather than a specific Amazon disclosure filing, worth noting for anyone citing it further upstream.

Data prerequisites: A meaningful volume of user interaction data (views, cart adds, purchases) — collaborative filtering specifically suffers from the "cold start" problem with new products or new users, where there's no interaction history yet to base a recommendation on. Content-based approaches need clean, complete product attribute data to calculate similarity, which means the same catalog data quality work covered throughout this site's catalog management content is a direct prerequisite here, not a separate initiative.

A useful threshold worth knowing before evaluating vendors: most collaborative filtering approaches need a critical mass of transaction volume — commonly cited informally in the industry as at least a few hundred transactions per week across the catalog — before the collaborative signal outperforms simpler rule-based "frequently bought together" logic. Below that threshold, a hybrid approach leaning more heavily on content-based similarity (which doesn't require the same interaction density) typically outperforms a pure collaborative model, which is worth confirming directly with any vendor whose default configuration assumes higher traffic than your store currently generates. This threshold question is worth asking explicitly in any vendor evaluation call, since a vendor's case studies and default configuration are frequently tuned toward their largest, highest-traffic customers rather than a store closer to your current scale.

Build vs. buy: Buy for the vast majority of ecommerce businesses. Recommendation engines are one of the most commoditized ML use cases — platforms like Nosto, Dynamic Yield, and native recommendation features in Shopify/Salesforce Commerce Cloud have already solved the cold-start problem, the real-time serving infrastructure, and the A/B testing framework needed to validate lift. Build in-house only if you have genuinely unusual recommendation logic (a specific business rule set no vendor supports) or interaction volume large enough that vendor per-event pricing exceeds a small in-house team's fully-loaded cost — a threshold most mid-market ecommerce businesses never reach.

Demand forecasting

Demand forecasting models predict future sales volume by SKU, typically using gradient boosting, LSTM, or temporal fusion transformer architectures trained on historical sales data plus external signals (seasonality, promotions, pricing changes) — feeding directly into inventory purchasing and safety stock decisions.

Documented result: SupChains, a forecasting consultancy, ran a proof-of-concept for an international grocery retailer across a representative sample of 150 stores and 500 products, achieving a 33% forecast error reduction versus the retailer's existing planning software — a specific, methodologically-disclosed case study published directly by the practitioner who ran it, including the data preparation process and evaluation methodology, not just a headline number.

What makes this specific case study worth citing over a vaguer industry statistic is exactly what most vendor-published case studies omit: the practitioner's own account emphasizes that data collection, cleaning, and structuring — feature engineering, in the technical term — was treated as the foundational step the whole result depended on, requiring both business domain knowledge and data engineering capability together, not just a stronger model architecture applied to whatever data happened to already exist. Separately, published academic research on intermittent online sales (sparse, irregular demand patterns common in long-tail ecommerce SKUs) found deep learning approaches achieving up to 35% better accuracy than classical methods like moving averages or ARIMA — though the same research notes this gain is category- and data-dependent, not universal.

Data prerequisites: At minimum 12-24 months of clean historical sales data per SKU, ideally with promotional and pricing events tagged separately so the model can distinguish baseline demand from promotion-driven spikes. Sparse or intermittent sales data (long-tail SKUs with few historical transactions) is a genuinely hard sub-problem — deep learning approaches have shown up to 35% better accuracy than classical methods specifically for intermittent demand in published research, but this remains the hardest data condition for any forecasting approach to handle well.

Build vs. buy: This is the most genuinely build-justified use case on this list for mid-to-large catalogs, because forecasting accuracy gains compound directly into inventory cost savings at a scale that often justifies dedicated data science investment — but only once the data prerequisite above is actually met. For smaller catalogs or businesses without 12+ months of clean history yet, buy a vendor solution (many modern inventory and ERP platforms include forecasting modules) rather than building a custom model on insufficient data, since no architecture compensates for a short, noisy training history.

Dynamic pricing

Dynamic pricing models adjust prices algorithmically based on demand signals, competitor pricing, inventory levels, and (in the more sophisticated cases) price elasticity estimation, within rules-based guardrails set by the business.

Documented result: McKinsey and BCG research, cited consistently across industry sources, attributes roughly 2-5% incremental revenue growth and 5-10% margin improvement to well-implemented dynamic pricing — genuinely material for a retailer operating on thin margins, though achieved only through tested, incremental rollouts rather than a full-catalog, day-one deployment.

The regulatory dimension of this use case deserves specific attention for a founder/CTO audience, since it's genuinely different from the other four use cases in this guide: 2026 has seen a wave of state and federal proposals specifically targeting personalized pricing (different prices to different individual shoppers based on their own data), as distinct from demand-based dynamic pricing (the same price for everyone, adjusted by aggregate demand or competition signals). The technical architecture decision — whether pricing logic varies by individual shopper or only by aggregate market conditions — is also, increasingly, a compliance decision, and the two shouldn't be conflated when scoping a build-or-buy path for this use case specifically.

Data prerequisites: Real-time or near-real-time competitor price data, accurate and current cost data (so pricing decisions don't erode margin below an acceptable floor), and enough historical transaction data at varying price points to estimate price elasticity per product or category. Businesses lacking reliable cost data specifically should not automate pricing at all — this data gap is more dangerous here than in any other use case on this list, since a confidently wrong automated price at scale compounds fast.

Build vs. buy: Buy a rules-based-plus-ML hybrid platform (Prisync, Competera, and similar) for most businesses — the compliance and guardrail logic (avoiding predicting-pricing regulatory exposure, covered in our broader AI automation guide) is genuinely hard to get right, and vendors have already built it. Build only with a dedicated pricing team and genuinely proprietary elasticity models, typically justified only at larger scale where the 2-5%/5-10% gains translate to a meaningful absolute dollar figure exceeding the cost of a specialized in-house team.

Fraud detection

Fraud detection models score transactions in real time for the likelihood of being fraudulent, typically combining supervised classification (trained on historical labeled fraud/legitimate outcomes) with anomaly detection for novel fraud patterns not yet seen in training data.

Documented result: ACI Worldwide, a payments and fraud technology vendor, reports that its incremental machine learning models — which adapt continuously to new transaction data rather than requiring periodic retraining — outperformed traditional static models by more than 10% within the first three months of deployment. This is a vendor-published case rather than an independently audited third-party study, worth weighing accordingly.

The specific technical distinction worth understanding here — incremental versus static model retraining — is itself the more useful takeaway than the headline percentage: fraud is an adversarial problem, meaning fraudsters actively adapt their behavior specifically to evade whatever detection pattern is currently deployed, which means a fraud model trained once and left static degrades in effectiveness over time as fraud patterns shift, independent of how well it performed at launch. This is a structurally different maintenance requirement than the other four use cases in this guide, where model performance degrades more slowly and predictably — worth factoring into any build-vs-buy calculation, since an in-house fraud model requires genuinely ongoing retraining discipline, not a one-time build-and-forget investment.

Data prerequisites: A sufficient volume of labeled historical transactions — both confirmed fraud and confirmed legitimate — to train a supervised model, which is a genuine chicken-and-egg problem for newer or smaller merchants who haven't yet accumulated enough labeled fraud cases to train a reliable model from scratch. Real-time transaction data pipelines are also a hard requirement, since fraud scoring that arrives after a transaction has already processed provides no protective value.

Build vs. buy: Buy for the overwhelming majority of ecommerce businesses. Fraud detection is a genuinely adversarial problem — fraud patterns evolve specifically to evade whatever detection is currently deployed — and specialized vendors (Stripe Radar, Signifyd, Riskified, and similar) pool labeled fraud data across thousands of merchants, giving them a training data advantage no single mid-market business can replicate independently. Building in-house fraud detection is justified only at a transaction volume and fraud-loss scale that few businesses outside the largest marketplaces and payment processors actually reach.

Semantic and AI-powered search

Semantic (vector/embedding-based) search represents products and queries as high-dimensional vectors capturing meaning rather than exact keyword matches, enabling a search for "something to keep my coffee warm" to surface a thermal mug even if that exact phrase never appears in the product description. Modern production systems are almost always hybrid, combining vector recall with traditional keyword precision.

Documented result: Amazon's own conversion rate is widely cited as jumping from roughly 2% for browsing visitors to approximately 12% for visitors who use on-site search — one of the most frequently referenced data points for search's outsized impact on conversion, alongside Algolia's reported 70% reduction in zero-result search pages after implementing semantic (NeuralSearch) capability. Baymard Institute's own research separately found 61% of ecommerce sites perform below acceptable search-quality standards, underscoring how much unrealized value sits in this specific use case for most catalogs.

The technical reason semantic search closes this gap is worth understanding precisely, not just accepting as a marketing claim: traditional keyword search (TF-IDF, BM25-style algorithms) requires literal term overlap between a query and product text, which fails predictably on synonyms, typos, and descriptive natural-language queries — a shopper searching "something to keep my tea warm" gets no results from a keyword engine unless a product happens to contain that exact phrase, even if a thermal mug in the catalog is precisely what they want. Embedding-based semantic search instead maps both the query and every product into the same high-dimensional vector space, where semantic similarity (not literal word overlap) determines the match — closing exactly the gap responsible for the zero-result and misspelling failures Baymard and Algolia both document independently.

Data prerequisites: Complete, accurate, well-structured product attribute data is the single biggest prerequisite — an embedding model generates a vector from whatever text and structured data it's given, and a thin or inconsistent product description produces a correspondingly weak, unreliable vector regardless of how sophisticated the underlying embedding model is. This is the use case most directly downstream of the catalog data quality work covered throughout this site's content, more than any other on this list.

Build vs. buy: Buy for nearly every business. Algolia, Elasticsearch with vector plugins, Bloomreach, and similar platforms have solved the hard infrastructure problems (approximate nearest-neighbor search at scale, sub-300ms latency, hybrid ranking combining vector and keyword signals) that would take a dedicated team months to replicate. The genuinely limiting factor for most businesses isn't platform choice — it's whether the underlying product data is clean enough to generate useful embeddings from in the first place, which is a data investment no vendor purchase substitutes for.

What "build" actually requires in headcount and skill

For the specific cases above where build is genuinely justified — most commonly demand forecasting at scale with mature data — it's worth being concrete about what an in-house team actually looks like, since "build vs. buy" decisions are frequently made without a realistic headcount estimate attached. A minimally viable in-house forecasting capability typically needs at least one data engineer (building and maintaining the data pipeline feeding the model, arguably the more critical role than the modeling itself), one data scientist or ML engineer (model development, training, and evaluation), and ongoing product/business involvement to translate forecasting output into actual purchasing decisions. This is a genuine multi-person, ongoing commitment, not a single hire or a one-time project — model performance degrades over time without maintenance (retraining on new data, monitoring for drift) in exactly the way the fraud detection section above described for adversarial use cases, and to a lesser but still real degree for forecasting as market conditions shift.

Weigh this realistic headcount cost directly against the vendor alternative's fully-loaded annual cost before committing to build — the "free" appeal of using an open-source forecasting library obscures the ongoing engineering cost of running it well, in exactly the same way covered in this site's PIM software guidance regarding open-source platforms generally. A useful gut-check: if the vendor's fully-loaded annual cost is lower than roughly one senior data engineer's fully-loaded salary, build is very unlikely to be the correct call regardless of how appealing full customization sounds in the abstract.

The build-vs-buy pattern across all five use cases

A consistent shape emerges across every use case above, worth naming directly because it cuts against a common founder/CTO instinct to default toward building custom ML capability as a competitive differentiator: buy is correct far more often than build, specifically because vendors in each of these five categories have already solved genuinely hard infrastructure and data-pooling problems (cold-start handling, adversarial fraud pattern detection, sub-300ms vector search latency) that are expensive to replicate and rarely provide durable competitive advantage even when replicated successfully. The exception that justifies build — demand forecasting at meaningful scale with a mature data foundation — is the one use case on this list where the gains compound directly and proprietarily into a business's specific inventory economics, rather than being a largely commoditized capability every competitor can buy the same version of.

Use caseDefault recommendationWhen build is actually justified
RecommendationsBuyUnusual business rules a vendor can't support, or very high interaction volume
Demand forecastingBuy (small catalog) / Build (large, mature data)12+ months clean history, meaningful inventory cost at stake
Dynamic pricingBuyDedicated pricing team, proprietary elasticity modeling, large scale
Fraud detectionBuyTransaction volume rivaling the largest marketplaces/processors
Semantic searchBuyRarely — infrastructure replication cost consistently exceeds the benefit

The prerequisite that determines everything: data foundation

Read back across all five "data prerequisites" sections above and the same dependency recurs in different clothing each time: clean, complete, centralized data is the actual gate on whether any of these use cases deliver the documented results cited, not the sophistication of the algorithm chosen. A recommendation engine fed incomplete product attributes recommends products it doesn't understand; a forecasting model fed 6 months of noisy, untagged sales history can't distinguish a promotion spike from genuine demand growth; a semantic search implementation fed thin product descriptions generates weak embeddings regardless of which vendor's model computes them. This is the same "garbage in, garbage out" principle covered throughout this site's broader data engineering content, applied here specifically to the five highest-evidence ML use cases in ecommerce rather than to automation or catalog management generally.

The practical implication for sequencing: before evaluating any specific vendor for any of the five use cases above, audit honestly against that use case's specific data prerequisite. A business with excellent transaction history but poor product attribute data should prioritize catalog data quality before search or recommendations, even though both are nominally "buy, not build" — buying a great search platform and feeding it thin product data still produces a mediocre search experience, just one built on more expensive infrastructure than before.

It's worth stating this pattern once more in the most direct terms possible, because it's the single insight this entire guide is built to deliver: if you take away one thing from every use case and every documented result cited above, it should be that the case studies describing 33% forecast error reductions, 70% zero-result reductions, and 35% revenue attribution all came from organizations that had already solved their underlying data problem before applying the model. The model gets the credit in the headline number; the data engineering work is what actually made the headline number possible. Evaluate your own readiness against that reality, not against the headline alone.

Where LLMs fit relative to these five foundational use cases

A founder or CTO evaluating ML investment in 2026 is inevitably also weighing large language models specifically, which deserve a distinct note here since they're a different technology category from the classical ML techniques (gradient boosting, collaborative filtering, embeddings) underlying the five use cases above. LLMs are increasingly used as an orchestration and interface layer sitting on top of these foundational systems — a conversational shopping assistant that interprets a natural-language query and calls into the same underlying semantic search index covered above, or a customer-facing chat interface that queries a recommendation engine's output and explains it in natural language — rather than as a replacement for the underlying retrieval, ranking, or forecasting logic itself. The practical implication: an LLM-powered shopping assistant built on top of a weak product catalog and a thin search index will produce articulate, confident-sounding answers built on the same poor underlying data, which is arguably a worse failure mode than a visibly broken traditional search box, since a fluent wrong answer is harder for a shopper to recognize as wrong than an obviously empty result page.

This distinction is worth internalizing specifically because 2026 vendor marketing frequently blurs it — presenting an LLM-powered interface as if it were itself the source of improved search relevance or recommendation quality, when in most production architectures the LLM is a thin, fluent layer sitting on top of the same embedding indices and ranking models covered earlier in this guide. Evaluating an "AI shopping assistant" vendor pitch should include a direct question about what retrieval and ranking system sits underneath the conversational layer, since that underlying system — not the language model's fluency — is what determines whether the assistant's answers are actually good, not just well-phrased.

This reinforces rather than changes the core argument of this guide: the data foundation work described throughout is not made obsolete by the arrival of more sophisticated LLM-based interfaces — if anything, it becomes more consequential, since an LLM layer amplifies whatever it's built on top of, for better or worse, exactly as covered in this site's broader AI automation content regarding data quality as the ceiling on every automation investment.

A sequencing framework: which use case to tackle first

A founder or CTO facing all five use cases simultaneously, with limited engineering bandwidth to evaluate and implement any of them, needs a sequencing logic more actionable than "it depends" — the following order reflects both the relative data-readiness bar each use case requires and the relative downside risk of getting it wrong before the underlying discipline matures:

  1. Audit your data maturity against each use case's specific prerequisite before ranking use cases by theoretical impact — a use case with weaker documented upside but data you already have in good shape will outperform a theoretically higher-impact use case built on data that isn't ready.
  2. Start with search or recommendations if your product data is genuinely clean. Both are buyable, fast to implement, and produce measurable results (conversion rate, zero-result rate) within weeks rather than months.
  3. Treat demand forecasting as a medium-term investment, not a quick win, specifically because its data prerequisite (12-24 months of clean history) can't be shortcut regardless of budget — if you don't have that history yet, the right move is starting to collect and clean it now, not attempting to force a forecasting model onto insufficient data.
  4. Approach dynamic pricing and fraud detection last among these five for most businesses, not because they're less valuable, but because both carry meaningfully higher downside risk (mispriced inventory at scale, false-positive fraud blocks alienating legitimate customers) if deployed before the underlying data and monitoring discipline are mature.

Measuring whether a use case is actually delivering value

Each use case needs its own specific success metric, measured against a genuine baseline captured before implementation — not a generic "is AI helping" sense-check. This discipline matters more than it might initially seem, because every vendor in every one of these five categories will offer their own dashboard of favorable-looking metrics, and distinguishing a genuinely useful metric from a vanity one is a skill worth being deliberate about rather than assuming the vendor's default reporting is the right lens.

For recommendations, track incremental revenue per session specifically attributable to recommended-product clicks, isolated via A/B testing against a control group with recommendations disabled, not just aggregate revenue growth that could stem from many other factors. For demand forecasting, track forecast error (MAPE or a similar metric) against the pre-implementation baseline, plus the downstream inventory metrics (stockout rate, holding cost) the forecast is meant to improve. For dynamic pricing, track margin and revenue against a control group of unpriced or manually-priced SKUs, not just aggregate revenue movement that conflates pricing impact with everything else happening in the business simultaneously. For fraud detection, track both the fraud catch rate and the false-positive rate together — a model driving fraud losses to zero by also blocking a large share of legitimate transactions has not actually solved the problem, just relocated the cost. For search, track zero-result rate and search-to-purchase conversion rate specifically, both measurable within weeks of implementation.

The common discipline across all five: measure the specific outcome the use case claims to improve, with a genuine control or pre-implementation baseline, rather than accepting a vendor's own reported aggregate metrics as sufficient evidence the investment is working for your specific business.

Common failure patterns worth naming directly

Across every conversation about ML investment that goes wrong, a small number of patterns recur consistently enough to name explicitly, precisely because they're avoidable with the framework already laid out in this guide rather than requiring new information to fix:

  • Buying a sophisticated platform and feeding it poor data — the single most common failure across every use case in this guide, and the reason "which vendor" is consistently the wrong first question.
  • Building in-house for prestige rather than genuine justification. A custom-built recommendation engine or fraud model is a real engineering investment with real ongoing maintenance cost — justify it against the build-vs-buy criteria above, not against how it looks on an engineering roadmap.
  • Deploying dynamic pricing or fraud detection without adequate guardrails. Both use cases can cause real, fast damage (margin erosion, legitimate customer friction) when deployed without the rules-based boundaries a mature vendor platform builds in by default.
  • Treating a single case study as guaranteed, transferable results. Every documented result cited in this guide came from a specific business with a specific data foundation — a real result elsewhere is evidence the use case can work, not a guarantee it will produce the same magnitude of impact for your specific catalog and data maturity.
  • Measuring success with vanity metrics instead of the specific outcome the use case targets. "We implemented AI search" is not a result; a measured drop in zero-result rate and a measured lift in search-to-purchase conversion are results, and the gap between the two is exactly where most internal reporting on ML initiatives quietly goes soft.

Taken together, these five patterns point back to the same root cause as the data-foundation section above: most ML disappointments in ecommerce trace to a gap between what was measured or assumed and what was actually built or fed into the system, not to a fundamentally flawed technique. A founder or CTO who internalizes that distinction — and applies the documented-result, data-prerequisite, build-vs-buy structure used throughout this guide to any future AI investment decision, not just these five use cases — will make better-calibrated calls than one relying on vendor pitch decks or industry hype alone.

Not sure if your data can actually support these use cases yet?

We audit data readiness against the specific prerequisites for recommendations, forecasting, pricing, fraud, and search — before recommending which vendor or build path fits your situation. Talk to a team that's done this for 17+ years.

Talk to the Team →

Frequently asked questions

What are the most practical machine learning use cases for ecommerce?

Five use cases have the strongest documented track record: product recommendations, demand forecasting, dynamic pricing, fraud detection, and semantic/AI-powered search. Each has real, sourced results behind it, but each also has specific data prerequisites that determine whether it will actually work for a given business — the technique is rarely the limiting factor.

Should I build machine learning capabilities in-house or buy a vendor solution?

Buy when the use case is well-understood and commoditized (recommendations, basic fraud scoring, semantic search) — vendors have already solved the hard engineering problems and amortize that cost across many customers. Build when your use case involves genuinely proprietary signals or business logic a vendor can't reasonably support, or when the vendor cost at your scale exceeds a small in-house team's fully-loaded cost. Most ecommerce businesses should default to buy and reserve build for the specific case where it's clearly justified.

What data do I need before investing in ecommerce machine learning?

It varies by use case, but the common thread is clean, complete, centralized historical data: at least 12-24 months of transaction history for demand forecasting and dynamic pricing, a critical mass of user interactions (views, purchases) for recommendations, labeled historical fraud/chargeback outcomes for fraud detection, and complete, accurate product attribute data for semantic search. Without these prerequisites, even the best algorithm underperforms.

Which ML use case should an ecommerce business implement first?

Prioritize based on which prerequisite data you already have in usable form, not which use case sounds most impactful. A business with clean transaction history but no product recommendation infrastructure should start with recommendations or search, both buyable off-the-shelf. A business with messy, incomplete product data should fix that foundation first, since it caps the ceiling on every other use case, including search and recommendations.