By Anish Rane, mechanical engineer and MSc in Machine Learning & AI. Last reviewed: 30 November 2026.
If you’ve ever nodded along while someone used AI, machine learning and deep learning as if they meant the same thing, this one’s for you.
Short answer: artificial intelligence (AI) is the broad goal of getting computers to do tasks that normally need human judgement. Machine learning (ML) is one way to build AI: instead of writing every rule by hand, you let the computer learn patterns from data. Deep learning (DL) is one family of machine learning that uses large neural networks with many layers. Every deep learning system is machine learning, and every machine learning system is AI, but not the other way round.
Picture three circles, one inside the other. AI is the outer circle, ML sits inside it, and DL sits inside ML. That one picture clears up most of the confusion.

I’m a mechanical engineer who moved into ML, and these three words got thrown around so loosely in meetings that I stopped trusting anyone who used them. So here’s the version I wish someone had given me.
What is artificial intelligence?
AI is any technique that lets a machine make a decision or produce an output that we’d normally call “intelligent”. That’s a fuzzy bar on purpose. The term was coined in a 1955 proposal for a summer 1956 workshop at Dartmouth College, and for decades most AI wasn’t learning anything at all.
Early AI was mostly rule-based. An engineer sat with an expert and wrote the rules down:
- IF coolant temperature > 105 °C AND oil pressure < 1.5 bar THEN raise an alarm.
That’s AI in the classic sense, an “expert system”. It works well when the rules are known, stable and few. It falls apart when there are thousands of interacting factors nobody can write down, like recognising a face or understanding a sentence.
What is machine learning?
Machine learning flips the approach. You give the computer examples (data) and the answers you want, and it works out the rules itself.
Take the alarm above. With ML you’d collect thousands of hours of engine sensor readings, label which periods ended in a fault, and train a model to spot the pattern. The model might find that a slow rise in exhaust temperature combined with a small pressure drop predicts trouble hours earlier than your hand-written rule. You never told it that. It found it in the data.

Most ML you’ll meet falls into three types:
| Type | What you give it | Typical use | Engineering example |
|---|---|---|---|
| Supervised learning | Inputs plus the correct answers | Prediction, classification | Predicting fuel consumption from load and speed |
| Unsupervised learning | Inputs only, no answers | Grouping, anomaly detection | Finding unusual vibration patterns in a pump |
| Reinforcement learning | An environment and a reward | Control, game playing | Tuning a controller by trial and error in simulation |
Common ML algorithms include linear regression, logistic regression, decision trees, random forests, gradient boosting (XGBoost, LightGBM) and support vector machines. None of these are “deep”. They’re often the right tool for tabular data, the rows-and-columns kind that lives in Excel and SAP.
I built a fuel-consumption predictor at work with gradient boosting, not a neural network. It trained in seconds, it was easy to explain to a sales team, and it was accurate enough. That’s typical of real ML work.
What is deep learning?
Deep learning is machine learning that uses artificial neural networks with many layers. “Deep” just means lots of layers stacked between the input and the output, each one passing its result through an activation function.
Each layer transforms the data a little. In an image model, early layers pick up edges, middle layers combine edges into shapes, and later layers recognise objects. Nobody hand-designs those features; the network learns them.
Deep learning took off around 2012, when a neural network called AlexNet won the ImageNet image-recognition competition by a wide margin. Three things came together: big labelled datasets, cheap GPU computing, and better training methods.
Today deep learning powers:
- Image recognition (quality inspection on a production line, medical scans)
- Speech recognition and voice assistants
- Machine translation
- Large language models like ChatGPT, Gemini and Claude, which use a deep learning architecture called the transformer
How do AI, ML and DL compare?
| AI | Machine learning | Deep learning | |
|---|---|---|---|
| Scope | Broadest: any “intelligent” behaviour | Subset of AI | Subset of ML |
| How it gets its logic | Rules, search, or learning | Learns patterns from data | Learns patterns through many-layered neural networks |
| Data needed | Can be none (rule-based) | Hundreds to millions of rows | Usually large datasets |
| Computing needed | Low to high | Low to moderate, often a laptop | High, usually GPUs |
| Explainability | High for rules | Moderate (trees are readable) | Low, often a “black box” |
| Best at | Well-defined logic | Tabular data, forecasting | Images, audio, text |
Which one should you use?
This is the part most explainers skip, and honestly it’s the part that matters on a real project.
- If you can write the rules down and they rarely change, use rules. A simple IF-THEN check is cheap, fast and auditable. Don’t train a model to do what three lines of code can do.
- If you have structured data (sensor logs, sales records, spreadsheets), start with classic ML. On medium-sized tables (thousands to tens of thousands of rows), gradient-boosted trees usually match or beat deep learning and need far less compute. Newer tabular foundation models such as TabPFN are closing that gap on small datasets, so they’re worth knowing about.
- If your data is images, audio or free text, deep learning is usually worth it. Here, hand-crafted features rarely compete with learned ones.
A useful habit: start with the simplest approach that could work, measure it, and only add complexity when the numbers say you need to.

