CLASS 8 · Artificial Intelligence

Class 8 CT and AI: Data and Fairness in AI Solutions

Work through Data and Fairness in AI with explanations for the Class 8 CBSE Computational Thinking and Artificial Intelligence handbook.

Book: CBSE CT and AISession: 2026–27
Jump to a question or activity
  1. Think: cricket bats and rackets
  2. Think: sport recommendations
  3. Think: regional-language recommendations
  4. Supervised learning activity: setup
  5. Exercise 1: dog training data
  6. Exercise 2: cat training data
  7. First testing table
  8. Follow-up 1
  9. Follow-up 2(a): re-curate dogs
  10. Follow-up 2(b): re-curate cats
  11. Follow-up 3: retrain and test
  12. Follow-up 4
  13. Short concept lessons
  14. Additional practice questions

Key ideas

Training data affect which patterns a model learns. Unbalanced or unrepresentative data can lead to unequal errors. Balanced counts are useful but not sufficient: also check variety, labels, test results and the consequences for people.

Short Concept Lessons

Learn a method, follow the example, then use it in the additional practice.

Check who and what the data represent

A dataset should cover the variation relevant to the intended task.

Worked example

Animal images may differ in breed, pose, lighting and background.

Remember: Equal class counts alone do not ensure representative examples.

Practise this method →

Test the effect of imbalance

More examples of one class can influence learning, but actual performance must be measured.

Worked example

Compare cat and dog test success rates instead of assuming the larger training class always wins.

Remember: Treat a predicted effect as a hypothesis until tested.

Practise this method →

Separate confidence from correctness

A confidence score describes a model output for an input; it is not proof that the output is right.

Worked example

A dog labelled Cat with a 95% score is still an incorrect classification.

Remember: Accuracy is measured across checked predictions.

Practise this method →

Keep tests independent

Hold test examples apart from training when comparing models.

Worked example

Use the same separate test set before and after improving the training data.

Remember: Training on the test photos weakens the comparison.

Practise this method →

Compare rates, not just totals

Different groups may have different numbers of test examples.

Worked example

Two correct out of three is about 66.7%; three correct out of four is 75%.

Remember: A larger correct count is meaningful only with its denominator.

Practise this method →

Respect individual preferences

Group patterns do not establish an individual’s interests or ability.

Worked example

A sports recommender should ask what the student enjoys and allow alternatives.

Remember: Human review and a way to question recommendations help protect choice.

Practise this method →

Questions and Solutions

Think: cricket bats and rackets. Consider training an AI program to identify a cricket bat and badminton racket from the input images.

The AI model will be provided with many images to train it for identifying a bat and a racket. AI carefully studies these images and looks for patterns such as the long, flat shape of a cricket bat, the oval frame and strings of a badminton racket. Over time, AI learns to distinguish between these two objects based on these patterns. After learning from these examples, AI tries to identify new images correctly.

Most training images are of cricket bats compared to a badminton racket. Now, if we show the new image, what will the AI guess?

Think

  • How many images are included?
  • How are the images similar? How are images different?
  • Do you expect the algorithm’s accuracy to be?
    • Better for Cricket Bats
    • Same for both
    • Better for Badminton rackets
Training images: six cricket-bat examples and two badminton-racket examples.

Solution

Sample guidance

The display contains six bat image examples and two racket image examples: eight examples in total. Count image examples, not individual objects inside a composite picture. The bat images share the bat concept but vary in colour, orientation, illustration/photo style and background. The racket images show oval stringed frames but differ in scene and number of rackets.

The expected classroom prediction is better recognition of cricket bats because there are more varied bat examples. This is a hypothesis, not a guaranteed measured result. Test separate, labelled bat and racket images and compare success rates to find out how this actual model behaves.

Think: sport recommendations. A school is building an AI program that recommends sports to students.

The system looks at past data about which students enjoyed different sports. Here is the training data:

Sports Training Data (Students who enjoyed it)
Boys Girls
Cricket 55 15
Badminton 10 20

