Machine Learningscikit-learn 1.9.1 · xgboost 3.4.1 · Python 3.12+
Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
52 small wins to finish your pathNext lesson →

AI vs ML vs DL vs data science

Artificial intelligence (AI) is the field that builds applications which do their task without human intervention; machine learning (ML) is the part of AI that learns from data, and deep learning (DL) is the part of ML that uses multi-layered neural networks.

Last updated: 05 Oct, 2026 · scikit-learn 1.9.1

The four names are used loosely in job titles and course names. The video sorts them with one picture, sets inside sets, and one rule: whatever the role, the end product is an AI application.

Defining an AI application

AI and AI applications · from the Complete Machine Learning in 6 Hours video · 1:23 to 4:46

Imagine the whole universe of these applications and call it AI. An AI application does its task without any human intervention: nobody has to monitor it, it makes its own decisions and performs its task. The video gives four examples:

  • Netflix. Watch action movies for a while and the recommendation module suggests more action movies. Watch comedies and it suggests comedies. It learns your behaviour without asking you anything.
  • Amazon.in. Buy an iPhone and it may recommend headphones.
  • YouTube ads. An AI engine chooses which ad you see. The goal is a business one.
  • Self-driving cars, such as Tesla's. The car drives itself based on the road ahead.

Whatever your title, machine learning developer, deep learning developer, computer vision developer, data scientist or AI engineer, the work ends in an AI application.

Placing machine learning and deep learning inside AI

Machine learning, deep learning and data science · from the Complete Machine Learning in 6 Hours video · 5:00 to 7:54

Machine learning is a subset of AI. It provides statistical tools to analyse data, visualise it, and make predictions and forecasts. The equations inside machine learning algorithms are statistical techniques, because working with data means working with statistics.

Deep learning is a subset of machine learning. In the 1950s and 60s scientists asked whether a machine could learn the way a human learns. Deep learning tries to mimic the human brain with multi-layered neural networks, and it solves very complex use cases.

Data science overlaps all three. The notes draw it as a fourth circle that cuts across AI, ML and DL. A data scientist given a business problem may solve it with machine learning or deep learning, and may first have to analyse and visualise the data. The video's own example: at Panasonic the tasks ranged from Power BI dashboards to machine learning projects to deep learning projects.

AI is the largest set; machine learning sits inside it and deep learning inside machine learning, and data science is a fourth circle that overlaps all three; Netflix, Amazon.in and a self-driving car are AI applications.

Checking the nesting with Python sets

The nesting is a statement about sets, so Python's set operators can check it. The members here are the video's own words for each layer.

ExampleThe nested sets from the board, as Python sets
ai = {"does its task without human intervention", "statistical tools", "multi-layered neural networks"}
ml = {"statistical tools", "multi-layered neural networks"}
dl = {"multi-layered neural networks"}

print("DL inside ML:", dl <= ml)
print("ML inside AI:", ml <= ai)
print("in ML but not DL:", ml - dl)
print("ML inside DL:", ml <= dl)

Reading the set checks

  • dl <= ml and ml <= ai are both True: every deep learning method is a machine learning method, and every machine learning method is part of AI.
  • ml - dl leaves the statistical tools: the classical algorithms in this course are machine learning but not deep learning.
  • ml <= dl is False: the nesting only works one way.

AI vs ML vs DL vs data science

TermWhat it isHow it worksExample
AIApplications that do a task without human interventionAny method: rules, ML or DLNetflix and Amazon.in recommendations, Tesla's self-driving
MLA subset of AI that learns from dataStatistical tools to analyse, visualise, predict, forecastThe classical algorithms in this course, from linear regression to clustering
DLA subset of MLMulti-layered neural networks that mimic the brainVery complex use cases, such as recognising images and speech
Data scienceA role that overlaps all threeAnalysis, visualisation, ML and DL as the problem needsPower BI, ML and DL projects at Panasonic

Where you use AI, ML and DL

  • Reading job titles. An AI engineer, a data scientist and an ML developer all build AI applications; the title says which tools they reach for first.
  • Choosing an approach. A table of a few thousand rows with numeric columns suits the classical machine learning in this course. Images, audio and long text usually need deep learning.
  • Interviews. "What is the difference between AI, ML and DL?" is a common first question, and the nested picture answers it in one sketch.
Watch out. Deep learning is not a separate field next to machine learning. It sits inside it. A neural network is a machine learning model, and it still needs data, a cost to minimise and a test set, the same ideas the linear regression part teaches.
Try it yourself
  • Add "if-else rules written by hand" to the ai set only and print ai - ml: the hand-written rules now appear next to the AI definition, AI that does not learn from data.
  • Write the input and output for the Netflix example (watch history in, a recommended title out), then do the same for Amazon.in.
  • Name one task from your own work that an AI application could do without human intervention, and say whether it needs deep learning (images, speech) or classical machine learning (a table of numbers).

Little by little, you're building something great.