SlideShare a Scribd company logo
Artificial intelligence
in Scratch Tutorial
for kids
Doaa Mohey Eldin
PhD researcher
Faculty of computers & Artificial intelligence
Cairo University
1
d.mohey2020@gmail.com
Scratch Tutorial for kids by Doaa Mohey
Agenda
• Part1: Welcome to the World of
Artificial Intelligence!
• What is Artificial Intelligence?
• What is Scratch-based Artificial
Intelligence?
• How Does Scratch AI Work?
• Example: Scratch AI
• Scratch AI Coding
• Scratch AI Types
• Scratch AI Aspects
• Scratch AI Projects
• AI Projects for Kids
• The Future of Scratch AI
• Part2: Introduction to Machine
Learning for kids.
• what is Machine Learning?
• What is Scratch-based machine
learning?
• How does Machine Learning
work?
• Example: Creating Scratch-based
machine learning model.
• Testing and improving your
model.
• conclusion
2
Scratch Tutorial for kids by Doaa Mohey
http://scratch.mit.edu
• Part3: Scratch Examples
• Scratch Games Examples
• ML project Example
Part 1
• Welcome to the World of Artificial Intelligence!
• What is Artificial Intelligence?
• What is Scratch-based Artificial Intelligence?
• How Does Scratch AI Work?
• Example: Scratch AI
• Scratch AI Coding
• Scratch AI Types
• Scratch AI Projects
• AI Projects for Kids
• The Future of Scratch AI
3
Scratch Tutorial for kids by Doaa Mohey
Welcome to the World of Artificial
Intelligence!
• Artificial intelligence (AI) is a wide-ranging
branch of computer science concerned with
building smart machines capable of performing
tasks that typically require human intelligence.
• Scratch is a free programmable toolkit that
enables kids to create their own games,
interactive art, and animated stories.
4
Scratch Tutorial for kids by Doaa Mohey
What is Artificial Intelligence?
• Artificial Intelligence, or AI for short, is a type
of technology that allows machines to learn
and make decisions like humans do. It's like
having a robot brain that can think and solve
problems on its own!
• For example, is self-driving cars, which use AI
to navigate and avoid obstacles. Pretty cool,
right?
5
Scratch Tutorial for kids by Doaa Mohey
What is Scratch-based Artificial
Intelligence?
• Scratch-based Artificial Intelligence: this tool
introduces machine learning by providing
hands-on experiences for training machine
learning systems and building with them.
• Scratch-based Artificial Intelligence is
considered a type of technology that allows
machines to learn and make decisions like
humans do. It's like having a robot brain that
can think and solve problems on its own!
6
Scratch Tutorial for kids by Doaa Mohey
How Does Scratch AI Work?
• Scratch Artificial intelligence (AI) works by using
algorithms to analyze data and make decisions based on
that analysis. One way that AI can be used is through
machine learning, where the system is trained on large
amounts of data to recognize patterns and make
predictions.
• Scratch AI can be used is through natural language
processing, which involves teaching computers to
understand human language. This can be used for tasks
such as a language translation or speech recognition.
7
Scratch Tutorial for kids by Doaa Mohey
Example: Scratch AI
Scratch Tutorial for kids by Doaa Mohey 8
Example: Scratch AI
Scratch Tutorial for kids by Doaa Mohey 9
Example: Scratch AI
Scratch Tutorial for kids by Doaa Mohey 10
Scratch AI Coding
• Scratch is a block-based programming language.
• Scratch coding is defined as the process of writing and running programs
using Scratch, a free programming language and code editor that helps
young learners understand coding logic using blocks and visual aids. This
article defines the concept of Scratch coding and its uses in computer
science and programming.
• Scratch AI project for kids can create using Scratch is a virtual pet. Kids can
use different blocks in Scratch to program their pet to perform certain
actions, such as playing fetch or responding to their name.
Scratch Tutorial for kids by Doaa Mohey 11
Scratch AI Types
12
• There are two primary types of coding languages: text-based and block-based.
• For example Scratch creative AI projects for kids are chatbot, Face recognition,
sorting, and creating game.
Scratch Tutorial for kids by Doaa Mohey
Scratch coding
Text-based
Block-based
Scratch AI Aspects
1. Learning. The gathering data and formulating the rules
are the main necessary process to transform it into
useful knowledge in the learning process in scratch AI.
2. Reasoning. Using a suitable algorithm.
3. Self-correction. It is main benefit to improve
algorithms and make sure they deliver the most precise
results.
4. Creativity. This branch of AI creates new images, texts,
songs, and ideas using neural networks, rules-based
systems, statistical techniques, and other AI tools.
Scratch Tutorial for kids by Doaa Mohey 13
AI programming
aspects
Learning
Reasoning
Self-correction
Creativity
• AI programming Aspects are important in implementation any scratch AI
programs, that are as the following
Scratch AI Projects
Scratch Tutorial for kids by Doaa Mohey 14
The Future of Scratch AI
• The future of Scratch AI:
– the possibilities for AI are endless.
– From self-driving cars to robots that can assist with everyday tasks, AI
has the potential to revolutionize the way we live and work, but with
great power comes great responsibility.
• So what can you do to make a positive difference with AI? The possibilities
are limitless!
• Remember, the future is in our hands. With creativity and innovation, the
proposed used scratch AI is to make a real difference in the world.
Scratch Tutorial for kids by Doaa Mohey 15
Scratch Tutorial for kids by Doaa Mohey 16
Scratch Tutorial for kids by Doaa Mohey 17
Ability of a machine to imitate intelligent
human behavior
Application of AI that allows a system to
automatically learn and improve from
experience
Application of machine learning that uses
complex algorithms and deep neural nets to
train a model
Part 2
• Introduction to machine learning for kids.
• what is machine learning?
• What is Scratch-based machine learning?
• How does machine learning work?
• Creating a machine learning model in scratch.
• Testing and improving your model.
• conclusion
18
Scratch Tutorial for kids by Doaa Mohey
Introduction to Machine Learning
(ML) for kids
• Training machine learning systems and creating things
with them, this tool introduces machine learning.
• It offers a simple-to-use guided environment for
developing machine learning models for text, numeric,
or image recognition.
• By integrating these models into Scratch (a popular
educational coding platform), this expands on current
initiatives to introduce and teach coding to kids.
• This will enable kids to construct projects and develop
games using the machine learning models.
Scratch Tutorial for kids by Doaa Mohey 19
What is Machine Learning (ML)?
• Machine Learning (ML) is a branch of artificial
intelligence (AI) and computer science which focuses
on the use of data and algorithms to imitate the way
that humans learn, gradually improving its accuracy.
• Machine learning is a type of computer program that
helps computers learn from data, just like how you
learn from your experiences. Imagine you're trying to
teach a computer how to recognize different types of
animals.
20
Scratch Tutorial for kids by Doaa Mohey
What is Scratch-based Machine
Learning?
• Scratch-based Machine learning is when computers
learn how to do things without being specifically
programmed to do them. It's like teaching a robot to
think for itself!
• For example of machine learning (ML), ML is teaching a
computer how to play a game. Just like how you get
better at a game the more you play it, a computer can
use machine learning to improve its performance.
• Example, the computer would then use this
information to try and recognize new animals it hasn't
seen before! 21
Scratch Tutorial for kids by Doaa Mohey
How Does Scratch ML Work?
• To create a machine learning model in Scratch, we first need to gather data. This can
be done by collecting information from sensors or by manually inputting data into
the program.
• Next, we need to train the model using algorithms that allow it to recognize
patterns and make predictions based on the data we've collected. We can then test
the model and make adjustments as needed to improve its accuracy.
• For example, a machine learning algorithm cloud be trained on a dataset of cat
images to recognize when a new image contains a cat.
22
Scratch Tutorial for kids by Doaa Mohey
Example: Creating Scratch-based machine
learning model.
Scratch Tutorial for kids by Doaa Mohey 23
Face sensing
block
Face sensing
conditions
Example: Creating Scratch-based machine
learning model.
Scratch Tutorial for kids by Doaa Mohey 24
New block
Speak
control
Example: Creating Scratch-based machine
learning model.
Scratch Tutorial for kids by Doaa Mohey 25
Translate
block
Example
Example: Creating Scratch-based machine
learning model.
Scratch Tutorial for kids by Doaa Mohey 26
Music block
Example: Creating Scratch-based machine
learning model.
Scratch Tutorial for kids by Doaa Mohey 27
Example
music
Example with
many controls
Example: Creating Scratch-based machine
learning model.
Scratch Tutorial for kids by Doaa Mohey 28
New created
block
Example: Creating Scratch-based machine
learning model.
Scratch Tutorial for kids by Doaa Mohey 29
Pen controls Control pen
Coding Scratch AI
• Types of Blocks in Scratch
1. Motion blocks (Blue): control the movement of a sprite (character or object) on the stage. For
example, you can use motion blocks to make a sprite move in a certain direction or go to a specific
position.
2. Looks blocks (Purple): change the appearance of a sprite, such as by changing its costume or size.
3. Sound blocks (Pink): play sounds or music in your program.
4. Events blocks (Yellow): set up events that trigger your program to run, such as when the green flag is
clicked or when a certain key is pressed.
5. Control blocks (Tangerine): control the flow of your program, such as by repeating a section of code
or stopping the program.
6. Sensing blocks (Teal): create programs that respond to input from the user or the environment. For
example, you can use sensing blocks to check if the mouse is clicked or if a sprite is touching another
sprite.
7. Operator blocks (Green): perform mathematical operations or compare values in your program.
8. Variables blocks (Orange): create variables (named values that can change) in your program and use
them to store and manipulate data.
Scratch Tutorial for kids by Doaa Mohey
30
Coding Scratch AI
• Types of Blocks in Scratch
9. Add block: with our proposed name and condition.
10. Music: This extension enables users to play MIDI notes on various instruments.
11. Video sensing: Projects can communicate with a camera using this extension.
12. Translate: Using the Translate plugin, text may be translated into various languages.
13. Pen: The Pen add-on enables users to sketch on the stage using a pen.
14. Text to speech: This allows text to be read aloud.
15. The LEGO MINDSTORM EV3 extension: It permits Scratch projects to connect with LEGO
MINDSTORM EV3 devices.
16. The Micro:bit extension: It enables Scratch projects to communicate with micro:bit projects.
Scratch Tutorial for kids by Doaa Mohey 31
Machine learning for kids
Scratch Tutorial for kids by Doaa Mohey
32
By providing free practical
experiences for training machine
learning systems and creating
things with them, this free tool
introduces machine learning.
For training machine learning
models to recognize text,
numbers, photos, or sounds, it
offers a simple, supervised
environment.
Machine learning is pervasive.
Everyday tools like spam filters,
recommendation engines,
language translators, chatbots
and digital assistants, search
engines, and fraud detection
systems are all examples of
machine learning systems that
we all use. Machine learning
systems will soon be
commonplace in driving our
automobiles and assisting
medical professionals in the
diagnosis and treatment of our
illnesses.
The program is fully web-
based and may be used
without any installation or
complicated setup. It has an
admin page that teachers or
group leaders may use to
monitor and administer
access for their students. It
was created for usage in the
classroom by schools and
volunteer-run coding groups
for kids. It is being built by
Dale Lane using APIs
from IBM Watson.
Coding Scratch AI
Scratch Tutorial for kids by Doaa Mohey 33
Pre-trained models
Kids can employ pre-trained models in their assignments. These
sophisticated models make projects possible that would otherwise
be too difficult for students to complete on their own and offer
practical insights into some of the other capabilities of machine
learning.
Scratch AI coding
Programming
Testing and Improving Your Model
• Once you have created your machine learning model, it's time to test and improve
it. Testing is essential for ensuring that your model is accurate and reliable.
• One way to test your model is to use a validation set, which is a subset of your
training data that is used to evaluate the performance of your model. You can also
use metrics such as precision, recall, and F1 score to measure the accuracy of your
model.
• To improve your model, you can try adjusting various parameters, such as the
learning rate, batch size, and number of epochs.
• The experiment has different types of algorithms and architectures to see which
ones work best for your particular problem. Additionally, you can try using
techniques such as regularization and dropout to prevent overfitting and improve
generalization.
34
Scratch Tutorial for kids by Doaa Mohey
3. Part 3:
• Scratch Examples
• Scratch Game Examples
• Machine learning
project
Scratch Tutorial for kids by Doaa Mohey 35
Scratch Examples
Scratch Tutorial for kids by Doaa Mohey 36
Scratch Examples
Scratch Tutorial for kids by Doaa Mohey 37
Scratch Examples
Scratch Tutorial for kids by Doaa Mohey 38
Scratch Examples
Scratch Tutorial for kids by Doaa Mohey 39
Scratch Game Examples
Scratch Tutorial for kids by Doaa Mohey 40
Scratch Game Example1
Scratch Tutorial for kids by Doaa Mohey 41
Scratch Game Example2
Scratch Tutorial for kids by Doaa Mohey 42
Scratch Game Example3
Scratch Tutorial for kids by Doaa Mohey 43
Scratch Game Example4
Scratch Tutorial for kids by Doaa Mohey 44
Scratch Game Example5
Scratch Tutorial for kids by Doaa Mohey 45
Machine learning
project Example
Scratch Tutorial for kids by Doaa Mohey 46
Machine learning Project Example
• How to perform a task from a collection of examples
Scratch Tutorial for kids by Doaa Mohey 47
https://machinelearningforkids.co.uk/
Machine learning Project Example
Scratch Tutorial for kids by Doaa Mohey 48
Machine learning Project Example
Scratch Tutorial for kids by Doaa Mohey 49
https://machinelearningforkids.co.uk/#!/mlproject/f3ca9a12-2f78-40ff-97f0-c8066e155a3a/ba1d9aa0-29f6-11ee-8f89-a9207169ef4b/training
Machine learning Project Example
Scratch Tutorial for kids by Doaa Mohey 50
Machine learning Project Example
Scratch Tutorial for kids by Doaa Mohey 51
Conclusion
• In conclusion, we've learned that machine learning is a powerful tool that
can help us make predictions and decisions based on data. We've seen how
it works through the process of data collection, training, and prediction.
And we've even created our own simple machine learning model using
Scratch!
• But this is just the beginning. Machine learning is a rapidly growing field
with endless possibilities. By continuing to explore and learn about
machine learning, you can become a part of shaping the future of
technology. So keep asking questions, experimenting, and most
importantly, having fun!
Scratch Tutorial for kids by Doaa Mohey 52
Working Scratch
Offline Download
• https://scratch.mit.edu/download
Working online
53
• Scratch is always free and is available in more than 70 languages.
• To open scratch, we can use it as the following,
Scratch Tutorial for kids by Doaa Mohey
• https://scratch.mit.edu/projects/editor/?tutorial
=getStarted
https://machinelearningforkids.co.uk/#!/login
Machine learning scratch online
https://lab.scratch.mit.edu/face/
AI Scratch online
Animation in scratch
54
Scratch Tutorial for kids by Doaa Mohey
Time to play
55
Scratch Tutorial for kids by Doaa Mohey
Experimental projects
• Tasks
• Create a game
• Create a story
• Create controls
56
Scratch Tutorial for kids by Doaa Mohey
References
• https://www.ibm.com/topics/artificial-intelligence
• https://machinelearningforkids.co.uk/#!/about
Scratch Tutorial for kids by Doaa Mohey 57
d.mohey2020@gmail.com
58
Scratch Tutorial for kids by Doaa Mohey

