Welcome to Module Seven! Now that we know about AI and automation, it is time to learn how AI gets smart. How does a computer learn to tell a cat from a dog? How does it know what you are saying? The secret is data and machine learning.
In this module, we will explore how machines learn from examples — just like you learn at school! We will use simple words, fun stories, and many examples from home, school, and Nigeria. By the end, you will understand how data feeds AI and makes it powerful.
Chidi is 11 years old and lives in Enugu. He loves mangoes and oranges. One day, his aunt gives him a magic box. She says, “This box can learn to sort fruits!”
Chidi puts 10 mangoes and 10 oranges inside, one by one. He tells the box, “This is a mango, this is an orange.” The box looks at each fruit — colour, size, shape. After many fruits, the box starts sorting by itself. Chidi gives it a new fruit, and it says “mango!” correctly.
The magic box is really a machine learning program. It learned from data (the fruits). That is exactly what we will learn in this module.
Definition: Data is information. It can be numbers, words, pictures, sounds, or anything that a computer can read.
Why important: Without data, AI cannot learn. Data is the food for AI.
Simple explanation: Think of data like ingredients for a cake. You need ingredients to bake.
Real-life example: Your name, age, and class are data.
School example: Test scores of students are data.
Home example: The list of groceries your mum writes.
Nigerian example: Weather data from NIMET (Nigerian Meteorological Agency) used to predict rain.
📊 Data = Information
|
+-- Numbers (temperature, age)
+-- Words (names, descriptions)
+-- Pictures (photos, drawings)
+-- Sounds (speech, music)
✅ Mini summary: Data is any piece of information a computer can use.
Definition: Machine learning is when a computer learns from data, without being told every single rule.
Why important: It helps AI solve problems that are too hard to program by hand.
Simple explanation: Instead of telling the computer “this is a cat” step by step, we show it many cat pictures, and it learns.
Real-life example: Your email app learns to filter spam because you mark emails as spam.
School example: A maths app that adapts questions based on your wrong answers.
Home example: A smart speaker that learns your voice.
Nigerian example: A machine learning model that identifies crop diseases from photos of leaves.
🧠 Machine Learning = Learn from data
|
V
Show many examples → find patterns → make predictions
✅ Mini summary: Machine learning is how AI gets smarter by studying data.
Definition: Training is the process of giving a machine many examples so it can learn.
Why important: Training is like going to school for AI. It needs practice.
Simple: You train a dog to sit by showing it a treat. You train an AI by showing it data.
Training: [Data] → [AI] → [Learned model]
✅ Mini summary: Training is teaching AI with examples.
After training, we test the AI with new data it has never seen. If it answers correctly, it has learned well.
Testing: [New data] → [Trained AI] → [Prediction] → compare with correct answer
✅ Mini summary: Testing checks if AI really learned.
Definition: Features are the important pieces of data that help AI make decisions. For fruit, features are colour, shape, and size.
Nigerian example: To predict rainfall, features could be temperature, humidity, and wind speed.
Fruit → features: colour, weight, smell
Labels are the correct answers we give the AI during training. For fruit, the label is “mango” or “orange”.
(features) + (label) = training example
When we give the AI both features and labels, it is called supervised learning. Like a teacher supervising a student.
Sometimes we give AI only features and no labels. It finds groups on its own. Like sorting toys without names.
If the data is bad (wrong labels, messy), the AI will be bad. Always use good, clean data.
Big data means huge amounts of information. The more good data, the smarter the AI.
An algorithm is a step-by-step recipe that the AI follows to learn from data.
Sometimes AI learns the training data too well but fails on new data. That is overfitting.
When AI is too simple and misses patterns, it underfits.
In Lagos, some banks use machine learning to detect fraud. In agriculture, it helps predict harvest times.
With tools like Google’s Teachable Machine, you can train your own AI to recognise poses, sounds, or images.
1. Collect many fruit pictures (data). 2. Label each as “mango” or “orange”. 3. Show the AI the pictures and labels (training). 4. Test with new fruit picture. 5. If wrong, adjust and retrain.
| Type | Example |
|---|---|
| Real-life | Netflix recommends movies based on what you watched. |
| Nigerian | AI model by a Nigerian startup predicts traffic in Abuja. |
| Fun | A game that learns your playing style and adapts. |
| Everyday | Google Translate learns from millions of sentences. |
Use a physical activity: give students 10 pictures of fruits and ask them to list features. Then simulate training. Encourage discussions.
Ask your child to find examples of data at home (e.g., calendar events, shopping lists). Talk about how machines could learn from that data.
In Nigeria, machine learning helps predict the best times to plant cassava, improving farmers’ yields.
Data Collection → Data Cleaning → Training → Testing → Deployment
| Supervised | Unsupervised |
|---|---|
| Has labels | No labels |
| Teacher guides | Finds patterns alone |
We learned that data is information, and machine learning is how computers learn from that information. Training teaches the AI, and testing checks it. We saw examples from Nigeria and everywhere. Now you know the secret behind smart AI!
| Term | Definition |
|---|---|
| Data | Information |
| Machine Learning | Learn from data |
| Training | Teaching with examples |
| Testing | Checking with new data |
You are building a machine learning model to tell if a student is happy or sad based on their face. List the features you would use. How would you collect data?
In groups, collect 20 pictures of fruits (or objects). Label them. Train a simple classifier using Teachable Machine. Present your results.
Write down 5 features of your favourite animal. Explain how a machine could use those features to recognise it.
Do you think machines will ever learn as well as humans? Why or why not? Share your thoughts.
Build a paper-based “data collection” board. Draw 10 different leaves, write features (size, colour, shape). Simulate training and testing with a friend.
Use Google’s Teachable Machine (teachablemachine.withgoogle.com) to train a model to recognise 3 hand gestures. Take a screenshot of your trained model.
Think of a problem in your community (like waste sorting). Write a plan for a machine learning solution. What data would you collect?
Fill-in: 1. information, 2. data, 3. features, 4. new, 5. algorithm. True/False: F, T, F, T, F. MC answers are above.
In Module Eight, we will dive into Deep Learning and Neural Networks — the brain-like structures that power advanced AI. Bring your curiosity and we will explore how AI mimics the human brain.
✅ End of Module Seven – Data & Machine Learning