Artificial Intelligence for Kids

Siraj Raval · Beginner ·📐 ML Fundamentals ·8y ago

Key Takeaways

The video teaches Artificial Intelligence for Kids using Python and neural networks to find a missing device, demonstrating machine learning and deep learning concepts.

Full Transcript

hello world and Suraj and hold on hello Suraj my name is north and I really need your help what do you need I don't have time to explain they're coming after me can you please just press the number 4 wait who are you hello hello number 4 okay whoa what where am I what is this place freeze put your hands where we can see them hey over here get in the car wait you who are you just get in before they perform a brain drain no way okay I definitely don't want to bring forward oh my god oh my god okay that was close wait a second you're just a kid how do you know how to drive around here kids are better drivers than adults I can take video games alright well what is this place and why do you need my help this world is called Cola it's similar to earth but not really I asked a friend to teleport you here because I need your help finding a legendary device called the luma wait so I'm on an alien planet yeah don't all right so what's the luma it's a device that compared the entire planet with unlimited free clean energy it would save our entire planet from the destruction caused by pollution its location is on this USB stick but I need your help finding the relevant information inside of the stick the king of Cola King Nana wants the stick because he wants to use its power for himself to create a giant burger that only he can use instead of powering them too don't let that happen we gotta find it before he does okay I definitely don't want your planet to be destroyed so let's do this all right so I'll just plug this USB stick in my laptop and there we go wait this is just a bunch of pictures of your planet like mountains and rocks and lakes exactly I got this pictures from a satellite one of these pictures has the luma on it it's bright pink we got to find which picture has the luma but it would take me years to find it there is five million pictures on this USB stick and that's why I need your help you understand computers so maybe you could show me how to do this all right I can help let me see hmm do you know what programming is I've heard about it but I don't know much about it all right check this out so a computer is a machine and we can use it to do literally anything we can dream up and the way we can do this is by a process called programming you can also call it coding or software engineering basically it's a set of instructions that we give a computer to do some tasks that task can be creating a game world like Super Mario or playing a list of songs or even creating a website that sounds awesome so how do I program something well you need to choose a programming language first to code in okay which one well computers read instructions as a set of ones and zeros these are instructions that are easy for a computer to read but they're kind of hard for us to read so we can use programming languages like C or Java or Python that are made up of words instead of numbers that way we can read them and understand how they work if we take a language like Python we can write a simple program that just says hello world all I do is type the command in print then the phrase hello world into this Python text editor then I hit the Run button and it will say hello world and the output window that's the output of the program seat to us the program just says print hello world but under the hood all this text is broken down into ones and zeros so a computer can read it and process it that's awesome so I guess Viking is the best programming language well it's definitely my favorite one I thought is a really easy language to start learning programming with but in the end programming is an art form it's something you can get better at with practice it's the art of problem solving I really like Python because you want to think too much about what the right commands to use them and instead you can just focus on solving your problem that's for equal I will do you spite enough so how do we use fighting to find the new line all this pictures well we're gonna have to do some machine learning using Python what's machine learning well the traditional way to do programming was to tell a computer what to do like given exact instructions let's say we want to tell it to detect the luma in a picture well we can write code that can detect all the different features of what the luma looks like but it's color and shape and size but the luma could be in many different kinds of positions in one of these photos there's no guarantee of what exactly it will look like you do have some pictures of a luma right definitely there on the computer as well okay so instead of us telling the computer of what a little looks like we can have it learn what the limit looks like that's called the machine learn it's when we give a computer not a set of instructions to complete a task but instead a set of data and a task and have it learned from that data to complete the task so we can use Python to create a machine learning model then we'll feed our model a bunch of pictures of the luma our model will learn exactly what the luma looks like then want it to learn what a luma looks like we can give it all the satellite pictures you have and it will tell us when it detects so luma awesome so how do we make well there are lots of different machine learning models we could use but a really cool one I like to use is called a neural network a neural network can learn anything if we give it enough data and computing power here's how it works if we have some data with two columns the first column is a set of pictures of the looma the second column is a label that says luma or not luma we conveniently drove the data to the neural network one at a time there is some pattern here some kind of relationship between the two columns and a neural network can figure it out wanted to learn this pattern we can give it a new picture and it will automatically be able to tell us if there is a luma or there isn't how does it do that well the neural network is actually just a few math operations our input is going to be an image but if you think about it an image is really just a set of numbers it's a set of pixels and each pixel has a value that corresponds to a color a computer reads these pixels so it can display the colors of the image so it's a table of numbers and our neural network is a series of math operations it consists of a set of layers let's just use a simple network with three layers an input layer a hymn layer and an output layer in a neural network data goes from the ankle layer through the hidden layer to the output layer when it reaches the output layer it outputs a prediction of what it thinks it sees what connects each of these layers are a set of ways each weight is a matrix and since we have three layers we have two weights between each layer what's the matrix please don't tell me it involves that movie with slow motion what you watch Hollywood movies on this planet all right never mind a matrix is a math word for a Google numbers that has a set of rows and columns just like our pictures we will multiply our input by our first weight matrix and that'll give us a new set of numbers then we take those numbers and feed them to what's called an activation function the activation function will output a new set of numbers and that's our hidden layer we'll take those numbers and repeat the process again using the new numbers as inputs input times weight activate just like that and it produces our output a prediction value that says what percent the neural network thinks it's a luma or not where are we what's an activation function it's a math formula that make sure our neural network can learn any kind of relationship there are two kinds of relationships linear ones and non linear ones that means if we were to graph the relationship between any two things the line would be either straight or squiggly an activation function make sure our neural network can learn both kinds of relationships but yeah we can add as many layers as we want to our neural network we can also try to modify our neural network to do all sorts of mathematical operations wait wait wait that's a lot that they can let just use a simple neural network for now agreed we can code this neural network in Python really easily in just a few lines of code each line represents a different type of layer that the neural network is using each of these keywords is a different math operation that the network is using the process of learning that network uses is called training we create our neural network as just two matrices and the numbers in each of these matrices starts off as randoms we're going to input our luma images into the network one at a time we'll do this 60,000 times it's called training we do our input times waiting operation then activate the result we'll do that twice to get our prediction then we calculate how far off our prediction was from reality and use that change to update both of our neural network weights ever so slightly we just keep doing that over and over again and eventually those random numbers we started off with in our neural network start to get really useful so when we give our network on new Illume oh it will know exactly whether or not it's a luma or not but monkeys they're here we're going to find the Duma how long till he's been training did you just say blasted monkeys yeah alright it just finished okay let me give it the satellite pictures they found it it's in this picture awesome I've got the coordinates let's teleport there there it is I've got it yes thanks Ron anytime good luck we need one of those on earth - speaking of Earth can you teleport me back now sure thing bye see ya alright it's good to be back there are three things to remember from this video was it's the traditional way of programming is to give a computer some instructions on what to do machine learning is a form of programming where instead of instructions we give a computer some data and a goal then the computer learns how to do the goal using the data and a neural network is a machine learning model that can learn from data and it consists of matrix operations input times weight activate and there are two kinds of relationships two data points can have linear and nonlinear ones that means a straight line or squiggly line neural networks can learn both types please subscribe for more programming videos and I hope you have a happy new year thanks for watching

