Prepare AI Data
Process learning · Prepare AI Data
Introduction
Why it matters
Practical framework
Worked project scenario
Professional guidance
Key takeaway
Key points
- Data preparation often takes up to 80% of an AI project's timeline and budget.
- Involves extracting data from silos, cleaning inconsistencies, and handling missing values.
- Requires accurate 'labeling' by subject matter experts for supervised learning models.
- Demands strict data governance to ensure PII is removed before training begins.
- High-quality, small datasets often outperform massive, low-quality datasets.
Data Quality Issues & Solutions
| Data Problem | Impact on AI | Required Preparation Step |
|---|---|---|
| Missing Values (Nulls) | Model crashes or skews predictions | Imputation (filling with averages) or deleting the incomplete rows |
| Inconsistent Formatting (e.g., 'US', 'USA', 'United States') | Model treats them as three entirely different categories | Data normalization and standardization mapping |
| Imbalanced Classes (e.g., 99% normal transactions, 1% fraud) | Model just guesses 'normal' every time to achieve 99% accuracy | Oversampling the minority class or undersampling the majority class |
| Unlabeled Data | Supervised models cannot learn what the target is | Manual human annotation or crowdsourced labeling |
Frequently asked questions
Can AI clean its own data?
AI can assist in identifying anomalies and formatting errors, but human subject matter experts must define the rules of what 'clean' means.
What is a data silo?
An isolated system where data is held by one department and inaccessible to others, making holistic AI training impossible.
What is data labeling (annotation)?
The manual process of tagging data with the correct answer so a supervised AI model can learn to recognize patterns (e.g., tagging a picture as 'cat').
Why must the dataset be split into Training and Test sets?
If you test the AI on the exact same data it learned from, it will look perfectly accurate (overfitting) but fail in the real world. Testing requires unseen data.
Continue learning
Explore the connected concepts in these published lessons.