1. Home
  2. Explore
  3. Computer Science
  4. Convolutional Neural Networks

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Convolutional Neural Networks

  • 37Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: CNN Motivation and Basics

What specific problem were Convolutional Neural Networks (CNNs) developed to solve?

37 questions

  1. 1

    What specific problem were Convolutional Neural Networks (CNNs) developed to solve?

    Model answer

    CNNs were developed to more effectively and efficiently process image data.

    Explanation

    The video states that CNNs were developed to process image data more effectively and efficiently than traditional MLPs.

  2. 2

    Name the CNN architecture discussed in the video that achieved state-of-the-art performance in 2014, comparable to human-level performance.

    Model answer

    VGG-16.

    Explanation

    The video introduces VGG-16 as an early CNN that was state-of-the-art in 2014 and comparable to human-level performance.

  3. 3

    Describe the general structure of a CNN as presented in the video.

    Model answer

    A CNN typically includes a series of convolutional blocks followed by a number of fully connected layers.

    Explanation

    The video explains that convolutional blocks extract features, and fully connected layers perform the classification task.

  4. 4

    List two reasons why Multi-Layer Perceptrons (MLPs) are not well-suited for processing image data.

    Model answer
    1. They are not translation invariant. 2. They have an excessive number of parameters, making them prone to overfitting.

    Explanation

    The video gives these two reasons: lack of translation invariance and excessive parameters leading to overfitting.

  5. 5

    What does it mean that an MLP is not translation invariant?

    Model answer

    The network will react differently depending on where an object (e.g., a digit) is located within the image frame.

    Explanation

    The video shows that when digits are centered, MLPs work well, but predictions become unreliable when digits are off-center.

  6. 6

    Calculate the number of parameters in a fully connected network that takes a flattened 224x224x3 color image and has three fully connected layers with 128 neurons each. Provide the approximate number.

    Model answer

    Over 300 billion parameters (specifically, 150,528×128+128×128+128×128+128×10150,528 \times 128 + 128 \times 128 + 128 \times 128 + 128 \times 10150,528×128+128×128+128×128+128×10 for 10 output classes, but the video says over 300 billion).

    Explanation

    The flattened input has 224×224×3=150,528224 \times 224 \times 3 = 150,528224×224×3=150,528 elements. With three FC layers of 128 neurons each, the parameter count is huge, leading to overfitting.

  7. 7

    What are the two main components of a CNN at a high level?

    Model answer

    An upstream feature extractor (also called backbone or body) and a downstream classifier (also called head).

    Explanation

    The video describes CNNs as having a feature extraction segment followed by a classifier.

  8. 8

    What is the input shape for the VGG-16 network?

    Model answer

    224x224x3 (height x width x RGB channels).

    Explanation

    The video specifies that VGG-16 accepts color images of size 224x224x3.

  9. 9

    How does the shape of data change as it flows through the convolutional layers of VGG-16?

    Model answer

    The spatial dimensions (height and width) are intentionally reduced, while the depth (number of channels) is increased.

    Explanation

    The video explains that spatial dimensions shrink and depth increases as data passes through the network.

  10. 10

    How many convolutional blocks does VGG-16 have?

    Model answer

    Five convolutional blocks.

    Explanation

    The video states that VGG-16 begins with five convolutional blocks.

  11. 11

    How many fully connected layers are in VGG-16?

    Model answer

    Three fully connected layers.

    Explanation

    The video mentions that the convolutional blocks are followed by three fully connected layers.

  12. 12

    What is the typical composition of a convolutional block in a CNN?

    Model answer

    One or more 2D convolutional layers followed by a pooling layer.

    Explanation

    The video describes the basic structure of a convolutional block as containing conv layers and a pooling layer.

  13. 13

    What is another term for the filters used in convolutional layers?

    Model answer

    Kernels.

    Explanation

    The video uses the terms filter and kernel interchangeably.

  14. 14

    In the context of CNNs, what is the role of a convolutional layer?

    Model answer

    Convolutional layers use filters to process input data; filters slide across the input and perform a convolution operation at each location, producing a single number that is passed through an activation function to populate an activation map.

    Explanation

    The video explains that convolutional layers extract features by convolving filters over the input.

  15. 15

    What is a receptive field in a convolutional layer?

    Model answer

    The region of the input covered by the filter at a given position.

    Explanation

    The video refers to the filter location as the receptive field.

  16. 16

    Describe the convolution operation performed at each filter location.

    Model answer

    The convolution operation is the dot product of the filter values with the corresponding values in the receptive field of the input.

    Explanation

    The video illustrates this with sample calculations.

  17. 17

    What is the typical size of a kernel used in VGG-16?

    Model answer

    3x3.

    Explanation

    The video mentions that 3x3 kernels are used in VGG-16 (though 5x5 is also possible).

  18. 18

    How are the weights of kernels in a CNN initialized and updated?

    Model answer

    The weights are initially random and learned by the network during training.

    Explanation

    The video emphasizes that kernel weights are learned, not fixed like in traditional image processing.

  19. 19

    What is an activation map?

    Model answer

    An activation map is the output of a convolutional layer after applying an activation function; it contains a summary of meaningful features from the input.

    Explanation

    The video defines activation maps as the output from the convolution operation followed by an activation function.

  20. 20

    If a convolutional layer has NNN filters and the input has depth CCC, what must be the depth of each filter?

    Model answer

    Each filter must have a depth of CCC to match the input depth.

    Explanation

    The video states that the number of channels in a filter must match the number of channels in the input.

  21. 21

    How many output activation maps does a convolutional layer produce?

    Model answer

    The number of output activation maps equals the number of filters in that layer.

    Explanation

    The video explains that each filter produces one activation map.

  22. 22

    What is the purpose of padding in convolutional layers?

    Model answer

    Padding is used to maintain the spatial size of the output, often so it is the same as the input size.

    Explanation

    The video mentions that padding prevents the output from shrinking.

  23. 23

    What effect does a stride larger than 1 have on the output of a convolution operation?

    Model answer

    It reduces the spatial size of the output.

    Explanation

    The video notes that using a stride larger than 1 will reduce the output size.

  24. 24

    What is the Sobel kernel used for?

    Model answer

    The Sobel kernel is used to detect vertical edges.

    Explanation

    The video shows the Sobel kernel as an example of an edge detection kernel.

  25. 25

    Why are CNNs able to detect many different types of features automatically?

    Model answer

    Because the kernel weights are learned during training, so the network is incentivized to come up with kernels that extract meaningful features.

    Explanation

    The video says CNNs generalize the concept of fixed kernels by learning weights.

  26. 26

    What is the purpose of a pooling layer in a CNN?

    Model answer

    To reduce the spatial size of activation maps, which reduces the number of parameters and helps mitigate overfitting.

    Explanation

    The video states that pooling reduces spatial dimensions, reduces parameters, and helps mitigate overfitting.

  27. 27

    Name the two types of pooling operations mentioned, and state which is more common.

    Model answer

    Average pooling and max pooling; max pooling is the most common.

    Explanation

    The video lists both and says max pooling is most common.

  28. 28

    Does a pooling layer have trainable parameters?

    Model answer

    No, a pooling layer has no trainable parameters; the filter only specifies the window size and stride.

    Explanation

    The video clarifies that pooling filters have no trainable parameters.

  29. 29

    Given a 4x4 input slice, a 2x2 max pooling filter with stride 2, what is the size of the output?

    Model answer

    2x2.

    Explanation

    The video uses this example: 4x4 input, 2x2 filter, stride 2 yields a 2x2 output.

  30. 30

    What is the typical placement of a pooling layer within a convolutional block?

    Model answer

    After a series of convolutional layers.

    Explanation

    The video says pooling layers are typically used after a series of convolutional layers.

  31. 31

    What types of features do filters in the first convolutional layer of a CNN typically detect?

    Model answer

    Basic structural elements like edges and color blobs.

    Explanation

    The video refers to a 2013 paper showing that first-layer filters detect edges and color blobs.

  32. 32

    What types of features do deeper layers of a CNN detect?

    Model answer

    More complex compositional structures, such as wheels of a car.

    Explanation

    The video shows that deeper layers detect complex structures built from lower-level features.

  33. 33

    What is the shape of the activation maps before the final flattening in VGG-16?

    Model answer

    7x7x512.

    Explanation

    The video states the output from the last convolutional block (Conv-5) has shape 7x7x512.

  34. 34

    How many elements does the flattened vector have before the first fully connected layer in VGG-16?

    Model answer

    25,088 (since 7×7×512=25,0887 \times 7 \times 512 = 25,0887×7×512=25,088).

    Explanation

    The video computes this value.

  35. 35

    Why are fully connected layers well-suited for the classification task?

    Model answer

    They allow the classifier to consider information from the entire image, as the flattened output from the last convolutional layer is connected in a fully connected manner.

    Explanation

    The video explains that connecting all spatial locations allows integration of global information.

  36. 36

    In VGG-16, approximately how many connections are between the flattened activation maps and the first fully connected layer?

    Model answer

    Over 100 million connections.

    Explanation

    The video mentions this as a large number of connections.

  37. 37

    What is the process by which a trained CNN maps features to class probabilities?

    Model answer

    The weights in the network were trained to minimize a loss function, learning meaningful features that fire the appropriate neuron in the output layer.

    Explanation

    The video summarizes that training minimizes a loss function to learn features and activate correct output neurons.

1 of 37
Question 1 of 37

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent