Hi! In this video, we'll try to understand what is the deep learning, and how it works. Deep learning is an extremely fast-growing field, with an infinity of applications.
For example, we can find several utilities in music composition, artistic creations, datas classification, medical researches,. . .
It's a captivating field with an extreme amount of notions to understand. It can be quite daunting. .
During my researches, I realized there is very few concise and clear french sources. . .
So we'll try to unravel this. (sorry for English people :p) In order to speak about it, I will use several english terms. French translations sound horribly wrong.
. . And if you predict to go further in your searches, you have to know these terms.
So knowing these english terms will be usefull. Don't worry, I'll do my best to explain you all of this. So.
What exactly is the "Deep Learning"? It's a sub category of artificial intelligence. The definition of an AI is quite blurry.
We could define it this way : a set of technics whith the goal to mimics the intelligence through a succession of rules. In this case, we will have to code every cases of a given problem. .
. The main difference between the deep learning and artificial intelligence is that we just give it a goal. Then it will search by itself how to reach it.
The principle is to use some neural networks they will interact with each other in order to overcome the problem. For example. If we have to program a standard algorithm able to recognize a handwritted digit.
We would first have to define some rules for allow the detection of lines, angles, curves, . . .
Then teach it how are composed each digits. For example, a 5 is the assembly of all these elements. For the deep learning, it's radically different.
The principle is to give an extrem amount of datas to our neural network. Enough for it to adapt. We'll have to give it thousands and thousands of different images so that he can indentify the shared parameters between all these images.
At the beginning, it will be pretty unreliable at this task. but step by step it will improve. The first appearances of deep learning go back in the 80's but we only hear about it for a few years.
Mainly for two reasons : Firstly, the computing capacity is increasing exponentially, and allows to manage bigger networks. So we have results more interesting and faster. The second main reason is the amount of datas.
We saw earlier that deep learning uses examples, for good results, we'll need plenty. Here is some concrete applications : It's possible to transfer the style from a painting to another image. Or the reproduce fluids and smokes behavior.
Some networks are used in the medical field, to find cancer cells with very high accuracy. Another example that I find pretty fun : A cat in a maze. We want him to be able to move and avoid walls.
So we give him a neural network He'll need few informations in order to evolve in its environment. Like his current speed, or the distance between him and the walls. The goal of our network is to find a behavior based on these informations.
For example, if he detects that a wall is very close to him, he must slow down and rotate. And if he have free field, he can accelerate There is a extreme amount of neural networks. Each of it have some particularities.
Some will learn easily how to compute pictures. Some others will have memory, and will be able to process words/pictures sequences for example. In fact, there is a zoo of these models.
I'm not kidding. . ^^ Firstly we will take an interest to the simpliest possible neural network.
We will already have plenty of technical notions, no needs to speak about more specifical networks. In this video, we will speak about the theory. Mathematical notions will be for the next video.
We'll try to understand how a network is able to recognize handwritten digits. Here is our network. One of the simpliest.
The fully connected neural network. It's a set of neurons organized in layers, and interconnected by what we called "weights". Each weight is a value which will be used to spread informations.
Weights are the base of our networks. All of the learning process can be done thanks to them. The first layer is called "Input layer".
The last is the "output layer". And ever other layer is called "hidden layer". The amount of hidden layers is very inconstant.
Potentially from 0 to infinity. But we speak about "deep learning" for networks with two or more hidden layers. It's with this amount of layer that our network can process really complexe datas.
Let's talk about our handwritten digits example. We have to give our network understandable informations. This digit is a 28*28 pixels picture.
Each pixel is represented by a value between 0 and 1. zero is black, and one is white. So we have 784 input neurons.
So, how does it work? We give our 784 values to the input layer. This information will spread layer by layer Each neurons will react based on its incoming connections, according to their weights.
This will define their activation rates. What we see here is purely mathematical. But we'll speak about it in the next video.
Informations of our initial digit will spread through hidden layers based of the weights. Then we have a result in the output layer. We have ten output neurons.
Each of them are the representation of a number between zero and nine. The activation rate of these neurons is representing the guess of our network. In the example of a 5, the best possible answer would be to have all of our neurons shut off, except the one representing the 5.
But for now, our network is trying to find the solution for the first time. It is wrong. All of its output neurons will be more or less activated.
It has done. . .
Randomly. Because he had no informations about the result we were expected. So.
. . We have to punish it.
. . To correct it!
But in an intelligent way. The only way to change the behavior of our network, is to vary its weights. The learning process consist in finding the best possible weights, to have a correct answer.
For this, we compare the given result and the expected result. We'll obtain a value, called the "cost". The more the cost is high, the more our network is far from the correct answer.
Thanks to the cost, we are able to deduct which weights has participated the most on our incorrect answer. Then we have to adjust the weights, in order to minimize the cost, and get closer to the correct answer. Then we can experiment with another image.
The network will be wrong again. But it's closer to the expected answer. The learning process consist in these steps.
Then we repeat these steps thousands of times, with a lot of pictures. And we adjust the weights each times. Progressively, the network will be able to have its own representation of each digits.
It will quickly know how to identify each number. It can be proud of it! Let's recap: - It converts 784 inputs values in 10 output values.
This conversion is done thanks to the weights, which spread informations through the network. -After a lot of repetitions of the process, the networks learned how to recognize each digits. -After the training process, we can test the network on digits never seen before.
If the learning is correctly done, the network gives us our expected answers. I hope it was clear for you! Next video will be on the maths part.
Then. . .
See ya!