# NEIMS

**NEIMS**（Neural Electron–Ionization Mass Spectrometry，神经电子电离质谱）是一种神经网络模型，可直接从化学结构预测小分子的电子电离质谱图，由谷歌大脑（Google Brain）的 Jennifer N. Wei、David Belanger、Ryan P. Adams 和 D. Sculley（其中 Adams 隶属普林斯顿大学计算机科学系）于 2019 年发表在《ACS Central Science》上。<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup> 其目的是扩大用于化合物鉴定的谱库覆盖范围：当未知样品的谱图与参考谱库进行比对时，谱库中不存在的分子无法被鉴定，而 NEIMS 通过为候选分子预测谱图来扩充谱库。<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup>

| 关键事实 | 详情 |
|---|---|
| 全称 | 神经电子电离质谱（Neural Electron–Ionization Mass Spectrometry，NEIMS）<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup> |
| 发表 | 《ACS Central Science》5(4)：700–708，2019 年 3 月 19 日在线发表<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup> |
| 速度 | 每分子约 5 毫秒；在 CPU 上 90 分钟可处理 100 万个分子<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup><sup> • </sup><sup>[2](https://pubs.acs.org/acscii/article/5/4/700/593475/Rapid-Prediction-of-Electron-Ionization-Mass)</sup> |
| 谱库匹配 | 在 NIST 2017 重复谱任务上，recall@1 为 54.3%，recall@10 为 92.7%；CFM-EI 分别为 42.6% 和 89%<sup>[2](https://pubs.acs.org/acscii/article/5/4/700/593475/Rapid-Prediction-of-Electron-Ionization-Mass)</sup> |
| 输入表示 | 扩展连接指纹（ECFPs）输入全连接网络<sup>[3](https://www.nature.com/articles/s41467-023-39279-7.pdf)</sup> |
| 代码 | 以 Apache-2.0 许可公开于 github.com/brain-research/deep-molecular-massspec；该仓库于 2026 年 4 月 19 日转为只读存档<sup>[4](https://github.com/brain-research/deep-molecular-massspec)</sup> |

## 背景：谱库匹配及其覆盖问题

质谱法通过测量离子的质荷比（m/z）来鉴定未知化合物，而电子电离（EI）作为最古老、最成熟的电离方法之一，所产生的谱图可作为分子的指纹。<sup>[5](https://www.nist.gov/programs-projects/electron-ionization-library-component-nistepanih-mass-spectral-library-and-nist-gc)</sup> 标准鉴定方法是谱库匹配：将观测到的谱图与由先前采集的谱图组成的参考谱库进行比对。NIST/EPA/NIH 质谱库是最大的公开 EI 谱图数据库，在 NEIMS 论文发表时收录超过 30 万张谱图，到 2026 年版已收录 382,180 个化合物的 431,277 张谱图。<sup>[6](https://knowledge.uchicago.edu/record/5439/files/Rapid-Approximate-Subset-Based-Spectra-Prediction-for-Electron-Ionization-Mass-Spectrometry.pdf)</sup><sup> • </sup><sup>[5](https://www.nist.gov/programs-projects/electron-ionization-library-component-nistepanih-mass-spectral-library-and-nist-gc)</sup> 该方法对谱库中不存在的分子失效，这促使人们通过计算预测合成谱图来扩充谱库。<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup>

在 NEIMS 之前，预测方法计算成本高昂。量子力学方法计算分子轨道能量，而 CFM-EI 等机器学习方法则随机模拟碎裂过程；两者都随分子尺寸增大而增加计算量，大分子耗时可达 10 分钟。<sup>[7](https://pubs.acs.org/doi/full/10.1021/acscentsci.9b00085)</sup> 从代谢组学谱图鉴定代谢物需要快得多的预测速度。<sup>[7](https://pubs.acs.org/doi/full/10.1021/acscentsci.9b00085)</sup>

## 模型设计

NEIMS 以分子的扩展连接指纹（ECFPs）为输入，应用全连接神经网络将谱图预测为按质量分箱的强度向量。<sup>[3](https://www.nature.com/articles/s41467-023-39279-7.pdf)</sup> 由于模型直接预测谱图而非键断裂概率，预测时间不像早期方法那样随分子尺寸增大而增加。<sup>[7](https://pubs.acs.org/doi/full/10.1021/acscentsci.9b00085)</sup>

为实现高精度，需要两项建模选择。架构采用双向预测模式，这是一种领域特定的设计，旨在捕捉电子电离的典型碎裂模式；网络原始输出还会针对电离的物理现象进行调整。<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup> 对预测结果进行质量过滤使 NEIMS 性能提升了 6%。<sup>[8](https://www.cs.princeton.edu/~rpa/pubs/wei2019rapid.pdf)</sup> 作者还指出，该方法不依赖于 EI 的具体细节，因此模型可以重新训练用于其他电离方法。<sup>[7](https://pubs.acs.org/doi/full/10.1021/acscentsci.9b00085)</sup>

## 性能

该模型在 NIST 2017 质谱库上进行了训练和评估。在摘要中，作者报告平均预测时间为每分子 5 毫秒，recall@10 准确率为 91.8%。<sup>[1](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)</sup>

谱库匹配评估遵循特定协议：查询谱图来自 NIST 2017 重复谱库——该库收录了 NIST 主库中分子的噪声更大的重复测量谱图——扩充后的参考谱库用 NEIMS 预测结果替换查询分子在主库中的谱图。<sup>[2](https://pubs.acs.org/acscii/article/5/4/700/593475/Rapid-Prediction-of-Electron-Ionization-Mass)</sup> 报告结果如下：

| 模型 | Recall@1（%） | Recall@10（%） | 平均运行时间（毫秒） |
|---|---|---|---|
| NIST 14 参考谱库 | 77 | 99 | – |
| CFM-EI | 42.6 | 89 | 300,000 |
| NEIMS | 54.3 | 92.7 | 0.47 |

NEIMS 在该任务上略优于 CFM-EI，更重要的是，其预测速度快了数个数量级：在 CPU 上 90 分钟即可生成 100 万个分子的谱图，使用 GPU 还可进一步加速。<sup>[2](https://pubs.acs.org/acscii/article/5/4/700/593475/Rapid-Prediction-of-Electron-Ionization-Mass)</sup> 后来对 QCEIMS（量子化学）、CFM-EI 和 NEIMS 的比较评估发现，无法明确判定三者中哪个最佳，谱图距离函数的选择对化合物鉴定性能有重要影响。<sup>[9](https://pubmed.ncbi.nlm.nih.gov/37390315/)</sup>

## 在后继系统中的应用

NEIMS 成为计算机模拟谱库构建的标准组件。FastEI 系统使用从官方仓库下载、未经重新训练的 NEIMS 模型来预测谱图，以构建百万规模的计算机模拟谱库，并指出用新化合物扩充此类谱库非常简便：用现有 NEIMS 模型预测其谱图并加入即可。<sup>[3](https://www.nature.com/articles/s41467-023-39279-7.pdf)</sup> CSU-EP 对比学习系统将 224 万张 NEIMS 预测谱图组装为谱图嵌入数据库，在 1,883,697 张预测 EI 谱图上进行预训练，以弥合实验谱图与预测谱图之间的实验-预测差距。<sup>[10](https://pubmed.ncbi.nlm.nih.gov/42473941/)</sup> 后来的工作也改进了 NEIMS 方案：一种图卷积网络方法解决了 NEIMS 中环形指纹的位碰撞问题；另一项工作在 NIST-20 上重新训练了 NEIMS，将谱图按 0.1 Da 间隔（而非 1 Da）分箱，以适应更精细的仪器分辨率。<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC10209659/)</sup><sup> • </sup><sup>[12](https://proceedings.mlr.press/v202/murphy23a/murphy23a.pdf)</sup>

后继模型在同一谱库匹配协议上报告了改进。RASSP（Rapid Approximate Subset-Based Spectra Prediction，快速近似子集谱图预测）将子结构枚举与深度学习相结合，将 recall@10 的查找错误率从 6% 以上降至 2%，相比此前最佳正向模型提升约三倍，接近实验-实验噪声所对应的 1.2% 错误率。<sup>[6](https://knowledge.uchicago.edu/record/5439/files/Rapid-Approximate-Subset-Based-Spectra-Prediction-for-Electron-Ionization-Mass-Spectrometry.pdf)</sup> 一项独立评估发现，在大多数化学类别的点积得分上，NEIMS 优于包括 RASSP 在内的其他预测器，而 RASSP 在醛类和分子量低于 150 Da 的低分子量化合物上显著更优。<sup>[13](https://www.gcms-id.ca/neims_performance)</sup>

## 局限性

预测谱图在训练分布之外会退化。一项对单取代 α-氨基酸在 NIST17、MoNA 和手工整理数据集上的 NEIMS 预测评估发现，对于算法训练数据之外的氨基酸，预测谱图不准确，且这种不准确无法用理化差异或衍生化状态来解释。<sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC12096351/)</sup> 按质量分箱的输出表示也舍弃了精细的 m/z 信息以换取可处理的学习，这一权衡是后来图神经网络方法试图解决的。<sup>[12](https://proceedings.mlr.press/v202/murphy23a/murphy23a.pdf)</sup>

## References

1. [Jennifer N. Wei, David Belanger, Ryan P. Adams, D. Sculley (2019). Rapid Prediction of Electron–Ionization Mass Spectrometry Using Neural Networks. ACS Central Science 5(4): 700–708.](https://pubs.acs.org/doi/10.1021/acscentsci.9b00085)
2. [Rapid Prediction of Electron–Ionization Mass Spectrometry Using Neural Networks, ACS Central Science (library matching evaluation).](https://pubs.acs.org/acscii/article/5/4/700/593475/Rapid-Prediction-of-Electron-Ionization-Mass)
3. [Ultra-fast and accurate electron ionization mass spectrum matching for compound identification with million-scale in-silico library, Nature Communications (2023).](https://www.nature.com/articles/s41467-023-39279-7.pdf)
4. [brain-research/deep-molecular-massspec, GitHub repository.](https://github.com/brain-research/deep-molecular-massspec)
5. [Electron Ionization Library Component of the NIST/EPA/NIH Mass Spectral Library and NIST GC Retention Index Database, NIST.](https://www.nist.gov/programs-projects/electron-ionization-library-component-nistepanih-mass-spectral-library-and-nist-gc)
6. [rapid approximate subset-based spectra prediction for electron ionization–mass spectrometry](https://knowledge.uchicago.edu/record/5439/files/Rapid-Approximate-Subset-Based-Spectra-Prediction-for-Electron-Ionization-Mass-Spectrometry.pdf)
7. [Rapid Prediction of Electron–Ionization Mass Spectrometry Using Neural Networks, ACS Central Science (full text).](https://pubs.acs.org/doi/full/10.1021/acscentsci.9b00085)
8. [Rapid Prediction of Electron-Ionization Mass Spectrometry using Neural Networks (preprint PDF), Princeton University.](https://www.cs.princeton.edu/~rpa/pubs/wei2019rapid.pdf)
9. [Comparative Evaluation of Electron Ionization Mass Spectral Prediction Methods, Journal of the American Society for Mass Spectrometry (2023).](https://pubmed.ncbi.nlm.nih.gov/37390315/)
10. [CSU-EP: Contrastive Learning for Unifying Experimental and Predicted EI-MS Spectra, PubMed.](https://pubmed.ncbi.nlm.nih.gov/42473941/)
11. [Construction of a Mass Spectrum Library Containing Predicted Electron Ionization Mass Spectra Prepared Using a Machine Learning Model, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC10209659/)
12. [Efficiently predicting high resolution mass spectra with graph neural networks, PMLR v202 (2023).](https://proceedings.mlr.press/v202/murphy23a/murphy23a.pdf)
13. [GCMS-ID: NEIMS Performance.](https://www.gcms-id.ca/neims_performance)
14. [Mapping the Edges of Mass Spectral Prediction: Evaluation of Machine Learning EIMS Prediction for Xeno Amino Acids, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC12096351/)

---
*Initially written Oct 22, 2026*

Topic: 物质世界与数学 › 化学 › 化学原理与方法 › Analytical chemistry › Mass spectrometry methods

Copyright 2026 Edgepedia

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

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

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