# 机器学习算法

机器学习算法是计算机系统借以适应数据、从数据中学习的一系列过程，其目标是提高准确率，而不是仅仅遵循显式编程的规则。<sup>[1](https://csrc.nist.gov/glossary/term/machine_learning)</sup> 美国国家标准与技术研究院（NIST）将机器学习定义为“赋予计算机在未被显式编程的情况下进行学习的能力的研究领域”，并将机器学习程序描述为利用数据来学习并应用模式、或辨识统计关系的计算机程序。<sup>[2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf)</sup> 常见方法包括回归、随机森林、支持向量机与人工神经网络。<sup>[2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf)</sup>

| 关键事实 | 说明 |
|---|---|
| 定义 | 开发并使用能够适应数据、从数据中学习、以提高准确率为目标的计算机系统<sup>[1](https://csrc.nist.gov/glossary/term/machine_learning)</sup> |
| 主要类别 | 监督学习、无监督学习与强化学习<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> |
| 监督学习的子类 | 回归算法预测连续变量；分类算法从有限列表中预测类别<sup>[4](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1500-10r1.pdf)</sup> |
| 无监督技术 | 聚类（例如 K 均值）与降维（例如主成分分析）<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> |
| 强化学习 | 模型通过与环境的交互并接收环境反馈，学习依据奖励函数优化自身行为<sup>[5](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-2e2025.pdf)</sup> |
| 训练流程 | 数据预处理、特征工程、算法调参、训练与测试<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> |
| 临床应用表现 | 在一项纳入 36 项合格研究的系统综述中，XGBoost 在临床应用方面显示出最高潜力（7 项研究），其后并列的是随机森林、逻辑回归与支持向量机（各 5 项研究）<sup>[6](https://pubmed.ncbi.nlm.nih.gov/34990939/)</sup> |

## 学习的类别

**监督学习**将输入数据（即数据特征）映射到预先定义好的带标签输出（即目标），学习特征与目标值或分类之间的模式与关系。<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> 带标签数据用于训练模型，使其给出准确的预测；一个问题可以完全标注，也可以只对部分观测标注（半监督学习）。<sup>[4](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1500-10r1.pdf)</sup> 监督学习问题分为两个子类：回归预测连续变量，例如某个数值；分类则从有限个可能类别中预测一个类别。<sup>[4](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1500-10r1.pdf)</sup> 主要技术包括：逻辑回归，擅长二分类问题；决策树，以可解释性和处理复杂特征交互的能力见长；随机森林，一种组合多棵决策树以提高预测准确率的集成方法；以及神经网络，应用于图像识别、自然语言处理等领域。<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup>

**无监督学习**处理无标签数据，以揭示隐藏的结构与模式。其主要技术族为聚类与降维。<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> K 均值聚类（K-means）将相似的数据点归为一组，从而发现数据中的自然簇；主成分分析（PCA）则在保留关键信息的同时降低高维数据的维度，有助于可视化与特征选择。<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> NIST 的《大数据互操作框架》列出的聚类技术包括 K 均值、模糊 C 均值、高斯聚类与层次聚类，降维技术包括线性判别分析（LDA）、PCA、相关滤波器、后向特征消除、奇异值分解（SVD）与广义判别分析（GDA）。<sup>[4](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1500-10r1.pdf)</sup>

**强化学习**训练智能体通过与环境交互、接收以奖励或惩罚形式给出的反馈来做出序列决策；模型学习依据奖励函数优化自身行为。<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup><sup> • </sup><sup>[5](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-2e2025.pdf)</sup> 应用包括博弈（例如 AlphaGo）、机器人学与自主控制系统。<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> 这一族算法包括 Q 学习、SARSA、蒙特卡洛方法与神经网络。<sup>[4](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1500-10r1.pdf)</sup>

## 训练与评估

训练机器学习模型是一个多阶段过程，涉及数据预处理、特征工程、算法调参、训练与测试，并需注意在模型性能、数据质量与其他约束之间取得平衡。<sup>[3](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)</sup> 在监督学习中，分类或预测的准确率可通过交叉验证、自助法（bootstrapping），或在独立测试数据集上评估。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC6584985/)</sup> 受试者工作特征（ROC）曲线是标准的评估工具，它绘制分类器的真阳性率对假阳性率的关系。<sup>[5](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-2e2025.pdf)</sup>

基准测试使人们能够在不同备选方法之间进行无偏比较，被认为是机器学习取得进展的关键。<sup>[9](https://wires.onlinelibrary.wiley.com/doi/10.1002/widm.1318)</sup> 经整理的基准套件，如宾夕法尼亚机器学习基准（PMLB），提供大型公开数据集，便于对监督学习方法进行系统评估。<sup>[10](https://arxiv.org/abs/1703.00512)</sup> 正确使用模型评估、模型选择与算法选择技术，被认为在学术研究与工业环境中至关重要；对于小数据集，建议采用组合 F 检验 5×2 交叉验证与嵌套交叉验证等方法来比较算法。<sup>[11](https://arxiv.org/abs/1811.12808)</sup>

## 历史发展

机器学习的历史有两条线索：数学与工程。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC6279369/)</sup> 神经网络这条线索上的里程碑包括：麦卡洛克（McCulloch）与皮茨（Pitts）的 MCP 模型（1943），被视为人工神经网络的鼻祖；罗森布拉特（Rosenblatt）的第一个感知机（1958）；反向传播（沃博斯（Werbos），1974）；福岛邦彦（Fukushima）的新认知机（neocognitron，1980），即卷积神经网络的鼻祖；勒昆（LeCun）的 [LeNet](https://www.edgepedia.org/zh/lenet)（1990），开启了卷积神经网络的时代；LSTM（霍赫赖特（Hochreiter）与施密德胡伯（Schmidhuber），1997）；辛顿（Hinton）的深度信念网络（2006），迎来了深度学习时代；以及 AlexNet（克里热夫斯基（Krizhevsky）、苏茨克维（Sutskever）与辛顿，2012），开启了用 CNN 进行 ImageNet 分类的先河。<sup>[13](https://onlinelibrary.wiley.com/doi/10.1155/2018/7068349)</sup> AlexNet 是一个深度卷积神经网络，它将 120 万张高分辨率图像分入 1000 个不同类别，取得的结果远超此前最佳的机器学习与分类方法。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC6279369/)</sup> 更早的一个里程碑是 1951 年阿瑟·塞缪尔（Arthur Samuel）在 IBM 开发的跳棋程序；而“AI”一词由[约翰·麦卡锡](https://www.edgepedia.org/zh/john-mccarthy-computer-scientist)（John McCarthy）在 1956 年的达特茅斯研讨会上提出。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC9361912/)</sup>

## 临床应用

一项对 2011 年 1 月至 2021 年 10 月间发表的原创文章进行的系统综述，检索出 873 篇不重复的文章，其中 36 项研究符合纳入标准——这些研究考察了机器学习在涉及人类的临床实践中的应用，并报告了性能指标。<sup>[6](https://pubmed.ncbi.nlm.nih.gov/34990939/)</sup> XGBoost（极端梯度提升）算法在临床应用方面显示出最高潜力，出现在 7 项研究中；其后并列的是随机森林算法、逻辑回归与支持向量机，各出现在 5 项研究中。<sup>[6](https://pubmed.ncbi.nlm.nih.gov/34990939/)</sup> 经临床适配的算法所解决的问题，从疾病诊断、预后到治疗建议，范围广泛。<sup>[6](https://pubmed.ncbi.nlm.nih.gov/34990939/)</sup>

随着这些应用的发展，监管层面的参与也日益增多。据 2024 年的一份报告，在整个医学领域，美国食品药品监督管理局（FDA）已批准 700 多种 AI 算法用于辅助医生。<sup>[15](https://apnews.com/article/3bc95db51a41469c390b0f1f48c7dd4e)</sup> FDA 指出，AI 解决方案有潜力改善医疗器械的自动化与学习能力、诊断与治疗的开发、监管评估以及上市后监测，并正在探索将机器学习算法以及对分布偏移具有稳健性的统计框架用于“作为医疗器械的软件”。<sup>[16](https://www.fda.gov/science-research/focus-areas-regulatory-science-report/focus-area-artificial-intelligence)</sup> 2021 年，FDA、加拿大卫生部（Health Canada）与英国药品和保健产品监管局（MHRA）共同确定了医疗器械开发中“良好机器学习实践”（GMLP）的 10 项指导原则。<sup>[17](https://www.fda.gov/medical-devices/digital-health-center-excellence/artificial-intelligence-enabled-medical-devices)</sup> 世界卫生组织（WHO）通过治理结构、政策与规范性技术指南来推动 AI 在卫生领域的治理，支持循证采纳。<sup>[18](https://www.who.int/teams/digital-health-and-innovation/harnessing-artificial-intelligence-for-health)</sup> 2022 年一项与 WHO 相关的综述得出结论：尽管在某些临床领域已取得进展并趋于成熟，AI 在临床实践中的使用仍然稀少，最常见的情况是仅在实验室与检测中使用。<sup>[19](https://www.who.int/europe/news/item/27-09-2022-use-of-artificial-intelligence-on-the-rise--but-its-impact-on-health-still-limited--new-study-finds)</sup>

## 偏见与局限

算法的行为在很大程度上取决于用于训练和测试的数据，这种依赖关系可用“偏见进，偏见出”一语概括。NIST 指出，在机器学习中，若缺乏关于模型或算法可能被用于何种具体任务的语境信息，把偏见归咎于模型或算法本身是没有意义的。<sup>[2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf)</sup> NIST 将 AI 中的偏见分为三类：系统性偏见、统计性偏见与人为偏见，并描述了缓解偏见的三方面广泛挑战：数据集、测试与评估，以及人为因素。<sup>[2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf)</sup> 已有记录的实例包括：以方言特征作为毒性预测指标的仇恨言论检测模型，可能导致对少数群体的偏见；以及一个旨在性别中立的广告投放算法，却因将年轻女性视为成本更高的目标子群而产生了性别偏见。<sup>[2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf)</sup> NIST 指出，偏见既不是新问题，也并非 AI 独有，且在 AI 系统中不可能实现零偏见风险。<sup>[2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf)</sup>

## References

1. [Machine Learning, NIST Computer Security Resource Center Glossary](https://csrc.nist.gov/glossary/term/machine_learning)
2. [Towards a Standard for Identifying and Managing Bias in Artificial Intelligence, NIST SP 1270 (March 2022)](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1270.pdf)
3. [A Technical Framework to Map Functional Recovery Performance Objectives to Prescriptive Seismic Design Provisions for Buildings, NIST SP 1321 (September 2024)](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1321.pdf)
4. [NIST Big Data Interoperability Framework: Volume 9, Adoption and Modernization, NIST SP 1500-10r1](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1500-10r1.pdf)
5. [Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations, NIST AI 100-2e2025 (March 2025)](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-2e2025.pdf)
6. [Potential applications and performance of machine learning techniques and algorithms in clinical practice: A systematic review, International Journal of Medical Informatics (2021)](https://pubmed.ncbi.nlm.nih.gov/34990939/)
7. [Understanding Machine Learning, DoD CTO (January 2026)](https://www.cto.mil/wp-content/uploads/2026/01/MLSSEG-8January2026-Cleared.pdf)
8. [Essential guidelines for computational method benchmarking, PMC (2019)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6584985/)
9. [Benchmarking in classification and regression, WIREs Data Mining and Knowledge Discovery (2019)](https://wires.onlinelibrary.wiley.com/doi/10.1002/widm.1318)
10. [PMLB: A Large Benchmark Suite for Machine Learning Evaluation and Comparison, arXiv (2017)](https://arxiv.org/abs/1703.00512)
11. [Model Evaluation, Model Selection, and Algorithm Selection in Machine Learning, arXiv (2018)](https://arxiv.org/abs/1811.12808)
12. [Deep learning, Using machine learning to study biological vision, PMC (2018)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6279369/)
13. [Deep Learning for Computer Vision: A Brief Review, Computational Intelligence and Neuroscience (2018)](https://onlinelibrary.wiley.com/doi/10.1155/2018/7068349)
14. [From Heron of Alexandria to Amazon's Alexa: a stylized history of AI, PMC (2022)](https://pmc.ncbi.nlm.nih.gov/articles/PMC9361912/)
15. [Will AI replace doctors who read X-rays, or just make them better than ever?, AP News (2024)](https://apnews.com/article/3bc95db51a41469c390b0f1f48c7dd4e)
16. [Focus Area: Artificial Intelligence, U.S. Food and Drug Administration](https://www.fda.gov/science-research/focus-areas-regulatory-science-report/focus-area-artificial-intelligence)
17. [Artificial Intelligence-Enabled Medical Devices, U.S. Food and Drug Administration](https://www.fda.gov/medical-devices/digital-health-center-excellence/artificial-intelligence-enabled-medical-devices)
18. [Harnessing artificial intelligence for health, World Health Organization](https://www.who.int/teams/digital-health-and-innovation/harnessing-artificial-intelligence-for-health)
19. [Use of artificial intelligence on the rise, but its impact on health still limited, WHO Europe (2022)](https://www.who.int/europe/news/item/27-09-2022-use-of-artificial-intelligence-on-the-rise--but-its-impact-on-health-still-limited--new-study-finds)

---
*Initially written Oct 21, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/machine-learning-algorithms

English original: https://www.edgepedia.org/machine-learning-algorithms
