Welcome back, young builder! In Module 5, we learned about De Novo AI – artificial intelligence built from scratch for a specific business. That was the “what” and the “why.” Now, in Module 6, we are going to learn the “how.”
Have you ever built a model with Lego bricks? You start with a pile of bricks, you follow a plan, and you create something amazing. Building a simple AI is very similar. You start with data (your bricks), you use an algorithm (your plan), and you create a smart program (your model).
In this module, we will build our very first simple AI together – using only our brains, paper, and maybe a simple spreadsheet. We will not write complicated computer code (we will save that for later). Instead, we will learn the ideas behind how AI is built. By the end, you will have built a working AI that can make predictions – just like the ones used by real businesses!
Remember, this is for beginners. We will take it step by step, and we will have lots of fun along the way. Let’s begin!
By the end of this module, you will be able to:
Tunde was the captain of his school football team in Ibadan. Every week, he had to choose which players would start the match. But Tunde noticed something: some players played better on sunny days, while others played better when it was raining. Some players were faster in the morning, others were better in the afternoon.
Tunde thought, “I wish I had a smart assistant to help me pick the best team for each match.”
He remembered his older sister, who was studying AI. She told him, “You can build a simple AI to help you! Just write down the conditions – like weather, time, and player performance – and make a decision tree.”
Tunde was excited. He took a big piece of paper and drew a tree. At the top, he asked: “Is it sunny?” If yes, he went to one branch. If no, he went to another. He kept adding branches for “time of day,” “opponent strength,” and “player fitness.”
After a few weeks, Tunde’s decision tree was working so well that his team won three matches in a row! His friends called him “Coach AI.” Tunde had built his very first AI – a decision tree – without even using a computer. He learned that AI is not magic; it is just smart thinking put into a clear plan.
Now, you are going to do the same thing. Let’s build your first AI!
Definition: A simple AI is a computer program that follows clear rules to make decisions or predictions.
Why it is important: Simple AI is the foundation for all advanced AI. If you understand simple AI, you can understand any AI.
Simple explanation: A simple AI is like a flow chart that answers questions one by one until it reaches a conclusion.
Real‑life example: A coffee machine that decides how much water to use based on the cup size you choose.
School example: A system that recommends which book to read based on your favourite subject.
Home example: A thermostat that turns on the heater if the temperature drops below 20°C.
Nigerian example: A simple AI that tells a farmer whether to plant yams or cassava based on the soil type.
Simple AI = Questions + Answers + Decisions Like a "choose your own adventure" book!
Mini summary: A simple AI uses rules to make decisions.
Definition: Data is the information we feed into our AI so it can learn.
Why it is important: Without data, our AI is like a car without petrol – it cannot go anywhere.
Simple explanation: Data are the examples we show the AI. For example, if we want the AI to know what a cat looks like, we show it many pictures of cats.
Real‑life example: A weather app uses data from satellites and sensors to predict rain.
School example: Your teacher uses your test scores (data) to know which topics you understand.
Home example: You keep a list of your family’s favourite meals – that is data!
Nigerian example: A market woman records how many yams she sells each day – that is her data.
Types of data: +----------+------------------+ | Numbers | 15, 20, 3, 100 | +----------+------------------+ | Words | "sunny", "rain" | +----------+------------------+ | Pictures | photos of goods | +----------+------------------+
Mini summary: Data is the information we give to our AI.
Definition: An algorithm is a set of step-by-step instructions for solving a problem.
Why it is important: The algorithm tells the AI exactly what to do with the data.
Simple explanation: An algorithm is like a recipe for baking a cake. It tells you the ingredients (data) and the steps (what to do).
Real‑life example: The algorithm for making jollof rice: cook tomatoes, add spices, add rice, simmer.
School example: The steps you follow to solve a long division problem.
Home example: The steps to brush your teeth: put toothpaste on brush, brush, rinse, smile!
Nigerian example: The traditional method for making ogi (pap) – soak, grind, sieve, cook.
Algorithm for finding the largest number: 1. Start with the first number as the largest. 2. Compare with the next number. 3. If next is larger, replace largest. 4. Repeat until all numbers are checked. 5. Output the largest.
Mini summary: An algorithm is a step-by-step recipe for solving a problem.
Definition: A model is the result after we apply the algorithm to the data. The model can then make predictions.
Why it is important: The model is what we actually use. It is the finished AI.
Simple explanation: If the algorithm is the recipe and data are the ingredients, the model is the final cake you can eat!
Real‑life example: After training a face-recognition AI, the model can recognise your face.
School example: After training a spelling AI, the model can check your spelling.
Home example: After training a plant-watering AI, the model tells you when to water.
Nigerian example: A model that predicts when to harvest cassava based on rainfall data.
DATA + ALGORITHM = MODEL (your AI!) (ingredients) (recipe) (finished product)
Mini summary: The model is the final AI that can make predictions.
Definition: A decision tree is an AI that uses a series of questions (like a tree) to reach a conclusion.
Why it is important: Decision trees are easy to understand, draw, and explain. They are the perfect starting point.
Simple explanation: A decision tree is like a game of 20 questions. You ask yes/no questions until you guess the answer.
Real‑life example: A doctor uses a decision tree to decide if a patient has a cold or the flu based on symptoms.
School example: A decision tree to decide which extracurricular activity to join: "Do you like sports? Yes -> Football, No -> Music."
Home example: A decision tree to decide what to eat: "Are you hungry? Yes -> Is it morning? Yes -> Breakfast."
Nigerian example: A decision tree for a farmer: "Is it rainy season? Yes -> Plant yams, No -> Plant cassava."
Decision Tree Diagram:
Is it sunny?
/ \
Yes No
/ \
Play football Stay inside
Mini summary: Decision trees ask questions to reach an answer.
Definition: To build a decision tree, we choose the most important question to ask at the top, then add more questions below.
Why it is important: This is how we create our very first AI.
Simple explanation: We look at our data and find the question that splits the data into the clearest groups.
Real‑life example: A store builds a decision tree to decide which products to discount: "Is it a holiday? Yes -> Discount, No -> Keep price."
School example: A decision tree to decide what to study: "Is math test tomorrow? Yes -> Study math, No -> Study reading."
Home example: A decision tree to decide when to do homework: "Is it after dinner? Yes -> Do homework, No -> Play."
Nigerian example: A farmer builds a decision tree: "Is it raining today? Yes -> No irrigation, No -> Irrigate."
Steps to build a decision tree: 1. Look at your data. 2. Pick the most helpful question. 3. Put that question at the top. 4. Add branches for "Yes" and "No". 5. For each branch, add more questions. 6. Stop when you have a clear answer.
Mini summary: Building a decision tree is like creating a flowchart of questions.
Definition: Training is when we give the AI lots of data with the correct answers so it can learn the rules.
Why it is important: Training is how the AI gets smart. Without training, it knows nothing.
Simple explanation: Training is like showing a child flashcards. You show a picture of a dog and say "dog." The child learns to recognise dogs.
Real‑life example: A chatbot is trained with thousands of customer questions and their correct answers.
School example: You train a spelling AI by giving it words and their correct spelling.
Home example: You train a chore AI by telling it which chores you have done and when.
Nigerian example: A bank trains its fraud AI by giving it examples of real fraud and legitimate transactions.
Training loop: Give example -> AI predicts -> Check if correct -> If wrong, adjust AI -> Repeat (Like a teacher correcting a student)
Mini summary: Training = showing the AI examples so it can learn.
Definition: Testing is when we use new data that the AI has not seen before to see if it makes correct predictions.
Why it is important: Testing tells us if our AI is really smart or if it just memorised the training data.
Simple explanation: Testing is like a quiz. You study (train) and then you take a test (test) with new questions.
Real‑life example: A weather app is tested with historical weather data. If it predicts yesterday’s weather correctly, it is good.
School example: You test your decision tree with new student data to see if it recommends the right books.
Home example: You test your chore AI by giving it a new week of chores and see if it schedules them well.
Nigerian example: A logistics company tests its delivery route AI with new addresses to see if it finds the fastest routes.
Train on 80% of data, Test on 20% of data. If test accuracy is high, AI is good. If low, we need to improve.
Mini summary: Testing = checking if our AI works with new data.
Definition: Improving means making changes to your AI to make it more accurate.
Why it is important: Even good AIs can get better. Improvement never stops.
Simple explanation: If your AI makes mistakes, you find out why and fix it.
Real‑life example: A music app asks you to like or dislike songs to improve its recommendations.
School example: You add more questions to your decision tree to cover more cases.
Home example: You add more data (more meals) to your meal planner AI to make it more accurate.
Nigerian example: A farmer adds more data (soil moisture) to his planting AI to get better predictions.
Ways to improve: - Add more data - Add more questions - Use better algorithms - Fix data errors
Mini summary: Always improve your AI with more data and better questions.
Definition: Deployment means using your AI in the real world to solve the problem you designed it for.
Why it is important: An AI is only useful if it is used.
Simple explanation: After you build and test your AI, you let it help you. It is like making a sandwich – you only eat it after you have made it!
Real‑life example: A store uses its price-prediction AI to set prices for the next month.
School example: Your school uses your book-recommendation AI to help students find books.
Home example: You use your chore AI to plan your week.
Nigerian example: A farm uses its planting AI to decide what to plant in the next season.
Deployment steps: 1. Finalise the AI. 2. Show it to users. 3. Monitor its predictions. 4. Keep improving.
Mini summary: Deployment = using your AI in the real world.
| Word | Simple Definition |
|---|---|
| Data | Information like numbers, words, or pictures. |
| Algorithm | A step-by-step recipe for solving a problem. |
| Model | The final AI after training – it can make predictions. |
| Decision Tree | An AI that uses a series of yes/no questions. |
| Training | Teaching the AI by giving it examples. |
| Testing | Checking the AI with new data to see if it works. |
| Deployment | Using the AI in real life. |
| Accuracy | How often the AI gives correct answers. |
| Prediction | What the AI guesses or decides. |
| Improvement | Making the AI better over time. |
Decision Tree Example: Is it sunny? / \ Yes No / \ Is it weekend? Is it raining? / \ / \ Yes No Yes No | | | | Play Study Study Play
DATA + ALGORITHM = MODEL (ingredients) (recipe) (finished AI)
Is it sunny? / \ Yes No / \ Is it weekend? Is it raining? / \ / \ Yes No Yes No | | | | Play Study Study Play
+-------------------+ | All Data | +--------+----------+ | 80% | 20% | | Train | Test | +--------+----------+
| Feature | Decision Tree | Neural Network (complex) |
|---|---|---|
| Understandability | Very easy | Hard |
| Data needed | Small amount | Huge amount |
| Training time | Fast | Slow |
| Accuracy | Good | Very good |
| Best for | Simple problems | Complex problems |
Well done! You have completed Module 6: Building Your First Simple AI. Let’s review what we have learned:
You now have the basic skills to build your own simple AI. Remember, even the most advanced AI systems started with simple decision trees. You are on your way!
Match the term on the left with its description on the right.
| Term | Description |
|---|---|
| 1. Data | A. The final AI that makes predictions |
| 2. Algorithm | B. Teaching the AI with examples |
| 3. Model | C. Information given to the AI |
| 4. Training | D. A step-by-step recipe |
| 5. Testing | E. Checking the AI with new data |
Answers: 1‑C, 2‑D, 3‑A, 4‑B, 5‑E
Scenario 1: Your school wants to know if students will pass or fail an exam based on their homework completion and attendance.
Scenario 2: A local restaurant wants to know if they should open for lunch on a particular day. They have data on weather, day of the week, and public holidays.
“Build a Decision Tree for Your School”
In groups of 3-4, think about a problem at your school that a simple AI could solve. For example:
Design a decision tree with at least 3 questions. Draw it on a large paper and present it to the class. Explain why you chose each question.
Think about a decision you make at home every day (e.g., what to eat for breakfast, which TV show to watch).
“Build a Decision Tree AI for a Shop”
Imagine you own a small shop that sells drinks. You want to predict how many bottles of a new drink to order.
Use a spreadsheet or a piece of paper to collect data on something you do every day (e.g., what time you wake up, how much water you drink).
“AI for a Farm”
You are the manager of a large farm in Kaduna. You need to decide which crop to plant each season: maize, cassava, or sorghum. You have data on rainfall, temperature, and soil type.
Fill‑in‑the‑Blank Answers:
True or False Answers:
Multiple Choice Answers: 1A, 2B, 3B, 4A, 5A, 6A, 7A, 8A, 9B, 10A, 11A, 12C, 13A, 14A, 15A
In Module 7, we will learn about “AI in Action – Real Business Cases.” We will explore how real companies – from small shops to big corporations – use AI to grow their businesses. We will look at exciting case studies, including some from Nigeria, and we will see exactly how AI is changing the world of work.
To prepare, think about a business you know (maybe your parents’ shop, a market stall, or a local store). Try to imagine how a simple AI could help them. Bring your ideas to class!
See you in Module 7! 🚀