The AI program studies the data and tries to learn patterns. It may notice that most boys played cricket, and most girls played badminton. Now imagine a new girl student joins the school.

Think

  • What sport do you think the AI will recommend to new users based on the data above?
  • Is the AI making the recommendation based on ability or data pattern?
  • Do you think the recommendation is fair to every student?
  • How could we improve the data so that the AI makes fairer recommendations?

Solution

Sample guidance

A model using the displayed gender-group pattern may recommend badminton to the new girl, since 20 girls enjoyed badminton and 15 cricket. It may recommend cricket to a boy (55 versus 10). This follows the recorded pattern, not evidence of the individual’s ability or preference.

It is not fair to limit a student’s opportunities on that basis. Ask about personal interests, allow either sport, collect representative experiences from students with equal access to both sports, and test whether groups receive unequal or unwanted recommendations. More balanced examples help, but student choice and human review are also necessary.

Think: regional-language recommendations. Many online platforms use AI to recommend videos, songs, or articles that users might enjoy. The AI program learns from data such as videos people watch, they like/share. The AI then recommends videos that are similar to popular ones. When the system recommends videos to new users, it may mostly suggest English/Hindi language videos. As both have very high total view counts. Videos in smaller regional languages may appear less often in recommendations.

• Could this affect creators who make videos in regional languages? Why?

• What could the platform do to ensure that different languages are represented fairly?

Solution

Sample guidance

Creators in smaller-language communities may get fewer recommendations because total view counts favour large audiences. Reduced visibility can then reduce their future views, reinforcing the gap. Let users choose language preferences, compare performance within relevant audiences, include diverse languages in testing, and give users ways to discover content beyond the most-viewed groups. Do not assume total popularity measures quality.

Supervised learning activity: setup. 1. Go to https://teachablemachine.withgoogle.com and click on ‘Train models on images’

2. Click ‘Add samples’, then ‘file’ & ‘Choose files’

3. Locate the Teachable Machines Cat-Dog Dataset in the Drive.

4. Click ‘Dogs’, then ‘training dataset’. Click ‘open’ to add an image to the training set. Be sure to add all images at once.

5. After all of the images have been added, click Add samples. Repeat with cat training images.

Solution

Sample guidance

Use the teacher-provided image collection or another permitted, labelled classroom collection. Make separate Cat and Dog training classes. Keep test images apart from training and count the uploaded examples in each class. Record the source and grouping so that a later comparison uses the same test set. The printed handbook does not supply a universal downloadable training set or a single result that every class will obtain.

Exercise 1: dog training data. For the dog training dataset, record the following:

• How many images are included?

• How are the images similar?

• How are the images different?

Solution

Sample guidance

Count: enter the number of dog training images actually uploaded. Similarities: note shared features such as dogs being visible, similar framing or a common background. Differences: note breeds, size, colour, pose, lighting and background. For example, a teacher may initially use about 7–8 dog examples to demonstrate imbalance, but this is a suggested setup, not an observed count in your project.

Exercise 2: cat training data. For the cat training dataset, record the following:

• How many images are included?

• How are the images similar?

• How are the images different?

Solution

Sample guidance

Count: enter your actual cat-image total. Similarities: all should contain the labelled animal; check whether most show a similar pose or background. Differences: record breed, coat, viewpoint, size, lighting and scene variation. An initial set of about 15 cats is one classroom setup suggested by the teacher guide; do not report 15 unless it matches your upload.

First testing table. Once your classifier is finished, test your dataset with the images below.

Fill in the table on the next page about your testing dataset:

First test table, rows 1–4, with three cat images followed by a dog. Blank classification, confidence score and correctness columns.
First test table continued, rows 5–7, showing three dogs with blank result columns.

Solution

Sample guidance

For each test picture, identify its true animal from the picture or teacher’s verified label. Run the trained model, copy the displayed Cat/Dog prediction and confidence score, and mark Yes only if the predicted label matches the true label. Complete every row in the handbook table. A confidence score is the model’s score for that input, not proof that the prediction is correct and not the accuracy of the whole model.

