π οΈ Module 6: Building Your Own AI β Let's Create!
π§© A step-by-step guide to making your first simple AI β no coding required!
π§ Module Introduction
Hello, young inventor! You've learned so much about AI β what it is, how it learns, and how it helps people. Now comes the most exciting part: building your own AI!
You don't need to be a genius or know complex maths. In this module, we will use simple steps and fun activities to create a basic AI that can recognise patterns and make predictions. Think of it like training a pet β but instead of a dog, you're training a computer!
By the end, you will have built your very own AI project that you can show to your friends and family. Ready? Let's go!
π― Learning Objectives
After this module, you will be able to:
- β
Explain the basic steps to build an AI.
- β
Identify a problem an AI could solve.
- β
Collect and prepare data for a simple AI project.
- β
Use a simple tool to train an AI (without coding).
- β
Test your AI and see if it works.
- β
Present your AI project to others.
π Warmβup Story: Tunde's AI Pet
Tunde loved animals. He wanted to build an AI that could tell if a picture was a cat or a dog. He found a website called Teachable Machine (from Google).
He took 20 pictures of his cat and 20 pictures of his dog. He uploaded them to the website. The website used his pictures to train an AI. Then he tested it with new pictures β and the AI got it right 18 out of 20 times!
Tunde had built his first AI! He was so proud. And you can do the same β with any topic you like!
π Main Lessons
π Lesson 1: What Do We Need to Build an AI?
To build an AI, we need three things:
- A problem β what do you want the AI to do?
- Data β examples for the AI to learn from.
- A tool β a simple program or website to train the AI.
Building an AI:
Problem β Data β Tool β AI!
Mini summary: You need a problem, data, and a tool to build AI.
π Lesson 2: Choosing a Problem β What Will Your AI Do?
Think of something you'd like an AI to help with. It could be:
- Recognising different fruits.
- Predicting if it will rain based on cloud pictures.
- Sorting books by genre.
Nigerian: You could build an AI that recognises different types of yams!
π Lesson 3: Collecting Data β The More, the Better
Remember Module 2? We need to collect data. For an image AI, you need pictures. For a number AI, you need numbers.
Data collection:
10 pictures of cats π±
10 pictures of dogs πΆ
= 20 examples for AI to learn from
Mini summary: Good data = good AI. Bad data = bad AI.
π Lesson 4: Cleaning Your Data β No Messy Data!
Before training, check your data. Are all pictures clear? Are they labelled correctly? Remove any mistakes.
Fun: If you have a picture of a cat labelled "dog", your AI will get confused!
π Lesson 5: Introducing Teachable Machine
Teachable Machine is a free website from Google that lets you train an AI using images, sounds, or poses. It's very easy to use β no coding needed!
Website: teachablemachine.withgoogle.com
Mini summary: Teachable Machine is a tool to build AI without coding.
π Lesson 6: Step 1 β Go to Teachable Machine
Open your browser, go to the website. Click "Get Started". Choose "Image Project" (we will start with images).
π Lesson 7: Step 2 β Create Classes
Classes are the categories you want your AI to recognise. For example: Class 1 = Cat, Class 2 = Dog.
Class 1: Cat π±
Class 2: Dog πΆ
π Lesson 8: Step 3 β Upload Your Data
Click on each class and upload the pictures you collected. The more pictures you upload, the smarter your AI becomes.
Tip: Use at least 20 pictures per class.
π Lesson 9: Step 4 β Train the AI
Click the big "Train Model" button. The website will now learn from your pictures. It might take a few seconds or minutes.
Training in progress... β³
AI is learning from your data!
π Lesson 10: Step 5 β Test Your AI
After training, you can test it! Upload a new picture (one that the AI has never seen before). See if it guesses correctly.
Fun: Test it with a picture of a cat β does it say "Cat"?
π Lesson 11: What If It's Wrong?
If your AI makes a mistake, don't worry! That's normal. You can add more data and train it again. AI gets better with more practice.
π Lesson 12: Exporting Your AI
Once you're happy with your AI, you can export it β that means you can save it and use it in other projects (like a website or a game).
π Lesson 13: More Ideas for Your AI
- Recognise different fruits (apple, banana, orange).
- Recognise different animals (lion, elephant, giraffe).
- Recognise different hand signs (peace, thumbs up, fist).
π Lesson 14: Nigerian AI Projects You Can Build
- Recognise different types of beans (oloyin, drum, honey beans).
- Recognise local fruits (orange, mango, pawpaw, banana).
- Recognise Naira notes (β¦100, β¦200, β¦500, β¦1000).
π Lesson 15: Sharing Your AI
Show your AI to your family, friends, and classmates. Explain how you built it. You are now an AI creator!
π Key Vocabulary (with simple definitions)
- Teachable Machine β a free tool from Google to build AI.
- Class β a category your AI can recognise.
- Train β teaching the AI by giving it data.
- Test β checking if the AI works with new data.
- Export β saving your AI to use later.
π§ Important Concepts
- Anyone can build an AI β no coding required!
- Good data = good AI β make sure your data is clean.
- Practice makes perfect β train and test many times.
- AI is not magic β it's just maths and data.
- Have fun β building AI is creative and exciting!
πͺ Step-by-Step: Building an AI with Teachable Machine
- Go to teachablemachine.withgoogle.com.
- Click "Get Started" β "Image Project".
- Create classes (e.g., Class 1: Cat, Class 2: Dog).
- Upload pictures to each class (at least 20 each).
- Click "Train Model".
- Wait for training to finish.
- Test your AI with a new picture.
- If it's wrong, add more data and train again.
- Export your AI when you're happy.
π Realβlife Examples
- Google Lens: Identifies plants, animals, and objects from pictures.
- Face ID: Recognises your face to unlock your phone.
- Snapchat filters: Recognises your face to put cute ears on you!
π³π¬ Nigerian Examples
- AgroAI: Farmers use AI to identify crop diseases from photos.
- PayAttitude: AI recognises facial features for payment verification.
- School projects: Nigerian students have built AIs to recognise local plants.
π Fun Examples children can relate to
- PokΓ©mon scanner: AI that identifies PokΓ©mon cards.
- Emoji guesser: AI that guesses which emoji you're drawing.
- Fruit sorter: AI that sorts fruits by colour.
π Everyday Examples
- Morning: Your phone's camera recognises your face to unlock.
- Afternoon: You use Google Lens to identify a plant.
- Evening: You show your pet to the camera and your phone says "Cat!" (if you built that AI).
π©βπ« Teacher Notes
- Guide students through the Teachable Machine steps.
- Encourage them to collect their own data.
- Emphasise that mistakes are part of learning.
π¨βπ©βπ¦ Parent Tips
- Help your child collect pictures for their AI.
- Celebrate their AI β even if it's not perfect.
- Ask them to explain how they built it.
β¨ Interesting Facts
- π§ Teachable Machine has been used by millions of people worldwide.
- πΈ Some AIs can recognise over 1,000 different objects.
- π In Nigeria, AI is being used to identify local plants and animals.
π‘ Did You Know?
- Did you know that you can train an AI to recognise your handwriting?
- Did you know that Teachable Machine also works with sounds and poses?
π§© Remember This
- Building AI is easy and fun.
- You don't need to be a coder.
- Practice makes your AI smarter.
β Common Mistakes
- Mistake: Using too few pictures β AI needs at least 20 per class.
- Mistake: Using blurry or confusing pictures.
- Mistake: Not testing the AI after training.
β
Best Practices
- Use clear, well-lit pictures.
- Use at least 20 pictures per class.
- Test with pictures the AI has never seen.
- Add more data if your AI makes mistakes.
πΌοΈ ASCII Diagrams & Flowcharts
π§ Building an AI β The Flow
+------------------+
| Choose a problem |
+--------+---------+
|
V
+------------------+
| Collect data |
+--------+---------+
|
V
+------------------+
| Train the AI |
+--------+---------+
|
V
+------------------+
| Test the AI |
+--------+---------+
|
V
+------------------+
| Use your AI! |
+------------------+
πΈ Teachable Machine Classes
+----------+----------+
| Class 1 | Class 2 |
| Cat π± | Dog πΆ |
| (20 pics)| (20 pics)|
+----------+----------+
π Comparison Tables
| Step | What to do | Why it's important |
| Collect data | Take many pictures | AI needs examples |
| Train | Click "Train Model" | AI learns from data |
| Test | Try new pictures | Check if AI works |
| Improve | Add more data | Make AI smarter |
π EndβofβModule Summary
- Building an AI is easy and fun.
- You need: a problem, data, and a tool.
- Teachable Machine is a free tool to build AI without coding.
- Steps: collect data β train β test β improve.
- More data = smarter AI.
- You can build AIs for Nigerian topics like local fruits or Naira notes.
- Share your AI with others!
β Frequently Asked Questions
Q1: Do I need to know coding to build an AI?
A1: No! Tools like Teachable Machine let you build AI without coding.
Q2: How many pictures do I need?
A2: At least 20 per class.
Q3: What if my AI is wrong?
A3: That's okay β add more data and train again.
Q4: Can I use videos?
A4: Teachable Machine works with images, sounds, and poses.
Q5: Is Teachable Machine free?
A5: Yes, it's free from Google.
Q6: Can I build an AI to recognise my handwriting?
A6: Yes! You can take pictures of your handwriting.
Q7: Can I use my phone?
A7: Yes, you can use a phone to take pictures and train the AI.
Q8: How long does training take?
A8: Usually a few seconds to a minute.
Q9: Can I build an AI for my school project?
A9: Yes! It's a great school project.
Q10: Can I share my AI with friends?
A10: Yes, you can export and share it.
π Review Questions
- What are the three things you need to build an AI?
- What is Teachable Machine?
- How many pictures should you use per class?
- What does "train" mean in AI?
- Why is it important to test your AI?
- What should you do if your AI makes a mistake?
- Can you build an AI without coding?
- What is a class in AI?
- Give an example of a Nigerian AI project.
- What does "export" mean?
- Why is good data important?
- What is the first step in building an AI?
- Can you use Teachable Machine on a phone?
- What is the purpose of testing?
- How can you improve your AI?
βοΈ FillβinβtheβBlank
- Building an AI needs a problem, data, and a _______________.
- Teachable Machine is a _______________ tool from Google.
- We need at least _______________ pictures per class.
- Training means the AI _______________ from data.
- If your AI is wrong, add more _______________ and train again.
βοΈ True or False
- You need to know coding to build an AI with Teachable Machine. (False)
- 20 pictures per class is a good number. (True)
- AI never makes mistakes. (False)
- You can test your AI with new pictures. (True)
- Teachable Machine is only for experts. (False)
π Multiple Choice Questions
- What tool do we use to build AI without coding?
A) Microsoft Word B) Teachable Machine C) Excel D) Calculator
Answer: B
- How many pictures should you use per class?
A) 2 B) 20 C) 1000 D) 5
Answer: B
- What does "train" mean?
A) Run fast B) Teach the AI C) Delete data D) Play games
Answer: B
- Why do we test the AI?
A) To see if it works B) To play C) To delete it D) To sleep
Answer: A
- What should you do if your AI is wrong?
A) Cry B) Add more data and train again C) Delete everything D) Ignore it
Answer: B
- Can you build an AI without coding?
A) Yes B) No C) Only with Python D) Only with Java
Answer: A
- What is a class in AI?
A) A school lesson B) A category C) A game D) A colour
Answer: B
- Which is a Nigerian AI project idea?
A) Recognising yams B) Recognising cars C) Recognising clouds D) Recognising stars
Answer: A
- What does "export" mean?
A) To save and share your AI B) To delete your AI C) To play with your AI D) To ignore your AI
Answer: A
- Why is good data important?
A) It makes AI look nice B) It helps AI learn correctly C) It makes AI faster D) It makes AI smaller
Answer: B
- What is the first step in building an AI?
A) Train B) Test C) Choose a problem D) Export
Answer: C
- Can you use Teachable Machine on a phone?
A) Yes B) No C) Only on a computer D) Only on a tablet
Answer: A
- What is the purpose of testing?
A) To check if the AI works B) To sleep C) To delete data D) To play games
Answer: A
- How can you improve your AI?
A) Add more data B) Delete data C) Sleep D) Eat
Answer: A
- Who can build an AI?
A) Only adults B) Anyone C) Only teachers D) Only robots
Answer: B
π Matching Exercises
| Term | Match with |
| 1. Teachable Machine | A. Category |
| 2. Class | B. Teach the AI |
| 3. Train | C. Free tool from Google |
| 4. Test | D. Check if AI works |
| 5. Data | E. Examples for the AI |
Answers: 1-C, 2-A, 3-B, 4-D, 5-E
π Short Answer Questions
- Describe the steps to build an AI using Teachable Machine.
- Why is it important to use good data?
- Give an example of a problem an AI could solve.
- What should you do if your AI makes a mistake?
- How would you share your AI with others?
π Scenarioβbased Exercises
Scenario: Chioma wants to build an AI that recognises if a fruit is ripe or unripe. She has 20 pictures of ripe mangoes and 20 of unripe mangoes.
Questions:
- What tool can she use?
- What are her classes?
- How does she train the AI?
- How does she test it?
- What should she do if the AI is wrong?
π« Group Activity
Activity: In groups of 4, decide on a topic (e.g., fruits, animals, hand signs). Each person collects 5 pictures. Combine them to get 20 pictures per class. Use Teachable Machine to build the AI. Present your AI to the class.
π§βπ Individual Activity
Activity: Build your own AI using Teachable Machine. Choose any topic you like (e.g., your toys, your family members, or local foods). Train it, test it, and write a short report about your experience.
π¬ Classroom Discussion Questions
- What was the most fun part of building your AI?
- What was challenging?
- How could you make your AI even better?
π οΈ Mini Project
Project: βMy First AIβ β build an AI that recognises at least 3 different classes. For example: Class 1 = Apple, Class 2 = Banana, Class 3 = Orange. Export your AI and present it to the class.
π Practical Assignment
Assignment: Use Teachable Machine to build an AI that recognises something in your home (e.g., different shoes, different books, different fruits). Write a step-by-step guide on how you did it.
π Challenge Exercise
Challenge: Build an AI that recognises your family members from photos. Take 20 pictures of each family member. Train the AI. Test it with new photos. How accurate is it? What could you do to improve it?
π Quiz Answers
- MCQ answers: 1-B, 2-B, 3-B, 4-A, 5-B, 6-A, 7-B, 8-A, 9-A, 10-B, 11-C, 12-A, 13-A, 14-A, 15-B
- Fill-in-the-blank: 1. tool, 2. free, 3. 20, 4. learns, 5. data
- True/False: 1-F, 2-T, 3-F, 4-T, 5-F
π― Key Takeaways
- Building an AI is simple and fun.
- Teachable Machine lets you build AI without coding.
- You need a problem, data, and a tool.
- Steps: collect data β train β test β improve.
- More and cleaner data leads to a better AI.
- You can build AIs for local Nigerian topics.
- Everyone can build an AI β including you!
π Preparation for Module 7
In Module 7, we will look at the future of AI β what amazing things might AI do in 10 or 20 years? Will we have robot teachers? Will AI help us explore other planets? We'll imagine and dream together!
Tip: Start thinking about what you'd like AI to do in the future. Draw a picture or write a story about your dream AI. See you in Module 7!
π You did it! You built your own AI. You are now an AI Creator! On to Module 7! π