Original Description

I was just making another video but got an unexpected call from an alien world. In this video, I help a girl named North from another planet help find a missing device using Artificial Intelligence. We use machine learning/deep learning technologies to help find the device in the mountain of data. Using programming, we'll try to search for it. This video is made for the young and young at heart. Code for this video: https://github.com/llSourcell/Make_a_neural_network/blob/master/demo.py Coding challenge winners, i'll announce you guys in a separate video this weekend. To everyone, Please Subscribe! And like. And comment. That's what keeps me creating. Connect with me for more inspiration and education: https://twitter.com/sirajraval Facebook: https://www.facebook.com/sirajology https://www.instagram.com/sirajraval/ 2 notes, i acknowledge that I -used a feedforward net not a convnet. -didn't write out the full details of the activation function More learning resources: https://www.analyticsvidhya.com/blog/2015/06/machine-learning-basics/ https://machinelearningmastery.com/basic-concepts-in-machine-learning/ Join us in the Wizards Slack channel: http://wizards.herokuapp.com/ And please support me on Patreon: https://www.patreon.com/user?u=3191693 Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/ Signup for my newsletter for exciting updates in the field of AI: https://goo.gl/FZzJ5w Hit the Join button above to sign up to become a member of my channel for access to exclusive content! Join my AI community: http://chatgptschool.io/ Sign up for my AI Sports betting Bot, WagerGPT! (500 spots available): https://www.wagergpt.xyz
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Siraj Raval · Siraj Raval · 0 of 60

