Process mining

On this page 7

Process mining is a data-driven technique that reconstructs how business processes actually run by analyzing event logs recorded in information systems such as ERP, CRM and ticketing platforms. In business automation, it shows the real sequence of activities, their variants, waiting times and deviations, so that organizations can decide which processes to improve or automate on the basis of evidence rather than interviews and assumptions.

Every system that records who did what and when leaves a digital trace. Process mining assembles these traces into cases, for example one purchase order or one customer complaint, and derives a process model from thousands or millions of them. The result often differs sharply from the documented process, which is precisely its value.

The event log at the heart of process mining

Process mining requires an event log in which each event has at least three attributes: a case identifier, an activity name and a timestamp. Everything else, such as resources, costs or document types, enriches the analysis but is optional.

AttributeExampleRequiredEnables
Case IDPurchase order 4500012345YesGrouping events into cases
ActivityApprove purchase requisitionYesBuilding the process map
Timestamp2026-03-04 09:15:22YesOrdering and duration analysis
ResourceUser ID or bot IDNoWorkload and handover analysis
Case attributesSupplier, plant, order valueNoRoot-cause segmentation
Lifecycle statusStart or completeNoSeparating waiting from working time
Minimum and optional attributes of an event log

Building the log is usually the largest effort in a project. Data must be extracted from several tables, joined on keys, mapped to meaningful activity names and cleaned of time zone and clock problems. Standard formats such as XES and the newer object-centric OCEL exist to exchange event data between tools.

Main types of process mining analysis

Process mining is commonly divided into discovery, conformance checking and enhancement, three analysis types that answer different questions about the same log.

TypeQuestion answeredTypical output
Process discoveryHow does the process really runProcess map, variant list, Petri net or BPMN model
Conformance checkingWhere does reality deviate from the intended modelFitness scores, list of violations
EnhancementWhere are the delays and costsAnnotated model with durations and frequencies
Predictive monitoringWill this open case be lateRisk scores for running cases
Object-centric miningHow do related objects interactLinked views of orders, deliveries and invoices
Core types of process mining

Discovery algorithms range from simple directly-follows graphs to the inductive miner, which guarantees a sound model, and heuristic approaches that tolerate noise. Directly-follows maps are easy to read but can suggest paths that never occur in any single case, so conclusions about sequences should be verified against the underlying variants.

Process mining belongs to a family of techniques for understanding work, and the main differences lie in the data source and the level of detail.

ApproachData sourceLevel of detailMain strength
Process miningSystem event logsEnd-to-end process across systemsObjective view at full volume
Task miningDesktop activity recordingsClicks and keystrokes within a taskFinds RPA candidates in manual work
Process modeling workshopsInterviews and expert knowledgeIntended processCaptures intent and context
Business process managementDesigned models and enginesExecutable processControls and runs the process
Business intelligenceAggregated dataKey figuresTrends, but no sequence view
Process mining and neighboring approaches

Process mining and task mining are complementary. Process mining reveals that, say, invoice matching takes four days on average; task mining shows what clerks actually do on screen during those days, which tells an automation team whether a bot, an integration or a rule change is the right fix.

Using process mining to target business automation

Process mining is most valuable in automation when it is used to select, size and verify automation opportunities rather than only to draw maps.

  • Rework loops, such as repeated price changes on an order, indicate upstream data problems that automation should fix at the source.
  • High-volume manual activities with stable inputs are strong candidates for RPA or straight-through processing.
  • Long waiting times between activities point to approvals or handovers that rules or notifications can shorten.
  • Rare variants usually represent exceptions that are cheaper to leave manual than to automate.
  • Bot activity in the log, recorded under a bot user, allows measuring whether automation really reduced lead time.

Typical measures include case throughput time, the share of cases following the happy path, the automation rate per activity and the frequency of rework. Comparing these before and after an automation project provides the evidence that interviews cannot supply.

Limitations and common mistakes

Process mining sees only what systems record. Phone calls, emails outside integrated tools and paper steps leave gaps that the process map silently omits.

ProblemConsequenceMitigation
Wrong case notionMisleading flows and durationsChoose the case ID with business owners
Inconsistent timestampsActivities appear in the wrong orderNormalize time zones and clocks
Spaghetti modelsUnreadable maps with hundreds of pathsFilter variants and segment by attributes
Convergence and divergenceDouble counting across related objectsUse object-centric event data
Privacy concernsResistance from staff and works councilsPseudonymize resources and agree on use
Analysis without ownershipInsights never acted onTie findings to process owners and targets
Frequent problems in process mining projects

A frequent misconception is that process mining explains why a deviation happens. It shows where and how often; the cause still requires domain knowledge, segmentation by case attributes and conversations with the people who do the work.

A plain-language summary

Process mining works like reading the footprints a process leaves behind. Every time someone creates an order, approves it or pays an invoice, the computer notes the time. Process mining collects those notes and draws a map of what really happened, step by step.

That map often surprises people. It shows detours, loops and long waits that nobody had noticed, and it helps decide which parts of the work are worth automating and which simply need a better rule.

An example from practice

A wholesale distributor wants to automate its purchase-to-pay process and asks which steps to tackle first. The team extracts about 18 months of events from the ERP system for roughly 250,000 purchase order lines and loads them into a process mining tool.

Discovery shows that only a minority of cases follow the intended path. The most frequent deviation is a price change after goods receipt, which triggers a blocked invoice and a manual release that adds several days. Segmenting by supplier reveals that a small group of suppliers causes most of these changes because their contract prices are outdated in master data.

The distributor fixes the master data, automates invoice matching for the clean cases and sets up an alert for new price deviations. A follow-up analysis six months later shows a clearly higher share of cases on the happy path and shorter throughput from order to payment.