Insights

Prepare Data for AI Implementation Before the Consultant Arrives

To prepare data for AI implementation, pick one business decision the AI will improve, then gather, clean and document only the data that feeds that decision. Most teams try to tidy everything first, which burns months on records the model never touches. Arrive with a named use case, a data inventory and about 100 hand-checked records, and a consultant can start building on day one.

TL;DR:

  • Scope data work to a single use case. Cleaning the whole warehouse is the most common way to waste a quarter.
  • Build a one-page inventory (source, owner, refresh rate, known problems) before anyone outside your company sees a row.
  • Hand-check 100 random records and fix the defects you find. That sample predicts more about project risk than any dashboard.
  • Split data into training, validation and test sets before any preprocessing, and split by time if the data has dates.
  • Clear access, privacy and legal sign-off in week one. Waiting on permissions stalls more projects than bad data does.

Table of Contents

Prepare Data for AI Implementation Around One Use Case, Not the Whole Warehouse

The standard advice is to get your data "AI-ready" across the company first. That advice is wrong for most businesses under a few thousand employees. "Ready" has no meaning without a task. Data that is perfect for forecasting inventory can be useless for classifying support tickets, and you will not know which fields matter until a use case tells you.

Write the use case as one sentence with a number in it: "Predict which invoices will be paid more than 30 days late, so collections calls the right 50 accounts each week." That sentence tells you which tables you need (invoices, customer history, payment records), which you can ignore (marketing, HR), and what a good result looks like.

If you have not yet chosen who will build the thing, our guide to hiring an AI implementation consultant who ships covers that decision. This article covers the weeks before they start, so their first invoice is not spent on discovery you could have done yourself.

The One-Page Data Inventory a Consultant Will Ask For First