Free download: AI vs ML vs DL: Which One Do I Need?, a one-page cheat sheet with this flowchart, a side-by-side comparison and a pre-build checklist. Enter your email on Gumroad and it’s yours free.
Where do generative AI and LLMs fit?
Generative AI is a use of deep learning, not a fourth circle. Models like ChatGPT are large language models (LLMs): deep neural networks, built on the transformer architecture, trained to predict the next token (a word or piece of a word) on huge amounts of text. Image generators like Midjourney or Stable Diffusion are also deep learning models, usually diffusion or the closely related flow-matching models; some, like ChatGPT’s image generator, are built into multimodal LLMs.
So when someone says “we’re using AI” in 2026, they usually mean generative AI, which is deep learning, which is machine learning, which is AI. All three words are technically correct. They’re just different levels of zoom.
Common mistakes I see
- Calling every spreadsheet formula “AI”. If nothing is learned from data and no decision is automated, it’s just software.
- Reaching for deep learning first. On small tabular datasets it often performs worse and is harder to maintain (pre-trained tabular models like TabPFN are the exception worth knowing).
- Assuming ML output is always right. A model is only as good as the data it learned from. Biased or outdated data gives biased or outdated predictions.
Frequently asked questions
Is machine learning the same as AI?
No. Machine learning is one way of building AI. AI also includes rule-based systems, search algorithms and planning methods that don’t learn from data.
Is ChatGPT machine learning or deep learning?
Both. ChatGPT is a large language model, which is a deep learning model, and all deep learning is machine learning.
Do I need to learn deep learning to work in ML?
Not at first. Most entry-level ML roles use classic algorithms on tabular data. Learn Python, statistics and scikit-learn first, then move to deep learning with PyTorch or TensorFlow.
Which needs more data, ML or deep learning?
Deep learning usually needs much more data and computing power. Classic ML can work well with a few thousand rows.
Can mechanical engineers use machine learning?
Yes, and it’s a strong combination. Predictive maintenance, fuel and energy prediction, quality inspection and design optimisation are all ML problems where domain knowledge matters as much as the algorithm. My machine learning roadmap for mechanical engineers shows where to start.
Sources and further reading
- IBM: AI vs. machine learning vs. deep learning vs. neural networks
- Krizhevsky, Sutskever and Hinton (2012), ImageNet classification with deep convolutional neural networks
- scikit-learn: choosing the right estimator
- Grinsztajn et al. (2022), Why do tree-based models still outperform deep learning on tabular data?
- Hollmann et al. (2025, Nature), TabPFN: accurate predictions on small data with a tabular foundation model
- McCarthy et al. (1955), the Dartmouth proposal
Next in this series: how transformers and large language models actually work.