Record for each test image How to fill it
Image Use its row number or a short unique description.
Classification Copy the model’s predicted class.
Confidence score Copy the displayed score for that prediction.
Correct? Compare with the checked true label: Yes or No.

These results must come from your actual run. The teacher handbook’s example percentages are illustrative and should not be copied as measurements.

The two printed test tables show the same seven animals in the same order. Their reference classes are:

Test row True class Image reference
1 Cat Long-haired pale cat with dark face
2 Cat Seated dark mottled cat
3 Cat Standing short-haired pale cat
4 Dog Standing brown, black and white dog
5 Dog Seated black-and-white dog
6 Dog Long-haired grey-brown dog
7 Dog Small pale dog with a dark muzzle

Use these true classes to check your own model outputs. For each row, classification and confidence must still be copied from your run.

Follow-up 1. Which class did your classifier work better on? Why do you think that is?

a) Cats
b) Dogs

Solution

Sample guidance

For cats, divide correctly identified cat test images by all cat test images. Do the same for dogs and compare the two rates. If cats perform better in the deliberately imbalanced setup, more numerous or varied cat examples may be a reason. Inspect pose, background and label differences too; the count alone does not prove the cause. Report the class your results actually support, including a tie if appropriate.

Follow-up 2(a): re-curate dogs. With your group, use the photos on the tables to re-curate your training dataset. Record the following:

a. For the dog training dataset, record the following:

• How many images are included?

• How are the images similar?

• How are the images different?

Solution

Sample guidance

Add varied, correctly labelled dog images and remove unsuitable duplicates or wrong labels. A possible revised target is 15 dog images. Record the actual final count, common features and differences in breed, coat, viewpoint, pose, lighting and backgrounds. Do not use the held-out test images for training while claiming an independent before/after comparison.

Follow-up 2(b): re-curate cats. b. For the cat training dataset, record the following:

• How many images are included?

• How are the images similar?

• How are the images different?

Solution

Sample guidance

Choose a comparably varied cat collection, for example 15 images if dogs also have 15. Record its actual count and similarities/differences, just as for dogs. Equal counts address one imbalance but do not guarantee equal recognition: the quality and coverage of examples matter as well.

Follow-up 3: retrain and test. Train your new classifier on your two new training datasets.

Once your classifier is finished, test your dataset with the cards given to you containing the following image. Fill in the table on the next page about your testing dataset:

Second test table, first cat image and blank result columns.
Second test table continued, two cats followed by four dogs with blank result columns.

Solution

Sample guidance

Train with the revised sets, then use the same separate test pictures and record every new prediction, score and Yes/No result. Compare error counts for cats and dogs before and after. Keep testing conditions similar so that changes are interpretable. Do not fill the table with invented scores; the training process and chosen images determine the result.

The two printed test tables show the same seven animals in the same order. Their reference classes are:

Test row True class Image reference
1 Cat Long-haired pale cat with dark face
2 Cat Seated dark mottled cat
3 Cat Standing short-haired pale cat
4 Dog Standing brown, black and white dog
5 Dog Seated black-and-white dog
6 Dog Long-haired grey-brown dog
7 Dog Small pale dog with a dark muzzle

Use these true classes to check your own model outputs. For each row, classification and confidence must still be copied from your run.

Follow-up 4. Did your new algorithm work?

• Better for dogs

• The same for both cats and dogs

• Better for cats

Solution

Sample guidance

Select the option supported by the new test success rates. If the question is about improvement, also compare each class’s rate with its own earlier rate. For example, dogs can improve substantially while cats still have the higher final accuracy. State both facts clearly. Equal training counts alone do not justify ticking “the same for both”.

Additional Practice Questions with Solutions

Choose an answer, use a hint if needed, then open the worked solution to check your reasoning.

Solved 0 of 10 · Checked 0 of 10

