📘 CodingMarble Learn

The AI Project Cycle: How an AI Solution Is Built

Artificial intelligence (AI) is the ability of a machine to learn from data and make decisions or predictions, like recognising faces or suggesting songs. An AI solution is built in a loop of six stages called the AI project cycle: 1) Problem Scoping, using the 4Ws (Who, What, Where, Why); 2) Data Acquisition, collecting reliable data; 3) Data Exploration, cleaning and graphing the data to find patterns; 4) Modelling, choosing rules or a learning method; 5) Evaluation, testing on new data with accuracy; 6) Deployment, putting it to real use and improving it. At every stage we must think about ethics: fairness (no bias), privacy, transparency and who is responsible.

🎬 Step-by-step story

  1. AI is a machine that learns from examples, called data. It sees many apples and oranges, then can tell a new fruit apart by itself.
  2. Every AI project starts with Problem Scoping. Ask the 4Ws: Who has the problem? What is it? Where does it happen? Why is it worth solving?
  3. Next, collect data (Data Acquisition) from surveys, cameras, sensors or websites. Then explore it: draw graphs and remove wrong or missing values.
  4. Build a model (Modelling): write rules, or let the machine learn from data. Test it on new data (Evaluation). If it is good enough, launch it (Deployment).
  5. Ethics and bias: if group B has very few examples in the data, the model makes more mistakes for group B. Fair data includes everyone and keeps privacy safe.
  6. Free play: set how much of the data comes from group B. Watch the model become fairer as the data becomes balanced.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

How is AI different from a normal computer program?

A normal program follows fixed rules written by a person. An AI model learns its own rules from many examples, as the machine does with the fruits.

Why not start building the model straight away?

Without the 4Ws you do not know whose problem you are solving or what data you need. Scoping decides everything after it.

Why remove some data during exploration?

Wrong or missing values teach the model wrong patterns. The grey dot that drops away is a bad record being removed.

Why test on new data, not the training data?

A model can memorise training examples. Only new data shows if it really learned. The green and red bars are results on new data.

Can a model be accurate and still unfair?

Yes. It can be 92% right for group A and much worse for group B. The overall number hides it; checking each group shows it.

How do we fix bias?

Add more examples from the missing group. In free play, raise group B's share and watch its accuracy bar rise.

What is AI?

Artificial intelligence (AI) is when a computer does a task that needs human-like thinking: seeing, listening, understanding language or deciding. Most AI today works by learning from data, not by following only fixed instructions.

AI, machine learning and deep learning

Three main domains

Not everything automatic is AI: a washing machine timer follows fixed steps and does not learn.

The six stages of the AI project cycle

  1. Problem Scoping: understand the problem. Fill a 4Ws problem canvas: Who (stakeholders), What (the problem and its proof), Where (situation/context), Why (benefit of solving it). End with a one-line problem statement.
  2. Data Acquisition: collect data that is relevant, reliable and allowed to use. Sources: surveys, sensors, cameras, observations, web scraping, open data sets (APIs). Data has features (inputs, e.g. size, colour) and a label (answer, e.g. apple).
  3. Data Exploration: clean the data (fix missing, wrong or repeated values) and visualise it with graphs to spot patterns.
  4. Modelling: choose a method. Rule-based: humans write the rules. Learning-based: the machine learns rules from the data (e.g. supervised learning with labelled data, unsupervised learning finding groups).
  5. Evaluation: test the model on data it has never seen. Measure accuracy and look at its mistakes.
  6. Deployment: put the model into a real app or device, watch how it works and keep improving. Then the cycle repeats.

Evaluating a model: accuracy in simple numbers

Accuracy = correct predictions ÷ total predictions × 100%.

If a fruit model sees 200 new fruits and gets 180 right, accuracy = 180 ÷ 200 × 100 = 90%. We keep some data aside as test data because a model can simply "remember" its training data; testing on new data shows whether it really learned.

Accuracy alone can hide problems: a model may be 95% right overall but much worse for one group of people. That is why we also check results group by group.

Ethics and bias in AI

AI ethics means making sure AI is used in a way that is fair and safe for people.

Fixes: balanced and checked data, testing on every group, human review of important decisions.

Key formulas and definitions

Worked examples

1. Write a 4Ws problem statement for students who forget to drink water in school.

Who: students aged 12–15. What: they drink too little water and feel tired. Where: in classrooms during long periods. Why: reminders could improve health and focus. Statement: "Our students (who) drink too little water (what) during long class periods (where); a smart reminder would keep them healthy and alert (why)."

2. A plant-disease model tested on 250 new leaf photos gives 215 correct answers. Find the accuracy.

Accuracy = 215 ÷ 250 × 100 = 86%.

3. A loan-approval model was trained only with data from city applicants. What problem may appear and how can it be fixed?

It may unfairly reject village applicants because it never learned their patterns (bias). Fix: collect balanced data from villages too, test accuracy separately for each group, and let a human review rejections.

Common mistakes

Practice quiz

1. Which is the first stage of the AI project cycle?
2. The 4Ws canvas asks Who, What, Where and:
3. Cleaning data and drawing graphs is part of:
4. A model gets 45 out of 50 test cases right. Its accuracy is:
5. AI bias usually comes from:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the 6 stages of the AI project cycle?

Problem Scoping, Data Acquisition, Data Exploration, Modelling, Evaluation and Deployment.

What is the 4Ws problem canvas?

A tool for problem scoping that asks Who has the problem, What it is, Where it happens and Why it is worth solving.

What is bias in AI?

Bias is when an AI gives unfair or less accurate results for some people, usually because its training data did not represent them well.

Where this is taught

CBSE (India)Class 9Part B: AI Reflection, Project Cycle and Ethics

Learn first

Learn next

Related lessons

All Computer Science lessons