← Back to Podcast

Your first AI workflow needs a labeled past

You run a service business, and three teams want AI this quarter. You can fund one. Your managers want faster onboarding. Finance wants complete job records before an invoice goes out. Your president wants fewer exceptions landing in his inbox.

Before you choose, ask which of the three has years of decisions with the outcome written down. Score all three on consequence, volume and owner, then break the tie on their records. The records decide whether you can test a model on your own cases before it goes live.

A records archive with one long drawer of past case folders pulled open
Your past decisions, with what happened next.

Why the records matter so much

Data is where AI projects fail late. Researchers interviewed 53 AI practitioners (Sambasivan and colleagues, CHI 2021). Ninety-two percent of them reported at least one data cascade: a problem in the data that surfaces after the model itself has been built.

Look for three gaps in your own records:

  • Two people labeled the same case differently. The record disagrees with itself.
  • The outcome was never recorded. You know the decision, not what happened next.
  • The decision lives in email. It is not linked to the case or to its outcome.

Three tests for each request

Each request has to pass three tests first, and you can check all three this week.

Diagram of the rule for choosing the first AI workflow among three requests and one budget. Each request must have a consequence you can measure now, enough volume to judge a release, and one owner who can decide. Among the requests that pass, the one with labeled history, past decisions recorded with their outcomes, is tested on held-back cases before launch. A request without that history records decisions and outcomes first.
  • A consequence you can measure today. Days a finished job waits, or exceptions a week.
  • Enough volume to judge a release. Dozens of cases a week, not a few a quarter.
  • One owner who can decide. One executive over every team the work touches.

Run your three requests through them. Finance closes jobs every day, while onboarding happens only a few times a quarter. Onboarding is weak on volume: a few cases a quarter give you too little to measure a first release against, so it drops out at this stage. Invoicing and exceptions both pass. Each happens dozens of times a week, each has a number you can count today, and one executive sits over both finance and the field teams.

Before anything is built, check the settings. If your invoices wait on a missing job photo, and your field-service system can require a photo before a job closes, change that setting on Monday, then score what is left of the delay against the same three tests.

When two requests tie

Labeled history decides it. Engineers call it ground truth: past cases where the decision and its outcome were recorded. Here, every exception is logged in the billing system with your president's decision and what happened next: the customer paid, or the credit was reversed. Invoicing has no such record: nobody wrote down why a job was held.

So the exceptions request wins the tie. Its record can be used to train a model, and it can also test that model on your past cases before it touches any of your live work.

A new request lands beside the past cases most like it; the decisions your people made on them, and what happened next, are what the model learns from.

Grading the model on your cases

You hold part of the history back: the most recent six months of cases. The model is built on the older years and never sees those months. Then it decides them, seeing only what your people knew at the time, never the outcome that came later. You compare its answers, case by case, with what your people decided and with what actually happened next.

That is a train and test split. It gives you a score on your own cases, measured before a single customer is involved, so your decision to launch rests on that evidence.

What score is good enough

Compare that score with your own people, not with perfection. Have two of your reviewers decide a hundred of the held-back cases again, without seeing the original decision or the outcome. Where the two disagree, the case itself is unclear, so settle those cases first, before you score the reviewers or the model. If each reviewer matches the settled answers nine times in ten, that rate is your comparison point for the model on the same hundred cases.

Then write down which mistakes the model may never make, such as approving a credit above your approval limit, and send every case it is unsure about to a person.

Why the split follows the calendar

Split your records by date, not at random. A published engineering guide, Rules of Machine Learning, puts it as a rule: a model built on data up to January 5th is tested on data from January 6th onward, because that "better reflects what your system will do in production." A random split can put later cases into the training set, so the model is graded on a period it has already seen, and the score can overstate how it will do on future work.

What the model may not see

The harder condition is that the model sees only what your people knew at the time. Records collect fields after the decision: a note added when the credit was reversed, a status changed when the customer paid. Each one carries the outcome into the inputs.

This is called leakage, and it is common even in published research. A survey of research that uses machine learning found leakage errors in 17 fields, affecting 294 papers, in some cases leading to "wildly overoptimistic conclusions" (Kapoor and Narayanan, Patterns, 2023). A model that reads a field written after the decision can score well on your history and worse on live cases, where that field is still empty at the moment of decision.

Reading your own records

Check that each past case carries five things:

  1. The date of the decision. It sets which side of the split the case falls on.
  2. What was known then. The fields that existed when the decision was made.
  3. The decision itself. Approved, held, credited or escalated, in one field.
  4. The outcome and its date. Paid, reversed or disputed, and when that was known.
  5. Who decided. A name or a role, so that an odd case can be traced back.

For each field, the model may read only the value the field held at the moment of the decision. Where you cannot rebuild that old value, the field goes on a written list of inputs that the model may never read. That list keeps hindsight out of your historical test, so the score you see before launch is not inflated by facts that nobody had at the time of the decision.

A request with labeled history gets a score on its own cases before it goes live. One without it records decisions and outcomes first, so a model can be graded on what happened.

When neither request has history

Then your first release is the record itself. From next week, capture each decision, who made it and its outcome, in one place. Once a few hundred cases carry their outcome, you have your test set. Until then, your rules and system settings carry all of the work.

First steps this week

  1. Score the three requests. On consequence, volume and owner, before any build.
  2. Pull fifty cases from each of the top two. Check decision, outcome and dates.
  3. Fund the one whose records pass. Start recording outcomes on the other now.

References

  1. Sambasivan, N., Kapania, S., Highfill, H., Akrong, D., Paritosh, P., & Aroyo, L. Everyone Wants to Do the Model Work, Not the Data Work: Data Cascades in High-Stakes AI. CHI Conference on Human Factors in Computing Systems, 2021.
  2. Zinkevich, M. Rules of Machine Learning: Best Practices for ML Engineering. Machine Learning Guides.
  3. Kapoor, S., & Narayanan, A. Leakage and the Reproducibility Crisis in Machine-Learning-Based Science. Patterns, 4(9), 100804, 2023.

NEXT · TO PRODUCTION

Plan the first step.

Fifteen minutes with Omar.