More Related Content

What's hot

Scratch programming
Scratch programmingScratch programming
Scratch programming
YvonieDoria
 
Scratch and pair programming
Scratch and pair programmingScratch and pair programming
Scratch and pair programming
jtelss10
 
Scratch Lesson 2
Scratch Lesson 2Scratch Lesson 2
Scratch Lesson 2
Vadim Axelrod
 
Cyber security for children
Cyber security for childrenCyber security for children
Cyber security for children
Avanzo net
 
Security risks with fake apps
Security risks with fake appsSecurity risks with fake apps
Security risks with fake apps
Quick Heal Technologies Ltd.
 
Scratch Lesson 1 – Basics
Scratch Lesson 1 – BasicsScratch Lesson 1 – Basics
Scratch Lesson 1 – Basics
David Oromaner
 
TypingMaster report
TypingMaster reportTypingMaster report
TypingMaster report
Speed Up
 
Cyber security awareness for students
 Cyber security awareness for students Cyber security awareness for students
Cyber security awareness for students
Akhil Nadh PC
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratch
emreyz
 
Introduction to Scratch Programming
Introduction to Scratch ProgrammingIntroduction to Scratch Programming
Introduction to Scratch Programming
StorytimeSteph
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
zulfikarzulfikar40
 
Cyber security for kids
Cyber security for kidsCyber security for kids
Cyber security for kids
Chris Burrows
 