Every competent consultant starts by asking what data exists, where it lives and who can approve access. If you can answer on one page, you have saved a week or more. For each source that touches your use case, record:

  • Location and format. Name the system (CRM, ERP, spreadsheet on someone's laptop) and the export format. A spreadsheet on a laptop is a finding, not an embarrassment.
  • Owner. One named person who can grant access and explain odd values. If nobody can, flag it. Orphaned data is where definitions quietly diverge.
  • Refresh rate. Real-time, daily, monthly or "whenever Dana updates it." A model trained on monthly data cannot make hourly decisions.
  • History depth. Models learn from past outcomes. Two years of history with outcomes recorded beats ten years with none.
  • Known defects. Duplicates, missing fields, a system migration in 2021 that changed how status codes work. You know these already. Write them down.

Add a one-line data dictionary for every column you expect to matter. If two departments define "active customer" differently, settle it now. A model will learn whichever definition sits in the training data and apply it silently.

Cleaning, Labeling and Formatting: The Steps That Move Results

Competing guides list a dozen preprocessing steps. Four of them decide most outcomes in business projects, and you can start on them before anyone is hired.

Audit a Random Sample by Hand

Pull 100 random rows from your primary table and read them. Do not sort first and do not take the most recent. Mark every row with a wrong, missing or contradictory value. If more than a handful are bad, the problem is upstream in how data is entered, and no cleaning script will keep up.

Pull 100 random rows and read them yourself. If you cannot explain every column in ten minutes, a model will not do better.

Fix Labels Before Features

Supervised models learn from the outcome column: paid or unpaid, churned or retained, fraud or legitimate. If that column is inconsistent, everything downstream inherits the noise. Check that the label means the same thing across time and teams. If you must create labels by hand, start with a few hundred examples, have two people label the same 50, and compare. Frequent disagreement usually means the definition is unclear.

Handle Missing Values With a Reason

Dropping rows with blanks is the default and often the wrong choice. If the blank is informative (a customer who never filled in a phone number behaves differently), keep it and add a "missing" flag. Delete only when the data is missing at random and you can spare it.

Standardize Formats Once, in One Place

Dates in three formats, currencies without codes, "N/A," "n/a" and "null" in the same column. Fix these in a single documented script rather than by hand in a spreadsheet, so the same steps run on new data later. Google's Rules of Machine Learning warns about training-serving skew, where data is processed one way during training and another in production. A documented script avoids it.

Practice datasets on Kaggle arrive pre-cleaned, with labels attached and a fixed question. Real business data does not. Expect preparation to take most of the project's effort.

Data problem How to spot it Fix before kickoff
Duplicate records Same customer ID or email appearing 2+ times Deduplicate on a stable key and keep a log of merges
Inconsistent labels Two reviewers disagree on the same 50 records Rewrite the definition, relabel the disputed set
Stale data Last update older than the decision cycle Fix the export schedule or narrow the use case
Hidden proxies A column that only exists after the outcome (such as "refund issued" when predicting returns) Remove it from the feature list
Sparse history Fewer than a few hundred examples of the outcome you want to predict Collect longer, or pick a simpler rules-based approach

Splitting Data Into Training, Validation and Test Sets Without Leaking

Two pairs of hands sorting wooden blocks into separate trays on a table, with one tray kept apart from the rest.

You split data so the model is judged on records it has never seen. Training data teaches the model, validation data helps you tune it, and the test set is touched once at the end to give an honest score. A common split is 70/15/15 or 80/10/10, and with small datasets cross-validation uses the rows better.

Most guides skip the order: split first, then preprocess. If you compute averages, scale values or fill blanks using the full dataset before splitting, information from the test set leaks into training. The scikit-learn documentation on common pitfalls describes this data leakage and recommends fitting every preprocessing step inside a pipeline on the training portion only. Get it wrong and the model scores well in the lab and disappoints in production.

A random split is wrong in two cases:

  • Data with dates. If you are predicting the future, train on the past and test on the most recent period. A random split lets the model peek at tomorrow.
  • Repeated entities. If one customer has 40 rows, keep all of them in the same set. Otherwise the model memorizes the customer and looks smarter than it is.

Access, Privacy and Governance: The Gates That Stall Projects

In our experience, permission delays cost more calendar time than data defects. Start these in week one, in parallel with cleaning.

  • Legal basis for personal data. If you handle data on people in the EU, the GDPR applies to training data as it does to any other processing. Check whether the original collection purpose covers this new use.
  • Minimization. Send only what the use case needs. Strip names, emails and national IDs from the extract if the model does not use them.
  • Access method. Decide whether the consultant works inside your environment or on a copy. A read-only account on a staging replica is usually the fastest safe option.
  • Provenance and documentation. The NIST AI Risk Management Framework treats data quality and the documentation of where data came from as part of managing AI risk. Your inventory page from earlier doubles as that record.

GDPR Article 5(1)(c) requires personal data to be "adequate, relevant and limited to what is necessary." Sending a consultant a full customer table when the model needs four columns is a compliance problem before it is a technical one.

Pro Tip: Ask your IT team to produce the extract before you hire anyone, even a rough one. If it takes three weeks to get 20,000 rows out of your CRM, you have just measured the real schedule risk of the project, and you can put it in the contract.

Can You Run Data Preparation the Agile Way? Yes, in Two-Week Loops

Yes. Agile methods apply to data-centric work and fit better than a long upfront cleaning phase. Run a two-week loop: clean one slice of the data, train a crude baseline model, look at where it fails, and let the failures decide what to clean next. A simple baseline built in the first month often shows that the fields you worried about do not matter and one you ignored does.

It also keeps you from polishing data for a use case that turns out not to be feasible. If your baseline shows no signal, you have spent two weeks finding out, not six months. The same logic holds for other technical programs: see how enterprise blockchain implementation timelines stretch when groundwork is left to the end.

The Pre-Kickoff Checklist: What to Hand Over on Day One

A consultant who receives these items can spend the first week building. One who does not will spend it asking for them.

Item Done looks like
Use case statement One sentence with a measurable target and a decision it supports
Data inventory One page listing each source, owner, refresh rate and known defects
Data dictionary Plain-language definitions for every column you expect to use
Sample audit 100 random rows reviewed, with defects counted and listed
Label definition Written rule for the outcome column, tested by two people
Access Read-only credentials or an approved extract, with privacy sign-off
Success baseline Today's performance of the current process, so improvement is measurable

People skip the last row and later regret it. Without a baseline, "the AI improved collections" is an opinion.

Seven items to hand over on day one: 1. Write the use case; 2. Build the data inventory; 3. Define the data dictionary; 4. Audit a 100-row sample; 5. Fix the label definition; 6. Clear access and baseline

Get Your Data Checked Before You Pay for Anyone's Time

If this list reads like a week of work you would rather not guess at, that is what the AI readiness check at ActUpon is for. We go through your use case, inventory and a sample of your records, and tell you plainly whether the data supports the project, what to fix first and whether a simpler approach would do. Our consulting is performance-based, so fees are tied to agreed, measurable business results rather than hours spent in meetings.

We do not publish a fixed price for the readiness check, because scope depends on how many systems are involved and how much of the groundwork you have already done. If your data is so thin that the honest answer is "collect another six months first," we will say so, before you spend on a build. Bring your one-page inventory and your sample audit, and the conversation will be short.

Frequently Asked Questions

How long does it take to prepare data for an AI project?

For one well-scoped use case in a small or midsize business, expect two to six weeks for inventory, a sample audit, label fixes and access approvals. Permissions and extraction often take longer than the cleaning itself. If your data lives in many disconnected systems, plan for more.

Why do you split data into training, validation and test sets?

Each set has a different job. Training data teaches the model, validation data lets you tune it without cheating, and the test set gives one honest score at the end on records the model has never seen. Without the separation, you cannot tell a model that works from one that memorized its examples.

Do I need to clean all my company data before hiring an AI consultant?

No. Clean only the data tied to the first use case. A company-wide cleanup has no finish line, and most of it will never touch a model. Scope narrowly, prove value, then widen.

How much data do I need for an AI implementation?

It depends on the task, and anyone quoting a universal number is guessing. You need enough recorded examples of the outcome you want to predict, with consistent labels. If you have only a few hundred, a simpler rules-based or statistical approach may beat a complex model.

What is data leakage and why does it matter?

Data leakage happens when information from outside the training set, such as test records or a field only known after the outcome, influences the model. It produces impressive accuracy in testing and weak results in production. Splitting your data before preprocessing and removing after-the-fact columns prevents most cases.

Sources

ActUpon

Want a number moved, not a report written?

We agree one measurable target with you, do the work, and get paid when the number moves. Not before.