AI Glossary / AI and machine learning / Advanced

Flow-based clustering

Definition

Flow-based clustering groups records by how they move through sequences or networks, clustering journeys rather than snapshots: customers by the paths they take, not the states they sit in.

What it means

Ordinary clustering compares records at a moment: these customers look alike today. Flow-based clustering compares trajectories: these customers arrive, browse and buy in the same sequence, whatever their current snapshot.

The unit of analysis is the path: page sequences, process steps, states visited over time. Two records are similar when their routes through the system are similar, measured by shared steps, shared order and shared timing.

This catches what snapshot clustering misses: a customer can look dormant today yet be mid-journey on a path that historically ends in a large purchase, because the path, not the position, carries the prognosis.

The technical challenge is representation: sequences must be turned into comparable forms, by alignment, embeddings of journeys, or flow aggregates between states, before any clustering method can run.

For a business, flow-based clustering answers where are they in the journey questions: it segments by behavior-in-motion, which is how onboarding funnels, patient pathways and production lines actually work.

The approach has a natural home wherever a funnel exists: sales pipelines, applications, treatments, deliveries. A funnel is a flow with a desired end, and clustering its paths shows you the ways people actually travel it, as opposed to the way the diagram says.

How it works

Define the journey unit: the sequence of states, pages or steps that constitutes one path, and its start and end conditions.

Choose a representation: raw sequences for alignment methods, summary flows between states, or learned journey embeddings.

Compute similarity between journeys with a method matching the representation, then cluster with standard machinery.

Interpret clusters by their characteristic paths: the common route, the common drop-off, the common detour.

Act per cluster: intervene at the step where that journey type typically stalls, rather than at some average point.

Expect a long tail of rare journeys: a few common routes and thousands of one-offs. The clusters live in the common routes; the tail is where unusual but interesting cases hide, worth a separate look.

Three practical examples

  • E-commerce: clustering browsing journeys into research-first, compare-then-buy and abandon-at-shipping paths.
  • Healthcare: clustering patient pathways through referral, diagnosis and treatment stages.
  • SaaS onboarding: clustering account activation journeys to find where each path type stalls.

Think of it this way

Think of tracking commuters rather than photographing the platform. A photo shows who is standing where; the tracking shows who is going where, by which route, and that is what a transport planner actually needs.

The limit: journeys are longer than snapshots and rarer than rows, so flow clustering needs more data per pattern and more patience per insight.

Worked example

clustering onboarding journeys

Suppose a software firm clusters trial users by their first-week event sequences rather than their day-seven status. The figures are illustrative.

Four journey clusters emerge, including one that looks idle by day seven but historically activates in week three after a specific feature is touched.

The firm stops sending abandonment offers to that cluster, which had been its best eventual customers, and instead nudges them toward the trigger feature.

Activation rises 9 per cent, almost entirely from the cluster snapshot analysis had written off.

Illustrative case study

A fictional hospital clustered patients by current ward and found nothing actionable; clustering by pathway, referral source, test sequence, time between stages, revealed two distinct routes to the same diagnosis, one twice as long.

The long route was not sicker patients, just a slower pathway through one department.

The invented lesson: the patient is not the problem when the path is. Cluster journeys and the bottlenecks introduce themselves.

Common misconceptions and mistakes

  • It is just time-series clustering. Time series are one flow; the idea covers any ordered path through states, including non-temporal process routes.
  • More journey detail always helps. Detail multiplies unique paths; aggregation and representation choices decide whether patterns or noise dominate.
  • The clusters are customer segments in the usual sense. They are behavioral route types; the same customer can belong to different route clusters on different occasions.

Business use

Define the journey boundary carefully: what starts and ends a path changes every conclusion downstream.

Start with flow aggregates between states before exotic sequence methods; a simple state-transition summary often finds the actionable clusters.

Present results as route maps, not segment tables; the audience for journey findings thinks in paths.

Pair journey clusters with conversion outcomes: the point is not the taxonomy of paths but knowing which path types end well, so effort goes to moving people between routes, not just labeling them.

People also ask

What data does flow-based clustering need?

Ordered event or state records per entity, with enough journeys that route patterns repeat.

How are journeys compared?

By alignment methods, shared-subsequence measures, transition aggregates or learned sequence embeddings.

When is it worth the effort over snapshot clustering?

When prognosis or diagnosis lives in the route: funnels, pathways, processes and anything with stages.

Who uses journey clusters most?

Growth and onboarding teams, clinical pathway designers and process engineers: anyone whose world is a funnel with stages.

Check your understanding

Why can flow-based clustering find valuable groups that snapshot clustering misses?

Answer: Because it clusters on the path taken, so records that look identical right now but are traveling different routes separate, and vice versa.

Related terms

  • Clustering
  • Trajectory
  • Segmentation
  • sequence analysis
  • customer journey
  • process mining

Learn next

AI for Business Owners explains how to read customer behavior as journeys rather than snapshots: https://aiforbusinessandlife.com/academy/ai-for-business-owners. [C2]

More in AI and machine learning

  • Filters, random fields, and maximum entropy model - The filters, random fields, and maximum entropy model, usually called FRAME, is a probabilistic model developed for texture analysis and synthesis.
  • Finite mixture model - A finite mixture model describes data as coming from a fixed number of underlying groups, each with its own distribution, so one dataset can be read as...
  • Fitness approximation - Fitness approximation estimates the quality of candidate solutions using a cheaper substitute for an expensive or unavailable evaluation.
  • Flow-based generative model - A flow-based generative model represents a complex probability distribution by transforming a simpler distribution through reversible mappings.
  • Focused information criterion - The focused information criterion, or FIC, selects a statistical model with attention to a particular quantity the analyst wants to estimate.
  • Force control - Force control regulates the force or torque a machine applies while interacting with an object or its environment.

Sources

[S12] Aalto University, Dictionary of Machine Learning. Full URLs are in the source ledger. Verified 11 October 2026.

Previous: Fligner-Killeen test Next: Flow-based disjoint paths

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer