Machine Learning (ML) is one of the most important technologies shaping the modern digital world. From search engines and recommendation systems to medical diagnostics and autonomous vehicles, Machine Learning allows computers to learn from data and improve their performance without being explicitly programmed.

This introductory lesson lays the foundation for understanding Machine Learning: what it is, how it differs from Artificial Intelligence and Deep Learning, where it is used in real life, and the main categories of Machine Learning algorithms.

1. What Is Machine Learning?

Machine Learning is a subfield of computer science that focuses on building algorithms and models that can learn patterns from data and make predictions or decisions based on that data.

Classical Programming vs Machine Learning

Traditional programming:

Rules + Data → Output

Machine Learning approach:

Data + Output → Model (Rules learned automatically)

Instead of manually coding rules, we give the machine large amounts of data and let it discover the rules by itself.

Formal Definition (Tom Mitchell)

A computer program is said to learn from experience E with respect to some task T and performance measure P if its performance at task T, as measured by P, improves with experience E.

Example:

2. Difference Between AI, Machine Learning, and Deep Learning

These terms are often confused, but they represent different levels of abstraction.

Artificial Intelligence (AI)

Artificial Intelligence is the broadest concept.
It refers to any system designed to imitate human intelligence, such as:

AI can be:

Machine Learning (ML)

Machine Learning is a subset of AI focused on systems that learn from data.

Key characteristics:

Examples:

Deep Learning (DL)

Deep Learning is a subset of Machine Learning based on artificial neural networks with many layers (deep networks).

Key characteristics:

Examples:

Summary Hierarchy

Artificial Intelligence
└── Machine Learning
    └── Deep Learning

3. Real-World Applications of Machine Learning

Machine Learning is already deeply integrated into many industries.

3.1 Healthcare

3.2 Finance

3.3 E-Commerce & Marketing

3.4 Transportation

3.5 Industry & IoT

3.6 Natural Language Processing (NLP)

4. Types of Machine Learning

Machine Learning algorithms are commonly divided into four main categories, depending on how data is labeled and how learning occurs.

4.1 Supervised Learning

Definition

In Supervised Learning, the model is trained on labeled data, meaning that each input has a known output.

Example

InputOutput
Email textSpam / Not spam
House sizePrice
ImageCat / Dog

Common Algorithms

Typical Use Cases

4.2 Unsupervised Learning

Definition

In Unsupervised Learning, the data has no labels.
The algorithm tries to discover hidden patterns or structures in the data.

Example

Common Algorithms

Typical Use Cases

4.3 Semi-Supervised Learning

Definition

Semi-Supervised Learning uses a small amount of labeled data and a large amount of unlabeled data.

This approach is useful when labeling data is expensive or time-consuming.

Example

Advantages

Common Techniques

4.4 Reinforcement Learning

Definition

In Reinforcement Learning (RL), an agent learns by interacting with an environment and receiving rewards or penalties.

Core Elements

Example

Common Algorithms

5. Summary Table

TypeLabeled DataGoalExample
SupervisedYesPredict outputSpam detection
UnsupervisedNoDiscover structureCustomer clustering
Semi-supervisedPartialImprove learningMedical imaging
ReinforcementNo labelsMaximize rewardGame AI

6. What’s Next?

In the next lessons of this series, you will learn: