# SMOTE

SMOTE（Synthetic Minority Over-sampling Technique，合成少数类过采样技术）是一种机器学习预处理方法，它通过在现有少数类样本之间插值来合成新的少数类特征向量，从而平衡不平衡的分类数据集。它针对的是这样一种情形：将异常（有趣）样本错误分类为正常样本，往往比反向错误代价高得多。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 它产生的是带有少数类标签的新特征向量；这些向量是生成出来的，而非复制得到的，并且是在特征空间而非数据空间中操作。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 该方法被称为从不平衡数据中学习的事实标准，并出现在开源和商业软件包中。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup>

| 关键事实 | 详情 |
|---|---|
| 产生什么 | 通过插值生成的新合成少数类特征向量，而非现有样本的副本<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> |
| 核心公式 | \( x_{\mathrm{new}} = x_{i} + \lambda \cdot (x_{zi} - x_{i}) \)，其中 \( \lambda \) 从0到1均匀抽取<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup> |
| 参数 | \( k \) 个最近邻（默认5）和 \( N \)，即过采样量，以100的整数倍表示<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> |
| 输出规模 | 对于 \( T \) 个少数类样本，输出 \( (N/100) \cdot T \) 个合成样本<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> |
| 提出者 | N. V. 乔拉（N. V. Chawla）及其同事，《人工智能研究杂志》，2002年<sup>[4](https://doi.org/10.1613/jair.953)</sup> |
| 典型 \( N \) | 设定为使类别分布近似1:1，或通过包装式流程确定<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> |
| 已知失效模式 | 类重叠、噪声放大和类内不平衡<sup>[5](https://link.springer.com/article/10.1186/s40537-025-01119-4)</sup>；在高维数据中效果微弱<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup> |

## 工作原理

SMOTE的关键思想是，在给定邻域内，通过在若干少数类实例之间插值来创建合成样本。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> 对于少数类样本 \( x_{i} \)，选取其 \( k \) 个最近少数类邻居之一 \( x_{zi} \)，新样本为

\[ x_{\mathrm{new}} = x_{i} + \lambda \cdot (x_{zi} - x_{i}) \]

其中 \( \lambda \) 是0到1之间的随机数。<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup> 等价地说，取所考虑的特征向量与其最近邻之间的差，将这个差乘以0到1之间的随机数，再加到该特征向量上；这会在两个样本之间的线段上选取一个随机点。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup>

插值而非重采样之所以重要，是因为所得样本是两个相似少数类样本的线性组合，\( s = x + u \cdot (x_{R} - x) \)，其中 \( 0 \le u \le 1 \)，而 \( x_{R} \) 从 \( x \) 的5个少数类最近邻中随机选取。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup> 经SMOTE扩充后的少数类总体期望值等于原始少数类的期望值，而其方差更小；SMOTE不改变各类别的均值，降低数据变异性，并在样本之间引入相关性。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup> 在SMOTE-NC中，新样本的类别值被设为生成过程中所用最近邻中最频繁的类别；只有在出现并列时，才随机选择。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup>

## 实施步骤

该算法接收三个输入：\( T \)，即少数类样本；\( N \)，即过采样量，假定为100的整数倍；以及 \( k \)，即最近邻数量，默认5。它输出 \( (N/100) \cdot T \) 个合成少数类样本。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> 步骤如下：

1. 设置 \( N \)，以获得近似1:1的类别分布，或通过包装式流程确定；并设置 \( k \)（默认5）。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup>
2. 计算 \( \lfloor N/100 \rfloor \)；对每个少数类样本，获取其 \( k \) 个最近邻。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup>
3. 对于每个待生成的合成样本，随机选择一个邻居，计算差值，乘以0到1之间的随机数，并将结果加到该样本上。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 在原始实现中，如果所需过采样量为200%，则从五个最近邻中只选择两个邻居，并沿每个邻居的方向各生成一个样本。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup>
4. 将合成样本与原始训练数据合并。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup>

## 起源

SMOTE由N. V. 乔拉及其同事在《SMOTE：合成少数类过采样技术》一文中提出，发表于《人工智能研究杂志》，2002年。<sup>[4](https://doi.org/10.1613/jair.953)</sup> 该论文发表于《人工智能研究杂志》第16卷，第321–357页。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 其方法将多数类欠采样与一种特殊形式的过采样相结合，从而与先前那些对少数类过采样和/或对多数类欠采样的重采样策略形成对照。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 该方法受到一项在手写字符识别中取得成功的技术启发（哈与邦克（Ha & Bunke），1997），该技术通过旋转和倾斜等操作扰动真实数据来创建额外训练数据；SMOTE则以更少依赖具体应用的方式，在特征空间而非数据空间中生成合成样本。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup>

## 变体

许多有名称的变体改变了插值发生的位置或方式。

- 面向边界的生成：ADASYN通过线性插值产生更多合成样本，重点关注那些被k-NN分类器错误分类的少数类样本附近的样本，而基本SMOTE不区分容易样本和困难样本。<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup>
- 混合特征与类别特征：SMOTE-NC处理类别特征时，将新生成样本的类别确定为生成过程中所用最近邻中最频繁的类别。<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup>
- 混合清洗：SMOTE+TomekLinks和SMOTE+ENN将SMOTE与数据清洗步骤结合。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup>
- 提升与聚类：SMOTEBoost在提升过程中拟合新的弱分类器之前应用SMOTE；它由N. 乔拉及其同事于2003年在《计算机科学讲义》中报告。<sup>[7](https://www.semanticscholar.org/reader/8cb44f06586f609a29d9b496cc752ec01475dffe)</sup> DBSMOTE基于初步的DBSCAN过程生成样本；它由春蓬·邦坤蓬帕（Chumphol Bunkhumpornpat）、格龙·西纳皮罗姆萨兰（Krung Sinapiromsaran）和奇差诺·勒辛萨普（Chidchanok Lursinsap）于2011年在《应用智能》中报告。<sup>[8](https://doi.org/10.1007/s10489-011-0287-y)</sup>
- 后续扩展：LoRAS（Localized Random Affine Shadowsampling，局部随机仿射影子采样）由萨普塔尔希·贝杰（Saptarshi Bej）及其同事于2020年在《机器学习》中报告。<sup>[9](https://doi.org/10.1007/s10994-020-05913-4)</sup> CDSMOTE将类别分解与合成少数类过采样结合；它由埃亚德·埃利安（Eyad Elyan）、卡洛斯·弗朗西斯科·莫雷诺-加西亚（Carlos Francisco Moreno-Garcia）和克里斯娜·杰恩（Chrisina Jayne）于2020年在《神经计算与应用》中报告。<sup>[10](https://doi.org/10.1007/s00521-020-05130-z)</sup>

## 应用

原始论文使用C4.5、Ripper和[朴素贝叶斯分类器](https://www.edgepedia.org/zh/naive-bayes-classifier)评估SMOTE，以受试者工作特征曲线下面积（AUC）作为性能度量，在包括皮马印第安人糖尿病数据集在内的九个数据集上进行评估。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 后来的实证研究给出了更为谨慎的图景：一项在31个数据集上考察七种采样方法和八种分类器的研究发现，采样仅在12.2%的AUPRC情形和10.0%的AUROC情形中显著改变分类器性能，而且采样更可能降低而非提升分类性能。<sup>[11](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0271260)</sup> 在低维设置中，SMOTE降低了k-NN、SVM、PAM、PLR-L1、PLR-L2、CART以及在一定程度上随机森林的多数类偏置。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup>

已报告的应用领域包括网络入侵检测、语音句子边界检测、物种分布预测、乳腺癌检测、miRNA基因预测和组织病理学标注；所引用的首批成功实际应用出现在生物信息学中。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup><sup> • </sup><sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> 一项2025年的研究横跨16个数据集、15种分类器和四种过采样技术，发现传统SMOTE在不同分类器和数据集上优于基于生成对抗网络的方法，其中随机森林是最稳健的分类器。<sup>[12](https://www.tandfonline.com/doi/full/10.1080/01605682.2025.2450060)</sup>

## 局限与替代方法

SMOTE的样本选择使用均匀概率，因此少数类样本密度较高的区域更可能被进一步膨胀，这使得它难以处理类内不平衡以及小析取项（覆盖少量训练样本的稀有少数类子群）的存在。<sup>[5](https://link.springer.com/article/10.1186/s40537-025-01119-4)</sup> 生成过程中未考虑多数类的结构特征，这可能导致类重叠；SMOTE还可能通过对噪声样本进行过采样而放大噪声的影响，最终导致性能下降或过拟合。<sup>[5](https://link.springer.com/article/10.1186/s40537-025-01119-4)</sup> 它可能在多数类区域错误地生成合成样本，从而误导分类器，并且忽略由小析取项或子概念构成的少数类。<sup>[13](https://link.springer.com/article/10.1007/s10994-022-06296-4)</sup> SMOTE将新样本限制在线性路径上，因此它们可能偏离实际数据分布。<sup>[14](https://www.nature.com/articles/s41598-025-09506-w)</sup>

在高维数据中，SMOTE对大多数分类器几乎没有影响，也不能减弱对多数类的偏置；它不如随机欠采样有效，并且只有k-NN分类器能受益，而且还需要事先进行变量选择。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup><sup> • </sup><sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup> 在高维设置中，对于随机森林、SVM、PLR、CART和DQDA，简单欠采样比SMOTE更有用。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup>

最接近的替代方法是随机过采样和随机欠采样：前者复制原始少数类样本而非插值，后者丢弃多数类样本；在imbalanced-learn中，SMOTE和ADASYN通过插值生成新样本，而RandomOverSampler复制原始样本。<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup>

## References

1. [SMOTE: Synthetic Minority Over-sampling Technique (JAIR full text, CMU mirror of JAIR volume 16)](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)
2. [SMOTE for Learning from Imbalanced Data: Progress and Challenges, Marking the 15-year Anniversary (JAIR)](https://jair.org/index.php/jair/article/download/11192/26406/20731)
3. [imbalanced-learn documentation: Over-sampling](https://imbalanced-learn.org/stable/over_sampling.html)
4. [N. V. Chawla and colleagues (2002). SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research.](https://doi.org/10.1613/jair.953)
5. [Resampling approaches to handle class imbalance: a review from a data perspective (Journal of Big Data, 2025)](https://link.springer.com/article/10.1186/s40537-025-01119-4)
6. [SMOTE for high-dimensional class-imbalanced data (BMC Bioinformatics, 2013, Blagus & Lusa)](https://link.springer.com/article/10.1186/1471-2105-14-106)
7. [[PDF] SMOTE: Synthetic Minority Over-sampling Technique | Semantic Scholar](https://www.semanticscholar.org/reader/8cb44f06586f609a29d9b496cc752ec01475dffe)
8. [Chumphol Bunkhumpornpat, Krung Sinapiromsaran, Chidchanok Lursinsap (2011). DBSMOTE: Density-Based Synthetic Minority Over-sampling TEchnique. Applied Intelligence.](https://doi.org/10.1007/s10489-011-0287-y)
9. [Saptarshi Bej and colleagues (2020). LoRAS: an oversampling approach for imbalanced datasets. Machine Learning.](https://doi.org/10.1007/s10994-020-05913-4)
10. [Eyad Elyan, Carlos Francisco Moreno-Garcia, Chrisina Jayne (2020). CDSMOTE: class decomposition and synthetic minority class oversampling technique for imbalanced-data classification. Neural Computing and Applications.](https://doi.org/10.1007/s00521-020-05130-z)
11. [An empirical evaluation of sampling methods for the classification of imbalanced data (PLOS One, 2022)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0271260)
12. [A comprehensive study on the interplay between dataset characteristics and oversampling methods (Journal of the Operational Research Society, 2025)](https://www.tandfonline.com/doi/full/10.1080/01605682.2025.2450060)
13. [A theoretical distribution analysis of synthetic minority oversampling technique (SMOTE) for imbalanced learning (Machine Learning, Springer)](https://link.springer.com/article/10.1007/s10994-022-06296-4)
14. [An improved SMOTE algorithm for enhanced imbalanced data classification by expanding sample generation space (Scientific Reports, 2025)](https://www.nature.com/articles/s41598-025-09506-w)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Supervised, unsupervised, and semi-supervised learning › Supervised learning concepts

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/smote

English original: https://www.edgepedia.org/smote
