Docsity

Deep Learning: Understanding the Concepts and Applications of Deep Neural Networks, Slides of Software Development

Partial preview of the text

Download Deep Learning: Understanding the Concepts and Applications of Deep Neural Networks and more Slides Software Development in PDF only on Docsity!

Deep Learning

Prepared by:

Emad Mohammed

Supervisor by:-

Prof Dr. Ahmed Tariq

 (^) Deep learning (DL) is a field of machine learning its duty is to teach the computers to what humans do by nature just like when human understand and learn from its personal expertise.

 (^) Feature engineering is a process of putting domain knowledge into the creation of feature extractors to reduce the complexity of the data and make patterns more visible to learning algorithms to work. This process is difficult and expensive in terms of time and expertise. Deep learning algorithms try to learn high-level features from data. Therefore, deep learning reduces the task of developing new feature extractor for every problem. Like, Convolutional NN will try to learn low-level features such as edges and lines in early layers then parts of faces of people and then high-level representation of a face.

 (^) When solving a problem using traditional machine learning algorithm, it is generally recommended to break the problem down into different parts, solve them individually and combine them to get the result. Deep learning in contrast advocates to solve the problem end-to-end. Let’s take an example to understand this. Suppose you have a task of multiple object detection. The task is to identify what is the object and where is it present in the image.

Any Image (content) + Pablo Picasso (Style) Result Image

2. Neural style transfer is an optimization technique used to take three images, a content image, a style reference image (such as an artwork by a famous painter), and the input image you want to style — and blend them together such that the input image is transformed to look like the content image, but “painted” in the style of the style image.

 the number of hidden layers in the neural network. Traditional

neural networks only contain 2-3 hidden layers, while deep networks can have as many as 150.

Steps Convolutional neural network (CNN or ConvNet)) Step1: Input layer Step2: Feature extraction layer Step2.1: Convolutional operation Step2.2: Activation functions (Sigmoid, Softmax , Tanh , ReLU) Step2.3: subsampling (pooling ) Step3: classification layer Step3.1: fully-connected Artificial Neural Networks (multi-layer fully- connected neural nets, Backprogration Neural network )

 (^) Convolutional neural network is the most widely used deep learning model in feature learning for large-scale image classification and recognition. The CNN works by extracting features directly from images. CNNs learn to detect different features of an image using tens or hundreds of hidden layers. Every hidden layer increases the complexity of the learned image features. For example, the first hidden layer could learn how to detect edges, and the last learns how to detect more complex shapes specifically catered to the shape of the object we are trying to recognize.

Step2: Feature extraction layer Step2.1 : Convolution operation

  • perform multiple convolutions on an input, each using a different filter and resulting in a distinct feature map.
  • (^) then stack all these feature maps together and that becomes the final output of the convolution layer.
  • (^) If we used 10 different filters we would have 10 feature maps of size MxNx and stacking them along the depth dimension would give us the final output of the convolution layer: a volume of size MxNx10.

Step2: Feature extraction layer Step2.1 : Convolution operation

  • (^) Hyperparameters
    • (^) The important hyperparameters use with convolution operation are:
      1. Filter size: we typically use 3x3 filters, but 5x5 or 7x7 are also used depending on the application.
      2. Filter count: this is the most variable parameter, it’s a power of two anywhere between 32 and 1024. Using more filters results in a more powerful model.
      3. Stride: we keep it at the default value 1.
      4. Padding: we usually use padding.

Step2: Feature extraction layer Step2.2: Activation function layer Sigmoid Tanh ReLU (Rectified Linear Unit)

Step2: Feature extraction layer Step1.2: Activation function layer this is the step when you apply an activation function, the most used function here is ReLu (Rectified linear unit)

Step3: classification layer fully-connected Artificial Neural Networks (multi-layer fully-connected neural nets, Backprogration Neural network )

Recruiting Neural Network  (^) Recurrent neural networks or RNNs are a family of neural networks for processing sequential data.  (^) There are many tasks that require learning a temporal sequence of events These problems can be broken into 3 distinct types of tasks Sequence Recognition : Produce a particular output pattern when a specific input sequence is seen. Applications: Sentiment Analysis, handwriting recognition Sequence Reproduction : Generate the rest of a sequence when the network sees only part of the sequence. Applications: Time series prediction (stock market, sun spots, etc), language model. Temporal Association : Produce a particular output sequence in response to a specific input sequence. Applications: machine translation, speech generation (^20)