Predicting Microbial Interactions Using Graph Neural Networks

Elham Gholamzadeh, Kajal Singla, Nico Scherf

TL;DR

This paper introduces a novel Graph Neural Network (GNN) approach to predict the direction and type of interactions between microbial species. By representing interactions as an "edge graph," their model significantly outperforms traditional machine learning methods, offering a powerful new tool for understanding and engineering microbial communities.

What Problem Does This Paper Address?

Microbial communities are incredibly complex, with the interactions between species dictating their overall structure and function. Understanding these interactions is crucial for applications ranging from environmental remediation to human health. However, experimentally determining all possible pairwise interactions, especially in species-rich environments, is prohibitively time-consuming and expensive. Existing methods often struggle to capture the intricate dependencies and shared information across numerous co-culture experiments. This paper aims to bridge this gap by developing a more efficient and accurate predictive model for microbial interactions.

Methods

The core innovation here is the application of Graph Neural Networks (GNNs) to microbial interaction prediction. Instead of treating species as isolated nodes, the authors construct an "edge graph." In this representation, each interaction between two species under a specific condition becomes a node. These interaction nodes are then connected if their corresponding experiments share a common species and condition. This structure allows the GNN to learn from the relationships between interactions, effectively capturing higher-order ecological dependencies. Specifically, they employ a two-layer GraphSAGE model, a type of GNN known for its inductive learning capabilities, allowing it to generalize to unseen species or conditions.

Datasets

The study utilizes a large, experimentally validated dataset of pairwise microbial interactions. This dataset comprises over 7,500 interactions between 20 species from two taxonomic groups, cultivated across 40 distinct carbon environments. This dataset is primarily based on the work of Nestor et al. [17] and Kehet al. [11], employing the kChip platform for high-throughput screening. Features used for prediction include monoculture growth yields, phylogenetic relationships (summarized by PCA), and metabolic profiles (also summarized by PCA).

Key Insights and Ideas

  • Interactions as First-Class Citizens: By transforming interactions into nodes in an edge graph, the GNN can directly learn from the relationships between different experimental outcomes, rather than just species traits. This is a powerful shift in perspective.
  • Leveraging Shared Information: The edge graph structure allows the model to implicitly learn from similarities and differences across various co-culture experiments, even if they involve different species or conditions. This is key to overcoming the limitations of isolated pairwise predictions.
  • Inductive Learning for Generalization: The use of GraphSAGE enables the model to generalize to new, unseen microbial interactions, which is crucial for predicting outcomes in novel community compositions or environments.
  • Complexity of Positive Interactions: The results highlight that predicting positive interactions (like mutualism) is significantly more challenging than negative ones (like competition or parasitism), a finding consistent with existing ecological research.

Key Results

The proposed Graph Neural Network (GNN) approach demonstrated strong performance in predicting microbial interactions:

  • One-way Interaction Prediction: The GNN achieved an F1-score of 80.44% for predicting the sign (positive/negative) of one-way interactions. This significantly outperforms conventional methods like Extreme Gradient Boosting (XGBoost), which reported an F1-score of 72.76%, and k-Nearest Neighbors (kNN) at 66.13%.
  • Two-way Interaction Prediction: For more complex two-way interactions (mutualism, competition, parasitism), the GNN achieved an accuracy of 0.811, slightly outperforming XGBoost (0.780). While the GNN showed better performance in predicting mutualism and parasitism, XGBoost was slightly better at predicting competition.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Generalization to Natural Environments: The current model's performance is evaluated on controlled laboratory conditions. Its generalization ability to complex, natural environments remains an open question.
  • Focus on Pairwise Interactions: The model currently focuses on pairwise interactions and does not explicitly account for higher-order effects that might arise from the presence of multiple species simultaneously.
  • Computational Intensity: GNNs, particularly GraphSAGE, are computationally intensive, requiring High-Performance Computing (HPC) resources, which could limit reproducibility.
  • Graph Structure Optimization: Exploring alternative ways to structure the graphs to better encode experimental information is suggested.
  • Future Directions: Future work could involve testing on broader datasets, incorporating higher-order interactions using methods like Topological Deep Learning (TDL), improving computational efficiency, and developing lightweight methods for resource-limited settings.

Summary updated

BibTeX
@inproceedings{gholamzadeh2025predicting,
  author = {Elham Gholamzadeh and Kajal Singla and Nico Scherf},
  title = {{Predicting Microbial Interactions Using Graph Neural Networks}},
  booktitle = {NPGML @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=K4obpuNxjG},
}
Figure