Nanopore- and AI-empowered microbial viability inference

Harika Ürel, Sabrina Benassou, Hanna Marti, Tim Reska, Ela Sauerborn, Yuri Pinheiro Alves de Souza, Albert Perlas, Enrique Rayo, Michael Biggel, Stefan Kesselheim, Nicole Borel, Edward J. Martin, Constanza B. Venegas, Michael Schloter, Katrin Schröder, Jana Mittelstrass, Simone Prospero, James M. Ferguson, Lara UrbanGigaScience 2025

TL;DR

This paper introduces a novel computational framework that uses AI to predict microbial viability directly from raw nanopore sequencing data ("squiggles"). This approach bypasses the limitations of traditional methods, offering a faster, more sensitive, and potentially more accurate way to distinguish live from dead microbes, with broad applications in environmental, veterinary, and clinical settings.

What Problem Does This Paper Address?

Accurately determining whether microorganisms are alive or dead is crucial for understanding ecosystems, diagnosing infections, and ensuring food safety. Traditional methods like culturing are slow, labor-intensive, and often miss a large portion of microbial diversity. Existing molecular methods that detect DNA can't distinguish between DNA from live cells and DNA from dead cells, leading to potential misinterpretations. While some viability assays exist (e.g., viability PCR), they have their own limitations, including being biased, lacking sensitivity, and requiring additional reagents and complex sample processing. This paper addresses the need for a more efficient, computational, and culture-independent method for microbial viability inference.

Methods

The core of this work is a deep learning framework, specifically a Residual Neural Network (ResNet1), trained on raw nanopore sequencing data (squiggles). Instead of relying on basecalled DNA sequences, the model learns patterns directly from the electrical signal generated as DNA passes through the nanopore.

Key methodological aspects include:

  • Raw Signal Analysis: The model directly processes the "squiggle" data, which represents the electrical current changes over time as DNA translocates through the nanopore. This raw data is believed to contain subtle physical and chemical information about the DNA itself.
  • Deep Neural Networks (ResNet): A ResNet architecture was chosen for its ability to learn complex features from sequential data. The model was trained on chunks of nanopore signal data.
  • Explainable AI (XAI): Class Activation Maps (CAMs) were used to understand why the model made certain predictions. This revealed that "dead" signal chunks often contained sudden drops, hypothesized to be caused by DNA damage (e.g., UV-induced kinks).
  • Read-Level Inference: The model's performance was significantly improved when applied at the sequencing read level rather than individual signal chunks, suggesting that cumulative information within a read is more informative.
  • Killing Method Specificity: The study demonstrated that models trained on one killing method (UV irradiation) did not generalize well to another (antibiotic exposure), necessitating the training of new, method-specific models.

Datasets

The primary dataset used for training and validation was generated from Escherichia coli (E. coli) cultures subjected to UV irradiation to induce cell death.

  • E. coli UV-killed Dataset: Nanopore sequencing data was generated from both viable and UV-killed E. coli cultures. This dataset was split into training, validation, and testing sets.
  • Chlamydia suis Dataset: Nanopore sequencing data from viable and UV-killed Chlamydia suis (an obligate intracellular bacterium) was used to test the generalizability of the E. coli-trained model.
  • Mock Community Dataset: A mock community of E. coli and Klebsiella oxytoca exposed to carbenicillin was used to investigate the model's performance with a different killing method (antibiotic exposure) and to test the potential for distinguishing susceptible from resistant bacteria.

Key Insights and Ideas

  • Squiggles Hold Viability Information: The most significant insight is that raw nanopore signal data ("squiggles") contains sufficient information to distinguish between viable and dead microbial DNA, even without relying on basecalled sequences.
  • DNA Damage as a Viability Marker: Explainable AI revealed that sudden drops in the nanopore signal, likely indicative of DNA damage (e.g., UV-induced kinks), are key features for predicting microbial death.
  • Taxonomy-Agnostic Potential: A model trained on E. coli could predict viability in Chlamydia suis with high accuracy, suggesting that the underlying physical signals of DNA damage might be conserved across different bacterial species, at least for certain killing methods.
  • Killing Method Matters: The model's performance is highly dependent on the method used to kill the microbes. A model trained on UV-killed cells doesn't work well for antibiotic-killed cells, highlighting the need for method-specific training or more generalized models.
  • Read-Level is Superior: Applying the model at the sequencing read level, rather than individual signal chunks, significantly boosted accuracy, indicating that integrating information across the entire read is more powerful.

Key Results

  • High Accuracy on E. coli: The ResNet1 model achieved an accuracy of 0.83 and an F1 score of 0.81 on the E. coli test dataset at the chunk level. At the read level, accuracy increased to 0.96, with AUROC and AUPR values of 0.99.
  • Successful Chlamydia Viability Inference: The E. coli-trained model achieved high performance on Chlamydia suis reads, with accuracies around 0.93 and AUROC/AUPR values of 0.97/0.94-0.96, demonstrating cross-species applicability.
  • Antibiotic Model Performance: A new model trained on antibiotic-killed E. coli achieved an accuracy of 0.73 on the read level for a mock community, correctly classifying susceptible E. coli as dead while classifying resistant K. oxytoca as viable.
  • XAI Insights: CAM analysis identified specific signal regions associated with "dead" cells, and a simplified "sudden drop" rule achieved 0.68 accuracy, confirming the importance of these features.

Limitations and Future Work

  • Killing Method Specificity: The current models are specific to the killing method used for training. Future work should focus on developing more generalized models that can handle diverse degradation sources or on creating libraries of method-specific models.
  • Generalizability to Other Taxa: While successful with E. coli and Chlamydia, the model's performance on other microbial groups (e.g., spore-forming bacteria, fungi) and different environmental conditions needs further assessment.
  • Understanding Signal Patterns: The precise biological, chemical, and physical underpinnings of the observed squiggle signal patterns require further investigation.
  • Metagenomic Applications: The paper acknowledges that the full potential for metagenomic applications needs more detailed assessment.
  • Quantitative Viability: Future work could explore quantitative AI modeling for more nuanced viability assessments, potentially distinguishing between dormancy and true death.

Summary updated

Abstract

While the potential of our computational framework's generalizability and applicability to metagenomic studies needs to be assessed in more detail, we here demonstrate for the first time the analysis of freely available nanopore signal data to infer the viability of microorganisms, with many potential applications in environmental, veterinary, and clinical settings.
BibTeX
@inproceedings{urel2025nanopore,
  author = {Harika Ürel and Sabrina Benassou and Hanna Marti and Tim Reska and Ela Sauerborn and Yuri Pinheiro Alves de Souza and Albert Perlas and Enrique Rayo and Michael Biggel and Stefan Kesselheim and Nicole Borel and Edward J. Martin and Constanza B. Venegas and Michael Schloter and Katrin Schröder and Jana Mittelstrass and Simone Prospero and James M. Ferguson and Lara Urban},
  title = {{Nanopore- and AI-empowered microbial viability inference}},
  booktitle = {GigaScience},
  year = {2025},
  doi = {10.1093/gigascience/giaf100},
}

Loading related content...

Figure