← Previous Next →
1 What is Bitcoin?
What is Bitcoin?
Siraj Raval
2 5 Ways to Use Bitcoin
5 Ways to Use Bitcoin
Siraj Raval
3 BTC Fever - Siraj [Music Video]
BTC Fever - Siraj [Music Video]
Siraj Raval
4 5 Reasons to Build Decentralized Apps
5 Reasons to Build Decentralized Apps
Siraj Raval
5 The Interplanetary File System
The Interplanetary File System
Siraj Raval
6 How to Build a Dapp in 3 min
How to Build a Dapp in 3 min
Siraj Raval
7 Life Before Smartphones
Life Before Smartphones
Siraj Raval
8 4 Ways to Use Smart Contracts
4 Ways to Use Smart Contracts
Siraj Raval
9 3 Dapps You HAVE to See
3 Dapps You HAVE to See
Siraj Raval
10 Char's Life as a BitTorrent Engineer
Char's Life as a BitTorrent Engineer
Siraj Raval
11 4 Reasons AlphaGo is a Huge Deal
4 Reasons AlphaGo is a Huge Deal
Siraj Raval
12 Build a Neural Net in 4 Minutes
Build a Neural Net in 4 Minutes
Siraj Raval
13 Sentiment Analysis in 4 Minutes
Sentiment Analysis in 4 Minutes
Siraj Raval
14 The Hackathon Life
The Hackathon Life
Siraj Raval
15 Your First ML App - Machine Learning for Hackers #1
Your First ML App - Machine Learning for Hackers #1
Siraj Raval
16 Build an AI Composer - Machine Learning for Hackers #2
Build an AI Composer - Machine Learning for Hackers #2
Siraj Raval
17 Build a Game AI - Machine Learning for Hackers #3
Build a Game AI - Machine Learning for Hackers #3
Siraj Raval
18 Build a Movie Recommender - Machine Learning for Hackers #4
Build a Movie Recommender - Machine Learning for Hackers #4
Siraj Raval
19 Build an AI Artist - Machine Learning for Hackers #5
Build an AI Artist - Machine Learning for Hackers #5
Siraj Raval
20 Build a Chatbot - ML for Hackers #6
Build a Chatbot - ML for Hackers #6
Siraj Raval
21 Build an AI Reader - Machine Learning for Hackers #7
Build an AI Reader - Machine Learning for Hackers #7
Siraj Raval
22 Build an AI Writer - Machine Learning for Hackers #8
Build an AI Writer - Machine Learning for Hackers #8
Siraj Raval
23 Build a Chatbot w/ an API - ML for Hackers #9
Build a Chatbot w/ an API - ML for Hackers #9
Siraj Raval
24 One-Shot Learning - Fresh Machine Learning #1
One-Shot Learning - Fresh Machine Learning #1
Siraj Raval
25 Generative Adversarial Nets - Fresh Machine Learning #2
Generative Adversarial Nets - Fresh Machine Learning #2
Siraj Raval
26 Tone Analysis - Fresh Machine Learning #3
Tone Analysis - Fresh Machine Learning #3
Siraj Raval
27 Generate Rap Lyrics - Fresh Machine Learning #4
Generate Rap Lyrics - Fresh Machine Learning #4
Siraj Raval
28 Build an Autoencoder in 5 Min - Fresh Machine Learning #5
Build an Autoencoder in 5 Min - Fresh Machine Learning #5
Siraj Raval
29 Build a Self Driving Car in 5 Min - Fresh Machine Learning #6
Build a Self Driving Car in 5 Min - Fresh Machine Learning #6
Siraj Raval
30 Build an Antivirus in 5 Min - Fresh Machine Learning #7
Build an Antivirus in 5 Min - Fresh Machine Learning #7
Siraj Raval
31 TensorFlow in 5 Minutes (tutorial)
TensorFlow in 5 Minutes (tutorial)
Siraj Raval
32 Build a Recurrent Neural Net in 5 Min
Build a Recurrent Neural Net in 5 Min
Siraj Raval
33 Build a Simulation in 5 Min
Build a Simulation in 5 Min
Siraj Raval
34 Build a TensorFlow Image Classifier in 5 Min
Build a TensorFlow Image Classifier in 5 Min
Siraj Raval
35 Tensorboard Explained in 5 Min
Tensorboard Explained in 5 Min
Siraj Raval
36 Generate Music in TensorFlow
Generate Music in TensorFlow
Siraj Raval
37 Build a Game Bot (LIVE)
Build a Game Bot (LIVE)
Siraj Raval
38 Deep Learning Frameworks Compared
Deep Learning Frameworks Compared
Siraj Raval
39 Introduction - Learn Python for Data Science #1
Introduction - Learn Python for Data Science #1
Siraj Raval
40 Build a Neural Network (LIVE)
Build a Neural Network (LIVE)
Siraj Raval
41 Twitter Sentiment Analysis - Learn Python for Data Science #2
Twitter Sentiment Analysis - Learn Python for Data Science #2
Siraj Raval
42 Recommendation Systems - Learn Python for Data Science #3
Recommendation Systems - Learn Python for Data Science #3
Siraj Raval
43 Predicting Stock Prices - Learn Python for Data Science #4
Predicting Stock Prices - Learn Python for Data Science #4
Siraj Raval
44 Pong Neural Network (LIVE)
Pong Neural Network (LIVE)
Siraj Raval
45 Deep Dream in TensorFlow - Learn Python for Data Science #5
Deep Dream in TensorFlow - Learn Python for Data Science #5
Siraj Raval
46 Visualizing Data with D3.js (LIVE)
Visualizing Data with D3.js (LIVE)
Siraj Raval
47 Genetic Algorithms - Learn Python for Data Science #6
Genetic Algorithms - Learn Python for Data Science #6
Siraj Raval
48 Enter Siraj [Music Video]
Enter Siraj [Music Video]
Siraj Raval
49 Build a Web Scraper (LIVE)
Build a Web Scraper (LIVE)
Siraj Raval
50 Why is P vs NP Important?
Why is P vs NP Important?
Siraj Raval
51 How to Make a Neural Network (LIVE)
How to Make a Neural Network (LIVE)
Siraj Raval
52 How to Make an Amazing Tensorflow Chatbot Easily
How to Make an Amazing Tensorflow Chatbot Easily
Siraj Raval
53 How to Make an Amazing Video Game Bot Easily
How to Make an Amazing Video Game Bot Easily
Siraj Raval
54 How to Make a Tensorflow Neural Network (LIVE)
How to Make a Tensorflow Neural Network (LIVE)
Siraj Raval
55 How to Make a Simple Tensorflow Speech Recognizer
How to Make a Simple Tensorflow Speech Recognizer
Siraj Raval
56 Joel Shor - Really Quick Questions with an Awesome Google Engineer
Joel Shor - Really Quick Questions with an Awesome Google Engineer
Siraj Raval
57 How to Make a Path Planning Algorithm Easily (LIVE)
How to Make a Path Planning Algorithm Easily (LIVE)
Siraj Raval
58 The Best Way to Prepare a Dataset Easily
The Best Way to Prepare a Dataset Easily
Siraj Raval
59 Catherine Olsson - Really Quick Questions with an OpenAI Engineer
Catherine Olsson - Really Quick Questions with an OpenAI Engineer
Siraj Raval
60 How to Make a Tic Tac Toe Neural Network Easily (LIVE)
How to Make a Tic Tac Toe Neural Network Easily (LIVE)
Siraj Raval

