What Is Deep Learning?
Learn what deep learning is, how layered neural networks learn features automatically, and why data and compute made it take off.
Artificial Intelligence · Lesson 1
Learn what deep learning is, how layered neural networks learn features automatically, and why data and compute made it take off.
Almost every headline AI system you have heard of, from voice assistants to image generators to modern chatbots, runs on deep learning. Understanding what deep learning actually is turns those systems from magic into machinery. Once you see the shape of the idea, the rest of this module falls into place.
Deep learning is also the dividing line between the classical machine learning of Module 2 and the generative tools of Module 3. Classical methods often needed humans to hand-design the clues a model should look at. Deep learning changed that bargain: the network learns the useful clues itself. That single shift is why the field surged forward, and it is what this lesson unpacks.
Deep learning is a branch of machine learning that uses artificial neural networks with many stacked layers. The word deep simply refers to the number of layers, not to any mysterious depth of understanding. Data enters at one end, passes through layer after layer, and a prediction comes out the other end. Each layer transforms the information a little before handing it to the next.
In classical machine learning, people often spent enormous effort designing features, the specific measurements a model would examine. To detect a cat, an engineer might hand-code detectors for whiskers or ear shapes. Deep networks flip this around. Early layers learn simple patterns such as edges and colors, middle layers combine those into shapes like eyes or fur textures, and later layers assemble those into whole objects. The network discovers this hierarchy on its own from examples. This is called representation learning or feature learning.
The core ideas behind neural networks are decades old, so why the recent explosion? Two ingredients arrived together. First, the internet produced huge labeled datasets, giving networks enough examples to learn from. Second, graphics processing units, or GPUs, originally built for video games, turned out to be excellent at the many small parallel calculations neural networks require. Plentiful data plus affordable compute let researchers train far larger and deeper networks than ever before.
Imagine building a system to tell handwritten digits apart. A classical approach might have you measure things by hand: how many loops does the digit have, how tall is it, where are the corners? You would tune these rules yourself, and they would break on messy handwriting.
A deep learning approach skips the hand-tuning. You feed the network thousands of labeled digit images. Its first layer learns to spot short strokes and edges. A later layer learns that certain edge combinations form loops or crossings. The final layer learns that a loop on top of a stem often means a nine. Nobody told the network to look for loops; it found that clue because it helped it guess correctly, again and again.
Deep learning is not always the right tool. Suppose you have a small spreadsheet of a few hundred loan applications with a dozen tidy columns like income and credit score. Here a simple classical model, such as a decision tree or logistic regression, will often match or beat a deep network, train in seconds, and be far easier to explain. Deep learning shines when data is large and the useful patterns are hard to describe in words, such as pixels, audio, or language. Reaching for a deep network on a tiny, well-structured table is usually overkill.
A widely cited turning point came in 2012 at the ImageNet Large Scale Visual Recognition Challenge, a competition to classify photographs into a thousand categories. A deep neural network known as AlexNet, built by Alex Krizhevsky with Ilya Sutskever and Geoffrey Hinton at the University of Toronto, won by a large margin, cutting the error rate dramatically compared with the runners-up.
What made AlexNet notable was not a brand-new theory but the combination this lesson describes: a deep network trained on the very large ImageNet dataset using GPUs. The network learned its visual features directly from images rather than relying on hand-engineered ones. Its success convinced much of the research community to shift toward deep learning, and the years since have seen deep networks spread across vision, speech, and language.
List three tasks: sorting a small table of survey answers, recognizing spoken commands from audio, and identifying objects in photos. For each, decide whether hand-engineered features or learned features are likely the better fit, and write one sentence explaining why. Then check your reasoning against the counterexample above.
Think Like a Maester: When a problem's important clues are hard to put into words, let the network learn them rather than trying to hand-code every rule.
Deep learning is machine learning built from neural networks with many stacked layers. Its defining trait is that it learns useful features automatically, discovering a hierarchy from simple edges up to whole objects, instead of relying on rules a person designs by hand. This approach was possible in theory for decades but only took off when large datasets and fast GPUs arrived together. The 2012 ImageNet victory of AlexNet showed the payoff and pushed the field decisively toward deep learning. In the next lesson we open one of these networks and look at the parts inside.
Mark this lesson complete to track your progress.