The Arizona STEM Acceleration Project
AI and Ethics: Day 4
Image Recognition, Text Classification, and Bias
A 7th & 8th grade STEM lesson
Janae Thomas
June 2023
Notes for teachers
List of Materials
AZ STEM Standards
Computer Science Standards
Science and Engineering Practices
ELA Standards
Objective(s):
Agenda (lesson time)
Day 4 Agenda
Important Vocabulary Review
Image Recognition �(20-30 Minutes)
This activity involves using a FREE website program called Teachable Machine to teach students about how AI uses image recognition.
Have students complete this activity in groups.
Image Recognition and AI
Just like a typical algorithm, you have:
INPUT
OUTPUT
CAT
Steps to Change Input
Learn features from training data
An image
A label for the image
Computers and Understanding Images
For a computer to understand an image:
Let’s Try it Together!
We’re going to use a program called Teachable Machine and train it to recognize and classify pictures using our webcams. We’re going to train it how to recognize:
Your Turn!
Start a new project on Teachable Machine and train it to distinguish between cats and dogs.
After training the program, test it!
Image Recognition - Reflection Questions
Write a 2-4 sentence reflection on the following question:
How can AI image recognition possibly cause ethical dilemmas in the future?
AI and Bias (5-10 Minutes)
Possible Discussion Questions
Text Classification �(15-20 Minutes)
This activity involves using a free program from MIT.
Have students complete this activity in groups.
Text Classification and AI
Same thing, it’s a simple algorithm:
INPUT
OUTPUT
Steps to Change Input
“Please come here”
“Forward”
Compare input to training data
User speech or text
Corresponding label
Computers and Understanding Words
For a computer to understand words:
Word Analogies
Sometimes, problems can arise in text classification.
To visualize this, let’s use this website Exploring Word Analogies.
Take some time to look at the other classification, specifically the Jobs graph.
Word Analogies Discussion
Let’s think…what could be the problem?
Journal Activity (5-10 Minutes)
Differentiation
Remediation
Extension/Enrichment