This video teaches kids about Artificial Intelligence using a fun story and practical examples, covering machine learning and neural networks. It demonstrates how to use Python and neural networks to find a missing device. The video provides a beginner-friendly introduction to AI concepts and techniques.

Key Takeaways
  1. Create a machine learning model
  2. Feed the model pictures of the luma
  3. Give the model a new picture to detect the luma
  4. Create a neural network as two matrices with random numbers
  5. Input data into the network and perform matrix operations
  6. Activate the result to get a prediction
  7. Calculate the error and update the network's weights
  8. Repeat the process to train the network
💡 Neural networks can learn both linear and non-linear relationships between data points, making them powerful tools for machine learning tasks.

Related AI Lessons

Mastering TypeScript — Understanding the TypeScript Compiler (tsc) from Scratch — Lesson 2
Learn the basics of the TypeScript compiler to write better JavaScript code
Medium · JavaScript
Stop Overfitting With Basically One Line of Code
Learn to prevent overfitting with a simple code tweak and understand the difference between Ridge and Lasso regression
Medium · AI
Stop Overfitting With Basically One Line of Code
Learn to prevent overfitting in machine learning models with a simple code tweak and understand the difference between Ridge and Lasso regression
Medium · Machine Learning
Stop Overfitting With Basically One Line of Code
Prevent overfitting in models with a simple code tweak, understanding the difference between Ridge and Lasso regression
Medium · Data Science
Up next
Learn Deep Learning by Hand (Beginner's Guide - Part 1)
Thu Vu
Watch →