Hacking
HackingHacking
Hacking
Ranjan Som
 
Internet safety ppt
Internet safety pptInternet safety ppt
Internet safety ppt
mcmullan
 
Digital footprint presentation
Digital footprint presentationDigital footprint presentation
Digital footprint presentation
sahrdebeck52
 
Coding with kids
Coding with kidsCoding with kids
Coding with kids
Azzurra Ragone
 
Cyber safety by Lorraine Flores
Cyber safety by Lorraine FloresCyber safety by Lorraine Flores
Cyber safety by Lorraine Flores
lorrflores
 
Scratch
ScratchScratch
An introduction to Scratch
An introduction to ScratchAn introduction to Scratch
An introduction to Scratch
Piers Midwinter
 
Programming in scratch
Programming in scratchProgramming in scratch
Programming in scratch
Hussam Mostafa
 

What's hot (20)

Scratch programming
Scratch programmingScratch programming
Scratch programming
 
Scratch and pair programming
Scratch and pair programmingScratch and pair programming
Scratch and pair programming
 
Scratch Lesson 2
Scratch Lesson 2Scratch Lesson 2
Scratch Lesson 2
 
Cyber security for children
Cyber security for childrenCyber security for children
Cyber security for children
 
Security risks with fake apps
Security risks with fake appsSecurity risks with fake apps
Security risks with fake apps
 
