Machine-learning-enhanced time-of-flight mass spectrometry analysis

Ye Wei, Rama Srinivas Varanasi, Torsten Schwarz, Leonie Gomell, Huan Zhao, David J. Larson, Binhan Sun, Geng Liu, Hao Chen, Dierk Raabe, Baptiste GaultPatterns 2021 · DOI · OpenReview

TL;DR

This paper introduces ML-ToF, a novel machine learning approach that automates the identification of atomic and molecular species in time-of-flight mass spectrometry (ToF-MS) data. By learning from natural isotopic abundance patterns, ML-ToF significantly accelerates analysis time from minutes/hours to microseconds, outperforming human experts in accuracy and reproducibility.

What Problem Does This Paper Address?

Time-of-flight mass spectrometry (ToF-MS) is a powerful technique for determining the elemental and molecular composition of materials. However, a crucial step involves interpreting the complex patterns of peaks in the mass spectra, which represent ions' mass-to-charge ratios and their isotopic abundances. This interpretation has traditionally relied heavily on the expertise of individual users, leading to challenges in standardization, reproducibility, and efficient data processing, especially with the increasing volume of data generated by modern instruments. Furthermore, the complexity of molecular ions, formed by combinations of elements, makes building comprehensive databases for identification extremely difficult.

Methods

The core of the ML-ToF approach is a machine learning model, specifically LightGBM (a gradient boosting decision tree algorithm), trained to recognize patterns in ToF-MS spectra. The process involves two main stages:

  1. Atomic Pattern Recognizer: This module identifies individual atomic elements. It first filters potential candidates based on the inter-peak distance ratio (IDR) of isotopic peaks. Subsequently, it uses the LightGBM model to classify patterns based on their isotopic abundance ratios. A database of common elements (up to atomic number 40, plus some lanthanides) with their isotopic information is used for training.
  2. Molecular Pattern Recognizer: This module identifies molecular ions. It first performs a heuristic search by matching mass-to-charge ratios to an on-the-fly molecular database. This database is dynamically generated by combining identified atomic patterns with common non-metal elements. If multiple molecular candidates are found, a LightGBM model is trained to determine the most probable ones based on abundance ratios.

The approach is designed to be "human-label-free," meaning it learns from the inherent physical properties of isotopes rather than relying on pre-labeled datasets from human experts.

Datasets

The paper utilizes experimental datasets from various ToF-MS techniques, including:

  • Atom Probe Tomography (APT): Spectra from Al-Zn-Mg-Cu-(Zr) alloys, Fe-Mn-C-Al alloys, Sm-Co-based hard magnets, and Cu-In-S solar cell absorbers.
  • Secondary Ion Mass Spectrometry (SIMS): Spectra from a Co-based alloy and an unknown alloy from a mine dump.

The training dataset for the machine learning models is generated based on known isotopic abundances and inter-peak distance ratios of elements. Noise is intentionally introduced into the training data to simulate real-world experimental conditions and improve robustness.

Key Insights and Ideas

  • Leveraging Isotopic Signatures: The core innovation is using the natural, predictable patterns of isotopic abundances as the primary feature for machine learning identification, bypassing the need for human-labeled training data.
  • Automated Molecular Identification: The approach effectively tackles the challenge of identifying molecular ions by dynamically building a molecular database and using machine learning to discern complex patterns.
  • Speed and Accuracy: ML-ToF achieves a remarkable speedup, reducing analysis time from minutes/hours to microseconds, while maintaining or exceeding the accuracy of human experts.
  • Universality: The method is demonstrated to be applicable across different ToF-MS techniques (APT, SIMS) and a wide range of material systems, suggesting its potential as a general-purpose ToF-MS analysis tool.
  • Explainability: While using a powerful ML model, the underlying decision-making process, particularly for atomic patterns, can be visualized and interpreted, offering a degree of transparency.

Key Results

  • ML-ToF successfully identified atomic and molecular patterns in various complex spectra, with performance often matching or exceeding that of field experts.
  • The analysis time for a spectrum was reduced to microseconds, a significant improvement over the minutes to hours typically required by human users.
  • In several cases, ML-ToF identified peaks that were not assigned by human experts, highlighting its ability to detect subtle patterns.
  • The accuracy of atomic pattern recognition was reported to be very high, with confusion matrices showing near-perfect classification for abundance ratio tasks. For example, ML-ToF identified 99.9% of the total intensity of detected patterns in an Al-Zn-Mg-Cu-(Zr) alloy.

Limitations and Future Work

  • Detection Limits: The performance of ML-ToF is inherently limited by the signal-to-noise ratio of the mass spectra. Lower signal-to-noise can lead to missed peaks or reduced certainty in identification.
  • Database Completeness: The current training database does not include all elements in the periodic table. Adding new elements requires further testing and validation.
  • Molecular Combination Search: The molecular pattern recognition currently relies on a brute-force search for combinations, which can be computationally intensive.
  • Future Work: The authors suggest extending the ML-ToF to include more elements to make it a universal technique. They also propose integrating heuristic search algorithms to accelerate molecular combination identification and exploring real-time ML-ToF implementation during atom probe experiments to prevent peak overlapping issues and further boost accuracy.

Summary updated

Abstract

Mass spectrometry is a widespread approach used to work out what the constituents of a material are. Atoms and molecules are removed from the material and collected, and subsequently, a critical step is to infer their correct identities based on patterns formed in their mass-to-charge ratios and relative isotopic abundances. However, this identification step still mainly relies on individual users' expertise, making its standardization challenging, and hindering efficient data processing. Here, we introduce an approach that leverages modern machine learning technique to identify peak patterns in time-of-flight mass spectra within microseconds, outperforming human users without loss of accuracy. Our approach is cross-validated on mass spectra generated from different time-of-flight mass spectrometry (ToF-MS) techniques, offering the ToF-MS community an open-source, intelligent mass spectra analysis. Time-of-flight mass spectrometry (ToF-MS) is a mainstream analytical technique widely used in biology, chemistry, and materials science. ToF-MS provides quantitative compositional analysis with high sensitivity across a wide dynamic range of mass-to-charge ratios. A critical step in ToF-MS is to infer the identity of the detected ions. Here, we introduce a machine-learning-enhanced algorithm to provide a user-independent approach to performing this identification using patterns from the natural isotopic abundances of individual atomic and molecular ions, without human labeling or prior knowledge of composition. Results from several materials and techniques are compared with those obtained by field experts. Our open-source, easy-to-implement, reliable analytic method accelerates this identification process. A wide range of ToF-MS-based applications can benefit from our approach, e.g., hunting for patterns of biomarkers or for contamination on solid surfaces in high-throughput data. A machine-learning application for the accelerated data processing and interpretation of time-of-flight mass spectrometry is presented. The machine learns patterns in a human-label-free manner, making the process easy to implement and the result highly reproducible. © 2020 The Authors.
BibTeX
@article{wei2021machine,
  author = {Ye Wei and Rama Srinivas Varanasi and Torsten Schwarz and Leonie Gomell and Huan Zhao and David J. Larson and Binhan Sun and Geng Liu and Hao Chen and Dierk Raabe and Baptiste Gault},
  title = {{Machine-learning-enhanced time-of-flight mass spectrometry analysis}},
  journal = {Patterns},
  year = {2021},
  doi = {10.1016/j.patter.2020.100192},
}
Figure