The short answer
Artificial intelligence (AI) is the broad goal of making machines do things that seem intelligent. Machine learning (ML) is one way to reach that goal, where the machine learns patterns from data instead of following hand-written rules. Deep learning is a part of machine learning that uses neural networks with many layers. Data science is a separate but overlapping field that uses statistics, programming and machine learning to answer questions with data.
So AI contains machine learning, and machine learning contains deep learning. Data science overlaps with all three without sitting fully inside any of them.
The nested circles: how the fields fit together
The easiest way to remember the relationship is as circles inside circles, with data science drawn as a separate circle that cuts across them.
+---------------------------------------------------------+
| ARTIFICIAL INTELLIGENCE |
| rules, search, planning, expert systems |
| |
| +-----------------------------------------------+ |
| | MACHINE LEARNING | |
| | learns from data: regression, trees, | |
| | random forests, k-means, XGBoost | |
| | | |
| | +-------------------------------------+ | |
| | | DEEP LEARNING | | |
| | | many-layered neural networks: | | |
| | | CNNs, RNNs, transformers, LLMs | | |
| | +-------------------------------------+ | |
| +-----------------------------------------------+ |
+---------------------------------------------------------+
^ ^
| |
+----------------------------------------------+
| DATA SCIENCE (overlaps, does not sit inside) |
| statistics, SQL, cleaning, experiments, |
| dashboards, ML models, business insight |
+----------------------------------------------+What is artificial intelligence?
AI is the umbrella term. Any system that does something we would call intelligent if a person did it counts, whether it learned that behaviour or someone programmed it step by step. A chess program that searches through possible moves, a route planner, a rule-based chatbot and a modern large language model are all AI.
Early AI was mostly rule-based. Experts wrote thousands of if-then rules into so-called expert systems. These worked in narrow areas but were hard to maintain and broke on cases nobody had thought of. Machine learning became popular because it lets the computer find the rules from examples.
Today, when news stories say 'AI', they usually mean machine learning, and often deep learning in particular. Generative AI, which creates text, images, audio or code, is built on large deep learning models trained on huge amounts of data. It is still part of the same family tree: generative AI is a use of deep learning, which is a kind of machine learning, which is a branch of AI.
Machine learning and deep learning: is deep learning part of machine learning?
Yes. Deep learning is a subset of machine learning. Both learn from data. The difference is in the kind of model and how features are handled.
Classic machine learning, such as linear regression, decision trees, random forests and gradient boosting, usually works on tables of data where a person has prepared the input features: a customer's age, number of orders, days since last purchase and so on. These algorithms train quickly, need less data and are easier to explain.
Deep learning uses neural networks with many layers. Each layer learns a more abstract version of the input, so the network can learn useful features by itself straight from raw pixels, audio or text. That is why deep learning powers image recognition, speech-to-text, translation and chat assistants. The cost is that it usually needs much more data, more computing power (often GPUs) and more care to train, and its decisions are harder to explain.
A useful rule of thumb: if your data fits naturally in a spreadsheet, start with classic machine learning. If your data is made of pixels, sound waves or long passages of text, deep learning is usually the better tool.
In practice, machine learning and deep learning are used side by side. A company might use gradient boosting for fraud scores on transaction tables and a deep learning model to read text from scanned documents.
Data science vs artificial intelligence
The difference between AI and data science is mainly about the goal. AI aims to build systems that act intelligently, often automatically and at scale. Data science aims to understand data and turn it into decisions, which may or may not involve an AI system.
A data scientist spends a lot of time on questions like 'why did sales drop in the South region last quarter?' or 'did the new checkout page actually increase orders?'. Answering those needs SQL, data cleaning, statistics, A/B testing, charts and clear communication. Building a predictive model is one tool among many. An AI or ML engineer, by contrast, focuses on building, deploying and maintaining models inside products.
The two fields share a lot: Python, machine learning algorithms and a respect for good data. That is why job titles blur, and why one person might do both kinds of work in a small company.
Data science vs machine learning vs artificial intelligence: comparison table
| Artificial intelligence | Machine learning | Deep learning | Data science | |
|---|---|---|---|---|
| What it is | The broad goal of machines acting intelligently | Methods that learn patterns from data | ML using many-layered neural networks | Extracting insight and decisions from data |
| Relationship | The umbrella | A subset of AI | A subset of ML | Overlaps with ML and AI |
| Typical methods | Search, planning, rules, ML, deep learning | Regression, trees, ensembles, clustering | CNNs, RNNs, transformers | Statistics, SQL, EDA, experiments, ML |
| Data needed | Varies; rule-based AI may need none | Small to large, usually tabular | Usually large, often images, audio or text | Whatever answers the question |
| Main output | An intelligent system or behaviour | A trained model that predicts | A trained neural network | Insights, reports, dashboards and models |
| Example | A route planner or a chat assistant | A loan default predictor | Face unlock on a phone | An analysis of why customers churn |
| Common job titles | AI engineer, research scientist | ML engineer | Deep learning engineer, CV or NLP engineer | Data scientist, data analyst |
Real examples of each
- AI without machine learning: a GPS app finding the shortest route with a search algorithm, or a customer support bot that follows a fixed decision tree written by a person.
- Machine learning without deep learning: a credit scoring model built with gradient boosting on income, repayment history and loan amount.
- Deep learning: a photo app that groups pictures by face, a speech-to-text keyboard, or a large language model answering questions.
- Data science without much AI: a study of which marketing channel brings the most loyal customers, presented as a dashboard and a short report.
- All of them together: a food delivery company where data scientists analyse late orders, ML engineers ship a delivery-time model, and a deep learning model reads restaurant menus from photos.
Which one should you learn first?
If you want to build models, start with machine learning, because deep learning builds directly on its ideas: features, labels, training, overfitting and evaluation. This roadmap follows that order, moving from Python and maths through classic ML in Phases 7 to 11, then deep learning in Phase 12 and computer vision and NLP in Phase 13.
If you enjoy asking business questions, analysing data and presenting findings, data science or data analysis may suit you better, and you can add ML later. Either way, Python, statistics and a solid grasp of classic ML are useful in every one of these careers.
A practical tip: when you describe your own work on a CV or in an interview, use the most precise term that fits. 'I built a random forest classifier to predict churn' tells an interviewer far more than 'I worked on AI'. Precise words show that you understand where your project sits among these fields, and they make it easier for a recruiter to match you to the right role.
