# Feature Engineering

> You make new, better inputs from raw data. Then the model learns with ease.

**Field:** Artificial Intelligence  
**Category:** Machine Learning  
**Also known as:** Feature Creation, Feature Extraction (Manual)

## Think of it like

It is like cutting fruit before you give it to a baby. The same food, made easy to take in.

## Definition

Feature engineering is making new inputs from raw data, so a model can learn more easily. You mix, split or count the columns you already have. A date can become "day of the week". Price and size can become "price per square metre". Good features put the clue the model needs in one place. Deep learning finds many features on its own, so classic models gain the most.

## Example

A shop's data holds the time of each order. Lucy adds a column for "weekend or not". Her sales model gets far better at guessing busy days.

## Why it matters

Better inputs often help more than a fancier model. A clear clue is easy to learn from.

## Common mistake

Building a feature from facts you will not have when the model is used. That leaks the answer into training.

## Three principles

- **From raw columns.** Mix, split or count what you have.
- **Carry the clue.** Put the useful signal in one place.
- **Only real inputs.** Use facts known at prediction time.

## Related terms

- [Feature (Machine Learning)](https://learn.benibix.com/term/ai/feature)
- [Feature Scaling](https://learn.benibix.com/term/ai/feature-scaling)
- [One-Hot Encoding](https://learn.benibix.com/term/ai/one-hot-encoding)
- [Data Leakage](https://learn.benibix.com/term/ai/data-leakage)
- [Deep Learning](https://learn.benibix.com/term/ai/deep-learning)

## Taught in

- [Feature Engineering](https://learn.benibix.com/learn/ai-machine-learning/feature-engineering): Machine Learning, 4/18

![A raw row with city Paris, size 50 square metres and price 600 becomes a ready row. City turns into three columns, London 0, Paris 1, Tokyo 0, marked one-hot. A new column, price per square metre, reads 12. Price is scaled to 0.67. A label column reading sold fast is added by a person.](https://learn.benibix.com/diagrams/ai3-data-prep.svg)

---

Source: https://learn.benibix.com/term/ai/feature-engineering
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
