# Synthetic Minority Over-sampling Technique (SMOTE)

> Canonical: https://skillalmanac.com/glossary/smote | Verification status: pending | Index status: not offered to search engines

SMOTE is a method for imbalanced classification data. It adds new, synthetic examples of the rarer class, built by interpolating between existing examples, so a classifier sees a more balanced training set.

Also called: SMOTE, SMOTE oversampling, synthetic minority oversampling, SMOTE imbalanced data, SMOTE algorithm.

## In plain language

Suppose you build a model to spot fraud, and only a handful of your records are fraud. A model can look good by guessing 'not fraud' almost every time. SMOTE tries to help by making extra, invented fraud records that sit between real ones, so the model has more fraud-like cases to learn from. It is like asking a teacher to write more practice questions of the rare type, based on the few real ones. The limits: the new records are not real observations, they can blur the line between classes, and if you add them before splitting your data, test results can look better than they are.

## Technical definition

Chawla et al. present SMOTE as a way to build classifiers from imbalanced data, where one class is not approximately equally represented. It over-samples the minority class by creating synthetic examples rather than duplicating existing ones, the contrast the imbalanced-learn guide draws with random oversampling, and the paper combines this with under-sampling the majority class. The imbalanced-learn documentation says SMOTE and ADASYN generate new samples by interpolation, notes that SMOTE might connect inliers and outliers, and says standard SMOTE cannot handle categorical features; variants such as SMOTENC and SMOTEN address mixed and categorical data. Synthetic points are usually created from the training split only; this is practical advice, not from the sources cited.

## How it shows up when you use agents

SMOTE shows up when you ask Claude Code, Codex or Cursor to build a classifier on a table where one label is much rarer than the other, such as fraud, churn or a rare defect. A typical script imports the imbalanced-learn package, creates a SMOTE object and resamples the data before fitting a model. The package documentation lists SMOTE next to random over-sampling and other variants.

What breaks when it is misunderstood: the resampling is applied to all the data before it is split into training and test sets. The synthetic rows are interpolated from real ones, so near-copies can land on both sides of the split and the test score looks better than it should. The documentation also says standard SMOTE cannot handle categorical features, so a table with text-like columns needs a variant or a different approach.

A practical next step: ask the agent where in the pipeline it resamples, whether it touched the test set, and which metric it reports. A plain accuracy figure can hide poor results on the rare class. Resampling is related to [data augmentation](/glossary/data-augmentation) and [synthetic data](/glossary/synthetic-data), and it sits within [supervised learning](/glossary/supervised-learning). The catalogue has no skill that runs SMOTE, so the examples are contrast cases about leakage and imbalance.

## Common confusions

- **SMOTE versus random over-sampling.** The imbalanced-learn guide describes random over-sampling as sampling the existing minority rows with replacement, which repeats them. SMOTE creates new points by interpolation.
- **Synthetic rows versus real data.** SMOTE rows are generated, not observed. They should not appear in the test set, because the test set is meant to stand for real cases.
- **SMOTE versus SMOTENC and SMOTEN.** The standard method cannot handle categorical features. The documentation points to SMOTENC for mixed data and SMOTEN for purely categorical data.
- **Myth.** Balancing the classes does not make a model good. The imbalanced-learn page notes that SMOTE might connect inliers and outliers, which can lead to a sub-optimal decision function.

## Worked examples in this catalogue

### [split-leakage-check](https://skillalmanac.com/skills/skill-almanac/split-leakage-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill checks train, validation and test files for duplicates, shared groups, time and label leakage, and prints JSON.

Why it exercises the concept: Oversampling before a split can put near-copies of test rows into training. This skill checks files for leakage. The catalogue has no skill that runs SMOTE itself. Illustrative, not executed.

### [data-analysis-eda](https://skillalmanac.com/skills/skill-almanac/data-analysis-eda)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill is a fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.

Why it exercises the concept: Before any resampling, you need to know how imbalanced the labels are. A profile of the CSV is that first look. Illustrative, not executed.

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill builds and validates an eval dataset for an LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: It flags imbalance and leakage in an eval set, the same two concerns that surround oversampling. It is for LLM evals, not classical classifiers. Illustrative, not executed.

## Related terms

- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Supervised learning](https://skillalmanac.com/glossary/supervised-learning.md)
- [Classification](https://skillalmanac.com/glossary/classification.md)
- [Overfitting](https://skillalmanac.com/glossary/overfitting.md)
- [Data augmentation](https://skillalmanac.com/glossary/data-augmentation.md)
- [Synthetic data](https://skillalmanac.com/glossary/synthetic-data.md)
- [Training data](https://skillalmanac.com/glossary/training-data.md)

## Sources

- [SMOTE: Synthetic Minority Over-sampling Technique — Chawla, Bowyer, Hall, Kegelmeyer](https://arxiv.org/abs/1106.1813), arXiv (accessed 2026-11-24)
- [Over-sampling, imbalanced-learn user guide](https://imbalanced-learn.org/stable/over_sampling.html), imbalanced-learn (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above. Independent source and example-target verification is pending. [Glossary index](https://skillalmanac.com/glossary.md).
