Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← AI and Automation Level Two · Lesson 8 of 9

Module Seven

📖 Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
8
Module Seven · AI and Automation Level Two

🧠 Module Seven · Data & Machine Learning

📖 Module Introduction

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.

🎯 Learning Objectives

  • Define data and machine learning in your own words.
  • Explain how machines learn from examples.
  • Give examples of data in everyday life.
  • Understand the difference between training and testing.
  • See how Nigeria uses machine learning today.

📚 Warm-up Story · Chidi’s Magic Box

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.

🧠 Main Lessons

Lesson 1: What is Data?

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.


Lesson 2: What is Machine Learning?

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.


Lesson 3: Training – The Learning Phase

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.


Lesson 4: Testing – Checking What AI Learned

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.


Lesson 5: Features – What the AI looks at

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
  

Lesson 6: Labels – The Answers

Labels are the correct answers we give the AI during training. For fruit, the label is “mango” or “orange”.

  (features) + (label) = training example
  

Lesson 7: Supervised Learning

When we give the AI both features and labels, it is called supervised learning. Like a teacher supervising a student.


Lesson 8: Unsupervised Learning

Sometimes we give AI only features and no labels. It finds groups on its own. Like sorting toys without names.


Lesson 9: Data Quality – Garbage In, Garbage Out

If the data is bad (wrong labels, messy), the AI will be bad. Always use good, clean data.


Lesson 10: Big Data – Lots of Information

Big data means huge amounts of information. The more good data, the smarter the AI.


Lesson 11: Algorithms – The Recipe

An algorithm is a step-by-step recipe that the AI follows to learn from data.


Lesson 12: Overfitting – When AI Memorises

Sometimes AI learns the training data too well but fails on new data. That is overfitting.


Lesson 13: Underfitting – When AI Doesn’t Learn Enough

When AI is too simple and misses patterns, it underfits.


Lesson 14: Real-world Machine Learning in Nigeria

In Lagos, some banks use machine learning to detect fraud. In agriculture, it helps predict harvest times.


Lesson 15: You Can Do Machine Learning!

With tools like Google’s Teachable Machine, you can train your own AI to recognise poses, sounds, or images.


📘 Key Vocabulary

  • Data: Information like numbers, words, or pictures.
  • Machine Learning: Computers learning from data.
  • Training: Teaching AI with examples.
  • Testing: Checking if AI learned correctly.
  • Features: The clues the AI uses (like colour).
  • Labels: The correct answers.
  • Algorithm: A step-by-step recipe for learning.
  • Overfitting: Memorising instead of learning.

🧩 Important Concepts

  • Data is the fuel for machine learning.
  • Training makes the AI smart.
  • Testing proves if it works.
  • Good data = good AI. Bad data = bad AI.
  • Algorithms are the learning recipes.

📝 Step-by-step Explanations

How to train a fruit sorter:

  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.
  

🌍 Real-life, Nigerian, Fun & Everyday Examples

TypeExample
Real-lifeNetflix recommends movies based on what you watched.
NigerianAI model by a Nigerian startup predicts traffic in Abuja.
FunA game that learns your playing style and adapts.
EverydayGoogle Translate learns from millions of sentences.

👩‍🏫 Teacher Notes

Use a physical activity: give students 10 pictures of fruits and ask them to list features. Then simulate training. Encourage discussions.

👪 Parent Tips

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.

✨ Interesting Facts

  • The term “machine learning” was coined in 1959 by Arthur Samuel.
  • Google uses machine learning to translate over 100 languages.

🤔 Did You Know?

In Nigeria, machine learning helps predict the best times to plant cassava, improving farmers’ yields.

🧾 Remember This

  • Data is information.
  • Machine learning is learning from data.
  • Training uses labelled examples.
  • Testing uses new data.
  • Clean data is vital.

⚠️ Common Mistakes

  • Using too little data – AI cannot learn well.
  • Using messy data – leads to wrong predictions.
  • Testing with the same data used for training – that is cheating!

✅ Best Practices

  • Use a lot of good data.
  • Split data into training and testing sets.
  • Keep features clear and simple.

📊 Diagrams & Tables

Machine Learning Process

  Data Collection → Data Cleaning → Training → Testing → Deployment
  

Comparison: Supervised vs Unsupervised

SupervisedUnsupervised
Has labelsNo labels
Teacher guidesFinds patterns alone

📌 End-of-module Summary

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!

