# What Is Machine Learning vs Deep Learning? The Difference Is Who Chooses the Features

Hand-picked features versus features a network learns for itself — and why that single choice explains the data, compute and explainability gap between machine learning and deep learning.

> machine learning basics · deep learning basics · feature engineering · About 7 min · Nov 16

## Key points

1. Machine learning learns a mapping from features to answers; deep learning learns the features too, and that is the actual dividing line between them.
2. A feature is a number computed from the raw input, and a classical model can use only the features someone thought to compute, so its accuracy is capped by that design work.
3. Deep networks stack layers that act as learned feature detectors — edges, then textures and shapes, then parts and objects — all adjusted together by one error signal, which is what end-to-end learning means.
4. Learning your own features costs data, compute and explainability, and all three costs follow from the single decision about who chooses the measurements.
5. Deep learning does not automatically win: tree-based models still lead on many medium-sized tabular datasets, and pretrained models let you reuse learned features without paying the full training cost yourself.
6. "Deep" means several stacked transforming layers, so a one-hidden-layer network is classical machine learning, and every deep-learning system is still a machine-learning system.

---

In the [four-stage pipeline](https://eulore.ai/articles/how-does-ai-work-a70b309a) from the previous article, training was one box: show the model examples, nudge its numbers until its guesses improve. That is accurate, but it hides the fork in the road. Set two systems the same task — decide whether a photo contains a dog — and they will train on the same photos, be scored the same way, and still learn different things.

The reason is a choice made before training starts: **who decides what the model is allowed to look at.** In classical machine learning, a person decides. In deep learning, the network decides for itself. Nearly everything people list as a difference — data volume, compute cost, explainability — follows from that one decision.

## Machine learning vs deep learning: the one-sentence version

Machine learning learns a mapping from inputs to answers. Deep learning learns that mapping *and* the inputs — the measurements themselves.

In classical machine learning, someone hands the model a fixed list of measurements, and the model learns only how much each one counts. In deep learning, the measurements come from adjustable layers inside the network, and training adjusts them along with everything else. Both are machine learning; deep learning is the subset defined by that extra freedom.

| | Classical machine learning | Deep learning |
|---|---|---|
| Who decides what to measure | A person, using domain knowledge | The network, during training |
| What training adjusts | Weights on the given measurements | Those weights plus the measurements themselves |
| Typical input | Tables, or numbers computed by hand | Raw pixels, waveforms, text |
| Labelled data needed | Hundreds to thousands of examples | Often tens of thousands to millions |
| Explaining one decision | Readable: this weight on this measurement | Spread across millions of weights |

## What a feature is, using a spam filter

A *feature* is a number you compute from the raw thing and hand to the model. Take the email spam filters built long before anyone called this AI.

An email is messy: paragraphs of text, links, headers, an attachment. To make it computable, you hand-build a few numbers per email — how many links it contains, whether the subject line is all capitals, how often the word "free" appears, whether the sender is in your contacts.

Each email becomes a row of numbers with a label attached: spam or not spam. That is supervised machine learning — examples with known answers, and a model that learns to reproduce those answers on new examples. A logistic regression learns one weight per feature, so a large positive weight on link count means more links push toward spam; a decision tree learns threshold rules instead.

The important part is what the model cannot do. If nobody computes a measurement, the model never sees it. Spam behavior living in some unbuilt feature stays invisible no matter how much data you feed in. That is why practitioners say a model is only as good as its features: the learning step is cheap and well understood, while deciding what to measure is slow, expert, domain-specific work [1].

## Why hand-picked features hit a ceiling

For email, a person can name the features. For a photograph, that stops working.

Suppose the task is telling dogs from cats. What would "amount of fur" even be, numerically, in a grid of pixels? Before deep learning, computer-vision researchers spent years hand-building descriptors — statistics of edge directions, gradient patterns, colour histograms — and fed those vectors to a classifier. It worked, but each descriptor was tuned to a narrow kind of image.

The ceiling showed up in public in 2012. A deep network entered the ImageNet image-recognition contest with a 15.3% top-5 error rate — its five best guesses omitted the correct label 15.3% of the time — against 26.2% for the best entry built the classical way. That runner-up used engineered image features plus a classifier; the winner used raw pixels. It compares whole systems rather than one network against one classical model, but the ten-point gap pointed one way: the hand-built approach had run out of room [3].

AlexNet, as the winning network is now called, had about 60 million adjustable numbers and took five to six days on two consumer graphics cards [3]. That is the trade. Give up hand-built features and you must learn them, which costs data and compute.

## What the layers in a neural network actually do

A neural network is a stack of layers, each transforming the numbers that come out of the previous one. The key point for this comparison: **the early layers are feature detectors, and nobody wrote them.**

In an image network, the first layer ends up responding to short edges and colour boundaries. The next combines those into textures and small shapes. Later layers combine shapes into parts — an ear, a wheel, an eye — and the last layers combine parts into whole objects [2]. Nobody specifies "detect ears"; training discovers it, because those intermediate measurements turn out to reduce error on the final answer.

![A neural network drawn as layers of weighted connections between input and output](https://sebastianraschka.com/images/faq/difference-deep-and-normal-learning/mlp.png)

The training signal is unchanged: compare the output with the correct answer, then adjust every weight slightly in the direction that would have made it less wrong. What changed is that the adjustment now reaches back into the feature detectors, so features and judgment improve together. That is end-to-end learning — one error signal, tuned across the whole stack instead of only the last step.

"Deep" means several of these transforming stages are stacked. A network with a single hidden layer builds no feature hierarchy, so calling it deep buys nothing.

## The bill for learning your own features

Three costs follow from letting the network choose its measurements.

**Data.** If a person supplies the features, a few hundred labelled rows can be enough, because each row already carries the information that matters. If the network must discover what to measure, it has millions of numbers to pin down, each needing evidence. That is why deep learning is data-hungry — and why it shines on pixels, audio and text, where no human can name the right measurements but examples are endless.

**Compute.** Training now includes learning the features, so runs are long: days on specialised hardware in 2012, months at large scale today. Classical models often train in seconds.

**Explainability.** A logistic regression can say "each extra link raises the spam score by this much." A deep network's reason for one decision is spread across millions of weights, with no single number to point at. Tools that highlight which input regions mattered approximate the model's behavior rather than lay out its reasoning. When a decision must be justified to a customer or an auditor, that gap is a real cost — part of why simpler models survive in credit scoring.

## Cases where the obvious answer is wrong

**"Deep learning is always better."** Not on tables. A 2022 benchmark across 45 tabular datasets found tree-based models — random forests, gradient boosting — still ahead of neural networks on medium-sized data, and cheaper to train [4]. Spreadsheet data already arrives as named, meaningful columns, so the step deep learning removes has largely been done for you by whoever recorded the data.

**"You need huge data to use deep learning."** Only to train one from scratch. In practice you start from a model someone already trained and reuse the measurements it discovered. Those reusable learned features — embeddings — let you adapt a system to a new task with a few hundred examples. The expensive part was paid once, elsewhere.

And one correction to the framing: every deep-learning system is a machine-learning system. The question is never "which field," it is "should the measurements be specified by hand or learned?"

## How to tell which one a problem needs

1. **Can you name the measurements that matter?** If yes — prices, counts, dates, ratios, user attributes — start with classical machine learning on those columns. If the input is pixels, audio or free text and you cannot write down what to measure, you need learned features.
2. **How many labelled examples do you have?** A few hundred points toward classical models or a pretrained network you adapt. Millions point toward training deep from scratch, which is rarely what an individual or a small team does.
3. **Must each decision be explained?** The stronger that requirement, the more weight the simpler, readable model deserves.

Everything else in this series lives on the deep-learning side of that fork. The next piece takes up tokens: how text gets chopped into pieces a network can be trained on.

## Mind map

```mermaid
flowchart LR
  A["Machine learning vs deep learning"] --> B["Core difference: who chooses the features"]
  B --> C["Classical ML: a person specifies features"]
  B --> D["Deep learning: the network learns them"]
  C --> E["Spam filter: links, capitals, sender"]
  E --> F["Ceiling: unmeasured information is invisible"]
  D --> G["Layers as learned detectors: edges, shapes, parts"]
  G --> H["End-to-end: one error signal tunes everything"]
  D --> I["Costs: data, compute, explainability"]
  F --> J["2012 ImageNet: 15.3% vs 26.2% with hand-built features"]
  I --> K["Not always better: trees still win on tables"]
  I --> L["Pretrained models: reuse features, skip the cost"]
  B --> M["Decide by: can you name the measurements, how much labelled data, must you explain decisions"]
  M --> N["Next: tokens and transformers"]
```

## Glossary

- Feature：a number computed from the raw input, such as a link count in an email; the model sees only these numbers, never the original material.
- Feature engineering：deciding, from domain knowledge, which measurements to compute and how to turn them into numbers a model can use.
- Learned features：intermediate measurements a network discovers during training, from edges in early layers to whole objects in later ones.
- Hidden layer：an adjustable processing layer between input and output; stacking several of them is what makes a network "deep."
- End-to-end learning：one error signal flows back through the entire network, so features and final judgment improve together.
- Embedding：a reusable set of learned features produced by someone else's training run and applied to a new task.

## Sources

1. [Sebastian Raschka: What is the relationship between deep learning and regular machine learning? — feature engineering as the bottleneck deep learning removes](https://sebastianraschka.com/faq/docs/difference-deep-and-normal-learning.html)
2. [NVIDIA: Deep Learning in a Nutshell — Core Concepts — feature engineering versus feature learning, and the edge-to-face feature hierarchy](https://developer.nvidia.com/blog/deep-learning-nutshell-core-concepts/)
3. [Wikipedia: AlexNet — 60 million parameters, the 2012 ImageNet entry, and the 15.3% versus 26.2% top-5 error rates](https://en.wikipedia.org/wiki/AlexNet)
4. [Grinsztajn, Oyallon, Varoquaux: Why do tree-based models still outperform deep learning on typical tabular data? — benchmark showing tree models still best on medium-sized tabular data](https://arxiv.org/abs/2207.08815)

---

Original article: https://eulore.ai/articles/what-is-machine-learning-vs-deep-learning-76ef0112

> **Eulore** · Start small. Go deep.
>
> Eulore is an AI learning tool built around connected articles, each a 5–10 minute read. Ask questions as you go and help shape what comes next. That’s how this article was created.
>
> Start your own series → https://eulore.ai
