August 12, 2026
AI, ML & DL: The Technology Behind Machines That Learn — Learning AI Part I
AI is the biggest field.

By Gokul G
6 min read
Artificial Intelligence (AI)
│
├── Machine Learning (ML)
│ │
│ └── Deep Learning (DL)Artificial Intelligence (AI)
│
├── Machine Learning (ML)
│ │
│ └── Deep Learning (DL)- AI is the biggest field.
- ML is one way to achieve AI.
- DL is a specialized type of ML.
Let's go through everything in a structured and intuitive way.
1. Artificial Intelligence (AI)
What is AI?
Artificial Intelligence (AI) is the field of building systems that can perform tasks that normally require human intelligence.
Instead of simply following fixed instructions, AI systems attempt to think, reason, learn, understand, and make decisions.
Human abilities AI tries to imitate
AI attempts to perform tasks such as:
- Understanding language
- Recognizing objects
- Making decisions
- Solving problems
- Learning from experience
These are known as cognitive abilities.
Main Areas of AI
AI is a very broad field with many branches.
1. Natural Language Processing (NLP)
Goal: Allow computers to understand and communicate using human language.
Examples:
- ChatGPT
- Google Translate
- Voice assistants
- Email autocomplete
Tasks include:
- Understanding text
- Answering questions
- Translating languages
- Generating text
2. Computer Vision
Goal:
Allow computers to "see" and understand images and videos.
Examples:
- Face recognition
- Self-driving cars detecting pedestrians
- Medical image analysis
- Security cameras
Tasks include:
- Image classification
- Object detection
- Image segmentation
3. Robotics
Goal:
Build robots that can perform tasks independently or with minimal human guidance.
Examples:
- Warehouse robots
- Surgical robots
- Delivery robots
- Manufacturing robots
4. Expert Systems
Goal:
Create software that mimics the decision-making ability of a human expert.
Example:
A medical diagnosis system that recommends treatments based on patient symptoms.
AI is meant to augment humans — not simply replace them
One major misconception is that AI exists only to replace people.
Actually, one of AI's primary goals is to augment human capabilities.
That means AI helps people perform tasks faster, better, and with greater accuracy.
Examples:
- Doctors use AI to analyze X-rays.
- Financial analysts use AI to detect fraud.
- Security teams use AI to identify cyber attacks.
Humans still make many important decisions.
AI Applications
Healthcare
AI helps with:
- Disease diagnosis
- Drug discovery
- Personalized medicine
Finance
AI helps with:
- Fraud detection
- Investment optimization
- Risk assessment
Cybersecurity
AI helps with:
- Detecting attacks
- Identifying malware
- Threat prediction
- Automated incident response
2. Machine Learning (ML)
What is Machine Learning?
Machine Learning (ML) is a subfield of AI.
Instead of programming every rule manually, we let the computer learn patterns from data.
Think of it this way:
Traditional Programming:
Rules + Data
↓
AnswerRules + Data
↓
AnswerMachine Learning:
Data + Answers
↓
Computer learns rulesData + Answers
↓
Computer learns rulesAfter learning those rules:
New Data
↓
PredictionNew Data
↓
PredictionWhy ML?
Rather than writing thousands of if-else conditions, we train the computer using examples.
Example:
Instead of telling the computer:
Cats have whiskers.
Cats have pointy ears.
Cats have fur.
Cats have tails.Cats have whiskers.
Cats have pointy ears.
Cats have fur.
Cats have tails.We simply show it 100,000 labeled images of cats and dogs.
Eventually, it learns the differences by itself.
How ML Works
- Collect data
- Train the algorithm
- Learn patterns
- Make predictions on unseen data
Types of Machine Learning
There are three major categories.
A. Supervised Learning
Definition
The model learns using labeled data.
Every training example already contains the correct answer.
Example:
cat image — -> labeled as — -> cat
Dog image— -> labeled as → Dog
The algorithm learns:
Features
↓
Correct LabelFeatures
↓
Correct LabelThen predicts labels for new images.
Examples
- Image classification
- Spam detection
- Fraud prevention
B. Unsupervised Learning
Definition
The model learns from unlabeled data.
There are no correct answers.
Instead, the algorithm discovers hidden patterns or groups.
Example:
Suppose an online store has customer purchase data but no labels.
The ML algorithm may discover:
Group 1:
- Buys electronics
Group 2:
- Buys groceries
Group 3:
- Luxury shoppers
Nobody told the computer these groups existed.
It discovered them automatically.
Examples
- Customer segmentation
- Anomaly detection
- Dimensionality reduction
C. Reinforcement Learning
Definition
The computer learns by trial and error.
It interacts with an environment and receives:
- Reward
- Penalty
Eventually it learns which actions maximize rewards.
Example:
Robot learning to walk.
Walk
↓
Falls
↓
Penalty
Try again
Walk better
RewardWalk
↓
Falls
↓
Penalty
Try again
Walk better
RewardEventually:
Correct walkingCorrect walkingExamples
- Chess
- Go
- Robotics
- Self-driving cars
Example: Cat vs Dog Classifier
Suppose we have:
50,000 cat images
50,000 dog images50,000 cat images
50,000 dog imagesEach image is labeled.
Training:
Image
↓
ML algorithm
↓
Learns differencesImage
↓
ML algorithm
↓
Learns differencesLater:
New image
↓
Prediction
DogNew image
↓
Prediction
DogThe computer never memorizes every image.
It learns patterns such as:
- Ear shape
- Nose
- Fur texture
- Eye position
ML Applications
Healthcare
- Disease diagnosis
- Drug discovery
- Personalized medicine
Finance
- Fraud detection
- Risk assessment
- Algorithmic trading
Marketing
- Customer segmentation
- Recommendation systems
- Targeted advertisements
Cybersecurity
- Threat detection
- Intrusion prevention
- Malware analysis
Transportation
- Traffic prediction
- Route optimization
- Autonomous vehicles
Important Point
Machine Learning is constantly evolving.
Researchers continuously develop:
- Better algorithms
- Faster models
- More accurate techniques
ML provides the learning capability that makes many AI systems intelligent.
3. Deep Learning (DL)
What is Deep Learning?
Deep Learning is a subfield of Machine Learning.
It uses artificial neural networks with many layers (hence "deep") to automatically learn complex patterns from data.
DL is especially effective for large, unstructured, or high-dimensional data, such as:
- Images
- Audio
- Videos
- Text
Why is it called "Deep"?
Because the neural network contains many layers.
Example:
Input
↓
Layer 1
↓
Layer 2
↓
Layer 3
↓
Layer 4
↓
OutputInput
↓
Layer 1
↓
Layer 2
↓
Layer 3
↓
Layer 4
↓
OutputEach layer learns increasingly complex features.
Key Characteristics of Deep Learning
1. Hierarchical Feature Learning
The model learns features from simple to complex.
For image recognition:
Input Image
↓
Edges
↓
Corners
↓
Shapes
↓
Eyes
↓
Face
↓
PersonInput Image
↓
Edges
↓
Corners
↓
Shapes
↓
Eyes
↓
Face
↓
PersonLower layers detect simple features like edges and textures.
Higher layers detect complex objects like faces or cars.
2. End-to-End Learning
Traditional ML often requires humans to manually select useful features.
Deep Learning can learn directly from raw input to final output, reducing the need for manual feature engineering.
For example:
Instead of manually extracting facial features, a DL model learns them automatically from images.
3. Scalability
Deep Learning performs especially well when given:
- Massive datasets
- Powerful GPUs/TPUs
- High computational resources
As more data becomes available, DL models often improve.
Common Deep Learning Architectures
1. Convolutional Neural Networks (CNNs)
Designed primarily for:
- Images
- Videos
CNNs use convolutional layers to detect local patterns (edges, textures) and build up to recognizing complex objects.
Examples:
- Face recognition
- Medical imaging
- Self-driving car vision
2. Recurrent Neural Networks (RNNs)
Designed for sequential data, where previous information matters.
Examples:
- Text
- Speech
- Time-series data
RNNs maintain information across time steps using internal loops, allowing them to model sequences.
Examples:
- Speech recognition
- Language modeling
- Text prediction
3. Transformers
A newer and highly effective architecture, especially for Natural Language Processing (NLP).
Key idea:
They use self-attention mechanisms to understand relationships between words, even when they are far apart in a sentence.
Examples:
- ChatGPT
- Machine translation
- Text summarization
- Code generation
Transformers have largely replaced RNNs for many NLP tasks because they handle long-range dependencies more effectively.
Deep Learning Applications
Computer Vision
- Image classification
- Object detection
- Image segmentation
Natural Language Processing
- Sentiment analysis
- Machine translation
- Text generation
Speech
- Speech recognition
- Speech synthesis (text-to-speech)
Reinforcement Learning
- Training game-playing agents
- Robotics
- Autonomous control systems
4. Relationship Between AI, ML, and DL
The relationship can be summarized as:
Artificial Intelligence
│
├── Expert Systems
├── Robotics
├── NLP
├── Computer Vision
└── Machine Learning
│
├── Supervised Learning
├── Unsupervised Learning
├── Reinforcement Learning
└── Deep Learning
├── CNN
├── RNN
└── TransformersArtificial Intelligence
│
├── Expert Systems
├── Robotics
├── NLP
├── Computer Vision
└── Machine Learning
│
├── Supervised Learning
├── Unsupervised Learning
├── Reinforcement Learning
└── Deep Learning
├── CNN
├── RNN
└── Transformers- AI is the broad field focused on creating intelligent systems.
- ML is a subset of AI that enables systems to learn from data rather than relying solely on explicitly programmed rules.
- DL is a subset of ML that uses deep neural networks to automatically learn complex representations from large amounts of data.
How They Work Together
Computer Vision
Goal:
Teach machines to understand images.
Workflow:
AI Goal
↓
Machine Learning learns from image data
↓
Deep Learning (CNNs) extracts visual features
↓
Image recognizedAI Goal
↓
Machine Learning learns from image data
↓
Deep Learning (CNNs) extracts visual features
↓
Image recognizedNatural Language Processing (NLP)
Goal:
Understand and generate human language.
Workflow:
AI Goal
↓
Machine Learning identifies language patterns
↓
Deep Learning (Transformers) models context and meaning
↓
Chatbots, translation, text generationAI Goal
↓
Machine Learning identifies language patterns
↓
Deep Learning (Transformers) models context and meaning
↓
Chatbots, translation, text generationAutonomous Driving
A self-driving car combines multiple AI techniques:
- Computer Vision to recognize lanes, pedestrians, and traffic signs.
- Machine Learning to interpret sensor data and make predictions.
- Deep Learning (e.g., CNNs for vision and other neural networks for perception) to extract complex features from cameras and sensors.
- Reinforcement Learning can be used during training to improve driving strategies through simulated trial and error.
Together, these components allow the vehicle to make safe, real-time driving decisions.
Robotics
Robots combine:
- AI for planning and decision-making.
- Machine Learning to improve from experience and data.
- Deep Learning for perception (vision, speech).
- Reinforcement Learning to learn complex actions through interaction with the environment.
Final Summary
Artificial Intelligence (AI):
- Broad field of creating intelligent systems
- Focuses on reasoning, perception, planning, and intelligent behavior
- May or may not involve learning
- Includes NLP, Computer Vision, Robotics, Expert Systems, and ML
- Goal: Build intelligent systems
Machine Learning (ML):
- Subfield of AI where systems learn from data
- Focuses on learning patterns and making predictions
- Always learns from data
- Includes supervised, unsupervised, and reinforcement learning
- Goal: Enable systems to improve from experience
Deep Learning (DL):
- Subfield of ML using deep neural networks
- Focuses on learning complex representations automatically
- Always learns using multi-layer neural networks
- Includes CNNs, RNNs, and Transformers
- Goal: Solve complex tasks involving images, text, audio, and other unstructured data
Note:
Artificial Intelligence (AI)_ is the broad discipline of creating intelligent systems. Machine Learning (ML) is a subset of AI that enables systems to learn from data instead of relying only on explicit programming. Deep Learning (DL) is a subset of ML that uses deep neural networks to automatically learn complex patterns, making it particularly powerful for tasks involving images, speech, and natural language._