# 合成少数类过采样技术

合成少数类过采样技术（SMOTE）是一种面向不平衡分类的数据层面方法。它通过在现有少数类样本与其最近邻之间插值来生成合成少数类特征向量，而不是复制记录。它解决了某些领域中少数类数据不足的问题：在这些领域中，将罕见的、值得关注的案例误判为正常，代价远高于相反的错误。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 自 2002 年发表以来，它一直被视为从不平衡数据中学习的事实标准基线，并被内置在从开源库到商业工具的各类软件包中。<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 \sim U(0,1) \)<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup> |
| 输出规模 | 对于 \( T \) 个少数类样本和过采样量 \( N \)，输出 \( (N/100) \cdot T \) 个合成样本<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> |
| 主要超参数 | \( K \)，用于插值的最近邻数量，默认 5<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup><sup> • </sup><sup>[4](https://github.com/scikit-learn-contrib/imbalanced-learn/blob/6176807/imblearn/over_sampling/_smote/base.py)</sup> |
| 起源 | 乔拉（Chawla）等人，《人工智能研究杂志》，第 16 卷，第 321–357 页，2002 年<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> |
| 后续研究规模 | 过去十年间，Google Scholar 中标题含“SMOTE”的论文超过 25,000 篇<sup>[5](https://proceedings.mlr.press/v300/sakho26a.html)</sup> |
| 主要警示 | 在高维数据上往往无益，甚至可能比随机欠采样更差<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup> |

## 工作原理

[SMOTE](https://www.edgepedia.org/zh/smote) 在特征空间中运作。对少数类样本 \( 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> 对于名义属性，从两个观测到的类别值中随机选择一个。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup> 由于新点位于真实少数类样本之间，而不是复制它们，该方法降低了复制所带来的过拟合风险。<sup>[7](https://arxiv.org/html/2505.13518v2)</sup>

## 实施方式

实践者需要确定三项选择。第一是邻域大小 \( K \)，在原始实现和 imbalanced-learn 的 `k_neighbors` 参数中均默认为 5。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup><sup> • </sup><sup>[4](https://github.com/scikit-learn-contrib/imbalanced-learn/blob/6176807/imblearn/over_sampling/_smote/base.py)</sup> 第二是过采样量 \( N \)，可以预先设定以达到近似 1:1 的类别分布，也可通过包装式流程调优；在 imbalanced-learn 中，它表示为比率 \( \alpha_{\mathrm{os}} = N_{\mathrm{rm}} / N_{M} \)，即重采样后的少数类规模除以多数类规模。<sup>[2](https://jair.org/index.php/jair/article/download/11192/26406/20731)</sup><sup> • </sup><sup>[8](https://imbalanced-learn.org/stable/references/generated/imblearn.over_sampling.SMOTE.html)</sup> 原始规则将二者联系起来：对于 200% 过采样，从五个邻居中选择两个，并朝每个邻居的方向各生成一个样本。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 第三是距离度量；对于混合数据，需要采用下文所述的 SMOTE-NC 处理。

仅在训练数据上应用 SMOTE。在 \( k \) 折交叉验证中，正确做法是只在训练折上拟合重采样器，并在未触碰的测试折上评估；例如将 SMOTE 放入流水线，在模型拟合前转换训练数据。<sup>[9](https://machinelearningmastery.com/smote-oversampling-for-imbalanced-classification/)</sup> 实证研究遵循同样的规范，仅对分层 60/20/20 划分中的训练折进行过采样。<sup>[10](https://arxiv.org/pdf/2201.08528v3.pdf)</sup>

## 起源

作者将其与有放回过采样相对照：后者反复复制少数类点，只是增加权重而不增加新的几何结构；他们还将 SMOTE 与对多数类进行欠采样结合。<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>

## 变体

大多数变体改变的是选择哪些种子样本进行插值；插值本身是共通的。ADASYN 在周围多为多数类样本的少数类样本之间生成更多合成样本；Borderline SMOTE 在类别之间的边界上生成新样本；SVM-SMOTE 拟合支持向量机，并在少数类支持向量上插值。<sup>[5](https://proceedings.mlr.press/v300/sakho26a.html)</sup> Borderline 系列根据邻居标签将每个少数类样本分为噪声、危险或安全；Borderline-1 朝同类邻居插值，而 Borderline-2 也使用多数类邻居。<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup> SMOTE-NC 处理连续与名义特征混合的情形：当类别标签不同时，将连续特征标准差的中位数加到距离中；它无法在全为名义特征的数据集上运行。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup><sup> • </sup><sup>[11](https://www.mdpi.com/2571-5577/4/1/18)</sup> CDSMOTE 在过采样前分解类别<sup>[12](https://doi.org/10.1007/s00521-020-05130-z)</sup>；LoRAS 通过局部随机仿射阴影采样构建样本<sup>[13](https://doi.org/10.1007/s10994-020-05913-4)</sup>。2004 年，古斯塔沃·E. A. P. A. 巴蒂斯塔（Gustavo E. A. P. A. Batista）、罗纳尔多·C. 普拉蒂（Ronaldo C. Prati）和玛丽亚·卡罗琳娜·莫纳德（Maria Carolina Monard）的研究加入了清洗型混合方法 SMOTE+Tomek links 与 SMOTE+ENN，它们在重采样后移除模糊点。<sup>[14](https://doi.org/10.1145/1007730.1007735)</sup> 理论工作也已成熟：萨科（Sakho）、斯科尔内（Scornet）和马尔赫布（Malherbe）证明，在不调校 \( K \) 的情况下，SMOTE 会渐近地复制原始少数类样本，缺乏生成过程所需的内在变异性；他们提出了 CV SMOTE（通过网格上的 5 折交叉验证选择 \( K \)）和多变量高斯 SMOTE，并发现对大多数数据集而言，不采用任何策略也具有竞争力，而当不平衡比大幅提高时，MGS 位列最佳方法之一。<sup>[5](https://proceedings.mlr.press/v300/sakho26a.html)</sup> 新变体不断出现：ISMOTE 将可行生成空间扩展到两个少数类样本之间的线段之外，以应对密集区域中的过拟合以及插值点的分布偏移<sup>[15](https://www.nature.com/articles/s41598-025-09506-w)</sup>；混合方法将 SMOTE 与条件变分自编码器融合，以实现数据自适应噪声过滤。<sup>[16](https://doi.org/10.1007/s10489-025-06692-y)</sup>

## 应用

已记录的应用领域包括生物信息学，其中 SMOTE 被用于 miRNA 基因预测、调控蛋白结合特异性识别、基于表达数据的光感受器富集基因识别和组织病理学标注，以及网络入侵检测和乳腺癌检测。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup> 开源 Python 包 imbalanced-learn 提供 SMOTE、ADASYN、Borderline SMOTE 和 SVM-SMOTE<sup>[5](https://proceedings.mlr.press/v300/sakho26a.html)</sup>，还提供 BorderlineSMOTE、SVMSMOTE、KMeansSMOTE 和 SMOTENC 类，它们的区别在于生成前如何选择种子样本 \( x_i \)。<sup>[3](https://imbalanced-learn.org/stable/over_sampling.html)</sup> 报告的性能提升取决于分类器和维度：对于低维数据，SMOTE 降低了 k-NN、SVM、PAM、L1 和 L2 惩罚逻辑回归以及 CART 的多数类偏置，但几乎不影响 DLDA 和 DQDA 等判别分析分类器。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup>

## 局限与替代方法

SMOTE 会对噪声样本过采样，可能放大噪声，并可能将合成样本置于多数类区域，从而误导分类器；它还忽略了由若干小析取项或子概念构成的少数类。<sup>[17](https://link.springer.com/article/10.1007/s10994-022-06296-4)</sup> 较高程度的过采样会增加与多数类决策空间的重叠；在 Adult 数据集上，按 AUC 衡量，SMOTE-NC 的表现不如普通欠采样。<sup>[1](https://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node1.html)</sup> 在高维情形下，该方法对各类别均值的改变很小，降低变异性，并诱导样本之间产生相关性；当变量数 \( p = 300 \) 时，任何测试样本的最近邻都可能是 SMOTE 样本，对大多数分类器而言，该方法不如阈值调整或简单欠采样。<sup>[6](https://link.springer.com/article/10.1186/1471-2105-14-106)</sup> 在类别不平衡设置下，使用 C4.5 时，欠采样已被证明优于过采样。<sup>[18](https://www.site.uottawa.ca/~cdrummon/pubs/ICML03.pdf)</sup> 在 Pima 数据集上使用 C4.5 时，巴蒂斯塔等人报告的平均 AUC 为：原始数据 81.53，随机过采样 85.32，SMOTE 85.49，SMOTE+Tomek 84.46，SMOTE+ENN 83.66（启用剪枝）。<sup>[14](https://doi.org/10.1145/1007730.1007735)</sup> 超参数选择缺乏标准化指南，各变体之间参数激增，阻碍实际部署。<sup>[7](https://arxiv.org/html/2505.13518v2)</sup> 一篇 NeurIPS 2025 论文推导出阶为 \( n_1^{-1/2} + (k/n_1)^{1/d} \) 的非渐近超额风险界，其中 \( n_1 \) 是少数类样本数，\( k \) 是邻居数。<sup>[19](https://proceedings.neurips.cc/paper_files/paper/2025/file/e715ad3d527e246af3ab286c3f3d367c-Paper-Conference.pdf)</sup> 已有人提出基于大语言模型<sup>[20](https://doi.org/10.48550/arxiv.2406.03628)</sup>和扩散模型的生成式替代方法，但已发表的比较发现，即使面对近期扩散模型，SMOTE 仍具有竞争力。<sup>[5](https://proceedings.mlr.press/v300/sakho26a.html)</sup>

## References

1. [SMOTE: Synthetic Minority Over-sampling Technique (JAIR full text, Chawla et al. 2002)](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 (Fernández et al., JAIR 2018)](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. [imbalanced-learn source: _smote/base.py](https://github.com/scikit-learn-contrib/imbalanced-learn/blob/6176807/imblearn/over_sampling/_smote/base.py)
5. [Do We Need Rebalancing Strategies? A Theoretical and Empirical Study Around SMOTE and Its Variants (Sakho et al., PMLR v300; arXiv 2402.03819)](https://proceedings.mlr.press/v300/sakho26a.html)
6. [SMOTE for high-dimensional class-imbalanced data (Blagus & Lusa, BMC Bioinformatics, 2013)](https://link.springer.com/article/10.1186/1471-2105-14-106)
7. [Data Balancing Strategies: A Systematic Survey of Resampling and Augmentation Methods (arXiv, 2025)](https://arxiv.org/html/2505.13518v2)
8. [imbalanced-learn SMOTE API reference](https://imbalanced-learn.org/stable/references/generated/imblearn.over_sampling.SMOTE.html)
9. [SMOTE for Imbalanced Classification with Python (MachineLearningMastery)](https://machinelearningmastery.com/smote-oversampling-for-imbalanced-classification/)
10. [To SMOTE, or not to SMOTE? (arXiv preprint, empirical study)](https://arxiv.org/pdf/2201.08528v3.pdf)
11. [SMOTE-ENC: A Novel SMOTE-Based Method to Generate Synthetic Data for Nominal and Continuous Features](https://www.mdpi.com/2571-5577/4/1/18)
12. [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)
13. [Saptarshi Bej and colleagues (2020). LoRAS: an oversampling approach for imbalanced datasets. Machine Learning.](https://doi.org/10.1007/s10994-020-05913-4)
14. [Gustavo E. A. P. A. Batista, Ronaldo C. Prati, Maria Carolina Monard (2004). A study of the behavior of several methods for balancing machine learning training data. ACM SIGKDD Explorations Newsletter.](https://doi.org/10.1145/1007730.1007735)
15. [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)
16. [Sungchul Hong, Seunghwan An, Jong-June Jeon (2025). Improving SMOTE via fusing conditional VAE for data-adaptive noise filtering. Applied Intelligence.](https://doi.org/10.1007/s10489-025-06692-y)
17. [A theoretical distribution analysis of SMOTE for imbalanced learning (Machine Learning, 2022)](https://link.springer.com/article/10.1007/s10994-022-06296-4)
18. [C4.5, Class Imbalance, and Cost Sensitivity: Why Under-Sampling beats Over-Sampling (Drummond & Holte, ICML 2003)](https://www.site.uottawa.ca/~cdrummon/pubs/ICML03.pdf)
19. [Concentration and excess risk bounds for imbalanced classification with synthetic oversampling (NeurIPS 2025)](https://proceedings.neurips.cc/paper_files/paper/2025/file/e715ad3d527e246af3ab286c3f3d367c-Paper-Conference.pdf)
20. [Nakada, Ryumei and colleagues (2024). Synthetic Oversampling: Theory and A Practical Approach Using LLMs to Address Data Imbalance. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2406.03628)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 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/synthetic-minority-over-sampling-technique

English original: https://www.edgepedia.org/synthetic-minority-over-sampling-technique
