what are convolutional neural networks? | introduction to deep learning -凯发k8网页登录
from the series:
explore the basics behind convolutional neural networks (cnns) in this matlab® tech talk. broadly, convolutional neural networks are a common deep learning architecture – but what exactly is a cnn? this video breaks down this sometimes complicated concept into easy-to-understand parts. you’ll learn about 3 concepts: local receptive fields, shared weights and biases, and activation and pooling.
the video pulls together these three concepts and shows you how to configure the layers in a convolutional neural network.
you’ll also learn about the 3 ways to train convolutional neural networks for image analysis. these include: 1.) training the model from scratch; 2.) using transfer learning (based on the idea that you can use knowledge of one type of problem to solve a similar problem); 3.) using a pretrained cnn to extract features for training a machine learning model.
learn more about using matlab for deep learning.
recorded: 24 mar 2017
a convolutional neural network, or cnn, is a network architecture for deep learning. it learns directly from images. a cnn is made up of several layers that process and transform an input to produce an output.
you can train a cnn to do image analysis tasks, including scene classification, object detection and segmentation, and image processing. in order to understand how cnns work, we'll cover three key concepts: local receptive fields, shared weights and biases, and activation and pooling.
finally, we'll briefly discuss the three ways to train cnns for image analysis.
so let's start with the concept of local receptive fields. in a typical neural network, each neuron in the input layer is connected to a neuron in the hidden layer. however, in a cnn, only a small region of input layer neurons connects to neurons in the hidden layer. these regions are referred to as local receptive fields.
the local receptive field is translated across an image to create a feature map from the input layer to the hidden layer neurons. you can use convolution to implement this process efficiently. that's why it is called a convolutional neural network. the second concept we'll discuss is about shared weights and biases.
like a typical neural network, a cnn has neurons with weights and biases. the model learns these values during the training process, and it continuously updates them with each new training example. however, in the case of cnns, the weights and bias values are the same for all hidden neurons in a given layer.
this means that all hidden neurons are detecting the same feature, such as an edge or a blob, in different regions of the image. this makes the network tolerant to translation of objects in an image. for example, a network trained to recognize cats will be able to do so whenever the cat is in the image.
our third and final concept is activation and pooling. the activation step applies a transformation to the output of each neuron by using activation functions. rectified linear unit, or relu, is an example of a commonly used activation function. it takes the output of a neuron and maps it to the highest positive value.
or if the output is negative, the function maps it to zero. you can further transform the output of the activation step by applying a pooling step. pooling reduces the dimensionality of the featured map by condensing the output of small regions of neurons into a single output. this helps simplify the following layers and reduces the number of parameters that the model needs to learn.
now let's pull it all together. using these three concepts, we can configure the layers in a cnn. a cnn can have tens or hundreds of hidden layers that each learn to detect different features in an image. in this feature map, we can see that every hidden layer increases the complexity of the learned image features.
for example, the first hidden layer learns how to detect edges, and the last learns how to detect more complex shapes. just like in a typical neural network, the final layer connects every neuron, from the last hidden layer to the output neurons. this produces the final output. there are three ways to use cnns for image analysis.
the first method is to train the cnn from scratch. this method is highly accurate, although it is also the most challenging, as you might need hundreds of thousands of labeled images and significant computational resources.
the second method relies on transfer learning, which is based on the idea that you can use knowledge of one type of problem to solve a similar problem. for example, you could use a cnn model that has been trained to recognize animals to initialize and train a new model that differentiates between cars and trucks.
this method requires less data and fewer computational resources than the first. with the third method, you can use a pre-trained cnn to extract features for training a machine learning model. for example, a hidden layer that has learned how to detect edges in an image is broadly relevant to images from many different domains. this method requires the least amount of data and computational resources.
i hope you found this video useful. for more information, visit mathworks.com/deep-learning.
featured product
deep learning toolbox
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 mathworks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- (español)
- (english)
- (english)
欧洲
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
亚太
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)