What is deep learning?
Deep learning is a branch of machine learning that uses neural networks with multiple layers to learn useful representations and patterns from data.
Instead of requiring a developer to manually define every feature, a deep learning model can learn increasingly useful representations as information passes through its layers.
Basic idea
A simplified deep neural network looks like this:
Input data
↓
Input layer
↓
Hidden layer 1
↓
Hidden layer 2
↓
Hidden layer 3
↓
Output layer
↓
PredictionEach layer transforms the representation produced by the previous layer. Earlier layers often learn relatively simple patterns, while later layers can combine them into more task-specific representations.
For example, in an image-recognition system, learned representations may progress from simple visual patterns toward shapes, object parts, and features useful for identifying an object. The exact representations are learned from data rather than explicitly programmed.
What happens inside a neural network?
A neuron typically receives several inputs, multiplies them by learned weights, adds a bias, and applies an activation function.
A simplified neuron can be written as:
z = w₁x₁ + w₂x₂ + ... + wₙxₙ + b
output = activation(z)Where:
xvalues are inputs.wvalues are learned weights.bis a learned bias.- The activation function introduces non-linearity.
A network contains many such computations organized into layers.
How does a deep learning model learn?
Training usually repeats four main steps:
Training data
↓
Forward pass
↓
Prediction
↓
Loss calculation
↓
Backpropagation
↓
Parameter update
↺During the forward pass, the network produces a prediction.
A loss function measures how far that prediction is from the desired output.
Backpropagation computes gradients that describe how the model parameters contributed to the loss. An optimizer, such as stochastic gradient descent or Adam, then uses those gradients to update the parameters.
Repeating this process across training examples gradually improves the model for its objective.
Why is it called "deep"?
The word deep refers to the use of multiple computational layers between the input and output. A network with many learned layers is commonly called a deep neural network.
There is no universal number of layers at which a neural network suddenly becomes "deep." The term generally distinguishes multi-layer architectures from simpler or shallower models.
Where is deep learning used?
Deep learning is widely used in areas such as:
- Computer vision
- Speech recognition
- Natural language processing
- Recommendation systems
- Generative models
- Time-series and signal processing
- Robotics and perception
Different problems use different architectures, including convolutional neural networks, recurrent neural networks, Transformers, autoencoders, and other specialized neural architectures.
Deep learning vs traditional machine learning
A useful distinction is representation learning.
In many traditional machine-learning workflows, humans spend substantial effort designing features before training a model. Deep learning can learn useful representations directly from raw or lightly processed data, although data preparation and domain knowledge still matter.
Deep learning is especially effective when large datasets and sufficient compute are available, but it is not automatically the best solution for every problem. Simpler models can be faster, easier to interpret, and more effective on small or structured datasets.
In short, deep learning trains multi-layer neural networks to learn representations from data and use those representations to make predictions or generate outputs.
Learning Sequence
Deep Learning Curriculum
Explore Related Questions
Deepen your understanding across related Deep Learning topics.