You learned that AI is software that learns from experience. But HOW does it learn? That's what this lesson is about.
Don't worry — no maths, no code. Just clear explanations with everyday examples.
Imagine you're learning to cook. How would you do it?
This is exactly how AI learns.
The fancy term for this is machine learning, but really it's just: show the computer lots of examples and let it figure out the pattern.
In the cooking analogy, what does 'getting feedback' represent in machine learning?
Just like humans learn in different ways, machines do too:
This is like a teacher showing you flashcards:
In AI terms: You give the computer labelled examples (photo + correct answer), and it learns the pattern.
Real-world example: Email spam filters. Someone labelled thousands of emails as "spam" or "not spam", and the AI learned what spam looks like.
This is like sorting your wardrobe without anyone telling you how:
In AI terms: The computer finds hidden patterns in data without being told what to look for.
Real-world example: Customer grouping. A shop's AI might discover that some customers always buy organic food, while others always look for discounts — without being told these groups exist.
This is like learning to ride a bicycle:
In AI terms: The computer tries things, gets a score (reward or punishment), and learns to maximise the reward.
Real-world example: Game-playing AI. AlphaGo learned to play the board game Go by playing millions of games against itself — and eventually beat the world champion.
If you wanted to build an AI that sorts your wardrobe into categories without telling it what the categories are, which type of learning would you use?
Let's say we want to build an AI that recognises handwritten numbers (0-9).
We gather thousands of handwritten numbers from different people:
A human looks at each image and labels it: "This is a 3", "This is a 7", etc.
We show the AI all these labelled examples. It starts to notice patterns:
We show the AI handwritten numbers it has never seen before. Can it guess correctly?
If it gets 95% right — great! If not, we give it more examples and try again.
This isn't just a teaching example — it's a real AI system! Your bank uses exactly this kind of AI to read the numbers on cheques. Post offices use it to read handwritten addresses on letters.
When we say we "train" an AI, we mean:
After enough rounds, the AI has "learned" the pattern.
Think of it like practicing free throws in basketball. Each throw, you adjust your aim slightly. After thousands of throws, you're quite accurate — not because you memorised each throw, but because you learned the pattern of what works.
You've probably heard people say "Data is the new oil." Here's why:
If you trained an AI to recognise "food" but only showed it pictures of pizza, it would think that all food is pizza. This is why diverse, representative data matters — and it's one of the biggest challenges in AI today.
Why does 'garbage in, garbage out' apply to AI?
Ready to try it yourself? In the next lesson, you'll train your very first AI model — right here in your browser. No installation needed!