Scratch Lesson 1 – Basics
Scratch Lesson 1 – BasicsScratch Lesson 1 – Basics
Scratch Lesson 1 – Basics
 
TypingMaster report
TypingMaster reportTypingMaster report
TypingMaster report
 
Cyber security awareness for students
 Cyber security awareness for students Cyber security awareness for students
Cyber security awareness for students
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratch
 
Introduction to Scratch Programming
Introduction to Scratch ProgrammingIntroduction to Scratch Programming
Introduction to Scratch Programming
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
 
Cyber security for kids
Cyber security for kidsCyber security for kids
Cyber security for kids
 
Hacking
HackingHacking
Hacking
 
Internet safety ppt
Internet safety pptInternet safety ppt
Internet safety ppt
 
Digital footprint presentation
Digital footprint presentationDigital footprint presentation
Digital footprint presentation
 
Coding with kids
Coding with kidsCoding with kids
Coding with kids
 
Cyber safety by Lorraine Flores
Cyber safety by Lorraine FloresCyber safety by Lorraine Flores
Cyber safety by Lorraine Flores
 
Scratch
ScratchScratch
Scratch
 
An introduction to Scratch
An introduction to ScratchAn introduction to Scratch
An introduction to Scratch
 
Programming in scratch
Programming in scratchProgramming in scratch
Programming in scratch
 

Similar to scratch course-part2-2023.pdf

Computer vision (machine learning for developers)
Computer vision (machine learning for developers)Computer vision (machine learning for developers)
Computer vision (machine learning for developers)
Rachhek Shrestha
 
