Pranav Srivastava
Learning tracks
publishedIntermediate5 chapters

Deep Learning

What neural networks really are, why stacking layers lets them learn features on their own, and how CNNs and RNNs see images and read sequences — explained with everyday analogies and real use cases.

Deep LearningNeural NetworksCNNsRNNsTransfer Learning

Classical machine learning needs you to tell it what to look at — "consider the house's size and location." Deep learning's superpower is that it figures out what to look at by itself. Show it enough photos and it discovers, on its own, that edges make shapes, shapes make eyes, and eyes make faces. This course explains how — without the heavy maths.

What you will learn
  • Understand a neural network as a stack of simple layers that learn features automatically
  • See why depth lets models learn edges → shapes → objects without being told
  • Know what CNNs (for images) and RNNs (for sequences) are, and where each is used
  • Understand transfer learning — why you rarely start from scratch

What a neural network actually is

The name sounds intimidating, but the idea is gentle. A neural network is built from tiny units called neurons. Each neuron does something trivial: take some numbers in, multiply each by a "weight" (how much it cares about that input), add them up, and pass the result on.

One neuron is almost useless. But connect thousands into layers — the output of one layer feeding the next — and something remarkable happens. The network can represent astonishingly complex patterns.

inputhiddenhiddenoutput
A neural network is just layers of simple units. Information flows left to right, reshaped at each layer into an answer.

Remember from the maths course: the inputs are a vector, each layer is a matrix that transforms it, and learning the weights is gradient descent walking downhill. A neural network is exactly those three ideas, stacked and repeated. Nothing more mysterious than that.

Chapter summary
  • A neuron does something simple: weigh inputs, add them, pass on a result
  • A neural network is many neurons in stacked layers
  • It is the maths-course ideas (vectors, matrices, gradient descent) stacked up

Why depth is the magic

Here is the insight that makes deep learning special. Each layer learns to spot bigger ideas built from the layer below it. You never tell it what to look for — it discovers a hierarchy on its own.

For a face-recognition network, researchers have actually looked inside and seen this happen:

Layers learn bigger and bigger ideas
  Layer 1  →  edges and simple lines        /  \  |  —
  Layer 2  →  corners, curves, textures     ◜ ◝  ⌒
  Layer 3  →  parts: an eye, a nose, an ear  👁  👃
  Layer 4  →  whole faces                    🙂
Nobody programmed these stages — the network discovered them

This is the difference from classical ML. There, you had to hand-pick the features ("measure the distance between the eyes"). Deep learning learns the features itself, which is why it took over for messy, real-world data like images, audio, and language — where nobody can list all the right features by hand.

Chapter summary
  • Each layer learns bigger ideas built from the layer beneath (edges → parts → objects)
  • The network discovers these features itself — you do not hand-pick them
  • This is why deep learning conquered images, audio, and language
Check your understanding
  1. In plain words, what does each successive layer of a face network learn?
  2. Why did deep learning take over from classical ML for tasks like image recognition?

CNNs — networks that see

A CNN (Convolutional Neural Network) is the design built for images. Its trick is to scan the picture with small "filters" — little windows that slide across the image looking for one thing each (a vertical edge, a patch of red, a curve).

Think of it like looking at a large painting through a small magnifying glass, sweeping it across the canvas, noting where you find each feature. Early filters find edges; later layers combine them into shapes and objects — the hierarchy from the last chapter.

Where CNNs are used every day:

  • Your phone's camera finding faces to focus on
  • Medical imaging flagging a suspicious area on a scan for a radiologist to check
  • A factory line spotting a cracked part
  • Self-driving cars recognising pedestrians and signs
Chapter summary
  • A CNN scans an image with small sliding filters, each detecting one feature
  • Stacking them builds from edges to shapes to objects
  • Used in phone cameras, medical imaging, manufacturing, and self-driving

RNNs — networks that read sequences

Images are static, but lots of data comes in order: words in a sentence, notes in a melody, days of stock prices. For these, what came before changes the meaning of what comes next. "I grew up in France, so I speak fluent ___" — to fill the blank you must remember "France" from earlier.

A RNN (Recurrent Neural Network) handles this by reading one item at a time while keeping a little memory of what it has seen so far. It reads "I," updates its memory, reads "grew," updates again, and so on — so by the blank, it still "remembers" France.

RNNs powered early translation, speech recognition, and text prediction. But they have a weakness: they struggle to remember things from long ago in a sequence — the memory fades. That weakness is exactly the problem the next course (Attention & Transformers) was invented to solve.

Chapter summary
  • RNNs process ordered data one step at a time, carrying a memory of the past
  • This suits language, speech, and time series — where order matters
  • Their weakness (forgetting long-range context) set the stage for transformers

Transfer learning — standing on giants

Training a deep network from scratch needs enormous data and compute — out of reach for most projects. Transfer learning is the brilliant shortcut: take a network someone already trained on millions of images, and reuse it for your task.

The analogy: hiring someone who already knows how to see, then teaching them only your specific job. The lower layers (which learned edges and shapes) are universal — every vision task needs them. You keep those and only retrain the last bit for your specific labels.

Chapter summary
  • Training from scratch needs huge data and compute; most projects cannot
  • Transfer learning reuses a pre-trained model and adapts its final layers
  • It is why small teams can build strong models — and it foreshadows how LLMs are fine-tuned
Check your understanding
  1. Why is an RNN better suited to a sentence than a CNN?
  2. A startup has only 500 labelled product photos. Why is transfer learning their best bet?
All tracksQuestions? Get in touch →