Process mining and time-driven costing want the same raw material and ask different questions of it. Both start from an event log: a table where each row says that something happened to a case, at a time, done by someone or something. Process mining asks what the process actually looks like, which paths cases take, where they wait and where they loop. Time-driven activity-based costing asks how many minutes of which resource each case consumed, so that the cost of the resource can be charged to the case. The overlap is obvious once seen: the activities that a process mining tool discovers are candidate activities for a cost model, and the timestamps that let it draw a process map are the timestamps that let a cost model time the activities. I will describe the category of tool rather than any product, because the method does not depend on the vendor and I would rather not assert things about software I have not run this year.
How does process mining help build a TDABC model, and where do event logs stop being reliable?
A process mining tool reads an event log from a warehouse, planning, ticketing or plant system, discovers the activities and the paths cases actually take, and measures the time between events. For a cost model that yields three things: a list of activities grounded in what happened rather than what a manager remembers, a duration distribution per activity that can seed or test a time equation, and the variants, the cases that took the long path, which are where cost-to-serve differences hide. It stops being reliable in four places. Events that are missing, because work was done without a system touch. Events that mark a status rather than the work, so the gap between them is waiting, not effort. Cases that span resources or several orders, where the log does not say who did what for whom. And one log for a process that runs through five systems. Each needs a rule, a sample and a person who knows the floor to confirm it.
What an event log is, and which systems have one
A log for process mining needs three columns at minimum: a case identifier, an activity name, and a timestamp. Most operational systems produce something close without being asked. A warehouse management system records each scan against a pick list or an order. An enterprise resource planning system records document status changes, from order entry through delivery to invoice, with the user and time on each. A ticketing or service management system records the state transitions of a case: opened, assigned, in progress, waiting on customer, resolved. The article on WMS, TMS and MES logs covers what those files contain field by field; the point here is that the same extract feeds both the process view and the cost view, so the work of getting it once pays twice.
What process mining adds to a cost model
The first thing is the activity list. A TDABC model needs to know what activities the pool performs, and the usual source is an interview with the person who runs it. Interviews are good at the main path and poor at the exceptions, and the exceptions are where the cost is. A discovered process map shows every activity that appears in the log, including the ones nobody mentioned: the second approval that only some orders go through, the rework loop, the manual price check. The activities that appear in a small share of cases and consume a large share of the time are visible in a map and invisible in an interview.
The second is the duration distribution. For each activity the tool gives the time between the event that starts it and the next event, across every case, as a distribution rather than a single estimate. That distribution seeds the time equation: the median is a defensible base, and the way the duration varies with the case’s attributes, lines, value, channel, customer type, is what the equation’s coefficients try to capture. The article on estimation methods puts log-derived durations against interviews, sampling and studies on cost and error.
The third is the variants. Process mining tools group cases by the exact path they took, and the variants are, in cost terms, the cost-to-serve segments. Cases that went straight through cost the base; cases that took the path with two extra activities and a wait cost the base plus those activities. If the variants correlate with a customer or a channel, the model has found a cost-to-serve driver without anyone proposing it, and the causality test can be run on it with the log as evidence. That is the strongest use of the combination I know: the process view finds the driver, the cost view prices it.
The first limit: work that never touched a system
A log records system events, not work. The customer service agent who spends twenty minutes on the phone before opening a ticket, the warehouse supervisor who resolves a discrepancy at a desk with no scanner, the planner who reworks a schedule in a spreadsheet before entering the result, all do real work that appears in the log as nothing or as a single event at the end. A model timed only from the log will under-cost every activity with a large off-system component and over-cost the ones that are entirely scanned. The rule is to take the log’s activity list to the floor and ask, for each activity, what happens before the first event and after the last. Where the answer is substantial, the off-system part is estimated by interview or sampling and added to the equation as a constant, and the model documentation says so.
The second limit: status events are not effort
Many systems log states rather than actions. A ticket moved from open to in progress at 09:12 and from in progress to resolved at 14:30 did not consume five hours and eighteen minutes of an agent; it consumed some minutes of work spread across a day in which the agent handled forty other tickets. Elapsed time between status changes is a measure of waiting, queueing and interruption, and it is exactly what process mining is good at showing, because it is where the process is slow. It is not a measure of resource consumption, which is what a cost model needs. The rule is to classify each event pair as either a work interval, where the resource was engaged from one event to the next, or a state interval, where the case was waiting, and to time only the first. Where the log cannot distinguish them, the gap method with a cap, described in the WMS article above, is the usual compromise, and the cap is set by looking at the distribution rather than by guessing.
The third limit: shared resources and shared cases
The log says an event happened to a case; it often does not say which resource did it, and when it does, that resource may have been serving several cases at once. A batch pick serves a dozen orders on one walk; a truck route serves twenty deliveries; a planner’s rescheduling run touches three hundred orders. Process mining handles this by treating each case independently and drawing the map; a cost model cannot, because charging the whole walk to every order in it multiplies the cost by twelve. The rule is a split: minutes of a shared activity are allocated across the cases it served in proportion to something the activity did for each, lines for a pick, stops for a route, and the split rule is written into the model and shown to whoever audits it.
The fourth limit: one log, one system, one part of the process
A case that starts in a web shop, passes through an order management system, is picked in a warehouse system, delivered through a transport system and invoiced in the ledger leaves fragments of itself in five logs with five different identifiers, and joining them is where most of the effort goes and most of the errors enter. A model that mines only the warehouse log has a precise picture of picking and packing and no picture of order entry, credit control, customer service or returns, which is most of the cost-to-serve difference between customers. The rule is to be explicit about which activities the log covers, to time those from the log, and to time the rest by other means, in the same model, with the source of each equation stated. A model that is half mined and half interviewed is normal. A model that claims to be mined and is a quarter mined is a problem.
The validation step that cannot be skipped
Every mined activity list, every duration and every split rule goes to the people who do the work before it goes into the model. Not for approval in the ceremonial sense; for correction. The supervisor looks at the discovered map and says that the activity the tool named after a status code is really two different things, or that the four-minute median for a pick is right for the fast-mover aisle and wrong for bulk. Twenty minutes with the person who runs the area removes errors that no amount of further mining would find, because the errors are in the relationship between the log and the work, and only a person who does both knows it. The article on measuring times without surveillance also matters here: a log names people, and taking it to the floor means aggregating to the role first and being open about what the model is for, because a cost model that the team believes is a monitoring tool will get corrections designed to protect rather than to inform.
A practical sequence
| Step | What is done | What the log gives | What a person adds |
|---|---|---|---|
| Extract | One system, one closed month, case id, activity, timestamp, resource where available | The raw events | Which system, which month, and the join key if two systems are needed |
| Discover | Run the process mining tool, list activities and variants | Activities that actually occurred, paths, frequencies | Which discovered activities are one activity, which status codes are not work |
| Time | Duration distribution per activity, work intervals only | Medians, spread, relation to case attributes | The cap for gaps, the off-system constant, the split rule for shared work |
| Fit | Seed the time equation from the distribution and the case attributes | Coefficients that fit the month | Whether each coefficient makes operational sense, and which to keep |
| Validate | Review with the floor, then compare pool minutes to practical capacity | Total minutes by pool | The capacity figure, and the judgement on whether the utilisation is credible |
| Refresh | Re-run the timing on each closed month | Drift in durations and variants | Whether a shift is a process change, a data change or noise |
The last step is the reason to do this at all. A model timed by interview is timed once. A model timed from a log can be re-timed every month at almost no cost, which turns the timing from an assumption into a measurement and gives the monthly drift tests their best input.
The log tells you what the system saw. The map tells you where the cost hides, and the person on the floor tells you which of the two is right.
Where to start
One system, one month, one pool. Extract the events, discover the activities, and put the discovered list next to the list from the last interview with that pool’s manager. The difference between the two lists is the first finding, and it is usually the most valuable one the project will produce, because it is the set of activities that consume time and that nobody was costing.
Related reading: time equations, the cost driver library, cost to serve in logistics and what an AI-assisted allocation has to show an auditor.