Machine learning limits (What can Machine Learning do and what it can't)
Machine learning limits (What can Machine Learning do and what it can't)Machine learning limits (What can Machine Learning do and what it can't)
Machine learning limits (What can Machine Learning do and what it can't)
Moataz Mahmoud
 
Orientation session
Orientation sessionOrientation session
Orientation session
GoogleDeveloperStude2
 
Introduction of machine learning.pptx
Introduction of machine learning.pptxIntroduction of machine learning.pptx
Introduction of machine learning.pptx
Dr.Shweta
 
GDG-Start your Programing Career.pptx
GDG-Start your Programing Career.pptxGDG-Start your Programing Career.pptx
GDG-Start your Programing Career.pptx
Mohamed Essam
 
Machine Learning Workshop Presentation
Machine Learning Workshop PresentationMachine Learning Workshop Presentation
Machine Learning Workshop Presentation
AdityaRohman3
 
Why learn how to code
Why learn how to codeWhy learn how to code
Why learn how to code
Joey Rigor
 
Basics of machine_learning
Basics of machine_learningBasics of machine_learning
Basics of machine_learning
Hasib Shaikh
 
INTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
INTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNINGINTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
INTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
sowmyamPSGRKCW
 
Inspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other ToolsInspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other Tools
Chad Mairn
 
Inspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other ToolsInspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other Tools
St. Petersburg College
 
Human-Machine Collaboration: Using art-making AI (CrAIyon) as cited work, o...
Human-Machine Collaboration:  Using art-making AI (CrAIyon) as  cited work, o...Human-Machine Collaboration:  Using art-making AI (CrAIyon) as  cited work, o...
Human-Machine Collaboration: Using art-making AI (CrAIyon) as cited work, o...
Shalin Hai-Jew
 
AI - Artificial Intelligence - Implications for Libraries
AI - Artificial Intelligence - Implications for LibrariesAI - Artificial Intelligence - Implications for Libraries
AI - Artificial Intelligence - Implications for Libraries
Brian Pichman
 
Introducción a NLP (Natural Language Processing) en Azure
Introducción a NLP (Natural Language Processing) en AzureIntroducción a NLP (Natural Language Processing) en Azure
Introducción a NLP (Natural Language Processing) en Azure
Plain Concepts
 
Intro to Machine Learning
Intro to Machine LearningIntro to Machine Learning
Intro to Machine Learning
Mohammed Ashour
 
Free and Open Machine Learning
Free and Open Machine LearningFree and Open Machine Learning
Free and Open Machine Learning
Maikel Mardjan
 
STEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdfSTEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdf
Brian Pichman
 
EuroSTAR 2018 tutorial Rik Marselis Testing Intelligent Machines
EuroSTAR 2018 tutorial Rik Marselis Testing Intelligent MachinesEuroSTAR 2018 tutorial Rik Marselis Testing Intelligent Machines
EuroSTAR 2018 tutorial Rik Marselis Testing Intelligent Machines
Rik Marselis
 
MFPE 23 AI presentation.pptx
MFPE 23 AI presentation.pptxMFPE 23 AI presentation.pptx
MFPE 23 AI presentation.pptx
Suzanne Reymer
 
Artificial intelligence & know ur AI IN CHILD.pptx
Artificial intelligence & know ur AI IN CHILD.pptxArtificial intelligence & know ur AI IN CHILD.pptx
Artificial intelligence & know ur AI IN CHILD.pptx
RAINAT1
 

Similar to scratch course-part2-2023.pdf (20)

Computer vision (machine learning for developers)
Computer vision (machine learning for developers)Computer vision (machine learning for developers)
Computer vision (machine learning for developers)
 
Machine learning limits (What can Machine Learning do and what it can't)
Machine learning limits (What can Machine Learning do and what it can't)Machine learning limits (What can Machine Learning do and what it can't)
Machine learning limits (What can Machine Learning do and what it can't)
 
Orientation session
Orientation sessionOrientation session
Orientation session
 
Introduction of machine learning.pptx
Introduction of machine learning.pptxIntroduction of machine learning.pptx
Introduction of machine learning.pptx
 
GDG-Start your Programing Career.pptx
GDG-Start your Programing Career.pptxGDG-Start your Programing Career.pptx
GDG-Start your Programing Career.pptx
 
Machine Learning Workshop Presentation
Machine Learning Workshop PresentationMachine Learning Workshop Presentation
Machine Learning Workshop Presentation
 
Why learn how to code
Why learn how to codeWhy learn how to code
Why learn how to code
 
Basics of machine_learning
Basics of machine_learningBasics of machine_learning
Basics of machine_learning
 
INTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
INTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNINGINTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
INTRODUCTION TO ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING
 
Inspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other ToolsInspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other Tools
 
Inspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other ToolsInspiring Kids to Code Using Scratch and Other Tools
Inspiring Kids to Code Using Scratch and Other Tools
 
Human-Machine Collaboration: Using art-making AI (CrAIyon) as cited work, o...
Human-Machine Collaboration:  Using art-making AI (CrAIyon) as  cited work, o...Human-Machine Collaboration:  Using art-making AI (CrAIyon) as  cited work, o...
Human-Machine Collaboration: Using art-making AI (CrAIyon) as cited work, o...
 
AI - Artificial Intelligence - Implications for Libraries
AI - Artificial Intelligence - Implications for LibrariesAI - Artificial Intelligence - Implications for Libraries
AI - Artificial Intelligence - Implications for Libraries
 
Introducción a NLP (Natural Language Processing) en Azure
Introducción a NLP (Natural Language Processing) en AzureIntroducción a NLP (Natural Language Processing) en Azure
Introducción a NLP (Natural Language Processing) en Azure
 
Intro to Machine Learning
Intro to Machine LearningIntro to Machine Learning
Intro to Machine Learning
 
Free and Open Machine Learning
Free and Open Machine LearningFree and Open Machine Learning
Free and Open Machine Learning
 
STEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdfSTEM Programming Ideas at the Library.pdf
STEM Programming Ideas at the Library.pdf
 
EuroSTAR 2018 tutorial Rik Marselis Testing Intelligent Machines
EuroSTAR 2018 tutorial Rik Marselis Testing Intelligent MachinesEuroSTAR 2018 tutorial Rik Marselis Testing Intelligent Machines
EuroSTAR 2018 tutorial Rik Marselis Testing Intelligent Machines
 
MFPE 23 AI presentation.pptx
MFPE 23 AI presentation.pptxMFPE 23 AI presentation.pptx
MFPE 23 AI presentation.pptx
 
Artificial intelligence & know ur AI IN CHILD.pptx
Artificial intelligence & know ur AI IN CHILD.pptxArtificial intelligence & know ur AI IN CHILD.pptx
Artificial intelligence & know ur AI IN CHILD.pptx
 

More from Doaa Mohey Eldin

Doaa-VR-lecture2.pdf
Doaa-VR-lecture2.pdfDoaa-VR-lecture2.pdf
Doaa-VR-lecture2.pdf
Doaa Mohey Eldin
 
Doaa-VR-lecture1.pdf
Doaa-VR-lecture1.pdfDoaa-VR-lecture1.pdf
Doaa-VR-lecture1.pdf
Doaa Mohey Eldin
 
Arabic-Doaa-VR-lecture2.pdf
Arabic-Doaa-VR-lecture2.pdfArabic-Doaa-VR-lecture2.pdf
Arabic-Doaa-VR-lecture2.pdf
Doaa Mohey Eldin
 
Arabic-Doaa-VR-lecture1.pdf
Arabic-Doaa-VR-lecture1.pdfArabic-Doaa-VR-lecture1.pdf
Arabic-Doaa-VR-lecture1.pdf
Doaa Mohey Eldin
 
Scratch Course WorkSheet-2023.pdf
Scratch Course WorkSheet-2023.pdfScratch Course WorkSheet-2023.pdf
Scratch Course WorkSheet-2023.pdf
Doaa Mohey Eldin
 
Data science lecture4_doaa_mohey
Data science lecture4_doaa_moheyData science lecture4_doaa_mohey
Data science lecture4_doaa_mohey
Doaa Mohey Eldin
 
Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey
Doaa Mohey Eldin
 
Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey
Doaa Mohey Eldin
 
Data science lecture1_doaa_mohey
Data science lecture1_doaa_moheyData science lecture1_doaa_mohey
Data science lecture1_doaa_mohey
Doaa Mohey Eldin
 

More from Doaa Mohey Eldin (9)

Doaa-VR-lecture2.pdf
Doaa-VR-lecture2.pdfDoaa-VR-lecture2.pdf
Doaa-VR-lecture2.pdf
 
Doaa-VR-lecture1.pdf
Doaa-VR-lecture1.pdfDoaa-VR-lecture1.pdf
Doaa-VR-lecture1.pdf
 
Arabic-Doaa-VR-lecture2.pdf
Arabic-Doaa-VR-lecture2.pdfArabic-Doaa-VR-lecture2.pdf
Arabic-Doaa-VR-lecture2.pdf
 
Arabic-Doaa-VR-lecture1.pdf
Arabic-Doaa-VR-lecture1.pdfArabic-Doaa-VR-lecture1.pdf
Arabic-Doaa-VR-lecture1.pdf
 
Scratch Course WorkSheet-2023.pdf
Scratch Course WorkSheet-2023.pdfScratch Course WorkSheet-2023.pdf
Scratch Course WorkSheet-2023.pdf
 
Data science lecture4_doaa_mohey
Data science lecture4_doaa_moheyData science lecture4_doaa_mohey
Data science lecture4_doaa_mohey
 
Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey
 
Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey
 
Data science lecture1_doaa_mohey
Data science lecture1_doaa_moheyData science lecture1_doaa_mohey
Data science lecture1_doaa_mohey
 

Recently uploaded

Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 

Recently uploaded (20)

Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 

scratch course-part2-2023.pdf

  • 1. Artificial intelligence in Scratch Tutorial for kids Doaa Mohey Eldin PhD researcher Faculty of computers & Artificial intelligence Cairo University 1 d.mohey2020@gmail.com Scratch Tutorial for kids by Doaa Mohey
  • 2. Agenda • Part1: Welcome to the World of Artificial Intelligence! • What is Artificial Intelligence? • What is Scratch-based Artificial Intelligence? • How Does Scratch AI Work? • Example: Scratch AI • Scratch AI Coding • Scratch AI Types • Scratch AI Aspects • Scratch AI Projects • AI Projects for Kids • The Future of Scratch AI • Part2: Introduction to Machine Learning for kids. • what is Machine Learning? • What is Scratch-based machine learning? • How does Machine Learning work? • Example: Creating Scratch-based machine learning model. • Testing and improving your model. • conclusion 2 Scratch Tutorial for kids by Doaa Mohey http://scratch.mit.edu • Part3: Scratch Examples • Scratch Games Examples • ML project Example
  • 3. Part 1 • Welcome to the World of Artificial Intelligence! • What is Artificial Intelligence? • What is Scratch-based Artificial Intelligence? • How Does Scratch AI Work? • Example: Scratch AI • Scratch AI Coding • Scratch AI Types • Scratch AI Projects • AI Projects for Kids • The Future of Scratch AI 3 Scratch Tutorial for kids by Doaa Mohey
  • 4. Welcome to the World of Artificial Intelligence! • Artificial intelligence (AI) is a wide-ranging branch of computer science concerned with building smart machines capable of performing tasks that typically require human intelligence. • Scratch is a free programmable toolkit that enables kids to create their own games, interactive art, and animated stories. 4 Scratch Tutorial for kids by Doaa Mohey
  • 5. What is Artificial Intelligence? • Artificial Intelligence, or AI for short, is a type of technology that allows machines to learn and make decisions like humans do. It's like having a robot brain that can think and solve problems on its own! • For example, is self-driving cars, which use AI to navigate and avoid obstacles. Pretty cool, right? 5 Scratch Tutorial for kids by Doaa Mohey
  • 6. What is Scratch-based Artificial Intelligence? • Scratch-based Artificial Intelligence: this tool introduces machine learning by providing hands-on experiences for training machine learning systems and building with them. • Scratch-based Artificial Intelligence is considered a type of technology that allows machines to learn and make decisions like humans do. It's like having a robot brain that can think and solve problems on its own! 6 Scratch Tutorial for kids by Doaa Mohey
  • 7. How Does Scratch AI Work? • Scratch Artificial intelligence (AI) works by using algorithms to analyze data and make decisions based on that analysis. One way that AI can be used is through machine learning, where the system is trained on large amounts of data to recognize patterns and make predictions. • Scratch AI can be used is through natural language processing, which involves teaching computers to understand human language. This can be used for tasks such as a language translation or speech recognition. 7 Scratch Tutorial for kids by Doaa Mohey
  • 8. Example: Scratch AI Scratch Tutorial for kids by Doaa Mohey 8
  • 9. Example: Scratch AI Scratch Tutorial for kids by Doaa Mohey 9
  • 10. Example: Scratch AI Scratch Tutorial for kids by Doaa Mohey 10
  • 11. Scratch AI Coding • Scratch is a block-based programming language. • Scratch coding is defined as the process of writing and running programs using Scratch, a free programming language and code editor that helps young learners understand coding logic using blocks and visual aids. This article defines the concept of Scratch coding and its uses in computer science and programming. • Scratch AI project for kids can create using Scratch is a virtual pet. Kids can use different blocks in Scratch to program their pet to perform certain actions, such as playing fetch or responding to their name. Scratch Tutorial for kids by Doaa Mohey 11
  • 12. Scratch AI Types 12 • There are two primary types of coding languages: text-based and block-based. • For example Scratch creative AI projects for kids are chatbot, Face recognition, sorting, and creating game. Scratch Tutorial for kids by Doaa Mohey Scratch coding Text-based Block-based
  • 13. Scratch AI Aspects 1. Learning. The gathering data and formulating the rules are the main necessary process to transform it into useful knowledge in the learning process in scratch AI. 2. Reasoning. Using a suitable algorithm. 3. Self-correction. It is main benefit to improve algorithms and make sure they deliver the most precise results. 4. Creativity. This branch of AI creates new images, texts, songs, and ideas using neural networks, rules-based systems, statistical techniques, and other AI tools. Scratch Tutorial for kids by Doaa Mohey 13 AI programming aspects Learning Reasoning Self-correction Creativity • AI programming Aspects are important in implementation any scratch AI programs, that are as the following
  • 14. Scratch AI Projects Scratch Tutorial for kids by Doaa Mohey 14
  • 15. The Future of Scratch AI • The future of Scratch AI: – the possibilities for AI are endless. – From self-driving cars to robots that can assist with everyday tasks, AI has the potential to revolutionize the way we live and work, but with great power comes great responsibility. • So what can you do to make a positive difference with AI? The possibilities are limitless! • Remember, the future is in our hands. With creativity and innovation, the proposed used scratch AI is to make a real difference in the world. Scratch Tutorial for kids by Doaa Mohey 15
  • 16. Scratch Tutorial for kids by Doaa Mohey 16
  • 17. Scratch Tutorial for kids by Doaa Mohey 17 Ability of a machine to imitate intelligent human behavior Application of AI that allows a system to automatically learn and improve from experience Application of machine learning that uses complex algorithms and deep neural nets to train a model
  • 18. Part 2 • Introduction to machine learning for kids. • what is machine learning? • What is Scratch-based machine learning? • How does machine learning work? • Creating a machine learning model in scratch. • Testing and improving your model. • conclusion 18 Scratch Tutorial for kids by Doaa Mohey
  • 19. Introduction to Machine Learning (ML) for kids • Training machine learning systems and creating things with them, this tool introduces machine learning. • It offers a simple-to-use guided environment for developing machine learning models for text, numeric, or image recognition. • By integrating these models into Scratch (a popular educational coding platform), this expands on current initiatives to introduce and teach coding to kids. • This will enable kids to construct projects and develop games using the machine learning models. Scratch Tutorial for kids by Doaa Mohey 19
  • 20. What is Machine Learning (ML)? • Machine Learning (ML) is a branch of artificial intelligence (AI) and computer science which focuses on the use of data and algorithms to imitate the way that humans learn, gradually improving its accuracy. • Machine learning is a type of computer program that helps computers learn from data, just like how you learn from your experiences. Imagine you're trying to teach a computer how to recognize different types of animals. 20 Scratch Tutorial for kids by Doaa Mohey
  • 21. What is Scratch-based Machine Learning? • Scratch-based Machine learning is when computers learn how to do things without being specifically programmed to do them. It's like teaching a robot to think for itself! • For example of machine learning (ML), ML is teaching a computer how to play a game. Just like how you get better at a game the more you play it, a computer can use machine learning to improve its performance. • Example, the computer would then use this information to try and recognize new animals it hasn't seen before! 21 Scratch Tutorial for kids by Doaa Mohey
  • 22. How Does Scratch ML Work? • To create a machine learning model in Scratch, we first need to gather data. This can be done by collecting information from sensors or by manually inputting data into the program. • Next, we need to train the model using algorithms that allow it to recognize patterns and make predictions based on the data we've collected. We can then test the model and make adjustments as needed to improve its accuracy. • For example, a machine learning algorithm cloud be trained on a dataset of cat images to recognize when a new image contains a cat. 22 Scratch Tutorial for kids by Doaa Mohey
  • 23. Example: Creating Scratch-based machine learning model. Scratch Tutorial for kids by Doaa Mohey 23 Face sensing block Face sensing conditions
  • 24. Example: Creating Scratch-based machine learning model. Scratch Tutorial for kids by Doaa Mohey 24 New block Speak control
  • 25. Example: Creating Scratch-based machine learning model. Scratch Tutorial for kids by Doaa Mohey 25 Translate block Example
  • 26. Example: Creating Scratch-based machine learning model. Scratch Tutorial for kids by Doaa Mohey 26 Music block
  • 27. Example: Creating Scratch-based machine learning model. Scratch Tutorial for kids by Doaa Mohey 27 Example music Example with many controls
  • 28. Example: Creating Scratch-based machine learning model. Scratch Tutorial for kids by Doaa Mohey 28 New created block
  • 29. Example: Creating Scratch-based machine learning model. Scratch Tutorial for kids by Doaa Mohey 29 Pen controls Control pen
  • 30. Coding Scratch AI • Types of Blocks in Scratch 1. Motion blocks (Blue): control the movement of a sprite (character or object) on the stage. For example, you can use motion blocks to make a sprite move in a certain direction or go to a specific position. 2. Looks blocks (Purple): change the appearance of a sprite, such as by changing its costume or size. 3. Sound blocks (Pink): play sounds or music in your program. 4. Events blocks (Yellow): set up events that trigger your program to run, such as when the green flag is clicked or when a certain key is pressed. 5. Control blocks (Tangerine): control the flow of your program, such as by repeating a section of code or stopping the program. 6. Sensing blocks (Teal): create programs that respond to input from the user or the environment. For example, you can use sensing blocks to check if the mouse is clicked or if a sprite is touching another sprite. 7. Operator blocks (Green): perform mathematical operations or compare values in your program. 8. Variables blocks (Orange): create variables (named values that can change) in your program and use them to store and manipulate data. Scratch Tutorial for kids by Doaa Mohey 30
  • 31. Coding Scratch AI • Types of Blocks in Scratch 9. Add block: with our proposed name and condition. 10. Music: This extension enables users to play MIDI notes on various instruments. 11. Video sensing: Projects can communicate with a camera using this extension. 12. Translate: Using the Translate plugin, text may be translated into various languages. 13. Pen: The Pen add-on enables users to sketch on the stage using a pen. 14. Text to speech: This allows text to be read aloud. 15. The LEGO MINDSTORM EV3 extension: It permits Scratch projects to connect with LEGO MINDSTORM EV3 devices. 16. The Micro:bit extension: It enables Scratch projects to communicate with micro:bit projects. Scratch Tutorial for kids by Doaa Mohey 31
  • 32. Machine learning for kids Scratch Tutorial for kids by Doaa Mohey 32 By providing free practical experiences for training machine learning systems and creating things with them, this free tool introduces machine learning. For training machine learning models to recognize text, numbers, photos, or sounds, it offers a simple, supervised environment. Machine learning is pervasive. Everyday tools like spam filters, recommendation engines, language translators, chatbots and digital assistants, search engines, and fraud detection systems are all examples of machine learning systems that we all use. Machine learning systems will soon be commonplace in driving our automobiles and assisting medical professionals in the diagnosis and treatment of our illnesses. The program is fully web- based and may be used without any installation or complicated setup. It has an admin page that teachers or group leaders may use to monitor and administer access for their students. It was created for usage in the classroom by schools and volunteer-run coding groups for kids. It is being built by Dale Lane using APIs from IBM Watson.
  • 33. Coding Scratch AI Scratch Tutorial for kids by Doaa Mohey 33 Pre-trained models Kids can employ pre-trained models in their assignments. These sophisticated models make projects possible that would otherwise be too difficult for students to complete on their own and offer practical insights into some of the other capabilities of machine learning. Scratch AI coding Programming
  • 34. Testing and Improving Your Model • Once you have created your machine learning model, it's time to test and improve it. Testing is essential for ensuring that your model is accurate and reliable. • One way to test your model is to use a validation set, which is a subset of your training data that is used to evaluate the performance of your model. You can also use metrics such as precision, recall, and F1 score to measure the accuracy of your model. • To improve your model, you can try adjusting various parameters, such as the learning rate, batch size, and number of epochs. • The experiment has different types of algorithms and architectures to see which ones work best for your particular problem. Additionally, you can try using techniques such as regularization and dropout to prevent overfitting and improve generalization. 34 Scratch Tutorial for kids by Doaa Mohey
  • 35. 3. Part 3: • Scratch Examples • Scratch Game Examples • Machine learning project Scratch Tutorial for kids by Doaa Mohey 35
  • 36. Scratch Examples Scratch Tutorial for kids by Doaa Mohey 36
  • 37. Scratch Examples Scratch Tutorial for kids by Doaa Mohey 37
  • 38. Scratch Examples Scratch Tutorial for kids by Doaa Mohey 38
  • 39. Scratch Examples Scratch Tutorial for kids by Doaa Mohey 39
  • 40. Scratch Game Examples Scratch Tutorial for kids by Doaa Mohey 40
  • 41. Scratch Game Example1 Scratch Tutorial for kids by Doaa Mohey 41
  • 42. Scratch Game Example2 Scratch Tutorial for kids by Doaa Mohey 42
  • 43. Scratch Game Example3 Scratch Tutorial for kids by Doaa Mohey 43
  • 44. Scratch Game Example4 Scratch Tutorial for kids by Doaa Mohey 44
  • 45. Scratch Game Example5 Scratch Tutorial for kids by Doaa Mohey 45
  • 46. Machine learning project Example Scratch Tutorial for kids by Doaa Mohey 46
  • 47. Machine learning Project Example • How to perform a task from a collection of examples Scratch Tutorial for kids by Doaa Mohey 47 https://machinelearningforkids.co.uk/
  • 48. Machine learning Project Example Scratch Tutorial for kids by Doaa Mohey 48
  • 49. Machine learning Project Example Scratch Tutorial for kids by Doaa Mohey 49 https://machinelearningforkids.co.uk/#!/mlproject/f3ca9a12-2f78-40ff-97f0-c8066e155a3a/ba1d9aa0-29f6-11ee-8f89-a9207169ef4b/training
  • 50. Machine learning Project Example Scratch Tutorial for kids by Doaa Mohey 50
  • 51. Machine learning Project Example Scratch Tutorial for kids by Doaa Mohey 51
  • 52. Conclusion • In conclusion, we've learned that machine learning is a powerful tool that can help us make predictions and decisions based on data. We've seen how it works through the process of data collection, training, and prediction. And we've even created our own simple machine learning model using Scratch! • But this is just the beginning. Machine learning is a rapidly growing field with endless possibilities. By continuing to explore and learn about machine learning, you can become a part of shaping the future of technology. So keep asking questions, experimenting, and most importantly, having fun! Scratch Tutorial for kids by Doaa Mohey 52
  • 53. Working Scratch Offline Download • https://scratch.mit.edu/download Working online 53 • Scratch is always free and is available in more than 70 languages. • To open scratch, we can use it as the following, Scratch Tutorial for kids by Doaa Mohey • https://scratch.mit.edu/projects/editor/?tutorial =getStarted https://machinelearningforkids.co.uk/#!/login Machine learning scratch online https://lab.scratch.mit.edu/face/ AI Scratch online
  • 54. Animation in scratch 54 Scratch Tutorial for kids by Doaa Mohey
  • 55. Time to play 55 Scratch Tutorial for kids by Doaa Mohey
  • 56. Experimental projects • Tasks • Create a game • Create a story • Create controls 56 Scratch Tutorial for kids by Doaa Mohey