[Paper Review] Using Graph Neural Networks for Mass Spectrometry Prediction
This paper proposes using Graph Neural Networks (GNNs), specifically Graph Convolutional Networks (GCN) and Graph Attention Networks (GAT), to predict mass spectra from molecular graphs, outperforming the fingerprint-based NEIMS model. GAT with 10 layers and Gated Linear Units (GLU) achieved the highest spectral similarity (0.517) and recall@10 (83.3%) on the NIST 17 LC-MS dataset, demonstrating GNNs' superiority in spectral prediction and highlighting the critical impact of candidate set size and similarity on ranking performance.
Detecting and quantifying products of cellular metabolism using Mass Spectrometry (MS) has already shown great promise in many biological and biomedical applications. The biggest challenge in metabolomics is annotation, where measured spectra are assigned chemical identities. Despite advances, current methods provide limited annotation for measured spectra. Here, we explore using graph neural networks (GNNs) to predict the spectra. The input to our model is a molecular graph. The model is trained and tested on the NIST 17 LC-MS dataset. We compare our results to NEIMS, a neural network model that utilizes molecular fingerprints as inputs. Our results show that GNN-based models offer higher performance than NEIMS. Importantly, we show that ranking results heavily depend on the candidate set size and on the similarity of the candidates to the target molecule, thus highlighting the need for consistent, well-characterized evaluation protocols for this domain.
Motivation & Objective
- To improve mass spectral prediction accuracy by replacing molecular fingerprints with graph-based representations.
- To evaluate whether GNNs can outperform existing neural network models like NEIMS in predicting LC-MS/MS spectra.
- To investigate the influence of candidate set size and molecular similarity on ranking performance in metabolite annotation.
- To establish a more robust and consistent evaluation protocol for MS spectral prediction tools.
Proposed method
- Molecules are represented as graphs with atoms as nodes and bonds as edges, enabling GNNs to learn structural representations.
- Two GNN architectures are evaluated: Graph Convolutional Networks (GCN) and Graph Attention Networks (GAT), with varying depths and attention mechanisms.
- Spectral prediction is trained via mean squared error (MSE) minimization with L2 regularization and dropout (rate = 0.5) to prevent overfitting.
- Input features include atomic and bond types, with intensity values normalized and transformed using log or square root methods.
- Graph pooling is applied via Global Max, Global Average, or Global Attention to aggregate node-level representations into a global spectrum vector.
- The output layer uses either a dense layer or Gated Linear Unit (GLU) to predict the final spectrum, with hyperparameter search optimizing performance.
Experimental results
Research questions
- RQ1Can GNN-based models achieve higher spectral prediction accuracy than fingerprint-based models like NEIMS on LC-MS/MS data?
- RQ2How does the depth of GNN architectures (e.g., GCN vs. GAT) affect spectral prediction performance?
- RQ3What impact does the size and similarity of the candidate molecular set have on the ranking performance of spectral annotation tools?
- RQ4Which data transformation and pooling strategies yield the best spectral prediction and recall@k performance?
Key findings
- The GAT model with 10 layers and GLU output achieved the highest spectral similarity (0.517), significantly outperforming NEIMS (0.157).
- Recall@10 for the best GAT model reached 83.3%, compared to 65.1% for NEIMS, demonstrating superior ranking performance.
- Performance dropped significantly as candidate set size increased, with recall@10 decreasing from 83.3% (50 candidates) to lower values at larger sets.
- The model achieved ~11,000 predictions per second on an NVIDIA V100 GPU, indicating high inference efficiency.
- Log transformation of intensity values consistently improved performance over square root transformation.
- Candidate similarity and set size were found to heavily influence recall@k, underscoring the need for standardized evaluation protocols.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.