Skip to main content
Machine Learning & Deep Learning

⏱ About 10 min10 XP

Layers Working Together

Think about making a sandwich. First you lay out the bread, then you add cheese, then lettuce, then tomato, and finally the top slice of bread. Each layer does its own job, and together they make something delicious. A neural network is organized in layers too — and each layer has its own job to do.

Three Kinds of Layers

A neural network has three types of layers, and every network has at least one of each. The first type is the input layer. This is where information enters the network. If the network is looking at a photo, the input layer receives all the numbers that describe the photo. The second type is called hidden layers. These are the layers in the middle — the ones doing most of the hard thinking. Hidden layers look for patterns, like edges in a photo, or certain shapes. The third type is the output layer. This is the last layer. It gives us the final answer. For a photo of a cat, the output layer might say: 'Cat: 95% sure. Dog: 3% sure. Bird: 2% sure.'

The Big Idea

Every neural network has an input layer (information comes in), hidden layers (the network finds patterns), and an output layer (the answer comes out).

Here is a real-world story. Imagine the network is trying to figure out if a shape is a square or a circle. The input layer receives the numbers describing the shape — brightness of each dot in the picture. The hidden layers look for clues. One layer might notice straight lines. Another might look for corners. The output layer uses all those clues and says: 'Square!' Each layer passed what it found to the next, and together they solved the puzzle.

Match each layer type to what it does.

Terms

Input layer
Hidden layer
Output layer
Deep network

Definitions

Finds patterns in the information, layer by layer
Receives the raw information from the outside world
Gives the final answer
A network with many hidden layers stacked together

Drag terms onto their definitions, or click a term then click a definition to match.

When a network has many hidden layers stacked on top of each other, scientists call it a deep neural network. That is where the word deep learning comes from! The deeper the network, the more layers of pattern-finding it can do. Very deep networks can recognize faces, understand speech, and even play video games.

Why So Many Layers?

More hidden layers let the network find more complex patterns. The first hidden layer might spot simple edges. A deeper layer might put those edges together to recognize a nose, and an even deeper layer might recognize a whole face.

What does the input layer do?

What does the word 'deep' mean in 'deep learning'?

Build a Layer Sandwich

  1. You will build a paper sandwich showing the three layers of a neural network.
  2. Fold three pieces of paper in half to make 'layers'.
  3. Label the first layer INPUT. Write on it: where information comes in.
  4. Label the middle layer HIDDEN. Write on it: looks for patterns.
  5. Label the third layer OUTPUT. Write on it: gives the answer.
  6. Stack them and staple the side.
  7. On the cover, write the name of something the network could recognize — like your pet, your school, or your favorite fruit.
  8. Share your layer sandwich with someone and explain what each layer does. Teaching is the best way to learn!