Introduction to AI Lesson 12 of 25

Part 2 · Lesson 2 · 5 min

Data: the fuel of machine learning

Your company says it is "sitting on a goldmine of data". Is it?

Maybe. It depends less on how much data there is, and more on what state it is in.

In the last lesson, a machine learned from examples. Those examples are data. Think of data as the ingredients and the model as the meal: no chef can cook something great from spoiled or missing ingredients.

Data is not only spreadsheets. Photos, emails, voice recordings, scanned forms and sensor readings all count.

What counts as data?

A tidy table with rows and columns is called structured data. Photos, free text and audio are unstructured: no neat columns, but still full of useful signal. Either way, the computer turns it into numbers before it can learn anything.

Now the uncomfortable part. Having lots of data is not the same as having good data.

The goldmine that was not

Real data is often missing, inconsistent, duplicated or simply wrong. A model trained on a mess learns the mess. That is why the first and often biggest step in an AI project is checking and cleaning the data, not building the model.

More data helps only when it is the right data. A million wrong or irrelevant examples can make a model worse, not better.

Go deeper optional

Structured data lives in tables: each row is one thing (a customer, a loan), each column one fact about it. Unstructured data is everything else: text, images, audio, video.

How does a photo become numbers? A digital photo is a grid of tiny dots called pixels. Each pixel stores three numbers, how much red, green and blue it has, usually from 0 to 255. A 12 megapixel phone photo is about 12 million pixels, so roughly 36 million numbers. Text gets turned into numbers too, by giving each word or word piece an ID.

Check yourself

1. Which of these can a model learn from?

2. A firm has 20 years of records with many missing and inconsistent values. What is the most sensible first step?

3. Is more data always better?