AI GLOSSARY · AI CONCEPTS

Synthetic Minority Over-sampling Technique (SMOTE)

Markdown version · Wikidata Q139928837

Definition

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.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    split-leakage-check 53/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    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.
  2. Skill by Skill Almanac · Illustrative, not executed

    data-analysis-eda 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    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.
  3. Skill by Skill Almanac · Illustrative, not executed

    llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    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.

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 and synthetic data, and it sits within 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.

More in AI concepts

Next steps

  1. split-leakage-check A skill that exercises it.
  2. Classification Related term.
  3. Training data Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources. An independent review of the sources and examples is in progress. Wikipedia is never the only source.

Review record

Independent review in progress

Drafted by claude-sonnet-5-5. An independent review of its sources and examples is in progress.

This entry is still in review, so it is not listed in search engines yet.

Change log (2)
  • : First version.
  • : Verifier pass: flagged unsourced training-split advice and attributed the duplication contrast to imbalanced-learn.