Ai Image Recognition Testing Images - Exploring Limitations and Bias - Final
Ai Image Recognition Testing Images - Exploring Limitations and Bias - Final
Suggested steps
If you already have a teacher account and student logins fully set up on the website Machine Learning for Kids,
please skip to Training the AI.
PA
5. Enter a username, your email address and intended use, then tick the checkbox.
6. Read the information at the bottom of same page in the set-up – Create an unmanaged class account).
Here is a brief summary.
After signing up for Machine Learning for Kids, you, the teacher, will be required to set up an account
on IBM Cloud in order to obtain access credentials and codes called ‘API keys’. You will not need to
provide credit card information to use IBM Cloud, and free usage should be adequate for your class.
7. Select CREATE CLASS ACCOUNT at the bottom right of the same page.
8. Note down the password generated for you at the top of the page (and keep it in a safe place).
9. Check your email inbox for an email from Machine Learning for Kids. Click the link in the email to
verify your account.
10. Return to the Machine Learning for Kids login page and Log in with your username and password.
11. Select Teacher in the top menu to show the Administration page.
12. A pink box will indicate that the API Keys from IBM have not been obtained yet. Select Watson API
Keys to see where these will need to be added.
13. From this point, you’ll need to follow the first page of steps in a PDF available on the Machine
Learning for Kids help page (Unmanaged class accounts). These steps include:
● creating Watson Assistant API Keys and adding them to Machine Learning for Kids
● creating Watson Visual Recognition API Keys and adding them to Machine Learning for Kids
● setting up names and passwords for your students on Machine Learning for Kids (up to 30
users in total, including yourself).
Remember that you do not need to provide credit card information to use IBM Cloud, and free usage
should be adequate for your class to do both this activity and others.
Training the AI
Follow the steps below to train an AI model to recognise cartoon faces wearing glasses or sunglasses.
PA
1. Log in at machinelearningforkids.co.uk/#!/login. Students use the names and passwords already set up
by the teacher.
2. Go to Projects.
7. From the ‘Projects’ page, select the project you just made.
8. Select Train.
9. Add three labels: glasses, sunglasses or noGlasses. These are the buckets you'll be putting the images
in.
10. In a separate browser window, open this gallery of training faces (Cartoon set © Google LLC, CC BY
4.0).
11. With the windows side-by-side, drag the images into the appropriate bucket: glasses, sunglasses, or
noGlasses. You should end up with 14 images in each bucket.
Note, dragging does not work in Microsoft Edge (as of September 2019).
14. Select Train new machine learning model. This may take from 10 to15 minutes. The page will
update when it's done.
Testing the AI
Follow the steps below to test your AI model.
1. Once training is done, a box will appear on the same page to Test with a web address for an image
on the Internet. This gallery of test faces (Cartoon set © Google LLC, CC BY 4.0) has more diverse
skin colours than in the training dataset. Right-click on one face and copy the image URL, then paste it
into that box. Then press the button to test it.
2. Now we’ll try out our model within a Scratch program. Select < Back to project.
3. Select Make.
6. To test an image, first change the sprite's current costume to the face you want to test. Download one of
the images from the test gallery, then upload it as a costume for the sprite.
7. Code a program using the extra Machine Learning for Kids blocks and Images blocks. The
screenshot below shows a sample program.
Image: Sample screenshot showing a very simple program within a Scratch 3 custom environment using
Machine Learning for Kids blocks and Images blocks. Click on image to open a high-resolution version.
Discussion
● In both image sets, the faces are deliberately varied in size and placed in varied
positions. Do you think this reflects a real-life scenario such as passport photo
checking? Why / why not?
PA
● Do you think real faces would be easier or more difficult for the system than these
cartoon faces? What sort of variations occur with real photographs?
● Try testing your AI model with several images from the test gallery, which contains
faces with more diverse skin colours than the images in the training gallery.
o Did you notice any difference in the accuracy of the model’s system when
faces with more diverse skin colours were tested? Did the system get it right
and, if so, with how much confidence?
o If you did find a discrepancy, what technical reasons could you give for why
this occurred? (See Why is this relevant? below for possible reasons.)
Extensions
● The sample screenshot of the Scratch program in ‘Testing the AI’ merely displays the
output from the machine learning model. Expand the program into an application –
for example, a hypothetical passport checking system that rejects faces that do not
meet minimum ‘confidence’ requirements.
● Build a gallery of faces (cartoon or real) and try making your own AI model.
NOTE: For privacy reasons, it is recommended that photos do not include student faces or
other personal identifiers.
PA
Algorithmic bias is often unintentional. It can arise in several ways. Some examples:
1. As a result of design. The software’s algorithms (the instructions and procedures used to
make decisions), may have been coded based on incorrect assumptions, outdated
understandings, prioritised motives or even technical limitations. Or the design may simply
be misapplied, used for a purpose for which it was never intended.
● In the case of our facial recognition example, such systems may have difficulty
recognising the outlines of faces with dark skin colour against a dark background
because of the algorithm’s dependence on distinguishing sufficient light contrast.
The cartoons in our activity frequently use black lines for face outlines as well as for
the outlines of glasses.
2. Due to inadequate or biased data. Programmers have long been familiar with Garbage In,
Garbage Out (GIGO), meaning that poor quality data used as input to a computer system
will tend to result in poor quality output and decisions. Machine learning systems are
trained from data sets of text, images or sounds, and these may be restricted or
unrepresentative.
● In the case of our facial recognition example, a system may be trained on an
insufficiently diverse data set – for example, one based predominantly on faces of
light skin colour or facial features associated with a limited range of ethnic groups.
PA
Assessment
Teacher assessment
Using original photographs created by students, or content sourced online, students work in pairs to
create a new AI models for one of the example topics below:
Distinguish different sign language hand postures
Distinguish different semaphore poses
Distinguish favourite sport team based on face paint
A topic chosen by a student or students.
Choose from the following suggested assessment approaches and task that will best suit your
students.
Processes and Years 5–6 Acquire, store and validate different types of
Production Skills data, and use a range of software to interpret
and visualise data to create information
(ACTDIP016)
Processes and Years 7–8 Analyse and visualise data using a range of
Production Skills software to create information, and use
structured data to model objects or events
(ACTDIP026)
ICT Capability
Typically, by the end of Year 8, students:
Identify the impacts of ICT in society (Applying social and ethical protocols and practices when using ICT)
● explain the benefits and risks of the use of ICT for particular people in work and home environments