Your practice progress lasts until you reset or reload this page.

Apply · Representation

Practice Q1. Which cat training set offers more useful variety?

Choose one answer for Practice Q1

Show hint

Look for relevant differences among examples.

Show worked solution

Option (b) Varied cats, poses, backgrounds and lighting.

Varied, correctly labelled examples cover more of the conditions a model may encounter.

Common mistake: Repeating a photo does not add much new information.

Apply · Imbalance

Practice Q2. A training set has 30 cat photos and 5 dog photos. What can you conclude before testing?

Choose one answer for Practice Q2

Show hint

A possible influence is not a guaranteed outcome.

Show worked solution

Option (c) The imbalance may affect performance and should be tested.

Class imbalance may affect learning, but separate tests are needed to find the actual performance.

Common mistake: Do not turn a hypothesis into a measured result.

Apply · Confidence

Practice Q3. A real dog is classified as Cat with a 95% score. Is the prediction correct?

Choose one answer for Practice Q3

Show hint

Compare the predicted class with the verified true class.

Show worked solution

Option (a) No.

Cat does not match Dog. The prediction is incorrect despite its high score.

Common mistake: Confidence and correctness are different.

Apply · Independent testing

Practice Q4. Which action weakens a before-and-after test comparison?

Choose one answer for Practice Q4

Show hint

The test should remain unseen during training.

Show worked solution

Option (d) Adding the test photos to training before the second test.

Training on test photos can make the second score reflect familiarity rather than improved generalisation.

Common mistake: Keep evaluation examples apart from training.

Apply · Success rates

Practice Q5. Cats: 2 correct out of 3. Dogs: 3 correct out of 4. Which class has the higher test success rate?

Choose one answer for Practice Q5

Show hint

Compare 2/3 with 3/4.

Show worked solution

Option (b) Dogs.

Cats score about 66.7%, while dogs score 75%, so dogs have the higher rate on this test.

Common mistake: Compare fractions, not just raw counts.

Apply · Individual choice

Practice Q6. A new girl is automatically limited to badminton because past girls often chose it. What is a better approach?

Choose one answer for Practice Q6

Show hint

A group pattern does not determine one person’s preference.

Show worked solution

Option (c) Ask her interests and offer both sports.

Ask the student what she enjoys and keep opportunities open instead of restricting choice by gender.

Common mistake: Recorded group preferences are not evidence of individual ability.

Apply · Data quality

Practice Q7. Both classes contain 15 images. Does this guarantee equal accuracy?

Choose one answer for Practice Q7

Show hint

Equal counts address only one part of the data.

Show worked solution

Option (a) No; variety, quality and testing also matter.

Balanced counts can help, but examples may still differ in quality or coverage. Measure class-specific results.

Common mistake: Balance alone does not prove fairness or accuracy.

Apply · Regional languages

Practice Q8. A platform recommends only videos with the largest total view counts. What is a possible effect?

Choose one answer for Practice Q8

Show hint

Audience size can affect total view counts.

Show worked solution

Option (d) Smaller-language creators may receive less visibility.

Popular large-language content may dominate, leaving smaller-language creators less visible.

Common mistake: Total popularity is not a neutral measure of quality or relevance.

Apply · Recording results

Practice Q9. What should you enter in an activity’s confidence-score column?

Choose one answer for Practice Q9

Show hint

Record observations from your own run.

Show worked solution

Option (b) The score actually displayed for that test input.

Copy the score shown by your model for that input; do not invent or borrow measurements.

Common mistake: Sample scores are not your experimental results.

Apply · Human review

Practice Q10. Which feature helps users question an unfair AI recommendation?

Choose one answer for Practice Q10

Show hint

People need a way to understand and challenge outcomes.

Show worked solution

Option (c) A clear explanation and a route to human review.

Explanations and human review help identify mistakes and reconsider inappropriate recommendations.

Common mistake: Transparency and review complement technical checks.

Scroll to Top