❓ Frequently Asked Questions

  1. What is data? Any piece of information.
  2. What is machine learning? Computers learning from data.
  3. Why is training important? It teaches the AI.
  4. What is a feature? A clue like colour or size.
  5. What is a label? The correct answer (e.g., “mango”).
  6. Can machine learning be wrong? Yes, if data is bad.
  7. What is overfitting? Memorising instead of learning.
  8. What is an algorithm? A recipe for learning.
  9. Is machine learning used in Nigeria? Yes, in farming, banking, and more.
  10. Can I make my own machine learning model? Yes, with tools like Teachable Machine.

📝 Review Questions

  1. What is data?
  2. Define machine learning.
  3. What is training?
  4. Why do we test AI?
  5. What are features?
  6. What are labels?
  7. What is the difference between supervised and unsupervised learning?
  8. Give an example of data at home.
  9. What is a Nigerian example of machine learning?
  10. What is an algorithm?
  11. What is overfitting?
  12. What is underfitting?
  13. Why is clean data important?
  14. Can machine learning predict weather?
  15. Name one tool for building machine learning.

✏️ Fill-in-the-Blank

  1. Data is __________.
  2. Machine learning is learning from __________.
  3. Training uses __________ and labels.
  4. Testing uses __________ data.
  5. An __________ is a step-by-step recipe.

✔️ True or False

  1. Data is only numbers. (False)
  2. Machine learning needs training. (True)
  3. Testing is not important. (False)
  4. Nigeria uses machine learning. (True)
  5. Overfitting is good. (False)

🔘 Multiple Choice

  1. What is data?
    a) Food
    b) Information
    c) Toys
    Answer: b
  2. Machine learning is …
    a) Learning from data
    b) Playing games
    c) Sleeping
    Answer: a
  3. Training means …
    a) Giving examples
    b) Resting
    c) Eating
    Answer: a
  4. What are features?
    a) Clues
    b) Answers
    c) Programs
    Answer: a
  5. Labels are …
    a) Correct answers
    b) Questions
    c) Noise
    Answer: a
  6. Supervised learning has …
    a) Labels
    b) No labels
    c) Only features
    Answer: a
  7. Unsupervised learning …
    a) Has labels
    b) Finds patterns alone
    c) Needs a teacher
    Answer: b
  8. Garbage in, garbage out means …
    a) Bad data = bad AI
    b) Good data = bad AI
    c) No data
    Answer: a
  9. Overfitting means …
    a) Memorising
    b) Learning well
    c) Forgetting
    Answer: a
  10. An algorithm is a …
    a) Recipe
    b) Food
    c) Toy
    Answer: a
  11. Which is a Nigerian ML example?
    a) Farming prediction
    b) Space travel
    c) Underwater robots
    Answer: a
  12. Testing uses …
    a) New data
    b) Old data
    c) No data
    Answer: a
  13. To train well, we need …
    a) Many examples
    b) Few examples
    c) No examples
    Answer: a
  14. Data quality matters because …
    a) AI learns from it
    b) AI ignores it
    c) AI deletes it
    Answer: a
  15. Teachable Machine is used for …
    a) Building ML models
    b) Cooking
    c) Flying
    Answer: a

🔗 Matching

TermDefinition
DataInformation
Machine LearningLearn from data
TrainingTeaching with examples
TestingChecking with new data

📝 Short Answer

  1. What is the difference between training and testing?
  2. Give two examples of features for a car.
  3. Why is clean data important?

🎭 Scenario-based Exercise

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?

👥 Group Activity

In groups, collect 20 pictures of fruits (or objects). Label them. Train a simple classifier using Teachable Machine. Present your results.

🧑 Individual Activity

Write down 5 features of your favourite animal. Explain how a machine could use those features to recognise it.

💬 Classroom Discussion

Do you think machines will ever learn as well as humans? Why or why not? Share your thoughts.

🛠️ Mini Project

Build a paper-based “data collection” board. Draw 10 different leaves, write features (size, colour, shape). Simulate training and testing with a friend.

📋 Practical Assignment

Use Google’s Teachable Machine (teachablemachine.withgoogle.com) to train a model to recognise 3 hand gestures. Take a screenshot of your trained model.

⭐ Challenge Exercise

Think of a problem in your community (like waste sorting). Write a plan for a machine learning solution. What data would you collect?

🔍 Quiz Answers

Fill-in: 1. information, 2. data, 3. features, 4. new, 5. algorithm. True/False: F, T, F, T, F. MC answers are above.

🗝️ Key Takeaways

  • Data is the foundation of machine learning.
  • Training teaches AI; testing proves it.
  • Features and labels are key.
  • Good data leads to good AI.
  • Nigeria is embracing machine learning in many fields.

🔜 Preparation for Module Eight

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

🏆 Get Certified

🔒

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

🎓 Sign Up to Get Certified
🛠️ Practice Tools
Hands-on simulators & labs - subscription required.
→
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
→