Operations research

Process mining: how work really flows in your company, not on paper

Process mining reads your systems' logs to draw the real path of work and where it waits. A plain guide with 60 agency tasks, only a third of which went as planned.

The Wroke team Published 7 min read
A straight green path of five points, with many tangled orange lines over it passing the same points and looping back
In this article 7
  1. What process mining is
  2. What it needs: an event log with three columns
  3. Three uses
  4. The example: 60 tasks in a quarter
  5. What the agency does with this
  6. If you are starting small
  7. Frequently asked questions

Ask any manager how work flows in their company and they will draw you a straight line: the task starts, gets done, gets reviewed, goes to the client, and is finished. The line is true in their head. It is not what happens every day.

What actually happens is recorded somewhere: in the task system, in each task's history, and in when its status changed. Process mining is the discipline that reads these records and draws the real path from them.

What process mining is

The IEEE Task Force on Process Mining, in a manifesto written by more than 75 people from more than 50 organisations, describes it as a relatively young research discipline that sits between data mining on one side and process modelling and analysis on the other. Its idea is to discover, monitor and improve real processes, not assumed ones, by extracting knowledge from the event logs that information systems already keep.

The difference from ordinary data mining: data mining asks "what happened?" in numbers. Process mining asks "in what order did it happen, and how long did it wait between steps?"

What it needs: an event log with three columns

The starting point is an event log. The manifesto explains that all process mining techniques assume each event refers to an activity, a well-defined step in the process, and is related to a particular case, one instance of the process. The more extra information there is, such as the time of the event and who did it, the richer the analysis.

In a services company, the log looks like this:

Task New status Time
17 In progress 3 March 09:10
17 Internal review 4 March 15:40
17 Waiting for client 5 March 11:05
17 In progress 9 March 10:20
17 Waiting for client 10 March 16:00
17 Done 12 March 13:30

Task 17 did not go in a straight line. It came back from the client to work, then went to them a second time with no internal review. Thousands of rows like these add up to the real picture of your company.

Three uses

The manifesto sets out three types of process mining:

  1. Discovery

    You take the log alone, with no prior assumptions, and extract a map of the process as it happens: which step comes after which, and how often.

  2. Conformance

    You compare the log with the process you designed, to see where reality differs from the plan, and how often.

  3. Enhancement

    You add information from the log to the process map. Time is one: the manifesto says timestamps in the log let you show bottlenecks, service levels, throughput times and the frequency of each path.

The example: 60 tasks in a quarter

A marketing agency designed the path for each design task like this: new, then in progress, then internal review, then waiting for client, then done. We took the status history of 60 tasks over a quarter. The numbers here come from a simulated log for illustration, not from a real company.

What discovery showed

The 60 tasks went down 19 different paths. These are the most common:

Tasks Path
21 New → work → internal review → client → done
11 New → work → client → done
4 New → work → client → work → internal review → client → done
3 New → work → internal review → work → internal review → client → done
3 New → work → internal review → client → work → internal review → client → done

The other 18 are spread over 14 more paths.

The process map discovered from the log, with arrows between statuses and how many times each was taken
Each circle is a status, each arrow a move between two statuses, and the number on it is how many times. The orange arrows are paths that were not in the design: from work straight to the client, and from internal review or the client back to work

What conformance showed

  • Only 35% of tasks, 21 of 60, followed the designed path from start to finish.
  • 29 tasks went to the client at least once with no internal review.
  • 24 tasks, 40%, were sent back by the client for changes. Some came back twice.

None of this is necessarily wrong. Perhaps internal review is skipped on urgent work on purpose. But now you know it happens on nearly half the tasks, not "sometimes".

What enhancement showed: where the time goes

The average task takes 11.5 days from creation to done. This is how that time is split across statuses:

Status Share of all time Average per visit
New 15% 1.8 days
In progress 20% 1.2 days
Internal review 17% 1.5 days
Waiting for client 48% 3.4 days
Each status's share of all task time: waiting for the client is nearly half
Each bar is a status, and its length is its share of all task time. Waiting for the client is 48%; the actual work is 20%

Actual work is only a fifth of the time. For almost half the time, the task is sitting with the client. And tasks the client sent back for changes took 17.1 days on average, against 7.8 for those that did not come back.

What the agency does with this

Before the analysis, the first idea was "we need another designer". Afterwards it was clear the work itself is not the problem. As we explained in the theory of constraints, the constraint here is the client:

  • Make approval easier: send the work in one place with its files, and ask for a clear answer: approve, change or reject.
  • Cut revision rounds: agree clearly with the client what is wanted before starting, since 40% of tasks came back at least once.
  • Decide about internal review: if skipping it is intended, write it into the path. If not, find out why it happens on nearly half the tasks.

We explained in Little's law why every task takes longer when waiting work piles up. Process mining shows you exactly where it piles up.

If you are starting small

You do not need specialist software to try the idea:

  1. Start with a question

    One of the manifesto's principles is that log extraction should be driven by questions. Do not start with "let's analyse everything", but with one question: "why do design tasks take two weeks?"

  2. Make statuses mean something

    If a task stays "in progress" while it is really waiting for the client, the log will lie. One status for every real wait: "waiting for review", "waiting for client".

  3. Export and draw

    Export the tasks and the dates their statuses changed into a spreadsheet. For each status, work out how many times tasks entered it and how long they stayed.

  4. Compare with what you think

    Before you see the numbers, write down where you think the time goes. Then compare. The gap between the two is the most useful thing you will learn.

Frequently asked questions

What is process mining?

A discipline that extracts the real path of work from system logs, to discover how processes really run, compare them with the design, and show where time is lost.

What is the difference between process mining and data mining?

Data mining looks for patterns in numbers. Process mining cares about order and time: which step came after which, and how long the work waited in between.

What data do I need?

A log with at least three things for each event: a case number, such as a task or order number, the name of the activity or status, and the time it happened.

Is it useful for a small company?

Yes, if the work passes through a system that records status changes. Even a simple sheet of a few dozen tasks is enough to show where work waits.

Sources

Read next

All articles
A project timeline that branches in its second half into many possible paths, most of them running past the deadline line
Operations research

How to know a project will be late before it is

Halfway through a project you can already know when it will really finish. Three methods from your own data, from a simple check to a probability simulation.

6 min read

Ready to try Wroke with your team?

Create your company's workspace for free, bring your team in, and get going in minutes.

Get Started