Sub 2 Activity Desription Plan
Sub 2 Activity Desription Plan
Sub 2 Activity Desription Plan
After this lesson, students will be able to: • 2-DA-07: Represent data using multiple encod
• 2-IC-20: Compare tradeoffs associated with co
Define perception as it is used in artificial intelligence.
Build a Scratch program that uses Hand Sensing • AI blocks to manipulate sprites on the scre
•
-
In today’s lesson, students will get introduced to sensing and perception in Al by looking at
robotics examples from real life. Students will start the lesson by watching a video of Al-powered robots
performing parkour before participating in a quick discussion. Then, they will go through a series of
examples of robots that perform a variety of tasks, all while learning about sensory data and
perception. Students will then get to build an Al-powered program in Scratch to make a warehouse
robot pick up items for shipping. Finally, the lesson will end with a vocabulary review and discussion.
T0BAY’S#UESTI0NS
How do Al-powered robots How do AI systems make sense
collect data using of the data they collect?
sensors?
courtesy of
- ADDITIONAL RESOURCES
e Exa e Pro ec • Scratch Wiki • Paper: "PoseBlocxs: A
e late • MIT AI Code Too ki or Crea in "
Cards
TSthaerter
e PS AI Scratch Guide
TEACEERPREPCEECKLIST
Before teaching this lesson, consider doing the following to prepare:
0 Review all of this lesson's resources (see "Resources™ on the first page of this lesson plan).
0 Prepare how you will share the activity witn me students (print or through LMS, etc.)
0 Complete the student activity using the same materials as students.
FOR T£AC£ERS
e A computer witn internet access • Unique class cooe from Teacher Dashboard
e A pair of headphones (optional) • Videos and/or slides
e Handouts: Artivitv GuicJe. I .*o Iut • Screen to project lesson contents
i onn e Project STEM (projectstem.org) • This lesson plan as your guide
V0CABU@RY
• robot (n): a machine designer to do specific tasks in physical space
• perception (n): me ability to interpret ana make sense of sensory data
• sensing (n): the process of collecting sensory data
• sensor (n): a device that allows a machine to collect sensory data from the
natural vvorlo
• sensory data (n): information that is collected witn senses or sensors
Students will check off each of tnese steps by the end of the activity:
0 My robot sprite moves around the Stage using AI via the Hand Sensing blocks.
0 I added at least 3 sprites for the robot to collect.
0 I initialized the program so that when me green flag is clicked, the robots ana
sprites go to their assignee coordinate locations and all hidden sprites are
- shown.
0 Tne collected sprites are hidden and me items collected number increases to
confirm when the robot has collectea them.
Use the steps oelow alongsi”de the slides. Extra guidance ana teacher tips can D
WELCOME,L00KBACK,ANDLAUNCW
I. Have tne Lesson 1.3 Warm-up Slides or End-to-End Slides reaay to Droject for me start of
cl ass.
2. Review t ne Drevious day s worn ana learnings witn tne students.
3. Launcn me new lesson by going over wnat me lesson vviI I be about toaay.
Close me Lesson l.3 Warm-u p Sliaes and open the Lesson 1.3 Lesson Slides. If you’re using me
E nd-to- Ena version of me slid es, sim ply seep going from tne same set.
Use the steps Delow alongside the slides. Extra guidance anO teacher tips can De
DO NON: REAL-RORLDCONNECTION
1. Mare sure me Lesson 1.3 Lesson Slides or End-to-End Slides are open ana ready to project.
2. Show students the examples of humans doing parkour and ask if they think robots can be
programmed in such a way tnat they can also do parkour.
When learning about now AI is able to make sense of its environment so it can make
autonomous decisions, parlour can be used as a fun, exciting example.
In case you or your students are not familiar with parkour, Wikipedia defines parlour as, "an
atnletic training discipline in whicn practitioners (called traceurs) attempt to get from point
A to point B in me most fluid way possible, without assisting equipment and in the fastest
and most efficient way possible....It involves seeing one's environment in a new way, and
envisioning the potential for navigating it by movement around, across, through, over and
under its features."
3. Tell stuaents that that they're now going to watch a viaeo to see if robots can do parkour.
Make sure to test the embedded video ahead of time to make sure it is not blocked by me
district and that your audio plays correctly for the class.
Examples of some potential answers are below. You can also refer to these answers as a
backup to help get me discussion rolling along in case students don't snow what to say.
e They might use sensors that do things like capture images with cameras and
measure surfaces.
o Note: Students mignt now know me names of tnese sensors yet so it is okay
for them to describe what tney think me sensors mignt do instead.
e The AI algorithm helps them perceive using the sensory data.
e Search and rescue, exploring places tnat are difficult or dangerous for humans to
explore (tnis can be to gather information or perform a task).
REAL-RORLDCONNECTION
1. Introduce me idea of sensing and how robots use AI witn mat data.
2. Introduce perception ana how it sets AI apart from other tecnnologies.
3. Go over how a numan mignt perceive tnings and get from point A to point B.
4. Tale about me difference between a human ana now a robot woula act differently using AI.
5. Tell stuaents that they'll now see some examples of Al-powerea robots being used in real life
starting with Amazon warehouse robots. Then, play the video.
This video contains a lot of information in a short time. It is recommended mat you play me
video twice for your students. For example, they can watch it me first time just to watch the
video and tnen an additional time to take notes and absorb what they saw.
As always, make sure to test the embedded video anead of time to mane sure it is not
blocked by me district and that your audio plays correctly for the class.
6. Leaa a snort discussion by going through the slides that follow me video. These are set up so
that you can display the discussion question alone on a slide while you ass the question ana
then reveal me answers the next sliae.
7. Introduce me next example as robot drones mat help with search ana rescue.
Note tnat the reading level on this video might be a bit high for middle schoolers. It is
recommended that you read the onscreen text aloud as me video plays, and you may need
to pause periodically to do so.
As always, make sure to test the embedded video anead of time to mane sure it is not
blocked by me district and that your audio plays correctly for the class.
8. Leaa a snort discussion by going through the slides that follow me video. These are set up so
that you can display the discussion question alone on a slide while you ass the question ana
then reveal me answers the next sliae.
PRE-ACTIVITYCONNECTION
PoseBlocks are a suite of Al-powered Scratch extensions, three of which are introduced in this unit —
Hand Sensing, Body Sensing, and Face Sensing. They were developed by MIT Media Lab and can
only be accessed in special forked versions of Scratch, such as the one used for this course.
PoseBlocks provides students with code blocks mat use pre-built machine learning models to
perceive parts of the hand, body, and face. Students can then build programs around what the AI
perceives. Below are answers to questions you may have about PoseBlocks.
Where can I read more about PoseBlocks? In tnis MIT pa per, which is me main source of
information a bout PoseBlocks.
Are there special technical requirements? Students need to have access to a webcam in order for
the AI to gather sensory data (in this case, camera images) that it will use to locate parts on the hand,
body, or face. Vou may want to check with your IT department in advance to make sure that students
will be able to give the Scratch site permission to use the webcam.
What happens to the images of my students? Are their likenesses saved anywhere? All of the
data collected from the webcams are private in order to seep your students' safe online. MIT Media
Lab states on page 2 of this paper: "We designed the PoseBlocxs Toolkit to seep all training and test
data, including camera images and audio clips, private. No audio or video data is ever sent from users
to the back-end."
l Tell stuaents that they'll be using an Al-powered Scratch ext:ension callea Hand Sensing.
2. Cont:inue by telling st:udents that: t:his extension collects live images from t:heir webcam and
uses them t:o recognize key points on their hand.
3. Direct student:s t:o go to bit.Iy/AI-Scrat:ch to follow along ana learn the basics.
Walk t:hem th rough adding t:he Hand Sensing ext:ension and then ma<e sure t:hey give
permission for t:he webcam t:o be used if t:hey are prompt:ed t:o do so.
5 St:art the aemo project by snowing st:udents the symbol that shows when:her t:heir webcam
can detect: a hand or not.
6. Then, have st:udents look at the Blocks Palet:t:e t:o cneck out the Hand Sensing blocks.
7. Using the instructions in the slides, walk st:udents throug n creating a script: that will help
t:hem unaerst:ana what: t:hey are to build in t:oday's activity.
For today's activity, students will need to make sure that tney build a script tnat
continuously goes to a key point on their hand. This requires a forever loop block to be used.
lstudents do not use a fozevez block,their spritevvill only go to the ey point on tne
hand once.
Out of the scripts below, the one on the left will only make the sprite go to the tip of the
user's thumb once and then stop. The one on the right„ however, will send me sprite to the
tip of me user's thumb continuously on a loop. Keep In is in mind when helping students
with their programs during me activity.
8. Ask stuaents to think about me following questions and tnen use the slides mat follow to
review the answers.
o Wnat is me AI using to sense?
o Wnat is me AI trained to perceive?
9. Tell them, "Now, it's time to use AI Scratch blocks to create our own virtual warenouse robot!"
Close the Lesson 1.3 Lesson Slides and open the Lesson IN Actf«tty Slides. If you're using the
End-to-End version of the slides, simply keep going from the same set.
Use the steps Delow alongside the slides. Extra guidance anO teacher tips can De
1. Mare sure me Lesson 1.3 Activity Slides or End-to-End Slides are open ana ready to project.
2. Review toaay's mission ana make sure stuaents have me appropriate Project STEM page
open.
3. Introduce me activity by walking students througn me finishes example project, making sure
to point out the key features.
4. Tell stuaents that they'll be using a starter template to buila this project and then review
wnat is incl uaed in this tern plate.
5. Finish the activity introduction by showing stuaents what they'll neea to add to the template
to complete tneir mission.
6. Have stuaents open their activity guide and start the activity using one of the activity
facilitation options.
OPTION B: CLASSIIORK-ALONG
I. Have stuaents open the starter template by navigating to https://bit.ly/CSE2_1-3_Template.
If students have trou ble with the snortened URL, use the full URL below:
https://pIayground.raise.mit.edu/ProjectSTEM/?project=https://fiIes.projectstem.org/CS
E2/Scratch_FiIes/1-3_Starter_TempIate.sb3
2. Remind stuaents to name tneir project and save it to their computer or cloud drive as well as
to save frequently while they work.
ACTIVINNRAP-UP
I. Circulate the room to assist students as needed usinp the Mission Checklist as a puide.
As you circulate, make sure students are able to check off the following:
0 My robot sprite moves around the Stage using AI via me Hand Sensing blocks.
0 I added at least Z sprites for the robot to collect.
0 I initialized the program so that when the green flag is clicked, the robots and
sprites go to their assigned coordinate locations and all nidden sprites are snovvn.
0 The collected sprites are hidden and the items collected number increases to
confirm when me robot has collected them.
2. Have stuaents make sure they can cneck off the items in tneir Mission Checklist when done.
3. As time permits (or for early finishers and/or advanced students), go over the extra challenges
that tney can try out.
Close the Lesson 1.3 Activity Slides and open the Lesson 1.3 Cloce-out Sttde lfyou're using the
End-to-End version of the slides, simply keep going from the same set.
Finish by asking students if they have any questions before moving forward. Respond to
any student comments and then close the video to get ready for the next, and last, part
of the lesson.
Use the steps oelow alongsi”de the slides. Extra guidance ana teacher tips can D
Here are me discussion auestions along witn at least one possible answer. Note that most
auest ions will have rnuItiDIe answers an d t nat th is is just one of tnern. Vou can also refer to
tnese answers as a backup to neID get tne discussion rol ling along in case stuaents aon’t
snow what to say.
• Q: W nat Dart of your warehouse robot Drogram usea perceDt ion? How was it usea?
A: IThe AI extension used perception wnen it used tne data col lectea by me
webcam to figure out where part of our nana was.
• Q: How ao you t nink AI capabilities line sensing and perceiving rnig nt be aava ncing
t ne fiel d of robot ic s?
Note: Tnis is a n open-end ea auestion designed to get st udents tninking
about me possible applications of wnat they just saw.
Lesson Plan — 10
Twice in each unit, you or your students shoula select an activity to evaluate. Typically, one activity shoula be selectea fr
by the teacher througn classroom observations, over-the-shoulder student conferences, class snares, or gallery walks. Le
MASTERINGCSSKILLS
e Does your program successfully perceive a key location on your hand?
e Does your sprite constantly move to that key location as you move your hand arouna?
e Do your item sprites get collected when me robot toucnes them?
MASTERINGCSCONCEPTS
e How is your program collecting sensory data?
e Wnat was one example of perception in the robots that you saw toaay?
e How can Al-powered robots be helpful or harmful to the world?
e How is tnis activity similar to or different from the owner activities we've done?
e Wnat tool or concept did we use that we dian't know how to use before?
e How do you tnink you'll use wnat you learned today in future activities?
e How coula you use what you learned today in a previous activity to improve it?
CLASSSHARES
Allow students a chance to share You may also opt to set uD an in-class
with the entire class or virtual gal lery walk for students to
snare tneir worn. Have eacn student
Screen capture (or record) their pFO’ect aisplay their program or aaa tneir
and post it on the class LMS project to a snarea classroom sDace.
Instruct stuaents to sDend 5—lO
minutes "vva Ining" througn me
Have students share and exchange projects line an art gallery, opening a
feedback with a partner or small group few of their Deers’ Drojects, running
me Drog ram, add tnen leaving
Have students show their project comments with sDecific Dositive
to someone at home feea back on tneir classmates’ work.