Welcome to Module 3! In Module 1, we learned what AI and Automation are. In Module 2, we learned how AI thinks and how we teach it. Now it is time to build something. You will become a creator, not just a learner.
In this module, we will build our very first AI project. We will use a simple tool that is free and easy to use. We will teach an AI to recognize things like numbers, fruits, or even our own handwriting. This will be a hands-on, fun, and exciting module.
You do not need to know how to code to build an AI. There are many tools that let you build AI by just clicking and dragging. We will use one of these tools. By the end of this module, you will have built your own AI and you will understand the whole process from start to finish. Let us get started!
By the end of this module, you will be able to:
In a small village in Enugu, there lived a young girl named Ngozi. Ngozi loved to draw. She drew pictures of her family, her friends, and the animals in her village. One day, her uncle, who was a computer scientist, came to visit. He saw her drawings and said, "Ngozi, you are a great artist! But do you know that you can teach a computer to draw like you?"
Ngozi was surprised. "A computer can draw? How?"
Her uncle smiled. "It is not exactly drawing. But we can teach it to recognize your drawings. For example, we can teach it to know when you have drawn a cat or a dog. Let me show you."
He opened his laptop and showed her a website called Teachable Machine. He said, "This is a tool that lets you build an AI without writing any code. You just need to show the AI many examples of what you want it to recognize. Let us try it!"
Ngozi and her uncle spent the afternoon taking pictures of her drawings. They took many pictures of cats, many of dogs, and many of houses. They uploaded them to the website. They trained the AI. Then they tested it by showing it a new drawing. The AI got it right every time. Ngozi was amazed. "I built an AI! I built a smart machine!" she shouted.
Her uncle said, "Yes, you did. And this is just the beginning. You can build anything you can imagine. You can teach an AI to recognize your handwriting, to sort fruits, or even to play a game. The power is in your hands."
What can we learn from this story? Building an AI is not just for computer scientists. Anyone can do it. With the right tools, you can create a smart machine that can recognize things, just like Ngozi did. And the best part? You do not need to write code.
In the past, building an AI required a lot of coding. You had to write long lines of code to teach a computer. But now, there are tools that let you build AI without writing any code. These are called no-code AI tools.
Definition: A no-code AI tool is a website or app that lets you build an AI by using your mouse, not by writing code.
Why it is important: No-code tools make AI accessible to everyone. You do not need to be a programmer to be an AI builder.
Simple explanation: Imagine building a Lego house. You do not need to be an engineer. You just snap the pieces together. No-code AI is like that. You just click and drag to build your AI.
Real-life example: Teachable Machine is a free no-code AI tool from Google. You can use it to build an AI that recognizes images, sounds, or poses.
School example: Your teacher might use a no-code tool to help students build their first AI project in class.
Home example: You can use a no-code tool at home to build an AI that recognizes your family members' faces.
Nigerian example: A young entrepreneur in Lagos used a no-code tool to build an AI that sorts different types of tomatoes for a farm.
Illustration (ASCII):
+-------------------+ | NO-CODE AI | | TOOL | +-------------------+ | 1. No coding | | 2. Easy to use | | 3. Free or cheap | | 4. Fun | +-------------------+
Mini summary: No-code AI tools let you build AI without writing code. They make AI easy and fun for everyone.
Teachable Machine is one of the most popular no-code AI tools. It was created by Google. It is free and easy to use. In this module, we will use Teachable Machine to build our AI.
Definition: Teachable Machine is a free website where you can train an AI to recognize images, sounds, or poses.
Why it is important: Teachable Machine is a great starting point for beginners. It is simple, fast, and gives you results in minutes.
Simple explanation: Teachable Machine is like a virtual classroom for your AI. You show it examples, and it learns from them. Then you test it to see how smart it got.
Real-life example: Many schools use Teachable Machine to teach students about AI. It is also used by artists and designers to create fun projects.
School example: A teacher uses Teachable Machine to show students how AI learns. Students bring in pictures of their pets and train an AI to recognize them.
Home example: You can use Teachable Machine to build an AI that recognizes your toys. It is a fun project for a weekend afternoon.
Nigerian example: A student in Ibadan used Teachable Machine to build an AI that recognizes different types of beans.
Illustration (ASCII):
+-------------------+ | TEACHABLE | | MACHINE | +-------------------+ | 1. Free | | 2. Easy | | 3. Fun | | 4. Works in your | | browser | +-------------------+
Mini summary: Teachable Machine is a free, easy-to-use tool for building AIs. It is a great place to start your AI building journey.
Building an AI is like baking a cake. You need to follow three main steps. The steps are: Collect Data, Train the AI, and Test the AI.
Definition: The three steps are the phases of creating an AI: gathering examples, teaching the AI, and checking if it learned well.
Why it is important: If you follow these three steps, you will always be able to build a good AI.
Simple explanation: Think of it like teaching a friend to recognize fruits. First, you show them examples (Collect Data). Then you ask them to remember what they saw (Train). Then you test them with new fruits (Test).
Real-life example: A company that builds self-driving cars follows these steps. They collect data from cameras, train the AI to recognize roads, and test it in different conditions.
School example: A teacher does the same when teaching students. She gives lessons (data), students study (train), and then they take a test.
Home example: You use these steps when you learn a new game. You watch others play (data), you practice (train), and then you play a match (test).
Nigerian example: A farmer uses these steps when learning a new farming technique. He reads about it (data), he practices it (train), and then he sees if his yield improves (test).
Illustration (ASCII):
+-------------------+ | BUILDING AN AI | +-------------------+ | 1. COLLECT DATA | | (Gather info) | | | | | v | | 2. TRAIN THE AI | | (Teach) | | | | | v | | 3. TEST THE AI | | (Check) | +-------------------+
Mini summary: Building an AI has three steps: Collect Data, Train the AI, and Test the AI. Follow these steps to build any AI.
The first step in building an AI is to collect data. Data is the information you will use to teach your AI. In our case, we will use pictures. We will take many pictures of the things we want the AI to recognize.
Definition: Collecting data is the process of gathering examples that you will use to train your AI.
Why it is important: The quality of your data determines how good your AI will be. Good data = smart AI. Bad data = not-so-smart AI.
Simple explanation: Imagine you want to teach a friend to recognize apples. You show them many apples โ green ones, red ones, small ones, big ones. They learn from all these examples. That is collecting data.
Real-life example: To teach an AI to recognize cats, you need thousands of cat pictures.
School example: To teach an AI to recognize student handwriting, you need samples of different handwriting styles.
Home example: To teach an AI to recognize your family, you take pictures of each family member from different angles.
Nigerian example: To teach an AI to recognize different types of yams, you collect pictures of white yam, water yam, and yellow yam.
Illustration (ASCII):
+-------------------+ | COLLECT DATA | +-------------------+ | 1. Take pictures | | 2. Record sounds | | 3. Write text | | 4. Use sensors | +-------------------+
Mini summary: Collecting data is the first step. You gather examples to teach your AI. The more data you have, the smarter your AI will become.
After you collect data, you need to label it. Labeling means telling the AI what each example is. For example, if you have a picture of a cat, you label it "cat." If you have a picture of a dog, you label it "dog."
Definition: Labeling is the process of telling the AI what each piece of data is.
Why it is important: Labels are like the answers in a textbook. Without labels, the AI cannot learn.
Simple explanation: Imagine you are teaching a friend to recognize fruits. You point to an orange and say, "This is an orange." You are labeling it.
Real-life example: In Teachable Machine, you take pictures and then assign them to different classes (labels).
School example: A teacher labels students' test scores as "pass" or "fail."
Home example: You label your clothes as "school clothes" and "play clothes."
Nigerian example: A farmer labels different types of maize as "white maize" and "yellow maize."
Illustration (ASCII):
+-------------------+ | LABELING DATA | +-------------------+ | Picture of cat --> "Cat" | | Picture of dog --> "Dog" | | Picture of car --> "Car" | +-------------------+
Mini summary: Labeling is telling the AI what each example is. It is like giving the AI the answers to practice with.
Now that we have data and labels, it is time to train the AI. Training is when the AI looks at all the examples and learns to find patterns. The AI learns to tell the difference between a cat and a dog, or between an apple and a banana.
Definition: Training is the process of teaching the AI by showing it many labeled examples.
Why it is important: Training is the most important step. Without training, the AI is like a baby who knows nothing.
Simple explanation: Imagine you are teaching a friend to ride a bike. You show them how to do it many times. They learn from watching. Training the AI is the same. We show it many examples so it can learn.
Real-life example: In Teachable Machine, you press the "Train" button. The AI looks at all the pictures you collected and learns.
School example: A teacher trains students by giving them lessons and exercises.
Home example: You train your pet to sit by repeating the command and giving treats.
Nigerian example: A farmer trains an AI to recognize diseased plants by showing it many pictures of sick plants.
Illustration (ASCII):
+-------------------+ | TRAINING AI | +-------------------+ | 1. Show examples | | 2. AI finds | | patterns | | 3. AI learns | +-------------------+
Mini summary: Training is when the AI learns from the examples. It finds patterns and becomes smart.
After training, we need to test the AI. Testing means showing the AI new data that it has never seen before. We see if it can recognize it correctly. This is like taking an exam.
Definition: Testing is when we check if the AI learned well by giving it new data.
Why it is important: Testing shows us if the AI really learned or just memorized the training data.
Simple explanation: Imagine you studied for a test. The teacher gives you new questions. If you studied well, you will pass. Testing the AI is the same.
Real-life example: In Teachable Machine, you use the "Preview" mode. You show the AI a new picture and see if it gets it right.
School example: A teacher gives a test to see if students learned the lesson.
Home example: You give your pet a new command to see if it learned the trick.
Nigerian example: A farmer takes a new picture of a plant and asks the AI if it is healthy or sick.
Illustration (ASCII):
+-------------------+ | TESTING AI | +-------------------+ | 1. Give new data | | 2. AI makes a | | prediction | | 3. Check if | | correct | +-------------------+
Mini summary: Testing is checking if the AI learned well. We give it new data and see if it gets the right answers.
Sometimes, your AI might make mistakes. That is okay! You can improve it. You can give it more data, or you can give it better quality data. You can also retrain it.
Definition: Improving an AI means making it smarter by adding more data or improving the data.
Why it is important: AI is not perfect. We always need to improve it. This is called "iterating" โ doing something again and again to make it better.
Simple explanation: Imagine you are practicing a sport. You might not be perfect the first time. But you practice more and get better. AI is the same.
Real-life example: Google is always improving its AI. They add more data and refine their algorithms.
School example: A teacher gives students more practice problems to help them improve.
Home example: You might need to take more pictures of your pet from different angles to help the AI recognize it better.
Nigerian example: A farmer adds more pictures of different types of pests to help the AI detect them.
Illustration (ASCII):
+-------------------+ | IMPROVING AI | +-------------------+ | 1. Add more data | | 2. Better quality | | 3. Retrain | | 4. Test again | +-------------------+
Mini summary: You can always improve an AI. Add more data, improve the data quality, and retrain it.
No-code AI is not just for fun. It is used in real businesses and organizations. People use it to solve real problems.
Definition: No-code AI is used in many fields to automate tasks and make better decisions.
Why it is important: It shows you that the skills you are learning have real value in the world.
Simple explanation: People use no-code AI to sort tomatoes, to check if machines are working, and even to help doctors.
Real-life example: A farmer uses no-code AI to sort fruits by quality. The AI looks at pictures of fruits and separates the good ones from the bad ones.
School example: A school uses no-code AI to help teachers grade papers. The AI reads the papers and gives a grade.
Home example: A family uses no-code AI to find lost items. They take pictures of their items and the AI helps them find it.
Nigerian example: A startup in Abuja uses no-code AI to detect fake Naira notes. They train the AI to recognize the security features.
Illustration (ASCII):
+-------------------+ | NO-CODE AI | | IN THE WORLD | +-------------------+ | 1. Sorting fruits | | 2. Grading papers | | 3. Detecting fakes| | 4. Finding items | +-------------------+
Mini summary: No-code AI is used in many real-world applications. It is not just for fun โ it solves real problems.
Now, let us build our first AI project. We will build an AI that recognizes three different types of fruits: apples, bananas, and oranges. We will use Teachable Machine.
Step 1: Go to Teachable Machine (teachablemachine.withgoogle.com).
Step 2: Click on "Get Started" and choose "Image Project."
Step 3: You will see three classes. Rename them to "Apple," "Banana," and "Orange."
Step 4: Click on the first class. Use your webcam to take pictures of an apple. Take about 50 pictures from different angles.
Step 5: Do the same for the banana and the orange.
Step 6: Click the "Train" button. The AI will learn from your pictures.
Step 7: After training, test it. Show it a new picture of an apple, banana, or orange. See if it gets it right.
Step 8: If it makes mistakes, add more pictures and retrain it.
Definition: This is your first AI project. You are now an AI builder!
Why it is important: This project shows you that you can build an AI. It gives you confidence.
Simple explanation: You just taught a computer to recognize fruits. That is amazing!
Real-life example: This is the same process that big companies use to build AIs for sorting products.
School example: You can show your friends and family how you built an AI.
Home example: You can build an AI that recognizes your toys or your books.
Nigerian example: You can build an AI that recognizes different types of Nigerian fruits like mangoes, oranges, and pawpaw.
Illustration (ASCII):
+-------------------+ | YOUR FIRST AI | +-------------------+ | 1. Collect data | | 2. Label data | | 3. Train AI | | 4. Test AI | | 5. Celebrate! ๐ | +-------------------+
Mini summary: You have built your first AI! You collected data, labeled it, trained the AI, and tested it. You are now an AI creator.
| Word | Simple Definition |
|---|---|
| No-Code AI | Building AI without writing code. |
| Teachable Machine | A free tool from Google to build AI. |
| Collect Data | Gathering examples for your AI. |
| Label Data | Telling the AI what each example is. |
| Train AI | Teaching the AI by showing it examples. |
| Test AI | Checking if the AI learned well with new data. |
| Improve AI | Making the AI smarter by adding more or better data. |
| Model | The trained AI "brain." |
| Prediction | The AI's guess about what something is. |
| Webcam | A camera on your computer to take pictures. |
+----------+ +----------+ +----------+
| COLLECT |----->| TRAIN |----->| TEST |
| DATA | | AI | | AI |
+----------+ +----------+ +----------+
|
v
+-------------------+
| IMPROVE AI |
| (If needed) |
+-------------------+
+-------------------+
| Test AI |
+-------------------+
|
v
+-------------------+
| Does it work |
| well? |
+-------------------+
/ \
Yes No
| |
v v
+----------------+ +----------------+
| Done! It is | | Add more data |
| smart enough! | | and retrain |
+----------------+ +----------------+
| Feature | Teachable Machine | Coding Your Own AI |
|---|---|---|
| Requires coding | No | Yes |
| Time to build | Minutes | Weeks or months |
| Cost | Free | Can be expensive |
| Ease of use | Very easy | Difficult |
| Best for | Beginners, quick projects | Professionals, complex projects |
Congratulations! You have completed Module 3: Building Our First AI Project. Let us review what we learned.
You have done something amazing. You have built a smart machine that can recognize things. This is a skill that many people do not have. You are now ahead of the game. In the next module, we will learn about automation and how to connect AI to real-world devices. Get ready for even more fun!
Match the word on the left with its correct definition on the right.
| Word | Definition |
|---|---|
| 1. No-Code AI | A. A free tool for building AI. |
| 2. Teachable Machine | B. Teaching the AI with examples. |
| 3. Collect Data | C. Building AI without code. |
| 4. Train AI | D. Checking if the AI learned well. |
| 5. Test AI | E. Gathering examples for the AI. |
Answers: 1-C, 2-A, 3-E, 4-B, 5-D
Activity: In groups of 3-4, decide on an AI project. It could be recognizing different types of fruits, recognizing different types of toys, or recognizing different types of furniture. Use Teachable Machine to build the AI. Present your AI to the class and demonstrate how it works.
Activity: Build an AI that recognizes three things you use every day (e.g., your school bag, your water bottle, your lunch box). Use Teachable Machine. Write a short report on what you did, what data you collected, and how well the AI worked.
Project: Build an AI that recognizes three different types of objects in your home (e.g., a mug, a book, a phone). Use Teachable Machine. Take pictures from different angles. Train and test your AI. Write a one-page summary of your project.
Assignment: Build an AI that recognizes your handwriting. Write the numbers 0-9 on a piece of paper. Take pictures of each number. Label them. Train the AI. Test it with new handwriting. Show your results to the class.
In Module 4, we will learn about automation. We will see how AI can be connected to real-world devices to make things happen. Imagine an AI that can turn on a light when it sees you. Or an AI that can open a door when it recognizes your face. That is what we will explore next.
To prepare, think about this: What would you automate in your home or school? If you had an AI that could control a device, what would you want it to do? Start thinking about these questions. See you in Module 4!
Note: This is the end of Module 3. You have built your first AI. You are now ready for Module 4, where we will connect AI to the real world. Keep building, keep learning, and keep having fun!