Deep learning predicts tuberculosis drug resistance status from genome sequencing data

Michael L. Chen, Akshith Doddi, Jimmy Royer, Luca Freschi, Marco Schito, Matthew Ezewudo, Isaac S. Kohane, Andrew L. Beam, Maha FarhatbioRxiv 2018

TL;DR

This paper introduces a novel deep learning model, the Multidrug Wide and Deep Neural Network (MD-WDNN), that accurately predicts drug resistance in Mycobacterium tuberculosis directly from whole genome sequencing data. This approach promises to significantly speed up diagnosis and improve treatment decisions for tuberculosis, a major global health challenge.

What Problem Does This Paper Address?

Tuberculosis (TB) remains a leading cause of mortality worldwide, and the rise of drug-resistant strains (MDR-TB and XDR-TB) poses a critical threat. Traditional methods for determining drug resistance rely on phenotypic testing, which is time-consuming (weeks to months) and can be resource-intensive, especially in low-resource settings. While molecular diagnostics have improved speed, they often rely on a limited set of known genetic markers and may miss rare mutations or complex genetic interactions that contribute to resistance. Whole genome sequencing (WGS) offers a comprehensive view of genetic variation, but effectively translating this vast amount of data into accurate resistance predictions for multiple drugs simultaneously has been a challenge. This paper aims to bridge this gap by developing a machine learning model that leverages WGS data to predict resistance to 10 different anti-TB drugs with high accuracy.

Methods

The core of this research is the development of a Multidrug Wide and Deep Neural Network (MD-WDNN). This architecture combines two powerful modeling approaches:

  • Wide Component: A logistic regression model that learns directly from the input features (genetic variants). This is akin to capturing simple, additive relationships between genes and drug resistance.
  • Deep Component: A deep multilayer perceptron (MLP) that learns complex, non-linear, and potentially epistatic (gene-gene interaction) relationships from the data.

The MD-WDNN is designed to predict resistance to 11 anti-tuberculosis drugs simultaneously. This "multitask" approach allows the model to share information across different drugs and genes, potentially improving predictions, especially for drugs with less available phenotypic data. The authors also performed ablation studies to understand the contribution of different components of their model, comparing it to single-drug models, models trained only on known mutations, and models without the "wide" component.

Datasets

The study utilized two main datasets:

  • Training Dataset: A pooled dataset of 3,601 Mycobacterium tuberculosis isolates. This included isolates with targeted sequencing and antibiotic resistance data, as well as public whole genome sequences. Of these, 1,228 were multidrug-resistant.
  • Independent Validation Dataset: A separate set of 792 Mycobacterium tuberculosis isolates obtained from public repositories, ensuring no overlap with the training set. This dataset was not pre-selected based on resistance or lineage, providing a more realistic evaluation.

The phenotypic resistance data covered 11 drugs: rifampicin, isoniazid, pyrazinamide, ethambutol (first-line), and streptomycin, capreomycin, amikacin, kanamycin, ciprofloxacin, and ofloxacin (second-line).

Key Insights and Ideas

  • Multitask Learning for Drug Resistance: The paper strongly suggests that treating drug resistance prediction as a multitask problem (predicting resistance to multiple drugs simultaneously) is more effective than single-task approaches. This allows the model to learn shared patterns and dependencies across different resistance mechanisms.
  • Wide and Deep Architecture's Power: The combination of a "wide" linear model and a "deep" neural network effectively captures both simple additive genetic effects and complex epistatic interactions, leading to improved predictive performance.
  • Leveraging Rare Variants: The MD-WDNN's ability to incorporate both common and "derived" categories of rarer genetic variants (not just those with prior known associations) significantly boosted its predictive accuracy, particularly for drugs where resistance mechanisms are less understood.
  • Genomic Data as a Bedside Tool: The research demonstrates that WGS data, when analyzed with sophisticated machine learning, can be a powerful and practical tool for clinical decision-making, moving beyond the limitations of traditional methods.
  • Inter-drug Relationships: The analysis of predictor intersections revealed shared genetic determinants for resistance across different drugs, offering insights into how resistance evolves and is acquired.

Key Results

The MD-WDNN achieved impressive predictive performance:

  • Cross-validation: Average Area Under the ROC Curve (AUC) of 0.979 for first-line drugs and 0.936 for second-line drugs.
  • Independent Validation: Average AUC of 0.937 for first-line drugs and 0.891 for second-line drugs.
  • Sensitivity and Specificity (Independent Validation):
    • First-line drugs: Average 87.9% sensitivity and 92.7% specificity.
  • Second-line drugs: Average 82.0% sensitivity and 90.1% specificity.
  • The MD-WDNN outperformed baseline models like random forests and logistic regression, as well as single-drug deep learning models.
  • The use of derived features (grouping rarer mutations) was crucial for performance gains, especially for drugs like pyrazinamide.

Limitations and Future Work

  • Phenotypic Data Errors: The authors acknowledge that errors in phenotypic susceptibility testing can introduce bias, though they used data from high-quality sources. They suggest that using Minimum Inhibitory Concentration (MIC) data could improve future models.
  • Rare Variants Threshold: The study focused on variants present in at least 30 isolates (approximately 0.8%), potentially missing very rare but important predictors.
  • Third-line Drugs: Phenotypic data for third-line drugs (e.g., cycloserine) was not available, so these were not included in the model.
  • Future Directions: The authors envision that as sequencing costs decrease and more data becomes available, the sensitivity and specificity for second-line drugs will continue to improve. Further work on understanding the "black box" nature of deep learning models could provide deeper insights into the biological mechanisms of drug resistance. Incorporating MIC data and exploring third-line drugs are also potential avenues for future research.

Summary updated

Abstract

Abstract Background The diagnosis of multidrug resistant and extensively drug resistant tuberculosis is a global health priority. Whole genome sequencing of clinical Mycobacterium tuberculosis isolates promises to circumvent the long wait times and limited scope of conventional phenotypic antimicrobial susceptibility, but gaps remain for predicting phenotype accurately from genotypic data. Methods and Findings Using targeted or whole genome sequencing and conventional drug resistance phenotyping data from 3,601 Mycobacterium tuberculosis strains, 1,228 of which were multidrug resistant, we investigated the use of machine learning to predict phenotypic drug resistance to 10 anti-tuberculosis drugs. The final model, a multitask wide and deep neural network (MD-WDNN), achieved improved high predictive performance: the average AUCs were 0.979 for first-line drugs and 0.936 for second-line drugs during repeated cross-validation. On an independent validation set, the MD-WDNN showed average AUCs, sensitivities, and specificities, respectively, of 0.937, 87.9%, and 92.7% for first-line drugs and 0.891, 82.0% and 90.1% for second-line drugs. In addition to being able to learn from samples that have only been partially phenotyped, our proposed multidrug architecture shares information across different anti-tuberculosis drugs and genes to provide a more accurate phenotypic prediction. We use t -distributed Stochastic Neighbor Embedding ( t -SNE) visualization and feature importance analyses to examine inter-drug similarities. Conclusions Machine learning is capable of accurately predicting resistant status using genomic information and holds promise in bringing sequencing technologies closer to the bedside.
BibTeX
@misc{chen2018deep,
  author = {Michael L. Chen and Akshith Doddi and Jimmy Royer and Luca Freschi and Marco Schito and Matthew Ezewudo and Isaac S. Kohane and Andrew L. Beam and Maha Farhat},
  title = {{Deep learning predicts tuberculosis drug resistance status from genome sequencing data}},
  year = {2018},
  doi = {10.1101/275628},
  howpublished = {bioRxiv},
}
Figure